starling-framework
Version:
A fast, productive library for 2D cross-platform development.
2 lines • 629 kB
JavaScript
/*! For license information please see starling.min.js.LICENSE.txt */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("openfl/errors/ArgumentError"),require("openfl/Vector"),require("openfl/geom/Matrix"),require("openfl/errors/Error"),require("openfl/geom/Point"),require("openfl/geom/Vector3D"),require("openfl/geom/Matrix3D"),require("openfl/geom/Rectangle"),require("openfl/Lib"),require("openfl/display/Shape"),require("openfl/text/TextField"),require("openfl/text/TextFormat"),require("openfl/system/Capabilities"),require("openfl/display/Stage"),require("openfl/events/MouseEvent"),require("openfl/events/TouchEvent"),require("openfl/display3D/Context3D"),require("openfl/text/Font"),require("openfl/errors/RangeError"),require("openfl/system/System"),require("openfl/display/Bitmap"),require("openfl/display/BitmapData"),require("openfl/utils/ByteArray"),require("openfl/display3D/textures/Texture"),require("openfl/events/Event"),require("openfl/display3D/textures/RectangleTexture"),require("openfl/display3D/textures/VideoTexture"),require("openfl/utils/AGALMiniAssembler"),require("openfl/errors/IllegalOperationError"),require("openfl/errors/EOFError"),require("openfl/display/DisplayObjectContainer"),require("openfl/ui/Multitouch"),require("openfl/display/Sprite"),require("openfl/ui/Mouse"),require("openfl/net/URLRequest"),require("openfl/media/Sound"),require("openfl/net/URLLoader"),require("openfl/display/Loader"),require("openfl/system/LoaderContext"),require("openfl/display/GraphicsSolidFill"),require("openfl/display/GraphicsPath"),require("openfl/display/GraphicsEndFill")):"function"==typeof define&&define.amd?define(["openfl/errors/ArgumentError","openfl/Vector","openfl/geom/Matrix","openfl/errors/Error","openfl/geom/Point","openfl/geom/Vector3D","openfl/geom/Matrix3D","openfl/geom/Rectangle","openfl/Lib","openfl/display/Shape","openfl/text/TextField","openfl/text/TextFormat","openfl/system/Capabilities","openfl/display/Stage","openfl/events/MouseEvent","openfl/events/TouchEvent","openfl/display3D/Context3D","openfl/text/Font","openfl/errors/RangeError","openfl/system/System","openfl/display/Bitmap","openfl/display/BitmapData","openfl/utils/ByteArray","openfl/display3D/textures/Texture","openfl/events/Event","openfl/display3D/textures/RectangleTexture","openfl/display3D/textures/VideoTexture","openfl/utils/AGALMiniAssembler","openfl/errors/IllegalOperationError","openfl/errors/EOFError","openfl/display/DisplayObjectContainer","openfl/ui/Multitouch","openfl/display/Sprite","openfl/ui/Mouse","openfl/net/URLRequest","openfl/media/Sound","openfl/net/URLLoader","openfl/display/Loader","openfl/system/LoaderContext","openfl/display/GraphicsSolidFill","openfl/display/GraphicsPath","openfl/display/GraphicsEndFill"],e):"object"==typeof exports?exports.starling=e(require("openfl/errors/ArgumentError"),require("openfl/Vector"),require("openfl/geom/Matrix"),require("openfl/errors/Error"),require("openfl/geom/Point"),require("openfl/geom/Vector3D"),require("openfl/geom/Matrix3D"),require("openfl/geom/Rectangle"),require("openfl/Lib"),require("openfl/display/Shape"),require("openfl/text/TextField"),require("openfl/text/TextFormat"),require("openfl/system/Capabilities"),require("openfl/display/Stage"),require("openfl/events/MouseEvent"),require("openfl/events/TouchEvent"),require("openfl/display3D/Context3D"),require("openfl/text/Font"),require("openfl/errors/RangeError"),require("openfl/system/System"),require("openfl/display/Bitmap"),require("openfl/display/BitmapData"),require("openfl/utils/ByteArray"),require("openfl/display3D/textures/Texture"),require("openfl/events/Event"),require("openfl/display3D/textures/RectangleTexture"),require("openfl/display3D/textures/VideoTexture"),require("openfl/utils/AGALMiniAssembler"),require("openfl/errors/IllegalOperationError"),require("openfl/errors/EOFError"),require("openfl/display/DisplayObjectContainer"),require("openfl/ui/Multitouch"),require("openfl/display/Sprite"),require("openfl/ui/Mouse"),require("openfl/net/URLRequest"),require("openfl/media/Sound"),require("openfl/net/URLLoader"),require("openfl/display/Loader"),require("openfl/system/LoaderContext"),require("openfl/display/GraphicsSolidFill"),require("openfl/display/GraphicsPath"),require("openfl/display/GraphicsEndFill")):t.starling=e(t.openfl.errors.ArgumentError,t.openfl.Vector,t.openfl.geom.Matrix,t.openfl.errors.Error,t.openfl.geom.Point,t.openfl.geom.Vector3D,t.openfl.geom.Matrix3D,t.openfl.geom.Rectangle,t.openfl.Lib,t.openfl.display.Shape,t.openfl.text.TextField,t.openfl.text.TextFormat,t.openfl.system.Capabilities,t.openfl.display.Stage,t.openfl.events.MouseEvent,t.openfl.events.TouchEvent,t.openfl.display3D.Context3D,t.openfl.text.Font,t.openfl.errors.RangeError,t.openfl.system.System,t.openfl.display.Bitmap,t.openfl.display.BitmapData,t.openfl.utils.ByteArray,t.openfl.display3D.textures.Texture,t.openfl.events.Event,t.openfl.display3D.textures.RectangleTexture,t.openfl.display3D.textures.VideoTexture,t.openfl.utils.AGALMiniAssembler,t.openfl.errors.IllegalOperationError,t.openfl.errors.EOFError,t.openfl.display.DisplayObjectContainer,t.openfl.ui.Multitouch,t.openfl.display.Sprite,t.openfl.ui.Mouse,t.openfl.net.URLRequest,t.openfl.media.Sound,t.openfl.net.URLLoader,t.openfl.display.Loader,t.openfl.system.LoaderContext,t.openfl.display.GraphicsSolidFill,t.openfl.display.GraphicsPath,t.openfl.display.GraphicsEndFill)}(self,(__WEBPACK_EXTERNAL_MODULE__818__,__WEBPACK_EXTERNAL_MODULE__2991__,__WEBPACK_EXTERNAL_MODULE__1264__,__WEBPACK_EXTERNAL_MODULE__8890__,__WEBPACK_EXTERNAL_MODULE__2714__,__WEBPACK_EXTERNAL_MODULE__2628__,__WEBPACK_EXTERNAL_MODULE__440__,__WEBPACK_EXTERNAL_MODULE__22__,__WEBPACK_EXTERNAL_MODULE__2723__,__WEBPACK_EXTERNAL_MODULE__5914__,__WEBPACK_EXTERNAL_MODULE__5734__,__WEBPACK_EXTERNAL_MODULE__2432__,__WEBPACK_EXTERNAL_MODULE__5136__,__WEBPACK_EXTERNAL_MODULE__2582__,__WEBPACK_EXTERNAL_MODULE__5636__,__WEBPACK_EXTERNAL_MODULE__6876__,__WEBPACK_EXTERNAL_MODULE__8822__,__WEBPACK_EXTERNAL_MODULE__4332__,__WEBPACK_EXTERNAL_MODULE__4596__,__WEBPACK_EXTERNAL_MODULE__1164__,__WEBPACK_EXTERNAL_MODULE__3728__,__WEBPACK_EXTERNAL_MODULE__2056__,__WEBPACK_EXTERNAL_MODULE__1682__,__WEBPACK_EXTERNAL_MODULE__1117__,__WEBPACK_EXTERNAL_MODULE__3058__,__WEBPACK_EXTERNAL_MODULE__4845__,__WEBPACK_EXTERNAL_MODULE__3389__,__WEBPACK_EXTERNAL_MODULE__9634__,__WEBPACK_EXTERNAL_MODULE__4862__,__WEBPACK_EXTERNAL_MODULE__9788__,__WEBPACK_EXTERNAL_MODULE__9560__,__WEBPACK_EXTERNAL_MODULE__7004__,__WEBPACK_EXTERNAL_MODULE__1948__,__WEBPACK_EXTERNAL_MODULE__4170__,__WEBPACK_EXTERNAL_MODULE__5176__,__WEBPACK_EXTERNAL_MODULE__1394__,__WEBPACK_EXTERNAL_MODULE__6814__,__WEBPACK_EXTERNAL_MODULE__76__,__WEBPACK_EXTERNAL_MODULE__7298__,__WEBPACK_EXTERNAL_MODULE__5410__,__WEBPACK_EXTERNAL_MODULE__3540__,__WEBPACK_EXTERNAL_MODULE__5798__)=>(()=>{var __webpack_modules__={6344(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;function r(){return n(6507)}function s(){return n(8330)}n(7268).A,n(7789).A;var a=function(t,e){this.r=new RegExp(t,e.split("u").join(""))};a.__name__="EReg",a.__isInterface__=!1,(a.prototype={match:function(t){return this.r.global&&(this.r.lastIndex=0),this.r.m=this.r.exec(t),this.r.s=t,null!=this.r.m},matched:function(t){if(null!=this.r.m&&t>=0&&t<this.r.m.length)return this.r.m[t];throw new(r().default)("EReg::matched")},matchedLeft:function(){if(null==this.r.m)throw new(r().default)("No string matched");return s().default.substr(this.r.s,0,this.r.m.index)},matchedRight:function(){if(null==this.r.m)throw new(r().default)("No string matched");var t=this.r.m.index+this.r.m[0].length;return s().default.substr(this.r.s,t,this.r.s.length-t)},matchedPos:function(){if(null==this.r.m)throw new(r().default)("No string matched");return{pos:this.r.m.index,len:this.r.m[0].length}},matchSub:function(t,e,n){if(null==n&&(n=-1),this.r.global){this.r.lastIndex=e,this.r.m=this.r.exec(n<0?t:s().default.substr(t,0,e+n));var i=null!=this.r.m;return i&&(this.r.s=t),i}var r=this.match(n<0?s().default.substr(t,e,null):s().default.substr(t,e,n));return r&&(this.r.s=t,this.r.m.index+=e),r},split:function(t){var e="#__delim__#";return this.replace(t,e).split(e)},replace:function(t,e){return t.replace(this.r,e)},map:function(t,e){for(var i=0,r=new(n(9905).default);!(i>=t.length);){if(!this.matchSub(t,i)){r.add(s().default.substr(t,i,null));break}var a=this.matchedPos();if(r.add(s().default.substr(t,i,a.pos-i)),r.add(e(this)),0==a.len?(r.add(s().default.substr(t,a.pos,1)),i=a.pos+1):i=a.pos+a.len,!this.r.global)break}return!this.r.global&&i>0&&i<t.length&&r.add(s().default.substr(t,i,null)),r.toString()}}).__class__=a.prototype.constructor=i.EReg=a,a.escape=function(t){return t.replace(a.escapeRe,"\\$&")},a.escapeRe=new RegExp("[.*+?^${}()|[\\]\\\\]","g"),e.default=a},8330(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;n(7268).A,n(7789).A;var r=function(){};r.__name__="HxOverrides",r.__isInterface__=!1,(r.prototype={}).__class__=r.prototype.constructor=i.HxOverrides=r,r.dateStr=function(t){var e=t.getMonth()+1,n=t.getDate(),i=t.getHours(),r=t.getMinutes(),s=t.getSeconds();return t.getFullYear()+"-"+(e<10?"0"+e:""+e)+"-"+(n<10?"0"+n:""+n)+" "+(i<10?"0"+i:""+i)+":"+(r<10?"0"+r:""+r)+":"+(s<10?"0"+s:""+s)},r.strDate=function(t){switch(t.length){case 8:var e=t.split(":"),i=new Date;return i.setTime(0),i.setUTCHours(e[0]),i.setUTCMinutes(e[1]),i.setUTCSeconds(e[2]),i;case 10:var r=t.split("-");return new Date(r[0],r[1]-1,r[2],0,0,0);case 19:var s=t.split(" "),a=s[0].split("-"),o=s[1].split(":");return new Date(a[0],a[1]-1,a[2],o[0],o[1],o[2]);default:throw new(n(6507).default)("Invalid date format : "+t)}},r.cca=function(t,e){var i=t.charCodeAt(e);return i!=i?n(3516).default.get_undefined():i},r.substr=function(t,e,n){if(null==n)n=t.length;else if(n<0){if(0!=e)return"";n=t.length+n}return t.substr(e,n)},r.indexOf=function(t,e,n){var i=t.length;for(n<0&&(n+=i)<0&&(n=0);n<i;){if(t[n]===e)return n;++n}return-1},r.lastIndexOf=function(t,e,n){var i=t.length;for(n>=i?n=i-1:n<0&&(n+=i);n>=0;){if(t[n]===e)return n;--n}return-1},r.remove=function(t,e){var n=t.indexOf(e);return-1!=n&&(t.splice(n,1),!0)},r.iter=function(t){return{cur:0,arr:t,hasNext:function(){return this.cur<this.arr.length},next:function(){return this.arr[this.cur++]}}},e.default=r},5198(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;function r(){return n(5215)}n(7268).A,n(7789).A;var s=function(){};s.__name__="Reflect",s.__isInterface__=!1,(s.prototype={}).__class__=s.prototype.constructor=i.Reflect=s,s.hasField=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.field=function(t,e){try{return t[e]}catch(t){return t instanceof n(6507).default&&t.val,null}},s.setField=function(t,e,n){t[e]=n},s.getProperty=function(t,e){var n;return null==t?null:t.__properties__&&(n=t.__properties__["get_"+e])?t[n]():t[e]},s.setProperty=function(t,e,n){var i;t.__properties__&&(i=t.__properties__["set_"+e])?t[i](n):t[e]=n},s.callMethod=function(t,e,n){return e.apply(t,n)},s.fields=function(t){var e=[];if(null!=t){var n=Object.prototype.hasOwnProperty;for(var i in t)"__id__"!=i&&"hx__closures__"!=i&&n.call(t,i)&&e.push(i)}return e},s.isFunction=function(t){return"function"==typeof t&&!(r().default.isClass(t)||r().default.isEnum(t))},s.compare=function(t,e){return t==e?0:t>e?1:-1},s.compareMethods=function(t,e){return t==e||!(!s.isFunction(t)||!s.isFunction(e))&&t.scope==e.scope&&t.method==e.method&&null!=t.method},s.isObject=function(t){if(null==t)return!1;var e=typeof t;return"string"==e||"object"==e&&null==t.__enum__||"function"==e&&null!=(r().default.isClass(t)||r().default.isEnum(t))},s.isEnumValue=function(t){return null!=t&&null!=t.__enum__},s.deleteField=function(t,e){return!!s.hasField(t,e)&&(delete t[e],!0)},s.copy=function(t){if(null==t)return null;for(var e={},n=0,i=s.fields(t);n<i.length;){var r=i[n];++n,s.setField(e,r,s.field(t,r))}return e},s.makeVarArgs=function(t){return function(){var e=Array.prototype.slice.call(arguments);return t(e)}},e.default=s},6546(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;function r(){return n(5215)}function s(){return n(1199)}n(7268).A,n(7789).A;var a=function(){};a.__name__="Std",a.__isInterface__=!1,(a.prototype={}).__class__=a.prototype.constructor=i.Std=a,String.prototype.__class__=i.String=String,String.__name__="String",i.Array=Array,Array.__name__="Array",Date.prototype.__class__=i.Date=Date,Date.__name__="Date",i.Int={},i.Dynamic={},i.Float=Number,i.Bool=Boolean,i.Class={},i.Enum={},a.is=function(t,e){return r().default.__instanceof(t,e)},a.downcast=function(t,e){return r().default.__downcastCheck(t,e)?t:null},a.instance=function(t,e){return a.downcast(t,e)},a.string=function(t){return r().default.__string_rec(t,"")},a.int=function(t){return 0|t},a.parseInt=function(t){if(null!=t)for(var e=0,n=t.length;e<n;){var i=e++,r=s().default.fastCodeAt(t,i);if(r<=8||r>=14&&32!=r&&45!=r){var a=parseInt(t,"x"==t[i+1]||"X"==t[i+1]?16:10);return isNaN(a)?null:a}}return null},a.parseFloat=function(t){return parseFloat(t)},a.random=function(t){return t<=0?0:Math.floor(Math.random()*t)},e.default=a},9905(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;function r(){return n(8330)}n(7268).A,n(7789).A;var s=function(){this.b=""};s.__name__="StringBuf",s.__isInterface__=!1,(s.prototype={get_length:function(){return this.b.length},add:function(t){this.b+=n(6546).default.string(t)},addChar:function(t){this.b+=String.fromCodePoint(t)},addSub:function(t,e,n){this.b+=null==n?r().default.substr(t,e,null):r().default.substr(t,e,n)},toString:function(){return this.b}}).__class__=s.prototype.constructor=i.StringBuf=s,e.default=s},1199(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;function r(){return n(9905)}function s(){return n(8330)}function a(){return n(6344)}function o(){return n(8054)}n(7268).A,n(7789).A;var u=function(){};u.__name__="StringTools",u.__isInterface__=!1,(u.prototype={}).__class__=u.prototype.constructor=i.StringTools=u,u.urlEncode=function(t){return encodeURIComponent(t)},u.urlDecode=function(t){return decodeURIComponent(t.split("+").join(" "))},u.htmlEscape=function(t,e){for(var i=new(r().default),s=new(n(2542).default)(t);s.hasNext();){var a=s.next();switch(a){case 34:e?i.add("""):i.addChar(a);break;case 38:i.add("&");break;case 39:e?i.add("'"):i.addChar(a);break;case 60:i.add("<");break;case 62:i.add(">");break;default:i.addChar(a)}}return i.toString()},u.htmlUnescape=function(t){return t.split(">").join(">").split("<").join("<").split(""").join('"').split("'").join("'").split("&").join("&")},u.contains=function(t,e){return-1!=t.indexOf(e)},u.startsWith=function(t,e){return t.length>=e.length&&0==t.lastIndexOf(e,0)},u.endsWith=function(t,e){var n=e.length,i=t.length;return i>=n&&t.indexOf(e,i-n)==i-n},u.isSpace=function(t,e){var n=s().default.cca(t,e);return n>8&&n<14||32==n},u.ltrim=function(t){for(var e=t.length,n=0;n<e&&u.isSpace(t,n);)++n;return n>0?s().default.substr(t,n,e-n):t},u.rtrim=function(t){for(var e=t.length,n=0;n<e&&u.isSpace(t,e-n-1);)++n;return n>0?s().default.substr(t,0,e-n):t},u.trim=function(t){return u.ltrim(u.rtrim(t))},u.lpad=function(t,e,n){if(e.length<=0)return t;var i=new(r().default);for(n-=t.length;i.get_length()<n;)i.add(e);return i.add(t),i.toString()},u.rpad=function(t,e,n){if(e.length<=0)return t;var i=new(r().default);for(i.add(t);i.get_length()<n;)i.add(e);return i.toString()},u.replace=function(t,e,n){return t.split(e).join(n)},u.hex=function(t,e){for(var n="";n="0123456789ABCDEF".charAt(15&t)+n,(t>>>=4)>0;);if(null!=e)for(;n.length<e;)n="0"+n;return n},u.fastCodeAt=function(t,e){return t.charCodeAt(e)},u.iterator=function(t){return new(n(5141).default)(t)},u.keyValueIterator=function(t){return new(n(105).default)(t)},u.isEof=function(t){return t!=t},u.quoteUnixArg=function(t){return""==t?"''":new(a().default)("[^a-zA-Z0-9_@%+=:,./-]","").match(t)?"'"+u.replace(t,"'","'\"'\"'")+"'":t},u.quoteWinArg=function(t,e){var n=t;if(!new(a().default)('^[^ \t\\\\"]+$',"").match(n)){var i=new(r().default),u=-1!=n.indexOf(" ")||-1!=n.indexOf("\t")||""==n;u&&i.add('"');for(var l=new(r().default),_=0,f=n.length;_<f;){var h=_++,c=s().default.cca(n,h);if(null==c){var d=c;l.get_length()>0&&(i.add(l.toString()),l=new(r().default)),i.addChar(d)}else switch(c){case 34:var g=l.toString();i.add(g),i.add(g),l=new(r().default),i.add('\\"');break;case 92:l.add("\\");break;default:var p=c;l.get_length()>0&&(i.add(l.toString()),l=new(r().default)),i.addChar(p)}}i.add(l.toString()),u&&(i.add(l.toString()),i.add('"')),n=i.toString()}if(e){for(var m=new(r().default),x=0,v=n.length;x<v;){var y=x++,w=s().default.cca(n,y);o().default.winMetaCharacters.indexOf(w)>=0&&m.addChar(94),m.addChar(w)}return m.toString()}return n},u.utf16CodePointAt=function(t,e){var n=u.fastCodeAt(t,e);return n>=55296&&n<=56319&&(n=n-55232<<10|1023&u.fastCodeAt(t,e+1)),n},u.winMetaCharacters=o().default.winMetaCharacters,u.MIN_SURROGATE_CODE_POINT=65536,e.default=u},9519(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A,r=n(7268).A;function s(){return n(5215)}function a(){return n(5198)}function o(){return n(6507)}function u(){return n(8330)}function l(){return n(2674)}n(7789).A;var _=function(){};_.__name__="Type",_.__isInterface__=!1,(_.prototype={}).__class__=_.prototype.constructor=i.Type=_,_.getClass=function(t){return s().default.getClass(t)},_.getEnum=function(t){return null==t?null:r[t.__enum__]},_.getSuperClass=function(t){return t.__super__},_.getClassName=function(t){return t.__name__},_.getEnumName=function(t){return t.__ename__},_.resolveClass=function(t){return i[t]},_.resolveEnum=function(t){return r[t]},_.createInstance=function(t,e){return new(Function.prototype.bind.apply(t,[null].concat(e)))},_.createEmptyInstance=function(t){return Object.create(t.prototype)},_.createEnum=function(t,e,n){var i=a().default.field(t,e);if(null==i)throw new(o().default)("No such constructor "+e);if(a().default.isFunction(i)){if(null==n)throw new(o().default)("Constructor "+e+" need parameters");return a().default.callMethod(t,i,n)}if(null!=n&&0!=n.length)throw new(o().default)("Constructor "+e+" does not need parameters");return i},_.createEnumIndex=function(t,e,n){var i=t.__constructs__[e];if(null==i)throw new(o().default)(e+" is not a valid enum constructor index");return _.createEnum(t,i,n)},_.getInstanceFields=function(t){var e=[];for(var n in t.prototype)e.push(n);return u().default.remove(e,"__class__"),u().default.remove(e,"__properties__"),e},_.getClassFields=function(t){var e=a().default.fields(t);return u().default.remove(e,"__name__"),u().default.remove(e,"__interfaces__"),u().default.remove(e,"__properties__"),u().default.remove(e,"__super__"),u().default.remove(e,"__meta__"),u().default.remove(e,"prototype"),e},_.getEnumConstructs=function(t){return t.__constructs__.slice()},_.typeof=function(t){switch(typeof t){case"boolean":return l().default.TBool;case"function":return s().default.isClass(t)||s().default.isEnum(t)?l().default.TObject:l().default.TFunction;case"number":return Math.ceil(t)==t%2147483648?l().default.TInt:l().default.TFloat;case"object":if(null==t)return l().default.TNull;var e=t.__enum__;if(null!=e)return l().default.TEnum(r[e]);var n=s().default.getClass(t);return null!=n?l().default.TClass(n):l().default.TObject;case"string":return l().default.TClass(String);case"undefined":return l().default.TNull;default:return l().default.TUnknown}},_.enumEq=function(t,e){if(t==e)return!0;try{var n=t.__enum__;if(null==n||n!=e.__enum__)return!1;if(t._hx_index!=e._hx_index)return!1;for(var i=r[n],s=i[i.__constructs__[t._hx_index]].__params__,a=0;a<s.length;){var u=s[a];if(++a,!_.enumEq(t[u],e[u]))return!1}}catch(t){return t instanceof o().default&&t.val,!1}return!0},_.enumConstructor=function(t){return r[t.__enum__].__constructs__[t._hx_index]},_.enumParameters=function(t){var e=r[t.__enum__],n=e[e.__constructs__[t._hx_index]].__params__;if(null!=n){for(var i=[],s=0;s<n.length;){var a=n[s];++s,i.push(t[a])}return i}return[]},_.enumIndex=function(t){return t._hx_index},_.allEnums=function(t){return t.__empty_constructs__.slice()},e.default=_},2674(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(7840).A,r=n(7268).A.ValueType={__ename__:"ValueType",__constructs__:["TNull","TInt","TFloat","TBool","TObject","TFunction","TClass","TEnum","TUnknown"],TUnknown:{_hx_index:8,__enum__:"ValueType",toString:i},TObject:{_hx_index:4,__enum__:"ValueType",toString:i},TNull:{_hx_index:0,__enum__:"ValueType",toString:i},TInt:{_hx_index:1,__enum__:"ValueType",toString:i},TFunction:{_hx_index:5,__enum__:"ValueType",toString:i},TFloat:{_hx_index:2,__enum__:"ValueType",toString:i},TEnum:($_=function(t){return{_hx_index:7,e:t,__enum__:"ValueType",toString:i}},$_.__params__=["e"],$_),TClass:($_=function(t){return{_hx_index:6,c:t,__enum__:"ValueType",toString:i}},$_.__params__=["c"],$_),TBool:{_hx_index:3,__enum__:"ValueType",toString:i}};e.default=r},1794(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;function r(){return n(6507)}function s(){return n(935)}function a(){return n(8330)}n(7268).A,n(7789).A;var o=function(t){this.nodeType=t,this.children=[],this.attributeMap=new(n(4437).default)};o.__name__="Xml",o.__isInterface__=!1,(o.prototype={get_nodeName:function(){if(this.nodeType!=o.Element)throw new(r().default)("Bad node type, expected Element but found "+s().default.toString(this.nodeType));return this.nodeName},set_nodeName:function(t){if(this.nodeType!=o.Element)throw new(r().default)("Bad node type, expected Element but found "+s().default.toString(this.nodeType));return this.nodeName=t},get_nodeValue:function(){if(this.nodeType==o.Document||this.nodeType==o.Element)throw new(r().default)("Bad node type, unexpected "+s().default.toString(this.nodeType));return this.nodeValue},set_nodeValue:function(t){if(this.nodeType==o.Document||this.nodeType==o.Element)throw new(r().default)("Bad node type, unexpected "+s().default.toString(this.nodeType));return this.nodeValue=t},get:function(t){if(this.nodeType!=o.Element)throw new(r().default)("Bad node type, expected Element but found "+s().default.toString(this.nodeType));return this.attributeMap.get(t)},set:function(t,e){if(this.nodeType!=o.Element)throw new(r().default)("Bad node type, expected Element but found "+s().default.toString(this.nodeType));this.attributeMap.set(t,e)},remove:function(t){if(this.nodeType!=o.Element)throw new(r().default)("Bad node type, expected Element but found "+s().default.toString(this.nodeType));this.attributeMap.remove(t)},exists:function(t){if(this.nodeType!=o.Element)throw new(r().default)("Bad node type, expected Element but found "+s().default.toString(this.nodeType));return this.attributeMap.exists(t)},attributes:function(){if(this.nodeType!=o.Element)throw new(r().default)("Bad node type, expected Element but found "+s().default.toString(this.nodeType));return this.attributeMap.keys()},iterator:function(){return this.ensureElementType(),a().default.iter(this.children)},elements:function(){this.ensureElementType();for(var t=[],e=0,n=this.children;e<n.length;){var i=n[e];++e,i.nodeType==o.Element&&t.push(i)}var r=t;return a().default.iter(r)},elementsNamed:function(t){this.ensureElementType();for(var e=[],n=0,i=this.children;n<i.length;){var r=i[n];++n,r.nodeType==o.Element&&r.get_nodeName()==t&&e.push(r)}var s=e;return a().default.iter(s)},firstChild:function(){return this.ensureElementType(),this.children[0]},firstElement:function(){this.ensureElementType();for(var t=0,e=this.children;t<e.length;){var n=e[t];if(++t,n.nodeType==o.Element)return n}return null},addChild:function(t){this.ensureElementType(),null!=t.parent&&t.parent.removeChild(t),this.children.push(t),t.parent=this},removeChild:function(t){return this.ensureElementType(),!!a().default.remove(this.children,t)&&(t.parent=null,!0)},insertChild:function(t,e){this.ensureElementType(),null!=t.parent&&a().default.remove(t.parent.children,t),this.children.splice(e,0,t),t.parent=this},toString:function(){return n(9394).default.print(this)},ensureElementType:function(){if(this.nodeType!=o.Document&&this.nodeType!=o.Element)throw new(r().default)("Bad node type, expected Element or Document but found "+s().default.toString(this.nodeType))}}).__class__=o.prototype.constructor=i.Xml=o,o.parse=function(t){return n(6463).default.parse(t)},o.createElement=function(t){var e=new o(o.Element);return e.set_nodeName(t),e},o.createPCData=function(t){var e=new o(o.PCData);return e.set_nodeValue(t),e},o.createCData=function(t){var e=new o(o.CData);return e.set_nodeValue(t),e},o.createComment=function(t){var e=new o(o.Comment);return e.set_nodeValue(t),e},o.createDocType=function(t){var e=new o(o.DocType);return e.set_nodeValue(t),e},o.createProcessingInstruction=function(t){var e=new o(o.ProcessingInstruction);return e.set_nodeValue(t),e},o.createDocument=function(){return new o(o.Document)},o.Element=0,o.PCData=1,o.CData=2,o.Comment=3,o.DocType=4,o.ProcessingInstruction=5,o.Document=6,e.default=o},9361(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;function r(){return n(6546)}n(7268).A,n(7789).A;var s=function(){};s.__name__="_UInt.UInt_Impl_",s.__isInterface__=!1,(s.prototype={}).__class__=s.prototype.constructor=i["_UInt.UInt_Impl_"]=s,s.add=function(t,e){return t+e},s.div=function(t,e){return s.toFloat(t)/s.toFloat(e)},s.mul=function(t,e){return t*e},s.sub=function(t,e){return t-e},s.gt=function(t,e){var n=t<0;return n!=e<0?n:t>e},s.gte=function(t,e){var n=t<0;return n!=e<0?n:t>=e},s.lt=function(t,e){return s.gt(e,t)},s.lte=function(t,e){return s.gte(e,t)},s.and=function(t,e){return t&e},s.or=function(t,e){return t|e},s.xor=function(t,e){return t^e},s.shl=function(t,e){return t<<e},s.shr=function(t,e){return t>>>e},s.ushr=function(t,e){return t>>>e},s.mod=function(t,e){return r().default.int(s.toFloat(t)%s.toFloat(e))},s.addWithFloat=function(t,e){return s.toFloat(t)+e},s.mulWithFloat=function(t,e){return s.toFloat(t)*e},s.divFloat=function(t,e){return s.toFloat(t)/e},s.floatDiv=function(t,e){return t/s.toFloat(e)},s.subFloat=function(t,e){return s.toFloat(t)-e},s.floatSub=function(t,e){return t-s.toFloat(e)},s.gtFloat=function(t,e){return s.toFloat(t)>e},s.equalsInt=function(t,e){return t==e},s.notEqualsInt=function(t,e){return t!=e},s.equalsFloat=function(t,e){return s.toFloat(t)==e},s.notEqualsFloat=function(t,e){return s.toFloat(t)!=e},s.gteFloat=function(t,e){return s.toFloat(t)>=e},s.floatGt=function(t,e){return t>s.toFloat(e)},s.floatGte=function(t,e){return t>=s.toFloat(e)},s.ltFloat=function(t,e){return s.toFloat(t)<e},s.lteFloat=function(t,e){return s.toFloat(t)<=e},s.floatLt=function(t,e){return t<s.toFloat(e)},s.floatLte=function(t,e){return t<=s.toFloat(e)},s.modFloat=function(t,e){return s.toFloat(t)%e},s.floatMod=function(t,e){return t%s.toFloat(e)},s.negBits=function(t){return~t},s.prefixIncrement=function(t){return++t},s.postfixIncrement=function(t){return t++},s.prefixDecrement=function(t){return--t},s.postfixDecrement=function(t){return t--},s.toString=function(t,e){return r().default.string(null==t?null:s.toFloat(t))},s.toInt=function(t){return t},s.toFloat=function(t){return t<0?4294967296+t:t+0},e.default=s},935(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A,r=(n(7268).A,function(){});r.__name__="_Xml.XmlType_Impl_",r.__isInterface__=!1,(r.prototype={}).__class__=r.prototype.constructor=i["_Xml.XmlType_Impl_"]=r,r.toString=function(t){switch(t){case 0:return"Element";case 1:return"PCData";case 2:return"CData";case 3:return"Comment";case 4:return"DocType";case 5:return"ProcessingInstruction";case 6:return"Document"}},r.Element=0,r.PCData=1,r.CData=2,r.Comment=3,r.DocType=4,r.ProcessingInstruction=5,r.Document=6,e.default=r},5235(t,e){var n=0;e.A=function(t,e){var i,r;return null==e?null:(r=e._i=e._i||n++,null==t._c?t._c={}:i=t._c[r],null==i&&(i=function(){return i._m.apply(i._s,arguments)},i._s=t,i._m=e,t._c[r]=i),i)}},7840(t,e,n){var i=n(5215);e.A=function(){return i.__string_rec(this,"")}},4142(t,e){e.A=function(t,e){function n(){}n.prototype=t;var i=new n;for(var r in e)i[r]=e[r];return e.toString!==Object.prototype.toString&&(i.toString=e.toString),i}},7089(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A,r=(n(7268).A,function(){});r.__name__="haxe.IMap",r.__isInterface__=!0,(r.prototype={}).__class__=r.prototype.constructor=i["haxe.IMap"]=r,e.default=r},7438(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;function r(){return n(6546)}n(7268).A,n(7789).A;var s=function(){};s.__name__="haxe.Log",s.__isInterface__=!1,(s.prototype={}).__class__=s.prototype.constructor=i["haxe.Log"]=s,s.formatOutput=function(t,e){var n=r().default.string(t);if(null==e)return n;var i=e.fileName+":"+e.lineNumber;if(null!=e.customParams)for(var s=0,a=e.customParams;s<a.length;){var o=a[s];++s,n+=", "+r().default.string(o)}return i+": "+n},s.trace=function(t,e){var n=s.formatOutput(t,e);"undefined"!=typeof console&&null!=console.log&&console.log(n)},e.default=s},8054(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;function r(){return n(6344)}function s(){return n(9905)}function a(){return n(8330)}n(7268).A,n(7789).A;var o=function(){};o.__name__="haxe.SysTools",o.__isInterface__=!1,(o.prototype={}).__class__=o.prototype.constructor=i["haxe.SysTools"]=o,o.quoteUnixArg=function(t){return""==t?"''":new(r().default)("[^a-zA-Z0-9_@%+=:,./-]","").match(t)?"'"+n(1199).default.replace(t,"'","'\"'\"'")+"'":t},o.quoteWinArg=function(t,e){if(!new(r().default)('^[^ \t\\\\"]+$',"").match(t)){var n=new(s().default),i=-1!=t.indexOf(" ")||-1!=t.indexOf("\t")||""==t;i&&n.add('"');for(var u=new(s().default),l=0,_=t.length;l<_;){var f=l++,h=a().default.cca(t,f);if(null==h){var c=h;u.get_length()>0&&(n.add(u.toString()),u=new(s().default)),n.addChar(c)}else switch(h){case 34:var d=u.toString();n.add(d),n.add(d),u=new(s().default),n.add('\\"');break;case 92:u.add("\\");break;default:var g=h;u.get_length()>0&&(n.add(u.toString()),u=new(s().default)),n.addChar(g)}}n.add(u.toString()),i&&(n.add(u.toString()),n.add('"')),t=n.toString()}if(e){for(var p=new(s().default),m=0,x=t.length;m<x;){var v=m++,y=a().default.cca(t,v);o.winMetaCharacters.indexOf(y)>=0&&p.addChar(94),p.addChar(y)}return p.toString()}return t},o.winMetaCharacters=[32,40,41,37,33,94,34,60,62,38,124,10,13,44,59],e.default=o},8153(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;n(7268).A,n(7789).A;var r=function(t){var e=this;this.id=setInterval(function(){e.run()},t)};r.__name__="haxe.Timer",r.__isInterface__=!1,(r.prototype={stop:function(){null!=this.id&&(clearInterval(this.id),this.id=null)},run:function(){}}).__class__=r.prototype.constructor=i["haxe.Timer"]=r,r.delay=function(t,e){var n=new r(e);return n.run=function(){n.stop(),t()},n},r.measure=function(t,e){var i=r.stamp(),s=t();return n(7438).default.trace(r.stamp()-i+"s",e),s},r.stamp=function(){return Date.now()/1e3},e.default=r},7651(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;function r(){return n(6546)}n(7268).A,n(7789).A;var s=function(){this.h={}};s.__name__="haxe.ds.IntMap",s.__isInterface__=!1,s.__interfaces__=[n(7089).default],(s.prototype={set:function(t,e){this.h[t]=e},get:function(t){return this.h[t]},exists:function(t){return this.h.hasOwnProperty(t)},remove:function(t){return!!this.h.hasOwnProperty(t)&&(delete this.h[t],!0)},keys:function(){var t=[];for(var e in this.h)this.h.hasOwnProperty(e)&&t.push(0|e);return n(8330).default.iter(t)},iterator:function(){return{ref:this.h,it:this.keys(),hasNext:function(){return this.it.hasNext()},next:function(){var t=this.it.next();return this.ref[t]}}},keyValueIterator:function(){return new(n(9080).default)(this)},copy:function(){for(var t=new s,e=this.keys();e.hasNext();){var n=e.next();t.set(n,this.get(n))}return t},toString:function(){var t=new(n(9905).default);t.add("{");for(var e=this.keys(),i=e;i.hasNext();){var s=i.next();t.add(s),t.add(" => "),t.add(r().default.string(this.get(s))),e.hasNext()&&t.add(", ")}return t.add("}"),t.toString()},clear:function(){this.h={}}}).__class__=s.prototype.constructor=i["haxe.ds.IntMap"]=s,e.default=s},8935(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;function r(){return n(6546)}n(7268).A,n(7789).A;var s=function(){this.h={__keys__:{}}};s.__name__="haxe.ds.ObjectMap",s.__isInterface__=!1,s.__interfaces__=[n(7089).default],(s.prototype={set:function(t,e){var n=s.getId(t);null==n&&(n=s.assignId(t)),this.h[n]=e,this.h.__keys__[n]=t},get:function(t){return this.h[s.getId(t)]},exists:function(t){return null!=this.h.__keys__[s.getId(t)]},remove:function(t){var e=s.getId(t);return null!=this.h.__keys__[e]&&(delete this.h[e],delete this.h.__keys__[e],!0)},keys:function(){var t=[];for(var e in this.h.__keys__)this.h.hasOwnProperty(e)&&t.push(this.h.__keys__[e]);return n(8330).default.iter(t)},iterator:function(){return{ref:this.h,it:this.keys(),hasNext:function(){return this.it.hasNext()},next:function(){var t=this.it.next();return this.ref[s.getId(t)]}}},keyValueIterator:function(){return new(n(9080).default)(this)},copy:function(){for(var t=new s,e=this.keys();e.hasNext();){var n=e.next();t.set(n,this.get(n))}return t},toString:function(){var t=new(n(9905).default);t.add("{");for(var e=this.keys(),i=e;i.hasNext();){var s=i.next();t.add(r().default.string(s)),t.add(" => "),t.add(r().default.string(this.get(s))),e.hasNext()&&t.add(", ")}return t.add("}"),t.toString()},clear:function(){this.h={__keys__:{}}}}).__class__=s.prototype.constructor=i["haxe.ds.ObjectMap"]=s,s.count=0,s.assignId=function(t){return t.__id__=n(3516).default.getNextHaxeUID()},s.getId=function(t){return t.__id__},e.default=s},4437(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i={},r=n(1714).A;function s(){return n(6546)}n(7268).A,n(7789).A;var a=function(){this.h={}};a.__name__="haxe.ds.StringMap",a.__isInterface__=!1,a.__interfaces__=[n(7089).default],(a.prototype={isReserved:function(t){return null!=i[t]},set:function(t,e){this.isReserved(t)?this.setReserved(t,e):this.h[t]=e},get:function(t){return this.isReserved(t)?this.getReserved(t):this.h[t]},exists:function(t){return this.isReserved(t)?this.existsReserved(t):this.h.hasOwnProperty(t)},setReserved:function(t,e){null==this.rh&&(this.rh={}),this.rh["$"+t]=e},getReserved:function(t){return null==this.rh?null:this.rh["$"+t]},existsReserved:function(t){return null!=this.rh&&this.rh.hasOwnProperty("$"+t)},remove:function(t){return this.isReserved(t)?(t="$"+t,!(null==this.rh||!this.rh.hasOwnProperty(t)||(delete this.rh[t],0))):!!this.h.hasOwnProperty(t)&&(delete this.h[t],!0)},keys:function(){return n(8330).default.iter(this.arrayKeys())},arrayKeys:function(){var t=[];for(var e in this.h)this.h.hasOwnProperty(e)&&t.push(e);if(null!=this.rh)for(var e in this.rh)36==e.charCodeAt(0)&&t.push(e.substr(1));return t},iterator:function(){return new(n(2792).default)(this,this.arrayKeys())},keyValueIterator:function(){return new(n(9080).default)(this)},copy:function(){for(var t=new a,e=this.keys();e.hasNext();){var n=e.next();t.set(n,this.get(n))}return t},toString:function(){var t=new(n(9905).default);t.add("{");for(var e=this.arrayKeys(),i=0,r=e.length;i<r;){var a=i++,o=e[a];t.add(o),t.add(" => "),t.add(s().default.string(this.get(o))),a<e.length-1&&t.add(", ")}return t.add("}"),t.toString()},clear:function(){this.h={},this.rh=null}}).__class__=a.prototype.constructor=r["haxe.ds.StringMap"]=a,i={},e.default=a},2792(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A,r=(n(7268).A,function(t,e){this.map=t,this.keys=e,this.index=0,this.count=e.length});r.__name__="haxe.ds._StringMap.StringMapIterator",r.__isInterface__=!1,(r.prototype={hasNext:function(){return this.index<this.count},next:function(){return this.map.get(this.keys[this.index++])}}).__class__=r.prototype.constructor=i["haxe.ds._StringMap.StringMapIterator"]=r,e.default=r},9080(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A,r=(n(7268).A,function(t){this.map=t,this.keys=t.keys()});r.__name__="haxe.iterators.MapKeyValueIterator",r.__isInterface__=!1,(r.prototype={hasNext:function(){return this.keys.hasNext()},next:function(){var t=this.keys.next();return{value:this.map.get(t),key:t}}}).__class__=r.prototype.constructor=i["haxe.iterators.MapKeyValueIterator"]=r,e.default=r},5141(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;n(7268).A,n(7789).A;var r=function(t){this.offset=0,this.s=t};r.__name__="haxe.iterators.StringIterator",r.__isInterface__=!1,(r.prototype={hasNext:function(){return this.offset<this.s.length},next:function(){return n(1199).default.fastCodeAt(this.s,this.offset++)}}).__class__=r.prototype.constructor=i["haxe.iterators.StringIterator"]=r,e.default=r},2542(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;n(7268).A,n(7789).A;var r=function(t){this.offset=0,this.s=t};r.__name__="haxe.iterators.StringIteratorUnicode",r.__isInterface__=!1,(r.prototype={hasNext:function(){return this.offset<this.s.length},next:function(){var t=n(1199).default.utf16CodePointAt(this.s,this.offset++);return t>=65536&&this.offset++,t}}).__class__=r.prototype.constructor=i["haxe.iterators.StringIteratorUnicode"]=r,r.unicodeIterator=function(t){return new r(t)},e.default=r},105(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;n(7268).A,n(7789).A;var r=function(t){this.offset=0,this.s=t};r.__name__="haxe.iterators.StringKeyValueIterator",r.__isInterface__=!1,(r.prototype={hasNext:function(){return this.offset<this.s.length},next:function(){return{key:this.offset,value:n(1199).default.fastCodeAt(this.s,this.offset++)}}}).__class__=r.prototype.constructor=i["haxe.iterators.StringKeyValueIterator"]=r,e.default=r},6463(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;function r(){return n(1794)}function s(){return n(1199)}function a(){return n(9905)}function o(){return n(8330)}function u(){return n(6507)}function l(){return n(6435)}function _(){return n(6546)}n(7268).A,n(7789).A;var f,h=function(){};h.__name__="haxe.xml.Parser",h.__isInterface__=!1,(h.prototype={}).__class__=h.prototype.constructor=i["haxe.xml.Parser"]=h,h.parse=function(t,e){null==e&&(e=!1);var n=r().default.createDocument();return h.doParse(t,e,0,n),n},h.doParse=function(t,e,n,i){null==n&&(n=0);for(var f=null,c=1,d=1,g=null,p=0,m=0,x=0,v=s().default.fastCodeAt(t,n),y=new(a().default),w=1,A=-1;!s().default.isEof(v);){switch(c){case 0:switch(v){case 9:case 10:case 13:case 32:break;default:c=d;continue}break;case 1:if(60!=v){p=n,c=13;continue}c=0,d=2;break;case 2:switch(v){case 33:if(91==s().default.fastCodeAt(t,n+1)){if(n+=2,"CDATA["!=o().default.substr(t,n,6).toUpperCase())throw new(u().default)(new(l().default)("Expected <![CDATA[",t,n));c=17,p=(n+=5)+1}else if(68==s().default.fastCodeAt(t,n+1)||100==s().default.fastCodeAt(t,n+1)){if("OCTYPE"!=o().default.substr(t,n+2,6).toUpperCase())throw new(u().default)(new(l().default)("Expected <!DOCTYPE",t,n));c=16,p=(n+=8)+1}else{if(45!=s().default.fastCodeAt(t,n+1)||45!=s().default.fastCodeAt(t,n+2))throw new(u().default)(new(l().default)("Expected \x3c!--",t,n));c=15,p=(n+=2)+1}break;case 47:if(null==i)throw new(u().default)(new(l().default)("Expected node name",t,n));p=n+1,c=0,d=10;break;case 63:c=14,p=n;break;default:c=3,p=n;continue}break;case 3:if(!h.isValidChar(v)){if(n==p)throw new(u().default)(new(l().default)("Expected node name",t,n));f=r().default.createElement(o().default.substr(t,p,n-p)),i.addChild(f),++m,c=0,d=4;continue}break;case 4:switch(v){case 47:c=11;break;case 62:c=9;break;default:c=5,p=n;continue}break;case 5:if(!h.isValidChar(v)){if(p==n)throw new(u().default)(new(l().default)("Expected attribute name",t,n));if(g=o().default.substr(t,p,n-p),f.exists(g))throw new(u().default)(new(l().default)("Duplicate attribute ["+g+"]",t,n));c=0,d=6;continue}break;case 6:if(61!=v)throw new(u().default)(new(l().default)("Expected =",t,n));c=0,d=7;break;case 7:switch(v){case 34:case 39:y=new(a().default),c=8,p=n+1,A=v;break;default:throw new(u().default)(new(l().default)('Expected "',t,n))}break;case 8:switch(v){case 38:y.addSub(t,p,n-p),c=18,w=8,p=n+1;break;case 60:case 62:if(e)throw new(u().default)(new(l().default)("Invalid unescaped "+String.fromCodePoint(v)+" in attribute value",t,n));if(v==A){y.addSub(t,p,n-p);var b=y.toString();y=new(a().default),f.set(g,b),c=0,d=4}break;default:if(v==A){y.addSub(t,p,n-p);var T=y.toString();y=new(a().default),f.set(g,T),c=0,d=4}}break;case 9:p=n=h.doParse(t,e,n,f),c=1;break;case 10:if(!h.isValidChar(v)){if(p==n)throw new(u().default)(new(l().default)("Expected node name",t,n));var D=o().default.substr(t,p,n-p);if(null==i||0!=i.nodeType)throw new(u().default)(new(l().default)("Unexpected </"+D+">, tag is not open",t,n));if(D!=i.get_nodeName())throw new(u().default)(new(l().default)("Expected </"+i.get_nodeName()+">",t,n));c=0,d=12;continue}break;case 11:if(62!=v)throw new(u().default)(new(l().default)("Expected >",t,n));c=1;break;case 12:if(62==v)return 0==m&&i.addChild(r().default.createPCData("")),n;throw new(u().default)(new(l().default)("Expected >",t,n));case 13:if(60==v){y.addSub(t,p,n-p);var E=r().default.createPCData(y.toString());y=new(a().default),i.addChild(E),++m,c=0,d=2}else 38==v&&(y.addSub(t,p,n-p),c=18,w=13,p=n+1);break;case 14:if(63==v&&62==s().default.fastCodeAt(t,n+1)){++n;var M=o().default.substr(t,p+1,n-p-2);i.addChild(r().default.createProcessingInstruction(M)),++m,c=1}break;case 15:45==v&&45==s().default.fastCodeAt(t,n+1)&&62==s().default.fastCodeAt(t,n+2)&&(i.addChild(r().default.createComment(o().default.substr(t,p,n-p))),++m,n+=2,c=1);break;case 16:91==v?++x:93==v?--x:62==v&&0==x&&(i.addChild(r().default.createDocType(o().default.substr(t,p,n-p))),++m,c=1);break;case 17:if(93==v&&93==s().default.fastCodeAt(t,n+1)&&62==s().default.fastCodeAt(t,n+2)){var S=r().default.createCData(o().default.substr(t,p,n-p));i.addChild(S),++m,n+=2,c=1}break;case 18:if(59==v){var P=o().default.substr(t,p,n-p);if(35==s().default.fastCodeAt(P,0)){var C=120==s().default.fastCodeAt(P,1)?_().default.parseInt("0"+o().default.substr(P,1,P.length-1)):_().default.parseInt(o().default.substr(P,1,P.length-1));y.addChar(C)}else if(h.escapes.exists(P))y.add(h.escapes.get(P));else{if(e)throw new(u().default)(new(l().default)("Undefined entity: "+P,t,n));y.add("&"+P+";")}p=n+1,c=w}else if(!h.isValidChar(v)&&35!=v){if(e)throw new(u().default)(new(l().default)("Invalid character in entity: "+String.fromCodePoint(v),t,n));y.addChar(38),y.addSub(t,p,n-p),p=1+--n,c=w}}v=s().default.fastCodeAt(t,++n)}if(1==c&&(p=n,c=13),13==c){if(0==i.nodeType)throw new(u().default)(new(l().default)("Unclosed node <"+i.get_nodeName()+">",t,n));return n==p&&0!=m||(y.addSub(t,p,n-p),i.addChild(r().default.createPCData(y.toString())),++m),n}if(!e&&18==c&&13==w)return y.addChar(38),y.addSub(t,p,n-p),i.addChild(r().default.createPCData(y.toString())),++m,n;throw new(u().default)(new(l().default)("Unexpected end",t,n))},h.isValidChar=function(t){return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||58==t||46==t||95==t||45==t},h.escapes=((f=new(n(4437).default)).set("lt","<"),f.set("gt",">"),f.set("amp","&"),f.set("quot",'"'),f.set("apos","'"),f),e.default=h},9394(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;function r(){return n(1199)}n(7268).A,n(7789).A;var s=function(t){this.output=new(n(9905).default),this.pretty=t};s.__name__="haxe.xml.Printer",s.__isInterface__=!1,(s.prototype={writeNode:function(t,e){switch(t.nodeType){case 0:this.write(e+"<"),this.write(t.get_nodeName());for(var i=t.attributes();i.hasNext();){var s=i.next();this.write(" "+s+'="'),this.write(r().default.htmlEscape(t.get(s),!0)),this.write('"')}if(this.hasChildren(t)){this.write(">"),this.newline();for(var a=t.iterator();a.hasNext();){var o=a.next();this.writeNode(o,this.pretty?e+"\t":e)}this.write(e+"</"),this.write(t.get_nodeName()),this.write(">"),this.newline()}else this.write("/>"),this.newline();break;case 1:var u=t.get_nodeValue();0!=u.length&&(this.write(e+r().default.htmlEscape(u)),this.newline());break;case 2:this.write(e+"<![CDATA["),this.write(t.get_nodeValue()),this.write("]]>"),this.newline();break;case 3:var l=t.get_nodeValue();l="\x3c!--"+(l=new(n(6344).default)("[\n\r\t]+","g").replace(l,""))+"--\x3e",this.write(e),this.write(r().default.trim(l)),this.newline();break;case 4:this.write("<!DOCTYPE "+t.get_nodeValue()+">"),this.newline();break;case 5:this.write("<?"+t.get_nodeValue()+"?>"),this.newline();break;case 6:for(var _=t.iterator();_.hasNext();){var f=_.next();this.writeNode(f,e)}}},write:function(t){this.output.add(t)},newline:function(){this.pretty&&this.output.add("\n")},hasChildren:function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();switch(n.nodeType){case 0:case 1:return!0;case 2:case 3:if(0!=r().default.ltrim(n.get_nodeValue()).length)return!0}}return!1}}).__class__=s.prototype.constructor=i["haxe.xml.Printer"]=s,s.print=function(t,e){null==e&&(e=!1);var n=new s(e);return n.writeNode(t,""),n.output.toString()},e.default=s},6435(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;function r(){return n(9519)}function s(){return n(1199)}n(7268).A,n(7789).A;var a=function(t,e,n){this.xml=e,this.message=t,this.position=n,this.lineNumber=1,this.positionAtLine=0;for(var i=0,r=n;i<r;){var a=i++,o=s().default.fastCodeAt(e,a);10==o?(this.lineNumber++,this.positionAtLine=0):13!=o&&this.positionAtLine++}};a.__name__="haxe.xml.XmlParserException",a.__isInterface__=!1,(a.prototype={toString:function(){return r().default.getClassName(r().default.getClass(this))+": "+this.message+" at line "+this.lineNumber+" char "+this.positionAtLine}}).__class__=a.prototype.constructor=i["haxe.xml.XmlParserException"]=a,e.default=a},9470(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;function r(){return n(1794)}function s(){return n(6507)}n(7268).A,n(7789).A;var a=function(){};a.__name__="haxe.xml._Access.AttribAccess_Impl_",a.__isInterface__=!1,(a.prototype={}).__class__=a.prototype.constructor=i["haxe.xml._Access.AttribAccess_Impl_"]=a,a.resolve=function(t,e){if(t.nodeType==r().default.Document)throw new(s().default)("Cannot access document attribute "+e);var n=t.get(e);if(null==n)throw new(s().default)(t.get_nodeName()+" is missing attribute "+e);return n},a._hx_set=function(t,e,n){if(t.nodeType==r().default.Document)throw new(s().default)("Cannot access document attribute "+e);return t.set(e,n),n},e.default=a},2388(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A,r=(n(7268).A,function(){});r.__name__="haxe.xml._Access.HasNodeAccess_Impl_",r.__isInterface__=!1,(r.prototype={}).__class__=r.prototype.constructor=i["haxe.xml._Access.HasNodeAccess_Impl_"]=r,r.resolve=function(t,e){return t.elementsNamed(e).hasNext()},e.default=r},9978(t,e,n){("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this).Object.defineProperty(e,"__esModule",{value:!0});var i=n(1714).A;function r(){return n(1794)}function s(){return n(6507)}n(7268).A,n(7789).A;var a=function(){};a.__name__="haxe.xml._Access.NodeAccess_Impl_",a.__isInterface__=!1,(a.prototype={}).__class__=a.prot