"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function L(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?L=function(a){return typeof a}:L=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},L(r)}function v(r,a){if(!(r instanceof a))throw new TypeError("Cannot call a class as a function")}function x(r,a){for(var e=0;e<a.length;e++){var t=a[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,t.key,t)}}function b(r,a,e){return a&&x(r.prototype,a),e&&x(r,e),r}function $(r,a,e){return a in r?Object.defineProperty(r,a,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[a]=e,r}function d(r,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(a&&a.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),a&&E(r,a)}function g(r){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(r)}function E(r,a){return E=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},E(r,a)}function D(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function k(r,a,e){return D()?k=Reflect.construct:k=function(n,i,u){var o=[null];o.push.apply(o,i);var l=Function.bind.apply(n,o),f=new l;return u&&E(f,u.prototype),f},k.apply(null,arguments)}function J(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function R(r){var a=typeof Map=="function"?new Map:void 0;return R=function(t){if(t===null||!J(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof a<"u"){if(a.has(t))return a.get(t);a.set(t,n)}function n(){return k(t,arguments,g(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),E(n,t)},R(r)}function W(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function V(r,a){return a&&(typeof a=="object"||typeof a=="function")?a:W(r)}function O(r){var a=D();return function(){var t=g(r),n;if(a){var i=g(this).constructor;n=Reflect.construct(t,arguments,i)}else n=t.apply(this,arguments);return V(this,n)}}function X(r,a){for(;!Object.prototype.hasOwnProperty.call(r,a)&&(r=g(r),r!==null););return r}function w(r,a,e){return typeof Reflect<"u"&&Reflect.get?w=Reflect.get:w=function(n,i,u){var o=X(n,i);if(!!o){var l=Object.getOwnPropertyDescriptor(o,i);return l.get?l.get.call(u):l.value}},w(r,a,e||r)}function Y(r,a){return U(r)||te(r,a)||T(r,a)||F()}function Z(r){return U(r)||ee(r)||T(r)||F()}function U(r){if(Array.isArray(r))return r}function ee(r){if(typeof Symbol<"u"&&Symbol.iterator in Object(r))return Array.from(r)}function te(r,a){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(r)))){var e=[],t=!0,n=!1,i=void 0;try{for(var u=r[Symbol.iterator](),o;!(t=(o=u.next()).done)&&(e.push(o.value),!(a&&e.length===a));t=!0);}catch(l){n=!0,i=l}finally{try{!t&&u.return!=null&&u.return()}finally{if(n)throw i}}return e}}function T(r,a){if(!!r){if(typeof r=="string")return B(r,a);var e=Object.prototype.toString.call(r).slice(8,-1);if(e==="Object"&&r.constructor&&(e=r.constructor.name),e==="Map"||e==="Set")return Array.from(r);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return B(r,a)}}function B(r,a){(a==null||a>r.length)&&(a=r.length);for(var e=0,t=new Array(a);e<a;e++)t[e]=r[e];return t}function F(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function re(r,a){var e;if(typeof Symbol>"u"||r[Symbol.iterator]==null){if(Array.isArray(r)||(e=T(r))||a&&r&&typeof r.length=="number"){e&&(r=e);var t=0,n=function(){};return{s:n,n:function(){return t>=r.length?{done:!0}:{done:!1,value:r[t++]}},e:function(l){throw l},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,u=!1,o;return{s:function(){e=r[Symbol.iterator]()},n:function(){var l=e.next();return i=l.done,l},e:function(l){u=!0,o=l},f:function(){try{!i&&e.return!=null&&e.return()}finally{if(u)throw o}}}}var h={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},m={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"},ne="tag:yaml.org,2002:",ae={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function C(r){for(var a=[0],e=r.indexOf(`
`);e!==-1;)e+=1,a.push(e),e=r.indexOf(`
`,e);return a}function Q(r){var a,e;return typeof r=="string"?(a=C(r),e=r):(Array.isArray(r)&&(r=r[0]),r&&r.context&&(r.lineStarts||(r.lineStarts=C(r.context.src)),a=r.lineStarts,e=r.context.src)),{lineStarts:a,src:e}}function M(r,a){if(typeof r!="number"||r<0)return null;var e=Q(a),t=e.lineStarts,n=e.src;if(!t||!n||r>n.length)return null;for(var i=0;i<t.length;++i){var u=t[i];if(r<u)return{line:i,col:r-t[i-1]+1};if(r===u)return{line:i+1,col:1}}var o=t.length;return{line:o,col:r-t[o-1]+1}}function ie(r,a){var e=Q(a),t=e.lineStarts,n=e.src;if(!t||!(r>=1)||r>t.length)return null;for(var i=t[r-1],u=t[r];u&&u>i&&n[u-1]===`
`;)--u;return n.slice(i,u)}function ue(r,a){var e=r.start,t=r.end,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:80,i=ie(e.line,a);if(!i)return null;var u=e.col;if(i.length>n)if(u<=n-10)i=i.substr(0,n-1)+"\u2026";else{var o=Math.round(n/2);i.length>u+o&&(i=i.substr(0,u+o-1)+"\u2026"),u-=i.length-n,i="\u2026"+i.substr(1-n)}var l=1,f="";t&&(t.line===e.line&&u+(t.col-e.col)<=n+1?l=t.col-e.col:(l=Math.min(i.length+1,n)-u,f="\u2026"));var s=u>1?" ".repeat(u-1):"",c="^".repeat(l);return"".concat(i,`
`).concat(s).concat(c).concat(f)}var A=function(){function r(a,e){v(this,r),this.start=a,this.end=e||a}return b(r,[{key:"isEmpty",value:function(){return typeof this.start!="number"||!this.end||this.end<=this.start}},{key:"setOrigRange",value:function(e,t){var n=this.start,i=this.end;if(e.length===0||i<=e[0])return this.origStart=n,this.origEnd=i,t;for(var u=t;u<e.length&&!(e[u]>n);)++u;this.origStart=n+u;for(var o=u;u<e.length&&!(e[u]>=i);)++u;return this.origEnd=i+u,o}}],[{key:"copy",value:function(e){return new r(e.start,e.end)}}]),r}(),y=function(){function r(a,e,t){v(this,r),Object.defineProperty(this,"context",{value:t||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=e||[],this.type=a,this.value=null}return b(r,[{key:"getPropValue",value:function(e,t,n){if(!this.context)return null;var i=this.context.src,u=this.props[e];return u&&i[u.start]===t?i.slice(u.start+(n?1:0),u.end):null}},{key:"anchor",get:function(){for(var e=0;e<this.props.length;++e){var t=this.getPropValue(e,h.ANCHOR,!0);if(t!=null)return t}return null}},{key:"comment",get:function(){for(var e=[],t=0;t<this.props.length;++t){var n=this.getPropValue(t,h.COMMENT,!0);n!=null&&e.push(n)}return e.length>0?e.join(`
`):null}},{key:"commentHasRequiredWhitespace",value:function(e){var t=this.context.src;if(this.header&&e===this.header.end||!this.valueRange)return!1;var n=this.valueRange.end;return e!==n||r.atBlank(t,n-1)}},{key:"hasComment",get:function(){if(this.context){for(var e=this.context.src,t=0;t<this.props.length;++t)if(e[this.props[t].start]===h.COMMENT)return!0}return!1}},{key:"hasProps",get:function(){if(this.context){for(var e=this.context.src,t=0;t<this.props.length;++t)if(e[this.props[t].start]!==h.COMMENT)return!0}return!1}},{key:"includesTrailingLines",get:function(){return!1}},{key:"jsonLike",get:function(){var e=[m.FLOW_MAP,m.FLOW_SEQ,m.QUOTE_DOUBLE,m.QUOTE_SINGLE];return e.indexOf(this.type)!==-1}},{key:"rangeAsLinePos",get:function(){if(!(!this.range||!this.context)){var e=M(this.range.start,this.context.root);if(!!e){var t=M(this.range.end,this.context.root);return{start:e,end:t}}}}},{key:"rawValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,n=e.end;return this.context.src.slice(t,n)}},{key:"tag",get:function(){for(var e=0;e<this.props.length;++e){var t=this.getPropValue(e,h.TAG,!1);if(t!=null){if(t[1]==="<")return{verbatim:t.slice(2,-1)};var n=t.match(/^(.*!)([^!]*)$/),i=Y(n,3);i[0];var u=i[1],o=i[2];return{handle:u,suffix:o}}}return null}},{key:"valueRangeContainsNewline",get:function(){if(!this.valueRange||!this.context)return!1;for(var e=this.valueRange,t=e.start,n=e.end,i=this.context.src,u=t;u<n;++u)if(i[u]===`
`)return!0;return!1}},{key:"parseComment",value:function(e){var t=this.context.src;if(t[e]===h.COMMENT){var n=r.endOfLine(t,e+1),i=new A(e,n);return this.props.push(i),n}return e}},{key:"setOrigRanges",value:function(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach(function(n){return n.setOrigRange(e,t)}),t}},{key:"toString",value:function(){var e=this.context.src,t=this.range,n=this.value;if(n!=null)return n;var i=e.slice(t.start,t.end);return r.addStringTerminator(e,t.end,i)}}],[{key:"addStringTerminator",value:function(e,t,n){if(n[n.length-1]===`
`)return n;var i=r.endOfWhiteSpace(e,t);return i>=e.length||e[i]===`
`?n+`
`:n}},{key:"atDocumentBoundary",value:function(e,t,n){var i=e[t];if(!i)return!0;var u=e[t-1];if(u&&u!==`
`)return!1;if(n){if(i!==n)return!1}else if(i!==h.DIRECTIVES_END&&i!==h.DOCUMENT_END)return!1;var o=e[t+1],l=e[t+2];if(o!==i||l!==i)return!1;var f=e[t+3];return!f||f===`
`||f==="	"||f===" "}},{key:"endOfIdentifier",value:function(e,t){for(var n=e[t],i=n==="<",u=i?[`
`,"	"," ",">"]:[`
`,"	"," ","[","]","{","}",","];n&&u.indexOf(n)===-1;)n=e[t+=1];return i&&n===">"&&(t+=1),t}},{key:"endOfIndent",value:function(e,t){for(var n=e[t];n===" ";)n=e[t+=1];return t}},{key:"endOfLine",value:function(e,t){for(var n=e[t];n&&n!==`
`;)n=e[t+=1];return t}},{key:"endOfWhiteSpace",value:function(e,t){for(var n=e[t];n==="	"||n===" ";)n=e[t+=1];return t}},{key:"startOfLine",value:function(e,t){var n=e[t-1];if(n===`
`)return t;for(;n&&n!==`
`;)n=e[t-=1];return t+1}},{key:"endOfBlockIndent",value:function(e,t,n){var i=r.endOfIndent(e,n);if(i>n+t)return i;var u=r.endOfWhiteSpace(e,i),o=e[u];return!o||o===`
`?u:null}},{key:"atBlank",value:function(e,t,n){var i=e[t];return i===`
`||i==="	"||i===" "||n&&!i}},{key:"nextNodeIsIndented",value:function(e,t,n){return!e||t<0?!1:t>0?!0:n&&e==="-"}},{key:"normalizeOffset",value:function(e,t){var n=e[t];return n?n!==`
`&&e[t-1]===`
`?t-1:r.endOfWhiteSpace(e,t):t}},{key:"foldNewline",value:function(e,t,n){for(var i=0,u=!1,o="",l=e[t+1];l===" "||l==="	"||l===`
`;){switch(l){case`
`:i=0,t+=1,o+=`
`;break;case"	":i<=n&&(u=!0),t=r.endOfWhiteSpace(e,t+2)-1;break;case" ":i+=1,t+=1;break}l=e[t+1]}return o||(o=" "),l&&i<=n&&(u=!0),{fold:o,offset:t,error:u}}}]),r}(),_=function(r){d(e,r);var a=O(e);function e(t,n,i){var u;if(v(this,e),!i||!(n instanceof y))throw new Error("Invalid arguments for new ".concat(t));return u=a.call(this),u.name=t,u.message=i,u.source=n,u}return b(e,[{key:"makePretty",value:function(){if(!!this.source){this.nodeType=this.source.type;var n=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new A(this.offset,this.offset+1);var i=n&&M(this.offset,n);if(i){var u={line:i.line,col:i.col+1};this.linePos={start:i,end:u}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){var o=this.linePos.start,l=o.line,f=o.col;this.message+=" at line ".concat(l,", column ").concat(f);var s=n&&ue(this.linePos,n);s&&(this.message+=`:

`.concat(s,`
`))}delete this.source}}}]),e}(R(Error)),oe=function(r){d(e,r);var a=O(e);function e(t,n){return v(this,e),a.call(this,"YAMLReferenceError",t,n)}return e}(_),P=function(r){d(e,r);var a=O(e);function e(t,n){return v(this,e),a.call(this,"YAMLSemanticError",t,n)}return e}(_),le=function(r){d(e,r);var a=O(e);function e(t,n){return v(this,e),a.call(this,"YAMLSyntaxError",t,n)}return e}(_),fe=function(r){d(e,r);var a=O(e);function e(t,n){return v(this,e),a.call(this,"YAMLWarning",t,n)}return e}(_),se=function(r){d(e,r);var a=O(e);function e(){return v(this,e),a.apply(this,arguments)}return b(e,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;for(var n=this.valueRange,i=n.start,u=n.end,o=this.context.src,l=o[u-1];i<u&&(l===`
`||l==="	"||l===" ");)l=o[--u-1];for(var f="",s=i;s<u;++s){var c=o[s];if(c===`
`){var p=y.foldNewline(o,s,-1),j=p.fold,K=p.offset;f+=j,s=K}else if(c===" "||c==="	"){for(var I=s,S=o[s+1];s<u&&(S===" "||S==="	");)s+=1,S=o[s+1];S!==`
`&&(f+=s>I?o.slice(I,s+1):c)}else f+=c}var N=o[i];switch(N){case"	":{var H="Plain value cannot start with a tab character",G=[new P(this,H)];return{errors:G,str:f}}case"@":case"`":{var q="Plain value cannot start with reserved character ".concat(N),z=[new P(this,q)];return{errors:z,str:f}}default:return f}}},{key:"parseBlockValue",value:function(n){for(var i=this.context,u=i.indent,o=i.inFlow,l=i.src,f=n,s=n,c=l[f];c===`
`&&!y.atDocumentBoundary(l,f+1);c=l[f]){var p=y.endOfBlockIndent(l,u,f+1);if(p===null||l[p]==="#")break;l[p]===`
`?f=p:(s=e.endOfLine(l,p,o),f=s)}return this.valueRange.isEmpty()&&(this.valueRange.start=n),this.valueRange.end=s,s}},{key:"parse",value:function(n,i){this.context=n;var u=n.inFlow,o=n.src,l=i,f=o[l];return f&&f!=="#"&&f!==`
`&&(l=e.endOfLine(o,i,u)),this.valueRange=new A(i,l),l=y.endOfWhiteSpace(o,l),l=this.parseComment(l),(!this.hasComment||this.valueRange.isEmpty())&&(l=this.parseBlockValue(l)),l}}],[{key:"endOfLine",value:function(n,i,u){for(var o=n[i],l=i;o&&o!==`
`&&!(u&&(o==="["||o==="]"||o==="{"||o==="}"||o===","));){var f=n[l+1];if(o===":"&&(!f||f===`
`||f==="	"||f===" "||u&&f===",")||(o===" "||o==="	")&&f==="#")break;l+=1,o=f}return l}}]),e}(y);exports.C=h;exports.N=y;exports.P=se;exports.R=A;exports.T=m;exports.Y=le;exports._=re;exports.a=L;exports.b=b;exports.c=v;exports.d=ne;exports.e=$;exports.f=fe;exports.g=P;exports.h=Y;exports.i=_;exports.j=d;exports.k=O;exports.l=w;exports.m=g;exports.n=ae;exports.o=oe;exports.p=W;exports.q=Z;exports.r=V;
//# sourceMappingURL=PlainValue-b8036b75.js.map
