prettier 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +23 -1
  3. data/dist/haml/parser.rb +6 -0
  4. data/dist/parser/getInfo.js +9 -2
  5. data/dist/parser/server.rb +6 -2
  6. data/dist/rbs/parser.rb +59 -2
  7. data/dist/rbs/printer.js +14 -6
  8. data/dist/ruby/embed.js +10 -5
  9. data/dist/ruby/location.js +19 -0
  10. data/dist/ruby/nodes/alias.js +6 -5
  11. data/dist/ruby/nodes/aref.js +4 -6
  12. data/dist/ruby/nodes/args.js +29 -56
  13. data/dist/ruby/nodes/arrays.js +31 -35
  14. data/dist/ruby/nodes/assign.js +19 -23
  15. data/dist/ruby/nodes/blocks.js +18 -15
  16. data/dist/ruby/nodes/calls.js +33 -30
  17. data/dist/ruby/nodes/case.js +8 -8
  18. data/dist/ruby/nodes/class.js +13 -13
  19. data/dist/ruby/nodes/commands.js +36 -22
  20. data/dist/ruby/nodes/conditionals.js +56 -52
  21. data/dist/ruby/nodes/constants.js +10 -13
  22. data/dist/ruby/nodes/flow.js +39 -46
  23. data/dist/ruby/nodes/hashes.js +26 -30
  24. data/dist/ruby/nodes/heredocs.js +9 -9
  25. data/dist/ruby/nodes/hooks.js +2 -2
  26. data/dist/ruby/nodes/ints.js +5 -5
  27. data/dist/ruby/nodes/lambdas.js +7 -6
  28. data/dist/ruby/nodes/loops.js +26 -24
  29. data/dist/ruby/nodes/massign.js +22 -35
  30. data/dist/ruby/nodes/methods.js +20 -40
  31. data/dist/ruby/nodes/operators.js +26 -28
  32. data/dist/ruby/nodes/params.js +31 -25
  33. data/dist/ruby/nodes/patterns.js +34 -37
  34. data/dist/ruby/nodes/regexp.js +6 -6
  35. data/dist/ruby/nodes/rescue.js +23 -22
  36. data/dist/ruby/nodes/return.js +61 -36
  37. data/dist/ruby/nodes/statements.js +24 -25
  38. data/dist/ruby/nodes/strings.js +36 -34
  39. data/dist/ruby/nodes/super.js +6 -10
  40. data/dist/ruby/nodes/undef.js +19 -14
  41. data/dist/ruby/nodes.js +47 -21
  42. data/dist/ruby/parser.js +3 -2
  43. data/dist/ruby/parser.rb +8470 -2972
  44. data/dist/ruby/printer.js +9 -71
  45. data/dist/ruby/toProc.js +33 -35
  46. data/dist/types.js +5 -1
  47. data/dist/utils/containsAssignment.js +5 -2
  48. data/dist/utils/getChildNodes.js +305 -0
  49. data/dist/utils/inlineEnsureParens.js +1 -1
  50. data/dist/utils/isEmptyBodyStmt.js +1 -1
  51. data/dist/utils/isEmptyParams.js +12 -0
  52. data/dist/utils/isEmptyStmts.js +1 -1
  53. data/dist/utils/makeCall.js +5 -4
  54. data/dist/utils/printEmptyCollection.js +3 -1
  55. data/dist/utils/skipAssignIndent.js +6 -2
  56. data/dist/utils.js +5 -3
  57. data/lib/prettier.rb +2 -1
  58. data/node_modules/prettier/bin-prettier.js +48 -18924
  59. data/node_modules/prettier/cli.js +12335 -0
  60. data/node_modules/prettier/doc.js +1306 -4755
  61. data/node_modules/prettier/index.js +37468 -57614
  62. data/node_modules/prettier/package.json +3 -2
  63. data/node_modules/prettier/parser-angular.js +2 -66
  64. data/node_modules/prettier/parser-babel.js +27 -22
  65. data/node_modules/prettier/parser-espree.js +26 -22
  66. data/node_modules/prettier/parser-flow.js +26 -22
  67. data/node_modules/prettier/parser-glimmer.js +27 -1
  68. data/node_modules/prettier/parser-graphql.js +15 -1
  69. data/node_modules/prettier/parser-html.js +21 -117
  70. data/node_modules/prettier/parser-markdown.js +61 -19
  71. data/node_modules/prettier/parser-meriyah.js +19 -22
  72. data/node_modules/prettier/parser-postcss.js +76 -22
  73. data/node_modules/prettier/parser-typescript.js +280 -22
  74. data/node_modules/prettier/parser-yaml.js +150 -15
  75. data/node_modules/prettier/third-party.js +8660 -11030
  76. data/package.json +7 -7
  77. metadata +7 -3
@@ -1,15 +1,150 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((e="undefined"!=typeof globalThis?globalThis:e||self).prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.yaml=t())}(this,(function(){"use strict";var e=function(e,t){const n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n};var t={isPragma:function(e){return/^\s*@(?:prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(e)},insertPragma:function(e){return`# @format\n\n${e}`}};var n={locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}},r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){var t={exports:{}};return e(t,t.exports),t.exports
2
- /*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
- PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */}var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function u(e){return this instanceof u?(this.v=e,this):new u(e)}var l,f,h=Object.freeze({__proto__:null,__extends:function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return s},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},__decorate:function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},__generator:function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},__createBinding:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},__exportStar:function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])},__values:a,__read:c,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(c(arguments[t]));return e},__spreadArrays:function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r},__await:u,__asyncGenerator:function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof u?Promise.resolve(n.value.v).then(c,l):f(i[0][2],n)}catch(e){f(i[0][3],e)}var n}function c(e){a("next",e)}function l(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:u(e[r](t)),done:"return"===r}:o?o(t):t}:o}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=a(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},__classPrivateFieldSet:function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}}),p=o((function(e,t){var n="\n",r=function(){function e(e){this.string=e;for(var t=[0],r=0;r<e.length;)switch(e[r]){case n:r+=n.length,t.push(r);break;case"\r":e[r+="\r".length]===n&&(r+=n.length),t.push(r);break;default:r++}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||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}();t.__esModule=!0,t.default=r})),d=function(e){return e&&e.Math==Math&&e},g=d("object"==typeof globalThis&&globalThis)||d("object"==typeof window&&window)||d("object"==typeof self&&self)||d("object"==typeof r&&r)||function(){return this}()||Function("return this")(),m=function(e){try{return!!e()}catch(e){return!0}},y=!m((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),v={}.propertyIsEnumerable,b=Object.getOwnPropertyDescriptor,w={f:b&&!v.call({1:2},1)?function(e){var t=b(this,e);return!!t&&t.enumerable}:v},_=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},E={}.toString,S="".split,O=m((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==function(e){return E.call(e).slice(8,-1)}(e)?S.call(e,""):Object(e)}:Object,A=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},M=function(e){return O(A(e))},L=function(e){return"object"==typeof e?null!==e:"function"==typeof e},N=function(e){return"function"==typeof e?e:void 0},T=function(e,t){return arguments.length<2?N(g[e]):g[e]&&g[e][t]},P=T("navigator","userAgent")||"",C=g.process,x=g.Deno,R=C&&C.versions||x&&x.version,I=R&&R.v8;I?f=(l=I.split("."))[0]<4?1:l[0]+l[1]:P&&(!(l=P.match(/Edge\/(\d+)/))||l[1]>=74)&&(l=P.match(/Chrome\/(\d+)/))&&(f=l[1]);var k,B=f&&+f,Y=!!Object.getOwnPropertySymbols&&!m((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&B&&B<41})),j=Y&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$=j?function(e){return"symbol"==typeof e}:function(e){var t=T("Symbol");return"function"==typeof t&&Object(e)instanceof t},D=function(e,t){try{Object.defineProperty(g,e,{value:t,configurable:!0,writable:!0})}catch(n){g[e]=t}return t},F="__core-js_shared__",U=g[F]||D(F,{}),W=o((function(e){(e.exports=function(e,t){return U[e]||(U[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.17.3",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})})),K=function(e){return Object(A(e))},V={}.hasOwnProperty,Q=Object.hasOwn||function(e,t){return V.call(K(e),t)},q=0,J=Math.random(),G=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++q+J).toString(36)},H=W("wks"),z=g.Symbol,Z=j?z:z&&z.withoutSetter||G,X=(Q(H,k="toPrimitive")&&(Y||"string"==typeof H[k])||(Y&&Q(z,k)?H[k]=z[k]:H[k]=Z("Symbol."+k)),H[k]),ee=function(e,t){if(!L(e)||$(e))return e;var n,r=e[X];if(void 0!==r){if(void 0===t&&(t="default"),n=r.call(e,t),!L(n)||$(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&"function"==typeof(n=e.toString)&&!L(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!L(r=n.call(e)))return r;if("string"!==t&&"function"==typeof(n=e.toString)&&!L(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}(e,t)},te=function(e){var t=ee(e,"string");return $(t)?t:String(t)},ne=g.document,re=L(ne)&&L(ne.createElement),oe=!y&&!m((function(){return 7!=Object.defineProperty((e="div",re?ne.createElement(e):{}),"a",{get:function(){return 7}}).a;var e})),ie=Object.getOwnPropertyDescriptor,se={f:y?ie:function(e,t){if(e=M(e),t=te(t),oe)try{return ie(e,t)}catch(e){}if(Q(e,t))return _(!w.f.call(e,t),e[t])}},ae=function(e){if(!L(e))throw TypeError(String(e)+" is not an object");return e},ce=Object.defineProperty,ue={f:y?ce:function(e,t,n){if(ae(e),t=te(t),ae(n),oe)try{return ce(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},le=y?function(e,t,n){return ue.f(e,t,_(1,n))}:function(e,t,n){return e[t]=n,e},fe=Function.toString;"function"!=typeof U.inspectSource&&(U.inspectSource=function(e){return fe.call(e)});var he,pe,de,ge,me=U.inspectSource,ye=g.WeakMap,ve="function"==typeof ye&&/native code/.test(me(ye)),be=W("keys"),we={},_e="Object already initialized",Ee=g.WeakMap;if(ve||U.state){var Se=U.state||(U.state=new Ee),Oe=Se.get,Ae=Se.has,Me=Se.set;he=function(e,t){if(Ae.call(Se,e))throw new TypeError(_e);return t.facade=e,Me.call(Se,e,t),t},pe=function(e){return Oe.call(Se,e)||{}},de=function(e){return Ae.call(Se,e)}}else{var Le=be[ge="state"]||(be[ge]=G(ge));we[Le]=!0,he=function(e,t){if(Q(e,Le))throw new TypeError(_e);return t.facade=e,le(e,Le,t),t},pe=function(e){return Q(e,Le)?e[Le]:{}},de=function(e){return Q(e,Le)}}var Ne,Te,Pe={set:he,get:pe,has:de,enforce:function(e){return de(e)?pe(e):he(e,{})},getterFor:function(e){return function(t){var n;if(!L(t)||(n=pe(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Ce=o((function(e){var t=Pe.get,n=Pe.enforce,r=String(String).split("String");(e.exports=function(e,t,o,i){var s,a=!!i&&!!i.unsafe,c=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof t||Q(o,"name")||le(o,"name",t),(s=n(o)).source||(s.source=r.join("string"==typeof t?t:""))),e!==g?(a?!u&&e[t]&&(c=!0):delete e[t],c?e[t]=o:le(e,t,o)):c?e[t]=o:D(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||me(this)}))})),xe=Math.ceil,Re=Math.floor,Ie=function(e){return isNaN(e=+e)?0:(e>0?Re:xe)(e)},ke=Math.min,Be=function(e){return e>0?ke(Ie(e),9007199254740991):0},Ye=Math.max,je=Math.min,$e=function(e){return function(t,n,r){var o,i=M(t),s=Be(i.length),a=function(e,t){var n=Ie(e);return n<0?Ye(n+t,0):je(n,t)}(r,s);if(e&&n!=n){for(;s>a;)if((o=i[a++])!=o)return!0}else for(;s>a;a++)if((e||a in i)&&i[a]===n)return e||a||0;return!e&&-1}},De={includes:$e(!0),indexOf:$e(!1)}.indexOf,Fe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),Ue={f:Object.getOwnPropertyNames||function(e){return function(e,t){var n,r=M(e),o=0,i=[];for(n in r)!Q(we,n)&&Q(r,n)&&i.push(n);for(;t.length>o;)Q(r,n=t[o++])&&(~De(i,n)||i.push(n));return i}(e,Fe)}},We={f:Object.getOwnPropertySymbols},Ke=T("Reflect","ownKeys")||function(e){var t=Ue.f(ae(e)),n=We.f;return n?t.concat(n(e)):t},Ve=function(e,t){for(var n=Ke(t),r=ue.f,o=se.f,i=0;i<n.length;i++){var s=n[i];Q(e,s)||r(e,s,o(t,s))}},Qe=/#|\.prototype\./,qe=function(e,t){var n=Ge[Je(e)];return n==ze||n!=He&&("function"==typeof t?m(t):!!t)},Je=qe.normalize=function(e){return String(e).replace(Qe,".").toLowerCase()},Ge=qe.data={},He=qe.NATIVE="N",ze=qe.POLYFILL="P",Ze=qe,Xe=se.f,et=function(e){if($(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},tt=Math.floor,nt=function(e,t){var n=e.length,r=tt(n/2);return n<8?rt(e,t):ot(nt(e.slice(0,r),t),nt(e.slice(r),t),t)},rt=function(e,t){for(var n,r,o=e.length,i=1;i<o;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},ot=function(e,t,n){for(var r=e.length,o=t.length,i=0,s=0,a=[];i<r||s<o;)i<r&&s<o?a.push(n(e[i],t[s])<=0?e[i++]:t[s++]):a.push(i<r?e[i++]:t[s++]);return a},it=nt,st=P.match(/firefox\/(\d+)/i),at=!!st&&+st[1],ct=/MSIE|Trident/.test(P),ut=P.match(/AppleWebKit\/(\d+)\./),lt=!!ut&&+ut[1],ft=[],ht=ft.sort,pt=m((function(){ft.sort(void 0)})),dt=m((function(){ft.sort(null)})),gt=!!(Te=[]["sort"])&&m((function(){Te.call(null,Ne||function(){throw 1},1)})),mt=!m((function(){if(B)return B<70;if(!(at&&at>3)){if(ct)return!0;if(lt)return lt<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)ft.push({k:t+r,v:n})}for(ft.sort((function(e,t){return t.v-e.v})),r=0;r<ft.length;r++)t=ft[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));!function(e,t){var n,r,o,i,s,a=e.target,c=e.global,u=e.stat;if(n=c?g:u?g[a]||D(a,{}):(g[a]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(s=Xe(n,r))&&s.value:n[r],!Ze(c?r:a+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ve(i,o)}(e.sham||o&&o.sham)&&le(i,"sham",!0),Ce(n,r,i,e)}}({target:"Array",proto:!0,forced:pt||!dt||!gt||!mt},{sort:function(e){void 0!==e&&function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function")}(e);var t=K(this);if(mt)return void 0===e?ht.call(t):ht.call(t,e);var n,r,o=[],i=Be(t.length);for(r=0;r<i;r++)r in t&&o.push(t[r]);for(n=(o=it(o,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:et(t)>et(n)?1:-1}}(e))).length,r=0;r<n;)t[r]=o[r++];for(;r<i;)delete t[r++];return t}});var yt=function e(t,n){void 0===n&&(n=null),"children"in t&&t.children.forEach((function(n){return e(n,t)})),"anchor"in t&&t.anchor&&e(t.anchor,t),"tag"in t&&t.tag&&e(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach((function(n){return e(n,t)})),"middleComments"in t&&t.middleComments.forEach((function(n){return e(n,t)})),"indicatorComment"in t&&t.indicatorComment&&e(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&e(t.trailingComment,t),"endComments"in t&&t.endComments.forEach((function(n){return e(n,t)})),Object.defineProperty(t,"_parent",{value:n,enumerable:!1})},vt=Object.defineProperty({defineParents:yt},"__esModule",{value:!0});var bt=function(e){return e.line+":"+e.column},wt=Object.defineProperty({getPointText:bt},"__esModule",{value:!0});var _t=function(e){vt.defineParents(e);var t=function(e){for(var t=Array.from(new Array(e.position.end.line),(function(){return{}})),n=0,r=e.comments;n<r.length;n++){var o=r[n];t[o.position.start.line-1].comment=o}return Et(t,e),t}(e),n=e.children.slice();e.comments.sort((function(e,t){return e.position.start.offset-t.position.end.offset})).filter((function(e){return!e._parent})).forEach((function(e){for(;n.length>1&&e.position.start.line>n[0].position.end.line;)n.shift();!function(e,t,n){var r=e.position.start.line,o=t[r-1].trailingAttachableNode;if(o){if(o.trailingComment)throw new Error("Unexpected multiple trailing comment at "+wt.getPointText(e.position.start));return vt.defineParents(e,o),void(o.trailingComment=e)}for(var i=r;i>=n.position.start.line;i--){var s=t[i-1].trailingNode,a=void 0;if(s)a=s;else{if(i===r||!t[i-1].comment)continue;a=t[i-1].comment._parent}if("sequence"!==a.type&&"mapping"!==a.type||(a=a.children[0]),"mappingItem"===a.type){var c=a.children,u=c[0],l=c[1];a=Ot(u)?u:l}for(;;){if(St(a,e))return vt.defineParents(e,a),void a.endComments.push(e);if(!a._parent)break;a=a._parent}break}for(i=r+1;i<=n.position.end.line;i++){var f=t[i-1].leadingAttachableNode;if(f)return vt.defineParents(e,f),void f.leadingComments.push(e)}var h=n.children[1];vt.defineParents(e,h),h.endComments.push(e)}(e,t,n[0])}))};function Et(e,t){if(t.position.start.offset!==t.position.end.offset){if("leadingComments"in t){var n=t.position.start,r=e[n.line-1].leadingAttachableNode;(!r||n.column<r.position.start.column)&&(e[n.line-1].leadingAttachableNode=t)}if("trailingComment"in t&&t.position.end.column>1&&"document"!==t.type&&"documentHead"!==t.type){var o=t.position.end,i=e[o.line-1].trailingAttachableNode;(!i||o.column>=i.position.end.column)&&(e[o.line-1].trailingAttachableNode=t)}if("root"!==t.type&&"document"!==t.type&&"documentHead"!==t.type&&"documentBody"!==t.type)for(var s=t.position,a=(n=s.start,0),c=[(o=s.end).line].concat(n.line===o.line?[]:n.line);a<c.length;a++){var u=c[a],l=e[u-1].trailingNode;(!l||o.column>=l.position.end.column)&&(e[u-1].trailingNode=t)}"children"in t&&t.children.forEach((function(t){Et(e,t)}))}}function St(e,t){if(e.position.start.offset<t.position.start.offset&&e.position.end.offset>t.position.end.offset)switch(e.type){case"flowMapping":case"flowSequence":return 0===e.children.length||t.position.start.line>e.children[e.children.length-1].position.end.line}if(t.position.end.offset<e.position.end.offset)return!1;switch(e.type){case"sequenceItem":return t.position.start.column>e.position.start.column;case"mappingKey":case"mappingValue":return t.position.start.column>e._parent.position.start.column&&(0===e.children.length||1===e.children.length&&"blockFolded"!==e.children[0].type&&"blockLiteral"!==e.children[0].type)&&("mappingValue"===e.type||Ot(e));default:return!1}}function Ot(e){return e.position.start!==e.position.end&&(0===e.children.length||e.position.start.offset!==e.children[0].position.start.offset)}var At=Object.defineProperty({attachComments:_t},"__esModule",{value:!0});var Mt=function(e,t){return{type:e,position:t}},Lt=Object.defineProperty({createNode:Mt},"__esModule",{value:!0});var Nt=function(e,t,n){return h.__assign(h.__assign({},Lt.createNode("root",e)),{children:t,comments:n})},Tt=Object.defineProperty({createRoot:Nt},"__esModule",{value:!0});var Pt=function e(t){switch(t.type){case"DOCUMENT":for(var n=t.contents.length-1;n>=0;n--)"BLANK_LINE"===t.contents[n].type?t.contents.splice(n,1):e(t.contents[n]);for(n=t.directives.length-1;n>=0;n--)"BLANK_LINE"===t.directives[n].type&&t.directives.splice(n,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(n=t.items.length-1;n>=0;n--){var r=t.items[n];"char"in r||("BLANK_LINE"===r.type?t.items.splice(n,1):e(r))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&e(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error("Unexpected node type "+JSON.stringify(t.type))}},Ct=Object.defineProperty({removeCstBlankLine:Pt},"__esModule",{value:!0});var xt=function(){return{leadingComments:[]}},Rt=Object.defineProperty({createLeadingCommentAttachable:xt},"__esModule",{value:!0});var It=function(e){return void 0===e&&(e=null),{trailingComment:e}},kt=Object.defineProperty({createTrailingCommentAttachable:It},"__esModule",{value:!0});var Bt=function(){return h.__assign(h.__assign({},Rt.createLeadingCommentAttachable()),kt.createTrailingCommentAttachable())},Yt=Object.defineProperty({createCommentAttachable:Bt},"__esModule",{value:!0});var jt=function(e,t,n){return h.__assign(h.__assign(h.__assign(h.__assign({},Lt.createNode("alias",e)),Yt.createCommentAttachable()),t),{value:n})},$t=Object.defineProperty({createAlias:jt},"__esModule",{value:!0});var Dt=function(e,t){var n=e.cstNode;return $t.createAlias(t.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),t.transformContent(e),n.rawValue)},Ft=Object.defineProperty({transformAlias:Dt},"__esModule",{value:!0});var Ut=function(e){return h.__assign(h.__assign({},e),{type:"blockFolded"})},Wt=Object.defineProperty({createBlockFolded:Ut},"__esModule",{value:!0});var Kt=function(e,t,n,r,o,i){return h.__assign(h.__assign(h.__assign(h.__assign({},Lt.createNode("blockValue",e)),Rt.createLeadingCommentAttachable()),t),{chomping:n,indent:r,value:o,indicatorComment:i})},Vt=Object.defineProperty({createBlockValue:Kt},"__esModule",{value:!0}),Qt=o((function(e,t){var n;t.__esModule=!0,(n=t.PropLeadingCharacter||(t.PropLeadingCharacter={})).Tag="!",n.Anchor="&",n.Comment="#"}));var qt=function(e,t){return h.__assign(h.__assign({},Lt.createNode("anchor",e)),{value:t})},Jt=Object.defineProperty({createAnchor:qt},"__esModule",{value:!0});var Gt=function(e,t){return h.__assign(h.__assign({},Lt.createNode("comment",e)),{value:t})},Ht=Object.defineProperty({createComment:Gt},"__esModule",{value:!0});var zt=function(e,t,n){return{anchor:t,tag:e,middleComments:n}},Zt=Object.defineProperty({createContent:zt},"__esModule",{value:!0});var Xt=function(e,t){return h.__assign(h.__assign({},Lt.createNode("tag",e)),{value:t})},en=Object.defineProperty({createTag:Xt},"__esModule",{value:!0});var tn,nn=function(e,t,n){void 0===n&&(n=function(){return!1});for(var r=e.cstNode,o=[],i=null,s=null,a=null,c=0,u=r.props;c<u.length;c++){var l=u[c],f=t.text[l.origStart];switch(f){case Qt.PropLeadingCharacter.Tag:i=i||l,s=en.createTag(t.transformRange(l),e.tag);break;case Qt.PropLeadingCharacter.Anchor:i=i||l,a=Jt.createAnchor(t.transformRange(l),r.anchor);break;case Qt.PropLeadingCharacter.Comment:var h=Ht.createComment(t.transformRange(l),t.text.slice(l.origStart+1,l.origEnd));t.comments.push(h),!n(h)&&i&&i.origEnd<=l.origStart&&l.origEnd<=r.valueRange.origStart&&o.push(h);break;default:throw new Error("Unexpected leading character "+JSON.stringify(f))}}return Zt.createContent(s,a,o)},rn=Object.defineProperty({transformContent:nn},"__esModule",{value:!0});!function(e){e.CLIP="clip",e.STRIP="strip",e.KEEP="keep"}(tn||(tn={}));var on=function(e,t){var n=e.cstNode,r="CLIP"===n.chomping?0:1,o=n.header.origEnd-n.header.origStart-1-r!=0,i=t.transformRange({origStart:n.header.origStart,origEnd:n.valueRange.origEnd}),s=null,a=rn.transformContent(e,t,(function(e){if(!(i.start.offset<e.position.start.offset&&e.position.end.offset<i.end.offset))return!1;if(s)throw new Error("Unexpected multiple indicator comments at "+wt.getPointText(e.position.start));return s=e,!0}));return Vt.createBlockValue(i,a,tn[n.chomping],o?n.blockIndent:null,n.strValue,s)},sn=Object.defineProperty({transformAstBlockValue:on},"__esModule",{value:!0});var an=function(e,t){return Wt.createBlockFolded(sn.transformAstBlockValue(e,t))},cn=Object.defineProperty({transformBlockFolded:an},"__esModule",{value:!0});var un=function(e){return h.__assign(h.__assign({},e),{type:"blockLiteral"})},ln=Object.defineProperty({createBlockLiteral:un},"__esModule",{value:!0});var fn=function(e,t){return ln.createBlockLiteral(sn.transformAstBlockValue(e,t))},hn=Object.defineProperty({transformBlockLiteral:fn},"__esModule",{value:!0});var pn=function(e,t){return Ht.createComment(t.transformRange(e.range),e.comment)},dn=Object.defineProperty({transformComment:pn},"__esModule",{value:!0});var gn=function(e,t,n){return h.__assign(h.__assign(h.__assign({},Lt.createNode("directive",e)),Yt.createCommentAttachable()),{name:t,parameters:n})},mn=Object.defineProperty({createDirective:gn},"__esModule",{value:!0});var yn=function(e,t){for(var n=0,r=e.props;n<r.length;n++){var o=r[n],i=t.text[o.origStart];switch(i){case Qt.PropLeadingCharacter.Comment:t.comments.push(Ht.createComment(t.transformRange(o),t.text.slice(o.origStart+1,o.origEnd)));break;default:throw new Error("Unexpected leading character "+JSON.stringify(i))}}},vn=Object.defineProperty({extractPropComments:yn},"__esModule",{value:!0});var bn=function(e,t){return vn.extractPropComments(e,t),mn.createDirective(t.transformRange(e.range),e.name,e.parameters)},wn=Object.defineProperty({transformDirective:bn},"__esModule",{value:!0});var _n=function(e,t,n,r){return h.__assign(h.__assign(h.__assign({},Lt.createNode("document",e)),kt.createTrailingCommentAttachable(r)),{children:[t,n]})},En=Object.defineProperty({createDocument:_n},"__esModule",{value:!0});var Sn=function(e,t){return{start:e,end:t}};var On=function(e){return{start:e,end:e}},An=Object.defineProperty({createPosition:Sn,createEmptyPosition:On},"__esModule",{value:!0});var Mn=function(e){return void 0===e&&(e=[]),{endComments:e}},Ln=Object.defineProperty({createEndCommentAttachable:Mn},"__esModule",{value:!0});var Nn=function(e,t,n){return h.__assign(h.__assign(h.__assign({},Lt.createNode("documentBody",e)),Ln.createEndCommentAttachable(n)),{children:t?[t]:[]})},Tn=Object.defineProperty({createDocumentBody:Nn},"__esModule",{value:!0});var Pn=function(e){return e[e.length-1]},Cn=Object.defineProperty({getLast:Pn},"__esModule",{value:!0});var xn=function(e,t){var n=e.match(t);return n?n.index:-1},Rn=Object.defineProperty({getMatchIndex:xn},"__esModule",{value:!0});var In=function(e,t,n){var r,o=e.cstNode,i=function(e,t,n){for(var r=[],o=[],i=[],s=[],a=!1,c=e.contents.length-1;c>=0;c--){var u=e.contents[c];if("COMMENT"===u.type){var l=t.transformNode(u);n&&n.line===l.position.start.line?s.unshift(l):a?r.unshift(l):l.position.start.offset>=e.valueRange.origEnd?i.unshift(l):r.unshift(l)}else a=!0}if(i.length>1)throw new Error("Unexpected multiple document trailing comments at "+wt.getPointText(i[1].position.start));if(s.length>1)throw new Error("Unexpected multiple documentHead trailing comments at "+wt.getPointText(s[1].position.start));return{comments:r,endComments:o,documentTrailingComment:Cn.getLast(i)||null,documentHeadTrailingComment:Cn.getLast(s)||null}}(o,t,n),s=i.comments,a=i.endComments,c=i.documentTrailingComment,u=i.documentHeadTrailingComment,l=t.transformNode(e.contents),f=function(e,t,n){var r=Rn.getMatchIndex(n.text.slice(e.valueRange.origEnd),/^\.\.\./),o=-1===r?e.valueRange.origEnd:Math.max(0,e.valueRange.origEnd-1);"\r"===n.text[o-1]&&o--;var i=n.transformRange({origStart:null!==t?t.position.start.offset:o,origEnd:o}),s=-1===r?i.end:n.transformOffset(e.valueRange.origEnd+3);return{position:i,documentEndPoint:s}}(o,l,t),p=f.position,d=f.documentEndPoint;return(r=t.comments).push.apply(r,h.__spreadArrays(s,a)),{documentBody:Tn.createDocumentBody(p,l,a),documentEndPoint:d,documentTrailingComment:c,documentHeadTrailingComment:u}};var kn=Object.defineProperty({transformDocumentBody:In},"__esModule",{value:!0});var Bn=function(e,t,n,r){return h.__assign(h.__assign(h.__assign(h.__assign({},Lt.createNode("documentHead",e)),Ln.createEndCommentAttachable(n)),kt.createTrailingCommentAttachable(r)),{children:t})},Yn=Object.defineProperty({createDocumentHead:Bn},"__esModule",{value:!0});var jn=function(e,t){var n,r=e.cstNode,o=function(e,t){for(var n=[],r=[],o=[],i=!1,s=e.directives.length-1;s>=0;s--){var a=t.transformNode(e.directives[s]);"comment"===a.type?i?r.unshift(a):o.unshift(a):(i=!0,n.unshift(a))}return{directives:n,comments:r,endComments:o}}(r,t),i=o.directives,s=o.comments,a=o.endComments,c=function(e,t,n){var r=Rn.getMatchIndex(n.text.slice(0,e.valueRange.origStart),/---\s*$/);r>0&&!/[\r\n]/.test(n.text[r-1])&&(r=-1);var o=-1===r?{origStart:e.valueRange.origStart,origEnd:e.valueRange.origStart}:{origStart:r,origEnd:r+3};0!==t.length&&(o.origStart=t[0].position.start.offset);return{position:n.transformRange(o),endMarkerPoint:-1===r?null:n.transformOffset(r)}}(r,i,t),u=c.position,l=c.endMarkerPoint;return(n=t.comments).push.apply(n,h.__spreadArrays(s,a)),{createDocumentHeadWithTrailingComment:function(e){return e&&t.comments.push(e),Yn.createDocumentHead(u,i,a,e)},documentHeadEndMarkerPoint:l}};var $n=Object.defineProperty({transformDocumentHead:jn},"__esModule",{value:!0});var Dn=function(e,t){var n=$n.transformDocumentHead(e,t),r=n.createDocumentHeadWithTrailingComment,o=n.documentHeadEndMarkerPoint,i=kn.transformDocumentBody(e,t,o),s=i.documentBody,a=i.documentEndPoint,c=i.documentTrailingComment,u=r(i.documentHeadTrailingComment);return c&&t.comments.push(c),En.createDocument(An.createPosition(u.position.start,a),u,s,c)},Fn=Object.defineProperty({transformDocument:Dn},"__esModule",{value:!0});var Un=function(e,t,n){return h.__assign(h.__assign(h.__assign(h.__assign(h.__assign({},Lt.createNode("flowCollection",e)),Yt.createCommentAttachable()),Ln.createEndCommentAttachable()),t),{children:n})},Wn=Object.defineProperty({createFlowCollection:Un},"__esModule",{value:!0});var Kn=function(e,t,n){return h.__assign(h.__assign({},Wn.createFlowCollection(e,t,n)),{type:"flowMapping"})},Vn=Object.defineProperty({createFlowMapping:Kn},"__esModule",{value:!0});var Qn=function(e,t,n){return h.__assign(h.__assign(h.__assign({},Lt.createNode("flowMappingItem",e)),Rt.createLeadingCommentAttachable()),{children:[t,n]})},qn=Object.defineProperty({createFlowMappingItem:Qn},"__esModule",{value:!0});var Jn=function(e,t){for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];i&&"type"in i&&"COMMENT"===i.type?t.comments.push(t.transformNode(i)):n.push(i)}return n},Gn=Object.defineProperty({extractComments:Jn},"__esModule",{value:!0});var Hn=function(e){var t=["?",":"].map((function(t){var n=e.find((function(e){return"char"in e&&e.char===t}));return n?{origStart:n.origOffset,origEnd:n.origOffset+1}:null}));return{additionalKeyRange:t[0],additionalValueRange:t[1]}},zn=Object.defineProperty({getFlowMapItemAdditionalRanges:Hn},"__esModule",{value:!0});var Zn=function(e,t){var n=t;return function(t){return e.slice(n,n=t)}},Xn=Object.defineProperty({createSlicer:Zn},"__esModule",{value:!0});var er=function(e){for(var t=[],n=Xn.createSlicer(e,1),r=!1,o=1;o<e.length-1;o++){var i=e[o];"char"in i&&","===i.char?(t.push(n(o)),n(o+1),r=!1):r=!0}return r&&t.push(n(e.length-1)),t},tr=Object.defineProperty({groupCstFlowCollectionItems:er},"__esModule",{value:!0});var nr=function(e,t){return h.__assign(h.__assign(h.__assign(h.__assign({},Lt.createNode("mappingKey",e)),kt.createTrailingCommentAttachable()),Ln.createEndCommentAttachable()),{children:t?[t]:[]})},rr=Object.defineProperty({createMappingKey:nr},"__esModule",{value:!0});var or=function(e,t){return h.__assign(h.__assign(h.__assign(h.__assign({},Lt.createNode("mappingValue",e)),Yt.createCommentAttachable()),Ln.createEndCommentAttachable()),{children:t?[t]:[]})},ir=Object.defineProperty({createMappingValue:or},"__esModule",{value:!0});var sr=function(e,t,n,r,o){var i=t.transformNode(e.key),s=t.transformNode(e.value),a=i||r?rr.createMappingKey(t.transformRange({origStart:r?r.origStart:i.position.start.offset,origEnd:i?i.position.end.offset:r.origStart+1}),i):null,c=s||o?ir.createMappingValue(t.transformRange({origStart:o?o.origStart:s.position.start.offset,origEnd:s?s.position.end.offset:o.origStart+1}),s):null;return n(An.createPosition(a?a.position.start:c.position.start,c?c.position.end:a.position.end),a||rr.createMappingKey(An.createEmptyPosition(c.position.start),null),c||ir.createMappingValue(An.createEmptyPosition(a.position.end),null))},ar=Object.defineProperty({transformAstPair:sr},"__esModule",{value:!0});var cr=function(e,t){var n=Gn.extractComments(e.cstNode.items,t),r=tr.groupCstFlowCollectionItems(n),o=e.items.map((function(e,n){var o=r[n],i=zn.getFlowMapItemAdditionalRanges(o),s=i.additionalKeyRange,a=i.additionalValueRange;return ar.transformAstPair(e,t,qn.createFlowMappingItem,s,a)})),i=n[0],s=Cn.getLast(n);return Vn.createFlowMapping(t.transformRange({origStart:i.origOffset,origEnd:s.origOffset+1}),t.transformContent(e),o)},ur=Object.defineProperty({transformFlowMap:cr},"__esModule",{value:!0});var lr=function(e,t,n){return h.__assign(h.__assign({},Wn.createFlowCollection(e,t,n)),{type:"flowSequence"})},fr=Object.defineProperty({createFlowSequence:lr},"__esModule",{value:!0});var hr=function(e,t){return h.__assign(h.__assign({},Lt.createNode("flowSequenceItem",e)),{children:[t]})},pr=Object.defineProperty({createFlowSequenceItem:hr},"__esModule",{value:!0});var dr=function(e,t){var n=Gn.extractComments(e.cstNode.items,t),r=tr.groupCstFlowCollectionItems(n),o=e.items.map((function(e,n){if("PAIR"!==e.type){var o=t.transformNode(e);return pr.createFlowSequenceItem(An.createPosition(o.position.start,o.position.end),o)}var i=r[n],s=zn.getFlowMapItemAdditionalRanges(i),a=s.additionalKeyRange,c=s.additionalValueRange;return ar.transformAstPair(e,t,qn.createFlowMappingItem,a,c)})),i=n[0],s=Cn.getLast(n);return fr.createFlowSequence(t.transformRange({origStart:i.origOffset,origEnd:s.origOffset+1}),t.transformContent(e),o)},gr=Object.defineProperty({transformFlowSeq:dr},"__esModule",{value:!0});var mr=function(e,t,n){return h.__assign(h.__assign(h.__assign(h.__assign({},Lt.createNode("mapping",e)),Rt.createLeadingCommentAttachable()),t),{children:n})},yr=Object.defineProperty({createMapping:mr},"__esModule",{value:!0});var vr=function(e,t,n){return h.__assign(h.__assign(h.__assign({},Lt.createNode("mappingItem",e)),Rt.createLeadingCommentAttachable()),{children:[t,n]})},br=Object.defineProperty({createMappingItem:vr},"__esModule",{value:!0});var wr=function(e,t){var n=e.cstNode;n.items.filter((function(e){return"MAP_KEY"===e.type||"MAP_VALUE"===e.type})).forEach((function(e){return vn.extractPropComments(e,t)}));var r=function(e){for(var t=[],n=Xn.createSlicer(e,0),r=!1,o=0;o<e.length;o++){"MAP_VALUE"!==e[o].type?(r&&t.push(n(o)),r=!0):(t.push(n(o+1)),r=!1)}r&&t.push(n(1/0));return t}(Gn.extractComments(n.items,t)),o=e.items.map((function(e,n){var o=r[n],i="MAP_VALUE"===o[0].type?[null,o[0].range]:[o[0].range,1===o.length?null:o[1].range],s=i[0],a=i[1];return ar.transformAstPair(e,t,br.createMappingItem,s,a)}));return yr.createMapping(An.createPosition(o[0].position.start,Cn.getLast(o).position.end),t.transformContent(e),o)};var _r=Object.defineProperty({transformMap:wr},"__esModule",{value:!0});var Er=function(e,t,n){return h.__assign(h.__assign(h.__assign(h.__assign({},Lt.createNode("plain",e)),Yt.createCommentAttachable()),t),{value:n})},Sr=Object.defineProperty({createPlain:Er},"__esModule",{value:!0});var Or=function(e,t,n){for(var r=t;r>=0;r--)if(n.test(e[r]))return r;return-1},Ar=Object.defineProperty({findLastCharIndex:Or},"__esModule",{value:!0});var Mr=function(e,t){var n=e.cstNode;return Sr.createPlain(t.transformRange({origStart:n.valueRange.origStart,origEnd:Ar.findLastCharIndex(t.text,n.valueRange.origEnd-1,/\S/)+1}),t.transformContent(e),n.strValue)},Lr=Object.defineProperty({transformPlain:Mr},"__esModule",{value:!0});var Nr=function(e){return h.__assign(h.__assign({},e),{type:"quoteDouble"})},Tr=Object.defineProperty({createQuoteDouble:Nr},"__esModule",{value:!0});var Pr=function(e,t,n){return h.__assign(h.__assign(h.__assign(h.__assign({},Lt.createNode("quoteValue",e)),t),Yt.createCommentAttachable()),{value:n})},Cr=Object.defineProperty({createQuoteValue:Pr},"__esModule",{value:!0});var xr=function(e,t){var n=e.cstNode;return Cr.createQuoteValue(t.transformRange(n.valueRange),t.transformContent(e),n.strValue)},Rr=Object.defineProperty({transformAstQuoteValue:xr},"__esModule",{value:!0});var Ir=function(e,t){return Tr.createQuoteDouble(Rr.transformAstQuoteValue(e,t))},kr=Object.defineProperty({transformQuoteDouble:Ir},"__esModule",{value:!0});var Br=function(e){return h.__assign(h.__assign({},e),{type:"quoteSingle"})},Yr=Object.defineProperty({createQuoteSingle:Br},"__esModule",{value:!0});var jr=function(e,t){return Yr.createQuoteSingle(Rr.transformAstQuoteValue(e,t))},$r=Object.defineProperty({transformQuoteSingle:jr},"__esModule",{value:!0});var Dr=function(e,t,n){return h.__assign(h.__assign(h.__assign(h.__assign(h.__assign({},Lt.createNode("sequence",e)),Rt.createLeadingCommentAttachable()),Ln.createEndCommentAttachable()),t),{children:n})},Fr=Object.defineProperty({createSequence:Dr},"__esModule",{value:!0});var Ur=function(e,t){return h.__assign(h.__assign(h.__assign(h.__assign({},Lt.createNode("sequenceItem",e)),Yt.createCommentAttachable()),Ln.createEndCommentAttachable()),{children:t?[t]:[]})},Wr=Object.defineProperty({createSequenceItem:Ur},"__esModule",{value:!0});var Kr=function(e,t){var n=Gn.extractComments(e.cstNode.items,t).map((function(n,r){vn.extractPropComments(n,t);var o=t.transformNode(e.items[r]);return Wr.createSequenceItem(An.createPosition(t.transformOffset(n.valueRange.origStart),null===o?t.transformOffset(n.valueRange.origStart+1):o.position.end),o)}));return Fr.createSequence(An.createPosition(n[0].position.start,Cn.getLast(n).position.end),t.transformContent(e),n)},Vr=Object.defineProperty({transformSeq:Kr},"__esModule",{value:!0});var Qr=function(e,t){if(null===e||void 0===e.type&&null===e.value)return null;switch(e.type){case"ALIAS":return Ft.transformAlias(e,t);case"BLOCK_FOLDED":return cn.transformBlockFolded(e,t);case"BLOCK_LITERAL":return hn.transformBlockLiteral(e,t);case"COMMENT":return dn.transformComment(e,t);case"DIRECTIVE":return wn.transformDirective(e,t);case"DOCUMENT":return Fn.transformDocument(e,t);case"FLOW_MAP":return ur.transformFlowMap(e,t);case"FLOW_SEQ":return gr.transformFlowSeq(e,t);case"MAP":return _r.transformMap(e,t);case"PLAIN":return Lr.transformPlain(e,t);case"QUOTE_DOUBLE":return kr.transformQuoteDouble(e,t);case"QUOTE_SINGLE":return $r.transformQuoteSingle(e,t);case"SEQ":return Vr.transformSeq(e,t);default:throw new Error("Unexpected node type "+e.type)}},qr=Object.defineProperty({transformNode:Qr},"__esModule",{value:!0});var Jr=function(e,t,n){var r=new SyntaxError(e);return r.name="YAMLSyntaxError",r.source=t,r.position=n,r},Gr=Object.defineProperty({createError:Jr},"__esModule",{value:!0});var Hr=function(e,t){var n=e.source.range||e.source.valueRange;return Gr.createError(e.message,t.text,t.transformRange(n))},zr=Object.defineProperty({transformError:Hr},"__esModule",{value:!0});var Zr=function(e,t,n){return{offset:e,line:t,column:n}},Xr=Object.defineProperty({createPoint:Zr},"__esModule",{value:!0});var eo=function(e,t){e<0?e=0:e>t.text.length&&(e=t.text.length);var n=t.locator.locationForIndex(e);return Xr.createPoint(e,n.line+1,n.column+1)},to=Object.defineProperty({transformOffset:eo},"__esModule",{value:!0});var no=function(e,t){return An.createPosition(t.transformOffset(e.origStart),t.transformOffset(e.origEnd))},ro=Object.defineProperty({transformRange:no},"__esModule",{value:!0}),oo=!0;var io=function(e){if(!e.setOrigRanges()){var t=function(e){return function(e){return"number"==typeof e.start}(e)?(e.origStart=e.start,e.origEnd=e.end,oo):function(e){return"number"==typeof e.offset}(e)?(e.origOffset=e.offset,oo):void 0};e.forEach((function(e){return so(e,t)}))}};function so(e,t){if(e&&"object"==typeof e&&t(e)!==oo)for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];if("context"!==o&&"error"!==o){var i=e[o];Array.isArray(i)?i.forEach((function(e){return so(e,t)})):so(i,t)}}}var ao=Object.defineProperty({addOrigRange:io},"__esModule",{value:!0});var co=function e(t){if("children"in t){if(1===t.children.length){var n=t.children[0];if("plain"===n.type&&null===n.tag&&null===n.anchor&&""===n.value)return t.children.splice(0,1),t}t.children.forEach(e)}return t},uo=Object.defineProperty({removeFakeNodes:co},"__esModule",{value:!0});var lo=function(e,t,n,r){var o=t(e);return function(t){r(o,t)&&n(e,o=t)}},fo=Object.defineProperty({createUpdater:lo},"__esModule",{value:!0});var ho=function e(t){if(null!==t&&"children"in t){var n=t.children;if(n.forEach(e),"document"===t.type){var r=t.children,o=r[0],i=r[1];o.position.start.offset===o.position.end.offset?o.position.start=o.position.end=i.position.start:i.position.start.offset===i.position.end.offset&&(i.position.start=i.position.end=o.position.end)}var s=fo.createUpdater(t.position,po,go,vo),a=fo.createUpdater(t.position,mo,yo,bo);"endComments"in t&&0!==t.endComments.length&&(s(t.endComments[0].position.start),a(Cn.getLast(t.endComments).position.end));var c=n.filter((function(e){return null!==e}));if(0!==c.length){var u=c[0],l=Cn.getLast(c);s(u.position.start),a(l.position.end),"leadingComments"in u&&0!==u.leadingComments.length&&s(u.leadingComments[0].position.start),"tag"in u&&u.tag&&s(u.tag.position.start),"anchor"in u&&u.anchor&&s(u.anchor.position.start),"trailingComment"in l&&l.trailingComment&&a(l.trailingComment.position.end)}}};function po(e){return e.start}function go(e,t){e.start=t}function mo(e){return e.end}function yo(e,t){e.end=t}function vo(e,t){return t.offset<e.offset}function bo(e,t){return t.offset>e.offset}var wo=Object.defineProperty({updatePositions:ho},"__esModule",{value:!0});const _o={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},Eo={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"};function So(e){const t=[0];let n=e.indexOf("\n");for(;-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function Oo(e){let t,n;return"string"==typeof e?(t=So(e),n=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=So(e.context.src)),t=e.lineStarts,n=e.context.src)),{lineStarts:t,src:n}}function Ao(e,t){if("number"!=typeof e||e<0)return null;const{lineStarts:n,src:r}=Oo(t);if(!n||!r||e>r.length)return null;for(let t=0;t<n.length;++t){const r=n[t];if(e<r)return{line:t,col:e-n[t-1]+1};if(e===r)return{line:t+1,col:1}}const o=n.length;return{line:o,col:e-n[o-1]+1}}function Mo({start:e,end:t},n,r=80){let o=function(e,t){const{lineStarts:n,src:r}=Oo(t);if(!n||!(e>=1)||e>n.length)return null;const o=n[e-1];let i=n[e];for(;i&&i>o&&"\n"===r[i-1];)--i;return r.slice(o,i)}(e.line,n);if(!o)return null;let{col:i}=e;if(o.length>r)if(i<=r-10)o=o.substr(0,r-1)+"\u2026";else{const e=Math.round(r/2);o.length>i+e&&(o=o.substr(0,i+e-1)+"\u2026"),i-=o.length-r,o="\u2026"+o.substr(1-r)}let s=1,a="";t&&(t.line===e.line&&i+(t.col-e.col)<=r+1?s=t.col-e.col:(s=Math.min(o.length+1,r)-i,a="\u2026"));return`${o}\n${i>1?" ".repeat(i-1):""}${"^".repeat(s)}${a}`}class Lo{static copy(e){return new Lo(e.start,e.end)}constructor(e,t){this.start=e,this.end=t||e}isEmpty(){return"number"!=typeof this.start||!this.end||this.end<=this.start}setOrigRange(e,t){const{start:n,end:r}=this;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;let o=t;for(;o<e.length&&!(e[o]>n);)++o;this.origStart=n+o;const i=o;for(;o<e.length&&!(e[o]>=r);)++o;return this.origEnd=r+o,i}}class No{static addStringTerminator(e,t,n){if("\n"===n[n.length-1])return n;const r=No.endOfWhiteSpace(e,t);return r>=e.length||"\n"===e[r]?n+"\n":n}static atDocumentBoundary(e,t,n){const r=e[t];if(!r)return!0;const o=e[t-1];if(o&&"\n"!==o)return!1;if(n){if(r!==n)return!1}else if(r!==_o.DIRECTIVES_END&&r!==_o.DOCUMENT_END)return!1;const i=e[t+1],s=e[t+2];if(i!==r||s!==r)return!1;const a=e[t+3];return!a||"\n"===a||"\t"===a||" "===a}static endOfIdentifier(e,t){let n=e[t];const r="<"===n,o=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];for(;n&&-1===o.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}static endOfIndent(e,t){let n=e[t];for(;" "===n;)n=e[t+=1];return t}static endOfLine(e,t){let n=e[t];for(;n&&"\n"!==n;)n=e[t+=1];return t}static endOfWhiteSpace(e,t){let n=e[t];for(;"\t"===n||" "===n;)n=e[t+=1];return t}static startOfLine(e,t){let n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}static endOfBlockIndent(e,t,n){const r=No.endOfIndent(e,n);if(r>n+t)return r;{const t=No.endOfWhiteSpace(e,r),n=e[t];if(!n||"\n"===n)return t}return null}static atBlank(e,t,n){const r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}static nextNodeIsIndented(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}static normalizeOffset(e,t){const n=e[t];return n?"\n"!==n&&"\n"===e[t-1]?t-1:No.endOfWhiteSpace(e,t):t}static foldNewline(e,t,n){let r=0,o=!1,i="",s=e[t+1];for(;" "===s||"\t"===s||"\n"===s;){switch(s){case"\n":r=0,t+=1,i+="\n";break;case"\t":r<=n&&(o=!0),t=No.endOfWhiteSpace(e,t+2)-1;break;case" ":r+=1,t+=1}s=e[t+1]}return i||(i=" "),s&&r<=n&&(o=!0),{fold:i,offset:t,error:o}}constructor(e,t,n){Object.defineProperty(this,"context",{value:n||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=t||[],this.type=e,this.value=null}getPropValue(e,t,n){if(!this.context)return null;const{src:r}=this.context,o=this.props[e];return o&&r[o.start]===t?r.slice(o.start+(n?1:0),o.end):null}get anchor(){for(let e=0;e<this.props.length;++e){const t=this.getPropValue(e,_o.ANCHOR,!0);if(null!=t)return t}return null}get comment(){const e=[];for(let t=0;t<this.props.length;++t){const n=this.getPropValue(t,_o.COMMENT,!0);null!=n&&e.push(n)}return e.length>0?e.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return!1;if(!this.valueRange)return!1;const{end:n}=this.valueRange;return e!==n||No.atBlank(t,n-1)}get hasComment(){if(this.context){const{src:e}=this.context;for(let t=0;t<this.props.length;++t)if(e[this.props[t].start]===_o.COMMENT)return!0}return!1}get hasProps(){if(this.context){const{src:e}=this.context;for(let t=0;t<this.props.length;++t)if(e[this.props[t].start]!==_o.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return-1!==[Eo.FLOW_MAP,Eo.FLOW_SEQ,Eo.QUOTE_DOUBLE,Eo.QUOTE_SINGLE].indexOf(this.type)}get rangeAsLinePos(){if(!this.range||!this.context)return;const e=Ao(this.range.start,this.context.root);if(!e)return;return{start:e,end:Ao(this.range.end,this.context.root)}}get rawValue(){if(!this.valueRange||!this.context)return null;const{start:e,end:t}=this.valueRange;return this.context.src.slice(e,t)}get tag(){for(let e=0;e<this.props.length;++e){const t=this.getPropValue(e,_o.TAG,!1);if(null!=t){if("<"===t[1])return{verbatim:t.slice(2,-1)};{const[e,n,r]=t.match(/^(.*!)([^!]*)$/);return{handle:n,suffix:r}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;const{start:e,end:t}=this.valueRange,{src:n}=this.context;for(let r=e;r<t;++r)if("\n"===n[r])return!0;return!1}parseComment(e){const{src:t}=this.context;if(t[e]===_o.COMMENT){const n=No.endOfLine(t,e+1),r=new Lo(e,n);return this.props.push(r),n}return e}setOrigRanges(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach((n=>n.setOrigRange(e,t))),t}toString(){const{context:{src:e},range:t,value:n}=this;if(null!=n)return n;const r=e.slice(t.start,t.end);return No.addStringTerminator(e,t.end,r)}}class To extends Error{constructor(e,t,n){if(!(n&&t instanceof No))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=n,this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new Lo(this.offset,this.offset+1);const t=e&&Ao(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){const{line:t,col:n}=this.linePos.start;this.message+=` at line ${t}, column ${n}`;const r=e&&Mo(this.linePos,e);r&&(this.message+=`:\n\n${r}\n`)}delete this.source}}class Po extends To{constructor(e,t){super("YAMLSemanticError",e,t)}}class Co extends No{static endOfLine(e,t,n){let r=e[t],o=t;for(;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){const t=e[o+1];if(":"===r&&(!t||"\n"===t||"\t"===t||" "===t||n&&","===t))break;if((" "===r||"\t"===r)&&"#"===t)break;o+=1,r=t}return o}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:n}=this.context;let r=n[t-1];for(;e<t&&("\n"===r||"\t"===r||" "===r);)r=n[--t-1];let o="";for(let r=e;r<t;++r){const e=n[r];if("\n"===e){const{fold:e,offset:t}=No.foldNewline(n,r,-1);o+=e,r=t}else if(" "===e||"\t"===e){const i=r;let s=n[r+1];for(;r<t&&(" "===s||"\t"===s);)r+=1,s=n[r+1];"\n"!==s&&(o+=r>i?n.slice(i,r+1):e)}else o+=e}const i=n[e];switch(i){case"\t":return{errors:[new Po(this,"Plain value cannot start with a tab character")],str:o};case"@":case"`":return{errors:[new Po(this,`Plain value cannot start with reserved character ${i}`)],str:o};default:return o}}parseBlockValue(e){const{indent:t,inFlow:n,src:r}=this.context;let o=e,i=e;for(let e=r[o];"\n"===e&&!No.atDocumentBoundary(r,o+1);e=r[o]){const e=No.endOfBlockIndent(r,t,o+1);if(null===e||"#"===r[e])break;"\n"===r[e]?o=e:(i=Co.endOfLine(r,e,n),o=i)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=i,i}parse(e,t){this.context=e;const{inFlow:n,src:r}=e;let o=t;const i=r[o];return i&&"#"!==i&&"\n"!==i&&(o=Co.endOfLine(r,t,n)),this.valueRange=new Lo(t,o),o=No.endOfWhiteSpace(r,o),o=this.parseComment(o),this.hasComment&&!this.valueRange.isEmpty()||(o=this.parseBlockValue(o)),o}}var xo={Char:_o,Node:No,PlainValue:Co,Range:Lo,Type:Eo,YAMLError:To,YAMLReferenceError:class extends To{constructor(e,t){super("YAMLReferenceError",e,t)}},YAMLSemanticError:Po,YAMLSyntaxError:class extends To{constructor(e,t){super("YAMLSyntaxError",e,t)}},YAMLWarning:class extends To{constructor(e,t){super("YAMLWarning",e,t)}},_defineProperty:function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},defaultTagPrefix:"tag:yaml.org,2002:",defaultTags:{MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"}};class Ro extends xo.Node{constructor(){super(xo.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,t){return this.context=e,this.range=new xo.Range(t,t+1),t+1}}class Io extends xo.Node{constructor(e,t){super(e,t),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,t){this.context=e;const{parseNode:n,src:r}=e;let{atLineStart:o,lineStart:i}=e;o||this.type!==xo.Type.SEQ_ITEM||(this.error=new xo.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));const s=o?t-i:e.indent;let a=xo.Node.endOfWhiteSpace(r,t+1),c=r[a];const u="#"===c,l=[];let f=null;for(;"\n"===c||"#"===c;){if("#"===c){const e=xo.Node.endOfLine(r,a+1);l.push(new xo.Range(a,e)),a=e}else{o=!0,i=a+1;"\n"===r[xo.Node.endOfWhiteSpace(r,i)]&&0===l.length&&(f=new Ro,i=f.parse({src:r},i)),a=xo.Node.endOfIndent(r,i)}c=r[a]}if(xo.Node.nextNodeIsIndented(c,a-(i+s),this.type!==xo.Type.SEQ_ITEM)?this.node=n({atLineStart:o,inCollection:!1,indent:s,lineStart:i,parent:this},a):c&&i>t+1&&(a=i-1),this.node){if(f){const t=e.parent.items||e.parent.contents;t&&t.push(f)}l.length&&Array.prototype.push.apply(this.props,l),a=this.node.range.end}else if(u){const e=l[0];this.props.push(e),a=e.end}else a=xo.Node.endOfLine(r,t+1);const h=this.node?this.node.valueRange.end:a;return this.valueRange=new xo.Range(t,h),a}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:e},node:t,range:n,value:r}=this;if(null!=r)return r;const o=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return xo.Node.addStringTerminator(e,n.end,o)}}class ko extends xo.Node{constructor(){super(xo.Type.COMMENT)}parse(e,t){this.context=e;const n=this.parseComment(t);return this.range=new xo.Range(t,n),n}}function Bo(e){let t=e;for(;t instanceof Io;)t=t.node;if(!(t instanceof Yo))return null;const n=t.items.length;let r=-1;for(let e=n-1;e>=0;--e){const n=t.items[e];if(n.type===xo.Type.COMMENT){const{indent:t,lineStart:o}=n.context;if(t>0&&n.range.start>=o+t)break;r=e}else{if(n.type!==xo.Type.BLANK_LINE)break;r=e}}if(-1===r)return null;const o=t.items.splice(r,n-r),i=o[0].range.start;for(;t.range.end=i,t.valueRange&&t.valueRange.end>i&&(t.valueRange.end=i),t!==e;)t=t.context.parent;return o}class Yo extends xo.Node{static nextContentHasIndent(e,t,n){const r=xo.Node.endOfLine(e,t)+1,o=e[t=xo.Node.endOfWhiteSpace(e,r)];return!!o&&(t>=r+n||("#"===o||"\n"===o)&&Yo.nextContentHasIndent(e,t,n))}constructor(e){super(e.type===xo.Type.SEQ_ITEM?xo.Type.SEQ:xo.Type.MAP);for(let t=e.props.length-1;t>=0;--t)if(e.props[t].start<e.context.lineStart){this.props=e.props.slice(0,t+1),e.props=e.props.slice(t+1);const n=e.props[0]||e.valueRange;e.range.start=n.start;break}this.items=[e];const t=Bo(e);t&&Array.prototype.push.apply(this.items,t)}get includesTrailingLines(){return this.items.length>0}parse(e,t){this.context=e;const{parseNode:n,src:r}=e;let o=xo.Node.startOfLine(r,t);const i=this.items[0];i.context.parent=this,this.valueRange=xo.Range.copy(i.valueRange);const s=i.range.start-i.context.lineStart;let a=t;a=xo.Node.normalizeOffset(r,a);let c=r[a],u=xo.Node.endOfWhiteSpace(r,o)===a,l=!1;for(;c;){for(;"\n"===c||"#"===c;){if(u&&"\n"===c&&!l){const e=new Ro;if(a=e.parse({src:r},a),this.valueRange.end=a,a>=r.length){c=null;break}this.items.push(e),a-=1}else if("#"===c){if(a<o+s&&!Yo.nextContentHasIndent(r,a,s))return a;const e=new ko;if(a=e.parse({indent:s,lineStart:o,src:r},a),this.items.push(e),this.valueRange.end=a,a>=r.length){c=null;break}}if(o=a+1,a=xo.Node.endOfIndent(r,o),xo.Node.atBlank(r,a)){const e=xo.Node.endOfWhiteSpace(r,a),t=r[e];t&&"\n"!==t&&"#"!==t||(a=e)}c=r[a],u=!0}if(!c)break;if(a!==o+s&&(u||":"!==c)){if(a<o+s){o>t&&(a=o);break}if(!this.error){const e="All collection items must start at the same column";this.error=new xo.YAMLSyntaxError(this,e)}}if(i.type===xo.Type.SEQ_ITEM){if("-"!==c){o>t&&(a=o);break}}else if("-"===c&&!this.error){const e=r[a+1];if(!e||"\n"===e||"\t"===e||" "===e){const e="A collection cannot be both a mapping and a sequence";this.error=new xo.YAMLSyntaxError(this,e)}}const e=n({atLineStart:u,inCollection:!0,indent:s,lineStart:o,parent:this},a);if(!e)return a;if(this.items.push(e),this.valueRange.end=e.valueRange.end,a=xo.Node.normalizeOffset(r,e.range.end),c=r[a],u=!1,l=e.includesTrailingLines,c){let e=a-1,t=r[e];for(;" "===t||"\t"===t;)t=r[--e];"\n"===t&&(o=e+1,u=!0)}const f=Bo(e);f&&Array.prototype.push.apply(this.items,f)}return a}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach((n=>{t=n.setOrigRanges(e,t)})),t}toString(){const{context:{src:e},items:t,range:n,value:r}=this;if(null!=r)return r;let o=e.slice(n.start,t[0].range.start)+String(t[0]);for(let e=1;e<t.length;++e){const n=t[e],{atLineStart:r,indent:i}=n.context;if(r)for(let e=0;e<i;++e)o+=" ";o+=String(n)}return xo.Node.addStringTerminator(e,n.end,o)}}class jo extends xo.Node{constructor(){super(xo.Type.DIRECTIVE),this.name=null}get parameters(){const e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}parseName(e){const{src:t}=this.context;let n=e,r=t[n];for(;r&&"\n"!==r&&"\t"!==r&&" "!==r;)r=t[n+=1];return this.name=t.slice(e,n),n}parseParameters(e){const{src:t}=this.context;let n=e,r=t[n];for(;r&&"\n"!==r&&"#"!==r;)r=t[n+=1];return this.valueRange=new xo.Range(e,n),n}parse(e,t){this.context=e;let n=this.parseName(t+1);return n=this.parseParameters(n),n=this.parseComment(n),this.range=new xo.Range(t,n),n}}class $o extends xo.Node{static startCommentOrEndBlankLine(e,t){const n=xo.Node.endOfWhiteSpace(e,t),r=e[n];return"#"===r||"\n"===r?n:t}constructor(){super(xo.Type.DOCUMENT),this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null}parseDirectives(e){const{src:t}=this.context;this.directives=[];let n=!0,r=!1,o=e;for(;!xo.Node.atDocumentBoundary(t,o,xo.Char.DIRECTIVES_END);)switch(o=$o.startCommentOrEndBlankLine(t,o),t[o]){case"\n":if(n){const e=new Ro;o=e.parse({src:t},o),o<t.length&&this.directives.push(e)}else o+=1,n=!0;break;case"#":{const e=new ko;o=e.parse({src:t},o),this.directives.push(e),n=!1}break;case"%":{const e=new jo;o=e.parse({parent:this,src:t},o),this.directives.push(e),r=!0,n=!1}break;default:return r?this.error=new xo.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),o}return t[o]?(this.directivesEndMarker=new xo.Range(o,o+3),o+3):(r?this.error=new xo.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),o)}parseContents(e){const{parseNode:t,src:n}=this.context;this.contents||(this.contents=[]);let r=e;for(;"-"===n[r-1];)r-=1;let o=xo.Node.endOfWhiteSpace(n,e),i=r===e;for(this.valueRange=new xo.Range(o);!xo.Node.atDocumentBoundary(n,o,xo.Char.DOCUMENT_END);){switch(n[o]){case"\n":if(i){const e=new Ro;o=e.parse({src:n},o),o<n.length&&this.contents.push(e)}else o+=1,i=!0;r=o;break;case"#":{const e=new ko;o=e.parse({src:n},o),this.contents.push(e),i=!1}break;default:{const e=xo.Node.endOfIndent(n,o),s=t({atLineStart:i,indent:-1,inFlow:!1,inCollection:!1,lineStart:r,parent:this},e);if(!s)return this.valueRange.end=e;this.contents.push(s),o=s.range.end,i=!1;const a=Bo(s);a&&Array.prototype.push.apply(this.contents,a)}}o=$o.startCommentOrEndBlankLine(n,o)}if(this.valueRange.end=o,n[o]&&(this.documentEndMarker=new xo.Range(o,o+3),o+=3,n[o])){if(o=xo.Node.endOfWhiteSpace(n,o),"#"===n[o]){const e=new ko;o=e.parse({src:n},o),this.contents.push(e)}switch(n[o]){case"\n":o+=1;break;case void 0:break;default:this.error=new xo.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return o}parse(e,t){e.root=this,this.context=e;const{src:n}=e;let r=65279===n.charCodeAt(t)?t+1:t;return r=this.parseDirectives(r),r=this.parseContents(r),r}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.directives.forEach((n=>{t=n.setOrigRanges(e,t)})),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach((n=>{t=n.setOrigRanges(e,t)})),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}toString(){const{contents:e,directives:t,value:n}=this;if(null!=n)return n;let r=t.join("");return e.length>0&&((t.length>0||e[0].type===xo.Type.COMMENT)&&(r+="---\n"),r+=e.join("")),"\n"!==r[r.length-1]&&(r+="\n"),r}}class Do extends xo.Node{parse(e,t){this.context=e;const{src:n}=e;let r=xo.Node.endOfIdentifier(n,t+1);return this.valueRange=new xo.Range(t+1,r),r=xo.Node.endOfWhiteSpace(n,r),r=this.parseComment(r),r}}const Fo="CLIP",Uo="KEEP",Wo="STRIP";class Ko extends xo.Node{constructor(e,t){super(e,t),this.blockIndent=null,this.chomping=Fo,this.header=null}get includesTrailingLines(){return this.chomping===Uo}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{indent:n,src:r}=this.context;if(this.valueRange.isEmpty())return"";let o=null,i=r[t-1];for(;"\n"===i||"\t"===i||" "===i;){if(t-=1,t<=e){if(this.chomping===Uo)break;return""}"\n"===i&&(o=t),i=r[t-1]}let s=t+1;o&&(this.chomping===Uo?(s=o,t=this.valueRange.end):t=o);const a=n+this.blockIndent,c=this.type===xo.Type.BLOCK_FOLDED;let u=!0,l="",f="",h=!1;for(let n=e;n<t;++n){for(let e=0;e<a&&" "===r[n];++e)n+=1;const e=r[n];if("\n"===e)"\n"===f?l+="\n":f="\n";else{const o=xo.Node.endOfLine(r,n),i=r.slice(n,o);n=o,c&&(" "===e||"\t"===e)&&n<s?(" "===f?f="\n":h||u||"\n"!==f||(f="\n\n"),l+=f+i,f=o<t&&r[o]||"",h=!0):(l+=f+i,f=c&&n<s?" ":"\n",h=!1),u&&""!==i&&(u=!1)}}return this.chomping===Wo?l:l+"\n"}parseBlockHeader(e){const{src:t}=this.context;let n=e+1,r="";for(;;){const o=t[n];switch(o){case"-":this.chomping=Wo;break;case"+":this.chomping=Uo;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r+=o;break;default:return this.blockIndent=Number(r)||null,this.header=new xo.Range(e,n),n}n+=1}}parseBlockValue(e){const{indent:t,src:n}=this.context,r=!!this.blockIndent;let o=e,i=e,s=1;for(let e=n[o];"\n"===e&&(o+=1,!xo.Node.atDocumentBoundary(n,o));e=n[o]){const e=xo.Node.endOfBlockIndent(n,t,o);if(null===e)break;const a=n[e],c=e-(o+t);if(this.blockIndent){if(a&&"\n"!==a&&c<this.blockIndent){if("#"===n[e])break;if(!this.error){const e=`Block scalars must not be less indented than their ${r?"explicit indentation indicator":"first line"}`;this.error=new xo.YAMLSemanticError(this,e)}}}else if("\n"!==n[e]){if(c<s){const e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";this.error=new xo.YAMLSemanticError(this,e)}this.blockIndent=c}else c>s&&(s=c);o="\n"===n[e]?e:i=xo.Node.endOfLine(n,e)}return this.chomping!==Uo&&(o=n[i]?i+1:i),this.valueRange=new xo.Range(e+1,o),o}parse(e,t){this.context=e;const{src:n}=e;let r=this.parseBlockHeader(t);return r=xo.Node.endOfWhiteSpace(n,r),r=this.parseComment(r),r=this.parseBlockValue(r),r}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.header?this.header.setOrigRange(e,t):t}}class Vo extends xo.Node{constructor(e,t){super(e,t),this.items=null}prevNodeIsJsonLike(e=this.items.length){const t=this.items[e-1];return!!t&&(t.jsonLike||t.type===xo.Type.COMMENT&&this.prevNodeIsJsonLike(e-1))}parse(e,t){this.context=e;const{parseNode:n,src:r}=e;let{indent:o,lineStart:i}=e,s=r[t];this.items=[{char:s,offset:t}];let a=xo.Node.endOfWhiteSpace(r,t+1);for(s=r[a];s&&"]"!==s&&"}"!==s;){switch(s){case"\n":i=a+1;if("\n"===r[xo.Node.endOfWhiteSpace(r,i)]){const e=new Ro;i=e.parse({src:r},i),this.items.push(e)}if(a=xo.Node.endOfIndent(r,i),a<=i+o&&(s=r[a],a<i+o||"]"!==s&&"}"!==s)){const e="Insufficient indentation in flow collection";this.error=new xo.YAMLSemanticError(this,e)}break;case",":this.items.push({char:s,offset:a}),a+=1;break;case"#":{const e=new ko;a=e.parse({src:r},a),this.items.push(e)}break;case"?":case":":{const e=r[a+1];if("\n"===e||"\t"===e||" "===e||","===e||":"===s&&this.prevNodeIsJsonLike()){this.items.push({char:s,offset:a}),a+=1;break}}default:{const e=n({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:i,parent:this},a);if(!e)return this.valueRange=new xo.Range(t,a),a;this.items.push(e),a=xo.Node.normalizeOffset(r,e.range.end)}}a=xo.Node.endOfWhiteSpace(r,a),s=r[a]}return this.valueRange=new xo.Range(t,a+1),s&&(this.items.push({char:s,offset:a}),a=xo.Node.endOfWhiteSpace(r,a+1),a=this.parseComment(a)),a}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach((n=>{if(n instanceof xo.Node)t=n.setOrigRanges(e,t);else if(0===e.length)n.origOffset=n.offset;else{let r=t;for(;r<e.length&&!(e[r]>n.offset);)++r;n.origOffset=n.offset+r,t=r}})),t}toString(){const{context:{src:e},items:t,range:n,value:r}=this;if(null!=r)return r;const o=t.filter((e=>e instanceof xo.Node));let i="",s=n.start;return o.forEach((t=>{const n=e.slice(s,t.range.start);s=t.range.end,i+=n+String(t),"\n"===i[i.length-1]&&"\n"!==e[s-1]&&"\n"===e[s]&&(s+=1)})),i+=e.slice(s,n.end),xo.Node.addStringTerminator(e,n.end,i)}}class Qo extends xo.Node{static endOfQuote(e,t){let n=e[t];for(;n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[],{start:t,end:n}=this.valueRange,{indent:r,src:o}=this.context;'"'!==o[n-1]&&e.push(new xo.YAMLSyntaxError(this,'Missing closing "quote'));let i="";for(let s=t+1;s<n-1;++s){const t=o[s];if("\n"===t){xo.Node.atDocumentBoundary(o,s+1)&&e.push(new xo.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));const{fold:t,offset:n,error:a}=xo.Node.foldNewline(o,s,r);i+=t,s=n,a&&e.push(new xo.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===t)switch(s+=1,o[s]){case"0":i+="\0";break;case"a":i+="\x07";break;case"b":i+="\b";break;case"e":i+="\x1b";break;case"f":i+="\f";break;case"n":i+="\n";break;case"r":i+="\r";break;case"t":i+="\t";break;case"v":i+="\v";break;case"N":i+="\x85";break;case"_":i+="\xa0";break;case"L":i+="\u2028";break;case"P":i+="\u2029";break;case" ":i+=" ";break;case'"':i+='"';break;case"/":i+="/";break;case"\\":i+="\\";break;case"\t":i+="\t";break;case"x":i+=this.parseCharCode(s+1,2,e),s+=2;break;case"u":i+=this.parseCharCode(s+1,4,e),s+=4;break;case"U":i+=this.parseCharCode(s+1,8,e),s+=8;break;case"\n":for(;" "===o[s+1]||"\t"===o[s+1];)s+=1;break;default:e.push(new xo.YAMLSyntaxError(this,`Invalid escape sequence ${o.substr(s-1,2)}`)),i+="\\"+o[s]}else if(" "===t||"\t"===t){const e=s;let n=o[s+1];for(;" "===n||"\t"===n;)s+=1,n=o[s+1];"\n"!==n&&(i+=s>e?o.slice(e,s+1):t)}else i+=t}return e.length>0?{errors:e,str:i}:i}parseCharCode(e,t,n){const{src:r}=this.context,o=r.substr(e,t),i=o.length===t&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;return isNaN(i)?(n.push(new xo.YAMLSyntaxError(this,`Invalid escape sequence ${r.substr(e-2,t+2)}`)),r.substr(e-2,t+2)):String.fromCodePoint(i)}parse(e,t){this.context=e;const{src:n}=e;let r=Qo.endOfQuote(n,t+1);return this.valueRange=new xo.Range(t,r),r=xo.Node.endOfWhiteSpace(n,r),r=this.parseComment(r),r}}class qo extends xo.Node{static endOfQuote(e,t){let n=e[t];for(;n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[],{start:t,end:n}=this.valueRange,{indent:r,src:o}=this.context;"'"!==o[n-1]&&e.push(new xo.YAMLSyntaxError(this,"Missing closing 'quote"));let i="";for(let s=t+1;s<n-1;++s){const t=o[s];if("\n"===t){xo.Node.atDocumentBoundary(o,s+1)&&e.push(new xo.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));const{fold:t,offset:n,error:a}=xo.Node.foldNewline(o,s,r);i+=t,s=n,a&&e.push(new xo.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===t)i+=t,s+=1,"'"!==o[s]&&e.push(new xo.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(" "===t||"\t"===t){const e=s;let n=o[s+1];for(;" "===n||"\t"===n;)s+=1,n=o[s+1];"\n"!==n&&(i+=s>e?o.slice(e,s+1):t)}else i+=t}return e.length>0?{errors:e,str:i}:i}parse(e,t){this.context=e;const{src:n}=e;let r=qo.endOfQuote(n,t+1);return this.valueRange=new xo.Range(t,r),r=xo.Node.endOfWhiteSpace(n,r),r=this.parseComment(r),r}}class Jo{static parseType(e,t,n){switch(e[t]){case"*":return xo.Type.ALIAS;case">":return xo.Type.BLOCK_FOLDED;case"|":return xo.Type.BLOCK_LITERAL;case"{":return xo.Type.FLOW_MAP;case"[":return xo.Type.FLOW_SEQ;case"?":return!n&&xo.Node.atBlank(e,t+1,!0)?xo.Type.MAP_KEY:xo.Type.PLAIN;case":":return!n&&xo.Node.atBlank(e,t+1,!0)?xo.Type.MAP_VALUE:xo.Type.PLAIN;case"-":return!n&&xo.Node.atBlank(e,t+1,!0)?xo.Type.SEQ_ITEM:xo.Type.PLAIN;case'"':return xo.Type.QUOTE_DOUBLE;case"'":return xo.Type.QUOTE_SINGLE;default:return xo.Type.PLAIN}}constructor(e={},{atLineStart:t,inCollection:n,inFlow:r,indent:o,lineStart:i,parent:s}={}){xo._defineProperty(this,"parseNode",((e,t)=>{if(xo.Node.atDocumentBoundary(this.src,t))return null;const n=new Jo(this,e),{props:r,type:o,valueStart:i}=n.parseProps(t),s=function(e,t){switch(e){case xo.Type.ALIAS:return new Do(e,t);case xo.Type.BLOCK_FOLDED:case xo.Type.BLOCK_LITERAL:return new Ko(e,t);case xo.Type.FLOW_MAP:case xo.Type.FLOW_SEQ:return new Vo(e,t);case xo.Type.MAP_KEY:case xo.Type.MAP_VALUE:case xo.Type.SEQ_ITEM:return new Io(e,t);case xo.Type.COMMENT:case xo.Type.PLAIN:return new xo.PlainValue(e,t);case xo.Type.QUOTE_DOUBLE:return new Qo(e,t);case xo.Type.QUOTE_SINGLE:return new qo(e,t);default:return null}}(o,r);let a=s.parse(n,i);if(s.range=new xo.Range(t,a),a<=t&&(s.error=new Error("Node#parse consumed no characters"),s.error.parseEnd=a,s.error.source=s,s.range.end=t+1),n.nodeStartsCollection(s)){s.error||n.atLineStart||n.parent.type!==xo.Type.DOCUMENT||(s.error=new xo.YAMLSyntaxError(s,"Block collection must not have preceding content here (e.g. directives-end indicator)"));const e=new Yo(s);return a=e.parse(new Jo(n),a),e.range=new xo.Range(t,a),e}return s})),this.atLineStart=null!=t?t:e.atLineStart||!1,this.inCollection=null!=n?n:e.inCollection||!1,this.inFlow=null!=r?r:e.inFlow||!1,this.indent=null!=o?o:e.indent,this.lineStart=null!=i?i:e.lineStart,this.parent=null!=s?s:e.parent||{},this.root=e.root,this.src=e.src}nodeStartsCollection(e){const{inCollection:t,inFlow:n,src:r}=this;if(t||n)return!1;if(e instanceof Io)return!0;let o=e.range.end;return"\n"!==r[o]&&"\n"!==r[o-1]&&(o=xo.Node.endOfWhiteSpace(r,o),":"===r[o])}parseProps(e){const{inFlow:t,parent:n,src:r}=this,o=[];let i=!1,s=r[e=this.atLineStart?xo.Node.endOfIndent(r,e):xo.Node.endOfWhiteSpace(r,e)];for(;s===xo.Char.ANCHOR||s===xo.Char.COMMENT||s===xo.Char.TAG||"\n"===s;){if("\n"===s){let t,o=e;do{t=o+1,o=xo.Node.endOfIndent(r,t)}while("\n"===r[o]);const s=o-(t+this.indent),a=n.type===xo.Type.SEQ_ITEM&&n.context.atLineStart;if("#"!==r[o]&&!xo.Node.nextNodeIsIndented(r[o],s,!a))break;this.atLineStart=!0,this.lineStart=t,i=!1,e=o}else if(s===xo.Char.COMMENT){const t=xo.Node.endOfLine(r,e+1);o.push(new xo.Range(e,t)),e=t}else{let t=xo.Node.endOfIdentifier(r,e+1);s===xo.Char.TAG&&","===r[t]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(r.slice(e+1,t+13))&&(t=xo.Node.endOfIdentifier(r,t+5)),o.push(new xo.Range(e,t)),i=!0,e=xo.Node.endOfWhiteSpace(r,t)}s=r[e]}i&&":"===s&&xo.Node.atBlank(r,e+1,!0)&&(e-=1);return{props:o,type:Jo.parseType(r,e,t),valueStart:e}}}var Go={parse:function(e){const t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,((e,n)=>(e.length>1&&t.push(n),"\n"))));const n=[];let r=0;do{const t=new $o,o=new Jo({src:e});r=t.parse(o,r),n.push(t)}while(r<e.length);return n.setOrigRanges=()=>{if(0===t.length)return!1;for(let e=1;e<t.length;++e)t[e]-=e;let e=0;for(let r=0;r<n.length;++r)e=n[r].setOrigRanges(t,e);return t.splice(0,t.length),!0},n.toString=()=>n.join("...\n"),n}};function Ho(e,t,n){return n?-1===n.indexOf("\n")?`${e} #${n}`:`${e}\n`+n.replace(/^/gm,`${t||""}#`):e}class zo{}function Zo(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>Zo(e,String(t),n)));if(e&&"function"==typeof e.toJSON){const r=n&&n.anchors&&n.anchors.get(e);r&&(n.onCreate=e=>{r.res=e,delete n.onCreate});const o=e.toJSON(t,n);return r&&n.onCreate&&n.onCreate(o),o}return n&&n.keep||"bigint"!=typeof e?e:Number(e)}class Xo extends zo{constructor(e){super(),this.value=e}toJSON(e,t){return t&&t.keep?this.value:Zo(this.value,e,t)}toString(){return String(this.value)}}function ei(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if(Number.isInteger(n)&&n>=0){const e=[];e[n]=r,r=e}else{const e={};Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=e}}return e.createNode(r,!1)}const ti=e=>null==e||"object"==typeof e&&e[Symbol.iterator]().next().done;class ni extends zo{constructor(e){super(),xo._defineProperty(this,"items",[]),this.schema=e}addIn(e,t){if(ti(e))this.add(t);else{const[n,...r]=e,o=this.get(n,!0);if(o instanceof ni)o.addIn(r,t);else{if(void 0!==o||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,ei(this.schema,r,t))}}}deleteIn([e,...t]){if(0===t.length)return this.delete(e);const n=this.get(e,!0);if(n instanceof ni)return n.deleteIn(t);throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}getIn([e,...t],n){const r=this.get(e,!0);return 0===t.length?!n&&r instanceof Xo?r.value:r:r instanceof ni?r.getIn(t,n):void 0}hasAllNullValues(){return this.items.every((e=>{if(!e||"PAIR"!==e.type)return!1;const t=e.value;return null==t||t instanceof Xo&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag}))}hasIn([e,...t]){if(0===t.length)return this.has(e);const n=this.get(e,!0);return n instanceof ni&&n.hasIn(t)}setIn([e,...t],n){if(0===t.length)this.set(e,n);else{const r=this.get(e,!0);if(r instanceof ni)r.setIn(t,n);else{if(void 0!==r||!this.schema)throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`);this.set(e,ei(this.schema,t,n))}}}toJSON(){return null}toString(e,{blockItem:t,flowChars:n,isMap:r,itemIndent:o},i,s){const{indent:a,indentStep:c,stringify:u}=e,l=this.type===xo.Type.FLOW_MAP||this.type===xo.Type.FLOW_SEQ||e.inFlow;l&&(o+=c);const f=r&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:f,indent:o,inFlow:l,type:null});let h=!1,p=!1;const d=this.items.reduce(((t,n,r)=>{let i;n&&(!h&&n.spaceBefore&&t.push({type:"comment",str:""}),n.commentBefore&&n.commentBefore.match(/^.*$/gm).forEach((e=>{t.push({type:"comment",str:`#${e}`})})),n.comment&&(i=n.comment),l&&(!h&&n.spaceBefore||n.commentBefore||n.comment||n.key&&(n.key.commentBefore||n.key.comment)||n.value&&(n.value.commentBefore||n.value.comment))&&(p=!0)),h=!1;let s=u(n,e,(()=>i=null),(()=>h=!0));return l&&!p&&s.includes("\n")&&(p=!0),l&&r<this.items.length-1&&(s+=","),s=Ho(s,o,i),h&&(i||l)&&(h=!1),t.push({type:"item",str:s}),t}),[]);let g;if(0===d.length)g=n.start+n.end;else if(l){const{start:e,end:t}=n,r=d.map((e=>e.str));if(p||r.reduce(((e,t)=>e+t.length+2),2)>ni.maxFlowStringSingleLineLength){g=e;for(const e of r)g+=e?`\n${c}${a}${e}`:"\n";g+=`\n${a}${t}`}else g=`${e} ${r.join(" ")} ${t}`}else{const e=d.map(t);g=e.shift();for(const t of e)g+=t?`\n${a}${t}`:"\n"}return this.comment?(g+="\n"+this.comment.replace(/^/gm,`${a}#`),i&&i()):h&&s&&s(),g}}function ri(e){let t=e instanceof Xo?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}xo._defineProperty(ni,"maxFlowStringSingleLineLength",60);class oi extends ni{add(e){this.items.push(e)}delete(e){const t=ri(e);if("number"!=typeof t)return!1;return this.items.splice(t,1).length>0}get(e,t){const n=ri(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&r instanceof Xo?r.value:r}has(e){const t=ri(e);return"number"==typeof t&&t<this.items.length}set(e,t){const n=ri(e);if("number"!=typeof n)throw new Error(`Expected a valid index, not ${e}.`);this.items[n]=t}toJSON(e,t){const n=[];t&&t.onCreate&&t.onCreate(n);let r=0;for(const e of this.items)n.push(Zo(e,String(r++),t));return n}toString(e,t,n){return e?super.toString(e,{blockItem:e=>"comment"===e.type?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},t,n):JSON.stringify(this)}}class ii extends zo{constructor(e,t=null){super(),this.key=e,this.value=t,this.type=ii.Type.PAIR}get commentBefore(){return this.key instanceof zo?this.key.commentBefore:void 0}set commentBefore(e){if(null==this.key&&(this.key=new Xo(null)),!(this.key instanceof zo)){throw new Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.")}this.key.commentBefore=e}addToJSMap(e,t){const n=Zo(this.key,"",e);if(t instanceof Map){const r=Zo(this.value,n,e);t.set(n,r)}else if(t instanceof Set)t.add(n);else{const r=((e,t,n)=>null===t?"":"object"!=typeof t?String(t):e instanceof zo&&n&&n.doc?e.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(t))(this.key,n,e),o=Zo(this.value,r,e);r in t?Object.defineProperty(t,r,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[r]=o}return t}toJSON(e,t){const n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}toString(e,t,n){if(!e||!e.doc)return JSON.stringify(this);const{indent:r,indentSeq:o,simpleKeys:i}=e.doc.options;let{key:s,value:a}=this,c=s instanceof zo&&s.comment;if(i){if(c)throw new Error("With simple keys, key nodes cannot have comments");if(s instanceof ni){throw new Error("With simple keys, collection cannot be used as a key value")}}let u=!i&&(!s||c||(s instanceof zo?s instanceof ni||s.type===xo.Type.BLOCK_FOLDED||s.type===xo.Type.BLOCK_LITERAL:"object"==typeof s));const{doc:l,indent:f,indentStep:h,stringify:p}=e;e=Object.assign({},e,{implicitKey:!u,indent:f+h});let d=!1,g=p(s,e,(()=>c=null),(()=>d=!0));if(g=Ho(g,e.indent,c),!u&&g.length>1024){if(i)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");u=!0}if(e.allNullValues&&!i)return this.comment?(g=Ho(g,e.indent,this.comment),t&&t()):d&&!c&&n&&n(),e.inFlow&&!u?g:`? ${g}`;g=u?`? ${g}\n${f}:`:`${g}:`,this.comment&&(g=Ho(g,e.indent,this.comment),t&&t());let m="",y=null;if(a instanceof zo){if(a.spaceBefore&&(m="\n"),a.commentBefore){m+=`\n${a.commentBefore.replace(/^/gm,`${e.indent}#`)}`}y=a.comment}else a&&"object"==typeof a&&(a=l.schema.createNode(a,!0));e.implicitKey=!1,!u&&!this.comment&&a instanceof Xo&&(e.indentAtStart=g.length+1),d=!1,!o&&r>=2&&!e.inFlow&&!u&&a instanceof oi&&a.type!==xo.Type.FLOW_SEQ&&!a.tag&&!l.anchors.getName(a)&&(e.indent=e.indent.substr(2));const v=p(a,e,(()=>y=null),(()=>d=!0));let b=" ";if(m||this.comment)b=`${m}\n${e.indent}`;else if(!u&&a instanceof ni){("["===v[0]||"{"===v[0])&&!v.includes("\n")||(b=`\n${e.indent}`)}else"\n"===v[0]&&(b="");return d&&!y&&n&&n(),Ho(g+b+v,e.indent,y)}}xo._defineProperty(ii,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});const si=(e,t)=>{if(e instanceof ai){const n=t.get(e.source);return n.count*n.aliasCount}if(e instanceof ni){let n=0;for(const r of e.items){const e=si(r,t);e>n&&(n=e)}return n}if(e instanceof ii){const n=si(e.key,t),r=si(e.value,t);return Math.max(n,r)}return 1};class ai extends zo{static stringify({range:e,source:t},{anchors:n,doc:r,implicitKey:o,inStringifyKey:i}){let s=Object.keys(n).find((e=>n[e]===t));if(!s&&i&&(s=r.anchors.getName(t)||r.anchors.newName()),s)return`*${s}${o?" ":""}`;const a=r.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${a} [${e}]`)}constructor(e){super(),this.source=e,this.type=xo.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,t){if(!t)return Zo(this.source,e,t);const{anchors:n,maxAliasCount:r}=t,o=n.get(this.source);if(!o||void 0===o.res){const e="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new xo.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}if(r>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=si(this.source,n)),o.count*o.aliasCount>r)){const e="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new xo.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}return o.res}toString(e){return ai.stringify(this,e)}}function ci(e,t){const n=t instanceof Xo?t.value:t;for(const r of e)if(r instanceof ii){if(r.key===t||r.key===n)return r;if(r.key&&r.key.value===n)return r}}xo._defineProperty(ai,"default",!0);class ui extends ni{add(e,t){e?e instanceof ii||(e=new ii(e.key||e,e.value)):e=new ii(e);const n=ci(this.items,e.key),r=this.schema&&this.schema.sortMapEntries;if(n){if(!t)throw new Error(`Key ${e.key} already set`);n.value=e.value}else if(r){const t=this.items.findIndex((t=>r(e,t)<0));-1===t?this.items.push(e):this.items.splice(t,0,e)}else this.items.push(e)}delete(e){const t=ci(this.items,e);if(!t)return!1;return this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=ci(this.items,e),r=n&&n.value;return!t&&r instanceof Xo?r.value:r}has(e){return!!ci(this.items,e)}set(e,t){this.add(new ii(e,t),!0)}toJSON(e,t,n){const r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);for(const e of this.items)e.addToJSMap(t,r);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!(e instanceof ii))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,n)}}class li extends ii{constructor(e){if(e instanceof ii){let t=e.value;t instanceof oi||(t=new oi,t.items.push(e.value),t.range=e.value.range),super(e.key,t),this.range=e.range}else super(new Xo("<<"),new oi);this.type=ii.Type.MERGE_PAIR}addToJSMap(e,t){for(const{source:n}of this.value.items){if(!(n instanceof ui))throw new Error("Merge sources must be maps");const r=n.toJSON(null,e,Map);for(const[e,n]of r)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}return t}toString(e,t){const n=this.value;if(n.items.length>1)return super.toString(e,t);this.value=n.items[0];const r=super.toString(e,t);return this.value=n,r}}const fi={defaultType:xo.Type.BLOCK_LITERAL,lineWidth:76},hi={defaultType:xo.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function pi(e,t,n){for(const{format:n,test:r,resolve:o}of t)if(r){const t=e.match(r);if(t){let e=o.apply(null,t);return e instanceof Xo||(e=new Xo(e)),n&&(e.format=n),e}}return n&&(e=n(e)),new Xo(e)}const di="flow",gi="block",mi="quoted",yi=(e,t)=>{let n=e[t+1];for(;" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t};function vi(e,t,n,{indentAtStart:r,lineWidth:o=80,minContentWidth:i=20,onFold:s,onOverflow:a}){if(!o||o<0)return e;const c=Math.max(1+i,1+o-t.length);if(e.length<=c)return e;const u=[],l={};let f,h,p=o-t.length;"number"==typeof r&&(r>o-Math.max(2,i)?u.push(0):p=o-r);let d,g=!1,m=-1,y=-1,v=-1;for(n===gi&&(m=yi(e,m),-1!==m&&(p=m+c));d=e[m+=1];){if(n===mi&&"\\"===d){switch(y=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}v=m}if("\n"===d)n===gi&&(m=yi(e,m)),p=m+c,f=void 0;else{if(" "===d&&h&&" "!==h&&"\n"!==h&&"\t"!==h){const t=e[m+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(f=m)}if(m>=p)if(f)u.push(f),p=f+c,f=void 0;else if(n===mi){for(;" "===h||"\t"===h;)h=d,d=e[m+=1],g=!0;const t=m>v+1?m-2:y-1;if(l[t])return e;u.push(t),l[t]=!0,p=t+c,f=void 0}else g=!0}h=d}if(g&&a&&a(),0===u.length)return e;s&&s();let b=e.slice(0,u[0]);for(let r=0;r<u.length;++r){const o=u[r],i=u[r+1]||e.length;0===o?b=`\n${t}${e.slice(0,i)}`:(n===mi&&l[o]&&(b+=`${e[o]}\\`),b+=`\n${t}${e.slice(o+1,i)}`)}return b}const bi=({indentAtStart:e})=>e?Object.assign({indentAtStart:e},hi.fold):hi.fold,wi=e=>/^(%|---|\.\.\.)/m.test(e);function _i(e,t){const{implicitKey:n}=t,{jsonEncoding:r,minMultiLineLength:o}=hi.doubleQuoted,i=JSON.stringify(e);if(r)return i;const s=t.indent||(wi(e)?" ":"");let a="",c=0;for(let e=0,t=i[e];t;t=i[++e])if(" "===t&&"\\"===i[e+1]&&"n"===i[e+2]&&(a+=i.slice(c,e)+"\\ ",e+=1,c=e,t="\\"),"\\"===t)switch(i[e+1]){case"u":{a+=i.slice(c,e);const t=i.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:"00"===t.substr(0,2)?a+="\\x"+t.substr(2):a+=i.substr(e,6)}e+=5,c=e+1}break;case"n":if(n||'"'===i[e+2]||i.length<o)e+=1;else{for(a+=i.slice(c,e)+"\n\n";"\\"===i[e+2]&&"n"===i[e+3]&&'"'!==i[e+4];)a+="\n",e+=2;a+=s," "===i[e+2]&&(a+="\\"),e+=1,c=e+1}break;default:e+=1}return a=c?a+i.slice(c):i,n?a:vi(a,s,mi,bi(t))}function Ei(e,t){if(t.implicitKey){if(/\n/.test(e))return _i(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return _i(e,t);const n=t.indent||(wi(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${n}`)+"'";return t.implicitKey?r:vi(r,n,di,bi(t))}function Si({comment:e,type:t,value:n},r,o,i){if(/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return _i(n,r);const s=r.indent||(r.forceBlockIndent||wi(n)?" ":""),a=s?"2":"1",c=t!==xo.Type.BLOCK_FOLDED&&(t===xo.Type.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;const r=t-n,o=e.length;if(o<=r)return!1;for(let t=0,n=0;t<o;++t)if("\n"===e[t]){if(t-n>r)return!0;if(n=t+1,o-n<=r)return!1}return!0}(n,hi.fold.lineWidth,s.length));let u=c?"|":">";if(!n)return u+"\n";let l="",f="";if(n=n.replace(/[\n\t ]*$/,(e=>{const t=e.indexOf("\n");return-1===t?u+="-":n!==e&&t===e.length-1||(u+="+",i&&i()),f=e.replace(/\n$/,""),""})).replace(/^[\n ]*/,(e=>{-1!==e.indexOf(" ")&&(u+=a);const t=e.match(/ +$/);return t?(l=e.slice(0,-t[0].length),t[0]):(l=e,"")})),f&&(f=f.replace(/\n+(?!\n|$)/g,`$&${s}`)),l&&(l=l.replace(/\n+/g,`$&${s}`)),e&&(u+=" #"+e.replace(/ ?[\r\n]+/g," "),o&&o()),!n)return`${u}${a}\n${s}${f}`;if(c)return n=n.replace(/\n+/g,`$&${s}`),`${u}\n${s}${l}${n}${f}`;n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${s}`);const h=vi(`${l}${n}${f}`,s,gi,hi.fold);return`${u}\n${s}${h}`}function Oi(e,t){let n,r,o;switch(t.type){case xo.Type.FLOW_MAP:n="}",r="flow map";break;case xo.Type.FLOW_SEQ:n="]",r="flow sequence";break;default:return void e.push(new xo.YAMLSemanticError(t,"Not a flow collection!?"))}for(let e=t.items.length-1;e>=0;--e){const n=t.items[e];if(!n||n.type!==xo.Type.COMMENT){o=n;break}}if(o&&o.char!==n){const i=`Expected ${r} to end with ${n}`;let s;"number"==typeof o.offset?(s=new xo.YAMLSemanticError(t,i),s.offset=o.offset+1):(s=new xo.YAMLSemanticError(o,i),o.range&&o.range.end&&(s.offset=o.range.end-o.range.start)),e.push(s)}}function Ai(e,t){const n=t.context.src[t.range.start-1];if("\n"!==n&&"\t"!==n&&" "!==n){const n="Comments must be separated from other tokens by white space characters";e.push(new xo.YAMLSemanticError(t,n))}}function Mi(e,t){const n=String(t),r=n.substr(0,8)+"..."+n.substr(-8);return new xo.YAMLSemanticError(e,`The "${r}" key is too long`)}function Li(e,t){for(const{afterKey:n,before:r,comment:o}of t){let t=e.items[r];t?(n&&t.value&&(t=t.value),void 0===o?!n&&t.commentBefore||(t.spaceBefore=!0):t.commentBefore?t.commentBefore+="\n"+o:t.commentBefore=o):void 0!==o&&(e.comment?e.comment+="\n"+o:e.comment=o)}}function Ni(e,t){const n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach((n=>{n.source||(n.source=t),e.errors.push(n)})),n.str):""}function Ti(e,t){const{tag:n,type:r}=t;let o=!1;if(n){const{handle:r,suffix:i,verbatim:s}=n;if(s){if("!"!==s&&"!!"!==s)return s;const n=`Verbatim tags aren't resolved, so ${s} is invalid.`;e.errors.push(new xo.YAMLSemanticError(t,n))}else if("!"!==r||i)try{return function(e,t){const{handle:n,suffix:r}=t.tag;let o=e.tagPrefixes.find((e=>e.handle===n));if(!o){const r=e.getDefaults().tagPrefixes;if(r&&(o=r.find((e=>e.handle===n))),!o)throw new xo.YAMLSemanticError(t,`The ${n} tag handle is non-default and was not declared.`)}if(!r)throw new xo.YAMLSemanticError(t,`The ${n} tag has no suffix.`);if("!"===n&&"1.0"===(e.version||e.options.version)){if("^"===r[0])return e.warnings.push(new xo.YAMLWarning(t,"YAML 1.0 ^ tag expansion is not supported")),r;if(/[:/]/.test(r)){const e=r.match(/^([a-z0-9-]+)\/(.*)/i);return e?`tag:${e[1]}.yaml.org,2002:${e[2]}`:`tag:${r}`}}return o.prefix+decodeURIComponent(r)}(e,t)}catch(t){e.errors.push(t)}else o=!0}switch(r){case xo.Type.BLOCK_FOLDED:case xo.Type.BLOCK_LITERAL:case xo.Type.QUOTE_DOUBLE:case xo.Type.QUOTE_SINGLE:return xo.defaultTags.STR;case xo.Type.FLOW_MAP:case xo.Type.MAP:return xo.defaultTags.MAP;case xo.Type.FLOW_SEQ:case xo.Type.SEQ:return xo.defaultTags.SEQ;case xo.Type.PLAIN:return o?xo.defaultTags.STR:null;default:return null}}function Pi(e,t,n){const{tags:r}=e.schema,o=[];for(const i of r)if(i.tag===n){if(!i.test){const n=i.resolve(e,t);return n instanceof ni?n:new Xo(n)}o.push(i)}const i=Ni(e,t);return"string"==typeof i&&o.length>0?pi(i,o,r.scalarFallback):null}function Ci(e,t,n){try{const r=Pi(e,t,n);if(r)return n&&t.tag&&(r.tag=n),r}catch(n){return n.source||(n.source=t),e.errors.push(n),null}try{const r=function({type:e}){switch(e){case xo.Type.FLOW_MAP:case xo.Type.MAP:return xo.defaultTags.MAP;case xo.Type.FLOW_SEQ:case xo.Type.SEQ:return xo.defaultTags.SEQ;default:return xo.defaultTags.STR}}(t);if(!r)throw new Error(`The tag ${n} is unavailable`);const o=`The tag ${n} is unavailable, falling back to ${r}`;e.warnings.push(new xo.YAMLWarning(t,o));const i=Pi(e,t,r);return i.tag=n,i}catch(n){const r=new xo.YAMLReferenceError(t,n.message);return r.stack=n.stack,e.errors.push(r),null}}function xi(e,t){const n={before:[],after:[]};let r=!1,o=!1;const i=(e=>{if(!e)return!1;const{type:t}=e;return t===xo.Type.MAP_KEY||t===xo.Type.MAP_VALUE||t===xo.Type.SEQ_ITEM})(t.context.parent)?t.context.parent.props.concat(t.props):t.props;for(const{start:s,end:a}of i)switch(t.context.src[s]){case xo.Char.COMMENT:{if(!t.commentHasRequiredWhitespace(s)){const n="Comments must be separated from other tokens by white space characters";e.push(new xo.YAMLSemanticError(t,n))}const{header:r,valueRange:o}=t;(o&&(s>o.start||r&&s>r.start)?n.after:n.before).push(t.context.src.slice(s+1,a));break}case xo.Char.ANCHOR:if(r){const n="A node can have at most one anchor";e.push(new xo.YAMLSemanticError(t,n))}r=!0;break;case xo.Char.TAG:if(o){const n="A node can have at most one tag";e.push(new xo.YAMLSemanticError(t,n))}o=!0}return{comments:n,hasAnchor:r,hasTag:o}}function Ri(e,t){if(!t)return null;t.error&&e.errors.push(t.error);const{comments:n,hasAnchor:r,hasTag:o}=xi(e.errors,t);if(r){const{anchors:n}=e,r=t.anchor,o=n.getNode(r);o&&(n.map[n.newName(r)]=o),n.map[r]=t}if(t.type===xo.Type.ALIAS&&(r||o)){const n="An alias node must not specify any properties";e.errors.push(new xo.YAMLSemanticError(t,n))}const i=function(e,t){const{anchors:n,errors:r,schema:o}=e;if(t.type===xo.Type.ALIAS){const e=t.rawValue,o=n.getNode(e);if(!o){const n=`Aliased anchor not found: ${e}`;return r.push(new xo.YAMLReferenceError(t,n)),null}const i=new ai(o);return n._cstAliases.push(i),i}const i=Ti(e,t);if(i)return Ci(e,t,i);if(t.type!==xo.Type.PLAIN){const e=`Failed to resolve ${t.type} node here`;return r.push(new xo.YAMLSyntaxError(t,e)),null}try{return pi(Ni(e,t),o.tags,o.tags.scalarFallback)}catch(e){return e.source||(e.source=t),r.push(e),null}}(e,t);if(i){i.range=[t.range.start,t.range.end],e.options.keepCstNodes&&(i.cstNode=t),e.options.keepNodeTypes&&(i.type=t.type);const r=n.before.join("\n");r&&(i.commentBefore=i.commentBefore?`${i.commentBefore}\n${r}`:r);const o=n.after.join("\n");o&&(i.comment=i.comment?`${i.comment}\n${o}`:o)}return t.resolved=i}function Ii(e,t){if(!(({context:{lineStart:e,node:t,src:n},props:r})=>{if(0===r.length)return!1;const{start:o}=r[0];if(t&&o>t.valueRange.start)return!1;if(n[o]!==xo.Char.COMMENT)return!1;for(let t=e;t<o;++t)if("\n"===n[t])return!1;return!0})(e))return;const n=e.getPropValue(0,xo.Char.COMMENT,!0);let r=!1;const o=t.value.commentBefore;if(o&&o.startsWith(n))t.value.commentBefore=o.substr(n.length+1),r=!0;else{const o=t.value.comment;!e.node&&o&&o.startsWith(n)&&(t.value.comment=o.substr(n.length+1),r=!0)}r&&(t.comment=n)}var ki={Alias:ai,Collection:ni,Merge:li,Node:zo,Pair:ii,Scalar:Xo,YAMLMap:ui,YAMLSeq:oi,addComment:Ho,binaryOptions:fi,boolOptions:{trueStr:"true",falseStr:"false"},findPair:ci,intOptions:{asBigInt:!1},isEmptyPath:ti,nullOptions:{nullStr:"null"},resolveMap:function(e,t){if(t.type!==xo.Type.MAP&&t.type!==xo.Type.FLOW_MAP){const n=`A ${t.type} node cannot be resolved as a mapping`;return e.errors.push(new xo.YAMLSyntaxError(t,n)),null}const{comments:n,items:r}=t.type===xo.Type.FLOW_MAP?function(e,t){const n=[],r=[];let o,i=!1,s="{";for(let a=0;a<t.items.length;++a){const c=t.items[a];if("string"==typeof c.char){const{char:n,offset:u}=c;if("?"===n&&void 0===o&&!i){i=!0,s=":";continue}if(":"===n){if(void 0===o&&(o=null),":"===s){s=",";continue}}else if(i&&(void 0===o&&","!==n&&(o=null),i=!1),void 0!==o&&(r.push(new ii(o)),o=void 0,","===n)){s=":";continue}if("}"===n){if(a===t.items.length-1)continue}else if(n===s){s=":";continue}const l=`Flow map contains an unexpected ${n}`,f=new xo.YAMLSyntaxError(t,l);f.offset=u,e.errors.push(f)}else c.type===xo.Type.BLANK_LINE?n.push({afterKey:!!o,before:r.length}):c.type===xo.Type.COMMENT?(Ai(e.errors,c),n.push({afterKey:!!o,before:r.length,comment:c.comment})):void 0===o?(","===s&&e.errors.push(new xo.YAMLSemanticError(c,"Separator , missing in flow map")),o=Ri(e,c)):(","!==s&&e.errors.push(new xo.YAMLSemanticError(c,"Indicator : missing in flow map entry")),r.push(new ii(o,Ri(e,c))),o=void 0,i=!1)}Oi(e.errors,t),void 0!==o&&r.push(new ii(o));return{comments:n,items:r}}(e,t):function(e,t){const n=[],r=[];let o,i=null;for(let s=0;s<t.items.length;++s){const a=t.items[s];switch(a.type){case xo.Type.BLANK_LINE:n.push({afterKey:!!o,before:r.length});break;case xo.Type.COMMENT:n.push({afterKey:!!o,before:r.length,comment:a.comment});break;case xo.Type.MAP_KEY:void 0!==o&&r.push(new ii(o)),a.error&&e.errors.push(a.error),o=Ri(e,a.node),i=null;break;case xo.Type.MAP_VALUE:{if(void 0===o&&(o=null),a.error&&e.errors.push(a.error),!a.context.atLineStart&&a.node&&a.node.type===xo.Type.MAP&&!a.node.context.atLineStart){const t="Nested mappings are not allowed in compact mappings";e.errors.push(new xo.YAMLSemanticError(a.node,t))}let n=a.node;if(!n&&a.props.length>0){n=new xo.PlainValue(xo.Type.PLAIN,[]),n.context={parent:a,src:a.context.src};const e=a.range.start+1;if(n.range={start:e,end:e},n.valueRange={start:e,end:e},"number"==typeof a.range.origStart){const e=a.range.origStart+1;n.range.origStart=n.range.origEnd=e,n.valueRange.origStart=n.valueRange.origEnd=e}}const s=new ii(o,Ri(e,n));Ii(a,s),r.push(s),o&&"number"==typeof i&&a.range.start>i+1024&&e.errors.push(Mi(t,o)),o=void 0,i=null}break;default:void 0!==o&&r.push(new ii(o)),o=Ri(e,a),i=a.range.start,a.error&&e.errors.push(a.error);e:for(let n=s+1;;++n){const r=t.items[n];switch(r&&r.type){case xo.Type.BLANK_LINE:case xo.Type.COMMENT:continue e;case xo.Type.MAP_VALUE:break e;default:{const t="Implicit map keys need to be followed by map values";e.errors.push(new xo.YAMLSemanticError(a,t));break e}}}if(a.valueRangeContainsNewline){const t="Implicit map keys need to be on a single line";e.errors.push(new xo.YAMLSemanticError(a,t))}}}void 0!==o&&r.push(new ii(o));return{comments:n,items:r}}(e,t),o=new ui;o.items=r,Li(o,n);let i=!1;for(let n=0;n<r.length;++n){const{key:o}=r[n];if(o instanceof ni&&(i=!0),e.schema.merge&&o&&"<<"===o.value){r[n]=new li(r[n]);const o=r[n].value.items;let i=null;o.some((e=>{if(e instanceof ai){const{type:t}=e.source;return t!==xo.Type.MAP&&t!==xo.Type.FLOW_MAP&&(i="Merge nodes aliases can only point to maps")}return i="Merge nodes can only have Alias nodes as values"})),i&&e.errors.push(new xo.YAMLSemanticError(t,i))}else for(let i=n+1;i<r.length;++i){const{key:n}=r[i];if(o===n||o&&n&&Object.prototype.hasOwnProperty.call(o,"value")&&o.value===n.value){const n=`Map keys must be unique; "${o}" is repeated`;e.errors.push(new xo.YAMLSemanticError(t,n));break}}}if(i&&!e.options.mapAsMap){const n="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new xo.YAMLWarning(t,n))}return t.resolved=o,o},resolveNode:Ri,resolveSeq:function(e,t){if(t.type!==xo.Type.SEQ&&t.type!==xo.Type.FLOW_SEQ){const n=`A ${t.type} node cannot be resolved as a sequence`;return e.errors.push(new xo.YAMLSyntaxError(t,n)),null}const{comments:n,items:r}=t.type===xo.Type.FLOW_SEQ?function(e,t){const n=[],r=[];let o,i=!1,s=null,a="[",c=null;for(let u=0;u<t.items.length;++u){const l=t.items[u];if("string"==typeof l.char){const{char:n,offset:f}=l;if(":"===n||!i&&void 0===o||(i&&void 0===o&&(o=a?r.pop():null),r.push(new ii(o)),i=!1,o=void 0,s=null),n===a)a=null;else if(a||"?"!==n){if("["!==a&&":"===n&&void 0===o){if(","===a){if(o=r.pop(),o instanceof ii){const n="Chaining flow sequence pairs is invalid",r=new xo.YAMLSemanticError(t,n);r.offset=f,e.errors.push(r)}if(!i&&"number"==typeof s){const n=l.range?l.range.start:l.offset;n>s+1024&&e.errors.push(Mi(t,o));const{src:r}=c.context;for(let t=s;t<n;++t)if("\n"===r[t]){const t="Implicit keys of flow sequence pairs need to be on a single line";e.errors.push(new xo.YAMLSemanticError(c,t));break}}}else o=null;s=null,i=!1,a=null}else if("["===a||"]"!==n||u<t.items.length-1){const r=`Flow sequence contains an unexpected ${n}`,o=new xo.YAMLSyntaxError(t,r);o.offset=f,e.errors.push(o)}}else i=!0}else if(l.type===xo.Type.BLANK_LINE)n.push({before:r.length});else if(l.type===xo.Type.COMMENT)Ai(e.errors,l),n.push({comment:l.comment,before:r.length});else{if(a){const t=`Expected a ${a} in flow sequence`;e.errors.push(new xo.YAMLSemanticError(l,t))}const t=Ri(e,l);void 0===o?(r.push(t),c=l):(r.push(new ii(o,t)),o=void 0),s=l.range.start,a=","}}Oi(e.errors,t),void 0!==o&&r.push(new ii(o));return{comments:n,items:r}}(e,t):function(e,t){const n=[],r=[];for(let o=0;o<t.items.length;++o){const i=t.items[o];switch(i.type){case xo.Type.BLANK_LINE:n.push({before:r.length});break;case xo.Type.COMMENT:n.push({comment:i.comment,before:r.length});break;case xo.Type.SEQ_ITEM:if(i.error&&e.errors.push(i.error),r.push(Ri(e,i.node)),i.hasProps){const t="Sequence items cannot have tags or anchors before the - indicator";e.errors.push(new xo.YAMLSemanticError(i,t))}break;default:i.error&&e.errors.push(i.error),e.errors.push(new xo.YAMLSyntaxError(i,`Unexpected ${i.type} node in sequence`))}}return{comments:n,items:r}}(e,t),o=new oi;if(o.items=r,Li(o,n),!e.options.mapAsMap&&r.some((e=>e instanceof ii&&e.key instanceof ni))){const n="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new xo.YAMLWarning(t,n))}return t.resolved=o,o},resolveString:Ni,strOptions:hi,stringifyNumber:function({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let o=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(o)){let e=o.indexOf(".");e<0&&(e=o.length,o+=".");let n=t-(o.length-e-1);for(;n-- >0;)o+="0"}return o},stringifyString:function(e,t,n,r){const{defaultType:o}=hi,{implicitKey:i,inFlow:s}=t;let{type:a,value:c}=e;"string"!=typeof c&&(c=String(c),e=Object.assign({},e,{value:c}));const u=o=>{switch(o){case xo.Type.BLOCK_FOLDED:case xo.Type.BLOCK_LITERAL:return Si(e,t,n,r);case xo.Type.QUOTE_DOUBLE:return _i(c,t);case xo.Type.QUOTE_SINGLE:return Ei(c,t);case xo.Type.PLAIN:return function(e,t,n,r){const{comment:o,type:i,value:s}=e,{actualString:a,implicitKey:c,indent:u,inFlow:l}=t;if(c&&/[\n[\]{},]/.test(s)||l&&/[[\]{},]/.test(s))return _i(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return c||l||-1===s.indexOf("\n")?-1!==s.indexOf('"')&&-1===s.indexOf("'")?Ei(s,t):_i(s,t):Si(e,t,n,r);if(!c&&!l&&i!==xo.Type.PLAIN&&-1!==s.indexOf("\n"))return Si(e,t,n,r);if(""===u&&wi(s))return t.forceBlockIndent=!0,Si(e,t,n,r);const f=s.replace(/\n+/g,`$&\n${u}`);if(a){const{tags:e}=t.doc.schema;if("string"!=typeof pi(f,e,e.scalarFallback).value)return _i(s,t)}const h=c?f:vi(f,u,di,bi(t));return!o||l||-1===h.indexOf("\n")&&-1===o.indexOf("\n")?h:(n&&n(),function(e,t,n){return n?`#${n.replace(/[\s\S]^/gm,`$&${t}#`)}\n${t}${e}`:e}(h,u,o))}(e,t,n,r);default:return null}};a!==xo.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(c)?a=xo.Type.QUOTE_DOUBLE:!i&&!s||a!==xo.Type.BLOCK_FOLDED&&a!==xo.Type.BLOCK_LITERAL||(a=xo.Type.QUOTE_DOUBLE);let l=u(a);if(null===l&&(l=u(o),null===l))throw new Error(`Unsupported default string type ${o}`);return l},toJSON:Zo},Bi=void 0!==Bi?Bi:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Yi=[],ji=[],$i="undefined"!=typeof Uint8Array?Uint8Array:Array,Di=!1;function Fi(){Di=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)Yi[t]=e[t],ji[e.charCodeAt(t)]=t;ji["-".charCodeAt(0)]=62,ji["_".charCodeAt(0)]=63}function Ui(e,t,n){for(var r,o,i=[],s=t;s<n;s+=3)r=(e[s]<<16)+(e[s+1]<<8)+e[s+2],i.push(Yi[(o=r)>>18&63]+Yi[o>>12&63]+Yi[o>>6&63]+Yi[63&o]);return i.join("")}function Wi(e){var t;Di||Fi();for(var n=e.length,r=n%3,o="",i=[],s=16383,a=0,c=n-r;a<c;a+=s)i.push(Ui(e,a,a+s>c?c:a+s));return 1===r?(t=e[n-1],o+=Yi[t>>2],o+=Yi[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=Yi[t>>10],o+=Yi[t>>4&63],o+=Yi[t<<2&63],o+="="),i.push(o),i.join("")}function Ki(e,t,n,r,o){var i,s,a=8*o-r-1,c=(1<<a)-1,u=c>>1,l=-7,f=n?o-1:0,h=n?-1:1,p=e[t+f];for(f+=h,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+e[t+f],f+=h,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=r;l>0;s=256*s+e[t+f],f+=h,l-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),i-=u}return(p?-1:1)*s*Math.pow(2,i-r)}function Vi(e,t,n,r,o,i){var s,a,c,u=8*i-o-1,l=(1<<u)-1,f=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,d=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+f>=1?h/c:h*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*c-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[n+p]=255&a,p+=d,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;e[n+p]=255&s,p+=d,s/=256,u-=8);e[n+p-d]|=128*g}var Qi={}.toString,qi=Array.isArray||function(e){return"[object Array]"==Qi.call(e)};function Ji(){return Hi.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Gi(e,t){if(Ji()<t)throw new RangeError("Invalid typed array length");return Hi.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Hi.prototype:(null===e&&(e=new Hi(t)),e.length=t),e}function Hi(e,t,n){if(!(Hi.TYPED_ARRAY_SUPPORT||this instanceof Hi))return new Hi(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 Xi(this,e)}return zi(this,e,t,n)}function zi(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);Hi.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Hi.prototype:e=es(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!Hi.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|rs(t,n),o=(e=Gi(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(ns(t)){var n=0|ts(t.length);return 0===(e=Gi(e,n)).length||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?Gi(e,0):es(e,t);if("Buffer"===t.type&&qi(t.data))return es(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Zi(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 Xi(e,t){if(Zi(t),e=Gi(e,t<0?0:0|ts(t)),!Hi.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function es(e,t){var n=t.length<0?0:0|ts(t.length);e=Gi(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function ts(e){if(e>=Ji())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ji().toString(16)+" bytes");return 0|e}function ns(e){return!(null==e||!e._isBuffer)}function rs(e,t){if(ns(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 Ps(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Cs(e).length;default:if(r)return Ps(e).length;t=(""+t).toLowerCase(),r=!0}}function os(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 bs(this,t,n);case"utf8":case"utf-8":return gs(this,t,n);case"ascii":return ys(this,t,n);case"latin1":case"binary":return vs(this,t,n);case"base64":return ds(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ws(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function is(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function ss(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=Hi.from(t,r)),ns(t))return 0===t.length?-1:as(e,t,n,r,o);if("number"==typeof t)return t&=255,Hi.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):as(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function as(e,t,n,r,o){var i,s=1,a=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var l=-1;for(i=n;i<a;i++)if(u(e,i)===u(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===c)return l*s}else-1!==l&&(i-=i-l),l=-1}else for(n+c>a&&(n=a-c),i=n;i>=0;i--){for(var f=!0,h=0;h<c;h++)if(u(e,i+h)!==u(t,h)){f=!1;break}if(f)return i}return-1}function cs(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function us(e,t,n,r){return xs(Ps(t,e.length-n),e,n,r)}function ls(e,t,n,r){return xs(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function fs(e,t,n,r){return ls(e,t,n,r)}function hs(e,t,n,r){return xs(Cs(t),e,n,r)}function ps(e,t,n,r){return xs(function(e,t){for(var n,r,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function ds(e,t,n){return 0===t&&n===e.length?Wi(e):Wi(e.slice(t,n))}function gs(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,s,a,c,u=e[o],l=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=n)switch(f){case 1:u<128&&(l=u);break;case 2:128==(192&(i=e[o+1]))&&(c=(31&u)<<6|63&i)>127&&(l=c);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(c=(15&u)<<12|(63&i)<<6|63&s)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(c=(15&u)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=ms)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=ms));return n}(r)}Hi.TYPED_ARRAY_SUPPORT=void 0===Bi.TYPED_ARRAY_SUPPORT||Bi.TYPED_ARRAY_SUPPORT,Hi.poolSize=8192,Hi._augment=function(e){return e.__proto__=Hi.prototype,e},Hi.from=function(e,t,n){return zi(null,e,t,n)},Hi.TYPED_ARRAY_SUPPORT&&(Hi.prototype.__proto__=Uint8Array.prototype,Hi.__proto__=Uint8Array),Hi.alloc=function(e,t,n){return function(e,t,n,r){return Zi(t),t<=0?Gi(e,t):void 0!==n?"string"==typeof r?Gi(e,t).fill(n,r):Gi(e,t).fill(n):Gi(e,t)}(null,e,t,n)},Hi.allocUnsafe=function(e){return Xi(null,e)},Hi.allocUnsafeSlow=function(e){return Xi(null,e)},Hi.isBuffer=function(e){return null!=e&&(!!e._isBuffer||Rs(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Rs(e.slice(0,0))}(e))},Hi.compare=function(e,t){if(!ns(e)||!ns(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},Hi.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}},Hi.concat=function(e,t){if(!qi(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Hi.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=Hi.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(!ns(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o),o+=i.length}return r},Hi.byteLength=rs,Hi.prototype._isBuffer=!0,Hi.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)is(this,t,t+1);return this},Hi.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)is(this,t,t+3),is(this,t+1,t+2);return this},Hi.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)is(this,t,t+7),is(this,t+1,t+6),is(this,t+2,t+5),is(this,t+3,t+4);return this},Hi.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?gs(this,0,e):os.apply(this,arguments)},Hi.prototype.equals=function(e){if(!ns(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Hi.compare(this,e)},Hi.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+">"},Hi.prototype.compare=function(e,t,n,r,o){if(!ns(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(i,s),c=this.slice(r,o),u=e.slice(t,n),l=0;l<a;++l)if(c[l]!==u[l]){i=c[l],s=u[l];break}return i<s?-1:s<i?1:0},Hi.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},Hi.prototype.indexOf=function(e,t,n){return ss(this,e,t,n,!0)},Hi.prototype.lastIndexOf=function(e,t,n){return ss(this,e,t,n,!1)},Hi.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 i=!1;;)switch(r){case"hex":return cs(this,e,t,n);case"utf8":case"utf-8":return us(this,e,t,n);case"ascii":return ls(this,e,t,n);case"latin1":case"binary":return fs(this,e,t,n);case"base64":return hs(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ps(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},Hi.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ms=4096;function ys(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 vs(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 bs(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=Ts(e[i]);return o}function ws(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function _s(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 Es(e,t,n,r,o,i){if(!ns(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function Ss(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function Os(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function As(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Ms(e,t,n,r,o){return o||As(e,0,n,4),Vi(e,t,n,r,23,4),n+4}function Ls(e,t,n,r,o){return o||As(e,0,n,8),Vi(e,t,n,r,52,8),n+8}Hi.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),Hi.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=Hi.prototype;else{var o=t-e;n=new Hi(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},Hi.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||_s(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},Hi.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||_s(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},Hi.prototype.readUInt8=function(e,t){return t||_s(e,1,this.length),this[e]},Hi.prototype.readUInt16LE=function(e,t){return t||_s(e,2,this.length),this[e]|this[e+1]<<8},Hi.prototype.readUInt16BE=function(e,t){return t||_s(e,2,this.length),this[e]<<8|this[e+1]},Hi.prototype.readUInt32LE=function(e,t){return t||_s(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Hi.prototype.readUInt32BE=function(e,t){return t||_s(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Hi.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||_s(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},Hi.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||_s(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},Hi.prototype.readInt8=function(e,t){return t||_s(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Hi.prototype.readInt16LE=function(e,t){t||_s(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Hi.prototype.readInt16BE=function(e,t){t||_s(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Hi.prototype.readInt32LE=function(e,t){return t||_s(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Hi.prototype.readInt32BE=function(e,t){return t||_s(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Hi.prototype.readFloatLE=function(e,t){return t||_s(e,4,this.length),Ki(this,e,!0,23,4)},Hi.prototype.readFloatBE=function(e,t){return t||_s(e,4,this.length),Ki(this,e,!1,23,4)},Hi.prototype.readDoubleLE=function(e,t){return t||_s(e,8,this.length),Ki(this,e,!0,52,8)},Hi.prototype.readDoubleBE=function(e,t){return t||_s(e,8,this.length),Ki(this,e,!1,52,8)},Hi.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Es(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},Hi.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Es(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},Hi.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Es(this,e,t,1,255,0),Hi.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Hi.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Es(this,e,t,2,65535,0),Hi.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Ss(this,e,t,!0),t+2},Hi.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Es(this,e,t,2,65535,0),Hi.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Ss(this,e,t,!1),t+2},Hi.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Es(this,e,t,4,4294967295,0),Hi.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Os(this,e,t,!0),t+4},Hi.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Es(this,e,t,4,4294967295,0),Hi.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Os(this,e,t,!1),t+4},Hi.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);Es(this,e,t,n,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},Hi.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);Es(this,e,t,n,o-1,-o)}var i=n-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},Hi.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Es(this,e,t,1,127,-128),Hi.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Hi.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Es(this,e,t,2,32767,-32768),Hi.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Ss(this,e,t,!0),t+2},Hi.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Es(this,e,t,2,32767,-32768),Hi.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Ss(this,e,t,!1),t+2},Hi.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Es(this,e,t,4,2147483647,-2147483648),Hi.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Os(this,e,t,!0),t+4},Hi.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Es(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Hi.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Os(this,e,t,!1),t+4},Hi.prototype.writeFloatLE=function(e,t,n){return Ms(this,e,t,!0,n)},Hi.prototype.writeFloatBE=function(e,t,n){return Ms(this,e,t,!1,n)},Hi.prototype.writeDoubleLE=function(e,t,n){return Ls(this,e,t,!0,n)},Hi.prototype.writeDoubleBE=function(e,t,n){return Ls(this,e,t,!1,n)},Hi.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,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!Hi.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},Hi.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&&!Hi.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 i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=ns(e)?e:Ps(new Hi(e,r).toString()),a=s.length;for(i=0;i<n-t;++i)this[i+t]=s[i%a]}return this};var Ns=/[^+\/0-9A-Za-z-_]/g;function Ts(e){return e<16?"0"+e.toString(16):e.toString(16)}function Ps(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function Cs(e){return function(e){var t,n,r,o,i,s;Di||Fi();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[a-2]?2:"="===e[a-1]?1:0,s=new $i(3*a/4-i),r=i>0?a-4:a;var c=0;for(t=0,n=0;t<r;t+=4,n+=3)o=ji[e.charCodeAt(t)]<<18|ji[e.charCodeAt(t+1)]<<12|ji[e.charCodeAt(t+2)]<<6|ji[e.charCodeAt(t+3)],s[c++]=o>>16&255,s[c++]=o>>8&255,s[c++]=255&o;return 2===i?(o=ji[e.charCodeAt(t)]<<2|ji[e.charCodeAt(t+1)]>>4,s[c++]=255&o):1===i&&(o=ji[e.charCodeAt(t)]<<10|ji[e.charCodeAt(t+1)]<<4|ji[e.charCodeAt(t+2)]>>2,s[c++]=o>>8&255,s[c++]=255&o),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Ns,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function xs(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 Rs(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function Is(){throw new Error("setTimeout has not been defined")}function ks(){throw new Error("clearTimeout has not been defined")}var Bs=Is,Ys=ks;function js(e){if(Bs===setTimeout)return setTimeout(e,0);if((Bs===Is||!Bs)&&setTimeout)return Bs=setTimeout,setTimeout(e,0);try{return Bs(e,0)}catch(t){try{return Bs.call(null,e,0)}catch(t){return Bs.call(this,e,0)}}}"function"==typeof Bi.setTimeout&&(Bs=setTimeout),"function"==typeof Bi.clearTimeout&&(Ys=clearTimeout);var $s,Ds=[],Fs=!1,Us=-1;function Ws(){Fs&&$s&&(Fs=!1,$s.length?Ds=$s.concat(Ds):Us=-1,Ds.length&&Ks())}function Ks(){if(!Fs){var e=js(Ws);Fs=!0;for(var t=Ds.length;t;){for($s=Ds,Ds=[];++Us<t;)$s&&$s[Us].run();Us=-1,t=Ds.length}$s=null,Fs=!1,function(e){if(Ys===clearTimeout)return clearTimeout(e);if((Ys===ks||!Ys)&&clearTimeout)return Ys=clearTimeout,clearTimeout(e);try{Ys(e)}catch(t){try{return Ys.call(null,e)}catch(t){return Ys.call(this,e)}}}(e)}}function Vs(e,t){this.fun=e,this.array=t}Vs.prototype.run=function(){this.fun.apply(null,this.array)};function Qs(){}var qs=Qs,Js=Qs,Gs=Qs,Hs=Qs,zs=Qs,Zs=Qs,Xs=Qs;var ea=Bi.performance||{},ta=ea.now||ea.mozNow||ea.msNow||ea.oNow||ea.webkitNow||function(){return(new Date).getTime()};var na=new Date;var ra={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Ds.push(new Vs(e,t)),1!==Ds.length||Fs||js(Ks)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:qs,addListener:Js,once:Gs,off:Hs,removeListener:zs,removeAllListeners:Zs,emit:Xs,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*ta.call(ea),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-na)/1e3}};const oa={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{const n=ki.resolveString(e,t);return Hi.from(n,"base64")},options:ki.binaryOptions,stringify:({comment:e,type:t,value:n},r,o,i)=>{let s;if(s=n instanceof Hi?n.toString("base64"):Hi.from(n.buffer).toString("base64"),t||(t=ki.binaryOptions.defaultType),t===xo.Type.QUOTE_DOUBLE)n=s;else{const{lineWidth:e}=ki.binaryOptions,r=Math.ceil(s.length/e),o=new Array(r);for(let t=0,n=0;t<r;++t,n+=e)o[t]=s.substr(n,e);n=o.join(t===xo.Type.BLOCK_LITERAL?"\n":" ")}return ki.stringifyString({comment:e,type:t,value:n},r,o,i)}};function ia(e,t){const n=ki.resolveSeq(e,t);for(let e=0;e<n.items.length;++e){let r=n.items[e];if(!(r instanceof ki.Pair)){if(r instanceof ki.YAMLMap){if(r.items.length>1){const e="Each pair must have its own sequence indicator";throw new xo.YAMLSemanticError(t,e)}const e=r.items[0]||new ki.Pair;r.commentBefore&&(e.commentBefore=e.commentBefore?`${r.commentBefore}\n${e.commentBefore}`:r.commentBefore),r.comment&&(e.comment=e.comment?`${r.comment}\n${e.comment}`:r.comment),r=e}n.items[e]=r instanceof ki.Pair?r:new ki.Pair(r)}}return n}function sa(e,t,n){const r=new ki.YAMLSeq(e);r.tag="tag:yaml.org,2002:pairs";for(const o of t){let t,i;if(Array.isArray(o)){if(2!==o.length)throw new TypeError(`Expected [key, value] tuple: ${o}`);t=o[0],i=o[1]}else if(o&&o instanceof Object){const e=Object.keys(o);if(1!==e.length)throw new TypeError(`Expected { key: value } tuple: ${o}`);t=e[0],i=o[t]}else t=o;const s=e.createPair(t,i,n);r.items.push(s)}return r}const aa={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:ia,createNode:sa};class ca extends ki.YAMLSeq{constructor(){super(),xo._defineProperty(this,"add",ki.YAMLMap.prototype.add.bind(this)),xo._defineProperty(this,"delete",ki.YAMLMap.prototype.delete.bind(this)),xo._defineProperty(this,"get",ki.YAMLMap.prototype.get.bind(this)),xo._defineProperty(this,"has",ki.YAMLMap.prototype.has.bind(this)),xo._defineProperty(this,"set",ki.YAMLMap.prototype.set.bind(this)),this.tag=ca.tag}toJSON(e,t){const n=new Map;t&&t.onCreate&&t.onCreate(n);for(const e of this.items){let r,o;if(e instanceof ki.Pair?(r=ki.toJSON(e.key,"",t),o=ki.toJSON(e.value,r,t)):r=ki.toJSON(e,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,o)}return n}}xo._defineProperty(ca,"tag","tag:yaml.org,2002:omap");const ua={identify:e=>e instanceof Map,nodeClass:ca,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){const n=ia(e,t),r=[];for(const{key:e}of n.items)if(e instanceof ki.Scalar){if(r.includes(e.value)){const e="Ordered maps must not include duplicate keys";throw new xo.YAMLSemanticError(t,e)}r.push(e.value)}return Object.assign(new ca,n)},createNode:function(e,t,n){const r=sa(e,t,n),o=new ca;return o.items=r.items,o}};class la extends ki.YAMLMap{constructor(){super(),this.tag=la.tag}add(e){const t=e instanceof ki.Pair?e:new ki.Pair(e);ki.findPair(this.items,t.key)||this.items.push(t)}get(e,t){const n=ki.findPair(this.items,e);return!t&&n instanceof ki.Pair?n.key instanceof ki.Scalar?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const n=ki.findPair(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new ki.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,n);throw new Error("Set items must all have null values")}}xo._defineProperty(la,"tag","tag:yaml.org,2002:set");const fa={identify:e=>e instanceof Set,nodeClass:la,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){const n=ki.resolveMap(e,t);if(!n.hasAllNullValues())throw new xo.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new la,n)},createNode:function(e,t,n){const r=new la;for(const o of t)r.items.push(e.createPair(o,null,n));return r}},ha=(e,t)=>{const n=t.split(":").reduce(((e,t)=>60*e+Number(t)),0);return"-"===e?-n:n},pa=({value:e})=>{if(isNaN(e)||!isFinite(e))return ki.stringifyNumber(e);let t="";e<0&&(t="-",e=Math.abs(e));const n=[e%60];return e<60?n.unshift(0):(e=Math.round((e-n[0])/60),n.unshift(e%60),e>=60&&(e=Math.round((e-n[0])/60),n.unshift(e))),t+n.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")},da={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,n)=>ha(t,n.replace(/_/g,"")),stringify:pa},ga={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,n)=>ha(t,n.replace(/_/g,"")),stringify:pa},ma={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(e,t,n,r,o,i,s,a,c)=>{a&&(a=(a+"00").substr(1,3));let u=Date.UTC(t,n-1,r,o||0,i||0,s||0,a||0);if(c&&"Z"!==c){let e=ha(c[0],c.slice(1));Math.abs(e)<30&&(e*=60),u-=6e4*e}return new Date(u)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function ya(e){const t=void 0!==ra&&ra.env||{};return e?"undefined"!=typeof YAML_SILENCE_DEPRECATION_WARNINGS?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:"undefined"!=typeof YAML_SILENCE_WARNINGS?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function va(e,t){if(ya(!1)){const n=void 0!==ra&&ra.emitWarning;n?n(e,t):console.warn(t?`${t}: ${e}`:e)}}const ba={};var wa={binary:oa,floatTime:ga,intTime:da,omap:ua,pairs:aa,set:fa,timestamp:ma,warn:va,warnFileDeprecation:function(e){if(ya(!0)){va(`The endpoint 'yaml/${e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/")}' will be removed in a future release.`,"DeprecationWarning")}},warnOptionDeprecation:function(e,t){if(!ba[e]&&ya(!0)){ba[e]=!0;let n=`The option '${e}' will be removed in a future release`;n+=t?`, use '${t}' instead.`:".",va(n,"DeprecationWarning")}}};const _a={createNode:function(e,t,n){const r=new ki.YAMLMap(e);if(t instanceof Map)for(const[o,i]of t)r.items.push(e.createPair(o,i,n));else if(t&&"object"==typeof t)for(const o of Object.keys(t))r.items.push(e.createPair(o,t[o],n));return"function"==typeof e.sortMapEntries&&r.items.sort(e.sortMapEntries),r},default:!0,nodeClass:ki.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:ki.resolveMap};const Ea={createNode:function(e,t,n){const r=new ki.YAMLSeq(e);if(t&&t[Symbol.iterator])for(const o of t){const t=e.createNode(o,n.wrapScalars,null,n);r.items.push(t)}return r},default:!0,nodeClass:ki.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:ki.resolveSeq},Sa={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:ki.resolveString,stringify:(e,t,n,r)=>(t=Object.assign({actualString:!0},t),ki.stringifyString(e,t,n,r)),options:ki.strOptions},Oa=[_a,Ea,Sa],Aa=e=>"bigint"==typeof e||Number.isInteger(e),Ma=(e,t,n)=>ki.intOptions.asBigInt?BigInt(e):parseInt(t,n);function La(e,t,n){const{value:r}=e;return Aa(r)&&r>=0?n+r.toString(t):ki.stringifyNumber(e)}const Na={identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new ki.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:ki.nullOptions,stringify:()=>ki.nullOptions.nullStr},Ta={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>"t"===e[0]||"T"===e[0],options:ki.boolOptions,stringify:({value:e})=>e?ki.boolOptions.trueStr:ki.boolOptions.falseStr},Pa={identify:e=>Aa(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>Ma(e,t,8),options:ki.intOptions,stringify:e=>La(e,8,"0o")},Ca={identify:Aa,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>Ma(e,e,10),options:ki.intOptions,stringify:ki.stringifyNumber},xa={identify:e=>Aa(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>Ma(e,t,16),options:ki.intOptions,stringify:e=>La(e,16,"0x")},Ra={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ki.stringifyNumber},Ia={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()},ka={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,t,n){const r=t||n,o=new ki.Scalar(parseFloat(e));return r&&"0"===r[r.length-1]&&(o.minFractionDigits=r.length),o},stringify:ki.stringifyNumber},Ba=Oa.concat([Na,Ta,Pa,Ca,xa,Ra,Ia,ka]),Ya=e=>"bigint"==typeof e||Number.isInteger(e),ja=({value:e})=>JSON.stringify(e),$a=[_a,Ea,{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:ki.resolveString,stringify:ja},{identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new ki.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ja},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:ja},{identify:Ya,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>ki.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>Ya(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:ja}];$a.scalarFallback=e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)};const Da=({value:e})=>e?ki.boolOptions.trueStr:ki.boolOptions.falseStr,Fa=e=>"bigint"==typeof e||Number.isInteger(e);function Ua(e,t,n){let r=t.replace(/_/g,"");if(ki.intOptions.asBigInt){switch(n){case 2:r=`0b${r}`;break;case 8:r=`0o${r}`;break;case 16:r=`0x${r}`}const t=BigInt(r);return"-"===e?BigInt(-1)*t:t}const o=parseInt(r,n);return"-"===e?-1*o:o}function Wa(e,t,n){const{value:r}=e;if(Fa(r)){const e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return ki.stringifyNumber(e)}const Ka=Oa.concat([{identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new ki.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:ki.nullOptions,stringify:()=>ki.nullOptions.nullStr},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:ki.boolOptions,stringify:Da},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:ki.boolOptions,stringify:Da},{identify:Fa,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,n)=>Ua(t,n,2),stringify:e=>Wa(e,2,"0b")},{identify:Fa,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,n)=>Ua(t,n,8),stringify:e=>Wa(e,8,"0")},{identify:Fa,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,n)=>Ua(t,n,10),stringify:ki.stringifyNumber},{identify:Fa,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,n)=>Ua(t,n,16),stringify:e=>Wa(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ki.stringifyNumber},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){const n=new ki.Scalar(parseFloat(e.replace(/_/g,"")));if(t){const e=t.replace(/_/g,"");"0"===e[e.length-1]&&(n.minFractionDigits=e.length)}return n},stringify:ki.stringifyNumber}],wa.binary,wa.omap,wa.pairs,wa.set,wa.intTime,wa.floatTime,wa.timestamp),Va={core:Ba,failsafe:Oa,json:$a,yaml11:Ka},Qa={binary:wa.binary,bool:Ta,float:ka,floatExp:Ia,floatNaN:Ra,floatTime:wa.floatTime,int:Ca,intHex:xa,intOct:Pa,intTime:wa.intTime,map:_a,null:Na,omap:wa.omap,pairs:wa.pairs,seq:Ea,set:wa.set,timestamp:wa.timestamp};function qa(e,t,n){if(e instanceof ki.Node)return e;const{defaultPrefix:r,onTagObj:o,prevObjects:i,schema:s,wrapScalars:a}=n;t&&t.startsWith("!!")&&(t=r+t.slice(2));let c=function(e,t,n){if(t){const e=n.filter((e=>e.tag===t)),r=e.find((e=>!e.format))||e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find((t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format))}(e,t,s.tags);if(!c){if("function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e)return a?new ki.Scalar(e):e;c=e instanceof Map?_a:e[Symbol.iterator]?Ea:_a}o&&(o(c),delete n.onTagObj);const u={value:void 0,node:void 0};if(e&&"object"==typeof e&&i){const t=i.get(e);if(t){const e=new ki.Alias(t);return n.aliasNodes.push(e),e}u.value=e,i.set(e,u)}return u.node=c.createNode?c.createNode(n.schema,e,n):a?new ki.Scalar(e):e,t&&u.node instanceof ki.Node&&(u.node.tag=t),u.node}const Ja=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Ga{constructor({customTags:e,merge:t,schema:n,sortMapEntries:r,tags:o}){this.merge=!!t,this.name=n,this.sortMapEntries=!0===r?Ja:r||null,!e&&o&&wa.warnOptionDeprecation("tags","customTags"),this.tags=function(e,t,n,r){let o=e[r.replace(/\W/g,"")];if(!o){const t=Object.keys(e).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${t}`)}if(Array.isArray(n))for(const e of n)o=o.concat(e);else"function"==typeof n&&(o=n(o.slice()));for(let e=0;e<o.length;++e){const n=o[e];if("string"==typeof n){const r=t[n];if(!r){const e=Object.keys(t).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${e}`)}o[e]=r}}return o}(Va,Qa,e||o,n)}createNode(e,t,n,r){const o={defaultPrefix:Ga.defaultPrefix,schema:this,wrapScalars:t};return qa(e,n,r?Object.assign(r,o):o)}createPair(e,t,n){n||(n={wrapScalars:!0});const r=this.createNode(e,n.wrapScalars,null,n),o=this.createNode(t,n.wrapScalars,null,n);return new ki.Pair(r,o)}}xo._defineProperty(Ga,"defaultPrefix",xo.defaultTagPrefix),xo._defineProperty(Ga,"defaultTags",xo.defaultTags);var Ha={Schema:Ga};const za={get binary(){return ki.binaryOptions},set binary(e){Object.assign(ki.binaryOptions,e)},get bool(){return ki.boolOptions},set bool(e){Object.assign(ki.boolOptions,e)},get int(){return ki.intOptions},set int(e){Object.assign(ki.intOptions,e)},get null(){return ki.nullOptions},set null(e){Object.assign(ki.nullOptions,e)},get str(){return ki.strOptions},set str(e){Object.assign(ki.strOptions,e)}},Za={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:xo.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:xo.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:xo.defaultTagPrefix}]}};function Xa(e,t){if("1.0"===(e.version||e.options.version)){const e=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(e)return"!"+e[1];const n=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?`!${n[1]}/${n[2]}`:`!${t.replace(/^tag:/,"")}`}let n=e.tagPrefixes.find((e=>0===t.indexOf(e.prefix)));if(!n){const r=e.getDefaults().tagPrefixes;n=r&&r.find((e=>0===t.indexOf(e.prefix)))}if(!n)return"!"===t[0]?t:`!<${t}>`;const r=t.substr(n.prefix.length).replace(/[!,[\]{}]/g,(e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e])));return n.handle+r}function ec(e,t,n,r){const{anchors:o,schema:i}=t.doc;let s;if(!(e instanceof ki.Node)){const t={aliasNodes:[],onTagObj:e=>s=e,prevObjects:new Map};e=i.createNode(e,!0,null,t);for(const e of t.aliasNodes){e.source=e.source.node;let t=o.getName(e.source);t||(t=o.newName(),o.map[t]=e.source)}}if(e instanceof ki.Pair)return e.toString(t,n,r);s||(s=function(e,t){if(t instanceof ki.Alias)return ki.Alias;if(t.tag){const n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))||n[0]}let n,r;if(t instanceof ki.Scalar){r=t.value;const o=e.filter((e=>e.identify&&e.identify(r)||e.class&&r instanceof e.class));n=o.find((e=>e.format===t.format))||o.find((e=>!e.format))}else r=t,n=e.find((e=>e.nodeClass&&r instanceof e.nodeClass));if(!n){const e=r&&r.constructor?r.constructor.name:typeof r;throw new Error(`Tag not resolved for ${e} value`)}return n}(i.tags,e));const a=function(e,t,{anchors:n,doc:r}){const o=[],i=r.anchors.getName(e);return i&&(n[i]=e,o.push(`&${i}`)),e.tag?o.push(Xa(r,e.tag)):t.default||o.push(Xa(r,t.tag)),o.join(" ")}(e,s,t);a.length>0&&(t.indentAtStart=(t.indentAtStart||0)+a.length+1);const c="function"==typeof s.stringify?s.stringify(e,t,n,r):e instanceof ki.Scalar?ki.stringifyString(e,t,n,r):e.toString(t,n,r);return a?e instanceof ki.Scalar||"{"===c[0]||"["===c[0]?`${a} ${c}`:`${a}\n${t.indent}${c}`:c}class tc{static validAnchorNode(e){return e instanceof ki.Scalar||e instanceof ki.YAMLSeq||e instanceof ki.YAMLMap}constructor(e){xo._defineProperty(this,"map",Object.create(null)),this.prefix=e}createAlias(e,t){return this.setAnchor(e,t),new ki.Alias(e)}createMergePair(...e){const t=new ki.Merge;return t.value.items=e.map((e=>{if(e instanceof ki.Alias){if(e.source instanceof ki.YAMLMap)return e}else if(e instanceof ki.YAMLMap)return this.createAlias(e);throw new Error("Merge sources must be Map nodes or their Aliases")})),t}getName(e){const{map:t}=this;return Object.keys(t).find((n=>t[n]===e))}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);const t=Object.keys(this.map);for(let n=1;;++n){const r=`${e}${n}`;if(!t.includes(r))return r}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach((t=>{e[t]=e[t].resolved})),t.forEach((e=>{e.source=e.source.resolved})),delete this._cstAliases}setAnchor(e,t){if(null!=e&&!tc.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(t&&/[\x00-\x19\s,[\]{}]/.test(t))throw new Error("Anchor names must not contain whitespace or control characters");const{map:n}=this,r=e&&Object.keys(n).find((t=>n[t]===e));if(r){if(!t)return r;r!==t&&(delete n[r],n[t]=e)}else{if(!t){if(!e)return null;t=this.newName()}n[t]=e}return t}}const nc=(e,t)=>{if(e&&"object"==typeof e){const{tag:n}=e;e instanceof ki.Collection?(n&&(t[n]=!0),e.items.forEach((e=>nc(e,t)))):e instanceof ki.Pair?(nc(e.key,t),nc(e.value,t)):e instanceof ki.Scalar&&n&&(t[n]=!0)}return t};function rc({tagPrefixes:e},t){const[n,r]=t.parameters;if(!n||!r){const e="Insufficient parameters given for %TAG directive";throw new xo.YAMLSemanticError(t,e)}if(e.some((e=>e.handle===n))){const e="The %TAG directive must only be given at most once per handle in the same document.";throw new xo.YAMLSemanticError(t,e)}return{handle:n,prefix:r}}function oc(e,t){let[n]=t.parameters;if("YAML:1.0"===t.name&&(n="1.0"),!n){const e="Insufficient parameters given for %YAML directive";throw new xo.YAMLSemanticError(t,e)}if(!Za[n]){const r=`Document will be parsed as YAML ${e.version||e.options.version} rather than YAML ${n}`;e.warnings.push(new xo.YAMLWarning(t,r))}return n}function ic(e){if(e instanceof ki.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}class sc{constructor(e){this.anchors=new tc(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return ic(this.contents),this.contents.add(e)}addIn(e,t){ic(this.contents),this.contents.addIn(e,t)}delete(e){return ic(this.contents),this.contents.delete(e)}deleteIn(e){return ki.isEmptyPath(e)?null!=this.contents&&(this.contents=null,!0):(ic(this.contents),this.contents.deleteIn(e))}getDefaults(){return sc.defaults[this.version]||sc.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof ki.Collection?this.contents.get(e,t):void 0}getIn(e,t){return ki.isEmptyPath(e)?!t&&this.contents instanceof ki.Scalar?this.contents.value:this.contents:this.contents instanceof ki.Collection?this.contents.getIn(e,t):void 0}has(e){return this.contents instanceof ki.Collection&&this.contents.has(e)}hasIn(e){return ki.isEmptyPath(e)?void 0!==this.contents:this.contents instanceof ki.Collection&&this.contents.hasIn(e)}set(e,t){ic(this.contents),this.contents.set(e,t)}setIn(e,t){ki.isEmptyPath(e)?this.contents=t:(ic(this.contents),this.contents.setIn(e,t))}setSchema(e,t){if(!e&&!t&&this.schema)return;"number"==typeof e&&(e=e.toFixed(1)),"1.0"===e||"1.1"===e||"1.2"===e?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&"string"==typeof e&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);const n=Object.assign({},this.getDefaults(),this.options);this.schema=new Ha.Schema(n)}parse(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");const{directives:n=[],contents:r=[],directivesEndMarker:o,error:i,valueRange:s}=e;if(i&&(i.source||(i.source=this),this.errors.push(i)),function(e,t,n){const r=[];let o=!1;for(const n of t){const{comment:t,name:i}=n;switch(i){case"TAG":try{e.tagPrefixes.push(rc(e,n))}catch(t){e.errors.push(t)}o=!0;break;case"YAML":case"YAML:1.0":if(e.version){const t="The %YAML directive must only be given at most once per document.";e.errors.push(new xo.YAMLSemanticError(n,t))}try{e.version=oc(e,n)}catch(t){e.errors.push(t)}o=!0;break;default:if(i){const t=`YAML only supports %TAG and %YAML directives, and not %${i}`;e.warnings.push(new xo.YAMLWarning(n,t))}}t&&r.push(t)}if(n&&!o&&"1.1"===(e.version||n.version||e.options.version)){const t=({handle:e,prefix:t})=>({handle:e,prefix:t});e.tagPrefixes=n.tagPrefixes.map(t),e.version=n.version}e.commentBefore=r.join("\n")||null}(this,n,t),o&&(this.directivesEndMarker=!0),this.range=s?[s.start,s.end]:null,this.setSchema(),this.anchors._cstAliases=[],function(e,t){const n={before:[],after:[]};let r,o=!1;for(const i of t)if(i.valueRange){if(void 0!==r){const t="Document contains trailing content not separated by a ... or --- line";e.errors.push(new xo.YAMLSyntaxError(i,t));break}const t=ki.resolveNode(e,i);o&&(t.spaceBefore=!0,o=!1),r=t}else null!==i.comment?(void 0===r?n.before:n.after).push(i.comment):i.type===xo.Type.BLANK_LINE&&(o=!0,void 0===r&&n.before.length>0&&!e.commentBefore&&(e.commentBefore=n.before.join("\n"),n.before=[]));if(e.contents=r||null,r){const t=n.before.join("\n");if(t){const e=r instanceof ki.Collection&&r.items[0]?r.items[0]:r;e.commentBefore=e.commentBefore?`${t}\n${e.commentBefore}`:t}e.comment=n.after.join("\n")||null}else e.comment=n.before.concat(n.after).join("\n")||null}(this,r),this.anchors.resolveNodes(),this.options.prettyErrors){for(const e of this.errors)e instanceof xo.YAMLError&&e.makePretty();for(const e of this.warnings)e instanceof xo.YAMLError&&e.makePretty()}return this}listNonDefaultTags(){return(e=>Object.keys(nc(e,{})))(this.contents).filter((e=>0!==e.indexOf(Ha.Schema.defaultPrefix)))}setTagPrefix(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){const n=this.tagPrefixes.find((t=>t.handle===e));n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter((t=>t.handle!==e))}toJSON(e,t){const{keepBlobsInJSON:n,mapAsMap:r,maxAliasCount:o}=this.options,i=n&&("string"!=typeof e||!(this.contents instanceof ki.Scalar)),s={doc:this,indentStep:" ",keep:i,mapAsMap:i&&!!r,maxAliasCount:o,stringify:ec},a=Object.keys(this.anchors.map);a.length>0&&(s.anchors=new Map(a.map((e=>[this.anchors.map[e],{alias:[],aliasCount:0,count:1}]))));const c=ki.toJSON(this.contents,e,s);if("function"==typeof t&&s.anchors)for(const{count:e,res:n}of s.anchors.values())t(n,e);return c}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");const e=this.options.indent;if(!Number.isInteger(e)||e<=0){const t=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${t}`)}this.setSchema();const t=[];let n=!1;if(this.version){let e="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?e="%YAML:1.0":"1.1"===this.version&&(e="%YAML 1.1")),t.push(e),n=!0}const r=this.listNonDefaultTags();this.tagPrefixes.forEach((({handle:e,prefix:o})=>{r.some((e=>0===e.indexOf(o)))&&(t.push(`%TAG ${e} ${o}`),n=!0)})),(n||this.directivesEndMarker)&&t.push("---"),this.commentBefore&&(!n&&this.directivesEndMarker||t.unshift(""),t.unshift(this.commentBefore.replace(/^/gm,"#")));const o={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:ec};let i=!1,s=null;if(this.contents){this.contents instanceof ki.Node&&(this.contents.spaceBefore&&(n||this.directivesEndMarker)&&t.push(""),this.contents.commentBefore&&t.push(this.contents.commentBefore.replace(/^/gm,"#")),o.forceBlockIndent=!!this.comment,s=this.contents.comment);const e=s?null:()=>i=!0,r=ec(this.contents,o,(()=>s=null),e);t.push(ki.addComment(r,"",s))}else void 0!==this.contents&&t.push(ec(this.contents,o));return this.comment&&(i&&!s||""===t[t.length-1]||t.push(""),t.push(this.comment.replace(/^/gm,"#"))),t.join("\n")+"\n"}}xo._defineProperty(sc,"defaults",Za);var ac={Document:sc,defaultOptions:{anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},scalarOptions:za};class cc extends ac.Document{constructor(e){super(Object.assign({},ac.defaultOptions,e))}}function uc(e,t){const n=Go.parse(e),r=new cc(t).parse(n[0]);if(n.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new xo.YAMLSemanticError(n[1],e))}return r}var lc={YAML:{createNode:function(e,t=!0,n){void 0===n&&"string"==typeof t&&(n=t,t=!0);const r=Object.assign({},ac.Document.defaults[ac.defaultOptions.version],ac.defaultOptions);return new Ha.Schema(r).createNode(e,t,n)},defaultOptions:ac.defaultOptions,Document:cc,parse:function(e,t){const n=uc(e,t);if(n.warnings.forEach((e=>wa.warn(e))),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){const n=[];let r;for(const o of Go.parse(e)){const e=new cc(t);e.parse(o,r),n.push(e),r=e}return n},parseCST:Go.parse,parseDocument:uc,scalarOptions:ac.scalarOptions,stringify:function(e,t){const n=new cc(t);return n.contents=e,String(n)}}}.YAML,fc={findPair:ki.findPair,parseMap:ki.resolveMap,parseSeq:ki.resolveSeq,stringifyNumber:ki.stringifyNumber,stringifyString:ki.stringifyString,toJSON:ki.toJSON,Type:xo.Type,YAMLError:xo.YAMLError,YAMLReferenceError:xo.YAMLReferenceError,YAMLSemanticError:xo.YAMLSemanticError,YAMLSyntaxError:xo.YAMLSyntaxError,YAMLWarning:xo.YAMLWarning},hc={findPair:fc.findPair,toJSON:fc.toJSON,parseMap:fc.parseMap,parseSeq:fc.parseSeq,stringifyNumber:fc.stringifyNumber,stringifyString:fc.stringifyString,Type:fc.Type,YAMLError:fc.YAMLError,YAMLReferenceError:fc.YAMLReferenceError,YAMLSemanticError:fc.YAMLSemanticError,YAMLSyntaxError:fc.YAMLSyntaxError,YAMLWarning:fc.YAMLWarning},pc=lc.Document,dc=lc.parseCST,gc=hc.YAMLError,mc=hc.YAMLSyntaxError,yc=hc.YAMLSemanticError,vc=Object.defineProperty({Document:pc,parseCST:dc,YAMLError:gc,YAMLSyntaxError:mc,YAMLSemanticError:yc},"__esModule",{value:!0});var bc=function(e){var t=vc.parseCST(e);ao.addOrigRange(t);for(var n=t.map((function(e){return new vc.Document({merge:!1,keepCstNodes:!0}).parse(e)})),r=[],o={text:e,locator:new p.default(e),comments:r,transformOffset:function(e){return to.transformOffset(e,o)},transformRange:function(e){return ro.transformRange(e,o)},transformNode:function(e){return qr.transformNode(e,o)},transformContent:function(e){return rn.transformContent(e,o)}},i=0,s=n;i<s.length;i++)for(var a=0,c=s[i].errors;a<c.length;a++){var u=c[a];if(!(u instanceof vc.YAMLSemanticError&&'Map keys must be unique; "<<" is repeated'===u.message))throw zr.transformError(u,o)}n.forEach((function(e){return Ct.removeCstBlankLine(e.cstNode)}));var l=Tt.createRoot(o.transformRange({origStart:0,origEnd:o.text.length}),n.map(o.transformNode),r);return At.attachComments(l),wo.updatePositions(l),uo.removeFakeNodes(l),l},wc=Object.defineProperty({parse:bc},"__esModule",{value:!0}),_c=o((function(e,t){t.__esModule=!0,h.__exportStar(wc,t)}));const{hasPragma:Ec}=t,{locStart:Sc,locEnd:Oc}=n;return{parsers:{yaml:{astFormat:"yaml",parse:function(t){const{parse:n}=_c;try{const e=n(t);return delete e.comments,e}catch(t){if(t&&t.position)throw e(t.message,t.position);throw t}},hasPragma:Ec,locStart:Sc,locEnd:Oc}}}}));
1
+ (function(e){if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var i=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};i.prettierPlugins=i.prettierPlugins||{},i.prettierPlugins.yaml=e()}})(function(){"use strict";var wt=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var ur=wt((mr,lt)=>{var De=Object.defineProperty,St=Object.getOwnPropertyDescriptor,Fe=Object.getOwnPropertyNames,Et=Object.prototype.hasOwnProperty,xe=(r,e)=>function(){return r&&(e=(0,r[Fe(r)[0]])(r=0)),e},F=(r,e)=>function(){return e||(0,r[Fe(r)[0]])((e={exports:{}}).exports,e),e.exports},Mt=(r,e)=>{for(var n in e)De(r,n,{get:e[n],enumerable:!0})},Ot=(r,e,n,c)=>{if(e&&typeof e=="object"||typeof e=="function")for(let h of Fe(e))!Et.call(r,h)&&h!==n&&De(r,h,{get:()=>e[h],enumerable:!(c=St(e,h))||c.enumerable});return r},se=r=>Ot(De({},"__esModule",{value:!0}),r),Ke,$e,Te,D=xe({"<define:process>"(){Ke={},$e=[],Te={env:Ke,argv:$e}}}),Lt=F({"src/common/parser-create-error.js"(r,e){"use strict";D();function n(c,h){let d=new SyntaxError(c+" ("+h.start.line+":"+h.start.column+")");return d.loc=h,d}e.exports=n}}),At=F({"src/language-yaml/pragma.js"(r,e){"use strict";D();function n(d){return/^\s*@(?:prettier|format)\s*$/.test(d)}function c(d){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(d)}function h(d){return`# @format
2
+
3
+ `.concat(d)}e.exports={isPragma:n,hasPragma:c,insertPragma:h}}}),Nt=F({"src/language-yaml/loc.js"(r,e){"use strict";D();function n(h){return h.position.start.offset}function c(h){return h.position.end.offset}e.exports={locStart:n,locEnd:c}}}),te={};Mt(te,{__assign:()=>qe,__asyncDelegator:()=>Wt,__asyncGenerator:()=>Ft,__asyncValues:()=>Vt,__await:()=>Ce,__awaiter:()=>Rt,__classPrivateFieldGet:()=>$t,__classPrivateFieldSet:()=>Jt,__createBinding:()=>Bt,__decorate:()=>kt,__exportStar:()=>jt,__extends:()=>Tt,__generator:()=>qt,__importDefault:()=>Kt,__importStar:()=>Ut,__makeTemplateObject:()=>Qt,__metadata:()=>It,__param:()=>Pt,__read:()=>He,__rest:()=>Ct,__spread:()=>Yt,__spreadArrays:()=>Dt,__values:()=>Ye});function Tt(r,e){Re(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function Ct(r,e){var n={};for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&e.indexOf(c)<0&&(n[c]=r[c]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,c=Object.getOwnPropertySymbols(r);h<c.length;h++)e.indexOf(c[h])<0&&Object.prototype.propertyIsEnumerable.call(r,c[h])&&(n[c[h]]=r[c[h]]);return n}function kt(r,e,n,c){var h=arguments.length,d=h<3?e:c===null?c=Object.getOwnPropertyDescriptor(e,n):c,y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(r,e,n,c);else for(var E=r.length-1;E>=0;E--)(y=r[E])&&(d=(h<3?y(d):h>3?y(e,n,d):y(e,n))||d);return h>3&&d&&Object.defineProperty(e,n,d),d}function Pt(r,e){return function(n,c){e(n,c,r)}}function It(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}function Rt(r,e,n,c){function h(d){return d instanceof n?d:new n(function(y){y(d)})}return new(n||(n=Promise))(function(d,y){function E(M){try{S(c.next(M))}catch(T){y(T)}}function I(M){try{S(c.throw(M))}catch(T){y(T)}}function S(M){M.done?d(M.value):h(M.value).then(E,I)}S((c=c.apply(r,e||[])).next())})}function qt(r,e){var n={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},c,h,d,y;return y={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(y[Symbol.iterator]=function(){return this}),y;function E(S){return function(M){return I([S,M])}}function I(S){if(c)throw new TypeError("Generator is already executing.");for(;n;)try{if(c=1,h&&(d=S[0]&2?h.return:S[0]?h.throw||((d=h.return)&&d.call(h),0):h.next)&&!(d=d.call(h,S[1])).done)return d;switch(h=0,d&&(S=[S[0]&2,d.value]),S[0]){case 0:case 1:d=S;break;case 4:return n.label++,{value:S[1],done:!1};case 5:n.label++,h=S[1],S=[0];continue;case 7:S=n.ops.pop(),n.trys.pop();continue;default:if(d=n.trys,!(d=d.length>0&&d[d.length-1])&&(S[0]===6||S[0]===2)){n=0;continue}if(S[0]===3&&(!d||S[1]>d[0]&&S[1]<d[3])){n.label=S[1];break}if(S[0]===6&&n.label<d[1]){n.label=d[1],d=S;break}if(d&&n.label<d[2]){n.label=d[2],n.ops.push(S);break}d[2]&&n.ops.pop(),n.trys.pop();continue}S=e.call(r,n)}catch(M){S=[6,M],h=0}finally{c=d=0}if(S[0]&5)throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}}function Bt(r,e,n,c){c===void 0&&(c=n),r[c]=e[n]}function jt(r,e){for(var n in r)n!=="default"&&!e.hasOwnProperty(n)&&(e[n]=r[n])}function Ye(r){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&r[e],c=0;if(n)return n.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&c>=r.length&&(r=void 0),{value:r&&r[c++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function He(r,e){var n=typeof Symbol=="function"&&r[Symbol.iterator];if(!n)return r;var c=n.call(r),h,d=[],y;try{for(;(e===void 0||e-- >0)&&!(h=c.next()).done;)d.push(h.value)}catch(E){y={error:E}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(y)throw y.error}}return d}function Yt(){for(var r=[],e=0;e<arguments.length;e++)r=r.concat(He(arguments[e]));return r}function Dt(){for(var r=0,e=0,n=arguments.length;e<n;e++)r+=arguments[e].length;for(var c=Array(r),h=0,e=0;e<n;e++)for(var d=arguments[e],y=0,E=d.length;y<E;y++,h++)c[h]=d[y];return c}function Ce(r){return this instanceof Ce?(this.v=r,this):new Ce(r)}function Ft(r,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var c=n.apply(r,e||[]),h,d=[];return h={},y("next"),y("throw"),y("return"),h[Symbol.asyncIterator]=function(){return this},h;function y(P){c[P]&&(h[P]=function(C){return new Promise(function(q,R){d.push([P,C,q,R])>1||E(P,C)})})}function E(P,C){try{I(c[P](C))}catch(q){T(d[0][3],q)}}function I(P){P.value instanceof Ce?Promise.resolve(P.value.v).then(S,M):T(d[0][2],P)}function S(P){E("next",P)}function M(P){E("throw",P)}function T(P,C){P(C),d.shift(),d.length&&E(d[0][0],d[0][1])}}function Wt(r){var e,n;return e={},c("next"),c("throw",function(h){throw h}),c("return"),e[Symbol.iterator]=function(){return this},e;function c(h,d){e[h]=r[h]?function(y){return(n=!n)?{value:Ce(r[h](y)),done:h==="return"}:d?d(y):y}:d}}function Vt(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=r[Symbol.asyncIterator],n;return e?e.call(r):(r=typeof Ye=="function"?Ye(r):r[Symbol.iterator](),n={},c("next"),c("throw"),c("return"),n[Symbol.asyncIterator]=function(){return this},n);function c(d){n[d]=r[d]&&function(y){return new Promise(function(E,I){y=r[d](y),h(E,I,y.done,y.value)})}}function h(d,y,E,I){Promise.resolve(I).then(function(S){d({value:S,done:E})},y)}}function Qt(r,e){return Object.defineProperty?Object.defineProperty(r,"raw",{value:e}):r.raw=e,r}function Ut(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var n in r)Object.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e.default=r,e}function Kt(r){return r&&r.__esModule?r:{default:r}}function $t(r,e){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return e.get(r)}function Jt(r,e,n){if(!e.has(r))throw new TypeError("attempted to set private field on non-instance");return e.set(r,n),n}var Re,qe,ae=xe({"node_modules/tslib/tslib.es6.js"(){D(),Re=function(r,e){return Re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,c){n.__proto__=c}||function(n,c){for(var h in c)c.hasOwnProperty(h)&&(n[h]=c[h])},Re(r,e)},qe=function(){return qe=Object.assign||function(e){for(var n,c=1,h=arguments.length;c<h;c++){n=arguments[c];for(var d in n)Object.prototype.hasOwnProperty.call(n,d)&&(e[d]=n[d])}return e},qe.apply(this,arguments)}}}),xt=F({"node_modules/yaml-unist-parser/node_modules/lines-and-columns/build/index.js"(r){"use strict";D(),r.__esModule=!0,r.LinesAndColumns=void 0;var e=`
4
+ `,n="\r",c=function(){function h(d){this.string=d;for(var y=[0],E=0;E<d.length;)switch(d[E]){case e:E+=e.length,y.push(E);break;case n:E+=n.length,d[E]===e&&(E+=e.length),y.push(E);break;default:E++;break}this.offsets=y}return h.prototype.locationForIndex=function(d){if(d<0||d>this.string.length)return null;for(var y=0,E=this.offsets;E[y+1]<=d;)y++;var I=d-E[y];return{line:y,column:I}},h.prototype.indexForLocation=function(d){var y=d.line,E=d.column;return y<0||y>=this.offsets.length||E<0||E>this.lengthOfLine(y)?null:this.offsets[y]+E},h.prototype.lengthOfLine=function(d){var y=this.offsets[d],E=d===this.offsets.length-1?this.string.length:this.offsets[d+1];return E-y},h}();r.LinesAndColumns=c,r.default=c}}),Ht=F({"node_modules/yaml-unist-parser/lib/utils/define-parents.js"(r){"use strict";D(),r.__esModule=!0;function e(n,c){c===void 0&&(c=null),"children"in n&&n.children.forEach(function(h){return e(h,n)}),"anchor"in n&&n.anchor&&e(n.anchor,n),"tag"in n&&n.tag&&e(n.tag,n),"leadingComments"in n&&n.leadingComments.forEach(function(h){return e(h,n)}),"middleComments"in n&&n.middleComments.forEach(function(h){return e(h,n)}),"indicatorComment"in n&&n.indicatorComment&&e(n.indicatorComment,n),"trailingComment"in n&&n.trailingComment&&e(n.trailingComment,n),"endComments"in n&&n.endComments.forEach(function(h){return e(h,n)}),Object.defineProperty(n,"_parent",{value:c,enumerable:!1})}r.defineParents=e}}),We=F({"node_modules/yaml-unist-parser/lib/utils/get-point-text.js"(r){"use strict";D(),r.__esModule=!0;function e(n){return n.line+":"+n.column}r.getPointText=e}}),Gt=F({"node_modules/yaml-unist-parser/lib/attach.js"(r){"use strict";D(),r.__esModule=!0;var e=Ht(),n=We();function c(S){e.defineParents(S);var M=h(S),T=S.children.slice();S.comments.sort(function(P,C){return P.position.start.offset-C.position.end.offset}).filter(function(P){return!P._parent}).forEach(function(P){for(;T.length>1&&P.position.start.line>T[0].position.end.line;)T.shift();y(P,M,T[0])})}r.attachComments=c;function h(S){for(var M=Array.from(new Array(S.position.end.line),function(){return{}}),T=0,P=S.comments;T<P.length;T++){var C=P[T];M[C.position.start.line-1].comment=C}return d(M,S),M}function d(S,M){if(M.position.start.offset!==M.position.end.offset){if("leadingComments"in M){var T=M.position.start,P=S[T.line-1].leadingAttachableNode;(!P||T.column<P.position.start.column)&&(S[T.line-1].leadingAttachableNode=M)}if("trailingComment"in M&&M.position.end.column>1&&M.type!=="document"&&M.type!=="documentHead"){var C=M.position.end,q=S[C.line-1].trailingAttachableNode;(!q||C.column>=q.position.end.column)&&(S[C.line-1].trailingAttachableNode=M)}if(M.type!=="root"&&M.type!=="document"&&M.type!=="documentHead"&&M.type!=="documentBody")for(var R=M.position,T=R.start,C=R.end,j=[C.line].concat(T.line===C.line?[]:T.line),K=0,m=j;K<m.length;K++){var a=m[K],t=S[a-1].trailingNode;(!t||C.column>=t.position.end.column)&&(S[a-1].trailingNode=M)}"children"in M&&M.children.forEach(function(s){d(S,s)})}}function y(S,M,T){var P=S.position.start.line,C=M[P-1].trailingAttachableNode;if(C){if(C.trailingComment)throw new Error("Unexpected multiple trailing comment at "+n.getPointText(S.position.start));e.defineParents(S,C),C.trailingComment=S;return}for(var q=P;q>=T.position.start.line;q--){var R=M[q-1].trailingNode,j=void 0;if(R)j=R;else if(q!==P&&M[q-1].comment)j=M[q-1].comment._parent;else continue;if((j.type==="sequence"||j.type==="mapping")&&(j=j.children[0]),j.type==="mappingItem"){var K=j.children,m=K[0],a=K[1];j=I(m)?m:a}for(;;){if(E(j,S)){e.defineParents(S,j),j.endComments.push(S);return}if(!j._parent)break;j=j._parent}break}for(var q=P+1;q<=T.position.end.line;q++){var t=M[q-1].leadingAttachableNode;if(t){e.defineParents(S,t),t.leadingComments.push(S);return}}var s=T.children[1];e.defineParents(S,s),s.endComments.push(S)}function E(S,M){if(S.position.start.offset<M.position.start.offset&&S.position.end.offset>M.position.end.offset)switch(S.type){case"flowMapping":case"flowSequence":return S.children.length===0||M.position.start.line>S.children[S.children.length-1].position.end.line}if(M.position.end.offset<S.position.end.offset)return!1;switch(S.type){case"sequenceItem":return M.position.start.column>S.position.start.column;case"mappingKey":case"mappingValue":return M.position.start.column>S._parent.position.start.column&&(S.children.length===0||S.children.length===1&&S.children[0].type!=="blockFolded"&&S.children[0].type!=="blockLiteral")&&(S.type==="mappingValue"||I(S));default:return!1}}function I(S){return S.position.start!==S.position.end&&(S.children.length===0||S.position.start.offset!==S.children[0].position.start.offset)}}}),me=F({"node_modules/yaml-unist-parser/lib/factories/node.js"(r){"use strict";D(),r.__esModule=!0;function e(n,c){return{type:n,position:c}}r.createNode=e}}),zt=F({"node_modules/yaml-unist-parser/lib/factories/root.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=me();function c(h,d,y){return e.__assign(e.__assign({},n.createNode("root",h)),{children:d,comments:y})}r.createRoot=c}}),Zt=F({"node_modules/yaml-unist-parser/lib/preprocess.js"(r){"use strict";D(),r.__esModule=!0;function e(n){switch(n.type){case"DOCUMENT":for(var c=n.contents.length-1;c>=0;c--)n.contents[c].type==="BLANK_LINE"?n.contents.splice(c,1):e(n.contents[c]);for(var c=n.directives.length-1;c>=0;c--)n.directives[c].type==="BLANK_LINE"&&n.directives.splice(c,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(var c=n.items.length-1;c>=0;c--){var h=n.items[c];"char"in h||(h.type==="BLANK_LINE"?n.items.splice(c,1):e(h))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":n.node&&e(n.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error("Unexpected node type "+JSON.stringify(n.type))}}r.removeCstBlankLine=e}}),Oe=F({"node_modules/yaml-unist-parser/lib/factories/leading-comment-attachable.js"(r){"use strict";D(),r.__esModule=!0;function e(){return{leadingComments:[]}}r.createLeadingCommentAttachable=e}}),Be=F({"node_modules/yaml-unist-parser/lib/factories/trailing-comment-attachable.js"(r){"use strict";D(),r.__esModule=!0;function e(n){return n===void 0&&(n=null),{trailingComment:n}}r.createTrailingCommentAttachable=e}}),Se=F({"node_modules/yaml-unist-parser/lib/factories/comment-attachable.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=Oe(),c=Be();function h(){return e.__assign(e.__assign({},n.createLeadingCommentAttachable()),c.createTrailingCommentAttachable())}r.createCommentAttachable=h}}),Xt=F({"node_modules/yaml-unist-parser/lib/factories/alias.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=Se(),c=me();function h(d,y,E){return e.__assign(e.__assign(e.__assign(e.__assign({},c.createNode("alias",d)),n.createCommentAttachable()),y),{value:E})}r.createAlias=h}}),en=F({"node_modules/yaml-unist-parser/lib/transforms/alias.js"(r){"use strict";D(),r.__esModule=!0;var e=Xt();function n(c,h){var d=c.cstNode;return e.createAlias(h.transformRange({origStart:d.valueRange.origStart-1,origEnd:d.valueRange.origEnd}),h.transformContent(c),d.rawValue)}r.transformAlias=n}}),tn=F({"node_modules/yaml-unist-parser/lib/factories/block-folded.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te));function n(c){return e.__assign(e.__assign({},c),{type:"blockFolded"})}r.createBlockFolded=n}}),nn=F({"node_modules/yaml-unist-parser/lib/factories/block-value.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=Oe(),c=me();function h(d,y,E,I,S,M){return e.__assign(e.__assign(e.__assign(e.__assign({},c.createNode("blockValue",d)),n.createLeadingCommentAttachable()),y),{chomping:E,indent:I,value:S,indicatorComment:M})}r.createBlockValue=h}}),Ge=F({"node_modules/yaml-unist-parser/lib/constants.js"(r){"use strict";D(),r.__esModule=!0;var e;(function(n){n.Tag="!",n.Anchor="&",n.Comment="#"})(e=r.PropLeadingCharacter||(r.PropLeadingCharacter={}))}}),rn=F({"node_modules/yaml-unist-parser/lib/factories/anchor.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=me();function c(h,d){return e.__assign(e.__assign({},n.createNode("anchor",h)),{value:d})}r.createAnchor=c}}),Ve=F({"node_modules/yaml-unist-parser/lib/factories/comment.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=me();function c(h,d){return e.__assign(e.__assign({},n.createNode("comment",h)),{value:d})}r.createComment=c}}),sn=F({"node_modules/yaml-unist-parser/lib/factories/content.js"(r){"use strict";D(),r.__esModule=!0;function e(n,c,h){return{anchor:c,tag:n,middleComments:h}}r.createContent=e}}),an=F({"node_modules/yaml-unist-parser/lib/factories/tag.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=me();function c(h,d){return e.__assign(e.__assign({},n.createNode("tag",h)),{value:d})}r.createTag=c}}),ze=F({"node_modules/yaml-unist-parser/lib/transforms/content.js"(r){"use strict";D(),r.__esModule=!0;var e=Ge(),n=rn(),c=Ve(),h=sn(),d=an();function y(E,I,S){S===void 0&&(S=function(){return!1});for(var M=E.cstNode,T=[],P=null,C=null,q=null,R=0,j=M.props;R<j.length;R++){var K=j[R],m=I.text[K.origStart];switch(m){case e.PropLeadingCharacter.Tag:P=P||K,C=d.createTag(I.transformRange(K),E.tag);break;case e.PropLeadingCharacter.Anchor:P=P||K,q=n.createAnchor(I.transformRange(K),M.anchor);break;case e.PropLeadingCharacter.Comment:{var a=c.createComment(I.transformRange(K),I.text.slice(K.origStart+1,K.origEnd));I.comments.push(a),!S(a)&&P&&P.origEnd<=K.origStart&&K.origEnd<=M.valueRange.origStart&&T.push(a);break}default:throw new Error("Unexpected leading character "+JSON.stringify(m))}}return h.createContent(C,q,T)}r.transformContent=y}}),Ze=F({"node_modules/yaml-unist-parser/lib/transforms/block-value.js"(r){"use strict";D(),r.__esModule=!0;var e=nn(),n=We(),c=ze(),h;(function(y){y.CLIP="clip",y.STRIP="strip",y.KEEP="keep"})(h||(h={}));function d(y,E){var I=y.cstNode,S=1,M=I.chomping==="CLIP"?0:1,T=I.header.origEnd-I.header.origStart,P=T-S-M!==0,C=E.transformRange({origStart:I.header.origStart,origEnd:I.valueRange.origEnd}),q=null,R=c.transformContent(y,E,function(j){var K=C.start.offset<j.position.start.offset&&j.position.end.offset<C.end.offset;if(!K)return!1;if(q)throw new Error("Unexpected multiple indicator comments at "+n.getPointText(j.position.start));return q=j,!0});return e.createBlockValue(C,R,h[I.chomping],P?I.blockIndent:null,I.strValue,q)}r.transformAstBlockValue=d}}),on=F({"node_modules/yaml-unist-parser/lib/transforms/block-folded.js"(r){"use strict";D(),r.__esModule=!0;var e=tn(),n=Ze();function c(h,d){return e.createBlockFolded(n.transformAstBlockValue(h,d))}r.transformBlockFolded=c}}),ln=F({"node_modules/yaml-unist-parser/lib/factories/block-literal.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te));function n(c){return e.__assign(e.__assign({},c),{type:"blockLiteral"})}r.createBlockLiteral=n}}),cn=F({"node_modules/yaml-unist-parser/lib/transforms/block-literal.js"(r){"use strict";D(),r.__esModule=!0;var e=ln(),n=Ze();function c(h,d){return e.createBlockLiteral(n.transformAstBlockValue(h,d))}r.transformBlockLiteral=c}}),un=F({"node_modules/yaml-unist-parser/lib/transforms/comment.js"(r){"use strict";D(),r.__esModule=!0;var e=Ve();function n(c,h){return e.createComment(h.transformRange(c.range),c.comment)}r.transformComment=n}}),fn=F({"node_modules/yaml-unist-parser/lib/factories/directive.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=Se(),c=me();function h(d,y,E){return e.__assign(e.__assign(e.__assign({},c.createNode("directive",d)),n.createCommentAttachable()),{name:y,parameters:E})}r.createDirective=h}}),Qe=F({"node_modules/yaml-unist-parser/lib/utils/extract-prop-comments.js"(r){"use strict";D(),r.__esModule=!0;var e=Ge(),n=Ve();function c(h,d){for(var y=0,E=h.props;y<E.length;y++){var I=E[y],S=d.text[I.origStart];switch(S){case e.PropLeadingCharacter.Comment:d.comments.push(n.createComment(d.transformRange(I),d.text.slice(I.origStart+1,I.origEnd)));break;default:throw new Error("Unexpected leading character "+JSON.stringify(S))}}}r.extractPropComments=c}}),mn=F({"node_modules/yaml-unist-parser/lib/transforms/directive.js"(r){"use strict";D(),r.__esModule=!0;var e=fn(),n=Qe();function c(h,d){return n.extractPropComments(h,d),e.createDirective(d.transformRange(h.range),h.name,h.parameters)}r.transformDirective=c}}),dn=F({"node_modules/yaml-unist-parser/lib/factories/document.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=me(),c=Be();function h(d,y,E,I){return e.__assign(e.__assign(e.__assign({},n.createNode("document",d)),c.createTrailingCommentAttachable(I)),{children:[y,E]})}r.createDocument=h}}),Le=F({"node_modules/yaml-unist-parser/lib/factories/position.js"(r){"use strict";D(),r.__esModule=!0;function e(c,h){return{start:c,end:h}}r.createPosition=e;function n(c){return{start:c,end:c}}r.createEmptyPosition=n}}),Ee=F({"node_modules/yaml-unist-parser/lib/factories/end-comment-attachable.js"(r){"use strict";D(),r.__esModule=!0;function e(n){return n===void 0&&(n=[]),{endComments:n}}r.createEndCommentAttachable=e}}),hn=F({"node_modules/yaml-unist-parser/lib/factories/document-body.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=Ee(),c=me();function h(d,y,E){return e.__assign(e.__assign(e.__assign({},c.createNode("documentBody",d)),n.createEndCommentAttachable(E)),{children:y?[y]:[]})}r.createDocumentBody=h}}),Ae=F({"node_modules/yaml-unist-parser/lib/utils/get-last.js"(r){"use strict";D(),r.__esModule=!0;function e(n){return n[n.length-1]}r.getLast=e}}),Xe=F({"node_modules/yaml-unist-parser/lib/utils/get-match-index.js"(r){"use strict";D(),r.__esModule=!0;function e(n,c){var h=n.match(c);return h?h.index:-1}r.getMatchIndex=e}}),gn=F({"node_modules/yaml-unist-parser/lib/transforms/document-body.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=hn(),c=Ae(),h=Xe(),d=We();function y(S,M,T){var P,C=S.cstNode,q=E(C,M,T),R=q.comments,j=q.endComments,K=q.documentTrailingComment,m=q.documentHeadTrailingComment,a=M.transformNode(S.contents),t=I(C,a,M),s=t.position,i=t.documentEndPoint;return(P=M.comments).push.apply(P,e.__spreadArrays(R,j)),{documentBody:n.createDocumentBody(s,a,j),documentEndPoint:i,documentTrailingComment:K,documentHeadTrailingComment:m}}r.transformDocumentBody=y;function E(S,M,T){for(var P=[],C=[],q=[],R=[],j=!1,K=S.contents.length-1;K>=0;K--){var m=S.contents[K];if(m.type==="COMMENT"){var a=M.transformNode(m);T&&T.line===a.position.start.line?R.unshift(a):j?P.unshift(a):a.position.start.offset>=S.valueRange.origEnd?q.unshift(a):P.unshift(a)}else j=!0}if(q.length>1)throw new Error("Unexpected multiple document trailing comments at "+d.getPointText(q[1].position.start));if(R.length>1)throw new Error("Unexpected multiple documentHead trailing comments at "+d.getPointText(R[1].position.start));return{comments:P,endComments:C,documentTrailingComment:c.getLast(q)||null,documentHeadTrailingComment:c.getLast(R)||null}}function I(S,M,T){var P=h.getMatchIndex(T.text.slice(S.valueRange.origEnd),/^\.\.\./),C=P===-1?S.valueRange.origEnd:Math.max(0,S.valueRange.origEnd-1);T.text[C-1]==="\r"&&C--;var q=T.transformRange({origStart:M!==null?M.position.start.offset:C,origEnd:C}),R=P===-1?q.end:T.transformOffset(S.valueRange.origEnd+3);return{position:q,documentEndPoint:R}}}}),pn=F({"node_modules/yaml-unist-parser/lib/factories/document-head.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=Ee(),c=me(),h=Be();function d(y,E,I,S){return e.__assign(e.__assign(e.__assign(e.__assign({},c.createNode("documentHead",y)),n.createEndCommentAttachable(I)),h.createTrailingCommentAttachable(S)),{children:E})}r.createDocumentHead=d}}),_n=F({"node_modules/yaml-unist-parser/lib/transforms/document-head.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=pn(),c=Xe();function h(E,I){var S,M=E.cstNode,T=d(M,I),P=T.directives,C=T.comments,q=T.endComments,R=y(M,P,I),j=R.position,K=R.endMarkerPoint;(S=I.comments).push.apply(S,e.__spreadArrays(C,q));var m=function(a){return a&&I.comments.push(a),n.createDocumentHead(j,P,q,a)};return{createDocumentHeadWithTrailingComment:m,documentHeadEndMarkerPoint:K}}r.transformDocumentHead=h;function d(E,I){for(var S=[],M=[],T=[],P=!1,C=E.directives.length-1;C>=0;C--){var q=I.transformNode(E.directives[C]);q.type==="comment"?P?M.unshift(q):T.unshift(q):(P=!0,S.unshift(q))}return{directives:S,comments:M,endComments:T}}function y(E,I,S){var M=c.getMatchIndex(S.text.slice(0,E.valueRange.origStart),/---\s*$/);M>0&&!/[\r\n]/.test(S.text[M-1])&&(M=-1);var T=M===-1?{origStart:E.valueRange.origStart,origEnd:E.valueRange.origStart}:{origStart:M,origEnd:M+3};return I.length!==0&&(T.origStart=I[0].position.start.offset),{position:S.transformRange(T),endMarkerPoint:M===-1?null:S.transformOffset(M)}}}}),vn=F({"node_modules/yaml-unist-parser/lib/transforms/document.js"(r){"use strict";D(),r.__esModule=!0;var e=dn(),n=Le(),c=gn(),h=_n();function d(y,E){var I=h.transformDocumentHead(y,E),S=I.createDocumentHeadWithTrailingComment,M=I.documentHeadEndMarkerPoint,T=c.transformDocumentBody(y,E,M),P=T.documentBody,C=T.documentEndPoint,q=T.documentTrailingComment,R=T.documentHeadTrailingComment,j=S(R);return q&&E.comments.push(q),e.createDocument(n.createPosition(j.position.start,C),j,P,q)}r.transformDocument=d}}),et=F({"node_modules/yaml-unist-parser/lib/factories/flow-collection.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=Se(),c=Ee(),h=me();function d(y,E,I){return e.__assign(e.__assign(e.__assign(e.__assign(e.__assign({},h.createNode("flowCollection",y)),n.createCommentAttachable()),c.createEndCommentAttachable()),E),{children:I})}r.createFlowCollection=d}}),yn=F({"node_modules/yaml-unist-parser/lib/factories/flow-mapping.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=et();function c(h,d,y){return e.__assign(e.__assign({},n.createFlowCollection(h,d,y)),{type:"flowMapping"})}r.createFlowMapping=c}}),tt=F({"node_modules/yaml-unist-parser/lib/factories/flow-mapping-item.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=Oe(),c=me();function h(d,y,E){return e.__assign(e.__assign(e.__assign({},c.createNode("flowMappingItem",d)),n.createLeadingCommentAttachable()),{children:[y,E]})}r.createFlowMappingItem=h}}),je=F({"node_modules/yaml-unist-parser/lib/utils/extract-comments.js"(r){"use strict";D(),r.__esModule=!0;function e(n,c){for(var h=[],d=0,y=n;d<y.length;d++){var E=y[d];E&&"type"in E&&E.type==="COMMENT"?c.comments.push(c.transformNode(E)):h.push(E)}return h}r.extractComments=e}}),nt=F({"node_modules/yaml-unist-parser/lib/utils/get-flow-map-item-additional-ranges.js"(r){"use strict";D(),r.__esModule=!0;function e(n){var c=["?",":"].map(function(y){var E=n.find(function(I){return"char"in I&&I.char===y});return E?{origStart:E.origOffset,origEnd:E.origOffset+1}:null}),h=c[0],d=c[1];return{additionalKeyRange:h,additionalValueRange:d}}r.getFlowMapItemAdditionalRanges=e}}),rt=F({"node_modules/yaml-unist-parser/lib/utils/create-slicer.js"(r){"use strict";D(),r.__esModule=!0;function e(n,c){var h=c;return function(d){return n.slice(h,h=d)}}r.createSlicer=e}}),st=F({"node_modules/yaml-unist-parser/lib/utils/group-cst-flow-collection-items.js"(r){"use strict";D(),r.__esModule=!0;var e=rt();function n(c){for(var h=[],d=e.createSlicer(c,1),y=!1,E=1;E<c.length-1;E++){var I=c[E];if("char"in I&&I.char===","){h.push(d(E)),d(E+1),y=!1;continue}y=!0}return y&&h.push(d(c.length-1)),h}r.groupCstFlowCollectionItems=n}}),bn=F({"node_modules/yaml-unist-parser/lib/factories/mapping-key.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=Ee(),c=me(),h=Be();function d(y,E){return e.__assign(e.__assign(e.__assign(e.__assign({},c.createNode("mappingKey",y)),h.createTrailingCommentAttachable()),n.createEndCommentAttachable()),{children:E?[E]:[]})}r.createMappingKey=d}}),wn=F({"node_modules/yaml-unist-parser/lib/factories/mapping-value.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=Se(),c=Ee(),h=me();function d(y,E){return e.__assign(e.__assign(e.__assign(e.__assign({},h.createNode("mappingValue",y)),n.createCommentAttachable()),c.createEndCommentAttachable()),{children:E?[E]:[]})}r.createMappingValue=d}}),Ue=F({"node_modules/yaml-unist-parser/lib/transforms/pair.js"(r){"use strict";D(),r.__esModule=!0;var e=bn(),n=wn(),c=Le();function h(d,y,E,I,S){var M=y.transformNode(d.key),T=y.transformNode(d.value),P=M||I?e.createMappingKey(y.transformRange({origStart:I?I.origStart:M.position.start.offset,origEnd:M?M.position.end.offset:I.origStart+1}),M):null,C=T||S?n.createMappingValue(y.transformRange({origStart:S?S.origStart:T.position.start.offset,origEnd:T?T.position.end.offset:S.origStart+1}),T):null;return E(c.createPosition(P?P.position.start:C.position.start,C?C.position.end:P.position.end),P||e.createMappingKey(c.createEmptyPosition(C.position.start),null),C||n.createMappingValue(c.createEmptyPosition(P.position.end),null))}r.transformAstPair=h}}),Sn=F({"node_modules/yaml-unist-parser/lib/transforms/flow-map.js"(r){"use strict";D(),r.__esModule=!0;var e=yn(),n=tt(),c=je(),h=nt(),d=Ae(),y=st(),E=Ue();function I(S,M){var T=c.extractComments(S.cstNode.items,M),P=y.groupCstFlowCollectionItems(T),C=S.items.map(function(j,K){var m=P[K],a=h.getFlowMapItemAdditionalRanges(m),t=a.additionalKeyRange,s=a.additionalValueRange;return E.transformAstPair(j,M,n.createFlowMappingItem,t,s)}),q=T[0],R=d.getLast(T);return e.createFlowMapping(M.transformRange({origStart:q.origOffset,origEnd:R.origOffset+1}),M.transformContent(S),C)}r.transformFlowMap=I}}),En=F({"node_modules/yaml-unist-parser/lib/factories/flow-sequence.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=et();function c(h,d,y){return e.__assign(e.__assign({},n.createFlowCollection(h,d,y)),{type:"flowSequence"})}r.createFlowSequence=c}}),Mn=F({"node_modules/yaml-unist-parser/lib/factories/flow-sequence-item.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=me();function c(h,d){return e.__assign(e.__assign({},n.createNode("flowSequenceItem",h)),{children:[d]})}r.createFlowSequenceItem=c}}),On=F({"node_modules/yaml-unist-parser/lib/transforms/flow-seq.js"(r){"use strict";D(),r.__esModule=!0;var e=tt(),n=En(),c=Mn(),h=Le(),d=je(),y=nt(),E=Ae(),I=st(),S=Ue();function M(T,P){var C=d.extractComments(T.cstNode.items,P),q=I.groupCstFlowCollectionItems(C),R=T.items.map(function(m,a){if(m.type!=="PAIR"){var t=P.transformNode(m);return c.createFlowSequenceItem(h.createPosition(t.position.start,t.position.end),t)}else{var s=q[a],i=y.getFlowMapItemAdditionalRanges(s),f=i.additionalKeyRange,g=i.additionalValueRange;return S.transformAstPair(m,P,e.createFlowMappingItem,f,g)}}),j=C[0],K=E.getLast(C);return n.createFlowSequence(P.transformRange({origStart:j.origOffset,origEnd:K.origOffset+1}),P.transformContent(T),R)}r.transformFlowSeq=M}}),Ln=F({"node_modules/yaml-unist-parser/lib/factories/mapping.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=Oe(),c=me();function h(d,y,E){return e.__assign(e.__assign(e.__assign(e.__assign({},c.createNode("mapping",d)),n.createLeadingCommentAttachable()),y),{children:E})}r.createMapping=h}}),An=F({"node_modules/yaml-unist-parser/lib/factories/mapping-item.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=Oe(),c=me();function h(d,y,E){return e.__assign(e.__assign(e.__assign({},c.createNode("mappingItem",d)),n.createLeadingCommentAttachable()),{children:[y,E]})}r.createMappingItem=h}}),Nn=F({"node_modules/yaml-unist-parser/lib/transforms/map.js"(r){"use strict";D(),r.__esModule=!0;var e=Ln(),n=An(),c=Le(),h=rt(),d=je(),y=Qe(),E=Ae(),I=Ue();function S(T,P){var C=T.cstNode;C.items.filter(function(K){return K.type==="MAP_KEY"||K.type==="MAP_VALUE"}).forEach(function(K){return y.extractPropComments(K,P)});var q=d.extractComments(C.items,P),R=M(q),j=T.items.map(function(K,m){var a=R[m],t=a[0].type==="MAP_VALUE"?[null,a[0].range]:[a[0].range,a.length===1?null:a[1].range],s=t[0],i=t[1];return I.transformAstPair(K,P,n.createMappingItem,s,i)});return e.createMapping(c.createPosition(j[0].position.start,E.getLast(j).position.end),P.transformContent(T),j)}r.transformMap=S;function M(T){for(var P=[],C=h.createSlicer(T,0),q=!1,R=0;R<T.length;R++){var j=T[R];if(j.type==="MAP_VALUE"){P.push(C(R+1)),q=!1;continue}q&&P.push(C(R)),q=!0}return q&&P.push(C(1/0)),P}}}),Tn=F({"node_modules/yaml-unist-parser/lib/factories/plain.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=Se(),c=me();function h(d,y,E){return e.__assign(e.__assign(e.__assign(e.__assign({},c.createNode("plain",d)),n.createCommentAttachable()),y),{value:E})}r.createPlain=h}}),Cn=F({"node_modules/yaml-unist-parser/lib/utils/find-last-char-index.js"(r){"use strict";D(),r.__esModule=!0;function e(n,c,h){for(var d=c;d>=0;d--)if(h.test(n[d]))return d;return-1}r.findLastCharIndex=e}}),kn=F({"node_modules/yaml-unist-parser/lib/transforms/plain.js"(r){"use strict";D(),r.__esModule=!0;var e=Tn(),n=Cn();function c(h,d){var y=h.cstNode;return e.createPlain(d.transformRange({origStart:y.valueRange.origStart,origEnd:n.findLastCharIndex(d.text,y.valueRange.origEnd-1,/\S/)+1}),d.transformContent(h),y.strValue)}r.transformPlain=c}}),Pn=F({"node_modules/yaml-unist-parser/lib/factories/quote-double.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te));function n(c){return e.__assign(e.__assign({},c),{type:"quoteDouble"})}r.createQuoteDouble=n}}),In=F({"node_modules/yaml-unist-parser/lib/factories/quote-value.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=Se(),c=me();function h(d,y,E){return e.__assign(e.__assign(e.__assign(e.__assign({},c.createNode("quoteValue",d)),y),n.createCommentAttachable()),{value:E})}r.createQuoteValue=h}}),at=F({"node_modules/yaml-unist-parser/lib/transforms/quote-value.js"(r){"use strict";D(),r.__esModule=!0;var e=In();function n(c,h){var d=c.cstNode;return e.createQuoteValue(h.transformRange(d.valueRange),h.transformContent(c),d.strValue)}r.transformAstQuoteValue=n}}),Rn=F({"node_modules/yaml-unist-parser/lib/transforms/quote-double.js"(r){"use strict";D(),r.__esModule=!0;var e=Pn(),n=at();function c(h,d){return e.createQuoteDouble(n.transformAstQuoteValue(h,d))}r.transformQuoteDouble=c}}),qn=F({"node_modules/yaml-unist-parser/lib/factories/quote-single.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te));function n(c){return e.__assign(e.__assign({},c),{type:"quoteSingle"})}r.createQuoteSingle=n}}),Bn=F({"node_modules/yaml-unist-parser/lib/transforms/quote-single.js"(r){"use strict";D(),r.__esModule=!0;var e=qn(),n=at();function c(h,d){return e.createQuoteSingle(n.transformAstQuoteValue(h,d))}r.transformQuoteSingle=c}}),jn=F({"node_modules/yaml-unist-parser/lib/factories/sequence.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=Ee(),c=Oe(),h=me();function d(y,E,I){return e.__assign(e.__assign(e.__assign(e.__assign(e.__assign({},h.createNode("sequence",y)),c.createLeadingCommentAttachable()),n.createEndCommentAttachable()),E),{children:I})}r.createSequence=d}}),Yn=F({"node_modules/yaml-unist-parser/lib/factories/sequence-item.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te)),n=Se(),c=Ee(),h=me();function d(y,E){return e.__assign(e.__assign(e.__assign(e.__assign({},h.createNode("sequenceItem",y)),n.createCommentAttachable()),c.createEndCommentAttachable()),{children:E?[E]:[]})}r.createSequenceItem=d}}),Dn=F({"node_modules/yaml-unist-parser/lib/transforms/seq.js"(r){"use strict";D(),r.__esModule=!0;var e=Le(),n=jn(),c=Yn(),h=je(),d=Qe(),y=Ae();function E(I,S){var M=h.extractComments(I.cstNode.items,S),T=M.map(function(P,C){d.extractPropComments(P,S);var q=S.transformNode(I.items[C]);return c.createSequenceItem(e.createPosition(S.transformOffset(P.valueRange.origStart),q===null?S.transformOffset(P.valueRange.origStart+1):q.position.end),q)});return n.createSequence(e.createPosition(T[0].position.start,y.getLast(T).position.end),S.transformContent(I),T)}r.transformSeq=E}}),Fn=F({"node_modules/yaml-unist-parser/lib/transform.js"(r){"use strict";D(),r.__esModule=!0;var e=en(),n=on(),c=cn(),h=un(),d=mn(),y=vn(),E=Sn(),I=On(),S=Nn(),M=kn(),T=Rn(),P=Bn(),C=Dn();function q(R,j){if(R===null||R.type===void 0&&R.value===null)return null;switch(R.type){case"ALIAS":return e.transformAlias(R,j);case"BLOCK_FOLDED":return n.transformBlockFolded(R,j);case"BLOCK_LITERAL":return c.transformBlockLiteral(R,j);case"COMMENT":return h.transformComment(R,j);case"DIRECTIVE":return d.transformDirective(R,j);case"DOCUMENT":return y.transformDocument(R,j);case"FLOW_MAP":return E.transformFlowMap(R,j);case"FLOW_SEQ":return I.transformFlowSeq(R,j);case"MAP":return S.transformMap(R,j);case"PLAIN":return M.transformPlain(R,j);case"QUOTE_DOUBLE":return T.transformQuoteDouble(R,j);case"QUOTE_SINGLE":return P.transformQuoteSingle(R,j);case"SEQ":return C.transformSeq(R,j);default:throw new Error("Unexpected node type "+R.type)}}r.transformNode=q}}),Wn=F({"node_modules/yaml-unist-parser/lib/factories/error.js"(r){"use strict";D(),r.__esModule=!0;function e(n,c,h){var d=new SyntaxError(n);return d.name="YAMLSyntaxError",d.source=c,d.position=h,d}r.createError=e}}),Vn=F({"node_modules/yaml-unist-parser/lib/transforms/error.js"(r){"use strict";D(),r.__esModule=!0;var e=Wn();function n(c,h){var d=c.source.range||c.source.valueRange;return e.createError(c.message,h.text,h.transformRange(d))}r.transformError=n}}),Qn=F({"node_modules/yaml-unist-parser/lib/factories/point.js"(r){"use strict";D(),r.__esModule=!0;function e(n,c,h){return{offset:n,line:c,column:h}}r.createPoint=e}}),Un=F({"node_modules/yaml-unist-parser/lib/transforms/offset.js"(r){"use strict";D(),r.__esModule=!0;var e=Qn();function n(c,h){c<0?c=0:c>h.text.length&&(c=h.text.length);var d=h.locator.locationForIndex(c);return e.createPoint(c,d.line+1,d.column+1)}r.transformOffset=n}}),Kn=F({"node_modules/yaml-unist-parser/lib/transforms/range.js"(r){"use strict";D(),r.__esModule=!0;var e=Le();function n(c,h){return e.createPosition(h.transformOffset(c.origStart),h.transformOffset(c.origEnd))}r.transformRange=n}}),$n=F({"node_modules/yaml-unist-parser/lib/utils/add-orig-range.js"(r){"use strict";D(),r.__esModule=!0;var e=!0;function n(y){if(!y.setOrigRanges()){var E=function(I){if(h(I))return I.origStart=I.start,I.origEnd=I.end,e;if(d(I))return I.origOffset=I.offset,e};y.forEach(function(I){return c(I,E)})}}r.addOrigRange=n;function c(y,E){if(!(!y||typeof y!="object")&&E(y)!==e)for(var I=0,S=Object.keys(y);I<S.length;I++){var M=S[I];if(!(M==="context"||M==="error")){var T=y[M];Array.isArray(T)?T.forEach(function(P){return c(P,E)}):c(T,E)}}}function h(y){return typeof y.start=="number"}function d(y){return typeof y.offset=="number"}}}),Jn=F({"node_modules/yaml-unist-parser/lib/utils/remove-fake-nodes.js"(r){"use strict";D(),r.__esModule=!0;function e(n){if("children"in n){if(n.children.length===1){var c=n.children[0];if(c.type==="plain"&&c.tag===null&&c.anchor===null&&c.value==="")return n.children.splice(0,1),n}n.children.forEach(e)}return n}r.removeFakeNodes=e}}),xn=F({"node_modules/yaml-unist-parser/lib/utils/create-updater.js"(r){"use strict";D(),r.__esModule=!0;function e(n,c,h,d){var y=c(n);return function(E){d(y,E)&&h(n,y=E)}}r.createUpdater=e}}),Hn=F({"node_modules/yaml-unist-parser/lib/utils/update-positions.js"(r){"use strict";D(),r.__esModule=!0;var e=xn(),n=Ae();function c(M){if(!(M===null||!("children"in M))){var T=M.children;if(T.forEach(c),M.type==="document"){var P=M.children,C=P[0],q=P[1];C.position.start.offset===C.position.end.offset?C.position.start=C.position.end=q.position.start:q.position.start.offset===q.position.end.offset&&(q.position.start=q.position.end=C.position.end)}var R=e.createUpdater(M.position,h,d,I),j=e.createUpdater(M.position,y,E,S);"endComments"in M&&M.endComments.length!==0&&(R(M.endComments[0].position.start),j(n.getLast(M.endComments).position.end));var K=T.filter(function(t){return t!==null});if(K.length!==0){var m=K[0],a=n.getLast(K);R(m.position.start),j(a.position.end),"leadingComments"in m&&m.leadingComments.length!==0&&R(m.leadingComments[0].position.start),"tag"in m&&m.tag&&R(m.tag.position.start),"anchor"in m&&m.anchor&&R(m.anchor.position.start),"trailingComment"in a&&a.trailingComment&&j(a.trailingComment.position.end)}}}r.updatePositions=c;function h(M){return M.start}function d(M,T){M.start=T}function y(M){return M.end}function E(M,T){M.end=T}function I(M,T){return T.offset<M.offset}function S(M,T){return T.offset>M.offset}}}),Me=F({"node_modules/yaml/dist/PlainValue-ec8e588e.js"(r){"use strict";D();var e={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},n={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},c="tag:yaml.org,2002:",h={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function d(a){let t=[0],s=a.indexOf(`
5
+ `);for(;s!==-1;)s+=1,t.push(s),s=a.indexOf(`
6
+ `,s);return t}function y(a){let t,s;return typeof a=="string"?(t=d(a),s=a):(Array.isArray(a)&&(a=a[0]),a&&a.context&&(a.lineStarts||(a.lineStarts=d(a.context.src)),t=a.lineStarts,s=a.context.src)),{lineStarts:t,src:s}}function E(a,t){if(typeof a!="number"||a<0)return null;let{lineStarts:s,src:i}=y(t);if(!s||!i||a>i.length)return null;for(let g=0;g<s.length;++g){let u=s[g];if(a<u)return{line:g,col:a-s[g-1]+1};if(a===u)return{line:g+1,col:1}}let f=s.length;return{line:f,col:a-s[f-1]+1}}function I(a,t){let{lineStarts:s,src:i}=y(t);if(!s||!(a>=1)||a>s.length)return null;let f=s[a-1],g=s[a];for(;g&&g>f&&i[g-1]===`
7
+ `;)--g;return i.slice(f,g)}function S(a,t){let{start:s,end:i}=a,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:80,g=I(s.line,t);if(!g)return null;let{col:u}=s;if(g.length>f)if(u<=f-10)g=g.substr(0,f-1)+"\u2026";else{let $=Math.round(f/2);g.length>u+$&&(g=g.substr(0,u+$-1)+"\u2026"),u-=g.length-f,g="\u2026"+g.substr(1-f)}let p=1,L="";i&&(i.line===s.line&&u+(i.col-s.col)<=f+1?p=i.col-s.col:(p=Math.min(g.length+1,f)-u,L="\u2026"));let k=u>1?" ".repeat(u-1):"",B="^".repeat(p);return"".concat(g,`
8
+ `).concat(k).concat(B).concat(L)}var M=class{static copy(a){return new M(a.start,a.end)}constructor(a,t){this.start=a,this.end=t||a}isEmpty(){return typeof this.start!="number"||!this.end||this.end<=this.start}setOrigRange(a,t){let{start:s,end:i}=this;if(a.length===0||i<=a[0])return this.origStart=s,this.origEnd=i,t;let f=t;for(;f<a.length&&!(a[f]>s);)++f;this.origStart=s+f;let g=f;for(;f<a.length&&!(a[f]>=i);)++f;return this.origEnd=i+f,g}},T=class{static addStringTerminator(a,t,s){if(s[s.length-1]===`
9
+ `)return s;let i=T.endOfWhiteSpace(a,t);return i>=a.length||a[i]===`
10
+ `?s+`
11
+ `:s}static atDocumentBoundary(a,t,s){let i=a[t];if(!i)return!0;let f=a[t-1];if(f&&f!==`
12
+ `)return!1;if(s){if(i!==s)return!1}else if(i!==e.DIRECTIVES_END&&i!==e.DOCUMENT_END)return!1;let g=a[t+1],u=a[t+2];if(g!==i||u!==i)return!1;let p=a[t+3];return!p||p===`
13
+ `||p===" "||p===" "}static endOfIdentifier(a,t){let s=a[t],i=s==="<",f=i?[`
14
+ `," "," ",">"]:[`
15
+ `," "," ","[","]","{","}",","];for(;s&&f.indexOf(s)===-1;)s=a[t+=1];return i&&s===">"&&(t+=1),t}static endOfIndent(a,t){let s=a[t];for(;s===" ";)s=a[t+=1];return t}static endOfLine(a,t){let s=a[t];for(;s&&s!==`
16
+ `;)s=a[t+=1];return t}static endOfWhiteSpace(a,t){let s=a[t];for(;s===" "||s===" ";)s=a[t+=1];return t}static startOfLine(a,t){let s=a[t-1];if(s===`
17
+ `)return t;for(;s&&s!==`
18
+ `;)s=a[t-=1];return t+1}static endOfBlockIndent(a,t,s){let i=T.endOfIndent(a,s);if(i>s+t)return i;{let f=T.endOfWhiteSpace(a,i),g=a[f];if(!g||g===`
19
+ `)return f}return null}static atBlank(a,t,s){let i=a[t];return i===`
20
+ `||i===" "||i===" "||s&&!i}static nextNodeIsIndented(a,t,s){return!a||t<0?!1:t>0?!0:s&&a==="-"}static normalizeOffset(a,t){let s=a[t];return s?s!==`
21
+ `&&a[t-1]===`
22
+ `?t-1:T.endOfWhiteSpace(a,t):t}static foldNewline(a,t,s){let i=0,f=!1,g="",u=a[t+1];for(;u===" "||u===" "||u===`
23
+ `;){switch(u){case`
24
+ `:i=0,t+=1,g+=`
25
+ `;break;case" ":i<=s&&(f=!0),t=T.endOfWhiteSpace(a,t+2)-1;break;case" ":i+=1,t+=1;break}u=a[t+1]}return g||(g=" "),u&&i<=s&&(f=!0),{fold:g,offset:t,error:f}}constructor(a,t,s){Object.defineProperty(this,"context",{value:s||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=t||[],this.type=a,this.value=null}getPropValue(a,t,s){if(!this.context)return null;let{src:i}=this.context,f=this.props[a];return f&&i[f.start]===t?i.slice(f.start+(s?1:0),f.end):null}get anchor(){for(let a=0;a<this.props.length;++a){let t=this.getPropValue(a,e.ANCHOR,!0);if(t!=null)return t}return null}get comment(){let a=[];for(let t=0;t<this.props.length;++t){let s=this.getPropValue(t,e.COMMENT,!0);s!=null&&a.push(s)}return a.length>0?a.join(`
26
+ `):null}commentHasRequiredWhitespace(a){let{src:t}=this.context;if(this.header&&a===this.header.end||!this.valueRange)return!1;let{end:s}=this.valueRange;return a!==s||T.atBlank(t,s-1)}get hasComment(){if(this.context){let{src:a}=this.context;for(let t=0;t<this.props.length;++t)if(a[this.props[t].start]===e.COMMENT)return!0}return!1}get hasProps(){if(this.context){let{src:a}=this.context;for(let t=0;t<this.props.length;++t)if(a[this.props[t].start]!==e.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return[n.FLOW_MAP,n.FLOW_SEQ,n.QUOTE_DOUBLE,n.QUOTE_SINGLE].indexOf(this.type)!==-1}get rangeAsLinePos(){if(!this.range||!this.context)return;let a=E(this.range.start,this.context.root);if(!a)return;let t=E(this.range.end,this.context.root);return{start:a,end:t}}get rawValue(){if(!this.valueRange||!this.context)return null;let{start:a,end:t}=this.valueRange;return this.context.src.slice(a,t)}get tag(){for(let a=0;a<this.props.length;++a){let t=this.getPropValue(a,e.TAG,!1);if(t!=null){if(t[1]==="<")return{verbatim:t.slice(2,-1)};{let[s,i,f]=t.match(/^(.*!)([^!]*)$/);return{handle:i,suffix:f}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;let{start:a,end:t}=this.valueRange,{src:s}=this.context;for(let i=a;i<t;++i)if(s[i]===`
27
+ `)return!0;return!1}parseComment(a){let{src:t}=this.context;if(t[a]===e.COMMENT){let s=T.endOfLine(t,a+1),i=new M(a,s);return this.props.push(i),s}return a}setOrigRanges(a,t){return this.range&&(t=this.range.setOrigRange(a,t)),this.valueRange&&this.valueRange.setOrigRange(a,t),this.props.forEach(s=>s.setOrigRange(a,t)),t}toString(){let{context:{src:a},range:t,value:s}=this;if(s!=null)return s;let i=a.slice(t.start,t.end);return T.addStringTerminator(a,t.end,i)}},P=class extends Error{constructor(a,t,s){if(!s||!(t instanceof T))throw new Error("Invalid arguments for new ".concat(a));super();this.name=a,this.message=s,this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let a=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new M(this.offset,this.offset+1);let t=a&&E(this.offset,a);if(t){let s={line:t.line,col:t.col+1};this.linePos={start:t,end:s}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:t,col:s}=this.linePos.start;this.message+=" at line ".concat(t,", column ").concat(s);let i=a&&S(this.linePos,a);i&&(this.message+=`:
28
+
29
+ `.concat(i,`
30
+ `))}delete this.source}},C=class extends P{constructor(a,t){super("YAMLReferenceError",a,t)}},q=class extends P{constructor(a,t){super("YAMLSemanticError",a,t)}},R=class extends P{constructor(a,t){super("YAMLSyntaxError",a,t)}},j=class extends P{constructor(a,t){super("YAMLWarning",a,t)}};function K(a,t,s){return t in a?Object.defineProperty(a,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[t]=s,a}var m=class extends T{static endOfLine(a,t,s){let i=a[t],f=t;for(;i&&i!==`
31
+ `&&!(s&&(i==="["||i==="]"||i==="{"||i==="}"||i===","));){let g=a[f+1];if(i===":"&&(!g||g===`
32
+ `||g===" "||g===" "||s&&g===",")||(i===" "||i===" ")&&g==="#")break;f+=1,i=g}return f}get strValue(){if(!this.valueRange||!this.context)return null;let{start:a,end:t}=this.valueRange,{src:s}=this.context,i=s[t-1];for(;a<t&&(i===`
33
+ `||i===" "||i===" ");)i=s[--t-1];let f="";for(let u=a;u<t;++u){let p=s[u];if(p===`
34
+ `){let{fold:L,offset:k}=T.foldNewline(s,u,-1);f+=L,u=k}else if(p===" "||p===" "){let L=u,k=s[u+1];for(;u<t&&(k===" "||k===" ");)u+=1,k=s[u+1];k!==`
35
+ `&&(f+=u>L?s.slice(L,u+1):p)}else f+=p}let g=s[a];switch(g){case" ":{let u="Plain value cannot start with a tab character";return{errors:[new q(this,u)],str:f}}case"@":case"`":{let u="Plain value cannot start with reserved character ".concat(g);return{errors:[new q(this,u)],str:f}}default:return f}}parseBlockValue(a){let{indent:t,inFlow:s,src:i}=this.context,f=a,g=a;for(let u=i[f];u===`
36
+ `&&!T.atDocumentBoundary(i,f+1);u=i[f]){let p=T.endOfBlockIndent(i,t,f+1);if(p===null||i[p]==="#")break;i[p]===`
37
+ `?f=p:(g=m.endOfLine(i,p,s),f=g)}return this.valueRange.isEmpty()&&(this.valueRange.start=a),this.valueRange.end=g,g}parse(a,t){this.context=a;let{inFlow:s,src:i}=a,f=t,g=i[f];return g&&g!=="#"&&g!==`
38
+ `&&(f=m.endOfLine(i,t,s)),this.valueRange=new M(t,f),f=T.endOfWhiteSpace(i,f),f=this.parseComment(f),(!this.hasComment||this.valueRange.isEmpty())&&(f=this.parseBlockValue(f)),f}};r.Char=e,r.Node=T,r.PlainValue=m,r.Range=M,r.Type=n,r.YAMLError=P,r.YAMLReferenceError=C,r.YAMLSemanticError=q,r.YAMLSyntaxError=R,r.YAMLWarning=j,r._defineProperty=K,r.defaultTagPrefix=c,r.defaultTags=h}}),Gn=F({"node_modules/yaml/dist/parse-cst.js"(r){"use strict";D();var e=Me(),n=class extends e.Node{constructor(){super(e.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(m,a){return this.context=m,this.range=new e.Range(a,a+1),a+1}},c=class extends e.Node{constructor(m,a){super(m,a);this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(m,a){this.context=m;let{parseNode:t,src:s}=m,{atLineStart:i,lineStart:f}=m;!i&&this.type===e.Type.SEQ_ITEM&&(this.error=new e.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));let g=i?a-f:m.indent,u=e.Node.endOfWhiteSpace(s,a+1),p=s[u],L=p==="#",k=[],B=null;for(;p===`
39
+ `||p==="#";){if(p==="#"){let Q=e.Node.endOfLine(s,u+1);k.push(new e.Range(u,Q)),u=Q}else{i=!0,f=u+1;let Q=e.Node.endOfWhiteSpace(s,f);s[Q]===`
40
+ `&&k.length===0&&(B=new n,f=B.parse({src:s},f)),u=e.Node.endOfIndent(s,f)}p=s[u]}if(e.Node.nextNodeIsIndented(p,u-(f+g),this.type!==e.Type.SEQ_ITEM)?this.node=t({atLineStart:i,inCollection:!1,indent:g,lineStart:f,parent:this},u):p&&f>a+1&&(u=f-1),this.node){if(B){let Q=m.parent.items||m.parent.contents;Q&&Q.push(B)}k.length&&Array.prototype.push.apply(this.props,k),u=this.node.range.end}else if(L){let Q=k[0];this.props.push(Q),u=Q.end}else u=e.Node.endOfLine(s,a+1);let $=this.node?this.node.valueRange.end:u;return this.valueRange=new e.Range(a,$),u}setOrigRanges(m,a){return a=super.setOrigRanges(m,a),this.node?this.node.setOrigRanges(m,a):a}toString(){let{context:{src:m},node:a,range:t,value:s}=this;if(s!=null)return s;let i=a?m.slice(t.start,a.range.start)+String(a):m.slice(t.start,t.end);return e.Node.addStringTerminator(m,t.end,i)}},h=class extends e.Node{constructor(){super(e.Type.COMMENT)}parse(m,a){this.context=m;let t=this.parseComment(a);return this.range=new e.Range(a,t),t}};function d(m){let a=m;for(;a instanceof c;)a=a.node;if(!(a instanceof y))return null;let t=a.items.length,s=-1;for(let g=t-1;g>=0;--g){let u=a.items[g];if(u.type===e.Type.COMMENT){let{indent:p,lineStart:L}=u.context;if(p>0&&u.range.start>=L+p)break;s=g}else if(u.type===e.Type.BLANK_LINE)s=g;else break}if(s===-1)return null;let i=a.items.splice(s,t-s),f=i[0].range.start;for(;a.range.end=f,a.valueRange&&a.valueRange.end>f&&(a.valueRange.end=f),a!==m;)a=a.context.parent;return i}var y=class extends e.Node{static nextContentHasIndent(m,a,t){let s=e.Node.endOfLine(m,a)+1;a=e.Node.endOfWhiteSpace(m,s);let i=m[a];return i?a>=s+t?!0:i!=="#"&&i!==`
41
+ `?!1:y.nextContentHasIndent(m,a,t):!1}constructor(m){super(m.type===e.Type.SEQ_ITEM?e.Type.SEQ:e.Type.MAP);for(let t=m.props.length-1;t>=0;--t)if(m.props[t].start<m.context.lineStart){this.props=m.props.slice(0,t+1),m.props=m.props.slice(t+1);let s=m.props[0]||m.valueRange;m.range.start=s.start;break}this.items=[m];let a=d(m);a&&Array.prototype.push.apply(this.items,a)}get includesTrailingLines(){return this.items.length>0}parse(m,a){this.context=m;let{parseNode:t,src:s}=m,i=e.Node.startOfLine(s,a),f=this.items[0];f.context.parent=this,this.valueRange=e.Range.copy(f.valueRange);let g=f.range.start-f.context.lineStart,u=a;u=e.Node.normalizeOffset(s,u);let p=s[u],L=e.Node.endOfWhiteSpace(s,i)===u,k=!1;for(;p;){for(;p===`
42
+ `||p==="#";){if(L&&p===`
43
+ `&&!k){let Q=new n;if(u=Q.parse({src:s},u),this.valueRange.end=u,u>=s.length){p=null;break}this.items.push(Q),u-=1}else if(p==="#"){if(u<i+g&&!y.nextContentHasIndent(s,u,g))return u;let Q=new h;if(u=Q.parse({indent:g,lineStart:i,src:s},u),this.items.push(Q),this.valueRange.end=u,u>=s.length){p=null;break}}if(i=u+1,u=e.Node.endOfIndent(s,i),e.Node.atBlank(s,u)){let Q=e.Node.endOfWhiteSpace(s,u),z=s[Q];(!z||z===`
44
+ `||z==="#")&&(u=Q)}p=s[u],L=!0}if(!p)break;if(u!==i+g&&(L||p!==":")){if(u<i+g){i>a&&(u=i);break}else if(!this.error){let Q="All collection items must start at the same column";this.error=new e.YAMLSyntaxError(this,Q)}}if(f.type===e.Type.SEQ_ITEM){if(p!=="-"){i>a&&(u=i);break}}else if(p==="-"&&!this.error){let Q=s[u+1];if(!Q||Q===`
45
+ `||Q===" "||Q===" "){let z="A collection cannot be both a mapping and a sequence";this.error=new e.YAMLSyntaxError(this,z)}}let B=t({atLineStart:L,inCollection:!0,indent:g,lineStart:i,parent:this},u);if(!B)return u;if(this.items.push(B),this.valueRange.end=B.valueRange.end,u=e.Node.normalizeOffset(s,B.range.end),p=s[u],L=!1,k=B.includesTrailingLines,p){let Q=u-1,z=s[Q];for(;z===" "||z===" ";)z=s[--Q];z===`
46
+ `&&(i=Q+1,L=!0)}let $=d(B);$&&Array.prototype.push.apply(this.items,$)}return u}setOrigRanges(m,a){return a=super.setOrigRanges(m,a),this.items.forEach(t=>{a=t.setOrigRanges(m,a)}),a}toString(){let{context:{src:m},items:a,range:t,value:s}=this;if(s!=null)return s;let i=m.slice(t.start,a[0].range.start)+String(a[0]);for(let f=1;f<a.length;++f){let g=a[f],{atLineStart:u,indent:p}=g.context;if(u)for(let L=0;L<p;++L)i+=" ";i+=String(g)}return e.Node.addStringTerminator(m,t.end,i)}},E=class extends e.Node{constructor(){super(e.Type.DIRECTIVE);this.name=null}get parameters(){let m=this.rawValue;return m?m.trim().split(/[ \t]+/):[]}parseName(m){let{src:a}=this.context,t=m,s=a[t];for(;s&&s!==`
47
+ `&&s!==" "&&s!==" ";)s=a[t+=1];return this.name=a.slice(m,t),t}parseParameters(m){let{src:a}=this.context,t=m,s=a[t];for(;s&&s!==`
48
+ `&&s!=="#";)s=a[t+=1];return this.valueRange=new e.Range(m,t),t}parse(m,a){this.context=m;let t=this.parseName(a+1);return t=this.parseParameters(t),t=this.parseComment(t),this.range=new e.Range(a,t),t}},I=class extends e.Node{static startCommentOrEndBlankLine(m,a){let t=e.Node.endOfWhiteSpace(m,a),s=m[t];return s==="#"||s===`
49
+ `?t:a}constructor(){super(e.Type.DOCUMENT);this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null}parseDirectives(m){let{src:a}=this.context;this.directives=[];let t=!0,s=!1,i=m;for(;!e.Node.atDocumentBoundary(a,i,e.Char.DIRECTIVES_END);)switch(i=I.startCommentOrEndBlankLine(a,i),a[i]){case`
50
+ `:if(t){let f=new n;i=f.parse({src:a},i),i<a.length&&this.directives.push(f)}else i+=1,t=!0;break;case"#":{let f=new h;i=f.parse({src:a},i),this.directives.push(f),t=!1}break;case"%":{let f=new E;i=f.parse({parent:this,src:a},i),this.directives.push(f),s=!0,t=!1}break;default:return s?this.error=new e.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i}return a[i]?(this.directivesEndMarker=new e.Range(i,i+3),i+3):(s?this.error=new e.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i)}parseContents(m){let{parseNode:a,src:t}=this.context;this.contents||(this.contents=[]);let s=m;for(;t[s-1]==="-";)s-=1;let i=e.Node.endOfWhiteSpace(t,m),f=s===m;for(this.valueRange=new e.Range(i);!e.Node.atDocumentBoundary(t,i,e.Char.DOCUMENT_END);){switch(t[i]){case`
51
+ `:if(f){let g=new n;i=g.parse({src:t},i),i<t.length&&this.contents.push(g)}else i+=1,f=!0;s=i;break;case"#":{let g=new h;i=g.parse({src:t},i),this.contents.push(g),f=!1}break;default:{let g=e.Node.endOfIndent(t,i),p=a({atLineStart:f,indent:-1,inFlow:!1,inCollection:!1,lineStart:s,parent:this},g);if(!p)return this.valueRange.end=g;this.contents.push(p),i=p.range.end,f=!1;let L=d(p);L&&Array.prototype.push.apply(this.contents,L)}}i=I.startCommentOrEndBlankLine(t,i)}if(this.valueRange.end=i,t[i]&&(this.documentEndMarker=new e.Range(i,i+3),i+=3,t[i])){if(i=e.Node.endOfWhiteSpace(t,i),t[i]==="#"){let g=new h;i=g.parse({src:t},i),this.contents.push(g)}switch(t[i]){case`
52
+ `:i+=1;break;case void 0:break;default:this.error=new e.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return i}parse(m,a){m.root=this,this.context=m;let{src:t}=m,s=t.charCodeAt(a)===65279?a+1:a;return s=this.parseDirectives(s),s=this.parseContents(s),s}setOrigRanges(m,a){return a=super.setOrigRanges(m,a),this.directives.forEach(t=>{a=t.setOrigRanges(m,a)}),this.directivesEndMarker&&(a=this.directivesEndMarker.setOrigRange(m,a)),this.contents.forEach(t=>{a=t.setOrigRanges(m,a)}),this.documentEndMarker&&(a=this.documentEndMarker.setOrigRange(m,a)),a}toString(){let{contents:m,directives:a,value:t}=this;if(t!=null)return t;let s=a.join("");return m.length>0&&((a.length>0||m[0].type===e.Type.COMMENT)&&(s+=`---
53
+ `),s+=m.join("")),s[s.length-1]!==`
54
+ `&&(s+=`
55
+ `),s}},S=class extends e.Node{parse(m,a){this.context=m;let{src:t}=m,s=e.Node.endOfIdentifier(t,a+1);return this.valueRange=new e.Range(a+1,s),s=e.Node.endOfWhiteSpace(t,s),s=this.parseComment(s),s}},M={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},T=class extends e.Node{constructor(m,a){super(m,a);this.blockIndent=null,this.chomping=M.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===M.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:m,end:a}=this.valueRange,{indent:t,src:s}=this.context;if(this.valueRange.isEmpty())return"";let i=null,f=s[a-1];for(;f===`
56
+ `||f===" "||f===" ";){if(a-=1,a<=m){if(this.chomping===M.KEEP)break;return""}f===`
57
+ `&&(i=a),f=s[a-1]}let g=a+1;i&&(this.chomping===M.KEEP?(g=i,a=this.valueRange.end):a=i);let u=t+this.blockIndent,p=this.type===e.Type.BLOCK_FOLDED,L=!0,k="",B="",$=!1;for(let Q=m;Q<a;++Q){for(let ie=0;ie<u&&s[Q]===" ";++ie)Q+=1;let z=s[Q];if(z===`
58
+ `)B===`
59
+ `?k+=`
60
+ `:B=`
61
+ `;else{let ie=e.Node.endOfLine(s,Q),ue=s.slice(Q,ie);Q=ie,p&&(z===" "||z===" ")&&Q<g?(B===" "?B=`
62
+ `:!$&&!L&&B===`
63
+ `&&(B=`
64
+
65
+ `),k+=B+ue,B=ie<a&&s[ie]||"",$=!0):(k+=B+ue,B=p&&Q<g?" ":`
66
+ `,$=!1),L&&ue!==""&&(L=!1)}}return this.chomping===M.STRIP?k:k+`
67
+ `}parseBlockHeader(m){let{src:a}=this.context,t=m+1,s="";for(;;){let i=a[t];switch(i){case"-":this.chomping=M.STRIP;break;case"+":this.chomping=M.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":s+=i;break;default:return this.blockIndent=Number(s)||null,this.header=new e.Range(m,t),t}t+=1}}parseBlockValue(m){let{indent:a,src:t}=this.context,s=!!this.blockIndent,i=m,f=m,g=1;for(let u=t[i];u===`
68
+ `&&(i+=1,!e.Node.atDocumentBoundary(t,i));u=t[i]){let p=e.Node.endOfBlockIndent(t,a,i);if(p===null)break;let L=t[p],k=p-(i+a);if(this.blockIndent){if(L&&L!==`
69
+ `&&k<this.blockIndent){if(t[p]==="#")break;if(!this.error){let B=s?"explicit indentation indicator":"first line",$="Block scalars must not be less indented than their ".concat(B);this.error=new e.YAMLSemanticError(this,$)}}}else if(t[p]!==`
70
+ `){if(k<g){let B="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";this.error=new e.YAMLSemanticError(this,B)}this.blockIndent=k}else k>g&&(g=k);t[p]===`
71
+ `?i=p:i=f=e.Node.endOfLine(t,p)}return this.chomping!==M.KEEP&&(i=t[f]?f+1:f),this.valueRange=new e.Range(m+1,i),i}parse(m,a){this.context=m;let{src:t}=m,s=this.parseBlockHeader(a);return s=e.Node.endOfWhiteSpace(t,s),s=this.parseComment(s),s=this.parseBlockValue(s),s}setOrigRanges(m,a){return a=super.setOrigRanges(m,a),this.header?this.header.setOrigRange(m,a):a}},P=class extends e.Node{constructor(m,a){super(m,a);this.items=null}prevNodeIsJsonLike(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.items.length,a=this.items[m-1];return!!a&&(a.jsonLike||a.type===e.Type.COMMENT&&this.prevNodeIsJsonLike(m-1))}parse(m,a){this.context=m;let{parseNode:t,src:s}=m,{indent:i,lineStart:f}=m,g=s[a];this.items=[{char:g,offset:a}];let u=e.Node.endOfWhiteSpace(s,a+1);for(g=s[u];g&&g!=="]"&&g!=="}";){switch(g){case`
72
+ `:{f=u+1;let p=e.Node.endOfWhiteSpace(s,f);if(s[p]===`
73
+ `){let L=new n;f=L.parse({src:s},f),this.items.push(L)}if(u=e.Node.endOfIndent(s,f),u<=f+i&&(g=s[u],u<f+i||g!=="]"&&g!=="}")){let L="Insufficient indentation in flow collection";this.error=new e.YAMLSemanticError(this,L)}}break;case",":this.items.push({char:g,offset:u}),u+=1;break;case"#":{let p=new h;u=p.parse({src:s},u),this.items.push(p)}break;case"?":case":":{let p=s[u+1];if(p===`
74
+ `||p===" "||p===" "||p===","||g===":"&&this.prevNodeIsJsonLike()){this.items.push({char:g,offset:u}),u+=1;break}}default:{let p=t({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:f,parent:this},u);if(!p)return this.valueRange=new e.Range(a,u),u;this.items.push(p),u=e.Node.normalizeOffset(s,p.range.end)}}u=e.Node.endOfWhiteSpace(s,u),g=s[u]}return this.valueRange=new e.Range(a,u+1),g&&(this.items.push({char:g,offset:u}),u=e.Node.endOfWhiteSpace(s,u+1),u=this.parseComment(u)),u}setOrigRanges(m,a){return a=super.setOrigRanges(m,a),this.items.forEach(t=>{if(t instanceof e.Node)a=t.setOrigRanges(m,a);else if(m.length===0)t.origOffset=t.offset;else{let s=a;for(;s<m.length&&!(m[s]>t.offset);)++s;t.origOffset=t.offset+s,a=s}}),a}toString(){let{context:{src:m},items:a,range:t,value:s}=this;if(s!=null)return s;let i=a.filter(u=>u instanceof e.Node),f="",g=t.start;return i.forEach(u=>{let p=m.slice(g,u.range.start);g=u.range.end,f+=p+String(u),f[f.length-1]===`
75
+ `&&m[g-1]!==`
76
+ `&&m[g]===`
77
+ `&&(g+=1)}),f+=m.slice(g,t.end),e.Node.addStringTerminator(m,t.end,f)}},C=class extends e.Node{static endOfQuote(m,a){let t=m[a];for(;t&&t!=='"';)a+=t==="\\"?2:1,t=m[a];return a+1}get strValue(){if(!this.valueRange||!this.context)return null;let m=[],{start:a,end:t}=this.valueRange,{indent:s,src:i}=this.context;i[t-1]!=='"'&&m.push(new e.YAMLSyntaxError(this,'Missing closing "quote'));let f="";for(let g=a+1;g<t-1;++g){let u=i[g];if(u===`
78
+ `){e.Node.atDocumentBoundary(i,g+1)&&m.push(new e.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:p,offset:L,error:k}=e.Node.foldNewline(i,g,s);f+=p,g=L,k&&m.push(new e.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if(u==="\\")switch(g+=1,i[g]){case"0":f+="\0";break;case"a":f+="\x07";break;case"b":f+="\b";break;case"e":f+="\x1B";break;case"f":f+="\f";break;case"n":f+=`
79
+ `;break;case"r":f+="\r";break;case"t":f+=" ";break;case"v":f+="\v";break;case"N":f+="\x85";break;case"_":f+="\xA0";break;case"L":f+="\u2028";break;case"P":f+="\u2029";break;case" ":f+=" ";break;case'"':f+='"';break;case"/":f+="/";break;case"\\":f+="\\";break;case" ":f+=" ";break;case"x":f+=this.parseCharCode(g+1,2,m),g+=2;break;case"u":f+=this.parseCharCode(g+1,4,m),g+=4;break;case"U":f+=this.parseCharCode(g+1,8,m),g+=8;break;case`
80
+ `:for(;i[g+1]===" "||i[g+1]===" ";)g+=1;break;default:m.push(new e.YAMLSyntaxError(this,"Invalid escape sequence ".concat(i.substr(g-1,2)))),f+="\\"+i[g]}else if(u===" "||u===" "){let p=g,L=i[g+1];for(;L===" "||L===" ";)g+=1,L=i[g+1];L!==`
81
+ `&&(f+=g>p?i.slice(p,g+1):u)}else f+=u}return m.length>0?{errors:m,str:f}:f}parseCharCode(m,a,t){let{src:s}=this.context,i=s.substr(m,a),g=i.length===a&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;return isNaN(g)?(t.push(new e.YAMLSyntaxError(this,"Invalid escape sequence ".concat(s.substr(m-2,a+2)))),s.substr(m-2,a+2)):String.fromCodePoint(g)}parse(m,a){this.context=m;let{src:t}=m,s=C.endOfQuote(t,a+1);return this.valueRange=new e.Range(a,s),s=e.Node.endOfWhiteSpace(t,s),s=this.parseComment(s),s}},q=class extends e.Node{static endOfQuote(m,a){let t=m[a];for(;t;)if(t==="'"){if(m[a+1]!=="'")break;t=m[a+=2]}else t=m[a+=1];return a+1}get strValue(){if(!this.valueRange||!this.context)return null;let m=[],{start:a,end:t}=this.valueRange,{indent:s,src:i}=this.context;i[t-1]!=="'"&&m.push(new e.YAMLSyntaxError(this,"Missing closing 'quote"));let f="";for(let g=a+1;g<t-1;++g){let u=i[g];if(u===`
82
+ `){e.Node.atDocumentBoundary(i,g+1)&&m.push(new e.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:p,offset:L,error:k}=e.Node.foldNewline(i,g,s);f+=p,g=L,k&&m.push(new e.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if(u==="'")f+=u,g+=1,i[g]!=="'"&&m.push(new e.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(u===" "||u===" "){let p=g,L=i[g+1];for(;L===" "||L===" ";)g+=1,L=i[g+1];L!==`
83
+ `&&(f+=g>p?i.slice(p,g+1):u)}else f+=u}return m.length>0?{errors:m,str:f}:f}parse(m,a){this.context=m;let{src:t}=m,s=q.endOfQuote(t,a+1);return this.valueRange=new e.Range(a,s),s=e.Node.endOfWhiteSpace(t,s),s=this.parseComment(s),s}};function R(m,a){switch(m){case e.Type.ALIAS:return new S(m,a);case e.Type.BLOCK_FOLDED:case e.Type.BLOCK_LITERAL:return new T(m,a);case e.Type.FLOW_MAP:case e.Type.FLOW_SEQ:return new P(m,a);case e.Type.MAP_KEY:case e.Type.MAP_VALUE:case e.Type.SEQ_ITEM:return new c(m,a);case e.Type.COMMENT:case e.Type.PLAIN:return new e.PlainValue(m,a);case e.Type.QUOTE_DOUBLE:return new C(m,a);case e.Type.QUOTE_SINGLE:return new q(m,a);default:return null}}var j=class{static parseType(m,a,t){switch(m[a]){case"*":return e.Type.ALIAS;case">":return e.Type.BLOCK_FOLDED;case"|":return e.Type.BLOCK_LITERAL;case"{":return e.Type.FLOW_MAP;case"[":return e.Type.FLOW_SEQ;case"?":return!t&&e.Node.atBlank(m,a+1,!0)?e.Type.MAP_KEY:e.Type.PLAIN;case":":return!t&&e.Node.atBlank(m,a+1,!0)?e.Type.MAP_VALUE:e.Type.PLAIN;case"-":return!t&&e.Node.atBlank(m,a+1,!0)?e.Type.SEQ_ITEM:e.Type.PLAIN;case'"':return e.Type.QUOTE_DOUBLE;case"'":return e.Type.QUOTE_SINGLE;default:return e.Type.PLAIN}}constructor(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{atLineStart:a,inCollection:t,inFlow:s,indent:i,lineStart:f,parent:g}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e._defineProperty(this,"parseNode",(u,p)=>{if(e.Node.atDocumentBoundary(this.src,p))return null;let L=new j(this,u),{props:k,type:B,valueStart:$}=L.parseProps(p),Q=R(B,k),z=Q.parse(L,$);if(Q.range=new e.Range(p,z),z<=p&&(Q.error=new Error("Node#parse consumed no characters"),Q.error.parseEnd=z,Q.error.source=Q,Q.range.end=p+1),L.nodeStartsCollection(Q)){!Q.error&&!L.atLineStart&&L.parent.type===e.Type.DOCUMENT&&(Q.error=new e.YAMLSyntaxError(Q,"Block collection must not have preceding content here (e.g. directives-end indicator)"));let ie=new y(Q);return z=ie.parse(new j(L),z),ie.range=new e.Range(p,z),ie}return Q}),this.atLineStart=a!=null?a:m.atLineStart||!1,this.inCollection=t!=null?t:m.inCollection||!1,this.inFlow=s!=null?s:m.inFlow||!1,this.indent=i!=null?i:m.indent,this.lineStart=f!=null?f:m.lineStart,this.parent=g!=null?g:m.parent||{},this.root=m.root,this.src=m.src}nodeStartsCollection(m){let{inCollection:a,inFlow:t,src:s}=this;if(a||t)return!1;if(m instanceof c)return!0;let i=m.range.end;return s[i]===`
84
+ `||s[i-1]===`
85
+ `?!1:(i=e.Node.endOfWhiteSpace(s,i),s[i]===":")}parseProps(m){let{inFlow:a,parent:t,src:s}=this,i=[],f=!1;m=this.atLineStart?e.Node.endOfIndent(s,m):e.Node.endOfWhiteSpace(s,m);let g=s[m];for(;g===e.Char.ANCHOR||g===e.Char.COMMENT||g===e.Char.TAG||g===`
86
+ `;){if(g===`
87
+ `){let p=m,L;do L=p+1,p=e.Node.endOfIndent(s,L);while(s[p]===`
88
+ `);let k=p-(L+this.indent),B=t.type===e.Type.SEQ_ITEM&&t.context.atLineStart;if(s[p]!=="#"&&!e.Node.nextNodeIsIndented(s[p],k,!B))break;this.atLineStart=!0,this.lineStart=L,f=!1,m=p}else if(g===e.Char.COMMENT){let p=e.Node.endOfLine(s,m+1);i.push(new e.Range(m,p)),m=p}else{let p=e.Node.endOfIdentifier(s,m+1);g===e.Char.TAG&&s[p]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(s.slice(m+1,p+13))&&(p=e.Node.endOfIdentifier(s,p+5)),i.push(new e.Range(m,p)),f=!0,m=e.Node.endOfWhiteSpace(s,p)}g=s[m]}f&&g===":"&&e.Node.atBlank(s,m+1,!0)&&(m-=1);let u=j.parseType(s,m,a);return{props:i,type:u,valueStart:m}}};function K(m){let a=[];m.indexOf("\r")!==-1&&(m=m.replace(/\r\n?/g,(i,f)=>(i.length>1&&a.push(f),`
89
+ `)));let t=[],s=0;do{let i=new I,f=new j({src:m});s=i.parse(f,s),t.push(i)}while(s<m.length);return t.setOrigRanges=()=>{if(a.length===0)return!1;for(let f=1;f<a.length;++f)a[f]-=f;let i=0;for(let f=0;f<t.length;++f)i=t[f].setOrigRanges(a,i);return a.splice(0,a.length),!0},t.toString=()=>t.join(`...
90
+ `),t}r.parse=K}}),ke=F({"node_modules/yaml/dist/resolveSeq-d03cb037.js"(r){"use strict";D();var e=Me();function n(o,l,_){if(!_)return o;let v=_.replace(/[\s\S]^/gm,"$&".concat(l,"#"));return"#".concat(v,`
91
+ `).concat(l).concat(o)}function c(o,l,_){return _?_.indexOf(`
92
+ `)===-1?"".concat(o," #").concat(_):"".concat(o,`
93
+ `)+_.replace(/^/gm,"".concat(l||"","#")):o}var h=class{};function d(o,l,_){if(Array.isArray(o))return o.map((v,b)=>d(v,String(b),_));if(o&&typeof o.toJSON=="function"){let v=_&&_.anchors&&_.anchors.get(o);v&&(_.onCreate=w=>{v.res=w,delete _.onCreate});let b=o.toJSON(l,_);return v&&_.onCreate&&_.onCreate(b),b}return(!_||!_.keep)&&typeof o=="bigint"?Number(o):o}var y=class extends h{constructor(o){super();this.value=o}toJSON(o,l){return l&&l.keep?this.value:d(this.value,o,l)}toString(){return String(this.value)}};function E(o,l,_){let v=_;for(let b=l.length-1;b>=0;--b){let w=l[b];if(Number.isInteger(w)&&w>=0){let A=[];A[w]=v,v=A}else{let A={};Object.defineProperty(A,w,{value:v,writable:!0,enumerable:!0,configurable:!0}),v=A}}return o.createNode(v,!1)}var I=o=>o==null||typeof o=="object"&&o[Symbol.iterator]().next().done,S=class extends h{constructor(o){super();e._defineProperty(this,"items",[]),this.schema=o}addIn(o,l){if(I(o))this.add(l);else{let[_,...v]=o,b=this.get(_,!0);if(b instanceof S)b.addIn(v,l);else if(b===void 0&&this.schema)this.set(_,E(this.schema,v,l));else throw new Error("Expected YAML collection at ".concat(_,". Remaining path: ").concat(v))}}deleteIn(o){let[l,..._]=o;if(_.length===0)return this.delete(l);let v=this.get(l,!0);if(v instanceof S)return v.deleteIn(_);throw new Error("Expected YAML collection at ".concat(l,". Remaining path: ").concat(_))}getIn(o,l){let[_,...v]=o,b=this.get(_,!0);return v.length===0?!l&&b instanceof y?b.value:b:b instanceof S?b.getIn(v,l):void 0}hasAllNullValues(){return this.items.every(o=>{if(!o||o.type!=="PAIR")return!1;let l=o.value;return l==null||l instanceof y&&l.value==null&&!l.commentBefore&&!l.comment&&!l.tag})}hasIn(o){let[l,..._]=o;if(_.length===0)return this.has(l);let v=this.get(l,!0);return v instanceof S?v.hasIn(_):!1}setIn(o,l){let[_,...v]=o;if(v.length===0)this.set(_,l);else{let b=this.get(_,!0);if(b instanceof S)b.setIn(v,l);else if(b===void 0&&this.schema)this.set(_,E(this.schema,v,l));else throw new Error("Expected YAML collection at ".concat(_,". Remaining path: ").concat(v))}}toJSON(){return null}toString(o,l,_,v){let{blockItem:b,flowChars:w,isMap:A,itemIndent:N}=l,{indent:Y,indentStep:W,stringify:U}=o,H=this.type===e.Type.FLOW_MAP||this.type===e.Type.FLOW_SEQ||o.inFlow;H&&(N+=W);let oe=A&&this.hasAllNullValues();o=Object.assign({},o,{allNullValues:oe,indent:N,inFlow:H,type:null});let le=!1,Z=!1,ee=this.items.reduce((de,re,he)=>{let ce;re&&(!le&&re.spaceBefore&&de.push({type:"comment",str:""}),re.commentBefore&&re.commentBefore.match(/^.*$/gm).forEach(Ie=>{de.push({type:"comment",str:"#".concat(Ie)})}),re.comment&&(ce=re.comment),H&&(!le&&re.spaceBefore||re.commentBefore||re.comment||re.key&&(re.key.commentBefore||re.key.comment)||re.value&&(re.value.commentBefore||re.value.comment))&&(Z=!0)),le=!1;let fe=U(re,o,()=>ce=null,()=>le=!0);return H&&!Z&&fe.includes(`
94
+ `)&&(Z=!0),H&&he<this.items.length-1&&(fe+=","),fe=c(fe,N,ce),le&&(ce||H)&&(le=!1),de.push({type:"item",str:fe}),de},[]),X;if(ee.length===0)X=w.start+w.end;else if(H){let{start:de,end:re}=w,he=ee.map(ce=>ce.str);if(Z||he.reduce((ce,fe)=>ce+fe.length+2,2)>S.maxFlowStringSingleLineLength){X=de;for(let ce of he)X+=ce?`
95
+ `.concat(W).concat(Y).concat(ce):`
96
+ `;X+=`
97
+ `.concat(Y).concat(re)}else X="".concat(de," ").concat(he.join(" ")," ").concat(re)}else{let de=ee.map(b);X=de.shift();for(let re of de)X+=re?`
98
+ `.concat(Y).concat(re):`
99
+ `}return this.comment?(X+=`
100
+ `+this.comment.replace(/^/gm,"".concat(Y,"#")),_&&_()):le&&v&&v(),X}};e._defineProperty(S,"maxFlowStringSingleLineLength",60);function M(o){let l=o instanceof y?o.value:o;return l&&typeof l=="string"&&(l=Number(l)),Number.isInteger(l)&&l>=0?l:null}var T=class extends S{add(o){this.items.push(o)}delete(o){let l=M(o);return typeof l!="number"?!1:this.items.splice(l,1).length>0}get(o,l){let _=M(o);if(typeof _!="number")return;let v=this.items[_];return!l&&v instanceof y?v.value:v}has(o){let l=M(o);return typeof l=="number"&&l<this.items.length}set(o,l){let _=M(o);if(typeof _!="number")throw new Error("Expected a valid index, not ".concat(o,"."));this.items[_]=l}toJSON(o,l){let _=[];l&&l.onCreate&&l.onCreate(_);let v=0;for(let b of this.items)_.push(d(b,String(v++),l));return _}toString(o,l,_){return o?super.toString(o,{blockItem:v=>v.type==="comment"?v.str:"- ".concat(v.str),flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(o.indent||"")+" "},l,_):JSON.stringify(this)}},P=(o,l,_)=>l===null?"":typeof l!="object"?String(l):o instanceof h&&_&&_.doc?o.toString({anchors:Object.create(null),doc:_.doc,indent:"",indentStep:_.indentStep,inFlow:!0,inStringifyKey:!0,stringify:_.stringify}):JSON.stringify(l),C=class extends h{constructor(o){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;super();this.key=o,this.value=l,this.type=C.Type.PAIR}get commentBefore(){return this.key instanceof h?this.key.commentBefore:void 0}set commentBefore(o){if(this.key==null&&(this.key=new y(null)),this.key instanceof h)this.key.commentBefore=o;else{let l="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(l)}}addToJSMap(o,l){let _=d(this.key,"",o);if(l instanceof Map){let v=d(this.value,_,o);l.set(_,v)}else if(l instanceof Set)l.add(_);else{let v=P(this.key,_,o),b=d(this.value,v,o);v in l?Object.defineProperty(l,v,{value:b,writable:!0,enumerable:!0,configurable:!0}):l[v]=b}return l}toJSON(o,l){let _=l&&l.mapAsMap?new Map:{};return this.addToJSMap(l,_)}toString(o,l,_){if(!o||!o.doc)return JSON.stringify(this);let{indent:v,indentSeq:b,simpleKeys:w}=o.doc.options,{key:A,value:N}=this,Y=A instanceof h&&A.comment;if(w){if(Y)throw new Error("With simple keys, key nodes cannot have comments");if(A instanceof S){let ce="With simple keys, collection cannot be used as a key value";throw new Error(ce)}}let W=!w&&(!A||Y||(A instanceof h?A instanceof S||A.type===e.Type.BLOCK_FOLDED||A.type===e.Type.BLOCK_LITERAL:typeof A=="object")),{doc:U,indent:H,indentStep:oe,stringify:le}=o;o=Object.assign({},o,{implicitKey:!W,indent:H+oe});let Z=!1,ee=le(A,o,()=>Y=null,()=>Z=!0);if(ee=c(ee,o.indent,Y),!W&&ee.length>1024){if(w)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");W=!0}if(o.allNullValues&&!w)return this.comment?(ee=c(ee,o.indent,this.comment),l&&l()):Z&&!Y&&_&&_(),o.inFlow&&!W?ee:"? ".concat(ee);ee=W?"? ".concat(ee,`
101
+ `).concat(H,":"):"".concat(ee,":"),this.comment&&(ee=c(ee,o.indent,this.comment),l&&l());let X="",de=null;if(N instanceof h){if(N.spaceBefore&&(X=`
102
+ `),N.commentBefore){let ce=N.commentBefore.replace(/^/gm,"".concat(o.indent,"#"));X+=`
103
+ `.concat(ce)}de=N.comment}else N&&typeof N=="object"&&(N=U.schema.createNode(N,!0));o.implicitKey=!1,!W&&!this.comment&&N instanceof y&&(o.indentAtStart=ee.length+1),Z=!1,!b&&v>=2&&!o.inFlow&&!W&&N instanceof T&&N.type!==e.Type.FLOW_SEQ&&!N.tag&&!U.anchors.getName(N)&&(o.indent=o.indent.substr(2));let re=le(N,o,()=>de=null,()=>Z=!0),he=" ";return X||this.comment?he="".concat(X,`
104
+ `).concat(o.indent):!W&&N instanceof S?(!(re[0]==="["||re[0]==="{")||re.includes(`
105
+ `))&&(he=`
106
+ `.concat(o.indent)):re[0]===`
107
+ `&&(he=""),Z&&!de&&_&&_(),c(ee+he+re,o.indent,de)}};e._defineProperty(C,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var q=(o,l)=>{if(o instanceof R){let _=l.get(o.source);return _.count*_.aliasCount}else if(o instanceof S){let _=0;for(let v of o.items){let b=q(v,l);b>_&&(_=b)}return _}else if(o instanceof C){let _=q(o.key,l),v=q(o.value,l);return Math.max(_,v)}return 1},R=class extends h{static stringify(o,l){let{range:_,source:v}=o,{anchors:b,doc:w,implicitKey:A,inStringifyKey:N}=l,Y=Object.keys(b).find(U=>b[U]===v);if(!Y&&N&&(Y=w.anchors.getName(v)||w.anchors.newName()),Y)return"*".concat(Y).concat(A?" ":"");let W=w.anchors.getName(v)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(W," [").concat(_,"]"))}constructor(o){super();this.source=o,this.type=e.Type.ALIAS}set tag(o){throw new Error("Alias nodes cannot have tags")}toJSON(o,l){if(!l)return d(this.source,o,l);let{anchors:_,maxAliasCount:v}=l,b=_.get(this.source);if(!b||b.res===void 0){let w="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new e.YAMLReferenceError(this.cstNode,w):new ReferenceError(w)}if(v>=0&&(b.count+=1,b.aliasCount===0&&(b.aliasCount=q(this.source,_)),b.count*b.aliasCount>v)){let w="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new e.YAMLReferenceError(this.cstNode,w):new ReferenceError(w)}return b.res}toString(o){return R.stringify(this,o)}};e._defineProperty(R,"default",!0);function j(o,l){let _=l instanceof y?l.value:l;for(let v of o)if(v instanceof C&&(v.key===l||v.key===_||v.key&&v.key.value===_))return v}var K=class extends S{add(o,l){o?o instanceof C||(o=new C(o.key||o,o.value)):o=new C(o);let _=j(this.items,o.key),v=this.schema&&this.schema.sortMapEntries;if(_)if(l)_.value=o.value;else throw new Error("Key ".concat(o.key," already set"));else if(v){let b=this.items.findIndex(w=>v(o,w)<0);b===-1?this.items.push(o):this.items.splice(b,0,o)}else this.items.push(o)}delete(o){let l=j(this.items,o);return l?this.items.splice(this.items.indexOf(l),1).length>0:!1}get(o,l){let _=j(this.items,o),v=_&&_.value;return!l&&v instanceof y?v.value:v}has(o){return!!j(this.items,o)}set(o,l){this.add(new C(o,l),!0)}toJSON(o,l,_){let v=_?new _:l&&l.mapAsMap?new Map:{};l&&l.onCreate&&l.onCreate(v);for(let b of this.items)b.addToJSMap(l,v);return v}toString(o,l,_){if(!o)return JSON.stringify(this);for(let v of this.items)if(!(v instanceof C))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(v)," instead"));return super.toString(o,{blockItem:v=>v.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:o.indent||""},l,_)}},m="<<",a=class extends C{constructor(o){if(o instanceof C){let l=o.value;l instanceof T||(l=new T,l.items.push(o.value),l.range=o.value.range);super(o.key,l);this.range=o.range}else super(new y(m),new T);this.type=C.Type.MERGE_PAIR}addToJSMap(o,l){for(let{source:_}of this.value.items){if(!(_ instanceof K))throw new Error("Merge sources must be maps");let v=_.toJSON(null,o,Map);for(let[b,w]of v)l instanceof Map?l.has(b)||l.set(b,w):l instanceof Set?l.add(b):Object.prototype.hasOwnProperty.call(l,b)||Object.defineProperty(l,b,{value:w,writable:!0,enumerable:!0,configurable:!0})}return l}toString(o,l){let _=this.value;if(_.items.length>1)return super.toString(o,l);this.value=_.items[0];let v=super.toString(o,l);return this.value=_,v}},t={defaultType:e.Type.BLOCK_LITERAL,lineWidth:76},s={trueStr:"true",falseStr:"false"},i={asBigInt:!1},f={nullStr:"null"},g={defaultType:e.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function u(o,l,_){for(let{format:v,test:b,resolve:w}of l)if(b){let A=o.match(b);if(A){let N=w.apply(null,A);return N instanceof y||(N=new y(N)),v&&(N.format=v),N}}return _&&(o=_(o)),new y(o)}var p="flow",L="block",k="quoted",B=(o,l)=>{let _=o[l+1];for(;_===" "||_===" ";){do _=o[l+=1];while(_&&_!==`
108
+ `);_=o[l+1]}return l};function $(o,l,_,v){let{indentAtStart:b,lineWidth:w=80,minContentWidth:A=20,onFold:N,onOverflow:Y}=v;if(!w||w<0)return o;let W=Math.max(1+A,1+w-l.length);if(o.length<=W)return o;let U=[],H={},oe=w-l.length;typeof b=="number"&&(b>w-Math.max(2,A)?U.push(0):oe=w-b);let le,Z,ee=!1,X=-1,de=-1,re=-1;_===L&&(X=B(o,X),X!==-1&&(oe=X+W));for(let ce;ce=o[X+=1];){if(_===k&&ce==="\\"){switch(de=X,o[X+1]){case"x":X+=3;break;case"u":X+=5;break;case"U":X+=9;break;default:X+=1}re=X}if(ce===`
109
+ `)_===L&&(X=B(o,X)),oe=X+W,le=void 0;else{if(ce===" "&&Z&&Z!==" "&&Z!==`
110
+ `&&Z!==" "){let fe=o[X+1];fe&&fe!==" "&&fe!==`
111
+ `&&fe!==" "&&(le=X)}if(X>=oe)if(le)U.push(le),oe=le+W,le=void 0;else if(_===k){for(;Z===" "||Z===" ";)Z=ce,ce=o[X+=1],ee=!0;let fe=X>re+1?X-2:de-1;if(H[fe])return o;U.push(fe),H[fe]=!0,oe=fe+W,le=void 0}else ee=!0}Z=ce}if(ee&&Y&&Y(),U.length===0)return o;N&&N();let he=o.slice(0,U[0]);for(let ce=0;ce<U.length;++ce){let fe=U[ce],Ie=U[ce+1]||o.length;fe===0?he=`
112
+ `.concat(l).concat(o.slice(0,Ie)):(_===k&&H[fe]&&(he+="".concat(o[fe],"\\")),he+=`
113
+ `.concat(l).concat(o.slice(fe+1,Ie)))}return he}var Q=o=>{let{indentAtStart:l}=o;return l?Object.assign({indentAtStart:l},g.fold):g.fold},z=o=>/^(%|---|\.\.\.)/m.test(o);function ie(o,l,_){if(!l||l<0)return!1;let v=l-_,b=o.length;if(b<=v)return!1;for(let w=0,A=0;w<b;++w)if(o[w]===`
114
+ `){if(w-A>v)return!0;if(A=w+1,b-A<=v)return!1}return!0}function ue(o,l){let{implicitKey:_}=l,{jsonEncoding:v,minMultiLineLength:b}=g.doubleQuoted,w=JSON.stringify(o);if(v)return w;let A=l.indent||(z(o)?" ":""),N="",Y=0;for(let W=0,U=w[W];U;U=w[++W])if(U===" "&&w[W+1]==="\\"&&w[W+2]==="n"&&(N+=w.slice(Y,W)+"\\ ",W+=1,Y=W,U="\\"),U==="\\")switch(w[W+1]){case"u":{N+=w.slice(Y,W);let H=w.substr(W+2,4);switch(H){case"0000":N+="\\0";break;case"0007":N+="\\a";break;case"000b":N+="\\v";break;case"001b":N+="\\e";break;case"0085":N+="\\N";break;case"00a0":N+="\\_";break;case"2028":N+="\\L";break;case"2029":N+="\\P";break;default:H.substr(0,2)==="00"?N+="\\x"+H.substr(2):N+=w.substr(W,6)}W+=5,Y=W+1}break;case"n":if(_||w[W+2]==='"'||w.length<b)W+=1;else{for(N+=w.slice(Y,W)+`
115
+
116
+ `;w[W+2]==="\\"&&w[W+3]==="n"&&w[W+4]!=='"';)N+=`
117
+ `,W+=2;N+=A,w[W+2]===" "&&(N+="\\"),W+=1,Y=W+1}break;default:W+=1}return N=Y?N+w.slice(Y):w,_?N:$(N,A,k,Q(l))}function pe(o,l){if(l.implicitKey){if(/\n/.test(o))return ue(o,l)}else if(/[ \t]\n|\n[ \t]/.test(o))return ue(o,l);let _=l.indent||(z(o)?" ":""),v="'"+o.replace(/'/g,"''").replace(/\n+/g,`$&
118
+ `.concat(_))+"'";return l.implicitKey?v:$(v,_,p,Q(l))}function ge(o,l,_,v){let{comment:b,type:w,value:A}=o;if(/\n[\t ]+$/.test(A)||/^\s*$/.test(A))return ue(A,l);let N=l.indent||(l.forceBlockIndent||z(A)?" ":""),Y=N?"2":"1",W=w===e.Type.BLOCK_FOLDED?!1:w===e.Type.BLOCK_LITERAL?!0:!ie(A,g.fold.lineWidth,N.length),U=W?"|":">";if(!A)return U+`
119
+ `;let H="",oe="";if(A=A.replace(/[\n\t ]*$/,Z=>{let ee=Z.indexOf(`
120
+ `);return ee===-1?U+="-":(A===Z||ee!==Z.length-1)&&(U+="+",v&&v()),oe=Z.replace(/\n$/,""),""}).replace(/^[\n ]*/,Z=>{Z.indexOf(" ")!==-1&&(U+=Y);let ee=Z.match(/ +$/);return ee?(H=Z.slice(0,-ee[0].length),ee[0]):(H=Z,"")}),oe&&(oe=oe.replace(/\n+(?!\n|$)/g,"$&".concat(N))),H&&(H=H.replace(/\n+/g,"$&".concat(N))),b&&(U+=" #"+b.replace(/ ?[\r\n]+/g," "),_&&_()),!A)return"".concat(U).concat(Y,`
121
+ `).concat(N).concat(oe);if(W)return A=A.replace(/\n+/g,"$&".concat(N)),"".concat(U,`
122
+ `).concat(N).concat(H).concat(A).concat(oe);A=A.replace(/\n+/g,`
123
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(N));let le=$("".concat(H).concat(A).concat(oe),N,L,g.fold);return"".concat(U,`
124
+ `).concat(N).concat(le)}function O(o,l,_,v){let{comment:b,type:w,value:A}=o,{actualString:N,implicitKey:Y,indent:W,inFlow:U}=l;if(Y&&/[\n[\]{},]/.test(A)||U&&/[[\]{},]/.test(A))return ue(A,l);if(!A||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(A))return Y||U||A.indexOf(`
125
+ `)===-1?A.indexOf('"')!==-1&&A.indexOf("'")===-1?pe(A,l):ue(A,l):ge(o,l,_,v);if(!Y&&!U&&w!==e.Type.PLAIN&&A.indexOf(`
126
+ `)!==-1)return ge(o,l,_,v);if(W===""&&z(A))return l.forceBlockIndent=!0,ge(o,l,_,v);let H=A.replace(/\n+/g,`$&
127
+ `.concat(W));if(N){let{tags:le}=l.doc.schema;if(typeof u(H,le,le.scalarFallback).value!="string")return ue(A,l)}let oe=Y?H:$(H,W,p,Q(l));return b&&!U&&(oe.indexOf(`
128
+ `)!==-1||b.indexOf(`
129
+ `)!==-1)?(_&&_(),n(oe,W,b)):oe}function V(o,l,_,v){let{defaultType:b}=g,{implicitKey:w,inFlow:A}=l,{type:N,value:Y}=o;typeof Y!="string"&&(Y=String(Y),o=Object.assign({},o,{value:Y}));let W=H=>{switch(H){case e.Type.BLOCK_FOLDED:case e.Type.BLOCK_LITERAL:return ge(o,l,_,v);case e.Type.QUOTE_DOUBLE:return ue(Y,l);case e.Type.QUOTE_SINGLE:return pe(Y,l);case e.Type.PLAIN:return O(o,l,_,v);default:return null}};(N!==e.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(Y)||(w||A)&&(N===e.Type.BLOCK_FOLDED||N===e.Type.BLOCK_LITERAL))&&(N=e.Type.QUOTE_DOUBLE);let U=W(N);if(U===null&&(U=W(b),U===null))throw new Error("Unsupported default string type ".concat(b));return U}function J(o){let{format:l,minFractionDigits:_,tag:v,value:b}=o;if(typeof b=="bigint")return String(b);if(!isFinite(b))return isNaN(b)?".nan":b<0?"-.inf":".inf";let w=JSON.stringify(b);if(!l&&_&&(!v||v==="tag:yaml.org,2002:float")&&/^\d/.test(w)){let A=w.indexOf(".");A<0&&(A=w.length,w+=".");let N=_-(w.length-A-1);for(;N-- >0;)w+="0"}return w}function x(o,l){let _,v;switch(l.type){case e.Type.FLOW_MAP:_="}",v="flow map";break;case e.Type.FLOW_SEQ:_="]",v="flow sequence";break;default:o.push(new e.YAMLSemanticError(l,"Not a flow collection!?"));return}let b;for(let w=l.items.length-1;w>=0;--w){let A=l.items[w];if(!A||A.type!==e.Type.COMMENT){b=A;break}}if(b&&b.char!==_){let w="Expected ".concat(v," to end with ").concat(_),A;typeof b.offset=="number"?(A=new e.YAMLSemanticError(l,w),A.offset=b.offset+1):(A=new e.YAMLSemanticError(b,w),b.range&&b.range.end&&(A.offset=b.range.end-b.range.start)),o.push(A)}}function G(o,l){let _=l.context.src[l.range.start-1];if(_!==`
130
+ `&&_!==" "&&_!==" "){let v="Comments must be separated from other tokens by white space characters";o.push(new e.YAMLSemanticError(l,v))}}function ne(o,l){let _=String(l),v=_.substr(0,8)+"..."+_.substr(-8);return new e.YAMLSemanticError(o,'The "'.concat(v,'" key is too long'))}function _e(o,l){for(let{afterKey:_,before:v,comment:b}of l){let w=o.items[v];w?(_&&w.value&&(w=w.value),b===void 0?(_||!w.commentBefore)&&(w.spaceBefore=!0):w.commentBefore?w.commentBefore+=`
131
+ `+b:w.commentBefore=b):b!==void 0&&(o.comment?o.comment+=`
132
+ `+b:o.comment=b)}}function ye(o,l){let _=l.strValue;return _?typeof _=="string"?_:(_.errors.forEach(v=>{v.source||(v.source=l),o.errors.push(v)}),_.str):""}function be(o,l){let{handle:_,suffix:v}=l.tag,b=o.tagPrefixes.find(w=>w.handle===_);if(!b){let w=o.getDefaults().tagPrefixes;if(w&&(b=w.find(A=>A.handle===_)),!b)throw new e.YAMLSemanticError(l,"The ".concat(_," tag handle is non-default and was not declared."))}if(!v)throw new e.YAMLSemanticError(l,"The ".concat(_," tag has no suffix."));if(_==="!"&&(o.version||o.options.version)==="1.0"){if(v[0]==="^")return o.warnings.push(new e.YAMLWarning(l,"YAML 1.0 ^ tag expansion is not supported")),v;if(/[:/]/.test(v)){let w=v.match(/^([a-z0-9-]+)\/(.*)/i);return w?"tag:".concat(w[1],".yaml.org,2002:").concat(w[2]):"tag:".concat(v)}}return b.prefix+decodeURIComponent(v)}function ve(o,l){let{tag:_,type:v}=l,b=!1;if(_){let{handle:w,suffix:A,verbatim:N}=_;if(N){if(N!=="!"&&N!=="!!")return N;let Y="Verbatim tags aren't resolved, so ".concat(N," is invalid.");o.errors.push(new e.YAMLSemanticError(l,Y))}else if(w==="!"&&!A)b=!0;else try{return be(o,l)}catch(Y){o.errors.push(Y)}}switch(v){case e.Type.BLOCK_FOLDED:case e.Type.BLOCK_LITERAL:case e.Type.QUOTE_DOUBLE:case e.Type.QUOTE_SINGLE:return e.defaultTags.STR;case e.Type.FLOW_MAP:case e.Type.MAP:return e.defaultTags.MAP;case e.Type.FLOW_SEQ:case e.Type.SEQ:return e.defaultTags.SEQ;case e.Type.PLAIN:return b?e.defaultTags.STR:null;default:return null}}function Ne(o,l,_){let{tags:v}=o.schema,b=[];for(let A of v)if(A.tag===_)if(A.test)b.push(A);else{let N=A.resolve(o,l);return N instanceof S?N:new y(N)}let w=ye(o,l);return typeof w=="string"&&b.length>0?u(w,b,v.scalarFallback):null}function Pe(o){let{type:l}=o;switch(l){case e.Type.FLOW_MAP:case e.Type.MAP:return e.defaultTags.MAP;case e.Type.FLOW_SEQ:case e.Type.SEQ:return e.defaultTags.SEQ;default:return e.defaultTags.STR}}function ct(o,l,_){try{let v=Ne(o,l,_);if(v)return _&&l.tag&&(v.tag=_),v}catch(v){return v.source||(v.source=l),o.errors.push(v),null}try{let v=Pe(l);if(!v)throw new Error("The tag ".concat(_," is unavailable"));let b="The tag ".concat(_," is unavailable, falling back to ").concat(v);o.warnings.push(new e.YAMLWarning(l,b));let w=Ne(o,l,v);return w.tag=_,w}catch(v){let b=new e.YAMLReferenceError(l,v.message);return b.stack=v.stack,o.errors.push(b),null}}var ut=o=>{if(!o)return!1;let{type:l}=o;return l===e.Type.MAP_KEY||l===e.Type.MAP_VALUE||l===e.Type.SEQ_ITEM};function ft(o,l){let _={before:[],after:[]},v=!1,b=!1,w=ut(l.context.parent)?l.context.parent.props.concat(l.props):l.props;for(let{start:A,end:N}of w)switch(l.context.src[A]){case e.Char.COMMENT:{if(!l.commentHasRequiredWhitespace(A)){let H="Comments must be separated from other tokens by white space characters";o.push(new e.YAMLSemanticError(l,H))}let{header:Y,valueRange:W}=l;(W&&(A>W.start||Y&&A>Y.start)?_.after:_.before).push(l.context.src.slice(A+1,N));break}case e.Char.ANCHOR:if(v){let Y="A node can have at most one anchor";o.push(new e.YAMLSemanticError(l,Y))}v=!0;break;case e.Char.TAG:if(b){let Y="A node can have at most one tag";o.push(new e.YAMLSemanticError(l,Y))}b=!0;break}return{comments:_,hasAnchor:v,hasTag:b}}function mt(o,l){let{anchors:_,errors:v,schema:b}=o;if(l.type===e.Type.ALIAS){let A=l.rawValue,N=_.getNode(A);if(!N){let W="Aliased anchor not found: ".concat(A);return v.push(new e.YAMLReferenceError(l,W)),null}let Y=new R(N);return _._cstAliases.push(Y),Y}let w=ve(o,l);if(w)return ct(o,l,w);if(l.type!==e.Type.PLAIN){let A="Failed to resolve ".concat(l.type," node here");return v.push(new e.YAMLSyntaxError(l,A)),null}try{let A=ye(o,l);return u(A,b.tags,b.tags.scalarFallback)}catch(A){return A.source||(A.source=l),v.push(A),null}}function we(o,l){if(!l)return null;l.error&&o.errors.push(l.error);let{comments:_,hasAnchor:v,hasTag:b}=ft(o.errors,l);if(v){let{anchors:A}=o,N=l.anchor,Y=A.getNode(N);Y&&(A.map[A.newName(N)]=Y),A.map[N]=l}if(l.type===e.Type.ALIAS&&(v||b)){let A="An alias node must not specify any properties";o.errors.push(new e.YAMLSemanticError(l,A))}let w=mt(o,l);if(w){w.range=[l.range.start,l.range.end],o.options.keepCstNodes&&(w.cstNode=l),o.options.keepNodeTypes&&(w.type=l.type);let A=_.before.join(`
133
+ `);A&&(w.commentBefore=w.commentBefore?"".concat(w.commentBefore,`
134
+ `).concat(A):A);let N=_.after.join(`
135
+ `);N&&(w.comment=w.comment?"".concat(w.comment,`
136
+ `).concat(N):N)}return l.resolved=w}function dt(o,l){if(l.type!==e.Type.MAP&&l.type!==e.Type.FLOW_MAP){let A="A ".concat(l.type," node cannot be resolved as a mapping");return o.errors.push(new e.YAMLSyntaxError(l,A)),null}let{comments:_,items:v}=l.type===e.Type.FLOW_MAP?_t(o,l):pt(o,l),b=new K;b.items=v,_e(b,_);let w=!1;for(let A=0;A<v.length;++A){let{key:N}=v[A];if(N instanceof S&&(w=!0),o.schema.merge&&N&&N.value===m){v[A]=new a(v[A]);let Y=v[A].value.items,W=null;Y.some(U=>{if(U instanceof R){let{type:H}=U.source;return H===e.Type.MAP||H===e.Type.FLOW_MAP?!1:W="Merge nodes aliases can only point to maps"}return W="Merge nodes can only have Alias nodes as values"}),W&&o.errors.push(new e.YAMLSemanticError(l,W))}else for(let Y=A+1;Y<v.length;++Y){let{key:W}=v[Y];if(N===W||N&&W&&Object.prototype.hasOwnProperty.call(N,"value")&&N.value===W.value){let U='Map keys must be unique; "'.concat(N,'" is repeated');o.errors.push(new e.YAMLSemanticError(l,U));break}}}if(w&&!o.options.mapAsMap){let A="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";o.warnings.push(new e.YAMLWarning(l,A))}return l.resolved=b,b}var ht=o=>{let{context:{lineStart:l,node:_,src:v},props:b}=o;if(b.length===0)return!1;let{start:w}=b[0];if(_&&w>_.valueRange.start||v[w]!==e.Char.COMMENT)return!1;for(let A=l;A<w;++A)if(v[A]===`
137
+ `)return!1;return!0};function gt(o,l){if(!ht(o))return;let _=o.getPropValue(0,e.Char.COMMENT,!0),v=!1,b=l.value.commentBefore;if(b&&b.startsWith(_))l.value.commentBefore=b.substr(_.length+1),v=!0;else{let w=l.value.comment;!o.node&&w&&w.startsWith(_)&&(l.value.comment=w.substr(_.length+1),v=!0)}v&&(l.comment=_)}function pt(o,l){let _=[],v=[],b,w=null;for(let A=0;A<l.items.length;++A){let N=l.items[A];switch(N.type){case e.Type.BLANK_LINE:_.push({afterKey:!!b,before:v.length});break;case e.Type.COMMENT:_.push({afterKey:!!b,before:v.length,comment:N.comment});break;case e.Type.MAP_KEY:b!==void 0&&v.push(new C(b)),N.error&&o.errors.push(N.error),b=we(o,N.node),w=null;break;case e.Type.MAP_VALUE:{if(b===void 0&&(b=null),N.error&&o.errors.push(N.error),!N.context.atLineStart&&N.node&&N.node.type===e.Type.MAP&&!N.node.context.atLineStart){let U="Nested mappings are not allowed in compact mappings";o.errors.push(new e.YAMLSemanticError(N.node,U))}let Y=N.node;if(!Y&&N.props.length>0){Y=new e.PlainValue(e.Type.PLAIN,[]),Y.context={parent:N,src:N.context.src};let U=N.range.start+1;if(Y.range={start:U,end:U},Y.valueRange={start:U,end:U},typeof N.range.origStart=="number"){let H=N.range.origStart+1;Y.range.origStart=Y.range.origEnd=H,Y.valueRange.origStart=Y.valueRange.origEnd=H}}let W=new C(b,we(o,Y));gt(N,W),v.push(W),b&&typeof w=="number"&&N.range.start>w+1024&&o.errors.push(ne(l,b)),b=void 0,w=null}break;default:b!==void 0&&v.push(new C(b)),b=we(o,N),w=N.range.start,N.error&&o.errors.push(N.error);e:for(let Y=A+1;;++Y){let W=l.items[Y];switch(W&&W.type){case e.Type.BLANK_LINE:case e.Type.COMMENT:continue e;case e.Type.MAP_VALUE:break e;default:{let U="Implicit map keys need to be followed by map values";o.errors.push(new e.YAMLSemanticError(N,U));break e}}}if(N.valueRangeContainsNewline){let Y="Implicit map keys need to be on a single line";o.errors.push(new e.YAMLSemanticError(N,Y))}}}return b!==void 0&&v.push(new C(b)),{comments:_,items:v}}function _t(o,l){let _=[],v=[],b,w=!1,A="{";for(let N=0;N<l.items.length;++N){let Y=l.items[N];if(typeof Y.char=="string"){let{char:W,offset:U}=Y;if(W==="?"&&b===void 0&&!w){w=!0,A=":";continue}if(W===":"){if(b===void 0&&(b=null),A===":"){A=",";continue}}else if(w&&(b===void 0&&W!==","&&(b=null),w=!1),b!==void 0&&(v.push(new C(b)),b=void 0,W===",")){A=":";continue}if(W==="}"){if(N===l.items.length-1)continue}else if(W===A){A=":";continue}let H="Flow map contains an unexpected ".concat(W),oe=new e.YAMLSyntaxError(l,H);oe.offset=U,o.errors.push(oe)}else Y.type===e.Type.BLANK_LINE?_.push({afterKey:!!b,before:v.length}):Y.type===e.Type.COMMENT?(G(o.errors,Y),_.push({afterKey:!!b,before:v.length,comment:Y.comment})):b===void 0?(A===","&&o.errors.push(new e.YAMLSemanticError(Y,"Separator , missing in flow map")),b=we(o,Y)):(A!==","&&o.errors.push(new e.YAMLSemanticError(Y,"Indicator : missing in flow map entry")),v.push(new C(b,we(o,Y))),b=void 0,w=!1)}return x(o.errors,l),b!==void 0&&v.push(new C(b)),{comments:_,items:v}}function vt(o,l){if(l.type!==e.Type.SEQ&&l.type!==e.Type.FLOW_SEQ){let w="A ".concat(l.type," node cannot be resolved as a sequence");return o.errors.push(new e.YAMLSyntaxError(l,w)),null}let{comments:_,items:v}=l.type===e.Type.FLOW_SEQ?bt(o,l):yt(o,l),b=new T;if(b.items=v,_e(b,_),!o.options.mapAsMap&&v.some(w=>w instanceof C&&w.key instanceof S)){let w="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";o.warnings.push(new e.YAMLWarning(l,w))}return l.resolved=b,b}function yt(o,l){let _=[],v=[];for(let b=0;b<l.items.length;++b){let w=l.items[b];switch(w.type){case e.Type.BLANK_LINE:_.push({before:v.length});break;case e.Type.COMMENT:_.push({comment:w.comment,before:v.length});break;case e.Type.SEQ_ITEM:if(w.error&&o.errors.push(w.error),v.push(we(o,w.node)),w.hasProps){let A="Sequence items cannot have tags or anchors before the - indicator";o.errors.push(new e.YAMLSemanticError(w,A))}break;default:w.error&&o.errors.push(w.error),o.errors.push(new e.YAMLSyntaxError(w,"Unexpected ".concat(w.type," node in sequence")))}}return{comments:_,items:v}}function bt(o,l){let _=[],v=[],b=!1,w,A=null,N="[",Y=null;for(let W=0;W<l.items.length;++W){let U=l.items[W];if(typeof U.char=="string"){let{char:H,offset:oe}=U;if(H!==":"&&(b||w!==void 0)&&(b&&w===void 0&&(w=N?v.pop():null),v.push(new C(w)),b=!1,w=void 0,A=null),H===N)N=null;else if(!N&&H==="?")b=!0;else if(N!=="["&&H===":"&&w===void 0){if(N===","){if(w=v.pop(),w instanceof C){let le="Chaining flow sequence pairs is invalid",Z=new e.YAMLSemanticError(l,le);Z.offset=oe,o.errors.push(Z)}if(!b&&typeof A=="number"){let le=U.range?U.range.start:U.offset;le>A+1024&&o.errors.push(ne(l,w));let{src:Z}=Y.context;for(let ee=A;ee<le;++ee)if(Z[ee]===`
138
+ `){let X="Implicit keys of flow sequence pairs need to be on a single line";o.errors.push(new e.YAMLSemanticError(Y,X));break}}}else w=null;A=null,b=!1,N=null}else if(N==="["||H!=="]"||W<l.items.length-1){let le="Flow sequence contains an unexpected ".concat(H),Z=new e.YAMLSyntaxError(l,le);Z.offset=oe,o.errors.push(Z)}}else if(U.type===e.Type.BLANK_LINE)_.push({before:v.length});else if(U.type===e.Type.COMMENT)G(o.errors,U),_.push({comment:U.comment,before:v.length});else{if(N){let oe="Expected a ".concat(N," in flow sequence");o.errors.push(new e.YAMLSemanticError(U,oe))}let H=we(o,U);w===void 0?(v.push(H),Y=U):(v.push(new C(w,H)),w=void 0),A=U.range.start,N=","}}return x(o.errors,l),w!==void 0&&v.push(new C(w)),{comments:_,items:v}}r.Alias=R,r.Collection=S,r.Merge=a,r.Node=h,r.Pair=C,r.Scalar=y,r.YAMLMap=K,r.YAMLSeq=T,r.addComment=c,r.binaryOptions=t,r.boolOptions=s,r.findPair=j,r.intOptions=i,r.isEmptyPath=I,r.nullOptions=f,r.resolveMap=dt,r.resolveNode=we,r.resolveSeq=vt,r.resolveString=ye,r.strOptions=g,r.stringifyNumber=J,r.stringifyString=V,r.toJSON=d}}),it=F({"node_modules/yaml/dist/warnings-1000a372.js"(r){"use strict";D();var e=Me(),n=ke(),c={identify:u=>u instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(u,p)=>{let L=n.resolveString(u,p);if(typeof Buffer=="function")return Buffer.from(L,"base64");if(typeof atob=="function"){let k=atob(L.replace(/[\n\r]/g,"")),B=new Uint8Array(k.length);for(let $=0;$<k.length;++$)B[$]=k.charCodeAt($);return B}else{let k="This environment does not support reading binary tags; either Buffer or atob is required";return u.errors.push(new e.YAMLReferenceError(p,k)),null}},options:n.binaryOptions,stringify:(u,p,L,k)=>{let{comment:B,type:$,value:Q}=u,z;if(typeof Buffer=="function")z=Q instanceof Buffer?Q.toString("base64"):Buffer.from(Q.buffer).toString("base64");else if(typeof btoa=="function"){let ie="";for(let ue=0;ue<Q.length;++ue)ie+=String.fromCharCode(Q[ue]);z=btoa(ie)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if($||($=n.binaryOptions.defaultType),$===e.Type.QUOTE_DOUBLE)Q=z;else{let{lineWidth:ie}=n.binaryOptions,ue=Math.ceil(z.length/ie),pe=new Array(ue);for(let ge=0,O=0;ge<ue;++ge,O+=ie)pe[ge]=z.substr(O,ie);Q=pe.join($===e.Type.BLOCK_LITERAL?`
139
+ `:" ")}return n.stringifyString({comment:B,type:$,value:Q},p,L,k)}};function h(u,p){let L=n.resolveSeq(u,p);for(let k=0;k<L.items.length;++k){let B=L.items[k];if(!(B instanceof n.Pair)){if(B instanceof n.YAMLMap){if(B.items.length>1){let Q="Each pair must have its own sequence indicator";throw new e.YAMLSemanticError(p,Q)}let $=B.items[0]||new n.Pair;B.commentBefore&&($.commentBefore=$.commentBefore?"".concat(B.commentBefore,`
140
+ `).concat($.commentBefore):B.commentBefore),B.comment&&($.comment=$.comment?"".concat(B.comment,`
141
+ `).concat($.comment):B.comment),B=$}L.items[k]=B instanceof n.Pair?B:new n.Pair(B)}}return L}function d(u,p,L){let k=new n.YAMLSeq(u);k.tag="tag:yaml.org,2002:pairs";for(let B of p){let $,Q;if(Array.isArray(B))if(B.length===2)$=B[0],Q=B[1];else throw new TypeError("Expected [key, value] tuple: ".concat(B));else if(B&&B instanceof Object){let ie=Object.keys(B);if(ie.length===1)$=ie[0],Q=B[$];else throw new TypeError("Expected { key: value } tuple: ".concat(B))}else $=B;let z=u.createPair($,Q,L);k.items.push(z)}return k}var y={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:h,createNode:d},E=class extends n.YAMLSeq{constructor(){super();e._defineProperty(this,"add",n.YAMLMap.prototype.add.bind(this)),e._defineProperty(this,"delete",n.YAMLMap.prototype.delete.bind(this)),e._defineProperty(this,"get",n.YAMLMap.prototype.get.bind(this)),e._defineProperty(this,"has",n.YAMLMap.prototype.has.bind(this)),e._defineProperty(this,"set",n.YAMLMap.prototype.set.bind(this)),this.tag=E.tag}toJSON(u,p){let L=new Map;p&&p.onCreate&&p.onCreate(L);for(let k of this.items){let B,$;if(k instanceof n.Pair?(B=n.toJSON(k.key,"",p),$=n.toJSON(k.value,B,p)):B=n.toJSON(k,"",p),L.has(B))throw new Error("Ordered maps must not include duplicate keys");L.set(B,$)}return L}};e._defineProperty(E,"tag","tag:yaml.org,2002:omap");function I(u,p){let L=h(u,p),k=[];for(let{key:B}of L.items)if(B instanceof n.Scalar)if(k.includes(B.value)){let $="Ordered maps must not include duplicate keys";throw new e.YAMLSemanticError(p,$)}else k.push(B.value);return Object.assign(new E,L)}function S(u,p,L){let k=d(u,p,L),B=new E;return B.items=k.items,B}var M={identify:u=>u instanceof Map,nodeClass:E,default:!1,tag:"tag:yaml.org,2002:omap",resolve:I,createNode:S},T=class extends n.YAMLMap{constructor(){super();this.tag=T.tag}add(u){let p=u instanceof n.Pair?u:new n.Pair(u);n.findPair(this.items,p.key)||this.items.push(p)}get(u,p){let L=n.findPair(this.items,u);return!p&&L instanceof n.Pair?L.key instanceof n.Scalar?L.key.value:L.key:L}set(u,p){if(typeof p!="boolean")throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(typeof p));let L=n.findPair(this.items,u);L&&!p?this.items.splice(this.items.indexOf(L),1):!L&&p&&this.items.push(new n.Pair(u))}toJSON(u,p){return super.toJSON(u,p,Set)}toString(u,p,L){if(!u)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(u,p,L);throw new Error("Set items must all have null values")}};e._defineProperty(T,"tag","tag:yaml.org,2002:set");function P(u,p){let L=n.resolveMap(u,p);if(!L.hasAllNullValues())throw new e.YAMLSemanticError(p,"Set items must all have null values");return Object.assign(new T,L)}function C(u,p,L){let k=new T;for(let B of p)k.items.push(u.createPair(B,null,L));return k}var q={identify:u=>u instanceof Set,nodeClass:T,default:!1,tag:"tag:yaml.org,2002:set",resolve:P,createNode:C},R=(u,p)=>{let L=p.split(":").reduce((k,B)=>k*60+Number(B),0);return u==="-"?-L:L},j=u=>{let{value:p}=u;if(isNaN(p)||!isFinite(p))return n.stringifyNumber(p);let L="";p<0&&(L="-",p=Math.abs(p));let k=[p%60];return p<60?k.unshift(0):(p=Math.round((p-k[0])/60),k.unshift(p%60),p>=60&&(p=Math.round((p-k[0])/60),k.unshift(p))),L+k.map(B=>B<10?"0"+String(B):String(B)).join(":").replace(/000000\d*$/,"")},K={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(u,p,L)=>R(p,L.replace(/_/g,"")),stringify:j},m={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(u,p,L)=>R(p,L.replace(/_/g,"")),stringify:j},a={identify:u=>u instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(u,p,L,k,B,$,Q,z,ie)=>{z&&(z=(z+"00").substr(1,3));let ue=Date.UTC(p,L-1,k,B||0,$||0,Q||0,z||0);if(ie&&ie!=="Z"){let pe=R(ie[0],ie.slice(1));Math.abs(pe)<30&&(pe*=60),ue-=6e4*pe}return new Date(ue)},stringify:u=>{let{value:p}=u;return p.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function t(u){let p=typeof Te<"u"&&Te.env||{};return u?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!p.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!p.YAML_SILENCE_WARNINGS}function s(u,p){if(t(!1)){let L=typeof Te<"u"&&Te.emitWarning;L?L(u,p):console.warn(p?"".concat(p,": ").concat(u):u)}}function i(u){if(t(!0)){let p=u.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");s("The endpoint 'yaml/".concat(p,"' will be removed in a future release."),"DeprecationWarning")}}var f={};function g(u,p){if(!f[u]&&t(!0)){f[u]=!0;let L="The option '".concat(u,"' will be removed in a future release");L+=p?", use '".concat(p,"' instead."):".",s(L,"DeprecationWarning")}}r.binary=c,r.floatTime=m,r.intTime=K,r.omap=M,r.pairs=y,r.set=q,r.timestamp=a,r.warn=s,r.warnFileDeprecation=i,r.warnOptionDeprecation=g}}),ot=F({"node_modules/yaml/dist/Schema-88e323a7.js"(r){"use strict";D();var e=Me(),n=ke(),c=it();function h(O,V,J){let x=new n.YAMLMap(O);if(V instanceof Map)for(let[G,ne]of V)x.items.push(O.createPair(G,ne,J));else if(V&&typeof V=="object")for(let G of Object.keys(V))x.items.push(O.createPair(G,V[G],J));return typeof O.sortMapEntries=="function"&&x.items.sort(O.sortMapEntries),x}var d={createNode:h,default:!0,nodeClass:n.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:n.resolveMap};function y(O,V,J){let x=new n.YAMLSeq(O);if(V&&V[Symbol.iterator])for(let G of V){let ne=O.createNode(G,J.wrapScalars,null,J);x.items.push(ne)}return x}var E={createNode:y,default:!0,nodeClass:n.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:n.resolveSeq},I={identify:O=>typeof O=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:n.resolveString,stringify(O,V,J,x){return V=Object.assign({actualString:!0},V),n.stringifyString(O,V,J,x)},options:n.strOptions},S=[d,E,I],M=O=>typeof O=="bigint"||Number.isInteger(O),T=(O,V,J)=>n.intOptions.asBigInt?BigInt(O):parseInt(V,J);function P(O,V,J){let{value:x}=O;return M(x)&&x>=0?J+x.toString(V):n.stringifyNumber(O)}var C={identify:O=>O==null,createNode:(O,V,J)=>J.wrapScalars?new n.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:n.nullOptions,stringify:()=>n.nullOptions.nullStr},q={identify:O=>typeof O=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:O=>O[0]==="t"||O[0]==="T",options:n.boolOptions,stringify:O=>{let{value:V}=O;return V?n.boolOptions.trueStr:n.boolOptions.falseStr}},R={identify:O=>M(O)&&O>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(O,V)=>T(O,V,8),options:n.intOptions,stringify:O=>P(O,8,"0o")},j={identify:M,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:O=>T(O,O,10),options:n.intOptions,stringify:n.stringifyNumber},K={identify:O=>M(O)&&O>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(O,V)=>T(O,V,16),options:n.intOptions,stringify:O=>P(O,16,"0x")},m={identify:O=>typeof O=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(O,V)=>V?NaN:O[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:n.stringifyNumber},a={identify:O=>typeof O=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:O=>parseFloat(O),stringify:O=>{let{value:V}=O;return Number(V).toExponential()}},t={identify:O=>typeof O=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(O,V,J){let x=V||J,G=new n.Scalar(parseFloat(O));return x&&x[x.length-1]==="0"&&(G.minFractionDigits=x.length),G},stringify:n.stringifyNumber},s=S.concat([C,q,R,j,K,m,a,t]),i=O=>typeof O=="bigint"||Number.isInteger(O),f=O=>{let{value:V}=O;return JSON.stringify(V)},g=[d,E,{identify:O=>typeof O=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:n.resolveString,stringify:f},{identify:O=>O==null,createNode:(O,V,J)=>J.wrapScalars?new n.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:f},{identify:O=>typeof O=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:O=>O==="true",stringify:f},{identify:i,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:O=>n.intOptions.asBigInt?BigInt(O):parseInt(O,10),stringify:O=>{let{value:V}=O;return i(V)?V.toString():JSON.stringify(V)}},{identify:O=>typeof O=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:O=>parseFloat(O),stringify:f}];g.scalarFallback=O=>{throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(O)))};var u=O=>{let{value:V}=O;return V?n.boolOptions.trueStr:n.boolOptions.falseStr},p=O=>typeof O=="bigint"||Number.isInteger(O);function L(O,V,J){let x=V.replace(/_/g,"");if(n.intOptions.asBigInt){switch(J){case 2:x="0b".concat(x);break;case 8:x="0o".concat(x);break;case 16:x="0x".concat(x);break}let ne=BigInt(x);return O==="-"?BigInt(-1)*ne:ne}let G=parseInt(x,J);return O==="-"?-1*G:G}function k(O,V,J){let{value:x}=O;if(p(x)){let G=x.toString(V);return x<0?"-"+J+G.substr(1):J+G}return n.stringifyNumber(O)}var B=S.concat([{identify:O=>O==null,createNode:(O,V,J)=>J.wrapScalars?new n.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:n.nullOptions,stringify:()=>n.nullOptions.nullStr},{identify:O=>typeof O=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:n.boolOptions,stringify:u},{identify:O=>typeof O=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:n.boolOptions,stringify:u},{identify:p,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(O,V,J)=>L(V,J,2),stringify:O=>k(O,2,"0b")},{identify:p,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(O,V,J)=>L(V,J,8),stringify:O=>k(O,8,"0")},{identify:p,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(O,V,J)=>L(V,J,10),stringify:n.stringifyNumber},{identify:p,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(O,V,J)=>L(V,J,16),stringify:O=>k(O,16,"0x")},{identify:O=>typeof O=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(O,V)=>V?NaN:O[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:n.stringifyNumber},{identify:O=>typeof O=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:O=>parseFloat(O.replace(/_/g,"")),stringify:O=>{let{value:V}=O;return Number(V).toExponential()}},{identify:O=>typeof O=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(O,V){let J=new n.Scalar(parseFloat(O.replace(/_/g,"")));if(V){let x=V.replace(/_/g,"");x[x.length-1]==="0"&&(J.minFractionDigits=x.length)}return J},stringify:n.stringifyNumber}],c.binary,c.omap,c.pairs,c.set,c.intTime,c.floatTime,c.timestamp),$={core:s,failsafe:S,json:g,yaml11:B},Q={binary:c.binary,bool:q,float:t,floatExp:a,floatNaN:m,floatTime:c.floatTime,int:j,intHex:K,intOct:R,intTime:c.intTime,map:d,null:C,omap:c.omap,pairs:c.pairs,seq:E,set:c.set,timestamp:c.timestamp};function z(O,V,J){if(V){let x=J.filter(ne=>ne.tag===V),G=x.find(ne=>!ne.format)||x[0];if(!G)throw new Error("Tag ".concat(V," not found"));return G}return J.find(x=>(x.identify&&x.identify(O)||x.class&&O instanceof x.class)&&!x.format)}function ie(O,V,J){if(O instanceof n.Node)return O;let{defaultPrefix:x,onTagObj:G,prevObjects:ne,schema:_e,wrapScalars:ye}=J;V&&V.startsWith("!!")&&(V=x+V.slice(2));let be=z(O,V,_e.tags);if(!be){if(typeof O.toJSON=="function"&&(O=O.toJSON()),!O||typeof O!="object")return ye?new n.Scalar(O):O;be=O instanceof Map?d:O[Symbol.iterator]?E:d}G&&(G(be),delete J.onTagObj);let ve={value:void 0,node:void 0};if(O&&typeof O=="object"&&ne){let Ne=ne.get(O);if(Ne){let Pe=new n.Alias(Ne);return J.aliasNodes.push(Pe),Pe}ve.value=O,ne.set(O,ve)}return ve.node=be.createNode?be.createNode(J.schema,O,J):ye?new n.Scalar(O):O,V&&ve.node instanceof n.Node&&(ve.node.tag=V),ve.node}function ue(O,V,J,x){let G=O[x.replace(/\W/g,"")];if(!G){let ne=Object.keys(O).map(_e=>JSON.stringify(_e)).join(", ");throw new Error('Unknown schema "'.concat(x,'"; use one of ').concat(ne))}if(Array.isArray(J))for(let ne of J)G=G.concat(ne);else typeof J=="function"&&(G=J(G.slice()));for(let ne=0;ne<G.length;++ne){let _e=G[ne];if(typeof _e=="string"){let ye=V[_e];if(!ye){let be=Object.keys(V).map(ve=>JSON.stringify(ve)).join(", ");throw new Error('Unknown custom tag "'.concat(_e,'"; use one of ').concat(be))}G[ne]=ye}}return G}var pe=(O,V)=>O.key<V.key?-1:O.key>V.key?1:0,ge=class{constructor(O){let{customTags:V,merge:J,schema:x,sortMapEntries:G,tags:ne}=O;this.merge=!!J,this.name=x,this.sortMapEntries=G===!0?pe:G||null,!V&&ne&&c.warnOptionDeprecation("tags","customTags"),this.tags=ue($,Q,V||ne,x)}createNode(O,V,J,x){let G={defaultPrefix:ge.defaultPrefix,schema:this,wrapScalars:V},ne=x?Object.assign(x,G):G;return ie(O,J,ne)}createPair(O,V,J){J||(J={wrapScalars:!0});let x=this.createNode(O,J.wrapScalars,null,J),G=this.createNode(V,J.wrapScalars,null,J);return new n.Pair(x,G)}};e._defineProperty(ge,"defaultPrefix",e.defaultTagPrefix),e._defineProperty(ge,"defaultTags",e.defaultTags),r.Schema=ge}}),zn=F({"node_modules/yaml/dist/Document-9b4560a1.js"(r){"use strict";D();var e=Me(),n=ke(),c=ot(),h={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},d={get binary(){return n.binaryOptions},set binary(t){Object.assign(n.binaryOptions,t)},get bool(){return n.boolOptions},set bool(t){Object.assign(n.boolOptions,t)},get int(){return n.intOptions},set int(t){Object.assign(n.intOptions,t)},get null(){return n.nullOptions},set null(t){Object.assign(n.nullOptions,t)},get str(){return n.strOptions},set str(t){Object.assign(n.strOptions,t)}},y={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:e.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:e.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:e.defaultTagPrefix}]}};function E(t,s){if((t.version||t.options.version)==="1.0"){let g=s.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(g)return"!"+g[1];let u=s.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return u?"!".concat(u[1],"/").concat(u[2]):"!".concat(s.replace(/^tag:/,""))}let i=t.tagPrefixes.find(g=>s.indexOf(g.prefix)===0);if(!i){let g=t.getDefaults().tagPrefixes;i=g&&g.find(u=>s.indexOf(u.prefix)===0)}if(!i)return s[0]==="!"?s:"!<".concat(s,">");let f=s.substr(i.prefix.length).replace(/[!,[\]{}]/g,g=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[g]);return i.handle+f}function I(t,s){if(s instanceof n.Alias)return n.Alias;if(s.tag){let g=t.filter(u=>u.tag===s.tag);if(g.length>0)return g.find(u=>u.format===s.format)||g[0]}let i,f;if(s instanceof n.Scalar){f=s.value;let g=t.filter(u=>u.identify&&u.identify(f)||u.class&&f instanceof u.class);i=g.find(u=>u.format===s.format)||g.find(u=>!u.format)}else f=s,i=t.find(g=>g.nodeClass&&f instanceof g.nodeClass);if(!i){let g=f&&f.constructor?f.constructor.name:typeof f;throw new Error("Tag not resolved for ".concat(g," value"))}return i}function S(t,s,i){let{anchors:f,doc:g}=i,u=[],p=g.anchors.getName(t);return p&&(f[p]=t,u.push("&".concat(p))),t.tag?u.push(E(g,t.tag)):s.default||u.push(E(g,s.tag)),u.join(" ")}function M(t,s,i,f){let{anchors:g,schema:u}=s.doc,p;if(!(t instanceof n.Node)){let B={aliasNodes:[],onTagObj:$=>p=$,prevObjects:new Map};t=u.createNode(t,!0,null,B);for(let $ of B.aliasNodes){$.source=$.source.node;let Q=g.getName($.source);Q||(Q=g.newName(),g.map[Q]=$.source)}}if(t instanceof n.Pair)return t.toString(s,i,f);p||(p=I(u.tags,t));let L=S(t,p,s);L.length>0&&(s.indentAtStart=(s.indentAtStart||0)+L.length+1);let k=typeof p.stringify=="function"?p.stringify(t,s,i,f):t instanceof n.Scalar?n.stringifyString(t,s,i,f):t.toString(s,i,f);return L?t instanceof n.Scalar||k[0]==="{"||k[0]==="["?"".concat(L," ").concat(k):"".concat(L,`
142
+ `).concat(s.indent).concat(k):k}var T=class{static validAnchorNode(t){return t instanceof n.Scalar||t instanceof n.YAMLSeq||t instanceof n.YAMLMap}constructor(t){e._defineProperty(this,"map",Object.create(null)),this.prefix=t}createAlias(t,s){return this.setAnchor(t,s),new n.Alias(t)}createMergePair(){let t=new n.Merge;for(var s=arguments.length,i=new Array(s),f=0;f<s;f++)i[f]=arguments[f];return t.value.items=i.map(g=>{if(g instanceof n.Alias){if(g.source instanceof n.YAMLMap)return g}else if(g instanceof n.YAMLMap)return this.createAlias(g);throw new Error("Merge sources must be Map nodes or their Aliases")}),t}getName(t){let{map:s}=this;return Object.keys(s).find(i=>s[i]===t)}getNames(){return Object.keys(this.map)}getNode(t){return this.map[t]}newName(t){t||(t=this.prefix);let s=Object.keys(this.map);for(let i=1;;++i){let f="".concat(t).concat(i);if(!s.includes(f))return f}}resolveNodes(){let{map:t,_cstAliases:s}=this;Object.keys(t).forEach(i=>{t[i]=t[i].resolved}),s.forEach(i=>{i.source=i.source.resolved}),delete this._cstAliases}setAnchor(t,s){if(t!=null&&!T.validAnchorNode(t))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(s&&/[\x00-\x19\s,[\]{}]/.test(s))throw new Error("Anchor names must not contain whitespace or control characters");let{map:i}=this,f=t&&Object.keys(i).find(g=>i[g]===t);if(f)if(s)f!==s&&(delete i[f],i[s]=t);else return f;else{if(!s){if(!t)return null;s=this.newName()}i[s]=t}return s}},P=(t,s)=>{if(t&&typeof t=="object"){let{tag:i}=t;t instanceof n.Collection?(i&&(s[i]=!0),t.items.forEach(f=>P(f,s))):t instanceof n.Pair?(P(t.key,s),P(t.value,s)):t instanceof n.Scalar&&i&&(s[i]=!0)}return s},C=t=>Object.keys(P(t,{}));function q(t,s){let i={before:[],after:[]},f,g=!1;for(let u of s)if(u.valueRange){if(f!==void 0){let L="Document contains trailing content not separated by a ... or --- line";t.errors.push(new e.YAMLSyntaxError(u,L));break}let p=n.resolveNode(t,u);g&&(p.spaceBefore=!0,g=!1),f=p}else u.comment!==null?(f===void 0?i.before:i.after).push(u.comment):u.type===e.Type.BLANK_LINE&&(g=!0,f===void 0&&i.before.length>0&&!t.commentBefore&&(t.commentBefore=i.before.join(`
143
+ `),i.before=[]));if(t.contents=f||null,!f)t.comment=i.before.concat(i.after).join(`
144
+ `)||null;else{let u=i.before.join(`
145
+ `);if(u){let p=f instanceof n.Collection&&f.items[0]?f.items[0]:f;p.commentBefore=p.commentBefore?"".concat(u,`
146
+ `).concat(p.commentBefore):u}t.comment=i.after.join(`
147
+ `)||null}}function R(t,s){let{tagPrefixes:i}=t,[f,g]=s.parameters;if(!f||!g){let u="Insufficient parameters given for %TAG directive";throw new e.YAMLSemanticError(s,u)}if(i.some(u=>u.handle===f)){let u="The %TAG directive must only be given at most once per handle in the same document.";throw new e.YAMLSemanticError(s,u)}return{handle:f,prefix:g}}function j(t,s){let[i]=s.parameters;if(s.name==="YAML:1.0"&&(i="1.0"),!i){let f="Insufficient parameters given for %YAML directive";throw new e.YAMLSemanticError(s,f)}if(!y[i]){let f=t.version||t.options.version,g="Document will be parsed as YAML ".concat(f," rather than YAML ").concat(i);t.warnings.push(new e.YAMLWarning(s,g))}return i}function K(t,s,i){let f=[],g=!1;for(let u of s){let{comment:p,name:L}=u;switch(L){case"TAG":try{t.tagPrefixes.push(R(t,u))}catch(k){t.errors.push(k)}g=!0;break;case"YAML":case"YAML:1.0":if(t.version){let k="The %YAML directive must only be given at most once per document.";t.errors.push(new e.YAMLSemanticError(u,k))}try{t.version=j(t,u)}catch(k){t.errors.push(k)}g=!0;break;default:if(L){let k="YAML only supports %TAG and %YAML directives, and not %".concat(L);t.warnings.push(new e.YAMLWarning(u,k))}}p&&f.push(p)}if(i&&!g&&(t.version||i.version||t.options.version)==="1.1"){let u=p=>{let{handle:L,prefix:k}=p;return{handle:L,prefix:k}};t.tagPrefixes=i.tagPrefixes.map(u),t.version=i.version}t.commentBefore=f.join(`
148
+ `)||null}function m(t){if(t instanceof n.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var a=class{constructor(t){this.anchors=new T(t.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(t){return m(this.contents),this.contents.add(t)}addIn(t,s){m(this.contents),this.contents.addIn(t,s)}delete(t){return m(this.contents),this.contents.delete(t)}deleteIn(t){return n.isEmptyPath(t)?this.contents==null?!1:(this.contents=null,!0):(m(this.contents),this.contents.deleteIn(t))}getDefaults(){return a.defaults[this.version]||a.defaults[this.options.version]||{}}get(t,s){return this.contents instanceof n.Collection?this.contents.get(t,s):void 0}getIn(t,s){return n.isEmptyPath(t)?!s&&this.contents instanceof n.Scalar?this.contents.value:this.contents:this.contents instanceof n.Collection?this.contents.getIn(t,s):void 0}has(t){return this.contents instanceof n.Collection?this.contents.has(t):!1}hasIn(t){return n.isEmptyPath(t)?this.contents!==void 0:this.contents instanceof n.Collection?this.contents.hasIn(t):!1}set(t,s){m(this.contents),this.contents.set(t,s)}setIn(t,s){n.isEmptyPath(t)?this.contents=s:(m(this.contents),this.contents.setIn(t,s))}setSchema(t,s){if(!t&&!s&&this.schema)return;typeof t=="number"&&(t=t.toFixed(1)),t==="1.0"||t==="1.1"||t==="1.2"?(this.version?this.version=t:this.options.version=t,delete this.options.schema):t&&typeof t=="string"&&(this.options.schema=t),Array.isArray(s)&&(this.options.customTags=s);let i=Object.assign({},this.getDefaults(),this.options);this.schema=new c.Schema(i)}parse(t,s){this.options.keepCstNodes&&(this.cstNode=t),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:i=[],contents:f=[],directivesEndMarker:g,error:u,valueRange:p}=t;if(u&&(u.source||(u.source=this),this.errors.push(u)),K(this,i,s),g&&(this.directivesEndMarker=!0),this.range=p?[p.start,p.end]:null,this.setSchema(),this.anchors._cstAliases=[],q(this,f),this.anchors.resolveNodes(),this.options.prettyErrors){for(let L of this.errors)L instanceof e.YAMLError&&L.makePretty();for(let L of this.warnings)L instanceof e.YAMLError&&L.makePretty()}return this}listNonDefaultTags(){return C(this.contents).filter(t=>t.indexOf(c.Schema.defaultPrefix)!==0)}setTagPrefix(t,s){if(t[0]!=="!"||t[t.length-1]!=="!")throw new Error("Handle must start and end with !");if(s){let i=this.tagPrefixes.find(f=>f.handle===t);i?i.prefix=s:this.tagPrefixes.push({handle:t,prefix:s})}else this.tagPrefixes=this.tagPrefixes.filter(i=>i.handle!==t)}toJSON(t,s){let{keepBlobsInJSON:i,mapAsMap:f,maxAliasCount:g}=this.options,u=i&&(typeof t!="string"||!(this.contents instanceof n.Scalar)),p={doc:this,indentStep:" ",keep:u,mapAsMap:u&&!!f,maxAliasCount:g,stringify:M},L=Object.keys(this.anchors.map);L.length>0&&(p.anchors=new Map(L.map(B=>[this.anchors.map[B],{alias:[],aliasCount:0,count:1}])));let k=n.toJSON(this.contents,t,p);if(typeof s=="function"&&p.anchors)for(let{count:B,res:$}of p.anchors.values())s($,B);return k}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let t=this.options.indent;if(!Number.isInteger(t)||t<=0){let L=JSON.stringify(t);throw new Error('"indent" option must be a positive integer, not '.concat(L))}this.setSchema();let s=[],i=!1;if(this.version){let L="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?L="%YAML:1.0":this.version==="1.1"&&(L="%YAML 1.1")),s.push(L),i=!0}let f=this.listNonDefaultTags();this.tagPrefixes.forEach(L=>{let{handle:k,prefix:B}=L;f.some($=>$.indexOf(B)===0)&&(s.push("%TAG ".concat(k," ").concat(B)),i=!0)}),(i||this.directivesEndMarker)&&s.push("---"),this.commentBefore&&((i||!this.directivesEndMarker)&&s.unshift(""),s.unshift(this.commentBefore.replace(/^/gm,"#")));let g={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(t),stringify:M},u=!1,p=null;if(this.contents){this.contents instanceof n.Node&&(this.contents.spaceBefore&&(i||this.directivesEndMarker)&&s.push(""),this.contents.commentBefore&&s.push(this.contents.commentBefore.replace(/^/gm,"#")),g.forceBlockIndent=!!this.comment,p=this.contents.comment);let L=p?null:()=>u=!0,k=M(this.contents,g,()=>p=null,L);s.push(n.addComment(k,"",p))}else this.contents!==void 0&&s.push(M(this.contents,g));return this.comment&&((!u||p)&&s[s.length-1]!==""&&s.push(""),s.push(this.comment.replace(/^/gm,"#"))),s.join(`
149
+ `)+`
150
+ `}};e._defineProperty(a,"defaults",y),r.Document=a,r.defaultOptions=h,r.scalarOptions=d}}),Zn=F({"node_modules/yaml/dist/index.js"(r){"use strict";D();var e=Gn(),n=zn(),c=ot(),h=Me(),d=it();ke();function y(C){let q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,R=arguments.length>2?arguments[2]:void 0;R===void 0&&typeof q=="string"&&(R=q,q=!0);let j=Object.assign({},n.Document.defaults[n.defaultOptions.version],n.defaultOptions);return new c.Schema(j).createNode(C,q,R)}var E=class extends n.Document{constructor(C){super(Object.assign({},n.defaultOptions,C))}};function I(C,q){let R=[],j;for(let K of e.parse(C)){let m=new E(q);m.parse(K,j),R.push(m),j=m}return R}function S(C,q){let R=e.parse(C),j=new E(q).parse(R[0]);if(R.length>1){let K="Source contains multiple documents; please use YAML.parseAllDocuments()";j.errors.unshift(new h.YAMLSemanticError(R[1],K))}return j}function M(C,q){let R=S(C,q);if(R.warnings.forEach(j=>d.warn(j)),R.errors.length>0)throw R.errors[0];return R.toJSON()}function T(C,q){let R=new E(q);return R.contents=C,String(R)}var P={createNode:y,defaultOptions:n.defaultOptions,Document:E,parse:M,parseAllDocuments:I,parseCST:e.parse,parseDocument:S,scalarOptions:n.scalarOptions,stringify:T};r.YAML=P}}),Je=F({"node_modules/yaml/index.js"(r,e){D(),e.exports=Zn().YAML}}),Xn=F({"node_modules/yaml/dist/util.js"(r){"use strict";D();var e=ke(),n=Me();r.findPair=e.findPair,r.parseMap=e.resolveMap,r.parseSeq=e.resolveSeq,r.stringifyNumber=e.stringifyNumber,r.stringifyString=e.stringifyString,r.toJSON=e.toJSON,r.Type=n.Type,r.YAMLError=n.YAMLError,r.YAMLReferenceError=n.YAMLReferenceError,r.YAMLSemanticError=n.YAMLSemanticError,r.YAMLSyntaxError=n.YAMLSyntaxError,r.YAMLWarning=n.YAMLWarning}}),er=F({"node_modules/yaml/util.js"(r){D();var e=Xn();r.findPair=e.findPair,r.toJSON=e.toJSON,r.parseMap=e.parseMap,r.parseSeq=e.parseSeq,r.stringifyNumber=e.stringifyNumber,r.stringifyString=e.stringifyString,r.Type=e.Type,r.YAMLError=e.YAMLError,r.YAMLReferenceError=e.YAMLReferenceError,r.YAMLSemanticError=e.YAMLSemanticError,r.YAMLSyntaxError=e.YAMLSyntaxError,r.YAMLWarning=e.YAMLWarning}}),tr=F({"node_modules/yaml-unist-parser/lib/yaml.js"(r){"use strict";D(),r.__esModule=!0;var e=Je();r.Document=e.Document;var n=Je();r.parseCST=n.parseCST;var c=er();r.YAMLError=c.YAMLError,r.YAMLSyntaxError=c.YAMLSyntaxError,r.YAMLSemanticError=c.YAMLSemanticError}}),nr=F({"node_modules/yaml-unist-parser/lib/parse.js"(r){"use strict";D(),r.__esModule=!0;var e=xt(),n=Gt(),c=zt(),h=Zt(),d=Fn(),y=ze(),E=Vn(),I=Un(),S=Kn(),M=$n(),T=Jn(),P=Hn(),C=tr();function q(R){var j=C.parseCST(R);M.addOrigRange(j);for(var K=j.map(function(k){return new C.Document({merge:!1,keepCstNodes:!0}).parse(k)}),m=new e.default(R),a=[],t={text:R,locator:m,comments:a,transformOffset:function(k){return I.transformOffset(k,t)},transformRange:function(k){return S.transformRange(k,t)},transformNode:function(k){return d.transformNode(k,t)},transformContent:function(k){return y.transformContent(k,t)}},s=0,i=K;s<i.length;s++)for(var f=i[s],g=0,u=f.errors;g<u.length;g++){var p=u[g];if(!(p instanceof C.YAMLSemanticError&&p.message==='Map keys must be unique; "<<" is repeated'))throw E.transformError(p,t)}K.forEach(function(k){return h.removeCstBlankLine(k.cstNode)});var L=c.createRoot(t.transformRange({origStart:0,origEnd:t.text.length}),K.map(t.transformNode),a);return n.attachComments(L),P.updatePositions(L),T.removeFakeNodes(L),L}r.parse=q}}),rr=F({"node_modules/yaml-unist-parser/lib/index.js"(r){"use strict";D(),r.__esModule=!0;var e=(ae(),se(te));e.__exportStar(nr(),r)}});D();var sr=Lt(),{hasPragma:ar}=At(),{locStart:ir,locEnd:or}=Nt();function lr(r){let{parse:e}=rr();try{let n=e(r);return delete n.comments,n}catch(n){throw n&&n.position?sr(n.message,n.position):n}}var cr={astFormat:"yaml",parse:lr,hasPragma:ar,locStart:ir,locEnd:or};lt.exports={parsers:{yaml:cr}}});"use strict";return ur();});