prettier 1.13.4 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -3
- package/bin-prettier.js +2680 -1151
- package/index.js +2446 -834
- package/package.json +8 -2
- package/parser-babylon.js +1 -1
- package/parser-flow.js +1 -1
- package/parser-graphql.js +1 -1
- package/parser-markdown.js +1 -1
- package/parser-postcss.js +26130 -23152
- package/parser-typescript.js +1 -1
- package/parser-vue.js +1 -1
- package/parser-yaml.js +1 -0
- package/standalone.js +2221 -773
- package/third-party.js +22 -5
package/parser-vue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.vue=e())}(this,function(){"use strict";var t=
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.vue=e())}(this,function(){"use strict";var t=function(t){return/^\s*<!--\s*@(format|prettier)\s*-->/.test(t)};function e(t,e){for(var n=Object.create(null),r=t.split(","),a=r.length,o=0;o<a;o++)n[r[o]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}var n=function(){return!1},r=e("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),a=/^\s*([^\s"'<>/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,o="[a-zA-Z_][\\w\\-\\.]*",s="((?:".concat(o,"\\:)?").concat(o,")"),i=new RegExp("^<".concat(s)),c=/^\s*(\/?)>/,u=new RegExp("^<\\/".concat(s,"[^>]*>")),l=/^<!DOCTYPE [^>]+>/i,f=/^<!--/,d=/^<!\[/,h=!1;"x".replace(/x(.)?/g,function(t,e){h=""===e});var g=e("script,style,textarea",!0),p={},v={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t"},m=/&(?:lt|gt|quot|amp);/g,x=/&(?:lt|gt|quot|amp|#10|#9);/g,y=e("pre,textarea",!0),w=function(t,e){return t&&y(t)&&"\n"===e[0]};function b(t,e){var n=e?x:m;return t.replace(n,function(t){return v[t]})}return{parsers:{vue:{parse:function(t){var e={tag:"root",attrs:[],unary:!1,start:0,contentStart:0,contentEnd:t.length,end:t.length,children:[],comments:[]},o=[e],s=e;return function(t,e){for(var o,s,v=[],m=e.expectHTML,x=e.isUnaryTag||n,y=e.canBeLeftOpenTag||n,C=0;t;){if(o=t,s&&g(s))!function(){var n=0,r=s.toLowerCase(),a=p[r]||(p[r]=new RegExp("([\\s\\S]*?)(</"+r+"[^>]*>)","i")),o=t.replace(a,function(t,a,o){return n=o.length,g(r)||"noscript"===r||(a=a.replace(/<!--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),w(r,a)&&(a=a.slice(1)),e.chars&&e.chars(a),""});C+=t.length-o.length,t=o,F(r,C-n,C)}();else{var O=t.indexOf("<");if(0===O){if(f.test(t)){var S=t.indexOf("--\x3e");if(S>=0){e.shouldKeepComment&&e.comment(t.substring(4,S)),k(S+3);continue}}if(d.test(t)){var E=t.indexOf("]>");if(E>=0){k(E+2);continue}}var T=t.match(l);if(T){k(T[0].length);continue}var L=t.match(u);if(L){var P=C;k(L[0].length),F(L[1],P,C);continue}var q=R();if(q){j(q),w(s,t)&&k(1);continue}}var A=void 0,D=void 0,N=void 0;if(O>=0){for(D=t.slice(O);!(u.test(D)||i.test(D)||f.test(D)||d.test(D)||(N=D.indexOf("<",1))<0);)O+=N,D=t.slice(O);A=t.substring(0,O),k(O)}O<0&&(A=t,t=""),e.chars&&A&&e.chars(A)}if(t===o){e.chars&&e.chars(t);break}}function k(e){C+=e,t=t.substring(e)}function R(){var e=t.match(i);if(e){var n,r,o={tagName:e[1],attrs:[],start:C};for(k(e[0].length);!(n=t.match(c))&&(r=t.match(a));)k(r[0].length),o.attrs.push(r);if(n)return o.unarySlash=n[1],k(n[0].length),o.end=C,o}}function j(t){var n=t.tagName,a=t.unarySlash;m&&("p"===s&&r(n)&&F(s),y(n)&&s===n&&F(n));for(var o=x(n)||!!a,i=t.attrs.length,c=new Array(i),u=0;u<i;u++){var l=t.attrs[u];h&&-1===l[0].indexOf('""')&&(""===l[3]&&delete l[3],""===l[4]&&delete l[4],""===l[5]&&delete l[5]);var f=l[3]||l[4]||l[5]||"",d="a"===n&&"href"===l[1]?e.shouldDecodeNewlinesForHref:e.shouldDecodeNewlines;c[u]={name:l[1],value:b(f,d)}}o||(v.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:c}),s=n),e.start&&e.start(n,c,o,t.start,t.end)}function F(t,n,r){var a,o;if(null==n&&(n=C),null==r&&(r=C),t&&(o=t.toLowerCase()),t)for(a=v.length-1;a>=0&&v[a].lowerCasedTag!==o;a--);else a=0;if(a>=0){for(var i=v.length-1;i>=a;i--)e.end&&e.end(v[i].tag,n,r);v.length=a,s=a&&v[a-1].tag}else"br"===o?e.start&&e.start(t,[],!0,n,r):"p"===o&&(e.start&&e.start(t,[],!1,n,r),e.end&&e.end(t,n,r))}F()}(t,{start:function(t,e,n,r,a){var i={tag:t,attrs:e,unary:n,start:r,children:[]};s.children.push(i),n?i.end=a:(i.contentStart=a,o.push(i),s=i)},end:function(t,e,n){o.pop(),s.contentEnd=e,s.end=n,s=o[o.length-1]}}),e},hasPragma:t,astFormat:"vue",locStart:function(t){return t.start},locEnd:function(t){return t.end}}}}});
|
package/parser-yaml.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e.prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.yaml=t())}(this,function(){"use strict";var e=function(e,t){var n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n};var t=function(e){return/^\s*#[^\n\S]*@(prettier|format)\s*?(\n|$)/.test(e)};var n=function e(t,n,r){return n("children"in t?Object.assign({},t,{children:t.children.map(function(r){return e(r,n,t)})}):t,r)},r=function(e,t,n){Object.defineProperty(e,t,{get:n,enumerable:!1})},o=function(){return{type:"null",position:{start:{line:-1,column:-1,offset:-1},end:{line:-1,column:-1,offset:-1}}}};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e,t){return e(t={exports:{}},t.exports),t.exports}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s=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])};var f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};function c(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function p(e){return this instanceof p?(this.v=e,this):new p(e)}var h=Object.freeze({__extends:function(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},__assign:f,__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<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},__decorate:function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":u(Reflect))&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":u(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))(function(o,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function u(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(i,u)}s((r=r.apply(e,t||[])).next())})},__generator:function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=r[2&a[0]?"return":a[0]?"throw":"next"])&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[0,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}},__exportStar:function(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])},__values:c,__read:l,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e},__await:p,__asyncGenerator:function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),a=[];return r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r;function i(e){o[e]&&(r[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||u(e,t)})})}function u(e,t){try{(n=o[e](t)).value instanceof p?Promise.resolve(n.value.v).then(s,f):c(a[0][2],n)}catch(e){c(a[0][3],e)}var n}function s(e){u("next",e)}function f(e){u("throw",e)}function c(e,t){e(t),a.shift(),a.length&&u(a[0][0],a[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:p(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=c(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}}}),d=i(function(e,t){var n="\n",r="\r",o=function(){function e(e){this.string=e;for(var t=[0],o=0;o<e.length;)switch(e[o]){case n:o+=n.length,t.push(o);break;case r:e[o+=r.length]===n&&(o+=n.length),t.push(o);break;default:o++}this.offsets=t}return e.prototype.locationForIndex=function(e){if(e<0||e>this.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?null: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=o});a(d);var y=i(function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.start=t,this.end=n||t}return r(e,null,[{key:"copy",value:function(t){return new e(t.start,t.end)}}]),r(e,[{key:"apply",value:function(e){return this.isEmpty?"":e.slice(this.start,this.end)}},{key:"isEmpty",get:function(){return"number"!=typeof this.start||!this.end||this.end<=this.start}},{key:"length",get:function(){return this.isEmpty?0:this.end-this.start}}]),e}();t.default=o});a(y);var v=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Char=t.Type=void 0;var n,r=(n=y)&&n.__esModule?n:{default:n};function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}var u={ALIAS:"ALIAS",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"};t.Type=u;var s={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."};t.Char=s;var f=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.context=r||null,this.error=null,this.range=null,this.valueRange=null,this.props=n||[],this.type=t,this.value=null}return i(e,null,[{key:"addStringTerminator",value:function(t,n,r){if("\n"===r[r.length-1])return r;var o=e.endOfWhiteSpace(t,n);return o>=t.length||"\n"===t[o]?r+"\n":r}},{key:"atDocumentBoundary",value:function(e,t,n){var r=e[t];if(!r)return!0;var o=e[t-1];if(o&&"\n"!==o)return!1;if(n){if(r!==n)return!1}else if(r!==s.DIRECTIVES_END&&r!==s.DOCUMENT_END)return!1;var a=e[t+1],i=e[t+2];if(a!==r||i!==r)return!1;var u=e[t+3];return!u||"\n"===u||"\t"===u||" "===u}},{key:"endOfIdentifier",value:function(e,t){for(var n=e[t],r="<"===n,o=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];n&&-1===o.indexOf(n);)n=e[t+=1];return r&&">"===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;)n=e[t+=1];return t}},{key:"endOfWhiteSpace",value:function(e,t){for(var n=e[t];"\t"===n||" "===n;)n=e[t+=1];return t}},{key:"startOfLine",value:function(e,t){for(var n=e[t-1];n&&"\n"!==n;)n=e[t-=1];return t+1}},{key:"endOfBlockIndent",value:function(t,n,r){var o=e.endOfIndent(t,r);if(o>r+n)return o;var a=e.endOfWhiteSpace(t,o),i=t[a];return i&&"\n"!==i?null:a}},{key:"atBlank",value:function(e,t){var n=e[t];return"\n"===n||"\t"===n||" "===n}},{key:"atCollectionItem",value:function(t,n){var r=t[n];return("?"===r||":"===r||"-"===r)&&e.atBlank(t,n+1)}},{key:"nextNodeIsIndented",value:function(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}},{key:"normalizeOffset",value:function(t,n){var r=t[n];return r?"\n"!==r&&"\n"===t[n-1]?n-1:e.endOfWhiteSpace(t,n):n}},{key:"foldNewline",value:function(t,n,r){for(var o=0,a=!1,i="",u=t[n+1];" "===u||"\t"===u||"\n"===u;){switch(u){case"\n":o=0,n+=1,i+="\n";break;case"\t":o<=r&&(a=!0),n=e.endOfWhiteSpace(t,n+2)-1;break;case" ":o+=1,n+=1}u=t[n+1]}return i||(i=" "),u&&o<=r&&(a=!0),{fold:i,offset:n,error:a}}}]),i(e,[{key:"getPropValue",value:function(e,t,n){if(!this.context)return null;var r=this.context.src,o=this.props[e];return o&&r[o.start]===t?r.slice(o.start+(n?1:0),o.end):null}},{key:"commentHasRequiredWhitespace",value:function(t){var n=this.context.src;if(this.header&&t===this.header.end)return!1;if(this.valueRange){var r=this.valueRange.end;return t!==r||e.atBlank(n,r-1)}}},{key:"parseComment",value:function(t){var n=this.context.src;if(n[t]===s.COMMENT){var o=e.endOfLine(n,t+1),a=new r.default(t,o);return this.props.push(a),o}return t}},{key:"toString",value:function(){var t=this.context.src,n=this.range,r=this.value;if(null!=r)return r;var o=t.slice(n.start,n.end);return e.addStringTerminator(t,n.end,o)}},{key:"anchor",get:function(){for(var e=0;e<this.props.length;++e){var t=this.getPropValue(e,s.ANCHOR,!0);if(null!=t)return t}return null}},{key:"comment",get:function(){for(var e=[],t=0;t<this.props.length;++t){var n=this.getPropValue(t,s.COMMENT,!0);null!=n&&e.push(n)}return e.length>0?e.join("\n"):null}},{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]===s.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]!==s.COMMENT)return!0;return!1}},{key:"jsonLike",get:function(){return-1!==[u.FLOW_MAP,u.FLOW_SEQ,u.QUOTE_DOUBLE,u.QUOTE_SINGLE].indexOf(this.type)}},{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,s.TAG,!1);if(null!=t){if("<"===t[1])return{verbatim:t.slice(2,-1)};var n=o(t.match(/^(.*!)([^!]*)$/),3);n[0];return{handle:n[1],suffix:n[2]}}}return null}},{key:"valueRangeContainsNewline",get:function(){if(!this.valueRange||!this.context)return!1;for(var e=this.valueRange,t=e.start,n=e.end,r=this.context.src,o=t;o<n;++o)if("\n"===r[o])return!0;return!1}}]),e}();t.default=f});a(v);var m=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLWarning=t.YAMLSyntaxError=t.YAMLSemanticError=t.YAMLReferenceError=void 0;var n,r=(n=v)&&n.__esModule?n:{default:n};function o(e){return(o="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function f(e){var t="function"==typeof Map?new Map:void 0;return(f=function(e){if(null===e)return null;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return c(e,arguments,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,e)})(e)}function c(e,t,n){return(c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&l(o,n.prototype),o}).apply(null,arguments)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){function t(e,n){var o;if(a(this,t),!(n&&e instanceof r.default))throw new Error("Invalid arguments for new YAMLReferenceError");return(o=i(this,p(t).call(this))).name="YAMLReferenceError",o.message=n,o.source=e,o}return s(t,f(ReferenceError)),t}();t.YAMLReferenceError=h;var d=function(e){function t(e,n){var o;if(a(this,t),!(n&&e instanceof r.default))throw new Error("Invalid arguments for new YAMLSemanticError");return(o=i(this,p(t).call(this))).name="YAMLSemanticError",o.message=n,o.source=e,o}return s(t,f(SyntaxError)),t}();t.YAMLSemanticError=d;var y=function(e){function t(e,n){var o;if(a(this,t),!(n&&e instanceof r.default))throw new Error("Invalid arguments for new YAMLSyntaxError");return(o=i(this,p(t).call(this))).name="YAMLSyntaxError",o.message=n,o.source=e,o}return s(t,f(SyntaxError)),t}();t.YAMLSyntaxError=y;var m=function(e){function t(e,n){var o;if(a(this,t),!(n&&e instanceof r.default))throw new Error("Invalid arguments for new YAMLWarning");return(o=i(this,p(t).call(this))).name="YAMLWarning",o.message=n,o.source=e,o}return s(t,f(Error)),t}();t.YAMLWarning=m});a(m);var g=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(v),o=(n=y)&&n.__esModule?n:{default:n};function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,f(t).call(this,r.Type.COMMENT))}var n,a,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,r.default),n=t,(a=[{key:"parse",value:function(e,t){this.context=e;e.src;var n=this.parseComment(t);return this.range=new o.default(t,n),n}}])&&i(n.prototype,a),u&&i(n,u),t}();t.default=l});a(g);var b=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(v),o=(n=y)&&n.__esModule?n:{default:n};function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=i(this,s(t).call(this,r.Type.DIRECTIVE))).name=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,r.default),c(t,null,[{key:"endOfDirective",value:function(e,t){for(var n=e[t];n&&"\n"!==n&&"#"!==n;)n=e[t+=1];for(n=e[t-1];" "===n||"\t"===n;)n=e[(t-=1)-1];return t}}]),c(t,[{key:"parseName",value:function(e){for(var t=this.context.src,n=e,r=t[n];r&&"\n"!==r&&"\t"!==r&&" "!==r;)r=t[n+=1];return this.name=t.slice(e,n),n}},{key:"parseParameters",value:function(e){for(var t=this.context.src,n=e,r=t[n];r&&"\n"!==r&&"#"!==r;)r=t[n+=1];return this.valueRange=new o.default(e,n),n}},{key:"parse",value:function(e,t){this.context=e;e.src;var n=this.parseName(t+1);return n=this.parseParameters(n),n=this.parseComment(n),this.range=new o.default(t,n),n}},{key:"parameters",get:function(){var e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}}]),t}();t.default=p});a(b);var O=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(g),r=i(b),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(v),a=i(y);function i(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function f(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=f(this,c(t).call(this,o.Type.DOCUMENT))).directives=null,e.contents=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,o.default),p(t,null,[{key:"startCommentOrEndBlankLine",value:function(e,t){var n=o.default.endOfWhiteSpace(e,t),r=e[n];return"#"===r||"\n"===r?n:t}}]),p(t,[{key:"parseDirectives",value:function(e){var a=this.context.src;this.directives=[];for(var i=!1,u=e;!o.default.atDocumentBoundary(a,u,o.Char.DIRECTIVES_END);)switch(a[u=t.startCommentOrEndBlankLine(a,u)]){case"\n":u+=1;break;case"#":var s=new n.default;u=s.parse({src:a},u),this.directives.push(s);break;case"%":var f=new r.default;u=f.parse({parent:this,src:a},u),this.directives.push(f),i=!0;break;default:return i?this.error=new m.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),u}return a[u]?u+3:(i?this.error=new m.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),u)}},{key:"parseContents",value:function(e){var r=this.context,i=r.parseNode,u=r.src;this.contents||(this.contents=[]);for(var s=e;"-"===u[s-1];)s-=1;var f=o.default.endOfWhiteSpace(u,e),c=s===e;for(this.valueRange=new a.default(f);!o.default.atDocumentBoundary(u,f,o.Char.DOCUMENT_END);){switch(u[f]){case"\n":s=f+=1,c=!0;break;case"#":var l=new n.default;f=l.parse({src:u},f),this.contents.push(l);break;default:var p=o.default.endOfIndent(u,f),h=i({atLineStart:c,indent:-1,inFlow:!1,inCollection:!1,lineStart:s,parent:this},p);if(!h)return p;this.contents.push(h),this.valueRange.end=h.valueRange.end,f=h.range.end,c=!1}f=t.startCommentOrEndBlankLine(u,f)}if(u[f]&&u[f+=3]){if("#"===u[f=o.default.endOfWhiteSpace(u,f)]){var d=new n.default;f=d.parse({src:u},f),this.contents.push(d)}switch(u[f]){case"\n":f+=1;break;case void 0:break;default:this.error=new m.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return f}},{key:"parse",value:function(e,t){this.context=e;var n=65279===e.src.charCodeAt(t)?t+1:t;return n=this.parseDirectives(n),n=this.parseContents(n)}},{key:"toString",value:function(){var e=this.contents,t=(this.context.src,this.directives),n=this.value;if(null!=n)return n;var r=t.join("");return e.length>0&&((t.length>0||e[0].type===o.Type.COMMENT)&&(r+="---\n"),r+=e.join("")),"\n"!==r[r.length-1]&&(r+="\n"),r}}]),t}();t.default=d});a(O);var w=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(v),r=o(y);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,f(t).apply(this,arguments))}var o,a,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,n.default),o=t,(a=[{key:"parse",value:function(e,t){this.context=e;var o=e.src,a=n.default.endOfIdentifier(o,t+1);return this.valueRange=new r.default(t+1,a),a=n.default.endOfWhiteSpace(o,a),a=this.parseComment(a)}}])&&i(o.prototype,a),u&&i(o,u),t}();t.default=l});a(w);var _=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Chomp=void 0;var n,r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(v),o=(n=y)&&n.__esModule?n:{default:n};function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};t.Chomp=l;var p=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=s(this,f(t).call(this,e,n))).blockIndent=null,r.chomping=l.CLIP,r.header=null,r}var n,a,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,r.default),n=t,(a=[{key:"parseBlockHeader",value:function(e){for(var t=this.context.src,n=e+1,r="";;){var a=t[n];switch(a){case"-":this.chomping=l.STRIP;break;case"+":this.chomping=l.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r+=a;break;default:return this.blockIndent=Number(r)||null,this.header=new o.default(e,n),n}n+=1}}},{key:"parseBlockValue",value:function(e){for(var t=this.context,n=t.indent,a=(t.inFlow,t.src),i=e,u=this.blockIndent?n+this.blockIndent-1:n,s=1,f=a[i];"\n"===f&&(i+=1,!r.default.atDocumentBoundary(a,i));f=a[i]){var c=r.default.endOfBlockIndent(a,u,i);if(null===c)break;if(!this.blockIndent){var l=c-(i+n);if("\n"!==a[c]){if(l<s){i-=1;break}this.blockIndent=l,u=n+this.blockIndent-1}else l>s&&(s=l)}i=r.default.endOfLine(a,c)}return this.valueRange=new o.default(e+1,i),i}},{key:"parse",value:function(e,t){this.context=e;var n=e.src,o=this.parseBlockHeader(t);return o=r.default.endOfWhiteSpace(n,o),o=this.parseComment(o),o=this.parseBlockValue(o)}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,n=e.end,o=this.context,a=o.indent,i=o.src;if(this.valueRange.isEmpty)return"";for(var u=null,s=i[n-1];"\n"===s||"\t"===s||" "===s;){if((n-=1)<=t){if(this.chomping===l.KEEP)break;return""}"\n"===s&&(u=n),s=i[n-1]}var f=n+1;u&&(this.chomping===l.KEEP?(f=u,n=this.valueRange.end):n=u);for(var c=a+this.blockIndent,p=this.type===r.Type.BLOCK_FOLDED,h=!0,d="",y="",v=!1,m=t;m<n;++m){for(var g=0;g<c&&" "===i[m];++g)m+=1;var b=i[m];if("\n"===b)"\n"===y?d+="\n":y="\n";else{var O=r.default.endOfLine(i,m),w=i.slice(m,O);m=O,p&&(" "===b||"\t"===b)&&m<f?(" "===y?y="\n":v||h||"\n"!==y||(y="\n\n"),d+=y+w,y=O<n&&i[O]||"",v=!0):(d+=y+w,y=p&&m<f?" ":"\n",v=!1),h&&""!==w&&(h=!1)}}return this.chomping===l.STRIP?d:d+"\n"}}])&&i(n.prototype,a),u&&i(n,u),t}();t.default=p});a(_);var E=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(v),o=(n=y)&&n.__esModule?n:{default:n};function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=s(this,f(t).call(this,e,n))).node=null,r}var n,a,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,r.default),n=t,(a=[{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,a=e.src,i=e.atLineStart,u=e.lineStart;i||this.type!==r.Type.SEQ_ITEM||(this.error=new m.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));for(var s=i?t-u:e.indent,f=r.default.endOfWhiteSpace(a,t+1),c=a[f];"\n"===c||"#"===c;){var l=f+1;if("#"===c){var p=r.default.endOfLine(a,l);this.props.push(new o.default(f,p)),f=p}else i=!0,u=l,f=r.default.endOfWhiteSpace(a,l);c=a[f]}r.default.nextNodeIsIndented(c,f-(u+s),this.type!==r.Type.SEQ_ITEM)?(this.node=n({atLineStart:i,inCollection:!1,indent:s,lineStart:u,parent:this},f),this.node&&(f=this.node.range.end)):u>t+1&&(f=u-1);var h=this.node?this.node.valueRange.end:f;return this.valueRange=new o.default(t,h),f}},{key:"toString",value:function(){var e=this.context.src,t=this.node,n=this.range,o=this.value;if(null!=o)return o;var a=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return r.default.addStringTerminator(e,n.end,a)}}])&&i(n.prototype,a),u&&i(n,u),t}();t.default=l});a(E);var S=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;a(E);var n=a(g),r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(v),o=a(y);function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=f(this,c(t).call(this,e.type===r.Type.SEQ_ITEM?r.Type.SEQ:r.Type.MAP))).items=[e];for(var o=e.props.length-1;o>=0;--o)if(e.props[o].start<e.context.lineStart){n.props=e.props.slice(0,o+1),e.props=e.props.slice(o+1);var a=e.props[0]||e.valueRange;e.range.start=a.start;break}return n}var a,i,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,r.default),a=t,(i=[{key:"parse",value:function(e,t){this.context=e;var a=e.parseNode,i=e.src,u=r.default.startOfLine(i,t),s=this.items[0];s.context.parent=this,this.valueRange=o.default.copy(s.valueRange);for(var f=s.range.start-s.context.lineStart,c=t,l=i[c=r.default.normalizeOffset(i,c)],p=r.default.endOfWhiteSpace(i,u)===c;l;){for(;"\n"===l||"#"===l;){if("#"===l){var h=new n.default;if(c=h.parse({src:i},c),this.items.push(h),this.valueRange.end=c,c>=i.length){l=null;break}}if(u=c+1,c=r.default.endOfIndent(i,u),r.default.atBlank(i,c)){var d=r.default.endOfWhiteSpace(i,c),y=i[d];y&&"\n"!==y&&"#"!==y||(c=d)}l=i[c],p=!0}if(!l)break;if(c!==u+f&&(p||":"!==l)){u>t&&(c=u);break}if(s.type===r.Type.SEQ_ITEM!=("-"===l)){var v=!0;if("-"===l){var m=i[c+1];v=!m||"\n"===m||"\t"===m||" "===m}if(v){u>t&&(c=u);break}}var g=a({atLineStart:p,inCollection:!0,indent:f,lineStart:u,parent:this},c);if(!g)return c;if(this.items.push(g),this.valueRange.end=g.valueRange.end,p=!1,(l=i[c=r.default.normalizeOffset(i,g.range.end)])&&"\n"!==l&&"#"!==l){for(var b=c-1,O=i[b];" "===O||"\t"===O;)O=i[--b];"\n"===O&&(u=b+1)}}return c}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,o=this.value;if(null!=o)return o;for(var a=e.slice(n.start,t[0].range.start)+String(t[0]),i=1;i<t.length;++i){var u=t[i],s=u.context,f=s.atLineStart,c=s.indent;if(f)for(var l=0;l<c;++l)a+=" ";a+=String(u)}return r.default.addStringTerminator(e,n.end,a)}}])&&s(a.prototype,i),u&&s(a,u),t}();t.default=p});a(S);var P=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(g),r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(v),o=a(y);function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=f(this,c(t).call(this,e,n))).items=null,r}var a,i,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,r.default),a=t,(i=[{key:"prevNodeIsJsonLike",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items.length,t=this.items[e-1];return!!t&&(t.jsonLike||t.type===r.Type.COMMENT&&this.nodeIsJsonLike(e-1))}},{key:"parse",value:function(e,t){this.context=e;var a=e.parseNode,i=e.src,u=e.indent,s=e.lineStart,f=i[t];this.items=[f];var c=r.default.endOfWhiteSpace(i,t+1);for(f=i[c];f&&"]"!==f&&"}"!==f;){switch(f){case"\n":s=c+1,(c=r.default.endOfIndent(i,s))-s<=u&&(this.error=new m.YAMLSemanticError(this,"Insufficient indentation in flow collection"));break;case",":this.items.push(f),c+=1;break;case"#":var l=new n.default;c=l.parse({src:i},c),this.items.push(l);break;case"?":case":":var p=i[c+1];if("\n"===p||"\t"===p||" "===p||","===p||":"===f&&this.prevNodeIsJsonLike()){this.items.push(f),c+=1;break}default:var h=a({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:s,parent:this},c);if(!h)return this.valueRange=new o.default(t,c),c;this.items.push(h),c=r.default.normalizeOffset(i,h.range.end)}f=i[c=r.default.endOfWhiteSpace(i,c)]}return this.valueRange=new o.default(t,c+1),f&&(this.items.push(f),c=r.default.endOfWhiteSpace(i,c+1),c=this.parseComment(c)),c}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,o=this.value;if(null!=o)return o;var a=t.filter(function(e){return e instanceof r.default}),i="",u=n.start;return a.forEach(function(t){var n=e.slice(u,t.range.start);u=t.range.end,i+=n+String(t)}),i+=e.slice(u,n.end),r.default.addStringTerminator(e,n.end,i)}}])&&s(a.prototype,i),u&&s(a,u),t}();t.default=p});a(P);var M=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(v),r=o(y);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,f(t).apply(this,arguments))}var o,a,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,n.default),o=t,u=[{key:"endOfLine",value:function(e,t,n){for(var r=e[t],o=t;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){var a=e[o+1];if(":"===r&&("\n"===a||"\t"===a||" "===a||","===a))break;if((" "===r||"\t"===r)&&"#"===a)break;o+=1,r=a}return o}}],(a=[{key:"parseBlockValue",value:function(e){for(var r=this.context,o=r.indent,a=r.inFlow,i=r.src,u=e,s=i[u];"\n"===s&&!n.default.atDocumentBoundary(i,u+1);s=i[u]){var f=n.default.endOfBlockIndent(i,o,u+1);if(null===f||"#"===i[f])break;u=t.endOfLine(i,f,a)}return this.valueRange.isEmpty&&(this.valueRange.start=e),this.valueRange.end=u,u}},{key:"parse",value:function(e,o){this.context=e;var a=e.inFlow,i=e.src,u=o,s=i[u];return s&&"#"!==s&&"\n"!==s&&(u=t.endOfLine(i,o,a)),this.valueRange=new r.default(o,u),u=n.default.endOfWhiteSpace(i,u),u=this.parseComment(u),this.hasComment&&!this.valueRange.isEmpty||(u=this.parseBlockValue(u)),u}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;for(var e=this.valueRange,t=e.start,r=e.end,o=this.context.src,a=o[r-1];t<r&&("\n"===a||"\t"===a||" "===a);)a=o[--r-1];for(a=o[t];t<r&&("\n"===a||"\t"===a||" "===a);)a=o[++t];for(var i="",u=t;u<r;++u){var s=o[u];if("\n"===s){var f=n.default.foldNewline(o,u,-1);i+=f.fold,u=f.offset}else if(" "===s||"\t"===s){for(var c=u,l=o[u+1];u<r&&(" "===l||"\t"===l);)l=o[(u+=1)+1];"\n"!==l&&(i+=u>c?o.slice(c,u+1):s)}else i+=s}return i}}])&&i(o.prototype,a),u&&i(o,u),t}();t.default=l});a(M);var T=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(v),r=o(y);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,f(t).apply(this,arguments))}var o,a,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,n.default),o=t,u=[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}}],(a=[{key:"parseCharCode",value:function(e,t,n){var r=this.context.src,o=r.substr(e,t),a=o.length===t&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;return isNaN(a)?(n.push(new m.YAMLSyntaxError(this,"Invalid escape sequence ".concat(r.substr(e-2,t+2)))),r.substr(e-2,t+2)):String.fromCodePoint(a)}},{key:"parse",value:function(e,o){this.context=e;var a=e.src,i=t.endOfQuote(a,o+1);return this.valueRange=new r.default(o,i),i=n.default.endOfWhiteSpace(a,i),i=this.parseComment(i)}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,r=t.start,o=t.end,a=this.context,i=a.indent,u=a.src;'"'!==u[o-1]&&e.push(new m.YAMLSyntaxError(this,'Missing closing "quote'));for(var s="",f=r+1;f<o-1;++f){var c=u[f];if("\n"===c){n.default.atDocumentBoundary(u,f+1)&&e.push(new m.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));var l=n.default.foldNewline(u,f,i);s+=l.fold,f=l.offset,l.error&&e.push(new m.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===c)switch(u[f+=1]){case"0":s+="\0";break;case"a":s+="";break;case"b":s+="\b";break;case"e":s+="";break;case"f":s+="\f";break;case"n":s+="\n";break;case"r":s+="\r";break;case"t":s+="\t";break;case"v":s+="\v";break;case"N":s+="
";break;case"_":s+=" ";break;case"L":s+="\u2028";break;case"P":s+="\u2029";break;case" ":s+=" ";break;case'"':s+='"';break;case"/":s+="/";break;case"\\":s+="\\";break;case"\t":s+="\t";break;case"x":s+=this.parseCharCode(f+1,2,e),f+=2;break;case"u":s+=this.parseCharCode(f+1,4,e),f+=4;break;case"U":s+=this.parseCharCode(f+1,8,e),f+=8;break;case"\n":for(;" "===u[f+1]||"\t"===u[f+1];)f+=1;break;default:e.push(new m.YAMLSyntaxError(this,"Invalid escape sequence ".concat(u.substr(f-1,2)))),s+="\\"+u[f]}else if(" "===c||"\t"===c){for(var p=f,h=u[f+1];" "===h||"\t"===h;)h=u[(f+=1)+1];"\n"!==h&&(s+=f>p?u.slice(p,f+1):c)}else s+=c}return e.length>0?{errors:e,str:s}:s}}])&&i(o.prototype,a),u&&i(o,u),t}();t.default=l});a(T);var A=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(v),r=o(y);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,f(t).apply(this,arguments))}var o,a,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,n.default),o=t,u=[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}}],(a=[{key:"parse",value:function(e,o){this.context=e;var a=e.src,i=t.endOfQuote(a,o+1);return this.valueRange=new r.default(o,i),i=n.default.endOfWhiteSpace(a,i),i=this.parseComment(i)}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,r=t.start,o=t.end,a=this.context,i=a.indent,u=a.src;"'"!==u[o-1]&&e.push(new m.YAMLSyntaxError(this,"Missing closing 'quote"));for(var s="",f=r+1;f<o-1;++f){var c=u[f];if("\n"===c){n.default.atDocumentBoundary(u,f+1)&&e.push(new m.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));var l=n.default.foldNewline(u,f,i);s+=l.fold,f=l.offset,l.error&&e.push(new m.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===c)s+=c,"'"!==u[f+=1]&&e.push(new m.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(" "===c||"\t"===c){for(var p=f,h=u[f+1];" "===h||"\t"===h;)h=u[(f+=1)+1];"\n"!==h&&(s+=f>p?u.slice(p,f+1):c)}else s+=c}return e.length>0?{errors:e,str:s}:s}}])&&i(o.prototype,a),u&&i(o,u),t}();t.default=l});a(A);var k=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=p(w),r=p(_),o=p(S),a=p(E),i=p(P),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(v),s=p(M),f=p(T),c=p(A),l=p(y);function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}var g=function(){function e(){var t,p,h,d=this,y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},g=v.atLineStart,b=v.inCollection,O=v.inFlow,w=v.indent,_=v.lineStart,E=v.parent;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),h=function(t,p){if(u.default.atDocumentBoundary(d.src,p))return null;var h,y=new e(d,t),v=y.parseProps(p),g=v.props,b=v.type,O=v.valueStart;switch(b){case u.Type.ALIAS:h=new n.default(b,g);break;case u.Type.BLOCK_FOLDED:case u.Type.BLOCK_LITERAL:h=new r.default(b,g);break;case u.Type.FLOW_MAP:case u.Type.FLOW_SEQ:h=new i.default(b,g);break;case u.Type.MAP_KEY:case u.Type.MAP_VALUE:case u.Type.SEQ_ITEM:h=new a.default(b,g);break;case u.Type.COMMENT:case u.Type.PLAIN:h=new s.default(b,g);break;case u.Type.QUOTE_DOUBLE:h=new f.default(b,g);break;case u.Type.QUOTE_SINGLE:h=new c.default(b,g);break;default:return h.error=new m.YAMLSyntaxError(h,"Unknown node type: ".concat(JSON.stringify(b))),h.range=new l.default(p,p+1),h}var w=h.parse(y,O),_="\n"===d.src[w]?w+1:w;if(_<=p&&(h.error=new Error("Node#parse consumed no characters"),h.error.parseEnd=_,h.error.source=h,_=p+1),h.range=new l.default(p,_),y.nodeStartsCollection(h)){h.error||y.atLineStart||y.parent.type!==u.Type.DOCUMENT||(h.error=new m.YAMLSyntaxError(h,"Block collection must not have preceding content here (e.g. directives-end indicator)"));var E=new o.default(h);return w=E.parse(new e(y),w),E.range=new l.default(p,w),E}return h},(p="parseNode")in(t=this)?Object.defineProperty(t,p,{value:h,enumerable:!0,configurable:!0,writable:!0}):t[p]=h,this.atLineStart=null!=g?g:y.atLineStart||!1,this.inCollection=null!=b?b:y.inCollection||!1,this.inFlow=null!=O?O:y.inFlow||!1,this.indent=null!=w?w:y.indent,this.lineStart=null!=_?_:y.lineStart,this.parent=null!=E?E:y.parent||{},this.src=y.src}return d(e,null,[{key:"parseType",value:function(e,t,n){switch(e[t]){case"*":return u.Type.ALIAS;case">":return u.Type.BLOCK_FOLDED;case"|":return u.Type.BLOCK_LITERAL;case"{":return u.Type.FLOW_MAP;case"[":return u.Type.FLOW_SEQ;case"?":return!n&&u.default.atBlank(e,t+1)?u.Type.MAP_KEY:u.Type.PLAIN;case":":return!n&&u.default.atBlank(e,t+1)?u.Type.MAP_VALUE:u.Type.PLAIN;case"-":return!n&&u.default.atBlank(e,t+1)?u.Type.SEQ_ITEM:u.Type.PLAIN;case'"':return u.Type.QUOTE_DOUBLE;case"'":return u.Type.QUOTE_SINGLE;default:return u.Type.PLAIN}}}]),d(e,[{key:"nodeStartsCollection",value:function(e){var t=this.inCollection,n=this.inFlow,r=this.src;if(t||n)return!1;if(e instanceof a.default)return!0;var o=e.range.end;return"\n"!==r[o]&&"\n"!==r[o-1]&&":"===r[o=u.default.endOfWhiteSpace(r,o)]}},{key:"parseProps",value:function(t){for(var n=this.inFlow,r=this.parent,o=this.src,a=[],i=!1,s=o[t=u.default.endOfWhiteSpace(o,t)];s===u.Char.ANCHOR||s===u.Char.COMMENT||s===u.Char.TAG||"\n"===s;){if("\n"===s){var f=t+1,c=u.default.endOfIndent(o,f),p=c-(f+this.indent),h=r.type===u.Type.SEQ_ITEM&&r.context.atLineStart;if(!u.default.nextNodeIsIndented(o[c],p,!h))break;this.atLineStart=!0,this.lineStart=f,i=!1,t=c}else if(s===u.Char.COMMENT){var d=u.default.endOfLine(o,t+1);a.push(new l.default(t,d)),t=d}else{var y=u.default.endOfIdentifier(o,t+1);s===u.Char.TAG&&","===o[y]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(o.slice(t+1,y+13))&&(y=u.default.endOfIdentifier(o,y+5)),a.push(new l.default(t,y)),i=!0,t=u.default.endOfWhiteSpace(o,y)}s=o[t]}return i&&":"===s&&u.default.atBlank(o,t+1)&&(t-=1),{props:a,type:e.parseType(o,t,n),valueStart:t}}},{key:"pretty",get:function(){var e={start:"".concat(this.lineStart," + ").concat(this.indent),in:[],parent:this.parent.type};return this.atLineStart||(e.start+=" + N"),this.inCollection&&e.in.push("collection"),this.inFlow&&e.in.push("flow"),e}}]),e}();t.default=g});a(k);var L=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,"\n"));var t=new r.default({src:e}),o=[],a=0;for(;a<e.length;){var i=new n.default;a=i.parse(t,a),o.push(i)}return o.toString=function(){return o.join("...\n")},o};var n=o(O),r=o(k);function o(e){return e&&e.__esModule?e:{default:e}}});a(L);var j=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n,r){return Array.isArray(t)?t.map(function(t,n){return e(t,String(n),r)}):t&&"function"==typeof t.toJSON?t.toJSON(n,r):t}});a(j);var N=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.addCommentBefore=function(e,t,n){if(!n)return e;var r=n.replace(/[\s\S]^/gm,"$&".concat(t,"#"));return"#".concat(r,"\n").concat(t).concat(e)},t.default=function(e,t,n){return n?-1===n.indexOf("\n")?"".concat(e," #").concat(n):"".concat(e,"\n")+n.replace(/^/gm,"".concat(t||"","#")):e}});a(N);var R=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}});a(R);var C=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(N),r=o(R);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){function t(){var e,n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,u=new Array(i),f=0;f<i;f++)u[f]=arguments[f];return r=this,l(c(c(n=!(o=(e=s(t)).call.apply(e,[this].concat(u)))||"object"!==a(o)&&"function"!=typeof o?c(r):o)),"items",[]),n}var o,u,p;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,r.default),o=t,(u=[{key:"toJSON",value:function(){return null}},{key:"toString",value:function(e,r,o){var a=this,i=r.blockItem,u=r.flowChars,s=r.itemIndent,f=e,c=f.doc,l=f.indent,p=this.type&&"FLOW"===this.type.substr(0,4)||e.inFlow;p&&(s+=" "),e=Object.assign({},e,{indent:s,inFlow:p,type:null});var h,d=!1,y=!1,v=this.items.reduce(function(t,r,o){var i=r&&r.commentBefore;i&&(d=!0,i.match(/^.*$/gm).forEach(function(e){t.push({type:"comment",str:"#".concat(e)})}));var u=r&&r.comment;u&&(d=!0);var f=c.schema.stringify(r,e,function(){u=null});return y||-1===f.indexOf("\n")||(y=!0),p&&o<a.items.length-1&&(f+=","),f=(0,n.default)(f,s,u),t.push({type:"item",str:f}),t},[]);if(0===v.length)h=u.start+u.end;else if(p){var m=u.start,g=u.end,b=v.map(function(e){return e.str});h=d||y||b.reduce(function(e,t){return e+t.length+2},2)>t.maxFlowStringSingleLineLength?"".concat(m,"\n ").concat(l).concat(b.join("\n ".concat(l)),"\n").concat(l).concat(g):"".concat(m," ").concat(b.join(" ")," ").concat(g)}else h=v.map(i).join("\n".concat(l));return this.comment&&(y||-1!==h.indexOf("\n")?h+="\n"+this.comment.replace(/^/gm,"".concat(l,"#")):h=(0,n.default)(h,l,this.comment),o&&o()),h}}])&&i(o.prototype,u),p&&i(o,p),t}();t.default=p,l(p,"maxFlowStringSingleLineLength",60)});a(C);var x=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(j),r=o(R);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=s(this,f(t).call(this))).value=e,n}var o,a,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,r.default),o=t,(a=[{key:"toJSON",value:function(e,t){return t?this.value:(0,n.default)(this.value,e,t)}},{key:"toString",value:function(){return String(this.value)}}])&&i(o.prototype,a),u&&i(o,u),t}();t.default=l});a(x);var I=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(N),r=s(j),o=s(C),a=s(R),i=s(x);function s(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=l(this,p(t).call(this))).key=e,n.value=r,n.type="PAIR",n}var u,s,d;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,a.default),u=t,(s=[{key:"toJSON",value:function(e,t){var n={},o=this.stringKey;return n[o]=(0,r.default)(this.value,o,t),n}},{key:"toString",value:function(e,t){if(!e||!e.doc)return JSON.stringify(this);var r=this.key,i=this.value,u=r instanceof a.default&&r.comment,s=!r||u||r instanceof o.default,f=e,c=f.doc,l=f.indent;e=Object.assign({},e,{implicitKey:!s,indent:l+" "});var p=c.schema.stringify(r,e,function(){u=null});u&&(p=(0,n.default)(p,e.indent,u)),e.implicitKey=!1;var h=c.schema.stringify(i,e,t),d=i&&i.commentBefore?" #".concat(i.commentBefore.replace(/\n+(?!\n|$)/g,"$&".concat(e.indent,"#"))):"";return s?"? ".concat(p,"\n").concat(l,":").concat(d?"".concat(d,"\n").concat(e.indent):" ").concat(h):i instanceof o.default?"".concat(p,":").concat(d,"\n").concat(e.indent).concat(h):"".concat(p,":").concat(d?"".concat(d,"\n").concat(e.indent):" ").concat(h)}},{key:"commentBefore",get:function(){return this.key&&this.key.commentBefore},set:function(e){null==this.key&&(this.key=new i.default(null)),this.key.commentBefore=e}},{key:"comment",get:function(){return this.value&&this.value.comment},set:function(e){null==this.value&&(this.value=new i.default(null)),this.value.comment=e}},{key:"stringKey",get:function(){var e=(0,r.default)(this.key);if(null===e)return"";if("object"===f(e))try{return JSON.stringify(e)}catch(e){}return String(e)}}])&&c(u.prototype,s),d&&c(u,d),t}();t.default=d});a(I);var D=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(j),r=o(C);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e,t,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,c(t).apply(this,arguments))}var o,a,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,r.default),o=t,(a=[{key:"toJSON",value:function(e,t){return this.items.map(function(e,r){return(0,n.default)(e,String(r),t)})}},{key:"toString",value:function(e,n){return e?f(c(t.prototype),"toString",this).call(this,e,{blockItem:function(e){var t=e.type,n=e.str;return"comment"===t?n:"- ".concat(n)},flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" "},n):JSON.stringify(this)}}])&&i(o.prototype,a),u&&i(o,u),t}();t.default=p});a(D);var B=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MERGE_KEY=void 0;var n=a(I),r=a(x),o=a(D);function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e,t,n){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h="<<";t.MERGE_KEY=h;var d=function(e){function t(e){var a;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e instanceof n.default){var i=e.value;i instanceof o.default||((i=new o.default).items.push(e.value),i.range=e.value.range),(a=f(this,l(t).call(this,e.key,i))).range=e.range}else a=f(this,l(t).call(this,new r.default(h),new o.default));return a.type="MERGE_PAIR",f(a)}var a,i,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,n.default),a=t,(i=[{key:"toString",value:function(e,n){var r=this.value;if(r.items.length>1)return c(l(t.prototype),"toString",this).call(this,e,n);this.value=r.items[0];var o=c(l(t.prototype),"toString",this).call(this,e,n);return this.value=r,o}}])&&s(a.prototype,i),u&&s(a,u),t}();t.default=d});a(B);var Y=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(j),r=i(C),o=i(B),a=i(I);function i(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,p(t).apply(this,arguments))}var i,u,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,r.default),i=t,(u=[{key:"toJSON",value:function(e,r){return this.items.reduce(function(e,a){if(a instanceof o.default)!function(){for(var n=Object.keys(e),o=a.value.items,i=o.length-1;i>=0;--i){var u=o[i].source;if(!(u instanceof t))throw new Error("Merge sources must be maps");!function(){var t=u.toJSON("",r);Object.keys(t).forEach(function(r){n.includes(r)||(e[r]=t[r])})}()}}();else{var i=a.stringKey,u=a.value;e[i]=(0,n.default)(u,i,r)}return e},{})}},{key:"toString",value:function(e,n){return e?(this.items.forEach(function(e){if(!(e instanceof a.default))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(e)," instead"))}),l(p(t.prototype),"toString",this).call(this,e,{blockItem:function(e){return e.str},flowChars:{start:"{",end:"}"},itemIndent:e.indent||""},n)):JSON.stringify(this)}}])&&f(i.prototype,u),s&&f(i,s),t}();t.default=d});a(Y);var U=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(null==t)return new o.default(null);if("object"!==s(t))return i?new o.default(t):t;if(Array.isArray(t)){var u=new a.default;return u.items=t.map(function(t){return e(t,i)}),u}var f=new n.default;return f.items=Object.keys(t).map(function(n){var o=e(n,i),a=e(t[n],i);return new r.default(o,a)}),f};var n=i(Y),r=i(I),o=i(x),a=i(D);function i(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}});a(U);var F=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(j),r=o(R);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p,h,d,y=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=i(this,s(t).call(this))).source=e,n.type=v.Type.ALIAS,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,r.default),c(t,null,[{key:"stringify",value:function(e,t){var n=e.range,r=e.source,o=t.anchors,a=t.doc,i=t.implicitKey,u=Object.keys(o).find(function(e){return o[e]===r});if(u)return"*".concat(u).concat(i?" ":"");var s=a.anchors.getName(r)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(s," [").concat(n,"]"))}}]),c(t,[{key:"toJSON",value:function(e,t){return(0,n.default)(this.source,e,t)}},{key:"tag",set:function(e){throw new Error("Alias nodes cannot have tags")}}]),t}();t.default=y,d=!0,(h="default")in(p=y)?Object.defineProperty(p,h,{value:d,enumerable:!0,configurable:!0,writable:!0}):p[h]=d});a(F);var Q=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(F),r=u(Y),o=u(B),a=u(x),i=u(D);function u(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var f=function(){function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r={},(n="map")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r}var t,u,f;return t=e,f=[{key:"validAnchorNode",value:function(e){return e instanceof a.default||e instanceof i.default||e instanceof r.default}}],(u=[{key:"createAlias",value:function(e,t){return this.setAnchor(e,t),new n.default(e)}},{key:"createMergePair",value:function(){for(var e=this,t=new o.default,a=arguments.length,i=new Array(a),u=0;u<a;u++)i[u]=arguments[u];return t.value.items=i.map(function(t){if(t instanceof n.default){if(t.source instanceof r.default)return t}else if(t instanceof r.default)return e.createAlias(t);throw new Error("Merge sources must be Map nodes or their Aliases")}),t}},{key:"getName",value:function(e){var t=this.map;return Object.keys(t).find(function(n){return t[n]===e})}},{key:"getNode",value:function(e){return this.map[e]}},{key:"newName",value:function(e){for(var t=Object.keys(this.map),n=1;;++n){var r="".concat(e).concat(n);if(!t.includes(r))return r}}},{key:"resolveNodes",value:function(){var e=this.map,t=this._cstAliases;Object.keys(e).forEach(function(t){e[t]=e[t].resolved}),t.forEach(function(e){e.source=e.source.resolved}),delete this._cstAliases}},{key:"setAnchor",value:function(t,n){if(null!=t&&!e.validAnchorNode(t))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw new Error("Anchor names must not contain whitespace or control characters");var r=this.map,o=t&&Object.keys(r).find(function(e){return r[e]===t});if(o){if(!n)return o;o!==n&&(delete r[o],r[n]=t)}else{if(!n){if(!t)return null;n=this.newName("a")}r[n]=t}return n}}])&&s(t.prototype,u),f&&s(t,f),e}();t.default=f});a(Q);var W=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(C),r=a(I),o=a(x);function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}t.default=function(e){return Object.keys(function e(t,a){if(t&&"object"===i(t)){var u=t.tag;t instanceof n.default?(u&&(a[u]=!0),t.items.forEach(function(t){return e(t,a)})):t instanceof r.default?(e(t.key,a),e(t.value,a)):t instanceof o.default&&u&&(a[u]=!0)}return a}(e,{}))}});a(W);var K=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,o,a){var i=a.indentAtStart,u=a.lineWidth,s=void 0===u?80:u,f=a.minContentWidth,c=void 0===f?20:f,l=a.onFold,p=a.onOverflow;if(!s||s<0)return e;var h=Math.max(1+c,1+s-t.length);if(e.length<=h)return e;for(var d=[],y={},v=s-("number"==typeof i?i:t.length),m=void 0,g=void 0,b=!1,O=0,w=e[0];w;w=e[O+=1]){if(o===r&&"\\"===w)switch(e[O+1]){case"x":w=e[O+=4];break;case"u":w=e[O+=6];break;case"U":w=e[O+=10];break;default:w=e[O+=2]}if("\n"===w){if(o===n)for(var _=e[O+1];" "===_||"\t"===_;){do{w=e[O+=1]}while(w&&"\n"!==w);_=e[O+1]}v=O+h,m=void 0}else{if(" "===w&&g&&" "!==g&&"\n"!==g&&"\t"!==g){var E=e[O+1];E&&" "!==E&&"\n"!==E&&"\t"!==E&&(m=O)}if(O>=v)if(m)d.push(m),v=m+h,m=void 0;else if(o===r){for(;" "===g||"\t"===g;)g=w,w=e[O+=1],b=!0;d.push(O-2),y[O-2]=!0,v=O-2+h,m=void 0}else b=!0}g=w}b&&p&&p();if(0===d.length)return e;l&&l();for(var S=e.slice(0,d[0]),P=0;P<d.length;++P){var M=d[P],T=d[P+1]||e.length;o===r&&y[M]&&(S+="".concat(e[M],"\\")),S+="\n".concat(t).concat(e.slice(M+1,T))}return S},t.FOLD_QUOTED=t.FOLD_BLOCK=t.FOLD_FLOW=void 0;t.FOLD_FLOW="flow";var n="block";t.FOLD_BLOCK=n;var r="quoted";t.FOLD_QUOTED=r});a(K);var V=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=u,t.str=t.resolve=t.strOptions=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(K);var r={defaultType:v.Type.PLAIN,dropCR:!1,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};t.strOptions=r;var o=function(e,t){var n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach(function(n){n.source||(n.source=t),e.errors.push(n)}),n.str):""};function a(e,t,o){var a=r.doubleQuoted,i=a.jsonEncoding,u=a.minMultiLineLength,s=JSON.stringify(e);if(i)return s;for(var f="",c=0,l=0,p=s[l];p;p=s[++l])if(" "===p&&"\\"===s[l+1]&&"n"===s[l+2]&&(f+=s.slice(c,l)+"\\ ",c=l+=1,p="\\"),"\\"===p)switch(s[l+1]){case"u":f+=s.slice(c,l);var h=s.substr(l+2,4);switch(h){case"0000":f+="\\0";break;case"0007":f+="\\a";break;case"000b":f+="\\v";break;case"001b":f+="\\e";break;case"0085":f+="\\N";break;case"00a0":f+="\\_";break;case"2028":f+="\\L";break;case"2029":f+="\\P";break;default:"00"===h.substr(0,2)?f+="\\x"+h.substr(2):f+=s.substr(l,6)}c=(l+=5)+1;break;case"n":if(o||'"'===s[l+2]||s.length<u)l+=1;else{for(f+=s.slice(c,l)+"\n\n";"\\"===s[l+2]&&"n"===s[l+3]&&'"'!==s[l+4];)f+="\n",l+=2;f+=t," "===s[l+2]&&(f+="\\"),c=(l+=1)+1}break;default:l+=1}return f=c?f+s.slice(c):s,o?f:(0,n.default)(f,t,n.FOLD_QUOTED,r.fold)}function i(e,t,o,i,u,s){if(/\n[\t ]+$/.test(e)||/^\s*$/.test(e))return a(e,t,!1);i&&!t&&(t=" ");var f=t?"2":"1",c=o?"|":">";if(!e)return c+"\n";var l="",p="";if(e=e.replace(/[\n\t ]*$/,function(t){var n=t.indexOf("\n");return-1===n?c+="-":e!==t&&n===t.length-1||(c+="+"),p=t.replace(/\n$/,""),""}).replace(/^[\n ]*/,function(e){-1!==e.indexOf(" ")&&(c+=f);var t=e.match(/ +$/);return t?(l=e.slice(0,-t[0].length),t[0]):(l=e,"")}),p&&(p=p.replace(/\n+(?!\n|$)/g,"$&".concat(t))),l&&(l=l.replace(/\n+/g,"$&".concat(t))),u&&(c+=" #"+u.replace(/ ?[\r\n]+/g," "),s&&s()),!e)return"".concat(c).concat(f,"\n").concat(t).concat(p);if(o)return e=e.replace(/\n+/g,"$&".concat(t)),"".concat(c,"\n").concat(t).concat(l).concat(e).concat(p);e=e.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(t));var h=(0,n.default)("".concat(l).concat(e).concat(p),t,n.FOLD_BLOCK,r.fold);return"".concat(c,"\n").concat(t).concat(h)}function u(e){var t=e.comment,o=e.type,u=e.value,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=s.forceBlockIndent,c=s.implicitKey,l=s.indent,p=s.inFlow,h=s.tags,d=arguments.length>2?arguments[2]:void 0,y=r.dropCR,m=r.defaultType;"string"!=typeof u&&(u=String(u)),y&&/\r/.test(u)&&(u=u.replace(/\r\n?/g,"\n"));var g=function(e){switch(e){case v.Type.BLOCK_FOLDED:return i(u,l,!1,f,t,d);case v.Type.BLOCK_LITERAL:return i(u,l,!0,f,t,d);case v.Type.QUOTE_DOUBLE:return a(u,l,c);case v.Type.QUOTE_SINGLE:return function(e,t,o){if(o){if(/\n/.test(e))return a(e,t,!0)}else if(/[ \t]\n|\n[ \t]/.test(e))return a(e,t,!1);return e="'"+e.replace(/'/g,"''").replace(/\n+/g,"$&\n".concat(t))+"'",o?e:(0,n.default)(e,t,n.FOLD_FLOW,r.fold)}(u,l,c);case v.Type.PLAIN:return function(e,t,o,u,s,f,c,l){if(o&&/[\n[\]{},]/.test(e)||u&&/[[\]{},]/.test(e))return a(e,t,o);if(!e||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t ]$/.test(e))return o||u?a(e,t,o):i(e,t,!1,s,c,l);var p=e.replace(/\n+/g,"$&\n".concat(t));if("string"!=typeof f.resolveScalar(p).value)return a(e,t,o);var h=o?p:(0,n.default)(p,t,n.FOLD_FLOW,r.fold);return!c||u||-1===h.indexOf("\n")&&-1===c.indexOf("\n")?h:(l&&l(),(0,N.addCommentBefore)(h,t,c))}(u,l,c,p,f,h,t,d);default:return null}};o!==v.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(u)?o=v.Type.QUOTE_DOUBLE:!c&&!p||o!==v.Type.BLOCK_FOLDED&&o!==v.Type.BLOCK_LITERAL||(o=v.Type.QUOTE_DOUBLE);var b=g(o);if(null===b&&null===(b=g(m)))throw new Error("Unsupported default string type ".concat(m));return b}t.resolve=o;var s={class:String,default:!0,tag:"tag:yaml.org,2002:str",resolve:o,stringify:u,options:r};t.str=s});a(V);var $=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.checkKeyLength=function(e,t,n,r,o){if("number"!=typeof o)return;var a=t.items[n],i=a&&a.range&&a.range.start;if(!i)for(var u=n-1;u>=0;--u){var s=t.items[u];if(s&&s.range){i=s.range.end+2*(n-u);break}}if(i>o+1024){var f=String(r).substr(0,8)+"..."+String(r).substr(-8);e.push(new m.YAMLSemanticError(t,'The "'.concat(f,'" key is too long')))}},t.resolveComments=function(e,t){t.forEach(function(t){var n=t.comment,r=t.before,o=e.items[r];o?o.commentBefore?o.commentBefore+="\n"+n:o.commentBefore=n:e.comment?e.comment+="\n"+n:e.comment=n})}});a($);var q=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.type!==v.Type.MAP&&t.type!==v.Type.FLOW_MAP){var i="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new m.YAMLSyntaxError(t,i)),null}var u=t.type===v.Type.FLOW_MAP?function(e,t){for(var n=[],r=[],a=void 0,i=null,u=!1,s="{",f=0;f<t.items.length;++f){(0,$.checkKeyLength)(e.errors,t,f,a,i);var c=t.items[f];if("string"==typeof c){if("?"===c&&void 0===a&&!u){u=!0,s=":";continue}if(":"===c){if(void 0===a&&(a=null),":"===s){s=",";continue}}else if(u&&(void 0===a&&","!==c&&(a=null),u=!1),void 0!==a&&(r.push(new o.default(a)),a=void 0,i=null,","===c)){s=":";continue}if("}"===c){if(f===t.items.length-1)continue}else if(c===s){s=":";continue}e.errors.push(new m.YAMLSyntaxError(t,"Flow map contains an unexpected ".concat(c)))}else c.type===v.Type.COMMENT?n.push({comment:c.comment,before:r.length}):void 0===a?(","===s&&e.errors.push(new m.YAMLSemanticError(c,"Separator , missing in flow map")),a=e.resolveNode(c),i=u?null:c.range.start):(","!==s&&e.errors.push(new m.YAMLSemanticError(c,"Indicator : missing in flow map entry")),r.push(new o.default(a,e.resolveNode(c))),a=void 0,u=!1)}"}"!==t.items[t.items.length-1]&&e.errors.push(new m.YAMLSemanticError(t,"Expected flow map to end with }"));void 0!==a&&r.push(new o.default(a));return{comments:n,items:r}}(e,t):function(e,t){for(var n=[],r=[],a=void 0,i=null,u=0;u<t.items.length;++u){var s=t.items[u];switch(s.type){case v.Type.COMMENT:n.push({comment:s.comment,before:r.length});break;case v.Type.MAP_KEY:void 0!==a&&r.push(new o.default(a)),s.error&&e.errors.push(s.error),a=e.resolveNode(s.node),i=null;break;case v.Type.MAP_VALUE:if(void 0===a&&(a=null),s.error&&e.errors.push(s.error),!s.context.atLineStart&&s.node&&s.node.type===v.Type.MAP&&!s.node.context.atLineStart){e.errors.push(new m.YAMLSemanticError(s.node,"Nested mappings are not allowed in compact mappings"))}r.push(new o.default(a,e.resolveNode(s.node))),(0,$.checkKeyLength)(e.errors,t,u,a,i),a=void 0,i=null;break;default:void 0!==a&&r.push(new o.default(a)),a=e.resolveNode(s),i=s.range.start,s.error&&e.errors.push(s.error);var f=t.items[u+1];if(!f||f.type!==v.Type.MAP_VALUE){e.errors.push(new m.YAMLSemanticError(s,"Implicit map keys need to be followed by map values"))}if(s.valueRangeContainsNewline){e.errors.push(new m.YAMLSemanticError(s,"Implicit map keys need to be on a single line"))}}}void 0!==a&&r.push(new o.default(a));return{comments:n,items:r}}(e,t),s=u.comments,f=u.items,c=new n.default;c.items=f,(0,$.resolveComments)(c,s);for(var l=0;l<f.length;++l){for(var p=f[l].key,h=l+1;h<f.length;++h){var d=f[h].key;if(p===d||p&&d&&p.hasOwnProperty("value")&&p.value===d.value){var y='Map keys must be unique; "'.concat(p,'" is repeated');e.errors.push(new m.YAMLSemanticError(t,y));break}}if(e.schema.merge&&p.value===r.MERGE_KEY){f[l]=new r.default(f[l]);var g=f[l].value.items,b=null;g.some(function(e){if(e instanceof a.default){var t=e.source.type;return t!==v.Type.MAP&&t!==v.Type.FLOW_MAP&&(b="Merge nodes aliases can only point to maps")}return b="Merge nodes can only have Alias nodes as values"}),b&&e.errors.push(new m.YAMLSemanticError(t,b))}}return t.resolved=c,c};var n=i(Y),r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(B),o=i(I),a=i(F);function i(e){return e&&e.__esModule?e:{default:e}}});a(q);var J=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.type!==v.Type.SEQ&&t.type!==v.Type.FLOW_SEQ){var o="A ".concat(t.type," node cannot be resolved as a sequence");return e.errors.push(new m.YAMLSyntaxError(t,o)),null}var a=t.type===v.Type.FLOW_SEQ?function(e,t){for(var r=[],o=[],a=!1,i=void 0,u=null,s="[",f=0;f<t.items.length;++f){var c=t.items[f];if("string"==typeof c)if(":"===c||!a&&void 0===i||(a&&void 0===i&&(i=null),o.push(new n.default(i)),a=!1,i=void 0,u=null),c===s)s=null;else if(s||"?"!==c){if("["!==s&&":"===c&&void 0===i){if(","===s){if((i=o.pop())instanceof n.default){e.errors.push(new m.YAMLSemanticError(c,"Chaining flow sequence pairs is invalid (e.g. [ a : b : c ])"))}a||(0,$.checkKeyLength)(e.errors,t,f,i,u)}else i=null;u=null,a=!1,s=null}else if("["===s||"]"!==c||f<t.items.length-1){var l="Flow sequence contains an unexpected ".concat(c);e.errors.push(new m.YAMLSyntaxError(t,l))}}else a=!0;else if(c.type===v.Type.COMMENT)r.push({comment:c.comment,before:o.length});else{if(s){var p="Expected a ".concat(s," here in flow sequence");e.errors.push(new m.YAMLSemanticError(c,p))}var h=e.resolveNode(c);void 0===i?o.push(h):(o.push(new n.default(i,h)),i=void 0),u=c.range.start,s=","}}"]"!==t.items[t.items.length-1]&&e.errors.push(new m.YAMLSemanticError(t,"Expected flow sequence to end with ]"));void 0!==i&&o.push(new n.default(i));return{comments:r,items:o}}(e,t):function(e,t){for(var n=[],r=[],o=0;o<t.items.length;++o){var a=t.items[o];switch(a.type){case v.Type.COMMENT:n.push({comment:a.comment,before:r.length});break;case v.Type.SEQ_ITEM:if(a.error&&e.errors.push(a.error),r.push(e.resolveNode(a.node)),a.hasProps){e.errors.push(new m.YAMLSemanticError(a,"Sequence items cannot have tags or anchors before the - indicator"))}break;default:a.error&&e.errors.push(a.error),e.errors.push(new m.YAMLSyntaxError(a,"Unexpected ".concat(a.type," node in sequence")))}}return{comments:n,items:r}}(e,t),i=a.comments,u=a.items,s=new r.default;return s.items=u,(0,$.resolveComments)(s,i),t.resolved=s,s};var n=o(I),r=o(D);function o(e){return e&&e.__esModule?e:{default:e}}});a(J);var G=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.seq=t.map=void 0;var n=i(Y),r=i(D),o=i(q),a=i(J);function i(e){return e&&e.__esModule?e:{default:e}}var u={class:n.default,default:!0,tag:"tag:yaml.org,2002:map",resolve:o.default,stringify:function(e,t,n){return e.toString(t,n)}};t.map=u;var s={class:r.default,default:!0,tag:"tag:yaml.org,2002:seq",resolve:a.default,stringify:function(e,t,n){return e.toString(t,n)}};t.seq=s;var f=[u,s,V.str];t.default=f});a(G);var z=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.nullOptions=t.stringifyNumber=void 0;var n,r=(n=G)&&n.__esModule?n:{default:n};var o=function(e){var t=e.value;return isFinite(t)?JSON.stringify(t):isNaN(t)?".nan":t<0?"-.inf":".inf"};t.stringifyNumber=o;var a={nullStr:"null"};t.nullOptions=a;var i=r.default.concat([{class:null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:a,stringify:function(){return a.nullStr}},{class:Boolean,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:function(e){return"t"===e[0]||"T"===e[0]}},{class:Number,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:function(e,t){return parseInt(t,8)},stringify:function(e){return"0o"+e.value.toString(8)}},{class:Number,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:function(e){return parseInt(e,10)},stringify:o},{class:Number,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:function(e,t){return parseInt(t,16)},stringify:function(e){return"0x"+e.value.toString(16)}},{class:Number,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(e,t){return t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:o},{class:Number,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/,resolve:function(e){return parseFloat(e)},stringify:o}]);t.default=i});a(z);var H=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=[G.map,G.seq,{class:String,default:!0,tag:"tag:yaml.org,2002:str",resolve:V.resolve},{class:null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:function(){return null}},{class:Boolean,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$/,resolve:function(){return!0}},{class:Boolean,default:!0,tag:"tag:yaml.org,2002:bool",test:/^false$/,resolve:function(){return!1}},{class:Number,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:function(e){return parseInt(e,10)}},{class:Number,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:function(e){return parseFloat(e)}}];n.scalarFallback=function(e){throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var r=n;t.default=r});a(H);var Z="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},X=[],ee=[],te="undefined"!=typeof Uint8Array?Uint8Array:Array,ne=!1;function re(){ne=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)X[t]=e[t],ee[e.charCodeAt(t)]=t;ee["-".charCodeAt(0)]=62,ee["_".charCodeAt(0)]=63}function oe(e,t,n){for(var r,o,a=[],i=t;i<n;i+=3)r=(e[i]<<16)+(e[i+1]<<8)+e[i+2],a.push(X[(o=r)>>18&63]+X[o>>12&63]+X[o>>6&63]+X[63&o]);return a.join("")}function ae(e){var t;ne||re();for(var n=e.length,r=n%3,o="",a=[],i=0,u=n-r;i<u;i+=16383)a.push(oe(e,i,i+16383>u?u:i+16383));return 1===r?(t=e[n-1],o+=X[t>>2],o+=X[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=X[t>>10],o+=X[t>>4&63],o+=X[t<<2&63],o+="="),a.push(o),a.join("")}function ie(e,t,n,r,o){var a,i,u=8*o-r-1,s=(1<<u)-1,f=s>>1,c=-7,l=n?o-1:0,p=n?-1:1,h=e[t+l];for(l+=p,a=h&(1<<-c)-1,h>>=-c,c+=u;c>0;a=256*a+e[t+l],l+=p,c-=8);for(i=a&(1<<-c)-1,a>>=-c,c+=r;c>0;i=256*i+e[t+l],l+=p,c-=8);if(0===a)a=1-f;else{if(a===s)return i?NaN:1/0*(h?-1:1);i+=Math.pow(2,r),a-=f}return(h?-1:1)*i*Math.pow(2,a-r)}function ue(e,t,n,r,o,a){var i,u,s,f=8*a-o-1,c=(1<<f)-1,l=c>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,d=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,i=c):(i=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-i))<1&&(i--,s*=2),(t+=i+l>=1?p/s:p*Math.pow(2,1-l))*s>=2&&(i++,s/=2),i+l>=c?(u=0,i=c):i+l>=1?(u=(t*s-1)*Math.pow(2,o),i+=l):(u=t*Math.pow(2,l-1)*Math.pow(2,o),i=0));o>=8;e[n+h]=255&u,h+=d,u/=256,o-=8);for(i=i<<o|u,f+=o;f>0;e[n+h]=255&i,h+=d,i/=256,f-=8);e[n+h-d]|=128*y}var se={}.toString,fe=Array.isArray||function(e){return"[object Array]"==se.call(e)};function ce(){return pe.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function le(e,t){if(ce()<t)throw new RangeError("Invalid typed array length");return pe.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=pe.prototype:(null===e&&(e=new pe(t)),e.length=t),e}function pe(e,t,n){if(!(pe.TYPED_ARRAY_SUPPORT||this instanceof pe))return new pe(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return ye(this,e)}return he(this,e,t,n)}function he(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);pe.TYPED_ARRAY_SUPPORT?(e=t).__proto__=pe.prototype:e=ve(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!pe.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|be(t,n),o=(e=le(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(ge(t)){var n=0|me(t.length);return 0===(e=le(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?le(e,0):ve(e,t);if("Buffer"===t.type&&fe(t.data))return ve(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function de(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function ye(e,t){if(de(t),e=le(e,t<0?0:0|me(t)),!pe.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function ve(e,t){var n=t.length<0?0:0|me(t.length);e=le(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function me(e){if(e>=ce())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ce().toString(16)+" bytes");return 0|e}function ge(e){return!(null==e||!e._isBuffer)}function be(e,t){if(ge(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 Ve(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $e(e).length;default:if(r)return Ve(e).length;t=(""+t).toLowerCase(),r=!0}}function Oe(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function we(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=pe.from(t,r)),ge(t))return 0===t.length?-1:_e(e,t,n,r,o);if("number"==typeof t)return t&=255,pe.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_e(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function _e(e,t,n,r,o){var a,i=1,u=e.length,s=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;i=2,u/=2,s/=2,n/=2}function f(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){var c=-1;for(a=n;a<u;a++)if(f(e,a)===f(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===s)return c*i}else-1!==c&&(a-=a-c),c=-1}else for(n+s>u&&(n=u-s),a=n;a>=0;a--){for(var l=!0,p=0;p<s;p++)if(f(e,a+p)!==f(t,p)){l=!1;break}if(l)return a}return-1}function Ee(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var i=0;i<r;++i){var u=parseInt(t.substr(2*i,2),16);if(isNaN(u))return i;e[n+i]=u}return i}function Se(e,t,n,r){return qe(Ve(t,e.length-n),e,n,r)}function Pe(e,t,n,r){return qe(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Me(e,t,n,r){return Pe(e,t,n,r)}function Te(e,t,n,r){return qe($e(t),e,n,r)}function Ae(e,t,n,r){return qe(function(e,t){for(var n,r,o,a=[],i=0;i<e.length&&!((t-=2)<0);++i)n=e.charCodeAt(i),r=n>>8,o=n%256,a.push(o),a.push(r);return a}(t,e.length-n),e,n,r)}function ke(e,t,n){return 0===t&&n===e.length?ae(e):ae(e.slice(t,n))}function Le(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var a,i,u,s,f=e[o],c=null,l=f>239?4:f>223?3:f>191?2:1;if(o+l<=n)switch(l){case 1:f<128&&(c=f);break;case 2:128==(192&(a=e[o+1]))&&(s=(31&f)<<6|63&a)>127&&(c=s);break;case 3:a=e[o+1],i=e[o+2],128==(192&a)&&128==(192&i)&&(s=(15&f)<<12|(63&a)<<6|63&i)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:a=e[o+1],i=e[o+2],u=e[o+3],128==(192&a)&&128==(192&i)&&128==(192&u)&&(s=(15&f)<<18|(63&a)<<12|(63&i)<<6|63&u)>65535&&s<1114112&&(c=s)}null===c?(c=65533,l=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=l}return function(e){var t=e.length;if(t<=je)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=je));return n}(r)}pe.TYPED_ARRAY_SUPPORT=void 0===Z.TYPED_ARRAY_SUPPORT||Z.TYPED_ARRAY_SUPPORT,pe.poolSize=8192,pe._augment=function(e){return e.__proto__=pe.prototype,e},pe.from=function(e,t,n){return he(null,e,t,n)},pe.TYPED_ARRAY_SUPPORT&&(pe.prototype.__proto__=Uint8Array.prototype,pe.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&pe[Symbol.species]),pe.alloc=function(e,t,n){return function(e,t,n,r){return de(t),t<=0?le(e,t):void 0!==n?"string"==typeof r?le(e,t).fill(n,r):le(e,t).fill(n):le(e,t)}(null,e,t,n)},pe.allocUnsafe=function(e){return ye(null,e)},pe.allocUnsafeSlow=function(e){return ye(null,e)},pe.isBuffer=function(e){return null!=e&&(!!e._isBuffer||Je(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Je(e.slice(0,0))}(e))},pe.compare=function(e,t){if(!ge(e)||!ge(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,a=Math.min(n,r);o<a;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},pe.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},pe.concat=function(e,t){if(!fe(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return pe.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=pe.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!ge(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},pe.byteLength=be,pe.prototype._isBuffer=!0,pe.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Oe(this,t,t+1);return this},pe.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Oe(this,t,t+3),Oe(this,t+1,t+2);return this},pe.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Oe(this,t,t+7),Oe(this,t+1,t+6),Oe(this,t+2,t+5),Oe(this,t+3,t+4);return this},pe.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Le(this,0,e):function(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 Ce(this,t,n);case"utf8":case"utf-8":return Le(this,t,n);case"ascii":return Ne(this,t,n);case"latin1":case"binary":return Re(this,t,n);case"base64":return ke(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xe(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},pe.prototype.equals=function(e){if(!ge(e))throw new TypeError("Argument must be a Buffer");return this===e||0===pe.compare(this,e)},pe.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},pe.prototype.compare=function(e,t,n,r,o){if(!ge(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(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var a=o-r,i=n-t,u=Math.min(a,i),s=this.slice(r,o),f=e.slice(t,n),c=0;c<u;++c)if(s[c]!==f[c]){a=s[c],i=f[c];break}return a<i?-1:i<a?1:0},pe.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},pe.prototype.indexOf=function(e,t,n){return we(this,e,t,n,!0)},pe.prototype.lastIndexOf=function(e,t,n){return we(this,e,t,n,!1)},pe.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(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 a=!1;;)switch(r){case"hex":return Ee(this,e,t,n);case"utf8":case"utf-8":return Se(this,e,t,n);case"ascii":return Pe(this,e,t,n);case"latin1":case"binary":return Me(this,e,t,n);case"base64":return Te(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ae(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},pe.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var je=4096;function Ne(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function Re(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function Ce(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",a=t;a<n;++a)o+=Ke(e[a]);return o}function xe(e,t,n){for(var r=e.slice(t,n),o="",a=0;a<r.length;a+=2)o+=String.fromCharCode(r[a]+256*r[a+1]);return o}function Ie(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function De(e,t,n,r,o,a){if(!ge(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function Be(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,a=Math.min(e.length-n,2);o<a;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function Ye(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,a=Math.min(e.length-n,4);o<a;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function Ue(e,t,n,r,o,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Fe(e,t,n,r,o){return o||Ue(e,0,n,4),ue(e,t,n,r,23,4),n+4}function Qe(e,t,n,r,o){return o||Ue(e,0,n,8),ue(e,t,n,r,52,8),n+8}pe.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),pe.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=pe.prototype;else{var o=t-e;n=new pe(o,void 0);for(var a=0;a<o;++a)n[a]=this[a+e]}return n},pe.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||Ie(e,t,this.length);for(var r=this[e],o=1,a=0;++a<t&&(o*=256);)r+=this[e+a]*o;return r},pe.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||Ie(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},pe.prototype.readUInt8=function(e,t){return t||Ie(e,1,this.length),this[e]},pe.prototype.readUInt16LE=function(e,t){return t||Ie(e,2,this.length),this[e]|this[e+1]<<8},pe.prototype.readUInt16BE=function(e,t){return t||Ie(e,2,this.length),this[e]<<8|this[e+1]},pe.prototype.readUInt32LE=function(e,t){return t||Ie(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},pe.prototype.readUInt32BE=function(e,t){return t||Ie(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},pe.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Ie(e,t,this.length);for(var r=this[e],o=1,a=0;++a<t&&(o*=256);)r+=this[e+a]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},pe.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Ie(e,t,this.length);for(var r=t,o=1,a=this[e+--r];r>0&&(o*=256);)a+=this[e+--r]*o;return a>=(o*=128)&&(a-=Math.pow(2,8*t)),a},pe.prototype.readInt8=function(e,t){return t||Ie(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},pe.prototype.readInt16LE=function(e,t){t||Ie(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},pe.prototype.readInt16BE=function(e,t){t||Ie(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},pe.prototype.readInt32LE=function(e,t){return t||Ie(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},pe.prototype.readInt32BE=function(e,t){return t||Ie(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},pe.prototype.readFloatLE=function(e,t){return t||Ie(e,4,this.length),ie(this,e,!0,23,4)},pe.prototype.readFloatBE=function(e,t){return t||Ie(e,4,this.length),ie(this,e,!1,23,4)},pe.prototype.readDoubleLE=function(e,t){return t||Ie(e,8,this.length),ie(this,e,!0,52,8)},pe.prototype.readDoubleBE=function(e,t){return t||Ie(e,8,this.length),ie(this,e,!1,52,8)},pe.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||De(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,a=0;for(this[t]=255&e;++a<n&&(o*=256);)this[t+a]=e/o&255;return t+n},pe.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||De(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},pe.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||De(this,e,t,1,255,0),pe.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},pe.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||De(this,e,t,2,65535,0),pe.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Be(this,e,t,!0),t+2},pe.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||De(this,e,t,2,65535,0),pe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Be(this,e,t,!1),t+2},pe.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||De(this,e,t,4,4294967295,0),pe.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Ye(this,e,t,!0),t+4},pe.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||De(this,e,t,4,4294967295,0),pe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ye(this,e,t,!1),t+4},pe.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);De(this,e,t,n,o-1,-o)}var a=0,i=1,u=0;for(this[t]=255&e;++a<n&&(i*=256);)e<0&&0===u&&0!==this[t+a-1]&&(u=1),this[t+a]=(e/i>>0)-u&255;return t+n},pe.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);De(this,e,t,n,o-1,-o)}var a=n-1,i=1,u=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===u&&0!==this[t+a+1]&&(u=1),this[t+a]=(e/i>>0)-u&255;return t+n},pe.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||De(this,e,t,1,127,-128),pe.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},pe.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||De(this,e,t,2,32767,-32768),pe.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Be(this,e,t,!0),t+2},pe.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||De(this,e,t,2,32767,-32768),pe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Be(this,e,t,!1),t+2},pe.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||De(this,e,t,4,2147483647,-2147483648),pe.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Ye(this,e,t,!0),t+4},pe.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||De(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),pe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ye(this,e,t,!1),t+4},pe.prototype.writeFloatLE=function(e,t,n){return Fe(this,e,t,!0,n)},pe.prototype.writeFloatBE=function(e,t,n){return Fe(this,e,t,!1,n)},pe.prototype.writeDoubleLE=function(e,t,n){return Qe(this,e,t,!0,n)},pe.prototype.writeDoubleBE=function(e,t,n){return Qe(this,e,t,!1,n)},pe.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<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=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<r-n&&(r=e.length-t+n);var o,a=r-n;if(this===e&&n<t&&t<r)for(o=a-1;o>=0;--o)e[o+t]=this[o+n];else if(a<1e3||!pe.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},pe.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!pe.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var i=ge(e)?e:Ve(new pe(e,r).toString()),u=i.length;for(a=0;a<n-t;++a)this[a+t]=i[a%u]}return this};var We=/[^+\/0-9A-Za-z-_]/g;function Ke(e){return e<16?"0"+e.toString(16):e.toString(16)}function Ve(e,t){var n;t=t||1/0;for(var r=e.length,o=null,a=[],i=0;i<r;++i){if((n=e.charCodeAt(i))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&a.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.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;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function $e(e){return function(e){var t,n,r,o,a,i;ne||re();var u=e.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a="="===e[u-2]?2:"="===e[u-1]?1:0,i=new te(3*u/4-a),r=a>0?u-4:u;var s=0;for(t=0,n=0;t<r;t+=4,n+=3)o=ee[e.charCodeAt(t)]<<18|ee[e.charCodeAt(t+1)]<<12|ee[e.charCodeAt(t+2)]<<6|ee[e.charCodeAt(t+3)],i[s++]=o>>16&255,i[s++]=o>>8&255,i[s++]=255&o;return 2===a?(o=ee[e.charCodeAt(t)]<<2|ee[e.charCodeAt(t+1)]>>4,i[s++]=255&o):1===a&&(o=ee[e.charCodeAt(t)]<<10|ee[e.charCodeAt(t+1)]<<4|ee[e.charCodeAt(t+2)]>>2,i[s++]=o>>8&255,i[s++]=255&o),i}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(We,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function qe(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Je(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Ge=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.binary=void 0;var n={class:Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:function(e,t){var n=(0,V.resolve)(e,t);return pe.from(n,"base64")},options:{defaultType:v.Type.BLOCK_LITERAL,lineWidth:76},stringify:function(e,t,r){var o,a=e.comment,i=e.type,u=e.value;if(o=u instanceof pe?u.toString("base64"):pe.from(u.buffer).toString("base64"),i||(i=n.options.defaultType),i===v.Type.QUOTE_DOUBLE)u=o;else{for(var s=n.options.lineWidth,f=Math.ceil(o.length/s),c=new Array(f),l=0,p=0;l<f;++l,p+=s)c[l]=o.substr(p,s);u=c.join(i===v.Type.BLOCK_LITERAL?"\n":" ")}return(0,V.stringify)({comment:a,type:i,value:u},t,r)}};t.binary=n;var r=[n];t.default=r});a(Ge);var ze=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.timestamp=t.floatTime=t.intTime=void 0;var n=function(e,t){var n=t.split(":").reduce(function(e,t){return 60*e+Number(t)},0);return"-"===e?-n:n},r=function(e){var t=e.value;if(isNaN(t)||!isFinite(t))return(0,z.stringifyNumber)(t);var n="";t<0&&(n="-",t=Math.abs(t));var r=[t%60];return t<60?r.unshift(0):(t=Math.round((t-r[0])/60),r.unshift(t%60),t>=60&&(t=Math.round((t-r[0])/60),r.unshift(t))),n+r.map(function(e){return e<10?"0"+String(e):String(e)}).join(":").replace(/000000\d*$/,"")},o={class:Number,default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:function(e,t,r){return n(t,r.replace(/_/g,""))},stringify:r};t.intTime=o;var a={class:Number,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:function(e,t,r){return n(t,r.replace(/_/g,""))},stringify:r};t.floatTime=a;var i={class: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:function(e,t,r,o,a,i,u,s,f){s&&(s=(s+"00").substr(1,3));var c=Date.UTC(t,r-1,o,a||0,i||0,u||0,s||0);if(f&&"Z"!==f){var l=n(f[0],f.slice(1));Math.abs(l)<30&&(l*=60),c-=6e4*l}return new Date(c)},stringify:function(e){return e.value.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};t.timestamp=i;var u=[o,a,i];t.default=u});a(ze);var He=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.boolOptions=t.nullOptions=void 0;var n=a(Ge),r=a(ze),o=a(G);function a(e){return e&&e.__esModule?e:{default:e}}var i={nullStr:"null"};t.nullOptions=i;var u={trueStr:"true",falseStr:"false"};t.boolOptions=u;var s=o.default.concat([{class:null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:i,stringify:function(){return i.nullStr}},{class:Boolean,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:function(){return!0},options:u,stringify:function(e){return e.value?u.trueStr:u.falseStr}},{class:Boolean,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:function(){return!1},options:u,stringify:function(e){return e.value?u.trueStr:u.falseStr}},{class:Number,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^0b([0-1_]+)$/,resolve:function(e,t){return parseInt(t.replace(/_/g,""),2)},stringify:function(e){return"0b"+e.value.toString(2)}},{class:Number,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0([0-7_]+)$/,resolve:function(e,t){return parseInt(t.replace(/_/g,""),8)},stringify:function(e){var t=e.value;return(t<0?"-0":"0")+t.toString(8)}},{class:Number,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:function(e){return parseInt(e.replace(/_/g,""),10)},stringify:z.stringifyNumber},{class:Number,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F_]+)$/,resolve:function(e,t){return parseInt(t.replace(/_/g,""),16)},stringify:function(e){var t=e.value;return(t<0?"-0x":"0x")+t.toString(16)}},{class:Number,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(e,t){return t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:z.stringifyNumber},{class:Number,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?([0-9][0-9_]*)?\.[0-9_]*([eE][-+]?[0-9]+)?$/,resolve:function(e){return parseFloat(e.replace(/_/g,""))},stringify:z.stringifyNumber}],r.default,n.default);t.default=s});a(He);var Ze=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DefaultTags=t.defaultPrefix=t.availableSchema=void 0;var n=h(U),r=h(F),o=h(C),a=h(z),i=h(G),s=h(H),f=h(R),c=h(I),l=h(x),p=h(He);function h(e){return e&&e.__esModule?e:{default:e}}function d(e){return(d="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t,n){return t&&y(e.prototype,t),n&&y(e,n),e}var b={core:a.default,failsafe:i.default,json:s.default,"yaml-1.1":p.default};t.availableSchema=b;t.defaultPrefix="tag:yaml.org,2002:";var O={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};t.DefaultTags=O;var w=function(){function e(t){var n=t.merge,r=t.schema,o=t.tags;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.merge=!!n,this.name=r,this.schema=b[r],!this.schema){var a=Object.keys(b).map(function(e){return JSON.stringify(e)}).join(", ");throw new Error("Unknown schema; use ".concat(a,", or { tag, test, resolve }[]"))}Array.isArray(o)?this.schema=this.schema.concat(o):"function"==typeof o&&(this.schema=o(this.schema.slice()))}return g(e,null,[{key:"defaultStringifier",value:function(e){return JSON.stringify(e)}}]),g(e,[{key:"resolveScalar",value:function(e,t){t||(t=this.schema);for(var n=0;n<t.length;++n){var r=t[n],o=r.format,a=r.test,i=r.resolve;if(a){var u=e.match(a);if(u){var s=new l.default(i.apply(null,u));return o&&(s.format=o),s}}}return this.schema.scalarFallback&&(e=this.schema.scalarFallback(e)),new l.default(e)}},{key:"resolveNode",value:function(e,t,n){var r=this.schema.filter(function(e){return e.tag===n}),a=r.find(function(e){return!e.test});t.error&&e.errors.push(t.error);try{if(a){var i=a.resolve(e,t);i instanceof o.default||(i=new l.default(i)),t.resolved=i}else{var u=(0,V.resolve)(e,t);"string"==typeof u&&r.length>0&&(t.resolved=this.resolveScalar(u,r))}}catch(n){n.source||(n.source=t),e.errors.push(n),t.resolved=null}return t.resolved?(n&&(t.resolved.tag=n),t.resolved):null}},{key:"resolveNodeWithFallback",value:function(e,t,n){var r=this.resolveNode(e,t,n);if(t.hasOwnProperty("resolved"))return r;var o,a=(o=t.type)===v.Type.FLOW_MAP||o===v.Type.MAP?O.MAP:function(e){var t=e.type;return t===v.Type.FLOW_SEQ||t===v.Type.SEQ}(t)?O.SEQ:O.STR;if(a){e.warnings.push(new m.YAMLWarning(t,"The tag ".concat(n," is unavailable, falling back to ").concat(a)));var i=this.resolveNode(e,t,a);return i.tag=n,i}return e.errors.push(new m.YAMLReferenceError(t,"The tag ".concat(n," is unavailable"))),null}},{key:"getTagObject",value:function(e){if(e instanceof r.default)return r.default;if(e.tag){var t=this.schema.find(function(t){var n=t.format;return t.tag===e.tag&&n===e.format});if(t||(t=this.schema.find(function(t){return t.tag===e.tag})),t)return t}if(null===e.value){var n=this.schema.find(function(e){return null===e.class&&!e.format});if(!n)throw new Error("Tag not resolved for null value");return n}var o=e;if(e.hasOwnProperty("value"))switch(d(e.value)){case"boolean":o=new Boolean;break;case"number":o=new Number;break;case"string":o=new String;break;default:o=e.value}var a=this.schema.find(function(t){return t.class&&o instanceof t.class&&t.format===e.format});if(a||(a=this.schema.find(function(e){return e.class&&o instanceof e.class&&!e.format})),!a){var i=o&&o.constructor?o.constructor.name:d(o);throw new Error("Tag not resolved for ".concat(i," value"))}return a}},{key:"stringifyProps",value:function(e,t,n){var r=n.anchors,o=n.doc,a=[],i=o.anchors.getName(e);return i&&(r[i]=e,a.push("&".concat(i))),e.tag&&e.tag!==t.tag?a.push(o.stringifyTag(e.tag)):t.default||a.push(o.stringifyTag(t.tag)),a.join(" ")}},{key:"stringify",value:function(t,r,a){if(t instanceof f.default||(t=(0,n.default)(t,!0)),r.tags=this,t instanceof c.default)return t.toString(r,a);var i=this.getTagObject(t),u=this.stringifyProps(t,i,r),s=i.stringify||e.defaultStringifier,l=s(t,r,a);return u?t instanceof o.default&&"{"!==l[0]&&"["!==l[0]?"".concat(u,"\n").concat(r.indent).concat(l):"".concat(u," ").concat(l):l}}]),e}();t.default=w});a(Ze);var Xe=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(N),r=c(Q),o=c(W),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(Ze),i=c(F),u=c(C),s=c(j),f=c(x);function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var h,d,y,g=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.anchors=new r.default,this.commentBefore=null,this.comment=null,this.contents=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}var t,c,h;return t=e,(c=[{key:"getDefaults",value:function(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}},{key:"setSchema",value:function(){this.schema||(this.schema=new a.default(Object.assign({},this.getDefaults(),this.options)))}},{key:"parse",value:function(e){var t=this,n=e.directives,r=void 0===n?[]:n,o=e.contents,a=void 0===o?[]:o,i=e.error,s=e.valueRange;i&&(i.source||(i.source=this),this.errors.push(i));var f=[];r.forEach(function(e){var n=e.comment,r=e.name;switch(r){case"TAG":t.resolveTagDirective(e);break;case"YAML":case"YAML:1.0":t.resolveYamlDirective(e);break;default:if(r){var o="YAML only supports %TAG and %YAML directives, and not %".concat(r);t.warnings.push(new m.YAMLWarning(e,o))}}n&&f.push(n)}),this.range=s?[s.start,s.end]:null,this.setSchema(),this.anchors._cstAliases=[],this.commentBefore=f.join("\n")||null;var c={before:[],after:[]},l=[];switch(a.forEach(function(e){if(e.valueRange&&!e.valueRange.isEmpty){if(1===l.length){t.errors.push(new m.YAMLSyntaxError(e,"Document is not valid YAML (bad indentation?)"))}l.push(t.resolveNode(e))}else if(e.comment){(0===l.length?c.before:c.after).push(e.comment)}}),l.length){case 0:this.contents=null,c.after=c.before;break;case 1:if(this.contents=l[0],this.contents){var p=c.before.join("\n")||null;if(p){var h=this.contents instanceof u.default&&this.contents.items[0]?this.contents.items[0]:this.contents;h.commentBefore=h.commentBefore?"".concat(p,"\n").concat(h.commentBefore):p}}else c.after=c.before.concat(c.after);break;default:this.contents=l,this.contents[0]?this.contents[0].commentBefore=c.before.join("\n")||null:c.after=c.before.concat(c.after)}return this.comment=c.after.join("\n")||null,this.anchors.resolveNodes(),this}},{key:"resolveTagDirective",value:function(e){var t=l(e.parameters,2),n=t[0],r=t[1];if(n&&r)if(this.tagPrefixes.every(function(e){return e.handle!==n}))this.tagPrefixes.push({handle:n,prefix:r});else{this.errors.push(new m.YAMLSemanticError(e,"The %TAG directive must only be given at most once per handle in the same document."))}else{this.errors.push(new m.YAMLSemanticError(e,"Insufficient parameters given for %TAG directive"))}}},{key:"resolveYamlDirective",value:function(t){var n=l(t.parameters,1)[0];if("YAML:1.0"===t.name&&(n="1.0"),this.version){this.errors.push(new m.YAMLSemanticError(t,"The %YAML directive must only be given at most once per document."))}if(n){if(!e.defaults[n]){var r=this.version||this.options.version,o="Document will be parsed as YAML ".concat(r," rather than YAML ").concat(n);this.warnings.push(new m.YAMLWarning(t,o))}this.version=n}else{this.errors.push(new m.YAMLSemanticError(t,"Insufficient parameters given for %YAML directive"))}}},{key:"resolveTagName",value:function(e){var t=e.tag,n=e.type,r=!1;if(t){var o=t.handle,i=t.suffix,u=t.verbatim;if(u){if("!"!==u&&"!!"!==u)return u;var s="Verbatim tags aren't resolved, so ".concat(u," is invalid.");this.errors.push(new m.YAMLSemanticError(e,s))}else if("!"!==o||i){var f=this.tagPrefixes.find(function(e){return e.handle===o});if(!f){var c=this.getDefaults().tagPrefixes;c&&(f=c.find(function(e){return e.handle===o}))}if(f){if(i){if("!"===o&&"1.0"===(this.version||this.options.version)){if("^"===i[0])return i;if(/[:/]/.test(i)){var l=i.match(/^([a-z0-9-]+)\/(.*)/i);return l?"tag:".concat(l[1],".yaml.org,2002:").concat(l[2]):"tag:".concat(i)}}return f.prefix+decodeURIComponent(i)}this.errors.push(new m.YAMLSemanticError(e,"The ".concat(o," tag has no suffix.")))}else{var p="The ".concat(o," tag handle is non-default and was not declared.");this.errors.push(new m.YAMLSemanticError(e,p))}}else r=!0}switch(n){case v.Type.BLOCK_FOLDED:case v.Type.BLOCK_LITERAL:case v.Type.QUOTE_DOUBLE:case v.Type.QUOTE_SINGLE:return a.DefaultTags.STR;case v.Type.FLOW_MAP:case v.Type.MAP:return a.DefaultTags.MAP;case v.Type.FLOW_SEQ:case v.Type.SEQ:return a.DefaultTags.SEQ;case v.Type.PLAIN:return r?a.DefaultTags.STR:null;default:return null}}},{key:"resolveNode",value:function(e){if(!e)return null;var t,n=this.anchors,r=this.errors,o=this.schema,a=!1,u=!1,s={before:[],after:[]};if((function(e){return e&&-1!==[v.Type.MAP_KEY,v.Type.MAP_VALUE,v.Type.SEQ_ITEM].indexOf(e.type)}(e.context.parent)?e.context.parent.props.concat(e.props):e.props).forEach(function(t,n){var o=t.start,i=t.end;switch(e.context.src[o]){case v.Char.COMMENT:if(!e.commentHasRequiredWhitespace(o)){r.push(new m.YAMLSemanticError(e,"Comments must be separated from other tokens by white space characters"))}var f=e.context.src.slice(o+1,i),c=e.header,l=e.valueRange;l&&(o>l.start||c&&o>c.start)?s.after.push(f):s.before.push(f);break;case v.Char.ANCHOR:if(a){r.push(new m.YAMLSemanticError(e,"A node can have at most one anchor"))}a=!0;break;case v.Char.TAG:if(u){r.push(new m.YAMLSemanticError(e,"A node can have at most one tag"))}u=!0}}),a){var f=e.anchor,c=n.getNode(f);c&&(n.map[n.newName(f)]=c),n.map[f]=e}if(e.type===v.Type.ALIAS){if(a||u){r.push(new m.YAMLSemanticError(e,"An alias node must not specify any properties"))}var l=e.rawValue,p=n.getNode(l);if(!p){var h="Aliased anchor not found: ".concat(l);return r.push(new m.YAMLReferenceError(e,h)),null}if(t=new i.default(p),n._cstAliases.push(t),!p.resolved){this.warnings.push(new m.YAMLWarning(e,"Alias node contains a circular reference, which cannot be resolved as JSON"))}}else{var d=this.resolveTagName(e);if(d)t=o.resolveNodeWithFallback(this,e,d);else{if(e.type!==v.Type.PLAIN){var y="Failed to resolve ".concat(e.type," node here");return r.push(new m.YAMLSyntaxError(e,y)),null}try{t=o.resolveScalar(e.strValue||"")}catch(t){return t.source||(t.source=e),r.push(t),null}}}if(t){t.range=[e.range.start,e.range.end],this.options.keepCstNodes&&(t.cstNode=e),this.options.keepNodeTypes&&(t.type=e.type);var g=s.before.join("\n");g&&(t.commentBefore=t.commentBefore?"".concat(t.commentBefore,"\n").concat(g):g);var b=s.after.join("\n");b&&(t.comment=t.comment?"".concat(t.comment,"\n").concat(b):b)}return e.resolved=t}},{key:"listNonDefaultTags",value:function(){return(0,o.default)(this.contents).filter(function(e){return 0!==e.indexOf(a.defaultPrefix)})}},{key:"setTagPrefix",value:function(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){var n=this.tagPrefixes.find(function(t){return t.handle===e});n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter(function(t){return t.handle!==e})}},{key:"stringifyTag",value:function(e){if("1.0"===(this.version||this.options.version)){var t=e.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(t)return"!"+t[1];var n=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?"!".concat(n[1],"/").concat(n[2]):"!".concat(e.replace(/^tag:/,""))}var r=this.tagPrefixes.find(function(t){return 0===e.indexOf(t.prefix)});if(!r){var o=this.getDefaults().tagPrefixes;r=o&&o.find(function(t){return 0===e.indexOf(t.prefix)})}if(!r)return"!"===e[0]?e:"!<".concat(e,">");var a=e.substr(r.prefix.length).replace(/[!,\[]{}]/g,function(e){return{"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e]});return r.handle+a}},{key:"toJSON",value:function(e){var t=this.warnings.find(function(e){return/circular reference/.test(e.message)});if(t)throw new m.YAMLSemanticError(t.source,t.message);var n=this.options.keepBlobsInJSON&&("string"!=typeof e||!(this.contents instanceof f.default));return(0,s.default)(this.contents,e,n)}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");this.setSchema();var e=[];this.commentBefore&&e.push(this.commentBefore.replace(/^/gm,"#"));var t=!1;if(this.version){var r="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?r="%YAML:1.0":"1.1"===this.version&&(r="%YAML 1.1")),e.push(r),t=!0}var o=this.listNonDefaultTags();this.tagPrefixes.forEach(function(n){var r=n.handle,a=n.prefix;o.some(function(e){return 0===e.indexOf(a)})&&(e.push("%TAG ".concat(r," ").concat(a)),t=!0)}),t&&e.push("---");var a={anchors:{},doc:this,indent:""};if(this.contents){this.contents.commentBefore&&e.push(this.contents.commentBefore.replace(/^/gm,"#")),a.forceBlockIndent=!!this.comment;var i=this.contents.comment,u=this.schema.stringify(this.contents,a,function(){i=null});e.push((0,n.default)(u,"",i))}else void 0!==this.contents&&e.push(this.schema.stringify(this.contents,a));return this.comment&&e.push(this.comment.replace(/^/gm,"#")),e.join("\n")+"\n"}}])&&p(t.prototype,c),h&&p(t,h),e}();t.default=g,h=g,d="defaults",y={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:a.defaultPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:a.defaultPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:a.defaultPrefix}]}},d in h?Object.defineProperty(h,d,{value:y,enumerable:!0,configurable:!0,writable:!0}):h[d]=y});a(Xe);var et=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(L),r=a(U),o=a(Xe);function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l={keepNodeTypes:!0,keepBlobsInJSON:!0,tags:null,version:"1.2"},p=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,f(t).call(this,Object.assign({},l,e)))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,o.default),t}();function h(e,t){var r=(0,n.default)(e),o=new p(t).parse(r[0]);if(r.length>1){o.errors.unshift(new m.YAMLSemanticError(r[1],"Source contains multiple documents; please use YAML.parseAllDocuments()"))}return o}var d={createNode:r.default,defaultOptions:l,Document:p,parse:function(e,t){var n=h(e,t);if(n.warnings.forEach(function(e){return console.warn(e)}),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){return(0,n.default)(e).map(function(e){return new p(t).parse(e)})},parseCST:n.default,parseDocument:h,stringify:function(e,t){var n=new p(t);return n.contents=e,String(n)}};t.default=d});a(et);var tt=L,nt=i(function(e,t){function n(e,t){e.position={start:e.position.start,end:t}}function r(){return{type:"null",position:{start:{line:-1,column:-1,offset:-1},end:{line:-1,column:-1,offset:-1}}}}t.__esModule=!0,t.overwriteStart=function(e,t){e.position={start:t,end:e.position.end}},t.overwriteEnd=n,t.getLast=function(e){return e[e.length-1]},t.defineCommentParent=function(e,t){Object.defineProperty(e,"parent",{value:t,enumerable:!1})},t.createError=function(e,t){var n=new SyntaxError(e.message);return n.name="YAMLSyntaxError",n.source=t.text,n.position=t.transformRange(e.source.range||e.source.valueRange),n},t.createContentNode=function(){return{anchor:{type:"null",position:{start:{line:-1,column:-1,offset:-1},end:{line:-1,column:-1,offset:-1}}},tag:{type:"null",position:{start:{line:-1,column:-1,offset:-1},end:{line:-1,column:-1,offset:-1}}},middleComments:[]}},t.createCommentAttachableNode=function(){return{leadingComments:[],trailingComments:[]}},t.createEndCommentAttachableNode=function(){return{endComments:[]}},t.createNull=r,t.getStartPoint=function(e){var t="tag"in e&&"null"!==e.tag.type&&e.tag.position,n="anchor"in e&&"null"!==e.anchor.type&&e.anchor.position;return t||n?t&&n?t.start.offset<n.start.offset?t.start:n.start:t?t.start:n.start:e.position.start},t.updateEndPoints=function e(t,r){if(void 0===r&&(r=[]),"children"in t&&0!==t.children.length&&t.children.forEach(function(n){e(n,r.concat(t))}),0!==r.length){for(var o=r[r.length-1],a=0,i=["endComments","trailingComments"];a<i.length;a++){var u=t[i[a]];if(u&&0!==u.length){var s=u[u.length-1];s.position.end.offset>o.position.end.offset&&n(o,s.position.end)}}"null"!==t.type&&t.position.end.offset>o.position.end.offset&&n(o,t.position.end)}},t.isYAMLError=function(e){return e instanceof Error&&("YAMLSyntaxError"===e.name||"YAMLSemanticError"===e.name)},t.findLastCharIndex=function(e,t,n){if(t<e.length)for(var r=t;r>=0;r--){var o=e[r];if(n.test(o))return r}return-1},t.isExplicitMappingItem=function(e){var t=e.children,n=t[0],r=t[1];return"null"===r.type||n.position.start.line!==r.position.start.line},t.isBlockValue=function(e){return"blockFolded"===e.type||"blockLiteral"===e.type}});a(nt);var rt=i(function(e,t){t.__esModule=!0,t.attachComments=function(e,t){var n=t.text.split("\n").map(function(){return{leadingNode:null,trailingNode:null,collectionNode:null}});!function e(t,n,r,o){if(void 0===o&&(o=[]),"leadingComments"in t){var a=nt.getStartPoint(t),i=t.position.end,u=n[a.line-1].leadingNode,s=n[i.line-1].trailingNode;"document"!==t.type&&(!u||a.column<u.position.start.column)&&(n[a.line-1].leadingNode=t),"document"===t.type&&"\n..."!==r.text.slice(t.position.end.offset-4,t.position.end.offset)||s&&!(i.column>=s.position.end.column)||(n[i.line-1].trailingNode=t)}var f=nt.getLast(o);if("sequenceItem"===t.type||("mappingValue"===t.type||"mappingKey"===t.type&&nt.isExplicitMappingItem(f))&&!nt.isBlockValue(t.children[0])){var c="mappingValue"!==t.type||nt.isExplicitMappingItem(f)?t.position.start.column:f.position.start.column,l=[{mode:"gt",attachee:t}];if("sequenceItem"===t.type){var p=o[o.length-2];if("documentBody"!==p.type){var h=f;t===nt.getLast(h.children)&&l.push({mode:"gte",attachee:h})}}n[t.position.start.line-1].collectionNode={node:t,column:c,cases:l}}"children"in t&&t.children.forEach(function(a){return e(a,n,r,o.concat(t))})}(e,n,t);var r=e.children.slice();t.comments.sort(function(e,t){return e.position.start.offset-t.position.end.offset}).filter(function(e){return void 0===e.parent}).forEach(function(e){for(;r.length>1&&e.position.start.line>r[0].position.end.line;)r.shift();!function(e,t,n){var r=e.position.start.line,o=t[r-1].trailingNode;if(null!==o&&"blockFolded"!==o.type&&"blockLiteral"!==o.type)return nt.defineCommentParent(e,o),void o.trailingComments.push(e);for(var a=r;a>=n.position.start.line;a--){var i=t[a-1].collectionNode;if(null!==i){for(var u=i.cases,s=i.node,f=i.column,c=0,l=u;c<l.length;c++){var p=l[c],h=p.mode,d=p.attachee;if(s.position.end.offset<=e.position.start.offset&&f+("gt"===h?1:0)<=e.position.start.column)return nt.defineCommentParent(e,d),void d.endComments.push(e)}break}}for(var a=r+1;a<=n.position.end.line;a++){var y=t[a-1].leadingNode;if(null!==y)return nt.defineCommentParent(e,y),void y.leadingComments.push(e)}nt.defineCommentParent(e,n.children[1]),n.children[1].children.push(e)}(e,n,r[0])}),nt.updateEndPoints(e)}});function ot(){}a(rt),ot.ok=function(){},ot.strictEqual=function(){};var at=Object.freeze({default:ot}),it=at&&ot||at,ut=i(function(e,t){t.__esModule=!0,t.tranformAlias=function(e,t){return it(null!==e.valueRange),h.__assign({type:"alias",position:t.transformRange({start:e.valueRange.start-1,end:e.valueRange.end}),value:e.rawValue},nt.createCommentAttachableNode(),nt.createContentNode())}});a(ut);var st=i(function(e,t){var n;t.__esModule=!0,function(e){e.CLIP="clip",e.STRIP="strip",e.KEEP="keep"}(n||(n={})),t.tranformBlockValue=function(e,t){it(null!==e.valueRange),it(null!==e.strValue);var r="CLIP"===e.chomping?0:1,o=e.header.length-1-r!=0;return it(!o||null!==e.blockIndent),h.__assign({type:"blockBase",position:t.transformRange({start:e.header.start,end:e.valueRange.end}),chomping:n[e.chomping],indent:o?e.blockIndent:null,value:e.strValue},nt.createCommentAttachableNode(),nt.createContentNode())}});a(st);var ft=i(function(e,t){t.__esModule=!0,t.tranformBlockFolded=function(e,t){return it("BLOCK_FOLDED"===e.type),h.__assign({},st.tranformBlockValue(e,t),{type:"blockFolded"})}});a(ft);var ct=i(function(e,t){t.__esModule=!0,t.tranformBlockLiteral=function(e,t){return it("BLOCK_LITERAL"===e.type),h.__assign({},st.tranformBlockValue(e,t),{type:"blockLiteral"})}});a(ct);var lt=i(function(e,t){t.__esModule=!0,t.transformComment=function(e,t){return it(null!==e.range),{type:"comment",position:t.transformRange(e.range),value:e.comment}}});a(lt);var pt=i(function(e,t){t.__esModule=!0,t.transformDirective=function(e,t){return it(null!==e.range),h.__assign({type:"directive",name:e.name,parameters:e.parameters,position:t.transformRange(e.range)},nt.createCommentAttachableNode())}});a(pt);var ht=i(function(e,t){t.__esModule=!0,t.transformDocument=function(e,t){it(null!==e.valueRange);var n=e.directives.map(t.transformNode),r=n.reduce(function(e,t){return"comment"===t.type?e+1:0},0),o=n.filter(function(e,o){return!(o<n.length-r&&"comment"===e.type&&(t.comments.push(e),1))}),a=e.contents.map(t.transformNode),i=a.filter(function(e){return"comment"!==e.type||(t.comments.push(e),!1)});it(i.length<=1);var u,s,f,c,l=(u=t.text.slice(0,e.valueRange.start).match(/(^|\n)---\s*$/),s=u?t.text.indexOf("---",u.index):-1,f=0!==n.length?n[0].position.start.offset:u?s:e.valueRange.start,c=u?s+"---".length:e.valueRange.start,t.transformRange({start:f,end:c})),p=function(n){var r=t.text.slice(e.valueRange.end).match(/^\s*\.\.\.(\s*(#[^\n]*)?\n|$)/),o=r?t.text.indexOf("...",e.valueRange.end+r.index):-1,i=0!==a.length?a[0].position.start.offset:e.valueRange.start,u=r?o+"...".length:0!==a.length?nt.getLast(a).position.end.offset:e.valueRange.start;return t.transformRange({start:i,end:u})}(),d={start:l.start,end:p.end},y={type:"documentHead",children:[],position:l};return y.children=o.map(function(e){return"comment"===e.type&&(t.comments.push(e),nt.defineCommentParent(e,y)),e}),h.__assign({type:"document",position:d,children:[y,{type:"documentBody",children:i,position:p}]},nt.createCommentAttachableNode())}});a(ht);var dt=i(function(e,t){function n(e,t,n,i){it(t.length===n.length);var u=t.indexOf(",");it(-1===u||u===t.length-1);var s=-1===u?t:t.slice(0,-1);if(it(s.length>0&&s.length<=4),1===s.length){var f=s[0];if("string"==typeof f){var c=n[0],l=i.transformRange(c);return a("?"===f?r(i.transformNode(null),i.transformRange(c)):i.transformNode(null),":"===f?o(i.transformNode(null),i.transformRange(c)):i.transformNode(null),l)}return"FLOW_MAP"===e?a(r(f,f.position),i.transformNode(null),f.position):function(e,t){return{type:"flowSequenceItem",children:[e],position:t}}(f,f.position)}var p=t.indexOf(":"),h=t.indexOf("?");if(2===s.length){if(-1!==h&&-1!==p){var d=n[0],y=n[1];return a(r(i.transformNode(null),i.transformRange(d)),o(i.transformNode(null),i.transformRange(y)),i.transformRange({start:d.start,end:y.end}))}if(-1!==h){it(0===h);d=n[0];var v=s[1],m={start:i.transformOffset(d.start),end:v.position.end};return a(r(v,m),i.transformNode(null),m)}if(0===p){y=n[0];var g=s[1],b={start:i.transformOffset(y.start),end:g.position.end};return a(i.transformNode(null),o(g,b),b)}it(1===p);y=n[1];return a(r(v=s[0],v.position),o(i.transformNode(null),i.transformRange(y)),{start:v.position.start,end:i.transformOffset(y.end)})}if(3===s.length){if(-1===h){it(1===p);y=n[1],v=s[0],g=s[2];return a(r(v,v.position),o(g,i.transformRange({start:y.start,end:g.position.end.offset})),i.transformRange({start:v.position.start.offset,end:g.position.end.offset}))}if(it(0===h),1===p){d=n[0],y=n[1],g=s[2];return a(r(i.transformNode(null),i.transformRange(d)),o(g,i.transformRange({start:y.start,end:g.position.end.offset})),i.transformRange({start:d.start,end:g.position.end.offset}))}d=n[0],y=n[2];return a(r(v=s[1],i.transformRange({start:d.start,end:v.position.end.offset})),o(i.transformNode(null),i.transformRange(y)),i.transformRange({start:d.start,end:y.end}))}it(0===h&&2===p);d=n[0],y=n[2],v=s[1],g=s[3];return a(r(v,i.transformRange({start:d.start,end:v.position.end.offset})),o(g,i.transformRange({start:y.start,end:g.position.end.offset})),i.transformRange({start:d.start,end:g.position.end.offset}))}function r(e,t){return h.__assign({type:"mappingKey",children:[e],position:t},nt.createCommentAttachableNode(),nt.createEndCommentAttachableNode())}function o(e,t){return h.__assign({type:"mappingValue",children:[e],position:t},nt.createCommentAttachableNode(),nt.createEndCommentAttachableNode())}function a(e,t,n){return h.__assign({type:"flowMappingItem",children:[e,t],position:n},nt.createCommentAttachableNode())}t.__esModule=!0,t.transformFlowCollection=function(e,t){it(null!==e.valueRange),it(e.items.length>=2),it("FLOW_MAP"===e.type?"{"===e.items[0]&&"}"===nt.getLast(e.items):"["===e.items[0]&&"]"===nt.getLast(e.items));for(var r=!1,o=!1,a=[],i=[],s=[],f=e.valueRange.start,c=f+1,l=e.items.length-2,p=1;p<=l;p++){var d=!1,y=e.items[p];if("{"!==y&&"}"!==y&&"["!==y&&"]"!==y){if("object"===u(y)&&"COMMENT"===y.type){d=!0;var v=t.transformNode(y);t.comments.push(v),f=v.position.start.offset,c=v.position.end.offset}else"?"===y?(it(!r),it(!o),o=!0):":"===y&&(it(!r),r=!0),m("string"==typeof y?y:t.transformNode(y));if(p===l&&0===i.length&&d)break;","!==y&&p!==l||(a.push(n(e.type,i,s,t)),i=[],s=[],r=!1,o=!1)}else it(!0)}return h.__assign({type:"flowCollection",children:a,position:t.transformRange(e.valueRange)},nt.createCommentAttachableNode(),nt.createContentNode());function m(e){var n=function(e){if("string"!=typeof e)return{start:e.position.start.offset,end:e.position.end.offset};var n=t.text.indexOf(e,c);return{start:n,end:n+e.length}}(e),r=n.start,o=n.end;f=r,c=o,i.push(e),s.push({start:r,end:o})}}});a(dt);var yt=i(function(e,t){t.__esModule=!0,t.transformFlowMap=function(e,t){it("FLOW_MAP"===e.type);var n=dt.transformFlowCollection(e,t);return it(n.children.every(function(e){return"flowMappingItem"===e.type})),h.__assign({},n,{type:"flowMapping"})}});a(yt);var vt=i(function(e,t){t.__esModule=!0,t.transformFlowSeq=function(e,t){return it("FLOW_SEQ"===e.type),h.__assign({},dt.transformFlowCollection(e,t),{type:"flowSequence"})}});a(vt);var mt=i(function(e,t){t.__esModule=!0,t.transformMap=function(e,t){it(null!==e.valueRange);var n=function(e,t){var n=e.filter(function(e){return"COMMENT"!==e.type||(t.comments.push(t.transformNode(e)),!1)}),r=[];return n.reduce(function(e,o,a){if("MAP_VALUE"!==o.type){if("MAP_KEY"===o.type)r.push(t.transformNode(o));else{var i=t.transformNode(o);r.push(h.__assign({type:"mappingKey",position:i.position,children:[i]},nt.createCommentAttachableNode(),nt.createEndCommentAttachableNode()))}if(1===r.length&&a!==n.length-1)return e;var u=0;return 1!==r.length&&(u++,it("MAP_KEY"===n[a-1].type)),a===n.length-1&&(u++,it("MAP_KEY"===n[a].type)),e.concat(r.splice(0,u).map(function(e){return h.__assign({type:"mappingItem",children:[e,t.transformNode(null)],position:e.position},nt.createCommentAttachableNode())}))}var s=t.transformNode(o);it(r.length<=1);var f=0!==r.length?r.pop():h.__assign({type:"mappingKey",children:[t.transformNode(null)],position:{start:s.position.start,end:s.position.start}},nt.createCommentAttachableNode(),nt.createEndCommentAttachableNode());return e.concat(h.__assign({type:"mappingItem",children:[f,s],position:{start:f.position.start,end:s.position.end}},nt.createCommentAttachableNode()))},[])}(e.items,t);return h.__assign({type:"mapping",position:{start:n[0].position.start,end:nt.getLast(n).position.end},children:n},nt.createCommentAttachableNode(),nt.createContentNode())}});a(mt);var gt=i(function(e,t){t.__esModule=!0,t.transformMapKey=function(e,t){it("MAP_KEY"===e.type),it(null!==e.valueRange),it(null===e.node||"COMMENT"!==e.node.type);var n=t.transformNode(e.node),r=t.transformOffset(e.valueRange.start);return h.__assign({type:"mappingKey",position:{start:r,end:"null"===n.type?r:n.position.end},children:[n]},nt.createCommentAttachableNode(),nt.createEndCommentAttachableNode())}});a(gt);var bt=i(function(e,t){t.__esModule=!0,t.transformMapValue=function(e,t){it(null!==e.valueRange),it(null===e.node||"COMMENT"!==e.node.type);var n=t.transformNode(e.node);return h.__assign({type:"mappingValue",position:{start:t.transformOffset(e.valueRange.start),end:"null"===n.type?t.transformOffset(e.valueRange.start+1):n.position.end},children:[n]},nt.createCommentAttachableNode(),nt.createEndCommentAttachableNode())}});a(bt);var Ot=i(function(e,t){t.__esModule=!0,t.transformNull=function(){return nt.createNull()}});a(Ot);var wt=i(function(e,t){t.__esModule=!0,t.transformPlain=function(e,t){return it(null!==e.strValue),it(null!==e.valueRange),h.__assign({type:"plain",value:e.strValue,position:t.transformRange({start:e.valueRange.start,end:nt.findLastCharIndex(t.text,e.valueRange.end-1,/\S/)+1})},nt.createCommentAttachableNode(),nt.createContentNode())}});a(wt);var _t=i(function(e,t){t.__esModule=!0,t.transformQuoteValue=function(e,t){return it(null!==e.valueRange),it("string"==typeof e.strValue),h.__assign({type:"quoteBase",value:e.strValue,position:t.transformRange(e.valueRange)},nt.createCommentAttachableNode(),nt.createContentNode())}});a(_t);var Et=i(function(e,t){t.__esModule=!0,t.transformQuoteDouble=function(e,t){return it("QUOTE_DOUBLE"===e.type),h.__assign({},_t.transformQuoteValue(e,t),{type:"quoteDouble"})}});a(Et);var St=i(function(e,t){t.__esModule=!0,t.transformQuoteSingle=function(e,t){return it("QUOTE_SINGLE"===e.type),h.__assign({},_t.transformQuoteValue(e,t),{type:"quoteSingle"})}});a(St);var Pt=i(function(e,t){t.__esModule=!0,t.transformRange=function(e,t){return{start:t.transformOffset(e.start),end:t.transformOffset(e.end)}}});a(Pt);var Mt=i(function(e,t){t.__esModule=!0,t.transformSeq=function(e,t){var n=e.items.filter(function(e){return"COMMENT"!==e.type||(t.comments.push(t.transformNode(e)),!1)}).map(t.transformNode);return it(null!==e.valueRange),h.__assign({type:"sequence",position:{start:n[0].position.start,end:nt.getLast(n).position.end},children:n},nt.createCommentAttachableNode(),nt.createContentNode(),nt.createEndCommentAttachableNode())}});a(Mt);var Tt=i(function(e,t){t.__esModule=!0,t.transformSeqItem=function(e,t){it(null!==e.valueRange),it(null===e.node||"COMMENT"!==e.node.type);var n=t.transformNode(e.node);return h.__assign({type:"sequenceItem",position:{start:t.transformOffset(e.valueRange.start),end:"null"===n.type?t.transformOffset(e.valueRange.start+1):n.position.end},children:[n]},nt.createCommentAttachableNode(),nt.createEndCommentAttachableNode())}});a(Tt);var At=i(function(e,t){t.__esModule=!0,t.transformNode=function(e,t){if(null===e)return Ot.transformNull();var n=function(e,t){switch(e.type){case"ALIAS":return ut.tranformAlias(e,t);case"BLOCK_FOLDED":return ft.tranformBlockFolded(e,t);case"BLOCK_LITERAL":return ct.tranformBlockLiteral(e,t);case"COMMENT":return lt.transformComment(e,t);case"DIRECTIVE":return pt.transformDirective(e,t);case"DOCUMENT":return ht.transformDocument(e,t);case"FLOW_MAP":return yt.transformFlowMap(e,t);case"FLOW_SEQ":return vt.transformFlowSeq(e,t);case"MAP":return mt.transformMap(e,t);case"MAP_KEY":return gt.transformMapKey(e,t);case"MAP_VALUE":return bt.transformMapValue(e,t);case"PLAIN":return wt.transformPlain(e,t);case"QUOTE_DOUBLE":return Et.transformQuoteDouble(e,t);case"QUOTE_SINGLE":return St.transformQuoteSingle(e,t);case"SEQ":return Mt.transformSeq(e,t);case"SEQ_ITEM":return Tt.transformSeqItem(e,t);default:throw new Error("Unexpected node type "+e.type)}}(e,t);if("comment"===n.type)return n;var r=-1,o=[],a=null,i=null;if(e.props.forEach(function(e){var u=t.text[e.start];switch(u){case"!":case"&":e.start<(-1!==r?r:n.position.start.offset)&&(r=e.start),"!"===u?a=e:i=e;break;case"#":o.push(e);break;default:throw new Error("Unexpected leading character "+JSON.stringify(u))}}),o.forEach(function(e){var o=e.start,a=e.end,i={type:"comment",position:Pt.transformRange(e,t),value:t.text.slice(e.start+1,e.end)};"middleComments"in n&&-1!==r&&r<=o&&n.position.start.offset>=a?(nt.defineCommentParent(i,n),n.middleComments.push(i)):("blockFolded"===n.type||"blockLiteral"===n.type)&&n.position.start.offset<o&&n.position.end.offset>a&&(nt.defineCommentParent(i,n),n.trailingComments.push(i)),t.comments.push(i)}),a){it("tag"in n);var u=e.tag;n.tag="verbatim"in u?{type:"verbatimTag",value:u.verbatim,position:t.transformRange(a)}:"!"===u.handle&&""===u.suffix?{type:"nonSpecificTag",position:t.transformRange(a)}:{type:"shorthandTag",handle:u.handle,suffix:u.suffix,position:t.transformRange(a)}}if(i){it("anchor"in n);var s=e.anchor;n.anchor={type:"anchor",value:s,position:t.transformRange(i)}}return n}});a(At);var kt=i(function(e,t){t.__esModule=!0,t.transformOffset=function(e,t){var n=t.locator.locationForIndex(e);return it(null!==n),{line:n.line+1,column:n.column+1,offset:e}}});a(kt);var Lt=i(function(e,t){t.__esModule=!0,t.parse=function(e){var t=tt.default(e),n=new d.default(e),r=[],o={text:e,locator:n,comments:r,transformNode:function(e){return At.transformNode(e,o)},transformRange:function(e){return Pt.transformRange(e,o)},transformOffset:function(e){return kt.transformOffset(e,o)}};t.forEach(function(e){var t=(new et.default.Document).parse(e).errors.filter(nt.isYAMLError);if(0!==t.length)throw nt.createError(t[0],o)});var a=o.transformRange({start:0,end:e.length}),i={type:"root",position:a,children:t.map(o.transformNode).map(function(t,n,r){if(0===n&&nt.overwriteStart(t,a.start),"\n..."!==e.slice(t.position.end.offset-4,t.position.end.offset)){var i=n===r.length-1?a.end:o.transformOffset(r[n+1].position.start.offset-1);nt.overwriteEnd(t,i),nt.overwriteEnd(t.children[1],i)}return t}),comments:r};return 0!==o.comments.length&&rt.attachComments(i,o),i}});a(Lt);var jt=i(function(e,t){t.__esModule=!0,h.__exportStar(Lt,t)});a(jt);var Nt=o,Rt=r,Ct=n;return{parsers:{yaml:{astFormat:"yaml",parse:function(t){try{var n=Ct(jt.parse(t),function(e){return"mappingKey"!==e.type&&"mappingValue"!==e.type||"null"!==e.children[0].type||0!==e.leadingComments.length||0!==e.trailingComments.length||0!==e.endComments.length?(function(e){switch(e.type){case"document":Rt(e,"head",function(){return e.children[0]}),Rt(e,"body",function(){return e.children[1]});break;case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":Rt(e,"node",function(){return e.children[0]});break;case"mappingItem":case"flowMappingItem":Rt(e,"key",function(){return e.children[0]}),Rt(e,"value",function(){return e.children[1]})}}(e),e):Nt()});return delete n.comments,n}catch(t){throw t&&"YAMLSyntaxError"===t.name?e(t.message,t.position):t}},hasPragma:t,locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset},preprocess:function(e){return-1===e.indexOf("\r")?e:e.replace(/\r\n?/g,"\n")}}}}});
|