phaser3-rex-plugins
Version:
2 lines • 59.6 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).rexymlconditionstableplugin=e();}(undefined,(function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i);}var r,o;}function n(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e);}function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function a(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return !1;if(Reflect.construct.sham)return !1;if("function"==typeof Proxy)return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return !1}}();return function(){var n,i=r(t);if(e){var o=r(this).constructor;n=Reflect.construct(i,arguments,o);}else n=i.apply(this,arguments);return a(this,n)}}var l=function(){function e(){t(this,e),this.tests=[];}return n(e,[{key:"clear",value:function(){return this.tests.length=0,this}},{key:"add",value:function(t,e){return this.tests.push({name:t,function:e}),this}},{key:"getTestResults",value:function(t){for(var e,n={},i=0,r=this.tests.length;i<r;i++)e=this.tests[i].name,(0, this.tests[i].function)(t)?n[e]=!0:n.hasOwnProperty(e)||(n[e]=!1);return n}},{key:"anyPassTest",value:function(t,e,n){for(var i,r=0,o=this.tests.length;r<o;r++){if(i=this.tests[r].name,(0, this.tests[r].function)(t)){e&&(n?e.call(n,i):e(i));break}i=!1;}return e?this:i}},{key:"eachPassTest",value:function(t,e,n){for(var i,r=0,o=this.tests.length;r<o;r++)i=this.tests[r].name,(0, this.tests[r].function)(t)&&(n?e.call(n,i):e(i));return this}},{key:"eachTest",value:function(t,e,n){for(var i,r,o=0,a=this.tests.length;o<a;o++)r=this.tests[o].name,i=(0, this.tests[o].function)(t),n?e.call(n,r,i):e(r,i);return this}}]),e}();
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function c(t){return null==t}var u={isNothing:c,isObject:function(t){return "object"==typeof t&&null!==t},toArray:function(t){return Array.isArray(t)?t:c(t)?[]:[t]},repeat:function(t,e){var n,i="";for(n=0;n<e;n+=1)i+=t;return i},isNegativeZero:function(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t},extend:function(t,e){var n,i,r,o;if(e)for(n=0,i=(o=Object.keys(e)).length;n<i;n+=1)t[r=o[n]]=e[r];return t}};function p(t,e){var n="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(n+="\n\n"+t.mark.snippet),i+" "+n):i}function h(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=p(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||"";}h.prototype=Object.create(Error.prototype),h.prototype.constructor=h,h.prototype.toString=function(t){return this.name+": "+p(this,t)};var f=h;function d(t,e,n,i,r){var o="",a="",s=Math.floor(r/2)-1;return i-e>s&&(e=i-s+(o=" ... ").length),n-i>s&&(n=i+s-(a=" ...").length),{str:o+t.slice(e,n).replace(/\t/g,"→")+a,pos:i-e+o.length}}function y(t,e){return u.repeat(" ",e-t.length)+t}var g=function(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var n,i=/\r?\n|\r|\0/g,r=[0],o=[],a=-1;n=i.exec(t.buffer);)o.push(n.index),r.push(n.index+n[0].length),t.position<=n.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var s,l,c="",p=Math.min(t.line+e.linesAfter,o.length).toString().length,h=e.maxLength-(e.indent+p+3);for(s=1;s<=e.linesBefore&&!(a-s<0);s++)l=d(t.buffer,r[a-s],o[a-s],t.position-(r[a]-r[a-s]),h),c=u.repeat(" ",e.indent)+y((t.line-s+1).toString(),p)+" | "+l.str+"\n"+c;for(l=d(t.buffer,r[a],o[a],t.position,h),c+=u.repeat(" ",e.indent)+y((t.line+1).toString(),p)+" | "+l.str+"\n",c+=u.repeat("-",e.indent+p+3+l.pos)+"^\n",s=1;s<=e.linesAfter&&!(a+s>=o.length);s++)l=d(t.buffer,r[a+s],o[a+s],t.position-(r[a]-r[a+s]),h),c+=u.repeat(" ",e.indent)+y((t.line+s+1).toString(),p)+" | "+l.str+"\n";return c.replace(/\n$/,"")},m=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],b=["scalar","sequence","mapping"];var v=function(t,e){if(e=e||{},Object.keys(e).forEach((function(e){if(-1===m.indexOf(e))throw new f('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return !0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=function(t){var e={};return null!==t&&Object.keys(t).forEach((function(n){t[n].forEach((function(t){e[String(t)]=n;}));})),e}(e.styleAliases||null),-1===b.indexOf(this.kind))throw new f('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')};function k(t,e){var n=[];return t[e].forEach((function(t){var e=n.length;n.forEach((function(n,i){n.tag===t.tag&&n.kind===t.kind&&n.multi===t.multi&&(e=i);})),n[e]=t;})),n}function A(t){return this.extend(t)}A.prototype.extend=function(t){var e=[],n=[];if(t instanceof v)n.push(t);else if(Array.isArray(t))n=n.concat(t);else {if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new f("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));}e.forEach((function(t){if(!(t instanceof v))throw new f("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new f("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new f("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(t){if(!(t instanceof v))throw new f("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var i=Object.create(A.prototype);return i.implicit=(this.implicit||[]).concat(e),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=k(i,"implicit"),i.compiledExplicit=k(i,"explicit"),i.compiledTypeMap=function(){var t,e,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(t){t.multi?(n.multi[t.kind].push(t),n.multi.fallback.push(t)):n[t.kind][t.tag]=n.fallback[t.tag]=t;}for(t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(i);return n}(i.compiledImplicit,i.compiledExplicit),i};var w=A,_=new v("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}}),x=new v("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}}),I=new v("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}}),C=new w({explicit:[_,x,I]});var O=new v("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(t){if(null===t)return !0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)},construct:function(){return null},predicate:function(t){return null===t},represent:{canonical:function(){return "~"},lowercase:function(){return "null"},uppercase:function(){return "NULL"},camelcase:function(){return "Null"},empty:function(){return ""}},defaultStyle:"lowercase"});var S=new v("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(t){if(null===t)return !1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)},construct:function(t){return "true"===t||"True"===t||"TRUE"===t},predicate:function(t){return "[object Boolean]"===Object.prototype.toString.call(t)},represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function j(t){return 48<=t&&t<=55}function T(t){return 48<=t&&t<=57}var E=new v("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(t){if(null===t)return !1;var e,n,i=t.length,r=0,o=!1;if(!i)return !1;if("-"!==(e=t[r])&&"+"!==e||(e=t[++r]),"0"===e){if(r+1===i)return !0;if("b"===(e=t[++r])){for(r++;r<i;r++)if("_"!==(e=t[r])){if("0"!==e&&"1"!==e)return !1;o=!0;}return o&&"_"!==e}if("x"===e){for(r++;r<i;r++)if("_"!==(e=t[r])){if(!(48<=(n=t.charCodeAt(r))&&n<=57||65<=n&&n<=70||97<=n&&n<=102))return !1;o=!0;}return o&&"_"!==e}if("o"===e){for(r++;r<i;r++)if("_"!==(e=t[r])){if(!j(t.charCodeAt(r)))return !1;o=!0;}return o&&"_"!==e}}if("_"===e)return !1;for(;r<i;r++)if("_"!==(e=t[r])){if(!T(t.charCodeAt(r)))return !1;o=!0;}return !(!o||"_"===e)},construct:function(t){var e,n=t,i=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(e=n[0])&&"+"!==e||("-"===e&&(i=-1),e=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===e){if("b"===n[1])return i*parseInt(n.slice(2),2);if("x"===n[1])return i*parseInt(n.slice(2),16);if("o"===n[1])return i*parseInt(n.slice(2),8)}return i*parseInt(n,10)},predicate:function(t){return "[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!u.isNegativeZero(t)},represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),N=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var F=/^[-+]?[0-9]+e/;var M=new v("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(t){return null!==t&&!(!N.test(t)||"_"===t[t.length-1])},construct:function(t){var e,n;return n="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:n*parseFloat(e,10)},predicate:function(t){return "[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||u.isNegativeZero(t))},represent:function(t,e){var n;if(isNaN(t))switch(e){case"lowercase":return ".nan";case"uppercase":return ".NAN";case"camelcase":return ".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return ".inf";case"uppercase":return ".INF";case"camelcase":return ".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return "-.inf";case"uppercase":return "-.INF";case"camelcase":return "-.Inf"}else if(u.isNegativeZero(t))return "-0.0";return n=t.toString(10),F.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),L=C.extend({implicit:[O,S,E,M]}),P=L,$=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),D=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]))?))?$");var R=new v("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(t){return null!==t&&(null!==$.exec(t)||null!==D.exec(t))},construct:function(t){var e,n,i,r,o,a,s,l,c=0,u=null;if(null===(e=$.exec(t))&&(e=D.exec(t)),null===e)throw new Error("Date resolve error");if(n=+e[1],i=+e[2]-1,r=+e[3],!e[4])return new Date(Date.UTC(n,i,r));if(o=+e[4],a=+e[5],s=+e[6],e[7]){for(c=e[7].slice(0,3);c.length<3;)c+="0";c=+c;}return e[9]&&(u=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(u=-u)),l=new Date(Date.UTC(n,i,r,o,a,s,c)),u&&l.setTime(l.getTime()-u),l},instanceOf:Date,represent:function(t){return t.toISOString()}});var U=new v("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(t){return "<<"===t||null===t}}),q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var Y=new v("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(t){if(null===t)return !1;var e,n,i=0,r=t.length,o=q;for(n=0;n<r;n++)if(!((e=o.indexOf(t.charAt(n)))>64)){if(e<0)return !1;i+=6;}return i%8==0},construct:function(t){var e,n,i=t.replace(/[\r\n=]/g,""),r=i.length,o=q,a=0,s=[];for(e=0;e<r;e++)e%4==0&&e&&(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|o.indexOf(i.charAt(e));return 0===(n=r%4*6)?(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)):18===n?(s.push(a>>10&255),s.push(a>>2&255)):12===n&&s.push(a>>4&255),new Uint8Array(s)},predicate:function(t){return "[object Uint8Array]"===Object.prototype.toString.call(t)},represent:function(t){var e,n,i="",r=0,o=t.length,a=q;for(e=0;e<o;e++)e%3==0&&e&&(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]),r=(r<<8)+t[e];return 0===(n=o%3)?(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]):2===n?(i+=a[r>>10&63],i+=a[r>>4&63],i+=a[r<<2&63],i+=a[64]):1===n&&(i+=a[r>>2&63],i+=a[r<<4&63],i+=a[64],i+=a[64]),i}}),B=Object.prototype.hasOwnProperty,G=Object.prototype.toString;var K=new v("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(t){if(null===t)return !0;var e,n,i,r,o,a=[],s=t;for(e=0,n=s.length;e<n;e+=1){if(i=s[e],o=!1,"[object Object]"!==G.call(i))return !1;for(r in i)if(B.call(i,r)){if(o)return !1;o=!0;}if(!o)return !1;if(-1!==a.indexOf(r))return !1;a.push(r);}return !0},construct:function(t){return null!==t?t:[]}}),W=Object.prototype.toString;var H=new v("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(t){if(null===t)return !0;var e,n,i,r,o,a=t;for(o=new Array(a.length),e=0,n=a.length;e<n;e+=1){if(i=a[e],"[object Object]"!==W.call(i))return !1;if(1!==(r=Object.keys(i)).length)return !1;o[e]=[r[0],i[r[0]]];}return !0},construct:function(t){if(null===t)return [];var e,n,i,r,o,a=t;for(o=new Array(a.length),e=0,n=a.length;e<n;e+=1)i=a[e],r=Object.keys(i),o[e]=[r[0],i[r[0]]];return o}}),V=Object.prototype.hasOwnProperty;var Q=new v("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(t){if(null===t)return !0;var e,n=t;for(e in n)if(V.call(n,e)&&null!==n[e])return !1;return !0},construct:function(t){return null!==t?t:{}}}),Z=P.extend({implicit:[R,U],explicit:[Y,K,H,Q]}),z=Object.prototype.hasOwnProperty,J=1,X=2,tt=3,et=4,nt=1,it=2,rt=3,ot=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,at=/[\x85\u2028\u2029]/,st=/[,\[\]\{\}]/,lt=/^(?:!|!!|![a-z\-]+!)$/i,ct=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ut(t){return Object.prototype.toString.call(t)}function pt(t){return 10===t||13===t}function ht(t){return 9===t||32===t}function ft(t){return 9===t||32===t||10===t||13===t}function dt(t){return 44===t||91===t||93===t||123===t||125===t}function yt(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function gt(t){return 48===t?"\0":97===t?"":98===t?"\b":116===t||9===t?"\t":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"
":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function mt(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}for(var bt=new Array(256),vt=new Array(256),kt=0;kt<256;kt++)bt[kt]=gt(kt)?1:0,vt[kt]=gt(kt);function At(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Z,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[];}function wt(t,e){var n={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return n.snippet=g(n),new f(e,n)}function _t(t,e){throw wt(t,e)}function xt(t,e){t.onWarning&&t.onWarning.call(null,wt(t,e));}var It={YAML:function(t,e,n){var i,r,o;null!==t.version&&_t(t,"duplication of %YAML directive"),1!==n.length&&_t(t,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&_t(t,"ill-formed argument of the YAML directive"),r=parseInt(i[1],10),o=parseInt(i[2],10),1!==r&&_t(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,1!==o&&2!==o&&xt(t,"unsupported YAML version of the document");},TAG:function(t,e,n){var i,r;2!==n.length&&_t(t,"TAG directive accepts exactly two arguments"),i=n[0],r=n[1],lt.test(i)||_t(t,"ill-formed tag handle (first argument) of the TAG directive"),z.call(t.tagMap,i)&&_t(t,'there is a previously declared suffix for "'+i+'" tag handle'),ct.test(r)||_t(t,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r);}catch(e){_t(t,"tag prefix is malformed: "+r);}t.tagMap[i]=r;}};function Ct(t,e,n,i){var r,o,a,s;if(e<n){if(s=t.input.slice(e,n),i)for(r=0,o=s.length;r<o;r+=1)9===(a=s.charCodeAt(r))||32<=a&&a<=1114111||_t(t,"expected valid JSON character");else ot.test(s)&&_t(t,"the stream contains non-printable characters");t.result+=s;}}function Ot(t,e,n,i){var r,o,a,s;for(u.isObject(n)||_t(t,"cannot merge mappings; the provided source object is unacceptable"),a=0,s=(r=Object.keys(n)).length;a<s;a+=1)o=r[a],z.call(e,o)||(e[o]=n[o],i[o]=!0);}function St(t,e,n,i,r,o,a,s,l){var c,u;if(Array.isArray(r))for(c=0,u=(r=Array.prototype.slice.call(r)).length;c<u;c+=1)Array.isArray(r[c])&&_t(t,"nested arrays are not supported inside keys"),"object"==typeof r&&"[object Object]"===ut(r[c])&&(r[c]="[object Object]");if("object"==typeof r&&"[object Object]"===ut(r)&&(r="[object Object]"),r=String(r),null===e&&(e={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(o))for(c=0,u=o.length;c<u;c+=1)Ot(t,e,o[c],n);else Ot(t,e,o,n);else t.json||z.call(n,r)||!z.call(e,r)||(t.line=a||t.line,t.lineStart=s||t.lineStart,t.position=l||t.position,_t(t,"duplicated mapping key")),"__proto__"===r?Object.defineProperty(e,r,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[r]=o,delete n[r];return e}function jt(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):_t(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1;}function Tt(t,e,n){for(var i=0,r=t.input.charCodeAt(t.position);0!==r;){for(;ht(r);)9===r&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),r=t.input.charCodeAt(++t.position);if(e&&35===r)do{r=t.input.charCodeAt(++t.position);}while(10!==r&&13!==r&&0!==r);if(!pt(r))break;for(jt(t),r=t.input.charCodeAt(t.position),i++,t.lineIndent=0;32===r;)t.lineIndent++,r=t.input.charCodeAt(++t.position);}return -1!==n&&0!==i&&t.lineIndent<n&&xt(t,"deficient indentation"),i}function Et(t){var e,n=t.position;return !(45!==(e=t.input.charCodeAt(n))&&46!==e||e!==t.input.charCodeAt(n+1)||e!==t.input.charCodeAt(n+2)||(n+=3,0!==(e=t.input.charCodeAt(n))&&!ft(e)))}function Nt(t,e){1===e?t.result+=" ":e>1&&(t.result+=u.repeat("\n",e-1));}function Ft(t,e){var n,i,r=t.tag,o=t.anchor,a=[],s=!1;if(-1!==t.firstTabInLine)return !1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),i=t.input.charCodeAt(t.position);0!==i&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,_t(t,"tab characters must not be used in indentation")),45===i)&&ft(t.input.charCodeAt(t.position+1));)if(s=!0,t.position++,Tt(t,!0,-1)&&t.lineIndent<=e)a.push(null),i=t.input.charCodeAt(t.position);else if(n=t.line,Pt(t,e,tt,!1,!0),a.push(t.result),Tt(t,!0,-1),i=t.input.charCodeAt(t.position),(t.line===n||t.lineIndent>e)&&0!==i)_t(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return !!s&&(t.tag=r,t.anchor=o,t.kind="sequence",t.result=a,!0)}function Mt(t){var e,n,i,r,o=!1,a=!1;if(33!==(r=t.input.charCodeAt(t.position)))return !1;if(null!==t.tag&&_t(t,"duplication of a tag property"),60===(r=t.input.charCodeAt(++t.position))?(o=!0,r=t.input.charCodeAt(++t.position)):33===r?(a=!0,n="!!",r=t.input.charCodeAt(++t.position)):n="!",e=t.position,o){do{r=t.input.charCodeAt(++t.position);}while(0!==r&&62!==r);t.position<t.length?(i=t.input.slice(e,t.position),r=t.input.charCodeAt(++t.position)):_t(t,"unexpected end of the stream within a verbatim tag");}else {for(;0!==r&&!ft(r);)33===r&&(a?_t(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),lt.test(n)||_t(t,"named tag handle cannot contain such characters"),a=!0,e=t.position+1)),r=t.input.charCodeAt(++t.position);i=t.input.slice(e,t.position),st.test(i)&&_t(t,"tag suffix cannot contain flow indicator characters");}i&&!ct.test(i)&&_t(t,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i);}catch(e){_t(t,"tag name is malformed: "+i);}return o?t.tag=i:z.call(t.tagMap,n)?t.tag=t.tagMap[n]+i:"!"===n?t.tag="!"+i:"!!"===n?t.tag="tag:yaml.org,2002:"+i:_t(t,'undeclared tag handle "'+n+'"'),!0}function Lt(t){var e,n;if(38!==(n=t.input.charCodeAt(t.position)))return !1;for(null!==t.anchor&&_t(t,"duplication of an anchor property"),n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!ft(n)&&!dt(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&_t(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Pt(t,e,n,i,r){var o,a,s,l,c,p,h,f,d,y=1,g=!1,m=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=a=s=et===n||tt===n,i&&Tt(t,!0,-1)&&(g=!0,t.lineIndent>e?y=1:t.lineIndent===e?y=0:t.lineIndent<e&&(y=-1)),1===y)for(;Mt(t)||Lt(t);)Tt(t,!0,-1)?(g=!0,s=o,t.lineIndent>e?y=1:t.lineIndent===e?y=0:t.lineIndent<e&&(y=-1)):s=!1;if(s&&(s=g||r),1!==y&&et!==n||(f=J===n||X===n?e:e+1,d=t.position-t.lineStart,1===y?s&&(Ft(t,d)||function(t,e,n){var i,r,o,a,s,l,c,u=t.tag,p=t.anchor,h={},f=Object.create(null),d=null,y=null,g=null,m=!1,b=!1;if(-1!==t.firstTabInLine)return !1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=h),c=t.input.charCodeAt(t.position);0!==c;){if(m||-1===t.firstTabInLine||(t.position=t.firstTabInLine,_t(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),o=t.line,63!==c&&58!==c||!ft(i)){if(a=t.line,s=t.lineStart,l=t.position,!Pt(t,n,X,!1,!0))break;if(t.line===o){for(c=t.input.charCodeAt(t.position);ht(c);)c=t.input.charCodeAt(++t.position);if(58===c)ft(c=t.input.charCodeAt(++t.position))||_t(t,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(St(t,h,f,d,y,null,a,s,l),d=y=g=null),b=!0,m=!1,r=!1,d=t.tag,y=t.result;else {if(!b)return t.tag=u,t.anchor=p,!0;_t(t,"can not read an implicit mapping pair; a colon is missed");}}else {if(!b)return t.tag=u,t.anchor=p,!0;_t(t,"can not read a block mapping entry; a multiline key may not be an implicit key");}}else 63===c?(m&&(St(t,h,f,d,y,null,a,s,l),d=y=g=null),b=!0,m=!0,r=!0):m?(m=!1,r=!0):_t(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,c=i;if((t.line===o||t.lineIndent>e)&&(m&&(a=t.line,s=t.lineStart,l=t.position),Pt(t,e,et,!0,r)&&(m?y=t.result:g=t.result),m||(St(t,h,f,d,y,g,a,s,l),d=y=g=null),Tt(t,!0,-1),c=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&0!==c)_t(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return m&&St(t,h,f,d,y,null,a,s,l),b&&(t.tag=u,t.anchor=p,t.kind="mapping",t.result=h),b}(t,d,f))||function(t,e){var n,i,r,o,a,s,l,c,u,p,h,f,d=!0,y=t.tag,g=t.anchor,m=Object.create(null);if(91===(f=t.input.charCodeAt(t.position)))a=93,c=!1,o=[];else {if(123!==f)return !1;a=125,c=!0,o={};}for(null!==t.anchor&&(t.anchorMap[t.anchor]=o),f=t.input.charCodeAt(++t.position);0!==f;){if(Tt(t,!0,e),(f=t.input.charCodeAt(t.position))===a)return t.position++,t.tag=y,t.anchor=g,t.kind=c?"mapping":"sequence",t.result=o,!0;d?44===f&&_t(t,"expected the node content, but found ','"):_t(t,"missed comma between flow collection entries"),h=null,s=l=!1,63===f&&ft(t.input.charCodeAt(t.position+1))&&(s=l=!0,t.position++,Tt(t,!0,e)),n=t.line,i=t.lineStart,r=t.position,Pt(t,e,J,!1,!0),p=t.tag,u=t.result,Tt(t,!0,e),f=t.input.charCodeAt(t.position),!l&&t.line!==n||58!==f||(s=!0,f=t.input.charCodeAt(++t.position),Tt(t,!0,e),Pt(t,e,J,!1,!0),h=t.result),c?St(t,o,m,p,u,h,n,i,r):s?o.push(St(t,null,m,p,u,h,n,i,r)):o.push(u),Tt(t,!0,e),44===(f=t.input.charCodeAt(t.position))?(d=!0,f=t.input.charCodeAt(++t.position)):d=!1;}_t(t,"unexpected end of the stream within a flow collection");}(t,f)?m=!0:(a&&function(t,e){var n,i,r,o,a,s=nt,l=!1,c=!1,p=e,h=0,f=!1;if(124===(o=t.input.charCodeAt(t.position)))i=!1;else {if(62!==o)return !1;i=!0;}for(t.kind="scalar",t.result="";0!==o;)if(43===(o=t.input.charCodeAt(++t.position))||45===o)nt===s?s=43===o?rt:it:_t(t,"repeat of a chomping mode identifier");else {if(!((r=48<=(a=o)&&a<=57?a-48:-1)>=0))break;0===r?_t(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?_t(t,"repeat of an indentation width identifier"):(p=e+r-1,c=!0);}if(ht(o)){do{o=t.input.charCodeAt(++t.position);}while(ht(o));if(35===o)do{o=t.input.charCodeAt(++t.position);}while(!pt(o)&&0!==o)}for(;0!==o;){for(jt(t),t.lineIndent=0,o=t.input.charCodeAt(t.position);(!c||t.lineIndent<p)&&32===o;)t.lineIndent++,o=t.input.charCodeAt(++t.position);if(!c&&t.lineIndent>p&&(p=t.lineIndent),pt(o))h++;else {if(t.lineIndent<p){s===rt?t.result+=u.repeat("\n",l?1+h:h):s===nt&&l&&(t.result+="\n");break}for(i?ht(o)?(f=!0,t.result+=u.repeat("\n",l?1+h:h)):f?(f=!1,t.result+=u.repeat("\n",h+1)):0===h?l&&(t.result+=" "):t.result+=u.repeat("\n",h):t.result+=u.repeat("\n",l?1+h:h),l=!0,c=!0,h=0,n=t.position;!pt(o)&&0!==o;)o=t.input.charCodeAt(++t.position);Ct(t,n,t.position,!1);}}return !0}(t,f)||function(t,e){var n,i,r;if(39!==(n=t.input.charCodeAt(t.position)))return !1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;0!==(n=t.input.charCodeAt(t.position));)if(39===n){if(Ct(t,i,t.position,!0),39!==(n=t.input.charCodeAt(++t.position)))return !0;i=t.position,t.position++,r=t.position;}else pt(n)?(Ct(t,i,r,!0),Nt(t,Tt(t,!1,e)),i=r=t.position):t.position===t.lineStart&&Et(t)?_t(t,"unexpected end of the document within a single quoted scalar"):(t.position++,r=t.position);_t(t,"unexpected end of the stream within a single quoted scalar");}(t,f)||function(t,e){var n,i,r,o,a,s,l;if(34!==(s=t.input.charCodeAt(t.position)))return !1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;0!==(s=t.input.charCodeAt(t.position));){if(34===s)return Ct(t,n,t.position,!0),t.position++,!0;if(92===s){if(Ct(t,n,t.position,!0),pt(s=t.input.charCodeAt(++t.position)))Tt(t,!1,e);else if(s<256&&bt[s])t.result+=vt[s],t.position++;else if((a=120===(l=s)?2:117===l?4:85===l?8:0)>0){for(r=a,o=0;r>0;r--)(a=yt(s=t.input.charCodeAt(++t.position)))>=0?o=(o<<4)+a:_t(t,"expected hexadecimal character");t.result+=mt(o),t.position++;}else _t(t,"unknown escape sequence");n=i=t.position;}else pt(s)?(Ct(t,n,i,!0),Nt(t,Tt(t,!1,e)),n=i=t.position):t.position===t.lineStart&&Et(t)?_t(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position);}_t(t,"unexpected end of the stream within a double quoted scalar");}(t,f)?m=!0:!function(t){var e,n,i;if(42!==(i=t.input.charCodeAt(t.position)))return !1;for(i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!ft(i)&&!dt(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&_t(t,"name of an alias node must contain at least one character"),n=t.input.slice(e,t.position),z.call(t.anchorMap,n)||_t(t,'unidentified alias "'+n+'"'),t.result=t.anchorMap[n],Tt(t,!0,-1),!0}(t)?function(t,e,n){var i,r,o,a,s,l,c,u,p=t.kind,h=t.result;if(ft(u=t.input.charCodeAt(t.position))||dt(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return !1;if((63===u||45===u)&&(ft(i=t.input.charCodeAt(t.position+1))||n&&dt(i)))return !1;for(t.kind="scalar",t.result="",r=o=t.position,a=!1;0!==u;){if(58===u){if(ft(i=t.input.charCodeAt(t.position+1))||n&&dt(i))break}else if(35===u){if(ft(t.input.charCodeAt(t.position-1)))break}else {if(t.position===t.lineStart&&Et(t)||n&&dt(u))break;if(pt(u)){if(s=t.line,l=t.lineStart,c=t.lineIndent,Tt(t,!1,-1),t.lineIndent>=e){a=!0,u=t.input.charCodeAt(t.position);continue}t.position=o,t.line=s,t.lineStart=l,t.lineIndent=c;break}}a&&(Ct(t,r,o,!1),Nt(t,t.line-s),r=o=t.position,a=!1),ht(u)||(o=t.position+1),u=t.input.charCodeAt(++t.position);}return Ct(t,r,o,!1),!!t.result||(t.kind=p,t.result=h,!1)}(t,f,J===n)&&(m=!0,null===t.tag&&(t.tag="?")):(m=!0,null===t.tag&&null===t.anchor||_t(t,"alias node should not have any properties")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===y&&(m=s&&Ft(t,d))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&_t(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),l=0,c=t.implicitTypes.length;l<c;l+=1)if((h=t.implicitTypes[l]).resolve(t.result)){t.result=h.construct(t.result),t.tag=h.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(z.call(t.typeMap[t.kind||"fallback"],t.tag))h=t.typeMap[t.kind||"fallback"][t.tag];else for(h=null,l=0,c=(p=t.typeMap.multi[t.kind||"fallback"]).length;l<c;l+=1)if(t.tag.slice(0,p[l].tag.length)===p[l].tag){h=p[l];break}h||_t(t,"unknown tag !<"+t.tag+">"),null!==t.result&&h.kind!==t.kind&&_t(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+h.kind+'", not "'+t.kind+'"'),h.resolve(t.result,t.tag)?(t.result=h.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):_t(t,"cannot resolve a node with !<"+t.tag+"> explicit tag");}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||m}function $t(t){var e,n,i,r,o=t.position,a=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(r=t.input.charCodeAt(t.position))&&(Tt(t,!0,-1),r=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==r));){for(a=!0,r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!ft(r);)r=t.input.charCodeAt(++t.position);for(i=[],(n=t.input.slice(e,t.position)).length<1&&_t(t,"directive name must not be less than one character in length");0!==r;){for(;ht(r);)r=t.input.charCodeAt(++t.position);if(35===r){do{r=t.input.charCodeAt(++t.position);}while(0!==r&&!pt(r));break}if(pt(r))break;for(e=t.position;0!==r&&!ft(r);)r=t.input.charCodeAt(++t.position);i.push(t.input.slice(e,t.position));}0!==r&&jt(t),z.call(It,n)?It[n](t,n,i):xt(t,'unknown document directive "'+n+'"');}Tt(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,Tt(t,!0,-1)):a&&_t(t,"directives end mark is expected"),Pt(t,t.lineIndent-1,et,!1,!0),Tt(t,!0,-1),t.checkLineBreaks&&at.test(t.input.slice(o,t.position))&&xt(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Et(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,Tt(t,!0,-1)):t.position<t.length-1&&_t(t,"end of the stream or a document separator is expected");}function Dt(t,e){e=e||{},0!==(t=String(t)).length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var n=new At(t,e),i=t.indexOf("\0");for(-1!==i&&(n.position=i,_t(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;)$t(n);return n.documents}var Rt={loadAll:function(t,e,n){null!==e&&"object"==typeof e&&void 0===n&&(n=e,e=null);var i=Dt(t,n);if("function"!=typeof e)return i;for(var r=0,o=i.length;r<o;r+=1)e(i[r]);},load:function(t,e){var n=Dt(t,e);if(0!==n.length){if(1===n.length)return n[0];throw new f("expected a single document in the stream, but found more")}}},Ut=Object.prototype.toString,qt=Object.prototype.hasOwnProperty,Yt=65279,Bt=9,Gt=10,Kt=13,Wt=32,Ht=33,Vt=34,Qt=35,Zt=37,zt=38,Jt=39,Xt=42,te=44,ee=45,ne=58,ie=61,re=62,oe=63,ae=64,se=91,le=93,ce=96,ue=123,pe=124,he=125,fe={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"},de=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ye=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ge(t){var e,n,i;if(e=t.toString(16).toUpperCase(),t<=255)n="x",i=2;else if(t<=65535)n="u",i=4;else {if(!(t<=4294967295))throw new f("code point within a string may not be greater than 0xFFFFFFFF");n="U",i=8;}return "\\"+n+u.repeat("0",i-e.length)+e}var me=1,be=2;function ve(t){this.schema=t.schema||Z,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=u.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=function(t,e){var n,i,r,o,a,s,l;if(null===e)return {};for(n={},r=0,o=(i=Object.keys(e)).length;r<o;r+=1)a=i[r],s=String(e[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(l=t.compiledTypeMap.fallback[a])&&qt.call(l.styleAliases,s)&&(s=l.styleAliases[s]),n[a]=s;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?be:me,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 ke(t,e){for(var n,i=u.repeat(" ",e),r=0,o=-1,a="",s=t.length;r<s;)-1===(o=t.indexOf("\n",r))?(n=t.slice(r),r=s):(n=t.slice(r,o+1),r=o+1),n.length&&"\n"!==n&&(a+=i),a+=n;return a}function Ae(t,e){return "\n"+u.repeat(" ",t.indent*e)}function we(t){return t===Wt||t===Bt}function _e(t){return 32<=t&&t<=126||161<=t&&t<=55295&&8232!==t&&8233!==t||57344<=t&&t<=65533&&t!==Yt||65536<=t&&t<=1114111}function xe(t){return _e(t)&&t!==Yt&&t!==Kt&&t!==Gt}function Ie(t,e,n){var i=xe(t),r=i&&!we(t);return (n?i:i&&t!==te&&t!==se&&t!==le&&t!==ue&&t!==he)&&t!==Qt&&!(e===ne&&!r)||xe(e)&&!we(e)&&t===Qt||e===ne&&r}function Ce(t,e){var n,i=t.charCodeAt(e);return i>=55296&&i<=56319&&e+1<t.length&&(n=t.charCodeAt(e+1))>=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i}function Oe(t){return /^\n* /.test(t)}var Se=1,je=2,Te=3,Ee=4,Ne=5;function Fe(t,e,n,i,r,o,a,s){var l,c,u=0,p=null,h=!1,f=!1,d=-1!==i,y=-1,g=_e(c=Ce(t,0))&&c!==Yt&&!we(c)&&c!==ee&&c!==oe&&c!==ne&&c!==te&&c!==se&&c!==le&&c!==ue&&c!==he&&c!==Qt&&c!==zt&&c!==Xt&&c!==Ht&&c!==pe&&c!==ie&&c!==re&&c!==Jt&&c!==Vt&&c!==Zt&&c!==ae&&c!==ce&&function(t){return !we(t)&&t!==ne}(Ce(t,t.length-1));if(e||a)for(l=0;l<t.length;u>=65536?l+=2:l++){if(!_e(u=Ce(t,l)))return Ne;g=g&&Ie(u,p,s),p=u;}else {for(l=0;l<t.length;u>=65536?l+=2:l++){if((u=Ce(t,l))===Gt)h=!0,d&&(f=f||l-y-1>i&&" "!==t[y+1],y=l);else if(!_e(u))return Ne;g=g&&Ie(u,p,s),p=u;}f=f||d&&l-y-1>i&&" "!==t[y+1];}return h||f?n>9&&Oe(t)?Ne:a?o===be?Ne:je:f?Ee:Te:!g||a||r(t)?o===be?Ne:je:Se}function Me(t,e,n,i,r){t.dump=function(){if(0===e.length)return t.quotingType===be?'""':"''";if(!t.noCompatMode&&(-1!==de.indexOf(e)||ye.test(e)))return t.quotingType===be?'"'+e+'"':"'"+e+"'";var o=t.indent*Math.max(1,n),a=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o),s=i||t.flowLevel>-1&&n>=t.flowLevel;switch(Fe(e,s,t.indent,a,(function(e){return function(t,e){var n,i;for(n=0,i=t.implicitTypes.length;n<i;n+=1)if(t.implicitTypes[n].resolve(e))return !0;return !1}(t,e)}),t.quotingType,t.forceQuotes&&!i,r)){case Se:return e;case je:return "'"+e.replace(/'/g,"''")+"'";case Te:return "|"+Le(e,t.indent)+Pe(ke(e,o));case Ee:return ">"+Le(e,t.indent)+Pe(ke(function(t,e){var n,i,r=/(\n+)([^\n]*)/g,o=(s=t.indexOf("\n"),s=-1!==s?s:t.length,r.lastIndex=s,$e(t.slice(0,s),e)),a="\n"===t[0]||" "===t[0];var s;for(;i=r.exec(t);){var l=i[1],c=i[2];n=" "===c[0],o+=l+(a||n||""===c?"":"\n")+$e(c,e),a=n;}return o}(e,a),o));case Ne:return '"'+function(t){for(var e,n="",i=0,r=0;r<t.length;i>=65536?r+=2:r++)i=Ce(t,r),!(e=fe[i])&&_e(i)?(n+=t[r],i>=65536&&(n+=t[r+1])):n+=e||ge(i);return n}(e)+'"';default:throw new f("impossible error: invalid scalar style")}}();}function Le(t,e){var n=Oe(t)?String(e):"",i="\n"===t[t.length-1];return n+(i&&("\n"===t[t.length-2]||"\n"===t)?"+":i?"":"-")+"\n"}function Pe(t){return "\n"===t[t.length-1]?t.slice(0,-1):t}function $e(t,e){if(""===t||" "===t[0])return t;for(var n,i,r=/ [^ ]/g,o=0,a=0,s=0,l="";n=r.exec(t);)(s=n.index)-o>e&&(i=a>o?a:s,l+="\n"+t.slice(o,i),o=i+1),a=s;return l+="\n",t.length-o>e&&a>o?l+=t.slice(o,a)+"\n"+t.slice(a+1):l+=t.slice(o),l.slice(1)}function De(t,e,n,i){var r,o,a,s="",l=t.tag;for(r=0,o=n.length;r<o;r+=1)a=n[r],t.replacer&&(a=t.replacer.call(n,String(r),a)),(Ue(t,e+1,a,!0,!0,!1,!0)||void 0===a&&Ue(t,e+1,null,!0,!0,!1,!0))&&(i&&""===s||(s+=Ae(t,e)),t.dump&&Gt===t.dump.charCodeAt(0)?s+="-":s+="- ",s+=t.dump);t.tag=l,t.dump=s||"[]";}function Re(t,e,n){var i,r,o,a,s,l;for(o=0,a=(r=n?t.explicitTypes:t.implicitTypes).length;o<a;o+=1)if(((s=r[o]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof e&&e instanceof s.instanceOf)&&(!s.predicate||s.predicate(e))){if(n?s.multi&&s.representName?t.tag=s.representName(e):t.tag=s.tag:t.tag="?",s.represent){if(l=t.styleMap[s.tag]||s.defaultStyle,"[object Function]"===Ut.call(s.represent))i=s.represent(e,l);else {if(!qt.call(s.represent,l))throw new f("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');i=s.represent[l](e,l);}t.dump=i;}return !0}return !1}function Ue(t,e,n,i,r,o,a){t.tag=null,t.dump=n,Re(t,n,!1)||Re(t,n,!0);var s,l=Ut.call(t.dump),c=i;i&&(i=t.flowLevel<0||t.flowLevel>e);var u,p,h="[object Object]"===l||"[object Array]"===l;if(h&&(p=-1!==(u=t.duplicates.indexOf(n))),(null!==t.tag&&"?"!==t.tag||p||2!==t.indent&&e>0)&&(r=!1),p&&t.usedDuplicates[u])t.dump="*ref_"+u;else {if(h&&p&&!t.usedDuplicates[u]&&(t.usedDuplicates[u]=!0),"[object Object]"===l)i&&0!==Object.keys(t.dump).length?(!function(t,e,n,i){var r,o,a,s,l,c,u="",p=t.tag,h=Object.keys(n);if(!0===t.sortKeys)h.sort();else if("function"==typeof t.sortKeys)h.sort(t.sortKeys);else if(t.sortKeys)throw new f("sortKeys must be a boolean or a function");for(r=0,o=h.length;r<o;r+=1)c="",i&&""===u||(c+=Ae(t,e)),s=n[a=h[r]],t.replacer&&(s=t.replacer.call(n,a,s)),Ue(t,e+1,a,!0,!0,!0)&&((l=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024)&&(t.dump&&Gt===t.dump.charCodeAt(0)?c+="?":c+="? "),c+=t.dump,l&&(c+=Ae(t,e)),Ue(t,e+1,s,!0,l)&&(t.dump&&Gt===t.dump.charCodeAt(0)?c+=":":c+=": ",u+=c+=t.dump));t.tag=p,t.dump=u||"{}";}(t,e,t.dump,r),p&&(t.dump="&ref_"+u+t.dump)):(!function(t,e,n){var i,r,o,a,s,l="",c=t.tag,u=Object.keys(n);for(i=0,r=u.length;i<r;i+=1)s="",""!==l&&(s+=", "),t.condenseFlow&&(s+='"'),a=n[o=u[i]],t.replacer&&(a=t.replacer.call(n,o,a)),Ue(t,e,o,!1,!1)&&(t.dump.length>1024&&(s+="? "),s+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Ue(t,e,a,!1,!1)&&(l+=s+=t.dump));t.tag=c,t.dump="{"+l+"}";}(t,e,t.dump),p&&(t.dump="&ref_"+u+" "+t.dump));else if("[object Array]"===l)i&&0!==t.dump.length?(t.noArrayIndent&&!a&&e>0?De(t,e-1,t.dump,r):De(t,e,t.dump,r),p&&(t.dump="&ref_"+u+t.dump)):(!function(t,e,n){var i,r,o,a="",s=t.tag;for(i=0,r=n.length;i<r;i+=1)o=n[i],t.replacer&&(o=t.replacer.call(n,String(i),o)),(Ue(t,e,o,!1,!1)||void 0===o&&Ue(t,e,null,!1,!1))&&(""!==a&&(a+=","+(t.condenseFlow?"":" ")),a+=t.dump);t.tag=s,t.dump="["+a+"]";}(t,e,t.dump),p&&(t.dump="&ref_"+u+" "+t.dump));else {if("[object String]"!==l){if("[object Undefined]"===l)return !1;if(t.skipInvalid)return !1;throw new f("unacceptable kind of an object to dump "+l)}"?"!==t.tag&&Me(t,t.dump,e,o,c);}null!==t.tag&&"?"!==t.tag&&(s=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),s="!"===t.tag[0]?"!"+s:"tag:yaml.org,2002:"===s.slice(0,18)?"!!"+s.slice(18):"!<"+s+">",t.dump=s+" "+t.dump);}return !0}function qe(t,e){var n,i,r=[],o=[];for(Ye(t,r,o),n=0,i=o.length;n<i;n+=1)e.duplicates.push(r[o[n]]);e.usedDuplicates=new Array(i);}function Ye(t,e,n){var i,r,o;if(null!==t&&"object"==typeof t)if(-1!==(r=e.indexOf(t)))-1===n.indexOf(r)&&n.push(r);else if(e.push(t),Array.isArray(t))for(r=0,o=t.length;r<o;r+=1)Ye(t[r],e,n);else for(r=0,o=(i=Object.keys(t)).length;r<o;r+=1)Ye(t[i[r]],e,n);}function Be(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var Ge={Type:v,Schema:w,FAILSAFE_SCHEMA:C,JSON_SCHEMA:L,CORE_SCHEMA:P,DEFAULT_SCHEMA:Z,load:Rt.load,loadAll:Rt.loadAll,dump:{dump:function(t,e){var n=new ve(e=e||{});n.noRefs||qe(t,n);var i=t;return n.replacer&&(i=n.replacer.call({"":i},"",i)),Ue(n,0,i,!0,!0)?n.dump+"\n":""}}.dump,YAMLException:f,types:{binary:Y,float:M,map:I,null:O,pairs:H,set:Q,timestamp:R,bool:S,int:E,merge:U,omap:K,seq:x,str:_},safeLoad:Be("safeLoad","load"),safeLoadAll:Be("safeLoadAll","loadAll"),safeDump:Be("safeDump","dump")};function Ke(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function We(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var He={};!function(t){var e=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,11],n=[1,3],i=[1,4],r=[1,5],o=[1,6],a=[1,8],s=[1,9],l=[1,10],c=[1,13],u=[1,14],p=[1,15],h=[1,16],f=[1,17],d=[1,18],y=[1,19],g=[1,20],m=[1,21],b=[1,22],v=[1,23],k=[1,24],A=[1,25],w=[1,26],_=[5,7,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,30],x=[5,7,9,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30],I=[5,7,12,13,14,19,20,21,22,23,24,25,26,28,30],C=[5,7,12,13,14,15,16,17,19,20,21,22,23,24,25,26,28,30],O=[5,7,12,19,20,21,22,23,24,25,26,28,30],S=[5,7,12,25,26,28,30],j=[7,28],T={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,expression_list:6,",":7,dot_name:8,".":9,NAME:10,"[":11,"]":12,"+":13,"-":14,"*":15,"/":16,"%":17,"^":18,">":19,"<":20,"==":21,"!=":22,">=":23,"<=":24,"||":25,"&&":26,"(":27,")":28,"?":29,":":30,true:31,false:32,QUOTED_STRING:33,NUMBER:34,HEXNUMBER:35,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",7:",",9:".",10:"NAME",11:"[",12:"]",13:"+",14:"-",15:"*",16:"/",17:"%",18:"^",19:">",20:"<",21:"==",22:"!=",23:">=",24:"<=",25:"||",26:"&&",27:"(",28:")",29:"?",30:":",31:"true",32:"false",33:"QUOTED_STRING",34:"NUMBER",35:"HEXNUMBER"},productions_:[0,[3,2],[6,3],[6,1],[8,3],[8,4],[8,1],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,3],[4,7],[4,1],[4,1],[4,1],[4,3],[4,4],[4,1],[4,1],[4,1]],performAction:function(t,e,n,i,r,o,a){var s=o.length-1;switch(r){case 1:var l=o[s-1];return "function"==typeof l?l:function(t){return l};case 2:case 4:this.$=o[s-2].concat([o[s]]);break;case 3:case 6:this.$=[o[s]];break;case 5:this.$=o[s-3].concat([o[s-1]]);break;case 7:this.$=function(t){return F(i.parser,t,"_add",[o[s-2],o[s]])};break;case 8:this.$=function(t){return F(i.parser,t,"_subtract",[o[s-2],o[s]])};break;case 9:this.$=function(t){return F(i.parser,t,"_multiply",[o[s-2],o[s]])};break;case 10:this.$=function(t){return F(i.parser,t,"_divide",[o[s-2],o[s]])};break;case 11:this.$=function(t){return F(i.parser,t,"_mod",[o[s-2],o[s]])};break;case 12:this.$=function(t){return F(i.parser,t,"_pow",[o[s-2],o[s]])};break;case 13:this.$=function(t){return 1==F(i.parser,t,"_greaterThen",[o[s-2],o[s]])};break;case 14:this.$=function(t){return 1==F(i.parser,t,"_lessThen",[o[s-2],o[s]])};break;case 15:this.$=function(t){return 1==F(i.parser,t,"_equalTo",[o[s-2],o[s]])};break;case 16:this.$=function(t){return 0==F(i.parser,t,"_equalTo",[o[s-2],o[s]])};break;case 17:this.$=function(t){return 0==F(i.parser,t,"_lessThen",[o[s-2],o[s]])};break;case 18:this.$=function(t){return 0==F(i.parser,t,"_greaterThen",[o[s-2],o[s]])};break;case 19:this.$=function(t){return 1==F(i.parser,t,"_or",[o[s-2],o[s]])};break;case 20:this.$=function(t){return 1==F(i.parser,t,"_and",[o[s-2],o[s]])};break;case 21:this.$=function(t){return -E(o[s],t)};break;case 22:this.$=function(t){return E(o[s-1],t)};break;case 23:this.$=function(t){return E(o[s-5],t)?E(o[s-2],t):E(o[s],t)};break;case 24:this.$=!0;break;case 25:this.$=!1;break;case 26:this.$=function(t){return i.parser.getDotProperty(t,N(o[s],t),0)};break;case 27:this.$=function(t){return M(i.parser,t,N(o[s-2],t),void 0,!0)};break;case 28:this.$=function(t){return M(i.parser,t,N(o[s-3],t),o[s-1],!0)};break;case 29:this.$=t.slice(1,-1);break;case 30:this.$=Number(t);break;case 31:this.$=parseInt(t,16);}},table:[{3:1,4:2,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{1:[3]},{5:[1,12],13:c,14:u,15:p,16:h,17:f,18:d,19:y,20:g,21:m,22:b,23:v,24:k,25:A,26:w},{4:27,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:28,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},t(_,[2,24]),t(_,[2,25]),t(_,[2,26],{9:[1,30],11:[1,31],27:[1,29]}),t(_,[2,29]),t(_,[2,30]),t(_,[2,31]),t(x,[2,6]),{1:[2,1]},{4:32,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:33,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:34,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:35,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:36,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:37,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:38,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:39,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:40,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:41,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:42,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:43,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:44,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:45,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},t(_,[2,21]),{13:c,14:u,15:p,16:h,17:f,18:d,19:y,20:g,21:m,22:b,23:v,24:k,25:A,26:w,28:[1,46]},{4:49,6:48,8:7,10:e,14:n,27:i,28:[1,47],31:r,32:o,33:a,34:s,35:l},{10:[1,50]},{4:51,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},t(I,[2,7],{15:p,16:h,17:f,18:d}),t(I,[2,8],{15:p,16:h,17:f,18:d}),t(C,[2,9],{18:d}),t(C,[2,10],{18:d}),t([5,7,12,13,14,17,19,20,21,22,23,24,25,26,28,30],[2,11],{15:p,16:h,18:d}),t(_,[2,12]),t(O,[2,13],{13:c,14:u,15:p,16:h,17:f,18:d}),t(O,[2,14],{13:c,14:u,15:p,16:h,17:f,18:d}),t(O,[2,15],{13:c,14:u,15:p,16:h,17:f,18:d}),t(O,[2,16],{13:c,14:u,15:p,16:h,17:f,18:d}),t(O,[2,17],{13:c,14:u,15:p,16:h,17:f,18:d}),t(O,[2,18],{13:c,14:u,15:p,16:h,17:f,18:d}),t(S,[2,19],{13:c,14:u,15:p,16:h,17:f,18:d,19:y,20:g,21:m,22:b,23:v,24:k}),t(S,[2,20],{13:c,14:u,15:p,16:h,17:f,18:d,19:y,20:g,21:m,22:b,23:v,24:k}),t(_,[2,22],{29:[1,52]}),t(_,[2,27]),{7:[1,54],28:[1,53]},t(j,[2,3],{13:c,14:u,15:p,16:h,17:f,18:d,19:y,20:g,21:m,22:b,23:v,24:k,25:A,26:w}),t(x,[2,4]),{12:[1,55],13:c,14:u,15:p,16:h,17:f,18:d,19:y,20:g,21:m,22:b,23:v,24:k,25:A,26:w},{4:56,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},t(_,[2,28]),{4:57,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},t(x,[2,5]),{13:c,14:u,15:p,16:h,17:f,18:d,19:y,20:g,21:m,22:b,23:v,24:k,25:A,26:w,30:[1,58]},t(j,[2,2],{13:c,14:u,15:p,16:h,17:f,18:d,19:y,20:g,21:m,22:b,23:v,24:k,25:A,26:w}),{4:59,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},t([5,7,12,28,30],[2,23],{13:c,14:u,15:p,16:h,17:f,18:d,19:y,20:g,21:m,22:b,23:v,24:k,25:A,26:w})],defaultActions:{12:[2,1]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t);},parse:function(t){var e=this,n=[0],i=[null],r=[],o=this.table,a="",s=0,l=0,c=r.slice.call(arguments,1),u=Object.create(this.lexer),p={yy:{}};for(var h in this.yy)Object.prototype.hasOwnProperty.call(this.yy,h)&&(p.yy[h]=this.yy[h]);u.setInput(t,p.yy),p.yy.lexer=u,p.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var f=u.yylloc;r.push(f);var d=u.options&&u.options.ranges;"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var y,g,m,b,v,k,A,w,_,x={};;){if(g=n[n.length-1],this.defaultActions[g]?m=this.defaultActions[g]:(null==y&&(_=void 0,"number"!=typeof(_=u.lex()||1)&&(_=e.symbols_[_]||_),y=_),m=o[g]&&o[g][y]),void 0===m||!m.length||!m[0]){var I="";for(v in w=[],o[g])this.terminals_[v]&&v>2&&w.push("'"+this.terminals_[v]+"'");I=u.showPosition?"Parse error on line "+(s+1)+":\n"+u.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==y?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(I,{text:u.match,token:this.terminals_[y]||y,line:u.yylineno,loc:f,