@appshell/cli 0.1.4 → 0.1.5

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/main.js CHANGED
@@ -6,4 +6,4 @@
6
6
  || ${a} === "boolean" || ${s} === null`).assign(c,o._`[${s}]`)}}r.else(),p(e),r.endIf(),r.if(o._`${c} !== undefined`,(()=>{r.assign(s,c),function({gen:e,parentData:t,parentDataProperty:n},r){e.if(o._`${t} !== undefined`,(()=>e.assign(o._`${t}[${n}]`,r)))}(e,c)}))}(e,t,a):p(e)}))}return l};const u=new Set(["string","number","integer","boolean","null"]);function f(e,t,n,r=c.Correct){const s=r===c.Correct?o.operators.EQ:o.operators.NEQ;let i;switch(e){case"null":return o._`${t} ${s} null`;case"array":i=o._`Array.isArray(${t})`;break;case"object":i=o._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=a(o._`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=a();break;default:return o._`typeof ${t} ${s} ${e}`}return r===c.Correct?i:(0,o.not)(i);function a(e=o.nil){return(0,o.and)(o._`typeof ${t} == "number"`,e,n?o._`isFinite(${t})`:o.nil)}}function h(e,t,n,r){if(1===e.length)return f(e[0],t,n,r);let s;const i=(0,a.toHash)(e);if(i.array&&i.object){const e=o._`typeof ${t} != "object"`;s=i.null?e:o._`!${t} || ${e}`,delete i.null,delete i.array,delete i.object}else s=o.nil;i.number&&delete i.integer;for(const e in i)s=(0,o.and)(s,f(e,t,n,r));return s}t.checkDataType=f,t.checkDataTypes=h;const d={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?o._`{type: ${e}}`:o._`{type: ${t}}`};function p(e){const t=function(e){const{gen:t,data:n,schema:r}=e,s=(0,a.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:s,schemaValue:s,parentSchema:r,params:{},it:e}}(e);(0,i.reportError)(t,d)}t.reportTypeError=p},8046:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const r=n(1986),s=n(8719);function i(e,t,n){const{gen:i,compositeRule:o,data:a,opts:c}=e;if(void 0===n)return;const l=r._`${a}${(0,r.getProperty)(t)}`;if(o)return void(0,s.checkStrictMode)(e,`default is ignored for: ${l}`);let u=r._`${l} === undefined`;"empty"===c.useDefaults&&(u=r._`${u} || ${l} === null || ${l} === ""`),i.if(u,r._`${l} = ${(0,r.stringify)(n)}`)}t.assignDefaults=function(e,t){const{properties:n,items:r}=e.schema;if("object"===t&&n)for(const t in n)i(e,t,n[t].default);else"array"===t&&Array.isArray(r)&&r.forEach(((t,n)=>i(e,n,t.default)))}},8313:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const r=n(2558),s=n(8433),i=n(8525),o=n(8433),a=n(8046),c=n(7940),l=n(3121),u=n(1986),f=n(3806),h=n(9234),d=n(8719),p=n(1429);function m({gen:e,validateName:t,schema:n,schemaEnv:r,opts:s},i){s.code.es5?e.func(t,u._`${f.default.data}, ${f.default.valCxt}`,r.$async,(()=>{e.code(u._`"use strict"; ${g(n,s)}`),function(e,t){e.if(f.default.valCxt,(()=>{e.var(f.default.instancePath,u._`${f.default.valCxt}.${f.default.instancePath}`),e.var(f.default.parentData,u._`${f.default.valCxt}.${f.default.parentData}`),e.var(f.default.parentDataProperty,u._`${f.default.valCxt}.${f.default.parentDataProperty}`),e.var(f.default.rootData,u._`${f.default.valCxt}.${f.default.rootData}`),t.dynamicRef&&e.var(f.default.dynamicAnchors,u._`${f.default.valCxt}.${f.default.dynamicAnchors}`)}),(()=>{e.var(f.default.instancePath,u._`""`),e.var(f.default.parentData,u._`undefined`),e.var(f.default.parentDataProperty,u._`undefined`),e.var(f.default.rootData,f.default.data),t.dynamicRef&&e.var(f.default.dynamicAnchors,u._`{}`)}))}(e,s),e.code(i)})):e.func(t,u._`${f.default.data}, ${function(e){return u._`{${f.default.instancePath}="", ${f.default.parentData}, ${f.default.parentDataProperty}, ${f.default.rootData}=${f.default.data}${e.dynamicRef?u._`, ${f.default.dynamicAnchors}={}`:u.nil}}={}`}(s)}`,r.$async,(()=>e.code(g(n,s)).code(i)))}function g(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?u._`/*# sourceURL=${n} */`:u.nil}function y({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function b(e){(0,d.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:n,opts:r,self:s}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(t,s.RULES)&&s.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function _(e,t){if(e.opts.jtd)return $(e,[],!1,t);const n=(0,s.getSchemaTypes)(e.schema);$(e,n,!(0,s.coerceAndCheckDataType)(e,n),t)}function w({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:s}){const i=n.$comment;if(!0===s.$comment)e.code(u._`${f.default.self}.logger.log(${i})`);else if("function"==typeof s.$comment){const n=u.str`${r}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code(u._`${f.default.self}.opts.$comment(${i}, ${n}, ${s}.schema)`)}}function $(e,t,n,r){const{gen:s,schema:a,data:c,allErrors:l,opts:h,self:p}=e,{RULES:m}=p;function g(d){(0,i.shouldUseGroup)(a,d)&&(d.type?(s.if((0,o.checkDataType)(d.type,c,h.strictNumbers)),S(e,d),1===t.length&&t[0]===d.type&&n&&(s.else(),(0,o.reportTypeError)(e)),s.endIf()):S(e,d),l||s.if(u._`${f.default.errors} === ${r||0}`))}!a.$ref||!h.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(a,m)?(h.jtd||function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach((t=>{E(e.dataTypes,t)||k(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const n=[];for(const r of e.dataTypes)E(t,r)?n.push(r):t.includes("integer")&&"number"===r&&n.push("integer");e.dataTypes=n}(e,t)):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&k(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const n=e.self.RULES.all;for(const r in n){const s=n[r];if("object"==typeof s&&(0,i.shouldUseRule)(e.schema,s)){const{type:n}=s.definition;n.length&&!n.some((e=>{return r=e,(n=t).includes(r)||"number"===r&&n.includes("integer");var n,r}))&&k(e,`missing type "${n.join(",")}" for keyword "${r}"`)}}}(e,e.dataTypes))}(e,t),s.block((()=>{for(const e of m.rules)g(e);g(m.post)}))):s.block((()=>P(e,"$ref",m.all.$ref.definition)))}function S(e,t){const{gen:n,schema:r,opts:{useDefaults:s}}=e;s&&(0,a.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,i.shouldUseRule)(r,n)&&P(e,n.keyword,n.definition,t.type)}))}function E(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function k(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,d.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){v(e)&&(b(e),y(e))?function(e){const{schema:t,opts:n,gen:r}=e;m(e,(()=>{n.$comment&&t.$comment&&w(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,d.checkStrictMode)(e,"default is ignored in the schema root")}(e),r.let(f.default.vErrors,null),r.let(f.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",u._`${n}.evaluated`),t.if(u._`${e.evaluated}.dynamicProps`,(()=>t.assign(u._`${e.evaluated}.props`,u._`undefined`))),t.if(u._`${e.evaluated}.dynamicItems`,(()=>t.assign(u._`${e.evaluated}.items`,u._`undefined`)))}(e),_(e),function(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:s,opts:i}=e;n.$async?t.if(u._`${f.default.errors} === 0`,(()=>t.return(f.default.data)),(()=>t.throw(u._`new ${s}(${f.default.vErrors})`))):(t.assign(u._`${r}.errors`,f.default.vErrors),i.unevaluated&&function({gen:e,evaluated:t,props:n,items:r}){n instanceof u.Name&&e.assign(u._`${t}.props`,n),r instanceof u.Name&&e.assign(u._`${t}.items`,r)}(e),t.return(u._`${f.default.errors} === 0`))}(e)}))}(e):m(e,(()=>(0,r.topBoolOrEmptySchema)(e)))};class O{constructor(e,t,n){if((0,c.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",x(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",f.default.errors))}result(e,t,n){this.failResult((0,u.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,u.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(u._`${t} !== undefined && (${(0,u.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?p.reportExtraError:p.reportError)(this,this.def.error,t)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,p.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=u.nil){this.gen.block((()=>{this.check$data(e,n),t()}))}check$data(e=u.nil,t=u.nil){if(!this.$data)return;const{gen:n,schemaCode:r,schemaType:s,def:i}=this;n.if((0,u.or)(u._`${r} === undefined`,t)),e!==u.nil&&n.assign(e,!0),(s.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==u.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:r,it:s}=this;return(0,u.or)(function(){if(n.length){if(!(t instanceof u.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return u._`${(0,o.checkDataTypes)(e,t,s.opts.strictNumbers,o.DataType.Wrong)}`}return u.nil}(),function(){if(r.validateSchema){const n=e.scopeValue("validate$data",{ref:r.validateSchema});return u._`!${n}(${t})`}return u.nil}())}subschema(e,t){const n=(0,l.getSubschema)(this.it,e);(0,l.extendSubschemaData)(n,this.it,e),(0,l.extendSubschemaMode)(n,e);const s={...this.it,...n,items:void 0,props:void 0};return function(e,t){v(e)&&(b(e),y(e))?function(e,t){const{schema:n,gen:r,opts:s}=e;s.$comment&&n.$comment&&w(e),function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,h.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const i=r.const("_errs",f.default.errors);_(e,i),r.var(t,u._`${i} === ${f.default.errors}`)}(e,t):(0,r.boolOrEmptySchema)(e,t)}(s,t),s}mergeEvaluated(e,t){const{it:n,gen:r}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=d.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=d.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:r}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return r.if(t,(()=>this.mergeEvaluated(e,u.Name))),!0}}function P(e,t,n,r){const s=new O(e,n,t);"code"in n?n.code(s,r):s.$data&&n.validate?(0,c.funcKeywordCode)(s,n):"macro"in n?(0,c.macroKeywordCode)(s,n):(n.compile||n.validate)&&(0,c.funcKeywordCode)(s,n)}t.KeywordCxt=O;const j=/^\/(?:[^~]|~0|~1)*$/,A=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function x(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let s,i;if(""===e)return f.default.rootData;if("/"===e[0]){if(!j.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);s=e,i=f.default.rootData}else{const o=A.exec(e);if(!o)throw new Error(`Invalid JSON-pointer: ${e}`);const a=+o[1];if(s=o[2],"#"===s){if(a>=t)throw new Error(c("property/index",a));return r[t-a]}if(a>t)throw new Error(c("data",a));if(i=n[t-a],!s)return i}let o=i;const a=s.split("/");for(const e of a)e&&(i=u._`${i}${(0,u.getProperty)((0,d.unescapeJsonPointer)(e))}`,o=u._`${o} && ${i}`);return o;function c(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}t.getData=x},7940:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const r=n(1986),s=n(3806),i=n(4392),o=n(1429);function a(e){const{gen:t,data:n,it:s}=e;t.if(s.parentData,(()=>t.assign(n,r._`${s.parentData}[${s.parentDataProperty}]`)))}function c(e,t,n){if(void 0===n)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,r.stringify)(n)})}t.macroKeywordCode=function(e,t){const{gen:n,keyword:s,schema:i,parentSchema:o,it:a}=e,l=t.macro.call(a.self,i,o,a),u=c(n,s,l);!1!==a.opts.validateSchema&&a.self.validateSchema(l,!0);const f=n.name("valid");e.subschema({schema:l,schemaPath:r.nil,errSchemaPath:`${a.errSchemaPath}/${s}`,topSchemaRef:u,compositeRule:!0},f),e.pass(f,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var n;const{gen:l,keyword:u,schema:f,parentSchema:h,$data:d,it:p}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(p,t);const m=!d&&t.compile?t.compile.call(p.self,f,h,p):t.validate,g=c(l,u,m),y=l.let("valid");function v(n=(t.async?r._`await `:r.nil)){const o=p.opts.passContext?s.default.this:s.default.self,a=!("compile"in t&&!d||!1===t.schema);l.assign(y,r._`${n}${(0,i.callValidateCode)(e,g,o,a)}`,t.modifying)}function b(e){var n;l.if((0,r.not)(null!==(n=t.valid)&&void 0!==n?n:y),e)}e.block$data(y,(function(){if(!1===t.errors)v(),t.modifying&&a(e),b((()=>e.error()));else{const n=t.async?function(){const e=l.let("ruleErrs",null);return l.try((()=>v(r._`await `)),(t=>l.assign(y,!1).if(r._`${t} instanceof ${p.ValidationError}`,(()=>l.assign(e,r._`${t}.errors`)),(()=>l.throw(t))))),e}():function(){const e=r._`${g}.errors`;return l.assign(e,null),v(r.nil),e}();t.modifying&&a(e),b((()=>function(e,t){const{gen:n}=e;n.if(r._`Array.isArray(${t})`,(()=>{n.assign(s.default.vErrors,r._`${s.default.vErrors} === null ? ${t} : ${s.default.vErrors}.concat(${t})`).assign(s.default.errors,r._`${s.default.vErrors}.length`),(0,o.extendErrors)(e)}),(()=>e.error()))}(e,n)))}})),e.ok(null!==(n=t.valid)&&void 0!==n?n:y)},t.validSchemaType=function(e,t,n=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:r},s,i){if(Array.isArray(s.keyword)?!s.keyword.includes(i):s.keyword!==i)throw new Error("ajv implementation error");const o=s.dependencies;if(null==o?void 0:o.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${i}: ${o.join(",")}`);if(s.validateSchema&&!s.validateSchema(e[i])){const e=`keyword "${i}" value is invalid at path "${r}": `+n.errorsText(s.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}},3121:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const r=n(1986),s=n(8719);t.getSubschema=function(e,{keyword:t,schemaProp:n,schema:i,schemaPath:o,errSchemaPath:a,topSchemaRef:c}){if(void 0!==t&&void 0!==i)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const i=e.schema[t];return void 0===n?{schema:i,schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:i[n],schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}${(0,r.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,s.escapeFragment)(n)}`}}if(void 0!==i){if(void 0===o||void 0===a||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:o,topSchemaRef:c,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:n,dataPropType:i,data:o,dataTypes:a,propertyName:c}){if(void 0!==o&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:l}=t;if(void 0!==n){const{errorPath:o,dataPathArr:a,opts:c}=t;u(l.let("data",r._`${t.data}${(0,r.getProperty)(n)}`,!0)),e.errorPath=r.str`${o}${(0,s.getErrorPath)(n,i,c.jsPropertySyntax)}`,e.parentDataProperty=r._`${n}`,e.dataPathArr=[...a,e.parentDataProperty]}function u(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}void 0!==o&&(u(o instanceof r.Name?o:l.let("data",o,!0)),void 0!==c&&(e.propertyName=c)),a&&(e.dataTypes=a)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:s,allErrors:i}){void 0!==r&&(e.compositeRule=r),void 0!==s&&(e.createErrors=s),void 0!==i&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=n}},9649:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var r=n(8313);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return r.KeywordCxt}});var s=n(1986);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return s._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return s.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return s.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return s.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return s.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return s.CodeGen}});const i=n(4081),o=n(8343),a=n(6075),c=n(3837),l=n(1986),u=n(9234),f=n(8433),h=n(8719),d=n(6623),p=n(7308),m=(e,t)=>new RegExp(e,t);m.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],y=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},_=200;function w(e){var t,n,r,s,i,o,a,c,l,u,f,h,d,g,y,v,b,w,$,S,E,k,O,P,j;const A=e.strict,x=null===(t=e.code)||void 0===t?void 0:t.optimize,N=!0===x||void 0===x?1:x||0,C=null!==(r=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==r?r:m,M=null!==(s=e.uriResolver)&&void 0!==s?s:p.default;return{strictSchema:null===(o=null!==(i=e.strictSchema)&&void 0!==i?i:A)||void 0===o||o,strictNumbers:null===(c=null!==(a=e.strictNumbers)&&void 0!==a?a:A)||void 0===c||c,strictTypes:null!==(u=null!==(l=e.strictTypes)&&void 0!==l?l:A)&&void 0!==u?u:"log",strictTuples:null!==(h=null!==(f=e.strictTuples)&&void 0!==f?f:A)&&void 0!==h?h:"log",strictRequired:null!==(g=null!==(d=e.strictRequired)&&void 0!==d?d:A)&&void 0!==g&&g,code:e.code?{...e.code,optimize:N,regExp:C}:{optimize:N,regExp:C},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:_,loopEnum:null!==(v=e.loopEnum)&&void 0!==v?v:_,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===($=e.inlineRefs)||void 0===$||$,schemaId:null!==(S=e.schemaId)&&void 0!==S?S:"$id",addUsedSchema:null===(E=e.addUsedSchema)||void 0===E||E,validateSchema:null===(k=e.validateSchema)||void 0===k||k,validateFormats:null===(O=e.validateFormats)||void 0===O||O,unicodeRegExp:null===(P=e.unicodeRegExp)||void 0===P||P,int32range:null===(j=e.int32range)||void 0===j||j,uriResolver:M}}class ${constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...w(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:y,es5:t,lines:n}),this.logger=function(e){if(!1===e)return A;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const r=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),S.call(this,v,e,"NOT SUPPORTED"),S.call(this,b,e,"DEPRECATED","warn"),this._metaOpts=j.call(this),e.formats&&O.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&P.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),k.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let r=d;"id"===n&&(r={...d},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const r=n(t);return"$async"in n||(this.errors=n.errors),r}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await s.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||i.call(this,n)}async function s(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function i(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;return a.call(this,t),await c.call(this,t.missingSchema),i.call(this,e)}}function a({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const n=await l.call(this,e);this.refs[e]||await s.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function l(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,r);return this}let s;if("object"==typeof e){const{schemaId:t}=this.opts;if(s=e[t],void 0!==s&&"string"!=typeof s)throw new Error(`schema ${t} must be string`)}return t=(0,u.normalizeId)(t||s),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const r=this.validate(n,e);if(!r&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return r}getSchema(e){let t;for(;"string"==typeof(t=E.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,r=new c.SchemaEnv({schema:{},schemaId:n});if(t=c.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=E.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,u.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(N.call(this,n,t),!t)return(0,h.eachItem)(n,(e=>C.call(this,e))),this;I.call(this,t);const r={...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)};return(0,h.eachItem)(n,0===r.type.length?e=>C.call(this,e,r):e=>r.type.forEach((t=>C.call(this,e,r,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex((t=>t.keyword===e));t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map((e=>`${n}${e.instancePath} ${e.message}`)).reduce(((e,n)=>e+t+n)):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const r of t){const t=r.split("/").slice(1);let s=e;for(const e of t)s=s[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:r}=t.definition,i=s[e];r&&i&&(s[e]=D(i))}}return e}_removeAllSchemas(e,t){for(const n in e){const r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,s=this.opts.addUsedSchema){let i;const{schemaId:o}=this.opts;if("object"==typeof e)i=e[o];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let a=this._cache.get(e);if(void 0!==a)return a;n=(0,u.normalizeId)(i||n);const l=u.getSchemaRefs.call(this,e,n);return a=new c.SchemaEnv({schema:e,schemaId:o,meta:t,baseId:n,localRefs:l}),this._cache.set(a.schema,a),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=a),r&&this.validateSchema(e,!0),a}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):c.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,e)}finally{this.opts=t}}}function S(e,t,n,r="error"){for(const s in e){const i=s;i in t&&this.logger[r](`${n}: option ${s}. ${e[i]}`)}}function E(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function k(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function O(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function P(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function j(){const e={...this.opts};for(const t of g)delete e[t];return e}t.default=$,$.ValidationError=i.default,$.MissingRefError=o.default;const A={log(){},warn(){},error(){}},x=/^[a-z_$][a-z0-9_$:-]*$/i;function N(e,t){const{RULES:n}=this;if((0,h.eachItem)(e,(e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!x.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function C(e,t,n){var r;const s=null==t?void 0:t.post;if(n&&s)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:i}=this;let o=s?i.post:i.rules.find((({type:e})=>e===n));if(o||(o={type:n,rules:[]},i.rules.push(o)),i.keywords[e]=!0,!t)return;const a={keyword:e,definition:{...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)}};t.before?M.call(this,o,a,t.before):o.rules.push(a),i.all[e]=a,null===(r=t.implements)||void 0===r||r.forEach((e=>this.addKeyword(e)))}function M(e,t,n){const r=e.rules.findIndex((e=>e.keyword===n));r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function I(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=D(t)),e.validateSchema=this.compile(t,!0))}const T={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function D(e){return{anyOf:[e,T]}}},8410:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9378);r.code='require("ajv/dist/runtime/equal").default',t.default=r},4982:(e,t)=>{"use strict";function n(e){const t=e.length;let n,r=0,s=0;for(;s<t;)r++,n=e.charCodeAt(s++),n>=55296&&n<=56319&&s<t&&(n=e.charCodeAt(s),56320==(64512&n)&&s++);return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.code='require("ajv/dist/runtime/ucs2length").default'},7308:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2854);r.code='require("ajv/dist/runtime/uri").default',t.default=r},4081:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=n},8187:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const r=n(1986),s=n(8719),i={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:r}=t;Array.isArray(r)?o(e,r):(0,s.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function o(e,t){const{gen:n,schema:i,data:o,keyword:a,it:c}=e;c.items=!0;const l=n.const("len",r._`${o}.length`);if(!1===i)e.setParams({len:t.length}),e.pass(r._`${l} <= ${t.length}`);else if("object"==typeof i&&!(0,s.alwaysValidSchema)(c,i)){const i=n.var("valid",r._`${l} <= ${t.length}`);n.if((0,r.not)(i),(()=>function(i){n.forRange("i",t.length,l,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:s.Type.Num},i),c.allErrors||n.if((0,r.not)(i),(()=>n.break()))}))}(i))),e.ok(i)}}t.validateAdditionalItems=o,t.default=i},7025:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4392),s=n(1986),i=n(3806),o=n(8719),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>s._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:n,parentSchema:a,data:c,errsCount:l,it:u}=e;if(!l)throw new Error("ajv implementation error");const{allErrors:f,opts:h}=u;if(u.props=!0,"all"!==h.removeAdditional&&(0,o.alwaysValidSchema)(u,n))return;const d=(0,r.allSchemaProperties)(a.properties),p=(0,r.allSchemaProperties)(a.patternProperties);function m(e){t.code(s._`delete ${c}[${e}]`)}function g(r){if("all"===h.removeAdditional||h.removeAdditional&&!1===n)m(r);else{if(!1===n)return e.setParams({additionalProperty:r}),e.error(),void(f||t.break());if("object"==typeof n&&!(0,o.alwaysValidSchema)(u,n)){const n=t.name("valid");"failing"===h.removeAdditional?(y(r,n,!1),t.if((0,s.not)(n),(()=>{e.reset(),m(r)}))):(y(r,n),f||t.if((0,s.not)(n),(()=>t.break())))}}}function y(t,n,r){const s={keyword:"additionalProperties",dataProp:t,dataPropType:o.Type.Str};!1===r&&Object.assign(s,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(s,n)}t.forIn("key",c,(n=>{d.length||p.length?t.if(function(n){let i;if(d.length>8){const e=(0,o.schemaRefOrVal)(u,a.properties,"properties");i=(0,r.isOwnProperty)(t,e,n)}else i=d.length?(0,s.or)(...d.map((e=>s._`${n} === ${e}`))):s.nil;return p.length&&(i=(0,s.or)(i,...p.map((t=>s._`${(0,r.usePattern)(e,t)}.test(${n})`)))),(0,s.not)(i)}(n),(()=>g(n))):g(n)})),e.ok(s._`${l} === ${i.default.errors}`)}};t.default=a},3555:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8719),s={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:s}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const i=t.name("valid");n.forEach(((t,n)=>{if((0,r.alwaysValidSchema)(s,t))return;const o=e.subschema({keyword:"allOf",schemaProp:n},i);e.ok(i),e.mergeEvaluated(o)}))}};t.default=s},3324:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(4392).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=r},2126:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s=n(8719),i={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?r.str`must contain at least ${e} valid item(s)`:r.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?r._`{minContains: ${e}}`:r._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:i,data:o,it:a}=e;let c,l;const{minContains:u,maxContains:f}=i;a.opts.next?(c=void 0===u?1:u,l=f):c=1;const h=t.const("len",r._`${o}.length`);if(e.setParams({min:c,max:l}),void 0===l&&0===c)return void(0,s.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==l&&c>l)return(0,s.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,s.alwaysValidSchema)(a,n)){let t=r._`${h} >= ${c}`;return void 0!==l&&(t=r._`${t} && ${h} <= ${l}`),void e.pass(t)}a.items=!0;const d=t.name("valid");function p(){const e=t.name("_valid"),n=t.let("count",0);m(e,(()=>t.if(e,(()=>function(e){t.code(r._`${e}++`),void 0===l?t.if(r._`${e} >= ${c}`,(()=>t.assign(d,!0).break())):(t.if(r._`${e} > ${l}`,(()=>t.assign(d,!1).break())),1===c?t.assign(d,!0):t.if(r._`${e} >= ${c}`,(()=>t.assign(d,!0))))}(n)))))}function m(n,r){t.forRange("i",0,h,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:s.Type.Num,compositeRule:!0},n),r()}))}void 0===l&&1===c?m(d,(()=>t.if(d,(()=>t.break())))):0===c?(t.let(d,!0),void 0!==l&&t.if(r._`${o}.length > 0`,p)):(t.let(d,!1),p()),e.result(d,(()=>e.reset()))}};t.default=i},9114:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const r=n(1986),s=n(8719),i=n(4392);t.error={message:({params:{property:e,depsCount:t,deps:n}})=>{const s=1===t?"property":"properties";return r.str`must have ${s} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:n,missingProperty:s}})=>r._`{property: ${e},
7
7
  missingProperty: ${s},
8
8
  depsCount: ${t},
9
- deps: ${n}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const r in e)"__proto__"!==r&&((Array.isArray(e[r])?t:n)[r]=e[r]);return[t,n]}(e);a(e,t),c(e,n)}};function a(e,t=e.schema){const{gen:n,data:s,it:o}=e;if(0===Object.keys(t).length)return;const a=n.let("missing");for(const c in t){const l=t[c];if(0===l.length)continue;const u=(0,i.propertyInData)(n,s,c,o.opts.ownProperties);e.setParams({property:c,depsCount:l.length,deps:l.join(", ")}),o.allErrors?n.if(u,(()=>{for(const t of l)(0,i.checkReportMissingProp)(e,t)})):(n.if(r._`${u} && (${(0,i.checkMissingProp)(e,l,a)})`),(0,i.reportMissingProp)(e,a),n.else())}}function c(e,t=e.schema){const{gen:n,data:r,keyword:o,it:a}=e,c=n.name("valid");for(const l in t)(0,s.alwaysValidSchema)(a,t[l])||(n.if((0,i.propertyInData)(n,r,l,a.opts.ownProperties),(()=>{const t=e.subschema({keyword:o,schemaProp:l},c);e.mergeValidEvaluated(t,c)}),(()=>n.var(c,!0))),e.ok(c))}t.validatePropertyDeps=a,t.validateSchemaDeps=c,t.default=o},3312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s=n(8719),i={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>r.str`must match "${e.ifClause}" schema`,params:({params:e})=>r._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:i}=e;void 0===n.then&&void 0===n.else&&(0,s.checkStrictMode)(i,'"if" without "then" and "else" is ignored');const a=o(i,"then"),c=o(i,"else");if(!a&&!c)return;const l=t.let("valid",!0),u=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(t)}(),e.reset(),a&&c){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(u,f("then",n),f("else",n))}else a?t.if(u,f("then")):t.if((0,r.not)(u),f("else"));function f(n,s){return()=>{const i=e.subschema({keyword:n},u);t.assign(l,u),e.mergeValidEvaluated(i,l),s?t.assign(s,r._`${n}`):e.setParams({ifClause:n})}}e.pass(l,(()=>e.error(!0)))}};function o(e,t){const n=e.schema[t];return void 0!==n&&!(0,s.alwaysValidSchema)(e,n)}t.default=i},7914:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8187),s=n(6685),i=n(3113),o=n(763),a=n(2126),c=n(9114),l=n(9622),u=n(7025),f=n(9867),h=n(2008),d=n(6054),p=n(3324),m=n(5943),g=n(3555),y=n(3312),v=n(3212);t.default=function(e=!1){const t=[d.default,p.default,m.default,g.default,y.default,v.default,l.default,u.default,c.default,f.default,h.default];return e?t.push(s.default,o.default):t.push(r.default,i.default),t.push(a.default),t}},3113:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const r=n(1986),s=n(8719),i=n(4392),o={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return a(e,"additionalItems",t);n.items=!0,(0,s.alwaysValidSchema)(n,t)||e.ok((0,i.validateArray)(e))}};function a(e,t,n=e.schema){const{gen:i,parentSchema:o,data:a,keyword:c,it:l}=e;!function(e){const{opts:r,errSchemaPath:i}=l,o=n.length,a=o===e.minItems&&(o===e.maxItems||!1===e[t]);if(r.strictTuples&&!a){const e=`"${c}" is ${o}-tuple, but minItems or maxItems/${t} are not specified or different at path "${i}"`;(0,s.checkStrictMode)(l,e,r.strictTuples)}}(o),l.opts.unevaluated&&n.length&&!0!==l.items&&(l.items=s.mergeEvaluated.items(i,n.length,l.items));const u=i.name("valid"),f=i.const("len",r._`${a}.length`);n.forEach(((t,n)=>{(0,s.alwaysValidSchema)(l,t)||(i.if(r._`${f} > ${n}`,(()=>e.subschema({keyword:c,schemaProp:n,dataProp:n},u))),e.ok(u))}))}t.validateTuple=a,t.default=o},763:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s=n(8719),i=n(4392),o=n(8187),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:a}=n;r.items=!0,(0,s.alwaysValidSchema)(r,t)||(a?(0,o.validateAdditionalItems)(e,a):e.ok((0,i.validateArray)(e)))}};t.default=a},6054:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8719),s={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:s}=e;if((0,r.alwaysValidSchema)(s,n))return void e.fail();const i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=s},5943:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s=n(8719),i={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>r._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:i,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(o.opts.discriminator&&i.discriminator)return;const a=n,c=t.let("valid",!1),l=t.let("passing",null),u=t.name("_valid");e.setParams({passing:l}),t.block((function(){a.forEach(((n,i)=>{let a;(0,s.alwaysValidSchema)(o,n)?t.var(u,!0):a=e.subschema({keyword:"oneOf",schemaProp:i,compositeRule:!0},u),i>0&&t.if(r._`${u} && ${c}`).assign(c,!1).assign(l,r._`[${l}, ${i}]`).else(),t.if(u,(()=>{t.assign(c,!0),t.assign(l,i),a&&e.mergeEvaluated(a,r.Name)}))}))})),e.result(c,(()=>e.reset()),(()=>e.error(!0)))}};t.default=i},2008:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4392),s=n(1986),i=n(8719),o=n(8719),a={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:a,parentSchema:c,it:l}=e,{opts:u}=l,f=(0,r.allSchemaProperties)(n),h=f.filter((e=>(0,i.alwaysValidSchema)(l,n[e])));if(0===f.length||h.length===f.length&&(!l.opts.unevaluated||!0===l.props))return;const d=u.strictSchema&&!u.allowMatchingProperties&&c.properties,p=t.name("valid");!0===l.props||l.props instanceof s.Name||(l.props=(0,o.evaluatedPropsToName)(t,l.props));const{props:m}=l;function g(e){for(const t in d)new RegExp(e).test(t)&&(0,i.checkStrictMode)(l,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function y(n){t.forIn("key",a,(i=>{t.if(s._`${(0,r.usePattern)(e,n)}.test(${i})`,(()=>{const r=h.includes(n);r||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:i,dataPropType:o.Type.Str},p),l.opts.unevaluated&&!0!==m?t.assign(s._`${m}[${i}]`,!0):r||l.allErrors||t.if((0,s.not)(p),(()=>t.break()))}))}))}!function(){for(const e of f)d&&g(e),l.allErrors?y(e):(t.var(p,!0),y(e),t.if(p))}()}};t.default=a},6685:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3113),s={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,r.validateTuple)(e,"items")};t.default=s},9867:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8313),s=n(4392),i=n(8719),o=n(7025),a={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:a,data:c,it:l}=e;"all"===l.opts.removeAdditional&&void 0===a.additionalProperties&&o.default.code(new r.KeywordCxt(l,o.default,"additionalProperties"));const u=(0,s.allSchemaProperties)(n);for(const e of u)l.definedProperties.add(e);l.opts.unevaluated&&u.length&&!0!==l.props&&(l.props=i.mergeEvaluated.props(t,(0,i.toHash)(u),l.props));const f=u.filter((e=>!(0,i.alwaysValidSchema)(l,n[e])));if(0===f.length)return;const h=t.name("valid");for(const n of f)d(n)?p(n):(t.if((0,s.propertyInData)(t,c,n,l.opts.ownProperties)),p(n),l.allErrors||t.else().var(h,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(h);function d(e){return l.opts.useDefaults&&!l.compositeRule&&void 0!==n[e].default}function p(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},h)}}};t.default=a},9622:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s=n(8719),i={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>r._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:i,it:o}=e;if((0,s.alwaysValidSchema)(o,n))return;const a=t.name("valid");t.forIn("key",i,(n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},a),t.if((0,r.not)(a),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(a)}};t.default=i},3212:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8719),s={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,r.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};t.default=s},4392:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const r=n(1986),s=n(8719),i=n(3806),o=n(8719);function a(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:r._`Object.prototype.hasOwnProperty`})}function c(e,t,n){return r._`${a(e)}.call(${t}, ${n})`}function l(e,t,n,s){const i=r._`${t}${(0,r.getProperty)(n)} === undefined`;return s?(0,r.or)(i,(0,r.not)(c(e,t,n))):i}function u(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:n,data:s,it:i}=e;n.if(l(n,s,t,i.opts.ownProperties),(()=>{e.setParams({missingProperty:r._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:n}},s,i){return(0,r.or)(...s.map((s=>(0,r.and)(l(e,t,s,n.ownProperties),r._`${i} = ${s}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=a,t.isOwnProperty=c,t.propertyInData=function(e,t,n,s){const i=r._`${t}${(0,r.getProperty)(n)} !== undefined`;return s?r._`${i} && ${c(e,t,n)}`:i},t.noPropertyInData=l,t.allSchemaProperties=u,t.schemaProperties=function(e,t){return u(t).filter((n=>!(0,s.alwaysValidSchema)(e,t[n])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:n,topSchemaRef:s,schemaPath:o,errorPath:a},it:c},l,u,f){const h=f?r._`${e}, ${t}, ${s}${o}`:t,d=[[i.default.instancePath,(0,r.strConcat)(i.default.instancePath,a)],[i.default.parentData,c.parentData],[i.default.parentDataProperty,c.parentDataProperty],[i.default.rootData,i.default.rootData]];c.opts.dynamicRef&&d.push([i.default.dynamicAnchors,i.default.dynamicAnchors]);const p=r._`${h}, ${n.object(...d)}`;return u!==r.nil?r._`${l}.call(${u}, ${p})`:r._`${l}(${p})`};const f=r._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},n){const s=t.unicodeRegExp?"u":"",{regExp:i}=t.code,a=i(n,s);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:r._`${"new RegExp"===i.code?f:(0,o.useFunc)(e,i)}(${n}, ${s})`})},t.validateArray=function(e){const{gen:t,data:n,keyword:i,it:o}=e,a=t.name("valid");if(o.allErrors){const e=t.let("valid",!0);return c((()=>t.assign(e,!1))),e}return t.var(a,!0),c((()=>t.break())),a;function c(o){const c=t.const("len",r._`${n}.length`);t.forRange("i",0,c,(n=>{e.subschema({keyword:i,dataProp:n,dataPropType:s.Type.Num},a),t.if((0,r.not)(a),o)}))}},t.validateUnion=function(e){const{gen:t,schema:n,keyword:i,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some((e=>(0,s.alwaysValidSchema)(o,e)))&&!o.opts.unevaluated)return;const a=t.let("valid",!1),c=t.name("_valid");t.block((()=>n.forEach(((n,s)=>{const o=e.subschema({keyword:i,schemaProp:s,compositeRule:!0},c);t.assign(a,r._`${a} || ${c}`),e.mergeValidEvaluated(o,c)||t.if((0,r.not)(a))})))),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}},9731:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=n},9160:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9731),s=n(19),i=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",r.default,s.default];t.default=i},19:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const r=n(8343),s=n(4392),i=n(1986),o=n(3806),a=n(3837),c=n(8719),l={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:s}=e,{baseId:o,schemaEnv:c,validateName:l,opts:h,self:d}=s,{root:p}=c;if(("#"===n||"#/"===n)&&o===p.baseId)return function(){if(c===p)return f(e,l,c,c.$async);const n=t.scopeValue("root",{ref:p});return f(e,i._`${n}.validate`,p,p.$async)}();const m=a.resolveRef.call(d,p,o,n);if(void 0===m)throw new r.default(s.opts.uriResolver,o,n);return m instanceof a.SchemaEnv?function(t){const n=u(e,t);f(e,n,t,t.$async)}(m):function(r){const s=t.scopeValue("schema",!0===h.code.source?{ref:r,code:(0,i.stringify)(r)}:{ref:r}),o=t.name("valid"),a=e.subschema({schema:r,dataTypes:[],schemaPath:i.nil,topSchemaRef:s,errSchemaPath:n},o);e.mergeEvaluated(a),e.ok(o)}(m)}};function u(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):i._`${n.scopeValue("wrapper",{ref:t})}.validate`}function f(e,t,n,r){const{gen:a,it:l}=e,{allErrors:u,schemaEnv:f,opts:h}=l,d=h.passContext?o.default.this:i.nil;function p(e){const t=i._`${e}.errors`;a.assign(o.default.vErrors,i._`${o.default.vErrors} === null ? ${t} : ${o.default.vErrors}.concat(${t})`),a.assign(o.default.errors,i._`${o.default.vErrors}.length`)}function m(e){var t;if(!l.opts.unevaluated)return;const r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==l.props)if(r&&!r.dynamicProps)void 0!==r.props&&(l.props=c.mergeEvaluated.props(a,r.props,l.props));else{const t=a.var("props",i._`${e}.evaluated.props`);l.props=c.mergeEvaluated.props(a,t,l.props,i.Name)}if(!0!==l.items)if(r&&!r.dynamicItems)void 0!==r.items&&(l.items=c.mergeEvaluated.items(a,r.items,l.items));else{const t=a.var("items",i._`${e}.evaluated.items`);l.items=c.mergeEvaluated.items(a,t,l.items,i.Name)}}r?function(){if(!f.$async)throw new Error("async schema referenced by sync schema");const n=a.let("valid");a.try((()=>{a.code(i._`await ${(0,s.callValidateCode)(e,t,d)}`),m(t),u||a.assign(n,!0)}),(e=>{a.if(i._`!(${e} instanceof ${l.ValidationError})`,(()=>a.throw(e))),p(e),u||a.assign(n,!1)})),e.ok(n)}():e.result((0,s.callValidateCode)(e,t,d),(()=>m(t)),(()=>p(t)))}t.getValidate=u,t.callRef=f,t.default=l},7168:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s=n(8690),i=n(3837),o=n(8719),a={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===s.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>r._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:a,parentSchema:c,it:l}=e,{oneOf:u}=c;if(!l.opts.discriminator)throw new Error("discriminator: requires discriminator option");const f=a.propertyName;if("string"!=typeof f)throw new Error("discriminator: requires propertyName");if(a.mapping)throw new Error("discriminator: mapping is not supported");if(!u)throw new Error("discriminator: requires oneOf keyword");const h=t.let("valid",!1),d=t.const("tag",r._`${n}${(0,r.getProperty)(f)}`);function p(n){const s=t.name("valid"),i=e.subschema({keyword:"oneOf",schemaProp:n},s);return e.mergeEvaluated(i,r.Name),s}t.if(r._`typeof ${d} == "string"`,(()=>function(){const n=function(){var e;const t={},n=s(c);let r=!0;for(let t=0;t<u.length;t++){let c=u[t];(null==c?void 0:c.$ref)&&!(0,o.schemaHasRulesButRef)(c,l.self.RULES)&&(c=i.resolveRef.call(l.self,l.schemaEnv.root,l.baseId,null==c?void 0:c.$ref),c instanceof i.SchemaEnv&&(c=c.schema));const h=null===(e=null==c?void 0:c.properties)||void 0===e?void 0:e[f];if("object"!=typeof h)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);r=r&&(n||s(c)),a(h,t)}if(!r)throw new Error(`discriminator: "${f}" must be required`);return t;function s({required:e}){return Array.isArray(e)&&e.includes(f)}function a(e,t){if(e.const)h(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${f}" must have "const" or "enum"`);for(const n of e.enum)h(n,t)}}function h(e,n){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${f}" values must be unique strings`);t[e]=n}}();t.if(!1);for(const e in n)t.elseIf(r._`${d} === ${e}`),t.assign(h,p(n[e]));t.else(),e.error(!1,{discrError:s.DiscrError.Mapping,tag:d,tagName:f}),t.endIf()}()),(()=>e.error(!1,{discrError:s.DiscrError.Tag,tag:d,tagName:f}))),e.ok(h)}};t.default=a},8690:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"},9222:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9160),s=n(1437),i=n(7914),o=n(8284),a=n(4015),c=[r.default,s.default,(0,i.default)(),o.default,a.metadataVocabulary,a.contentVocabulary];t.default=c},3844:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>r.str`must match format "${e}"`,params:({schemaCode:e})=>r._`{format: ${e}}`},code(e,t){const{gen:n,data:s,$data:i,schema:o,schemaCode:a,it:c}=e,{opts:l,errSchemaPath:u,schemaEnv:f,self:h}=c;l.validateFormats&&(i?function(){const i=n.scopeValue("formats",{ref:h.formats,code:l.code.formats}),o=n.const("fDef",r._`${i}[${a}]`),c=n.let("fType"),u=n.let("format");n.if(r._`typeof ${o} == "object" && !(${o} instanceof RegExp)`,(()=>n.assign(c,r._`${o}.type || "string"`).assign(u,r._`${o}.validate`)),(()=>n.assign(c,r._`"string"`).assign(u,o))),e.fail$data((0,r.or)(!1===l.strictSchema?r.nil:r._`${a} && !${u}`,function(){const e=f.$async?r._`(${o}.async ? await ${u}(${s}) : ${u}(${s}))`:r._`${u}(${s})`,n=r._`(typeof ${u} == "function" ? ${e} : ${u}.test(${s}))`;return r._`${u} && ${u} !== true && ${c} === ${t} && !${n}`}()))}():function(){const i=h.formats[o];if(!i)return void function(){if(!1!==l.strictSchema)throw new Error(e());function e(){return`unknown format "${o}" ignored in schema at path "${u}"`}h.logger.warn(e())}();if(!0===i)return;const[a,c,d]=function(e){const t=e instanceof RegExp?(0,r.regexpCode)(e):l.code.formats?r._`${l.code.formats}${(0,r.getProperty)(o)}`:void 0,s=n.scopeValue("formats",{key:o,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,s]:[e.type||"string",e.validate,r._`${s}.validate`]}(i);a===t&&e.pass(function(){if("object"==typeof i&&!(i instanceof RegExp)&&i.async){if(!f.$async)throw new Error("async format in sync schema");return r._`await ${d}(${s})`}return"function"==typeof c?r._`${d}(${s})`:r._`${d}.test(${s})`}())}())}};t.default=s},8284:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=[n(3844).default];t.default=r},4015:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},8249:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s=n(8719),i=n(8410),o={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>r._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:o,schemaCode:a,schema:c}=e;o||c&&"object"==typeof c?e.fail$data(r._`!${(0,s.useFunc)(t,i.default)}(${n}, ${a})`):e.fail(r._`${c} !== ${n}`)}};t.default=o},297:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s=n(8719),i=n(8410),o={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>r._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:o,schema:a,schemaCode:c,it:l}=e;if(!o&&0===a.length)throw new Error("enum must have non-empty array");const u=a.length>=l.opts.loopEnum;let f;const h=()=>null!=f?f:f=(0,s.useFunc)(t,i.default);let d;if(u||o)d=t.let("valid"),e.block$data(d,(function(){t.assign(d,!1),t.forOf("v",c,(e=>t.if(r._`${h()}(${n}, ${e})`,(()=>t.assign(d,!0).break()))))}));else{if(!Array.isArray(a))throw new Error("ajv implementation error");const e=t.const("vSchema",c);d=(0,r.or)(...a.map(((t,s)=>function(e,t){const s=a[t];return"object"==typeof s&&null!==s?r._`${h()}(${n}, ${e}[${t}])`:r._`${n} === ${s}`}(e,s))))}e.pass(d)}};t.default=o},1437:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1754),s=n(801),i=n(6130),o=n(3362),a=n(3952),c=n(6208),l=n(804),u=n(4710),f=n(8249),h=n(297),d=[r.default,s.default,i.default,o.default,a.default,c.default,l.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},f.default,h.default];t.default=d},804:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:s}=e,i="maxItems"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`${n}.length ${i} ${s}`)}};t.default=s},6130:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s=n(8719),i=n(4982),o={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:o,it:a}=e,c="maxLength"===t?r.operators.GT:r.operators.LT,l=!1===a.opts.unicode?r._`${n}.length`:r._`${(0,s.useFunc)(e.gen,i.default)}(${n})`;e.fail$data(r._`${l} ${c} ${o}`)}};t.default=o},1754:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s=r.operators,i={maximum:{okStr:"<=",ok:s.LTE,fail:s.GT},minimum:{okStr:">=",ok:s.GTE,fail:s.LT},exclusiveMaximum:{okStr:"<",ok:s.LT,fail:s.GTE},exclusiveMinimum:{okStr:">",ok:s.GT,fail:s.LTE}},o={message:({keyword:e,schemaCode:t})=>r.str`must be ${i[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${i[e].okStr}, limit: ${t}}`},a={keyword:Object.keys(i),type:"number",schemaType:"number",$data:!0,error:o,code(e){const{keyword:t,data:n,schemaCode:s}=e;e.fail$data(r._`${n} ${i[t].fail} ${s} || isNaN(${n})`)}};t.default=a},3952:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:s}=e,i="maxProperties"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`Object.keys(${n}).length ${i} ${s}`)}};t.default=s},801:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>r.str`must be multiple of ${e}`,params:({schemaCode:e})=>r._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:s,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),c=o?r._`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:r._`${a} !== parseInt(${a})`;e.fail$data(r._`(${s} === 0 || (${a} = ${n}/${s}, ${c}))`)}};t.default=s},3362:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4392),s=n(1986),i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>s.str`must match pattern "${e}"`,params:({schemaCode:e})=>s._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:i,schemaCode:o,it:a}=e,c=a.opts.unicodeRegExp?"u":"",l=n?s._`(new RegExp(${o}, ${c}))`:(0,r.usePattern)(e,i);e.fail$data(s._`!${l}.test(${t})`)}};t.default=i},6208:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4392),s=n(1986),i=n(8719),o={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>s.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>s._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:o,data:a,$data:c,it:l}=e,{opts:u}=l;if(!c&&0===n.length)return;const f=n.length>=u.loopRequired;if(l.allErrors?function(){if(f||c)e.block$data(s.nil,h);else for(const t of n)(0,r.checkReportMissingProp)(e,t)}():function(){const i=t.let("missing");if(f||c){const n=t.let("valid",!0);e.block$data(n,(()=>function(n,i){e.setParams({missingProperty:n}),t.forOf(n,o,(()=>{t.assign(i,(0,r.propertyInData)(t,a,n,u.ownProperties)),t.if((0,s.not)(i),(()=>{e.error(),t.break()}))}),s.nil)}(i,n))),e.ok(n)}else t.if((0,r.checkMissingProp)(e,n,i)),(0,r.reportMissingProp)(e,i),t.else()}(),u.strictRequired){const t=e.parentSchema.properties,{definedProperties:r}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!r.has(e)){const t=`required property "${e}" is not defined at "${l.schemaEnv.baseId+l.errSchemaPath}" (strictRequired)`;(0,i.checkStrictMode)(l,t,l.opts.strictRequired)}}function h(){t.forOf("prop",o,(n=>{e.setParams({missingProperty:n}),t.if((0,r.noPropertyInData)(t,a,n,u.ownProperties),(()=>e.error()))}))}}};t.default=o},4710:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8433),s=n(1986),i=n(8719),o=n(8410),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>s.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>s._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:n,$data:a,schema:c,parentSchema:l,schemaCode:u,it:f}=e;if(!a&&!c)return;const h=t.let("valid"),d=l.items?(0,r.getSchemaTypes)(l.items):[];function p(i,o){const a=t.name("item"),c=(0,r.checkDataTypes)(d,a,f.opts.strictNumbers,r.DataType.Wrong),l=t.const("indices",s._`{}`);t.for(s._`;${i}--;`,(()=>{t.let(a,s._`${n}[${i}]`),t.if(c,s._`continue`),d.length>1&&t.if(s._`typeof ${a} == "string"`,s._`${a} += "_"`),t.if(s._`typeof ${l}[${a}] == "number"`,(()=>{t.assign(o,s._`${l}[${a}]`),e.error(),t.assign(h,!1).break()})).code(s._`${l}[${a}] = ${i}`)}))}function m(r,a){const c=(0,i.useFunc)(t,o.default),l=t.name("outer");t.label(l).for(s._`;${r}--;`,(()=>t.for(s._`${a} = ${r}; ${a}--;`,(()=>t.if(s._`${c}(${n}[${r}], ${n}[${a}])`,(()=>{e.error(),t.assign(h,!1).break(l)}))))))}e.block$data(h,(function(){const r=t.let("i",s._`${n}.length`),i=t.let("j");e.setParams({i:r,j:i}),t.assign(h,!0),t.if(s._`${r} > 1`,(()=>(d.length>0&&!d.some((e=>"object"===e||"array"===e))?p:m)(r,i)))}),s._`${u} === false`),e.ok(h)}};t.default=a},1817:e=>{"use strict";var t=e.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),n(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function n(e,r,s,i,o,a,c,l,u,f){if(i&&"object"==typeof i&&!Array.isArray(i)){for(var h in r(i,o,a,c,l,u,f),i){var d=i[h];if(Array.isArray(d)){if(h in t.arrayKeywords)for(var p=0;p<d.length;p++)n(e,r,s,d[p],o+"/"+h+"/"+p,a,o,h,i,p)}else if(h in t.propsKeywords){if(d&&"object"==typeof d)for(var m in d)n(e,r,s,d[m],o+"/"+h+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),a,o,h,i,m)}else(h in t.keywords||e.allKeys&&!(h in t.skipKeywords))&&n(e,r,s,d,o+"/"+h,a,o,h,i)}s(i,o,a,c,l,u,f)}}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},2854:function(e,t){!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,s=1;s<r;++s)t[s]=t[s].slice(1,-1);return t[r]=t[r].slice(1),t.join("")}return t[0]}function n(e){return"(?:"+e+")"}function r(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function s(e){return e.toUpperCase()}function i(e){var r="[A-Za-z]",s="[0-9]",i=t(s,"[A-Fa-f]"),o=n(n("%[EFef]"+i+"%"+i+i+"%"+i+i)+"|"+n("%[89A-Fa-f]"+i+"%"+i+i)+"|"+n("%"+i+i)),a="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",a),l=e?"[\\uE000-\\uF8FF]":"[]",u=t(r,s,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),f=n(r+t(r,s,"[\\+\\-\\.]")+"*"),h=n(n(o+"|"+t(u,a,"[\\:]"))+"*"),d=(n(n("25[0-5]")+"|"+n("2[0-4]"+s)+"|"+n("1"+s+s)+"|"+n("[1-9]"+s)+"|"+s),n(n("25[0-5]")+"|"+n("2[0-4]"+s)+"|"+n("1"+s+s)+"|"+n("0?[1-9]"+s)+"|0?0?"+s)),p=n(d+"\\."+d+"\\."+d+"\\."+d),m=n(i+"{1,4}"),g=n(n(m+"\\:"+m)+"|"+p),y=n(n(m+"\\:")+"{6}"+g),v=n("\\:\\:"+n(m+"\\:")+"{5}"+g),b=n(n(m)+"?\\:\\:"+n(m+"\\:")+"{4}"+g),_=n(n(n(m+"\\:")+"{0,1}"+m)+"?\\:\\:"+n(m+"\\:")+"{3}"+g),w=n(n(n(m+"\\:")+"{0,2}"+m)+"?\\:\\:"+n(m+"\\:")+"{2}"+g),$=n(n(n(m+"\\:")+"{0,3}"+m)+"?\\:\\:"+m+"\\:"+g),S=n(n(n(m+"\\:")+"{0,4}"+m)+"?\\:\\:"+g),E=n(n(n(m+"\\:")+"{0,5}"+m)+"?\\:\\:"+m),k=n(n(n(m+"\\:")+"{0,6}"+m)+"?\\:\\:"),O=n([y,v,b,_,w,$,S,E,k].join("|")),P=n(n(u+"|"+o)+"+"),j=(n(O+"\\%25"+P),n(O+n("\\%25|\\%(?!"+i+"{2})")+P)),A=n("[vV]"+i+"+\\."+t(u,a,"[\\:]")+"+"),x=n("\\["+n(j+"|"+O+"|"+A)+"\\]"),N=n(n(o+"|"+t(u,a))+"*"),C=n(x+"|"+p+"(?!"+N+")|"+N),M=n(s+"*"),I=n(n(h+"@")+"?"+C+n("\\:"+M)+"?"),T=n(o+"|"+t(u,a,"[\\:\\@]")),D=n(T+"*"),L=n(T+"+"),R=n(n(o+"|"+t(u,a,"[\\@]"))+"+"),F=n(n("\\/"+D)+"*"),q=n("\\/"+n(L+F)+"?"),U=n(R+F),z=n(L+F),B="(?!"+T+")",V=(n(F+"|"+q+"|"+U+"|"+z+"|"+B),n(n(T+"|"+t("[\\/\\?]",l))+"*")),K=n(n(T+"|[\\/\\?]")+"*"),W=n(n("\\/\\/"+I+F)+"|"+q+"|"+z+"|"+B),H=n(f+"\\:"+W+n("\\?"+V)+"?"+n("\\#"+K)+"?"),G=n(n("\\/\\/"+I+F)+"|"+q+"|"+U+"|"+B),J=n(G+n("\\?"+V)+"?"+n("\\#"+K)+"?");return n(H+"|"+J),n(f+"\\:"+W+n("\\?"+V)+"?"),n(n("\\/\\/("+n("("+h+")@")+"?("+C+")"+n("\\:("+M+")")+"?)")+"?("+F+"|"+q+"|"+z+"|"+B+")"),n("\\?("+V+")"),n("\\#("+K+")"),n(n("\\/\\/("+n("("+h+")@")+"?("+C+")"+n("\\:("+M+")")+"?)")+"?("+F+"|"+q+"|"+U+"|"+B+")"),n("\\?("+V+")"),n("\\#("+K+")"),n(n("\\/\\/("+n("("+h+")@")+"?("+C+")"+n("\\:("+M+")")+"?)")+"?("+F+"|"+q+"|"+z+"|"+B+")"),n("\\?("+V+")"),n("\\#("+K+")"),n("("+h+")@"),n("\\:("+M+")"),{NOT_SCHEME:new RegExp(t("[^]",r,s,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",u,a),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",u,a),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",u,a),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",u,a),"g"),NOT_QUERY:new RegExp(t("[^\\%]",u,a,"[\\:\\@\\/\\?]",l),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",u,a,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",u,a),"g"),UNRESERVED:new RegExp(u,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",u,c),"g"),PCT_ENCODED:new RegExp(o,"g"),IPV4ADDRESS:new RegExp("^("+p+")$"),IPV6ADDRESS:new RegExp("^\\[?("+O+")"+n(n("\\%25|\\%(?!"+i+"{2})")+"("+P+")")+"?\\]?$")}}var o=i(!1),a=i(!0),c=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,s=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){s=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(s)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=2147483647,u=36,f=/^xn--/,h=/[^\0-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=Math.floor,g=String.fromCharCode;function y(e){throw new RangeError(p[e])}function v(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+function(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}((e=e.replace(d,".")).split("."),t).join(".")}function b(e){for(var t=[],n=0,r=e.length;n<r;){var s=e.charCodeAt(n++);if(s>=55296&&s<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&s)<<10)+(1023&i)+65536):(t.push(s),n--)}else t.push(s)}return t}var _=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},w=function(e,t,n){var r=0;for(e=n?m(e/700):e>>1,e+=m(e/t);e>455;r+=u)e=m(e/35);return m(r+36*e/(e+38))},$=function(e){var t,n=[],r=e.length,s=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(var c=0;c<a;++c)e.charCodeAt(c)>=128&&y("not-basic"),n.push(e.charCodeAt(c));for(var f=a>0?a+1:0;f<r;){for(var h=s,d=1,p=u;;p+=u){f>=r&&y("invalid-input");var g=(t=e.charCodeAt(f++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:u;(g>=u||g>m((l-s)/d))&&y("overflow"),s+=g*d;var v=p<=o?1:p>=o+26?26:p-o;if(g<v)break;var b=u-v;d>m(l/b)&&y("overflow"),d*=b}var _=n.length+1;o=w(s-h,_,0==h),m(s/_)>l-i&&y("overflow"),i+=m(s/_),s%=_,n.splice(s++,0,i)}return String.fromCodePoint.apply(String,n)},S=function(e){var t=[],n=(e=b(e)).length,r=128,s=0,i=72,o=!0,a=!1,c=void 0;try{for(var f,h=e[Symbol.iterator]();!(o=(f=h.next()).done);o=!0){var d=f.value;d<128&&t.push(g(d))}}catch(e){a=!0,c=e}finally{try{!o&&h.return&&h.return()}finally{if(a)throw c}}var p=t.length,v=p;for(p&&t.push("-");v<n;){var $=l,S=!0,E=!1,k=void 0;try{for(var O,P=e[Symbol.iterator]();!(S=(O=P.next()).done);S=!0){var j=O.value;j>=r&&j<$&&($=j)}}catch(e){E=!0,k=e}finally{try{!S&&P.return&&P.return()}finally{if(E)throw k}}var A=v+1;$-r>m((l-s)/A)&&y("overflow"),s+=($-r)*A,r=$;var x=!0,N=!1,C=void 0;try{for(var M,I=e[Symbol.iterator]();!(x=(M=I.next()).done);x=!0){var T=M.value;if(T<r&&++s>l&&y("overflow"),T==r){for(var D=s,L=u;;L+=u){var R=L<=i?1:L>=i+26?26:L-i;if(D<R)break;var F=D-R,q=u-R;t.push(g(_(R+F%q,0))),D=m(F/q)}t.push(g(_(D,0))),i=w(s,A,v==p),s=0,++v}}}catch(e){N=!0,C=e}finally{try{!x&&I.return&&I.return()}finally{if(N)throw C}}++s,++r}return t.join("")},E={version:"2.1.0",ucs2:{decode:b,encode:function(e){return String.fromCodePoint.apply(String,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e))}},decode:$,encode:S,toASCII:function(e){return v(e,(function(e){return h.test(e)?"xn--"+S(e):e}))},toUnicode:function(e){return v(e,(function(e){return f.test(e)?$(e.slice(4).toLowerCase()):e}))}},k={};function O(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function P(e){for(var t="",n=0,r=e.length;n<r;){var s=parseInt(e.substr(n+1,2),16);if(s<128)t+=String.fromCharCode(s),n+=3;else if(s>=194&&s<224){if(r-n>=6){var i=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((31&s)<<6|63&i)}else t+=e.substr(n,6);n+=6}else if(s>=224){if(r-n>=9){var o=parseInt(e.substr(n+4,2),16),a=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((15&s)<<12|(63&o)<<6|63&a)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function j(e,t){function n(e){var n=P(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,O).replace(t.PCT_ENCODED,s)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,O).replace(t.PCT_ENCODED,s)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,O).replace(t.PCT_ENCODED,s)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,O).replace(t.PCT_ENCODED,s)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,O).replace(t.PCT_ENCODED,s)),e}function A(e){return e.replace(/^0*(.*)/,"$1")||"0"}function x(e,t){var n=e.match(t.IPV4ADDRESS)||[],r=c(n,2)[1];return r?r.split(".").map(A).join("."):e}function N(e,t){var n=e.match(t.IPV6ADDRESS)||[],r=c(n,3),s=r[1],i=r[2];if(s){for(var o=s.toLowerCase().split("::").reverse(),a=c(o,2),l=a[0],u=a[1],f=u?u.split(":").map(A):[],h=l.split(":").map(A),d=t.IPV4ADDRESS.test(h[h.length-1]),p=d?7:8,m=h.length-p,g=Array(p),y=0;y<p;++y)g[y]=f[y]||h[m+y]||"";d&&(g[p-1]=x(g[p-1],t));var v=g.reduce((function(e,t,n){if(!t||"0"===t){var r=e[e.length-1];r&&r.index+r.length===n?r.length++:e.push({index:n,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(v&&v.length>1){var _=g.slice(0,v.index),w=g.slice(v.index+v.length);b=_.join(":")+"::"+w.join(":")}else b=g.join(":");return i&&(b+="%"+i),b}return e}var C=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,M=void 0==="".match(/(){0}/)[1];function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=!1!==t.iri?a:o;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var s=e.match(C);if(s){M?(n.scheme=s[1],n.userinfo=s[3],n.host=s[4],n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=s[7],n.fragment=s[8],isNaN(n.port)&&(n.port=s[5])):(n.scheme=s[1]||void 0,n.userinfo=-1!==e.indexOf("@")?s[3]:void 0,n.host=-1!==e.indexOf("//")?s[4]:void 0,n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=-1!==e.indexOf("?")?s[7]:void 0,n.fragment=-1!==e.indexOf("#")?s[8]:void 0,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?s[4]:void 0)),n.host&&(n.host=N(x(n.host,r),r)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");var i=k[(t.scheme||n.scheme||"").toLowerCase()];if(t.unicodeSupport||i&&i.unicodeSupport)j(n,r);else{if(n.host&&(t.domainHost||i&&i.domainHost))try{n.host=E.toASCII(n.host.replace(r.PCT_ENCODED,P).toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+e}j(n,o)}i&&i.parse&&i.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}var T=/^\.\.?\//,D=/^\/\.(\/|$)/,L=/^\/\.\.(\/|$)/,R=/^\/?(?:.|\n)*?(?=\/|$)/;function F(e){for(var t=[];e.length;)if(e.match(T))e=e.replace(T,"");else if(e.match(D))e=e.replace(D,"/");else if(e.match(L))e=e.replace(L,"/"),t.pop();else if("."===e||".."===e)e="";else{var n=e.match(R);if(!n)throw new Error("Unexpected dot segment condition");var r=n[0];e=e.slice(r.length),t.push(r)}return t.join("")}function q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.iri?a:o,r=[],s=k[(t.scheme||e.scheme||"").toLowerCase()];if(s&&s.serialize&&s.serialize(e,t),e.host)if(n.IPV6ADDRESS.test(e.host));else if(t.domainHost||s&&s.domainHost)try{e.host=t.iri?E.toUnicode(e.host):E.toASCII(e.host.replace(n.PCT_ENCODED,P).toLowerCase())}catch(n){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+n}j(e,n),"suffix"!==t.reference&&e.scheme&&(r.push(e.scheme),r.push(":"));var i=function(e,t){var n=!1!==t.iri?a:o,r=[];return void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(N(x(String(e.host),n),n).replace(n.IPV6ADDRESS,(function(e,t,n){return"["+t+(n?"%25"+n:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}(e,t);if(void 0!==i&&("suffix"!==t.reference&&r.push("//"),r.push(i),e.path&&"/"!==e.path.charAt(0)&&r.push("/")),void 0!==e.path){var c=e.path;t.absolutePath||s&&s.absolutePath||(c=F(c)),void 0===i&&(c=c.replace(/^\/\//,"/%2F")),r.push(c)}return void 0!==e.query&&(r.push("?"),r.push(e.query)),void 0!==e.fragment&&(r.push("#"),r.push(e.fragment)),r.join("")}function U(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};return arguments[3]||(e=I(q(e,n),n),t=I(q(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(r.scheme=t.scheme,r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=F(t.path||""),r.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=F(t.path||""),r.query=t.query):(t.path?("/"===t.path.charAt(0)?r.path=F(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?r.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:r.path=t.path:r.path="/"+t.path,r.path=F(r.path)),r.query=t.query):(r.path=e.path,void 0!==t.query?r.query=t.query:r.query=e.query),r.userinfo=e.userinfo,r.host=e.host,r.port=e.port),r.scheme=e.scheme),r.fragment=t.fragment,r}function z(e,t){return e&&e.toString().replace(t&&t.iri?a.PCT_ENCODED:o.PCT_ENCODED,P)}var B={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var n="https"===String(e.scheme).toLowerCase();return e.port!==(n?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},V={scheme:"https",domainHost:B.domainHost,parse:B.parse,serialize:B.serialize};function K(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var W={scheme:"ws",domainHost:!0,parse:function(e,t){var n=e;return n.secure=K(n),n.resourceName=(n.path||"/")+(n.query?"?"+n.query:""),n.path=void 0,n.query=void 0,n},serialize:function(e,t){if(e.port!==(K(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var n=e.resourceName.split("?"),r=c(n,2),s=r[0],i=r[1];e.path=s&&"/"!==s?s:void 0,e.query=i,e.resourceName=void 0}return e.fragment=void 0,e}},H={scheme:"wss",domainHost:W.domainHost,parse:W.parse,serialize:W.serialize},G={},J="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Y="[0-9A-Fa-f]",Q=n(n("%[EFef]"+Y+"%"+Y+Y+"%"+Y+Y)+"|"+n("%[89A-Fa-f]"+Y+"%"+Y+Y)+"|"+n("%"+Y+Y)),Z=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),X=new RegExp(J,"g"),ee=new RegExp(Q,"g"),te=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',Z),"g"),ne=new RegExp(t("[^]",J,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),re=ne;function se(e){var t=P(e);return t.match(X)?t:e}var ie={scheme:"mailto",parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(","):[];if(n.path=void 0,n.query){for(var s=!1,i={},o=n.query.split("&"),a=0,c=o.length;a<c;++a){var l=o[a].split("=");switch(l[0]){case"to":for(var u=l[1].split(","),f=0,h=u.length;f<h;++f)r.push(u[f]);break;case"subject":n.subject=z(l[1],t);break;case"body":n.body=z(l[1],t);break;default:s=!0,i[z(l[0],t)]=z(l[1],t)}}s&&(n.headers=i)}n.query=void 0;for(var d=0,p=r.length;d<p;++d){var m=r[d].split("@");if(m[0]=z(m[0]),t.unicodeSupport)m[1]=z(m[1],t).toLowerCase();else try{m[1]=E.toASCII(z(m[1],t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}r[d]=m.join("@")}return n},serialize:function(e,t){var n,r=e,i=null!=(n=e.to)?n instanceof Array?n:"number"!=typeof n.length||n.split||n.setInterval||n.call?[n]:Array.prototype.slice.call(n):[];if(i){for(var o=0,a=i.length;o<a;++o){var c=String(i[o]),l=c.lastIndexOf("@"),u=c.slice(0,l).replace(ee,se).replace(ee,s).replace(te,O),f=c.slice(l+1);try{f=t.iri?E.toUnicode(f):E.toASCII(z(f,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}i[o]=u+"@"+f}r.path=i.join(",")}var h=e.headers=e.headers||{};e.subject&&(h.subject=e.subject),e.body&&(h.body=e.body);var d=[];for(var p in h)h[p]!==G[p]&&d.push(p.replace(ee,se).replace(ee,s).replace(ne,O)+"="+h[p].replace(ee,se).replace(ee,s).replace(re,O));return d.length&&(r.query=d.join("&")),r}},oe=/^([^\:]+)\:(.*)/,ae={scheme:"urn",parse:function(e,t){var n=e.path&&e.path.match(oe),r=e;if(n){var s=t.scheme||r.scheme||"urn",i=n[1].toLowerCase(),o=n[2],a=s+":"+(t.nid||i),c=k[a];r.nid=i,r.nss=o,r.path=void 0,c&&(r=c.parse(r,t))}else r.error=r.error||"URN can not be parsed.";return r},serialize:function(e,t){var n=t.scheme||e.scheme||"urn",r=e.nid,s=n+":"+(t.nid||r),i=k[s];i&&(e=i.serialize(e,t));var o=e,a=e.nss;return o.path=(r||t.nid)+":"+a,o}},ce=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,le={scheme:"urn:uuid",parse:function(e,t){var n=e;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&n.uuid.match(ce)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e,t){var n=e;return n.nss=(e.uuid||"").toLowerCase(),n}};k[B.scheme]=B,k[V.scheme]=V,k[W.scheme]=W,k[H.scheme]=H,k[ie.scheme]=ie,k[ae.scheme]=ae,k[le.scheme]=le,e.SCHEMES=k,e.pctEncChar=O,e.pctDecChars=P,e.parse=I,e.removeDotSegments=F,e.serialize=q,e.resolveComponents=U,e.resolve=function(e,t,n){var r=function(e,t){var n=e;if(t)for(var r in t)n[r]=t[r];return n}({scheme:"null"},n);return q(U(I(e,r),I(t,r),r,!0),r)},e.normalize=function(e,t){return"string"==typeof e?e=q(I(e,t),t):"object"===r(e)&&(e=I(q(e,t),t)),e},e.equal=function(e,t,n){return"string"==typeof e?e=q(I(e,n),n):"object"===r(e)&&(e=q(e,n)),"string"==typeof t?t=q(I(t,n),n):"object"===r(t)&&(t=q(t,n)),e===t},e.escapeComponent=function(e,t){return e&&e.toString().replace(t&&t.iri?a.ESCAPE:o.ESCAPE,O)},e.unescapeComponent=z,Object.defineProperty(e,"__esModule",{value:!0})}(t)},7889:(e,t,n)=>{"use strict";var r=n(7384),s=n(5738),i=n(1373),o=n(8864),a=n(7058);t.composeCollection=function(e,t,n,c,l){let u;switch(n.type){case"block-map":u=i.resolveBlockMap(e,t,n,l);break;case"block-seq":u=o.resolveBlockSeq(e,t,n,l);break;case"flow-collection":u=a.resolveFlowCollection(e,t,n,l)}if(!c)return u;const f=t.directives.tagName(c.source,(e=>l(c,"TAG_RESOLVE_FAILED",e)));if(!f)return u;const h=u.constructor;if("!"===f||f===h.tagName)return u.tag=h.tagName,u;const d=r.isMap(u)?"map":"seq";let p=t.schema.tags.find((e=>e.collection===d&&e.tag===f));if(!p){const e=t.schema.knownTags[f];if(!e||e.collection!==d)return l(c,"TAG_RESOLVE_FAILED",`Unresolved tag: ${f}`,!0),u.tag=f,u;t.schema.tags.push(Object.assign({},e,{default:!1})),p=e}const m=p.resolve(u,(e=>l(c,"TAG_RESOLVE_FAILED",e)),t.options),g=r.isNode(m)?m:new s.Scalar(m);return g.range=u.range,g.tag=f,p?.format&&(g.format=p.format),g}},104:(e,t,n)=>{"use strict";var r=n(505),s=n(3223),i=n(9516),o=n(814);t.composeDoc=function(e,t,{offset:n,start:a,value:c,end:l},u){const f=Object.assign({_directives:t},e),h=new r.Document(void 0,f),d={atRoot:!0,directives:h.directives,options:h.options,schema:h.schema},p=o.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?s.composeNode(d,c,p,u):s.composeEmptyNode(d,p.end,a,null,p,u);const m=h.contents.range[2],g=i.resolveEnd(l,m,!1,u);return g.comment&&(h.comment=g.comment),h.range=[n,m,g.offset],h}},3223:(e,t,n)=>{"use strict";var r=n(366),s=n(7889),i=n(6491),o=n(9516),a=n(3576);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:s},i){const a=new r.Alias(n.substring(1));""===a.source&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),a.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const c=t+n.length,l=o.resolveEnd(s,c,e.strict,i);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=i.composeScalar(e,t,d,a),h&&(p.anchor=h.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":p=s.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,r,{spaceBefore:s,comment:o,anchor:c,tag:l,end:u},f){const h={type:"scalar",offset:a.emptyScalarPosition(t,n,r),indent:-1,source:""},d=i.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")),s&&(d.spaceBefore=!0),o&&(d.comment=o,d.range[2]=u),d}t.composeEmptyNode=u,t.composeNode=l},6491:(e,t,n)=>{"use strict";var r=n(7384),s=n(5738),i=n(1070),o=n(5147);t.composeScalar=function(e,t,n,a){const{value:c,type:l,comment:u,range:f}="block-scalar"===t.type?i.resolveBlockScalar(t,e.options.strict,a):o.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,s,i){if("!"===n)return e[r.SCALAR];const o=[];for(const t of e.tags)if(!t.collection&&t.tag===n){if(!t.default||!t.test)return t;o.push(t)}for(const e of o)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):(i(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),e[r.SCALAR])}(e.schema,c,h,n,a):"scalar"===t.type?function({directives:e,schema:t},n,s,i){const o=t.tags.find((e=>e.default&&e.test?.test(n)))||t[r.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(n)))??t[r.SCALAR];o.tag!==a.tag&&i(s,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${e.tagString(o.tag)} or ${e.tagString(a.tag)}`,!0)}return o}(e,c,t,a):e.schema[r.SCALAR];let p;try{const i=d.resolve(c,(e=>a(n??t,"TAG_RESOLVE_FAILED",e)),e.options);p=r.isScalar(i)?i:new s.Scalar(i)}catch(e){const r=e instanceof Error?e.message:String(e);a(n??t,"TAG_RESOLVE_FAILED",r),p=new s.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}},1294:(e,t,n)=>{"use strict";var r=n(3848),s=n(505),i=n(2981),o=n(7384),a=n(104),c=n(9516);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,r=!1;for(let s=0;s<e.length;++s){const i=e[s];switch(i[0]){case"#":t+=(""===t?"":r?"\n\n":"\n")+(i.substring(1)||" "),n=!0,r=!1;break;case"%":"#"!==e[s+1]?.[0]&&(s+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}t.Composer=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{const s=l(e);r?this.warnings.push(new i.YAMLWarning(s,t,n)):this.errors.push(new i.YAMLParseError(s,t,n))},this.directives=new r.Directives({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:n,afterEmptyLine:r}=u(this.prelude);if(n){const s=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!s)e.commentBefore=n;else if(o.isCollection(s)&&!s.flow&&s.items.length>0){let e=s.items[0];o.isPair(e)&&(e=e.key);const t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{const e=s.commentBefore;s.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,r)=>{const s=l(e);s[0]+=t,this.onError(s,"BAD_DIRECTIVE",n,r)})),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 i.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 i.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 i.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 s.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}}}},1373:(e,t,n)=>{"use strict";var r=n(7356),s=n(8228),i=n(814),o=n(7627),a=n(7049),c=n(434);const l="All mapping items must start at the same column";t.resolveBlockMap=function({composeNode:e,composeEmptyNode:t},n,u,f){const h=new s.YAMLMap(n.schema);n.atRoot&&(n.atRoot=!1);let d=u.offset,p=null;for(const s of u.items){const{start:m,key:g,sep:y,value:v}=s,b=i.resolveProps(m,{indicator:"explicit-key-ind",next:g??y?.[0],offset:d,onError:f,startOnNewline:!0}),_=!b.found;if(_){if(g&&("block-seq"===g.type?f(d,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in g&&g.indent!==u.indent&&f(d,"BAD_INDENT",l)),!b.anchor&&!b.tag&&!y){p=b.end,b.comment&&(h.comment?h.comment+="\n"+b.comment:h.comment=b.comment);continue}(b.hasNewlineAfterProp||o.containsNewline(g))&&f(g??m[m.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else b.found?.indent!==u.indent&&f(d,"BAD_INDENT",l);const w=b.end,$=g?e(n,g,b,f):t(n,w,m,null,b,f);n.schema.compat&&a.flowIndentCheck(u.indent,g,f),c.mapIncludes(n,h.items,$)&&f(w,"DUPLICATE_KEY","Map keys must be unique");const S=i.resolveProps(y??[],{indicator:"map-value-ind",next:v,offset:$.range[2],onError:f,startOnNewline:!g||"block-scalar"===g.type});if(d=S.end,S.found){_&&("block-map"!==v?.type||S.hasNewline||f(d,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&b.start<S.found.offset-1024&&f($.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const i=v?e(n,v,S,f):t(n,d,y,null,S,f);n.schema.compat&&a.flowIndentCheck(u.indent,v,f),d=i.range[2];const o=new r.Pair($,i);n.options.keepSourceTokens&&(o.srcToken=s),h.items.push(o)}else{_&&f($.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),S.comment&&($.comment?$.comment+="\n"+S.comment:$.comment=S.comment);const e=new r.Pair($);n.options.keepSourceTokens&&(e.srcToken=s),h.items.push(e)}}return p&&p<d&&f(p,"IMPOSSIBLE","Map comment with trailing content"),h.range=[u.offset,d,p??d],h}},1070:(e,t,n)=>{"use strict";var r=n(5738);t.resolveBlockScalar=function(e,t,n){const s=e.offset,i=function({offset:e,props:t},n,r){if("block-scalar-header"!==t[0].type)return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:s}=t[0],i=s[0];let o=0,a="",c=-1;for(let t=1;t<s.length;++t){const n=s[t];if(a||"-"!==n&&"+"!==n){const r=Number(n);!o&&r?o=r:-1===c&&(c=e+t)}else a=n}-1!==c&&r(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${s}`);let l=!1,u="",f=s.length;for(let e=1;e<t.length;++e){const s=t[e];switch(s.type){case"space":l=!0;case"newline":f+=s.source.length;break;case"comment":n&&!l&&r(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=s.source.length,u=s.source.substring(1);break;case"error":r(s,"UNEXPECTED_TOKEN",s.message),f+=s.source.length;break;default:{r(s,"UNEXPECTED_TOKEN",`Unexpected token in block scalar header: ${s.type}`);const e=s.source;e&&"string"==typeof e&&(f+=e.length)}}}return{mode:i,indent:o,chomp:a,comment:u,length:f}}(e,t,n);if(!i)return{value:"",type:null,comment:"",range:[s,s,s]};const o=">"===i.mode?r.Scalar.BLOCK_FOLDED:r.Scalar.BLOCK_LITERAL,a=e.source?function(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),s=[r?.[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let e=1;e<t.length;e+=2)s.push([t[e],t[e+1]]);return s}(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="+"===i.chomp&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let n=s+i.length;return e.source&&(n+=e.source.length),{value:t,type:o,comment:i.comment,range:[s,n,n]}}let l=e.indent+i.indent,u=e.offset+i.length,f=0;for(let e=0;e<c;++e){const[t,r]=a[e];if(""!==r&&"\r"!==r){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===i.indent&&(l=t.length),f=e;break}0===i.indent&&t.length>l&&(l=t.length),u+=t.length+r.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,s]=a[e];u+=t.length+s.length+1;const c="\r"===s[s.length-1];if(c&&(s=s.slice(0,-1)),s&&t.length<l){const e="Block scalar lines must not be less indented than their "+(i.indent?"explicit indentation indicator":"first line");n(u-s.length-(c?2:1),"BAD_INDENT",e),t=""}o===r.Scalar.BLOCK_LITERAL?(h+=d+t.slice(l)+s,d="\n"):t.length>l||"\t"===s[0]?(" "===d?d="\n":p||"\n"!==d||(d="\n\n"),h+=d+t.slice(l)+s,d="\n",p=!0):""===s?"\n"===d?h+="\n":d="\n":(h+=d+s,d=" ",p=!1)}switch(i.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=s+i.length+e.source.length;return{value:h,type:o,comment:i.comment,range:[s,m,m]}}},8864:(e,t,n)=>{"use strict";var r=n(9248),s=n(814),i=n(7049);t.resolveBlockSeq=function({composeNode:e,composeEmptyNode:t},n,o,a){const c=new r.YAMLSeq(n.schema);n.atRoot&&(n.atRoot=!1);let l=o.offset,u=null;for(const{start:r,value:f}of o.items){const h=s.resolveProps(r,{indicator:"seq-item-ind",next:f,offset:l,onError:a,startOnNewline:!0});if(!h.found){if(!(h.anchor||h.tag||f)){u=h.end,h.comment&&(c.comment=h.comment);continue}f&&"block-seq"===f.type?a(h.end,"BAD_INDENT","All sequence items must start at the same column"):a(l,"MISSING_CHAR","Sequence item without - indicator")}const d=f?e(n,f,h,a):t(n,h.end,r,null,h,a);n.schema.compat&&i.flowIndentCheck(o.indent,f,a),l=d.range[2],c.items.push(d)}return c.range=[o.offset,l,u??l],c}},9516:(e,t)=>{"use strict";t.resolveEnd=function(e,t,n,r){let s="";if(e){let i=!1,o="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":i=!0;break;case"comment":{n&&!i&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";s?s+=o+t:s=t,o="";break}case"newline":s&&(o+=e),i=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:s,offset:t}}},7058:(e,t,n)=>{"use strict";var r=n(7384),s=n(7356),i=n(8228),o=n(9248),a=n(9516),c=n(814),l=n(7627),u=n(434);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){const m="{"===d.start.source,g=m?"flow map":"flow sequence",y=m?new i.YAMLMap(n.schema):new o.YAMLSeq(n.schema);y.flow=!0;const v=n.atRoot;v&&(n.atRoot=!1);let b=d.offset+d.start.source.length;for(let o=0;o<d.items.length;++o){const a=d.items[o],{start:v,key:_,sep:w,value:$}=a,S=c.resolveProps(v,{flow:g,indicator:"explicit-key-ind",next:_??w?.[0],offset:b,onError:p,startOnNewline:!1});if(!S.found){if(!(S.anchor||S.tag||w||$)){0===o&&S.comma?p(S.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${g}`):o<d.items.length-1&&p(S.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${g}`),S.comment&&(y.comment?y.comment+="\n"+S.comment:y.comment=S.comment),b=S.end;continue}!m&&n.options.strict&&l.containsNewline(_)&&p(_,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===o)S.comma&&p(S.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${g}`);else if(S.comma||p(S.start,"MISSING_CHAR",`Missing , between ${g} items`),S.comment){let e="";e:for(const t of v)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break e;default:break e}if(e){let t=y.items[y.items.length-1];r.isPair(t)&&(t=t.value??t.key),t.comment?t.comment+="\n"+e:t.comment=e,S.comment=S.comment.substring(e.length+1)}}if(m||w||S.found){const r=S.end,o=_?e(n,_,S,p):t(n,r,v,null,S,p);h(_)&&p(o.range,"BLOCK_IN_FLOW",f);const l=c.resolveProps(w??[],{flow:g,indicator:"map-value-ind",next:$,offset:o.range[2],onError:p,startOnNewline:!1});if(l.found){if(!m&&!S.found&&n.options.strict){if(w)for(const e of w){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}}S.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 $&&("source"in $&&$.source&&":"===$.source[0]?p($,"MISSING_CHAR",`Missing space after : in ${g}`):p(l.start,"MISSING_CHAR",`Missing , or : between ${g} items`));const d=$?e(n,$,l,p):l.found?t(n,l.end,w,null,l,p):null;d?h($)&&p(d.range,"BLOCK_IN_FLOW",f):l.comment&&(o.comment?o.comment+="\n"+l.comment:o.comment=l.comment);const E=new s.Pair(o,d);if(n.options.keepSourceTokens&&(E.srcToken=a),m){const e=y;u.mapIncludes(n,e.items,o)&&p(r,"DUPLICATE_KEY","Map keys must be unique"),e.items.push(E)}else{const e=new i.YAMLMap(n.schema);e.flow=!0,e.items.push(E),y.items.push(e)}b=d?d.range[2]:l.end}else{const r=$?e(n,$,S,p):t(n,S.end,w,null,S,p);y.items.push(r),b=r.range[2],h($)&&p(r.range,"BLOCK_IN_FLOW",f)}}const _=m?"}":"]",[w,...$]=d.end;let S=b;if(w&&w.source===_)S=w.offset+w.source.length;else{const e=g[0].toUpperCase()+g.substring(1);p(b,v?"MISSING_CHAR":"BAD_INDENT",v?`${e} must end with a ${_}`:`${e} in block collection must be sufficiently indented and end with a ${_}`),w&&1!==w.source.length&&$.unshift(w)}if($.length>0){const e=a.resolveEnd($,S,n.options.strict,p);e.comment&&(y.comment?y.comment+="\n"+e.comment:y.comment=e.comment),y.range=[d.offset,S,e.offset]}else y.range=[d.offset,S,S];return y}},5147:(e,t,n)=>{"use strict";var r=n(5738),s=n(9516);function i(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 r=t.exec(e);if(!r)return e;let s=r[1],i=" ",o=t.lastIndex;for(n.lastIndex=o;r=n.exec(e);)""===r[1]?"\n"===i?s+=i:i="\n":(s+=i+r[1],i=" "),o=n.lastIndex;const a=/[ \t]*(.*)/sy;return a.lastIndex=o,r=a.exec(e),s+i+(r?.[1]??"")}function o(e,t){let n="",r=e[t+1];for(;!(" "!==r&&"\t"!==r&&"\n"!==r&&"\r"!==r||"\r"===r&&"\n"!==e[t+2]);)"\n"===r&&(n+="\n"),r=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,r){const s=e.substr(t,n),i=s.length===n&&/^[0-9a-fA-F]+$/.test(s)?parseInt(s,16):NaN;if(isNaN(i)){const s=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`),s}return String.fromCodePoint(i)}t.resolveFlowScalar=function(e,t,n){const{offset:l,type:u,source:f,end:h}=e;let d,p;const m=(e,t,r)=>n(l+e,t,r);switch(u){case"scalar":d=r.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}`),i(e)}(f,m);break;case"single-quoted-scalar":d=r.Scalar.QUOTE_SINGLE,p=function(e,t){return"'"===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR","Missing closing 'quote"),i(e.slice(1,-1)).replace(/''/g,"'")}(f,m);break;case"double-quoted-scalar":d=r.Scalar.QUOTE_DOUBLE,p=function(e,t){let n="";for(let r=1;r<e.length-1;++r){const s=e[r];if("\r"!==s||"\n"!==e[r+1])if("\n"===s){const{fold:t,offset:s}=o(e,r);n+=t,r=s}else if("\\"===s){let s=e[++r];const i=a[s];if(i)n+=i;else if("\n"===s)for(s=e[r+1];" "===s||"\t"===s;)s=e[1+ ++r];else if("\r"===s&&"\n"===e[r+1])for(s=e[1+ ++r];" "===s||"\t"===s;)s=e[1+ ++r];else if("x"===s||"u"===s||"U"===s){const i={x:2,u:4,U:8}[s];n+=c(e,r+1,i,t),r+=i}else{const s=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`),n+=s}}else if(" "===s||"\t"===s){const t=r;let i=e[r+1];for(;" "===i||"\t"===i;)i=e[1+ ++r];"\n"===i||"\r"===i&&"\n"===e[r+2]||(n+=r>t?e.slice(t,r+1):s)}else n+=s}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=s.resolveEnd(h,g,t,n);return{value:p,type:d,comment:y.comment,range:[l,g,y.offset]}}},814:(e,t)=>{"use strict";t.resolveProps=function(e,{flow:t,indicator:n,next:r,offset:s,onError:i,startOnNewline:o}){let a=!1,c=o,l=o,u="",f="",h=!1,d=!1,p=!1,m=null,g=null,y=null,v=null,b=null;for(const r of e)switch(p&&("space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),p=!1),r.type){case"space":!t&&c&&"doc-start"!==n&&"\t"===r.source[0]&&i(r,"TAB_AS_INDENT","Tabs are not allowed as indentation"),l=!0;break;case"comment":{l||i(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=r.source.substring(1)||" ";u?u+=f+e:u=e,f="",c=!1;break}case"newline":c?u?u+=r.source:a=!0:f+=r.source,c=!0,h=!0,(m||g)&&(d=!0),l=!0;break;case"anchor":m&&i(r,"MULTIPLE_ANCHORS","A node can have at most one anchor"),r.source.endsWith(":")&&i(r.offset+r.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=r,null===b&&(b=r.offset),c=!1,l=!1,p=!0;break;case"tag":g&&i(r,"MULTIPLE_TAGS","A node can have at most one tag"),g=r,null===b&&(b=r.offset),c=!1,l=!1,p=!0;break;case n:(m||g)&&i(r,"BAD_PROP_ORDER",`Anchors and tags must be after the ${r.source} indicator`),v&&i(r,"UNEXPECTED_TOKEN",`Unexpected ${r.source} in ${t??"collection"}`),v=r,c=!1,l=!1;break;case"comma":if(t){y&&i(r,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),y=r,c=!1,l=!1;break}default:i(r,"UNEXPECTED_TOKEN",`Unexpected ${r.type} token`),c=!1,l=!1}const _=e[e.length-1],w=_?_.offset+_.source.length:s;return p&&r&&"space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&("scalar"!==r.type||""!==r.source)&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:y,found:v,spaceBefore:a,comment:u,hasNewline:h,hasNewlineAfterProp:d,anchor:m,tag:g,end:w,start:b??w}}},7627:(e,t)=>{"use strict";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}}},3576:(e,t)=>{"use strict";t.emptyScalarPosition=function(e,t,n){if(t){null===n&&(n=t.length);for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++r];"space"===n?.type;)e+=n.source.length,n=t[++r];break}}return e}},7049:(e,t,n)=>{"use strict";var r=n(7627);t.flowIndentCheck=function(e,t,n){if("flow-collection"===t?.type){const s=t.end[0];s.indent!==e||"]"!==s.source&&"}"!==s.source||!r.containsNewline(t)||n(s,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}},434:(e,t,n)=>{"use strict";var r=n(7384);t.mapIncludes=function(e,t,n){const{uniqueKeys:s}=e.options;if(!1===s)return!1;const i="function"==typeof s?s:(t,n)=>t===n||r.isScalar(t)&&r.isScalar(n)&&t.value===n.value&&!("<<"===t.value&&e.schema.merge);return t.some((e=>i(e.key,n)))}},505:(e,t,n)=>{"use strict";var r=n(366),s=n(1928),i=n(7384),o=n(7356),a=n(5805),c=n(9442),l=n(121),u=n(7763),f=n(5157),h=n(6791),d=n(9534),p=n(3848);class m{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,i.NODE_TYPE,{value:i.DOC});let r=null;"function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t,t=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=s;let{version:o}=s;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new p.Directives({version:o}),this.setSchema(o,n),this.contents=void 0===e?null:this.createNode(e,r,n)}clone(){const e=Object.create(m.prototype,{[i.NODE_TYPE]:{value:i.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=i.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){g(this.contents)&&this.contents.add(e)}addIn(e,t){g(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const n=f.anchorNames(this);e.anchor=!t||n.has(t)?f.findNewAnchor(t||"a",n):t}return new r.Alias(e.anchor)}createNode(e,t,n){let r;if("function"==typeof t)e=t.call({"":e},"",e),r=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)),r=t}else void 0===n&&t&&(n=t,t=void 0);const{aliasDuplicateObjects:s,anchorPrefix:o,flow:a,keepUndefined:c,onTagObj:l,tag:u}=n??{},{onAnchor:h,setAnchors:p,sourceObjects:m}=f.createNodeAnchors(this,o||"a"),g={aliasDuplicateObjects:s??!0,keepUndefined:c??!1,onAnchor:h,onTagObj:l,replacer:r,schema:this.schema,sourceObjects:m},y=d.createNode(e,u,g);return a&&i.isCollection(y)&&(y.flow=!0),p(),y}createPair(e,t,n={}){const r=this.createNode(e,null,n),s=this.createNode(t,null,n);return new o.Pair(r,s)}delete(e){return!!g(this.contents)&&this.contents.delete(e)}deleteIn(e){return s.isEmptyPath(e)?null!=this.contents&&(this.contents=null,!0):!!g(this.contents)&&this.contents.deleteIn(e)}get(e,t){return i.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return s.isEmptyPath(e)?!t&&i.isScalar(this.contents)?this.contents.value:this.contents:i.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!i.isCollection(this.contents)&&this.contents.has(e)}hasIn(e){return s.isEmptyPath(e)?void 0!==this.contents:!!i.isCollection(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=s.collectionFromPath(this.schema,[e],t):g(this.contents)&&this.contents.set(e,t)}setIn(e,t){s.isEmptyPath(e)?this.contents=t:null==this.contents?this.contents=s.collectionFromPath(this.schema,Array.from(e),t):g(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 p.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 p.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:r,onAnchor:s,reviver:i}={}){const o={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100,stringify:l.stringify},c=a.toJS(this.contents,t??"",o);if("function"==typeof s)for(const{count:e,res:t}of o.anchors.values())s(t,e);return"function"==typeof i?h.applyReviver(i,{"":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 u.stringifyDocument(this,e)}}function g(e){if(i.isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}t.Document=m},5157:(e,t,n)=>{"use strict";var r=n(7384),s=n(9303);function i(e){const t=new Set;return s.visit(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function o(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}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=i,t.createNodeAnchors=function(e,t){const n=[],s=new Map;let a=null;return{onAnchor:r=>{n.push(r),a||(a=i(e));const s=o(t,a);return a.add(s),s},setAnchors:()=>{for(const e of n){const t=s.get(e);if("object"!=typeof t||!t.anchor||!r.isScalar(t.node)&&!r.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:s}},t.findNewAnchor=o},6791:(e,t)=>{"use strict";t.applyReviver=function e(t,n,r,s){if(s&&"object"==typeof s)if(Array.isArray(s))for(let n=0,r=s.length;n<r;++n){const r=s[n],i=e(t,s,String(n),r);void 0===i?delete s[n]:i!==r&&(s[n]=i)}else if(s instanceof Map)for(const n of Array.from(s.keys())){const r=s.get(n),i=e(t,s,n,r);void 0===i?s.delete(n):i!==r&&s.set(n,i)}else if(s instanceof Set)for(const n of Array.from(s)){const r=e(t,s,n,n);void 0===r?s.delete(n):r!==n&&(s.delete(n),s.add(r))}else for(const[n,r]of Object.entries(s)){const i=e(t,s,n,r);void 0===i?delete s[n]:i!==r&&(s[n]=i)}return t.call(n,r,s)}},9534:(e,t,n)=>{"use strict";var r=n(366),s=n(7384),i=n(5738);t.createNode=function(e,t,n){if(s.isDocument(e)&&(e=e.contents),s.isNode(e))return e;if(s.isPair(e)){const t=n.schema[s.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:o,onAnchor:a,onTagObj:c,schema:l,sourceObjects:u}=n;let f;if(o&&e&&"object"==typeof e){if(f=u.get(e),f)return f.anchor||(f.anchor=a(e)),new r.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)),r=e.find((e=>!e.format))??e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}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 i.Scalar(e);return f&&(f.node=t),t}h=e instanceof Map?l[s.MAP]:Symbol.iterator in Object(e)?l[s.SEQ]:l[s.MAP]}c&&(c(h),delete n.onTagObj);const d=h?.createNode?h.createNode(n.schema,e,n):new i.Scalar(e);return t&&(d.tag=t),f&&(f.node=d),d}},3848:(e,t,n)=>{"use strict";var r=n(7384),s=n(9303);const i={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};class o{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},o.defaultYaml,e),this.tags=Object.assign({},o.defaultTags,t)}clone(){const e=new o(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new o(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:o.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},o.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:o.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},o.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[e,r]=n;return this.tags[e]=r,!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 ${r}`,!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,r]=e.match(/^(.*!)([^!]*)$/);r||t(`The ${e} tag has no suffix`);const s=this.tags[n];return s?s+decodeURIComponent(r):"!"===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=>i[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 i;if(e&&n.length>0&&r.isNode(e.contents)){const t={};s.visit(e.contents,((e,n)=>{r.isNode(n)&&n.tag&&(t[n.tag]=!0)})),i=Object.keys(t)}else i=[];for(const[r,s]of n)"!!"===r&&"tag:yaml.org,2002:"===s||e&&!i.some((e=>e.startsWith(s)))||t.push(`%TAG ${r} ${s}`);return t.join("\n")}}o.defaultYaml={explicit:!1,version:"1.2"},o.defaultTags={"!!":"tag:yaml.org,2002:"},t.Directives=o},2981:(e,t)=>{"use strict";class n extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,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:r,col:s}=n.linePos[0];n.message+=` at line ${r}, column ${s}`;let i=s-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(i>=60&&o.length>80){const e=Math.min(i-39,o.length-79);o="…"+o.substring(e),i-=e-1}if(o.length>80&&(o=o.substring(0,79)+"…"),r>1&&/^ *$/.test(o.substring(0,i))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),o=n+o}if(/[^ ]/.test(o)){let e=1;const t=n.linePos[1];t&&t.line===r&&t.col>s&&(e=Math.min(t.col-s,80-i));const a=" ".repeat(i)+"^".repeat(e);n.message+=`:\n\n${o}\n${a}\n`}}},4667:(e,t,n)=>{"use strict";var r=n(1294),s=n(505),i=n(9442),o=n(2981),a=n(366),c=n(7384),l=n(7356),u=n(5738),f=n(8228),h=n(9248),d=(n(8575),n(5757)),p=n(862),m=n(654),g=n(3769),y=n(9303);r.Composer,s.Document,i.Schema,o.YAMLError,o.YAMLParseError,o.YAMLWarning,a.Alias,c.isAlias,c.isCollection,c.isDocument,c.isMap,c.isNode,c.isPair,c.isScalar,c.isSeq,l.Pair,u.Scalar,f.YAMLMap,h.YAMLSeq,d.Lexer,p.LineCounter,m.Parser,g.parse,g.parseAllDocuments,g.parseDocument,g.stringify,y.visit,y.visitAsync},4774:(e,t)=>{"use strict";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))}},366:(e,t,n)=>{"use strict";var r=n(5157),s=n(9303),i=n(7384);class o extends i.NodeBase{constructor(e){super(i.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return s.visit(e,{Node:(e,n)=>{if(n===this)return s.visit.BREAK;n.anchor===this.source&&(t=n)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:r,maxAliasCount:s}=t,i=this.resolve(r);if(!i){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}const o=n.get(i);if(!o||void 0===o.res)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(s>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=a(r,i,n)),o.count*o.aliasCount>s))throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");return o.res}toString(e,t,n){const s=`*${this.source}`;if(e){if(r.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`${s} `}return s}}function a(e,t,n){if(i.isAlias(t)){const r=t.resolve(e),s=n&&r&&n.get(r);return s?s.count*s.aliasCount:0}if(i.isCollection(t)){let r=0;for(const s of t.items){const t=a(e,s,n);t>r&&(r=t)}return r}if(i.isPair(t)){const r=a(e,t.key,n),s=a(e,t.value,n);return Math.max(r,s)}return 1}t.Alias=o},1928:(e,t,n)=>{"use strict";var r=n(9534),s=n(7384);function i(e,t,n){let s=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]=s,s=e}else s=new Map([[n,s]])}return r.createNode(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const o=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class a extends s.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=>s.isNode(t)||s.isPair(t)?t.clone(e):t)),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(o(e))this.add(t);else{const[n,...r]=e,o=this.get(n,!0);if(s.isCollection(o))o.addIn(r,t);else{if(void 0!==o||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,i(this.schema,r,t))}}}deleteIn(e){const[t,...n]=e;if(0===n.length)return this.delete(t);const r=this.get(t,!0);if(s.isCollection(r))return r.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...r]=e,i=this.get(n,!0);return 0===r.length?!t&&s.isScalar(i)?i.value:i:s.isCollection(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every((t=>{if(!s.isPair(t))return!1;const n=t.value;return null==n||e&&s.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 r=this.get(t,!0);return!!s.isCollection(r)&&r.hasIn(n)}setIn(e,t){const[n,...r]=e;if(0===r.length)this.set(n,t);else{const e=this.get(n,!0);if(s.isCollection(e))e.setIn(r,t);else{if(void 0!==e||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,i(this.schema,r,t))}}}}a.maxFlowStringSingleLineLength=60,t.Collection=a,t.collectionFromPath=i,t.isEmptyPath=o},7384:(e,t)=>{"use strict";const n=Symbol.for("yaml.alias"),r=Symbol.for("yaml.document"),s=Symbol.for("yaml.map"),i=Symbol.for("yaml.pair"),o=Symbol.for("yaml.scalar"),a=Symbol.for("yaml.seq"),c=Symbol.for("yaml.node.type"),l=e=>!!e&&"object"==typeof e&&e[c]===o;function u(e){if(e&&"object"==typeof e)switch(e[c]){case s:case a:return!0}return!1}t.ALIAS=n,t.DOC=r,t.MAP=s,t.NODE_TYPE=c,t.NodeBase=class{constructor(e){Object.defineProperty(this,c,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}},t.PAIR=i,t.SCALAR=o,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]===r,t.isMap=e=>!!e&&"object"==typeof e&&e[c]===s,t.isNode=function(e){if(e&&"object"==typeof e)switch(e[c]){case n:case s:case o:case a:return!0}return!1},t.isPair=e=>!!e&&"object"==typeof e&&e[c]===i,t.isScalar=l,t.isSeq=e=>!!e&&"object"==typeof e&&e[c]===a},7356:(e,t,n)=>{"use strict";var r=n(9534),s=n(4418),i=n(6434),o=n(7384);class a{constructor(e,t=null){Object.defineProperty(this,o.NODE_TYPE,{value:o.PAIR}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return o.isNode(t)&&(t=t.clone(e)),o.isNode(n)&&(n=n.clone(e)),new a(t,n)}toJSON(e,t){const n=t?.mapAsMap?new Map:{};return i.addPairToJSMap(t,n,this)}toString(e,t,n){return e?.doc?s.stringifyPair(this,e,t,n):JSON.stringify(this)}}t.Pair=a,t.createPair=function(e,t,n){const s=r.createNode(e,void 0,n),i=r.createNode(t,void 0,n);return new a(s,i)}},5738:(e,t,n)=>{"use strict";var r=n(7384),s=n(5805);class i extends r.NodeBase{constructor(e){super(r.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:s.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},8228:(e,t,n)=>{"use strict";var r=n(2970),s=n(6434),i=n(1928),o=n(7384),a=n(7356),c=n(5738);function l(e,t){const n=o.isScalar(t)?t.value:t;for(const r of e)if(o.isPair(r)){if(r.key===t||r.key===n)return r;if(o.isScalar(r.key)&&r.key.value===n)return r}}class u extends i.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(o.MAP,e),this.items=[]}add(e,t){let n;n=o.isPair(e)?e:e&&"object"==typeof e&&"key"in e?new a.Pair(e.key,e.value):new a.Pair(e,e?.value);const r=l(this.items,n.key),s=this.schema?.sortMapEntries;if(r){if(!t)throw new Error(`Key ${n.key} already set`);o.isScalar(r.value)&&c.isScalarValue(n.value)?r.value.value=n.value:r.value=n.value}else if(s){const e=this.items.findIndex((e=>s(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),r=n?.value;return(!t&&o.isScalar(r)?r.value:r)??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 r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(const e of this.items)s.addPairToJSMap(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!o.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})),r.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}t.YAMLMap=u,t.findPair=l},9248:(e,t,n)=>{"use strict";var r=n(2970),s=n(1928),i=n(7384),o=n(5738),a=n(5805);class c extends s.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=l(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const n=l(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&i.isScalar(r)?r.value:r}has(e){const t=l(e);return"number"==typeof t&&t<this.items.length}set(e,t){const n=l(e);if("number"!=typeof n)throw new Error(`Expected a valid index, not ${e}.`);const r=this.items[n];i.isScalar(r)&&o.isScalarValue(t)?r.value=t:this.items[n]=t}toJSON(e,t){const n=[];t?.onCreate&&t.onCreate(n);let r=0;for(const e of this.items)n.push(a.toJS(e,String(r++),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)}}function l(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=c},6434:(e,t,n)=>{"use strict";var r=n(4774),s=n(121),i=n(7384),o=n(5738),a=n(5805);function c(e,t,n){const r=e&&i.isAlias(n)?n.resolve(e.doc):n;if(!i.isMap(r))throw new Error("Merge sources must be maps or map aliases");const s=r.toJSON(null,e,Map);for(const[e,n]of s)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||i.isScalar(e)&&"<<"===e.value&&(!e.type||e.type===o.Scalar.PLAIN))(n))if(l=i.isAlias(l)?l.resolve(e.doc):l,i.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 o=a.toJS(n,"",e);if(t instanceof Map)t.set(o,a.toJS(l,o,e));else if(t instanceof Set)t.add(o);else{const c=function(e,t,n){if(null===t)return"";if("object"!=typeof t)return String(t);if(i.isNode(e)&&n&&n.doc){const t=s.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 i=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(i);e.length>40&&(e=e.substring(0,36)+'..."'),r.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 i}return JSON.stringify(t)}(n,o,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}},5805:(e,t,n)=>{"use strict";var r=n(7384);t.toJS=function e(t,n,s){if(Array.isArray(t))return t.map(((t,n)=>e(t,String(n),s)));if(t&&"function"==typeof t.toJSON){if(!s||!r.hasAnchor(t))return t.toJSON(n,s);const e={aliasCount:0,count:1,res:void 0};s.anchors.set(t,e),s.onCreate=t=>{e.res=t,delete s.onCreate};const i=t.toJSON(n,s);return s.onCreate&&s.onCreate(i),i}return"bigint"!=typeof t||s?.keep?t:Number(t)}},1771:(e,t,n)=>{"use strict";var r=n(1070),s=n(5147),i=n(2981),o=n(3955);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 r=e.props.slice(1);let s=t.length;"block-scalar-header"===e.props[0].type&&(s-=e.props[0].source.length);for(const e of r)e.offset+=s;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case"block-map":case"block-seq":{const r={type:"newline",offset:e.offset+t.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{const r="indent"in e?e.indent:-1,s="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:r,source:t,end:s})}}}t.createScalarToken=function(e,t){const{implicitKey:n=!1,indent:r,inFlow:s=!1,offset:i=-1,type:c="PLAIN"}=t,l=o.stringifyString({type:c,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}}),u=t.end??[{type:"newline",offset:-1,indent:r,source:"\n"}];switch(l[0]){case"|":case">":{const e=l.indexOf("\n"),t=l.substring(0,e),n=l.substring(e+1)+"\n",s=[{type:"block-scalar-header",offset:i,indent:r,source:t}];return a(s,u)||s.push({type:"newline",offset:-1,indent:r,source:"\n"}),{type:"block-scalar",offset:i,indent:r,props:s,source:n}}case'"':return{type:"double-quoted-scalar",offset:i,indent:r,source:l,end:u};case"'":return{type:"single-quoted-scalar",offset:i,indent:r,source:l,end:u};default:return{type:"scalar",offset:i,indent:r,source:l,end:u}}},t.resolveAsScalar=function(e,t=!0,n){if(e){const o=(e,t,r)=>{const s="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(!n)throw new i.YAMLParseError([s,s+1],t,r);n(s,t,r)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return s.resolveFlowScalar(e,t,o);case"block-scalar":return r.resolveBlockScalar(e,t,o)}}return null},t.setScalarValue=function(e,t,n={}){let{afterKey:r=!1,implicitKey:s=!1,inFlow:i=!1,type:l}=n,u="indent"in e?e.indent:null;if(r&&"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=o.stringifyString({type:l,value:t},{implicitKey:s||null===u,indent:null!==u&&u>0?" ".repeat(u):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(f[0]){case"|":case">":!function(e,t){const n=t.indexOf("\n"),r=t.substring(0,n),s=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=r,e.source=s}else{const{offset:t}=e,n="indent"in e?e.indent:-1,i=[{type:"block-scalar-header",offset:t,indent:n,source:r}];a(i,"end"in e?e.end:void 0)||i.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:i,source:s})}}(e,f);break;case'"':c(e,f,"double-quoted-scalar");break;case"'":c(e,f,"single-quoted-scalar");break;default:c(e,f,"scalar")}}},896:(e,t)=>{"use strict";function n(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=n(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=r(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=r(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=r(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 r({start:e,key:t,sep:r,value:s}){let i="";for(const t of e)i+=t.source;if(t&&(i+=n(t)),r)for(const e of r)i+=e.source;return s&&(i+=n(s)),i}t.stringify=e=>"type"in e?n(e):r(e)},5340:(e,t)=>{"use strict";const n=Symbol("break visit"),r=Symbol("skip children"),s=Symbol("remove item");function i(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),o(Object.freeze([]),e,t)}function o(e,t,r){let i=r(t,e);if("symbol"==typeof i)return i;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 i=o(Object.freeze(e.concat([[a,t]])),c.items[t],r);if("number"==typeof i)t=i-1;else{if(i===n)return n;i===s&&(c.items.splice(t,1),t-=1)}}"function"==typeof i&&"key"===a&&(i=i(t,e))}}return"function"==typeof i?i(t,e):i}i.BREAK=n,i.SKIP=r,i.REMOVE=s,i.itemAtPath=(e,t)=>{let n=e;for(const[e,r]of t){const t=n?.[e];if(!t||!("items"in t))return;n=t.items[r]}return n},i.parentCollection=(e,t)=>{const n=i.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],s=n?.[r];if(s&&"items"in s)return s;throw new Error("Parent collection not found")},t.visit=i},8575:(e,t,n)=>{"use strict";var r=n(1771),s=n(896),i=n(5340);t.createScalarToken=r.createScalarToken,t.resolveAsScalar=r.resolveAsScalar,t.setScalarValue=r.setScalarValue,t.stringify=s.stringify,t.visit=i.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}},5757:(e,t,n)=>{"use strict";var r=n(8575);function s(e){switch(e){case void 0:case" ":case"\n":case"\r":case"\t":return!0;default:return!1}}const i="0123456789ABCDEFabcdef".split(""),o="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)&&s(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]===r.BOM&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length;const n=e.indexOf("#");if(-1!==n){const r=e[n-1];" "!==r&&"\t"!==r||(t=n-1)}for(;;){const n=e[t-1];if(" "!==n&&"\t"!==n)break;t-=1}const r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),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 r.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&&s(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if("..."===e&&s(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!s(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)&&s(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 i=this.getLine();if(null===i)return this.setNext("flow");if((-1!==n&&n<this.indentNext&&"#"!==i[0]||0===n&&(i.startsWith("---")||i.startsWith("..."))&&s(i[3]))&&(n!==this.indentNext-1||1!==this.flowLevel||"]"!==i[0]&&"}"!==i[0]))return this.flowLevel=0,yield r.FLOW_END,yield*this.parseLineStart();let o=0;for(;","===i[o];)o+=(yield*this.pushCount(1)),o+=(yield*this.pushSpaces(!0)),this.flowKey=!1;switch(o+=(yield*this.pushIndicators()),i[o]){case void 0:return"flow";case"#":return yield*this.pushCount(i.length-o),"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||s(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 r=n.indexOf("\n",this.pos);if(-1!==r){for(;-1!==r;){const e=this.continueScalar(r+1);if(-1===e)break;r=n.indexOf("\n",e)}-1!==r&&(t=r-("\r"===n[r-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=>s(e)||"#"===e))}*parseBlockScalar(){let e,t=this.pos-1,n=0;e:for(let r=this.pos;e=this.buffer[r];++r)switch(e){case" ":n+=1;break;case"\n":t=r,n=0;break;case"\r":{const e=this.buffer[r+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,r=this.buffer[e];"\r"===r&&(r=this.buffer[--e]);const s=e;for(;" "===r||"\t"===r;)r=this.buffer[--e];if(!("\n"===r&&e>=this.pos&&e+1+n>s))break;t=e}return yield r.SCALAR,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t,n=this.pos-1,i=this.pos-1;for(;t=this.buffer[++i];)if(":"===t){const t=this.buffer[i+1];if(s(t)||e&&","===t)break;n=i}else if(s(t)){let r=this.buffer[i+1];if("\r"===t&&("\n"===r?(i+=1,t="\n",r=this.buffer[i+1]):n=i),"#"===r||e&&a.includes(r))break;if("\n"===t){const e=this.continueScalar(i+1);if(-1===e)break;i=Math.max(i,e-2)}}else{if(e&&a.includes(t))break;n=i}return t||this.atEnd?(yield r.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(s(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(;!s(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(o.includes(t))t=this.buffer[++e];else{if("%"!==t||!i.includes(this.buffer[e+1])||!i.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 r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}},862:(e,t)=>{"use strict";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 r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}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}}}}},654:(e,t,n)=>{"use strict";var r=n(8575),s=n(5757);function i(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function o(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||i(t.start,"explicit-key-ind")||i(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 s.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("|",r.prettyToken(e)),this.atScalar)return this.atScalar=!1,yield*this.step(),void(this.offset+=e.length);const t=r.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=!i(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===o(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!==o(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 r={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]=r}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,r=Array.isArray(n)?n[n.length-1]:void 0;"comment"===r?.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],r=n?.value?.end;if(Array.isArray(r))return Array.prototype.push.apply(r,t.start),r.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 r=[];if(n&&t.sep&&!t.value){const n=[];for(let r=0;r<t.sep.length;++r){const s=t.sep[r];switch(s.type){case"newline":n.push(r);break;case"space":break;case"comment":s.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(r=t.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":return void(n||t.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"explicit-key-ind":return t.sep||i(t.start,"explicit-key-ind")?n||t.value?(r.push(this.sourceToken),e.items.push({start:r})):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(i(t.start,"explicit-key-ind"))if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(i(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(a(t.key)&&!i(t.sep,"newline")){const e=l(t.start),n=t.key,r=t.sep;r.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:r}]})}else r.length>0?t.sep=t.sep.concat(r,this.sourceToken):t.sep.push(this.sourceToken);else if(i(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:r,key:null,sep:[this.sourceToken]}):i(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 s=this.flowScalar(this.type);return void(n||t.value?(e.items.push({start:r,key:s,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(s):(Object.assign(t,{key:s,sep:[]}),this.onKeyLine=!0))}default:{const s=this.startBlockValue(e);if(s)return n&&"block-seq"!==s.type&&i(t.start,"explicit-key-ind")&&e.items.push({start:r}),void this.stack.push(s)}}}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,r=Array.isArray(n)?n[n.length-1]:void 0;"comment"===r?.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],r=n?.value?.end;if(Array.isArray(r))return Array.prototype.push.apply(r,t.start),r.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||i(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 r=e.end.splice(1,e.end.length);r.push(this.sourceToken);const s={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}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())}}}},3769:(e,t,n)=>{"use strict";var r=n(1294),s=n(505),i=n(2981),o=n(4774),a=n(862),c=n(654);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:s}=l(t),o=new c.Parser(n?.addNewLine),a=new r.Composer(t);let u=null;for(const t of a.compose(o.parse(e),!0,e.length))if(u){if("silent"!==u.options.logLevel){u.errors.push(new i.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else u=t;return s&&n&&(u.errors.forEach(i.prettifyError(e,n)),u.warnings.forEach(i.prettifyError(e,n))),u}t.parse=function(e,t,n){let r;"function"==typeof t?r=t:void 0===n&&t&&"object"==typeof t&&(n=t);const s=u(e,n);if(!s)return null;if(s.warnings.forEach((e=>o.warn(s.options.logLevel,e))),s.errors.length>0){if("silent"!==s.options.logLevel)throw s.errors[0];s.errors=[]}return s.toJS(Object.assign({reviver:r},n))},t.parseAllDocuments=function(e,t={}){const{lineCounter:n,prettyErrors:s}=l(t),o=new c.Parser(n?.addNewLine),a=new r.Composer(t),u=Array.from(a.compose(o.parse(e)));if(s&&n)for(const t of u)t.errors.forEach(i.prettifyError(e,n)),t.warnings.forEach(i.prettifyError(e,n));return u.length>0?u:Object.assign([],{empty:!0},a.streamInfo())},t.parseDocument=u,t.stringify=function(e,t,n){let r=null;if("function"==typeof t||Array.isArray(t)?r=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 s.Document(e,r,n).toString(n)}},9442:(e,t,n)=>{"use strict";var r=n(7384),s=n(4457),i=n(4284),o=n(5077),a=n(8927);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,r.MAP,{value:s.map}),Object.defineProperty(this,r.SCALAR,{value:o.string}),Object.defineProperty(this,r.SEQ,{value:i.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},4457:(e,t,n)=>{"use strict";var r=n(7384),s=n(7356),i=n(8228);const o={collection:"map",createNode:function(e,t,n){const{keepUndefined:r,replacer:o}=n,a=new i.YAMLMap(e),c=(e,i)=>{if("function"==typeof o)i=o.call(t,e,i);else if(Array.isArray(o)&&!o.includes(e))return;(void 0!==i||r)&&a.items.push(s.createPair(e,i,n))};if(t instanceof Map)for(const[e,n]of t)c(e,n);else if(t&&"object"==typeof t)for(const e of Object.keys(t))c(e,t[e]);return"function"==typeof e.sortMapEntries&&a.items.sort(e.sortMapEntries),a},default:!0,nodeClass:i.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(r.isMap(e)||t("Expected a mapping for this tag"),e)};t.map=o},4556:(e,t,n)=>{"use strict";var r=n(5738);const s={identify:e=>null==e,createNode:()=>new r.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new r.Scalar(null),stringify:({source:e},t)=>"string"==typeof e&&s.test.test(e)?e:t.options.nullStr};t.nullTag=s},4284:(e,t,n)=>{"use strict";var r=n(9534),s=n(7384),i=n(9248);const o={collection:"seq",createNode:function(e,t,n){const{replacer:s}=n,o=new i.YAMLSeq(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let i of t){if("function"==typeof s){const n=t instanceof Set?i:String(e++);i=s.call(t,n,i)}o.items.push(r.createNode(i,void 0,n))}}return o},default:!0,nodeClass:i.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(s.isSeq(e)||t("Expected a sequence for this tag"),e)};t.seq=o},5077:(e,t,n)=>{"use strict";var r=n(3955);const s={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,s)=>(t=Object.assign({actualString:!0},t),r.stringifyString(e,t,n,s))};t.string=s},9882:(e,t,n)=>{"use strict";var r=n(5738);const s={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new r.Scalar("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&s.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};t.boolTag=s},2612:(e,t,n)=>{"use strict";var r=n(5738),s=n(6592);const i={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:s.stringifyNumber},o={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():s.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 r.Scalar(parseFloat(e)),n=e.indexOf(".");return-1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:s.stringifyNumber};t.float=a,t.floatExp=o,t.floatNaN=i},8893:(e,t,n)=>{"use strict";var r=n(6592);const s=e=>"bigint"==typeof e||Number.isInteger(e),i=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function o(e,t,n){const{value:i}=e;return s(i)&&i>=0?n+i.toString(t):r.stringifyNumber(e)}const a={identify:e=>s(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>i(e,2,8,n),stringify:e=>o(e,8,"0o")},c={identify:s,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>i(e,0,10,n),stringify:r.stringifyNumber},l={identify:e=>s(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>i(e,2,16,n),stringify:e=>o(e,16,"0x")};t.int=c,t.intHex=l,t.intOct=a},3156:(e,t,n)=>{"use strict";var r=n(4457),s=n(4556),i=n(4284),o=n(5077),a=n(9882),c=n(2612),l=n(8893);const u=[r.map,i.seq,o.string,s.nullTag,a.boolTag,l.intOct,l.int,l.intHex,c.floatNaN,c.floatExp,c.float];t.schema=u},3535:(e,t,n)=>{"use strict";var r=n(5738),s=n(4457),i=n(4284);function o(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 r.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:o,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})=>o(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=[s.map,i.seq].concat(c,l);t.schema=u},8927:(e,t,n)=>{"use strict";var r=n(4457),s=n(4556),i=n(4284),o=n(5077),a=n(9882),c=n(2612),l=n(8893),u=n(3156),f=n(3535),h=n(8062),d=n(9497),p=n(6780),m=n(2321),g=n(1114),y=n(4849);const v=new Map([["core",u.schema],["failsafe",[r.map,i.seq,o.string]],["json",f.schema],["yaml11",m.schema],["yaml-1.1",m.schema]]),b={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:r.map,null:s.nullTag,omap:d.omap,pairs:p.pairs,seq:i.seq,set:g.set,timestamp:y.timestamp},_={"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=_,t.getTags=function(e,t){let n=v.get(t);if(!n){if(!Array.isArray(e)){const e=Array.from(v.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=b[e];if(t)return t;const n=Object.keys(b).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${n}`)}))}},8062:(e,t,n)=>{"use strict";var r=n(5738),s=n(3955);const i={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},i,o,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=r.Scalar.BLOCK_LITERAL),t!==r.Scalar.QUOTE_DOUBLE){const e=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),n=Math.ceil(l.length/e),s=new Array(n);for(let t=0,r=0;t<n;++t,r+=e)s[t]=l.substr(r,e);l=s.join(t===r.Scalar.BLOCK_LITERAL?"\n":" ")}return s.stringifyString({comment:e,type:t,value:l},i,o,a)}};t.binary=i},601:(e,t,n)=>{"use strict";var r=n(5738);function s({value:e,source:t},n){return t&&(e?i:o).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const i={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 r.Scalar(!0),stringify:s},o={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 r.Scalar(!1),stringify:s};t.falseTag=o,t.trueTag=i},7381:(e,t,n)=>{"use strict";var r=n(5738),s=n(6592);const i={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:s.stringifyNumber},o={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():s.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 r.Scalar(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){const r=e.substring(n+1).replace(/_/g,"");"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:s.stringifyNumber};t.float=a,t.floatExp=o,t.floatNaN=i},8861:(e,t,n)=>{"use strict";var r=n(6592);const s=e=>"bigint"==typeof e||Number.isInteger(e);function i(e,t,n,{intAsBigInt:r}){const s=e[0];if("-"!==s&&"+"!==s||(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}const t=BigInt(e);return"-"===s?BigInt(-1)*t:t}const i=parseInt(e,n);return"-"===s?-1*i:i}function o(e,t,n){const{value:i}=e;if(s(i)){const e=i.toString(t);return i<0?"-"+n+e.substr(1):n+e}return r.stringifyNumber(e)}const a={identify:s,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>i(e,2,2,n),stringify:e=>o(e,2,"0b")},c={identify:s,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>i(e,1,8,n),stringify:e=>o(e,8,"0")},l={identify:s,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>i(e,0,10,n),stringify:r.stringifyNumber},u={identify:s,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>i(e,2,16,n),stringify:e=>o(e,16,"0x")};t.int=l,t.intBin=a,t.intHex=u,t.intOct=c},9497:(e,t,n)=>{"use strict";var r=n(9248),s=n(5805),i=n(7384),o=n(8228),a=n(6780);class c extends r.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 r,o;if(i.isPair(e)?(r=s.toJS(e.key,"",t),o=s.toJS(e.value,r,t)):r=s.toJS(e,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,o)}return n}}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)i.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){const r=a.createPairs(e,t,n),s=new c;return s.items=r.items,s}};t.YAMLOMap=c,t.omap=l},6780:(e,t,n)=>{"use strict";var r=n(7384),s=n(7356),i=n(5738),o=n(9248);function a(e,t){if(r.isSeq(e))for(let n=0;n<e.items.length;++n){let o=e.items[n];if(!r.isPair(o)){if(r.isMap(o)){o.items.length>1&&t("Each pair must have its own sequence indicator");const e=o.items[0]||new s.Pair(new i.Scalar(null));if(o.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${o.commentBefore}\n${e.key.commentBefore}`:o.commentBefore),o.comment){const t=e.value??e.key;t.comment=t.comment?`${o.comment}\n${t.comment}`:o.comment}o=e}e.items[n]=r.isPair(o)?o:new s.Pair(o)}}else t("Expected a sequence for this tag");return e}function c(e,t,n){const{replacer:r}=n,i=new o.YAMLSeq(e);i.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let o,c;if("function"==typeof r&&(e=r.call(t,String(a++),e)),Array.isArray(e)){if(2!==e.length)throw new TypeError(`Expected [key, value] tuple: ${e}`);o=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}`);o=t[0],c=e[o]}else o=e;i.items.push(s.createPair(o,c,n))}return i}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},2321:(e,t,n)=>{"use strict";var r=n(4457),s=n(4556),i=n(4284),o=n(5077),a=n(8062),c=n(601),l=n(7381),u=n(8861),f=n(9497),h=n(6780),d=n(1114),p=n(4849);const m=[r.map,i.seq,o.string,s.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},1114:(e,t,n)=>{"use strict";var r=n(7384),s=n(7356),i=n(8228);class o extends i.YAMLMap{constructor(e){super(e),this.tag=o.tag}add(e){let t;t=r.isPair(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new s.Pair(e.key,null):new s.Pair(e,null),i.findPair(this.items,t.key)||this.items.push(t)}get(e,t){const n=i.findPair(this.items,e);return!t&&r.isPair(n)?r.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=i.findPair(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new s.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")}}o.tag="tag:yaml.org,2002:set";const a={collection:"map",identify:e=>e instanceof Set,nodeClass:o,default:!1,tag:"tag:yaml.org,2002:set",resolve(e,t){if(r.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new o,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e},createNode(e,t,n){const{replacer:r}=n,i=new o(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof r&&(e=r.call(t,e,e)),i.items.push(s.createPair(e,null,n));return i}};t.YAMLSet=o,t.set=a},4849:(e,t,n)=>{"use strict";var r=n(6592);function s(e,t){const n=e[0],r="-"===n||"+"===n?e.substring(1):e,s=e=>t?BigInt(e):Number(e),i=r.replace(/_/g,"").split(":").reduce(((e,t)=>e*s(60)+s(t)),s(0));return"-"===n?s(-1)*i:i}function i(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return r.stringifyNumber(e);let s="";t<0&&(s="-",t*=n(-1));const i=n(60),o=[t%i];return t<60?o.unshift(0):(t=(t-o[0])/i,o.unshift(t%i),t>=60&&(t=(t-o[0])/i,o.unshift(t))),s+o.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")}const o={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})=>s(e,n),stringify:i},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=>s(e,!1),stringify:i},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,r,i,o,a,l]=t.map(Number),u=t[7]?Number((t[7]+"00").substr(1,3)):0;let f=Date.UTC(n,r-1,i,o||0,a||0,l||0,u);const h=t[8];if(h&&"Z"!==h){let e=s(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=o,t.timestamp=c},4168:(e,t)=>{"use strict";const n="block",r="quoted";function s(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=r,t.foldFlowLines=function(e,t,i="flow",{indentAtStart:o,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 o&&(o>a-Math.max(2,c)?h.push(0):g=a-o);let y=!1,v=-1,b=-1,_=-1;i===n&&(v=s(e,v),-1!==v&&(g=v+f));for(let t;t=e[v+=1];){if(i===r&&"\\"===t){switch(b=v,e[v+1]){case"x":v+=3;break;case"u":v+=5;break;case"U":v+=9;break;default:v+=1}_=v}if("\n"===t)i===n&&(v=s(e,v)),g=v+f,p=void 0;else{if(" "===t&&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(i===r){for(;" "===m||"\t"===m;)m=t,t=e[v+=1],y=!0;const n=v>_+1?v-2:b-1;if(d[n])return e;h.push(n),d[n]=!0,g=n+f,p=void 0}else y=!0}m=t}if(y&&u&&u(),0===h.length)return e;l&&l();let w=e.slice(0,h[0]);for(let n=0;n<h.length;++n){const s=h[n],o=h[n+1]||e.length;0===s?w=`\n${t}${e.slice(0,o)}`:(i===r&&d[s]&&(w+=`${e[s]}\\`),w+=`\n${t}${e.slice(s+1,o)}`)}return w}},121:(e,t,n)=>{"use strict";var r=n(5157),s=n(7384),i=n(1705),o=n(3955);t.createStringifyContext=function(e,t){const n=Object.assign({blockQuote:!0,commentString:i.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 r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof n.indent?" ".repeat(n.indent):" ",inFlow:r,options:n}},t.stringify=function(e,t,n,i){if(s.isPair(e))return e.toString(t,n,i);if(s.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=s.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,r;if(s.isScalar(t)){r=t.value;const s=e.filter((e=>e.identify?.(r)));n=s.find((e=>e.format===t.format))??s.find((e=>!e.format))}else r=t,n=e.find((e=>e.nodeClass&&r instanceof e.nodeClass));if(!n)throw new Error(`Tag not resolved for ${r?.constructor?.name??typeof r} value`);return n}(t.doc.schema.tags,c));const l=function(e,t,{anchors:n,doc:i}){if(!i.directives)return"";const o=[],a=(s.isScalar(e)||s.isCollection(e))&&e.anchor;a&&r.anchorIsValid(a)&&(n.add(a),o.push(`&${a}`));const c=e.tag?e.tag:t.default?null:t.tag;return c&&o.push(i.directives.tagString(c)),o.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,i):s.isScalar(c)?o.stringifyString(c,t,n,i):c.toString(t,n,i);return l?s.isScalar(c)||"{"===u[0]||"["===u[0]?`${l} ${u}`:`${l}\n${t.indent}${u}`:u}},2970:(e,t,n)=>{"use strict";var r=n(1928),s=n(7384),i=n(121),o=n(1705);function a({comment:e,items:t},n,{blockItemPrefix:r,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(s.isNode(a))!m&&a.spaceBefore&&g.push(""),l(n,g,a.commentBefore,m),a.comment&&(u=a.comment);else if(s.isPair(a)){const e=s.isNode(a.key)?a.key:null;e&&(!m&&e.spaceBefore&&g.push(""),l(n,g,e.commentBefore,m))}m=!1;let f=i.stringify(a,p,(()=>u=null),(()=>m=!0));u&&(f+=o.lineComment(f,c,d(u))),m&&u&&(m=!1),g.push(r+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"+o.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 v=[];for(let e=0;e<t.length;++e){const r=t[e];let a=null;if(s.isNode(r))r.spaceBefore&&v.push(""),l(n,v,r.commentBefore,!1),r.comment&&(a=r.comment);else if(s.isPair(r)){const e=s.isNode(r.key)?r.key:null;e&&(e.spaceBefore&&v.push(""),l(n,v,e.commentBefore,!1),e.comment&&(g=!0));const t=s.isNode(r.value)?r.value:null;t?(t.comment&&(a=t.comment),t.commentBefore&&(g=!0)):null==r.value&&e&&e.comment&&(a=e.comment)}a&&(g=!0);let u=i.stringify(r,m,(()=>a=null));e<t.length-1&&(u+=","),a&&(u+=o.lineComment(u,c,p(a))),!g&&(v.length>y||u.includes("\n"))&&(g=!0),v.push(u),y=v.length}let b;const{start:_,end:w}=a;if(0===v.length)b=_+w;else if(g||(g=v.reduce(((e,t)=>e+t.length+2),2)>r.Collection.maxFlowStringSingleLineLength),g){b=_;for(const e of v)b+=e?`\n${h}${f}${e}`:"\n";b+=`\n${f}${w}`}else b=`${_}${d}${v.join(" ")}${d}${w}`;return e&&(b+=o.lineComment(b,p(e),f),u&&u()),b}function l({indent:e,options:{commentString:t}},n,r,s){if(r&&s&&(r=r.replace(/^\n+/,"")),r){const s=o.indentComment(t(r),e);n.push(s.trimStart())}}t.stringifyCollection=function(e,t,n){return(t.inFlow??e.flow?c:a)(e,t,n)}},1705:(e,t)=>{"use strict";function n(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}t.indentComment=n,t.lineComment=(e,t,r)=>e.endsWith("\n")?n(r,t):r.includes("\n")?"\n"+n(r,t):(e.endsWith(" ")?"":" ")+r,t.stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#")},7763:(e,t,n)=>{"use strict";var r=n(7384),s=n(121),i=n(1705);t.stringifyDocument=function(e,t){const n=[];let o=!0===t.directives;if(!1!==t.directives&&e.directives){const t=e.directives.toString(e);t?(n.push(t),o=!0):e.directives.docStart&&(o=!0)}o&&n.push("---");const a=s.createStringifyContext(e,t),{commentString:c}=a.options;if(e.commentBefore){1!==n.length&&n.unshift("");const t=c(e.commentBefore);n.unshift(i.indentComment(t,""))}let l=!1,u=null;if(e.contents){if(r.isNode(e.contents)){if(e.contents.spaceBefore&&o&&n.push(""),e.contents.commentBefore){const t=c(e.contents.commentBefore);n.push(i.indentComment(t,""))}a.forceBlockIndent=!!e.comment,u=e.contents.comment}const t=u?void 0:()=>l=!0;let f=s.stringify(e.contents,a,(()=>u=null),t);u&&(f+=i.lineComment(f,"",c(u))),"|"!==f[0]&&">"!==f[0]||"---"!==n[n.length-1]?n.push(f):n[n.length-1]=`--- ${f}`}else n.push(s.stringify(e.contents,a));if(e.directives?.docEnd)if(e.comment){const t=c(e.comment);t.includes("\n")?(n.push("..."),n.push(i.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(i.indentComment(c(t),"")))}return n.join("\n")+"\n"}},6592:(e,t)=>{"use strict";t.stringifyNumber=function({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);const s="number"==typeof r?r:Number(r);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let i=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(i)){let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let n=t-(i.length-e-1);for(;n-- >0;)i+="0"}return i}},4418:(e,t,n)=>{"use strict";var r=n(7384),s=n(5738),i=n(121),o=n(1705);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=r.isNode(e)&&e.comment||null;if(m){if(g)throw new Error("With simple keys, key nodes cannot have comments");if(r.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||r.isCollection(e)||(r.isScalar(e)?e.type===s.Scalar.BLOCK_FOLDED||e.type===s.Scalar.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!y&&(m||!l),indent:f+h});let v,b,_,w=!1,$=!1,S=i.stringify(e,n,(()=>w=!0),(()=>$=!0));if(!y&&!n.inFlow&&S.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 w&&a&&a(),""===S?"?":y?`? ${S}`:S}else if(l&&!m||null==t&&y)return S=`? ${S}`,g&&!w?S+=o.lineComment(S,n.indent,d(g)):$&&c&&c(),S;w&&(g=null),y?(g&&(S+=o.lineComment(S,n.indent,d(g))),S=`? ${S}\n${f}:`):(S=`${S}:`,g&&(S+=o.lineComment(S,n.indent,d(g)))),r.isNode(t)?(v=!!t.spaceBefore,b=t.commentBefore,_=t.comment):(v=!1,b=null,_=null,t&&"object"==typeof t&&(t=u.createNode(t))),n.implicitKey=!1,y||g||!r.isScalar(t)||(n.indentAtStart=S.length+1),$=!1,p||!(h.length>=2)||n.inFlow||y||!r.isSeq(t)||t.flow||t.tag||t.anchor||(n.indent=n.indent.substring(2));let E=!1;const k=i.stringify(t,n,(()=>E=!0),(()=>$=!0));let O=" ";if(g||v||b){if(O=v?"\n":"",b){const e=d(b);O+=`\n${o.indentComment(e,n.indent)}`}""!==k||n.inFlow?O+=`\n${n.indent}`:"\n"===O&&(O="\n\n")}else if(!y&&r.isCollection(t)){const e=k[0],r=k.indexOf("\n"),s=-1!==r,i=n.inFlow??t.flow??0===t.items.length;if(s||!i){let t=!1;if(s&&("&"===e||"!"===e)){let n=k.indexOf(" ");"&"===e&&-1!==n&&n<r&&"!"===k[n+1]&&(n=k.indexOf(" ",n+1)),(-1===n||r<n)&&(t=!0)}t||(O=`\n${n.indent}`)}}else""!==k&&"\n"!==k[0]||(O="");return S+=O+k,n.inFlow?E&&a&&a():_&&!E?S+=o.lineComment(S,n.indent,d(_)):$&&c&&c(),S}},3955:(e,t,n)=>{"use strict";var r=n(5738),s=n(4168);const i=e=>({indentAtStart:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),o=e=>/^(%|---|\.\.\.)/m.test(e);function a(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,a=t.options.doubleQuotedMinMultiLineLength,c=t.indent||(o(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(r||'"'===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,r?l:s.foldFlowLines(l,c,s.FOLD_QUOTED,i(t))}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||(o(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${n}`)+"'";return t.implicitKey?r:s.foldFlowLines(r,n,s.FOLD_FLOW,i(t))}function l(e,t){const{singleQuote:n}=t.options;let r;if(!1===n)r=a;else{const t=e.includes('"'),s=e.includes("'");r=t&&!s?c:s&&!t?a:n?c:a}return r(e,t)}function u({comment:e,type:t,value:n},a,c,u){const{blockQuote:f,commentString:h,lineWidth:d}=a.options;if(!f||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return l(n,a);const p=a.indent||(a.forceBlockIndent||o(n)?" ":""),m="literal"===f||"folded"!==f&&t!==r.Scalar.BLOCK_FOLDED&&(t===r.Scalar.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;const r=t-n,s=e.length;if(s<=r)return!1;for(let t=0,n=0;t<s;++t)if("\n"===e[t]){if(t-n>r)return!0;if(n=t+1,s-n<=r)return!1}return!0}(n,d,p.length));if(!n)return m?"|\n":">\n";let g,y;for(y=n.length;y>0;--y){const e=n[y-1];if("\n"!==e&&"\t"!==e&&" "!==e)break}let v=n.substring(y);const b=v.indexOf("\n");-1===b?g="-":n===v||b!==v.length-1?(g="+",u&&u()):g="",v&&(n=n.slice(0,-v.length),"\n"===v[v.length-1]&&(v=v.slice(0,-1)),v=v.replace(/\n+(?!\n|$)/g,`$&${p}`));let _,w=!1,$=-1;for(_=0;_<n.length;++_){const e=n[_];if(" "===e)w=!0;else{if("\n"!==e)break;$=_}}let S=n.substring(0,$<_?$+1:_);S&&(n=n.substring(S.length),S=S.replace(/\n+/g,`$&${p}`));let E=(m?"|":">")+(w?p?"2":"1":"")+g;return e&&(E+=" "+h(e.replace(/ ?[\r\n]+/g," ")),c&&c()),m?`${E}\n${p}${S}${n=n.replace(/\n+/g,`$&${p}`)}${v}`:(n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`),`${E}\n${p}${s.foldFlowLines(`${S}${n}${v}`,p,s.FOLD_BLOCK,i(a))}`)}t.stringifyString=function(e,t,n,f){const{implicitKey:h,inFlow:d}=t,p="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:m}=e;m!==r.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(p.value)&&(m=r.Scalar.QUOTE_DOUBLE);const g=e=>{switch(e){case r.Scalar.BLOCK_FOLDED:case r.Scalar.BLOCK_LITERAL:return h||d?l(p.value,t):u(p,t,n,f);case r.Scalar.QUOTE_DOUBLE:return a(p.value,t);case r.Scalar.QUOTE_SINGLE:return c(p.value,t);case r.Scalar.PLAIN:return function(e,t,n,a){const{type:c,value:f}=e,{actualString:h,implicitKey:d,indent:p,indentStep:m,inFlow:g}=t;if(d&&/[\n[\]{},]/.test(f)||g&&/[[\]{},]/.test(f))return l(f,t);if(!f||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(f))return d||g||!f.includes("\n")?l(f,t):u(e,t,n,a);if(!d&&!g&&c!==r.Scalar.PLAIN&&f.includes("\n"))return u(e,t,n,a);if(o(f)){if(""===p)return t.forceBlockIndent=!0,u(e,t,n,a);if(d&&p===m)return l(f,t)}const y=f.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:r}=t.doc.schema;if(r.some(e)||n?.some(e))return l(f,t)}return d?y:s.foldFlowLines(y,p,s.FOLD_FLOW,i(t))}(p,t,n,f);default:return null}};let y=g(m);if(null===y){const{defaultKeyType:e,defaultStringType:n}=t.options,r=h&&e||n;if(y=g(r),null===y)throw new Error(`Unsupported default string type ${r}`)}return y}},9303:(e,t,n)=>{"use strict";var r=n(7384);const s=Symbol("break visit"),i=Symbol("skip children"),o=Symbol("remove node");function a(e,t){const n=f(t);r.isDocument(e)?c(null,e.contents,n,Object.freeze([e]))===o&&(e.contents=null):c(null,e,n,Object.freeze([]))}function c(e,t,n,i){const a=h(e,t,n,i);if(r.isNode(a)||r.isPair(a))return d(e,i,a),c(e,a,n,i);if("symbol"!=typeof a)if(r.isCollection(t)){i=Object.freeze(i.concat(t));for(let e=0;e<t.items.length;++e){const r=c(e,t.items[e],n,i);if("number"==typeof r)e=r-1;else{if(r===s)return s;r===o&&(t.items.splice(e,1),e-=1)}}}else if(r.isPair(t)){i=Object.freeze(i.concat(t));const e=c("key",t.key,n,i);if(e===s)return s;e===o&&(t.key=null);const r=c("value",t.value,n,i);if(r===s)return s;r===o&&(t.value=null)}return a}async function l(e,t){const n=f(t);r.isDocument(e)?await u(null,e.contents,n,Object.freeze([e]))===o&&(e.contents=null):await u(null,e,n,Object.freeze([]))}async function u(e,t,n,i){const a=await h(e,t,n,i);if(r.isNode(a)||r.isPair(a))return d(e,i,a),u(e,a,n,i);if("symbol"!=typeof a)if(r.isCollection(t)){i=Object.freeze(i.concat(t));for(let e=0;e<t.items.length;++e){const r=await u(e,t.items[e],n,i);if("number"==typeof r)e=r-1;else{if(r===s)return s;r===o&&(t.items.splice(e,1),e-=1)}}}else if(r.isPair(t)){i=Object.freeze(i.concat(t));const e=await u("key",t.key,n,i);if(e===s)return s;e===o&&(t.key=null);const r=await u("value",t.value,n,i);if(r===s)return s;r===o&&(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,s){return"function"==typeof n?n(e,t,s):r.isMap(t)?n.Map?.(e,t,s):r.isSeq(t)?n.Seq?.(e,t,s):r.isPair(t)?n.Pair?.(e,t,s):r.isScalar(t)?n.Scalar?.(e,t,s):r.isAlias(t)?n.Alias?.(e,t,s):void 0}function d(e,t,n){const s=t[t.length-1];if(r.isCollection(s))s.items[e]=n;else if(r.isPair(s))"key"===e?s.key=n:s.value=n;else{if(!r.isDocument(s)){const e=r.isAlias(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${e} parent`)}s.contents=n}}a.BREAK=s,a.SKIP=i,a.REMOVE=o,l.BREAK=s,l.SKIP=i,l.REMOVE=o,t.visit=a,t.visitAsync=l},6623:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},3864:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};return(()=>{"use strict";n.r(r);var e=n(6635);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return s="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(e)}var i=/^(\${.*})/,o=/[^\w @]/g,a=function(e){var t;return null===(t=e.split(i).find((function(e){return e.match(i)})))||void 0===t?void 0:t.replace(o,"")},c=function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,e.values)(n).reduce((function(n,r){if("string"==typeof r){var i=a(r);return i?(0,e.set)(n,i,process.env[i]):n}return"object"===s(r)?t(r,n):n}),r)};const l={apply:function n(r,i){return(0,e.entries)(r).forEach((function(o){var c,l,u=(l=2,function(e){if(Array.isArray(e))return e}(c=o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,s,i,o,a=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){l=!0,s=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw s}}return a}}(c,l)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(c,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=u[0],h=u[1];if("string"==typeof h){var d=a(h);if(d){var p=i[d];p||console.log("warning: value for ".concat(d," is ").concat(p)),(0,e.set)(r,f,h.replace("${".concat(d,"}"),i[d]))}}else"object"===s(h)&&n(h,i)})),r},create:function(e){return c(e)}},u=require("fs");var f=n.n(u);const h=Symbol.for("__strategy__"),d=Symbol.for("__mappings__"),p=Symbol.for("__metadata_map__"),m=Symbol.for("__metadata_object_map__"),g=Symbol.for("__error_handler__"),y=Symbol.for("__naming_conventions__"),v=Symbol.for("__recursive_depth__"),b=Symbol.for("__recursive_count__"),_=Symbol.for("__profile_configuration_context__"),w=Symbol.for("nodejs.util.inspect.custom");function $(e){return e[g]}function S(e){return e[d]}function E(e){return e[p]}function k(e){return e[m]}function O(e){return e[v]}function P(e){return e[h]}function j(e){let t=e.toString();return e.name&&(t=e.name),t}function A(e,t=[]){if(!t.length)return;let n;const r=t.length;for(n=0;n<r&&null!=e;n++)e=e[t[n]];return n&&n==r?e:void 0}function x(e,t,n,r=!1){var s;const i="string"==typeof t?Symbol.for(t):t,o="string"==typeof n?Symbol.for(n):n,a=null===(s=S(e).get(i))||void 0===s?void 0:s.get(o);if(null==a&&!r){const r=$(e),s=`Mapping is not found for ${String(t)} and ${String(n)}`;throw r.handle(s),new Error(s)}return a}function N(e){return Object.getPrototypeOf(e)===Date||e===Date}function C(e){return Array.isArray(e)?!e.length:"object"!=typeof e&&"function"!=typeof e?!e:!Object.keys(e).length}function M(e,t){return e.length===t.length&&e.every(((e,n)=>t[n]===e))}function I(e){if(null==e)return!0;const t=Object.getPrototypeOf(e);return t===String||t===Number||t===Boolean||e===String||e===Number||e===Boolean}function T(e,t,n){const{decomposedPath:r,base:s}=L(t);return void 0===s?e:(R(e,s),n=r.length<=1?n:T(e[s],r.slice(1),n),Object.assign(e,{[s]:n}))}function D(e,t,n){const{decomposedPath:r,base:s}=L(t);void 0!==s&&(R(e,s),r.length<=1?e[s]=n:D(e[s],r.slice(1),n))}function L(e){if(e.length<1)return{base:"",decomposedPath:[]};const t=e;return{base:e[0],decomposedPath:t}}function R(e,t){e.hasOwnProperty(t)||(e[t]={})}function F(e,t,n,r,s,i,o,a){let c;const l=e[0],u=e[1],f=!(I(o)||I(a)||N(o)||N(a));switch(l){case 1:case 5:c=u(t);break;case 3:c=u();break;case 4:c=u(t,i,s?{extraArgs:()=>s}:void 0);break;case 2:case 7:case 8:c=u(t,r),f&&null!=c&&(c=Array.isArray(c)?i.mapArray(c,o,a):i.map(c,o,a));break;case 9:c=u(t,s||{});break;case 10:c=F(u(t),t,n,r,s,i,o,a)}return c}function q(e,t){return n=>{t&&(t=T(t,e,n))}}function U(e,t,n,r=!1){return K({mapping:e,sourceObject:t,options:n,setMemberFn:q,isMapArray:r})}function z(e){return t=>n=>{void 0!==n&&D(e,t,n)}}function B(e){return t=>A(e,t)}function V(e,t,n,r,s=!1){K({sourceObject:t,mapping:e,setMemberFn:z(n),getMemberFn:B(n),options:r,isMapArray:s})}function K({mapping:e,sourceObject:t,options:n,setMemberFn:r,getMemberFn:s,isMapArray:i=!1}){const[[o,a],[,c],l,,u,f,,[h,d]=[]]=e,{beforeMap:p,afterMap:m,destinationConstructor:g=f,extraArgs:y}=null!=n?n:{},v=$(u),b=E(u),_=g(t,a),w=null==y?void 0:y(e,_),S=[];if(!i){const e=null!=p?p:h;e&&e(t,_,w)}for(let e=0,n=l.length;e<n;e++){const[n,[,[i,[o,c]=[]]],[f,h]=[]]=l[e];let d=!(I(f)||N(f)||I(h)||N(h)||h!==f);d&&(d=!x(u,h,f,!0));const p=e=>{var t,s;try{return r(n,_)(e())}catch(e){const r=`\nError at "${n}" on ${(null===(s=null===(t=a.prototype)||void 0===t?void 0:t.constructor)||void 0===s?void 0:s.name)||a.toString()} (${JSON.stringify(_)})\n---------------------------------------------------------------------\nOriginal error: ${e}`;throw v.handle(r),new Error(r)}};if(S.push(n[0]),!o||o(t))if(6!==i[0])p((()=>F(i,t,_,n,w,u,h,f)));else{const e=b.get(a),r=e&&null===e.find((e=>M(e[0],n))),o=i[1](t),c=i[2];if(null==o||o instanceof Date||"File"===Object.prototype.toString.call(o).slice(8,-1)||r||d||c){p((()=>o));continue}if(Array.isArray(o)){const[e]=o;if("object"!=typeof e||e instanceof Date||"File"===Object.prototype.toString.call(e).slice(8,-1)){p((()=>o.slice()));continue}if(C(e)){p((()=>[]));continue}if(I(f))continue;p((()=>o.map((e=>U(x(u,h,f),e,{extraArgs:y})))));continue}if("object"==typeof o){const e=x(u,h,f);if(s){const t=s(n);void 0!==t&&K({sourceObject:o,mapping:e,options:{extraArgs:y},setMemberFn:z(t),getMemberFn:B(t)});continue}p((()=>K({mapping:e,sourceObject:o,options:{extraArgs:y},setMemberFn:q})));continue}p((()=>o))}else p((()=>c))}if(!i){const e=null!=m?m:d;e&&e(t,_,w)}return function(e,t,n,r,s,i){const o=Object.keys(t).reduce(((r,s)=>{var i;const o=s in e,a=n.some((e=>e===s)),c=!0===(null===(i=Object.getOwnPropertyDescriptor(t,s))||void 0===i?void 0:i.writable);return a||o||!c||void 0!==e[s]||r.push(s),r}),[]),a=j(r),c=j(s);if(o.length){const e=`${a} -> ${c}`;i.handle(`\nUnmapped properties for ${e}:\n-------------------\n${o.join(",\n")}\n`)}}(_,c,S,o,a,v),_}class W{static configure(e={}){this.configured||(this.configured=!0,Object.entries(e).forEach((([e,t])=>{void 0!==t&&(this[e]=t)})))}static log(e){console.log.bind(console,this.AUTOMAPPER_PREFIX,e)}static warn(e){console.warn.bind(console,this.AUTOMAPPER_PREFIX,e)}static error(e){console.error.bind(console,this.AUTOMAPPER_PREFIX,e)}static info(e){console.info.bind(console,this.AUTOMAPPER_PREFIX,e)}}W.AUTOMAPPER_PREFIX="[AutoMapper]: ",W.configured=!1;const H=Symbol("__recursive_data__");function G(e,t,n){const r=e.get(t);return r?function(e,t){let n=e;for(const e of t)if(n=n.get(e),!n)return;return n.get(H)}(r,n):void 0}function J(e,t,n,r){if(!e.has(t))return void e.set(t,Y(new Map,n,r));const s=e.get(t);(function(e,t){let n=e;for(const e of t){const t=n.get(e);if(!t)return!1;n=t}return n.has(H)})(s,n)||Y(s,n,r)}function Y(e,t,n){let r=e;for(const e of t){let t=r.get(e);t||(t=new Map,r.set(e,t)),r=t}return r.set(H,n),e}const Q={applyMetadata:function(e){const t=e.mapper,n=E(t),r=k(t),s=function(e){return e[b]}(t),i=O(t);return function e(t,o,a=!0,c=!1){var l;const u=n.get(t),f={};if(C(u)||!u)return f;for(let n=0,l=u.length;n<l;n++){const l=u[n][0],h=u[n][1],d=u[n][2];if(u[n][3]&&1===o)continue;const p=h();if(d){D(f,l,[]);continue}if(I(p)||null===p){D(f,l,void 0);continue}if(N(p)){D(f,l,new Date);continue}const m=G(i,t,l),g=G(s,t,l)||0;if(0===m){D(f,l,{});continue}if(m===g){!a&&c||J(s,t,l,0),D(f,l,{});continue}J(s,t,l,g+1);const y=r.get(p);D(f,l,(null==y?void 0:y[o])||e(p,o,!1,p===t))}return!a&&c||null===(l=s.get(t))||void 0===l||l.clear(),f}},preMap:e=>e,postMap:(e,t)=>t};function Z(e){return[6,t=>A(t,e)]}function X(e,[t,n]){const r=e.map((e=>e.split(n.splittingExpression).filter(Boolean))).filter((e=>e.length>0));return r.length?r.map((e=>t.transformPropertyName(e))):e}function ee(e,t,n){const[r]=n,s=[].concat(...t.map((e=>e.split(r.splittingExpression).filter(Boolean)))),[i,...o]=s.slice(0,s.length-1);let a=i,c=0,l=te(e,a);if(!l)for(let t=0,n=o.length;t<n;t++)if(a=r.transformPropertyName([a,o[t]]),te(e,a)){c=t+1,l=!0;break}if(!l)return t;const u=s.slice(c+1,s.length+1),f=r.transformPropertyName(u);return u.length>1&&!te(e[a],f)&&te(e[a],r.transformPropertyName([u[0]]))?[a,...ee(e[a],X([f],n),n)]:[a,r.transformPropertyName(s.slice(c+1,s.length+1))]}function te(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ne(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}const re=["constructor","__defineGetter__","__defineSetter__","hasOwnProperty","__lookupGetter__","__lookupSetter__","isPrototypeOf","propertyIsEnumerable","toString","valueOf","__proto__","toLocaleString"];function se(e,t=[],n=[]){const r=n;let s=!1;const i=Array.from(new Set([...Object.getOwnPropertyNames(e)].filter((e=>!re.includes(e)))));for(let n=0,o=i.length;n<o;n++){const o=i[n],a=[...t,o],c=e[o];if("function"!=typeof c&&(r.push(a),"object"==typeof c)){const e=Array.isArray(c)?c:[c];for(const t of e){const e=se(t,a);e&&(s=!0,r.push(...e))}}}return s?function(e){const t=[];for(let n=0,r=e.length;n<r;n++){const r=e[n];t.some((e=>ne(e,r)))||t.push(r)}return t}(r):r}function ie(e,t,n,r=[]){const s=P(e),i=s.applyMetadata.bind(s),o=s.destinationConstructor.bind(s),a=k(e),c=a.get(t),l=a.get(n),u=(null==l?void 0:l[1])||i(n,1);l?l[1]=u:a.set(n,[void 0,u]);const f=(null==c?void 0:c[0])||i(t,0);c?c[0]=f:a.set(t,[f]);const h=[[t,n],[f,u],[],[],e,o];h[8]=function(e){const t=e[y];if(t)return function(e){return"source"in e&&"destination"in e?[e.source,e.destination]:[e,e]}(t)}(e);for(let e=0,t=r.length;e<t;e++)r[e](h);const d=se(u),p=h[2],m=h[3],g=m.length>0,v=h[8],b=E(e),_=b.get(n)||[],w=b.get(t)||[];for(let e=0,t=d.length;e<t;e++){const t=d[e];if(g&&m.some((e=>M(e[0],t))))continue;const n=_.find((e=>M(e[0],t)));let r=t;if(v&&(r=ee(f,X(t,v),v)),!(r[0]in f))continue;const s=w.find((e=>M(e[0],r)));let i;if(!s&&!n)continue;s&&n&&(i=[n[1](),s[1]()]);const o=[Z(r)];if(i){let e;const t=s[2],r=n[2],a=h[6];if(a){const[n,s]=a.get(i[1])||[],[o,c]=(t?null==s?void 0:s.get(i[0]):null==n?void 0:n.get(i[0]))||[];e=r?c:o}if(e){const t=o[0][1];o[0][1]=n=>e(t(n)),o[0][2]=!0}}p.push([t,[t,o],i])}for(const e of m)p.push(e);return h}const oe=()=>{},ae=function e(t,n=[]){return new Proxy(t,{get(t,r){const s=n.slice();return s.push(r),e(oe,s)},apply:()=>n})}(oe);function ce(e,...t){let[n,r]=t;const s=function(e){const t=e(ae);if("function"!=typeof t)return null;const n=t();return 0===n.length||n.some((e=>"string"!=typeof e))?null:n}(e)||[];null==r&&(r=n,n=void 0);const i=[s,[r,n]];return e=>{const[t,n]=e[0],r=e[4],o=e[8],[a]=e[1],c=E(r),l=c.get(n)||[],u=c.get(t)||[];let f;const h=l.find((e=>M(e[0],s)));let d=s;if(o&&(d=ee(a,X(s,o),o)),!(d[0]in a))return void e[3].push([s,i,f]);const p=u.find((e=>M(e[0],d)));p&&h&&(f=[h[1](),p[1]()]),e[3].push([s,i,f])}}function le(e){return"resolve"in e}class ue{static reset(){this.metadataStorage=new Map}static create(e,t={}){var n;const r="string"==typeof e?Symbol.for(e):e,s=Object.entries(t);if(s.length)for(let e=0,t=s.length;e<t;e++){const[t,i]=s[e],o=this.normalizePojoMetadata(i);this.metadataStorage.has(r)||this.metadataStorage.set(r,[]),null===(n=this.metadataStorage.get(r))||void 0===n||n.push([t,o])}}static retrieve(e){const t=this.metadataStorage.get(e);return t?t.map((([e,{type:t,depth:n}])=>{const r=t(),s=Array.isArray(r);return[e,{type:s?()=>r[0]:()=>r,isArray:s,depth:n}]})):[]}static normalizePojoMetadata(e){if("string"==typeof e||"symbol"==typeof e||"function"==typeof e||Array.isArray(e))return{type:()=>this.toSymbol(e),depth:1};const t=e;return t.type=this.toSymbol(t.type),{type:()=>t.type,depth:t.depth}}static toSymbol(e){return"string"==typeof e?Symbol.for(e):Array.isArray(e)&&"string"==typeof e[0]?Symbol.for(e[0]):e}}function fe(e){return fe="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},fe(e)}function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==fe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==fe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===fe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}ue.metadataStorage=new Map;var me,ge,ye=function({strategyInitializer:e,errorHandler:t,namingConventions:n}){let r,s,i,o,a,c,l;function u(e,t,n){if(t&&n)return{destinationIdentifier:t,mapOptions:n};let r=e;if(t&&!n){const e=typeof t;"string"===e||"function"===e?r=t:n=t}return{destinationIdentifier:r,mapOptions:n}}return new Proxy({[w]:()=>"\nMapper {} is an empty Object as a Proxy. The following methods are available to use with a Mapper:\n- Mapper#map(Array)(Async), Mapper#mutate(Array)(Async)\n- createMap()\n- addProfile()\n- getMapping()\n- getMappings()\n "},{get:(f,w,$)=>w===h?(r||(r=e($)),r):w===_?(l||(l=new Set),l):w===d?(s||(s=new Map),s):w===p?(i||(i=new Map),i):w===m?(o||(o=new Map),o):w===g?(t||(t={handle:W.error?W.error.bind(W):()=>{}}),t):w===y?n:w===v?(a||(a=new Map),a):w===b?(c||(c=new Map),c):"dispose"===w?()=>{null==s||s.clear(),null==o||o.clear(),null==a||a.clear(),null==c||c.clear(),null==l||l.clear()}:"map"===w?(e,t,n,s)=>{if(null==e)return e;const{destinationIdentifier:i,mapOptions:o}=u(t,n,s),a=x($,t,i),c=U(a,e=r.preMap(e,a),o||{});return r.postMap(e,c,a)}:"mapAsync"===w?(e,t,n,r)=>{const s=$.map(e,t,n,r);return new Promise((e=>{setTimeout(e,0,s)}))}:"mapArray"===w?(e,t,n,s)=>{if(!e.length)return[];const{destinationIdentifier:i,mapOptions:o}=u(t,n,s),a=x($,t,i),{beforeMap:c,afterMap:l,extraArgs:f}=o||{};c&&c(e,[]);const h=[];for(let t=0,n=e.length;t<n;t++){let n=e[t];n=r.preMap(n,a);const s=U(a,n,{extraArgs:f},!0);h.push(r.postMap(n,s,a))}return l&&l(e,h),h}:"mapArrayAsync"===w?(e,t,n,r)=>{const s=$.mapArray(e,t,n,r);return new Promise((e=>{setTimeout(e,0,s)}))}:"mutate"===w?(e,t,n,s,i)=>{if(null==e)return;const{destinationIdentifier:o,mapOptions:a}=u(n,s,i),c=x($,n,o);V(c,e=r.preMap(e,c),t,a||{}),r.postMap(e,t,c)}:"mutateAsync"===w?(e,t,n,r,s)=>new Promise((i=>{$.mutate(e,t,n,r,s),setTimeout(i,0)})):"mutateArray"===w?(e,t,n,s,i)=>{if(!e.length)return;const{destinationIdentifier:o,mapOptions:a}=u(n,s,i),c=x($,n,o),{beforeMap:l,afterMap:f,extraArgs:h}=a||{};l&&l(e,t);for(let n=0,s=e.length;n<s;n++){let s=e[n];s=r.preMap(s,c),V(c,s,t[n]||{},{extraArgs:h},!0),r.postMap(s,t[n],c)}f&&f(e,t)}:"mutateArrayAsync"===w?(e,t,n,r,s)=>new Promise((i=>{$.mutateArray(e,t,n,r,s),setTimeout(i,0)})):Reflect.get(f,w,$)})}({strategyInitializer:function(e={}){const{destinationConstructor:t=(()=>({})),applyMetadata:n,postMap:r,preMap:s}=Object.assign(Object.assign({},Q),e);return e=>({destinationConstructor:t,mapper:e,get applyMetadata(){return n(this)},retrieveMetadata(...e){const t=new Map;for(let n=0,r=e.length;n<r;n++){const r=e[n];t.set(r,ue.retrieve(r))}return t},preMap:s,postMap:r})}()});ue.create("AppshellConfig",{}),ue.create("AppshellManifest",{}),function(e,t,...n){var r;const s="string"==typeof t?Symbol.for(t):t;let i=s;const[o,...a]=n||[];o&&("string"==typeof o?i=Symbol.for(o):"function"==typeof o&&void 0!==o.prototype?i=o:(a||[]).push(o));const c=S(e);let l=null===(r=c.get(s))||void 0===r?void 0:r.get(i);l?$(e).handle(`Mapping for source ${String(t)} and destination ${String(o)} already exists`):(P(e).retrieveMetadata(s,i).forEach(((t,n)=>{!function(e,t,n){if(!function(e,t=!1){return t?void 0!==e:null!=e}(n))return;const r=E(e);if(!r.has(t))for(const[s,{isGetterOnly:i,type:o,depth:a,isArray:c}]of n)r.set(t,[...r.get(t)||[],[[s],o,c,i]]),null!=a&&J(O(e),t,[s],a)}(e,n,t)})),l=ie(e,s,i,(a||[]).concat(...function(e){return e[_]}(e).values()).filter((e=>null!=e))),c.has(s)?c.get(s).set(i,l):c.set(s,new Map([[i,l]])))}(ye,"AppshellConfig","AppshellManifest",ce((function(e){return e.remotes}),le(ge=function(t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){de(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},function(t){return(0,e.entries)(t.remotes).reduce((function(e,t){var n,r,s=(r=2,function(e){if(Array.isArray(e))return e}(n=t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,s,i,o,a=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){l=!0,s=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw s}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return pe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=s[0],o=s[1];return e[i]=function(e,t,n){var r=t.replace(/\/.+/,""),s=t.replace(r,".");return{id:n.id,url:n.url,scope:r,module:s,metadata:n.metadata}}(0,i,o),e}),{})}(t))})?[9,ge.resolve.bind(ge)]:[9,ge]),ce((function(e){return e.modules}),le(me=function(e){return de({},e.module.name||"unknown",e.module)})?[1,me.resolve.bind(me)]:[1,me]));var ve=function(e,t){var n=ye.map(e,"AppshellConfig","AppshellManifest");return l.apply(n,t)};const be=require("path");var _e=n.n(be),we=function e(t,n,r,s){var i=f().readdirSync(t);return r>0&&i.forEach((function(i){f().statSync(_e().join(t,i)).isDirectory()?n=e(_e().join(t,i),n,r-1,s):s&&!_e().basename(i).match(s)||n.push(_e().join(t,i))})),n};const $e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/.*/;if(!f().existsSync(e))return[];var r=n instanceof RegExp?n:new RegExp("^(".concat(n,")$"));return we(e,[],t,r)};n(4667);var Se=function(t,n){if((0,e.isArray)(t))return t.concat(n)};const Ee=function(t){if(!t)throw new Error("No validator provided");for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];r.forEach((function(e){return t.validate(e)})),t.validate.apply(t,r);var i=r.reduce((function(t,n){return(0,e.mergeWith)(t,n,Se)}),{});return t.validate(i),i};var ke=n(1192);const Oe=JSON.parse('{"title":"AppshellManifest","type":"object","properties":{"remotes":{"description":"Collection of remote entrypoints","type":"object","additionalProperties":{"anyOf":[{"$ref":"#/definitions/Entrypoint"}]}},"modules":{"description":"Module federation configuration","type":"object"}},"required":["remotes","modules"],"definitions":{"Entrypoint":{"title":"Module entrypoint","type":"object","properties":{"id":{"description":"ID of the remote app","type":"string"},"url":{"description":"Url of the remote app","type":"string"},"scope":{"description":"Scope key of the remote app","type":"string"},"module":{"description":"Module key of the remote app","type":"string"},"metadata":{"description":"Metadata associated with the remote app","type":"object","additionalProperties":true}},"required":["url"],"additionalProperties":false}},"additionalProperties":false}');var Pe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var s=n.flatMap((function(t){return(0,e.values)(t.remotes).map((function(e){return e.id}))}));return(0,e.uniq)(s).length!==s.length},je=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var s=n.flatMap((function(t){return(0,e.keys)(t.remotes)}));return(0,e.uniq)(s).length!==s.length};const Ae={validate:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.forEach((function(e){return(0,ke.validate)(Oe,e)})),Pe.apply(void 0,t))throw new Error("Multiple routes with the same ID");if(je.apply(void 0,t))throw new Error("Multiple remotes with the same key")}};function xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}JSON.parse('{"title":"AppshellConfig","type":"object","properties":{"name":{"description":"Name of the module","type":"string"},"remotes":{"description":"Collection of remote entrypoints","type":"object","additionalProperties":{"anyOf":[{"$ref":"#/definitions/Entrypoint"}]}},"module":{"description":"Module federation configuration","type":"object"}},"definitions":{"Entrypoint":{"title":"Module entrypoint","type":"object","properties":{"id":{"description":"ID of the remote app","type":"string"},"url":{"description":"Url of the remote app","type":"string"},"metadata":{"description":"Metadata associated with the remote app","type":"object","additionalProperties":true}},"required":["url"],"additionalProperties":false}},"additionalProperties":false}');const Ne=require("assert"),Ce={right:function(e,t){e=e.trim();const n=Te.stringWidth(e);return n<t?" ".repeat(t-n)+e:e},center:function(e,t){e=e.trim();const n=Te.stringWidth(e);return n>=t?e:" ".repeat(t-n>>1)+e}};class Me{constructor(e){var t;this.width=e.width,this.wrap=null===(t=e.wrap)||void 0===t||t,this.rows=[]}span(...e){this.div(...e).span=!0}resetOutput(){this.rows=[]}div(...e){if(0===e.length&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...e)&&"string"==typeof e[0])return this.applyLayoutDSL(e[0]);const t=e.map((e=>"string"==typeof e?this.colFromString(e):e));return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return 1===e.length&&"string"==typeof e[0]&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){const t=e.split("\n").map((e=>e.split("\t")));let n=0;return t.forEach((e=>{e.length>1&&Te.stringWidth(e[0])>n&&(n=Math.min(Math.floor(.5*this.width),Te.stringWidth(e[0])))})),t.forEach((e=>{this.div(...e.map(((t,r)=>({text:t.trim(),padding:this.measurePadding(t),width:0===r&&e.length>1?n:void 0}))))})),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){const t=Te.stripAnsi(e);return[0,t.match(/\s*$/)[0].length,0,t.match(/^\s*/)[0].length]}toString(){const e=[];return this.rows.forEach((t=>{this.rowToString(t,e)})),e.filter((e=>!e.hidden)).map((e=>e.text)).join("\n")}rowToString(e,t){return this.rasterize(e).forEach(((n,r)=>{let s="";n.forEach(((n,i)=>{const{width:o}=e[i],a=this.negatePadding(e[i]);let c=n;a>Te.stringWidth(n)&&(c+=" ".repeat(a-Te.stringWidth(n))),e[i].align&&"left"!==e[i].align&&this.wrap&&(c=(0,Ce[e[i].align])(c,a),Te.stringWidth(c)<a&&(c+=" ".repeat((o||0)-Te.stringWidth(c)-1)));const l=e[i].padding||[0,0,0,0];l[3]&&(s+=" ".repeat(l[3])),s+=Ie(e[i],c,"| "),s+=c,s+=Ie(e[i],c," |"),l[1]&&(s+=" ".repeat(l[1])),0===r&&t.length>0&&(s=this.renderInline(s,t[t.length-1]))})),t.push({text:s.replace(/ +$/,""),span:e.span})})),t}renderInline(e,t){const n=e.match(/^ */),r=n?n[0].length:0,s=t.text,i=Te.stringWidth(s.trimRight());return t.span?this.wrap?r<i?e:(t.hidden=!0,s.trimRight()+" ".repeat(r-i)+e.trimLeft()):(t.hidden=!0,s+e):e}rasterize(e){const t=[],n=this.columnWidths(e);let r;return e.forEach(((e,s)=>{e.width=n[s],r=this.wrap?Te.wrap(e.text,this.negatePadding(e),{hard:!0}).split("\n"):e.text.split("\n"),e.border&&(r.unshift("."+"-".repeat(this.negatePadding(e)+2)+"."),r.push("'"+"-".repeat(this.negatePadding(e)+2)+"'")),e.padding&&(r.unshift(...new Array(e.padding[0]||0).fill("")),r.push(...new Array(e.padding[2]||0).fill(""))),r.forEach(((e,n)=>{t[n]||t.push([]);const r=t[n];for(let e=0;e<s;e++)void 0===r[e]&&r.push("");r.push(e)}))})),t}negatePadding(e){let t=e.width||0;return e.padding&&(t-=(e.padding[3]||0)+(e.padding[1]||0)),e.border&&(t-=4),t}columnWidths(e){if(!this.wrap)return e.map((e=>e.width||Te.stringWidth(e.text)));let t=e.length,n=this.width;const r=e.map((e=>{if(e.width)return t--,n-=e.width,e.width})),s=t?Math.floor(n/t):0;return r.map(((t,n)=>void 0===t?Math.max(s,function(e){const t=e.padding||[],n=1+(t[3]||0)+(t[1]||0);return e.border?n+4:n}(e[n])):t))}}function Ie(e,t,n){return e.border?/[.']-+[.']/.test(t)?"":0!==t.trim().length?n:" ":""}let Te;const De=new RegExp("(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function Le(e){return e.replace(De,"")}function Re(e,t){const[n,r]=e.match(De)||["",""];e=Le(e);let s="";for(let n=0;n<e.length;n++)0!==n&&n%t==0&&(s+="\n"),s+=e.charAt(n);return n&&r&&(s=`${n}${s}${r}`),s}const Fe=require("util"),qe=require("url");function Ue(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),-1===e.indexOf("-")&&-1===e.indexOf("_"))return e;{let t="",n=!1;const r=e.match(/^-+/);for(let s=r?r[0].length:0;s<e.length;s++){let r=e.charAt(s);n&&(n=!1,r=r.toUpperCase()),0===s||"-"!==r&&"_"!==r?"-"!==r&&"_"!==r&&(t+=r):n=!0}return t}}function ze(e,t){const n=e.toLowerCase();t=t||"-";let r="";for(let s=0;s<e.length;s++){const i=n.charAt(s),o=e.charAt(s);r+=i!==o&&s>0?`${t}${n.charAt(s)}`:o}return r}function Be(e){return null!=e&&("number"==typeof e||!!/^0x[0-9a-f]+$/i.test(e)||!/^0[^.]/.test(e)&&/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e))}var Ve;let Ke;function We(e){return void 0!==e?e+1:1}function He(e){return"__proto__"===e?"___proto___":e}var Ge,Je,Ye;!function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"}(Ve||(Ve={}));const Qe=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,Ze=null!==(Je=null===(Ge=null===process||void 0===process?void 0:process.versions)||void 0===Ge?void 0:Ge.node)&&void 0!==Je?Je:null===(Ye=null===process||void 0===process?void 0:process.version)||void 0===Ye?void 0:Ye.slice(1);if(Ze&&Number(Ze.match(/^([^.]+)/)[1])<Qe)throw Error(`yargs parser supports a minimum Node.js version of ${Qe}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);const Xe=process?process.env:{},et=new class{constructor(e){Ke=e}parse(e,t){const n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},t),r=function(e){if(Array.isArray(e))return e.map((e=>"string"!=typeof e?e+"":e));e=e.trim();let t=0,n=null,r=null,s=null;const i=[];for(let o=0;o<e.length;o++)n=r,r=e.charAt(o)," "!==r||s?(r===s?s=null:"'"!==r&&'"'!==r||s||(s=r),i[t]||(i[t]=""),i[t]+=r):" "!==n&&t++;return i}(e),s="string"==typeof e,i=function(e){const t=[],n=Object.create(null);let r=!0;for(Object.keys(e).forEach((function(n){t.push([].concat(e[n],n))}));r;){r=!1;for(let e=0;e<t.length;e++)for(let n=e+1;n<t.length;n++)if(t[e].filter((function(e){return-1!==t[n].indexOf(e)})).length){t[e]=t[e].concat(t[n]),t.splice(n,1),r=!0;break}}return t.forEach((function(e){const t=(e=e.filter((function(e,t,n){return n.indexOf(e)===t}))).pop();void 0!==t&&"string"==typeof t&&(n[t]=e)})),n}(Object.assign(Object.create(null),n.alias)),o=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),a=Object.assign(Object.create(null),n.default),c=n.configObjects||[],l=n.envPrefix,u=o["populate--"],f=u?"--":"_",h=Object.create(null),d=Object.create(null),p=n.__||Ke.format,m={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},g=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,y=new RegExp("^--"+o["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach((function(e){const t="object"==typeof e?e.key:e,n=Object.keys(e).map((function(e){return{boolean:"bools",string:"strings",number:"numbers"}[e]})).filter(Boolean).pop();n&&(m[n][t]=!0),m.arrays[t]=!0,m.keys.push(t)})),[].concat(n.boolean||[]).filter(Boolean).forEach((function(e){m.bools[e]=!0,m.keys.push(e)})),[].concat(n.string||[]).filter(Boolean).forEach((function(e){m.strings[e]=!0,m.keys.push(e)})),[].concat(n.number||[]).filter(Boolean).forEach((function(e){m.numbers[e]=!0,m.keys.push(e)})),[].concat(n.count||[]).filter(Boolean).forEach((function(e){m.counts[e]=!0,m.keys.push(e)})),[].concat(n.normalize||[]).filter(Boolean).forEach((function(e){m.normalize[e]=!0,m.keys.push(e)})),"object"==typeof n.narg&&Object.entries(n.narg).forEach((([e,t])=>{"number"==typeof t&&(m.nargs[e]=t,m.keys.push(e))})),"object"==typeof n.coerce&&Object.entries(n.coerce).forEach((([e,t])=>{"function"==typeof t&&(m.coercions[e]=t,m.keys.push(e))})),void 0!==n.config&&(Array.isArray(n.config)||"string"==typeof n.config?[].concat(n.config).filter(Boolean).forEach((function(e){m.configs[e]=!0})):"object"==typeof n.config&&Object.entries(n.config).forEach((([e,t])=>{"boolean"!=typeof t&&"function"!=typeof t||(m.configs[e]=t)}))),function(...e){e.forEach((function(e){Object.keys(e||{}).forEach((function(e){m.aliases[e]||(m.aliases[e]=[].concat(i[e]||[]),m.aliases[e].concat(e).forEach((function(t){if(/-/.test(t)&&o["camel-case-expansion"]){const n=Ue(t);n!==e&&-1===m.aliases[e].indexOf(n)&&(m.aliases[e].push(n),h[n]=!0)}})),m.aliases[e].concat(e).forEach((function(t){if(t.length>1&&/[A-Z]/.test(t)&&o["camel-case-expansion"]){const n=ze(t,"-");n!==e&&-1===m.aliases[e].indexOf(n)&&(m.aliases[e].push(n),h[n]=!0)}})),m.aliases[e].forEach((function(t){m.aliases[t]=[e].concat(m.aliases[e].filter((function(e){return t!==e})))})))}))}))}(n.key,i,n.default,m.arrays),Object.keys(a).forEach((function(e){(m.aliases[e]||[]).forEach((function(t){a[t]=a[e]}))}));let v=null;Object.keys(m.counts).find((e=>I(e,m.arrays)?(v=Error(p("Invalid configuration: %s, opts.count excludes opts.array.",e)),!0):!!I(e,m.nargs)&&(v=Error(p("Invalid configuration: %s, opts.count excludes opts.narg.",e)),!0)));let b=[];const _=Object.assign(Object.create(null),{_:[]}),w={};for(let e=0;e<r.length;e++){const t=r[e],n=t.replace(/^-{3,}/,"---");let s,i,a,c,l,u;if("--"!==t&&/^-/.test(t)&&D(t))$(t);else{if(n.match(/^---+(=|$)/)){$(t);continue}if(t.match(/^--.+=/)||!o["short-option-groups"]&&t.match(/^-.+=/))c=t.match(/^--?([^=]+)=([\s\S]*)$/),null!==c&&Array.isArray(c)&&c.length>=3&&(I(c[1],m.arrays)?e=E(e,c[1],r,c[2]):!1!==I(c[1],m.nargs)?e=S(e,c[1],r,c[2]):k(c[1],c[2],!0));else if(t.match(y)&&o["boolean-negation"])c=t.match(y),null!==c&&Array.isArray(c)&&c.length>=2&&(i=c[1],k(i,!!I(i,m.arrays)&&[!1]));else if(t.match(/^--.+/)||!o["short-option-groups"]&&t.match(/^-[^-]+/))c=t.match(/^--?(.+)/),null!==c&&Array.isArray(c)&&c.length>=2&&(i=c[1],I(i,m.arrays)?e=E(e,i,r):!1!==I(i,m.nargs)?e=S(e,i,r):(l=r[e+1],void 0===l||l.match(/^-/)&&!l.match(g)||I(i,m.bools)||I(i,m.counts)?/^(true|false)$/.test(l)?(k(i,l),e++):k(i,L(i)):(k(i,l),e++)));else if(t.match(/^-.\..+=/))c=t.match(/^-([^=]+)=([\s\S]*)$/),null!==c&&Array.isArray(c)&&c.length>=3&&k(c[1],c[2]);else if(t.match(/^-.\..+/)&&!t.match(g))l=r[e+1],c=t.match(/^-(.\..+)/),null!==c&&Array.isArray(c)&&c.length>=2&&(i=c[1],void 0===l||l.match(/^-/)||I(i,m.bools)||I(i,m.counts)?k(i,L(i)):(k(i,l),e++));else if(t.match(/^-[^-]+/)&&!t.match(g)){a=t.slice(1,-1).split(""),s=!1;for(let n=0;n<a.length;n++){if(l=t.slice(n+2),a[n+1]&&"="===a[n+1]){u=t.slice(n+3),i=a[n],I(i,m.arrays)?e=E(e,i,r,u):!1!==I(i,m.nargs)?e=S(e,i,r,u):k(i,u),s=!0;break}if("-"!==l){if(/[A-Za-z]/.test(a[n])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(l)&&!1===I(l,m.bools)){k(a[n],l),s=!0;break}if(a[n+1]&&a[n+1].match(/\W/)){k(a[n],l),s=!0;break}k(a[n],L(a[n]))}else k(a[n],l)}i=t.slice(-1)[0],s||"-"===i||(I(i,m.arrays)?e=E(e,i,r):!1!==I(i,m.nargs)?e=S(e,i,r):(l=r[e+1],void 0===l||/^(-|--)[^-]/.test(l)&&!l.match(g)||I(i,m.bools)||I(i,m.counts)?/^(true|false)$/.test(l)?(k(i,l),e++):k(i,L(i)):(k(i,l),e++)))}else if(t.match(/^-[0-9]$/)&&t.match(g)&&I(t.slice(1),m.bools))i=t.slice(1),k(i,L(i));else{if("--"===t){b=r.slice(e+1);break}if(o["halt-at-non-option"]){b=r.slice(e);break}$(t)}}}function $(e){const t=j("_",e);"string"!=typeof t&&"number"!=typeof t||_._.push(t)}function S(e,t,n,r){let s,i=I(t,m.nargs);if(i="number"!=typeof i||isNaN(i)?1:i,0===i)return R(r)||(v=Error(p("Argument unexpected for: %s",t))),k(t,L(t)),e;let a=R(r)?0:1;if(o["nargs-eats-options"])n.length-(e+1)+a<i&&(v=Error(p("Not enough arguments following: %s",t))),a=i;else{for(s=e+1;s<n.length&&(!n[s].match(/^-[^0-9]/)||n[s].match(g)||D(n[s]));s++)a++;a<i&&(v=Error(p("Not enough arguments following: %s",t)))}let c=Math.min(a,i);for(!R(r)&&c>0&&(k(t,r),c--),s=e+1;s<c+e+1;s++)k(t,n[s]);return e+c}function E(e,t,n,r){let i=[],c=r||n[e+1];const l=I(t,m.nargs);if(I(t,m.bools)&&!/^(true|false)$/.test(c))i.push(!0);else if(R(c)||R(r)&&/^-/.test(c)&&!g.test(c)&&!D(c)){if(void 0!==a[t]){const e=a[t];i=Array.isArray(e)?e:[e]}}else{R(r)||i.push(P(t,r,!0));for(let r=e+1;r<n.length&&!(!o["greedy-arrays"]&&i.length>0||l&&"number"==typeof l&&i.length>=l)&&(c=n[r],!/^-/.test(c)||g.test(c)||D(c));r++)e=r,i.push(P(t,c,s))}return"number"==typeof l&&(l&&i.length<l||isNaN(l)&&0===i.length)&&(v=Error(p("Not enough arguments following: %s",t))),k(t,i),e}function k(e,t,n=s){if(/-/.test(e)&&o["camel-case-expansion"]){const t=e.split(".").map((function(e){return Ue(e)})).join(".");O(e,t)}const r=P(e,t,n),i=e.split(".");M(_,i,r),m.aliases[e]&&m.aliases[e].forEach((function(e){const t=e.split(".");M(_,t,r)})),i.length>1&&o["dot-notation"]&&(m.aliases[i[0]]||[]).forEach((function(t){let n=t.split(".");const s=[].concat(i);s.shift(),n=n.concat(s),(m.aliases[e]||[]).includes(n.join("."))||M(_,n,r)})),I(e,m.normalize)&&!I(e,m.arrays)&&[e].concat(m.aliases[e]||[]).forEach((function(e){Object.defineProperty(w,e,{enumerable:!0,get:()=>t,set(e){t="string"==typeof e?Ke.normalize(e):e}})}))}function O(e,t){m.aliases[e]&&m.aliases[e].length||(m.aliases[e]=[t],h[t]=!0),m.aliases[t]&&m.aliases[t].length||O(t,e)}function P(e,t,n){n&&(t=function(e){return"string"!=typeof e||"'"!==e[0]&&'"'!==e[0]||e[e.length-1]!==e[0]?e:e.substring(1,e.length-1)}(t)),(I(e,m.bools)||I(e,m.counts))&&"string"==typeof t&&(t="true"===t);let r=Array.isArray(t)?t.map((function(t){return j(e,t)})):j(e,t);return I(e,m.counts)&&(R(r)||"boolean"==typeof r)&&(r=We()),I(e,m.normalize)&&I(e,m.arrays)&&(r=Array.isArray(t)?t.map((e=>Ke.normalize(e))):Ke.normalize(t)),r}function j(e,t){return o["parse-positional-numbers"]||"_"!==e?(I(e,m.strings)||I(e,m.bools)||Array.isArray(t)||(Be(t)&&o["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${t}`)))||!R(t)&&I(e,m.numbers))&&(t=Number(t)),t):t}function A(e,t){Object.keys(e).forEach((function(n){const r=e[n],s=t?t+"."+n:n;"object"==typeof r&&null!==r&&!Array.isArray(r)&&o["dot-notation"]?A(r,s):(!C(_,s.split("."))||I(s,m.arrays)&&o["combine-arrays"])&&k(s,r)}))}function x(e,t){if(void 0===l)return;const n="string"==typeof l?l:"",r=Ke.env();Object.keys(r).forEach((function(s){if(""===n||0===s.lastIndexOf(n,0)){const i=s.split("__").map((function(e,t){return 0===t&&(e=e.substring(n.length)),Ue(e)}));(t&&m.configs[i.join(".")]||!t)&&!C(e,i)&&k(i.join("."),r[s])}}))}function N(e,t,n,r=!1){Object.keys(n).forEach((function(s){C(e,s.split("."))||(M(e,s.split("."),n[s]),r&&(d[s]=!0),(t[s]||[]).forEach((function(t){C(e,t.split("."))||M(e,t.split("."),n[s])})))}))}function C(e,t){let n=e;o["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){n=n[e]||{}}));const r=t[t.length-1];return"object"==typeof n&&r in n}function M(e,t,n){let r=e;o["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){e=He(e),"object"==typeof r&&void 0===r[e]&&(r[e]={}),"object"!=typeof r[e]||Array.isArray(r[e])?(Array.isArray(r[e])?r[e].push({}):r[e]=[r[e],{}],r=r[e][r[e].length-1]):r=r[e]}));const s=He(t[t.length-1]),i=I(t.join("."),m.arrays),a=Array.isArray(n);let c=o["duplicate-arguments-array"];!c&&I(s,m.nargs)&&(c=!0,(!R(r[s])&&1===m.nargs[s]||Array.isArray(r[s])&&r[s].length===m.nargs[s])&&(r[s]=void 0)),n===We()?r[s]=We(r[s]):Array.isArray(r[s])?c&&i&&a?r[s]=o["flatten-duplicate-arrays"]?r[s].concat(n):(Array.isArray(r[s][0])?r[s]:[r[s]]).concat([n]):c||Boolean(i)!==Boolean(a)?r[s]=r[s].concat([n]):r[s]=n:void 0===r[s]&&i?r[s]=a?n:[n]:!c||void 0===r[s]||I(s,m.counts)||I(s,m.bools)?r[s]=n:r[s]=[r[s],n]}function I(e,t){const n=[].concat(m.aliases[e]||[],e),r=Object.keys(t),s=n.find((e=>r.includes(e)));return!!s&&t[s]}function T(e){const t=Object.keys(m);return[].concat(t.map((e=>m[e]))).some((function(t){return Array.isArray(t)?t.includes(e):t[e]}))}function D(e){return o["unknown-options-as-args"]&&function(e){return!(e=e.replace(/^-{3,}/,"--")).match(g)&&(!function(e){if(e.match(g)||!e.match(/^-[^-]+/))return!1;let t,n=!0;const r=e.slice(1).split("");for(let s=0;s<r.length;s++){if(t=e.slice(s+2),!T(r[s])){n=!1;break}if(r[s+1]&&"="===r[s+1]||"-"===t||/[A-Za-z]/.test(r[s])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(t)||r[s+1]&&r[s+1].match(/\W/))break}return n}(e)&&!function(e,...t){return[].concat(...t).some((function(t){const n=e.match(t);return n&&T(n[1])}))}(e,/^-+([^=]+?)=[\s\S]*$/,y,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/))}(e)}function L(e){return I(e,m.bools)||I(e,m.counts)||!(`${e}`in a)?(t=function(e){let t=Ve.BOOLEAN;return I(e,m.strings)?t=Ve.STRING:I(e,m.numbers)?t=Ve.NUMBER:I(e,m.bools)?t=Ve.BOOLEAN:I(e,m.arrays)&&(t=Ve.ARRAY),t}(e),{[Ve.BOOLEAN]:!0,[Ve.STRING]:"",[Ve.NUMBER]:void 0,[Ve.ARRAY]:[]}[t]):a[e];var t}function R(e){return void 0===e}return x(_,!0),x(_,!1),function(e){const t=Object.create(null);N(t,m.aliases,a),Object.keys(m.configs).forEach((function(n){const r=e[n]||t[n];if(r)try{let e=null;const t=Ke.resolve(Ke.cwd(),r),s=m.configs[n];if("function"==typeof s){try{e=s(t)}catch(t){e=t}if(e instanceof Error)return void(v=e)}else e=Ke.require(t);A(e)}catch(t){"PermissionDenied"===t.name?v=t:e[n]&&(v=Error(p("Invalid JSON config file: %s",r)))}}))}(_),void 0!==c&&c.forEach((function(e){A(e)})),N(_,m.aliases,a,!0),function(e){let t;const n=new Set;Object.keys(e).forEach((function(r){if(!n.has(r)&&(t=I(r,m.coercions),"function"==typeof t))try{const s=j(r,t(e[r]));[].concat(m.aliases[r]||[],r).forEach((t=>{n.add(t),e[t]=s}))}catch(e){v=e}}))}(_),o["set-placeholder-key"]&&function(e){m.keys.forEach((t=>{~t.indexOf(".")||void 0===e[t]&&(e[t]=void 0)}))}(_),Object.keys(m.counts).forEach((function(e){C(_,e.split("."))||k(e,0)})),u&&b.length&&(_[f]=[]),b.forEach((function(e){_[f].push(e)})),o["camel-case-expansion"]&&o["strip-dashed"]&&Object.keys(_).filter((e=>"--"!==e&&e.includes("-"))).forEach((e=>{delete _[e]})),o["strip-aliased"]&&[].concat(...Object.keys(i).map((e=>i[e]))).forEach((e=>{o["camel-case-expansion"]&&e.includes("-")&&delete _[e.split(".").map((e=>Ue(e))).join(".")],delete _[e]})),{aliases:Object.assign({},m.aliases),argv:Object.assign(w,_),configuration:o,defaulted:Object.assign({},d),error:v,newAliases:Object.assign({},h)}}}({cwd:process.cwd,env:()=>Xe,format:Fe.format,normalize:be.normalize,resolve:be.resolve,require:e=>{if("undefined"!=typeof require)return require(e);if(e.match(/\.json$/))return JSON.parse((0,u.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),tt=function(e,t){return et.parse(e.slice(),t).argv};tt.detailed=function(e,t){return et.parse(e.slice(),t)},tt.camelCase=Ue,tt.decamelize=ze,tt.looksLikeNumber=Be;const nt=tt;function rt(){return process.versions.electron&&!process.defaultApp?0:1}class st extends Error{constructor(e){super(e||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,st)}}const it={fs:{readFileSync:u.readFileSync,writeFile:u.writeFile},format:Fe.format,resolve:be.resolve,exists:e=>{try{return(0,u.statSync)(e).isFile()}catch(e){return!1}}};let ot;class at{constructor(e){e=e||{},this.directory=e.directory||"./locales",this.updateFiles="boolean"!=typeof e.updateFiles||e.updateFiles,this.locale=e.locale||"en",this.fallbackToLanguage="boolean"!=typeof e.fallbackToLanguage||e.fallbackToLanguage,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if("string"!=typeof arguments[0])return this._taggedLiteral(arguments[0],...arguments);const t=e.shift();let n=function(){};return"function"==typeof e[e.length-1]&&(n=e.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]=t,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),ot.format.apply(ot.format,[this.cache[this.locale][t]||t].concat(e))}__n(){const e=Array.prototype.slice.call(arguments),t=e.shift(),n=e.shift(),r=e.shift();let s=function(){};"function"==typeof e[e.length-1]&&(s=e.pop()),this.cache[this.locale]||this._readLocaleFile();let i=1===r?t:n;this.cache[this.locale][t]&&(i=this.cache[this.locale][t][1===r?"one":"other"]),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]={one:t,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:s})):s();const o=[i];return~i.indexOf("%d")&&o.push(r),ot.format.apply(ot.format,o.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.cache[this.locale][t]=e[t])}_taggedLiteral(e,...t){let n="";return e.forEach((function(e,r){const s=t[r+1];n+=e,void 0!==s&&(n+="%s")})),this.__.apply(this,[n].concat([].slice.call(t,1)))}_enqueueWrite(e){this.writeQueue.push(e),1===this.writeQueue.length&&this._processWriteQueue()}_processWriteQueue(){const e=this,t=this.writeQueue[0],n=t.directory,r=t.locale,s=t.cb,i=this._resolveLocaleFile(n,r),o=JSON.stringify(this.cache[r],null,2);ot.fs.writeFile(i,o,"utf-8",(function(t){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),s(t)}))}_readLocaleFile(){let e={};const t=this._resolveLocaleFile(this.directory,this.locale);try{ot.fs.readFileSync&&(e=JSON.parse(ot.fs.readFileSync(t,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+t),"ENOENT"!==n.code)throw n;e={}}this.cache[this.locale]=e}_resolveLocaleFile(e,t){let n=ot.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~t.lastIndexOf("_")){const r=ot.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(r)&&(n=r)}return n}_fileExistsSync(e){return ot.exists(e)}}const ct="loading a directory of commands is not supported yet for ESM";let lt;try{lt=(0,qe.fileURLToPath)("file:///home/runner/work/appshell/appshell/node_modules/yargs/lib/platform-shims/esm.mjs")}catch(e){lt=process.cwd()}const ut=lt.substring(0,lt.lastIndexOf("node_modules")),ft={assert:{notStrictEqual:Ne.notStrictEqual,strictEqual:Ne.strictEqual},cliui:function(e){return function(e,t){return Te=t,new Me({width:(null==e?void 0:e.width)||("object"==typeof process&&process.stdout&&process.stdout.columns?process.stdout.columns:80),wrap:null==e?void 0:e.wrap})}(e,{stringWidth:e=>[...e].length,stripAnsi:Le,wrap:Re})},findUp:function(e,t){let n,r=(0,be.resolve)(".",e);for((0,u.statSync)(r).isDirectory()||(r=(0,be.dirname)(r));;){if(n=t(r,(0,u.readdirSync)(r)),n)return(0,be.resolve)(r,n);if(r=(0,be.dirname)(n=r),n===r)break}},getEnv:e=>process.env[e],inspect:Fe.inspect,getCallerFile:()=>{throw new st(ct)},getProcessArgvBin:function(){return process.argv[rt()]},mainFilename:ut||process.cwd(),Parser:nt,path:{basename:be.basename,dirname:be.dirname,extname:be.extname,relative:be.relative,resolve:be.resolve},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(e,t)=>process.emitWarning(e,t),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:void 0!==process.stdout.columns?process.stdout.columns:null},readFileSync:u.readFileSync,require:()=>{throw new st("require is not supported by ESM")},requireDirectory:()=>{throw new st(ct)},stringWidth:e=>[...e].length,y18n:(ht={directory:(0,be.resolve)(lt,"../../../locales"),updateFiles:!1},function(e,t){ot=t;const n=new at(e);return{__:n.__.bind(n),__n:n.__n.bind(n),setLocale:n.setLocale.bind(n),getLocale:n.getLocale.bind(n),updateLocale:n.updateLocale.bind(n),locale:n.locale}}(ht,it))};var ht;function dt(e,t,n,r){n.assert.notStrictEqual(e,t,r)}function pt(e,t){t.assert.strictEqual(typeof e,"string")}function mt(e){return Object.keys(e)}function gt(e){return!!e&&!!e.then&&"function"==typeof e.then}function yt(e){const t=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,r=t.shift();if(!r)throw new Error(`No command found in: ${e}`);const s={cmd:r.replace(n,""),demanded:[],optional:[]};return t.forEach(((e,r)=>{let i=!1;e=e.replace(/\s/g,""),/\.+[\]>]/.test(e)&&r===t.length-1&&(i=!0),/^\[/.test(e)?s.optional.push({cmd:e.replace(n,"").split("|"),variadic:i}):s.demanded.push({cmd:e.replace(n,"").split("|"),variadic:i})})),s}const vt=["first","second","third","fourth","fifth","sixth"];function bt(e,t,n){try{let r=0;const[s,i,o]="object"==typeof e?[{demanded:[],optional:[]},e,t]:[yt(`cmd ${e}`),t,n],a=[].slice.call(i);for(;a.length&&void 0===a[a.length-1];)a.pop();const c=o||a.length;if(c<s.demanded.length)throw new st(`Not enough arguments provided. Expected ${s.demanded.length} but received ${a.length}.`);const l=s.demanded.length+s.optional.length;if(c>l)throw new st(`Too many arguments provided. Expected max ${l} but received ${c}.`);s.demanded.forEach((e=>{const t=_t(a.shift());0===e.cmd.filter((e=>e===t||"*"===e)).length&&wt(t,e.cmd,r),r+=1})),s.optional.forEach((e=>{if(0===a.length)return;const t=_t(a.shift());0===e.cmd.filter((e=>e===t||"*"===e)).length&&wt(t,e.cmd,r),r+=1}))}catch(e){console.warn(e.stack)}}function _t(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function wt(e,t,n){throw new st(`Invalid ${vt[n]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}class $t{constructor(e){this.globalMiddleware=[],this.frozens=[],this.yargs=e}addMiddleware(e,t,n=!0,r=!1){if(bt("<array|function> [boolean] [boolean] [boolean]",[e,t,n],arguments.length),Array.isArray(e)){for(let r=0;r<e.length;r++){if("function"!=typeof e[r])throw Error("middleware must be a function");const s=e[r];s.applyBeforeValidation=t,s.global=n}Array.prototype.push.apply(this.globalMiddleware,e)}else if("function"==typeof e){const s=e;s.applyBeforeValidation=t,s.global=n,s.mutates=r,this.globalMiddleware.push(e)}return this.yargs}addCoerceMiddleware(e,t){const n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter((e=>{const r=[...n[t]||[],t];return!e.option||!r.includes(e.option)})),e.option=t,this.addMiddleware(e,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){const e=this.frozens.pop();void 0!==e&&(this.globalMiddleware=e)}reset(){this.globalMiddleware=this.globalMiddleware.filter((e=>e.global))}}function St(e,t,n,r){return n.reduce(((e,n)=>{if(n.applyBeforeValidation!==r)return e;if(n.mutates){if(n.applied)return e;n.applied=!0}if(gt(e))return e.then((e=>Promise.all([e,n(e,t)]))).then((([e,t])=>Object.assign(e,t)));{const r=n(e,t);return gt(r)?r.then((t=>Object.assign(e,t))):Object.assign(e,r)}}),e)}function Et(e,t,n=(e=>{throw e})){try{const n="function"==typeof e?e():e;return gt(n)?n.then((e=>t(e))):t(n)}catch(e){return n(e)}}const kt=/(^\*)|(^\$0)/;class Ot{constructor(e,t,n,r){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=r,this.usage=e,this.globalMiddleware=n,this.validation=t}addDirectory(e,t,n,r){"boolean"!=typeof(r=r||{}).recurse&&(r.recurse=!1),Array.isArray(r.extensions)||(r.extensions=["js"]);const s="function"==typeof r.visit?r.visit:e=>e;r.visit=(e,t,n)=>{const r=s(e,t,n);if(r){if(this.requireCache.has(t))return r;this.requireCache.add(t),this.addHandler(r)}return r},this.shim.requireDirectory({require:t,filename:n},e,r)}addHandler(e,t,n,r,s,i){let o=[];const a=function(e){return e?e.map((e=>(e.applyBeforeValidation=!1,e))):[]}(s);if(r=r||(()=>{}),Array.isArray(e))if(function(e){return e.every((e=>"string"==typeof e))}(e))[e,...o]=e;else for(const t of e)this.addHandler(t);else{if(function(e){return"object"==typeof e&&!Array.isArray(e)}(e)){let t=Array.isArray(e.command)||"string"==typeof e.command?e.command:this.moduleName(e);return e.aliases&&(t=[].concat(t).concat(e.aliases)),void this.addHandler(t,this.extractDesc(e),e.builder,e.handler,e.middlewares,e.deprecated)}if(Pt(n))return void this.addHandler([e].concat(o),t,n.builder,n.handler,n.middlewares,n.deprecated)}if("string"==typeof e){const s=yt(e);o=o.map((e=>yt(e).cmd));let c=!1;const l=[s.cmd].concat(o).filter((e=>!kt.test(e)||(c=!0,!1)));0===l.length&&c&&l.push("$0"),c&&(s.cmd=l[0],o=l.slice(1),e=e.replace(kt,s.cmd)),o.forEach((e=>{this.aliasMap[e]=s.cmd})),!1!==t&&this.usage.command(e,t,c,o,i),this.handlers[s.cmd]={original:e,description:t,handler:r,builder:n||{},middlewares:a,deprecated:i,demanded:s.demanded,optional:s.optional},c&&(this.defaultCommand=this.handlers[s.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(e,t,n,r,s,i){const o=this.handlers[e]||this.handlers[this.aliasMap[e]]||this.defaultCommand,a=t.getInternalMethods().getContext(),c=a.commands.slice(),l=!e;e&&(a.commands.push(e),a.fullCommands.push(o.original));const u=this.applyBuilderUpdateUsageAndParse(l,o,t,n.aliases,c,r,s,i);return gt(u)?u.then((e=>this.applyMiddlewareAndGetResult(l,o,e.innerArgv,a,s,e.aliases,t))):this.applyMiddlewareAndGetResult(l,o,u.innerArgv,a,s,u.aliases,t)}applyBuilderUpdateUsageAndParse(e,t,n,r,s,i,o,a){const c=t.builder;let l=n;if(jt(c)){n.getInternalMethods().getUsageInstance().freeze();const u=c(n.getInternalMethods().reset(r),a);if(gt(u))return u.then((r=>{var a;return l=(a=r)&&"function"==typeof a.getInternalMethods?r:n,this.parseAndUpdateUsage(e,t,l,s,i,o)}))}else(function(e){return"object"==typeof e})(c)&&(n.getInternalMethods().getUsageInstance().freeze(),l=n.getInternalMethods().reset(r),Object.keys(t.builder).forEach((e=>{l.option(e,c[e])})));return this.parseAndUpdateUsage(e,t,l,s,i,o)}parseAndUpdateUsage(e,t,n,r,s,i){e&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(r,t),t.description);const o=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,s,i);return gt(o)?o.then((e=>({aliases:n.parsed.aliases,innerArgv:e}))):{aliases:n.parsed.aliases,innerArgv:o}}shouldUpdateUsage(e){return!e.getInternalMethods().getUsageInstance().getUsageDisabled()&&0===e.getInternalMethods().getUsageInstance().getUsage().length}usageFromParentCommandsCommandHandler(e,t){const n=kt.test(t.original)?t.original.replace(kt,"").trim():t.original,r=e.filter((e=>!kt.test(e)));return r.push(n),`$0 ${r.join(" ")}`}handleValidationAndGetResult(e,t,n,r,s,i,o,a){if(!i.getInternalMethods().getHasOutput()){const t=i.getInternalMethods().runValidation(s,a,i.parsed.error,e);n=Et(n,(e=>(t(e),e)))}if(t.handler&&!i.getInternalMethods().getHasOutput()){i.getInternalMethods().setHasOutput();const r=!!i.getOptions().configuration["populate--"];i.getInternalMethods().postProcess(n,r,!1,!1),n=Et(n=St(n,i,o,!1),(e=>{const n=t.handler(e);return gt(n)?n.then((()=>e)):e})),e||i.getInternalMethods().getUsageInstance().cacheHelpMessage(),gt(n)&&!i.getInternalMethods().hasParseCallback()&&n.catch((e=>{try{i.getInternalMethods().getUsageInstance().fail(null,e)}catch(e){}}))}return e||(r.commands.pop(),r.fullCommands.pop()),n}applyMiddlewareAndGetResult(e,t,n,r,s,i,o){let a={};if(s)return n;o.getInternalMethods().getHasOutput()||(a=this.populatePositionals(t,n,r,o));const c=this.globalMiddleware.getMiddleware().slice(0).concat(t.middlewares),l=St(n,o,c,!0);return gt(l)?l.then((n=>this.handleValidationAndGetResult(e,t,n,r,i,o,c,a))):this.handleValidationAndGetResult(e,t,l,r,i,o,c,a)}populatePositionals(e,t,n,r){t._=t._.slice(n.commands.length);const s=e.demanded.slice(0),i=e.optional.slice(0),o={};for(this.validation.positionalCount(s.length,t._.length);s.length;){const e=s.shift();this.populatePositional(e,t,o)}for(;i.length;){const e=i.shift();this.populatePositional(e,t,o)}return t._=n.commands.concat(t._.map((e=>""+e))),this.postProcessPositionals(t,o,this.cmdToParseOptions(e.original),r),o}populatePositional(e,t,n){const r=e.cmd[0];e.variadic?n[r]=t._.splice(0).map(String):t._.length&&(n[r]=[String(t._.shift())])}cmdToParseOptions(e){const t={array:[],default:{},alias:{},demand:{}},n=yt(e);return n.demanded.forEach((e=>{const[n,...r]=e.cmd;e.variadic&&(t.array.push(n),t.default[n]=[]),t.alias[n]=r,t.demand[n]=!0})),n.optional.forEach((e=>{const[n,...r]=e.cmd;e.variadic&&(t.array.push(n),t.default[n]=[]),t.alias[n]=r})),t}postProcessPositionals(e,t,n,r){const s=Object.assign({},r.getOptions());s.default=Object.assign(n.default,s.default);for(const e of Object.keys(n.alias))s.alias[e]=(s.alias[e]||[]).concat(n.alias[e]);s.array=s.array.concat(n.array),s.config={};const i=[];if(Object.keys(t).forEach((e=>{t[e].map((t=>{s.configuration["unknown-options-as-args"]&&(s.key[e]=!0),i.push(`--${e}`),i.push(t)}))})),!i.length)return;const o=Object.assign({},s.configuration,{"populate--":!1}),a=this.shim.Parser.detailed(i,Object.assign({},s,{configuration:o}));if(a.error)r.getInternalMethods().getUsageInstance().fail(a.error.message,a.error);else{const n=Object.keys(t);Object.keys(t).forEach((e=>{n.push(...a.aliases[e])})),Object.keys(a.argv).forEach((s=>{n.includes(s)&&(t[s]||(t[s]=a.argv[s]),!this.isInConfigs(r,s)&&!this.isDefaulted(r,s)&&Object.prototype.hasOwnProperty.call(e,s)&&Object.prototype.hasOwnProperty.call(a.argv,s)&&(Array.isArray(e[s])||Array.isArray(a.argv[s]))?e[s]=[].concat(e[s],a.argv[s]):e[s]=a.argv[s])}))}}isDefaulted(e,t){const{default:n}=e.getOptions();return Object.prototype.hasOwnProperty.call(n,t)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(t))}isInConfigs(e,t){const{configObjects:n}=e.getOptions();return n.some((e=>Object.prototype.hasOwnProperty.call(e,t)))||n.some((e=>Object.prototype.hasOwnProperty.call(e,this.shim.Parser.camelCase(t))))}runDefaultBuilderOn(e){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(e)){const t=kt.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");e.getInternalMethods().getUsageInstance().usage(t,this.defaultCommand.description)}const t=this.defaultCommand.builder;if(jt(t))return t(e,!0);Pt(t)||Object.keys(t).forEach((n=>{e.option(n,t[n])}))}moduleName(e){const t=function(e){if("undefined"==typeof require)return null;for(let t,n=0,r=Object.keys(require.cache);n<r.length;n++)if(t=require.cache[r[n]],t.exports===e)return t;return null}(e);if(!t)throw new Error(`No command name given for module: ${this.shim.inspect(e)}`);return this.commandFromFilename(t.filename)}commandFromFilename(e){return this.shim.path.basename(e,this.shim.path.extname(e))}extractDesc({describe:e,description:t,desc:n}){for(const r of[e,t,n]){if("string"==typeof r||!1===r)return r;dt(r,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){const e=this.frozens.pop();dt(e,void 0,this.shim),({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=e)}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}}function Pt(e){return"object"==typeof e&&!!e.builder&&"function"==typeof e.handler}function jt(e){return"function"==typeof e}function At(e={},t=(()=>!0)){const n={};return mt(e).forEach((r=>{t(r,e[r])&&(n[r]=e[r])})),n}function xt(e){"undefined"!=typeof process&&[process.stdout,process.stderr].forEach((t=>{const n=t;n._handle&&n.isTTY&&"function"==typeof n._handle.setBlocking&&n._handle.setBlocking(e)}))}function Nt(e){return"boolean"==typeof e}function Ct(e){return"object"==typeof e}function Mt(e){return Ct(e)?e.indentation:0}function It(e){return Ct(e)?e.text:e}class Tt{constructor(e,t,n,r){var s,i,o;this.yargs=e,this.usage=t,this.command=n,this.shim=r,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=null!==(o=(null===(s=this.shim.getEnv("SHELL"))||void 0===s?void 0:s.includes("zsh"))||(null===(i=this.shim.getEnv("ZSH_NAME"))||void 0===i?void 0:i.includes("zsh")))&&void 0!==o&&o}defaultCompletion(e,t,n,r){const s=this.command.getCommandHandlers();for(let t=0,n=e.length;t<n;++t)if(s[e[t]]&&s[e[t]].builder){const n=s[e[t]].builder;if(jt(n)){this.indexAfterLastReset=t+1;const e=this.yargs.getInternalMethods().reset();return n(e,!0),e.argv}}const i=[];this.commandCompletions(i,e,n),this.optionCompletions(i,e,t,n),this.choicesFromOptionsCompletions(i,e,t,n),this.choicesFromPositionalsCompletions(i,e,t,n),r(null,i)}commandCompletions(e,t,n){const r=this.yargs.getInternalMethods().getContext().commands;n.match(/^-/)||r[r.length-1]===n||this.previousArgHasChoices(t)||this.usage.getCommands().forEach((n=>{const r=yt(n[0]).cmd;if(-1===t.indexOf(r))if(this.zshShell){const t=n[1]||"";e.push(r.replace(/:/g,"\\:")+":"+t)}else e.push(r)}))}optionCompletions(e,t,n,r){if((r.match(/^-/)||""===r&&0===e.length)&&!this.previousArgHasChoices(t)){const n=this.yargs.getOptions(),s=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(n.key).forEach((i=>{const o=!!n.configuration["boolean-negation"]&&n.boolean.includes(i);s.includes(i)||n.hiddenOptions.includes(i)||this.argsContainKey(t,i,o)||(this.completeOptionKey(i,e,r),o&&n.default[i]&&this.completeOptionKey(`no-${i}`,e,r))}))}}choicesFromOptionsCompletions(e,t,n,r){if(this.previousArgHasChoices(t)){const n=this.getPreviousArgChoices(t);n&&n.length>0&&e.push(...n.map((e=>e.replace(/:/g,"\\:"))))}}choicesFromPositionalsCompletions(e,t,n,r){if(""===r&&e.length>0&&this.previousArgHasChoices(t))return;const s=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],i=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),o=s[n._.length-i-1];if(!o)return;const a=this.yargs.getOptions().choices[o]||[];for(const t of a)t.startsWith(r)&&e.push(t.replace(/:/g,"\\:"))}getPreviousArgChoices(e){if(e.length<1)return;let t=e[e.length-1],n="";if(!t.startsWith("-")&&e.length>1&&(n=t,t=e[e.length-2]),!t.startsWith("-"))return;const r=t.replace(/^-+/,""),s=this.yargs.getOptions(),i=[r,...this.yargs.getAliases()[r]||[]];let o;for(const e of i)if(Object.prototype.hasOwnProperty.call(s.key,e)&&Array.isArray(s.choices[e])){o=s.choices[e];break}return o?o.filter((e=>!n||e.startsWith(n))):void 0}previousArgHasChoices(e){const t=this.getPreviousArgChoices(e);return void 0!==t&&t.length>0}argsContainKey(e,t,n){const r=t=>-1!==e.indexOf((/^[^0-9]$/.test(t)?"-":"--")+t);if(r(t))return!0;if(n&&r(`no-${t}`))return!0;if(this.aliases)for(const e of this.aliases[t])if(r(e))return!0;return!1}completeOptionKey(e,t,n){var r,s,i;const o=this.usage.getDescriptions(),a=!/^--/.test(n)&&/^[^0-9]$/.test(e)?"-":"--";if(this.zshShell){const n=null===(r=null==this?void 0:this.aliases)||void 0===r?void 0:r[e].find((e=>{const t=o[e];return"string"==typeof t&&t.length>0})),c=n?o[n]:void 0,l=null!==(i=null!==(s=o[e])&&void 0!==s?s:c)&&void 0!==i?i:"";t.push(a+`${e.replace(/:/g,"\\:")}:${l.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`)}else t.push(a+e)}customCompletion(e,t,n,r){if(dt(this.customCompletionFunction,null,this.shim),this.customCompletionFunction.length<3){const e=this.customCompletionFunction(n,t);return gt(e)?e.then((e=>{this.shim.process.nextTick((()=>{r(null,e)}))})).catch((e=>{this.shim.process.nextTick((()=>{r(e,void 0)}))})):r(null,e)}return this.customCompletionFunction.length>3?this.customCompletionFunction(n,t,((s=r)=>this.defaultCompletion(e,t,n,s)),(e=>{r(null,e)})):this.customCompletionFunction(n,t,(e=>{r(null,e)}))}getCompletion(e,t){const n=e.length?e[e.length-1]:"",r=this.yargs.parse(e,!0),s=this.customCompletionFunction?r=>this.customCompletion(e,r,n,t):r=>this.defaultCompletion(e,r,n,t);return gt(r)?r.then(s):s(r)}generateCompletionScript(e,t){let n=this.zshShell?'#compdef {{app_name}}\n###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc\n# or {{app_path}} {{completion_command}} >> ~/.zprofile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local reply\n local si=$IFS\n IFS=$\'\n\' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "${words[@]}"))\n IFS=$si\n _describe \'values\' reply\n}\ncompdef _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n':'###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc\n# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local cur_word args type_list\n\n cur_word="${COMP_WORDS[COMP_CWORD]}"\n args=("${COMP_WORDS[@]}")\n\n # ask yargs to generate completions.\n type_list=$({{app_path}} --get-yargs-completions "${args[@]}")\n\n COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )\n\n # if no match was found, fall back to filename completion\n if [ ${#COMPREPLY[@]} -eq 0 ]; then\n COMPREPLY=()\n fi\n\n return 0\n}\ncomplete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n';const r=this.shim.path.basename(e);return e.match(/\.js$/)&&(e=`./${e}`),n=n.replace(/{{app_name}}/g,r),n=n.replace(/{{completion_command}}/g,t),n.replace(/{{app_path}}/g,e)}registerFunction(e){this.customCompletionFunction=e}setParsed(e){this.aliases=e.aliases}}function Dt(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;const n=[];let r,s;for(r=0;r<=t.length;r++)n[r]=[r];for(s=0;s<=e.length;s++)n[0][s]=s;for(r=1;r<=t.length;r++)for(s=1;s<=e.length;s++)t.charAt(r-1)===e.charAt(s-1)?n[r][s]=n[r-1][s-1]:r>1&&s>1&&t.charAt(r-2)===e.charAt(s-1)&&t.charAt(r-1)===e.charAt(s-2)?n[r][s]=n[r-2][s-2]+1:n[r][s]=Math.min(n[r-1][s-1]+1,Math.min(n[r][s-1]+1,n[r-1][s]+1));return n[t.length][e.length]}const Lt=["$0","--","_"];let Rt,Ft=[];function qt(e,t,n,r){Rt=r;let s={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if("string"!=typeof e.extends)return s;const r=/\.json|\..*rc$/.test(e.extends);let i=null;if(r)i=function(e,t){return Rt.path.resolve(e,t)}(t,e.extends);else try{i=require.resolve(e.extends)}catch(t){return e}!function(e){if(Ft.indexOf(e)>-1)throw new st(`Circular extended configurations: '${e}'.`)}(i),Ft.push(i),s=r?JSON.parse(Rt.readFileSync(i,"utf8")):require(e.extends),delete e.extends,s=qt(s,Rt.path.dirname(i),n,Rt)}return Ft=[],n?Ut(s,e):Object.assign({},s,e)}function Ut(e,t){const n={};function r(e){return e&&"object"==typeof e&&!Array.isArray(e)}Object.assign(n,e);for(const s of Object.keys(t))r(t[s])&&r(n[s])?n[s]=Ut(e[s],t[s]):n[s]=t[s];return n}var zt,Bt,Vt,Kt,Wt,Ht,Gt,Jt,Yt,Qt,Zt,Xt,en,tn,nn,rn,sn,on,an,cn,ln,un,fn,hn,dn,pn,mn,gn,yn,vn,bn,_n,wn,$n,Sn,En=function(e,t,n,r,s){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?s.call(e,n):s?s.value=n:t.set(e,n),n},kn=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};const On=Symbol("copyDoubleDash"),Pn=Symbol("copyDoubleDash"),jn=Symbol("deleteFromParserHintObject"),An=Symbol("emitWarning"),xn=Symbol("freeze"),Nn=Symbol("getDollarZero"),Cn=Symbol("getParserConfiguration"),Mn=Symbol("getUsageConfiguration"),In=Symbol("guessLocale"),Tn=Symbol("guessVersion"),Dn=Symbol("parsePositionalNumbers"),Ln=Symbol("pkgUp"),Rn=Symbol("populateParserHintArray"),Fn=Symbol("populateParserHintSingleValueDictionary"),qn=Symbol("populateParserHintArrayDictionary"),Un=Symbol("populateParserHintDictionary"),zn=Symbol("sanitizeKey"),Bn=Symbol("setKey"),Vn=Symbol("unfreeze"),Kn=Symbol("validateAsync"),Wn=Symbol("getCommandInstance"),Hn=Symbol("getContext"),Gn=Symbol("getHasOutput"),Jn=Symbol("getLoggerInstance"),Yn=Symbol("getParseContext"),Qn=Symbol("getUsageInstance"),Zn=Symbol("getValidationInstance"),Xn=Symbol("hasParseCallback"),er=Symbol("isGlobalContext"),tr=Symbol("postProcess"),nr=Symbol("rebase"),rr=Symbol("reset"),sr=Symbol("runYargsParserAndExecuteCommands"),ir=Symbol("runValidation"),or=Symbol("setHasOutput"),ar=Symbol("kTrackManuallySetKeys");class cr{constructor(e=[],t,n,r){this.customScriptName=!1,this.parsed=!1,zt.set(this,void 0),Bt.set(this,void 0),Vt.set(this,{commands:[],fullCommands:[]}),Kt.set(this,null),Wt.set(this,null),Ht.set(this,"show-hidden"),Gt.set(this,null),Jt.set(this,!0),Yt.set(this,{}),Qt.set(this,!0),Zt.set(this,[]),Xt.set(this,void 0),en.set(this,{}),tn.set(this,!1),nn.set(this,null),rn.set(this,!0),sn.set(this,void 0),on.set(this,""),an.set(this,void 0),cn.set(this,void 0),ln.set(this,{}),un.set(this,null),fn.set(this,null),hn.set(this,{}),dn.set(this,{}),pn.set(this,void 0),mn.set(this,!1),gn.set(this,void 0),yn.set(this,!1),vn.set(this,!1),bn.set(this,!1),_n.set(this,void 0),wn.set(this,{}),$n.set(this,null),Sn.set(this,void 0),En(this,gn,r,"f"),En(this,pn,e,"f"),En(this,Bt,t,"f"),En(this,cn,n,"f"),En(this,Xt,new $t(this),"f"),this.$0=this[Nn](),this[rr](),En(this,zt,kn(this,zt,"f"),"f"),En(this,_n,kn(this,_n,"f"),"f"),En(this,Sn,kn(this,Sn,"f"),"f"),En(this,an,kn(this,an,"f"),"f"),kn(this,an,"f").showHiddenOpt=kn(this,Ht,"f"),En(this,sn,this[Pn](),"f")}addHelpOpt(e,t){return bt("[string|boolean] [string]",[e,t],arguments.length),kn(this,nn,"f")&&(this[jn](kn(this,nn,"f")),En(this,nn,null,"f")),!1===e&&void 0===t||(En(this,nn,"string"==typeof e?e:"help","f"),this.boolean(kn(this,nn,"f")),this.describe(kn(this,nn,"f"),t||kn(this,_n,"f").deferY18nLookup("Show help"))),this}help(e,t){return this.addHelpOpt(e,t)}addShowHiddenOpt(e,t){if(bt("[string|boolean] [string]",[e,t],arguments.length),!1===e&&void 0===t)return this;const n="string"==typeof e?e:kn(this,Ht,"f");return this.boolean(n),this.describe(n,t||kn(this,_n,"f").deferY18nLookup("Show hidden options")),kn(this,an,"f").showHiddenOpt=n,this}showHidden(e,t){return this.addShowHiddenOpt(e,t)}alias(e,t){return bt("<object|string|array> [string|array]",[e,t],arguments.length),this[qn](this.alias.bind(this),"alias",e,t),this}array(e){return bt("<array|string>",[e],arguments.length),this[Rn]("array",e),this[ar](e),this}boolean(e){return bt("<array|string>",[e],arguments.length),this[Rn]("boolean",e),this[ar](e),this}check(e,t){return bt("<function> [boolean]",[e,t],arguments.length),this.middleware(((t,n)=>Et((()=>e(t,n.getOptions())),(n=>(n?("string"==typeof n||n instanceof Error)&&kn(this,_n,"f").fail(n.toString(),n):kn(this,_n,"f").fail(kn(this,gn,"f").y18n.__("Argument check failed: %s",e.toString())),t)),(e=>(kn(this,_n,"f").fail(e.message?e.message:e.toString(),e),t)))),!1,t),this}choices(e,t){return bt("<object|string|array> [string|array]",[e,t],arguments.length),this[qn](this.choices.bind(this),"choices",e,t),this}coerce(e,t){if(bt("<object|string|array> [function]",[e,t],arguments.length),Array.isArray(e)){if(!t)throw new st("coerce callback must be provided");for(const n of e)this.coerce(n,t);return this}if("object"==typeof e){for(const t of Object.keys(e))this.coerce(t,e[t]);return this}if(!t)throw new st("coerce callback must be provided");return kn(this,an,"f").key[e]=!0,kn(this,Xt,"f").addCoerceMiddleware(((n,r)=>{let s;return Object.prototype.hasOwnProperty.call(n,e)?Et((()=>(s=r.getAliases(),t(n[e]))),(t=>{n[e]=t;const i=r.getInternalMethods().getParserConfiguration()["strip-aliased"];if(s[e]&&!0!==i)for(const r of s[e])n[r]=t;return n}),(e=>{throw new st(e.message)})):n}),e),this}conflicts(e,t){return bt("<string|object> [string|array]",[e,t],arguments.length),kn(this,Sn,"f").conflicts(e,t),this}config(e="config",t,n){return bt("[object|string] [string|function] [function]",[e,t,n],arguments.length),"object"!=typeof e||Array.isArray(e)?("function"==typeof t&&(n=t,t=void 0),this.describe(e,t||kn(this,_n,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(e)?e:[e]).forEach((e=>{kn(this,an,"f").config[e]=n||!0})),this):(e=qt(e,kn(this,Bt,"f"),this[Cn]()["deep-merge-config"]||!1,kn(this,gn,"f")),kn(this,an,"f").configObjects=(kn(this,an,"f").configObjects||[]).concat(e),this)}completion(e,t,n){return bt("[string] [string|boolean|function] [function]",[e,t,n],arguments.length),"function"==typeof t&&(n=t,t=void 0),En(this,Wt,e||kn(this,Wt,"f")||"completion","f"),t||!1===t||(t="generate completion script"),this.command(kn(this,Wt,"f"),t),n&&kn(this,Kt,"f").registerFunction(n),this}command(e,t,n,r,s,i){return bt("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[e,t,n,r,s,i],arguments.length),kn(this,zt,"f").addHandler(e,t,n,r,s,i),this}commands(e,t,n,r,s,i){return this.command(e,t,n,r,s,i)}commandDir(e,t){bt("<string> [object]",[e,t],arguments.length);const n=kn(this,cn,"f")||kn(this,gn,"f").require;return kn(this,zt,"f").addDirectory(e,n,kn(this,gn,"f").getCallerFile(),t),this}count(e){return bt("<array|string>",[e],arguments.length),this[Rn]("count",e),this[ar](e),this}default(e,t,n){return bt("<object|string|array> [*] [string]",[e,t,n],arguments.length),n&&(pt(e,kn(this,gn,"f")),kn(this,an,"f").defaultDescription[e]=n),"function"==typeof t&&(pt(e,kn(this,gn,"f")),kn(this,an,"f").defaultDescription[e]||(kn(this,an,"f").defaultDescription[e]=kn(this,_n,"f").functionDescription(t)),t=t.call()),this[Fn](this.default.bind(this),"default",e,t),this}defaults(e,t,n){return this.default(e,t,n)}demandCommand(e=1,t,n,r){return bt("[number] [number|string] [string|null|undefined] [string|null|undefined]",[e,t,n,r],arguments.length),"number"!=typeof t&&(n=t,t=1/0),this.global("_",!1),kn(this,an,"f").demandedCommands._={min:e,max:t,minMsg:n,maxMsg:r},this}demand(e,t,n){return Array.isArray(t)?(t.forEach((e=>{dt(n,!0,kn(this,gn,"f")),this.demandOption(e,n)})),t=1/0):"number"!=typeof t&&(n=t,t=1/0),"number"==typeof e?(dt(n,!0,kn(this,gn,"f")),this.demandCommand(e,t,n,n)):Array.isArray(e)?e.forEach((e=>{dt(n,!0,kn(this,gn,"f")),this.demandOption(e,n)})):"string"==typeof n?this.demandOption(e,n):!0!==n&&void 0!==n||this.demandOption(e),this}demandOption(e,t){return bt("<object|string|array> [string]",[e,t],arguments.length),this[Fn](this.demandOption.bind(this),"demandedOptions",e,t),this}deprecateOption(e,t){return bt("<string> [string|boolean]",[e,t],arguments.length),kn(this,an,"f").deprecatedOptions[e]=t,this}describe(e,t){return bt("<object|string|array> [string]",[e,t],arguments.length),this[Bn](e,!0),kn(this,_n,"f").describe(e,t),this}detectLocale(e){return bt("<boolean>",[e],arguments.length),En(this,Jt,e,"f"),this}env(e){return bt("[string|boolean]",[e],arguments.length),!1===e?delete kn(this,an,"f").envPrefix:kn(this,an,"f").envPrefix=e||"",this}epilogue(e){return bt("<string>",[e],arguments.length),kn(this,_n,"f").epilog(e),this}epilog(e){return this.epilogue(e)}example(e,t){return bt("<string|array> [string]",[e,t],arguments.length),Array.isArray(e)?e.forEach((e=>this.example(...e))):kn(this,_n,"f").example(e,t),this}exit(e,t){En(this,tn,!0,"f"),En(this,Gt,t,"f"),kn(this,Qt,"f")&&kn(this,gn,"f").process.exit(e)}exitProcess(e=!0){return bt("[boolean]",[e],arguments.length),En(this,Qt,e,"f"),this}fail(e){if(bt("<function|boolean>",[e],arguments.length),"boolean"==typeof e&&!1!==e)throw new st("Invalid first argument. Expected function or boolean 'false'");return kn(this,_n,"f").failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,t){return bt("<array> [function]",[e,t],arguments.length),t?kn(this,Kt,"f").getCompletion(e,t):new Promise(((t,n)=>{kn(this,Kt,"f").getCompletion(e,((e,r)=>{e?n(e):t(r)}))}))}getDemandedOptions(){return bt([],0),kn(this,an,"f").demandedOptions}getDemandedCommands(){return bt([],0),kn(this,an,"f").demandedCommands}getDeprecatedOptions(){return bt([],0),kn(this,an,"f").deprecatedOptions}getDetectLocale(){return kn(this,Jt,"f")}getExitProcess(){return kn(this,Qt,"f")}getGroups(){return Object.assign({},kn(this,en,"f"),kn(this,dn,"f"))}getHelp(){if(En(this,tn,!0,"f"),!kn(this,_n,"f").hasCachedHelpMessage()){if(!this.parsed){const e=this[sr](kn(this,pn,"f"),void 0,void 0,0,!0);if(gt(e))return e.then((()=>kn(this,_n,"f").help()))}const e=kn(this,zt,"f").runDefaultBuilderOn(this);if(gt(e))return e.then((()=>kn(this,_n,"f").help()))}return Promise.resolve(kn(this,_n,"f").help())}getOptions(){return kn(this,an,"f")}getStrict(){return kn(this,yn,"f")}getStrictCommands(){return kn(this,vn,"f")}getStrictOptions(){return kn(this,bn,"f")}global(e,t){return bt("<string|array> [boolean]",[e,t],arguments.length),e=[].concat(e),!1!==t?kn(this,an,"f").local=kn(this,an,"f").local.filter((t=>-1===e.indexOf(t))):e.forEach((e=>{kn(this,an,"f").local.includes(e)||kn(this,an,"f").local.push(e)})),this}group(e,t){bt("<string|array> <string>",[e,t],arguments.length);const n=kn(this,dn,"f")[t]||kn(this,en,"f")[t];kn(this,dn,"f")[t]&&delete kn(this,dn,"f")[t];const r={};return kn(this,en,"f")[t]=(n||[]).concat(e).filter((e=>!r[e]&&(r[e]=!0))),this}hide(e){return bt("<string>",[e],arguments.length),kn(this,an,"f").hiddenOptions.push(e),this}implies(e,t){return bt("<string|object> [number|string|array]",[e,t],arguments.length),kn(this,Sn,"f").implies(e,t),this}locale(e){return bt("[string]",[e],arguments.length),void 0===e?(this[In](),kn(this,gn,"f").y18n.getLocale()):(En(this,Jt,!1,"f"),kn(this,gn,"f").y18n.setLocale(e),this)}middleware(e,t,n){return kn(this,Xt,"f").addMiddleware(e,!!t,n)}nargs(e,t){return bt("<string|object|array> [number]",[e,t],arguments.length),this[Fn](this.nargs.bind(this),"narg",e,t),this}normalize(e){return bt("<array|string>",[e],arguments.length),this[Rn]("normalize",e),this}number(e){return bt("<array|string>",[e],arguments.length),this[Rn]("number",e),this[ar](e),this}option(e,t){if(bt("<string|object> [object]",[e,t],arguments.length),"object"==typeof e)Object.keys(e).forEach((t=>{this.options(t,e[t])}));else{"object"!=typeof t&&(t={}),this[ar](e),!kn(this,$n,"f")||"version"!==e&&"version"!==(null==t?void 0:t.alias)||this[An](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join("\n"),void 0,"versionWarning"),kn(this,an,"f").key[e]=!0,t.alias&&this.alias(e,t.alias);const n=t.deprecate||t.deprecated;n&&this.deprecateOption(e,n);const r=t.demand||t.required||t.require;r&&this.demand(e,r),t.demandOption&&this.demandOption(e,"string"==typeof t.demandOption?t.demandOption:void 0),t.conflicts&&this.conflicts(e,t.conflicts),"default"in t&&this.default(e,t.default),void 0!==t.implies&&this.implies(e,t.implies),void 0!==t.nargs&&this.nargs(e,t.nargs),t.config&&this.config(e,t.configParser),t.normalize&&this.normalize(e),t.choices&&this.choices(e,t.choices),t.coerce&&this.coerce(e,t.coerce),t.group&&this.group(e,t.group),(t.boolean||"boolean"===t.type)&&(this.boolean(e),t.alias&&this.boolean(t.alias)),(t.array||"array"===t.type)&&(this.array(e),t.alias&&this.array(t.alias)),(t.number||"number"===t.type)&&(this.number(e),t.alias&&this.number(t.alias)),(t.string||"string"===t.type)&&(this.string(e),t.alias&&this.string(t.alias)),(t.count||"count"===t.type)&&this.count(e),"boolean"==typeof t.global&&this.global(e,t.global),t.defaultDescription&&(kn(this,an,"f").defaultDescription[e]=t.defaultDescription),t.skipValidation&&this.skipValidation(e);const s=t.describe||t.description||t.desc,i=kn(this,_n,"f").getDescriptions();Object.prototype.hasOwnProperty.call(i,e)&&"string"!=typeof s||this.describe(e,s),t.hidden&&this.hide(e),t.requiresArg&&this.requiresArg(e)}return this}options(e,t){return this.option(e,t)}parse(e,t,n){bt("[string|array] [function|boolean|object] [function]",[e,t,n],arguments.length),this[xn](),void 0===e&&(e=kn(this,pn,"f")),"object"==typeof t&&(En(this,fn,t,"f"),t=n),"function"==typeof t&&(En(this,un,t,"f"),t=!1),t||En(this,pn,e,"f"),kn(this,un,"f")&&En(this,Qt,!1,"f");const r=this[sr](e,!!t),s=this.parsed;return kn(this,Kt,"f").setParsed(this.parsed),gt(r)?r.then((e=>(kn(this,un,"f")&&kn(this,un,"f").call(this,kn(this,Gt,"f"),e,kn(this,on,"f")),e))).catch((e=>{throw kn(this,un,"f")&&kn(this,un,"f")(e,this.parsed.argv,kn(this,on,"f")),e})).finally((()=>{this[Vn](),this.parsed=s})):(kn(this,un,"f")&&kn(this,un,"f").call(this,kn(this,Gt,"f"),r,kn(this,on,"f")),this[Vn](),this.parsed=s,r)}parseAsync(e,t,n){const r=this.parse(e,t,n);return gt(r)?r:Promise.resolve(r)}parseSync(e,t,n){const r=this.parse(e,t,n);if(gt(r))throw new st(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return r}parserConfiguration(e){return bt("<object>",[e],arguments.length),En(this,ln,e,"f"),this}pkgConf(e,t){bt("<string> [string]",[e,t],arguments.length);let n=null;const r=this[Ln](t||kn(this,Bt,"f"));return r[e]&&"object"==typeof r[e]&&(n=qt(r[e],t||kn(this,Bt,"f"),this[Cn]()["deep-merge-config"]||!1,kn(this,gn,"f")),kn(this,an,"f").configObjects=(kn(this,an,"f").configObjects||[]).concat(n)),this}positional(e,t){bt("<string> <object>",[e,t],arguments.length);const n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];t=At(t,((e,t)=>!("type"===e&&!["string","number","boolean"].includes(t))&&n.includes(e)));const r=kn(this,Vt,"f").fullCommands[kn(this,Vt,"f").fullCommands.length-1],s=r?kn(this,zt,"f").cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return mt(s).forEach((n=>{const r=s[n];Array.isArray(r)?-1!==r.indexOf(e)&&(t[n]=!0):r[e]&&!(n in t)&&(t[n]=r[e])})),this.group(e,kn(this,_n,"f").getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return bt("[boolean]",[e],arguments.length),En(this,mn,e,"f"),this}required(e,t,n){return this.demand(e,t,n)}require(e,t,n){return this.demand(e,t,n)}requiresArg(e){return bt("<array|string|object> [number]",[e],arguments.length),"string"==typeof e&&kn(this,an,"f").narg[e]||this[Fn](this.requiresArg.bind(this),"narg",e,NaN),this}showCompletionScript(e,t){return bt("[string] [string]",[e,t],arguments.length),e=e||this.$0,kn(this,sn,"f").log(kn(this,Kt,"f").generateCompletionScript(e,t||kn(this,Wt,"f")||"completion")),this}showHelp(e){if(bt("[string|function]",[e],arguments.length),En(this,tn,!0,"f"),!kn(this,_n,"f").hasCachedHelpMessage()){if(!this.parsed){const t=this[sr](kn(this,pn,"f"),void 0,void 0,0,!0);if(gt(t))return t.then((()=>{kn(this,_n,"f").showHelp(e)})),this}const t=kn(this,zt,"f").runDefaultBuilderOn(this);if(gt(t))return t.then((()=>{kn(this,_n,"f").showHelp(e)})),this}return kn(this,_n,"f").showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,t){return bt("[boolean|string] [string]",[e,t],arguments.length),kn(this,_n,"f").showHelpOnFail(e,t),this}showVersion(e){return bt("[string|function]",[e],arguments.length),kn(this,_n,"f").showVersion(e),this}skipValidation(e){return bt("<array|string>",[e],arguments.length),this[Rn]("skipValidation",e),this}strict(e){return bt("[boolean]",[e],arguments.length),En(this,yn,!1!==e,"f"),this}strictCommands(e){return bt("[boolean]",[e],arguments.length),En(this,vn,!1!==e,"f"),this}strictOptions(e){return bt("[boolean]",[e],arguments.length),En(this,bn,!1!==e,"f"),this}string(e){return bt("<array|string>",[e],arguments.length),this[Rn]("string",e),this[ar](e),this}terminalWidth(){return bt([],0),kn(this,gn,"f").process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return bt("<object>",[e],arguments.length),En(this,Jt,!1,"f"),kn(this,gn,"f").y18n.updateLocale(e),this}usage(e,t,n,r){if(bt("<string|null|undefined> [string|boolean] [function|object] [function]",[e,t,n,r],arguments.length),void 0!==t){if(dt(e,null,kn(this,gn,"f")),(e||"").match(/^\$0( |$)/))return this.command(e,t,n,r);throw new st(".usage() description must start with $0 if being used as alias for .command()")}return kn(this,_n,"f").usage(e),this}usageConfiguration(e){return bt("<object>",[e],arguments.length),En(this,wn,e,"f"),this}version(e,t,n){const r="version";if(bt("[boolean|string] [string] [string]",[e,t,n],arguments.length),kn(this,$n,"f")&&(this[jn](kn(this,$n,"f")),kn(this,_n,"f").version(void 0),En(this,$n,null,"f")),0===arguments.length)n=this[Tn](),e=r;else if(1===arguments.length){if(!1===e)return this;n=e,e=r}else 2===arguments.length&&(n=t,t=void 0);return En(this,$n,"string"==typeof e?e:r,"f"),t=t||kn(this,_n,"f").deferY18nLookup("Show version number"),kn(this,_n,"f").version(n||void 0),this.boolean(kn(this,$n,"f")),this.describe(kn(this,$n,"f"),t),this}wrap(e){return bt("<number|null|undefined>",[e],arguments.length),kn(this,_n,"f").wrap(e),this}[(zt=new WeakMap,Bt=new WeakMap,Vt=new WeakMap,Kt=new WeakMap,Wt=new WeakMap,Ht=new WeakMap,Gt=new WeakMap,Jt=new WeakMap,Yt=new WeakMap,Qt=new WeakMap,Zt=new WeakMap,Xt=new WeakMap,en=new WeakMap,tn=new WeakMap,nn=new WeakMap,rn=new WeakMap,sn=new WeakMap,on=new WeakMap,an=new WeakMap,cn=new WeakMap,ln=new WeakMap,un=new WeakMap,fn=new WeakMap,hn=new WeakMap,dn=new WeakMap,pn=new WeakMap,mn=new WeakMap,gn=new WeakMap,yn=new WeakMap,vn=new WeakMap,bn=new WeakMap,_n=new WeakMap,wn=new WeakMap,$n=new WeakMap,Sn=new WeakMap,On)](e){if(!e._||!e["--"])return e;e._.push.apply(e._,e["--"]);try{delete e["--"]}catch(e){}return e}[Pn](){return{log:(...e)=>{this[Xn]()||console.log(...e),En(this,tn,!0,"f"),kn(this,on,"f").length&&En(this,on,kn(this,on,"f")+"\n","f"),En(this,on,kn(this,on,"f")+e.join(" "),"f")},error:(...e)=>{this[Xn]()||console.error(...e),En(this,tn,!0,"f"),kn(this,on,"f").length&&En(this,on,kn(this,on,"f")+"\n","f"),En(this,on,kn(this,on,"f")+e.join(" "),"f")}}}[jn](e){mt(kn(this,an,"f")).forEach((t=>{if("configObjects"===t)return;const n=kn(this,an,"f")[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):"object"==typeof n&&delete n[e]})),delete kn(this,_n,"f").getDescriptions()[e]}[An](e,t,n){kn(this,Yt,"f")[n]||(kn(this,gn,"f").process.emitWarning(e,t),kn(this,Yt,"f")[n]=!0)}[xn](){kn(this,Zt,"f").push({options:kn(this,an,"f"),configObjects:kn(this,an,"f").configObjects.slice(0),exitProcess:kn(this,Qt,"f"),groups:kn(this,en,"f"),strict:kn(this,yn,"f"),strictCommands:kn(this,vn,"f"),strictOptions:kn(this,bn,"f"),completionCommand:kn(this,Wt,"f"),output:kn(this,on,"f"),exitError:kn(this,Gt,"f"),hasOutput:kn(this,tn,"f"),parsed:this.parsed,parseFn:kn(this,un,"f"),parseContext:kn(this,fn,"f")}),kn(this,_n,"f").freeze(),kn(this,Sn,"f").freeze(),kn(this,zt,"f").freeze(),kn(this,Xt,"f").freeze()}[Nn](){let e,t="";return e=/\b(node|iojs|electron)(\.exe)?$/.test(kn(this,gn,"f").process.argv()[0])?kn(this,gn,"f").process.argv().slice(1,2):kn(this,gn,"f").process.argv().slice(0,1),t=e.map((e=>{const t=this[nr](kn(this,Bt,"f"),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e})).join(" ").trim(),kn(this,gn,"f").getEnv("_")&&kn(this,gn,"f").getProcessArgvBin()===kn(this,gn,"f").getEnv("_")&&(t=kn(this,gn,"f").getEnv("_").replace(`${kn(this,gn,"f").path.dirname(kn(this,gn,"f").process.execPath())}/`,"")),t}[Cn](){return kn(this,ln,"f")}[Mn](){return kn(this,wn,"f")}[In](){if(!kn(this,Jt,"f"))return;const e=kn(this,gn,"f").getEnv("LC_ALL")||kn(this,gn,"f").getEnv("LC_MESSAGES")||kn(this,gn,"f").getEnv("LANG")||kn(this,gn,"f").getEnv("LANGUAGE")||"en_US";this.locale(e.replace(/[.:].*/,""))}[Tn](){return this[Ln]().version||"unknown"}[Dn](e){const t=e["--"]?e["--"]:e._;for(let e,n=0;void 0!==(e=t[n]);n++)kn(this,gn,"f").Parser.looksLikeNumber(e)&&Number.isSafeInteger(Math.floor(parseFloat(`${e}`)))&&(t[n]=Number(e));return e}[Ln](e){const t=e||"*";if(kn(this,hn,"f")[t])return kn(this,hn,"f")[t];let n={};try{let t=e||kn(this,gn,"f").mainFilename;!e&&kn(this,gn,"f").path.extname(t)&&(t=kn(this,gn,"f").path.dirname(t));const r=kn(this,gn,"f").findUp(t,((e,t)=>t.includes("package.json")?"package.json":void 0));dt(r,void 0,kn(this,gn,"f")),n=JSON.parse(kn(this,gn,"f").readFileSync(r,"utf8"))}catch(e){}return kn(this,hn,"f")[t]=n||{},kn(this,hn,"f")[t]}[Rn](e,t){(t=[].concat(t)).forEach((t=>{t=this[zn](t),kn(this,an,"f")[e].push(t)}))}[Fn](e,t,n,r){this[Un](e,t,n,r,((e,t,n)=>{kn(this,an,"f")[e][t]=n}))}[qn](e,t,n,r){this[Un](e,t,n,r,((e,t,n)=>{kn(this,an,"f")[e][t]=(kn(this,an,"f")[e][t]||[]).concat(n)}))}[Un](e,t,n,r,s){if(Array.isArray(n))n.forEach((t=>{e(t,r)}));else if((e=>"object"==typeof e)(n))for(const t of mt(n))e(t,n[t]);else s(t,this[zn](n),r)}[zn](e){return"__proto__"===e?"___proto___":e}[Bn](e,t){return this[Fn](this[Bn].bind(this),"key",e,t),this}[Vn](){var e,t,n,r,s,i,o,a,c,l,u,f;const h=kn(this,Zt,"f").pop();let d;dt(h,void 0,kn(this,gn,"f")),e=this,t=this,n=this,r=this,s=this,i=this,o=this,a=this,c=this,l=this,u=this,f=this,({options:{set value(t){En(e,an,t,"f")}}.value,configObjects:d,exitProcess:{set value(e){En(t,Qt,e,"f")}}.value,groups:{set value(e){En(n,en,e,"f")}}.value,output:{set value(e){En(r,on,e,"f")}}.value,exitError:{set value(e){En(s,Gt,e,"f")}}.value,hasOutput:{set value(e){En(i,tn,e,"f")}}.value,parsed:this.parsed,strict:{set value(e){En(o,yn,e,"f")}}.value,strictCommands:{set value(e){En(a,vn,e,"f")}}.value,strictOptions:{set value(e){En(c,bn,e,"f")}}.value,completionCommand:{set value(e){En(l,Wt,e,"f")}}.value,parseFn:{set value(e){En(u,un,e,"f")}}.value,parseContext:{set value(e){En(f,fn,e,"f")}}.value}=h),kn(this,an,"f").configObjects=d,kn(this,_n,"f").unfreeze(),kn(this,Sn,"f").unfreeze(),kn(this,zt,"f").unfreeze(),kn(this,Xt,"f").unfreeze()}[Kn](e,t){return Et(t,(t=>(e(t),t)))}getInternalMethods(){return{getCommandInstance:this[Wn].bind(this),getContext:this[Hn].bind(this),getHasOutput:this[Gn].bind(this),getLoggerInstance:this[Jn].bind(this),getParseContext:this[Yn].bind(this),getParserConfiguration:this[Cn].bind(this),getUsageConfiguration:this[Mn].bind(this),getUsageInstance:this[Qn].bind(this),getValidationInstance:this[Zn].bind(this),hasParseCallback:this[Xn].bind(this),isGlobalContext:this[er].bind(this),postProcess:this[tr].bind(this),reset:this[rr].bind(this),runValidation:this[ir].bind(this),runYargsParserAndExecuteCommands:this[sr].bind(this),setHasOutput:this[or].bind(this)}}[Wn](){return kn(this,zt,"f")}[Hn](){return kn(this,Vt,"f")}[Gn](){return kn(this,tn,"f")}[Jn](){return kn(this,sn,"f")}[Yn](){return kn(this,fn,"f")||{}}[Qn](){return kn(this,_n,"f")}[Zn](){return kn(this,Sn,"f")}[Xn](){return!!kn(this,un,"f")}[er](){return kn(this,rn,"f")}[tr](e,t,n,r){return n||gt(e)||(t||(e=this[On](e)),(this[Cn]()["parse-positional-numbers"]||void 0===this[Cn]()["parse-positional-numbers"])&&(e=this[Dn](e)),r&&(e=St(e,this,kn(this,Xt,"f").getMiddleware(),!1))),e}[rr](e={}){En(this,an,kn(this,an,"f")||{},"f");const t={};t.local=kn(this,an,"f").local||[],t.configObjects=kn(this,an,"f").configObjects||[];const n={};return t.local.forEach((t=>{n[t]=!0,(e[t]||[]).forEach((e=>{n[e]=!0}))})),Object.assign(kn(this,dn,"f"),Object.keys(kn(this,en,"f")).reduce(((e,t)=>{const r=kn(this,en,"f")[t].filter((e=>!(e in n)));return r.length>0&&(e[t]=r),e}),{})),En(this,en,{},"f"),["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"].forEach((e=>{t[e]=(kn(this,an,"f")[e]||[]).filter((e=>!n[e]))})),["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"].forEach((e=>{t[e]=At(kn(this,an,"f")[e],(e=>!n[e]))})),t.envPrefix=kn(this,an,"f").envPrefix,En(this,an,t,"f"),En(this,_n,kn(this,_n,"f")?kn(this,_n,"f").reset(n):function(e,t){const n=t.y18n.__,r={},s=[];r.failFn=function(e){s.push(e)};let i=null,o=null,a=!0;r.showHelpOnFail=function(t=!0,n){const[s,c]="string"==typeof t?[!0,t]:[t,n];return e.getInternalMethods().isGlobalContext()&&(o=c),i=c,a=s,r};let c=!1;r.fail=function(t,n){const l=e.getInternalMethods().getLoggerInstance();if(!s.length){if(e.getExitProcess()&&xt(!0),!c){c=!0,a&&(e.showHelp("error"),l.error()),(t||n)&&l.error(t||n);const r=i||o;r&&((t||n)&&l.error(""),l.error(r))}if(n=n||new st(t),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,n);throw n}for(let e=s.length-1;e>=0;--e){const i=s[e];if(Nt(i)){if(n)throw n;if(t)throw Error(t)}else i(t,n,r)}};let l=[],u=!1;r.usage=(e,t)=>null===e?(u=!0,l=[],r):(u=!1,l.push([e,t||""]),r),r.getUsage=()=>l,r.getUsageDisabled=()=>u,r.getPositionalGroupName=()=>n("Positionals:");let f=[];r.example=(e,t)=>{f.push([e,t||""])};let h=[];r.command=function(e,t,n,r,s=!1){n&&(h=h.map((e=>(e[2]=!1,e)))),h.push([e,t||"",n,r,s])},r.getCommands=()=>h;let d={};r.describe=function(e,t){Array.isArray(e)?e.forEach((e=>{r.describe(e,t)})):"object"==typeof e?Object.keys(e).forEach((t=>{r.describe(t,e[t])})):d[e]=t},r.getDescriptions=()=>d;let p=[];r.epilog=e=>{p.push(e)};let m,g=!1;r.wrap=e=>{g=!0,m=e},r.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(g||(m=t.process.stdColumns?Math.min(80,t.process.stdColumns):80,g=!0),m);const y="__yargsString__:";function v(e,n,r){let s=0;return Array.isArray(e)||(e=Object.values(e).map((e=>[e]))),e.forEach((e=>{s=Math.max(t.stringWidth(r?`${r} ${It(e[0])}`:It(e[0]))+Mt(e[0]),s)})),n&&(s=Math.min(s,parseInt((.5*n).toString(),10))),s}let b;function _(t){return e.getOptions().hiddenOptions.indexOf(t)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}function w(e,t){let r=`[${n("default:")} `;if(void 0===e&&!t)return null;if(t)r+=t;else switch(typeof e){case"string":r+=`"${e}"`;break;case"object":r+=JSON.stringify(e);break;default:r+=e}return`${r}]`}r.deferY18nLookup=e=>y+e,r.help=function(){if(b)return b;!function(){const t=e.getDemandedOptions(),n=e.getOptions();(Object.keys(n.alias)||[]).forEach((s=>{n.alias[s].forEach((i=>{d[i]&&r.describe(s,d[i]),i in t&&e.demandOption(s,t[i]),n.boolean.includes(i)&&e.boolean(s),n.count.includes(i)&&e.count(s),n.string.includes(i)&&e.string(s),n.normalize.includes(i)&&e.normalize(s),n.array.includes(i)&&e.array(s),n.number.includes(i)&&e.number(s)}))}))}();const s=e.customScriptName?e.$0:t.path.basename(e.$0),i=e.getDemandedOptions(),o=e.getDemandedCommands(),a=e.getDeprecatedOptions(),c=e.getGroups(),m=e.getOptions();let g=[];g=g.concat(Object.keys(d)),g=g.concat(Object.keys(i)),g=g.concat(Object.keys(o)),g=g.concat(Object.keys(m.default)),g=g.filter(_),g=Object.keys(g.reduce(((e,t)=>("_"!==t&&(e[t]=!0),e)),{}));const $=r.getWrap(),S=t.cliui({width:$,wrap:!!$});if(!u)if(l.length)l.forEach((e=>{S.div({text:`${e[0].replace(/\$0/g,s)}`}),e[1]&&S.div({text:`${e[1]}`,padding:[1,0,0,0]})})),S.div();else if(h.length){let e=null;e=o._?`${s} <${n("command")}>\n`:`${s} [${n("command")}]\n`,S.div(`${e}`)}if(h.length>1||1===h.length&&!h[0][2]){S.div(n("Commands:"));const t=e.getInternalMethods().getContext(),r=t.commands.length?`${t.commands.join(" ")} `:"";!0===e.getInternalMethods().getParserConfiguration()["sort-commands"]&&(h=h.sort(((e,t)=>e[0].localeCompare(t[0]))));const i=s?`${s} `:"";h.forEach((e=>{const t=`${i}${r}${e[0].replace(/^\$0 ?/,"")}`;S.span({text:t,padding:[0,2,0,2],width:v(h,$,`${s}${r}`)+4},{text:e[1]});const o=[];e[2]&&o.push(`[${n("default")}]`),e[3]&&e[3].length&&o.push(`[${n("aliases:")} ${e[3].join(", ")}]`),e[4]&&("string"==typeof e[4]?o.push(`[${n("deprecated: %s",e[4])}]`):o.push(`[${n("deprecated")}]`)),o.length?S.div({text:o.join(" "),padding:[0,0,0,2],align:"right"}):S.div()})),S.div()}const E=(Object.keys(m.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);g=g.filter((t=>!e.parsed.newAliases[t]&&E.every((e=>-1===(m.alias[e]||[]).indexOf(t)))));const k=n("Options:");c[k]||(c[k]=[]),function(e,t,n,r){let s=[],i=null;Object.keys(n).forEach((e=>{s=s.concat(n[e])})),e.forEach((e=>{i=[e].concat(t[e]),i.some((e=>-1!==s.indexOf(e)))||n[r].push(e)}))}(g,m.alias,c,k);const O=e=>/^--/.test(It(e)),P=Object.keys(c).filter((e=>c[e].length>0)).map((e=>({groupName:e,normalizedKeys:c[e].filter(_).map((e=>{if(E.includes(e))return e;for(let t,n=0;void 0!==(t=E[n]);n++)if((m.alias[t]||[]).includes(e))return t;return e}))}))).filter((({normalizedKeys:e})=>e.length>0)).map((({groupName:e,normalizedKeys:t})=>{const n=t.reduce(((t,n)=>(t[n]=[n].concat(m.alias[n]||[]).map((t=>e===r.getPositionalGroupName()?t:(/^[0-9]$/.test(t)?m.boolean.includes(n)?"-":"--":t.length>1?"--":"-")+t)).sort(((e,t)=>O(e)===O(t)?0:O(e)?1:-1)).join(", "),t)),{});return{groupName:e,normalizedKeys:t,switches:n}}));if(P.filter((({groupName:e})=>e!==r.getPositionalGroupName())).some((({normalizedKeys:e,switches:t})=>!e.every((e=>O(t[e])))))&&P.filter((({groupName:e})=>e!==r.getPositionalGroupName())).forEach((({normalizedKeys:e,switches:t})=>{e.forEach((e=>{var n,r;O(t[e])&&(t[e]=(n=t[e],r="-x, ".length,Ct(n)?{text:n.text,indentation:n.indentation+r}:{text:n,indentation:r}))}))})),P.forEach((({groupName:t,normalizedKeys:s,switches:o})=>{S.div(t),s.forEach((t=>{const s=o[t];let c=d[t]||"",l=null;c.includes(y)&&(c=n(c.substring(y.length))),m.boolean.includes(t)&&(l=`[${n("boolean")}]`),m.count.includes(t)&&(l=`[${n("count")}]`),m.string.includes(t)&&(l=`[${n("string")}]`),m.normalize.includes(t)&&(l=`[${n("string")}]`),m.array.includes(t)&&(l=`[${n("array")}]`),m.number.includes(t)&&(l=`[${n("number")}]`);const u=[t in a?(f=a[t],"string"==typeof f?`[${n("deprecated: %s",f)}]`:`[${n("deprecated")}]`):null,l,t in i?`[${n("required")}]`:null,m.choices&&m.choices[t]?`[${n("choices:")} ${r.stringifiedValues(m.choices[t])}]`:null,w(m.default[t],m.defaultDescription[t])].filter(Boolean).join(" ");var f;S.span({text:It(s),padding:[0,2,0,2+Mt(s)],width:v(o,$)+4},c);const h=!0===e.getInternalMethods().getUsageConfiguration()["hide-types"];u&&!h?S.div({text:u,padding:[0,0,0,2],align:"right"}):S.div()})),S.div()})),f.length&&(S.div(n("Examples:")),f.forEach((e=>{e[0]=e[0].replace(/\$0/g,s)})),f.forEach((e=>{""===e[1]?S.div({text:e[0],padding:[0,2,0,2]}):S.div({text:e[0],padding:[0,2,0,2],width:v(f,$)+4},{text:e[1]})})),S.div()),p.length>0){const e=p.map((e=>e.replace(/\$0/g,s))).join("\n");S.div(`${e}\n`)}return S.toString().replace(/\s*$/,"")},r.cacheHelpMessage=function(){b=this.help()},r.clearCachedHelpMessage=function(){b=void 0},r.hasCachedHelpMessage=function(){return!!b},r.showHelp=t=>{const n=e.getInternalMethods().getLoggerInstance();t||(t="error"),("function"==typeof t?t:n[t])(r.help())},r.functionDescription=e=>["(",e.name?t.Parser.decamelize(e.name,"-"):n("generated-value"),")"].join(""),r.stringifiedValues=function(e,t){let n="";const r=t||", ",s=[].concat(e);return e&&s.length?(s.forEach((e=>{n.length&&(n+=r),n+=JSON.stringify(e)})),n):n};let $=null;r.version=e=>{$=e},r.showVersion=t=>{const n=e.getInternalMethods().getLoggerInstance();t||(t="error"),("function"==typeof t?t:n[t])($)},r.reset=function(e){return i=null,c=!1,l=[],u=!1,p=[],f=[],h=[],d=At(d,(t=>!e[t])),r};const S=[];return r.freeze=function(){S.push({failMessage:i,failureOutput:c,usages:l,usageDisabled:u,epilogs:p,examples:f,commands:h,descriptions:d})},r.unfreeze=function(e=!1){const t=S.pop();t&&(e?(d={...t.descriptions,...d},h=[...t.commands,...h],l=[...t.usages,...l],f=[...t.examples,...f],p=[...t.epilogs,...p]):({failMessage:i,failureOutput:c,usages:l,usageDisabled:u,epilogs:p,examples:f,commands:h,descriptions:d}=t))},r}(this,kn(this,gn,"f")),"f"),En(this,Sn,kn(this,Sn,"f")?kn(this,Sn,"f").reset(n):function(e,t,n){const r=n.y18n.__,s=n.y18n.__n,i={nonOptionCount:function(n){const r=e.getDemandedCommands(),i=n._.length+(n["--"]?n["--"].length:0)-e.getInternalMethods().getContext().commands.length;r._&&(i<r._.min||i>r._.max)&&(i<r._.min?void 0!==r._.minMsg?t.fail(r._.minMsg?r._.minMsg.replace(/\$0/g,i.toString()).replace(/\$1/,r._.min.toString()):null):t.fail(s("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",i,i.toString(),r._.min.toString())):i>r._.max&&(void 0!==r._.maxMsg?t.fail(r._.maxMsg?r._.maxMsg.replace(/\$0/g,i.toString()).replace(/\$1/,r._.max.toString()):null):t.fail(s("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",i,i.toString(),r._.max.toString()))))},positionalCount:function(e,n){n<e&&t.fail(s("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",n,n+"",e+""))},requiredArguments:function(e,n){let r=null;for(const t of Object.keys(n))Object.prototype.hasOwnProperty.call(e,t)&&void 0!==e[t]||(r=r||{},r[t]=n[t]);if(r){const e=[];for(const t of Object.keys(r)){const n=r[t];n&&e.indexOf(n)<0&&e.push(n)}const n=e.length?`\n${e.join("\n")}`:"";t.fail(s("Missing required argument: %s","Missing required arguments: %s",Object.keys(r).length,Object.keys(r).join(", ")+n))}},unknownArguments:function(n,r,o,a,c=!0){var l;const u=e.getInternalMethods().getCommandInstance().getCommands(),f=[],h=e.getInternalMethods().getContext();if(Object.keys(n).forEach((t=>{Lt.includes(t)||Object.prototype.hasOwnProperty.call(o,t)||Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),t)||i.isValidAndSomeAliasIsNotNew(t,r)||f.push(t)})),c&&(h.commands.length>0||u.length>0||a)&&n._.slice(h.commands.length).forEach((e=>{u.includes(""+e)||f.push(""+e)})),c){const t=(null===(l=e.getDemandedCommands()._)||void 0===l?void 0:l.max)||0,r=h.commands.length+t;r<n._.length&&n._.slice(r).forEach((e=>{e=String(e),h.commands.includes(e)||f.includes(e)||f.push(e)}))}f.length&&t.fail(s("Unknown argument: %s","Unknown arguments: %s",f.length,f.map((e=>e.trim()?e:`"${e}"`)).join(", ")))},unknownCommands:function(n){const r=e.getInternalMethods().getCommandInstance().getCommands(),i=[],o=e.getInternalMethods().getContext();return(o.commands.length>0||r.length>0)&&n._.slice(o.commands.length).forEach((e=>{r.includes(""+e)||i.push(""+e)})),i.length>0&&(t.fail(s("Unknown command: %s","Unknown commands: %s",i.length,i.join(", "))),!0)},isValidAndSomeAliasIsNotNew:function(t,n){if(!Object.prototype.hasOwnProperty.call(n,t))return!1;const r=e.parsed.newAliases;return[t,...n[t]].some((e=>!Object.prototype.hasOwnProperty.call(r,e)||!r[t]))},limitedChoices:function(n){const s=e.getOptions(),i={};if(!Object.keys(s.choices).length)return;Object.keys(n).forEach((e=>{-1===Lt.indexOf(e)&&Object.prototype.hasOwnProperty.call(s.choices,e)&&[].concat(n[e]).forEach((t=>{-1===s.choices[e].indexOf(t)&&void 0!==t&&(i[e]=(i[e]||[]).concat(t))}))}));const o=Object.keys(i);if(!o.length)return;let a=r("Invalid values:");o.forEach((e=>{a+=`\n ${r("Argument: %s, Given: %s, Choices: %s",e,t.stringifiedValues(i[e]),t.stringifiedValues(s.choices[e]))}`})),t.fail(a)}};let o={};function a(e,t){const n=Number(t);return"number"==typeof(t=isNaN(n)?t:n)?t=e._.length>=t:t.match(/^--no-.+/)?(t=t.match(/^--no-(.+)/)[1],t=!Object.prototype.hasOwnProperty.call(e,t)):t=Object.prototype.hasOwnProperty.call(e,t),t}i.implies=function(t,r){bt("<string|object> [array|number|string]",[t,r],arguments.length),"object"==typeof t?Object.keys(t).forEach((e=>{i.implies(e,t[e])})):(e.global(t),o[t]||(o[t]=[]),Array.isArray(r)?r.forEach((e=>i.implies(t,e))):(dt(r,void 0,n),o[t].push(r)))},i.getImplied=function(){return o},i.implications=function(e){const n=[];if(Object.keys(o).forEach((t=>{const r=t;(o[t]||[]).forEach((t=>{let s=r;const i=t;s=a(e,s),t=a(e,t),s&&!t&&n.push(` ${r} -> ${i}`)}))})),n.length){let e=`${r("Implications failed:")}\n`;n.forEach((t=>{e+=t})),t.fail(e)}};let c={};i.conflicts=function(t,n){bt("<string|object> [array|string]",[t,n],arguments.length),"object"==typeof t?Object.keys(t).forEach((e=>{i.conflicts(e,t[e])})):(e.global(t),c[t]||(c[t]=[]),Array.isArray(n)?n.forEach((e=>i.conflicts(t,e))):c[t].push(n))},i.getConflicting=()=>c,i.conflicting=function(s){Object.keys(s).forEach((e=>{c[e]&&c[e].forEach((n=>{n&&void 0!==s[e]&&void 0!==s[n]&&t.fail(r("Arguments %s and %s are mutually exclusive",e,n))}))})),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(c).forEach((e=>{c[e].forEach((i=>{i&&void 0!==s[n.Parser.camelCase(e)]&&void 0!==s[n.Parser.camelCase(i)]&&t.fail(r("Arguments %s and %s are mutually exclusive",e,i))}))}))},i.recommendCommands=function(e,n){n=n.sort(((e,t)=>t.length-e.length));let s=null,i=1/0;for(let t,r=0;void 0!==(t=n[r]);r++){const n=Dt(e,t);n<=3&&n<i&&(i=n,s=t)}s&&t.fail(r("Did you mean %s?",s))},i.reset=function(e){return o=At(o,(t=>!e[t])),c=At(c,(t=>!e[t])),i};const l=[];return i.freeze=function(){l.push({implied:o,conflicting:c})},i.unfreeze=function(){const e=l.pop();dt(e,void 0,n),({implied:o,conflicting:c}=e)},i}(this,kn(this,_n,"f"),kn(this,gn,"f")),"f"),En(this,zt,kn(this,zt,"f")?kn(this,zt,"f").reset():function(e,t,n,r){return new Ot(e,t,n,r)}(kn(this,_n,"f"),kn(this,Sn,"f"),kn(this,Xt,"f"),kn(this,gn,"f")),"f"),kn(this,Kt,"f")||En(this,Kt,function(e,t,n,r){return new Tt(e,t,n,r)}(this,kn(this,_n,"f"),kn(this,zt,"f"),kn(this,gn,"f")),"f"),kn(this,Xt,"f").reset(),En(this,Wt,null,"f"),En(this,on,"","f"),En(this,Gt,null,"f"),En(this,tn,!1,"f"),this.parsed=!1,this}[nr](e,t){return kn(this,gn,"f").path.relative(e,t)}[sr](e,t,n,r=0,s=!1){let i=!!n||s;e=e||kn(this,pn,"f"),kn(this,an,"f").__=kn(this,gn,"f").y18n.__,kn(this,an,"f").configuration=this[Cn]();const o=!!kn(this,an,"f").configuration["populate--"],a=Object.assign({},kn(this,an,"f").configuration,{"populate--":!0}),c=kn(this,gn,"f").Parser.detailed(e,Object.assign({},kn(this,an,"f"),{configuration:{"parse-positional-numbers":!1,...a}})),l=Object.assign(c.argv,kn(this,fn,"f"));let u;const f=c.aliases;let h=!1,d=!1;Object.keys(l).forEach((e=>{e===kn(this,nn,"f")&&l[e]?h=!0:e===kn(this,$n,"f")&&l[e]&&(d=!0)})),l.$0=this.$0,this.parsed=c,0===r&&kn(this,_n,"f").clearCachedHelpMessage();try{if(this[In](),t)return this[tr](l,o,!!n,!1);kn(this,nn,"f")&&[kn(this,nn,"f")].concat(f[kn(this,nn,"f")]||[]).filter((e=>e.length>1)).includes(""+l._[l._.length-1])&&(l._.pop(),h=!0),En(this,rn,!1,"f");const a=kn(this,zt,"f").getCommands(),p=kn(this,Kt,"f").completionKey in l,m=h||p||s;if(l._.length){if(a.length){let e;for(let t,i=r||0;void 0!==l._[i];i++){if(t=String(l._[i]),a.includes(t)&&t!==kn(this,Wt,"f")){const e=kn(this,zt,"f").runCommand(t,this,c,i+1,s,h||d||s);return this[tr](e,o,!!n,!1)}if(!e&&t!==kn(this,Wt,"f")){e=t;break}}!kn(this,zt,"f").hasDefaultCommand()&&kn(this,mn,"f")&&e&&!m&&kn(this,Sn,"f").recommendCommands(e,a)}kn(this,Wt,"f")&&l._.includes(kn(this,Wt,"f"))&&!p&&(kn(this,Qt,"f")&&xt(!0),this.showCompletionScript(),this.exit(0))}if(kn(this,zt,"f").hasDefaultCommand()&&!m){const e=kn(this,zt,"f").runCommand(null,this,c,0,s,h||d||s);return this[tr](e,o,!!n,!1)}if(p){kn(this,Qt,"f")&&xt(!0);const t=(e=[].concat(e)).slice(e.indexOf(`--${kn(this,Kt,"f").completionKey}`)+1);return kn(this,Kt,"f").getCompletion(t,((e,t)=>{if(e)throw new st(e.message);(t||[]).forEach((e=>{kn(this,sn,"f").log(e)})),this.exit(0)})),this[tr](l,!o,!!n,!1)}if(kn(this,tn,"f")||(h?(kn(this,Qt,"f")&&xt(!0),i=!0,this.showHelp("log"),this.exit(0)):d&&(kn(this,Qt,"f")&&xt(!0),i=!0,kn(this,_n,"f").showVersion("log"),this.exit(0))),!i&&kn(this,an,"f").skipValidation.length>0&&(i=Object.keys(l).some((e=>kn(this,an,"f").skipValidation.indexOf(e)>=0&&!0===l[e]))),!i){if(c.error)throw new st(c.error.message);if(!p){const e=this[ir](f,{},c.error);n||(u=St(l,this,kn(this,Xt,"f").getMiddleware(),!0)),u=this[Kn](e,null!=u?u:l),gt(u)&&!n&&(u=u.then((()=>St(l,this,kn(this,Xt,"f").getMiddleware(),!1))))}}}catch(e){if(!(e instanceof st))throw e;kn(this,_n,"f").fail(e.message,e)}return this[tr](null!=u?u:l,o,!!n,!0)}[ir](e,t,n,r){const s={...this.getDemandedOptions()};return i=>{if(n)throw new st(n.message);kn(this,Sn,"f").nonOptionCount(i),kn(this,Sn,"f").requiredArguments(i,s);let o=!1;kn(this,vn,"f")&&(o=kn(this,Sn,"f").unknownCommands(i)),kn(this,yn,"f")&&!o?kn(this,Sn,"f").unknownArguments(i,e,t,!!r):kn(this,bn,"f")&&kn(this,Sn,"f").unknownArguments(i,e,{},!1,!1),kn(this,Sn,"f").limitedChoices(i),kn(this,Sn,"f").implications(i),kn(this,Sn,"f").conflicting(i)}}[or](){En(this,tn,!0,"f")}[ar](e){if("string"==typeof e)kn(this,an,"f").key[e]=!0;else for(const t of e)kn(this,an,"f").key[t]=!0}}var lr,ur;(lr=ft,(e=[],t=lr.process.cwd(),n)=>{const r=new cr(e,t,n,lr);return Object.defineProperty(r,"argv",{get:()=>r.parse(),enumerable:!0}),r.help(),r.version(),r})((ur=process.argv,ur.slice(rt()+1))).command("generate [target] [options]","supported targets: 'manifest'",(function(e){return e.positional("target",{type:"string",requiresArg:!0,describe:"generate command target"})}),(function(e){if("manifest"===e.target&&e.configsDir){var t=e.outDir,n=e.outFile;console.log("generating ".concat(n," configsDir=").concat(e.configsDir," --outDir=").concat(t));var r=function(e){var t,n=$e(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1).map((function(e){if(!f().existsSync(e))throw new Error("Configuration not found at ".concat(e));var t=JSON.parse(f().readFileSync(e).toString()),n=l.create(t);return ve(t,n)}));return Ee.apply(void 0,[Ae].concat(function(e){if(Array.isArray(e))return xe(e)}(t=n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return xe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xe(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}(e.configsDir,e.depth);f().existsSync(t)||f().mkdirSync(t),f().writeFileSync(_e().join(t,n),JSON.stringify(r))}console.log("Unsupported target '".concat(e.target,"'"))})).option("configsDir",{alias:"c",default:"appshell_configs",type:"string",description:"Path to configs dir to process"}).option("depth",{alias:"d",default:1,type:"number",description:"Depth to search for app manifests to include"}).option("outDir",{alias:"o",default:".",requiresArg:!0,type:"string",description:"Output location for the appshell manifest"}).option("outFile",{alias:"f",default:"appshell.manifest.json",type:"string",description:"Output filename for the appshell manifest"}).parse()})(),r})()));
9
+ deps: ${n}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const r in e)"__proto__"!==r&&((Array.isArray(e[r])?t:n)[r]=e[r]);return[t,n]}(e);a(e,t),c(e,n)}};function a(e,t=e.schema){const{gen:n,data:s,it:o}=e;if(0===Object.keys(t).length)return;const a=n.let("missing");for(const c in t){const l=t[c];if(0===l.length)continue;const u=(0,i.propertyInData)(n,s,c,o.opts.ownProperties);e.setParams({property:c,depsCount:l.length,deps:l.join(", ")}),o.allErrors?n.if(u,(()=>{for(const t of l)(0,i.checkReportMissingProp)(e,t)})):(n.if(r._`${u} && (${(0,i.checkMissingProp)(e,l,a)})`),(0,i.reportMissingProp)(e,a),n.else())}}function c(e,t=e.schema){const{gen:n,data:r,keyword:o,it:a}=e,c=n.name("valid");for(const l in t)(0,s.alwaysValidSchema)(a,t[l])||(n.if((0,i.propertyInData)(n,r,l,a.opts.ownProperties),(()=>{const t=e.subschema({keyword:o,schemaProp:l},c);e.mergeValidEvaluated(t,c)}),(()=>n.var(c,!0))),e.ok(c))}t.validatePropertyDeps=a,t.validateSchemaDeps=c,t.default=o},3312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s=n(8719),i={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>r.str`must match "${e.ifClause}" schema`,params:({params:e})=>r._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:i}=e;void 0===n.then&&void 0===n.else&&(0,s.checkStrictMode)(i,'"if" without "then" and "else" is ignored');const a=o(i,"then"),c=o(i,"else");if(!a&&!c)return;const l=t.let("valid",!0),u=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(t)}(),e.reset(),a&&c){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(u,f("then",n),f("else",n))}else a?t.if(u,f("then")):t.if((0,r.not)(u),f("else"));function f(n,s){return()=>{const i=e.subschema({keyword:n},u);t.assign(l,u),e.mergeValidEvaluated(i,l),s?t.assign(s,r._`${n}`):e.setParams({ifClause:n})}}e.pass(l,(()=>e.error(!0)))}};function o(e,t){const n=e.schema[t];return void 0!==n&&!(0,s.alwaysValidSchema)(e,n)}t.default=i},7914:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8187),s=n(6685),i=n(3113),o=n(763),a=n(2126),c=n(9114),l=n(9622),u=n(7025),f=n(9867),h=n(2008),d=n(6054),p=n(3324),m=n(5943),g=n(3555),y=n(3312),v=n(3212);t.default=function(e=!1){const t=[d.default,p.default,m.default,g.default,y.default,v.default,l.default,u.default,c.default,f.default,h.default];return e?t.push(s.default,o.default):t.push(r.default,i.default),t.push(a.default),t}},3113:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const r=n(1986),s=n(8719),i=n(4392),o={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return a(e,"additionalItems",t);n.items=!0,(0,s.alwaysValidSchema)(n,t)||e.ok((0,i.validateArray)(e))}};function a(e,t,n=e.schema){const{gen:i,parentSchema:o,data:a,keyword:c,it:l}=e;!function(e){const{opts:r,errSchemaPath:i}=l,o=n.length,a=o===e.minItems&&(o===e.maxItems||!1===e[t]);if(r.strictTuples&&!a){const e=`"${c}" is ${o}-tuple, but minItems or maxItems/${t} are not specified or different at path "${i}"`;(0,s.checkStrictMode)(l,e,r.strictTuples)}}(o),l.opts.unevaluated&&n.length&&!0!==l.items&&(l.items=s.mergeEvaluated.items(i,n.length,l.items));const u=i.name("valid"),f=i.const("len",r._`${a}.length`);n.forEach(((t,n)=>{(0,s.alwaysValidSchema)(l,t)||(i.if(r._`${f} > ${n}`,(()=>e.subschema({keyword:c,schemaProp:n,dataProp:n},u))),e.ok(u))}))}t.validateTuple=a,t.default=o},763:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s=n(8719),i=n(4392),o=n(8187),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:a}=n;r.items=!0,(0,s.alwaysValidSchema)(r,t)||(a?(0,o.validateAdditionalItems)(e,a):e.ok((0,i.validateArray)(e)))}};t.default=a},6054:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8719),s={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:s}=e;if((0,r.alwaysValidSchema)(s,n))return void e.fail();const i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=s},5943:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s=n(8719),i={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>r._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:i,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(o.opts.discriminator&&i.discriminator)return;const a=n,c=t.let("valid",!1),l=t.let("passing",null),u=t.name("_valid");e.setParams({passing:l}),t.block((function(){a.forEach(((n,i)=>{let a;(0,s.alwaysValidSchema)(o,n)?t.var(u,!0):a=e.subschema({keyword:"oneOf",schemaProp:i,compositeRule:!0},u),i>0&&t.if(r._`${u} && ${c}`).assign(c,!1).assign(l,r._`[${l}, ${i}]`).else(),t.if(u,(()=>{t.assign(c,!0),t.assign(l,i),a&&e.mergeEvaluated(a,r.Name)}))}))})),e.result(c,(()=>e.reset()),(()=>e.error(!0)))}};t.default=i},2008:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4392),s=n(1986),i=n(8719),o=n(8719),a={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:a,parentSchema:c,it:l}=e,{opts:u}=l,f=(0,r.allSchemaProperties)(n),h=f.filter((e=>(0,i.alwaysValidSchema)(l,n[e])));if(0===f.length||h.length===f.length&&(!l.opts.unevaluated||!0===l.props))return;const d=u.strictSchema&&!u.allowMatchingProperties&&c.properties,p=t.name("valid");!0===l.props||l.props instanceof s.Name||(l.props=(0,o.evaluatedPropsToName)(t,l.props));const{props:m}=l;function g(e){for(const t in d)new RegExp(e).test(t)&&(0,i.checkStrictMode)(l,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function y(n){t.forIn("key",a,(i=>{t.if(s._`${(0,r.usePattern)(e,n)}.test(${i})`,(()=>{const r=h.includes(n);r||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:i,dataPropType:o.Type.Str},p),l.opts.unevaluated&&!0!==m?t.assign(s._`${m}[${i}]`,!0):r||l.allErrors||t.if((0,s.not)(p),(()=>t.break()))}))}))}!function(){for(const e of f)d&&g(e),l.allErrors?y(e):(t.var(p,!0),y(e),t.if(p))}()}};t.default=a},6685:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3113),s={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,r.validateTuple)(e,"items")};t.default=s},9867:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8313),s=n(4392),i=n(8719),o=n(7025),a={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:a,data:c,it:l}=e;"all"===l.opts.removeAdditional&&void 0===a.additionalProperties&&o.default.code(new r.KeywordCxt(l,o.default,"additionalProperties"));const u=(0,s.allSchemaProperties)(n);for(const e of u)l.definedProperties.add(e);l.opts.unevaluated&&u.length&&!0!==l.props&&(l.props=i.mergeEvaluated.props(t,(0,i.toHash)(u),l.props));const f=u.filter((e=>!(0,i.alwaysValidSchema)(l,n[e])));if(0===f.length)return;const h=t.name("valid");for(const n of f)d(n)?p(n):(t.if((0,s.propertyInData)(t,c,n,l.opts.ownProperties)),p(n),l.allErrors||t.else().var(h,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(h);function d(e){return l.opts.useDefaults&&!l.compositeRule&&void 0!==n[e].default}function p(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},h)}}};t.default=a},9622:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s=n(8719),i={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>r._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:i,it:o}=e;if((0,s.alwaysValidSchema)(o,n))return;const a=t.name("valid");t.forIn("key",i,(n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},a),t.if((0,r.not)(a),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(a)}};t.default=i},3212:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8719),s={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,r.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};t.default=s},4392:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const r=n(1986),s=n(8719),i=n(3806),o=n(8719);function a(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:r._`Object.prototype.hasOwnProperty`})}function c(e,t,n){return r._`${a(e)}.call(${t}, ${n})`}function l(e,t,n,s){const i=r._`${t}${(0,r.getProperty)(n)} === undefined`;return s?(0,r.or)(i,(0,r.not)(c(e,t,n))):i}function u(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:n,data:s,it:i}=e;n.if(l(n,s,t,i.opts.ownProperties),(()=>{e.setParams({missingProperty:r._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:n}},s,i){return(0,r.or)(...s.map((s=>(0,r.and)(l(e,t,s,n.ownProperties),r._`${i} = ${s}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=a,t.isOwnProperty=c,t.propertyInData=function(e,t,n,s){const i=r._`${t}${(0,r.getProperty)(n)} !== undefined`;return s?r._`${i} && ${c(e,t,n)}`:i},t.noPropertyInData=l,t.allSchemaProperties=u,t.schemaProperties=function(e,t){return u(t).filter((n=>!(0,s.alwaysValidSchema)(e,t[n])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:n,topSchemaRef:s,schemaPath:o,errorPath:a},it:c},l,u,f){const h=f?r._`${e}, ${t}, ${s}${o}`:t,d=[[i.default.instancePath,(0,r.strConcat)(i.default.instancePath,a)],[i.default.parentData,c.parentData],[i.default.parentDataProperty,c.parentDataProperty],[i.default.rootData,i.default.rootData]];c.opts.dynamicRef&&d.push([i.default.dynamicAnchors,i.default.dynamicAnchors]);const p=r._`${h}, ${n.object(...d)}`;return u!==r.nil?r._`${l}.call(${u}, ${p})`:r._`${l}(${p})`};const f=r._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},n){const s=t.unicodeRegExp?"u":"",{regExp:i}=t.code,a=i(n,s);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:r._`${"new RegExp"===i.code?f:(0,o.useFunc)(e,i)}(${n}, ${s})`})},t.validateArray=function(e){const{gen:t,data:n,keyword:i,it:o}=e,a=t.name("valid");if(o.allErrors){const e=t.let("valid",!0);return c((()=>t.assign(e,!1))),e}return t.var(a,!0),c((()=>t.break())),a;function c(o){const c=t.const("len",r._`${n}.length`);t.forRange("i",0,c,(n=>{e.subschema({keyword:i,dataProp:n,dataPropType:s.Type.Num},a),t.if((0,r.not)(a),o)}))}},t.validateUnion=function(e){const{gen:t,schema:n,keyword:i,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some((e=>(0,s.alwaysValidSchema)(o,e)))&&!o.opts.unevaluated)return;const a=t.let("valid",!1),c=t.name("_valid");t.block((()=>n.forEach(((n,s)=>{const o=e.subschema({keyword:i,schemaProp:s,compositeRule:!0},c);t.assign(a,r._`${a} || ${c}`),e.mergeValidEvaluated(o,c)||t.if((0,r.not)(a))})))),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}},9731:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=n},9160:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9731),s=n(19),i=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",r.default,s.default];t.default=i},19:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const r=n(8343),s=n(4392),i=n(1986),o=n(3806),a=n(3837),c=n(8719),l={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:s}=e,{baseId:o,schemaEnv:c,validateName:l,opts:h,self:d}=s,{root:p}=c;if(("#"===n||"#/"===n)&&o===p.baseId)return function(){if(c===p)return f(e,l,c,c.$async);const n=t.scopeValue("root",{ref:p});return f(e,i._`${n}.validate`,p,p.$async)}();const m=a.resolveRef.call(d,p,o,n);if(void 0===m)throw new r.default(s.opts.uriResolver,o,n);return m instanceof a.SchemaEnv?function(t){const n=u(e,t);f(e,n,t,t.$async)}(m):function(r){const s=t.scopeValue("schema",!0===h.code.source?{ref:r,code:(0,i.stringify)(r)}:{ref:r}),o=t.name("valid"),a=e.subschema({schema:r,dataTypes:[],schemaPath:i.nil,topSchemaRef:s,errSchemaPath:n},o);e.mergeEvaluated(a),e.ok(o)}(m)}};function u(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):i._`${n.scopeValue("wrapper",{ref:t})}.validate`}function f(e,t,n,r){const{gen:a,it:l}=e,{allErrors:u,schemaEnv:f,opts:h}=l,d=h.passContext?o.default.this:i.nil;function p(e){const t=i._`${e}.errors`;a.assign(o.default.vErrors,i._`${o.default.vErrors} === null ? ${t} : ${o.default.vErrors}.concat(${t})`),a.assign(o.default.errors,i._`${o.default.vErrors}.length`)}function m(e){var t;if(!l.opts.unevaluated)return;const r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==l.props)if(r&&!r.dynamicProps)void 0!==r.props&&(l.props=c.mergeEvaluated.props(a,r.props,l.props));else{const t=a.var("props",i._`${e}.evaluated.props`);l.props=c.mergeEvaluated.props(a,t,l.props,i.Name)}if(!0!==l.items)if(r&&!r.dynamicItems)void 0!==r.items&&(l.items=c.mergeEvaluated.items(a,r.items,l.items));else{const t=a.var("items",i._`${e}.evaluated.items`);l.items=c.mergeEvaluated.items(a,t,l.items,i.Name)}}r?function(){if(!f.$async)throw new Error("async schema referenced by sync schema");const n=a.let("valid");a.try((()=>{a.code(i._`await ${(0,s.callValidateCode)(e,t,d)}`),m(t),u||a.assign(n,!0)}),(e=>{a.if(i._`!(${e} instanceof ${l.ValidationError})`,(()=>a.throw(e))),p(e),u||a.assign(n,!1)})),e.ok(n)}():e.result((0,s.callValidateCode)(e,t,d),(()=>m(t)),(()=>p(t)))}t.getValidate=u,t.callRef=f,t.default=l},7168:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s=n(8690),i=n(3837),o=n(8719),a={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===s.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>r._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:a,parentSchema:c,it:l}=e,{oneOf:u}=c;if(!l.opts.discriminator)throw new Error("discriminator: requires discriminator option");const f=a.propertyName;if("string"!=typeof f)throw new Error("discriminator: requires propertyName");if(a.mapping)throw new Error("discriminator: mapping is not supported");if(!u)throw new Error("discriminator: requires oneOf keyword");const h=t.let("valid",!1),d=t.const("tag",r._`${n}${(0,r.getProperty)(f)}`);function p(n){const s=t.name("valid"),i=e.subschema({keyword:"oneOf",schemaProp:n},s);return e.mergeEvaluated(i,r.Name),s}t.if(r._`typeof ${d} == "string"`,(()=>function(){const n=function(){var e;const t={},n=s(c);let r=!0;for(let t=0;t<u.length;t++){let c=u[t];(null==c?void 0:c.$ref)&&!(0,o.schemaHasRulesButRef)(c,l.self.RULES)&&(c=i.resolveRef.call(l.self,l.schemaEnv.root,l.baseId,null==c?void 0:c.$ref),c instanceof i.SchemaEnv&&(c=c.schema));const h=null===(e=null==c?void 0:c.properties)||void 0===e?void 0:e[f];if("object"!=typeof h)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);r=r&&(n||s(c)),a(h,t)}if(!r)throw new Error(`discriminator: "${f}" must be required`);return t;function s({required:e}){return Array.isArray(e)&&e.includes(f)}function a(e,t){if(e.const)h(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${f}" must have "const" or "enum"`);for(const n of e.enum)h(n,t)}}function h(e,n){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${f}" values must be unique strings`);t[e]=n}}();t.if(!1);for(const e in n)t.elseIf(r._`${d} === ${e}`),t.assign(h,p(n[e]));t.else(),e.error(!1,{discrError:s.DiscrError.Mapping,tag:d,tagName:f}),t.endIf()}()),(()=>e.error(!1,{discrError:s.DiscrError.Tag,tag:d,tagName:f}))),e.ok(h)}};t.default=a},8690:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"},9222:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9160),s=n(1437),i=n(7914),o=n(8284),a=n(4015),c=[r.default,s.default,(0,i.default)(),o.default,a.metadataVocabulary,a.contentVocabulary];t.default=c},3844:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>r.str`must match format "${e}"`,params:({schemaCode:e})=>r._`{format: ${e}}`},code(e,t){const{gen:n,data:s,$data:i,schema:o,schemaCode:a,it:c}=e,{opts:l,errSchemaPath:u,schemaEnv:f,self:h}=c;l.validateFormats&&(i?function(){const i=n.scopeValue("formats",{ref:h.formats,code:l.code.formats}),o=n.const("fDef",r._`${i}[${a}]`),c=n.let("fType"),u=n.let("format");n.if(r._`typeof ${o} == "object" && !(${o} instanceof RegExp)`,(()=>n.assign(c,r._`${o}.type || "string"`).assign(u,r._`${o}.validate`)),(()=>n.assign(c,r._`"string"`).assign(u,o))),e.fail$data((0,r.or)(!1===l.strictSchema?r.nil:r._`${a} && !${u}`,function(){const e=f.$async?r._`(${o}.async ? await ${u}(${s}) : ${u}(${s}))`:r._`${u}(${s})`,n=r._`(typeof ${u} == "function" ? ${e} : ${u}.test(${s}))`;return r._`${u} && ${u} !== true && ${c} === ${t} && !${n}`}()))}():function(){const i=h.formats[o];if(!i)return void function(){if(!1!==l.strictSchema)throw new Error(e());function e(){return`unknown format "${o}" ignored in schema at path "${u}"`}h.logger.warn(e())}();if(!0===i)return;const[a,c,d]=function(e){const t=e instanceof RegExp?(0,r.regexpCode)(e):l.code.formats?r._`${l.code.formats}${(0,r.getProperty)(o)}`:void 0,s=n.scopeValue("formats",{key:o,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,s]:[e.type||"string",e.validate,r._`${s}.validate`]}(i);a===t&&e.pass(function(){if("object"==typeof i&&!(i instanceof RegExp)&&i.async){if(!f.$async)throw new Error("async format in sync schema");return r._`await ${d}(${s})`}return"function"==typeof c?r._`${d}(${s})`:r._`${d}.test(${s})`}())}())}};t.default=s},8284:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=[n(3844).default];t.default=r},4015:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},8249:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s=n(8719),i=n(8410),o={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>r._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:o,schemaCode:a,schema:c}=e;o||c&&"object"==typeof c?e.fail$data(r._`!${(0,s.useFunc)(t,i.default)}(${n}, ${a})`):e.fail(r._`${c} !== ${n}`)}};t.default=o},297:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s=n(8719),i=n(8410),o={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>r._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:o,schema:a,schemaCode:c,it:l}=e;if(!o&&0===a.length)throw new Error("enum must have non-empty array");const u=a.length>=l.opts.loopEnum;let f;const h=()=>null!=f?f:f=(0,s.useFunc)(t,i.default);let d;if(u||o)d=t.let("valid"),e.block$data(d,(function(){t.assign(d,!1),t.forOf("v",c,(e=>t.if(r._`${h()}(${n}, ${e})`,(()=>t.assign(d,!0).break()))))}));else{if(!Array.isArray(a))throw new Error("ajv implementation error");const e=t.const("vSchema",c);d=(0,r.or)(...a.map(((t,s)=>function(e,t){const s=a[t];return"object"==typeof s&&null!==s?r._`${h()}(${n}, ${e}[${t}])`:r._`${n} === ${s}`}(e,s))))}e.pass(d)}};t.default=o},1437:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1754),s=n(801),i=n(6130),o=n(3362),a=n(3952),c=n(6208),l=n(804),u=n(4710),f=n(8249),h=n(297),d=[r.default,s.default,i.default,o.default,a.default,c.default,l.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},f.default,h.default];t.default=d},804:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:s}=e,i="maxItems"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`${n}.length ${i} ${s}`)}};t.default=s},6130:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s=n(8719),i=n(4982),o={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:o,it:a}=e,c="maxLength"===t?r.operators.GT:r.operators.LT,l=!1===a.opts.unicode?r._`${n}.length`:r._`${(0,s.useFunc)(e.gen,i.default)}(${n})`;e.fail$data(r._`${l} ${c} ${o}`)}};t.default=o},1754:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s=r.operators,i={maximum:{okStr:"<=",ok:s.LTE,fail:s.GT},minimum:{okStr:">=",ok:s.GTE,fail:s.LT},exclusiveMaximum:{okStr:"<",ok:s.LT,fail:s.GTE},exclusiveMinimum:{okStr:">",ok:s.GT,fail:s.LTE}},o={message:({keyword:e,schemaCode:t})=>r.str`must be ${i[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${i[e].okStr}, limit: ${t}}`},a={keyword:Object.keys(i),type:"number",schemaType:"number",$data:!0,error:o,code(e){const{keyword:t,data:n,schemaCode:s}=e;e.fail$data(r._`${n} ${i[t].fail} ${s} || isNaN(${n})`)}};t.default=a},3952:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:s}=e,i="maxProperties"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`Object.keys(${n}).length ${i} ${s}`)}};t.default=s},801:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1986),s={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>r.str`must be multiple of ${e}`,params:({schemaCode:e})=>r._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:s,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),c=o?r._`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:r._`${a} !== parseInt(${a})`;e.fail$data(r._`(${s} === 0 || (${a} = ${n}/${s}, ${c}))`)}};t.default=s},3362:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4392),s=n(1986),i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>s.str`must match pattern "${e}"`,params:({schemaCode:e})=>s._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:i,schemaCode:o,it:a}=e,c=a.opts.unicodeRegExp?"u":"",l=n?s._`(new RegExp(${o}, ${c}))`:(0,r.usePattern)(e,i);e.fail$data(s._`!${l}.test(${t})`)}};t.default=i},6208:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4392),s=n(1986),i=n(8719),o={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>s.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>s._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:o,data:a,$data:c,it:l}=e,{opts:u}=l;if(!c&&0===n.length)return;const f=n.length>=u.loopRequired;if(l.allErrors?function(){if(f||c)e.block$data(s.nil,h);else for(const t of n)(0,r.checkReportMissingProp)(e,t)}():function(){const i=t.let("missing");if(f||c){const n=t.let("valid",!0);e.block$data(n,(()=>function(n,i){e.setParams({missingProperty:n}),t.forOf(n,o,(()=>{t.assign(i,(0,r.propertyInData)(t,a,n,u.ownProperties)),t.if((0,s.not)(i),(()=>{e.error(),t.break()}))}),s.nil)}(i,n))),e.ok(n)}else t.if((0,r.checkMissingProp)(e,n,i)),(0,r.reportMissingProp)(e,i),t.else()}(),u.strictRequired){const t=e.parentSchema.properties,{definedProperties:r}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!r.has(e)){const t=`required property "${e}" is not defined at "${l.schemaEnv.baseId+l.errSchemaPath}" (strictRequired)`;(0,i.checkStrictMode)(l,t,l.opts.strictRequired)}}function h(){t.forOf("prop",o,(n=>{e.setParams({missingProperty:n}),t.if((0,r.noPropertyInData)(t,a,n,u.ownProperties),(()=>e.error()))}))}}};t.default=o},4710:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8433),s=n(1986),i=n(8719),o=n(8410),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>s.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>s._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:n,$data:a,schema:c,parentSchema:l,schemaCode:u,it:f}=e;if(!a&&!c)return;const h=t.let("valid"),d=l.items?(0,r.getSchemaTypes)(l.items):[];function p(i,o){const a=t.name("item"),c=(0,r.checkDataTypes)(d,a,f.opts.strictNumbers,r.DataType.Wrong),l=t.const("indices",s._`{}`);t.for(s._`;${i}--;`,(()=>{t.let(a,s._`${n}[${i}]`),t.if(c,s._`continue`),d.length>1&&t.if(s._`typeof ${a} == "string"`,s._`${a} += "_"`),t.if(s._`typeof ${l}[${a}] == "number"`,(()=>{t.assign(o,s._`${l}[${a}]`),e.error(),t.assign(h,!1).break()})).code(s._`${l}[${a}] = ${i}`)}))}function m(r,a){const c=(0,i.useFunc)(t,o.default),l=t.name("outer");t.label(l).for(s._`;${r}--;`,(()=>t.for(s._`${a} = ${r}; ${a}--;`,(()=>t.if(s._`${c}(${n}[${r}], ${n}[${a}])`,(()=>{e.error(),t.assign(h,!1).break(l)}))))))}e.block$data(h,(function(){const r=t.let("i",s._`${n}.length`),i=t.let("j");e.setParams({i:r,j:i}),t.assign(h,!0),t.if(s._`${r} > 1`,(()=>(d.length>0&&!d.some((e=>"object"===e||"array"===e))?p:m)(r,i)))}),s._`${u} === false`),e.ok(h)}};t.default=a},1817:e=>{"use strict";var t=e.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),n(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function n(e,r,s,i,o,a,c,l,u,f){if(i&&"object"==typeof i&&!Array.isArray(i)){for(var h in r(i,o,a,c,l,u,f),i){var d=i[h];if(Array.isArray(d)){if(h in t.arrayKeywords)for(var p=0;p<d.length;p++)n(e,r,s,d[p],o+"/"+h+"/"+p,a,o,h,i,p)}else if(h in t.propsKeywords){if(d&&"object"==typeof d)for(var m in d)n(e,r,s,d[m],o+"/"+h+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),a,o,h,i,m)}else(h in t.keywords||e.allKeys&&!(h in t.skipKeywords))&&n(e,r,s,d,o+"/"+h,a,o,h,i)}s(i,o,a,c,l,u,f)}}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},2854:function(e,t){!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,s=1;s<r;++s)t[s]=t[s].slice(1,-1);return t[r]=t[r].slice(1),t.join("")}return t[0]}function n(e){return"(?:"+e+")"}function r(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function s(e){return e.toUpperCase()}function i(e){var r="[A-Za-z]",s="[0-9]",i=t(s,"[A-Fa-f]"),o=n(n("%[EFef]"+i+"%"+i+i+"%"+i+i)+"|"+n("%[89A-Fa-f]"+i+"%"+i+i)+"|"+n("%"+i+i)),a="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",a),l=e?"[\\uE000-\\uF8FF]":"[]",u=t(r,s,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),f=n(r+t(r,s,"[\\+\\-\\.]")+"*"),h=n(n(o+"|"+t(u,a,"[\\:]"))+"*"),d=(n(n("25[0-5]")+"|"+n("2[0-4]"+s)+"|"+n("1"+s+s)+"|"+n("[1-9]"+s)+"|"+s),n(n("25[0-5]")+"|"+n("2[0-4]"+s)+"|"+n("1"+s+s)+"|"+n("0?[1-9]"+s)+"|0?0?"+s)),p=n(d+"\\."+d+"\\."+d+"\\."+d),m=n(i+"{1,4}"),g=n(n(m+"\\:"+m)+"|"+p),y=n(n(m+"\\:")+"{6}"+g),v=n("\\:\\:"+n(m+"\\:")+"{5}"+g),b=n(n(m)+"?\\:\\:"+n(m+"\\:")+"{4}"+g),_=n(n(n(m+"\\:")+"{0,1}"+m)+"?\\:\\:"+n(m+"\\:")+"{3}"+g),w=n(n(n(m+"\\:")+"{0,2}"+m)+"?\\:\\:"+n(m+"\\:")+"{2}"+g),$=n(n(n(m+"\\:")+"{0,3}"+m)+"?\\:\\:"+m+"\\:"+g),S=n(n(n(m+"\\:")+"{0,4}"+m)+"?\\:\\:"+g),E=n(n(n(m+"\\:")+"{0,5}"+m)+"?\\:\\:"+m),k=n(n(n(m+"\\:")+"{0,6}"+m)+"?\\:\\:"),O=n([y,v,b,_,w,$,S,E,k].join("|")),P=n(n(u+"|"+o)+"+"),j=(n(O+"\\%25"+P),n(O+n("\\%25|\\%(?!"+i+"{2})")+P)),A=n("[vV]"+i+"+\\."+t(u,a,"[\\:]")+"+"),x=n("\\["+n(j+"|"+O+"|"+A)+"\\]"),N=n(n(o+"|"+t(u,a))+"*"),C=n(x+"|"+p+"(?!"+N+")|"+N),M=n(s+"*"),I=n(n(h+"@")+"?"+C+n("\\:"+M)+"?"),T=n(o+"|"+t(u,a,"[\\:\\@]")),D=n(T+"*"),L=n(T+"+"),R=n(n(o+"|"+t(u,a,"[\\@]"))+"+"),F=n(n("\\/"+D)+"*"),q=n("\\/"+n(L+F)+"?"),U=n(R+F),z=n(L+F),B="(?!"+T+")",V=(n(F+"|"+q+"|"+U+"|"+z+"|"+B),n(n(T+"|"+t("[\\/\\?]",l))+"*")),K=n(n(T+"|[\\/\\?]")+"*"),W=n(n("\\/\\/"+I+F)+"|"+q+"|"+z+"|"+B),H=n(f+"\\:"+W+n("\\?"+V)+"?"+n("\\#"+K)+"?"),G=n(n("\\/\\/"+I+F)+"|"+q+"|"+U+"|"+B),J=n(G+n("\\?"+V)+"?"+n("\\#"+K)+"?");return n(H+"|"+J),n(f+"\\:"+W+n("\\?"+V)+"?"),n(n("\\/\\/("+n("("+h+")@")+"?("+C+")"+n("\\:("+M+")")+"?)")+"?("+F+"|"+q+"|"+z+"|"+B+")"),n("\\?("+V+")"),n("\\#("+K+")"),n(n("\\/\\/("+n("("+h+")@")+"?("+C+")"+n("\\:("+M+")")+"?)")+"?("+F+"|"+q+"|"+U+"|"+B+")"),n("\\?("+V+")"),n("\\#("+K+")"),n(n("\\/\\/("+n("("+h+")@")+"?("+C+")"+n("\\:("+M+")")+"?)")+"?("+F+"|"+q+"|"+z+"|"+B+")"),n("\\?("+V+")"),n("\\#("+K+")"),n("("+h+")@"),n("\\:("+M+")"),{NOT_SCHEME:new RegExp(t("[^]",r,s,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",u,a),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",u,a),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",u,a),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",u,a),"g"),NOT_QUERY:new RegExp(t("[^\\%]",u,a,"[\\:\\@\\/\\?]",l),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",u,a,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",u,a),"g"),UNRESERVED:new RegExp(u,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",u,c),"g"),PCT_ENCODED:new RegExp(o,"g"),IPV4ADDRESS:new RegExp("^("+p+")$"),IPV6ADDRESS:new RegExp("^\\[?("+O+")"+n(n("\\%25|\\%(?!"+i+"{2})")+"("+P+")")+"?\\]?$")}}var o=i(!1),a=i(!0),c=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,s=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){s=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(s)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=2147483647,u=36,f=/^xn--/,h=/[^\0-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=Math.floor,g=String.fromCharCode;function y(e){throw new RangeError(p[e])}function v(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+function(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}((e=e.replace(d,".")).split("."),t).join(".")}function b(e){for(var t=[],n=0,r=e.length;n<r;){var s=e.charCodeAt(n++);if(s>=55296&&s<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&s)<<10)+(1023&i)+65536):(t.push(s),n--)}else t.push(s)}return t}var _=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},w=function(e,t,n){var r=0;for(e=n?m(e/700):e>>1,e+=m(e/t);e>455;r+=u)e=m(e/35);return m(r+36*e/(e+38))},$=function(e){var t,n=[],r=e.length,s=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(var c=0;c<a;++c)e.charCodeAt(c)>=128&&y("not-basic"),n.push(e.charCodeAt(c));for(var f=a>0?a+1:0;f<r;){for(var h=s,d=1,p=u;;p+=u){f>=r&&y("invalid-input");var g=(t=e.charCodeAt(f++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:u;(g>=u||g>m((l-s)/d))&&y("overflow"),s+=g*d;var v=p<=o?1:p>=o+26?26:p-o;if(g<v)break;var b=u-v;d>m(l/b)&&y("overflow"),d*=b}var _=n.length+1;o=w(s-h,_,0==h),m(s/_)>l-i&&y("overflow"),i+=m(s/_),s%=_,n.splice(s++,0,i)}return String.fromCodePoint.apply(String,n)},S=function(e){var t=[],n=(e=b(e)).length,r=128,s=0,i=72,o=!0,a=!1,c=void 0;try{for(var f,h=e[Symbol.iterator]();!(o=(f=h.next()).done);o=!0){var d=f.value;d<128&&t.push(g(d))}}catch(e){a=!0,c=e}finally{try{!o&&h.return&&h.return()}finally{if(a)throw c}}var p=t.length,v=p;for(p&&t.push("-");v<n;){var $=l,S=!0,E=!1,k=void 0;try{for(var O,P=e[Symbol.iterator]();!(S=(O=P.next()).done);S=!0){var j=O.value;j>=r&&j<$&&($=j)}}catch(e){E=!0,k=e}finally{try{!S&&P.return&&P.return()}finally{if(E)throw k}}var A=v+1;$-r>m((l-s)/A)&&y("overflow"),s+=($-r)*A,r=$;var x=!0,N=!1,C=void 0;try{for(var M,I=e[Symbol.iterator]();!(x=(M=I.next()).done);x=!0){var T=M.value;if(T<r&&++s>l&&y("overflow"),T==r){for(var D=s,L=u;;L+=u){var R=L<=i?1:L>=i+26?26:L-i;if(D<R)break;var F=D-R,q=u-R;t.push(g(_(R+F%q,0))),D=m(F/q)}t.push(g(_(D,0))),i=w(s,A,v==p),s=0,++v}}}catch(e){N=!0,C=e}finally{try{!x&&I.return&&I.return()}finally{if(N)throw C}}++s,++r}return t.join("")},E={version:"2.1.0",ucs2:{decode:b,encode:function(e){return String.fromCodePoint.apply(String,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e))}},decode:$,encode:S,toASCII:function(e){return v(e,(function(e){return h.test(e)?"xn--"+S(e):e}))},toUnicode:function(e){return v(e,(function(e){return f.test(e)?$(e.slice(4).toLowerCase()):e}))}},k={};function O(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function P(e){for(var t="",n=0,r=e.length;n<r;){var s=parseInt(e.substr(n+1,2),16);if(s<128)t+=String.fromCharCode(s),n+=3;else if(s>=194&&s<224){if(r-n>=6){var i=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((31&s)<<6|63&i)}else t+=e.substr(n,6);n+=6}else if(s>=224){if(r-n>=9){var o=parseInt(e.substr(n+4,2),16),a=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((15&s)<<12|(63&o)<<6|63&a)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function j(e,t){function n(e){var n=P(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,O).replace(t.PCT_ENCODED,s)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,O).replace(t.PCT_ENCODED,s)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,O).replace(t.PCT_ENCODED,s)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,O).replace(t.PCT_ENCODED,s)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,O).replace(t.PCT_ENCODED,s)),e}function A(e){return e.replace(/^0*(.*)/,"$1")||"0"}function x(e,t){var n=e.match(t.IPV4ADDRESS)||[],r=c(n,2)[1];return r?r.split(".").map(A).join("."):e}function N(e,t){var n=e.match(t.IPV6ADDRESS)||[],r=c(n,3),s=r[1],i=r[2];if(s){for(var o=s.toLowerCase().split("::").reverse(),a=c(o,2),l=a[0],u=a[1],f=u?u.split(":").map(A):[],h=l.split(":").map(A),d=t.IPV4ADDRESS.test(h[h.length-1]),p=d?7:8,m=h.length-p,g=Array(p),y=0;y<p;++y)g[y]=f[y]||h[m+y]||"";d&&(g[p-1]=x(g[p-1],t));var v=g.reduce((function(e,t,n){if(!t||"0"===t){var r=e[e.length-1];r&&r.index+r.length===n?r.length++:e.push({index:n,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(v&&v.length>1){var _=g.slice(0,v.index),w=g.slice(v.index+v.length);b=_.join(":")+"::"+w.join(":")}else b=g.join(":");return i&&(b+="%"+i),b}return e}var C=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,M=void 0==="".match(/(){0}/)[1];function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=!1!==t.iri?a:o;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var s=e.match(C);if(s){M?(n.scheme=s[1],n.userinfo=s[3],n.host=s[4],n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=s[7],n.fragment=s[8],isNaN(n.port)&&(n.port=s[5])):(n.scheme=s[1]||void 0,n.userinfo=-1!==e.indexOf("@")?s[3]:void 0,n.host=-1!==e.indexOf("//")?s[4]:void 0,n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=-1!==e.indexOf("?")?s[7]:void 0,n.fragment=-1!==e.indexOf("#")?s[8]:void 0,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?s[4]:void 0)),n.host&&(n.host=N(x(n.host,r),r)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");var i=k[(t.scheme||n.scheme||"").toLowerCase()];if(t.unicodeSupport||i&&i.unicodeSupport)j(n,r);else{if(n.host&&(t.domainHost||i&&i.domainHost))try{n.host=E.toASCII(n.host.replace(r.PCT_ENCODED,P).toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+e}j(n,o)}i&&i.parse&&i.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}var T=/^\.\.?\//,D=/^\/\.(\/|$)/,L=/^\/\.\.(\/|$)/,R=/^\/?(?:.|\n)*?(?=\/|$)/;function F(e){for(var t=[];e.length;)if(e.match(T))e=e.replace(T,"");else if(e.match(D))e=e.replace(D,"/");else if(e.match(L))e=e.replace(L,"/"),t.pop();else if("."===e||".."===e)e="";else{var n=e.match(R);if(!n)throw new Error("Unexpected dot segment condition");var r=n[0];e=e.slice(r.length),t.push(r)}return t.join("")}function q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.iri?a:o,r=[],s=k[(t.scheme||e.scheme||"").toLowerCase()];if(s&&s.serialize&&s.serialize(e,t),e.host)if(n.IPV6ADDRESS.test(e.host));else if(t.domainHost||s&&s.domainHost)try{e.host=t.iri?E.toUnicode(e.host):E.toASCII(e.host.replace(n.PCT_ENCODED,P).toLowerCase())}catch(n){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+n}j(e,n),"suffix"!==t.reference&&e.scheme&&(r.push(e.scheme),r.push(":"));var i=function(e,t){var n=!1!==t.iri?a:o,r=[];return void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(N(x(String(e.host),n),n).replace(n.IPV6ADDRESS,(function(e,t,n){return"["+t+(n?"%25"+n:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}(e,t);if(void 0!==i&&("suffix"!==t.reference&&r.push("//"),r.push(i),e.path&&"/"!==e.path.charAt(0)&&r.push("/")),void 0!==e.path){var c=e.path;t.absolutePath||s&&s.absolutePath||(c=F(c)),void 0===i&&(c=c.replace(/^\/\//,"/%2F")),r.push(c)}return void 0!==e.query&&(r.push("?"),r.push(e.query)),void 0!==e.fragment&&(r.push("#"),r.push(e.fragment)),r.join("")}function U(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};return arguments[3]||(e=I(q(e,n),n),t=I(q(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(r.scheme=t.scheme,r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=F(t.path||""),r.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=F(t.path||""),r.query=t.query):(t.path?("/"===t.path.charAt(0)?r.path=F(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?r.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:r.path=t.path:r.path="/"+t.path,r.path=F(r.path)),r.query=t.query):(r.path=e.path,void 0!==t.query?r.query=t.query:r.query=e.query),r.userinfo=e.userinfo,r.host=e.host,r.port=e.port),r.scheme=e.scheme),r.fragment=t.fragment,r}function z(e,t){return e&&e.toString().replace(t&&t.iri?a.PCT_ENCODED:o.PCT_ENCODED,P)}var B={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var n="https"===String(e.scheme).toLowerCase();return e.port!==(n?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},V={scheme:"https",domainHost:B.domainHost,parse:B.parse,serialize:B.serialize};function K(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var W={scheme:"ws",domainHost:!0,parse:function(e,t){var n=e;return n.secure=K(n),n.resourceName=(n.path||"/")+(n.query?"?"+n.query:""),n.path=void 0,n.query=void 0,n},serialize:function(e,t){if(e.port!==(K(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var n=e.resourceName.split("?"),r=c(n,2),s=r[0],i=r[1];e.path=s&&"/"!==s?s:void 0,e.query=i,e.resourceName=void 0}return e.fragment=void 0,e}},H={scheme:"wss",domainHost:W.domainHost,parse:W.parse,serialize:W.serialize},G={},J="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Y="[0-9A-Fa-f]",Q=n(n("%[EFef]"+Y+"%"+Y+Y+"%"+Y+Y)+"|"+n("%[89A-Fa-f]"+Y+"%"+Y+Y)+"|"+n("%"+Y+Y)),Z=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),X=new RegExp(J,"g"),ee=new RegExp(Q,"g"),te=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',Z),"g"),ne=new RegExp(t("[^]",J,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),re=ne;function se(e){var t=P(e);return t.match(X)?t:e}var ie={scheme:"mailto",parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(","):[];if(n.path=void 0,n.query){for(var s=!1,i={},o=n.query.split("&"),a=0,c=o.length;a<c;++a){var l=o[a].split("=");switch(l[0]){case"to":for(var u=l[1].split(","),f=0,h=u.length;f<h;++f)r.push(u[f]);break;case"subject":n.subject=z(l[1],t);break;case"body":n.body=z(l[1],t);break;default:s=!0,i[z(l[0],t)]=z(l[1],t)}}s&&(n.headers=i)}n.query=void 0;for(var d=0,p=r.length;d<p;++d){var m=r[d].split("@");if(m[0]=z(m[0]),t.unicodeSupport)m[1]=z(m[1],t).toLowerCase();else try{m[1]=E.toASCII(z(m[1],t).toLowerCase())}catch(e){n.error=n.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}r[d]=m.join("@")}return n},serialize:function(e,t){var n,r=e,i=null!=(n=e.to)?n instanceof Array?n:"number"!=typeof n.length||n.split||n.setInterval||n.call?[n]:Array.prototype.slice.call(n):[];if(i){for(var o=0,a=i.length;o<a;++o){var c=String(i[o]),l=c.lastIndexOf("@"),u=c.slice(0,l).replace(ee,se).replace(ee,s).replace(te,O),f=c.slice(l+1);try{f=t.iri?E.toUnicode(f):E.toASCII(z(f,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}i[o]=u+"@"+f}r.path=i.join(",")}var h=e.headers=e.headers||{};e.subject&&(h.subject=e.subject),e.body&&(h.body=e.body);var d=[];for(var p in h)h[p]!==G[p]&&d.push(p.replace(ee,se).replace(ee,s).replace(ne,O)+"="+h[p].replace(ee,se).replace(ee,s).replace(re,O));return d.length&&(r.query=d.join("&")),r}},oe=/^([^\:]+)\:(.*)/,ae={scheme:"urn",parse:function(e,t){var n=e.path&&e.path.match(oe),r=e;if(n){var s=t.scheme||r.scheme||"urn",i=n[1].toLowerCase(),o=n[2],a=s+":"+(t.nid||i),c=k[a];r.nid=i,r.nss=o,r.path=void 0,c&&(r=c.parse(r,t))}else r.error=r.error||"URN can not be parsed.";return r},serialize:function(e,t){var n=t.scheme||e.scheme||"urn",r=e.nid,s=n+":"+(t.nid||r),i=k[s];i&&(e=i.serialize(e,t));var o=e,a=e.nss;return o.path=(r||t.nid)+":"+a,o}},ce=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,le={scheme:"urn:uuid",parse:function(e,t){var n=e;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&n.uuid.match(ce)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e,t){var n=e;return n.nss=(e.uuid||"").toLowerCase(),n}};k[B.scheme]=B,k[V.scheme]=V,k[W.scheme]=W,k[H.scheme]=H,k[ie.scheme]=ie,k[ae.scheme]=ae,k[le.scheme]=le,e.SCHEMES=k,e.pctEncChar=O,e.pctDecChars=P,e.parse=I,e.removeDotSegments=F,e.serialize=q,e.resolveComponents=U,e.resolve=function(e,t,n){var r=function(e,t){var n=e;if(t)for(var r in t)n[r]=t[r];return n}({scheme:"null"},n);return q(U(I(e,r),I(t,r),r,!0),r)},e.normalize=function(e,t){return"string"==typeof e?e=q(I(e,t),t):"object"===r(e)&&(e=I(q(e,t),t)),e},e.equal=function(e,t,n){return"string"==typeof e?e=q(I(e,n),n):"object"===r(e)&&(e=q(e,n)),"string"==typeof t?t=q(I(t,n),n):"object"===r(t)&&(t=q(t,n)),e===t},e.escapeComponent=function(e,t){return e&&e.toString().replace(t&&t.iri?a.ESCAPE:o.ESCAPE,O)},e.unescapeComponent=z,Object.defineProperty(e,"__esModule",{value:!0})}(t)},7889:(e,t,n)=>{"use strict";var r=n(7384),s=n(5738),i=n(1373),o=n(8864),a=n(7058);t.composeCollection=function(e,t,n,c,l){let u;switch(n.type){case"block-map":u=i.resolveBlockMap(e,t,n,l);break;case"block-seq":u=o.resolveBlockSeq(e,t,n,l);break;case"flow-collection":u=a.resolveFlowCollection(e,t,n,l)}if(!c)return u;const f=t.directives.tagName(c.source,(e=>l(c,"TAG_RESOLVE_FAILED",e)));if(!f)return u;const h=u.constructor;if("!"===f||f===h.tagName)return u.tag=h.tagName,u;const d=r.isMap(u)?"map":"seq";let p=t.schema.tags.find((e=>e.collection===d&&e.tag===f));if(!p){const e=t.schema.knownTags[f];if(!e||e.collection!==d)return l(c,"TAG_RESOLVE_FAILED",`Unresolved tag: ${f}`,!0),u.tag=f,u;t.schema.tags.push(Object.assign({},e,{default:!1})),p=e}const m=p.resolve(u,(e=>l(c,"TAG_RESOLVE_FAILED",e)),t.options),g=r.isNode(m)?m:new s.Scalar(m);return g.range=u.range,g.tag=f,p?.format&&(g.format=p.format),g}},104:(e,t,n)=>{"use strict";var r=n(505),s=n(3223),i=n(9516),o=n(814);t.composeDoc=function(e,t,{offset:n,start:a,value:c,end:l},u){const f=Object.assign({_directives:t},e),h=new r.Document(void 0,f),d={atRoot:!0,directives:h.directives,options:h.options,schema:h.schema},p=o.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?s.composeNode(d,c,p,u):s.composeEmptyNode(d,p.end,a,null,p,u);const m=h.contents.range[2],g=i.resolveEnd(l,m,!1,u);return g.comment&&(h.comment=g.comment),h.range=[n,m,g.offset],h}},3223:(e,t,n)=>{"use strict";var r=n(366),s=n(7889),i=n(6491),o=n(9516),a=n(3576);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:s},i){const a=new r.Alias(n.substring(1));""===a.source&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),a.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const c=t+n.length,l=o.resolveEnd(s,c,e.strict,i);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=i.composeScalar(e,t,d,a),h&&(p.anchor=h.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":p=s.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,r,{spaceBefore:s,comment:o,anchor:c,tag:l,end:u},f){const h={type:"scalar",offset:a.emptyScalarPosition(t,n,r),indent:-1,source:""},d=i.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")),s&&(d.spaceBefore=!0),o&&(d.comment=o,d.range[2]=u),d}t.composeEmptyNode=u,t.composeNode=l},6491:(e,t,n)=>{"use strict";var r=n(7384),s=n(5738),i=n(1070),o=n(5147);t.composeScalar=function(e,t,n,a){const{value:c,type:l,comment:u,range:f}="block-scalar"===t.type?i.resolveBlockScalar(t,e.options.strict,a):o.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,s,i){if("!"===n)return e[r.SCALAR];const o=[];for(const t of e.tags)if(!t.collection&&t.tag===n){if(!t.default||!t.test)return t;o.push(t)}for(const e of o)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):(i(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),e[r.SCALAR])}(e.schema,c,h,n,a):"scalar"===t.type?function({directives:e,schema:t},n,s,i){const o=t.tags.find((e=>e.default&&e.test?.test(n)))||t[r.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(n)))??t[r.SCALAR];o.tag!==a.tag&&i(s,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${e.tagString(o.tag)} or ${e.tagString(a.tag)}`,!0)}return o}(e,c,t,a):e.schema[r.SCALAR];let p;try{const i=d.resolve(c,(e=>a(n??t,"TAG_RESOLVE_FAILED",e)),e.options);p=r.isScalar(i)?i:new s.Scalar(i)}catch(e){const r=e instanceof Error?e.message:String(e);a(n??t,"TAG_RESOLVE_FAILED",r),p=new s.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}},1294:(e,t,n)=>{"use strict";var r=n(3848),s=n(505),i=n(2981),o=n(7384),a=n(104),c=n(9516);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,r=!1;for(let s=0;s<e.length;++s){const i=e[s];switch(i[0]){case"#":t+=(""===t?"":r?"\n\n":"\n")+(i.substring(1)||" "),n=!0,r=!1;break;case"%":"#"!==e[s+1]?.[0]&&(s+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}t.Composer=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{const s=l(e);r?this.warnings.push(new i.YAMLWarning(s,t,n)):this.errors.push(new i.YAMLParseError(s,t,n))},this.directives=new r.Directives({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:n,afterEmptyLine:r}=u(this.prelude);if(n){const s=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!s)e.commentBefore=n;else if(o.isCollection(s)&&!s.flow&&s.items.length>0){let e=s.items[0];o.isPair(e)&&(e=e.key);const t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{const e=s.commentBefore;s.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,r)=>{const s=l(e);s[0]+=t,this.onError(s,"BAD_DIRECTIVE",n,r)})),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 i.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 i.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 i.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 s.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}}}},1373:(e,t,n)=>{"use strict";var r=n(7356),s=n(8228),i=n(814),o=n(7627),a=n(7049),c=n(434);const l="All mapping items must start at the same column";t.resolveBlockMap=function({composeNode:e,composeEmptyNode:t},n,u,f){const h=new s.YAMLMap(n.schema);n.atRoot&&(n.atRoot=!1);let d=u.offset,p=null;for(const s of u.items){const{start:m,key:g,sep:y,value:v}=s,b=i.resolveProps(m,{indicator:"explicit-key-ind",next:g??y?.[0],offset:d,onError:f,startOnNewline:!0}),_=!b.found;if(_){if(g&&("block-seq"===g.type?f(d,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in g&&g.indent!==u.indent&&f(d,"BAD_INDENT",l)),!b.anchor&&!b.tag&&!y){p=b.end,b.comment&&(h.comment?h.comment+="\n"+b.comment:h.comment=b.comment);continue}(b.hasNewlineAfterProp||o.containsNewline(g))&&f(g??m[m.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else b.found?.indent!==u.indent&&f(d,"BAD_INDENT",l);const w=b.end,$=g?e(n,g,b,f):t(n,w,m,null,b,f);n.schema.compat&&a.flowIndentCheck(u.indent,g,f),c.mapIncludes(n,h.items,$)&&f(w,"DUPLICATE_KEY","Map keys must be unique");const S=i.resolveProps(y??[],{indicator:"map-value-ind",next:v,offset:$.range[2],onError:f,startOnNewline:!g||"block-scalar"===g.type});if(d=S.end,S.found){_&&("block-map"!==v?.type||S.hasNewline||f(d,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&b.start<S.found.offset-1024&&f($.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const i=v?e(n,v,S,f):t(n,d,y,null,S,f);n.schema.compat&&a.flowIndentCheck(u.indent,v,f),d=i.range[2];const o=new r.Pair($,i);n.options.keepSourceTokens&&(o.srcToken=s),h.items.push(o)}else{_&&f($.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),S.comment&&($.comment?$.comment+="\n"+S.comment:$.comment=S.comment);const e=new r.Pair($);n.options.keepSourceTokens&&(e.srcToken=s),h.items.push(e)}}return p&&p<d&&f(p,"IMPOSSIBLE","Map comment with trailing content"),h.range=[u.offset,d,p??d],h}},1070:(e,t,n)=>{"use strict";var r=n(5738);t.resolveBlockScalar=function(e,t,n){const s=e.offset,i=function({offset:e,props:t},n,r){if("block-scalar-header"!==t[0].type)return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:s}=t[0],i=s[0];let o=0,a="",c=-1;for(let t=1;t<s.length;++t){const n=s[t];if(a||"-"!==n&&"+"!==n){const r=Number(n);!o&&r?o=r:-1===c&&(c=e+t)}else a=n}-1!==c&&r(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${s}`);let l=!1,u="",f=s.length;for(let e=1;e<t.length;++e){const s=t[e];switch(s.type){case"space":l=!0;case"newline":f+=s.source.length;break;case"comment":n&&!l&&r(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=s.source.length,u=s.source.substring(1);break;case"error":r(s,"UNEXPECTED_TOKEN",s.message),f+=s.source.length;break;default:{r(s,"UNEXPECTED_TOKEN",`Unexpected token in block scalar header: ${s.type}`);const e=s.source;e&&"string"==typeof e&&(f+=e.length)}}}return{mode:i,indent:o,chomp:a,comment:u,length:f}}(e,t,n);if(!i)return{value:"",type:null,comment:"",range:[s,s,s]};const o=">"===i.mode?r.Scalar.BLOCK_FOLDED:r.Scalar.BLOCK_LITERAL,a=e.source?function(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),s=[r?.[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let e=1;e<t.length;e+=2)s.push([t[e],t[e+1]]);return s}(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="+"===i.chomp&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let n=s+i.length;return e.source&&(n+=e.source.length),{value:t,type:o,comment:i.comment,range:[s,n,n]}}let l=e.indent+i.indent,u=e.offset+i.length,f=0;for(let e=0;e<c;++e){const[t,r]=a[e];if(""!==r&&"\r"!==r){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===i.indent&&(l=t.length),f=e;break}0===i.indent&&t.length>l&&(l=t.length),u+=t.length+r.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,s]=a[e];u+=t.length+s.length+1;const c="\r"===s[s.length-1];if(c&&(s=s.slice(0,-1)),s&&t.length<l){const e="Block scalar lines must not be less indented than their "+(i.indent?"explicit indentation indicator":"first line");n(u-s.length-(c?2:1),"BAD_INDENT",e),t=""}o===r.Scalar.BLOCK_LITERAL?(h+=d+t.slice(l)+s,d="\n"):t.length>l||"\t"===s[0]?(" "===d?d="\n":p||"\n"!==d||(d="\n\n"),h+=d+t.slice(l)+s,d="\n",p=!0):""===s?"\n"===d?h+="\n":d="\n":(h+=d+s,d=" ",p=!1)}switch(i.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=s+i.length+e.source.length;return{value:h,type:o,comment:i.comment,range:[s,m,m]}}},8864:(e,t,n)=>{"use strict";var r=n(9248),s=n(814),i=n(7049);t.resolveBlockSeq=function({composeNode:e,composeEmptyNode:t},n,o,a){const c=new r.YAMLSeq(n.schema);n.atRoot&&(n.atRoot=!1);let l=o.offset,u=null;for(const{start:r,value:f}of o.items){const h=s.resolveProps(r,{indicator:"seq-item-ind",next:f,offset:l,onError:a,startOnNewline:!0});if(!h.found){if(!(h.anchor||h.tag||f)){u=h.end,h.comment&&(c.comment=h.comment);continue}f&&"block-seq"===f.type?a(h.end,"BAD_INDENT","All sequence items must start at the same column"):a(l,"MISSING_CHAR","Sequence item without - indicator")}const d=f?e(n,f,h,a):t(n,h.end,r,null,h,a);n.schema.compat&&i.flowIndentCheck(o.indent,f,a),l=d.range[2],c.items.push(d)}return c.range=[o.offset,l,u??l],c}},9516:(e,t)=>{"use strict";t.resolveEnd=function(e,t,n,r){let s="";if(e){let i=!1,o="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":i=!0;break;case"comment":{n&&!i&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";s?s+=o+t:s=t,o="";break}case"newline":s&&(o+=e),i=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:s,offset:t}}},7058:(e,t,n)=>{"use strict";var r=n(7384),s=n(7356),i=n(8228),o=n(9248),a=n(9516),c=n(814),l=n(7627),u=n(434);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){const m="{"===d.start.source,g=m?"flow map":"flow sequence",y=m?new i.YAMLMap(n.schema):new o.YAMLSeq(n.schema);y.flow=!0;const v=n.atRoot;v&&(n.atRoot=!1);let b=d.offset+d.start.source.length;for(let o=0;o<d.items.length;++o){const a=d.items[o],{start:v,key:_,sep:w,value:$}=a,S=c.resolveProps(v,{flow:g,indicator:"explicit-key-ind",next:_??w?.[0],offset:b,onError:p,startOnNewline:!1});if(!S.found){if(!(S.anchor||S.tag||w||$)){0===o&&S.comma?p(S.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${g}`):o<d.items.length-1&&p(S.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${g}`),S.comment&&(y.comment?y.comment+="\n"+S.comment:y.comment=S.comment),b=S.end;continue}!m&&n.options.strict&&l.containsNewline(_)&&p(_,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===o)S.comma&&p(S.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${g}`);else if(S.comma||p(S.start,"MISSING_CHAR",`Missing , between ${g} items`),S.comment){let e="";e:for(const t of v)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break e;default:break e}if(e){let t=y.items[y.items.length-1];r.isPair(t)&&(t=t.value??t.key),t.comment?t.comment+="\n"+e:t.comment=e,S.comment=S.comment.substring(e.length+1)}}if(m||w||S.found){const r=S.end,o=_?e(n,_,S,p):t(n,r,v,null,S,p);h(_)&&p(o.range,"BLOCK_IN_FLOW",f);const l=c.resolveProps(w??[],{flow:g,indicator:"map-value-ind",next:$,offset:o.range[2],onError:p,startOnNewline:!1});if(l.found){if(!m&&!S.found&&n.options.strict){if(w)for(const e of w){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}}S.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 $&&("source"in $&&$.source&&":"===$.source[0]?p($,"MISSING_CHAR",`Missing space after : in ${g}`):p(l.start,"MISSING_CHAR",`Missing , or : between ${g} items`));const d=$?e(n,$,l,p):l.found?t(n,l.end,w,null,l,p):null;d?h($)&&p(d.range,"BLOCK_IN_FLOW",f):l.comment&&(o.comment?o.comment+="\n"+l.comment:o.comment=l.comment);const E=new s.Pair(o,d);if(n.options.keepSourceTokens&&(E.srcToken=a),m){const e=y;u.mapIncludes(n,e.items,o)&&p(r,"DUPLICATE_KEY","Map keys must be unique"),e.items.push(E)}else{const e=new i.YAMLMap(n.schema);e.flow=!0,e.items.push(E),y.items.push(e)}b=d?d.range[2]:l.end}else{const r=$?e(n,$,S,p):t(n,S.end,w,null,S,p);y.items.push(r),b=r.range[2],h($)&&p(r.range,"BLOCK_IN_FLOW",f)}}const _=m?"}":"]",[w,...$]=d.end;let S=b;if(w&&w.source===_)S=w.offset+w.source.length;else{const e=g[0].toUpperCase()+g.substring(1);p(b,v?"MISSING_CHAR":"BAD_INDENT",v?`${e} must end with a ${_}`:`${e} in block collection must be sufficiently indented and end with a ${_}`),w&&1!==w.source.length&&$.unshift(w)}if($.length>0){const e=a.resolveEnd($,S,n.options.strict,p);e.comment&&(y.comment?y.comment+="\n"+e.comment:y.comment=e.comment),y.range=[d.offset,S,e.offset]}else y.range=[d.offset,S,S];return y}},5147:(e,t,n)=>{"use strict";var r=n(5738),s=n(9516);function i(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 r=t.exec(e);if(!r)return e;let s=r[1],i=" ",o=t.lastIndex;for(n.lastIndex=o;r=n.exec(e);)""===r[1]?"\n"===i?s+=i:i="\n":(s+=i+r[1],i=" "),o=n.lastIndex;const a=/[ \t]*(.*)/sy;return a.lastIndex=o,r=a.exec(e),s+i+(r?.[1]??"")}function o(e,t){let n="",r=e[t+1];for(;!(" "!==r&&"\t"!==r&&"\n"!==r&&"\r"!==r||"\r"===r&&"\n"!==e[t+2]);)"\n"===r&&(n+="\n"),r=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,r){const s=e.substr(t,n),i=s.length===n&&/^[0-9a-fA-F]+$/.test(s)?parseInt(s,16):NaN;if(isNaN(i)){const s=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`),s}return String.fromCodePoint(i)}t.resolveFlowScalar=function(e,t,n){const{offset:l,type:u,source:f,end:h}=e;let d,p;const m=(e,t,r)=>n(l+e,t,r);switch(u){case"scalar":d=r.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}`),i(e)}(f,m);break;case"single-quoted-scalar":d=r.Scalar.QUOTE_SINGLE,p=function(e,t){return"'"===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR","Missing closing 'quote"),i(e.slice(1,-1)).replace(/''/g,"'")}(f,m);break;case"double-quoted-scalar":d=r.Scalar.QUOTE_DOUBLE,p=function(e,t){let n="";for(let r=1;r<e.length-1;++r){const s=e[r];if("\r"!==s||"\n"!==e[r+1])if("\n"===s){const{fold:t,offset:s}=o(e,r);n+=t,r=s}else if("\\"===s){let s=e[++r];const i=a[s];if(i)n+=i;else if("\n"===s)for(s=e[r+1];" "===s||"\t"===s;)s=e[1+ ++r];else if("\r"===s&&"\n"===e[r+1])for(s=e[1+ ++r];" "===s||"\t"===s;)s=e[1+ ++r];else if("x"===s||"u"===s||"U"===s){const i={x:2,u:4,U:8}[s];n+=c(e,r+1,i,t),r+=i}else{const s=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`),n+=s}}else if(" "===s||"\t"===s){const t=r;let i=e[r+1];for(;" "===i||"\t"===i;)i=e[1+ ++r];"\n"===i||"\r"===i&&"\n"===e[r+2]||(n+=r>t?e.slice(t,r+1):s)}else n+=s}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=s.resolveEnd(h,g,t,n);return{value:p,type:d,comment:y.comment,range:[l,g,y.offset]}}},814:(e,t)=>{"use strict";t.resolveProps=function(e,{flow:t,indicator:n,next:r,offset:s,onError:i,startOnNewline:o}){let a=!1,c=o,l=o,u="",f="",h=!1,d=!1,p=!1,m=null,g=null,y=null,v=null,b=null;for(const r of e)switch(p&&("space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),p=!1),r.type){case"space":!t&&c&&"doc-start"!==n&&"\t"===r.source[0]&&i(r,"TAB_AS_INDENT","Tabs are not allowed as indentation"),l=!0;break;case"comment":{l||i(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=r.source.substring(1)||" ";u?u+=f+e:u=e,f="",c=!1;break}case"newline":c?u?u+=r.source:a=!0:f+=r.source,c=!0,h=!0,(m||g)&&(d=!0),l=!0;break;case"anchor":m&&i(r,"MULTIPLE_ANCHORS","A node can have at most one anchor"),r.source.endsWith(":")&&i(r.offset+r.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=r,null===b&&(b=r.offset),c=!1,l=!1,p=!0;break;case"tag":g&&i(r,"MULTIPLE_TAGS","A node can have at most one tag"),g=r,null===b&&(b=r.offset),c=!1,l=!1,p=!0;break;case n:(m||g)&&i(r,"BAD_PROP_ORDER",`Anchors and tags must be after the ${r.source} indicator`),v&&i(r,"UNEXPECTED_TOKEN",`Unexpected ${r.source} in ${t??"collection"}`),v=r,c=!1,l=!1;break;case"comma":if(t){y&&i(r,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),y=r,c=!1,l=!1;break}default:i(r,"UNEXPECTED_TOKEN",`Unexpected ${r.type} token`),c=!1,l=!1}const _=e[e.length-1],w=_?_.offset+_.source.length:s;return p&&r&&"space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&("scalar"!==r.type||""!==r.source)&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:y,found:v,spaceBefore:a,comment:u,hasNewline:h,hasNewlineAfterProp:d,anchor:m,tag:g,end:w,start:b??w}}},7627:(e,t)=>{"use strict";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}}},3576:(e,t)=>{"use strict";t.emptyScalarPosition=function(e,t,n){if(t){null===n&&(n=t.length);for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++r];"space"===n?.type;)e+=n.source.length,n=t[++r];break}}return e}},7049:(e,t,n)=>{"use strict";var r=n(7627);t.flowIndentCheck=function(e,t,n){if("flow-collection"===t?.type){const s=t.end[0];s.indent!==e||"]"!==s.source&&"}"!==s.source||!r.containsNewline(t)||n(s,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}},434:(e,t,n)=>{"use strict";var r=n(7384);t.mapIncludes=function(e,t,n){const{uniqueKeys:s}=e.options;if(!1===s)return!1;const i="function"==typeof s?s:(t,n)=>t===n||r.isScalar(t)&&r.isScalar(n)&&t.value===n.value&&!("<<"===t.value&&e.schema.merge);return t.some((e=>i(e.key,n)))}},505:(e,t,n)=>{"use strict";var r=n(366),s=n(1928),i=n(7384),o=n(7356),a=n(5805),c=n(9442),l=n(121),u=n(7763),f=n(5157),h=n(6791),d=n(9534),p=n(3848);class m{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,i.NODE_TYPE,{value:i.DOC});let r=null;"function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t,t=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=s;let{version:o}=s;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new p.Directives({version:o}),this.setSchema(o,n),this.contents=void 0===e?null:this.createNode(e,r,n)}clone(){const e=Object.create(m.prototype,{[i.NODE_TYPE]:{value:i.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=i.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){g(this.contents)&&this.contents.add(e)}addIn(e,t){g(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const n=f.anchorNames(this);e.anchor=!t||n.has(t)?f.findNewAnchor(t||"a",n):t}return new r.Alias(e.anchor)}createNode(e,t,n){let r;if("function"==typeof t)e=t.call({"":e},"",e),r=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)),r=t}else void 0===n&&t&&(n=t,t=void 0);const{aliasDuplicateObjects:s,anchorPrefix:o,flow:a,keepUndefined:c,onTagObj:l,tag:u}=n??{},{onAnchor:h,setAnchors:p,sourceObjects:m}=f.createNodeAnchors(this,o||"a"),g={aliasDuplicateObjects:s??!0,keepUndefined:c??!1,onAnchor:h,onTagObj:l,replacer:r,schema:this.schema,sourceObjects:m},y=d.createNode(e,u,g);return a&&i.isCollection(y)&&(y.flow=!0),p(),y}createPair(e,t,n={}){const r=this.createNode(e,null,n),s=this.createNode(t,null,n);return new o.Pair(r,s)}delete(e){return!!g(this.contents)&&this.contents.delete(e)}deleteIn(e){return s.isEmptyPath(e)?null!=this.contents&&(this.contents=null,!0):!!g(this.contents)&&this.contents.deleteIn(e)}get(e,t){return i.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return s.isEmptyPath(e)?!t&&i.isScalar(this.contents)?this.contents.value:this.contents:i.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!i.isCollection(this.contents)&&this.contents.has(e)}hasIn(e){return s.isEmptyPath(e)?void 0!==this.contents:!!i.isCollection(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=s.collectionFromPath(this.schema,[e],t):g(this.contents)&&this.contents.set(e,t)}setIn(e,t){s.isEmptyPath(e)?this.contents=t:null==this.contents?this.contents=s.collectionFromPath(this.schema,Array.from(e),t):g(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 p.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 p.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:r,onAnchor:s,reviver:i}={}){const o={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100,stringify:l.stringify},c=a.toJS(this.contents,t??"",o);if("function"==typeof s)for(const{count:e,res:t}of o.anchors.values())s(t,e);return"function"==typeof i?h.applyReviver(i,{"":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 u.stringifyDocument(this,e)}}function g(e){if(i.isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}t.Document=m},5157:(e,t,n)=>{"use strict";var r=n(7384),s=n(9303);function i(e){const t=new Set;return s.visit(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function o(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}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=i,t.createNodeAnchors=function(e,t){const n=[],s=new Map;let a=null;return{onAnchor:r=>{n.push(r),a||(a=i(e));const s=o(t,a);return a.add(s),s},setAnchors:()=>{for(const e of n){const t=s.get(e);if("object"!=typeof t||!t.anchor||!r.isScalar(t.node)&&!r.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:s}},t.findNewAnchor=o},6791:(e,t)=>{"use strict";t.applyReviver=function e(t,n,r,s){if(s&&"object"==typeof s)if(Array.isArray(s))for(let n=0,r=s.length;n<r;++n){const r=s[n],i=e(t,s,String(n),r);void 0===i?delete s[n]:i!==r&&(s[n]=i)}else if(s instanceof Map)for(const n of Array.from(s.keys())){const r=s.get(n),i=e(t,s,n,r);void 0===i?s.delete(n):i!==r&&s.set(n,i)}else if(s instanceof Set)for(const n of Array.from(s)){const r=e(t,s,n,n);void 0===r?s.delete(n):r!==n&&(s.delete(n),s.add(r))}else for(const[n,r]of Object.entries(s)){const i=e(t,s,n,r);void 0===i?delete s[n]:i!==r&&(s[n]=i)}return t.call(n,r,s)}},9534:(e,t,n)=>{"use strict";var r=n(366),s=n(7384),i=n(5738);t.createNode=function(e,t,n){if(s.isDocument(e)&&(e=e.contents),s.isNode(e))return e;if(s.isPair(e)){const t=n.schema[s.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:o,onAnchor:a,onTagObj:c,schema:l,sourceObjects:u}=n;let f;if(o&&e&&"object"==typeof e){if(f=u.get(e),f)return f.anchor||(f.anchor=a(e)),new r.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)),r=e.find((e=>!e.format))??e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}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 i.Scalar(e);return f&&(f.node=t),t}h=e instanceof Map?l[s.MAP]:Symbol.iterator in Object(e)?l[s.SEQ]:l[s.MAP]}c&&(c(h),delete n.onTagObj);const d=h?.createNode?h.createNode(n.schema,e,n):new i.Scalar(e);return t&&(d.tag=t),f&&(f.node=d),d}},3848:(e,t,n)=>{"use strict";var r=n(7384),s=n(9303);const i={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};class o{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},o.defaultYaml,e),this.tags=Object.assign({},o.defaultTags,t)}clone(){const e=new o(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new o(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:o.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},o.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:o.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},o.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[e,r]=n;return this.tags[e]=r,!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 ${r}`,!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,r]=e.match(/^(.*!)([^!]*)$/);r||t(`The ${e} tag has no suffix`);const s=this.tags[n];return s?s+decodeURIComponent(r):"!"===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=>i[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 i;if(e&&n.length>0&&r.isNode(e.contents)){const t={};s.visit(e.contents,((e,n)=>{r.isNode(n)&&n.tag&&(t[n.tag]=!0)})),i=Object.keys(t)}else i=[];for(const[r,s]of n)"!!"===r&&"tag:yaml.org,2002:"===s||e&&!i.some((e=>e.startsWith(s)))||t.push(`%TAG ${r} ${s}`);return t.join("\n")}}o.defaultYaml={explicit:!1,version:"1.2"},o.defaultTags={"!!":"tag:yaml.org,2002:"},t.Directives=o},2981:(e,t)=>{"use strict";class n extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,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:r,col:s}=n.linePos[0];n.message+=` at line ${r}, column ${s}`;let i=s-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(i>=60&&o.length>80){const e=Math.min(i-39,o.length-79);o="…"+o.substring(e),i-=e-1}if(o.length>80&&(o=o.substring(0,79)+"…"),r>1&&/^ *$/.test(o.substring(0,i))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),o=n+o}if(/[^ ]/.test(o)){let e=1;const t=n.linePos[1];t&&t.line===r&&t.col>s&&(e=Math.min(t.col-s,80-i));const a=" ".repeat(i)+"^".repeat(e);n.message+=`:\n\n${o}\n${a}\n`}}},4667:(e,t,n)=>{"use strict";var r=n(1294),s=n(505),i=n(9442),o=n(2981),a=n(366),c=n(7384),l=n(7356),u=n(5738),f=n(8228),h=n(9248),d=(n(8575),n(5757)),p=n(862),m=n(654),g=n(3769),y=n(9303);r.Composer,s.Document,i.Schema,o.YAMLError,o.YAMLParseError,o.YAMLWarning,a.Alias,c.isAlias,c.isCollection,c.isDocument,c.isMap,c.isNode,c.isPair,c.isScalar,c.isSeq,l.Pair,u.Scalar,f.YAMLMap,h.YAMLSeq,d.Lexer,p.LineCounter,m.Parser,g.parse,g.parseAllDocuments,g.parseDocument,g.stringify,y.visit,y.visitAsync},4774:(e,t)=>{"use strict";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))}},366:(e,t,n)=>{"use strict";var r=n(5157),s=n(9303),i=n(7384);class o extends i.NodeBase{constructor(e){super(i.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return s.visit(e,{Node:(e,n)=>{if(n===this)return s.visit.BREAK;n.anchor===this.source&&(t=n)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:r,maxAliasCount:s}=t,i=this.resolve(r);if(!i){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}const o=n.get(i);if(!o||void 0===o.res)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(s>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=a(r,i,n)),o.count*o.aliasCount>s))throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");return o.res}toString(e,t,n){const s=`*${this.source}`;if(e){if(r.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`${s} `}return s}}function a(e,t,n){if(i.isAlias(t)){const r=t.resolve(e),s=n&&r&&n.get(r);return s?s.count*s.aliasCount:0}if(i.isCollection(t)){let r=0;for(const s of t.items){const t=a(e,s,n);t>r&&(r=t)}return r}if(i.isPair(t)){const r=a(e,t.key,n),s=a(e,t.value,n);return Math.max(r,s)}return 1}t.Alias=o},1928:(e,t,n)=>{"use strict";var r=n(9534),s=n(7384);function i(e,t,n){let s=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]=s,s=e}else s=new Map([[n,s]])}return r.createNode(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const o=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class a extends s.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=>s.isNode(t)||s.isPair(t)?t.clone(e):t)),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(o(e))this.add(t);else{const[n,...r]=e,o=this.get(n,!0);if(s.isCollection(o))o.addIn(r,t);else{if(void 0!==o||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,i(this.schema,r,t))}}}deleteIn(e){const[t,...n]=e;if(0===n.length)return this.delete(t);const r=this.get(t,!0);if(s.isCollection(r))return r.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...r]=e,i=this.get(n,!0);return 0===r.length?!t&&s.isScalar(i)?i.value:i:s.isCollection(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every((t=>{if(!s.isPair(t))return!1;const n=t.value;return null==n||e&&s.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 r=this.get(t,!0);return!!s.isCollection(r)&&r.hasIn(n)}setIn(e,t){const[n,...r]=e;if(0===r.length)this.set(n,t);else{const e=this.get(n,!0);if(s.isCollection(e))e.setIn(r,t);else{if(void 0!==e||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,i(this.schema,r,t))}}}}a.maxFlowStringSingleLineLength=60,t.Collection=a,t.collectionFromPath=i,t.isEmptyPath=o},7384:(e,t)=>{"use strict";const n=Symbol.for("yaml.alias"),r=Symbol.for("yaml.document"),s=Symbol.for("yaml.map"),i=Symbol.for("yaml.pair"),o=Symbol.for("yaml.scalar"),a=Symbol.for("yaml.seq"),c=Symbol.for("yaml.node.type"),l=e=>!!e&&"object"==typeof e&&e[c]===o;function u(e){if(e&&"object"==typeof e)switch(e[c]){case s:case a:return!0}return!1}t.ALIAS=n,t.DOC=r,t.MAP=s,t.NODE_TYPE=c,t.NodeBase=class{constructor(e){Object.defineProperty(this,c,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}},t.PAIR=i,t.SCALAR=o,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]===r,t.isMap=e=>!!e&&"object"==typeof e&&e[c]===s,t.isNode=function(e){if(e&&"object"==typeof e)switch(e[c]){case n:case s:case o:case a:return!0}return!1},t.isPair=e=>!!e&&"object"==typeof e&&e[c]===i,t.isScalar=l,t.isSeq=e=>!!e&&"object"==typeof e&&e[c]===a},7356:(e,t,n)=>{"use strict";var r=n(9534),s=n(4418),i=n(6434),o=n(7384);class a{constructor(e,t=null){Object.defineProperty(this,o.NODE_TYPE,{value:o.PAIR}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return o.isNode(t)&&(t=t.clone(e)),o.isNode(n)&&(n=n.clone(e)),new a(t,n)}toJSON(e,t){const n=t?.mapAsMap?new Map:{};return i.addPairToJSMap(t,n,this)}toString(e,t,n){return e?.doc?s.stringifyPair(this,e,t,n):JSON.stringify(this)}}t.Pair=a,t.createPair=function(e,t,n){const s=r.createNode(e,void 0,n),i=r.createNode(t,void 0,n);return new a(s,i)}},5738:(e,t,n)=>{"use strict";var r=n(7384),s=n(5805);class i extends r.NodeBase{constructor(e){super(r.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:s.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},8228:(e,t,n)=>{"use strict";var r=n(2970),s=n(6434),i=n(1928),o=n(7384),a=n(7356),c=n(5738);function l(e,t){const n=o.isScalar(t)?t.value:t;for(const r of e)if(o.isPair(r)){if(r.key===t||r.key===n)return r;if(o.isScalar(r.key)&&r.key.value===n)return r}}class u extends i.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(o.MAP,e),this.items=[]}add(e,t){let n;n=o.isPair(e)?e:e&&"object"==typeof e&&"key"in e?new a.Pair(e.key,e.value):new a.Pair(e,e?.value);const r=l(this.items,n.key),s=this.schema?.sortMapEntries;if(r){if(!t)throw new Error(`Key ${n.key} already set`);o.isScalar(r.value)&&c.isScalarValue(n.value)?r.value.value=n.value:r.value=n.value}else if(s){const e=this.items.findIndex((e=>s(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),r=n?.value;return(!t&&o.isScalar(r)?r.value:r)??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 r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(const e of this.items)s.addPairToJSMap(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!o.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})),r.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}t.YAMLMap=u,t.findPair=l},9248:(e,t,n)=>{"use strict";var r=n(2970),s=n(1928),i=n(7384),o=n(5738),a=n(5805);class c extends s.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=l(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const n=l(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&i.isScalar(r)?r.value:r}has(e){const t=l(e);return"number"==typeof t&&t<this.items.length}set(e,t){const n=l(e);if("number"!=typeof n)throw new Error(`Expected a valid index, not ${e}.`);const r=this.items[n];i.isScalar(r)&&o.isScalarValue(t)?r.value=t:this.items[n]=t}toJSON(e,t){const n=[];t?.onCreate&&t.onCreate(n);let r=0;for(const e of this.items)n.push(a.toJS(e,String(r++),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)}}function l(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=c},6434:(e,t,n)=>{"use strict";var r=n(4774),s=n(121),i=n(7384),o=n(5738),a=n(5805);function c(e,t,n){const r=e&&i.isAlias(n)?n.resolve(e.doc):n;if(!i.isMap(r))throw new Error("Merge sources must be maps or map aliases");const s=r.toJSON(null,e,Map);for(const[e,n]of s)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||i.isScalar(e)&&"<<"===e.value&&(!e.type||e.type===o.Scalar.PLAIN))(n))if(l=i.isAlias(l)?l.resolve(e.doc):l,i.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 o=a.toJS(n,"",e);if(t instanceof Map)t.set(o,a.toJS(l,o,e));else if(t instanceof Set)t.add(o);else{const c=function(e,t,n){if(null===t)return"";if("object"!=typeof t)return String(t);if(i.isNode(e)&&n&&n.doc){const t=s.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 i=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(i);e.length>40&&(e=e.substring(0,36)+'..."'),r.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 i}return JSON.stringify(t)}(n,o,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}},5805:(e,t,n)=>{"use strict";var r=n(7384);t.toJS=function e(t,n,s){if(Array.isArray(t))return t.map(((t,n)=>e(t,String(n),s)));if(t&&"function"==typeof t.toJSON){if(!s||!r.hasAnchor(t))return t.toJSON(n,s);const e={aliasCount:0,count:1,res:void 0};s.anchors.set(t,e),s.onCreate=t=>{e.res=t,delete s.onCreate};const i=t.toJSON(n,s);return s.onCreate&&s.onCreate(i),i}return"bigint"!=typeof t||s?.keep?t:Number(t)}},1771:(e,t,n)=>{"use strict";var r=n(1070),s=n(5147),i=n(2981),o=n(3955);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 r=e.props.slice(1);let s=t.length;"block-scalar-header"===e.props[0].type&&(s-=e.props[0].source.length);for(const e of r)e.offset+=s;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case"block-map":case"block-seq":{const r={type:"newline",offset:e.offset+t.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{const r="indent"in e?e.indent:-1,s="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:r,source:t,end:s})}}}t.createScalarToken=function(e,t){const{implicitKey:n=!1,indent:r,inFlow:s=!1,offset:i=-1,type:c="PLAIN"}=t,l=o.stringifyString({type:c,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}}),u=t.end??[{type:"newline",offset:-1,indent:r,source:"\n"}];switch(l[0]){case"|":case">":{const e=l.indexOf("\n"),t=l.substring(0,e),n=l.substring(e+1)+"\n",s=[{type:"block-scalar-header",offset:i,indent:r,source:t}];return a(s,u)||s.push({type:"newline",offset:-1,indent:r,source:"\n"}),{type:"block-scalar",offset:i,indent:r,props:s,source:n}}case'"':return{type:"double-quoted-scalar",offset:i,indent:r,source:l,end:u};case"'":return{type:"single-quoted-scalar",offset:i,indent:r,source:l,end:u};default:return{type:"scalar",offset:i,indent:r,source:l,end:u}}},t.resolveAsScalar=function(e,t=!0,n){if(e){const o=(e,t,r)=>{const s="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(!n)throw new i.YAMLParseError([s,s+1],t,r);n(s,t,r)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return s.resolveFlowScalar(e,t,o);case"block-scalar":return r.resolveBlockScalar(e,t,o)}}return null},t.setScalarValue=function(e,t,n={}){let{afterKey:r=!1,implicitKey:s=!1,inFlow:i=!1,type:l}=n,u="indent"in e?e.indent:null;if(r&&"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=o.stringifyString({type:l,value:t},{implicitKey:s||null===u,indent:null!==u&&u>0?" ".repeat(u):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(f[0]){case"|":case">":!function(e,t){const n=t.indexOf("\n"),r=t.substring(0,n),s=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=r,e.source=s}else{const{offset:t}=e,n="indent"in e?e.indent:-1,i=[{type:"block-scalar-header",offset:t,indent:n,source:r}];a(i,"end"in e?e.end:void 0)||i.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:i,source:s})}}(e,f);break;case'"':c(e,f,"double-quoted-scalar");break;case"'":c(e,f,"single-quoted-scalar");break;default:c(e,f,"scalar")}}},896:(e,t)=>{"use strict";function n(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=n(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=r(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=r(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=r(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 r({start:e,key:t,sep:r,value:s}){let i="";for(const t of e)i+=t.source;if(t&&(i+=n(t)),r)for(const e of r)i+=e.source;return s&&(i+=n(s)),i}t.stringify=e=>"type"in e?n(e):r(e)},5340:(e,t)=>{"use strict";const n=Symbol("break visit"),r=Symbol("skip children"),s=Symbol("remove item");function i(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),o(Object.freeze([]),e,t)}function o(e,t,r){let i=r(t,e);if("symbol"==typeof i)return i;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 i=o(Object.freeze(e.concat([[a,t]])),c.items[t],r);if("number"==typeof i)t=i-1;else{if(i===n)return n;i===s&&(c.items.splice(t,1),t-=1)}}"function"==typeof i&&"key"===a&&(i=i(t,e))}}return"function"==typeof i?i(t,e):i}i.BREAK=n,i.SKIP=r,i.REMOVE=s,i.itemAtPath=(e,t)=>{let n=e;for(const[e,r]of t){const t=n?.[e];if(!t||!("items"in t))return;n=t.items[r]}return n},i.parentCollection=(e,t)=>{const n=i.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],s=n?.[r];if(s&&"items"in s)return s;throw new Error("Parent collection not found")},t.visit=i},8575:(e,t,n)=>{"use strict";var r=n(1771),s=n(896),i=n(5340);t.createScalarToken=r.createScalarToken,t.resolveAsScalar=r.resolveAsScalar,t.setScalarValue=r.setScalarValue,t.stringify=s.stringify,t.visit=i.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}},5757:(e,t,n)=>{"use strict";var r=n(8575);function s(e){switch(e){case void 0:case" ":case"\n":case"\r":case"\t":return!0;default:return!1}}const i="0123456789ABCDEFabcdef".split(""),o="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)&&s(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]===r.BOM&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length;const n=e.indexOf("#");if(-1!==n){const r=e[n-1];" "!==r&&"\t"!==r||(t=n-1)}for(;;){const n=e[t-1];if(" "!==n&&"\t"!==n)break;t-=1}const r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),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 r.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&&s(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if("..."===e&&s(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!s(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)&&s(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 i=this.getLine();if(null===i)return this.setNext("flow");if((-1!==n&&n<this.indentNext&&"#"!==i[0]||0===n&&(i.startsWith("---")||i.startsWith("..."))&&s(i[3]))&&(n!==this.indentNext-1||1!==this.flowLevel||"]"!==i[0]&&"}"!==i[0]))return this.flowLevel=0,yield r.FLOW_END,yield*this.parseLineStart();let o=0;for(;","===i[o];)o+=(yield*this.pushCount(1)),o+=(yield*this.pushSpaces(!0)),this.flowKey=!1;switch(o+=(yield*this.pushIndicators()),i[o]){case void 0:return"flow";case"#":return yield*this.pushCount(i.length-o),"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||s(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 r=n.indexOf("\n",this.pos);if(-1!==r){for(;-1!==r;){const e=this.continueScalar(r+1);if(-1===e)break;r=n.indexOf("\n",e)}-1!==r&&(t=r-("\r"===n[r-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=>s(e)||"#"===e))}*parseBlockScalar(){let e,t=this.pos-1,n=0;e:for(let r=this.pos;e=this.buffer[r];++r)switch(e){case" ":n+=1;break;case"\n":t=r,n=0;break;case"\r":{const e=this.buffer[r+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,r=this.buffer[e];"\r"===r&&(r=this.buffer[--e]);const s=e;for(;" "===r||"\t"===r;)r=this.buffer[--e];if(!("\n"===r&&e>=this.pos&&e+1+n>s))break;t=e}return yield r.SCALAR,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t,n=this.pos-1,i=this.pos-1;for(;t=this.buffer[++i];)if(":"===t){const t=this.buffer[i+1];if(s(t)||e&&","===t)break;n=i}else if(s(t)){let r=this.buffer[i+1];if("\r"===t&&("\n"===r?(i+=1,t="\n",r=this.buffer[i+1]):n=i),"#"===r||e&&a.includes(r))break;if("\n"===t){const e=this.continueScalar(i+1);if(-1===e)break;i=Math.max(i,e-2)}}else{if(e&&a.includes(t))break;n=i}return t||this.atEnd?(yield r.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(s(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(;!s(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(o.includes(t))t=this.buffer[++e];else{if("%"!==t||!i.includes(this.buffer[e+1])||!i.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 r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}},862:(e,t)=>{"use strict";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 r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}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}}}}},654:(e,t,n)=>{"use strict";var r=n(8575),s=n(5757);function i(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function o(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||i(t.start,"explicit-key-ind")||i(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 s.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("|",r.prettyToken(e)),this.atScalar)return this.atScalar=!1,yield*this.step(),void(this.offset+=e.length);const t=r.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=!i(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===o(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!==o(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 r={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]=r}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,r=Array.isArray(n)?n[n.length-1]:void 0;"comment"===r?.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],r=n?.value?.end;if(Array.isArray(r))return Array.prototype.push.apply(r,t.start),r.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 r=[];if(n&&t.sep&&!t.value){const n=[];for(let r=0;r<t.sep.length;++r){const s=t.sep[r];switch(s.type){case"newline":n.push(r);break;case"space":break;case"comment":s.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(r=t.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":return void(n||t.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"explicit-key-ind":return t.sep||i(t.start,"explicit-key-ind")?n||t.value?(r.push(this.sourceToken),e.items.push({start:r})):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(i(t.start,"explicit-key-ind"))if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(i(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(a(t.key)&&!i(t.sep,"newline")){const e=l(t.start),n=t.key,r=t.sep;r.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:r}]})}else r.length>0?t.sep=t.sep.concat(r,this.sourceToken):t.sep.push(this.sourceToken);else if(i(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:r,key:null,sep:[this.sourceToken]}):i(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 s=this.flowScalar(this.type);return void(n||t.value?(e.items.push({start:r,key:s,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(s):(Object.assign(t,{key:s,sep:[]}),this.onKeyLine=!0))}default:{const s=this.startBlockValue(e);if(s)return n&&"block-seq"!==s.type&&i(t.start,"explicit-key-ind")&&e.items.push({start:r}),void this.stack.push(s)}}}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,r=Array.isArray(n)?n[n.length-1]:void 0;"comment"===r?.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],r=n?.value?.end;if(Array.isArray(r))return Array.prototype.push.apply(r,t.start),r.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||i(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 r=e.end.splice(1,e.end.length);r.push(this.sourceToken);const s={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}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())}}}},3769:(e,t,n)=>{"use strict";var r=n(1294),s=n(505),i=n(2981),o=n(4774),a=n(862),c=n(654);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:s}=l(t),o=new c.Parser(n?.addNewLine),a=new r.Composer(t);let u=null;for(const t of a.compose(o.parse(e),!0,e.length))if(u){if("silent"!==u.options.logLevel){u.errors.push(new i.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else u=t;return s&&n&&(u.errors.forEach(i.prettifyError(e,n)),u.warnings.forEach(i.prettifyError(e,n))),u}t.parse=function(e,t,n){let r;"function"==typeof t?r=t:void 0===n&&t&&"object"==typeof t&&(n=t);const s=u(e,n);if(!s)return null;if(s.warnings.forEach((e=>o.warn(s.options.logLevel,e))),s.errors.length>0){if("silent"!==s.options.logLevel)throw s.errors[0];s.errors=[]}return s.toJS(Object.assign({reviver:r},n))},t.parseAllDocuments=function(e,t={}){const{lineCounter:n,prettyErrors:s}=l(t),o=new c.Parser(n?.addNewLine),a=new r.Composer(t),u=Array.from(a.compose(o.parse(e)));if(s&&n)for(const t of u)t.errors.forEach(i.prettifyError(e,n)),t.warnings.forEach(i.prettifyError(e,n));return u.length>0?u:Object.assign([],{empty:!0},a.streamInfo())},t.parseDocument=u,t.stringify=function(e,t,n){let r=null;if("function"==typeof t||Array.isArray(t)?r=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 s.Document(e,r,n).toString(n)}},9442:(e,t,n)=>{"use strict";var r=n(7384),s=n(4457),i=n(4284),o=n(5077),a=n(8927);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,r.MAP,{value:s.map}),Object.defineProperty(this,r.SCALAR,{value:o.string}),Object.defineProperty(this,r.SEQ,{value:i.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},4457:(e,t,n)=>{"use strict";var r=n(7384),s=n(7356),i=n(8228);const o={collection:"map",createNode:function(e,t,n){const{keepUndefined:r,replacer:o}=n,a=new i.YAMLMap(e),c=(e,i)=>{if("function"==typeof o)i=o.call(t,e,i);else if(Array.isArray(o)&&!o.includes(e))return;(void 0!==i||r)&&a.items.push(s.createPair(e,i,n))};if(t instanceof Map)for(const[e,n]of t)c(e,n);else if(t&&"object"==typeof t)for(const e of Object.keys(t))c(e,t[e]);return"function"==typeof e.sortMapEntries&&a.items.sort(e.sortMapEntries),a},default:!0,nodeClass:i.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(r.isMap(e)||t("Expected a mapping for this tag"),e)};t.map=o},4556:(e,t,n)=>{"use strict";var r=n(5738);const s={identify:e=>null==e,createNode:()=>new r.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new r.Scalar(null),stringify:({source:e},t)=>"string"==typeof e&&s.test.test(e)?e:t.options.nullStr};t.nullTag=s},4284:(e,t,n)=>{"use strict";var r=n(9534),s=n(7384),i=n(9248);const o={collection:"seq",createNode:function(e,t,n){const{replacer:s}=n,o=new i.YAMLSeq(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let i of t){if("function"==typeof s){const n=t instanceof Set?i:String(e++);i=s.call(t,n,i)}o.items.push(r.createNode(i,void 0,n))}}return o},default:!0,nodeClass:i.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(s.isSeq(e)||t("Expected a sequence for this tag"),e)};t.seq=o},5077:(e,t,n)=>{"use strict";var r=n(3955);const s={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,s)=>(t=Object.assign({actualString:!0},t),r.stringifyString(e,t,n,s))};t.string=s},9882:(e,t,n)=>{"use strict";var r=n(5738);const s={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new r.Scalar("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&s.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};t.boolTag=s},2612:(e,t,n)=>{"use strict";var r=n(5738),s=n(6592);const i={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:s.stringifyNumber},o={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():s.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 r.Scalar(parseFloat(e)),n=e.indexOf(".");return-1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:s.stringifyNumber};t.float=a,t.floatExp=o,t.floatNaN=i},8893:(e,t,n)=>{"use strict";var r=n(6592);const s=e=>"bigint"==typeof e||Number.isInteger(e),i=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function o(e,t,n){const{value:i}=e;return s(i)&&i>=0?n+i.toString(t):r.stringifyNumber(e)}const a={identify:e=>s(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>i(e,2,8,n),stringify:e=>o(e,8,"0o")},c={identify:s,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>i(e,0,10,n),stringify:r.stringifyNumber},l={identify:e=>s(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>i(e,2,16,n),stringify:e=>o(e,16,"0x")};t.int=c,t.intHex=l,t.intOct=a},3156:(e,t,n)=>{"use strict";var r=n(4457),s=n(4556),i=n(4284),o=n(5077),a=n(9882),c=n(2612),l=n(8893);const u=[r.map,i.seq,o.string,s.nullTag,a.boolTag,l.intOct,l.int,l.intHex,c.floatNaN,c.floatExp,c.float];t.schema=u},3535:(e,t,n)=>{"use strict";var r=n(5738),s=n(4457),i=n(4284);function o(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 r.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:o,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})=>o(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=[s.map,i.seq].concat(c,l);t.schema=u},8927:(e,t,n)=>{"use strict";var r=n(4457),s=n(4556),i=n(4284),o=n(5077),a=n(9882),c=n(2612),l=n(8893),u=n(3156),f=n(3535),h=n(8062),d=n(9497),p=n(6780),m=n(2321),g=n(1114),y=n(4849);const v=new Map([["core",u.schema],["failsafe",[r.map,i.seq,o.string]],["json",f.schema],["yaml11",m.schema],["yaml-1.1",m.schema]]),b={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:r.map,null:s.nullTag,omap:d.omap,pairs:p.pairs,seq:i.seq,set:g.set,timestamp:y.timestamp},_={"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=_,t.getTags=function(e,t){let n=v.get(t);if(!n){if(!Array.isArray(e)){const e=Array.from(v.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=b[e];if(t)return t;const n=Object.keys(b).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${n}`)}))}},8062:(e,t,n)=>{"use strict";var r=n(5738),s=n(3955);const i={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},i,o,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=r.Scalar.BLOCK_LITERAL),t!==r.Scalar.QUOTE_DOUBLE){const e=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),n=Math.ceil(l.length/e),s=new Array(n);for(let t=0,r=0;t<n;++t,r+=e)s[t]=l.substr(r,e);l=s.join(t===r.Scalar.BLOCK_LITERAL?"\n":" ")}return s.stringifyString({comment:e,type:t,value:l},i,o,a)}};t.binary=i},601:(e,t,n)=>{"use strict";var r=n(5738);function s({value:e,source:t},n){return t&&(e?i:o).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const i={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 r.Scalar(!0),stringify:s},o={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 r.Scalar(!1),stringify:s};t.falseTag=o,t.trueTag=i},7381:(e,t,n)=>{"use strict";var r=n(5738),s=n(6592);const i={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:s.stringifyNumber},o={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():s.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 r.Scalar(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){const r=e.substring(n+1).replace(/_/g,"");"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:s.stringifyNumber};t.float=a,t.floatExp=o,t.floatNaN=i},8861:(e,t,n)=>{"use strict";var r=n(6592);const s=e=>"bigint"==typeof e||Number.isInteger(e);function i(e,t,n,{intAsBigInt:r}){const s=e[0];if("-"!==s&&"+"!==s||(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}const t=BigInt(e);return"-"===s?BigInt(-1)*t:t}const i=parseInt(e,n);return"-"===s?-1*i:i}function o(e,t,n){const{value:i}=e;if(s(i)){const e=i.toString(t);return i<0?"-"+n+e.substr(1):n+e}return r.stringifyNumber(e)}const a={identify:s,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>i(e,2,2,n),stringify:e=>o(e,2,"0b")},c={identify:s,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>i(e,1,8,n),stringify:e=>o(e,8,"0")},l={identify:s,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>i(e,0,10,n),stringify:r.stringifyNumber},u={identify:s,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>i(e,2,16,n),stringify:e=>o(e,16,"0x")};t.int=l,t.intBin=a,t.intHex=u,t.intOct=c},9497:(e,t,n)=>{"use strict";var r=n(9248),s=n(5805),i=n(7384),o=n(8228),a=n(6780);class c extends r.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 r,o;if(i.isPair(e)?(r=s.toJS(e.key,"",t),o=s.toJS(e.value,r,t)):r=s.toJS(e,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,o)}return n}}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)i.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){const r=a.createPairs(e,t,n),s=new c;return s.items=r.items,s}};t.YAMLOMap=c,t.omap=l},6780:(e,t,n)=>{"use strict";var r=n(7384),s=n(7356),i=n(5738),o=n(9248);function a(e,t){if(r.isSeq(e))for(let n=0;n<e.items.length;++n){let o=e.items[n];if(!r.isPair(o)){if(r.isMap(o)){o.items.length>1&&t("Each pair must have its own sequence indicator");const e=o.items[0]||new s.Pair(new i.Scalar(null));if(o.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${o.commentBefore}\n${e.key.commentBefore}`:o.commentBefore),o.comment){const t=e.value??e.key;t.comment=t.comment?`${o.comment}\n${t.comment}`:o.comment}o=e}e.items[n]=r.isPair(o)?o:new s.Pair(o)}}else t("Expected a sequence for this tag");return e}function c(e,t,n){const{replacer:r}=n,i=new o.YAMLSeq(e);i.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let o,c;if("function"==typeof r&&(e=r.call(t,String(a++),e)),Array.isArray(e)){if(2!==e.length)throw new TypeError(`Expected [key, value] tuple: ${e}`);o=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}`);o=t[0],c=e[o]}else o=e;i.items.push(s.createPair(o,c,n))}return i}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},2321:(e,t,n)=>{"use strict";var r=n(4457),s=n(4556),i=n(4284),o=n(5077),a=n(8062),c=n(601),l=n(7381),u=n(8861),f=n(9497),h=n(6780),d=n(1114),p=n(4849);const m=[r.map,i.seq,o.string,s.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},1114:(e,t,n)=>{"use strict";var r=n(7384),s=n(7356),i=n(8228);class o extends i.YAMLMap{constructor(e){super(e),this.tag=o.tag}add(e){let t;t=r.isPair(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new s.Pair(e.key,null):new s.Pair(e,null),i.findPair(this.items,t.key)||this.items.push(t)}get(e,t){const n=i.findPair(this.items,e);return!t&&r.isPair(n)?r.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=i.findPair(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new s.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")}}o.tag="tag:yaml.org,2002:set";const a={collection:"map",identify:e=>e instanceof Set,nodeClass:o,default:!1,tag:"tag:yaml.org,2002:set",resolve(e,t){if(r.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new o,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e},createNode(e,t,n){const{replacer:r}=n,i=new o(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof r&&(e=r.call(t,e,e)),i.items.push(s.createPair(e,null,n));return i}};t.YAMLSet=o,t.set=a},4849:(e,t,n)=>{"use strict";var r=n(6592);function s(e,t){const n=e[0],r="-"===n||"+"===n?e.substring(1):e,s=e=>t?BigInt(e):Number(e),i=r.replace(/_/g,"").split(":").reduce(((e,t)=>e*s(60)+s(t)),s(0));return"-"===n?s(-1)*i:i}function i(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return r.stringifyNumber(e);let s="";t<0&&(s="-",t*=n(-1));const i=n(60),o=[t%i];return t<60?o.unshift(0):(t=(t-o[0])/i,o.unshift(t%i),t>=60&&(t=(t-o[0])/i,o.unshift(t))),s+o.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")}const o={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})=>s(e,n),stringify:i},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=>s(e,!1),stringify:i},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,r,i,o,a,l]=t.map(Number),u=t[7]?Number((t[7]+"00").substr(1,3)):0;let f=Date.UTC(n,r-1,i,o||0,a||0,l||0,u);const h=t[8];if(h&&"Z"!==h){let e=s(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=o,t.timestamp=c},4168:(e,t)=>{"use strict";const n="block",r="quoted";function s(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=r,t.foldFlowLines=function(e,t,i="flow",{indentAtStart:o,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 o&&(o>a-Math.max(2,c)?h.push(0):g=a-o);let y=!1,v=-1,b=-1,_=-1;i===n&&(v=s(e,v),-1!==v&&(g=v+f));for(let t;t=e[v+=1];){if(i===r&&"\\"===t){switch(b=v,e[v+1]){case"x":v+=3;break;case"u":v+=5;break;case"U":v+=9;break;default:v+=1}_=v}if("\n"===t)i===n&&(v=s(e,v)),g=v+f,p=void 0;else{if(" "===t&&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(i===r){for(;" "===m||"\t"===m;)m=t,t=e[v+=1],y=!0;const n=v>_+1?v-2:b-1;if(d[n])return e;h.push(n),d[n]=!0,g=n+f,p=void 0}else y=!0}m=t}if(y&&u&&u(),0===h.length)return e;l&&l();let w=e.slice(0,h[0]);for(let n=0;n<h.length;++n){const s=h[n],o=h[n+1]||e.length;0===s?w=`\n${t}${e.slice(0,o)}`:(i===r&&d[s]&&(w+=`${e[s]}\\`),w+=`\n${t}${e.slice(s+1,o)}`)}return w}},121:(e,t,n)=>{"use strict";var r=n(5157),s=n(7384),i=n(1705),o=n(3955);t.createStringifyContext=function(e,t){const n=Object.assign({blockQuote:!0,commentString:i.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 r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof n.indent?" ".repeat(n.indent):" ",inFlow:r,options:n}},t.stringify=function(e,t,n,i){if(s.isPair(e))return e.toString(t,n,i);if(s.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=s.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,r;if(s.isScalar(t)){r=t.value;const s=e.filter((e=>e.identify?.(r)));n=s.find((e=>e.format===t.format))??s.find((e=>!e.format))}else r=t,n=e.find((e=>e.nodeClass&&r instanceof e.nodeClass));if(!n)throw new Error(`Tag not resolved for ${r?.constructor?.name??typeof r} value`);return n}(t.doc.schema.tags,c));const l=function(e,t,{anchors:n,doc:i}){if(!i.directives)return"";const o=[],a=(s.isScalar(e)||s.isCollection(e))&&e.anchor;a&&r.anchorIsValid(a)&&(n.add(a),o.push(`&${a}`));const c=e.tag?e.tag:t.default?null:t.tag;return c&&o.push(i.directives.tagString(c)),o.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,i):s.isScalar(c)?o.stringifyString(c,t,n,i):c.toString(t,n,i);return l?s.isScalar(c)||"{"===u[0]||"["===u[0]?`${l} ${u}`:`${l}\n${t.indent}${u}`:u}},2970:(e,t,n)=>{"use strict";var r=n(1928),s=n(7384),i=n(121),o=n(1705);function a({comment:e,items:t},n,{blockItemPrefix:r,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(s.isNode(a))!m&&a.spaceBefore&&g.push(""),l(n,g,a.commentBefore,m),a.comment&&(u=a.comment);else if(s.isPair(a)){const e=s.isNode(a.key)?a.key:null;e&&(!m&&e.spaceBefore&&g.push(""),l(n,g,e.commentBefore,m))}m=!1;let f=i.stringify(a,p,(()=>u=null),(()=>m=!0));u&&(f+=o.lineComment(f,c,d(u))),m&&u&&(m=!1),g.push(r+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"+o.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 v=[];for(let e=0;e<t.length;++e){const r=t[e];let a=null;if(s.isNode(r))r.spaceBefore&&v.push(""),l(n,v,r.commentBefore,!1),r.comment&&(a=r.comment);else if(s.isPair(r)){const e=s.isNode(r.key)?r.key:null;e&&(e.spaceBefore&&v.push(""),l(n,v,e.commentBefore,!1),e.comment&&(g=!0));const t=s.isNode(r.value)?r.value:null;t?(t.comment&&(a=t.comment),t.commentBefore&&(g=!0)):null==r.value&&e&&e.comment&&(a=e.comment)}a&&(g=!0);let u=i.stringify(r,m,(()=>a=null));e<t.length-1&&(u+=","),a&&(u+=o.lineComment(u,c,p(a))),!g&&(v.length>y||u.includes("\n"))&&(g=!0),v.push(u),y=v.length}let b;const{start:_,end:w}=a;if(0===v.length)b=_+w;else if(g||(g=v.reduce(((e,t)=>e+t.length+2),2)>r.Collection.maxFlowStringSingleLineLength),g){b=_;for(const e of v)b+=e?`\n${h}${f}${e}`:"\n";b+=`\n${f}${w}`}else b=`${_}${d}${v.join(" ")}${d}${w}`;return e&&(b+=o.lineComment(b,p(e),f),u&&u()),b}function l({indent:e,options:{commentString:t}},n,r,s){if(r&&s&&(r=r.replace(/^\n+/,"")),r){const s=o.indentComment(t(r),e);n.push(s.trimStart())}}t.stringifyCollection=function(e,t,n){return(t.inFlow??e.flow?c:a)(e,t,n)}},1705:(e,t)=>{"use strict";function n(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}t.indentComment=n,t.lineComment=(e,t,r)=>e.endsWith("\n")?n(r,t):r.includes("\n")?"\n"+n(r,t):(e.endsWith(" ")?"":" ")+r,t.stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#")},7763:(e,t,n)=>{"use strict";var r=n(7384),s=n(121),i=n(1705);t.stringifyDocument=function(e,t){const n=[];let o=!0===t.directives;if(!1!==t.directives&&e.directives){const t=e.directives.toString(e);t?(n.push(t),o=!0):e.directives.docStart&&(o=!0)}o&&n.push("---");const a=s.createStringifyContext(e,t),{commentString:c}=a.options;if(e.commentBefore){1!==n.length&&n.unshift("");const t=c(e.commentBefore);n.unshift(i.indentComment(t,""))}let l=!1,u=null;if(e.contents){if(r.isNode(e.contents)){if(e.contents.spaceBefore&&o&&n.push(""),e.contents.commentBefore){const t=c(e.contents.commentBefore);n.push(i.indentComment(t,""))}a.forceBlockIndent=!!e.comment,u=e.contents.comment}const t=u?void 0:()=>l=!0;let f=s.stringify(e.contents,a,(()=>u=null),t);u&&(f+=i.lineComment(f,"",c(u))),"|"!==f[0]&&">"!==f[0]||"---"!==n[n.length-1]?n.push(f):n[n.length-1]=`--- ${f}`}else n.push(s.stringify(e.contents,a));if(e.directives?.docEnd)if(e.comment){const t=c(e.comment);t.includes("\n")?(n.push("..."),n.push(i.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(i.indentComment(c(t),"")))}return n.join("\n")+"\n"}},6592:(e,t)=>{"use strict";t.stringifyNumber=function({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);const s="number"==typeof r?r:Number(r);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let i=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(i)){let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let n=t-(i.length-e-1);for(;n-- >0;)i+="0"}return i}},4418:(e,t,n)=>{"use strict";var r=n(7384),s=n(5738),i=n(121),o=n(1705);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=r.isNode(e)&&e.comment||null;if(m){if(g)throw new Error("With simple keys, key nodes cannot have comments");if(r.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||r.isCollection(e)||(r.isScalar(e)?e.type===s.Scalar.BLOCK_FOLDED||e.type===s.Scalar.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!y&&(m||!l),indent:f+h});let v,b,_,w=!1,$=!1,S=i.stringify(e,n,(()=>w=!0),(()=>$=!0));if(!y&&!n.inFlow&&S.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 w&&a&&a(),""===S?"?":y?`? ${S}`:S}else if(l&&!m||null==t&&y)return S=`? ${S}`,g&&!w?S+=o.lineComment(S,n.indent,d(g)):$&&c&&c(),S;w&&(g=null),y?(g&&(S+=o.lineComment(S,n.indent,d(g))),S=`? ${S}\n${f}:`):(S=`${S}:`,g&&(S+=o.lineComment(S,n.indent,d(g)))),r.isNode(t)?(v=!!t.spaceBefore,b=t.commentBefore,_=t.comment):(v=!1,b=null,_=null,t&&"object"==typeof t&&(t=u.createNode(t))),n.implicitKey=!1,y||g||!r.isScalar(t)||(n.indentAtStart=S.length+1),$=!1,p||!(h.length>=2)||n.inFlow||y||!r.isSeq(t)||t.flow||t.tag||t.anchor||(n.indent=n.indent.substring(2));let E=!1;const k=i.stringify(t,n,(()=>E=!0),(()=>$=!0));let O=" ";if(g||v||b){if(O=v?"\n":"",b){const e=d(b);O+=`\n${o.indentComment(e,n.indent)}`}""!==k||n.inFlow?O+=`\n${n.indent}`:"\n"===O&&(O="\n\n")}else if(!y&&r.isCollection(t)){const e=k[0],r=k.indexOf("\n"),s=-1!==r,i=n.inFlow??t.flow??0===t.items.length;if(s||!i){let t=!1;if(s&&("&"===e||"!"===e)){let n=k.indexOf(" ");"&"===e&&-1!==n&&n<r&&"!"===k[n+1]&&(n=k.indexOf(" ",n+1)),(-1===n||r<n)&&(t=!0)}t||(O=`\n${n.indent}`)}}else""!==k&&"\n"!==k[0]||(O="");return S+=O+k,n.inFlow?E&&a&&a():_&&!E?S+=o.lineComment(S,n.indent,d(_)):$&&c&&c(),S}},3955:(e,t,n)=>{"use strict";var r=n(5738),s=n(4168);const i=e=>({indentAtStart:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),o=e=>/^(%|---|\.\.\.)/m.test(e);function a(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,a=t.options.doubleQuotedMinMultiLineLength,c=t.indent||(o(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(r||'"'===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,r?l:s.foldFlowLines(l,c,s.FOLD_QUOTED,i(t))}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||(o(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${n}`)+"'";return t.implicitKey?r:s.foldFlowLines(r,n,s.FOLD_FLOW,i(t))}function l(e,t){const{singleQuote:n}=t.options;let r;if(!1===n)r=a;else{const t=e.includes('"'),s=e.includes("'");r=t&&!s?c:s&&!t?a:n?c:a}return r(e,t)}function u({comment:e,type:t,value:n},a,c,u){const{blockQuote:f,commentString:h,lineWidth:d}=a.options;if(!f||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return l(n,a);const p=a.indent||(a.forceBlockIndent||o(n)?" ":""),m="literal"===f||"folded"!==f&&t!==r.Scalar.BLOCK_FOLDED&&(t===r.Scalar.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;const r=t-n,s=e.length;if(s<=r)return!1;for(let t=0,n=0;t<s;++t)if("\n"===e[t]){if(t-n>r)return!0;if(n=t+1,s-n<=r)return!1}return!0}(n,d,p.length));if(!n)return m?"|\n":">\n";let g,y;for(y=n.length;y>0;--y){const e=n[y-1];if("\n"!==e&&"\t"!==e&&" "!==e)break}let v=n.substring(y);const b=v.indexOf("\n");-1===b?g="-":n===v||b!==v.length-1?(g="+",u&&u()):g="",v&&(n=n.slice(0,-v.length),"\n"===v[v.length-1]&&(v=v.slice(0,-1)),v=v.replace(/\n+(?!\n|$)/g,`$&${p}`));let _,w=!1,$=-1;for(_=0;_<n.length;++_){const e=n[_];if(" "===e)w=!0;else{if("\n"!==e)break;$=_}}let S=n.substring(0,$<_?$+1:_);S&&(n=n.substring(S.length),S=S.replace(/\n+/g,`$&${p}`));let E=(m?"|":">")+(w?p?"2":"1":"")+g;return e&&(E+=" "+h(e.replace(/ ?[\r\n]+/g," ")),c&&c()),m?`${E}\n${p}${S}${n=n.replace(/\n+/g,`$&${p}`)}${v}`:(n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`),`${E}\n${p}${s.foldFlowLines(`${S}${n}${v}`,p,s.FOLD_BLOCK,i(a))}`)}t.stringifyString=function(e,t,n,f){const{implicitKey:h,inFlow:d}=t,p="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:m}=e;m!==r.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(p.value)&&(m=r.Scalar.QUOTE_DOUBLE);const g=e=>{switch(e){case r.Scalar.BLOCK_FOLDED:case r.Scalar.BLOCK_LITERAL:return h||d?l(p.value,t):u(p,t,n,f);case r.Scalar.QUOTE_DOUBLE:return a(p.value,t);case r.Scalar.QUOTE_SINGLE:return c(p.value,t);case r.Scalar.PLAIN:return function(e,t,n,a){const{type:c,value:f}=e,{actualString:h,implicitKey:d,indent:p,indentStep:m,inFlow:g}=t;if(d&&/[\n[\]{},]/.test(f)||g&&/[[\]{},]/.test(f))return l(f,t);if(!f||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(f))return d||g||!f.includes("\n")?l(f,t):u(e,t,n,a);if(!d&&!g&&c!==r.Scalar.PLAIN&&f.includes("\n"))return u(e,t,n,a);if(o(f)){if(""===p)return t.forceBlockIndent=!0,u(e,t,n,a);if(d&&p===m)return l(f,t)}const y=f.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:r}=t.doc.schema;if(r.some(e)||n?.some(e))return l(f,t)}return d?y:s.foldFlowLines(y,p,s.FOLD_FLOW,i(t))}(p,t,n,f);default:return null}};let y=g(m);if(null===y){const{defaultKeyType:e,defaultStringType:n}=t.options,r=h&&e||n;if(y=g(r),null===y)throw new Error(`Unsupported default string type ${r}`)}return y}},9303:(e,t,n)=>{"use strict";var r=n(7384);const s=Symbol("break visit"),i=Symbol("skip children"),o=Symbol("remove node");function a(e,t){const n=f(t);r.isDocument(e)?c(null,e.contents,n,Object.freeze([e]))===o&&(e.contents=null):c(null,e,n,Object.freeze([]))}function c(e,t,n,i){const a=h(e,t,n,i);if(r.isNode(a)||r.isPair(a))return d(e,i,a),c(e,a,n,i);if("symbol"!=typeof a)if(r.isCollection(t)){i=Object.freeze(i.concat(t));for(let e=0;e<t.items.length;++e){const r=c(e,t.items[e],n,i);if("number"==typeof r)e=r-1;else{if(r===s)return s;r===o&&(t.items.splice(e,1),e-=1)}}}else if(r.isPair(t)){i=Object.freeze(i.concat(t));const e=c("key",t.key,n,i);if(e===s)return s;e===o&&(t.key=null);const r=c("value",t.value,n,i);if(r===s)return s;r===o&&(t.value=null)}return a}async function l(e,t){const n=f(t);r.isDocument(e)?await u(null,e.contents,n,Object.freeze([e]))===o&&(e.contents=null):await u(null,e,n,Object.freeze([]))}async function u(e,t,n,i){const a=await h(e,t,n,i);if(r.isNode(a)||r.isPair(a))return d(e,i,a),u(e,a,n,i);if("symbol"!=typeof a)if(r.isCollection(t)){i=Object.freeze(i.concat(t));for(let e=0;e<t.items.length;++e){const r=await u(e,t.items[e],n,i);if("number"==typeof r)e=r-1;else{if(r===s)return s;r===o&&(t.items.splice(e,1),e-=1)}}}else if(r.isPair(t)){i=Object.freeze(i.concat(t));const e=await u("key",t.key,n,i);if(e===s)return s;e===o&&(t.key=null);const r=await u("value",t.value,n,i);if(r===s)return s;r===o&&(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,s){return"function"==typeof n?n(e,t,s):r.isMap(t)?n.Map?.(e,t,s):r.isSeq(t)?n.Seq?.(e,t,s):r.isPair(t)?n.Pair?.(e,t,s):r.isScalar(t)?n.Scalar?.(e,t,s):r.isAlias(t)?n.Alias?.(e,t,s):void 0}function d(e,t,n){const s=t[t.length-1];if(r.isCollection(s))s.items[e]=n;else if(r.isPair(s))"key"===e?s.key=n:s.value=n;else{if(!r.isDocument(s)){const e=r.isAlias(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${e} parent`)}s.contents=n}}a.BREAK=s,a.SKIP=i,a.REMOVE=o,l.BREAK=s,l.SKIP=i,l.REMOVE=o,t.visit=a,t.visitAsync=l},6623:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},3864:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};return(()=>{"use strict";n.r(r);var e=n(6635);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return s="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(e)}var i=/^(\${.*})/,o=/[^\w @]/g,a=function(e){var t;return null===(t=e.split(i).find((function(e){return e.match(i)})))||void 0===t?void 0:t.replace(o,"")},c=function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,e.values)(n).reduce((function(n,r){if("string"==typeof r){var i=a(r);return i?(0,e.set)(n,i,process.env[i]):n}return"object"===s(r)?t(r,n):n}),r)};const l={apply:function n(r,i){return(0,e.entries)(r).forEach((function(o){var c,l,u=(l=2,function(e){if(Array.isArray(e))return e}(c=o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,s,i,o,a=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){l=!0,s=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw s}}return a}}(c,l)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(c,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=u[0],h=u[1];if("string"==typeof h){var d=a(h);if(d){var p=i[d];p||console.log("warning: value for ".concat(d," is ").concat(p)),(0,e.set)(r,f,h.replace("${".concat(d,"}"),i[d]))}}else"object"===s(h)&&n(h,i)})),r},create:function(e){return c(e)}},u=require("fs");var f=n.n(u);const h=Symbol.for("__strategy__"),d=Symbol.for("__mappings__"),p=Symbol.for("__metadata_map__"),m=Symbol.for("__metadata_object_map__"),g=Symbol.for("__error_handler__"),y=Symbol.for("__naming_conventions__"),v=Symbol.for("__recursive_depth__"),b=Symbol.for("__recursive_count__"),_=Symbol.for("__profile_configuration_context__"),w=Symbol.for("nodejs.util.inspect.custom");function $(e){return e[g]}function S(e){return e[d]}function E(e){return e[p]}function k(e){return e[m]}function O(e){return e[v]}function P(e){return e[h]}function j(e){let t=e.toString();return e.name&&(t=e.name),t}function A(e,t=[]){if(!t.length)return;let n;const r=t.length;for(n=0;n<r&&null!=e;n++)e=e[t[n]];return n&&n==r?e:void 0}function x(e,t,n,r=!1){var s;const i="string"==typeof t?Symbol.for(t):t,o="string"==typeof n?Symbol.for(n):n,a=null===(s=S(e).get(i))||void 0===s?void 0:s.get(o);if(null==a&&!r){const r=$(e),s=`Mapping is not found for ${String(t)} and ${String(n)}`;throw r.handle(s),new Error(s)}return a}function N(e){return Object.getPrototypeOf(e)===Date||e===Date}function C(e){return Array.isArray(e)?!e.length:"object"!=typeof e&&"function"!=typeof e?!e:!Object.keys(e).length}function M(e,t){return e.length===t.length&&e.every(((e,n)=>t[n]===e))}function I(e){if(null==e)return!0;const t=Object.getPrototypeOf(e);return t===String||t===Number||t===Boolean||e===String||e===Number||e===Boolean}function T(e,t,n){const{decomposedPath:r,base:s}=L(t);return void 0===s?e:(R(e,s),n=r.length<=1?n:T(e[s],r.slice(1),n),Object.assign(e,{[s]:n}))}function D(e,t,n){const{decomposedPath:r,base:s}=L(t);void 0!==s&&(R(e,s),r.length<=1?e[s]=n:D(e[s],r.slice(1),n))}function L(e){if(e.length<1)return{base:"",decomposedPath:[]};const t=e;return{base:e[0],decomposedPath:t}}function R(e,t){e.hasOwnProperty(t)||(e[t]={})}function F(e,t,n,r,s,i,o,a){let c;const l=e[0],u=e[1],f=!(I(o)||I(a)||N(o)||N(a));switch(l){case 1:case 5:c=u(t);break;case 3:c=u();break;case 4:c=u(t,i,s?{extraArgs:()=>s}:void 0);break;case 2:case 7:case 8:c=u(t,r),f&&null!=c&&(c=Array.isArray(c)?i.mapArray(c,o,a):i.map(c,o,a));break;case 9:c=u(t,s||{});break;case 10:c=F(u(t),t,n,r,s,i,o,a)}return c}function q(e,t){return n=>{t&&(t=T(t,e,n))}}function U(e,t,n,r=!1){return K({mapping:e,sourceObject:t,options:n,setMemberFn:q,isMapArray:r})}function z(e){return t=>n=>{void 0!==n&&D(e,t,n)}}function B(e){return t=>A(e,t)}function V(e,t,n,r,s=!1){K({sourceObject:t,mapping:e,setMemberFn:z(n),getMemberFn:B(n),options:r,isMapArray:s})}function K({mapping:e,sourceObject:t,options:n,setMemberFn:r,getMemberFn:s,isMapArray:i=!1}){const[[o,a],[,c],l,,u,f,,[h,d]=[]]=e,{beforeMap:p,afterMap:m,destinationConstructor:g=f,extraArgs:y}=null!=n?n:{},v=$(u),b=E(u),_=g(t,a),w=null==y?void 0:y(e,_),S=[];if(!i){const e=null!=p?p:h;e&&e(t,_,w)}for(let e=0,n=l.length;e<n;e++){const[n,[,[i,[o,c]=[]]],[f,h]=[]]=l[e];let d=!(I(f)||N(f)||I(h)||N(h)||h!==f);d&&(d=!x(u,h,f,!0));const p=e=>{var t,s;try{return r(n,_)(e())}catch(e){const r=`\nError at "${n}" on ${(null===(s=null===(t=a.prototype)||void 0===t?void 0:t.constructor)||void 0===s?void 0:s.name)||a.toString()} (${JSON.stringify(_)})\n---------------------------------------------------------------------\nOriginal error: ${e}`;throw v.handle(r),new Error(r)}};if(S.push(n[0]),!o||o(t))if(6!==i[0])p((()=>F(i,t,_,n,w,u,h,f)));else{const e=b.get(a),r=e&&null===e.find((e=>M(e[0],n))),o=i[1](t),c=i[2];if(null==o||o instanceof Date||"File"===Object.prototype.toString.call(o).slice(8,-1)||r||d||c){p((()=>o));continue}if(Array.isArray(o)){const[e]=o;if("object"!=typeof e||e instanceof Date||"File"===Object.prototype.toString.call(e).slice(8,-1)){p((()=>o.slice()));continue}if(C(e)){p((()=>[]));continue}if(I(f))continue;p((()=>o.map((e=>U(x(u,h,f),e,{extraArgs:y})))));continue}if("object"==typeof o){const e=x(u,h,f);if(s){const t=s(n);void 0!==t&&K({sourceObject:o,mapping:e,options:{extraArgs:y},setMemberFn:z(t),getMemberFn:B(t)});continue}p((()=>K({mapping:e,sourceObject:o,options:{extraArgs:y},setMemberFn:q})));continue}p((()=>o))}else p((()=>c))}if(!i){const e=null!=m?m:d;e&&e(t,_,w)}return function(e,t,n,r,s,i){const o=Object.keys(t).reduce(((r,s)=>{var i;const o=s in e,a=n.some((e=>e===s)),c=!0===(null===(i=Object.getOwnPropertyDescriptor(t,s))||void 0===i?void 0:i.writable);return a||o||!c||void 0!==e[s]||r.push(s),r}),[]),a=j(r),c=j(s);if(o.length){const e=`${a} -> ${c}`;i.handle(`\nUnmapped properties for ${e}:\n-------------------\n${o.join(",\n")}\n`)}}(_,c,S,o,a,v),_}class W{static configure(e={}){this.configured||(this.configured=!0,Object.entries(e).forEach((([e,t])=>{void 0!==t&&(this[e]=t)})))}static log(e){console.log.bind(console,this.AUTOMAPPER_PREFIX,e)}static warn(e){console.warn.bind(console,this.AUTOMAPPER_PREFIX,e)}static error(e){console.error.bind(console,this.AUTOMAPPER_PREFIX,e)}static info(e){console.info.bind(console,this.AUTOMAPPER_PREFIX,e)}}W.AUTOMAPPER_PREFIX="[AutoMapper]: ",W.configured=!1;const H=Symbol("__recursive_data__");function G(e,t,n){const r=e.get(t);return r?function(e,t){let n=e;for(const e of t)if(n=n.get(e),!n)return;return n.get(H)}(r,n):void 0}function J(e,t,n,r){if(!e.has(t))return void e.set(t,Y(new Map,n,r));const s=e.get(t);(function(e,t){let n=e;for(const e of t){const t=n.get(e);if(!t)return!1;n=t}return n.has(H)})(s,n)||Y(s,n,r)}function Y(e,t,n){let r=e;for(const e of t){let t=r.get(e);t||(t=new Map,r.set(e,t)),r=t}return r.set(H,n),e}const Q={applyMetadata:function(e){const t=e.mapper,n=E(t),r=k(t),s=function(e){return e[b]}(t),i=O(t);return function e(t,o,a=!0,c=!1){var l;const u=n.get(t),f={};if(C(u)||!u)return f;for(let n=0,l=u.length;n<l;n++){const l=u[n][0],h=u[n][1],d=u[n][2];if(u[n][3]&&1===o)continue;const p=h();if(d){D(f,l,[]);continue}if(I(p)||null===p){D(f,l,void 0);continue}if(N(p)){D(f,l,new Date);continue}const m=G(i,t,l),g=G(s,t,l)||0;if(0===m){D(f,l,{});continue}if(m===g){!a&&c||J(s,t,l,0),D(f,l,{});continue}J(s,t,l,g+1);const y=r.get(p);D(f,l,(null==y?void 0:y[o])||e(p,o,!1,p===t))}return!a&&c||null===(l=s.get(t))||void 0===l||l.clear(),f}},preMap:e=>e,postMap:(e,t)=>t};function Z(e){return[6,t=>A(t,e)]}function X(e,[t,n]){const r=e.map((e=>e.split(n.splittingExpression).filter(Boolean))).filter((e=>e.length>0));return r.length?r.map((e=>t.transformPropertyName(e))):e}function ee(e,t,n){const[r]=n,s=[].concat(...t.map((e=>e.split(r.splittingExpression).filter(Boolean)))),[i,...o]=s.slice(0,s.length-1);let a=i,c=0,l=te(e,a);if(!l)for(let t=0,n=o.length;t<n;t++)if(a=r.transformPropertyName([a,o[t]]),te(e,a)){c=t+1,l=!0;break}if(!l)return t;const u=s.slice(c+1,s.length+1),f=r.transformPropertyName(u);return u.length>1&&!te(e[a],f)&&te(e[a],r.transformPropertyName([u[0]]))?[a,...ee(e[a],X([f],n),n)]:[a,r.transformPropertyName(s.slice(c+1,s.length+1))]}function te(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ne(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}const re=["constructor","__defineGetter__","__defineSetter__","hasOwnProperty","__lookupGetter__","__lookupSetter__","isPrototypeOf","propertyIsEnumerable","toString","valueOf","__proto__","toLocaleString"];function se(e,t=[],n=[]){const r=n;let s=!1;const i=Array.from(new Set([...Object.getOwnPropertyNames(e)].filter((e=>!re.includes(e)))));for(let n=0,o=i.length;n<o;n++){const o=i[n],a=[...t,o],c=e[o];if("function"!=typeof c&&(r.push(a),"object"==typeof c)){const e=Array.isArray(c)?c:[c];for(const t of e){const e=se(t,a);e&&(s=!0,r.push(...e))}}}return s?function(e){const t=[];for(let n=0,r=e.length;n<r;n++){const r=e[n];t.some((e=>ne(e,r)))||t.push(r)}return t}(r):r}function ie(e,t,n,r=[]){const s=P(e),i=s.applyMetadata.bind(s),o=s.destinationConstructor.bind(s),a=k(e),c=a.get(t),l=a.get(n),u=(null==l?void 0:l[1])||i(n,1);l?l[1]=u:a.set(n,[void 0,u]);const f=(null==c?void 0:c[0])||i(t,0);c?c[0]=f:a.set(t,[f]);const h=[[t,n],[f,u],[],[],e,o];h[8]=function(e){const t=e[y];if(t)return function(e){return"source"in e&&"destination"in e?[e.source,e.destination]:[e,e]}(t)}(e);for(let e=0,t=r.length;e<t;e++)r[e](h);const d=se(u),p=h[2],m=h[3],g=m.length>0,v=h[8],b=E(e),_=b.get(n)||[],w=b.get(t)||[];for(let e=0,t=d.length;e<t;e++){const t=d[e];if(g&&m.some((e=>M(e[0],t))))continue;const n=_.find((e=>M(e[0],t)));let r=t;if(v&&(r=ee(f,X(t,v),v)),!(r[0]in f))continue;const s=w.find((e=>M(e[0],r)));let i;if(!s&&!n)continue;s&&n&&(i=[n[1](),s[1]()]);const o=[Z(r)];if(i){let e;const t=s[2],r=n[2],a=h[6];if(a){const[n,s]=a.get(i[1])||[],[o,c]=(t?null==s?void 0:s.get(i[0]):null==n?void 0:n.get(i[0]))||[];e=r?c:o}if(e){const t=o[0][1];o[0][1]=n=>e(t(n)),o[0][2]=!0}}p.push([t,[t,o],i])}for(const e of m)p.push(e);return h}const oe=()=>{},ae=function e(t,n=[]){return new Proxy(t,{get(t,r){const s=n.slice();return s.push(r),e(oe,s)},apply:()=>n})}(oe);function ce(e,...t){let[n,r]=t;const s=function(e){const t=e(ae);if("function"!=typeof t)return null;const n=t();return 0===n.length||n.some((e=>"string"!=typeof e))?null:n}(e)||[];null==r&&(r=n,n=void 0);const i=[s,[r,n]];return e=>{const[t,n]=e[0],r=e[4],o=e[8],[a]=e[1],c=E(r),l=c.get(n)||[],u=c.get(t)||[];let f;const h=l.find((e=>M(e[0],s)));let d=s;if(o&&(d=ee(a,X(s,o),o)),!(d[0]in a))return void e[3].push([s,i,f]);const p=u.find((e=>M(e[0],d)));p&&h&&(f=[h[1](),p[1]()]),e[3].push([s,i,f])}}function le(e){return"resolve"in e}class ue{static reset(){this.metadataStorage=new Map}static create(e,t={}){var n;const r="string"==typeof e?Symbol.for(e):e,s=Object.entries(t);if(s.length)for(let e=0,t=s.length;e<t;e++){const[t,i]=s[e],o=this.normalizePojoMetadata(i);this.metadataStorage.has(r)||this.metadataStorage.set(r,[]),null===(n=this.metadataStorage.get(r))||void 0===n||n.push([t,o])}}static retrieve(e){const t=this.metadataStorage.get(e);return t?t.map((([e,{type:t,depth:n}])=>{const r=t(),s=Array.isArray(r);return[e,{type:s?()=>r[0]:()=>r,isArray:s,depth:n}]})):[]}static normalizePojoMetadata(e){if("string"==typeof e||"symbol"==typeof e||"function"==typeof e||Array.isArray(e))return{type:()=>this.toSymbol(e),depth:1};const t=e;return t.type=this.toSymbol(t.type),{type:()=>t.type,depth:t.depth}}static toSymbol(e){return"string"==typeof e?Symbol.for(e):Array.isArray(e)&&"string"==typeof e[0]?Symbol.for(e[0]):e}}function fe(e){return fe="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},fe(e)}function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==fe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==fe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===fe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}ue.metadataStorage=new Map;var me,ge,ye=function({strategyInitializer:e,errorHandler:t,namingConventions:n}){let r,s,i,o,a,c,l;function u(e,t,n){if(t&&n)return{destinationIdentifier:t,mapOptions:n};let r=e;if(t&&!n){const e=typeof t;"string"===e||"function"===e?r=t:n=t}return{destinationIdentifier:r,mapOptions:n}}return new Proxy({[w]:()=>"\nMapper {} is an empty Object as a Proxy. The following methods are available to use with a Mapper:\n- Mapper#map(Array)(Async), Mapper#mutate(Array)(Async)\n- createMap()\n- addProfile()\n- getMapping()\n- getMappings()\n "},{get:(f,w,$)=>w===h?(r||(r=e($)),r):w===_?(l||(l=new Set),l):w===d?(s||(s=new Map),s):w===p?(i||(i=new Map),i):w===m?(o||(o=new Map),o):w===g?(t||(t={handle:W.error?W.error.bind(W):()=>{}}),t):w===y?n:w===v?(a||(a=new Map),a):w===b?(c||(c=new Map),c):"dispose"===w?()=>{null==s||s.clear(),null==o||o.clear(),null==a||a.clear(),null==c||c.clear(),null==l||l.clear()}:"map"===w?(e,t,n,s)=>{if(null==e)return e;const{destinationIdentifier:i,mapOptions:o}=u(t,n,s),a=x($,t,i),c=U(a,e=r.preMap(e,a),o||{});return r.postMap(e,c,a)}:"mapAsync"===w?(e,t,n,r)=>{const s=$.map(e,t,n,r);return new Promise((e=>{setTimeout(e,0,s)}))}:"mapArray"===w?(e,t,n,s)=>{if(!e.length)return[];const{destinationIdentifier:i,mapOptions:o}=u(t,n,s),a=x($,t,i),{beforeMap:c,afterMap:l,extraArgs:f}=o||{};c&&c(e,[]);const h=[];for(let t=0,n=e.length;t<n;t++){let n=e[t];n=r.preMap(n,a);const s=U(a,n,{extraArgs:f},!0);h.push(r.postMap(n,s,a))}return l&&l(e,h),h}:"mapArrayAsync"===w?(e,t,n,r)=>{const s=$.mapArray(e,t,n,r);return new Promise((e=>{setTimeout(e,0,s)}))}:"mutate"===w?(e,t,n,s,i)=>{if(null==e)return;const{destinationIdentifier:o,mapOptions:a}=u(n,s,i),c=x($,n,o);V(c,e=r.preMap(e,c),t,a||{}),r.postMap(e,t,c)}:"mutateAsync"===w?(e,t,n,r,s)=>new Promise((i=>{$.mutate(e,t,n,r,s),setTimeout(i,0)})):"mutateArray"===w?(e,t,n,s,i)=>{if(!e.length)return;const{destinationIdentifier:o,mapOptions:a}=u(n,s,i),c=x($,n,o),{beforeMap:l,afterMap:f,extraArgs:h}=a||{};l&&l(e,t);for(let n=0,s=e.length;n<s;n++){let s=e[n];s=r.preMap(s,c),V(c,s,t[n]||{},{extraArgs:h},!0),r.postMap(s,t[n],c)}f&&f(e,t)}:"mutateArrayAsync"===w?(e,t,n,r,s)=>new Promise((i=>{$.mutateArray(e,t,n,r,s),setTimeout(i,0)})):Reflect.get(f,w,$)})}({strategyInitializer:function(e={}){const{destinationConstructor:t=(()=>({})),applyMetadata:n,postMap:r,preMap:s}=Object.assign(Object.assign({},Q),e);return e=>({destinationConstructor:t,mapper:e,get applyMetadata(){return n(this)},retrieveMetadata(...e){const t=new Map;for(let n=0,r=e.length;n<r;n++){const r=e[n];t.set(r,ue.retrieve(r))}return t},preMap:s,postMap:r})}()});ue.create("AppshellConfig",{}),ue.create("AppshellManifest",{}),function(e,t,...n){var r;const s="string"==typeof t?Symbol.for(t):t;let i=s;const[o,...a]=n||[];o&&("string"==typeof o?i=Symbol.for(o):"function"==typeof o&&void 0!==o.prototype?i=o:(a||[]).push(o));const c=S(e);let l=null===(r=c.get(s))||void 0===r?void 0:r.get(i);l?$(e).handle(`Mapping for source ${String(t)} and destination ${String(o)} already exists`):(P(e).retrieveMetadata(s,i).forEach(((t,n)=>{!function(e,t,n){if(!function(e,t=!1){return t?void 0!==e:null!=e}(n))return;const r=E(e);if(!r.has(t))for(const[s,{isGetterOnly:i,type:o,depth:a,isArray:c}]of n)r.set(t,[...r.get(t)||[],[[s],o,c,i]]),null!=a&&J(O(e),t,[s],a)}(e,n,t)})),l=ie(e,s,i,(a||[]).concat(...function(e){return e[_]}(e).values()).filter((e=>null!=e))),c.has(s)?c.get(s).set(i,l):c.set(s,new Map([[i,l]])))}(ye,"AppshellConfig","AppshellManifest",ce((function(e){return e.remotes}),le(ge=function(t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){de(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},function(t){return(0,e.entries)(t.remotes).reduce((function(e,t){var n,r,s=(r=2,function(e){if(Array.isArray(e))return e}(n=t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,s,i,o,a=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){l=!0,s=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw s}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return pe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=s[0],o=s[1];return e[i]=function(e,t,n){var r=t.replace(/\/.+/,""),s=t.replace(r,".");return{id:n.id,url:n.url,scope:r,module:s,metadata:n.metadata}}(0,i,o),e}),{})}(t))})?[9,ge.resolve.bind(ge)]:[9,ge]),ce((function(e){return e.modules}),le(me=function(e){return de({},e.module.name||"unknown",e.module)})?[1,me.resolve.bind(me)]:[1,me]));var ve=function(e,t){var n=ye.map(e,"AppshellConfig","AppshellManifest");return l.apply(n,t)};const be=require("path");var _e=n.n(be),we=function e(t,n,r,s){var i=f().readdirSync(t);return r>0&&i.forEach((function(i){f().statSync(_e().join(t,i)).isDirectory()?n=e(_e().join(t,i),n,r-1,s):s&&!_e().basename(i).match(s)||n.push(_e().join(t,i))})),n};const $e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/.*/;if(!f().existsSync(e))return[];var r=n instanceof RegExp?n:new RegExp("^(".concat(n,")$"));return we(e,[],t,r)};n(4667);var Se=function(t,n){if((0,e.isArray)(t))return t.concat(n)};const Ee=function(t){if(!t)throw new Error("No validator provided");for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];r.forEach((function(e){return t.validate(e)})),t.validate.apply(t,r);var i=r.reduce((function(t,n){return(0,e.mergeWith)(t,n,Se)}),{});return t.validate(i),i};var ke=n(1192);const Oe=JSON.parse('{"title":"AppshellManifest","type":"object","properties":{"remotes":{"description":"Collection of remote entrypoints","type":"object","additionalProperties":{"anyOf":[{"$ref":"#/definitions/Entrypoint"}]}},"modules":{"description":"Module federation configuration","type":"object"}},"required":["remotes","modules"],"definitions":{"Entrypoint":{"title":"Module entrypoint","type":"object","properties":{"id":{"description":"ID of the remote app","type":"string"},"url":{"description":"Url of the remote app","type":"string"},"scope":{"description":"Scope key of the remote app","type":"string"},"module":{"description":"Module key of the remote app","type":"string"},"metadata":{"description":"Metadata associated with the remote app","type":"object","additionalProperties":true}},"required":["url"],"additionalProperties":false}},"additionalProperties":false}');var Pe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var s=n.flatMap((function(t){return(0,e.values)(t.remotes).map((function(e){return e.id}))}));return(0,e.uniq)(s).length!==s.length},je=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var s=n.flatMap((function(t){return(0,e.keys)(t.remotes)}));return(0,e.uniq)(s).length!==s.length};const Ae={validate:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.forEach((function(e){return(0,ke.validate)(Oe,e)})),Pe.apply(void 0,t))throw new Error("Multiple routes with the same ID");if(je.apply(void 0,t))throw new Error("Multiple remotes with the same key")}};function xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}JSON.parse('{"title":"AppshellConfig","type":"object","properties":{"name":{"description":"Name of the module","type":"string"},"remotes":{"description":"Collection of remote entrypoints","type":"object","additionalProperties":{"anyOf":[{"$ref":"#/definitions/Entrypoint"}]}},"module":{"description":"Module federation configuration","type":"object"}},"definitions":{"Entrypoint":{"title":"Module entrypoint","type":"object","properties":{"id":{"description":"ID of the remote app","type":"string"},"url":{"description":"Url of the remote app","type":"string"},"metadata":{"description":"Metadata associated with the remote app","type":"object","additionalProperties":true}},"required":["url"],"additionalProperties":false}},"additionalProperties":false}');const Ne=require("assert"),Ce={right:function(e,t){e=e.trim();const n=Te.stringWidth(e);return n<t?" ".repeat(t-n)+e:e},center:function(e,t){e=e.trim();const n=Te.stringWidth(e);return n>=t?e:" ".repeat(t-n>>1)+e}};class Me{constructor(e){var t;this.width=e.width,this.wrap=null===(t=e.wrap)||void 0===t||t,this.rows=[]}span(...e){this.div(...e).span=!0}resetOutput(){this.rows=[]}div(...e){if(0===e.length&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...e)&&"string"==typeof e[0])return this.applyLayoutDSL(e[0]);const t=e.map((e=>"string"==typeof e?this.colFromString(e):e));return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return 1===e.length&&"string"==typeof e[0]&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){const t=e.split("\n").map((e=>e.split("\t")));let n=0;return t.forEach((e=>{e.length>1&&Te.stringWidth(e[0])>n&&(n=Math.min(Math.floor(.5*this.width),Te.stringWidth(e[0])))})),t.forEach((e=>{this.div(...e.map(((t,r)=>({text:t.trim(),padding:this.measurePadding(t),width:0===r&&e.length>1?n:void 0}))))})),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){const t=Te.stripAnsi(e);return[0,t.match(/\s*$/)[0].length,0,t.match(/^\s*/)[0].length]}toString(){const e=[];return this.rows.forEach((t=>{this.rowToString(t,e)})),e.filter((e=>!e.hidden)).map((e=>e.text)).join("\n")}rowToString(e,t){return this.rasterize(e).forEach(((n,r)=>{let s="";n.forEach(((n,i)=>{const{width:o}=e[i],a=this.negatePadding(e[i]);let c=n;a>Te.stringWidth(n)&&(c+=" ".repeat(a-Te.stringWidth(n))),e[i].align&&"left"!==e[i].align&&this.wrap&&(c=(0,Ce[e[i].align])(c,a),Te.stringWidth(c)<a&&(c+=" ".repeat((o||0)-Te.stringWidth(c)-1)));const l=e[i].padding||[0,0,0,0];l[3]&&(s+=" ".repeat(l[3])),s+=Ie(e[i],c,"| "),s+=c,s+=Ie(e[i],c," |"),l[1]&&(s+=" ".repeat(l[1])),0===r&&t.length>0&&(s=this.renderInline(s,t[t.length-1]))})),t.push({text:s.replace(/ +$/,""),span:e.span})})),t}renderInline(e,t){const n=e.match(/^ */),r=n?n[0].length:0,s=t.text,i=Te.stringWidth(s.trimRight());return t.span?this.wrap?r<i?e:(t.hidden=!0,s.trimRight()+" ".repeat(r-i)+e.trimLeft()):(t.hidden=!0,s+e):e}rasterize(e){const t=[],n=this.columnWidths(e);let r;return e.forEach(((e,s)=>{e.width=n[s],r=this.wrap?Te.wrap(e.text,this.negatePadding(e),{hard:!0}).split("\n"):e.text.split("\n"),e.border&&(r.unshift("."+"-".repeat(this.negatePadding(e)+2)+"."),r.push("'"+"-".repeat(this.negatePadding(e)+2)+"'")),e.padding&&(r.unshift(...new Array(e.padding[0]||0).fill("")),r.push(...new Array(e.padding[2]||0).fill(""))),r.forEach(((e,n)=>{t[n]||t.push([]);const r=t[n];for(let e=0;e<s;e++)void 0===r[e]&&r.push("");r.push(e)}))})),t}negatePadding(e){let t=e.width||0;return e.padding&&(t-=(e.padding[3]||0)+(e.padding[1]||0)),e.border&&(t-=4),t}columnWidths(e){if(!this.wrap)return e.map((e=>e.width||Te.stringWidth(e.text)));let t=e.length,n=this.width;const r=e.map((e=>{if(e.width)return t--,n-=e.width,e.width})),s=t?Math.floor(n/t):0;return r.map(((t,n)=>void 0===t?Math.max(s,function(e){const t=e.padding||[],n=1+(t[3]||0)+(t[1]||0);return e.border?n+4:n}(e[n])):t))}}function Ie(e,t,n){return e.border?/[.']-+[.']/.test(t)?"":0!==t.trim().length?n:" ":""}let Te;const De=new RegExp("(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function Le(e){return e.replace(De,"")}function Re(e,t){const[n,r]=e.match(De)||["",""];e=Le(e);let s="";for(let n=0;n<e.length;n++)0!==n&&n%t==0&&(s+="\n"),s+=e.charAt(n);return n&&r&&(s=`${n}${s}${r}`),s}const Fe=require("util"),qe=require("url");function Ue(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),-1===e.indexOf("-")&&-1===e.indexOf("_"))return e;{let t="",n=!1;const r=e.match(/^-+/);for(let s=r?r[0].length:0;s<e.length;s++){let r=e.charAt(s);n&&(n=!1,r=r.toUpperCase()),0===s||"-"!==r&&"_"!==r?"-"!==r&&"_"!==r&&(t+=r):n=!0}return t}}function ze(e,t){const n=e.toLowerCase();t=t||"-";let r="";for(let s=0;s<e.length;s++){const i=n.charAt(s),o=e.charAt(s);r+=i!==o&&s>0?`${t}${n.charAt(s)}`:o}return r}function Be(e){return null!=e&&("number"==typeof e||!!/^0x[0-9a-f]+$/i.test(e)||!/^0[^.]/.test(e)&&/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e))}var Ve;let Ke;function We(e){return void 0!==e?e+1:1}function He(e){return"__proto__"===e?"___proto___":e}var Ge,Je,Ye;!function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"}(Ve||(Ve={}));const Qe=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,Ze=null!==(Je=null===(Ge=null===process||void 0===process?void 0:process.versions)||void 0===Ge?void 0:Ge.node)&&void 0!==Je?Je:null===(Ye=null===process||void 0===process?void 0:process.version)||void 0===Ye?void 0:Ye.slice(1);if(Ze&&Number(Ze.match(/^([^.]+)/)[1])<Qe)throw Error(`yargs parser supports a minimum Node.js version of ${Qe}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);const Xe=process?process.env:{},et=new class{constructor(e){Ke=e}parse(e,t){const n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},t),r=function(e){if(Array.isArray(e))return e.map((e=>"string"!=typeof e?e+"":e));e=e.trim();let t=0,n=null,r=null,s=null;const i=[];for(let o=0;o<e.length;o++)n=r,r=e.charAt(o)," "!==r||s?(r===s?s=null:"'"!==r&&'"'!==r||s||(s=r),i[t]||(i[t]=""),i[t]+=r):" "!==n&&t++;return i}(e),s="string"==typeof e,i=function(e){const t=[],n=Object.create(null);let r=!0;for(Object.keys(e).forEach((function(n){t.push([].concat(e[n],n))}));r;){r=!1;for(let e=0;e<t.length;e++)for(let n=e+1;n<t.length;n++)if(t[e].filter((function(e){return-1!==t[n].indexOf(e)})).length){t[e]=t[e].concat(t[n]),t.splice(n,1),r=!0;break}}return t.forEach((function(e){const t=(e=e.filter((function(e,t,n){return n.indexOf(e)===t}))).pop();void 0!==t&&"string"==typeof t&&(n[t]=e)})),n}(Object.assign(Object.create(null),n.alias)),o=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),a=Object.assign(Object.create(null),n.default),c=n.configObjects||[],l=n.envPrefix,u=o["populate--"],f=u?"--":"_",h=Object.create(null),d=Object.create(null),p=n.__||Ke.format,m={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},g=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,y=new RegExp("^--"+o["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach((function(e){const t="object"==typeof e?e.key:e,n=Object.keys(e).map((function(e){return{boolean:"bools",string:"strings",number:"numbers"}[e]})).filter(Boolean).pop();n&&(m[n][t]=!0),m.arrays[t]=!0,m.keys.push(t)})),[].concat(n.boolean||[]).filter(Boolean).forEach((function(e){m.bools[e]=!0,m.keys.push(e)})),[].concat(n.string||[]).filter(Boolean).forEach((function(e){m.strings[e]=!0,m.keys.push(e)})),[].concat(n.number||[]).filter(Boolean).forEach((function(e){m.numbers[e]=!0,m.keys.push(e)})),[].concat(n.count||[]).filter(Boolean).forEach((function(e){m.counts[e]=!0,m.keys.push(e)})),[].concat(n.normalize||[]).filter(Boolean).forEach((function(e){m.normalize[e]=!0,m.keys.push(e)})),"object"==typeof n.narg&&Object.entries(n.narg).forEach((([e,t])=>{"number"==typeof t&&(m.nargs[e]=t,m.keys.push(e))})),"object"==typeof n.coerce&&Object.entries(n.coerce).forEach((([e,t])=>{"function"==typeof t&&(m.coercions[e]=t,m.keys.push(e))})),void 0!==n.config&&(Array.isArray(n.config)||"string"==typeof n.config?[].concat(n.config).filter(Boolean).forEach((function(e){m.configs[e]=!0})):"object"==typeof n.config&&Object.entries(n.config).forEach((([e,t])=>{"boolean"!=typeof t&&"function"!=typeof t||(m.configs[e]=t)}))),function(...e){e.forEach((function(e){Object.keys(e||{}).forEach((function(e){m.aliases[e]||(m.aliases[e]=[].concat(i[e]||[]),m.aliases[e].concat(e).forEach((function(t){if(/-/.test(t)&&o["camel-case-expansion"]){const n=Ue(t);n!==e&&-1===m.aliases[e].indexOf(n)&&(m.aliases[e].push(n),h[n]=!0)}})),m.aliases[e].concat(e).forEach((function(t){if(t.length>1&&/[A-Z]/.test(t)&&o["camel-case-expansion"]){const n=ze(t,"-");n!==e&&-1===m.aliases[e].indexOf(n)&&(m.aliases[e].push(n),h[n]=!0)}})),m.aliases[e].forEach((function(t){m.aliases[t]=[e].concat(m.aliases[e].filter((function(e){return t!==e})))})))}))}))}(n.key,i,n.default,m.arrays),Object.keys(a).forEach((function(e){(m.aliases[e]||[]).forEach((function(t){a[t]=a[e]}))}));let v=null;Object.keys(m.counts).find((e=>I(e,m.arrays)?(v=Error(p("Invalid configuration: %s, opts.count excludes opts.array.",e)),!0):!!I(e,m.nargs)&&(v=Error(p("Invalid configuration: %s, opts.count excludes opts.narg.",e)),!0)));let b=[];const _=Object.assign(Object.create(null),{_:[]}),w={};for(let e=0;e<r.length;e++){const t=r[e],n=t.replace(/^-{3,}/,"---");let s,i,a,c,l,u;if("--"!==t&&/^-/.test(t)&&D(t))$(t);else{if(n.match(/^---+(=|$)/)){$(t);continue}if(t.match(/^--.+=/)||!o["short-option-groups"]&&t.match(/^-.+=/))c=t.match(/^--?([^=]+)=([\s\S]*)$/),null!==c&&Array.isArray(c)&&c.length>=3&&(I(c[1],m.arrays)?e=E(e,c[1],r,c[2]):!1!==I(c[1],m.nargs)?e=S(e,c[1],r,c[2]):k(c[1],c[2],!0));else if(t.match(y)&&o["boolean-negation"])c=t.match(y),null!==c&&Array.isArray(c)&&c.length>=2&&(i=c[1],k(i,!!I(i,m.arrays)&&[!1]));else if(t.match(/^--.+/)||!o["short-option-groups"]&&t.match(/^-[^-]+/))c=t.match(/^--?(.+)/),null!==c&&Array.isArray(c)&&c.length>=2&&(i=c[1],I(i,m.arrays)?e=E(e,i,r):!1!==I(i,m.nargs)?e=S(e,i,r):(l=r[e+1],void 0===l||l.match(/^-/)&&!l.match(g)||I(i,m.bools)||I(i,m.counts)?/^(true|false)$/.test(l)?(k(i,l),e++):k(i,L(i)):(k(i,l),e++)));else if(t.match(/^-.\..+=/))c=t.match(/^-([^=]+)=([\s\S]*)$/),null!==c&&Array.isArray(c)&&c.length>=3&&k(c[1],c[2]);else if(t.match(/^-.\..+/)&&!t.match(g))l=r[e+1],c=t.match(/^-(.\..+)/),null!==c&&Array.isArray(c)&&c.length>=2&&(i=c[1],void 0===l||l.match(/^-/)||I(i,m.bools)||I(i,m.counts)?k(i,L(i)):(k(i,l),e++));else if(t.match(/^-[^-]+/)&&!t.match(g)){a=t.slice(1,-1).split(""),s=!1;for(let n=0;n<a.length;n++){if(l=t.slice(n+2),a[n+1]&&"="===a[n+1]){u=t.slice(n+3),i=a[n],I(i,m.arrays)?e=E(e,i,r,u):!1!==I(i,m.nargs)?e=S(e,i,r,u):k(i,u),s=!0;break}if("-"!==l){if(/[A-Za-z]/.test(a[n])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(l)&&!1===I(l,m.bools)){k(a[n],l),s=!0;break}if(a[n+1]&&a[n+1].match(/\W/)){k(a[n],l),s=!0;break}k(a[n],L(a[n]))}else k(a[n],l)}i=t.slice(-1)[0],s||"-"===i||(I(i,m.arrays)?e=E(e,i,r):!1!==I(i,m.nargs)?e=S(e,i,r):(l=r[e+1],void 0===l||/^(-|--)[^-]/.test(l)&&!l.match(g)||I(i,m.bools)||I(i,m.counts)?/^(true|false)$/.test(l)?(k(i,l),e++):k(i,L(i)):(k(i,l),e++)))}else if(t.match(/^-[0-9]$/)&&t.match(g)&&I(t.slice(1),m.bools))i=t.slice(1),k(i,L(i));else{if("--"===t){b=r.slice(e+1);break}if(o["halt-at-non-option"]){b=r.slice(e);break}$(t)}}}function $(e){const t=j("_",e);"string"!=typeof t&&"number"!=typeof t||_._.push(t)}function S(e,t,n,r){let s,i=I(t,m.nargs);if(i="number"!=typeof i||isNaN(i)?1:i,0===i)return R(r)||(v=Error(p("Argument unexpected for: %s",t))),k(t,L(t)),e;let a=R(r)?0:1;if(o["nargs-eats-options"])n.length-(e+1)+a<i&&(v=Error(p("Not enough arguments following: %s",t))),a=i;else{for(s=e+1;s<n.length&&(!n[s].match(/^-[^0-9]/)||n[s].match(g)||D(n[s]));s++)a++;a<i&&(v=Error(p("Not enough arguments following: %s",t)))}let c=Math.min(a,i);for(!R(r)&&c>0&&(k(t,r),c--),s=e+1;s<c+e+1;s++)k(t,n[s]);return e+c}function E(e,t,n,r){let i=[],c=r||n[e+1];const l=I(t,m.nargs);if(I(t,m.bools)&&!/^(true|false)$/.test(c))i.push(!0);else if(R(c)||R(r)&&/^-/.test(c)&&!g.test(c)&&!D(c)){if(void 0!==a[t]){const e=a[t];i=Array.isArray(e)?e:[e]}}else{R(r)||i.push(P(t,r,!0));for(let r=e+1;r<n.length&&!(!o["greedy-arrays"]&&i.length>0||l&&"number"==typeof l&&i.length>=l)&&(c=n[r],!/^-/.test(c)||g.test(c)||D(c));r++)e=r,i.push(P(t,c,s))}return"number"==typeof l&&(l&&i.length<l||isNaN(l)&&0===i.length)&&(v=Error(p("Not enough arguments following: %s",t))),k(t,i),e}function k(e,t,n=s){if(/-/.test(e)&&o["camel-case-expansion"]){const t=e.split(".").map((function(e){return Ue(e)})).join(".");O(e,t)}const r=P(e,t,n),i=e.split(".");M(_,i,r),m.aliases[e]&&m.aliases[e].forEach((function(e){const t=e.split(".");M(_,t,r)})),i.length>1&&o["dot-notation"]&&(m.aliases[i[0]]||[]).forEach((function(t){let n=t.split(".");const s=[].concat(i);s.shift(),n=n.concat(s),(m.aliases[e]||[]).includes(n.join("."))||M(_,n,r)})),I(e,m.normalize)&&!I(e,m.arrays)&&[e].concat(m.aliases[e]||[]).forEach((function(e){Object.defineProperty(w,e,{enumerable:!0,get:()=>t,set(e){t="string"==typeof e?Ke.normalize(e):e}})}))}function O(e,t){m.aliases[e]&&m.aliases[e].length||(m.aliases[e]=[t],h[t]=!0),m.aliases[t]&&m.aliases[t].length||O(t,e)}function P(e,t,n){n&&(t=function(e){return"string"!=typeof e||"'"!==e[0]&&'"'!==e[0]||e[e.length-1]!==e[0]?e:e.substring(1,e.length-1)}(t)),(I(e,m.bools)||I(e,m.counts))&&"string"==typeof t&&(t="true"===t);let r=Array.isArray(t)?t.map((function(t){return j(e,t)})):j(e,t);return I(e,m.counts)&&(R(r)||"boolean"==typeof r)&&(r=We()),I(e,m.normalize)&&I(e,m.arrays)&&(r=Array.isArray(t)?t.map((e=>Ke.normalize(e))):Ke.normalize(t)),r}function j(e,t){return o["parse-positional-numbers"]||"_"!==e?(I(e,m.strings)||I(e,m.bools)||Array.isArray(t)||(Be(t)&&o["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${t}`)))||!R(t)&&I(e,m.numbers))&&(t=Number(t)),t):t}function A(e,t){Object.keys(e).forEach((function(n){const r=e[n],s=t?t+"."+n:n;"object"==typeof r&&null!==r&&!Array.isArray(r)&&o["dot-notation"]?A(r,s):(!C(_,s.split("."))||I(s,m.arrays)&&o["combine-arrays"])&&k(s,r)}))}function x(e,t){if(void 0===l)return;const n="string"==typeof l?l:"",r=Ke.env();Object.keys(r).forEach((function(s){if(""===n||0===s.lastIndexOf(n,0)){const i=s.split("__").map((function(e,t){return 0===t&&(e=e.substring(n.length)),Ue(e)}));(t&&m.configs[i.join(".")]||!t)&&!C(e,i)&&k(i.join("."),r[s])}}))}function N(e,t,n,r=!1){Object.keys(n).forEach((function(s){C(e,s.split("."))||(M(e,s.split("."),n[s]),r&&(d[s]=!0),(t[s]||[]).forEach((function(t){C(e,t.split("."))||M(e,t.split("."),n[s])})))}))}function C(e,t){let n=e;o["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){n=n[e]||{}}));const r=t[t.length-1];return"object"==typeof n&&r in n}function M(e,t,n){let r=e;o["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){e=He(e),"object"==typeof r&&void 0===r[e]&&(r[e]={}),"object"!=typeof r[e]||Array.isArray(r[e])?(Array.isArray(r[e])?r[e].push({}):r[e]=[r[e],{}],r=r[e][r[e].length-1]):r=r[e]}));const s=He(t[t.length-1]),i=I(t.join("."),m.arrays),a=Array.isArray(n);let c=o["duplicate-arguments-array"];!c&&I(s,m.nargs)&&(c=!0,(!R(r[s])&&1===m.nargs[s]||Array.isArray(r[s])&&r[s].length===m.nargs[s])&&(r[s]=void 0)),n===We()?r[s]=We(r[s]):Array.isArray(r[s])?c&&i&&a?r[s]=o["flatten-duplicate-arrays"]?r[s].concat(n):(Array.isArray(r[s][0])?r[s]:[r[s]]).concat([n]):c||Boolean(i)!==Boolean(a)?r[s]=r[s].concat([n]):r[s]=n:void 0===r[s]&&i?r[s]=a?n:[n]:!c||void 0===r[s]||I(s,m.counts)||I(s,m.bools)?r[s]=n:r[s]=[r[s],n]}function I(e,t){const n=[].concat(m.aliases[e]||[],e),r=Object.keys(t),s=n.find((e=>r.includes(e)));return!!s&&t[s]}function T(e){const t=Object.keys(m);return[].concat(t.map((e=>m[e]))).some((function(t){return Array.isArray(t)?t.includes(e):t[e]}))}function D(e){return o["unknown-options-as-args"]&&function(e){return!(e=e.replace(/^-{3,}/,"--")).match(g)&&(!function(e){if(e.match(g)||!e.match(/^-[^-]+/))return!1;let t,n=!0;const r=e.slice(1).split("");for(let s=0;s<r.length;s++){if(t=e.slice(s+2),!T(r[s])){n=!1;break}if(r[s+1]&&"="===r[s+1]||"-"===t||/[A-Za-z]/.test(r[s])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(t)||r[s+1]&&r[s+1].match(/\W/))break}return n}(e)&&!function(e,...t){return[].concat(...t).some((function(t){const n=e.match(t);return n&&T(n[1])}))}(e,/^-+([^=]+?)=[\s\S]*$/,y,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/))}(e)}function L(e){return I(e,m.bools)||I(e,m.counts)||!(`${e}`in a)?(t=function(e){let t=Ve.BOOLEAN;return I(e,m.strings)?t=Ve.STRING:I(e,m.numbers)?t=Ve.NUMBER:I(e,m.bools)?t=Ve.BOOLEAN:I(e,m.arrays)&&(t=Ve.ARRAY),t}(e),{[Ve.BOOLEAN]:!0,[Ve.STRING]:"",[Ve.NUMBER]:void 0,[Ve.ARRAY]:[]}[t]):a[e];var t}function R(e){return void 0===e}return x(_,!0),x(_,!1),function(e){const t=Object.create(null);N(t,m.aliases,a),Object.keys(m.configs).forEach((function(n){const r=e[n]||t[n];if(r)try{let e=null;const t=Ke.resolve(Ke.cwd(),r),s=m.configs[n];if("function"==typeof s){try{e=s(t)}catch(t){e=t}if(e instanceof Error)return void(v=e)}else e=Ke.require(t);A(e)}catch(t){"PermissionDenied"===t.name?v=t:e[n]&&(v=Error(p("Invalid JSON config file: %s",r)))}}))}(_),void 0!==c&&c.forEach((function(e){A(e)})),N(_,m.aliases,a,!0),function(e){let t;const n=new Set;Object.keys(e).forEach((function(r){if(!n.has(r)&&(t=I(r,m.coercions),"function"==typeof t))try{const s=j(r,t(e[r]));[].concat(m.aliases[r]||[],r).forEach((t=>{n.add(t),e[t]=s}))}catch(e){v=e}}))}(_),o["set-placeholder-key"]&&function(e){m.keys.forEach((t=>{~t.indexOf(".")||void 0===e[t]&&(e[t]=void 0)}))}(_),Object.keys(m.counts).forEach((function(e){C(_,e.split("."))||k(e,0)})),u&&b.length&&(_[f]=[]),b.forEach((function(e){_[f].push(e)})),o["camel-case-expansion"]&&o["strip-dashed"]&&Object.keys(_).filter((e=>"--"!==e&&e.includes("-"))).forEach((e=>{delete _[e]})),o["strip-aliased"]&&[].concat(...Object.keys(i).map((e=>i[e]))).forEach((e=>{o["camel-case-expansion"]&&e.includes("-")&&delete _[e.split(".").map((e=>Ue(e))).join(".")],delete _[e]})),{aliases:Object.assign({},m.aliases),argv:Object.assign(w,_),configuration:o,defaulted:Object.assign({},d),error:v,newAliases:Object.assign({},h)}}}({cwd:process.cwd,env:()=>Xe,format:Fe.format,normalize:be.normalize,resolve:be.resolve,require:e=>{if("undefined"!=typeof require)return require(e);if(e.match(/\.json$/))return JSON.parse((0,u.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),tt=function(e,t){return et.parse(e.slice(),t).argv};tt.detailed=function(e,t){return et.parse(e.slice(),t)},tt.camelCase=Ue,tt.decamelize=ze,tt.looksLikeNumber=Be;const nt=tt;function rt(){return process.versions.electron&&!process.defaultApp?0:1}class st extends Error{constructor(e){super(e||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,st)}}const it={fs:{readFileSync:u.readFileSync,writeFile:u.writeFile},format:Fe.format,resolve:be.resolve,exists:e=>{try{return(0,u.statSync)(e).isFile()}catch(e){return!1}}};let ot;class at{constructor(e){e=e||{},this.directory=e.directory||"./locales",this.updateFiles="boolean"!=typeof e.updateFiles||e.updateFiles,this.locale=e.locale||"en",this.fallbackToLanguage="boolean"!=typeof e.fallbackToLanguage||e.fallbackToLanguage,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if("string"!=typeof arguments[0])return this._taggedLiteral(arguments[0],...arguments);const t=e.shift();let n=function(){};return"function"==typeof e[e.length-1]&&(n=e.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]=t,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),ot.format.apply(ot.format,[this.cache[this.locale][t]||t].concat(e))}__n(){const e=Array.prototype.slice.call(arguments),t=e.shift(),n=e.shift(),r=e.shift();let s=function(){};"function"==typeof e[e.length-1]&&(s=e.pop()),this.cache[this.locale]||this._readLocaleFile();let i=1===r?t:n;this.cache[this.locale][t]&&(i=this.cache[this.locale][t][1===r?"one":"other"]),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]={one:t,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:s})):s();const o=[i];return~i.indexOf("%d")&&o.push(r),ot.format.apply(ot.format,o.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.cache[this.locale][t]=e[t])}_taggedLiteral(e,...t){let n="";return e.forEach((function(e,r){const s=t[r+1];n+=e,void 0!==s&&(n+="%s")})),this.__.apply(this,[n].concat([].slice.call(t,1)))}_enqueueWrite(e){this.writeQueue.push(e),1===this.writeQueue.length&&this._processWriteQueue()}_processWriteQueue(){const e=this,t=this.writeQueue[0],n=t.directory,r=t.locale,s=t.cb,i=this._resolveLocaleFile(n,r),o=JSON.stringify(this.cache[r],null,2);ot.fs.writeFile(i,o,"utf-8",(function(t){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),s(t)}))}_readLocaleFile(){let e={};const t=this._resolveLocaleFile(this.directory,this.locale);try{ot.fs.readFileSync&&(e=JSON.parse(ot.fs.readFileSync(t,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+t),"ENOENT"!==n.code)throw n;e={}}this.cache[this.locale]=e}_resolveLocaleFile(e,t){let n=ot.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~t.lastIndexOf("_")){const r=ot.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(r)&&(n=r)}return n}_fileExistsSync(e){return ot.exists(e)}}const ct="loading a directory of commands is not supported yet for ESM";let lt;try{lt=(0,qe.fileURLToPath)("file:///home/runner/work/appshell/appshell/node_modules/yargs/lib/platform-shims/esm.mjs")}catch(e){lt=process.cwd()}const ut=lt.substring(0,lt.lastIndexOf("node_modules")),ft={assert:{notStrictEqual:Ne.notStrictEqual,strictEqual:Ne.strictEqual},cliui:function(e){return function(e,t){return Te=t,new Me({width:(null==e?void 0:e.width)||("object"==typeof process&&process.stdout&&process.stdout.columns?process.stdout.columns:80),wrap:null==e?void 0:e.wrap})}(e,{stringWidth:e=>[...e].length,stripAnsi:Le,wrap:Re})},findUp:function(e,t){let n,r=(0,be.resolve)(".",e);for((0,u.statSync)(r).isDirectory()||(r=(0,be.dirname)(r));;){if(n=t(r,(0,u.readdirSync)(r)),n)return(0,be.resolve)(r,n);if(r=(0,be.dirname)(n=r),n===r)break}},getEnv:e=>process.env[e],inspect:Fe.inspect,getCallerFile:()=>{throw new st(ct)},getProcessArgvBin:function(){return process.argv[rt()]},mainFilename:ut||process.cwd(),Parser:nt,path:{basename:be.basename,dirname:be.dirname,extname:be.extname,relative:be.relative,resolve:be.resolve},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(e,t)=>process.emitWarning(e,t),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:void 0!==process.stdout.columns?process.stdout.columns:null},readFileSync:u.readFileSync,require:()=>{throw new st("require is not supported by ESM")},requireDirectory:()=>{throw new st(ct)},stringWidth:e=>[...e].length,y18n:(ht={directory:(0,be.resolve)(lt,"../../../locales"),updateFiles:!1},function(e,t){ot=t;const n=new at(e);return{__:n.__.bind(n),__n:n.__n.bind(n),setLocale:n.setLocale.bind(n),getLocale:n.getLocale.bind(n),updateLocale:n.updateLocale.bind(n),locale:n.locale}}(ht,it))};var ht;function dt(e,t,n,r){n.assert.notStrictEqual(e,t,r)}function pt(e,t){t.assert.strictEqual(typeof e,"string")}function mt(e){return Object.keys(e)}function gt(e){return!!e&&!!e.then&&"function"==typeof e.then}function yt(e){const t=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,r=t.shift();if(!r)throw new Error(`No command found in: ${e}`);const s={cmd:r.replace(n,""),demanded:[],optional:[]};return t.forEach(((e,r)=>{let i=!1;e=e.replace(/\s/g,""),/\.+[\]>]/.test(e)&&r===t.length-1&&(i=!0),/^\[/.test(e)?s.optional.push({cmd:e.replace(n,"").split("|"),variadic:i}):s.demanded.push({cmd:e.replace(n,"").split("|"),variadic:i})})),s}const vt=["first","second","third","fourth","fifth","sixth"];function bt(e,t,n){try{let r=0;const[s,i,o]="object"==typeof e?[{demanded:[],optional:[]},e,t]:[yt(`cmd ${e}`),t,n],a=[].slice.call(i);for(;a.length&&void 0===a[a.length-1];)a.pop();const c=o||a.length;if(c<s.demanded.length)throw new st(`Not enough arguments provided. Expected ${s.demanded.length} but received ${a.length}.`);const l=s.demanded.length+s.optional.length;if(c>l)throw new st(`Too many arguments provided. Expected max ${l} but received ${c}.`);s.demanded.forEach((e=>{const t=_t(a.shift());0===e.cmd.filter((e=>e===t||"*"===e)).length&&wt(t,e.cmd,r),r+=1})),s.optional.forEach((e=>{if(0===a.length)return;const t=_t(a.shift());0===e.cmd.filter((e=>e===t||"*"===e)).length&&wt(t,e.cmd,r),r+=1}))}catch(e){console.warn(e.stack)}}function _t(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function wt(e,t,n){throw new st(`Invalid ${vt[n]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}class $t{constructor(e){this.globalMiddleware=[],this.frozens=[],this.yargs=e}addMiddleware(e,t,n=!0,r=!1){if(bt("<array|function> [boolean] [boolean] [boolean]",[e,t,n],arguments.length),Array.isArray(e)){for(let r=0;r<e.length;r++){if("function"!=typeof e[r])throw Error("middleware must be a function");const s=e[r];s.applyBeforeValidation=t,s.global=n}Array.prototype.push.apply(this.globalMiddleware,e)}else if("function"==typeof e){const s=e;s.applyBeforeValidation=t,s.global=n,s.mutates=r,this.globalMiddleware.push(e)}return this.yargs}addCoerceMiddleware(e,t){const n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter((e=>{const r=[...n[t]||[],t];return!e.option||!r.includes(e.option)})),e.option=t,this.addMiddleware(e,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){const e=this.frozens.pop();void 0!==e&&(this.globalMiddleware=e)}reset(){this.globalMiddleware=this.globalMiddleware.filter((e=>e.global))}}function St(e,t,n,r){return n.reduce(((e,n)=>{if(n.applyBeforeValidation!==r)return e;if(n.mutates){if(n.applied)return e;n.applied=!0}if(gt(e))return e.then((e=>Promise.all([e,n(e,t)]))).then((([e,t])=>Object.assign(e,t)));{const r=n(e,t);return gt(r)?r.then((t=>Object.assign(e,t))):Object.assign(e,r)}}),e)}function Et(e,t,n=(e=>{throw e})){try{const n="function"==typeof e?e():e;return gt(n)?n.then((e=>t(e))):t(n)}catch(e){return n(e)}}const kt=/(^\*)|(^\$0)/;class Ot{constructor(e,t,n,r){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=r,this.usage=e,this.globalMiddleware=n,this.validation=t}addDirectory(e,t,n,r){"boolean"!=typeof(r=r||{}).recurse&&(r.recurse=!1),Array.isArray(r.extensions)||(r.extensions=["js"]);const s="function"==typeof r.visit?r.visit:e=>e;r.visit=(e,t,n)=>{const r=s(e,t,n);if(r){if(this.requireCache.has(t))return r;this.requireCache.add(t),this.addHandler(r)}return r},this.shim.requireDirectory({require:t,filename:n},e,r)}addHandler(e,t,n,r,s,i){let o=[];const a=function(e){return e?e.map((e=>(e.applyBeforeValidation=!1,e))):[]}(s);if(r=r||(()=>{}),Array.isArray(e))if(function(e){return e.every((e=>"string"==typeof e))}(e))[e,...o]=e;else for(const t of e)this.addHandler(t);else{if(function(e){return"object"==typeof e&&!Array.isArray(e)}(e)){let t=Array.isArray(e.command)||"string"==typeof e.command?e.command:this.moduleName(e);return e.aliases&&(t=[].concat(t).concat(e.aliases)),void this.addHandler(t,this.extractDesc(e),e.builder,e.handler,e.middlewares,e.deprecated)}if(Pt(n))return void this.addHandler([e].concat(o),t,n.builder,n.handler,n.middlewares,n.deprecated)}if("string"==typeof e){const s=yt(e);o=o.map((e=>yt(e).cmd));let c=!1;const l=[s.cmd].concat(o).filter((e=>!kt.test(e)||(c=!0,!1)));0===l.length&&c&&l.push("$0"),c&&(s.cmd=l[0],o=l.slice(1),e=e.replace(kt,s.cmd)),o.forEach((e=>{this.aliasMap[e]=s.cmd})),!1!==t&&this.usage.command(e,t,c,o,i),this.handlers[s.cmd]={original:e,description:t,handler:r,builder:n||{},middlewares:a,deprecated:i,demanded:s.demanded,optional:s.optional},c&&(this.defaultCommand=this.handlers[s.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(e,t,n,r,s,i){const o=this.handlers[e]||this.handlers[this.aliasMap[e]]||this.defaultCommand,a=t.getInternalMethods().getContext(),c=a.commands.slice(),l=!e;e&&(a.commands.push(e),a.fullCommands.push(o.original));const u=this.applyBuilderUpdateUsageAndParse(l,o,t,n.aliases,c,r,s,i);return gt(u)?u.then((e=>this.applyMiddlewareAndGetResult(l,o,e.innerArgv,a,s,e.aliases,t))):this.applyMiddlewareAndGetResult(l,o,u.innerArgv,a,s,u.aliases,t)}applyBuilderUpdateUsageAndParse(e,t,n,r,s,i,o,a){const c=t.builder;let l=n;if(jt(c)){n.getInternalMethods().getUsageInstance().freeze();const u=c(n.getInternalMethods().reset(r),a);if(gt(u))return u.then((r=>{var a;return l=(a=r)&&"function"==typeof a.getInternalMethods?r:n,this.parseAndUpdateUsage(e,t,l,s,i,o)}))}else(function(e){return"object"==typeof e})(c)&&(n.getInternalMethods().getUsageInstance().freeze(),l=n.getInternalMethods().reset(r),Object.keys(t.builder).forEach((e=>{l.option(e,c[e])})));return this.parseAndUpdateUsage(e,t,l,s,i,o)}parseAndUpdateUsage(e,t,n,r,s,i){e&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(r,t),t.description);const o=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,s,i);return gt(o)?o.then((e=>({aliases:n.parsed.aliases,innerArgv:e}))):{aliases:n.parsed.aliases,innerArgv:o}}shouldUpdateUsage(e){return!e.getInternalMethods().getUsageInstance().getUsageDisabled()&&0===e.getInternalMethods().getUsageInstance().getUsage().length}usageFromParentCommandsCommandHandler(e,t){const n=kt.test(t.original)?t.original.replace(kt,"").trim():t.original,r=e.filter((e=>!kt.test(e)));return r.push(n),`$0 ${r.join(" ")}`}handleValidationAndGetResult(e,t,n,r,s,i,o,a){if(!i.getInternalMethods().getHasOutput()){const t=i.getInternalMethods().runValidation(s,a,i.parsed.error,e);n=Et(n,(e=>(t(e),e)))}if(t.handler&&!i.getInternalMethods().getHasOutput()){i.getInternalMethods().setHasOutput();const r=!!i.getOptions().configuration["populate--"];i.getInternalMethods().postProcess(n,r,!1,!1),n=Et(n=St(n,i,o,!1),(e=>{const n=t.handler(e);return gt(n)?n.then((()=>e)):e})),e||i.getInternalMethods().getUsageInstance().cacheHelpMessage(),gt(n)&&!i.getInternalMethods().hasParseCallback()&&n.catch((e=>{try{i.getInternalMethods().getUsageInstance().fail(null,e)}catch(e){}}))}return e||(r.commands.pop(),r.fullCommands.pop()),n}applyMiddlewareAndGetResult(e,t,n,r,s,i,o){let a={};if(s)return n;o.getInternalMethods().getHasOutput()||(a=this.populatePositionals(t,n,r,o));const c=this.globalMiddleware.getMiddleware().slice(0).concat(t.middlewares),l=St(n,o,c,!0);return gt(l)?l.then((n=>this.handleValidationAndGetResult(e,t,n,r,i,o,c,a))):this.handleValidationAndGetResult(e,t,l,r,i,o,c,a)}populatePositionals(e,t,n,r){t._=t._.slice(n.commands.length);const s=e.demanded.slice(0),i=e.optional.slice(0),o={};for(this.validation.positionalCount(s.length,t._.length);s.length;){const e=s.shift();this.populatePositional(e,t,o)}for(;i.length;){const e=i.shift();this.populatePositional(e,t,o)}return t._=n.commands.concat(t._.map((e=>""+e))),this.postProcessPositionals(t,o,this.cmdToParseOptions(e.original),r),o}populatePositional(e,t,n){const r=e.cmd[0];e.variadic?n[r]=t._.splice(0).map(String):t._.length&&(n[r]=[String(t._.shift())])}cmdToParseOptions(e){const t={array:[],default:{},alias:{},demand:{}},n=yt(e);return n.demanded.forEach((e=>{const[n,...r]=e.cmd;e.variadic&&(t.array.push(n),t.default[n]=[]),t.alias[n]=r,t.demand[n]=!0})),n.optional.forEach((e=>{const[n,...r]=e.cmd;e.variadic&&(t.array.push(n),t.default[n]=[]),t.alias[n]=r})),t}postProcessPositionals(e,t,n,r){const s=Object.assign({},r.getOptions());s.default=Object.assign(n.default,s.default);for(const e of Object.keys(n.alias))s.alias[e]=(s.alias[e]||[]).concat(n.alias[e]);s.array=s.array.concat(n.array),s.config={};const i=[];if(Object.keys(t).forEach((e=>{t[e].map((t=>{s.configuration["unknown-options-as-args"]&&(s.key[e]=!0),i.push(`--${e}`),i.push(t)}))})),!i.length)return;const o=Object.assign({},s.configuration,{"populate--":!1}),a=this.shim.Parser.detailed(i,Object.assign({},s,{configuration:o}));if(a.error)r.getInternalMethods().getUsageInstance().fail(a.error.message,a.error);else{const n=Object.keys(t);Object.keys(t).forEach((e=>{n.push(...a.aliases[e])})),Object.keys(a.argv).forEach((s=>{n.includes(s)&&(t[s]||(t[s]=a.argv[s]),!this.isInConfigs(r,s)&&!this.isDefaulted(r,s)&&Object.prototype.hasOwnProperty.call(e,s)&&Object.prototype.hasOwnProperty.call(a.argv,s)&&(Array.isArray(e[s])||Array.isArray(a.argv[s]))?e[s]=[].concat(e[s],a.argv[s]):e[s]=a.argv[s])}))}}isDefaulted(e,t){const{default:n}=e.getOptions();return Object.prototype.hasOwnProperty.call(n,t)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(t))}isInConfigs(e,t){const{configObjects:n}=e.getOptions();return n.some((e=>Object.prototype.hasOwnProperty.call(e,t)))||n.some((e=>Object.prototype.hasOwnProperty.call(e,this.shim.Parser.camelCase(t))))}runDefaultBuilderOn(e){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(e)){const t=kt.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");e.getInternalMethods().getUsageInstance().usage(t,this.defaultCommand.description)}const t=this.defaultCommand.builder;if(jt(t))return t(e,!0);Pt(t)||Object.keys(t).forEach((n=>{e.option(n,t[n])}))}moduleName(e){const t=function(e){if("undefined"==typeof require)return null;for(let t,n=0,r=Object.keys(require.cache);n<r.length;n++)if(t=require.cache[r[n]],t.exports===e)return t;return null}(e);if(!t)throw new Error(`No command name given for module: ${this.shim.inspect(e)}`);return this.commandFromFilename(t.filename)}commandFromFilename(e){return this.shim.path.basename(e,this.shim.path.extname(e))}extractDesc({describe:e,description:t,desc:n}){for(const r of[e,t,n]){if("string"==typeof r||!1===r)return r;dt(r,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){const e=this.frozens.pop();dt(e,void 0,this.shim),({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=e)}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}}function Pt(e){return"object"==typeof e&&!!e.builder&&"function"==typeof e.handler}function jt(e){return"function"==typeof e}function At(e={},t=(()=>!0)){const n={};return mt(e).forEach((r=>{t(r,e[r])&&(n[r]=e[r])})),n}function xt(e){"undefined"!=typeof process&&[process.stdout,process.stderr].forEach((t=>{const n=t;n._handle&&n.isTTY&&"function"==typeof n._handle.setBlocking&&n._handle.setBlocking(e)}))}function Nt(e){return"boolean"==typeof e}function Ct(e){return"object"==typeof e}function Mt(e){return Ct(e)?e.indentation:0}function It(e){return Ct(e)?e.text:e}class Tt{constructor(e,t,n,r){var s,i,o;this.yargs=e,this.usage=t,this.command=n,this.shim=r,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=null!==(o=(null===(s=this.shim.getEnv("SHELL"))||void 0===s?void 0:s.includes("zsh"))||(null===(i=this.shim.getEnv("ZSH_NAME"))||void 0===i?void 0:i.includes("zsh")))&&void 0!==o&&o}defaultCompletion(e,t,n,r){const s=this.command.getCommandHandlers();for(let t=0,n=e.length;t<n;++t)if(s[e[t]]&&s[e[t]].builder){const n=s[e[t]].builder;if(jt(n)){this.indexAfterLastReset=t+1;const e=this.yargs.getInternalMethods().reset();return n(e,!0),e.argv}}const i=[];this.commandCompletions(i,e,n),this.optionCompletions(i,e,t,n),this.choicesFromOptionsCompletions(i,e,t,n),this.choicesFromPositionalsCompletions(i,e,t,n),r(null,i)}commandCompletions(e,t,n){const r=this.yargs.getInternalMethods().getContext().commands;n.match(/^-/)||r[r.length-1]===n||this.previousArgHasChoices(t)||this.usage.getCommands().forEach((n=>{const r=yt(n[0]).cmd;if(-1===t.indexOf(r))if(this.zshShell){const t=n[1]||"";e.push(r.replace(/:/g,"\\:")+":"+t)}else e.push(r)}))}optionCompletions(e,t,n,r){if((r.match(/^-/)||""===r&&0===e.length)&&!this.previousArgHasChoices(t)){const n=this.yargs.getOptions(),s=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(n.key).forEach((i=>{const o=!!n.configuration["boolean-negation"]&&n.boolean.includes(i);s.includes(i)||n.hiddenOptions.includes(i)||this.argsContainKey(t,i,o)||(this.completeOptionKey(i,e,r),o&&n.default[i]&&this.completeOptionKey(`no-${i}`,e,r))}))}}choicesFromOptionsCompletions(e,t,n,r){if(this.previousArgHasChoices(t)){const n=this.getPreviousArgChoices(t);n&&n.length>0&&e.push(...n.map((e=>e.replace(/:/g,"\\:"))))}}choicesFromPositionalsCompletions(e,t,n,r){if(""===r&&e.length>0&&this.previousArgHasChoices(t))return;const s=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],i=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),o=s[n._.length-i-1];if(!o)return;const a=this.yargs.getOptions().choices[o]||[];for(const t of a)t.startsWith(r)&&e.push(t.replace(/:/g,"\\:"))}getPreviousArgChoices(e){if(e.length<1)return;let t=e[e.length-1],n="";if(!t.startsWith("-")&&e.length>1&&(n=t,t=e[e.length-2]),!t.startsWith("-"))return;const r=t.replace(/^-+/,""),s=this.yargs.getOptions(),i=[r,...this.yargs.getAliases()[r]||[]];let o;for(const e of i)if(Object.prototype.hasOwnProperty.call(s.key,e)&&Array.isArray(s.choices[e])){o=s.choices[e];break}return o?o.filter((e=>!n||e.startsWith(n))):void 0}previousArgHasChoices(e){const t=this.getPreviousArgChoices(e);return void 0!==t&&t.length>0}argsContainKey(e,t,n){const r=t=>-1!==e.indexOf((/^[^0-9]$/.test(t)?"-":"--")+t);if(r(t))return!0;if(n&&r(`no-${t}`))return!0;if(this.aliases)for(const e of this.aliases[t])if(r(e))return!0;return!1}completeOptionKey(e,t,n){var r,s,i;const o=this.usage.getDescriptions(),a=!/^--/.test(n)&&/^[^0-9]$/.test(e)?"-":"--";if(this.zshShell){const n=null===(r=null==this?void 0:this.aliases)||void 0===r?void 0:r[e].find((e=>{const t=o[e];return"string"==typeof t&&t.length>0})),c=n?o[n]:void 0,l=null!==(i=null!==(s=o[e])&&void 0!==s?s:c)&&void 0!==i?i:"";t.push(a+`${e.replace(/:/g,"\\:")}:${l.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`)}else t.push(a+e)}customCompletion(e,t,n,r){if(dt(this.customCompletionFunction,null,this.shim),this.customCompletionFunction.length<3){const e=this.customCompletionFunction(n,t);return gt(e)?e.then((e=>{this.shim.process.nextTick((()=>{r(null,e)}))})).catch((e=>{this.shim.process.nextTick((()=>{r(e,void 0)}))})):r(null,e)}return this.customCompletionFunction.length>3?this.customCompletionFunction(n,t,((s=r)=>this.defaultCompletion(e,t,n,s)),(e=>{r(null,e)})):this.customCompletionFunction(n,t,(e=>{r(null,e)}))}getCompletion(e,t){const n=e.length?e[e.length-1]:"",r=this.yargs.parse(e,!0),s=this.customCompletionFunction?r=>this.customCompletion(e,r,n,t):r=>this.defaultCompletion(e,r,n,t);return gt(r)?r.then(s):s(r)}generateCompletionScript(e,t){let n=this.zshShell?'#compdef {{app_name}}\n###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc\n# or {{app_path}} {{completion_command}} >> ~/.zprofile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local reply\n local si=$IFS\n IFS=$\'\n\' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "${words[@]}"))\n IFS=$si\n _describe \'values\' reply\n}\ncompdef _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n':'###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc\n# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local cur_word args type_list\n\n cur_word="${COMP_WORDS[COMP_CWORD]}"\n args=("${COMP_WORDS[@]}")\n\n # ask yargs to generate completions.\n type_list=$({{app_path}} --get-yargs-completions "${args[@]}")\n\n COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )\n\n # if no match was found, fall back to filename completion\n if [ ${#COMPREPLY[@]} -eq 0 ]; then\n COMPREPLY=()\n fi\n\n return 0\n}\ncomplete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n';const r=this.shim.path.basename(e);return e.match(/\.js$/)&&(e=`./${e}`),n=n.replace(/{{app_name}}/g,r),n=n.replace(/{{completion_command}}/g,t),n.replace(/{{app_path}}/g,e)}registerFunction(e){this.customCompletionFunction=e}setParsed(e){this.aliases=e.aliases}}function Dt(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;const n=[];let r,s;for(r=0;r<=t.length;r++)n[r]=[r];for(s=0;s<=e.length;s++)n[0][s]=s;for(r=1;r<=t.length;r++)for(s=1;s<=e.length;s++)t.charAt(r-1)===e.charAt(s-1)?n[r][s]=n[r-1][s-1]:r>1&&s>1&&t.charAt(r-2)===e.charAt(s-1)&&t.charAt(r-1)===e.charAt(s-2)?n[r][s]=n[r-2][s-2]+1:n[r][s]=Math.min(n[r-1][s-1]+1,Math.min(n[r][s-1]+1,n[r-1][s]+1));return n[t.length][e.length]}const Lt=["$0","--","_"];let Rt,Ft=[];function qt(e,t,n,r){Rt=r;let s={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if("string"!=typeof e.extends)return s;const r=/\.json|\..*rc$/.test(e.extends);let i=null;if(r)i=function(e,t){return Rt.path.resolve(e,t)}(t,e.extends);else try{i=require.resolve(e.extends)}catch(t){return e}!function(e){if(Ft.indexOf(e)>-1)throw new st(`Circular extended configurations: '${e}'.`)}(i),Ft.push(i),s=r?JSON.parse(Rt.readFileSync(i,"utf8")):require(e.extends),delete e.extends,s=qt(s,Rt.path.dirname(i),n,Rt)}return Ft=[],n?Ut(s,e):Object.assign({},s,e)}function Ut(e,t){const n={};function r(e){return e&&"object"==typeof e&&!Array.isArray(e)}Object.assign(n,e);for(const s of Object.keys(t))r(t[s])&&r(n[s])?n[s]=Ut(e[s],t[s]):n[s]=t[s];return n}var zt,Bt,Vt,Kt,Wt,Ht,Gt,Jt,Yt,Qt,Zt,Xt,en,tn,nn,rn,sn,on,an,cn,ln,un,fn,hn,dn,pn,mn,gn,yn,vn,bn,_n,wn,$n,Sn,En=function(e,t,n,r,s){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?s.call(e,n):s?s.value=n:t.set(e,n),n},kn=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};const On=Symbol("copyDoubleDash"),Pn=Symbol("copyDoubleDash"),jn=Symbol("deleteFromParserHintObject"),An=Symbol("emitWarning"),xn=Symbol("freeze"),Nn=Symbol("getDollarZero"),Cn=Symbol("getParserConfiguration"),Mn=Symbol("getUsageConfiguration"),In=Symbol("guessLocale"),Tn=Symbol("guessVersion"),Dn=Symbol("parsePositionalNumbers"),Ln=Symbol("pkgUp"),Rn=Symbol("populateParserHintArray"),Fn=Symbol("populateParserHintSingleValueDictionary"),qn=Symbol("populateParserHintArrayDictionary"),Un=Symbol("populateParserHintDictionary"),zn=Symbol("sanitizeKey"),Bn=Symbol("setKey"),Vn=Symbol("unfreeze"),Kn=Symbol("validateAsync"),Wn=Symbol("getCommandInstance"),Hn=Symbol("getContext"),Gn=Symbol("getHasOutput"),Jn=Symbol("getLoggerInstance"),Yn=Symbol("getParseContext"),Qn=Symbol("getUsageInstance"),Zn=Symbol("getValidationInstance"),Xn=Symbol("hasParseCallback"),er=Symbol("isGlobalContext"),tr=Symbol("postProcess"),nr=Symbol("rebase"),rr=Symbol("reset"),sr=Symbol("runYargsParserAndExecuteCommands"),ir=Symbol("runValidation"),or=Symbol("setHasOutput"),ar=Symbol("kTrackManuallySetKeys");class cr{constructor(e=[],t,n,r){this.customScriptName=!1,this.parsed=!1,zt.set(this,void 0),Bt.set(this,void 0),Vt.set(this,{commands:[],fullCommands:[]}),Kt.set(this,null),Wt.set(this,null),Ht.set(this,"show-hidden"),Gt.set(this,null),Jt.set(this,!0),Yt.set(this,{}),Qt.set(this,!0),Zt.set(this,[]),Xt.set(this,void 0),en.set(this,{}),tn.set(this,!1),nn.set(this,null),rn.set(this,!0),sn.set(this,void 0),on.set(this,""),an.set(this,void 0),cn.set(this,void 0),ln.set(this,{}),un.set(this,null),fn.set(this,null),hn.set(this,{}),dn.set(this,{}),pn.set(this,void 0),mn.set(this,!1),gn.set(this,void 0),yn.set(this,!1),vn.set(this,!1),bn.set(this,!1),_n.set(this,void 0),wn.set(this,{}),$n.set(this,null),Sn.set(this,void 0),En(this,gn,r,"f"),En(this,pn,e,"f"),En(this,Bt,t,"f"),En(this,cn,n,"f"),En(this,Xt,new $t(this),"f"),this.$0=this[Nn](),this[rr](),En(this,zt,kn(this,zt,"f"),"f"),En(this,_n,kn(this,_n,"f"),"f"),En(this,Sn,kn(this,Sn,"f"),"f"),En(this,an,kn(this,an,"f"),"f"),kn(this,an,"f").showHiddenOpt=kn(this,Ht,"f"),En(this,sn,this[Pn](),"f")}addHelpOpt(e,t){return bt("[string|boolean] [string]",[e,t],arguments.length),kn(this,nn,"f")&&(this[jn](kn(this,nn,"f")),En(this,nn,null,"f")),!1===e&&void 0===t||(En(this,nn,"string"==typeof e?e:"help","f"),this.boolean(kn(this,nn,"f")),this.describe(kn(this,nn,"f"),t||kn(this,_n,"f").deferY18nLookup("Show help"))),this}help(e,t){return this.addHelpOpt(e,t)}addShowHiddenOpt(e,t){if(bt("[string|boolean] [string]",[e,t],arguments.length),!1===e&&void 0===t)return this;const n="string"==typeof e?e:kn(this,Ht,"f");return this.boolean(n),this.describe(n,t||kn(this,_n,"f").deferY18nLookup("Show hidden options")),kn(this,an,"f").showHiddenOpt=n,this}showHidden(e,t){return this.addShowHiddenOpt(e,t)}alias(e,t){return bt("<object|string|array> [string|array]",[e,t],arguments.length),this[qn](this.alias.bind(this),"alias",e,t),this}array(e){return bt("<array|string>",[e],arguments.length),this[Rn]("array",e),this[ar](e),this}boolean(e){return bt("<array|string>",[e],arguments.length),this[Rn]("boolean",e),this[ar](e),this}check(e,t){return bt("<function> [boolean]",[e,t],arguments.length),this.middleware(((t,n)=>Et((()=>e(t,n.getOptions())),(n=>(n?("string"==typeof n||n instanceof Error)&&kn(this,_n,"f").fail(n.toString(),n):kn(this,_n,"f").fail(kn(this,gn,"f").y18n.__("Argument check failed: %s",e.toString())),t)),(e=>(kn(this,_n,"f").fail(e.message?e.message:e.toString(),e),t)))),!1,t),this}choices(e,t){return bt("<object|string|array> [string|array]",[e,t],arguments.length),this[qn](this.choices.bind(this),"choices",e,t),this}coerce(e,t){if(bt("<object|string|array> [function]",[e,t],arguments.length),Array.isArray(e)){if(!t)throw new st("coerce callback must be provided");for(const n of e)this.coerce(n,t);return this}if("object"==typeof e){for(const t of Object.keys(e))this.coerce(t,e[t]);return this}if(!t)throw new st("coerce callback must be provided");return kn(this,an,"f").key[e]=!0,kn(this,Xt,"f").addCoerceMiddleware(((n,r)=>{let s;return Object.prototype.hasOwnProperty.call(n,e)?Et((()=>(s=r.getAliases(),t(n[e]))),(t=>{n[e]=t;const i=r.getInternalMethods().getParserConfiguration()["strip-aliased"];if(s[e]&&!0!==i)for(const r of s[e])n[r]=t;return n}),(e=>{throw new st(e.message)})):n}),e),this}conflicts(e,t){return bt("<string|object> [string|array]",[e,t],arguments.length),kn(this,Sn,"f").conflicts(e,t),this}config(e="config",t,n){return bt("[object|string] [string|function] [function]",[e,t,n],arguments.length),"object"!=typeof e||Array.isArray(e)?("function"==typeof t&&(n=t,t=void 0),this.describe(e,t||kn(this,_n,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(e)?e:[e]).forEach((e=>{kn(this,an,"f").config[e]=n||!0})),this):(e=qt(e,kn(this,Bt,"f"),this[Cn]()["deep-merge-config"]||!1,kn(this,gn,"f")),kn(this,an,"f").configObjects=(kn(this,an,"f").configObjects||[]).concat(e),this)}completion(e,t,n){return bt("[string] [string|boolean|function] [function]",[e,t,n],arguments.length),"function"==typeof t&&(n=t,t=void 0),En(this,Wt,e||kn(this,Wt,"f")||"completion","f"),t||!1===t||(t="generate completion script"),this.command(kn(this,Wt,"f"),t),n&&kn(this,Kt,"f").registerFunction(n),this}command(e,t,n,r,s,i){return bt("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[e,t,n,r,s,i],arguments.length),kn(this,zt,"f").addHandler(e,t,n,r,s,i),this}commands(e,t,n,r,s,i){return this.command(e,t,n,r,s,i)}commandDir(e,t){bt("<string> [object]",[e,t],arguments.length);const n=kn(this,cn,"f")||kn(this,gn,"f").require;return kn(this,zt,"f").addDirectory(e,n,kn(this,gn,"f").getCallerFile(),t),this}count(e){return bt("<array|string>",[e],arguments.length),this[Rn]("count",e),this[ar](e),this}default(e,t,n){return bt("<object|string|array> [*] [string]",[e,t,n],arguments.length),n&&(pt(e,kn(this,gn,"f")),kn(this,an,"f").defaultDescription[e]=n),"function"==typeof t&&(pt(e,kn(this,gn,"f")),kn(this,an,"f").defaultDescription[e]||(kn(this,an,"f").defaultDescription[e]=kn(this,_n,"f").functionDescription(t)),t=t.call()),this[Fn](this.default.bind(this),"default",e,t),this}defaults(e,t,n){return this.default(e,t,n)}demandCommand(e=1,t,n,r){return bt("[number] [number|string] [string|null|undefined] [string|null|undefined]",[e,t,n,r],arguments.length),"number"!=typeof t&&(n=t,t=1/0),this.global("_",!1),kn(this,an,"f").demandedCommands._={min:e,max:t,minMsg:n,maxMsg:r},this}demand(e,t,n){return Array.isArray(t)?(t.forEach((e=>{dt(n,!0,kn(this,gn,"f")),this.demandOption(e,n)})),t=1/0):"number"!=typeof t&&(n=t,t=1/0),"number"==typeof e?(dt(n,!0,kn(this,gn,"f")),this.demandCommand(e,t,n,n)):Array.isArray(e)?e.forEach((e=>{dt(n,!0,kn(this,gn,"f")),this.demandOption(e,n)})):"string"==typeof n?this.demandOption(e,n):!0!==n&&void 0!==n||this.demandOption(e),this}demandOption(e,t){return bt("<object|string|array> [string]",[e,t],arguments.length),this[Fn](this.demandOption.bind(this),"demandedOptions",e,t),this}deprecateOption(e,t){return bt("<string> [string|boolean]",[e,t],arguments.length),kn(this,an,"f").deprecatedOptions[e]=t,this}describe(e,t){return bt("<object|string|array> [string]",[e,t],arguments.length),this[Bn](e,!0),kn(this,_n,"f").describe(e,t),this}detectLocale(e){return bt("<boolean>",[e],arguments.length),En(this,Jt,e,"f"),this}env(e){return bt("[string|boolean]",[e],arguments.length),!1===e?delete kn(this,an,"f").envPrefix:kn(this,an,"f").envPrefix=e||"",this}epilogue(e){return bt("<string>",[e],arguments.length),kn(this,_n,"f").epilog(e),this}epilog(e){return this.epilogue(e)}example(e,t){return bt("<string|array> [string]",[e,t],arguments.length),Array.isArray(e)?e.forEach((e=>this.example(...e))):kn(this,_n,"f").example(e,t),this}exit(e,t){En(this,tn,!0,"f"),En(this,Gt,t,"f"),kn(this,Qt,"f")&&kn(this,gn,"f").process.exit(e)}exitProcess(e=!0){return bt("[boolean]",[e],arguments.length),En(this,Qt,e,"f"),this}fail(e){if(bt("<function|boolean>",[e],arguments.length),"boolean"==typeof e&&!1!==e)throw new st("Invalid first argument. Expected function or boolean 'false'");return kn(this,_n,"f").failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,t){return bt("<array> [function]",[e,t],arguments.length),t?kn(this,Kt,"f").getCompletion(e,t):new Promise(((t,n)=>{kn(this,Kt,"f").getCompletion(e,((e,r)=>{e?n(e):t(r)}))}))}getDemandedOptions(){return bt([],0),kn(this,an,"f").demandedOptions}getDemandedCommands(){return bt([],0),kn(this,an,"f").demandedCommands}getDeprecatedOptions(){return bt([],0),kn(this,an,"f").deprecatedOptions}getDetectLocale(){return kn(this,Jt,"f")}getExitProcess(){return kn(this,Qt,"f")}getGroups(){return Object.assign({},kn(this,en,"f"),kn(this,dn,"f"))}getHelp(){if(En(this,tn,!0,"f"),!kn(this,_n,"f").hasCachedHelpMessage()){if(!this.parsed){const e=this[sr](kn(this,pn,"f"),void 0,void 0,0,!0);if(gt(e))return e.then((()=>kn(this,_n,"f").help()))}const e=kn(this,zt,"f").runDefaultBuilderOn(this);if(gt(e))return e.then((()=>kn(this,_n,"f").help()))}return Promise.resolve(kn(this,_n,"f").help())}getOptions(){return kn(this,an,"f")}getStrict(){return kn(this,yn,"f")}getStrictCommands(){return kn(this,vn,"f")}getStrictOptions(){return kn(this,bn,"f")}global(e,t){return bt("<string|array> [boolean]",[e,t],arguments.length),e=[].concat(e),!1!==t?kn(this,an,"f").local=kn(this,an,"f").local.filter((t=>-1===e.indexOf(t))):e.forEach((e=>{kn(this,an,"f").local.includes(e)||kn(this,an,"f").local.push(e)})),this}group(e,t){bt("<string|array> <string>",[e,t],arguments.length);const n=kn(this,dn,"f")[t]||kn(this,en,"f")[t];kn(this,dn,"f")[t]&&delete kn(this,dn,"f")[t];const r={};return kn(this,en,"f")[t]=(n||[]).concat(e).filter((e=>!r[e]&&(r[e]=!0))),this}hide(e){return bt("<string>",[e],arguments.length),kn(this,an,"f").hiddenOptions.push(e),this}implies(e,t){return bt("<string|object> [number|string|array]",[e,t],arguments.length),kn(this,Sn,"f").implies(e,t),this}locale(e){return bt("[string]",[e],arguments.length),void 0===e?(this[In](),kn(this,gn,"f").y18n.getLocale()):(En(this,Jt,!1,"f"),kn(this,gn,"f").y18n.setLocale(e),this)}middleware(e,t,n){return kn(this,Xt,"f").addMiddleware(e,!!t,n)}nargs(e,t){return bt("<string|object|array> [number]",[e,t],arguments.length),this[Fn](this.nargs.bind(this),"narg",e,t),this}normalize(e){return bt("<array|string>",[e],arguments.length),this[Rn]("normalize",e),this}number(e){return bt("<array|string>",[e],arguments.length),this[Rn]("number",e),this[ar](e),this}option(e,t){if(bt("<string|object> [object]",[e,t],arguments.length),"object"==typeof e)Object.keys(e).forEach((t=>{this.options(t,e[t])}));else{"object"!=typeof t&&(t={}),this[ar](e),!kn(this,$n,"f")||"version"!==e&&"version"!==(null==t?void 0:t.alias)||this[An](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join("\n"),void 0,"versionWarning"),kn(this,an,"f").key[e]=!0,t.alias&&this.alias(e,t.alias);const n=t.deprecate||t.deprecated;n&&this.deprecateOption(e,n);const r=t.demand||t.required||t.require;r&&this.demand(e,r),t.demandOption&&this.demandOption(e,"string"==typeof t.demandOption?t.demandOption:void 0),t.conflicts&&this.conflicts(e,t.conflicts),"default"in t&&this.default(e,t.default),void 0!==t.implies&&this.implies(e,t.implies),void 0!==t.nargs&&this.nargs(e,t.nargs),t.config&&this.config(e,t.configParser),t.normalize&&this.normalize(e),t.choices&&this.choices(e,t.choices),t.coerce&&this.coerce(e,t.coerce),t.group&&this.group(e,t.group),(t.boolean||"boolean"===t.type)&&(this.boolean(e),t.alias&&this.boolean(t.alias)),(t.array||"array"===t.type)&&(this.array(e),t.alias&&this.array(t.alias)),(t.number||"number"===t.type)&&(this.number(e),t.alias&&this.number(t.alias)),(t.string||"string"===t.type)&&(this.string(e),t.alias&&this.string(t.alias)),(t.count||"count"===t.type)&&this.count(e),"boolean"==typeof t.global&&this.global(e,t.global),t.defaultDescription&&(kn(this,an,"f").defaultDescription[e]=t.defaultDescription),t.skipValidation&&this.skipValidation(e);const s=t.describe||t.description||t.desc,i=kn(this,_n,"f").getDescriptions();Object.prototype.hasOwnProperty.call(i,e)&&"string"!=typeof s||this.describe(e,s),t.hidden&&this.hide(e),t.requiresArg&&this.requiresArg(e)}return this}options(e,t){return this.option(e,t)}parse(e,t,n){bt("[string|array] [function|boolean|object] [function]",[e,t,n],arguments.length),this[xn](),void 0===e&&(e=kn(this,pn,"f")),"object"==typeof t&&(En(this,fn,t,"f"),t=n),"function"==typeof t&&(En(this,un,t,"f"),t=!1),t||En(this,pn,e,"f"),kn(this,un,"f")&&En(this,Qt,!1,"f");const r=this[sr](e,!!t),s=this.parsed;return kn(this,Kt,"f").setParsed(this.parsed),gt(r)?r.then((e=>(kn(this,un,"f")&&kn(this,un,"f").call(this,kn(this,Gt,"f"),e,kn(this,on,"f")),e))).catch((e=>{throw kn(this,un,"f")&&kn(this,un,"f")(e,this.parsed.argv,kn(this,on,"f")),e})).finally((()=>{this[Vn](),this.parsed=s})):(kn(this,un,"f")&&kn(this,un,"f").call(this,kn(this,Gt,"f"),r,kn(this,on,"f")),this[Vn](),this.parsed=s,r)}parseAsync(e,t,n){const r=this.parse(e,t,n);return gt(r)?r:Promise.resolve(r)}parseSync(e,t,n){const r=this.parse(e,t,n);if(gt(r))throw new st(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return r}parserConfiguration(e){return bt("<object>",[e],arguments.length),En(this,ln,e,"f"),this}pkgConf(e,t){bt("<string> [string]",[e,t],arguments.length);let n=null;const r=this[Ln](t||kn(this,Bt,"f"));return r[e]&&"object"==typeof r[e]&&(n=qt(r[e],t||kn(this,Bt,"f"),this[Cn]()["deep-merge-config"]||!1,kn(this,gn,"f")),kn(this,an,"f").configObjects=(kn(this,an,"f").configObjects||[]).concat(n)),this}positional(e,t){bt("<string> <object>",[e,t],arguments.length);const n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];t=At(t,((e,t)=>!("type"===e&&!["string","number","boolean"].includes(t))&&n.includes(e)));const r=kn(this,Vt,"f").fullCommands[kn(this,Vt,"f").fullCommands.length-1],s=r?kn(this,zt,"f").cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return mt(s).forEach((n=>{const r=s[n];Array.isArray(r)?-1!==r.indexOf(e)&&(t[n]=!0):r[e]&&!(n in t)&&(t[n]=r[e])})),this.group(e,kn(this,_n,"f").getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return bt("[boolean]",[e],arguments.length),En(this,mn,e,"f"),this}required(e,t,n){return this.demand(e,t,n)}require(e,t,n){return this.demand(e,t,n)}requiresArg(e){return bt("<array|string|object> [number]",[e],arguments.length),"string"==typeof e&&kn(this,an,"f").narg[e]||this[Fn](this.requiresArg.bind(this),"narg",e,NaN),this}showCompletionScript(e,t){return bt("[string] [string]",[e,t],arguments.length),e=e||this.$0,kn(this,sn,"f").log(kn(this,Kt,"f").generateCompletionScript(e,t||kn(this,Wt,"f")||"completion")),this}showHelp(e){if(bt("[string|function]",[e],arguments.length),En(this,tn,!0,"f"),!kn(this,_n,"f").hasCachedHelpMessage()){if(!this.parsed){const t=this[sr](kn(this,pn,"f"),void 0,void 0,0,!0);if(gt(t))return t.then((()=>{kn(this,_n,"f").showHelp(e)})),this}const t=kn(this,zt,"f").runDefaultBuilderOn(this);if(gt(t))return t.then((()=>{kn(this,_n,"f").showHelp(e)})),this}return kn(this,_n,"f").showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,t){return bt("[boolean|string] [string]",[e,t],arguments.length),kn(this,_n,"f").showHelpOnFail(e,t),this}showVersion(e){return bt("[string|function]",[e],arguments.length),kn(this,_n,"f").showVersion(e),this}skipValidation(e){return bt("<array|string>",[e],arguments.length),this[Rn]("skipValidation",e),this}strict(e){return bt("[boolean]",[e],arguments.length),En(this,yn,!1!==e,"f"),this}strictCommands(e){return bt("[boolean]",[e],arguments.length),En(this,vn,!1!==e,"f"),this}strictOptions(e){return bt("[boolean]",[e],arguments.length),En(this,bn,!1!==e,"f"),this}string(e){return bt("<array|string>",[e],arguments.length),this[Rn]("string",e),this[ar](e),this}terminalWidth(){return bt([],0),kn(this,gn,"f").process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return bt("<object>",[e],arguments.length),En(this,Jt,!1,"f"),kn(this,gn,"f").y18n.updateLocale(e),this}usage(e,t,n,r){if(bt("<string|null|undefined> [string|boolean] [function|object] [function]",[e,t,n,r],arguments.length),void 0!==t){if(dt(e,null,kn(this,gn,"f")),(e||"").match(/^\$0( |$)/))return this.command(e,t,n,r);throw new st(".usage() description must start with $0 if being used as alias for .command()")}return kn(this,_n,"f").usage(e),this}usageConfiguration(e){return bt("<object>",[e],arguments.length),En(this,wn,e,"f"),this}version(e,t,n){const r="version";if(bt("[boolean|string] [string] [string]",[e,t,n],arguments.length),kn(this,$n,"f")&&(this[jn](kn(this,$n,"f")),kn(this,_n,"f").version(void 0),En(this,$n,null,"f")),0===arguments.length)n=this[Tn](),e=r;else if(1===arguments.length){if(!1===e)return this;n=e,e=r}else 2===arguments.length&&(n=t,t=void 0);return En(this,$n,"string"==typeof e?e:r,"f"),t=t||kn(this,_n,"f").deferY18nLookup("Show version number"),kn(this,_n,"f").version(n||void 0),this.boolean(kn(this,$n,"f")),this.describe(kn(this,$n,"f"),t),this}wrap(e){return bt("<number|null|undefined>",[e],arguments.length),kn(this,_n,"f").wrap(e),this}[(zt=new WeakMap,Bt=new WeakMap,Vt=new WeakMap,Kt=new WeakMap,Wt=new WeakMap,Ht=new WeakMap,Gt=new WeakMap,Jt=new WeakMap,Yt=new WeakMap,Qt=new WeakMap,Zt=new WeakMap,Xt=new WeakMap,en=new WeakMap,tn=new WeakMap,nn=new WeakMap,rn=new WeakMap,sn=new WeakMap,on=new WeakMap,an=new WeakMap,cn=new WeakMap,ln=new WeakMap,un=new WeakMap,fn=new WeakMap,hn=new WeakMap,dn=new WeakMap,pn=new WeakMap,mn=new WeakMap,gn=new WeakMap,yn=new WeakMap,vn=new WeakMap,bn=new WeakMap,_n=new WeakMap,wn=new WeakMap,$n=new WeakMap,Sn=new WeakMap,On)](e){if(!e._||!e["--"])return e;e._.push.apply(e._,e["--"]);try{delete e["--"]}catch(e){}return e}[Pn](){return{log:(...e)=>{this[Xn]()||console.log(...e),En(this,tn,!0,"f"),kn(this,on,"f").length&&En(this,on,kn(this,on,"f")+"\n","f"),En(this,on,kn(this,on,"f")+e.join(" "),"f")},error:(...e)=>{this[Xn]()||console.error(...e),En(this,tn,!0,"f"),kn(this,on,"f").length&&En(this,on,kn(this,on,"f")+"\n","f"),En(this,on,kn(this,on,"f")+e.join(" "),"f")}}}[jn](e){mt(kn(this,an,"f")).forEach((t=>{if("configObjects"===t)return;const n=kn(this,an,"f")[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):"object"==typeof n&&delete n[e]})),delete kn(this,_n,"f").getDescriptions()[e]}[An](e,t,n){kn(this,Yt,"f")[n]||(kn(this,gn,"f").process.emitWarning(e,t),kn(this,Yt,"f")[n]=!0)}[xn](){kn(this,Zt,"f").push({options:kn(this,an,"f"),configObjects:kn(this,an,"f").configObjects.slice(0),exitProcess:kn(this,Qt,"f"),groups:kn(this,en,"f"),strict:kn(this,yn,"f"),strictCommands:kn(this,vn,"f"),strictOptions:kn(this,bn,"f"),completionCommand:kn(this,Wt,"f"),output:kn(this,on,"f"),exitError:kn(this,Gt,"f"),hasOutput:kn(this,tn,"f"),parsed:this.parsed,parseFn:kn(this,un,"f"),parseContext:kn(this,fn,"f")}),kn(this,_n,"f").freeze(),kn(this,Sn,"f").freeze(),kn(this,zt,"f").freeze(),kn(this,Xt,"f").freeze()}[Nn](){let e,t="";return e=/\b(node|iojs|electron)(\.exe)?$/.test(kn(this,gn,"f").process.argv()[0])?kn(this,gn,"f").process.argv().slice(1,2):kn(this,gn,"f").process.argv().slice(0,1),t=e.map((e=>{const t=this[nr](kn(this,Bt,"f"),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e})).join(" ").trim(),kn(this,gn,"f").getEnv("_")&&kn(this,gn,"f").getProcessArgvBin()===kn(this,gn,"f").getEnv("_")&&(t=kn(this,gn,"f").getEnv("_").replace(`${kn(this,gn,"f").path.dirname(kn(this,gn,"f").process.execPath())}/`,"")),t}[Cn](){return kn(this,ln,"f")}[Mn](){return kn(this,wn,"f")}[In](){if(!kn(this,Jt,"f"))return;const e=kn(this,gn,"f").getEnv("LC_ALL")||kn(this,gn,"f").getEnv("LC_MESSAGES")||kn(this,gn,"f").getEnv("LANG")||kn(this,gn,"f").getEnv("LANGUAGE")||"en_US";this.locale(e.replace(/[.:].*/,""))}[Tn](){return this[Ln]().version||"unknown"}[Dn](e){const t=e["--"]?e["--"]:e._;for(let e,n=0;void 0!==(e=t[n]);n++)kn(this,gn,"f").Parser.looksLikeNumber(e)&&Number.isSafeInteger(Math.floor(parseFloat(`${e}`)))&&(t[n]=Number(e));return e}[Ln](e){const t=e||"*";if(kn(this,hn,"f")[t])return kn(this,hn,"f")[t];let n={};try{let t=e||kn(this,gn,"f").mainFilename;!e&&kn(this,gn,"f").path.extname(t)&&(t=kn(this,gn,"f").path.dirname(t));const r=kn(this,gn,"f").findUp(t,((e,t)=>t.includes("package.json")?"package.json":void 0));dt(r,void 0,kn(this,gn,"f")),n=JSON.parse(kn(this,gn,"f").readFileSync(r,"utf8"))}catch(e){}return kn(this,hn,"f")[t]=n||{},kn(this,hn,"f")[t]}[Rn](e,t){(t=[].concat(t)).forEach((t=>{t=this[zn](t),kn(this,an,"f")[e].push(t)}))}[Fn](e,t,n,r){this[Un](e,t,n,r,((e,t,n)=>{kn(this,an,"f")[e][t]=n}))}[qn](e,t,n,r){this[Un](e,t,n,r,((e,t,n)=>{kn(this,an,"f")[e][t]=(kn(this,an,"f")[e][t]||[]).concat(n)}))}[Un](e,t,n,r,s){if(Array.isArray(n))n.forEach((t=>{e(t,r)}));else if((e=>"object"==typeof e)(n))for(const t of mt(n))e(t,n[t]);else s(t,this[zn](n),r)}[zn](e){return"__proto__"===e?"___proto___":e}[Bn](e,t){return this[Fn](this[Bn].bind(this),"key",e,t),this}[Vn](){var e,t,n,r,s,i,o,a,c,l,u,f;const h=kn(this,Zt,"f").pop();let d;dt(h,void 0,kn(this,gn,"f")),e=this,t=this,n=this,r=this,s=this,i=this,o=this,a=this,c=this,l=this,u=this,f=this,({options:{set value(t){En(e,an,t,"f")}}.value,configObjects:d,exitProcess:{set value(e){En(t,Qt,e,"f")}}.value,groups:{set value(e){En(n,en,e,"f")}}.value,output:{set value(e){En(r,on,e,"f")}}.value,exitError:{set value(e){En(s,Gt,e,"f")}}.value,hasOutput:{set value(e){En(i,tn,e,"f")}}.value,parsed:this.parsed,strict:{set value(e){En(o,yn,e,"f")}}.value,strictCommands:{set value(e){En(a,vn,e,"f")}}.value,strictOptions:{set value(e){En(c,bn,e,"f")}}.value,completionCommand:{set value(e){En(l,Wt,e,"f")}}.value,parseFn:{set value(e){En(u,un,e,"f")}}.value,parseContext:{set value(e){En(f,fn,e,"f")}}.value}=h),kn(this,an,"f").configObjects=d,kn(this,_n,"f").unfreeze(),kn(this,Sn,"f").unfreeze(),kn(this,zt,"f").unfreeze(),kn(this,Xt,"f").unfreeze()}[Kn](e,t){return Et(t,(t=>(e(t),t)))}getInternalMethods(){return{getCommandInstance:this[Wn].bind(this),getContext:this[Hn].bind(this),getHasOutput:this[Gn].bind(this),getLoggerInstance:this[Jn].bind(this),getParseContext:this[Yn].bind(this),getParserConfiguration:this[Cn].bind(this),getUsageConfiguration:this[Mn].bind(this),getUsageInstance:this[Qn].bind(this),getValidationInstance:this[Zn].bind(this),hasParseCallback:this[Xn].bind(this),isGlobalContext:this[er].bind(this),postProcess:this[tr].bind(this),reset:this[rr].bind(this),runValidation:this[ir].bind(this),runYargsParserAndExecuteCommands:this[sr].bind(this),setHasOutput:this[or].bind(this)}}[Wn](){return kn(this,zt,"f")}[Hn](){return kn(this,Vt,"f")}[Gn](){return kn(this,tn,"f")}[Jn](){return kn(this,sn,"f")}[Yn](){return kn(this,fn,"f")||{}}[Qn](){return kn(this,_n,"f")}[Zn](){return kn(this,Sn,"f")}[Xn](){return!!kn(this,un,"f")}[er](){return kn(this,rn,"f")}[tr](e,t,n,r){return n||gt(e)||(t||(e=this[On](e)),(this[Cn]()["parse-positional-numbers"]||void 0===this[Cn]()["parse-positional-numbers"])&&(e=this[Dn](e)),r&&(e=St(e,this,kn(this,Xt,"f").getMiddleware(),!1))),e}[rr](e={}){En(this,an,kn(this,an,"f")||{},"f");const t={};t.local=kn(this,an,"f").local||[],t.configObjects=kn(this,an,"f").configObjects||[];const n={};return t.local.forEach((t=>{n[t]=!0,(e[t]||[]).forEach((e=>{n[e]=!0}))})),Object.assign(kn(this,dn,"f"),Object.keys(kn(this,en,"f")).reduce(((e,t)=>{const r=kn(this,en,"f")[t].filter((e=>!(e in n)));return r.length>0&&(e[t]=r),e}),{})),En(this,en,{},"f"),["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"].forEach((e=>{t[e]=(kn(this,an,"f")[e]||[]).filter((e=>!n[e]))})),["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"].forEach((e=>{t[e]=At(kn(this,an,"f")[e],(e=>!n[e]))})),t.envPrefix=kn(this,an,"f").envPrefix,En(this,an,t,"f"),En(this,_n,kn(this,_n,"f")?kn(this,_n,"f").reset(n):function(e,t){const n=t.y18n.__,r={},s=[];r.failFn=function(e){s.push(e)};let i=null,o=null,a=!0;r.showHelpOnFail=function(t=!0,n){const[s,c]="string"==typeof t?[!0,t]:[t,n];return e.getInternalMethods().isGlobalContext()&&(o=c),i=c,a=s,r};let c=!1;r.fail=function(t,n){const l=e.getInternalMethods().getLoggerInstance();if(!s.length){if(e.getExitProcess()&&xt(!0),!c){c=!0,a&&(e.showHelp("error"),l.error()),(t||n)&&l.error(t||n);const r=i||o;r&&((t||n)&&l.error(""),l.error(r))}if(n=n||new st(t),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,n);throw n}for(let e=s.length-1;e>=0;--e){const i=s[e];if(Nt(i)){if(n)throw n;if(t)throw Error(t)}else i(t,n,r)}};let l=[],u=!1;r.usage=(e,t)=>null===e?(u=!0,l=[],r):(u=!1,l.push([e,t||""]),r),r.getUsage=()=>l,r.getUsageDisabled=()=>u,r.getPositionalGroupName=()=>n("Positionals:");let f=[];r.example=(e,t)=>{f.push([e,t||""])};let h=[];r.command=function(e,t,n,r,s=!1){n&&(h=h.map((e=>(e[2]=!1,e)))),h.push([e,t||"",n,r,s])},r.getCommands=()=>h;let d={};r.describe=function(e,t){Array.isArray(e)?e.forEach((e=>{r.describe(e,t)})):"object"==typeof e?Object.keys(e).forEach((t=>{r.describe(t,e[t])})):d[e]=t},r.getDescriptions=()=>d;let p=[];r.epilog=e=>{p.push(e)};let m,g=!1;r.wrap=e=>{g=!0,m=e},r.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(g||(m=t.process.stdColumns?Math.min(80,t.process.stdColumns):80,g=!0),m);const y="__yargsString__:";function v(e,n,r){let s=0;return Array.isArray(e)||(e=Object.values(e).map((e=>[e]))),e.forEach((e=>{s=Math.max(t.stringWidth(r?`${r} ${It(e[0])}`:It(e[0]))+Mt(e[0]),s)})),n&&(s=Math.min(s,parseInt((.5*n).toString(),10))),s}let b;function _(t){return e.getOptions().hiddenOptions.indexOf(t)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}function w(e,t){let r=`[${n("default:")} `;if(void 0===e&&!t)return null;if(t)r+=t;else switch(typeof e){case"string":r+=`"${e}"`;break;case"object":r+=JSON.stringify(e);break;default:r+=e}return`${r}]`}r.deferY18nLookup=e=>y+e,r.help=function(){if(b)return b;!function(){const t=e.getDemandedOptions(),n=e.getOptions();(Object.keys(n.alias)||[]).forEach((s=>{n.alias[s].forEach((i=>{d[i]&&r.describe(s,d[i]),i in t&&e.demandOption(s,t[i]),n.boolean.includes(i)&&e.boolean(s),n.count.includes(i)&&e.count(s),n.string.includes(i)&&e.string(s),n.normalize.includes(i)&&e.normalize(s),n.array.includes(i)&&e.array(s),n.number.includes(i)&&e.number(s)}))}))}();const s=e.customScriptName?e.$0:t.path.basename(e.$0),i=e.getDemandedOptions(),o=e.getDemandedCommands(),a=e.getDeprecatedOptions(),c=e.getGroups(),m=e.getOptions();let g=[];g=g.concat(Object.keys(d)),g=g.concat(Object.keys(i)),g=g.concat(Object.keys(o)),g=g.concat(Object.keys(m.default)),g=g.filter(_),g=Object.keys(g.reduce(((e,t)=>("_"!==t&&(e[t]=!0),e)),{}));const $=r.getWrap(),S=t.cliui({width:$,wrap:!!$});if(!u)if(l.length)l.forEach((e=>{S.div({text:`${e[0].replace(/\$0/g,s)}`}),e[1]&&S.div({text:`${e[1]}`,padding:[1,0,0,0]})})),S.div();else if(h.length){let e=null;e=o._?`${s} <${n("command")}>\n`:`${s} [${n("command")}]\n`,S.div(`${e}`)}if(h.length>1||1===h.length&&!h[0][2]){S.div(n("Commands:"));const t=e.getInternalMethods().getContext(),r=t.commands.length?`${t.commands.join(" ")} `:"";!0===e.getInternalMethods().getParserConfiguration()["sort-commands"]&&(h=h.sort(((e,t)=>e[0].localeCompare(t[0]))));const i=s?`${s} `:"";h.forEach((e=>{const t=`${i}${r}${e[0].replace(/^\$0 ?/,"")}`;S.span({text:t,padding:[0,2,0,2],width:v(h,$,`${s}${r}`)+4},{text:e[1]});const o=[];e[2]&&o.push(`[${n("default")}]`),e[3]&&e[3].length&&o.push(`[${n("aliases:")} ${e[3].join(", ")}]`),e[4]&&("string"==typeof e[4]?o.push(`[${n("deprecated: %s",e[4])}]`):o.push(`[${n("deprecated")}]`)),o.length?S.div({text:o.join(" "),padding:[0,0,0,2],align:"right"}):S.div()})),S.div()}const E=(Object.keys(m.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);g=g.filter((t=>!e.parsed.newAliases[t]&&E.every((e=>-1===(m.alias[e]||[]).indexOf(t)))));const k=n("Options:");c[k]||(c[k]=[]),function(e,t,n,r){let s=[],i=null;Object.keys(n).forEach((e=>{s=s.concat(n[e])})),e.forEach((e=>{i=[e].concat(t[e]),i.some((e=>-1!==s.indexOf(e)))||n[r].push(e)}))}(g,m.alias,c,k);const O=e=>/^--/.test(It(e)),P=Object.keys(c).filter((e=>c[e].length>0)).map((e=>({groupName:e,normalizedKeys:c[e].filter(_).map((e=>{if(E.includes(e))return e;for(let t,n=0;void 0!==(t=E[n]);n++)if((m.alias[t]||[]).includes(e))return t;return e}))}))).filter((({normalizedKeys:e})=>e.length>0)).map((({groupName:e,normalizedKeys:t})=>{const n=t.reduce(((t,n)=>(t[n]=[n].concat(m.alias[n]||[]).map((t=>e===r.getPositionalGroupName()?t:(/^[0-9]$/.test(t)?m.boolean.includes(n)?"-":"--":t.length>1?"--":"-")+t)).sort(((e,t)=>O(e)===O(t)?0:O(e)?1:-1)).join(", "),t)),{});return{groupName:e,normalizedKeys:t,switches:n}}));if(P.filter((({groupName:e})=>e!==r.getPositionalGroupName())).some((({normalizedKeys:e,switches:t})=>!e.every((e=>O(t[e])))))&&P.filter((({groupName:e})=>e!==r.getPositionalGroupName())).forEach((({normalizedKeys:e,switches:t})=>{e.forEach((e=>{var n,r;O(t[e])&&(t[e]=(n=t[e],r="-x, ".length,Ct(n)?{text:n.text,indentation:n.indentation+r}:{text:n,indentation:r}))}))})),P.forEach((({groupName:t,normalizedKeys:s,switches:o})=>{S.div(t),s.forEach((t=>{const s=o[t];let c=d[t]||"",l=null;c.includes(y)&&(c=n(c.substring(y.length))),m.boolean.includes(t)&&(l=`[${n("boolean")}]`),m.count.includes(t)&&(l=`[${n("count")}]`),m.string.includes(t)&&(l=`[${n("string")}]`),m.normalize.includes(t)&&(l=`[${n("string")}]`),m.array.includes(t)&&(l=`[${n("array")}]`),m.number.includes(t)&&(l=`[${n("number")}]`);const u=[t in a?(f=a[t],"string"==typeof f?`[${n("deprecated: %s",f)}]`:`[${n("deprecated")}]`):null,l,t in i?`[${n("required")}]`:null,m.choices&&m.choices[t]?`[${n("choices:")} ${r.stringifiedValues(m.choices[t])}]`:null,w(m.default[t],m.defaultDescription[t])].filter(Boolean).join(" ");var f;S.span({text:It(s),padding:[0,2,0,2+Mt(s)],width:v(o,$)+4},c);const h=!0===e.getInternalMethods().getUsageConfiguration()["hide-types"];u&&!h?S.div({text:u,padding:[0,0,0,2],align:"right"}):S.div()})),S.div()})),f.length&&(S.div(n("Examples:")),f.forEach((e=>{e[0]=e[0].replace(/\$0/g,s)})),f.forEach((e=>{""===e[1]?S.div({text:e[0],padding:[0,2,0,2]}):S.div({text:e[0],padding:[0,2,0,2],width:v(f,$)+4},{text:e[1]})})),S.div()),p.length>0){const e=p.map((e=>e.replace(/\$0/g,s))).join("\n");S.div(`${e}\n`)}return S.toString().replace(/\s*$/,"")},r.cacheHelpMessage=function(){b=this.help()},r.clearCachedHelpMessage=function(){b=void 0},r.hasCachedHelpMessage=function(){return!!b},r.showHelp=t=>{const n=e.getInternalMethods().getLoggerInstance();t||(t="error"),("function"==typeof t?t:n[t])(r.help())},r.functionDescription=e=>["(",e.name?t.Parser.decamelize(e.name,"-"):n("generated-value"),")"].join(""),r.stringifiedValues=function(e,t){let n="";const r=t||", ",s=[].concat(e);return e&&s.length?(s.forEach((e=>{n.length&&(n+=r),n+=JSON.stringify(e)})),n):n};let $=null;r.version=e=>{$=e},r.showVersion=t=>{const n=e.getInternalMethods().getLoggerInstance();t||(t="error"),("function"==typeof t?t:n[t])($)},r.reset=function(e){return i=null,c=!1,l=[],u=!1,p=[],f=[],h=[],d=At(d,(t=>!e[t])),r};const S=[];return r.freeze=function(){S.push({failMessage:i,failureOutput:c,usages:l,usageDisabled:u,epilogs:p,examples:f,commands:h,descriptions:d})},r.unfreeze=function(e=!1){const t=S.pop();t&&(e?(d={...t.descriptions,...d},h=[...t.commands,...h],l=[...t.usages,...l],f=[...t.examples,...f],p=[...t.epilogs,...p]):({failMessage:i,failureOutput:c,usages:l,usageDisabled:u,epilogs:p,examples:f,commands:h,descriptions:d}=t))},r}(this,kn(this,gn,"f")),"f"),En(this,Sn,kn(this,Sn,"f")?kn(this,Sn,"f").reset(n):function(e,t,n){const r=n.y18n.__,s=n.y18n.__n,i={nonOptionCount:function(n){const r=e.getDemandedCommands(),i=n._.length+(n["--"]?n["--"].length:0)-e.getInternalMethods().getContext().commands.length;r._&&(i<r._.min||i>r._.max)&&(i<r._.min?void 0!==r._.minMsg?t.fail(r._.minMsg?r._.minMsg.replace(/\$0/g,i.toString()).replace(/\$1/,r._.min.toString()):null):t.fail(s("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",i,i.toString(),r._.min.toString())):i>r._.max&&(void 0!==r._.maxMsg?t.fail(r._.maxMsg?r._.maxMsg.replace(/\$0/g,i.toString()).replace(/\$1/,r._.max.toString()):null):t.fail(s("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",i,i.toString(),r._.max.toString()))))},positionalCount:function(e,n){n<e&&t.fail(s("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",n,n+"",e+""))},requiredArguments:function(e,n){let r=null;for(const t of Object.keys(n))Object.prototype.hasOwnProperty.call(e,t)&&void 0!==e[t]||(r=r||{},r[t]=n[t]);if(r){const e=[];for(const t of Object.keys(r)){const n=r[t];n&&e.indexOf(n)<0&&e.push(n)}const n=e.length?`\n${e.join("\n")}`:"";t.fail(s("Missing required argument: %s","Missing required arguments: %s",Object.keys(r).length,Object.keys(r).join(", ")+n))}},unknownArguments:function(n,r,o,a,c=!0){var l;const u=e.getInternalMethods().getCommandInstance().getCommands(),f=[],h=e.getInternalMethods().getContext();if(Object.keys(n).forEach((t=>{Lt.includes(t)||Object.prototype.hasOwnProperty.call(o,t)||Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),t)||i.isValidAndSomeAliasIsNotNew(t,r)||f.push(t)})),c&&(h.commands.length>0||u.length>0||a)&&n._.slice(h.commands.length).forEach((e=>{u.includes(""+e)||f.push(""+e)})),c){const t=(null===(l=e.getDemandedCommands()._)||void 0===l?void 0:l.max)||0,r=h.commands.length+t;r<n._.length&&n._.slice(r).forEach((e=>{e=String(e),h.commands.includes(e)||f.includes(e)||f.push(e)}))}f.length&&t.fail(s("Unknown argument: %s","Unknown arguments: %s",f.length,f.map((e=>e.trim()?e:`"${e}"`)).join(", ")))},unknownCommands:function(n){const r=e.getInternalMethods().getCommandInstance().getCommands(),i=[],o=e.getInternalMethods().getContext();return(o.commands.length>0||r.length>0)&&n._.slice(o.commands.length).forEach((e=>{r.includes(""+e)||i.push(""+e)})),i.length>0&&(t.fail(s("Unknown command: %s","Unknown commands: %s",i.length,i.join(", "))),!0)},isValidAndSomeAliasIsNotNew:function(t,n){if(!Object.prototype.hasOwnProperty.call(n,t))return!1;const r=e.parsed.newAliases;return[t,...n[t]].some((e=>!Object.prototype.hasOwnProperty.call(r,e)||!r[t]))},limitedChoices:function(n){const s=e.getOptions(),i={};if(!Object.keys(s.choices).length)return;Object.keys(n).forEach((e=>{-1===Lt.indexOf(e)&&Object.prototype.hasOwnProperty.call(s.choices,e)&&[].concat(n[e]).forEach((t=>{-1===s.choices[e].indexOf(t)&&void 0!==t&&(i[e]=(i[e]||[]).concat(t))}))}));const o=Object.keys(i);if(!o.length)return;let a=r("Invalid values:");o.forEach((e=>{a+=`\n ${r("Argument: %s, Given: %s, Choices: %s",e,t.stringifiedValues(i[e]),t.stringifiedValues(s.choices[e]))}`})),t.fail(a)}};let o={};function a(e,t){const n=Number(t);return"number"==typeof(t=isNaN(n)?t:n)?t=e._.length>=t:t.match(/^--no-.+/)?(t=t.match(/^--no-(.+)/)[1],t=!Object.prototype.hasOwnProperty.call(e,t)):t=Object.prototype.hasOwnProperty.call(e,t),t}i.implies=function(t,r){bt("<string|object> [array|number|string]",[t,r],arguments.length),"object"==typeof t?Object.keys(t).forEach((e=>{i.implies(e,t[e])})):(e.global(t),o[t]||(o[t]=[]),Array.isArray(r)?r.forEach((e=>i.implies(t,e))):(dt(r,void 0,n),o[t].push(r)))},i.getImplied=function(){return o},i.implications=function(e){const n=[];if(Object.keys(o).forEach((t=>{const r=t;(o[t]||[]).forEach((t=>{let s=r;const i=t;s=a(e,s),t=a(e,t),s&&!t&&n.push(` ${r} -> ${i}`)}))})),n.length){let e=`${r("Implications failed:")}\n`;n.forEach((t=>{e+=t})),t.fail(e)}};let c={};i.conflicts=function(t,n){bt("<string|object> [array|string]",[t,n],arguments.length),"object"==typeof t?Object.keys(t).forEach((e=>{i.conflicts(e,t[e])})):(e.global(t),c[t]||(c[t]=[]),Array.isArray(n)?n.forEach((e=>i.conflicts(t,e))):c[t].push(n))},i.getConflicting=()=>c,i.conflicting=function(s){Object.keys(s).forEach((e=>{c[e]&&c[e].forEach((n=>{n&&void 0!==s[e]&&void 0!==s[n]&&t.fail(r("Arguments %s and %s are mutually exclusive",e,n))}))})),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(c).forEach((e=>{c[e].forEach((i=>{i&&void 0!==s[n.Parser.camelCase(e)]&&void 0!==s[n.Parser.camelCase(i)]&&t.fail(r("Arguments %s and %s are mutually exclusive",e,i))}))}))},i.recommendCommands=function(e,n){n=n.sort(((e,t)=>t.length-e.length));let s=null,i=1/0;for(let t,r=0;void 0!==(t=n[r]);r++){const n=Dt(e,t);n<=3&&n<i&&(i=n,s=t)}s&&t.fail(r("Did you mean %s?",s))},i.reset=function(e){return o=At(o,(t=>!e[t])),c=At(c,(t=>!e[t])),i};const l=[];return i.freeze=function(){l.push({implied:o,conflicting:c})},i.unfreeze=function(){const e=l.pop();dt(e,void 0,n),({implied:o,conflicting:c}=e)},i}(this,kn(this,_n,"f"),kn(this,gn,"f")),"f"),En(this,zt,kn(this,zt,"f")?kn(this,zt,"f").reset():function(e,t,n,r){return new Ot(e,t,n,r)}(kn(this,_n,"f"),kn(this,Sn,"f"),kn(this,Xt,"f"),kn(this,gn,"f")),"f"),kn(this,Kt,"f")||En(this,Kt,function(e,t,n,r){return new Tt(e,t,n,r)}(this,kn(this,_n,"f"),kn(this,zt,"f"),kn(this,gn,"f")),"f"),kn(this,Xt,"f").reset(),En(this,Wt,null,"f"),En(this,on,"","f"),En(this,Gt,null,"f"),En(this,tn,!1,"f"),this.parsed=!1,this}[nr](e,t){return kn(this,gn,"f").path.relative(e,t)}[sr](e,t,n,r=0,s=!1){let i=!!n||s;e=e||kn(this,pn,"f"),kn(this,an,"f").__=kn(this,gn,"f").y18n.__,kn(this,an,"f").configuration=this[Cn]();const o=!!kn(this,an,"f").configuration["populate--"],a=Object.assign({},kn(this,an,"f").configuration,{"populate--":!0}),c=kn(this,gn,"f").Parser.detailed(e,Object.assign({},kn(this,an,"f"),{configuration:{"parse-positional-numbers":!1,...a}})),l=Object.assign(c.argv,kn(this,fn,"f"));let u;const f=c.aliases;let h=!1,d=!1;Object.keys(l).forEach((e=>{e===kn(this,nn,"f")&&l[e]?h=!0:e===kn(this,$n,"f")&&l[e]&&(d=!0)})),l.$0=this.$0,this.parsed=c,0===r&&kn(this,_n,"f").clearCachedHelpMessage();try{if(this[In](),t)return this[tr](l,o,!!n,!1);kn(this,nn,"f")&&[kn(this,nn,"f")].concat(f[kn(this,nn,"f")]||[]).filter((e=>e.length>1)).includes(""+l._[l._.length-1])&&(l._.pop(),h=!0),En(this,rn,!1,"f");const a=kn(this,zt,"f").getCommands(),p=kn(this,Kt,"f").completionKey in l,m=h||p||s;if(l._.length){if(a.length){let e;for(let t,i=r||0;void 0!==l._[i];i++){if(t=String(l._[i]),a.includes(t)&&t!==kn(this,Wt,"f")){const e=kn(this,zt,"f").runCommand(t,this,c,i+1,s,h||d||s);return this[tr](e,o,!!n,!1)}if(!e&&t!==kn(this,Wt,"f")){e=t;break}}!kn(this,zt,"f").hasDefaultCommand()&&kn(this,mn,"f")&&e&&!m&&kn(this,Sn,"f").recommendCommands(e,a)}kn(this,Wt,"f")&&l._.includes(kn(this,Wt,"f"))&&!p&&(kn(this,Qt,"f")&&xt(!0),this.showCompletionScript(),this.exit(0))}if(kn(this,zt,"f").hasDefaultCommand()&&!m){const e=kn(this,zt,"f").runCommand(null,this,c,0,s,h||d||s);return this[tr](e,o,!!n,!1)}if(p){kn(this,Qt,"f")&&xt(!0);const t=(e=[].concat(e)).slice(e.indexOf(`--${kn(this,Kt,"f").completionKey}`)+1);return kn(this,Kt,"f").getCompletion(t,((e,t)=>{if(e)throw new st(e.message);(t||[]).forEach((e=>{kn(this,sn,"f").log(e)})),this.exit(0)})),this[tr](l,!o,!!n,!1)}if(kn(this,tn,"f")||(h?(kn(this,Qt,"f")&&xt(!0),i=!0,this.showHelp("log"),this.exit(0)):d&&(kn(this,Qt,"f")&&xt(!0),i=!0,kn(this,_n,"f").showVersion("log"),this.exit(0))),!i&&kn(this,an,"f").skipValidation.length>0&&(i=Object.keys(l).some((e=>kn(this,an,"f").skipValidation.indexOf(e)>=0&&!0===l[e]))),!i){if(c.error)throw new st(c.error.message);if(!p){const e=this[ir](f,{},c.error);n||(u=St(l,this,kn(this,Xt,"f").getMiddleware(),!0)),u=this[Kn](e,null!=u?u:l),gt(u)&&!n&&(u=u.then((()=>St(l,this,kn(this,Xt,"f").getMiddleware(),!1))))}}}catch(e){if(!(e instanceof st))throw e;kn(this,_n,"f").fail(e.message,e)}return this[tr](null!=u?u:l,o,!!n,!0)}[ir](e,t,n,r){const s={...this.getDemandedOptions()};return i=>{if(n)throw new st(n.message);kn(this,Sn,"f").nonOptionCount(i),kn(this,Sn,"f").requiredArguments(i,s);let o=!1;kn(this,vn,"f")&&(o=kn(this,Sn,"f").unknownCommands(i)),kn(this,yn,"f")&&!o?kn(this,Sn,"f").unknownArguments(i,e,t,!!r):kn(this,bn,"f")&&kn(this,Sn,"f").unknownArguments(i,e,{},!1,!1),kn(this,Sn,"f").limitedChoices(i),kn(this,Sn,"f").implications(i),kn(this,Sn,"f").conflicting(i)}}[or](){En(this,tn,!0,"f")}[ar](e){if("string"==typeof e)kn(this,an,"f").key[e]=!0;else for(const t of e)kn(this,an,"f").key[t]=!0}}var lr,ur;(lr=ft,(e=[],t=lr.process.cwd(),n)=>{const r=new cr(e,t,n,lr);return Object.defineProperty(r,"argv",{get:()=>r.parse(),enumerable:!0}),r.help(),r.version(),r})((ur=process.argv,ur.slice(rt()+1))).command("generate [target] [options]","supported targets: 'manifest'",(function(e){return e.positional("target",{type:"string",requiresArg:!0,describe:"target for the generate command"})}),(function(e){if("manifest"===e.target&&e.configsDir){var t=e.outDir,n=e.outFile;console.log("generating ".concat(n," configsDir=").concat(e.configsDir," --outDir=").concat(t));var r=function(e){var t,n=$e(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1).map((function(e){if(!f().existsSync(e))throw new Error("Configuration not found at ".concat(e));var t=JSON.parse(f().readFileSync(e).toString()),n=l.create(t);return ve(t,n)}));return Ee.apply(void 0,[Ae].concat(function(e){if(Array.isArray(e))return xe(e)}(t=n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return xe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xe(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}(e.configsDir,e.depth);f().existsSync(t)||f().mkdirSync(t),f().writeFileSync(_e().join(t,n),JSON.stringify(r))}console.log("Unsupported target '".concat(e.target,"'"))})).option("configsDir",{alias:"c",default:"appshell_configs",type:"string",description:"Path to configs dir to process"}).option("depth",{alias:"d",default:1,type:"number",description:"Depth to search for app manifests to include"}).option("outDir",{alias:"o",default:".",requiresArg:!0,type:"string",description:"Output location for the appshell manifest"}).option("outFile",{alias:"f",default:"appshell.manifest.json",type:"string",description:"Output filename for the appshell manifest"}).parse()})(),r})()));