UNPKG

@galaxyproject/galaxy-client

Version:

Galaxy client application build system

1 lines 3.59 MB
"use strict";(self.webpackChunk_galaxyproject_galaxy_client=self.webpackChunk_galaxyproject_galaxy_client||[]).push([[6219],{56219:(e,t,n)=>{n.d(t,{a:()=>qn});var r=n(65606),i=n(48287).hp;function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var s={};const c=a(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var l,_,u,d,p,f,m,g,h,y;function v(){if(_)return l;function e(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function t(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(o!==s-1&&1!==a)if(o!==s-1&&2===a){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}_=1;var n={resolve:function(){for(var n,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--){var s;a>=0?s=arguments[a]:(void 0===n&&(n=r.cwd()),s=n),e(s),0!==s.length&&(i=s+"/"+i,o=47===s.charCodeAt(0))}return i=t(i,!o),o?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(n){if(e(n),0===n.length)return".";var r=47===n.charCodeAt(0),i=47===n.charCodeAt(n.length-1);return 0===(n=t(n,!r)).length&&!r&&(n="."),n.length>0&&i&&(n+="/"),r?"/"+n:n},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,r=0;r<arguments.length;++r){var i=arguments[r];e(i),i.length>0&&(void 0===t?t=i:t+="/"+i)}return void 0===t?".":n.normalize(t)},relative:function(t,r){if(e(t),e(r),t===r||(t=n.resolve(t))===(r=n.resolve(r)))return"";for(var i=1;i<t.length&&47===t.charCodeAt(i);++i);for(var o=t.length,a=o-i,s=1;s<r.length&&47===r.charCodeAt(s);++s);for(var c=r.length-s,l=a<c?a:c,_=-1,u=0;u<=l;++u){if(u===l){if(c>l){if(47===r.charCodeAt(s+u))return r.slice(s+u+1);if(0===u)return r.slice(s+u)}else a>l&&(47===t.charCodeAt(i+u)?_=u:0===u&&(_=0));break}var d=t.charCodeAt(i+u);if(d!==r.charCodeAt(s+u))break;47===d&&(_=u)}var p="";for(u=i+_+1;u<=o;++u)(u===o||47===t.charCodeAt(u))&&(0===p.length?p+="..":p+="/..");return p.length>0?p+r.slice(s+_):(s+=_,47===r.charCodeAt(s)&&++s,r.slice(s))},_makeLong:function(e){return e},dirname:function(t){if(e(t),0===t.length)return".";for(var n=t.charCodeAt(0),r=47===n,i=-1,o=!0,a=t.length-1;a>=1;--a)if(47===(n=t.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return-1===i?r?"/":".":r&&1===i?"//":t.slice(0,i)},basename:function(t,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');e(t);var r,i=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var s=n.length-1,c=-1;for(r=t.length-1;r>=0;--r){var l=t.charCodeAt(r);if(47===l){if(!a){i=r+1;break}}else-1===c&&(a=!1,c=r+1),s>=0&&(l===n.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=c))}return i===o?o=c:-1===o&&(o=t.length),t.slice(i,o)}for(r=t.length-1;r>=0;--r)if(47===t.charCodeAt(r)){if(!a){i=r+1;break}}else-1===o&&(a=!1,o=r+1);return-1===o?"":t.slice(i,o)},extname:function(t){e(t);for(var n=-1,r=0,i=-1,o=!0,a=0,s=t.length-1;s>=0;--s){var c=t.charCodeAt(s);if(47!==c)-1===i&&(o=!1,i=s+1),46===c?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1);else if(!o){r=s+1;break}}return-1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}("/",e)},parse:function(t){e(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return n;var r,i=t.charCodeAt(0),o=47===i;o?(n.root="/",r=1):r=0;for(var a=-1,s=0,c=-1,l=!0,_=t.length-1,u=0;_>=r;--_)if(47!==(i=t.charCodeAt(_)))-1===c&&(l=!1,c=_+1),46===i?-1===a?a=_:1!==u&&(u=1):-1!==a&&(u=-1);else if(!l){s=_+1;break}return-1===a||-1===c||0===u||1===u&&a===c-1&&a===s+1?-1!==c&&(n.base=n.name=0===s&&o?t.slice(1,c):t.slice(s,c)):(0===s&&o?(n.name=t.slice(1,a),n.base=t.slice(1,c)):(n.name=t.slice(s,a),n.base=t.slice(s,c)),n.ext=t.slice(a,c)),s>0?n.dir=t.slice(0,s-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,l=n}function b(){return d||(d=1,u="object"==typeof r&&r&&"win32"===r.platform?{sep:"\\"}:{sep:"/"}),u}function x(){if(f)return p;function e(e,r,i){e instanceof RegExp&&(e=t(e,i)),r instanceof RegExp&&(r=t(r,i));var o=n(e,r,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+r.length)}}function t(e,t){var n=t.match(e);return n?n[0]:null}function n(e,t,n){var r,i,o,a,s,c=n.indexOf(e),l=n.indexOf(t,c+1),_=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],o=n.length;_>=0&&!s;)_==c?(r.push(_),c=n.indexOf(e,_+1)):1==r.length?s=[r.pop(),l]:((i=r.pop())<o&&(o=i,a=l),l=n.indexOf(t,_+1)),_=c<l&&c>=0?c:l;r.length&&(s=[o,a])}return s}return f=1,p=e,e.range=n,p}function k(){if(g)return m;g=1;var e=x();m=function(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),p(function(e){return e.split("\\\\").join(t).split("\\{").join(n).split("\\}").join(r).split("\\,").join(i).split("\\.").join(o)}(e),!0).map(s)):[]};var t="\0SLASH"+Math.random()+"\0",n="\0OPEN"+Math.random()+"\0",r="\0CLOSE"+Math.random()+"\0",i="\0COMMA"+Math.random()+"\0",o="\0PERIOD"+Math.random()+"\0";function a(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function s(e){return e.split(t).join("\\").split(n).join("{").split(r).join("}").split(i).join(",").split(o).join(".")}function c(t){if(!t)return[""];var n=[],r=e("{","}",t);if(!r)return t.split(",");var i=r.pre,o=r.body,a=r.post,s=i.split(",");s[s.length-1]+="{"+o+"}";var l=c(a);return a.length&&(s[s.length-1]+=l.shift(),s.push.apply(s,l)),n.push.apply(n,s),n}function l(e){return"{"+e+"}"}function _(e){return/^-?0\d/.test(e)}function u(e,t){return e<=t}function d(e,t){return e>=t}function p(t,n){var i=[],o=e("{","}",t);if(!o)return[t];var s=o.pre,f=o.post.length?p(o.post,!1):[""];if(/\$$/.test(o.pre))for(var m=0;m<f.length;m++){var g=s+"{"+o.body+"}"+f[m];i.push(g)}else{var h,y,v=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),b=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),x=v||b,k=o.body.indexOf(",")>=0;if(!x&&!k)return o.post.match(/,.*\}/)?p(t=o.pre+"{"+o.body+r+o.post):[t];if(x)h=o.body.split(/\.\./);else if(1===(h=c(o.body)).length&&1===(h=p(h[0],!1).map(l)).length)return f.map((function(e){return o.pre+h[0]+e}));if(x){var S=a(h[0]),T=a(h[1]),C=Math.max(h[0].length,h[1].length),w=3==h.length?Math.abs(a(h[2])):1,N=u;T<S&&(w*=-1,N=d);var D=h.some(_);y=[];for(var F=S;N(F,T);F+=w){var E;if(b)"\\"===(E=String.fromCharCode(F))&&(E="");else if(E=String(F),D){var P=C-E.length;if(P>0){var A=new Array(P+1).join("0");E=F<0?"-"+A+E.slice(1):A+E}}y.push(E)}}else{y=[];for(var I=0;I<h.length;I++)y.push.apply(y,p(h[I],!1))}for(I=0;I<y.length;I++)for(m=0;m<f.length;m++){g=s+y[I]+f[m];(!n||x||g)&&i.push(g)}}return i}return m}function S(){if(y)return h;y=1;const e=h=(e,t,n={})=>(p(t),!(!n.nocomment&&"#"===t.charAt(0))&&new g(t,n).match(e));h=e;const t=b();e.sep=t.sep;const n=Symbol("globstar **");e.GLOBSTAR=n;const r=k(),i={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},o="[^/]",a=o+"*?",s=e=>e.split("").reduce(((e,t)=>(e[t]=!0,e)),{}),c=s("().*{}+?[]^$\\!"),l=s("[.("),_=/\/+/;e.filter=(t,n={})=>(r,i,o)=>e(r,t,n);const u=(e,t={})=>{const n={};return Object.keys(e).forEach((t=>n[t]=e[t])),Object.keys(t).forEach((e=>n[e]=t[e])),n};e.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return e;const n=e,r=(e,r,i)=>n(e,r,u(t,i));return(r.Minimatch=class extends n.Minimatch{constructor(e,n){super(e,u(t,n))}}).defaults=e=>n.defaults(u(t,e)).Minimatch,r.filter=(e,r)=>n.filter(e,u(t,r)),r.defaults=e=>n.defaults(u(t,e)),r.makeRe=(e,r)=>n.makeRe(e,u(t,r)),r.braceExpand=(e,r)=>n.braceExpand(e,u(t,r)),r.match=(e,r,i)=>n.match(e,r,u(t,i)),r},e.braceExpand=(e,t)=>d(e,t);const d=(e,t={})=>(p(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:r(e)),p=e=>{if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},f=Symbol("subparse");e.makeRe=(e,t)=>new g(e,t||{}).makeRe(),e.match=(e,t,n={})=>{const r=new g(t,n);return e=e.filter((e=>r.match(e))),r.options.nonull&&!e.length&&e.push(t),e};const m=e=>e.replace(/[[\]\\]/g,"\\$&");class g{constructor(e,t){p(e),t||(t={}),this.options=t,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}debug(){}make(){const e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();let n=this.globSet=this.braceExpand();t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,n),n=this.globParts=n.map((e=>e.split(_))),this.debug(this.pattern,n),n=n.map(((e,t,n)=>e.map(this.parse,this))),this.debug(this.pattern,n),n=n.filter((e=>-1===e.indexOf(!1))),this.debug(this.pattern,n),this.set=n}parseNegate(){if(this.options.nonegate)return;const e=this.pattern;let t=!1,n=0;for(let r=0;r<e.length&&"!"===e.charAt(r);r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,r){var i=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,a=0,s=e.length,c=t.length;o<s&&a<c;o++,a++){this.debug("matchOne loop");var l,_=t[a],u=e[o];if(this.debug(t,_,u),!1===_)return!1;if(_===n){this.debug("GLOBSTAR",[t,_,u]);var d=o,p=a+1;if(p===c){for(this.debug("** at the end");o<s;o++)if("."===e[o]||".."===e[o]||!i.dot&&"."===e[o].charAt(0))return!1;return!0}for(;d<s;){var f=e[d];if(this.debug("\nglobstar while",e,d,t,p,f),this.matchOne(e.slice(d),t.slice(p),r))return this.debug("globstar found match!",d,s,f),!0;if("."===f||".."===f||!i.dot&&"."===f.charAt(0)){this.debug("dot detected!",e,d,t,p);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!r||(this.debug("\n>>> no match, partial?",e,d,t,p),d!==s))}if("string"==typeof _?(l=u===_,this.debug("string match",_,u,l)):(l=u.match(_),this.debug("pattern match",_,u,l)),!l)return!1}if(o===s&&a===c)return!0;if(o===s)return r;if(a===c)return o===s-1&&""===e[o];throw new Error("wtf?")}braceExpand(){return d(this.pattern,this.options)}parse(e,t){p(e);const r=this.options;if("**"===e){if(!r.noglobstar)return n;e="*"}if(""===e)return"";let s="",_=!1,u=!1;const d=[],g=[];let h,y,v,b,x=!1,k=-1,S=-1,T="."===e.charAt(0),C=r.dot||T;const w=e=>"."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",N=()=>{if(h){switch(h){case"*":s+=a,_=!0;break;case"?":s+=o,_=!0;break;default:s+="\\"+h}this.debug("clearStateChar %j %j",h,s),h=!1}};for(let t,n=0;n<e.length&&(t=e.charAt(n));n++)if(this.debug("%s\t%s %s %j",e,n,s,t),u){if("/"===t)return!1;c[t]&&(s+="\\"),s+=t,u=!1}else switch(t){case"/":return!1;case"\\":if(x&&"-"===e.charAt(n+1)){s+=t;continue}N(),u=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,n,s,t),x){this.debug(" in class"),"!"===t&&n===S+1&&(t="^"),s+=t;continue}this.debug("call clearStateChar %j",h),N(),h=t,r.noext&&N();continue;case"(":{if(x){s+="(";continue}if(!h){s+="\\(";continue}const t={type:h,start:n-1,reStart:s.length,open:i[h].open,close:i[h].close};this.debug(this.pattern,"\t",t),d.push(t),s+=t.open,0===t.start&&"!"!==t.type&&(T=!0,s+=w(e.slice(n+1))),this.debug("plType %j %j",h,s),h=!1;continue}case")":{const e=d[d.length-1];if(x||!e){s+="\\)";continue}d.pop(),N(),_=!0,v=e,s+=v.close,"!"===v.type&&g.push(Object.assign(v,{reEnd:s.length}));continue}case"|":{const t=d[d.length-1];if(x||!t){s+="\\|";continue}N(),s+="|",0===t.start&&"!"!==t.type&&(T=!0,s+=w(e.slice(n+1)));continue}case"[":if(N(),x){s+="\\"+t;continue}x=!0,S=n,k=s.length,s+=t;continue;case"]":if(n===S+1||!x){s+="\\"+t;continue}y=e.substring(S+1,n);try{RegExp("["+m(y.replace(/\\([^-\]])/g,"$1"))+"]"),s+=t}catch{s=s.substring(0,k)+"(?:$.)"}_=!0,x=!1;continue;default:N(),c[t]&&!("^"===t&&x)&&(s+="\\"),s+=t}for(x&&(y=e.slice(S+1),b=this.parse(y,f),s=s.substring(0,k)+"\\["+b[0],_=_||b[1]),v=d.pop();v;v=d.pop()){let e;e=s.slice(v.reStart+v.open.length),this.debug("setting tail",s,v),e=e.replace(/((?:\\{2}){0,64})(\\?)\|/g,((e,t,n)=>(n||(n="\\"),t+t+n+"|"))),this.debug("tail=%j\n %s",e,e,v,s);const t="*"===v.type?a:"?"===v.type?o:"\\"+v.type;_=!0,s=s.slice(0,v.reStart)+t+"\\("+e}N(),u&&(s+="\\\\");const D=l[s.charAt(0)];for(let e=g.length-1;e>-1;e--){const n=g[e],r=s.slice(0,n.reStart),i=s.slice(n.reStart,n.reEnd-8);let o=s.slice(n.reEnd);const a=s.slice(n.reEnd-8,n.reEnd)+o,c=r.split(")").length,l=r.split("(").length-c;let _=o;for(let e=0;e<l;e++)_=_.replace(/\)[+*?]?/,"");o=_;s=r+i+o+(""===o&&t!==f?"(?:$|\\/)":"")+a}if(""!==s&&_&&(s="(?=.)"+s),D&&(s=(T?"":C?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)")+s),t===f)return[s,_];if(r.nocase&&!_&&(_=e.toUpperCase()!==e.toLowerCase()),!_)return(e=>e.replace(/\\(.)/g,"$1"))(e);const F=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",F),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const t=this.options,r=t.noglobstar?a:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=t.nocase?"i":"";let o=e.map((e=>((e=e.map((e=>"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e===n?n:e._src)).reduce(((e,t)=>(e[e.length-1]===n&&t===n||e.push(t),e)),[])).forEach(((t,i)=>{t!==n||e[i-1]===n||(0===i?e.length>1?e[i+1]="(?:\\/|"+r+"\\/)?"+e[i+1]:e[i]=r:i===e.length-1?e[i-1]+="(?:\\/|"+r+")?":(e[i-1]+="(?:\\/|\\/"+r+"\\/)"+e[i+1],e[i+1]=n))})),e.filter((e=>e!==n)).join("/")))).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,i)}catch{this.regexp=!1}return this.regexp}match(e,n=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&n)return!0;const r=this.options;"/"!==t.sep&&(e=e.split(t.sep).join("/")),e=e.split(_),this.debug(this.pattern,"split",e);const i=this.set;let o;this.debug(this.pattern,"set",i);for(let t=e.length-1;t>=0&&(o=e[t],!o);t--);for(let t=0;t<i.length;t++){const a=i[t];let s=e;if(r.matchBase&&1===a.length&&(s=[o]),this.matchOne(s,a,n))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate}static defaults(t){return e.defaults(t).Minimatch}}return e.Minimatch=g,h}var T,C,w,N,D,F,E,P,A,I,O,L,j,R,M,B,J,z,q,U,V,W,$,H,K,G,X,Q,Y,Z,ee,te,ne,re,ie,oe,ae,se,ce,le,_e,ue,de,pe,fe={},me={},ge={},he={};function ye(){if(T)return he;function e(e){return typeof e>"u"||null===e}return T=1,he.isNothing=e,he.isObject=function(e){return"object"==typeof e&&null!==e},he.toArray=function(t){return Array.isArray(t)?t:e(t)?[]:[t]},he.repeat=function(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r},he.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},he.extend=function(e,t){var n,r,i,o;if(t)for(n=0,r=(o=Object.keys(t)).length;n<r;n+=1)e[i=o[n]]=t[i];return e},he}function ve(){if(w)return C;function e(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),r+" "+n):r}function t(t,n){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=n,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}return w=1,t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(t){return this.name+": "+e(this,t)},C=t}function be(){if(D)return N;D=1;var e=ye();function t(e,t,n,r,i){var o="",a="",s=Math.floor(i/2)-1;return r-t>s&&(t=r-s+(o=" ... ").length),n-r>s&&(n=r+s-(a=" ...").length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:r-t+o.length}}function n(t,n){return e.repeat(" ",n-t.length)+t}return N=function(r,i){if(i=Object.create(i||null),!r.buffer)return null;i.maxLength||(i.maxLength=79),"number"!=typeof i.indent&&(i.indent=1),"number"!=typeof i.linesBefore&&(i.linesBefore=3),"number"!=typeof i.linesAfter&&(i.linesAfter=2);for(var o,a=/\r?\n|\r|\0/g,s=[0],c=[],l=-1;o=a.exec(r.buffer);)c.push(o.index),s.push(o.index+o[0].length),r.position<=o.index&&l<0&&(l=s.length-2);l<0&&(l=s.length-1);var _,u,d="",p=Math.min(r.line+i.linesAfter,c.length).toString().length,f=i.maxLength-(i.indent+p+3);for(_=1;_<=i.linesBefore&&!(l-_<0);_++)u=t(r.buffer,s[l-_],c[l-_],r.position-(s[l]-s[l-_]),f),d=e.repeat(" ",i.indent)+n((r.line-_+1).toString(),p)+" | "+u.str+"\n"+d;for(u=t(r.buffer,s[l],c[l],r.position,f),d+=e.repeat(" ",i.indent)+n((r.line+1).toString(),p)+" | "+u.str+"\n",d+=e.repeat("-",i.indent+p+3+u.pos)+"^\n",_=1;_<=i.linesAfter&&!(l+_>=c.length);_++)u=t(r.buffer,s[l+_],c[l+_],r.position-(s[l]-s[l+_]),f),d+=e.repeat(" ",i.indent)+n((r.line+_+1).toString(),p)+" | "+u.str+"\n";return d.replace(/\n$/,"")}}function xe(){if(E)return F;E=1;var e=ve(),t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],n=["scalar","sequence","mapping"];return F=function(r,i){if(i=i||{},Object.keys(i).forEach((function(n){if(-1===t.indexOf(n))throw new e('Unknown option "'+n+'" is met in definition of "'+r+'" YAML type.')})),this.options=i,this.tag=r,this.kind=i.kind||null,this.resolve=i.resolve||function(){return!0},this.construct=i.construct||function(e){return e},this.instanceOf=i.instanceOf||null,this.predicate=i.predicate||null,this.represent=i.represent||null,this.representName=i.representName||null,this.defaultStyle=i.defaultStyle||null,this.multi=i.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))})),t}(i.styleAliases||null),-1===n.indexOf(this.kind))throw new e('Unknown kind "'+this.kind+'" is specified for "'+r+'" YAML type.')}}function ke(){if(A)return P;A=1;var e=ve(),t=xe();function n(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)})),n[t]=e})),n}function r(e){return this.extend(e)}return r.prototype.extend=function(i){var o=[],a=[];if(i instanceof t)a.push(i);else if(Array.isArray(i))a=a.concat(i);else{if(!i||!Array.isArray(i.implicit)&&!Array.isArray(i.explicit))throw new e("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.implicit&&(o=o.concat(i.implicit)),i.explicit&&(a=a.concat(i.explicit))}o.forEach((function(n){if(!(n instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&"scalar"!==n.loadKind)throw new e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(n.multi)throw new e("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),a.forEach((function(n){if(!(n instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var s=Object.create(r.prototype);return s.implicit=(this.implicit||[]).concat(o),s.explicit=(this.explicit||[]).concat(a),s.compiledImplicit=n(s,"implicit"),s.compiledExplicit=n(s,"explicit"),s.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(r);return n}(s.compiledImplicit,s.compiledExplicit),s},P=r}function Se(){return O?I:(O=1,I=new(xe())("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}))}function Te(){return j?L:(j=1,L=new(xe())("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}))}function Ce(){return M?R:(M=1,R=new(xe())("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}))}function we(){return J?B:(J=1,B=new(ke())({explicit:[Se(),Te(),Ce()]}))}function Ne(){if(q)return z;return q=1,z=new(xe())("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})}function De(){if(V)return U;return V=1,U=new(xe())("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})}function Fe(){if($)return W;$=1;var e=ye();function t(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function n(e){return 48<=e&&e<=55}function r(e){return 48<=e&&e<=57}return W=new(xe())("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var i,o=e.length,a=0,s=!1;if(!o)return!1;if(("-"===(i=e[a])||"+"===i)&&(i=e[++a]),"0"===i){if(a+1===o)return!0;if("b"===(i=e[++a])){for(a++;a<o;a++)if("_"!==(i=e[a])){if("0"!==i&&"1"!==i)return!1;s=!0}return s&&"_"!==i}if("x"===i){for(a++;a<o;a++)if("_"!==(i=e[a])){if(!t(e.charCodeAt(a)))return!1;s=!0}return s&&"_"!==i}if("o"===i){for(a++;a<o;a++)if("_"!==(i=e[a])){if(!n(e.charCodeAt(a)))return!1;s=!0}return s&&"_"!==i}}if("_"===i)return!1;for(;a<o;a++)if("_"!==(i=e[a])){if(!r(e.charCodeAt(a)))return!1;s=!0}return!(!s||"_"===i)},construct:function(e){var t,n=e,r=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),("-"===(t=n[0])||"+"===t)&&("-"===t&&(r=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return r*parseInt(n.slice(2),2);if("x"===n[1])return r*parseInt(n.slice(2),16);if("o"===n[1])return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!e.isNegativeZero(t)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})}function Ee(){if(K)return H;K=1;var e=ye(),t=xe(),n=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var r=/^[-+]?[0-9]+e/;return H=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return!(null===e||!n.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||e.isNegativeZero(t))},represent:function(t,n){var i;if(isNaN(t))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(t))return"-0.0";return i=t.toString(10),r.test(i)?i.replace("e",".e"):i},defaultStyle:"lowercase"})}function Pe(){return X||(X=1,G=we().extend({implicit:[Ne(),De(),Fe(),Ee()]})),G}function Ae(){return Y||(Y=1,Q=Pe()),Q}function Ie(){if(ee)return Z;ee=1;var e=xe(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),n=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");return Z=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==t.exec(e)||null!==n.exec(e))},construct:function(e){var r,i,o,a,s,c,l,_,u=0,d=null;if(null===(r=t.exec(e))&&(r=n.exec(e)),null===r)throw new Error("Date resolve error");if(i=+r[1],o=+r[2]-1,a=+r[3],!r[4])return new Date(Date.UTC(i,o,a));if(s=+r[4],c=+r[5],l=+r[6],r[7]){for(u=r[7].slice(0,3);u.length<3;)u+="0";u=+u}return r[9]&&(d=6e4*(60*+r[10]+ +(r[11]||0)),"-"===r[9]&&(d=-d)),_=new Date(Date.UTC(i,o,a,s,c,l,u)),d&&_.setTime(_.getTime()-d),_},instanceOf:Date,represent:function(e){return e.toISOString()}})}function Oe(){if(ne)return te;return ne=1,te=new(xe())("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})}function Le(){if(ie)return re;ie=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";return re=new(xe())("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(t){if(null===t)return!1;var n,r,i=0,o=t.length,a=e;for(r=0;r<o;r++)if(!((n=a.indexOf(t.charAt(r)))>64)){if(n<0)return!1;i+=6}return i%8==0},construct:function(t){var n,r,i=t.replace(/[\r\n=]/g,""),o=i.length,a=e,s=0,c=[];for(n=0;n<o;n++)n%4==0&&n&&(c.push(s>>16&255),c.push(s>>8&255),c.push(255&s)),s=s<<6|a.indexOf(i.charAt(n));return 0===(r=o%4*6)?(c.push(s>>16&255),c.push(s>>8&255),c.push(255&s)):18===r?(c.push(s>>10&255),c.push(s>>2&255)):12===r&&c.push(s>>4&255),new Uint8Array(c)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(t){var n,r,i="",o=0,a=t.length,s=e;for(n=0;n<a;n++)n%3==0&&n&&(i+=s[o>>18&63],i+=s[o>>12&63],i+=s[o>>6&63],i+=s[63&o]),o=(o<<8)+t[n];return 0===(r=a%3)?(i+=s[o>>18&63],i+=s[o>>12&63],i+=s[o>>6&63],i+=s[63&o]):2===r?(i+=s[o>>10&63],i+=s[o>>4&63],i+=s[o<<2&63],i+=s[64]):1===r&&(i+=s[o>>2&63],i+=s[o<<4&63],i+=s[64],i+=s[64]),i}})}function je(){if(ae)return oe;ae=1;var e=xe(),t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;return oe=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var r,i,o,a,s,c=[],l=e;for(r=0,i=l.length;r<i;r+=1){if(o=l[r],s=!1,"[object Object]"!==n.call(o))return!1;for(a in o)if(t.call(o,a)){if(s)return!1;s=!0}if(!s)return!1;if(-1!==c.indexOf(a))return!1;c.push(a)}return!0},construct:function(e){return null!==e?e:[]}})}function Re(){if(ce)return se;ce=1;var e=xe(),t=Object.prototype.toString;return se=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var n,r,i,o,a,s=e;for(a=new Array(s.length),n=0,r=s.length;n<r;n+=1){if(i=s[n],"[object Object]"!==t.call(i)||1!==(o=Object.keys(i)).length)return!1;a[n]=[o[0],i[o[0]]]}return!0},construct:function(e){if(null===e)return[];var t,n,r,i,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1)r=a[t],i=Object.keys(r),o[t]=[i[0],r[i[0]]];return o}})}function Me(){if(_e)return le;_e=1;var e=xe(),t=Object.prototype.hasOwnProperty;return le=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var n,r=e;for(n in r)if(t.call(r,n)&&null!==r[n])return!1;return!0},construct:function(e){return null!==e?e:{}}})}function Be(){return de||(de=1,ue=Ae().extend({implicit:[Ie(),Oe()],explicit:[Le(),je(),Re(),Me()]})),ue}function Je(){if(pe)return ge;pe=1;var e=ye(),t=ve(),n=be(),r=Be(),i=Object.prototype.hasOwnProperty,o=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,a=/[\x85\u2028\u2029]/,s=/[,\[\]\{\}]/,c=/^(?:!|!!|![a-z\-]+!)$/i,l=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _(e){return Object.prototype.toString.call(e)}function u(e){return 10===e||13===e}function d(e){return 9===e||32===e}function p(e){return 9===e||32===e||10===e||13===e}function f(e){return 44===e||91===e||93===e||123===e||125===e}function m(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function g(e){return 120===e?2:117===e?4:85===e?8:0}function h(e){return 48<=e&&e<=57?e-48:-1}function y(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function v(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var b=new Array(256),x=new Array(256),k=0;k<256;k++)b[k]=y(k)?1:0,x[k]=y(k);function S(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||r,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function T(e,r){var i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=n(i),new t(r,i)}function C(e,t){throw T(e,t)}function w(e,t){e.onWarning&&e.onWarning.call(null,T(e,t))}var N={YAML:function(e,t,n){var r,i,o;null!==e.version&&C(e,"duplication of %YAML directive"),1!==n.length&&C(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&C(e,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),o=parseInt(r[2],10),1!==i&&C(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&w(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,o;2!==n.length&&C(e,"TAG directive accepts exactly two arguments"),r=n[0],o=n[1],c.test(r)||C(e,"ill-formed tag handle (first argument) of the TAG directive"),i.call(e.tagMap,r)&&C(e,'there is a previously declared suffix for "'+r+'" tag handle'),l.test(o)||C(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{C(e,"tag prefix is malformed: "+o)}e.tagMap[r]=o}};function D(e,t,n,r){var i,a,s,c;if(t<n){if(c=e.input.slice(t,n),r)for(i=0,a=c.length;i<a;i+=1)9===(s=c.charCodeAt(i))||32<=s&&s<=1114111||C(e,"expected valid JSON character");else o.test(c)&&C(e,"the stream contains non-printable characters");e.result+=c}}function F(t,n,r,o){var a,s,c,l;for(e.isObject(r)||C(t,"cannot merge mappings; the provided source object is unacceptable"),c=0,l=(a=Object.keys(r)).length;c<l;c+=1)s=a[c],i.call(n,s)||(n[s]=r[s],o[s]=!0)}function E(e,t,n,r,o,a,s,c,l){var u,d;if(Array.isArray(o))for(u=0,d=(o=Array.prototype.slice.call(o)).length;u<d;u+=1)Array.isArray(o[u])&&C(e,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===_(o[u])&&(o[u]="[object Object]");if("object"==typeof o&&"[object Object]"===_(o)&&(o="[object Object]"),o=String(o),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(a))for(u=0,d=a.length;u<d;u+=1)F(e,t,a[u],n);else F(e,t,a,n);else!e.json&&!i.call(n,o)&&i.call(t,o)&&(e.line=s||e.line,e.lineStart=c||e.lineStart,e.position=l||e.position,C(e,"duplicated mapping key")),"__proto__"===o?Object.defineProperty(t,o,{configurable:!0,enumerable:!0,writable:!0,value:a}):t[o]=a,delete n[o];return t}function P(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):C(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function A(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);0!==i;){for(;d(i);)9===i&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!u(i))break;for(P(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent<n&&w(e,"deficient indentation"),r}function I(e){var t,n=e.position;return!(45!==(t=e.input.charCodeAt(n))&&46!==t||t!==e.input.charCodeAt(n+1)||t!==e.input.charCodeAt(n+2)||(n+=3,t=e.input.charCodeAt(n),0!==t&&!p(t)))}function O(t,n){1===n?t.result+=" ":n>1&&(t.result+=e.repeat("\n",n-1))}function L(e,t){var n,r,i=e.tag,o=e.anchor,a=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,C(e,"tab characters must not be used in indentation")),45===r&&p(e.input.charCodeAt(e.position+1)));)if(s=!0,e.position++,A(e,!0,-1)&&e.lineIndent<=t)a.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,M(e,t,3,!1,!0),a.push(e.result),A(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)C(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!s&&(e.tag=i,e.anchor=o,e.kind="sequence",e.result=a,!0)}function j(e){var t,n,r,o,a=!1,_=!1;if(33!==(o=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&C(e,"duplication of a tag property"),60===(o=e.input.charCodeAt(++e.position))?(a=!0,o=e.input.charCodeAt(++e.position)):33===o?(_=!0,n="!!",o=e.input.charCodeAt(++e.position)):n="!",t=e.position,a){do{o=e.input.charCodeAt(++e.position)}while(0!==o&&62!==o);e.position<e.length?(r=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):C(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!p(o);)33===o&&(_?C(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),c.test(n)||C(e,"named tag handle cannot contain such characters"),_=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),s.test(r)&&C(e,"tag suffix cannot contain flow indicator characters")}r&&!l.test(r)&&C(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch{C(e,"tag name is malformed: "+r)}return a?e.tag=r:i.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:C(e,'undeclared tag handle "'+n+'"'),!0}function R(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&C(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!p(n)&&!f(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&C(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function M(t,n,r,o,a){var s,c,l,_,y,k,S,T,w,N=1,F=!1,B=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=c=l=4===r||3===r,o&&A(t,!0,-1)&&(F=!0,t.lineIndent>n?N=1:t.lineIndent===n?N=0:t.lineIndent<n&&(N=-1)),1===N)for(;j(t)||R(t);)A(t,!0,-1)?(F=!0,l=s,t.lineIndent>n?N=1:t.lineIndent===n?N=0:t.lineIndent<n&&(N=-1)):l=!1;if(l&&(l=F||a),(1===N||4===r)&&(T=1===r||2===r?n:n+1,w=t.position-t.lineStart,1===N?l&&(L(t,w)||function(e,t,n){var r,i,o,a,s,c,l,_=e.tag,u=e.anchor,f={},m=Object.create(null),g=null,h=null,y=null,v=!1,b=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=f),l=e.input.charCodeAt(e.position);0!==l;){if(!v&&-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,C(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),o=e.line,63!==l&&58!==l||!p(r)){if(a=e.line,s=e.lineStart,c=e.position,!M(e,n,2,!1,!0))break;if(e.line===o){for(l=e.input.charCodeAt(e.position);d(l);)l=e.input.charCodeAt(++e.position);if(58===l)p(l=e.input.charCodeAt(++e.position))||C(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(E(e,f,m,g,h,null,a,s,c),g=h=y=null),b=!0,v=!1,i=!1,g=e.tag,h=e.result;else{if(!b)return e.tag=_,e.anchor=u,!0;C(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=_,e.anchor=u,!0;C(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===l?(v&&(E(e,f,m,g,h,null,a,s,c),g=h=y=null),b=!0,v=!0,i=!0):v?(v=!1,i=!0):C(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,l=r;if((e.line===o||e.lineIndent>t)&&(v&&(a=e.line,s=e.lineStart,c=e.position),M(e,t,4,!0,i)&&(v?h=e.result:y=e.result),v||(E(e,f,m,g,h,y,a,s,c),g=h=y=null),A(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==l)C(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&E(e,f,m,g,h,null,a,s,c),b&&(e.tag=_,e.anchor=u,e.kind="mapping",e.result=f),b}(t,w,T))||function(e,t){var n,r,i,o,a,s,c,l,_,u,d,f,m=!0,g=e.tag,h=e.anchor,y=Object.create(null);if(91===(f=e.input.charCodeAt(e.position)))a=93,l=!1,o=[];else{if(123!==f)return!1;a=125,l=!0,o={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),f=e.input.charCodeAt(++e.position);0!==f;){if(A(e,!0,t),(f=e.input.charCodeAt(e.position))===a)return e.position++,e.tag=g,e.anchor=h,e.kind=l?"mapping":"sequence",e.result=o,!0;m?44===f&&C(e,"expected the node content, but found ','"):C(e,"missed comma between flow collection entries"),d=null,s=c=!1,63===f&&p(e.input.charCodeAt(e.position+1))&&(s=c=!0,e.position++,A(e,!0,t)),n=e.line,r=e.lineStart,i=e.position,M(e,t,1,!1,!0),u=e.tag,_=e.result,A(e,!0,t),f=e.input.charCodeAt(e.position),(c||e.line===n)&&58===f&&(s=!0,f=e.input.charCodeAt(++e.position),A(e,!0,t),M(e,t,1,!1,!0),d=e.result),l?E(e,o,y,u,_,d,n,r,i):s?o.push(E(e,null,y,u,_,d,n,r,i)):o.push(_),A(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(m=!0,f=e.input.charCodeAt(++e.position)):m=!1}C(e,"unexpected end of the stream within a flow collection")}(t,T)?B=!0:(c&&function(t,n){var r,i,o,a,s=1,c=!1,l=!1,_=n,p=0,f=!1;if(124===(a=t.input.charCodeAt(t.position)))i=!1;else{if(62!==a)return!1;i=!0}for(t.kind="scalar",t.result="";0!==a;)if(43===(a=t.input.charCodeAt(++t.position))||45===a)1===s?s=43===a?3:2:C(t,"repeat of a chomping mode identifier");else{if(!((o=h(a))>=0))break;0===o?C(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?C(t,"repeat of an indentation width identifier"):(_=n+o-1,l=!0)}if(d(a)){do{a=t.input.charCodeAt(++t.position)}while(d(a));if(35===a)do{a=t.input.charCodeAt(++t.position)}while(!u(a)&&0!==a)}for(;0!==a;){for(P(t),t.lineIndent=0,a=t.input.charCodeAt(t.position);(!l||t.lineIndent<_)&&32===a;)t.lineIndent++,a=t.input.charCodeAt(++t.position);if(!l&&t.lineIndent>_&&(_=t.lineIndent),u(a))p++;else{if(t.lineIndent<_){3===s?t.result+=e.repeat("\n",c?1+p:p):1===s&&c&&(t.result+="\n");break}for(i?d(a)?(f=!0,t.result+=e.repeat("\n",c?1+p:p)):f?(f=!1,t.result+=e.repeat("\n",p+1)):0===p?c&&(t.result+=" "):t.result+=e.repeat("\n",p):t.result+=e.repeat("\n",c?1+p:p),c=!0,l=!0,p=0,r=t.position;!u(a)&&0!==a;)a=t.input.charCodeAt(++t.position);D(t,r,t.position,!1)}}return!0}(t,T)||function(e,t){var n,r,i;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(D(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,i=e.position}else u(n)?(D(e,r,i,!0),O(e,A(e,!1,t)),r=i=e.position):e.position===e.lineStart&&I(e)?C(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);C(e,"unexpected end of the stream within a single quoted scalar")}(t,T)||function(e,t){var n,r,i,o,a,s;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return D(e,n,e.position,!0),e.position++,!0;if(92===s){if(D(e,n,e.position,!0),u(s=e.input.charCodeAt(++e.position)))A(e,!1,t);else if(s<256&&b[s])e.result+=x[s],e.position++;else if((a=g(s))>0){for(i=a,o=0;i>0;i--)(a=m(s=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:C(e,"expected hexadecimal character");e.result+=v(o),e.position++}else C(e,"unknown escape sequence");n=r=e.position}else u(s)?(D(e,n,r,!0),O(e,A(e,!1,t)),n=r=e.position):e.position===e.lineStart&&I(e)?C(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}C(e,"unexpected end of the stream within a double quoted scalar")}(t,T)?B=!0:function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!p(r)&&!f(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&C(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),i.call(e.anchorMap,n)||C(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],A(e,!0,-1),!0}(t)?(B=!0,(null!==t.tag||null!==t.anchor)&&C(t,"alias node should not have any properties")):function(e,t,n){var r,i,o,a,s,c,l,_,m=e.kind,g=e.result;if(p(_=e.input.charCodeAt(e.position))||f(_)||35===_||38===_||42===_||33===_||124===_||62===_||39===_||34===_||37===_||64===_||96===_||(63===_||45===_)&&(p(r=e.input.charCodeAt(e.position+1))||n&&f(r)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,a=!1;0!==_;){if(58===_){if(p(r=e.input.charCodeAt(e.position+1))||n&&f(r))break}else if(35===_){if(p(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&I(e)||n&&f(_))break;if(u(_)){if(s=e.line,c=e.lineStart,l=e.lineIndent,A(e,!1,-1),e.lineIndent>=t){a=!0,_=e.input.charCodeAt(e.position);continue}e.position=o,e.line=s,e.lineStart=c,e.lineIndent=l;break}}a&&(D(e,i,o,!1),O(e,e.line-s),i=o=e.position,a=!1),d(_)||(o=e.position+1),_=e.input.charCodeAt(++e.position)}return D(e,i,o,!1),!!e.result||(e.kind=m,e.result=g,!1)}(t,T,1===r)&&(B=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===N&&(B=l&&L(t,w))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&C(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),_=0,y=t.implicitTypes.length;_<y;_+=1)if((S=t.implicitTypes[_]).resolve(t.result)){t.result=S.construct(t.result),t.tag=S.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(i.call(t.typeMap[t.kind||"fallback"],t.tag))S=t.typeMap[t.kind||"fallback"][t.tag];else for(S=null,_=0,y=(k=t.typeMap.multi[t.kind||"fallback"]).length;_<y;_+=1)if(t.tag.slice(0,k[_].tag.length)===k[_].tag){S=k[_];break}S||C(t,"unknown tag !<"+t.tag+">"),null!==t.result&&S.kind!==t.kind&&C(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+S.kind+'", not "'+t.kind+'"'),S.resolve(t.result,t.tag)?(t.result=S.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):C(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||B}function B(e){var t,n,r,o,s=e.position,c=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(o=e.input.charCodeAt(e.position))&&(A(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==o));){for(c=!0,o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!p(o);)o=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&C(e,"directive name must not be less than one character in length");0!==o;){for(;d(o);)o=e.input.charCodeAt(++e.position);if(35===o){do{o=e.input.charCodeAt(++e.position)}while(0!==o&&!u(o));break}if(u(o))break;for(t=e.position;0!==o&&!p(o);)o=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==o&&P(e),i.call(N,n)?N[n](e,n,r):w(e,'unknown document directive "'+n+'"')}A(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,A(e,!0,-1)):c&&C(e,"directives end mark is expected"),M(e,e.lineIndent-1,4,!1,!0),A(e,!0,-1),e.checkLineBreaks&&a.test(e.input.slice(s,e.position))&&w(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&I(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,A(e,!0,-1)):e.position<e.length-1&&C(e,"end of the stream or a document separator is expected")}function J(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new S(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,C(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)B(n);return n.documents}return ge.loadAll=function(e,t,n){null!==t&&"object"==typeof t&&typeof n>"u"&&(n=t,t=null);var r=J(e,n);if("function"!=typeof t)return r;for(var i=0,o=r.length;i<o;i+=1)t(r[i])},ge.load=function(e,n){var r=J(e,n);if(0!==r.length){if(1===r.length)return r[0];throw new t("expected a single document in the stream, but found more")}},ge}var ze,qe,Ue,Ve={};function We(){if(ze)return Ve;ze=1;var e=ye(),t=ve(),n=Be(),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,o=65279,a={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},s=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],c=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function l(n){var r,i,o;if(r=n.toString(16).toUpperCase(),n<=255)i="x",o=2;else if(n<=65535)i="u",o=4;else{if(!(n<=4294967295))throw new t("code point within a string may not be greater than 0xFFFFFFFF");i="U",o=8}return"\\"+i+e.repeat("0",o-r.length)+r}function _(t){this.schema=t.schema||n,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=e.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=function(e,t){var n,r,o,a,s,c,l;if(null===t)return{};for(n={},o=0,a=(r=Object.keys(t)).length;o<a;o+=1)s=r[o],c=String(t[s]),"!!"===s.slice(0,2)&&(s="tag:yaml.org,2002:"+s.slice(2)),(l=e.compiledTypeMap.fallback[s])&&i.call(l.styleAliases,c)&&(c=l.styleAliases[c]),n[s]=c;return n}(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function u(t,n){for(var r,i=e.repeat(" ",n),o=0,a=-1,s="",c=t.length;o<c;)-1===(a=t.indexOf("\n",o))?(r=t.slice(o),o=c):(r=t.slice(o,a+1),o=a+1),r.length&&"\n"!==r&&(s+=i),s+=r;return s}function d(t,n){return"\n"+e.repeat(" ",t.indent*n)}function p(e){return 32===e||9===e}function f(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==o||65536<=e&&e<=1114111}function m(e){return f(e)&&e!==o&&13!==e&&10!==e}function g(e,t,n){var r=m(e),i=r&&!p(e);return(n?r:r&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!i)||m(t)&&!p(t)&&35===e||58===t&&i}function h(e,t){var n,r=e.charCodeAt(t);return r>=55296&&r<=56319&&t+1<e.length&&((n=e.charCodeAt(t+1))>=56320&&n<=57343)?1024*(r-55296)+n-56320+65536:r}function y(e){return/^\n* /.test(e)}function v(e,t,n,r,i,a,s,c){var l,_=0,u=null,d=!1,m=!1,v=-1!==r,b=-1,x=function(e){return f(e)&&e!==o&&!p(e)&&45!==e&&63!==e&&58!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&35!==e&&38!==e&&42!==e&&33!==e&&124!==e&&61!==e&&62!==e&&39!==e&&34!==e&&37!==e&&64!==e&&96!==e}(h(e,0))&&function(e){return!p(e)&&58!==e}(h(e,e.length-1));if(t||s)for(l=0;l<e.length;_>=65536?l+=2:l++){if(!f(_=h(e,l)))return 5;x=x&&g(_,u,c),u=_}else{for(l=0;l<e.length;_>=65536?l+=2:l++){if(10===(_=h(e,l)))d=!0,v&&(m=m||l-b-1>r&&" "!==e[b+1],b=l);else if(!f(_))return 5;x=x&&g(_,u,c),u=_}m=m||v&&l-b-1>r&&" "!==e[b+1]}return d||m?n>9&&y(e)?5:s?2===a?5:2:m?4:3:!x||s||i(e)?2===a?5:2:1}function b(e,n,r,i,o){e.dump=function(){if(0===n.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==s.indexOf(n)||c.test(n)))return 2===e.quotingType?'"'+n+'"':"'"+n+"'";var _=e.indent*Math.max(1,r),d=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-_),p=i||e.flowLevel>-1&&r>=e.flowLevel;switch(v(n,p,e.indent,d,(function(t){return function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTyp