!function(e){var t={};function __webpack_require__(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,__webpack_require__),o.loaded=!0,o.exports}__webpack_require__.m=e,__webpack_require__.c=t,__webpack_require__.p="",__webpack_require__(0)}([function(e,t,n){"use strict";var o,r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1)),i=n(4),a=(o=i)&&o.__esModule?o:{default:o};var u=GameGlobal;GameGlobal.__isAdapterInjected||(GameGlobal.__isAdapterInjected=!0,function(){r.addEventListener=function(e,t){r.document.addEventListener(e,t)},r.removeEventListener=function(e,t){r.document.removeEventListener(e,t)},r.canvas&&(r.canvas.addEventListener=r.addEventListener,r.canvas.removeEventListener=r.removeEventListener),u.sharedCanvas&&(sharedCanvas.__proto__.__proto__=new a.default("canvas"),sharedCanvas.addEventListener=r.addEventListener,sharedCanvas.removeEventListener=r.removeEventListener);var e=tt.getSystemInfoSync().platform;if("undefined"==typeof __devtoolssubcontext&&"devtools"===e){for(var t in r){var n=Object.getOwnPropertyDescriptor(u,t);n&&!0!==n.configurable||Object.defineProperty(window,t,{value:r[t]})}for(var o in r.document){var i=Object.getOwnPropertyDescriptor(u.document,o);i&&!0!==i.configurable||Object.defineProperty(u.document,o,{value:r.document[o]})}window.parent=window}else{for(var s in r)u[s]=r[s];u.window=r,window=u,window.top=window.parent=window}}())},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cancelAnimationFrame=t.requestAnimationFrame=t.clearInterval=t.clearTimeout=t.setInterval=t.setTimeout=t.canvas=t.location=t.localStorage=t.HTMLElement=t.FileReader=t.Audio=t.Image=t.WebSocket=t.XMLHttpRequest=t.navigator=t.document=void 0;var o=n(2);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var r=n(3);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var i=_interopRequireDefault(n(9)),a=n(17),u=_interopRequireDefault(n(10)),s=_interopRequireDefault(n(18)),c=_interopRequireDefault(n(19)),l=_interopRequireDefault(n(20)),f=_interopRequireDefault(n(11)),d=_interopRequireDefault(n(12)),p=_interopRequireDefault(n(21)),h=_interopRequireDefault(n(4)),y=_interopRequireDefault(n(22)),v=_interopRequireDefault(n(23));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.document=u.default,t.navigator=s.default,t.XMLHttpRequest=c.default,t.WebSocket=l.default,t.Image=f.default,t.Audio=d.default,t.FileReader=p.default,t.HTMLElement=h.default,t.localStorage=y.default,t.location=v.default;var _=(0,a.isSubContext)()?void 0:new i.default;t.canvas=_,t.setTimeout=setTimeout,t.setInterval=setInterval,t.clearTimeout=clearTimeout,t.clearInterval=clearInterval,t.requestAnimationFrame=requestAnimationFrame,t.cancelAnimationFrame=cancelAnimationFrame},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=tt.getSystemInfoSync(),o=n.screenWidth,r=n.screenHeight,i=n.devicePixelRatio,a=t.innerWidth=o,u=t.innerHeight=r;t.devicePixelRatio=i;t.screen={availWidth:a,availHeight:u},t.performance={now:function(){return Date.now()/1e3}},t.ontouchstart=null,t.ontouchmove=null,t.ontouchend=null},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLCanvasElement=t.HTMLImageElement=void 0;var o,r=n(4),i=(o=r)&&o.__esModule?o:{default:o};function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.HTMLImageElement=function(e){function HTMLImageElement(){return _classCallCheck(this,HTMLImageElement),_possibleConstructorReturn(this,(HTMLImageElement.__proto__||Object.getPrototypeOf(HTMLImageElement)).call(this,"img"))}return _inherits(HTMLImageElement,i.default),HTMLImageElement}(),t.HTMLCanvasElement=function(e){function HTMLCanvasElement(){return _classCallCheck(this,HTMLCanvasElement),_possibleConstructorReturn(this,(HTMLCanvasElement.__proto__||Object.getPrototypeOf(HTMLCanvasElement)).call(this,"canvas"))}return _inherits(HTMLCanvasElement,i.default),HTMLCanvasElement}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function defineProperties(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,HTMLElement);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(HTMLElement.__proto__||Object.getPrototypeOf(HTMLElement)).call(this));return t.className="",t.childern=[],t.style={width:s.innerWidth+"px",height:s.innerHeight+"px"},t.insertBefore=u.noop,t.innerHTML="",t.tagName=e.toUpperCase(),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(HTMLElement,a.default),r(HTMLElement,[{key:"setAttribute",value:function(e,t){this[e]=t}},{key:"getAttribute",value:function(e){return this[e]}},{key:"getBoundingClientRect",value:function(){return{top:0,left:0,width:s.innerWidth,height:s.innerHeight}}},{key:"focus",value:function(){}},{key:"clientWidth",get:function(){var e=parseInt(this.style.fontSize,10)*this.innerHTML.length;return Number.isNaN(e)?0:e}},{key:"clientHeight",get:function(){var e=parseInt(this.style.fontSize,10);return Number.isNaN(e)?0:e}}]),HTMLElement}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(6),i=(o=r)&&o.__esModule?o:{default:o};var a=function(e){function ELement(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,ELement);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(ELement.__proto__||Object.getPrototypeOf(ELement)).call(this));return e.className="",e.children=[],e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(ELement,i.default),ELement}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function defineProperties(e,t){for(var n=0;n-1?this.childNodes.splice(t,1):null}}]),Node}();t.default=u},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function defineProperties(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{},r=o.get(this);r||(r={},o.set(this,r)),r[e]||(r[e]=[]),r[e].push(t),n.capture&&console.warn("EventTarget.addEventListener: options.capture is not implemented."),n.once&&console.warn("EventTarget.addEventListener: options.once is not implemented."),n.passive&&console.warn("EventTarget.addEventListener: options.passive is not implemented.")}},{key:"removeEventListener",value:function(e,t){var n=o.get(this)[e];if(n&&n.length>0)for(var r=n.length;r--;r>0)if(n[r]===t){n.splice(r,1);break}}},{key:"dispatchEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.get(this)[e.type];if(t)for(var n=0;n0)for(var o=n.length;o--;o>0)if(n[o]===t){n.splice(o,1);break}},dispatchEvent:function(e){var t=s[e.type];if(t)for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"";return"string"!=typeof e?"":e.indexOf("audio/mpeg")>-1||e.indexOf("audio/mp4")?"probably":""}},{key:"cloneNode",value:function(){var e=new Audio;return(0,u.isSubContext)()||(e.loop=p.get(this).loop,e.autoplay=p.get(this).loop,e.src=this.src),e}},{key:"currentTime",get:function(){return(0,u.isSubContext)()?0:p.get(this).currentTime},set:function(e){(0,u.isSubContext)()||p.get(this).seek(e)}},{key:"src",get:function(){return h.get(this)},set:function(e){h.set(this,e),(0,u.isSubContext)()||(p.get(this).src=e)}},{key:"loop",get:function(){return!(0,u.isSubContext)()&&p.get(this).loop},set:function(e){(0,u.isSubContext)()||(p.get(this).loop=e)}},{key:"autoplay",get:function(){return!(0,u.isSubContext)()&&p.get(this).autoplay},set:function(e){(0,u.isSubContext)()||(p.get(this).autoplay=e)}},{key:"paused",get:function(){return!(0,u.isSubContext)()&&p.get(this).paused}}]),Audio}());t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(14),i=(o=r)&&o.__esModule?o:{default:o};var a=function(e){function HTMLAudioElement(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,HTMLAudioElement),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(HTMLAudioElement.__proto__||Object.getPrototypeOf(HTMLAudioElement)).call(this,"audio"))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(HTMLAudioElement,i.default),HTMLAudioElement}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function defineProperties(e,t){for(var n=0;n1?t-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:"";if(this.readyState!==XMLHttpRequest.OPENED)throw new Error("Failed to execute 'send' on 'XMLHttpRequest': The object's state must be OPENED.");tt.request({data:t,url:o.get(this),method:r.get(this),header:i.get(this),responseType:this.responseType,success:function(t){var n=t.data,o=t.statusCode,r=t.header;if("string"!=typeof n&&!(n instanceof ArrayBuffer))try{n=JSON.stringify(n)}catch(e){n=n}if(e.status=o,a.set(e,r),_triggerEvent.call(e,"loadstart"),_changeReadyState.call(e,XMLHttpRequest.HEADERS_RECEIVED),_changeReadyState.call(e,XMLHttpRequest.LOADING),e.response=n,n instanceof ArrayBuffer){e.responseText="";for(var i=new Uint8Array(n),u=i.byteLength,s=0;s1&&void 0!==arguments[1]?arguments[1]:[];if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,WebSocket),this.binaryType="",this.bufferedAmount=0,this.extensions="",this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this.protocol="",this.readyState=3,(0,r.isSubContext)())throw new Error("WebSocket is not supported in SubContext.");if("string"!=typeof e||!/(^ws:\/\/)|(^wss:\/\/)/.test(e))throw new TypeError("Failed to construct 'WebSocket': The URL '"+e+"' is invalid");this.url=e,this.readyState=WebSocket.CONNECTING;var o=tt.connectSocket({url:e,protocols:Array.isArray(n)?n:[n]});return i.set(this,o),o.onClose(function(e){t.readyState=WebSocket.CLOSED,"function"==typeof t.onclose&&t.onclose(e)}),o.onMessage(function(e){"function"==typeof t.onmessage&&t.onmessage(e)}),o.onOpen(function(){t.readyState=WebSocket.OPEN,"function"==typeof t.onopen&&t.onopen()}),o.onError(function(e){"function"==typeof t.onerror&&t.onerror(new Error(e.errMsg))}),this}return o(WebSocket,[{key:"close",value:function(e,t){this.readyState=WebSocket.CLOSING,i.get(this).close({code:e,reason:t})}},{key:"send",value:function(e){if("string"!=typeof e&&!(e instanceof ArrayBuffer))throw new TypeError("Failed to send message: The data "+e+" is invalid");i.get(this).send({data:e})}}]),WebSocket}();a.CONNECTING=0,a.OPEN=1,a.CLOSING=2,a.CLOSED=3,t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function defineProperties(e,t){for(var n=0;n