phaser3-rex-plugins
Version:
2 lines • 455 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).rexuimaker=e();}(undefined,(function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,g(n.key),n);}}function n(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function r(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(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 a(t)}function l(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 i,n=s(t);if(e){var r=s(this).constructor;i=Reflect.construct(n,arguments,r);}else i=n.apply(this,arguments);return h(this,i)}}function u(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=s(t)););return t}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,i){var n=u(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(arguments.length<3?t:i):r.value}},c.apply(this,arguments)}function d(t,e,i,n){return d="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(t,e,i,n){var r,s=u(t,e);if(s){if((r=Object.getOwnPropertyDescriptor(s,e)).set)return r.set.call(n,i),!0;if(!r.writable)return !1}if(r=Object.getOwnPropertyDescriptor(n,e)){if(!r.writable)return !1;r.value=i,Object.defineProperty(n,e,r);}else !function(t,e,i){(e=g(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i;}(n,e,i);return !0},d(t,e,i,n)}function p(t,e,i,n,r){if(!d(t,e,i,n||t)&&r)throw new TypeError("failed to set property");return i}function f(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return v(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return v(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function g(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===e?String:Number)(t)}(t,"string");return "symbol"==typeof e?e:String(e)}
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function y(t){return null==t}var m={isNothing:y,isObject:function(t){return "object"==typeof t&&null!==t},toArray:function(t){return Array.isArray(t)?t:y(t)?[]:[t]},repeat:function(t,e){var i,n="";for(i=0;i<e;i+=1)n+=t;return n},isNegativeZero:function(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t},extend:function(t,e){var i,n,r,s;if(e)for(i=0,n=(s=Object.keys(e)).length;i<n;i+=1)t[r=s[i]]=e[r];return t}};function k(t,e){var i="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(i+='in "'+t.mark.name+'" '),i+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(i+="\n\n"+t.mark.snippet),n+" "+i):n}function b(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=k(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||"";}b.prototype=Object.create(Error.prototype),b.prototype.constructor=b,b.prototype.toString=function(t){return this.name+": "+k(this,t)};var x=b;function C(t,e,i,n,r){var s="",o="",a=Math.floor(r/2)-1;return n-e>a&&(e=n-a+(s=" ... ").length),i-n>a&&(i=n+a-(o=" ...").length),{str:s+t.slice(e,i).replace(/\t/g,"→")+o,pos:n-e+s.length}}function S(t,e){return m.repeat(" ",e-t.length)+t}var w=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 i,n=/\r?\n|\r|\0/g,r=[0],s=[],o=-1;i=n.exec(t.buffer);)s.push(i.index),r.push(i.index+i[0].length),t.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var a,h,l="",u=Math.min(t.line+e.linesAfter,s.length).toString().length,c=e.maxLength-(e.indent+u+3);for(a=1;a<=e.linesBefore&&!(o-a<0);a++)h=C(t.buffer,r[o-a],s[o-a],t.position-(r[o]-r[o-a]),c),l=m.repeat(" ",e.indent)+S((t.line-a+1).toString(),u)+" | "+h.str+"\n"+l;for(h=C(t.buffer,r[o],s[o],t.position,c),l+=m.repeat(" ",e.indent)+S((t.line+1).toString(),u)+" | "+h.str+"\n",l+=m.repeat("-",e.indent+u+3+h.pos)+"^\n",a=1;a<=e.linesAfter&&!(o+a>=s.length);a++)h=C(t.buffer,r[o+a],s[o+a],t.position-(r[o]-r[o+a]),c),l+=m.repeat(" ",e.indent)+S((t.line+a+1).toString(),u)+" | "+h.str+"\n";return l.replace(/\n$/,"")},O=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],T=["scalar","sequence","mapping"];var P=function(t,e){if(e=e||{},Object.keys(e).forEach((function(e){if(-1===O.indexOf(e))throw new x('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(i){t[i].forEach((function(t){e[String(t)]=i;}));})),e}(e.styleAliases||null),-1===T.indexOf(this.kind))throw new x('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')};function _(t,e){var i=[];return t[e].forEach((function(t){var e=i.length;i.forEach((function(i,n){i.tag===t.tag&&i.kind===t.kind&&i.multi===t.multi&&(e=n);})),i[e]=t;})),i}function E(t){return this.extend(t)}E.prototype.extend=function(t){var e=[],i=[];if(t instanceof P)i.push(t);else if(Array.isArray(t))i=i.concat(t);else {if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new x("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));}e.forEach((function(t){if(!(t instanceof P))throw new x("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new x("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 x("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),i.forEach((function(t){if(!(t instanceof P))throw new x("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var n=Object.create(E.prototype);return n.implicit=(this.implicit||[]).concat(e),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=_(n,"implicit"),n.compiledExplicit=_(n,"explicit"),n.compiledTypeMap=function(){var t,e,i={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(t){t.multi?(i.multi[t.kind].push(t),i.multi.fallback.push(t)):i[t.kind][t.tag]=i.fallback[t.tag]=t;}for(t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(n);return i}(n.compiledImplicit,n.compiledExplicit),n};var M=E,R=new P("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}}),L=new P("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}}),A=new P("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}}),D=new M({explicit:[R,L,A]});var z=new P("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 I=new P("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 B(t){return 48<=t&&t<=57}var F=new P("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(t){if(null===t)return !1;var e,i,n=t.length,r=0,s=!1;if(!n)return !1;if("-"!==(e=t[r])&&"+"!==e||(e=t[++r]),"0"===e){if(r+1===n)return !0;if("b"===(e=t[++r])){for(r++;r<n;r++)if("_"!==(e=t[r])){if("0"!==e&&"1"!==e)return !1;s=!0;}return s&&"_"!==e}if("x"===e){for(r++;r<n;r++)if("_"!==(e=t[r])){if(!(48<=(i=t.charCodeAt(r))&&i<=57||65<=i&&i<=70||97<=i&&i<=102))return !1;s=!0;}return s&&"_"!==e}if("o"===e){for(r++;r<n;r++)if("_"!==(e=t[r])){if(!j(t.charCodeAt(r)))return !1;s=!0;}return s&&"_"!==e}}if("_"===e)return !1;for(;r<n;r++)if("_"!==(e=t[r])){if(!B(t.charCodeAt(r)))return !1;s=!0;}return !(!s||"_"===e)},construct:function(t){var e,i=t,n=1;if(-1!==i.indexOf("_")&&(i=i.replace(/_/g,"")),"-"!==(e=i[0])&&"+"!==e||("-"===e&&(n=-1),e=(i=i.slice(1))[0]),"0"===i)return 0;if("0"===e){if("b"===i[1])return n*parseInt(i.slice(2),2);if("x"===i[1])return n*parseInt(i.slice(2),16);if("o"===i[1])return n*parseInt(i.slice(2),8)}return n*parseInt(i,10)},predicate:function(t){return "[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!m.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"]}}),Y=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var W=/^[-+]?[0-9]+e/;var N=new P("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(t){return null!==t&&!(!Y.test(t)||"_"===t[t.length-1])},construct:function(t){var e,i;return i="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===i?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:i*parseFloat(e,10)},predicate:function(t){return "[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||m.isNegativeZero(t))},represent:function(t,e){var i;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(m.isNegativeZero(t))return "-0.0";return i=t.toString(10),W.test(i)?i.replace("e",".e"):i},defaultStyle:"lowercase"}),X=D.extend({implicit:[z,I,F,N]}),G=X,H=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),V=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 U=new P("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(t){return null!==t&&(null!==H.exec(t)||null!==V.exec(t))},construct:function(t){var e,i,n,r,s,o,a,h,l=0,u=null;if(null===(e=H.exec(t))&&(e=V.exec(t)),null===e)throw new Error("Date resolve error");if(i=+e[1],n=+e[2]-1,r=+e[3],!e[4])return new Date(Date.UTC(i,n,r));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l;}return e[9]&&(u=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(u=-u)),h=new Date(Date.UTC(i,n,r,s,o,a,l)),u&&h.setTime(h.getTime()-u),h},instanceOf:Date,represent:function(t){return t.toISOString()}});var J=new P("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(t){return "<<"===t||null===t}}),K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var q=new P("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(t){if(null===t)return !1;var e,i,n=0,r=t.length,s=K;for(i=0;i<r;i++)if(!((e=s.indexOf(t.charAt(i)))>64)){if(e<0)return !1;n+=6;}return n%8==0},construct:function(t){var e,i,n=t.replace(/[\r\n=]/g,""),r=n.length,s=K,o=0,a=[];for(e=0;e<r;e++)e%4==0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|s.indexOf(n.charAt(e));return 0===(i=r%4*6)?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===i?(a.push(o>>10&255),a.push(o>>2&255)):12===i&&a.push(o>>4&255),new Uint8Array(a)},predicate:function(t){return "[object Uint8Array]"===Object.prototype.toString.call(t)},represent:function(t){var e,i,n="",r=0,s=t.length,o=K;for(e=0;e<s;e++)e%3==0&&e&&(n+=o[r>>18&63],n+=o[r>>12&63],n+=o[r>>6&63],n+=o[63&r]),r=(r<<8)+t[e];return 0===(i=s%3)?(n+=o[r>>18&63],n+=o[r>>12&63],n+=o[r>>6&63],n+=o[63&r]):2===i?(n+=o[r>>10&63],n+=o[r>>4&63],n+=o[r<<2&63],n+=o[64]):1===i&&(n+=o[r>>2&63],n+=o[r<<4&63],n+=o[64],n+=o[64]),n}}),$=Object.prototype.hasOwnProperty,Z=Object.prototype.toString;var Q=new P("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(t){if(null===t)return !0;var e,i,n,r,s,o=[],a=t;for(e=0,i=a.length;e<i;e+=1){if(n=a[e],s=!1,"[object Object]"!==Z.call(n))return !1;for(r in n)if($.call(n,r)){if(s)return !1;s=!0;}if(!s)return !1;if(-1!==o.indexOf(r))return !1;o.push(r);}return !0},construct:function(t){return null!==t?t:[]}}),tt=Object.prototype.toString;var et=new P("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(t){if(null===t)return !0;var e,i,n,r,s,o=t;for(s=new Array(o.length),e=0,i=o.length;e<i;e+=1){if(n=o[e],"[object Object]"!==tt.call(n))return !1;if(1!==(r=Object.keys(n)).length)return !1;s[e]=[r[0],n[r[0]]];}return !0},construct:function(t){if(null===t)return [];var e,i,n,r,s,o=t;for(s=new Array(o.length),e=0,i=o.length;e<i;e+=1)n=o[e],r=Object.keys(n),s[e]=[r[0],n[r[0]]];return s}}),it=Object.prototype.hasOwnProperty;var nt=new P("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(t){if(null===t)return !0;var e,i=t;for(e in i)if(it.call(i,e)&&null!==i[e])return !1;return !0},construct:function(t){return null!==t?t:{}}}),rt=G.extend({implicit:[U,J],explicit:[q,Q,et,nt]}),st=Object.prototype.hasOwnProperty,ot=1,at=2,ht=3,lt=4,ut=1,ct=2,dt=3,pt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ft=/[\x85\u2028\u2029]/,vt=/[,\[\]\{\}]/,gt=/^(?:!|!!|![a-z\-]+!)$/i,yt=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function mt(t){return Object.prototype.toString.call(t)}function kt(t){return 10===t||13===t}function bt(t){return 9===t||32===t}function xt(t){return 9===t||32===t||10===t||13===t}function Ct(t){return 44===t||91===t||93===t||123===t||125===t}function St(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function wt(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 Ot(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}for(var Tt=new Array(256),Pt=new Array(256),_t=0;_t<256;_t++)Tt[_t]=wt(_t)?1:0,Pt[_t]=wt(_t);function Et(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||rt,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 Mt(t,e){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=w(i),new x(e,i)}function Rt(t,e){throw Mt(t,e)}function Lt(t,e){t.onWarning&&t.onWarning.call(null,Mt(t,e));}var At={YAML:function(t,e,i){var n,r,s;null!==t.version&&Rt(t,"duplication of %YAML directive"),1!==i.length&&Rt(t,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]))&&Rt(t,"ill-formed argument of the YAML directive"),r=parseInt(n[1],10),s=parseInt(n[2],10),1!==r&&Rt(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=s<2,1!==s&&2!==s&&Lt(t,"unsupported YAML version of the document");},TAG:function(t,e,i){var n,r;2!==i.length&&Rt(t,"TAG directive accepts exactly two arguments"),n=i[0],r=i[1],gt.test(n)||Rt(t,"ill-formed tag handle (first argument) of the TAG directive"),st.call(t.tagMap,n)&&Rt(t,'there is a previously declared suffix for "'+n+'" tag handle'),yt.test(r)||Rt(t,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r);}catch(e){Rt(t,"tag prefix is malformed: "+r);}t.tagMap[n]=r;}};function Dt(t,e,i,n){var r,s,o,a;if(e<i){if(a=t.input.slice(e,i),n)for(r=0,s=a.length;r<s;r+=1)9===(o=a.charCodeAt(r))||32<=o&&o<=1114111||Rt(t,"expected valid JSON character");else pt.test(a)&&Rt(t,"the stream contains non-printable characters");t.result+=a;}}function zt(t,e,i,n){var r,s,o,a;for(m.isObject(i)||Rt(t,"cannot merge mappings; the provided source object is unacceptable"),o=0,a=(r=Object.keys(i)).length;o<a;o+=1)s=r[o],st.call(e,s)||(e[s]=i[s],n[s]=!0);}function It(t,e,i,n,r,s,o,a,h){var l,u;if(Array.isArray(r))for(l=0,u=(r=Array.prototype.slice.call(r)).length;l<u;l+=1)Array.isArray(r[l])&&Rt(t,"nested arrays are not supported inside keys"),"object"==typeof r&&"[object Object]"===mt(r[l])&&(r[l]="[object Object]");if("object"==typeof r&&"[object Object]"===mt(r)&&(r="[object Object]"),r=String(r),null===e&&(e={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(s))for(l=0,u=s.length;l<u;l+=1)zt(t,e,s[l],i);else zt(t,e,s,i);else t.json||st.call(i,r)||!st.call(e,r)||(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=h||t.position,Rt(t,"duplicated mapping key")),"__proto__"===r?Object.defineProperty(e,r,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[r]=s,delete i[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++):Rt(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1;}function Bt(t,e,i){for(var n=0,r=t.input.charCodeAt(t.position);0!==r;){for(;bt(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(!kt(r))break;for(jt(t),r=t.input.charCodeAt(t.position),n++,t.lineIndent=0;32===r;)t.lineIndent++,r=t.input.charCodeAt(++t.position);}return -1!==i&&0!==n&&t.lineIndent<i&&Lt(t,"deficient indentation"),n}function Ft(t){var e,i=t.position;return !(45!==(e=t.input.charCodeAt(i))&&46!==e||e!==t.input.charCodeAt(i+1)||e!==t.input.charCodeAt(i+2)||(i+=3,0!==(e=t.input.charCodeAt(i))&&!xt(e)))}function Yt(t,e){1===e?t.result+=" ":e>1&&(t.result+=m.repeat("\n",e-1));}function Wt(t,e){var i,n,r=t.tag,s=t.anchor,o=[],a=!1;if(-1!==t.firstTabInLine)return !1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=o),n=t.input.charCodeAt(t.position);0!==n&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,Rt(t,"tab characters must not be used in indentation")),45===n)&&xt(t.input.charCodeAt(t.position+1));)if(a=!0,t.position++,Bt(t,!0,-1)&&t.lineIndent<=e)o.push(null),n=t.input.charCodeAt(t.position);else if(i=t.line,Gt(t,e,ht,!1,!0),o.push(t.result),Bt(t,!0,-1),n=t.input.charCodeAt(t.position),(t.line===i||t.lineIndent>e)&&0!==n)Rt(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return !!a&&(t.tag=r,t.anchor=s,t.kind="sequence",t.result=o,!0)}function Nt(t){var e,i,n,r,s=!1,o=!1;if(33!==(r=t.input.charCodeAt(t.position)))return !1;if(null!==t.tag&&Rt(t,"duplication of a tag property"),60===(r=t.input.charCodeAt(++t.position))?(s=!0,r=t.input.charCodeAt(++t.position)):33===r?(o=!0,i="!!",r=t.input.charCodeAt(++t.position)):i="!",e=t.position,s){do{r=t.input.charCodeAt(++t.position);}while(0!==r&&62!==r);t.position<t.length?(n=t.input.slice(e,t.position),r=t.input.charCodeAt(++t.position)):Rt(t,"unexpected end of the stream within a verbatim tag");}else {for(;0!==r&&!xt(r);)33===r&&(o?Rt(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),gt.test(i)||Rt(t,"named tag handle cannot contain such characters"),o=!0,e=t.position+1)),r=t.input.charCodeAt(++t.position);n=t.input.slice(e,t.position),vt.test(n)&&Rt(t,"tag suffix cannot contain flow indicator characters");}n&&!yt.test(n)&&Rt(t,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n);}catch(e){Rt(t,"tag name is malformed: "+n);}return s?t.tag=n:st.call(t.tagMap,i)?t.tag=t.tagMap[i]+n:"!"===i?t.tag="!"+n:"!!"===i?t.tag="tag:yaml.org,2002:"+n:Rt(t,'undeclared tag handle "'+i+'"'),!0}function Xt(t){var e,i;if(38!==(i=t.input.charCodeAt(t.position)))return !1;for(null!==t.anchor&&Rt(t,"duplication of an anchor property"),i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!xt(i)&&!Ct(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&Rt(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Gt(t,e,i,n,r){var s,o,a,h,l,u,c,d,p,f=1,v=!1,g=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=lt===i||ht===i,n&&Bt(t,!0,-1)&&(v=!0,t.lineIndent>e?f=1:t.lineIndent===e?f=0:t.lineIndent<e&&(f=-1)),1===f)for(;Nt(t)||Xt(t);)Bt(t,!0,-1)?(v=!0,a=s,t.lineIndent>e?f=1:t.lineIndent===e?f=0:t.lineIndent<e&&(f=-1)):a=!1;if(a&&(a=v||r),1!==f&<!==i||(d=ot===i||at===i?e:e+1,p=t.position-t.lineStart,1===f?a&&(Wt(t,p)||function(t,e,i){var n,r,s,o,a,h,l,u=t.tag,c=t.anchor,d={},p=Object.create(null),f=null,v=null,g=null,y=!1,m=!1;if(-1!==t.firstTabInLine)return !1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=d),l=t.input.charCodeAt(t.position);0!==l;){if(y||-1===t.firstTabInLine||(t.position=t.firstTabInLine,Rt(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),s=t.line,63!==l&&58!==l||!xt(n)){if(o=t.line,a=t.lineStart,h=t.position,!Gt(t,i,at,!1,!0))break;if(t.line===s){for(l=t.input.charCodeAt(t.position);bt(l);)l=t.input.charCodeAt(++t.position);if(58===l)xt(l=t.input.charCodeAt(++t.position))||Rt(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(It(t,d,p,f,v,null,o,a,h),f=v=g=null),m=!0,y=!1,r=!1,f=t.tag,v=t.result;else {if(!m)return t.tag=u,t.anchor=c,!0;Rt(t,"can not read an implicit mapping pair; a colon is missed");}}else {if(!m)return t.tag=u,t.anchor=c,!0;Rt(t,"can not read a block mapping entry; a multiline key may not be an implicit key");}}else 63===l?(y&&(It(t,d,p,f,v,null,o,a,h),f=v=g=null),m=!0,y=!0,r=!0):y?(y=!1,r=!0):Rt(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,l=n;if((t.line===s||t.lineIndent>e)&&(y&&(o=t.line,a=t.lineStart,h=t.position),Gt(t,e,lt,!0,r)&&(y?v=t.result:g=t.result),y||(It(t,d,p,f,v,g,o,a,h),f=v=g=null),Bt(t,!0,-1),l=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&0!==l)Rt(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&It(t,d,p,f,v,null,o,a,h),m&&(t.tag=u,t.anchor=c,t.kind="mapping",t.result=d),m}(t,p,d))||function(t,e){var i,n,r,s,o,a,h,l,u,c,d,p,f=!0,v=t.tag,g=t.anchor,y=Object.create(null);if(91===(p=t.input.charCodeAt(t.position)))o=93,l=!1,s=[];else {if(123!==p)return !1;o=125,l=!0,s={};}for(null!==t.anchor&&(t.anchorMap[t.anchor]=s),p=t.input.charCodeAt(++t.position);0!==p;){if(Bt(t,!0,e),(p=t.input.charCodeAt(t.position))===o)return t.position++,t.tag=v,t.anchor=g,t.kind=l?"mapping":"sequence",t.result=s,!0;f?44===p&&Rt(t,"expected the node content, but found ','"):Rt(t,"missed comma between flow collection entries"),d=null,a=h=!1,63===p&&xt(t.input.charCodeAt(t.position+1))&&(a=h=!0,t.position++,Bt(t,!0,e)),i=t.line,n=t.lineStart,r=t.position,Gt(t,e,ot,!1,!0),c=t.tag,u=t.result,Bt(t,!0,e),p=t.input.charCodeAt(t.position),!h&&t.line!==i||58!==p||(a=!0,p=t.input.charCodeAt(++t.position),Bt(t,!0,e),Gt(t,e,ot,!1,!0),d=t.result),l?It(t,s,y,c,u,d,i,n,r):a?s.push(It(t,null,y,c,u,d,i,n,r)):s.push(u),Bt(t,!0,e),44===(p=t.input.charCodeAt(t.position))?(f=!0,p=t.input.charCodeAt(++t.position)):f=!1;}Rt(t,"unexpected end of the stream within a flow collection");}(t,d)?g=!0:(o&&function(t,e){var i,n,r,s,o,a=ut,h=!1,l=!1,u=e,c=0,d=!1;if(124===(s=t.input.charCodeAt(t.position)))n=!1;else {if(62!==s)return !1;n=!0;}for(t.kind="scalar",t.result="";0!==s;)if(43===(s=t.input.charCodeAt(++t.position))||45===s)ut===a?a=43===s?dt:ct:Rt(t,"repeat of a chomping mode identifier");else {if(!((r=48<=(o=s)&&o<=57?o-48:-1)>=0))break;0===r?Rt(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?Rt(t,"repeat of an indentation width identifier"):(u=e+r-1,l=!0);}if(bt(s)){do{s=t.input.charCodeAt(++t.position);}while(bt(s));if(35===s)do{s=t.input.charCodeAt(++t.position);}while(!kt(s)&&0!==s)}for(;0!==s;){for(jt(t),t.lineIndent=0,s=t.input.charCodeAt(t.position);(!l||t.lineIndent<u)&&32===s;)t.lineIndent++,s=t.input.charCodeAt(++t.position);if(!l&&t.lineIndent>u&&(u=t.lineIndent),kt(s))c++;else {if(t.lineIndent<u){a===dt?t.result+=m.repeat("\n",h?1+c:c):a===ut&&h&&(t.result+="\n");break}for(n?bt(s)?(d=!0,t.result+=m.repeat("\n",h?1+c:c)):d?(d=!1,t.result+=m.repeat("\n",c+1)):0===c?h&&(t.result+=" "):t.result+=m.repeat("\n",c):t.result+=m.repeat("\n",h?1+c:c),h=!0,l=!0,c=0,i=t.position;!kt(s)&&0!==s;)s=t.input.charCodeAt(++t.position);Dt(t,i,t.position,!1);}}return !0}(t,d)||function(t,e){var i,n,r;if(39!==(i=t.input.charCodeAt(t.position)))return !1;for(t.kind="scalar",t.result="",t.position++,n=r=t.position;0!==(i=t.input.charCodeAt(t.position));)if(39===i){if(Dt(t,n,t.position,!0),39!==(i=t.input.charCodeAt(++t.position)))return !0;n=t.position,t.position++,r=t.position;}else kt(i)?(Dt(t,n,r,!0),Yt(t,Bt(t,!1,e)),n=r=t.position):t.position===t.lineStart&&Ft(t)?Rt(t,"unexpected end of the document within a single quoted scalar"):(t.position++,r=t.position);Rt(t,"unexpected end of the stream within a single quoted scalar");}(t,d)||function(t,e){var i,n,r,s,o,a,h;if(34!==(a=t.input.charCodeAt(t.position)))return !1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;0!==(a=t.input.charCodeAt(t.position));){if(34===a)return Dt(t,i,t.position,!0),t.position++,!0;if(92===a){if(Dt(t,i,t.position,!0),kt(a=t.input.charCodeAt(++t.position)))Bt(t,!1,e);else if(a<256&&Tt[a])t.result+=Pt[a],t.position++;else if((o=120===(h=a)?2:117===h?4:85===h?8:0)>0){for(r=o,s=0;r>0;r--)(o=St(a=t.input.charCodeAt(++t.position)))>=0?s=(s<<4)+o:Rt(t,"expected hexadecimal character");t.result+=Ot(s),t.position++;}else Rt(t,"unknown escape sequence");i=n=t.position;}else kt(a)?(Dt(t,i,n,!0),Yt(t,Bt(t,!1,e)),i=n=t.position):t.position===t.lineStart&&Ft(t)?Rt(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position);}Rt(t,"unexpected end of the stream within a double quoted scalar");}(t,d)?g=!0:!function(t){var e,i,n;if(42!==(n=t.input.charCodeAt(t.position)))return !1;for(n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!xt(n)&&!Ct(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&Rt(t,"name of an alias node must contain at least one character"),i=t.input.slice(e,t.position),st.call(t.anchorMap,i)||Rt(t,'unidentified alias "'+i+'"'),t.result=t.anchorMap[i],Bt(t,!0,-1),!0}(t)?function(t,e,i){var n,r,s,o,a,h,l,u,c=t.kind,d=t.result;if(xt(u=t.input.charCodeAt(t.position))||Ct(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)&&(xt(n=t.input.charCodeAt(t.position+1))||i&&Ct(n)))return !1;for(t.kind="scalar",t.result="",r=s=t.position,o=!1;0!==u;){if(58===u){if(xt(n=t.input.charCodeAt(t.position+1))||i&&Ct(n))break}else if(35===u){if(xt(t.input.charCodeAt(t.position-1)))break}else {if(t.position===t.lineStart&&Ft(t)||i&&Ct(u))break;if(kt(u)){if(a=t.line,h=t.lineStart,l=t.lineIndent,Bt(t,!1,-1),t.lineIndent>=e){o=!0,u=t.input.charCodeAt(t.position);continue}t.position=s,t.line=a,t.lineStart=h,t.lineIndent=l;break}}o&&(Dt(t,r,s,!1),Yt(t,t.line-a),r=s=t.position,o=!1),bt(u)||(s=t.position+1),u=t.input.charCodeAt(++t.position);}return Dt(t,r,s,!1),!!t.result||(t.kind=c,t.result=d,!1)}(t,d,ot===i)&&(g=!0,null===t.tag&&(t.tag="?")):(g=!0,null===t.tag&&null===t.anchor||Rt(t,"alias node should not have any properties")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===f&&(g=a&&Wt(t,p))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&Rt(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,l=t.implicitTypes.length;h<l;h+=1)if((c=t.implicitTypes[h]).resolve(t.result)){t.result=c.construct(t.result),t.tag=c.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(st.call(t.typeMap[t.kind||"fallback"],t.tag))c=t.typeMap[t.kind||"fallback"][t.tag];else for(c=null,h=0,l=(u=t.typeMap.multi[t.kind||"fallback"]).length;h<l;h+=1)if(t.tag.slice(0,u[h].tag.length)===u[h].tag){c=u[h];break}c||Rt(t,"unknown tag !<"+t.tag+">"),null!==t.result&&c.kind!==t.kind&&Rt(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+c.kind+'", not "'+t.kind+'"'),c.resolve(t.result,t.tag)?(t.result=c.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):Rt(t,"cannot resolve a node with !<"+t.tag+"> explicit tag");}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||g}function Ht(t){var e,i,n,r,s=t.position,o=!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))&&(Bt(t,!0,-1),r=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==r));){for(o=!0,r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!xt(r);)r=t.input.charCodeAt(++t.position);for(n=[],(i=t.input.slice(e,t.position)).length<1&&Rt(t,"directive name must not be less than one character in length");0!==r;){for(;bt(r);)r=t.input.charCodeAt(++t.position);if(35===r){do{r=t.input.charCodeAt(++t.position);}while(0!==r&&!kt(r));break}if(kt(r))break;for(e=t.position;0!==r&&!xt(r);)r=t.input.charCodeAt(++t.position);n.push(t.input.slice(e,t.position));}0!==r&&jt(t),st.call(At,i)?At[i](t,i,n):Lt(t,'unknown document directive "'+i+'"');}Bt(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,Bt(t,!0,-1)):o&&Rt(t,"directives end mark is expected"),Gt(t,t.lineIndent-1,lt,!1,!0),Bt(t,!0,-1),t.checkLineBreaks&&ft.test(t.input.slice(s,t.position))&&Lt(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Ft(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,Bt(t,!0,-1)):t.position<t.length-1&&Rt(t,"end of the stream or a document separator is expected");}function Vt(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 i=new Et(t,e),n=t.indexOf("\0");for(-1!==n&&(i.position=n,Rt(i,"null byte is not allowed in input")),i.input+="\0";32===i.input.charCodeAt(i.position);)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)Ht(i);return i.documents}var Ut={loadAll:function(t,e,i){null!==e&&"object"==typeof e&&void 0===i&&(i=e,e=null);var n=Vt(t,i);if("function"!=typeof e)return n;for(var r=0,s=n.length;r<s;r+=1)e(n[r]);},load:function(t,e){var i=Vt(t,e);if(0!==i.length){if(1===i.length)return i[0];throw new x("expected a single document in the stream, but found more")}}},Jt=Object.prototype.toString,Kt=Object.prototype.hasOwnProperty,qt=65279,$t=9,Zt=10,Qt=13,te=32,ee=33,ie=34,ne=35,re=37,se=38,oe=39,ae=42,he=44,le=45,ue=58,ce=61,de=62,pe=63,fe=64,ve=91,ge=93,ye=96,me=123,ke=124,be=125,xe={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"},Ce=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Se=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function we(t){var e,i,n;if(e=t.toString(16).toUpperCase(),t<=255)i="x",n=2;else if(t<=65535)i="u",n=4;else {if(!(t<=4294967295))throw new x("code point within a string may not be greater than 0xFFFFFFFF");i="U",n=8;}return "\\"+i+m.repeat("0",n-e.length)+e}var Oe=1,Te=2;function Pe(t){this.schema=t.schema||rt,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=m.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=function(t,e){var i,n,r,s,o,a,h;if(null===e)return {};for(i={},r=0,s=(n=Object.keys(e)).length;r<s;r+=1)o=n[r],a=String(e[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(h=t.compiledTypeMap.fallback[o])&&Kt.call(h.styleAliases,a)&&(a=h.styleAliases[a]),i[o]=a;return i}(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?Te:Oe,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 _e(t,e){for(var i,n=m.repeat(" ",e),r=0,s=-1,o="",a=t.length;r<a;)-1===(s=t.indexOf("\n",r))?(i=t.slice(r),r=a):(i=t.slice(r,s+1),r=s+1),i.length&&"\n"!==i&&(o+=n),o+=i;return o}function Ee(t,e){return "\n"+m.repeat(" ",t.indent*e)}function Me(t){return t===te||t===$t}function Re(t){return 32<=t&&t<=126||161<=t&&t<=55295&&8232!==t&&8233!==t||57344<=t&&t<=65533&&t!==qt||65536<=t&&t<=1114111}function Le(t){return Re(t)&&t!==qt&&t!==Qt&&t!==Zt}function Ae(t,e,i){var n=Le(t),r=n&&!Me(t);return (i?n:n&&t!==he&&t!==ve&&t!==ge&&t!==me&&t!==be)&&t!==ne&&!(e===ue&&!r)||Le(e)&&!Me(e)&&t===ne||e===ue&&r}function De(t,e){var i,n=t.charCodeAt(e);return n>=55296&&n<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1))>=56320&&i<=57343?1024*(n-55296)+i-56320+65536:n}function ze(t){return /^\n* /.test(t)}var Ie=1,je=2,Be=3,Fe=4,Ye=5;function We(t,e,i,n,r,s,o,a){var h,l,u=0,c=null,d=!1,p=!1,f=-1!==n,v=-1,g=Re(l=De(t,0))&&l!==qt&&!Me(l)&&l!==le&&l!==pe&&l!==ue&&l!==he&&l!==ve&&l!==ge&&l!==me&&l!==be&&l!==ne&&l!==se&&l!==ae&&l!==ee&&l!==ke&&l!==ce&&l!==de&&l!==oe&&l!==ie&&l!==re&&l!==fe&&l!==ye&&function(t){return !Me(t)&&t!==ue}(De(t,t.length-1));if(e||o)for(h=0;h<t.length;u>=65536?h+=2:h++){if(!Re(u=De(t,h)))return Ye;g=g&&Ae(u,c,a),c=u;}else {for(h=0;h<t.length;u>=65536?h+=2:h++){if((u=De(t,h))===Zt)d=!0,f&&(p=p||h-v-1>n&&" "!==t[v+1],v=h);else if(!Re(u))return Ye;g=g&&Ae(u,c,a),c=u;}p=p||f&&h-v-1>n&&" "!==t[v+1];}return d||p?i>9&&ze(t)?Ye:o?s===Te?Ye:je:p?Fe:Be:!g||o||r(t)?s===Te?Ye:je:Ie}function Ne(t,e,i,n,r){t.dump=function(){if(0===e.length)return t.quotingType===Te?'""':"''";if(!t.noCompatMode&&(-1!==Ce.indexOf(e)||Se.test(e)))return t.quotingType===Te?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,i),o=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=n||t.flowLevel>-1&&i>=t.flowLevel;switch(We(e,a,t.indent,o,(function(e){return function(t,e){var i,n;for(i=0,n=t.implicitTypes.length;i<n;i+=1)if(t.implicitTypes[i].resolve(e))return !0;return !1}(t,e)}),t.quotingType,t.forceQuotes&&!n,r)){case Ie:return e;case je:return "'"+e.replace(/'/g,"''")+"'";case Be:return "|"+Xe(e,t.indent)+Ge(_e(e,s));case Fe:return ">"+Xe(e,t.indent)+Ge(_e(function(t,e){var i,n,r=/(\n+)([^\n]*)/g,s=(a=t.indexOf("\n"),a=-1!==a?a:t.length,r.lastIndex=a,He(t.slice(0,a),e)),o="\n"===t[0]||" "===t[0];var a;for(;n=r.exec(t);){var h=n[1],l=n[2];i=" "===l[0],s+=h+(o||i||""===l?"":"\n")+He(l,e),o=i;}return s}(e,o),s));case Ye:return '"'+function(t){for(var e,i="",n=0,r=0;r<t.length;n>=65536?r+=2:r++)n=De(t,r),!(e=xe[n])&&Re(n)?(i+=t[r],n>=65536&&(i+=t[r+1])):i+=e||we(n);return i}(e)+'"';default:throw new x("impossible error: invalid scalar style")}}();}function Xe(t,e){var i=ze(t)?String(e):"",n="\n"===t[t.length-1];return i+(n&&("\n"===t[t.length-2]||"\n"===t)?"+":n?"":"-")+"\n"}function Ge(t){return "\n"===t[t.length-1]?t.slice(0,-1):t}function He(t,e){if(""===t||" "===t[0])return t;for(var i,n,r=/ [^ ]/g,s=0,o=0,a=0,h="";i=r.exec(t);)(a=i.index)-s>e&&(n=o>s?o:a,h+="\n"+t.slice(s,n),s=n+1),o=a;return h+="\n",t.length-s>e&&o>s?h+=t.slice(s,o)+"\n"+t.slice(o+1):h+=t.slice(s),h.slice(1)}function Ve(t,e,i,n){var r,s,o,a="",h=t.tag;for(r=0,s=i.length;r<s;r+=1)o=i[r],t.replacer&&(o=t.replacer.call(i,String(r),o)),(Je(t,e+1,o,!0,!0,!1,!0)||void 0===o&&Je(t,e+1,null,!0,!0,!1,!0))&&(n&&""===a||(a+=Ee(t,e)),t.dump&&Zt===t.dump.charCodeAt(0)?a+="-":a+="- ",a+=t.dump);t.tag=h,t.dump=a||"[]";}function Ue(t,e,i){var n,r,s,o,a,h;for(s=0,o=(r=i?t.explicitTypes:t.implicitTypes).length;s<o;s+=1)if(((a=r[s]).instanceOf||a.predicate)&&(!a.instanceOf||"object"==typeof e&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(i?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(h=t.styleMap[a.tag]||a.defaultStyle,"[object Function]"===Jt.call(a.represent))n=a.represent(e,h);else {if(!Kt.call(a.represent,h))throw new x("!<"+a.tag+'> tag resolver accepts not "'+h+'" style');n=a.represent[h](e,h);}t.dump=n;}return !0}return !1}function Je(t,e,i,n,r,s,o){t.tag=null,t.dump=i,Ue(t,i,!1)||Ue(t,i,!0);var a,h=Jt.call(t.dump),l=n;n&&(n=t.flowLevel<0||t.flowLevel>e);var u,c,d="[object Object]"===h||"[object Array]"===h;if(d&&(c=-1!==(u=t.duplicates.indexOf(i))),(null!==t.tag&&"?"!==t.tag||c||2!==t.indent&&e>0)&&(r=!1),c&&t.usedDuplicates[u])t.dump="*ref_"+u;else {if(d&&c&&!t.usedDuplicates[u]&&(t.usedDuplicates[u]=!0),"[object Object]"===h)n&&0!==Object.keys(t.dump).length?(!function(t,e,i,n){var r,s,o,a,h,l,u="",c=t.tag,d=Object.keys(i);if(!0===t.sortKeys)d.sort();else if("function"==typeof t.sortKeys)d.sort(t.sortKeys);else if(t.sortKeys)throw new x("sortKeys must be a boolean or a function");for(r=0,s=d.length;r<s;r+=1)l="",n&&""===u||(l+=Ee(t,e)),a=i[o=d[r]],t.replacer&&(a=t.replacer.call(i,o,a)),Je(t,e+1,o,!0,!0,!0)&&((h=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024)&&(t.dump&&Zt===t.dump.charCodeAt(0)?l+="?":l+="? "),l+=t.dump,h&&(l+=Ee(t,e)),Je(t,e+1,a,!0,h)&&(t.dump&&Zt===t.dump.charCodeAt(0)?l+=":":l+=": ",u+=l+=t.dump));t.tag=c,t.dump=u||"{}";}(t,e,t.dump,r),c&&(t.dump="&ref_"+u+t.dump)):(!function(t,e,i){var n,r,s,o,a,h="",l=t.tag,u=Object.keys(i);for(n=0,r=u.length;n<r;n+=1)a="",""!==h&&(a+=", "),t.condenseFlow&&(a+='"'),o=i[s=u[n]],t.replacer&&(o=t.replacer.call(i,s,o)),Je(t,e,s,!1,!1)&&(t.dump.length>1024&&(a+="? "),a+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Je(t,e,o,!1,!1)&&(h+=a+=t.dump));t.tag=l,t.dump="{"+h+"}";}(t,e,t.dump),c&&(t.dump="&ref_"+u+" "+t.dump));else if("[object Array]"===h)n&&0!==t.dump.length?(t.noArrayIndent&&!o&&e>0?Ve(t,e-1,t.dump,r):Ve(t,e,t.dump,r),c&&(t.dump="&ref_"+u+t.dump)):(!function(t,e,i){var n,r,s,o="",a=t.tag;for(n=0,r=i.length;n<r;n+=1)s=i[n],t.replacer&&(s=t.replacer.call(i,String(n),s)),(Je(t,e,s,!1,!1)||void 0===s&&Je(t,e,null,!1,!1))&&(""!==o&&(o+=","+(t.condenseFlow?"":" ")),o+=t.dump);t.tag=a,t.dump="["+o+"]";}(t,e,t.dump),c&&(t.dump="&ref_"+u+" "+t.dump));else {if("[object String]"!==h){if("[object Undefined]"===h)return !1;if(t.skipInvalid)return !1;throw new x("unacceptable kind of an object to dump "+h)}"?"!==t.tag&&Ne(t,t.dump,e,s,l);}null!==t.tag&&"?"!==t.tag&&(a=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),a="!"===t.tag[0]?"!"+a:"tag:yaml.org,2002:"===a.slice(0,18)?"!!"+a.slice(18):"!<"+a+">",t.dump=a+" "+t.dump);}return !0}function Ke(t,e){var i,n,r=[],s=[];for(qe(t,r,s),i=0,n=s.length;i<n;i+=1)e.duplicates.push(r[s[i]]);e.usedDuplicates=new Array(n);}function qe(t,e,i){var n,r,s;if(null!==t&&"object"==typeof t)if(-1!==(r=e.indexOf(t)))-1===i.indexOf(r)&&i.push(r);else if(e.push(t),Array.isArray(t))for(r=0,s=t.length;r<s;r+=1)qe(t[r],e,i);else for(r=0,s=(n=Object.keys(t)).length;r<s;r+=1)qe(t[n[r]],e,i);}function $e(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 Ze={Type:P,Schema:M,FAILSAFE_SCHEMA:D,JSON_SCHEMA:X,CORE_SCHEMA:G,DEFAULT_SCHEMA:rt,load:Ut.load,loadAll:Ut.loadAll,dump:{dump:function(t,e){var i=new Pe(e=e||{});i.noRefs||Ke(t,i);var n=t;return i.replacer&&(n=i.replacer.call({"":n},"",n)),Je(i,0,n,!0,!0)?i.dump+"\n":""}}.dump,YAMLException:x,types:{binary:q,float:N,map:A,null:z,pairs:et,set:nt,timestamp:U,bool:I,int:F,merge:J,omap:Q,seq:L,str:R},safeLoad:$e("safeLoad","load"),safeLoadAll:$e("safeLoadAll","loadAll"),safeDump:$e("safeDump","dump")},Qe=function(t){if("string"==typeof t)try{return Ze.load(t)}catch(t){return void console.log(t)}return t},ti=function e(i){var n,r,s;if(null==i||"object"!==t(i))return i;if(n=Array.isArray(i)?[]:{},function(e){if("object"!==t(e)||e.nodeType||e===e.window)return !1;try{if(e.constructor&&!{}.hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))return !1}catch(t){return !1}return !0}(i))for(s in i)r=i[s],n[s]=e(r);else n=i;return n},ei=function e(i,n){if(void 0===n)return i;for(var r in n)if(i.hasOwnProperty(r)){var s=i[r];s&&"object"===t(s)&&e(s,n[r]);}else i[r]=ti(n[r]);return i},ii=function(t,e){if(void 0===e)return t;if(t.hasOwnProperty("name")&&ei(t,e["#".concat(t.name)]),t.hasOwnProperty("$class"))for(var i=t.$class.split(" "),n=0,r=i.length;n<r;n++)ei(t,e[".".concat(i[n])]);return t.hasOwnProperty("$type")&&ei(t,e[t.$type]),t},ni=["tint","alpha","visible","flipX","flipY"],ri=function(t,e){for(var i=0,n=ni.length;i<n;i++){var r=ni[i],s=e[r];void 0!==s&&(t[r]=s);}return e.cropResize&&!t.resize&&(t.resize=function(e,i){return t.setCrop(0,0,e,i),t}),t},si=function(t,e,i,n,r,s){var o=new s(t,0,0,(e=ii(e,n)).key,e.frame);return void 0!==e.width&&o.setDisplayWidth(e.width),void 0!==e.height&&o.setDisplayHeight(e.height),ri(o,e),t.add.existing(o),o},oi=Phaser.GameObjects.Image,ai=Phaser.GameObjects.Sprite,hi=Phaser.GameObjects.Video,li=Phaser.GameObjects.Text,ui=Phaser.Renderer.WebGL.Utils,ci={renderWebGL:function(t,e,i,n){if(0!==e.width&&0!==e.height){i.addToRenderList(e);var r=e.frame,s=r.width,o=r.height,a=ui.getTintAppendFloatAlpha,h=t.pipelines.set(e.pipeline,e),l=h.setTexture2D(r.glTexture,e);t.pipelines.preBatch(e),h.batchTexture(e,r.glTexture,s,o,e.x,e.y,s/e.style.resolution,o/e.style.resolution,e.scaleX,e.scaleY,e.rotation,e.flipX,e.flipY,e.scrollFactorX,e.scrollFactorY,e.displayOriginX,e.displayOriginY,0,0,s,o,a(e.tintTopLeft,i.alpha*e._alphaTL),a(e.tintTopRight,i.alpha*e._alphaTR),a(e.tintBottomLeft,i.alpha*e._alphaBL),a(e.tintBottomRight,i.alpha*e._alphaBR),e.tintFill,0,0,i,n,!1,l),t.pipelines.postBatch(e);}},renderCanvas:function(t,e,i,n){0!==e.width&&0!==e.height&&(i.addToRenderList(e),t.batchSprite(e,e.frame,i,n));}},di=Phaser.Display.Canvas.CanvasPool,pi=!1,fi=function(t){pi||(void 0===t&&(t=60),parseInt(Phaser.VERSION.match(/\.(\d+)\./)[1])<t&&console.error("Minimum supported version : 3.".concat(t)),pi=!0);};fi();var vi=function(t){r(s,t);var i=l(s);function s(){return e(this,s),i.apply(this,arguments)}return n(s,[{key:"setStyle",value:function(t){return this.style.setStyle(t)}},{key:"setFont",value:function(t){return this.style.setFont(t)}},{key:"setFontFamily",value:function(t){return this.style.setFontFamily(t)}},{key:"setFontSize",value:function(t){return this.style.setFontSize(t)}},{key:"setFontStyle",value:function(t){return this.style.setFontStyle(t)}},{key:"setTestString",value:function(t){return this.style.setTestString(t)}},{key:"setFixedSize",value:function(t,e){return this.style.setFixedSize(t,e)}},{key:"setBackgroundColor",value:function(t,e,i){return this.style.setBackgroundColor(t,e,i)}},{key:"setBackgroundStrokeColor",value:function(t,e){return this.style.setBackgroundStrokeColor(t,e)}},{key:"setBackgroundCornerRadius",value:function(t,e){return this.style.setBackgroundCornerRadius(t,e)}},{key:"setFill",value:function(t){return this.style.setFill(t)}},{key:"setColor",value:function(t){return this.style.setColor(t)}},{key:"setStroke",value:function(t,e){return this.style.setStroke(t,e)}},{key:"setShadow",value:function(t,e,i,n,r,s){return this.style.setShadow(t,e,i,n,r,s)}},{key:"setShadowOffset",value:function(t,e){return this.style.setShadowOffset(t,e)}},{key:"setShadowColor",value:function(t){return this.style.setShadowColor(t)}},{key:"setShadowBlur",value:function(t){return this.style.setShadowBlur(t)}},{key:"setShadowStroke",value:function(t){return this.style.setShadowStroke(t)}},{key:"setShadowFill",value:function(t){return this.style.setShadowFill(t)}},{key:"setWrapMode",value:function(t){return this.style.setWrapMode(t)}},{key:"setWrapWidth",value:function(t){return this.style.setWrapWidth(t)}},{key:"setWordWrapWidth",value:function(t){return this.style.setWrapWidth(t)}},{key:"setAlign",value:function(t){return this.style.setHAlign(t)}},{key:"setHAlign",value:function(t){return this.style.setHAlign(t)}},{key:"setVAlign",value:function(t){return this.style.setVAlign(t)}},{key:"setLineSpacing",value:function(t){return this.style.setLineSpacing(t)}},{key:"lineSpacing",get:function(){return this.style.lineSpacing},set:function(t){this.setLineSpacing(t);}},{key:"setXOffset",value:function(t){return this.style.setXOffset(t)}},{key:"setMaxLines",value:function(t){return this.style.setMaxLines(t)}},{key:"setResolution",value:function(t){return this.style.setResolution(t)}},{key:"getTextMetrics",value:function(){return this.style.getTextMetrics()}},{key:"setTextMetrics",value:function(t,e){return this.style.setTextMetrics(t,e)}},{key:"measureTextMargins",value:function(t,e){return function(t,e,i){void 0===i&&(i={});var n=di.create(this),r=n.getContext("2d",{willReadFrequently:!0});t.syncFont(n,r);var s=r.measureText(e),o=Math.ceil(s.width*t.baselineX),a=o,h=2*a;if(a=a*t.baselineY|0,n.width=o,n.height=h,r.fillStyle="#f00",r.fillRect(0,0,o,h),r.font=t._font,r.textBaseline="alphabetic",r.fillStyle="#000",r.fillText(t.testString,0,a),i.left=0,0===o||0===h||!r.getImageData(0,0,o,h))return di.remove(n),i;for(var l=r.getImageData(0,0,o,h).data,u=!1,c=0;c<o;c++){for(var d=0;d<h;d++)if(255!==l[4*(d*o+c)]){i.left=c,u=!0;break}if(u)break}return di.remove(n),i}(this.style,t,e)}}]),s}(Phaser.GameObjects.GameObject),gi=Phaser.GameObjects.Components;Phaser.Class.mixin(vi,[gi.Alpha,gi.BlendMode,gi.ComputedSize,gi.Crop,gi.Depth,gi.Flip,gi.GetBounds,gi.Mask,gi.Origin,gi.Pipeline,gi.PostPipeline,gi.ScrollFactor,gi.Tint,gi.Transform,gi.Visible,ci]);var yi=Phaser.Utils.String.Pad,mi=function(e,i,n){if(null==e)return e;switch(t(e)){case"string":default:return e;case"number":return "#".concat(yi(Math.floor(e).toString(16),6,"0",1));case"function":return e(i,n);case"object":return e.hasOwnProperty("r")?e.hasOwnProperty("a")?"rgba(".concat(e.r,",").concat(e.g,",").concat(e.b,",").concat(e.a,")"):"rgb(".concat(e.r,",").concat(e.g,",").concat(e.b,")"):e.hasOwnProperty("h")?e.hasOwnProperty("a")?"hsla(".concat(e.h,",").concat(e.s,",").concat(e.l,",").concat(e.a,")"):"hsl(".concat(e.h,",").concat(e.s,",").concat(e.l,")"):e}},ki={backgroundColor:["backgroundColor",null,mi],backgroundColor2:["backgroundColor2",null,m