var e=function(e,t){const n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n};var t={isPragma:function(e){return/^\s*@(?:prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(e)},insertPragma:function(e){return`# @format\n\n${e}`}};var n={locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}},r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){var t={exports:{}};return e(t,t.exports),t.exports /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */}var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function u(e){return this instanceof u?(this.v=e,this):new u(e)}var l,f,h=Object.freeze({__proto__:null,__extends:function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return s},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},__generator:function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof u?Promise.resolve(n.value.v).then(c,l):f(i[0][2],n)}catch(e){f(i[0][3],e)}var n}function c(e){a("next",e)}function l(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:u(e[r](t)),done:"return"===r}:o?o(t):t}:o}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=a(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},__classPrivateFieldSet:function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}}),p=o((function(e,t){var n="\n",r=function(){function e(e){this.string=e;for(var t=[0],r=0;rthis.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;return{line:t,column:e-n[t]}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}();t.__esModule=!0,t.default=r})),d=function(e){return e&&e.Math==Math&&e},g=d("object"==typeof globalThis&&globalThis)||d("object"==typeof window&&window)||d("object"==typeof self&&self)||d("object"==typeof r&&r)||function(){return this}()||Function("return this")(),m=function(e){try{return!!e()}catch(e){return!0}},y=!m((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),v={}.propertyIsEnumerable,b=Object.getOwnPropertyDescriptor,w={f:b&&!v.call({1:2},1)?function(e){var t=b(this,e);return!!t&&t.enumerable}:v},_=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},E={}.toString,S="".split,O=m((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==function(e){return E.call(e).slice(8,-1)}(e)?S.call(e,""):Object(e)}:Object,A=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},M=function(e){return O(A(e))},L=function(e){return"object"==typeof e?null!==e:"function"==typeof e},N=function(e){return"function"==typeof e?e:void 0},T=function(e,t){return arguments.length<2?N(g[e]):g[e]&&g[e][t]},P=T("navigator","userAgent")||"",C=g.process,x=g.Deno,R=C&&C.versions||x&&x.version,I=R&&R.v8;I?f=(l=I.split("."))[0]<4?1:l[0]+l[1]:P&&(!(l=P.match(/Edge\/(\d+)/))||l[1]>=74)&&(l=P.match(/Chrome\/(\d+)/))&&(f=l[1]);var k,B=f&&+f,Y=!!Object.getOwnPropertySymbols&&!m((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&B&&B<41})),j=Y&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$=j?function(e){return"symbol"==typeof e}:function(e){var t=T("Symbol");return"function"==typeof t&&Object(e)instanceof t},D=function(e,t){try{Object.defineProperty(g,e,{value:t,configurable:!0,writable:!0})}catch(n){g[e]=t}return t},F=g["__core-js_shared__"]||D("__core-js_shared__",{}),U=o((function(e){(e.exports=function(e,t){return F[e]||(F[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.17.3",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})})),W=function(e){return Object(A(e))},K={}.hasOwnProperty,V=Object.hasOwn||function(e,t){return K.call(W(e),t)},Q=0,q=Math.random(),J=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Q+q).toString(36)},G=U("wks"),H=g.Symbol,z=j?H:H&&H.withoutSetter||J,Z=(V(G,k="toPrimitive")&&(Y||"string"==typeof G[k])||(Y&&V(H,k)?G[k]=H[k]:G[k]=z("Symbol."+k)),G[k]),X=function(e,t){if(!L(e)||$(e))return e;var n,r=e[Z];if(void 0!==r){if(void 0===t&&(t="default"),n=r.call(e,t),!L(n)||$(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&"function"==typeof(n=e.toString)&&!L(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!L(r=n.call(e)))return r;if("string"!==t&&"function"==typeof(n=e.toString)&&!L(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}(e,t)},ee=function(e){var t=X(e,"string");return $(t)?t:String(t)},te=g.document,ne=L(te)&&L(te.createElement),re=!y&&!m((function(){return 7!=Object.defineProperty((e="div",ne?te.createElement(e):{}),"a",{get:function(){return 7}}).a;var e})),oe=Object.getOwnPropertyDescriptor,ie={f:y?oe:function(e,t){if(e=M(e),t=ee(t),re)try{return oe(e,t)}catch(e){}if(V(e,t))return _(!w.f.call(e,t),e[t])}},se=function(e){if(!L(e))throw TypeError(String(e)+" is not an object");return e},ae=Object.defineProperty,ce={f:y?ae:function(e,t,n){if(se(e),t=ee(t),se(n),re)try{return ae(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ue=y?function(e,t,n){return ce.f(e,t,_(1,n))}:function(e,t,n){return e[t]=n,e},le=Function.toString;"function"!=typeof F.inspectSource&&(F.inspectSource=function(e){return le.call(e)});var fe,he,pe,de,ge=F.inspectSource,me=g.WeakMap,ye="function"==typeof me&&/native code/.test(ge(me)),ve=U("keys"),be={},we=g.WeakMap;if(ye||F.state){var _e=F.state||(F.state=new we),Ee=_e.get,Se=_e.has,Oe=_e.set;fe=function(e,t){if(Se.call(_e,e))throw new TypeError("Object already initialized");return t.facade=e,Oe.call(_e,e,t),t},he=function(e){return Ee.call(_e,e)||{}},pe=function(e){return Se.call(_e,e)}}else{var Ae=ve[de="state"]||(ve[de]=J(de));be[Ae]=!0,fe=function(e,t){if(V(e,Ae))throw new TypeError("Object already initialized");return t.facade=e,ue(e,Ae,t),t},he=function(e){return V(e,Ae)?e[Ae]:{}},pe=function(e){return V(e,Ae)}}var Me,Le,Ne={set:fe,get:he,has:pe,enforce:function(e){return pe(e)?he(e):fe(e,{})},getterFor:function(e){return function(t){var n;if(!L(t)||(n=he(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Te=o((function(e){var t=Ne.get,n=Ne.enforce,r=String(String).split("String");(e.exports=function(e,t,o,i){var s,a=!!i&&!!i.unsafe,c=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof t||V(o,"name")||ue(o,"name",t),(s=n(o)).source||(s.source=r.join("string"==typeof t?t:""))),e!==g?(a?!u&&e[t]&&(c=!0):delete e[t],c?e[t]=o:ue(e,t,o)):c?e[t]=o:D(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||ge(this)}))})),Pe=Math.ceil,Ce=Math.floor,xe=function(e){return isNaN(e=+e)?0:(e>0?Ce:Pe)(e)},Re=Math.min,Ie=function(e){return e>0?Re(xe(e),9007199254740991):0},ke=Math.max,Be=Math.min,Ye=function(e){return function(t,n,r){var o,i=M(t),s=Ie(i.length),a=function(e,t){var n=xe(e);return n<0?ke(n+t,0):Be(n,t)}(r,s);if(e&&n!=n){for(;s>a;)if((o=i[a++])!=o)return!0}else for(;s>a;a++)if((e||a in i)&&i[a]===n)return e||a||0;return!e&&-1}},je={includes:Ye(!0),indexOf:Ye(!1)}.indexOf,$e=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),De={f:Object.getOwnPropertyNames||function(e){return function(e,t){var n,r=M(e),o=0,i=[];for(n in r)!V(be,n)&&V(r,n)&&i.push(n);for(;t.length>o;)V(r,n=t[o++])&&(~je(i,n)||i.push(n));return i}(e,$e)}},Fe={f:Object.getOwnPropertySymbols},Ue=T("Reflect","ownKeys")||function(e){var t=De.f(se(e)),n=Fe.f;return n?t.concat(n(e)):t},We=function(e,t){for(var n=Ue(t),r=ce.f,o=ie.f,i=0;i0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},nt=function(e,t,n){for(var r=e.length,o=t.length,i=0,s=0,a=[];i3)){if(st)return!0;if(ct)return ct<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)ut.push({k:t+r,v:n})}for(ut.sort((function(e,t){return t.v-e.v})),r=0;rZe(n)?1:-1}}(e))).length,r=0;r1&&e.position.start.line>n[0].position.end.line;)n.shift();!function(e,t,n){var r=e.position.start.line,o=t[r-1].trailingAttachableNode;if(o){if(o.trailingComment)throw new Error("Unexpected multiple trailing comment at "+vt.getPointText(e.position.start));return mt.defineParents(e,o),void(o.trailingComment=e)}for(var i=r;i>=n.position.start.line;i--){var s=t[i-1].trailingNode,a=void 0;if(s)a=s;else{if(i===r||!t[i-1].comment)continue;a=t[i-1].comment._parent}if("sequence"!==a.type&&"mapping"!==a.type||(a=a.children[0]),"mappingItem"===a.type){var c=a.children,u=c[0],l=c[1];a=Et(u)?u:l}for(;;){if(_t(a,e))return mt.defineParents(e,a),void a.endComments.push(e);if(!a._parent)break;a=a._parent}break}for(i=r+1;i<=n.position.end.line;i++){var f=t[i-1].leadingAttachableNode;if(f)return mt.defineParents(e,f),void f.leadingComments.push(e)}var h=n.children[1];mt.defineParents(e,h),h.endComments.push(e)}(e,t,n[0])}))};function wt(e,t){if(t.position.start.offset!==t.position.end.offset){if("leadingComments"in t){var n=t.position.start,r=e[n.line-1].leadingAttachableNode;(!r||n.column1&&"document"!==t.type&&"documentHead"!==t.type){var o=t.position.end,i=e[o.line-1].trailingAttachableNode;(!i||o.column>=i.position.end.column)&&(e[o.line-1].trailingAttachableNode=t)}if("root"!==t.type&&"document"!==t.type&&"documentHead"!==t.type&&"documentBody"!==t.type)for(var s=t.position,a=(n=s.start,0),c=[(o=s.end).line].concat(n.line===o.line?[]:n.line);a=l.position.end.column)&&(e[u-1].trailingNode=t)}"children"in t&&t.children.forEach((function(t){wt(e,t)}))}}function _t(e,t){if(e.position.start.offsett.position.end.offset)switch(e.type){case"flowMapping":case"flowSequence":return 0===e.children.length||t.position.start.line>e.children[e.children.length-1].position.end.line}if(t.position.end.offsete.position.start.column;case"mappingKey":case"mappingValue":return t.position.start.column>e._parent.position.start.column&&(0===e.children.length||1===e.children.length&&"blockFolded"!==e.children[0].type&&"blockLiteral"!==e.children[0].type)&&("mappingValue"===e.type||Et(e));default:return!1}}function Et(e){return e.position.start!==e.position.end&&(0===e.children.length||e.position.start.offset!==e.children[0].position.start.offset)}var St=Object.defineProperty({attachComments:bt},"__esModule",{value:!0});var Ot=function(e,t){return{type:e,position:t}},At=Object.defineProperty({createNode:Ot},"__esModule",{value:!0});var Mt=function(e,t,n){return h.__assign(h.__assign({},At.createNode("root",e)),{children:t,comments:n})},Lt=Object.defineProperty({createRoot:Mt},"__esModule",{value:!0});var Nt=function e(t){switch(t.type){case"DOCUMENT":for(var n=t.contents.length-1;n>=0;n--)"BLANK_LINE"===t.contents[n].type?t.contents.splice(n,1):e(t.contents[n]);for(n=t.directives.length-1;n>=0;n--)"BLANK_LINE"===t.directives[n].type&&t.directives.splice(n,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(n=t.items.length-1;n>=0;n--){var r=t.items[n];"char"in r||("BLANK_LINE"===r.type?t.items.splice(n,1):e(r))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&e(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error("Unexpected node type "+JSON.stringify(t.type))}},Tt=Object.defineProperty({removeCstBlankLine:Nt},"__esModule",{value:!0});var Pt=function(){return{leadingComments:[]}},Ct=Object.defineProperty({createLeadingCommentAttachable:Pt},"__esModule",{value:!0});var xt=function(e){return void 0===e&&(e=null),{trailingComment:e}},Rt=Object.defineProperty({createTrailingCommentAttachable:xt},"__esModule",{value:!0});var It=function(){return h.__assign(h.__assign({},Ct.createLeadingCommentAttachable()),Rt.createTrailingCommentAttachable())},kt=Object.defineProperty({createCommentAttachable:It},"__esModule",{value:!0});var Bt=function(e,t,n){return h.__assign(h.__assign(h.__assign(h.__assign({},At.createNode("alias",e)),kt.createCommentAttachable()),t),{value:n})},Yt=Object.defineProperty({createAlias:Bt},"__esModule",{value:!0});var jt=function(e,t){var n=e.cstNode;return Yt.createAlias(t.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),t.transformContent(e),n.rawValue)},$t=Object.defineProperty({transformAlias:jt},"__esModule",{value:!0});var Dt=function(e){return h.__assign(h.__assign({},e),{type:"blockFolded"})},Ft=Object.defineProperty({createBlockFolded:Dt},"__esModule",{value:!0});var Ut=function(e,t,n,r,o,i){return h.__assign(h.__assign(h.__assign(h.__assign({},At.createNode("blockValue",e)),Ct.createLeadingCommentAttachable()),t),{chomping:n,indent:r,value:o,indicatorComment:i})},Wt=Object.defineProperty({createBlockValue:Ut},"__esModule",{value:!0}),Kt=o((function(e,t){var n;t.__esModule=!0,(n=t.PropLeadingCharacter||(t.PropLeadingCharacter={})).Tag="!",n.Anchor="&",n.Comment="#"}));var Vt=function(e,t){return h.__assign(h.__assign({},At.createNode("anchor",e)),{value:t})},Qt=Object.defineProperty({createAnchor:Vt},"__esModule",{value:!0});var qt=function(e,t){return h.__assign(h.__assign({},At.createNode("comment",e)),{value:t})},Jt=Object.defineProperty({createComment:qt},"__esModule",{value:!0});var Gt=function(e,t,n){return{anchor:t,tag:e,middleComments:n}},Ht=Object.defineProperty({createContent:Gt},"__esModule",{value:!0});var zt=function(e,t){return h.__assign(h.__assign({},At.createNode("tag",e)),{value:t})},Zt=Object.defineProperty({createTag:zt},"__esModule",{value:!0});var Xt,en=function(e,t,n){void 0===n&&(n=function(){return!1});for(var r=e.cstNode,o=[],i=null,s=null,a=null,c=0,u=r.props;c=0;c--){var u=e.contents[c];if("COMMENT"===u.type){var l=t.transformNode(u);n&&n.line===l.position.start.line?s.unshift(l):a?r.unshift(l):l.position.start.offset>=e.valueRange.origEnd?i.unshift(l):r.unshift(l)}else a=!0}if(i.length>1)throw new Error("Unexpected multiple document trailing comments at "+vt.getPointText(i[1].position.start));if(s.length>1)throw new Error("Unexpected multiple documentHead trailing comments at "+vt.getPointText(s[1].position.start));return{comments:r,endComments:o,documentTrailingComment:Tn.getLast(i)||null,documentHeadTrailingComment:Tn.getLast(s)||null}}(o,t,n),s=i.comments,a=i.endComments,c=i.documentTrailingComment,u=i.documentHeadTrailingComment,l=t.transformNode(e.contents),f=function(e,t,n){var r=Cn.getMatchIndex(n.text.slice(e.valueRange.origEnd),/^\.\.\./),o=-1===r?e.valueRange.origEnd:Math.max(0,e.valueRange.origEnd-1);"\r"===n.text[o-1]&&o--;var i=n.transformRange({origStart:null!==t?t.position.start.offset:o,origEnd:o}),s=-1===r?i.end:n.transformOffset(e.valueRange.origEnd+3);return{position:i,documentEndPoint:s}}(o,l,t),p=f.position,d=f.documentEndPoint;return(r=t.comments).push.apply(r,h.__spreadArrays(s,a)),{documentBody:Ln.createDocumentBody(p,l,a),documentEndPoint:d,documentTrailingComment:c,documentHeadTrailingComment:u}};var Rn=Object.defineProperty({transformDocumentBody:xn},"__esModule",{value:!0});var In=function(e,t,n,r){return h.__assign(h.__assign(h.__assign(h.__assign({},At.createNode("documentHead",e)),An.createEndCommentAttachable(n)),Rt.createTrailingCommentAttachable(r)),{children:t})},kn=Object.defineProperty({createDocumentHead:In},"__esModule",{value:!0});var Bn=function(e,t){var n,r=e.cstNode,o=function(e,t){for(var n=[],r=[],o=[],i=!1,s=e.directives.length-1;s>=0;s--){var a=t.transformNode(e.directives[s]);"comment"===a.type?i?r.unshift(a):o.unshift(a):(i=!0,n.unshift(a))}return{directives:n,comments:r,endComments:o}}(r,t),i=o.directives,s=o.comments,a=o.endComments,c=function(e,t,n){var r=Cn.getMatchIndex(n.text.slice(0,e.valueRange.origStart),/---\s*$/);r>0&&!/[\r\n]/.test(n.text[r-1])&&(r=-1);var o=-1===r?{origStart:e.valueRange.origStart,origEnd:e.valueRange.origStart}:{origStart:r,origEnd:r+3};0!==t.length&&(o.origStart=t[0].position.start.offset);return{position:n.transformRange(o),endMarkerPoint:-1===r?null:n.transformOffset(r)}}(r,i,t),u=c.position,l=c.endMarkerPoint;return(n=t.comments).push.apply(n,h.__spreadArrays(s,a)),{createDocumentHeadWithTrailingComment:function(e){return e&&t.comments.push(e),kn.createDocumentHead(u,i,a,e)},documentHeadEndMarkerPoint:l}};var Yn=Object.defineProperty({transformDocumentHead:Bn},"__esModule",{value:!0});var jn=function(e,t){var n=Yn.transformDocumentHead(e,t),r=n.createDocumentHeadWithTrailingComment,o=n.documentHeadEndMarkerPoint,i=Rn.transformDocumentBody(e,t,o),s=i.documentBody,a=i.documentEndPoint,c=i.documentTrailingComment,u=r(i.documentHeadTrailingComment);return c&&t.comments.push(c),wn.createDocument(Sn.createPosition(u.position.start,a),u,s,c)},$n=Object.defineProperty({transformDocument:jn},"__esModule",{value:!0});var Dn=function(e,t,n){return h.__assign(h.__assign(h.__assign(h.__assign(h.__assign({},At.createNode("flowCollection",e)),kt.createCommentAttachable()),An.createEndCommentAttachable()),t),{children:n})},Fn=Object.defineProperty({createFlowCollection:Dn},"__esModule",{value:!0});var Un=function(e,t,n){return h.__assign(h.__assign({},Fn.createFlowCollection(e,t,n)),{type:"flowMapping"})},Wn=Object.defineProperty({createFlowMapping:Un},"__esModule",{value:!0});var Kn=function(e,t,n){return h.__assign(h.__assign(h.__assign({},At.createNode("flowMappingItem",e)),Ct.createLeadingCommentAttachable()),{children:[t,n]})},Vn=Object.defineProperty({createFlowMappingItem:Kn},"__esModule",{value:!0});var Qn=function(e,t){for(var n=[],r=0,o=e;r=0;r--)if(n.test(e[r]))return r;return-1},Sr=Object.defineProperty({findLastCharIndex:Er},"__esModule",{value:!0});var Or=function(e,t){var n=e.cstNode;return _r.createPlain(t.transformRange({origStart:n.valueRange.origStart,origEnd:Sr.findLastCharIndex(t.text,n.valueRange.origEnd-1,/\S/)+1}),t.transformContent(e),n.strValue)},Ar=Object.defineProperty({transformPlain:Or},"__esModule",{value:!0});var Mr=function(e){return h.__assign(h.__assign({},e),{type:"quoteDouble"})},Lr=Object.defineProperty({createQuoteDouble:Mr},"__esModule",{value:!0});var Nr=function(e,t,n){return h.__assign(h.__assign(h.__assign(h.__assign({},At.createNode("quoteValue",e)),t),kt.createCommentAttachable()),{value:n})},Tr=Object.defineProperty({createQuoteValue:Nr},"__esModule",{value:!0});var Pr=function(e,t){var n=e.cstNode;return Tr.createQuoteValue(t.transformRange(n.valueRange),t.transformContent(e),n.strValue)},Cr=Object.defineProperty({transformAstQuoteValue:Pr},"__esModule",{value:!0});var xr=function(e,t){return Lr.createQuoteDouble(Cr.transformAstQuoteValue(e,t))},Rr=Object.defineProperty({transformQuoteDouble:xr},"__esModule",{value:!0});var Ir=function(e){return h.__assign(h.__assign({},e),{type:"quoteSingle"})},kr=Object.defineProperty({createQuoteSingle:Ir},"__esModule",{value:!0});var Br=function(e,t){return kr.createQuoteSingle(Cr.transformAstQuoteValue(e,t))},Yr=Object.defineProperty({transformQuoteSingle:Br},"__esModule",{value:!0});var jr=function(e,t,n){return h.__assign(h.__assign(h.__assign(h.__assign(h.__assign({},At.createNode("sequence",e)),Ct.createLeadingCommentAttachable()),An.createEndCommentAttachable()),t),{children:n})},$r=Object.defineProperty({createSequence:jr},"__esModule",{value:!0});var Dr=function(e,t){return h.__assign(h.__assign(h.__assign(h.__assign({},At.createNode("sequenceItem",e)),kt.createCommentAttachable()),An.createEndCommentAttachable()),{children:t?[t]:[]})},Fr=Object.defineProperty({createSequenceItem:Dr},"__esModule",{value:!0});var Ur=function(e,t){var n=qn.extractComments(e.cstNode.items,t).map((function(n,r){mn.extractPropComments(n,t);var o=t.transformNode(e.items[r]);return Fr.createSequenceItem(Sn.createPosition(t.transformOffset(n.valueRange.origStart),null===o?t.transformOffset(n.valueRange.origStart+1):o.position.end),o)}));return $r.createSequence(Sn.createPosition(n[0].position.start,Tn.getLast(n).position.end),t.transformContent(e),n)},Wr=Object.defineProperty({transformSeq:Ur},"__esModule",{value:!0});var Kr=function(e,t){if(null===e||void 0===e.type&&null===e.value)return null;switch(e.type){case"ALIAS":return $t.transformAlias(e,t);case"BLOCK_FOLDED":return sn.transformBlockFolded(e,t);case"BLOCK_LITERAL":return ln.transformBlockLiteral(e,t);case"COMMENT":return hn.transformComment(e,t);case"DIRECTIVE":return vn.transformDirective(e,t);case"DOCUMENT":return $n.transformDocument(e,t);case"FLOW_MAP":return ar.transformFlowMap(e,t);case"FLOW_SEQ":return pr.transformFlowSeq(e,t);case"MAP":return br.transformMap(e,t);case"PLAIN":return Ar.transformPlain(e,t);case"QUOTE_DOUBLE":return Rr.transformQuoteDouble(e,t);case"QUOTE_SINGLE":return Yr.transformQuoteSingle(e,t);case"SEQ":return Wr.transformSeq(e,t);default:throw new Error("Unexpected node type "+e.type)}},Vr=Object.defineProperty({transformNode:Kr},"__esModule",{value:!0});var Qr=function(e,t,n){var r=new SyntaxError(e);return r.name="YAMLSyntaxError",r.source=t,r.position=n,r},qr=Object.defineProperty({createError:Qr},"__esModule",{value:!0});var Jr=function(e,t){var n=e.source.range||e.source.valueRange;return qr.createError(e.message,t.text,t.transformRange(n))},Gr=Object.defineProperty({transformError:Jr},"__esModule",{value:!0});var Hr=function(e,t,n){return{offset:e,line:t,column:n}},zr=Object.defineProperty({createPoint:Hr},"__esModule",{value:!0});var Zr=function(e,t){e<0?e=0:e>t.text.length&&(e=t.text.length);var n=t.locator.locationForIndex(e);return zr.createPoint(e,n.line+1,n.column+1)},Xr=Object.defineProperty({transformOffset:Zr},"__esModule",{value:!0});var eo=function(e,t){return Sn.createPosition(t.transformOffset(e.origStart),t.transformOffset(e.origEnd))},to=Object.defineProperty({transformRange:eo},"__esModule",{value:!0});var no=function(e){if(!e.setOrigRanges()){var t=function(e){return function(e){return"number"==typeof e.start}(e)?(e.origStart=e.start,e.origEnd=e.end,true):function(e){return"number"==typeof e.offset}(e)?(e.origOffset=e.offset,true):void 0};e.forEach((function(e){return ro(e,t)}))}};function ro(e,t){if(e&&"object"==typeof e&&true!==t(e))for(var n=0,r=Object.keys(e);ne.offset}var yo=Object.defineProperty({updatePositions:uo},"__esModule",{value:!0});const vo={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},bo={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"};function wo(e){const t=[0];let n=e.indexOf("\n");for(;-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function _o(e){let t,n;return"string"==typeof e?(t=wo(e),n=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=wo(e.context.src)),t=e.lineStarts,n=e.context.src)),{lineStarts:t,src:n}}function Eo(e,t){if("number"!=typeof e||e<0)return null;const{lineStarts:n,src:r}=_o(t);if(!n||!r||e>r.length)return null;for(let t=0;t=1)||e>n.length)return null;const o=n[e-1];let i=n[e];for(;i&&i>o&&"\n"===r[i-1];)--i;return r.slice(o,i)}(e.line,n);if(!o)return null;let{col:i}=e;if(o.length>r)if(i<=r-10)o=o.substr(0,r-1)+"\u2026";else{const e=Math.round(r/2);o.length>i+e&&(o=o.substr(0,i+e-1)+"\u2026"),i-=o.length-r,o="\u2026"+o.substr(1-r)}let s=1,a="";t&&(t.line===e.line&&i+(t.col-e.col)<=r+1?s=t.col-e.col:(s=Math.min(o.length+1,r)-i,a="\u2026"));return`${o}\n${i>1?" ".repeat(i-1):""}${"^".repeat(s)}${a}`}class Oo{static copy(e){return new Oo(e.start,e.end)}constructor(e,t){this.start=e,this.end=t||e}isEmpty(){return"number"!=typeof this.start||!this.end||this.end<=this.start}setOrigRange(e,t){const{start:n,end:r}=this;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;let o=t;for(;on);)++o;this.origStart=n+o;const i=o;for(;o=r);)++o;return this.origEnd=r+o,i}}class Ao{static addStringTerminator(e,t,n){if("\n"===n[n.length-1])return n;const r=Ao.endOfWhiteSpace(e,t);return r>=e.length||"\n"===e[r]?n+"\n":n}static atDocumentBoundary(e,t,n){const r=e[t];if(!r)return!0;const o=e[t-1];if(o&&"\n"!==o)return!1;if(n){if(r!==n)return!1}else if(r!==vo.DIRECTIVES_END&&r!==vo.DOCUMENT_END)return!1;const i=e[t+1],s=e[t+2];if(i!==r||s!==r)return!1;const a=e[t+3];return!a||"\n"===a||"\t"===a||" "===a}static endOfIdentifier(e,t){let n=e[t];const r="<"===n,o=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];for(;n&&-1===o.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}static endOfIndent(e,t){let n=e[t];for(;" "===n;)n=e[t+=1];return t}static endOfLine(e,t){let n=e[t];for(;n&&"\n"!==n;)n=e[t+=1];return t}static endOfWhiteSpace(e,t){let n=e[t];for(;"\t"===n||" "===n;)n=e[t+=1];return t}static startOfLine(e,t){let n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}static endOfBlockIndent(e,t,n){const r=Ao.endOfIndent(e,n);if(r>n+t)return r;{const t=Ao.endOfWhiteSpace(e,r),n=e[t];if(!n||"\n"===n)return t}return null}static atBlank(e,t,n){const r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}static nextNodeIsIndented(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}static normalizeOffset(e,t){const n=e[t];return n?"\n"!==n&&"\n"===e[t-1]?t-1:Ao.endOfWhiteSpace(e,t):t}static foldNewline(e,t,n){let r=0,o=!1,i="",s=e[t+1];for(;" "===s||"\t"===s||"\n"===s;){switch(s){case"\n":r=0,t+=1,i+="\n";break;case"\t":r<=n&&(o=!0),t=Ao.endOfWhiteSpace(e,t+2)-1;break;case" ":r+=1,t+=1}s=e[t+1]}return i||(i=" "),s&&r<=n&&(o=!0),{fold:i,offset:t,error:o}}constructor(e,t,n){Object.defineProperty(this,"context",{value:n||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=t||[],this.type=e,this.value=null}getPropValue(e,t,n){if(!this.context)return null;const{src:r}=this.context,o=this.props[e];return o&&r[o.start]===t?r.slice(o.start+(n?1:0),o.end):null}get anchor(){for(let e=0;e0?e.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return!1;if(!this.valueRange)return!1;const{end:n}=this.valueRange;return e!==n||Ao.atBlank(t,n-1)}get hasComment(){if(this.context){const{src:e}=this.context;for(let t=0;tn.setOrigRange(e,t))),t}toString(){const{context:{src:e},range:t,value:n}=this;if(null!=n)return n;const r=e.slice(t.start,t.end);return Ao.addStringTerminator(e,t.end,r)}}class Mo extends Error{constructor(e,t,n){if(!(n&&t instanceof Ao))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=n,this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new Oo(this.offset,this.offset+1);const t=e&&Eo(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){const{line:t,col:n}=this.linePos.start;this.message+=` at line ${t}, column ${n}`;const r=e&&So(this.linePos,e);r&&(this.message+=`:\n\n${r}\n`)}delete this.source}}class Lo extends Mo{constructor(e,t){super("YAMLSemanticError",e,t)}}class No extends Ao{static endOfLine(e,t,n){let r=e[t],o=t;for(;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){const t=e[o+1];if(":"===r&&(!t||"\n"===t||"\t"===t||" "===t||n&&","===t))break;if((" "===r||"\t"===r)&&"#"===t)break;o+=1,r=t}return o}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:n}=this.context;let r=n[t-1];for(;ei?n.slice(i,r+1):e)}else o+=e}const i=n[e];switch(i){case"\t":return{errors:[new Lo(this,"Plain value cannot start with a tab character")],str:o};case"@":case"`":return{errors:[new Lo(this,`Plain value cannot start with reserved character ${i}`)],str:o};default:return o}}parseBlockValue(e){const{indent:t,inFlow:n,src:r}=this.context;let o=e,i=e;for(let e=r[o];"\n"===e&&!Ao.atDocumentBoundary(r,o+1);e=r[o]){const e=Ao.endOfBlockIndent(r,t,o+1);if(null===e||"#"===r[e])break;"\n"===r[e]?o=e:(i=No.endOfLine(r,e,n),o=i)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=i,i}parse(e,t){this.context=e;const{inFlow:n,src:r}=e;let o=t;const i=r[o];return i&&"#"!==i&&"\n"!==i&&(o=No.endOfLine(r,t,n)),this.valueRange=new Oo(t,o),o=Ao.endOfWhiteSpace(r,o),o=this.parseComment(o),this.hasComment&&!this.valueRange.isEmpty()||(o=this.parseBlockValue(o)),o}}var To={Char:vo,Node:Ao,PlainValue:No,Range:Oo,Type:bo,YAMLError:Mo,YAMLReferenceError:class extends Mo{constructor(e,t){super("YAMLReferenceError",e,t)}},YAMLSemanticError:Lo,YAMLSyntaxError:class extends Mo{constructor(e,t){super("YAMLSyntaxError",e,t)}},YAMLWarning:class extends Mo{constructor(e,t){super("YAMLWarning",e,t)}},_defineProperty:function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},defaultTagPrefix:"tag:yaml.org,2002:",defaultTags:{MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"}};class Po extends To.Node{constructor(){super(To.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,t){return this.context=e,this.range=new To.Range(t,t+1),t+1}}class Co extends To.Node{constructor(e,t){super(e,t),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,t){this.context=e;const{parseNode:n,src:r}=e;let{atLineStart:o,lineStart:i}=e;o||this.type!==To.Type.SEQ_ITEM||(this.error=new To.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));const s=o?t-i:e.indent;let a=To.Node.endOfWhiteSpace(r,t+1),c=r[a];const u="#"===c,l=[];let f=null;for(;"\n"===c||"#"===c;){if("#"===c){const e=To.Node.endOfLine(r,a+1);l.push(new To.Range(a,e)),a=e}else{o=!0,i=a+1;"\n"===r[To.Node.endOfWhiteSpace(r,i)]&&0===l.length&&(f=new Po,i=f.parse({src:r},i)),a=To.Node.endOfIndent(r,i)}c=r[a]}if(To.Node.nextNodeIsIndented(c,a-(i+s),this.type!==To.Type.SEQ_ITEM)?this.node=n({atLineStart:o,inCollection:!1,indent:s,lineStart:i,parent:this},a):c&&i>t+1&&(a=i-1),this.node){if(f){const t=e.parent.items||e.parent.contents;t&&t.push(f)}l.length&&Array.prototype.push.apply(this.props,l),a=this.node.range.end}else if(u){const e=l[0];this.props.push(e),a=e.end}else a=To.Node.endOfLine(r,t+1);const h=this.node?this.node.valueRange.end:a;return this.valueRange=new To.Range(t,h),a}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:e},node:t,range:n,value:r}=this;if(null!=r)return r;const o=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return To.Node.addStringTerminator(e,n.end,o)}}class xo extends To.Node{constructor(){super(To.Type.COMMENT)}parse(e,t){this.context=e;const n=this.parseComment(t);return this.range=new To.Range(t,n),n}}function Ro(e){let t=e;for(;t instanceof Co;)t=t.node;if(!(t instanceof Io))return null;const n=t.items.length;let r=-1;for(let e=n-1;e>=0;--e){const n=t.items[e];if(n.type===To.Type.COMMENT){const{indent:t,lineStart:o}=n.context;if(t>0&&n.range.start>=o+t)break;r=e}else{if(n.type!==To.Type.BLANK_LINE)break;r=e}}if(-1===r)return null;const o=t.items.splice(r,n-r),i=o[0].range.start;for(;t.range.end=i,t.valueRange&&t.valueRange.end>i&&(t.valueRange.end=i),t!==e;)t=t.context.parent;return o}class Io extends To.Node{static nextContentHasIndent(e,t,n){const r=To.Node.endOfLine(e,t)+1,o=e[t=To.Node.endOfWhiteSpace(e,r)];return!!o&&(t>=r+n||("#"===o||"\n"===o)&&Io.nextContentHasIndent(e,t,n))}constructor(e){super(e.type===To.Type.SEQ_ITEM?To.Type.SEQ:To.Type.MAP);for(let t=e.props.length-1;t>=0;--t)if(e.props[t].start0}parse(e,t){this.context=e;const{parseNode:n,src:r}=e;let o=To.Node.startOfLine(r,t);const i=this.items[0];i.context.parent=this,this.valueRange=To.Range.copy(i.valueRange);const s=i.range.start-i.context.lineStart;let a=t;a=To.Node.normalizeOffset(r,a);let c=r[a],u=To.Node.endOfWhiteSpace(r,o)===a,l=!1;for(;c;){for(;"\n"===c||"#"===c;){if(u&&"\n"===c&&!l){const e=new Po;if(a=e.parse({src:r},a),this.valueRange.end=a,a>=r.length){c=null;break}this.items.push(e),a-=1}else if("#"===c){if(a=r.length){c=null;break}}if(o=a+1,a=To.Node.endOfIndent(r,o),To.Node.atBlank(r,a)){const e=To.Node.endOfWhiteSpace(r,a),t=r[e];t&&"\n"!==t&&"#"!==t||(a=e)}c=r[a],u=!0}if(!c)break;if(a!==o+s&&(u||":"!==c)){if(at&&(a=o);break}if(!this.error){const e="All collection items must start at the same column";this.error=new To.YAMLSyntaxError(this,e)}}if(i.type===To.Type.SEQ_ITEM){if("-"!==c){o>t&&(a=o);break}}else if("-"===c&&!this.error){const e=r[a+1];if(!e||"\n"===e||"\t"===e||" "===e){const e="A collection cannot be both a mapping and a sequence";this.error=new To.YAMLSyntaxError(this,e)}}const e=n({atLineStart:u,inCollection:!0,indent:s,lineStart:o,parent:this},a);if(!e)return a;if(this.items.push(e),this.valueRange.end=e.valueRange.end,a=To.Node.normalizeOffset(r,e.range.end),c=r[a],u=!1,l=e.includesTrailingLines,c){let e=a-1,t=r[e];for(;" "===t||"\t"===t;)t=r[--e];"\n"===t&&(o=e+1,u=!0)}const f=Ro(e);f&&Array.prototype.push.apply(this.items,f)}return a}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach((n=>{t=n.setOrigRanges(e,t)})),t}toString(){const{context:{src:e},items:t,range:n,value:r}=this;if(null!=r)return r;let o=e.slice(n.start,t[0].range.start)+String(t[0]);for(let e=1;e0&&(this.contents=this.directives,this.directives=[]),o}return t[o]?(this.directivesEndMarker=new To.Range(o,o+3),o+3):(r?this.error=new To.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),o)}parseContents(e){const{parseNode:t,src:n}=this.context;this.contents||(this.contents=[]);let r=e;for(;"-"===n[r-1];)r-=1;let o=To.Node.endOfWhiteSpace(n,e),i=r===e;for(this.valueRange=new To.Range(o);!To.Node.atDocumentBoundary(n,o,To.Char.DOCUMENT_END);){switch(n[o]){case"\n":if(i){const e=new Po;o=e.parse({src:n},o),o{t=n.setOrigRanges(e,t)})),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach((n=>{t=n.setOrigRanges(e,t)})),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}toString(){const{contents:e,directives:t,value:n}=this;if(null!=n)return n;let r=t.join("");return e.length>0&&((t.length>0||e[0].type===To.Type.COMMENT)&&(r+="---\n"),r+=e.join("")),"\n"!==r[r.length-1]&&(r+="\n"),r}}class Yo extends To.Node{parse(e,t){this.context=e;const{src:n}=e;let r=To.Node.endOfIdentifier(n,t+1);return this.valueRange=new To.Range(t+1,r),r=To.Node.endOfWhiteSpace(n,r),r=this.parseComment(r),r}}const jo="CLIP",$o="KEEP",Do="STRIP";class Fo extends To.Node{constructor(e,t){super(e,t),this.blockIndent=null,this.chomping=jo,this.header=null}get includesTrailingLines(){return this.chomping===$o}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{indent:n,src:r}=this.context;if(this.valueRange.isEmpty())return"";let o=null,i=r[t-1];for(;"\n"===i||"\t"===i||" "===i;){if(t-=1,t<=e){if(this.chomping===$o)break;return""}"\n"===i&&(o=t),i=r[t-1]}let s=t+1;o&&(this.chomping===$o?(s=o,t=this.valueRange.end):t=o);const a=n+this.blockIndent,c=this.type===To.Type.BLOCK_FOLDED;let u=!0,l="",f="",h=!1;for(let n=e;ns&&(s=c);o="\n"===n[e]?e:i=To.Node.endOfLine(n,e)}return this.chomping!==$o&&(o=n[i]?i+1:i),this.valueRange=new To.Range(e+1,o),o}parse(e,t){this.context=e;const{src:n}=e;let r=this.parseBlockHeader(t);return r=To.Node.endOfWhiteSpace(n,r),r=this.parseComment(r),r=this.parseBlockValue(r),r}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.header?this.header.setOrigRange(e,t):t}}class Uo extends To.Node{constructor(e,t){super(e,t),this.items=null}prevNodeIsJsonLike(e=this.items.length){const t=this.items[e-1];return!!t&&(t.jsonLike||t.type===To.Type.COMMENT&&this.prevNodeIsJsonLike(e-1))}parse(e,t){this.context=e;const{parseNode:n,src:r}=e;let{indent:o,lineStart:i}=e,s=r[t];this.items=[{char:s,offset:t}];let a=To.Node.endOfWhiteSpace(r,t+1);for(s=r[a];s&&"]"!==s&&"}"!==s;){switch(s){case"\n":i=a+1;if("\n"===r[To.Node.endOfWhiteSpace(r,i)]){const e=new Po;i=e.parse({src:r},i),this.items.push(e)}if(a=To.Node.endOfIndent(r,i),a<=i+o&&(s=r[a],a{if(n instanceof To.Node)t=n.setOrigRanges(e,t);else if(0===e.length)n.origOffset=n.offset;else{let r=t;for(;rn.offset);)++r;n.origOffset=n.offset+r,t=r}})),t}toString(){const{context:{src:e},items:t,range:n,value:r}=this;if(null!=r)return r;const o=t.filter((e=>e instanceof To.Node));let i="",s=n.start;return o.forEach((t=>{const n=e.slice(s,t.range.start);s=t.range.end,i+=n+String(t),"\n"===i[i.length-1]&&"\n"!==e[s-1]&&"\n"===e[s]&&(s+=1)})),i+=e.slice(s,n.end),To.Node.addStringTerminator(e,n.end,i)}}class Wo extends To.Node{static endOfQuote(e,t){let n=e[t];for(;n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[],{start:t,end:n}=this.valueRange,{indent:r,src:o}=this.context;'"'!==o[n-1]&&e.push(new To.YAMLSyntaxError(this,'Missing closing "quote'));let i="";for(let s=t+1;se?o.slice(e,s+1):t)}else i+=t}return e.length>0?{errors:e,str:i}:i}parseCharCode(e,t,n){const{src:r}=this.context,o=r.substr(e,t),i=o.length===t&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;return isNaN(i)?(n.push(new To.YAMLSyntaxError(this,`Invalid escape sequence ${r.substr(e-2,t+2)}`)),r.substr(e-2,t+2)):String.fromCodePoint(i)}parse(e,t){this.context=e;const{src:n}=e;let r=Wo.endOfQuote(n,t+1);return this.valueRange=new To.Range(t,r),r=To.Node.endOfWhiteSpace(n,r),r=this.parseComment(r),r}}class Ko extends To.Node{static endOfQuote(e,t){let n=e[t];for(;n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[],{start:t,end:n}=this.valueRange,{indent:r,src:o}=this.context;"'"!==o[n-1]&&e.push(new To.YAMLSyntaxError(this,"Missing closing 'quote"));let i="";for(let s=t+1;se?o.slice(e,s+1):t)}else i+=t}return e.length>0?{errors:e,str:i}:i}parse(e,t){this.context=e;const{src:n}=e;let r=Ko.endOfQuote(n,t+1);return this.valueRange=new To.Range(t,r),r=To.Node.endOfWhiteSpace(n,r),r=this.parseComment(r),r}}class Vo{static parseType(e,t,n){switch(e[t]){case"*":return To.Type.ALIAS;case">":return To.Type.BLOCK_FOLDED;case"|":return To.Type.BLOCK_LITERAL;case"{":return To.Type.FLOW_MAP;case"[":return To.Type.FLOW_SEQ;case"?":return!n&&To.Node.atBlank(e,t+1,!0)?To.Type.MAP_KEY:To.Type.PLAIN;case":":return!n&&To.Node.atBlank(e,t+1,!0)?To.Type.MAP_VALUE:To.Type.PLAIN;case"-":return!n&&To.Node.atBlank(e,t+1,!0)?To.Type.SEQ_ITEM:To.Type.PLAIN;case'"':return To.Type.QUOTE_DOUBLE;case"'":return To.Type.QUOTE_SINGLE;default:return To.Type.PLAIN}}constructor(e={},{atLineStart:t,inCollection:n,inFlow:r,indent:o,lineStart:i,parent:s}={}){To._defineProperty(this,"parseNode",((e,t)=>{if(To.Node.atDocumentBoundary(this.src,t))return null;const n=new Vo(this,e),{props:r,type:o,valueStart:i}=n.parseProps(t),s=function(e,t){switch(e){case To.Type.ALIAS:return new Yo(e,t);case To.Type.BLOCK_FOLDED:case To.Type.BLOCK_LITERAL:return new Fo(e,t);case To.Type.FLOW_MAP:case To.Type.FLOW_SEQ:return new Uo(e,t);case To.Type.MAP_KEY:case To.Type.MAP_VALUE:case To.Type.SEQ_ITEM:return new Co(e,t);case To.Type.COMMENT:case To.Type.PLAIN:return new To.PlainValue(e,t);case To.Type.QUOTE_DOUBLE:return new Wo(e,t);case To.Type.QUOTE_SINGLE:return new Ko(e,t);default:return null}}(o,r);let a=s.parse(n,i);if(s.range=new To.Range(t,a),a<=t&&(s.error=new Error("Node#parse consumed no characters"),s.error.parseEnd=a,s.error.source=s,s.range.end=t+1),n.nodeStartsCollection(s)){s.error||n.atLineStart||n.parent.type!==To.Type.DOCUMENT||(s.error=new To.YAMLSyntaxError(s,"Block collection must not have preceding content here (e.g. directives-end indicator)"));const e=new Io(s);return a=e.parse(new Vo(n),a),e.range=new To.Range(t,a),e}return s})),this.atLineStart=null!=t?t:e.atLineStart||!1,this.inCollection=null!=n?n:e.inCollection||!1,this.inFlow=null!=r?r:e.inFlow||!1,this.indent=null!=o?o:e.indent,this.lineStart=null!=i?i:e.lineStart,this.parent=null!=s?s:e.parent||{},this.root=e.root,this.src=e.src}nodeStartsCollection(e){const{inCollection:t,inFlow:n,src:r}=this;if(t||n)return!1;if(e instanceof Co)return!0;let o=e.range.end;return"\n"!==r[o]&&"\n"!==r[o-1]&&(o=To.Node.endOfWhiteSpace(r,o),":"===r[o])}parseProps(e){const{inFlow:t,parent:n,src:r}=this,o=[];let i=!1,s=r[e=this.atLineStart?To.Node.endOfIndent(r,e):To.Node.endOfWhiteSpace(r,e)];for(;s===To.Char.ANCHOR||s===To.Char.COMMENT||s===To.Char.TAG||"\n"===s;){if("\n"===s){let t,o=e;do{t=o+1,o=To.Node.endOfIndent(r,t)}while("\n"===r[o]);const s=o-(t+this.indent),a=n.type===To.Type.SEQ_ITEM&&n.context.atLineStart;if("#"!==r[o]&&!To.Node.nextNodeIsIndented(r[o],s,!a))break;this.atLineStart=!0,this.lineStart=t,i=!1,e=o}else if(s===To.Char.COMMENT){const t=To.Node.endOfLine(r,e+1);o.push(new To.Range(e,t)),e=t}else{let t=To.Node.endOfIdentifier(r,e+1);s===To.Char.TAG&&","===r[t]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(r.slice(e+1,t+13))&&(t=To.Node.endOfIdentifier(r,t+5)),o.push(new To.Range(e,t)),i=!0,e=To.Node.endOfWhiteSpace(r,t)}s=r[e]}i&&":"===s&&To.Node.atBlank(r,e+1,!0)&&(e-=1);return{props:o,type:Vo.parseType(r,e,t),valueStart:e}}}var Qo={parse:function(e){const t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,((e,n)=>(e.length>1&&t.push(n),"\n"))));const n=[];let r=0;do{const t=new Bo,o=new Vo({src:e});r=t.parse(o,r),n.push(t)}while(r{if(0===t.length)return!1;for(let e=1;en.join("...\n"),n}};function qo(e,t,n){return n?-1===n.indexOf("\n")?`${e} #${n}`:`${e}\n`+n.replace(/^/gm,`${t||""}#`):e}class Jo{}function Go(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>Go(e,String(t),n)));if(e&&"function"==typeof e.toJSON){const r=n&&n.anchors&&n.anchors.get(e);r&&(n.onCreate=e=>{r.res=e,delete n.onCreate});const o=e.toJSON(t,n);return r&&n.onCreate&&n.onCreate(o),o}return n&&n.keep||"bigint"!=typeof e?e:Number(e)}class Ho extends Jo{constructor(e){super(),this.value=e}toJSON(e,t){return t&&t.keep?this.value:Go(this.value,e,t)}toString(){return String(this.value)}}function zo(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if(Number.isInteger(n)&&n>=0){const e=[];e[n]=r,r=e}else{const e={};Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=e}}return e.createNode(r,!1)}const Zo=e=>null==e||"object"==typeof e&&e[Symbol.iterator]().next().done;class Xo extends Jo{constructor(e){super(),To._defineProperty(this,"items",[]),this.schema=e}addIn(e,t){if(Zo(e))this.add(t);else{const[n,...r]=e,o=this.get(n,!0);if(o instanceof Xo)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,zo(this.schema,r,t))}}}deleteIn([e,...t]){if(0===t.length)return this.delete(e);const n=this.get(e,!0);if(n instanceof Xo)return n.deleteIn(t);throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}getIn([e,...t],n){const r=this.get(e,!0);return 0===t.length?!n&&r instanceof Ho?r.value:r:r instanceof Xo?r.getIn(t,n):void 0}hasAllNullValues(){return this.items.every((e=>{if(!e||"PAIR"!==e.type)return!1;const t=e.value;return null==t||t instanceof Ho&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag}))}hasIn([e,...t]){if(0===t.length)return this.has(e);const n=this.get(e,!0);return n instanceof Xo&&n.hasIn(t)}setIn([e,...t],n){if(0===t.length)this.set(e,n);else{const r=this.get(e,!0);if(r instanceof Xo)r.setIn(t,n);else{if(void 0!==r||!this.schema)throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`);this.set(e,zo(this.schema,t,n))}}}toJSON(){return null}toString(e,{blockItem:t,flowChars:n,isMap:r,itemIndent:o},i,s){const{indent:a,indentStep:c,stringify:u}=e,l=this.type===To.Type.FLOW_MAP||this.type===To.Type.FLOW_SEQ||e.inFlow;l&&(o+=c);const f=r&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:f,indent:o,inFlow:l,type:null});let h=!1,p=!1;const d=this.items.reduce(((t,n,r)=>{let i;n&&(!h&&n.spaceBefore&&t.push({type:"comment",str:""}),n.commentBefore&&n.commentBefore.match(/^.*$/gm).forEach((e=>{t.push({type:"comment",str:`#${e}`})})),n.comment&&(i=n.comment),l&&(!h&&n.spaceBefore||n.commentBefore||n.comment||n.key&&(n.key.commentBefore||n.key.comment)||n.value&&(n.value.commentBefore||n.value.comment))&&(p=!0)),h=!1;let s=u(n,e,(()=>i=null),(()=>h=!0));return l&&!p&&s.includes("\n")&&(p=!0),l&&re.str));if(p||r.reduce(((e,t)=>e+t.length+2),2)>Xo.maxFlowStringSingleLineLength){g=e;for(const e of r)g+=e?`\n${c}${a}${e}`:"\n";g+=`\n${a}${t}`}else g=`${e} ${r.join(" ")} ${t}`}else{const e=d.map(t);g=e.shift();for(const t of e)g+=t?`\n${a}${t}`:"\n"}return this.comment?(g+="\n"+this.comment.replace(/^/gm,`${a}#`),i&&i()):h&&s&&s(),g}}function ei(e){let t=e instanceof Ho?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}To._defineProperty(Xo,"maxFlowStringSingleLineLength",60);class ti extends Xo{add(e){this.items.push(e)}delete(e){const t=ei(e);if("number"!=typeof t)return!1;return this.items.splice(t,1).length>0}get(e,t){const n=ei(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&r instanceof Ho?r.value:r}has(e){const t=ei(e);return"number"==typeof t&&t"comment"===e.type?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},t,n):JSON.stringify(this)}}class ni extends Jo{constructor(e,t=null){super(),this.key=e,this.value=t,this.type=ni.Type.PAIR}get commentBefore(){return this.key instanceof Jo?this.key.commentBefore:void 0}set commentBefore(e){if(null==this.key&&(this.key=new Ho(null)),!(this.key instanceof Jo)){throw new Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.")}this.key.commentBefore=e}addToJSMap(e,t){const n=Go(this.key,"",e);if(t instanceof Map){const r=Go(this.value,n,e);t.set(n,r)}else if(t instanceof Set)t.add(n);else{const r=((e,t,n)=>null===t?"":"object"!=typeof t?String(t):e instanceof Jo&&n&&n.doc?e.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(t))(this.key,n,e),o=Go(this.value,r,e);r in t?Object.defineProperty(t,r,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[r]=o}return t}toJSON(e,t){const n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}toString(e,t,n){if(!e||!e.doc)return JSON.stringify(this);const{indent:r,indentSeq:o,simpleKeys:i}=e.doc.options;let{key:s,value:a}=this,c=s instanceof Jo&&s.comment;if(i){if(c)throw new Error("With simple keys, key nodes cannot have comments");if(s instanceof Xo){throw new Error("With simple keys, collection cannot be used as a key value")}}let u=!i&&(!s||c||(s instanceof Jo?s instanceof Xo||s.type===To.Type.BLOCK_FOLDED||s.type===To.Type.BLOCK_LITERAL:"object"==typeof s));const{doc:l,indent:f,indentStep:h,stringify:p}=e;e=Object.assign({},e,{implicitKey:!u,indent:f+h});let d=!1,g=p(s,e,(()=>c=null),(()=>d=!0));if(g=qo(g,e.indent,c),!u&&g.length>1024){if(i)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");u=!0}if(e.allNullValues&&!i)return this.comment?(g=qo(g,e.indent,this.comment),t&&t()):d&&!c&&n&&n(),e.inFlow&&!u?g:`? ${g}`;g=u?`? ${g}\n${f}:`:`${g}:`,this.comment&&(g=qo(g,e.indent,this.comment),t&&t());let m="",y=null;if(a instanceof Jo){if(a.spaceBefore&&(m="\n"),a.commentBefore){m+=`\n${a.commentBefore.replace(/^/gm,`${e.indent}#`)}`}y=a.comment}else a&&"object"==typeof a&&(a=l.schema.createNode(a,!0));e.implicitKey=!1,!u&&!this.comment&&a instanceof Ho&&(e.indentAtStart=g.length+1),d=!1,!o&&r>=2&&!e.inFlow&&!u&&a instanceof ti&&a.type!==To.Type.FLOW_SEQ&&!a.tag&&!l.anchors.getName(a)&&(e.indent=e.indent.substr(2));const v=p(a,e,(()=>y=null),(()=>d=!0));let b=" ";if(m||this.comment)b=`${m}\n${e.indent}`;else if(!u&&a instanceof Xo){("["===v[0]||"{"===v[0])&&!v.includes("\n")||(b=`\n${e.indent}`)}else"\n"===v[0]&&(b="");return d&&!y&&n&&n(),qo(g+b+v,e.indent,y)}}To._defineProperty(ni,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});const ri=(e,t)=>{if(e instanceof oi){const n=t.get(e.source);return n.count*n.aliasCount}if(e instanceof Xo){let n=0;for(const r of e.items){const e=ri(r,t);e>n&&(n=e)}return n}if(e instanceof ni){const n=ri(e.key,t),r=ri(e.value,t);return Math.max(n,r)}return 1};class oi extends Jo{static stringify({range:e,source:t},{anchors:n,doc:r,implicitKey:o,inStringifyKey:i}){let s=Object.keys(n).find((e=>n[e]===t));if(!s&&i&&(s=r.anchors.getName(t)||r.anchors.newName()),s)return`*${s}${o?" ":""}`;const a=r.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${a} [${e}]`)}constructor(e){super(),this.source=e,this.type=To.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,t){if(!t)return Go(this.source,e,t);const{anchors:n,maxAliasCount:r}=t,o=n.get(this.source);if(!o||void 0===o.res){const e="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new To.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}if(r>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=ri(this.source,n)),o.count*o.aliasCount>r)){const e="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new To.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}return o.res}toString(e){return oi.stringify(this,e)}}function ii(e,t){const n=t instanceof Ho?t.value:t;for(const r of e)if(r instanceof ni){if(r.key===t||r.key===n)return r;if(r.key&&r.key.value===n)return r}}To._defineProperty(oi,"default",!0);class si extends Xo{add(e,t){e?e instanceof ni||(e=new ni(e.key||e,e.value)):e=new ni(e);const n=ii(this.items,e.key),r=this.schema&&this.schema.sortMapEntries;if(n){if(!t)throw new Error(`Key ${e.key} already set`);n.value=e.value}else if(r){const t=this.items.findIndex((t=>r(e,t)<0));-1===t?this.items.push(e):this.items.splice(t,0,e)}else this.items.push(e)}delete(e){const t=ii(this.items,e);if(!t)return!1;return this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=ii(this.items,e),r=n&&n.value;return!t&&r instanceof Ho?r.value:r}has(e){return!!ii(this.items,e)}set(e,t){this.add(new ni(e,t),!0)}toJSON(e,t,n){const r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);for(const e of this.items)e.addToJSMap(t,r);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!(e instanceof ni))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,n)}}class ai extends ni{constructor(e){if(e instanceof ni){let t=e.value;t instanceof ti||(t=new ti,t.items.push(e.value),t.range=e.value.range),super(e.key,t),this.range=e.range}else super(new Ho("<<"),new ti);this.type=ni.Type.MERGE_PAIR}addToJSMap(e,t){for(const{source:n}of this.value.items){if(!(n instanceof si))throw new Error("Merge sources must be maps");const r=n.toJSON(null,e,Map);for(const[e,n]of r)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}return t}toString(e,t){const n=this.value;if(n.items.length>1)return super.toString(e,t);this.value=n.items[0];const r=super.toString(e,t);return this.value=n,r}}const ci={defaultType:To.Type.BLOCK_LITERAL,lineWidth:76},ui={defaultType:To.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function li(e,t,n){for(const{format:n,test:r,resolve:o}of t)if(r){const t=e.match(r);if(t){let e=o.apply(null,t);return e instanceof Ho||(e=new Ho(e)),n&&(e.format=n),e}}return n&&(e=n(e)),new Ho(e)}const fi=(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};function hi(e,t,n,{indentAtStart:r,lineWidth:o=80,minContentWidth:i=20,onFold:s,onOverflow:a}){if(!o||o<0)return e;const c=Math.max(1+i,1+o-t.length);if(e.length<=c)return e;const u=[],l={};let f,h,p=o-t.length;"number"==typeof r&&(r>o-Math.max(2,i)?u.push(0):p=o-r);let d,g=!1,m=-1,y=-1,v=-1;for("block"===n&&(m=fi(e,m),-1!==m&&(p=m+c));d=e[m+=1];){if("quoted"===n&&"\\"===d){switch(y=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}v=m}if("\n"===d)"block"===n&&(m=fi(e,m)),p=m+c,f=void 0;else{if(" "===d&&h&&" "!==h&&"\n"!==h&&"\t"!==h){const t=e[m+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(f=m)}if(m>=p)if(f)u.push(f),p=f+c,f=void 0;else if("quoted"===n){for(;" "===h||"\t"===h;)h=d,d=e[m+=1],g=!0;const t=m>v+1?m-2:y-1;if(l[t])return e;u.push(t),l[t]=!0,p=t+c,f=void 0}else g=!0}h=d}if(g&&a&&a(),0===u.length)return e;s&&s();let b=e.slice(0,u[0]);for(let r=0;re?Object.assign({indentAtStart:e},ui.fold):ui.fold,di=e=>/^(%|---|\.\.\.)/m.test(e);function gi(e,t){const{implicitKey:n}=t,{jsonEncoding:r,minMultiLineLength:o}=ui.doubleQuoted,i=JSON.stringify(e);if(r)return i;const s=t.indent||(di(e)?" ":"");let a="",c=0;for(let e=0,t=i[e];t;t=i[++e])if(" "===t&&"\\"===i[e+1]&&"n"===i[e+2]&&(a+=i.slice(c,e)+"\\ ",e+=1,c=e,t="\\"),"\\"===t)switch(i[e+1]){case"u":{a+=i.slice(c,e);const t=i.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:"00"===t.substr(0,2)?a+="\\x"+t.substr(2):a+=i.substr(e,6)}e+=5,c=e+1}break;case"n":if(n||'"'===i[e+2]||i.lengthr)return!0;if(n=t+1,o-n<=r)return!1}return!0}(n,ui.fold.lineWidth,s.length));let u=c?"|":">";if(!n)return u+"\n";let l="",f="";if(n=n.replace(/[\n\t ]*$/,(e=>{const t=e.indexOf("\n");return-1===t?u+="-":n!==e&&t===e.length-1||(u+="+",i&&i()),f=e.replace(/\n$/,""),""})).replace(/^[\n ]*/,(e=>{-1!==e.indexOf(" ")&&(u+=a);const t=e.match(/ +$/);return t?(l=e.slice(0,-t[0].length),t[0]):(l=e,"")})),f&&(f=f.replace(/\n+(?!\n|$)/g,`$&${s}`)),l&&(l=l.replace(/\n+/g,`$&${s}`)),e&&(u+=" #"+e.replace(/ ?[\r\n]+/g," "),o&&o()),!n)return`${u}${a}\n${s}${f}`;if(c)return n=n.replace(/\n+/g,`$&${s}`),`${u}\n${s}${l}${n}${f}`;n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${s}`);const h=hi(`${l}${n}${f}`,s,"block",ui.fold);return`${u}\n${s}${h}`}function vi(e,t){let n,r,o;switch(t.type){case To.Type.FLOW_MAP:n="}",r="flow map";break;case To.Type.FLOW_SEQ:n="]",r="flow sequence";break;default:return void e.push(new To.YAMLSemanticError(t,"Not a flow collection!?"))}for(let e=t.items.length-1;e>=0;--e){const n=t.items[e];if(!n||n.type!==To.Type.COMMENT){o=n;break}}if(o&&o.char!==n){const i=`Expected ${r} to end with ${n}`;let s;"number"==typeof o.offset?(s=new To.YAMLSemanticError(t,i),s.offset=o.offset+1):(s=new To.YAMLSemanticError(o,i),o.range&&o.range.end&&(s.offset=o.range.end-o.range.start)),e.push(s)}}function bi(e,t){const n=t.context.src[t.range.start-1];if("\n"!==n&&"\t"!==n&&" "!==n){const n="Comments must be separated from other tokens by white space characters";e.push(new To.YAMLSemanticError(t,n))}}function wi(e,t){const n=String(t),r=n.substr(0,8)+"..."+n.substr(-8);return new To.YAMLSemanticError(e,`The "${r}" key is too long`)}function _i(e,t){for(const{afterKey:n,before:r,comment:o}of t){let t=e.items[r];t?(n&&t.value&&(t=t.value),void 0===o?!n&&t.commentBefore||(t.spaceBefore=!0):t.commentBefore?t.commentBefore+="\n"+o:t.commentBefore=o):void 0!==o&&(e.comment?e.comment+="\n"+o:e.comment=o)}}function Ei(e,t){const n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach((n=>{n.source||(n.source=t),e.errors.push(n)})),n.str):""}function Si(e,t){const{tag:n,type:r}=t;let o=!1;if(n){const{handle:r,suffix:i,verbatim:s}=n;if(s){if("!"!==s&&"!!"!==s)return s;const n=`Verbatim tags aren't resolved, so ${s} is invalid.`;e.errors.push(new To.YAMLSemanticError(t,n))}else if("!"!==r||i)try{return function(e,t){const{handle:n,suffix:r}=t.tag;let o=e.tagPrefixes.find((e=>e.handle===n));if(!o){const r=e.getDefaults().tagPrefixes;if(r&&(o=r.find((e=>e.handle===n))),!o)throw new To.YAMLSemanticError(t,`The ${n} tag handle is non-default and was not declared.`)}if(!r)throw new To.YAMLSemanticError(t,`The ${n} tag has no suffix.`);if("!"===n&&"1.0"===(e.version||e.options.version)){if("^"===r[0])return e.warnings.push(new To.YAMLWarning(t,"YAML 1.0 ^ tag expansion is not supported")),r;if(/[:/]/.test(r)){const e=r.match(/^([a-z0-9-]+)\/(.*)/i);return e?`tag:${e[1]}.yaml.org,2002:${e[2]}`:`tag:${r}`}}return o.prefix+decodeURIComponent(r)}(e,t)}catch(t){e.errors.push(t)}else o=!0}switch(r){case To.Type.BLOCK_FOLDED:case To.Type.BLOCK_LITERAL:case To.Type.QUOTE_DOUBLE:case To.Type.QUOTE_SINGLE:return To.defaultTags.STR;case To.Type.FLOW_MAP:case To.Type.MAP:return To.defaultTags.MAP;case To.Type.FLOW_SEQ:case To.Type.SEQ:return To.defaultTags.SEQ;case To.Type.PLAIN:return o?To.defaultTags.STR:null;default:return null}}function Oi(e,t,n){const{tags:r}=e.schema,o=[];for(const i of r)if(i.tag===n){if(!i.test){const n=i.resolve(e,t);return n instanceof Xo?n:new Ho(n)}o.push(i)}const i=Ei(e,t);return"string"==typeof i&&o.length>0?li(i,o,r.scalarFallback):null}function Ai(e,t,n){try{const r=Oi(e,t,n);if(r)return n&&t.tag&&(r.tag=n),r}catch(n){return n.source||(n.source=t),e.errors.push(n),null}try{const r=function({type:e}){switch(e){case To.Type.FLOW_MAP:case To.Type.MAP:return To.defaultTags.MAP;case To.Type.FLOW_SEQ:case To.Type.SEQ:return To.defaultTags.SEQ;default:return To.defaultTags.STR}}(t);if(!r)throw new Error(`The tag ${n} is unavailable`);const o=`The tag ${n} is unavailable, falling back to ${r}`;e.warnings.push(new To.YAMLWarning(t,o));const i=Oi(e,t,r);return i.tag=n,i}catch(n){const r=new To.YAMLReferenceError(t,n.message);return r.stack=n.stack,e.errors.push(r),null}}function Mi(e,t){const n={before:[],after:[]};let r=!1,o=!1;const i=(e=>{if(!e)return!1;const{type:t}=e;return t===To.Type.MAP_KEY||t===To.Type.MAP_VALUE||t===To.Type.SEQ_ITEM})(t.context.parent)?t.context.parent.props.concat(t.props):t.props;for(const{start:s,end:a}of i)switch(t.context.src[s]){case To.Char.COMMENT:{if(!t.commentHasRequiredWhitespace(s)){const n="Comments must be separated from other tokens by white space characters";e.push(new To.YAMLSemanticError(t,n))}const{header:r,valueRange:o}=t;(o&&(s>o.start||r&&s>r.start)?n.after:n.before).push(t.context.src.slice(s+1,a));break}case To.Char.ANCHOR:if(r){const n="A node can have at most one anchor";e.push(new To.YAMLSemanticError(t,n))}r=!0;break;case To.Char.TAG:if(o){const n="A node can have at most one tag";e.push(new To.YAMLSemanticError(t,n))}o=!0}return{comments:n,hasAnchor:r,hasTag:o}}function Li(e,t){if(!t)return null;t.error&&e.errors.push(t.error);const{comments:n,hasAnchor:r,hasTag:o}=Mi(e.errors,t);if(r){const{anchors:n}=e,r=t.anchor,o=n.getNode(r);o&&(n.map[n.newName(r)]=o),n.map[r]=t}if(t.type===To.Type.ALIAS&&(r||o)){const n="An alias node must not specify any properties";e.errors.push(new To.YAMLSemanticError(t,n))}const i=function(e,t){const{anchors:n,errors:r,schema:o}=e;if(t.type===To.Type.ALIAS){const e=t.rawValue,o=n.getNode(e);if(!o){const n=`Aliased anchor not found: ${e}`;return r.push(new To.YAMLReferenceError(t,n)),null}const i=new oi(o);return n._cstAliases.push(i),i}const i=Si(e,t);if(i)return Ai(e,t,i);if(t.type!==To.Type.PLAIN){const e=`Failed to resolve ${t.type} node here`;return r.push(new To.YAMLSyntaxError(t,e)),null}try{return li(Ei(e,t),o.tags,o.tags.scalarFallback)}catch(e){return e.source||(e.source=t),r.push(e),null}}(e,t);if(i){i.range=[t.range.start,t.range.end],e.options.keepCstNodes&&(i.cstNode=t),e.options.keepNodeTypes&&(i.type=t.type);const r=n.before.join("\n");r&&(i.commentBefore=i.commentBefore?`${i.commentBefore}\n${r}`:r);const o=n.after.join("\n");o&&(i.comment=i.comment?`${i.comment}\n${o}`:o)}return t.resolved=i}function Ni(e,t){if(!(({context:{lineStart:e,node:t,src:n},props:r})=>{if(0===r.length)return!1;const{start:o}=r[0];if(t&&o>t.valueRange.start)return!1;if(n[o]!==To.Char.COMMENT)return!1;for(let t=e;t0){n=new To.PlainValue(To.Type.PLAIN,[]),n.context={parent:a,src:a.context.src};const e=a.range.start+1;if(n.range={start:e,end:e},n.valueRange={start:e,end:e},"number"==typeof a.range.origStart){const e=a.range.origStart+1;n.range.origStart=n.range.origEnd=e,n.valueRange.origStart=n.valueRange.origEnd=e}}const s=new ni(o,Li(e,n));Ni(a,s),r.push(s),o&&"number"==typeof i&&a.range.start>i+1024&&e.errors.push(wi(t,o)),o=void 0,i=null}break;default:void 0!==o&&r.push(new ni(o)),o=Li(e,a),i=a.range.start,a.error&&e.errors.push(a.error);e:for(let n=s+1;;++n){const r=t.items[n];switch(r&&r.type){case To.Type.BLANK_LINE:case To.Type.COMMENT:continue e;case To.Type.MAP_VALUE:break e;default:{const t="Implicit map keys need to be followed by map values";e.errors.push(new To.YAMLSemanticError(a,t));break e}}}if(a.valueRangeContainsNewline){const t="Implicit map keys need to be on a single line";e.errors.push(new To.YAMLSemanticError(a,t))}}}void 0!==o&&r.push(new ni(o));return{comments:n,items:r}}(e,t),o=new si;o.items=r,_i(o,n);let i=!1;for(let n=0;n{if(e instanceof oi){const{type:t}=e.source;return t!==To.Type.MAP&&t!==To.Type.FLOW_MAP&&(i="Merge nodes aliases can only point to maps")}return i="Merge nodes can only have Alias nodes as values"})),i&&e.errors.push(new To.YAMLSemanticError(t,i))}else for(let i=n+1;is+1024&&e.errors.push(wi(t,o));const{src:r}=c.context;for(let t=s;te instanceof ni&&e.key instanceof Xo))){const n="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new To.YAMLWarning(t,n))}return t.resolved=o,o},resolveString:Ei,strOptions:ui,stringifyNumber:function({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let o=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(o)){let e=o.indexOf(".");e<0&&(e=o.length,o+=".");let n=t-(o.length-e-1);for(;n-- >0;)o+="0"}return o},stringifyString:function(e,t,n,r){const{defaultType:o}=ui,{implicitKey:i,inFlow:s}=t;let{type:a,value:c}=e;"string"!=typeof c&&(c=String(c),e=Object.assign({},e,{value:c}));const u=o=>{switch(o){case To.Type.BLOCK_FOLDED:case To.Type.BLOCK_LITERAL:return yi(e,t,n,r);case To.Type.QUOTE_DOUBLE:return gi(c,t);case To.Type.QUOTE_SINGLE:return mi(c,t);case To.Type.PLAIN:return function(e,t,n,r){const{comment:o,type:i,value:s}=e,{actualString:a,implicitKey:c,indent:u,inFlow:l}=t;if(c&&/[\n[\]{},]/.test(s)||l&&/[[\]{},]/.test(s))return gi(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return c||l||-1===s.indexOf("\n")?-1!==s.indexOf('"')&&-1===s.indexOf("'")?mi(s,t):gi(s,t):yi(e,t,n,r);if(!c&&!l&&i!==To.Type.PLAIN&&-1!==s.indexOf("\n"))return yi(e,t,n,r);if(""===u&&di(s))return t.forceBlockIndent=!0,yi(e,t,n,r);const f=s.replace(/\n+/g,`$&\n${u}`);if(a){const{tags:e}=t.doc.schema;if("string"!=typeof li(f,e,e.scalarFallback).value)return gi(s,t)}const h=c?f:hi(f,u,"flow",pi(t));return!o||l||-1===h.indexOf("\n")&&-1===o.indexOf("\n")?h:(n&&n(),function(e,t,n){return n?`#${n.replace(/[\s\S]^/gm,`$&${t}#`)}\n${t}${e}`:e}(h,u,o))}(e,t,n,r);default:return null}};a!==To.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(c)?a=To.Type.QUOTE_DOUBLE:!i&&!s||a!==To.Type.BLOCK_FOLDED&&a!==To.Type.BLOCK_LITERAL||(a=To.Type.QUOTE_DOUBLE);let l=u(a);if(null===l&&(l=u(o),null===l))throw new Error(`Unsupported default string type ${o}`);return l},toJSON:Go},Pi=void 0!==Pi?Pi:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Ci=[],xi=[],Ri="undefined"!=typeof Uint8Array?Uint8Array:Array,Ii=!1;function ki(){Ii=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t>18&63]+Ci[o>>12&63]+Ci[o>>6&63]+Ci[63&o]);return i.join("")}function Yi(e){var t;Ii||ki();for(var n=e.length,r=n%3,o="",i=[],s=16383,a=0,c=n-r;ac?c:a+s));return 1===r?(t=e[n-1],o+=Ci[t>>2],o+=Ci[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=Ci[t>>10],o+=Ci[t>>4&63],o+=Ci[t<<2&63],o+="="),i.push(o),i.join("")}function ji(e,t,n,r,o){var i,s,a=8*o-r-1,c=(1<>1,l=-7,f=n?o-1:0,h=n?-1:1,p=e[t+f];for(f+=h,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+e[t+f],f+=h,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=r;l>0;s=256*s+e[t+f],f+=h,l-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),i-=u}return(p?-1:1)*s*Math.pow(2,i-r)}function $i(e,t,n,r,o,i){var s,a,c,u=8*i-o-1,l=(1<>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,d=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+f>=1?h/c:h*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*c-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[n+p]=255&a,p+=d,a/=256,o-=8);for(s=s<0;e[n+p]=255&s,p+=d,s/=256,u-=8);e[n+p-d]|=128*g}var Di={}.toString,Fi=Array.isArray||function(e){return"[object Array]"==Di.call(e)};function Ui(){return Ki.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Wi(e,t){if(Ui()=Ui())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ui().toString(16)+" bytes");return 0|e}function Hi(e){return!(null==e||!e._isBuffer)}function zi(e,t){if(Hi(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Ss(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Os(e).length;default:if(r)return Ss(e).length;t=(""+t).toLowerCase(),r=!0}}function Zi(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return hs(this,t,n);case"utf8":case"utf-8":return us(this,t,n);case"ascii":return ls(this,t,n);case"latin1":case"binary":return fs(this,t,n);case"base64":return cs(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ps(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Xi(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function es(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=Ki.from(t,r)),Hi(t))return 0===t.length?-1:ts(e,t,n,r,o);if("number"==typeof t)return t&=255,Ki.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):ts(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function ts(e,t,n,r,o){var i,s=1,a=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var l=-1;for(i=n;ia&&(n=a-c),i=n;i>=0;i--){for(var f=!0,h=0;ho&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var s=0;s>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function cs(e,t,n){return 0===t&&n===e.length?Yi(e):Yi(e.slice(t,n))}function us(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:u>223?3:u>191?2:1;if(o+f<=n)switch(f){case 1:u<128&&(l=u);break;case 2:128==(192&(i=e[o+1]))&&(c=(31&u)<<6|63&i)>127&&(l=c);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(c=(15&u)<<12|(63&i)<<6|63&s)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(c=(15&u)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},Ki.prototype.compare=function(e,t,n,r,o){if(!Hi(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(i,s),c=this.slice(r,o),u=e.slice(t,n),l=0;lo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return ns(this,e,t,n);case"utf8":case"utf-8":return rs(this,e,t,n);case"ascii":return os(this,e,t,n);case"latin1":case"binary":return is(this,e,t,n);case"base64":return ss(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return as(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},Ki.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ls(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function gs(e,t,n,r,o,i){if(!Hi(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function ms(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function ys(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function vs(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function bs(e,t,n,r,o){return o||vs(e,0,n,4),$i(e,t,n,r,23,4),n+4}function ws(e,t,n,r,o){return o||vs(e,0,n,8),$i(e,t,n,r,52,8),n+8}Ki.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},Ki.prototype.readUInt8=function(e,t){return t||ds(e,1,this.length),this[e]},Ki.prototype.readUInt16LE=function(e,t){return t||ds(e,2,this.length),this[e]|this[e+1]<<8},Ki.prototype.readUInt16BE=function(e,t){return t||ds(e,2,this.length),this[e]<<8|this[e+1]},Ki.prototype.readUInt32LE=function(e,t){return t||ds(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Ki.prototype.readUInt32BE=function(e,t){return t||ds(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Ki.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||ds(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},Ki.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||ds(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},Ki.prototype.readInt8=function(e,t){return t||ds(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Ki.prototype.readInt16LE=function(e,t){t||ds(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Ki.prototype.readInt16BE=function(e,t){t||ds(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Ki.prototype.readInt32LE=function(e,t){return t||ds(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Ki.prototype.readInt32BE=function(e,t){return t||ds(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Ki.prototype.readFloatLE=function(e,t){return t||ds(e,4,this.length),ji(this,e,!0,23,4)},Ki.prototype.readFloatBE=function(e,t){return t||ds(e,4,this.length),ji(this,e,!1,23,4)},Ki.prototype.readDoubleLE=function(e,t){return t||ds(e,8,this.length),ji(this,e,!0,52,8)},Ki.prototype.readDoubleBE=function(e,t){return t||ds(e,8,this.length),ji(this,e,!1,52,8)},Ki.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||gs(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},Ki.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||gs(this,e,t,1,255,0),Ki.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Ki.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||gs(this,e,t,2,65535,0),Ki.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ms(this,e,t,!0),t+2},Ki.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||gs(this,e,t,2,65535,0),Ki.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ms(this,e,t,!1),t+2},Ki.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||gs(this,e,t,4,4294967295,0),Ki.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):ys(this,e,t,!0),t+4},Ki.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||gs(this,e,t,4,4294967295,0),Ki.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ys(this,e,t,!1),t+4},Ki.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);gs(this,e,t,n,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+n},Ki.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);gs(this,e,t,n,o-1,-o)}var i=n-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},Ki.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||gs(this,e,t,1,127,-128),Ki.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Ki.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||gs(this,e,t,2,32767,-32768),Ki.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ms(this,e,t,!0),t+2},Ki.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||gs(this,e,t,2,32767,-32768),Ki.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ms(this,e,t,!1),t+2},Ki.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||gs(this,e,t,4,2147483647,-2147483648),Ki.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):ys(this,e,t,!0),t+4},Ki.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||gs(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Ki.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ys(this,e,t,!1),t+4},Ki.prototype.writeFloatLE=function(e,t,n){return bs(this,e,t,!0,n)},Ki.prototype.writeFloatBE=function(e,t,n){return bs(this,e,t,!1,n)},Ki.prototype.writeDoubleLE=function(e,t,n){return ws(this,e,t,!0,n)},Ki.prototype.writeDoubleBE=function(e,t,n){return ws(this,e,t,!1,n)},Ki.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!Ki.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function Os(e){return function(e){var t,n,r,o,i,s;Ii||ki();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[a-2]?2:"="===e[a-1]?1:0,s=new Ri(3*a/4-i),r=i>0?a-4:a;var c=0;for(t=0,n=0;t>16&255,s[c++]=o>>8&255,s[c++]=255&o;return 2===i?(o=xi[e.charCodeAt(t)]<<2|xi[e.charCodeAt(t+1)]>>4,s[c++]=255&o):1===i&&(o=xi[e.charCodeAt(t)]<<10|xi[e.charCodeAt(t+1)]<<4|xi[e.charCodeAt(t+2)]>>2,s[c++]=o>>8&255,s[c++]=255&o),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(_s,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function As(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Ms(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function Ls(){throw new Error("setTimeout has not been defined")}function Ns(){throw new Error("clearTimeout has not been defined")}var Ts=Ls,Ps=Ns;function Cs(e){if(Ts===setTimeout)return setTimeout(e,0);if((Ts===Ls||!Ts)&&setTimeout)return Ts=setTimeout,setTimeout(e,0);try{return Ts(e,0)}catch(t){try{return Ts.call(null,e,0)}catch(t){return Ts.call(this,e,0)}}}"function"==typeof Pi.setTimeout&&(Ts=setTimeout),"function"==typeof Pi.clearTimeout&&(Ps=clearTimeout);var xs,Rs=[],Is=!1,ks=-1;function Bs(){Is&&xs&&(Is=!1,xs.length?Rs=xs.concat(Rs):ks=-1,Rs.length&&Ys())}function Ys(){if(!Is){var e=Cs(Bs);Is=!0;for(var t=Rs.length;t;){for(xs=Rs,Rs=[];++ks1)for(var n=1;ne instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{const n=Ti.resolveString(e,t);return Ki.from(n,"base64")},options:Ti.binaryOptions,stringify:({comment:e,type:t,value:n},r,o,i)=>{let s;if(s=n instanceof Ki?n.toString("base64"):Ki.from(n.buffer).toString("base64"),t||(t=Ti.binaryOptions.defaultType),t===To.Type.QUOTE_DOUBLE)n=s;else{const{lineWidth:e}=Ti.binaryOptions,r=Math.ceil(s.length/e),o=new Array(r);for(let t=0,n=0;t1){const e="Each pair must have its own sequence indicator";throw new To.YAMLSemanticError(t,e)}const e=r.items[0]||new Ti.Pair;r.commentBefore&&(e.commentBefore=e.commentBefore?`${r.commentBefore}\n${e.commentBefore}`:r.commentBefore),r.comment&&(e.comment=e.comment?`${r.comment}\n${e.comment}`:r.comment),r=e}n.items[e]=r instanceof Ti.Pair?r:new Ti.Pair(r)}}return n}function Xs(e,t,n){const r=new Ti.YAMLSeq(e);r.tag="tag:yaml.org,2002:pairs";for(const o of t){let t,i;if(Array.isArray(o)){if(2!==o.length)throw new TypeError(`Expected [key, value] tuple: ${o}`);t=o[0],i=o[1]}else if(o&&o instanceof Object){const e=Object.keys(o);if(1!==e.length)throw new TypeError(`Expected { key: value } tuple: ${o}`);t=e[0],i=o[t]}else t=o;const s=e.createPair(t,i,n);r.items.push(s)}return r}const ea={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Zs,createNode:Xs};class ta extends Ti.YAMLSeq{constructor(){super(),To._defineProperty(this,"add",Ti.YAMLMap.prototype.add.bind(this)),To._defineProperty(this,"delete",Ti.YAMLMap.prototype.delete.bind(this)),To._defineProperty(this,"get",Ti.YAMLMap.prototype.get.bind(this)),To._defineProperty(this,"has",Ti.YAMLMap.prototype.has.bind(this)),To._defineProperty(this,"set",Ti.YAMLMap.prototype.set.bind(this)),this.tag=ta.tag}toJSON(e,t){const n=new Map;t&&t.onCreate&&t.onCreate(n);for(const e of this.items){let r,o;if(e instanceof Ti.Pair?(r=Ti.toJSON(e.key,"",t),o=Ti.toJSON(e.value,r,t)):r=Ti.toJSON(e,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,o)}return n}}To._defineProperty(ta,"tag","tag:yaml.org,2002:omap");const na={identify:e=>e instanceof Map,nodeClass:ta,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){const n=Zs(e,t),r=[];for(const{key:e}of n.items)if(e instanceof Ti.Scalar){if(r.includes(e.value)){const e="Ordered maps must not include duplicate keys";throw new To.YAMLSemanticError(t,e)}r.push(e.value)}return Object.assign(new ta,n)},createNode:function(e,t,n){const r=Xs(e,t,n),o=new ta;return o.items=r.items,o}};class ra extends Ti.YAMLMap{constructor(){super(),this.tag=ra.tag}add(e){const t=e instanceof Ti.Pair?e:new Ti.Pair(e);Ti.findPair(this.items,t.key)||this.items.push(t)}get(e,t){const n=Ti.findPair(this.items,e);return!t&&n instanceof Ti.Pair?n.key instanceof Ti.Scalar?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=Ti.findPair(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new Ti.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,n);throw new Error("Set items must all have null values")}}To._defineProperty(ra,"tag","tag:yaml.org,2002:set");const oa={identify:e=>e instanceof Set,nodeClass:ra,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){const n=Ti.resolveMap(e,t);if(!n.hasAllNullValues())throw new To.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new ra,n)},createNode:function(e,t,n){const r=new ra;for(const o of t)r.items.push(e.createPair(o,null,n));return r}},ia=(e,t)=>{const n=t.split(":").reduce(((e,t)=>60*e+Number(t)),0);return"-"===e?-n:n},sa=({value:e})=>{if(isNaN(e)||!isFinite(e))return Ti.stringifyNumber(e);let t="";e<0&&(t="-",e=Math.abs(e));const n=[e%60];return e<60?n.unshift(0):(e=Math.round((e-n[0])/60),n.unshift(e%60),e>=60&&(e=Math.round((e-n[0])/60),n.unshift(e))),t+n.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")},aa={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,n)=>ia(t,n.replace(/_/g,"")),stringify:sa},ca={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,t,n)=>ia(t,n.replace(/_/g,"")),stringify:sa},ua={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,t,n,r,o,i,s,a,c)=>{a&&(a=(a+"00").substr(1,3));let u=Date.UTC(t,n-1,r,o||0,i||0,s||0,a||0);if(c&&"Z"!==c){let e=ia(c[0],c.slice(1));Math.abs(e)<30&&(e*=60),u-=6e4*e}return new Date(u)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function la(e){const t=void 0!==Hs&&Hs.env||{};return e?"undefined"!=typeof YAML_SILENCE_DEPRECATION_WARNINGS?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:"undefined"!=typeof YAML_SILENCE_WARNINGS?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function fa(e,t){if(la(!1)){const n=void 0!==Hs&&Hs.emitWarning;n?n(e,t):console.warn(t?`${t}: ${e}`:e)}}const ha={};var pa={binary:zs,floatTime:ca,intTime:aa,omap:na,pairs:ea,set:oa,timestamp:ua,warn:fa,warnFileDeprecation:function(e){if(la(!0)){fa(`The endpoint 'yaml/${e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/")}' will be removed in a future release.`,"DeprecationWarning")}},warnOptionDeprecation:function(e,t){if(!ha[e]&&la(!0)){ha[e]=!0;let n=`The option '${e}' will be removed in a future release`;n+=t?`, use '${t}' instead.`:".",fa(n,"DeprecationWarning")}}};const da={createNode:function(e,t,n){const r=new Ti.YAMLMap(e);if(t instanceof Map)for(const[o,i]of t)r.items.push(e.createPair(o,i,n));else if(t&&"object"==typeof t)for(const o of Object.keys(t))r.items.push(e.createPair(o,t[o],n));return"function"==typeof e.sortMapEntries&&r.items.sort(e.sortMapEntries),r},default:!0,nodeClass:Ti.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:Ti.resolveMap};const ga={createNode:function(e,t,n){const r=new Ti.YAMLSeq(e);if(t&&t[Symbol.iterator])for(const o of t){const t=e.createNode(o,n.wrapScalars,null,n);r.items.push(t)}return r},default:!0,nodeClass:Ti.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:Ti.resolveSeq},ma={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:Ti.resolveString,stringify:(e,t,n,r)=>(t=Object.assign({actualString:!0},t),Ti.stringifyString(e,t,n,r)),options:Ti.strOptions},ya=[da,ga,ma],va=e=>"bigint"==typeof e||Number.isInteger(e),ba=(e,t,n)=>Ti.intOptions.asBigInt?BigInt(e):parseInt(t,n);function wa(e,t,n){const{value:r}=e;return va(r)&&r>=0?n+r.toString(t):Ti.stringifyNumber(e)}const _a={identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new Ti.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:Ti.nullOptions,stringify:()=>Ti.nullOptions.nullStr},Ea={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>"t"===e[0]||"T"===e[0],options:Ti.boolOptions,stringify:({value:e})=>e?Ti.boolOptions.trueStr:Ti.boolOptions.falseStr},Sa={identify:e=>va(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>ba(e,t,8),options:Ti.intOptions,stringify:e=>wa(e,8,"0o")},Oa={identify:va,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>ba(e,e,10),options:Ti.intOptions,stringify:Ti.stringifyNumber},Aa={identify:e=>va(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>ba(e,t,16),options:Ti.intOptions,stringify:e=>wa(e,16,"0x")},Ma={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Ti.stringifyNumber},La={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:({value:e})=>Number(e).toExponential()},Na={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,t,n){const r=t||n,o=new Ti.Scalar(parseFloat(e));return r&&"0"===r[r.length-1]&&(o.minFractionDigits=r.length),o},stringify:Ti.stringifyNumber},Ta=ya.concat([_a,Ea,Sa,Oa,Aa,Ma,La,Na]),Pa=e=>"bigint"==typeof e||Number.isInteger(e),Ca=({value:e})=>JSON.stringify(e),xa=[da,ga,{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:Ti.resolveString,stringify:Ca},{identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new Ti.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Ca},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:Ca},{identify:Pa,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>Ti.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>Pa(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:Ca}];xa.scalarFallback=e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)};const Ra=({value:e})=>e?Ti.boolOptions.trueStr:Ti.boolOptions.falseStr,Ia=e=>"bigint"==typeof e||Number.isInteger(e);function ka(e,t,n){let r=t.replace(/_/g,"");if(Ti.intOptions.asBigInt){switch(n){case 2:r=`0b${r}`;break;case 8:r=`0o${r}`;break;case 16:r=`0x${r}`}const t=BigInt(r);return"-"===e?BigInt(-1)*t:t}const o=parseInt(r,n);return"-"===e?-1*o:o}function Ba(e,t,n){const{value:r}=e;if(Ia(r)){const e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return Ti.stringifyNumber(e)}const Ya=ya.concat([{identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new Ti.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:Ti.nullOptions,stringify:()=>Ti.nullOptions.nullStr},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:Ti.boolOptions,stringify:Ra},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:Ti.boolOptions,stringify:Ra},{identify:Ia,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,n)=>ka(t,n,2),stringify:e=>Ba(e,2,"0b")},{identify:Ia,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,n)=>ka(t,n,8),stringify:e=>Ba(e,8,"0")},{identify:Ia,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,n)=>ka(t,n,10),stringify:Ti.stringifyNumber},{identify:Ia,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,n)=>ka(t,n,16),stringify:e=>Ba(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Ti.stringifyNumber},{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:({value:e})=>Number(e).toExponential()},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){const n=new Ti.Scalar(parseFloat(e.replace(/_/g,"")));if(t){const e=t.replace(/_/g,"");"0"===e[e.length-1]&&(n.minFractionDigits=e.length)}return n},stringify:Ti.stringifyNumber}],pa.binary,pa.omap,pa.pairs,pa.set,pa.intTime,pa.floatTime,pa.timestamp),ja={core:Ta,failsafe:ya,json:xa,yaml11:Ya},$a={binary:pa.binary,bool:Ea,float:Na,floatExp:La,floatNaN:Ma,floatTime:pa.floatTime,int:Oa,intHex:Aa,intOct:Sa,intTime:pa.intTime,map:da,null:_a,omap:pa.omap,pairs:pa.pairs,seq:ga,set:pa.set,timestamp:pa.timestamp};function Da(e,t,n){if(e instanceof Ti.Node)return e;const{defaultPrefix:r,onTagObj:o,prevObjects:i,schema:s,wrapScalars:a}=n;t&&t.startsWith("!!")&&(t=r+t.slice(2));let c=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&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format))}(e,t,s.tags);if(!c){if("function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e)return a?new Ti.Scalar(e):e;c=e instanceof Map?da:e[Symbol.iterator]?ga:da}o&&(o(c),delete n.onTagObj);const u={value:void 0,node:void 0};if(e&&"object"==typeof e&&i){const t=i.get(e);if(t){const e=new Ti.Alias(t);return n.aliasNodes.push(e),e}u.value=e,i.set(e,u)}return u.node=c.createNode?c.createNode(n.schema,e,n):a?new Ti.Scalar(e):e,t&&u.node instanceof Ti.Node&&(u.node.tag=t),u.node}const Fa=(e,t)=>e.keyt.key?1:0;class Ua{constructor({customTags:e,merge:t,schema:n,sortMapEntries:r,tags:o}){this.merge=!!t,this.name=n,this.sortMapEntries=!0===r?Fa:r||null,!e&&o&&pa.warnOptionDeprecation("tags","customTags"),this.tags=function(e,t,n,r){let o=e[r.replace(/\W/g,"")];if(!o){const t=Object.keys(e).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${t}`)}if(Array.isArray(n))for(const e of n)o=o.concat(e);else"function"==typeof n&&(o=n(o.slice()));for(let e=0;eJSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${e}`)}o[e]=r}}return o}(ja,$a,e||o,n)}createNode(e,t,n,r){const o={defaultPrefix:Ua.defaultPrefix,schema:this,wrapScalars:t};return Da(e,n,r?Object.assign(r,o):o)}createPair(e,t,n){n||(n={wrapScalars:!0});const r=this.createNode(e,n.wrapScalars,null,n),o=this.createNode(t,n.wrapScalars,null,n);return new Ti.Pair(r,o)}}To._defineProperty(Ua,"defaultPrefix",To.defaultTagPrefix),To._defineProperty(Ua,"defaultTags",To.defaultTags);var Wa={Schema:Ua};const Ka={get binary(){return Ti.binaryOptions},set binary(e){Object.assign(Ti.binaryOptions,e)},get bool(){return Ti.boolOptions},set bool(e){Object.assign(Ti.boolOptions,e)},get int(){return Ti.intOptions},set int(e){Object.assign(Ti.intOptions,e)},get null(){return Ti.nullOptions},set null(e){Object.assign(Ti.nullOptions,e)},get str(){return Ti.strOptions},set str(e){Object.assign(Ti.strOptions,e)}},Va={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:To.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:To.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:To.defaultTagPrefix}]}};function Qa(e,t){if("1.0"===(e.version||e.options.version)){const e=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(e)return"!"+e[1];const n=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?`!${n[1]}/${n[2]}`:`!${t.replace(/^tag:/,"")}`}let n=e.tagPrefixes.find((e=>0===t.indexOf(e.prefix)));if(!n){const r=e.getDefaults().tagPrefixes;n=r&&r.find((e=>0===t.indexOf(e.prefix)))}if(!n)return"!"===t[0]?t:`!<${t}>`;const r=t.substr(n.prefix.length).replace(/[!,[\]{}]/g,(e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e])));return n.handle+r}function qa(e,t,n,r){const{anchors:o,schema:i}=t.doc;let s;if(!(e instanceof Ti.Node)){const t={aliasNodes:[],onTagObj:e=>s=e,prevObjects:new Map};e=i.createNode(e,!0,null,t);for(const e of t.aliasNodes){e.source=e.source.node;let t=o.getName(e.source);t||(t=o.newName(),o.map[t]=e.source)}}if(e instanceof Ti.Pair)return e.toString(t,n,r);s||(s=function(e,t){if(t instanceof Ti.Alias)return Ti.Alias;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(t instanceof Ti.Scalar){r=t.value;const o=e.filter((e=>e.identify&&e.identify(r)||e.class&&r instanceof e.class));n=o.find((e=>e.format===t.format))||o.find((e=>!e.format))}else r=t,n=e.find((e=>e.nodeClass&&r instanceof e.nodeClass));if(!n){const e=r&&r.constructor?r.constructor.name:typeof r;throw new Error(`Tag not resolved for ${e} value`)}return n}(i.tags,e));const a=function(e,t,{anchors:n,doc:r}){const o=[],i=r.anchors.getName(e);return i&&(n[i]=e,o.push(`&${i}`)),e.tag?o.push(Qa(r,e.tag)):t.default||o.push(Qa(r,t.tag)),o.join(" ")}(e,s,t);a.length>0&&(t.indentAtStart=(t.indentAtStart||0)+a.length+1);const c="function"==typeof s.stringify?s.stringify(e,t,n,r):e instanceof Ti.Scalar?Ti.stringifyString(e,t,n,r):e.toString(t,n,r);return a?e instanceof Ti.Scalar||"{"===c[0]||"["===c[0]?`${a} ${c}`:`${a}\n${t.indent}${c}`:c}class Ja{static validAnchorNode(e){return e instanceof Ti.Scalar||e instanceof Ti.YAMLSeq||e instanceof Ti.YAMLMap}constructor(e){To._defineProperty(this,"map",Object.create(null)),this.prefix=e}createAlias(e,t){return this.setAnchor(e,t),new Ti.Alias(e)}createMergePair(...e){const t=new Ti.Merge;return t.value.items=e.map((e=>{if(e instanceof Ti.Alias){if(e.source instanceof Ti.YAMLMap)return e}else if(e instanceof Ti.YAMLMap)return this.createAlias(e);throw new Error("Merge sources must be Map nodes or their Aliases")})),t}getName(e){const{map:t}=this;return Object.keys(t).find((n=>t[n]===e))}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);const t=Object.keys(this.map);for(let n=1;;++n){const r=`${e}${n}`;if(!t.includes(r))return r}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach((t=>{e[t]=e[t].resolved})),t.forEach((e=>{e.source=e.source.resolved})),delete this._cstAliases}setAnchor(e,t){if(null!=e&&!Ja.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(t&&/[\x00-\x19\s,[\]{}]/.test(t))throw new Error("Anchor names must not contain whitespace or control characters");const{map:n}=this,r=e&&Object.keys(n).find((t=>n[t]===e));if(r){if(!t)return r;r!==t&&(delete n[r],n[t]=e)}else{if(!t){if(!e)return null;t=this.newName()}n[t]=e}return t}}const Ga=(e,t)=>{if(e&&"object"==typeof e){const{tag:n}=e;e instanceof Ti.Collection?(n&&(t[n]=!0),e.items.forEach((e=>Ga(e,t)))):e instanceof Ti.Pair?(Ga(e.key,t),Ga(e.value,t)):e instanceof Ti.Scalar&&n&&(t[n]=!0)}return t};function Ha({tagPrefixes:e},t){const[n,r]=t.parameters;if(!n||!r){const e="Insufficient parameters given for %TAG directive";throw new To.YAMLSemanticError(t,e)}if(e.some((e=>e.handle===n))){const e="The %TAG directive must only be given at most once per handle in the same document.";throw new To.YAMLSemanticError(t,e)}return{handle:n,prefix:r}}function za(e,t){let[n]=t.parameters;if("YAML:1.0"===t.name&&(n="1.0"),!n){const e="Insufficient parameters given for %YAML directive";throw new To.YAMLSemanticError(t,e)}if(!Va[n]){const r=`Document will be parsed as YAML ${e.version||e.options.version} rather than YAML ${n}`;e.warnings.push(new To.YAMLWarning(t,r))}return n}function Za(e){if(e instanceof Ti.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}class Xa{constructor(e){this.anchors=new Ja(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return Za(this.contents),this.contents.add(e)}addIn(e,t){Za(this.contents),this.contents.addIn(e,t)}delete(e){return Za(this.contents),this.contents.delete(e)}deleteIn(e){return Ti.isEmptyPath(e)?null!=this.contents&&(this.contents=null,!0):(Za(this.contents),this.contents.deleteIn(e))}getDefaults(){return Xa.defaults[this.version]||Xa.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof Ti.Collection?this.contents.get(e,t):void 0}getIn(e,t){return Ti.isEmptyPath(e)?!t&&this.contents instanceof Ti.Scalar?this.contents.value:this.contents:this.contents instanceof Ti.Collection?this.contents.getIn(e,t):void 0}has(e){return this.contents instanceof Ti.Collection&&this.contents.has(e)}hasIn(e){return Ti.isEmptyPath(e)?void 0!==this.contents:this.contents instanceof Ti.Collection&&this.contents.hasIn(e)}set(e,t){Za(this.contents),this.contents.set(e,t)}setIn(e,t){Ti.isEmptyPath(e)?this.contents=t:(Za(this.contents),this.contents.setIn(e,t))}setSchema(e,t){if(!e&&!t&&this.schema)return;"number"==typeof e&&(e=e.toFixed(1)),"1.0"===e||"1.1"===e||"1.2"===e?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&"string"==typeof e&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);const n=Object.assign({},this.getDefaults(),this.options);this.schema=new Wa.Schema(n)}parse(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");const{directives:n=[],contents:r=[],directivesEndMarker:o,error:i,valueRange:s}=e;if(i&&(i.source||(i.source=this),this.errors.push(i)),function(e,t,n){const r=[];let o=!1;for(const n of t){const{comment:t,name:i}=n;switch(i){case"TAG":try{e.tagPrefixes.push(Ha(e,n))}catch(t){e.errors.push(t)}o=!0;break;case"YAML":case"YAML:1.0":if(e.version){const t="The %YAML directive must only be given at most once per document.";e.errors.push(new To.YAMLSemanticError(n,t))}try{e.version=za(e,n)}catch(t){e.errors.push(t)}o=!0;break;default:if(i){const t=`YAML only supports %TAG and %YAML directives, and not %${i}`;e.warnings.push(new To.YAMLWarning(n,t))}}t&&r.push(t)}if(n&&!o&&"1.1"===(e.version||n.version||e.options.version)){const t=({handle:e,prefix:t})=>({handle:e,prefix:t});e.tagPrefixes=n.tagPrefixes.map(t),e.version=n.version}e.commentBefore=r.join("\n")||null}(this,n,t),o&&(this.directivesEndMarker=!0),this.range=s?[s.start,s.end]:null,this.setSchema(),this.anchors._cstAliases=[],function(e,t){const n={before:[],after:[]};let r,o=!1;for(const i of t)if(i.valueRange){if(void 0!==r){const t="Document contains trailing content not separated by a ... or --- line";e.errors.push(new To.YAMLSyntaxError(i,t));break}const t=Ti.resolveNode(e,i);o&&(t.spaceBefore=!0,o=!1),r=t}else null!==i.comment?(void 0===r?n.before:n.after).push(i.comment):i.type===To.Type.BLANK_LINE&&(o=!0,void 0===r&&n.before.length>0&&!e.commentBefore&&(e.commentBefore=n.before.join("\n"),n.before=[]));if(e.contents=r||null,r){const t=n.before.join("\n");if(t){const e=r instanceof Ti.Collection&&r.items[0]?r.items[0]:r;e.commentBefore=e.commentBefore?`${t}\n${e.commentBefore}`:t}e.comment=n.after.join("\n")||null}else e.comment=n.before.concat(n.after).join("\n")||null}(this,r),this.anchors.resolveNodes(),this.options.prettyErrors){for(const e of this.errors)e instanceof To.YAMLError&&e.makePretty();for(const e of this.warnings)e instanceof To.YAMLError&&e.makePretty()}return this}listNonDefaultTags(){return(e=>Object.keys(Ga(e,{})))(this.contents).filter((e=>0!==e.indexOf(Wa.Schema.defaultPrefix)))}setTagPrefix(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){const n=this.tagPrefixes.find((t=>t.handle===e));n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter((t=>t.handle!==e))}toJSON(e,t){const{keepBlobsInJSON:n,mapAsMap:r,maxAliasCount:o}=this.options,i=n&&("string"!=typeof e||!(this.contents instanceof Ti.Scalar)),s={doc:this,indentStep:" ",keep:i,mapAsMap:i&&!!r,maxAliasCount:o,stringify:qa},a=Object.keys(this.anchors.map);a.length>0&&(s.anchors=new Map(a.map((e=>[this.anchors.map[e],{alias:[],aliasCount:0,count:1}]))));const c=Ti.toJSON(this.contents,e,s);if("function"==typeof t&&s.anchors)for(const{count:e,res:n}of s.anchors.values())t(n,e);return c}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");const e=this.options.indent;if(!Number.isInteger(e)||e<=0){const t=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${t}`)}this.setSchema();const t=[];let n=!1;if(this.version){let e="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?e="%YAML:1.0":"1.1"===this.version&&(e="%YAML 1.1")),t.push(e),n=!0}const r=this.listNonDefaultTags();this.tagPrefixes.forEach((({handle:e,prefix:o})=>{r.some((e=>0===e.indexOf(o)))&&(t.push(`%TAG ${e} ${o}`),n=!0)})),(n||this.directivesEndMarker)&&t.push("---"),this.commentBefore&&(!n&&this.directivesEndMarker||t.unshift(""),t.unshift(this.commentBefore.replace(/^/gm,"#")));const o={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:qa};let i=!1,s=null;if(this.contents){this.contents instanceof Ti.Node&&(this.contents.spaceBefore&&(n||this.directivesEndMarker)&&t.push(""),this.contents.commentBefore&&t.push(this.contents.commentBefore.replace(/^/gm,"#")),o.forceBlockIndent=!!this.comment,s=this.contents.comment);const e=s?null:()=>i=!0,r=qa(this.contents,o,(()=>s=null),e);t.push(Ti.addComment(r,"",s))}else void 0!==this.contents&&t.push(qa(this.contents,o));return this.comment&&(i&&!s||""===t[t.length-1]||t.push(""),t.push(this.comment.replace(/^/gm,"#"))),t.join("\n")+"\n"}}To._defineProperty(Xa,"defaults",Va);var ec={Document:Xa,defaultOptions:{anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},scalarOptions:Ka};class tc extends ec.Document{constructor(e){super(Object.assign({},ec.defaultOptions,e))}}function nc(e,t){const n=Qo.parse(e),r=new tc(t).parse(n[0]);if(n.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new To.YAMLSemanticError(n[1],e))}return r}var rc={YAML:{createNode:function(e,t=!0,n){void 0===n&&"string"==typeof t&&(n=t,t=!0);const r=Object.assign({},ec.Document.defaults[ec.defaultOptions.version],ec.defaultOptions);return new Wa.Schema(r).createNode(e,t,n)},defaultOptions:ec.defaultOptions,Document:tc,parse:function(e,t){const n=nc(e,t);if(n.warnings.forEach((e=>pa.warn(e))),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){const n=[];let r;for(const o of Qo.parse(e)){const e=new tc(t);e.parse(o,r),n.push(e),r=e}return n},parseCST:Qo.parse,parseDocument:nc,scalarOptions:ec.scalarOptions,stringify:function(e,t){const n=new tc(t);return n.contents=e,String(n)}}}.YAML,oc={findPair:Ti.findPair,parseMap:Ti.resolveMap,parseSeq:Ti.resolveSeq,stringifyNumber:Ti.stringifyNumber,stringifyString:Ti.stringifyString,toJSON:Ti.toJSON,Type:To.Type,YAMLError:To.YAMLError,YAMLReferenceError:To.YAMLReferenceError,YAMLSemanticError:To.YAMLSemanticError,YAMLSyntaxError:To.YAMLSyntaxError,YAMLWarning:To.YAMLWarning},ic={findPair:oc.findPair,toJSON:oc.toJSON,parseMap:oc.parseMap,parseSeq:oc.parseSeq,stringifyNumber:oc.stringifyNumber,stringifyString:oc.stringifyString,Type:oc.Type,YAMLError:oc.YAMLError,YAMLReferenceError:oc.YAMLReferenceError,YAMLSemanticError:oc.YAMLSemanticError,YAMLSyntaxError:oc.YAMLSyntaxError,YAMLWarning:oc.YAMLWarning},sc=rc.Document,ac=rc.parseCST,cc=ic.YAMLError,uc=ic.YAMLSyntaxError,lc=ic.YAMLSemanticError,fc=Object.defineProperty({Document:sc,parseCST:ac,YAMLError:cc,YAMLSyntaxError:uc,YAMLSemanticError:lc},"__esModule",{value:!0});var hc=function(e){var t=fc.parseCST(e);oo.addOrigRange(t);for(var n=t.map((function(e){return new fc.Document({merge:!1,keepCstNodes:!0}).parse(e)})),r=[],o={text:e,locator:new p.default(e),comments:r,transformOffset:function(e){return Xr.transformOffset(e,o)},transformRange:function(e){return to.transformRange(e,o)},transformNode:function(e){return Vr.transformNode(e,o)},transformContent:function(e){return tn.transformContent(e,o)}},i=0,s=n;i