!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).PIXI=t()}}(function(){return function t(e,i,r){function n(a,o){if(!i[a]){if(!e[a]){var l="function"==typeof require&&require;if(!o&&l)return l(a,!0);if(s)return s(a,!0);var h=new Error("Cannot find module '"+a+"'");throw h.code="MODULE_NOT_FOUND",h}var u=i[a]={exports:{}};e[a][0].call(u.exports,function(t){var i=e[a][1][t];return n(i||t)},u,u.exports,t,e,i,r)}return i[a].exports}for(var s="function"==typeof require&&require,a=0;a<r.length;a++)n(r[a]);return n}({1:[function(t,e,i){"use strict";"use restrict";function r(t){var e=32;return(t&=-t)&&e--,65535&t&&(e-=16),16711935&t&&(e-=8),252645135&t&&(e-=4),858993459&t&&(e-=2),1431655765&t&&(e-=1),e}i.INT_BITS=32,i.INT_MAX=2147483647,i.INT_MIN=-1<<31,i.sign=function(t){return(t>0)-(t<0)},i.abs=function(t){var e=t>>31;return(t^e)-e},i.min=function(t,e){return e^(t^e)&-(t<e)},i.max=function(t,e){return t^(t^e)&-(t<e)},i.isPow2=function(t){return!(t&t-1||!t)},i.log2=function(t){var e,i;return e=(t>65535)<<4,e|=i=((t>>>=e)>255)<<3,e|=i=((t>>>=i)>15)<<2,(e|=i=((t>>>=i)>3)<<1)|(t>>>=i)>>1},i.log10=function(t){return t>=1e9?9:t>=1e8?8:t>=1e7?7:t>=1e6?6:t>=1e5?5:t>=1e4?4:t>=1e3?3:t>=100?2:t>=10?1:0},i.popCount=function(t){return 16843009*((t=(858993459&(t-=t>>>1&1431655765))+(t>>>2&858993459))+(t>>>4)&252645135)>>>24},i.countTrailingZeros=r,i.nextPow2=function(t){return t+=0===t,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)+1},i.prevPow2=function(t){return t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)-(t>>>1)},i.parity=function(t){return t^=t>>>16,t^=t>>>8,t^=t>>>4,27030>>>(t&=15)&1};var n=new Array(256);!function(t){for(var e=0;e<256;++e){var i=e,r=e,n=7;for(i>>>=1;i;i>>>=1)r<<=1,r|=1&i,--n;t[e]=r<<n&255}}(n),i.reverse=function(t){return n[255&t]<<24|n[t>>>8&255]<<16|n[t>>>16&255]<<8|n[t>>>24&255]},i.interleave2=function(t,e){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))<<1},i.deinterleave2=function(t,e){return(t=65535&((t=16711935&((t=252645135&((t=858993459&((t=t>>>e&1431655765)|t>>>1))|t>>>2))|t>>>4))|t>>>16))<<16>>16},i.interleave3=function(t,e,i){return t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2),(t|=(e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2))<<1)|(i=1227133513&((i=3272356035&((i=251719695&((i=4278190335&((i&=1023)|i<<16))|i<<8))|i<<4))|i<<2))<<2},i.deinterleave3=function(t,e){return(t=1023&((t=4278190335&((t=251719695&((t=3272356035&((t=t>>>e&1227133513)|t>>>2))|t>>>4))|t>>>8))|t>>>16))<<22>>22},i.nextCombination=function(t){var e=t|t-1;return e+1|(~e&-~e)-1>>>r(t)+1}},{}],2:[function(t,e,i){"use strict";function r(t,e,i){i=i||2;var r,o,l,h,u,p,_,m=e&&e.length,g=m?e[0]*i:t.length,v=n(t,0,g,i,!0),y=[];if(!v)return y;if(m&&(v=function(t,e,i,r){var a,o,l,h,u,p=[];for(a=0,o=e.length;a<o;a++)l=e[a]*r,h=a<o-1?e[a+1]*r:t.length,(u=n(t,l,h,r,!1))===u.next&&(u.steiner=!0),p.push(f(u));for(p.sort(c),a=0;a<p.length;a++)d(p[a],i),i=s(i,i.next);return i}(t,e,v,i)),t.length>80*i){r=l=t[0],o=h=t[1];for(var b=i;b<g;b+=i)(u=t[b])<r&&(r=u),(p=t[b+1])<o&&(o=p),u>l&&(l=u),p>h&&(h=p);_=Math.max(l-r,h-o)}return a(v,y,i,r,o,_),y}function n(t,e,i,r,n){var s,a;if(n===w(t,e,i,r)>0)for(s=e;s<i;s+=r)a=T(s,t[s],t[s+1],a);else for(s=i-r;s>=e;s-=r)a=T(s,t[s],t[s+1],a);return a&&g(a,a.next)&&(x(a),a=a.next),a}function s(t,e){if(!t)return t;e||(e=t);var i,r=t;do{if(i=!1,r.steiner||!g(r,r.next)&&0!==m(r.prev,r,r.next))r=r.next;else{if(x(r),(r=e=r.prev)===r.next)return null;i=!0}}while(i||r!==e);return e}function a(t,e,i,r,n,c,d){if(t){!d&&c&&function(t,e,i,r){var n=t;for(;null===n.z&&(n.z=p(n.x,n.y,e,i,r)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next,n!==t;);n.prevZ.nextZ=null,n.prevZ=null,function(t){var e,i,r,n,s,a,o,l,h=1;do{for(i=t,t=null,s=null,a=0;i;){for(a++,r=i,o=0,e=0;e<h&&(o++,r=r.nextZ);e++);for(l=h;o>0||l>0&&r;)0===o?(n=r,r=r.nextZ,l--):0!==l&&r?i.z<=r.z?(n=i,i=i.nextZ,o--):(n=r,r=r.nextZ,l--):(n=i,i=i.nextZ,o--),s?s.nextZ=n:t=n,n.prevZ=s,s=n;i=r}s.nextZ=null,h*=2}while(a>1)}(n)}(t,r,n,c);for(var f,_,m=t;t.prev!==t.next;)if(f=t.prev,_=t.next,c?l(t,r,n,c):o(t))e.push(f.i/i),e.push(t.i/i),e.push(_.i/i),x(t),t=_.next,m=_.next;else if((t=_)===m){d?1===d?a(t=h(t,e,i),e,i,r,n,c,2):2===d&&u(t,e,i,r,n,c):a(s(t),e,i,r,n,c,1);break}}}function o(t){var e=t.prev,i=t,r=t.next;if(m(e,i,r)>=0)return!1;for(var n=t.next.next;n!==t.prev;){if(_(e.x,e.y,i.x,i.y,r.x,r.y,n.x,n.y)&&m(n.prev,n,n.next)>=0)return!1;n=n.next}return!0}function l(t,e,i,r){var n=t.prev,s=t,a=t.next;if(m(n,s,a)>=0)return!1;for(var o=n.x<s.x?n.x<a.x?n.x:a.x:s.x<a.x?s.x:a.x,l=n.y<s.y?n.y<a.y?n.y:a.y:s.y<a.y?s.y:a.y,h=n.x>s.x?n.x>a.x?n.x:a.x:s.x>a.x?s.x:a.x,u=n.y>s.y?n.y>a.y?n.y:a.y:s.y>a.y?s.y:a.y,c=p(o,l,e,i,r),d=p(h,u,e,i,r),f=t.nextZ;f&&f.z<=d;){if(f!==t.prev&&f!==t.next&&_(n.x,n.y,s.x,s.y,a.x,a.y,f.x,f.y)&&m(f.prev,f,f.next)>=0)return!1;f=f.nextZ}for(f=t.prevZ;f&&f.z>=c;){if(f!==t.prev&&f!==t.next&&_(n.x,n.y,s.x,s.y,a.x,a.y,f.x,f.y)&&m(f.prev,f,f.next)>=0)return!1;f=f.prevZ}return!0}function h(t,e,i){var r=t;do{var n=r.prev,s=r.next.next;!g(n,s)&&v(n,r,r.next,s)&&y(n,s)&&y(s,n)&&(e.push(n.i/i),e.push(r.i/i),e.push(s.i/i),x(r),x(r.next),r=t=s),r=r.next}while(r!==t);return r}function u(t,e,i,r,n,o){var l,h,u=t;do{for(var c=u.next.next;c!==u.prev;){if(u.i!==c.i&&(h=c,(l=u).next.i!==h.i&&l.prev.i!==h.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&v(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(l,h)&&y(l,h)&&y(h,l)&&function(t,e){var i=t,r=!1,n=(t.x+e.x)/2,s=(t.y+e.y)/2;for(;i.y>s!=i.next.y>s&&n<(i.next.x-i.x)*(s-i.y)/(i.next.y-i.y)+i.x&&(r=!r),i=i.next,i!==t;);return r}(l,h))){var d=b(u,c);return u=s(u,u.next),d=s(d,d.next),a(u,e,i,r,n,o),void a(d,e,i,r,n,o)}c=c.next}u=u.next}while(u!==t)}function c(t,e){return t.x-e.x}function d(t,e){if(e=function(t,e){var i,r=e,n=t.x,s=t.y,a=-1/0;do{if(s<=r.y&&s>=r.next.y){var o=r.x+(s-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(o<=n&&o>a){if(a=o,o===n){if(s===r.y)return r;if(s===r.next.y)return r.next}i=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!i)return null;if(n===a)return i.prev;var l,h=i,u=i.x,c=i.y,d=1/0;r=i.next;for(;r!==h;)n>=r.x&&r.x>=u&&_(s<c?n:a,s,u,c,s<c?a:n,s,r.x,r.y)&&((l=Math.abs(s-r.y)/(n-r.x))<d||l===d&&r.x>i.x)&&y(r,t)&&(i=r,d=l),r=r.next;return i}(t,e)){var i=b(e,t);s(i,i.next)}}function p(t,e,i,r,n){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)/n)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)/n)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function f(t){for(var e=t,i=t;e.x<i.x&&(i=e),(e=e.next)!==t;);return i}function _(t,e,i,r,n,s,a,o){return(n-a)*(e-o)-(t-a)*(s-o)>=0&&(t-a)*(r-o)-(i-a)*(e-o)>=0&&(i-a)*(s-o)-(n-a)*(r-o)>=0}function m(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function g(t,e){return t.x===e.x&&t.y===e.y}function v(t,e,i,r){return!!(g(t,e)&&g(i,r)||g(t,r)&&g(i,e))||m(t,e,i)>0!=m(t,e,r)>0&&m(i,r,t)>0!=m(i,r,e)>0}function y(t,e){return m(t.prev,t,t.next)<0?m(t,e,t.next)>=0&&m(t,t.prev,e)>=0:m(t,e,t.prev)<0||m(t,t.next,e)<0}function b(t,e){var i=new E(t.i,t.x,t.y),r=new E(e.i,e.x,e.y),n=t.next,s=e.prev;return t.next=e,e.prev=t,i.next=n,n.prev=i,r.next=i,i.prev=r,s.next=r,r.prev=s,r}function T(t,e,i,r){var n=new E(t,e,i);return r?(n.next=r.next,n.prev=r,r.next.prev=n,r.next=n):(n.prev=n,n.next=n),n}function x(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function E(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function w(t,e,i,r){for(var n=0,s=e,a=i-r;s<i;s+=r)n+=(t[a]-t[s])*(t[s+1]+t[a+1]),a=s;return n}e.exports=r,r.deviation=function(t,e,i,r){var n=e&&e.length,s=n?e[0]*i:t.length,a=Math.abs(w(t,0,s,i));if(n)for(var o=0,l=e.length;o<l;o++){var h=e[o]*i,u=o<l-1?e[o+1]*i:t.length;a-=Math.abs(w(t,h,u,i))}var c=0;for(o=0;o<r.length;o+=3){var d=r[o]*i,p=r[o+1]*i,f=r[o+2]*i;c+=Math.abs((t[d]-t[f])*(t[p+1]-t[d+1])-(t[d]-t[p])*(t[f+1]-t[d+1]))}return 0===a&&0===c?0:Math.abs((c-a)/a)},r.flatten=function(t){for(var e=t[0][0].length,i={vertices:[],holes:[],dimensions:e},r=0,n=0;n<t.length;n++){for(var s=0;s<t[n].length;s++)for(var a=0;a<e;a++)i.vertices.push(t[n][s][a]);n>0&&(r+=t[n-1].length,i.holes.push(r))}return i}},{}],3:[function(t,e,i){"use strict";var r=Object.prototype.hasOwnProperty,n="~";function s(){}function a(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function o(){this._events=new s,this._eventsCount=0}Object.create&&(s.prototype=Object.create(null),(new s).__proto__||(n=!1)),o.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)r.call(t,e)&&i.push(n?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},o.prototype.listeners=function(t,e){var i=n?n+t:t,r=this._events[i];if(e)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var s=0,a=r.length,o=new Array(a);s<a;s++)o[s]=r[s].fn;return o},o.prototype.emit=function(t,e,i,r,s,a){var o=n?n+t:t;if(!this._events[o])return!1;var l,h,u=this._events[o],c=arguments.length;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void 0,!0),c){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,e),!0;case 3:return u.fn.call(u.context,e,i),!0;case 4:return u.fn.call(u.context,e,i,r),!0;case 5:return u.fn.call(u.context,e,i,r,s),!0;case 6:return u.fn.call(u.context,e,i,r,s,a),!0}for(h=1,l=new Array(c-1);h<c;h++)l[h-1]=arguments[h];u.fn.apply(u.context,l)}else{var d,p=u.length;for(h=0;h<p;h++)switch(u[h].once&&this.removeListener(t,u[h].fn,void 0,!0),c){case 1:u[h].fn.call(u[h].context);break;case 2:u[h].fn.call(u[h].context,e);break;case 3:u[h].fn.call(u[h].context,e,i);break;case 4:u[h].fn.call(u[h].context,e,i,r);break;default:if(!l)for(d=1,l=new Array(c-1);d<c;d++)l[d-1]=arguments[d];u[h].fn.apply(u[h].context,l)}}return!0},o.prototype.on=function(t,e,i){var r=new a(e,i||this),s=n?n+t:t;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],r]:this._events[s].push(r):(this._events[s]=r,this._eventsCount++),this},o.prototype.once=function(t,e,i){var r=new a(e,i||this,!0),s=n?n+t:t;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],r]:this._events[s].push(r):(this._events[s]=r,this._eventsCount++),this},o.prototype.removeListener=function(t,e,i,r){var a=n?n+t:t;if(!this._events[a])return this;if(!e)return 0==--this._eventsCount?this._events=new s:delete this._events[a],this;var o=this._events[a];if(o.fn)o.fn!==e||r&&!o.once||i&&o.context!==i||(0==--this._eventsCount?this._events=new s:delete this._events[a]);else{for(var l=0,h=[],u=o.length;l<u;l++)(o[l].fn!==e||r&&!o[l].once||i&&o[l].context!==i)&&h.push(o[l]);h.length?this._events[a]=1===h.length?h[0]:h:0==--this._eventsCount?this._events=new s:delete this._events[a]}return this},o.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&(0==--this._eventsCount?this._events=new s:delete this._events[e])):(this._events=new s,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prototype.setMaxListeners=function(){return this},o.prefixed=n,o.EventEmitter=o,void 0!==e&&(e.exports=o)},{}],4:[function(t,e,i){var r,n,s,a,o,l,h,u,c,d,p,f,_,m,g,v,y,b,T;r=this,n=/iPhone/i,s=/iPod/i,a=/iPad/i,o=/(?=.*\bAndroid\b)(?=.*\bMobile\b)/i,l=/Android/i,h=/(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i,u=/(?=.*\bAndroid\b)(?=.*\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\b)/i,c=/Windows Phone/i,d=/(?=.*\bWindows\b)(?=.*\bARM\b)/i,p=/BlackBerry/i,f=/BB10/i,_=/Opera Mini/i,m=/(CriOS|Chrome)(?=.*\bMobile\b)/i,g=/(?=.*\bFirefox\b)(?=.*\bMobile\b)/i,v=new RegExp("(?:Nexus 7|BNTV250|Kindle Fire|Silk|GT-P1000)","i"),y=function(t,e){return t.test(e)},b=function(t){var e=t||navigator.userAgent,i=e.split("[FBAN");if(void 0!==i[1]&&(e=i[0]),void 0!==(i=e.split("Twitter"))[1]&&(e=i[0]),this.apple={phone:y(n,e),ipod:y(s,e),tablet:!y(n,e)&&y(a,e),device:y(n,e)||y(s,e)||y(a,e)},this.amazon={phone:y(h,e),tablet:!y(h,e)&&y(u,e),device:y(h,e)||y(u,e)},this.android={phone:y(h,e)||y(o,e),tablet:!y(h,e)&&!y(o,e)&&(y(u,e)||y(l,e)),device:y(h,e)||y(u,e)||y(o,e)||y(l,e)},this.windows={phone:y(c,e),tablet:y(d,e),device:y(c,e)||y(d,e)},this.other={blackberry:y(p,e),blackberry10:y(f,e),opera:y(_,e),firefox:y(g,e),chrome:y(m,e),device:y(p,e)||y(f,e)||y(_,e)||y(g,e)||y(m,e)},this.seven_inch=y(v,e),this.any=this.apple.device||this.android.device||this.windows.device||this.other.device||this.seven_inch,this.phone=this.apple.phone||this.android.phone||this.windows.phone,this.tablet=this.apple.tablet||this.android.tablet||this.windows.tablet,"undefined"==typeof window)return this},T=function(){var t=new b;return t.Class=b,t},void 0!==e&&e.exports&&"undefined"==typeof window?e.exports=b:void 0!==e&&e.exports&&"undefined"!=typeof window?e.exports=T():r.isMobile=T()},{}],5:[function(t,e,i){"use strict";var r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var i,a,o=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),l=1;l<arguments.length;l++){for(var h in i=Object(arguments[l]))n.call(i,h)&&(o[h]=i[h]);if(r){a=r(i);for(var u=0;u<a.length;u++)s.call(i,a[u])&&(o[a[u]]=i[a[u]])}}return o}},{}],6:[function(t,e,i){var r=new ArrayBuffer(0),n=function(t,e,i,n){this.gl=t,this.buffer=t.createBuffer(),this.type=e||t.ARRAY_BUFFER,this.drawType=n||t.STATIC_DRAW,this.data=r,i&&this.upload(i),this._updateID=0};n.prototype.upload=function(t,e,i){i||this.bind();var r=this.gl;t=t||this.data,e=e||0,this.data.byteLength>=t.byteLength?r.bufferSubData(this.type,e,t):r.bufferData(this.type,t,this.drawType),this.data=t},n.prototype.bind=function(){this.gl.bindBuffer(this.type,this.buffer)},n.createVertexBuffer=function(t,e,i){return new n(t,t.ARRAY_BUFFER,e,i)},n.createIndexBuffer=function(t,e,i){return new n(t,t.ELEMENT_ARRAY_BUFFER,e,i)},n.create=function(t,e,i,r){return new n(t,e,i,r)},n.prototype.destroy=function(){this.gl.deleteBuffer(this.buffer)},e.exports=n},{}],7:[function(t,e,i){var r=t("./GLTexture"),n=function(t,e,i){this.gl=t,this.framebuffer=t.createFramebuffer(),this.stencil=null,this.texture=null,this.width=e||100,this.height=i||100};n.prototype.enableTexture=function(t){var e=this.gl;this.texture=t||new r(e),this.texture.bind(),this.bind(),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.texture.texture,0)},n.prototype.enableStencil=function(){if(!this.stencil){var t=this.gl;this.stencil=t.createRenderbuffer(),t.bindRenderbuffer(t.RENDERBUFFER,this.stencil),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,this.stencil),t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,this.width,this.height)}},n.prototype.clear=function(t,e,i,r){this.bind();var n=this.gl;n.clearColor(t,e,i,r),n.clear(n.COLOR_BUFFER_BIT|n.DEPTH_BUFFER_BIT)},n.prototype.bind=function(){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,this.framebuffer)},n.prototype.unbind=function(){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,null)},n.prototype.resize=function(t,e){var i=this.gl;this.width=t,this.height=e,this.texture&&this.texture.uploadData(null,t,e),this.stencil&&(i.bindRenderbuffer(i.RENDERBUFFER,this.stencil),i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,t,e))},n.prototype.destroy=function(){var t=this.gl;this.texture&&this.texture.destroy(),t.deleteFramebuffer(this.framebuffer),this.gl=null,this.stencil=null,this.texture=null},n.createRGBA=function(t,e,i,s){var a=r.fromData(t,null,e,i);a.enableNearestScaling(),a.enableWrapClamp();var o=new n(t,e,i);return o.enableTexture(a),o.unbind(),o},n.createFloat32=function(t,e,i,s){var a=new r.fromData(t,s,e,i);a.enableNearestScaling(),a.enableWrapClamp();var o=new n(t,e,i);return o.enableTexture(a),o.unbind(),o},e.exports=n},{"./GLTexture":9}],8:[function(t,e,i){var r=t("./shader/compileProgram"),n=t("./shader/extractAttributes"),s=t("./shader/extractUniforms"),a=t("./shader/setPrecision"),o=t("./shader/generateUniformAccessObject"),l=function(t,e,i,l,h){this.gl=t,l&&(e=a(e,l),i=a(i,l)),this.program=r(t,e,i,h),this.attributes=n(t,this.program),this.uniformData=s(t,this.program),this.uniforms=o(t,this.uniformData)};l.prototype.bind=function(){this.gl.useProgram(this.program)},l.prototype.destroy=function(){this.attributes=null,this.uniformData=null,this.uniforms=null,this.gl.deleteProgram(this.program)},e.exports=l},{"./shader/compileProgram":14,"./shader/extractAttributes":16,"./shader/extractUniforms":17,"./shader/generateUniformAccessObject":18,"./shader/setPrecision":22}],9:[function(t,e,i){var r=function(t,e,i,r,n){this.gl=t,this.texture=t.createTexture(),this.mipmap=!1,this.premultiplyAlpha=!1,this.width=e||-1,this.height=i||-1,this.format=r||t.RGBA,this.type=n||t.UNSIGNED_BYTE};r.prototype.upload=function(t){this.bind();var e=this.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha);var i=t.videoWidth||t.width,r=t.videoHeight||t.height;r!==this.height||i!==this.width?e.texImage2D(e.TEXTURE_2D,0,this.format,this.format,this.type,t):e.texSubImage2D(e.TEXTURE_2D,0,0,0,this.format,this.type,t),this.width=i,this.height=r};var n=!1;r.prototype.uploadData=function(t,e,i){this.bind();var r=this.gl;if(t instanceof Float32Array){if(!n){if(!r.getExtension("OES_texture_float"))throw new Error("floating point textures not available");n=!0}this.type=r.FLOAT}else this.type=this.type||r.UNSIGNED_BYTE;r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha),e!==this.width||i!==this.height?r.texImage2D(r.TEXTURE_2D,0,this.format,e,i,0,this.format,this.type,t||null):r.texSubImage2D(r.TEXTURE_2D,0,0,0,e,i,this.format,this.type,t||null),this.width=e,this.height=i},r.prototype.bind=function(t){var e=this.gl;void 0!==t&&e.activeTexture(e.TEXTURE0+t),e.bindTexture(e.TEXTURE_2D,this.texture)},r.prototype.unbind=function(){var t=this.gl;t.bindTexture(t.TEXTURE_2D,null)},r.prototype.minFilter=function(t){var e=this.gl;this.bind(),this.mipmap?e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t?e.LINEAR_MIPMAP_LINEAR:e.NEAREST_MIPMAP_NEAREST):e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t?e.LINEAR:e.NEAREST)},r.prototype.magFilter=function(t){var e=this.gl;this.bind(),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,t?e.LINEAR:e.NEAREST)},r.prototype.enableMipmap=function(){var t=this.gl;this.bind(),this.mipmap=!0,t.generateMipmap(t.TEXTURE_2D)},r.prototype.enableLinearScaling=function(){this.minFilter(!0),this.magFilter(!0)},r.prototype.enableNearestScaling=function(){this.minFilter(!1),this.magFilter(!1)},r.prototype.enableWrapClamp=function(){var t=this.gl;this.bind(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE)},r.prototype.enableWrapRepeat=function(){var t=this.gl;this.bind(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.REPEAT)},r.prototype.enableWrapMirrorRepeat=function(){var t=this.gl;this.bind(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.MIRRORED_REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.MIRRORED_REPEAT)},r.prototype.destroy=function(){this.gl.deleteTexture(this.texture)},r.fromSource=function(t,e,i){var n=new r(t);return n.premultiplyAlpha=i||!1,n.upload(e),n},r.fromData=function(t,e,i,n){var s=new r(t);return s.uploadData(e,i,n),s},e.exports=r},{}],10:[function(t,e,i){var r=t("./setVertexAttribArrays");function n(t,e){if(this.nativeVaoExtension=null,n.FORCE_NATIVE||(this.nativeVaoExtension=t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object")),this.nativeState=e,this.nativeVaoExtension){this.nativeVao=this.nativeVaoExtension.createVertexArrayOES();var i=t.getParameter(t.MAX_VERTEX_ATTRIBS);this.nativeState={tempAttribState:new Array(i),attribState:new Array(i)}}this.gl=t,this.attributes=[],this.indexBuffer=null,this.dirty=!1}n.prototype.constructor=n,e.exports=n,n.FORCE_NATIVE=!1,n.prototype.bind=function(){return this.nativeVao?(this.nativeVaoExtension.bindVertexArrayOES(this.nativeVao),this.dirty&&(this.dirty=!1,this.activate())):this.activate(),this},n.prototype.unbind=function(){return this.nativeVao&&this.nativeVaoExtension.bindVertexArrayOES(null),this},n.prototype.activate=function(){for(var t=this.gl,e=null,i=0;i<this.attributes.length;i++){var n=this.attributes[i];e!==n.buffer&&(n.buffer.bind(),e=n.buffer),t.vertexAttribPointer(n.attribute.location,n.attribute.size,n.type||t.FLOAT,n.normalized||!1,n.stride||0,n.start||0)}return r(t,this.attributes,this.nativeState),this.indexBuffer&&this.indexBuffer.bind(),this},n.prototype.addAttribute=function(t,e,i,r,n,s){return this.attributes.push({buffer:t,attribute:e,location:e.location,type:i||this.gl.FLOAT,normalized:r||!1,stride:n||0,start:s||0}),this.dirty=!0,this},n.prototype.addIndex=function(t){return this.indexBuffer=t,this.dirty=!0,this},n.prototype.clear=function(){return this.nativeVao&&this.nativeVaoExtension.bindVertexArrayOES(this.nativeVao),this.attributes.length=0,this.indexBuffer=null,this},n.prototype.draw=function(t,e,i){var r=this.gl;return this.indexBuffer?r.drawElements(t,e||this.indexBuffer.data.length,r.UNSIGNED_SHORT,2*(i||0)):r.drawArrays(t,i,e||this.getSize()),this},n.prototype.destroy=function(){this.gl=null,this.indexBuffer=null,this.attributes=null,this.nativeState=null,this.nativeVao&&this.nativeVaoExtension.deleteVertexArrayOES(this.nativeVao),this.nativeVaoExtension=null,this.nativeVao=null},n.prototype.getSize=function(){var t=this.attributes[0];return t.buffer.data.length/(t.stride/4||t.attribute.size)}},{"./setVertexAttribArrays":13}],11:[function(t,e,i){e.exports=function(t,e){var i=t.getContext("webgl",e)||t.getContext("experimental-webgl",e);if(!i)throw new Error("This browser does not support webGL. Try using the canvas renderer");return i}},{}],12:[function(t,e,i){var r={createContext:t("./createContext"),setVertexAttribArrays:t("./setVertexAttribArrays"),GLBuffer:t("./GLBuffer"),GLFramebuffer:t("./GLFramebuffer"),GLShader:t("./GLShader"),GLTexture:t("./GLTexture"),VertexArrayObject:t("./VertexArrayObject"),shader:t("./shader")};void 0!==e&&e.exports&&(e.exports=r),"undefined"!=typeof window&&(window.PIXI=window.PIXI||{},window.PIXI.glCore=r)},{"./GLBuffer":6,"./GLFramebuffer":7,"./GLShader":8,"./GLTexture":9,"./VertexArrayObject":10,"./createContext":11,"./setVertexAttribArrays":13,"./shader":19}],13:[function(t,e,i){e.exports=function(t,e,i){var r;if(i){var n=i.tempAttribState,s=i.attribState;for(r=0;r<n.length;r++)n[r]=!1;for(r=0;r<e.length;r++)n[e[r].attribute.location]=!0;for(r=0;r<s.length;r++)s[r]!==n[r]&&(s[r]=n[r],i.attribState[r]?t.enableVertexAttribArray(r):t.disableVertexAttribArray(r))}else for(r=0;r<e.length;r++){var a=e[r];t.enableVertexAttribArray(a.attribute.location)}}},{}],14:[function(t,e,i){var r=function(t,e,i){var r=t.createShader(e);return t.shaderSource(r,i),t.compileShader(r),t.getShaderParameter(r,t.COMPILE_STATUS)?r:(console.log(t.getShaderInfoLog(r)),null)};e.exports=function(t,e,i,n){var s=r(t,t.VERTEX_SHADER,e),a=r(t,t.FRAGMENT_SHADER,i),o=t.createProgram();if(t.attachShader(o,s),t.attachShader(o,a),n)for(var l in n)t.bindAttribLocation(o,n[l],l);return t.linkProgram(o),t.getProgramParameter(o,t.LINK_STATUS)||(console.error("Pixi.js Error: Could not initialize shader."),console.error("gl.VALIDATE_STATUS",t.getProgramParameter(o,t.VALIDATE_STATUS)),console.error("gl.getError()",t.getError()),""!==t.getProgramInfoLog(o)&&console.warn("Pixi.js Warning: gl.getProgramInfoLog()",t.getProgramInfoLog(o)),t.deleteProgram(o),o=null),t.deleteShader(s),t.deleteShader(a),o}},{}],15:[function(t,e,i){var r=function(t){for(var e=new Array(t),i=0;i<e.length;i++)e[i]=!1;return e};e.exports=function(t,e){switch(t){case"float":return 0;case"vec2":return new Float32Array(2*e);case"vec3":return new Float32Array(3*e);case"vec4":return new Float32Array(4*e);case"int":case"sampler2D":return 0;case"ivec2":return new Int32Array(2*e);case"ivec3":return new Int32Array(3*e);case"ivec4":return new Int32Array(4*e);case"bool":return!1;case"bvec2":return r(2*e);case"bvec3":return r(3*e);case"bvec4":return r(4*e);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}}},{}],16:[function(t,e,i){var r=t("./mapType"),n=t("./mapSize"),s=function(t,e,i,r){gl.vertexAttribPointer(this.location,this.size,t||gl.FLOAT,e||!1,i||0,r||0)};e.exports=function(t,e){for(var i={},a=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),o=0;o<a;o++){var l=t.getActiveAttrib(e,o),h=r(t,l.type);i[l.name]={type:h,size:n(h),location:t.getAttribLocation(e,l.name),pointer:s}}return i}},{"./mapSize":20,"./mapType":21}],17:[function(t,e,i){var r=t("./mapType"),n=t("./defaultValue");e.exports=function(t,e){for(var i={},s=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),a=0;a<s;a++){var o=t.getActiveUniform(e,a),l=o.name.replace(/\[.*?\]/,""),h=r(t,o.type);i[l]={type:h,size:o.size,location:t.getUniformLocation(e,l),value:n(h,o.size)}}return i}},{"./defaultValue":15,"./mapType":21}],18:[function(t,e,i){var r=function(t){var e=a.replace("%%",t);return new Function(e)},n=function(t,e){var i,r=o.replace(/%%/g,t);return(i=1===e.size?l[e.type]:h[e.type])&&(r+="\nthis.gl."+i+";"),new Function("value",r)},s=function(t,e){for(var i=e,r=0;r<t.length-1;r++){var n=i[t[r]]||{data:{}};i[t[r]]=n,i=n}return i},a=["return this.data.%%.value;"].join("\n"),o=["this.data.%%.value = value;","var location = this.data.%%.location;"].join("\n"),l={float:"uniform1f(location, value)",vec2:"uniform2f(location, value[0], value[1])",vec3:"uniform3f(location, value[0], value[1], value[2])",vec4:"uniform4f(location, value[0], value[1], value[2], value[3])",int:"uniform1i(location, value)",ivec2:"uniform2i(location, value[0], value[1])",ivec3:"uniform3i(location, value[0], value[1], value[2])",ivec4:"uniform4i(location, value[0], value[1], value[2], value[3])",bool:"uniform1i(location, value)",bvec2:"uniform2i(location, value[0], value[1])",bvec3:"uniform3i(location, value[0], value[1], value[2])",bvec4:"uniform4i(location, value[0], value[1], value[2], value[3])",mat2:"uniformMatrix2fv(location, false, value)",mat3:"uniformMatrix3fv(location, false, value)",mat4:"uniformMatrix4fv(location, false, value)",sampler2D:"uniform1i(location, value)"},h={float:"uniform1fv(location, value)",vec2:"uniform2fv(location, value)",vec3:"uniform3fv(location, value)",vec4:"uniform4fv(location, value)",int:"uniform1iv(location, value)",ivec2:"uniform2iv(location, value)",ivec3:"uniform3iv(location, value)",ivec4:"uniform4iv(location, value)",bool:"uniform1iv(location, value)",bvec2:"uniform2iv(location, value)",bvec3:"uniform3iv(location, value)",bvec4:"uniform4iv(location, value)",sampler2D:"uniform1iv(location, value)"};e.exports=function(t,e){var i={data:{}};i.gl=t;for(var a=Object.keys(e),o=0;o<a.length;o++){var l=a[o],h=l.split("."),u=h[h.length-1],c=s(h,i),d=e[l];c.data[u]=d,c.gl=t,Object.defineProperty(c,u,{get:r(u),set:n(u,d)})}return i}},{}],19:[function(t,e,i){e.exports={compileProgram:t("./compileProgram"),defaultValue:t("./defaultValue"),extractAttributes:t("./extractAttributes"),extractUniforms:t("./extractUniforms"),generateUniformAccessObject:t("./generateUniformAccessObject"),setPrecision:t("./setPrecision"),mapSize:t("./mapSize"),mapType:t("./mapType")}},{"./compileProgram":14,"./defaultValue":15,"./extractAttributes":16,"./extractUniforms":17,"./generateUniformAccessObject":18,"./mapSize":20,"./mapType":21,"./setPrecision":22}],20:[function(t,e,i){var r={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};e.exports=function(t){return r[t]}},{}],21:[function(t,e,i){var r=null,n={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D"};e.exports=function(t,e){if(!r){var i=Object.keys(n);r={};for(var s=0;s<i.length;++s){var a=i[s];r[t[a]]=n[a]}}return r[e]}},{}],22:[function(t,e,i){e.exports=function(t,e){return"precision"!==t.substring(0,9)?"precision "+e+" float;\n"+t:t}},{}],23:[function(t,e,i){(function(t){function e(t,e){for(var i=0,r=t.length-1;r>=0;r--){var n=t[r];"."===n?t.splice(r,1):".."===n?(t.splice(r,1),i++):i&&(t.splice(r,1),i--)}if(e)for(;i--;i)t.unshift("..");return t}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,n=function(t){return r.exec(t).slice(1)};function s(t,e){if(t.filter)return t.filter(e);for(var i=[],r=0;r<t.length;r++)e(t[r],r,t)&&i.push(t[r]);return i}i.resolve=function(){for(var i="",r=!1,n=arguments.length-1;n>=-1&&!r;n--){var a=n>=0?arguments[n]:t.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(i=a+"/"+i,r="/"===a.charAt(0))}return(r?"/":"")+(i=e(s(i.split("/"),function(t){return!!t}),!r).join("/"))||"."},i.normalize=function(t){var r=i.isAbsolute(t),n="/"===a(t,-1);return(t=e(s(t.split("/"),function(t){return!!t}),!r).join("/"))||r||(t="."),t&&n&&(t+="/"),(r?"/":"")+t},i.isAbsolute=function(t){return"/"===t.charAt(0)},i.join=function(){var t=Array.prototype.slice.call(arguments,0);return i.normalize(s(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},i.relative=function(t,e){function r(t){for(var e=0;e<t.length&&""===t[e];e++);for(var i=t.length-1;i>=0&&""===t[i];i--);return e>i?[]:t.slice(e,i-e+1)}t=i.resolve(t).substr(1),e=i.resolve(e).substr(1);for(var n=r(t.split("/")),s=r(e.split("/")),a=Math.min(n.length,s.length),o=a,l=0;l<a;l++)if(n[l]!==s[l]){o=l;break}var h=[];for(l=o;l<n.length;l++)h.push("..");return(h=h.concat(s.slice(o))).join("/")},i.sep="/",i.delimiter=":",i.dirname=function(t){var e=n(t),i=e[0],r=e[1];return i||r?(r&&(r=r.substr(0,r.length-1)),i+r):"."},i.basename=function(t,e){var i=n(t)[2];return e&&i.substr(-1*e.length)===e&&(i=i.substr(0,i.length-e.length)),i},i.extname=function(t){return n(t)[3]};var a="b"==="ab".substr(-1)?function(t,e,i){return t.substr(e,i)}:function(t,e,i){return e<0&&(e=t.length+e),t.substr(e,i)}}).call(this,t("_process"))},{_process:24}],24:[function(t,e,i){var r,n,s=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function l(t){if(r===setTimeout)return setTimeout(t,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(t){r=a}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var h,u=[],c=!1,d=-1;function p(){c&&h&&(c=!1,h.length?u=h.concat(u):d=-1,u.length&&f())}function f(){if(!c){var t=l(p);c=!0;for(var e=u.length;e;){for(h=u,u=[];++d<e;)h&&h[d].run();d=-1,e=u.length}h=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function _(t,e){this.fun=t,this.array=e}function m(){}s.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];u.push(new _(t,e)),1!==u.length||c||l(f)},_.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=m,s.addListener=m,s.once=m,s.off=m,s.removeListener=m,s.removeAllListeners=m,s.emit=m,s.prependListener=m,s.prependOnceListener=m,s.listeners=function(t){return[]},s.binding=function(t){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(t){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},{}],25:[function(t,e,i){(function(t){!function(r){var n="object"==typeof i&&i&&!i.nodeType&&i,s="object"==typeof e&&e&&!e.nodeType&&e,a="object"==typeof t&&t;a.global!==a&&a.window!==a&&a.self!==a||(r=a);var o,l,h=2147483647,u=36,c=1,d=26,p=38,f=700,_=72,m=128,g="-",v=/^xn--/,y=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,T={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=u-c,E=Math.floor,w=String.fromCharCode;function S(t){throw new RangeError(T[t])}function D(t,e){for(var i=t.length,r=[];i--;)r[i]=e(t[i]);return r}function I(t,e){var i=t.split("@"),r="";return i.length>1&&(r=i[0]+"@",t=i[1]),r+D((t=t.replace(b,".")).split("."),e).join(".")}function P(t){for(var e,i,r=[],n=0,s=t.length;n<s;)(e=t.charCodeAt(n++))>=55296&&e<=56319&&n<s?56320==(64512&(i=t.charCodeAt(n++)))?r.push(((1023&e)<<10)+(1023&i)+65536):(r.push(e),n--):r.push(e);return r}function A(t){return D(t,function(t){var e="";return t>65535&&(e+=w((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=w(t)}).join("")}function C(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function M(t,e,i){var r=0;for(t=i?E(t/f):t>>1,t+=E(t/e);t>x*d>>1;r+=u)t=E(t/x);return E(r+(x+1)*t/(t+p))}function L(t){var e,i,r,n,s,a,o,l,p,f,v,y=[],b=t.length,T=0,x=m,w=_;for((i=t.lastIndexOf(g))<0&&(i=0),r=0;r<i;++r)t.charCodeAt(r)>=128&&S("not-basic"),y.push(t.charCodeAt(r));for(n=i>0?i+1:0;n<b;){for(s=T,a=1,o=u;n>=b&&S("invalid-input"),((l=(v=t.charCodeAt(n++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:u)>=u||l>E((h-T)/a))&&S("overflow"),T+=l*a,!(l<(p=o<=w?c:o>=w+d?d:o-w));o+=u)a>E(h/(f=u-p))&&S("overflow"),a*=f;w=M(T-s,e=y.length+1,0==s),E(T/e)>h-x&&S("overflow"),x+=E(T/e),T%=e,y.splice(T++,0,x)}return A(y)}function O(t){var e,i,r,n,s,a,o,l,p,f,v,y,b,T,x,D=[];for(y=(t=P(t)).length,e=m,i=0,s=_,a=0;a<y;++a)(v=t[a])<128&&D.push(w(v));for(r=n=D.length,n&&D.push(g);r<y;){for(o=h,a=0;a<y;++a)(v=t[a])>=e&&v<o&&(o=v);for(o-e>E((h-i)/(b=r+1))&&S("overflow"),i+=(o-e)*b,e=o,a=0;a<y;++a)if((v=t[a])<e&&++i>h&&S("overflow"),v==e){for(l=i,p=u;!(l<(f=p<=s?c:p>=s+d?d:p-s));p+=u)x=l-f,T=u-f,D.push(w(C(f+x%T,0))),l=E(x/T);D.push(w(C(l,0))),s=M(i,b,r==n),i=0,++r}++i,++e}return D.join("")}if(o={version:"1.4.1",ucs2:{decode:P,encode:A},decode:L,encode:O,toASCII:function(t){return I(t,function(t){return y.test(t)?"xn--"+O(t):t})},toUnicode:function(t){return I(t,function(t){return v.test(t)?L(t.slice(4).toLowerCase()):t})}},n&&s)if(e.exports==n)s.exports=o;else for(l in o)o.hasOwnProperty(l)&&(n[l]=o[l]);else r.punycode=o}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],26:[function(t,e,i){"use strict";e.exports=function(t,e,i,n){e=e||"&",i=i||"=";var s={};if("string"!=typeof t||0===t.length)return s;var a=/\+/g;t=t.split(e);var o=1e3;n&&"number"==typeof n.maxKeys&&(o=n.maxKeys);var l,h,u=t.length;o>0&&u>o&&(u=o);for(var c=0;c<u;++c){var d,p,f,_,m=t[c].replace(a,"%20"),g=m.indexOf(i);g>=0?(d=m.substr(0,g),p=m.substr(g+1)):(d=m,p=""),f=decodeURIComponent(d),_=decodeURIComponent(p),l=s,h=f,Object.prototype.hasOwnProperty.call(l,h)?r(s[f])?s[f].push(_):s[f]=[s[f],_]:s[f]=_}return s};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},{}],27:[function(t,e,i){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};e.exports=function(t,e,i,o){return e=e||"&",i=i||"=",null===t&&(t=void 0),"object"==typeof t?s(a(t),function(a){var o=encodeURIComponent(r(a))+i;return n(t[a])?s(t[a],function(t){return o+encodeURIComponent(r(t))}).join(e):o+encodeURIComponent(r(t[a]))}).join(e):o?encodeURIComponent(r(o))+i+encodeURIComponent(r(t)):""};var n=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function s(t,e){if(t.map)return t.map(e);for(var i=[],r=0;r<t.length;r++)i.push(e(t[r],r));return i}var a=Object.keys||function(t){var e=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.push(i);return e}},{}],28:[function(t,e,i){"use strict";i.decode=i.parse=t("./decode"),i.encode=i.stringify=t("./encode")},{"./decode":26,"./encode":27}],29:[function(t,e,i){"use strict";var r=t("punycode"),n=t("./util");function s(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}i.parse=y,i.resolve=function(t,e){return y(t,!1,!0).resolve(e)},i.resolveObject=function(t,e){return t?y(t,!1,!0).resolveObject(e):e},i.format=function(t){n.isString(t)&&(t=y(t));return t instanceof s?t.format():s.prototype.format.call(t)},i.Url=s;var a=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,h=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(h),c=["%","/","?",";","#"].concat(u),d=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=t("querystring");function y(t,e,i){if(t&&n.isObject(t)&&t instanceof s)return t;var r=new s;return r.parse(t,e,i),r}s.prototype.parse=function(t,e,i){if(!n.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var s=t.indexOf("?"),o=-1!==s&&s<t.indexOf("#")?"?":"#",h=t.split(o);h[0]=h[0].replace(/\\/g,"/");var y=t=h.join(o);if(y=y.trim(),!i&&1===t.split("#").length){var b=l.exec(y);if(b)return this.path=y,this.href=y,this.pathname=b[1],b[2]?(this.search=b[2],this.query=e?v.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var T=a.exec(y);if(T){var x=(T=T[0]).toLowerCase();this.protocol=x,y=y.substr(T.length)}if(i||T||y.match(/^\/\/[^@\/]+@[^@\/]+/)){var E="//"===y.substr(0,2);!E||T&&m[T]||(y=y.substr(2),this.slashes=!0)}if(!m[T]&&(E||T&&!g[T])){for(var w,S,D=-1,I=0;I<d.length;I++){-1!==(P=y.indexOf(d[I]))&&(-1===D||P<D)&&(D=P)}-1!==(S=-1===D?y.lastIndexOf("@"):y.lastIndexOf("@",D))&&(w=y.slice(0,S),y=y.slice(S+1),this.auth=decodeURIComponent(w)),D=-1;for(I=0;I<c.length;I++){var P;-1!==(P=y.indexOf(c[I]))&&(-1===D||P<D)&&(D=P)}-1===D&&(D=y.length),this.host=y.slice(0,D),y=y.slice(D),this.parseHost(),this.hostname=this.hostname||"";var A="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!A)for(var C=this.hostname.split(/\./),M=(I=0,C.length);I<M;I++){var L=C[I];if(L&&!L.match(p)){for(var O="",R=0,j=L.length;R<j;R++)L.charCodeAt(R)>127?O+="x":O+=L[R];if(!O.match(p)){var k=C.slice(0,I),N=C.slice(I+1),H=L.match(f);H&&(k.push(H[1]),N.unshift(H[2])),N.length&&(y="/"+N.join(".")+y),this.hostname=k.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=r.toASCII(this.hostname));var B=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+B,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!_[x])for(I=0,M=u.length;I<M;I++){var U=u[I];if(-1!==y.indexOf(U)){var X=encodeURIComponent(U);X===U&&(X=escape(U)),y=y.split(U).join(X)}}var G=y.indexOf("#");-1!==G&&(this.hash=y.substr(G),y=y.slice(0,G));var V=y.indexOf("?");if(-1!==V?(this.search=y.substr(V),this.query=y.substr(V+1),e&&(this.query=v.parse(this.query)),y=y.slice(0,V)):e&&(this.search="",this.query={}),y&&(this.pathname=y),g[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){B=this.pathname||"";var Y=this.search||"";this.path=B+Y}return this.href=this.format(),this},s.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",i=this.pathname||"",r=this.hash||"",s=!1,a="";this.host?s=t+this.host:this.hostname&&(s=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(s+=":"+this.port)),this.query&&n.isObject(this.query)&&Object.keys(this.query).length&&(a=v.stringify(this.query));var o=this.search||a&&"?"+a||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||g[e])&&!1!==s?(s="//"+(s||""),i&&"/"!==i.charAt(0)&&(i="/"+i)):s||(s=""),r&&"#"!==r.charAt(0)&&(r="#"+r),o&&"?"!==o.charAt(0)&&(o="?"+o),e+s+(i=i.replace(/[?#]/g,function(t){return encodeURIComponent(t)}))+(o=o.replace("#","%23"))+r},s.prototype.resolve=function(t){return this.resolveObject(y(t,!1,!0)).format()},s.prototype.resolveObject=function(t){if(n.isString(t)){var e=new s;e.parse(t,!1,!0),t=e}for(var i=new s,r=Object.keys(this),a=0;a<r.length;a++){var o=r[a];i[o]=this[o]}if(i.hash=t.hash,""===t.href)return i.href=i.format(),i;if(t.slashes&&!t.protocol){for(var l=Object.keys(t),h=0;h<l.length;h++){var u=l[h];"protocol"!==u&&(i[u]=t[u])}return g[i.protocol]&&i.hostname&&!i.pathname&&(i.path=i.pathname="/"),i.href=i.format(),i}if(t.protocol&&t.protocol!==i.protocol){if(!g[t.protocol]){for(var c=Object.keys(t),d=0;d<c.length;d++){var p=c[d];i[p]=t[p]}return i.href=i.format(),i}if(i.protocol=t.protocol,t.host||m[t.protocol])i.pathname=t.pathname;else{for(var f=(t.pathname||"").split("/");f.length&&!(t.host=f.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),i.pathname=f.join("/")}if(i.search=t.search,i.query=t.query,i.host=t.host||"",i.auth=t.auth,i.hostname=t.hostname||t.host,i.port=t.port,i.pathname||i.search){var _=i.pathname||"",v=i.search||"";i.path=_+v}return i.slashes=i.slashes||t.slashes,i.href=i.format(),i}var y=i.pathname&&"/"===i.pathname.charAt(0),b=t.host||t.pathname&&"/"===t.pathname.charAt(0),T=b||y||i.host&&t.pathname,x=T,E=i.pathname&&i.pathname.split("/")||[],w=(f=t.pathname&&t.pathname.split("/")||[],i.protocol&&!g[i.protocol]);if(w&&(i.hostname="",i.port=null,i.host&&(""===E[0]?E[0]=i.host:E.unshift(i.host)),i.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===f[0]?f[0]=t.host:f.unshift(t.host)),t.host=null),T=T&&(""===f[0]||""===E[0])),b)i.host=t.host||""===t.host?t.host:i.host,i.hostname=t.hostname||""===t.hostname?t.hostname:i.hostname,i.search=t.search,i.query=t.query,E=f;else if(f.length)E||(E=[]),E.pop(),E=E.concat(f),i.search=t.search,i.query=t.query;else if(!n.isNullOrUndefined(t.search)){if(w)i.hostname=i.host=E.shift(),(A=!!(i.host&&i.host.indexOf("@")>0)&&i.host.split("@"))&&(i.auth=A.shift(),i.host=i.hostname=A.shift());return i.search=t.search,i.query=t.query,n.isNull(i.pathname)&&n.isNull(i.search)||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.href=i.format(),i}if(!E.length)return i.pathname=null,i.search?i.path="/"+i.search:i.path=null,i.href=i.format(),i;for(var S=E.slice(-1)[0],D=(i.host||t.host||E.length>1)&&("."===S||".."===S)||""===S,I=0,P=E.length;P>=0;P--)"."===(S=E[P])?E.splice(P,1):".."===S?(E.splice(P,1),I++):I&&(E.splice(P,1),I--);if(!T&&!x)for(;I--;I)E.unshift("..");!T||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),D&&"/"!==E.join("/").substr(-1)&&E.push("");var A,C=""===E[0]||E[0]&&"/"===E[0].charAt(0);w&&(i.hostname=i.host=C?"":E.length?E.shift():"",(A=!!(i.host&&i.host.indexOf("@")>0)&&i.host.split("@"))&&(i.auth=A.shift(),i.host=i.hostname=A.shift()));return(T=T||i.host&&E.length)&&!C&&E.unshift(""),E.length?i.pathname=E.join("/"):(i.pathname=null,i.path=null),n.isNull(i.pathname)&&n.isNull(i.search)||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.auth=t.auth||i.auth,i.slashes=i.slashes||t.slashes,i.href=i.format(),i},s.prototype.parseHost=function(){var t=this.host,e=o.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},{"./util":30,punycode:25,querystring:28}],30:[function(t,e,i){"use strict";e.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},{}],31:[function(t,e,i){"use strict";e.exports=function(t,e,i){var r,n=t.length;if(!(e>=n||0===i)){var s=n-(i=e+i>n?n-e:i);for(r=e;r<s;++r)t[r]=t[r+i];t.length=s}}},{}],32:[function(t,e,i){"use strict";i.__esModule=!0;var r="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},n=l(t("mini-signals")),s=l(t("parse-uri")),a=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("./async")),o=l(t("./Resource"));function l(t){return t&&t.__esModule?t:{default:t}}var h=/(#[\w-]+)?$/,u=function(){function t(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.baseUrl=i,this.progress=0,this.loading=!1,this.defaultQueryString="",this._beforeMiddleware=[],this._afterMiddleware=[],this._resourcesParsing=[],this._boundLoadResource=function(t,i){return e._loadResource(t,i)},this._queue=a.queue(this._boundLoadResource,r),this._queue.pause(),this.resources={},this.onProgress=new n.default,this.onError=new n.default,this.onLoad=new n.default,this.onStart=new n.default,this.onComplete=new n.default}return t.prototype.add=function(t,e,i,n){if(Array.isArray(t)){for(var s=0;s<t.length;++s)this.add(t[s]);return this}if("object"===(void 0===t?"undefined":r(t))&&(n=e||t.callback||t.onComplete,i=t,e=t.url,t=t.name||t.key||t.url),"string"!=typeof e&&(n=i,i=e,e=t),"string"!=typeof e)throw new Error("No url passed to add resource to loader.");if("function"==typeof i&&(n=i,i=null),this.loading&&(!i||!i.parentResource))throw new Error("Cannot add resources while the loader is running.");if(this.resources[t])throw new Error('Resource named "'+t+'" already exists.');if(e=this._prepareUrl(e),this.resources[t]=new o.default(t,e,i),"function"==typeof n&&this.resources[t].onAfterMiddleware.once(n),this.loading){for(var a=i.parentResource,l=[],h=0;h<a.children.length;++h)a.children[h].isComplete||l.push(a.children[h]);var u=a.progressChunk*(l.length+1)/(l.length+2);a.children.push(this.resources[t]),a.progressChunk=u;for(var c=0;c<l.length;++c)l[c].progressChunk=u;this.resources[t].progressChunk=u}return this._queue.push(this.resources[t]),this},t.prototype.pre=function(t){return this._beforeMiddleware.push(t),this},t.prototype.use=function(t){return this._afterMiddleware.push(t),this},t.prototype.reset=function(){for(var t in this.progress=0,this.loading=!1,this._queue.kill(),this._queue.pause(),this.resources){var e=this.resources[t];e._onLoadBinding&&e._onLoadBinding.detach(),e.isLoading&&e.abort()}return this.resources={},this},t.prototype.load=function(t){if("function"==typeof t&&this.onComplete.once(t),this.loading)return this;for(var e=100/this._queue._tasks.length,i=0;i<this._queue._tasks.length;++i)this._queue._tasks[i].data.progressChunk=e;return this.loading=!0,this.onStart.dispatch(this),this._queue.resume(),this},t.prototype._prepareUrl=function(t){var e=(0,s.default)(t,{strictMode:!0}),i=void 0;if(i=e.protocol||!e.path||0===t.indexOf("//")?t:this.baseUrl.length&&this.baseUrl.lastIndexOf("/")!==this.baseUrl.length-1&&"/"!==t.charAt(0)?this.baseUrl+"/"+t:this.baseUrl+t,this.defaultQueryString){var r=h.exec(i)[0];-1!==(i=i.substr(0,i.length-r.length)).indexOf("?")?i+="&"+this.defaultQueryString:i+="?"+this.defaultQueryString,i+=r}return i},t.prototype._loadResource=function(t,e){var i=this;t._dequeue=e,a.eachSeries(this._beforeMiddleware,function(e,r){e.call(i,t,function(){r(t.isComplete?{}:null)})},function(){t.isComplete?i._onLoad(t):(t._onLoadBinding=t.onComplete.once(i._onLoad,i),t.load())},!0)},t.prototype._onComplete=function(){this.loading=!1,this.onComplete.dispatch(this,this.resources)},t.prototype._onLoad=function(t){var e=this;t._onLoadBinding=null,this._resourcesParsing.push(t),t._dequeue(),a.eachSeries(this._afterMiddleware,function(i,r){i.call(e,t,r)},function(){t.onAfterMiddleware.dispatch(t),e.progress+=t.progressChunk,e.onProgress.dispatch(e,t),t.error?e.onError.dispatch(t.error,e,t):e.onLoad.dispatch(e,t),e._resourcesParsing.splice(e._resourcesParsing.indexOf(t),1),e._queue.idle()&&0===e._resourcesParsing.length&&(e.progress=100,e._onComplete())},!0)},t}();i.default=u},{"./Resource":33,"./async":34,"mini-signals":38,"parse-uri":39}],33:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=a(t("parse-uri")),s=a(t("mini-signals"));function a(t){return t&&t.__esModule?t:{default:t}}var o=!(!window.XDomainRequest||"withCredentials"in new XMLHttpRequest),l=null;function h(){}var u=function(){function t(e,i,r){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),"string"!=typeof e||"string"!=typeof i)throw new Error("Both name and url are required for constructing a resource.");r=r||{},this._flags=0,this._setFlag(t.STATUS_FLAGS.DATA_URL,0===i.indexOf("data:")),this.name=e,this.url=i,this.extension=this._getExtension(),this.data=null,this.crossOrigin=!0===r.crossOrigin?"anonymous":r.crossOrigin,this.loadType=r.loadType||this._determineLoadType(),this.xhrType=r.xhrType,this.metadata=r.metadata||{},this.error=null,this.xhr=null,this.children=[],this.type=t.TYPE.UNKNOWN,this.progressChunk=0,this._dequeue=h,this._onLoadBinding=null,this._boundComplete=this.complete.bind(this),this._boundOnError=this._onError.bind(this),this._boundOnProgress=this._onProgress.bind(this),this._boundXhrOnError=this._xhrOnError.bind(this),this._boundXhrOnAbort=this._xhrOnAbort.bind(this),this._boundXhrOnLoad=this._xhrOnLoad.bind(this),this._boundXdrOnTimeout=this._xdrOnTimeout.bind(this),this.onStart=new s.default,this.onProgress=new s.default,this.onComplete=new s.default,this.onAfterMiddleware=new s.default}return t.setExtensionLoadType=function(e,i){c(t._loadTypeMap,e,i)},t.setExtensionXhrType=function(e,i){c(t._xhrTypeMap,e,i)},t.prototype.complete=function(){if(this.data&&this.data.removeEventListener&&(this.data.removeEventListener("error",this._boundOnError,!1),this.data.removeEventListener("load",this._boundComplete,!1),this.data.removeEventListener("progress",this._boundOnProgress,!1),this.data.removeEventListener("canplaythrough",this._boundComplete,!1)),this.xhr&&(this.xhr.removeEventListener?(this.xhr.removeEventListener("error",this._boundXhrOnError,!1),this.xhr.removeEventListener("abort",this._boundXhrOnAbort,!1),this.xhr.removeEventListener("progress",this._boundOnProgress,!1),this.xhr.removeEventListener("load",this._boundXhrOnLoad,!1)):(this.xhr.onerror=null,this.xhr.ontimeout=null,this.xhr.onprogress=null,this.xhr.onload=null)),this.isComplete)throw new Error("Complete called again for an already completed resource.");this._setFlag(t.STATUS_FLAGS.COMPLETE,!0),this._setFlag(t.STATUS_FLAGS.LOADING,!1),this.onComplete.dispatch(this)},t.prototype.abort=function(e){if(!this.error){if(this.error=new Error(e),this.xhr)this.xhr.abort();else if(this.xdr)this.xdr.abort();else if(this.data)if(this.data.src)this.data.src=t.EMPTY_GIF;else for(;this.data.firstChild;)this.data.removeChild(this.data.firstChild);this.complete()}},t.prototype.load=function(e){var i=this;if(!this.isLoading)if(this.isComplete)e&&setTimeout(function(){return e(i)},1);else switch(e&&this.onComplete.once(e),this._setFlag(t.STATUS_FLAGS.LOADING,!0),this.onStart.dispatch(this),!1!==this.crossOrigin&&"string"==typeof this.crossOrigin||(this.crossOrigin=this._determineCrossOrigin(this.url)),this.loadType){case t.LOAD_TYPE.IMAGE:this.type=t.TYPE.IMAGE,this._loadElement("image");break;case t.LOAD_TYPE.AUDIO:this.type=t.TYPE.AUDIO,this._loadSourceElement("audio");break;case t.LOAD_TYPE.VIDEO:this.type=t.TYPE.VIDEO,this._loadSourceElement("video");break;case t.LOAD_TYPE.XHR:default:o&&this.crossOrigin?this._loadXdr():this._loadXhr()}},t.prototype._hasFlag=function(t){return!!(this._flags&t)},t.prototype._setFlag=function(t,e){this._flags=e?this._flags|t:this._flags&~t},t.prototype._loadElement=function(t){this.metadata.loadElement?this.data=this.metadata.loadElement:"image"===t&&void 0!==window.Image?this.data=new Image:this.data=document.createElement(t),this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.metadata.skipSource||(this.data.src=this.url),this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1)},t.prototype._loadSourceElement=function(t){if(this.metadata.loadElement?this.data=this.metadata.loadElement:"audio"===t&&void 0!==window.Audio?this.data=new Audio:this.data=document.createElement(t),null!==this.data){if(!this.metadata.skipSource)if(navigator.isCocoonJS)this.data.src=Array.isArray(this.url)?this.url[0]:this.url;else if(Array.isArray(this.url))for(var e=this.metadata.mimeType,i=0;i<this.url.length;++i)this.data.appendChild(this._createSource(t,this.url[i],Array.isArray(e)?e[i]:e));else{var r=this.metadata.mimeType;this.data.appendChild(this._createSource(t,this.url,Array.isArray(r)?r[0]:r))}this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.data.addEventListener("canplaythrough",this._boundComplete,!1),this.data.load()}else this.abort("Unsupported element: "+t)},t.prototype._loadXhr=function(){"string"!=typeof this.xhrType&&(this.xhrType=this._determineXhrType());var e=this.xhr=new XMLHttpRequest;e.open("GET",this.url,!0),this.xhrType===t.XHR_RESPONSE_TYPE.JSON||this.xhrType===t.XHR_RESPONSE_TYPE.DOCUMENT?e.responseType=t.XHR_RESPONSE_TYPE.TEXT:e.responseType=this.xhrType,e.addEventListener("error",this._boundXhrOnError,!1),e.addEventListener("abort",this._boundXhrOnAbort,!1),e.addEventListener("progress",this._boundOnProgress,!1),e.addEventListener("load",this._boundXhrOnLoad,!1),e.send()},t.prototype._loadXdr=function(){"string"!=typeof this.xhrType&&(this.xhrType=this._determineXhrType());var t=this.xhr=new XDomainRequest;t.timeout=5e3,t.onerror=this._boundXhrOnError,t.ontimeout=this._boundXdrOnTimeout,t.onprogress=this._boundOnProgress,t.onload=this._boundXhrOnLoad,t.open("GET",this.url,!0),setTimeout(function(){return t.send()},1)},t.prototype._createSource=function(t,e,i){i||(i=t+"/"+this._getExtension(e));var r=document.createElement("source");return r.src=e,r.type=i,r},t.prototype._onError=function(t){this.abort("Failed to load element using: "+t.target.nodeName)},t.prototype._onProgress=function(t){t&&t.lengthComputable&&this.onProgress.dispatch(this,t.loaded/t.total)},t.prototype._xhrOnError=function(){var t=this.xhr;this.abort(d(t)+" Request failed. Status: "+t.status+', text: "'+t.statusText+'"')},t.prototype._xhrOnAbort=function(){this.abort(d(this.xhr)+" Request was aborted by the user.")},t.prototype._xdrOnTimeout=function(){this.abort(d(this.xhr)+" Request timed out.")},t.prototype._xhrOnLoad=function(){var e=this.xhr,i="",r=void 0===e.status?200:e.status;if(""!==e.responseType&&"text"!==e.responseType&&void 0!==e.responseType||(i=e.responseText),0===r&&i.length>0?r=200:1223===r&&(r=204),2===(r/100|0)){if(this.xhrType===t.XHR_RESPONSE_TYPE.TEXT)this.data=i,this.type=t.TYPE.TEXT;else if(this.xhrType===t.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(i),this.type=t.TYPE.JSON}catch(t){return void this.abort("Error trying to parse loaded json: "+t)}else if(this.xhrType===t.XHR_RESPONSE_TYPE.DOCUMENT)try{if(window.DOMParser){var n=new DOMParser;this.data=n.parseFromString(i,"text/xml")}else{var s=document.createElement("div");s.innerHTML=i,this.data=s}this.type=t.TYPE.XML}catch(t){return void this.abort("Error trying to parse loaded xml: "+t)}else this.data=e.response||i;this.complete()}else this.abort("["+e.status+"] "+e.statusText+": "+e.responseURL)},t.prototype._determineCrossOrigin=function(t,e){if(0===t.indexOf("data:"))return"";e=e||window.location,l||(l=document.createElement("a")),l.href=t;var i=!(t=(0,n.default)(l.href,{strictMode:!0})).port&&""===e.port||t.port===e.port,r=t.protocol?t.protocol+":":"";return t.host===e.hostname&&i&&r===e.protocol?"":"anonymous"},t.prototype._determineXhrType=function(){return t._xhrTypeMap[this.extension]||t.XHR_RESPONSE_TYPE.TEXT},t.prototype._determineLoadType=function(){return t._loadTypeMap[this.extension]||t.LOAD_TYPE.XHR},t.prototype._getExtension=function(){var t=this.url,e="";if(this.isDataUrl){var i=t.indexOf("/");e=t.substring(i+1,t.indexOf(";",i))}else{var r=t.indexOf("?"),n=t.indexOf("#"),s=Math.min(r>-1?r:t.length,n>-1?n:t.length);e=(t=t.substring(0,s)).substring(t.lastIndexOf(".")+1)}return e.toLowerCase()},t.prototype._getMimeFromXhrType=function(e){switch(e){case t.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case t.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case t.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case t.XHR_RESPONSE_TYPE.JSON:return"application/json";case t.XHR_RESPONSE_TYPE.DEFAULT:case t.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},r(t,[{key:"isDataUrl",get:function(){return this._hasFlag(t.STATUS_FLAGS.DATA_URL)}},{key:"isComplete",get:function(){return this._hasFlag(t.STATUS_FLAGS.COMPLETE)}},{key:"isLoading",get:function(){return this._hasFlag(t.STATUS_FLAGS.LOADING)}}]),t}();function c(t,e,i){e&&0===e.indexOf(".")&&(e=e.substring(1)),e&&(t[e]=i)}function d(t){return t.toString().replace("object ","")}i.default=u,u.STATUS_FLAGS={NONE:0,DATA_URL:1,COMPLETE:2,LOADING:4},u.TYPE={UNKNOWN:0,JSON:1,XML:2,IMAGE:3,AUDIO:4,VIDEO:5,TEXT:6},u.LOAD_TYPE={XHR:1,IMAGE:2,AUDIO:3,VIDEO:4},u.XHR_RESPONSE_TYPE={DEFAULT:"text",BUFFER:"arraybuffer",BLOB:"blob",DOCUMENT:"document",JSON:"json",TEXT:"text"},u._loadTypeMap={gif:u.LOAD_TYPE.IMAGE,png:u.LOAD_TYPE.IMAGE,bmp:u.LOAD_TYPE.IMAGE,jpg:u.LOAD_TYPE.IMAGE,jpeg:u.LOAD_TYPE.IMAGE,tif:u.LOAD_TYPE.IMAGE,tiff:u.LOAD_TYPE.IMAGE,webp:u.LOAD_TYPE.IMAGE,tga:u.LOAD_TYPE.IMAGE,svg:u.LOAD_TYPE.IMAGE,"svg+xml":u.LOAD_TYPE.IMAGE,mp3:u.LOAD_TYPE.AUDIO,ogg:u.LOAD_TYPE.AUDIO,wav:u.LOAD_TYPE.AUDIO,mp4:u.LOAD_TYPE.VIDEO,webm:u.LOAD_TYPE.VIDEO},u._xhrTypeMap={xhtml:u.XHR_RESPONSE_TYPE.DOCUMENT,html:u.XHR_RESPONSE_TYPE.DOCUMENT,htm:u.XHR_RESPONSE_TYPE.DOCUMENT,xml:u.XHR_RESPONSE_TYPE.DOCUMENT,tmx:u.XHR_RESPONSE_TYPE.DOCUMENT,svg:u.XHR_RESPONSE_TYPE.DOCUMENT,tsx:u.XHR_RESPONSE_TYPE.DOCUMENT,gif:u.XHR_RESPONSE_TYPE.BLOB,png:u.XHR_RESPONSE_TYPE.BLOB,bmp:u.XHR_RESPONSE_TYPE.BLOB,jpg:u.XHR_RESPONSE_TYPE.BLOB,jpeg:u.XHR_RESPONSE_TYPE.BLOB,tif:u.XHR_RESPONSE_TYPE.BLOB,tiff:u.XHR_RESPONSE_TYPE.BLOB,webp:u.XHR_RESPONSE_TYPE.BLOB,tga:u.XHR_RESPONSE_TYPE.BLOB,json:u.XHR_RESPONSE_TYPE.JSON,text:u.XHR_RESPONSE_TYPE.TEXT,txt:u.XHR_RESPONSE_TYPE.TEXT,ttf:u.XHR_RESPONSE_TYPE.BUFFER,otf:u.XHR_RESPONSE_TYPE.BUFFER},u.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="},{"mini-signals":38,"parse-uri":39}],34:[function(t,e,i){"use strict";function r(){}function n(t){return function(){if(null===t)throw new Error("Callback was already called.");var e=t;t=null,e.apply(this,arguments)}}i.__esModule=!0,i.eachSeries=function(t,e,i,r){var n=0,s=t.length;!function a(o){o||n===s?i&&i(o):r?setTimeout(function(){e(t[n++],a)},1):e(t[n++],a)}()},i.queue=function(t,e){if(null==e)e=1;else if(0===e)throw new Error("Concurrency must not be zero");var i=0,s={_tasks:[],concurrency:e,saturated:r,unsaturated:r,buffer:e/4,empty:r,drain:r,error:r,started:!1,paused:!1,push:function(t,e){a(t,!1,e)},kill:function(){i=0,s.drain=r,s.started=!1,s._tasks=[]},unshift:function(t,e){a(t,!0,e)},process:function(){for(;!s.paused&&i<s.concurrency&&s._tasks.length;){var e=s._tasks.shift();0===s._tasks.length&&s.empty(),(i+=1)===s.concurrency&&s.saturated(),t(e.data,n(o(e)))}},length:function(){return s._tasks.length},running:function(){return i},idle:function(){return s._tasks.length+i===0},pause:function(){!0!==s.paused&&(s.paused=!0)},resume:function(){if(!1!==s.paused){s.paused=!1;for(var t=1;t<=s.concurrency;t++)s.process()}}};function a(t,e,i){if(null!=i&&"function"!=typeof i)throw new Error("task callback must be a function");if(s.started=!0,null==t&&s.idle())setTimeout(function(){return s.drain()},1);else{var n={data:t,callback:"function"==typeof i?i:r};e?s._tasks.unshift(n):s._tasks.push(n),setTimeout(function(){return s.process()},1)}}function o(t){return function(){i-=1,t.callback.apply(t,arguments),null!=arguments[0]&&s.error(arguments[0],t.data),i<=s.concurrency-s.buffer&&s.unsaturated(),s.idle()&&s.drain(),s.process()}}return s}},{}],35:[function(t,e,i){"use strict";i.__esModule=!0,i.encodeBinary=function(t){var e="",i=0;for(;i<t.length;){for(var n=[0,0,0],s=[0,0,0,0],a=0;a<n.length;++a)i<t.length?n[a]=255&t.charCodeAt(i++):n[a]=0;s[0]=n[0]>>2,s[1]=(3&n[0])<<4|n[1]>>4,s[2]=(15&n[1])<<2|n[2]>>6,s[3]=63&n[2];var o=i-(t.length-1);switch(o){case 2:s[3]=64,s[2]=64;break;case 1:s[3]=64}for(var l=0;l<s.length;++l)e+=r.charAt(s[l])}return e};var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},{}],36:[function(t,e,i){"use strict";var r=t("./Loader").default,n=t("./Resource").default,s=t("./async"),a=t("./b64");r.Resource=n,r.async=s,r.base64=a,e.exports=r,e.exports.default=r},{"./Loader":32,"./Resource":33,"./async":34,"./b64":35}],37:[function(t,e,i){"use strict";i.__esModule=!0;var r="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};i.blobMiddlewareFactory=function(){return function(t,e){if(t.data){if(t.xhr&&t.xhrType===n.default.XHR_RESPONSE_TYPE.BLOB)if(window.Blob&&"string"!=typeof t.data){if(0===t.data.type.indexOf("image")){var i=(l=o.createObjectURL(t.data),t.blob=t.data,t.data=new Image,t.data.src=l,t.type=n.default.TYPE.IMAGE,t.data.onload=function(){o.revokeObjectURL(l),t.data.onload=null,e()},{v:void 0});if("object"===(void 0===i?"undefined":r(i)))return i.v}}else{var a=t.xhr.getResponseHeader("content-type");if(a&&0===a.indexOf("image"))return t.data=new Image,t.data.src="data:"+a+";base64,"+s.default.encodeBinary(t.xhr.responseText),t.type=n.default.TYPE.IMAGE,void(t.data.onload=function(){t.data.onload=null,e()})}var l;e()}else e()}};var n=a(t("../../Resource")),s=a(t("../../b64"));function a(t){return t&&t.__esModule?t:{default:t}}var o=window.URL||window.webkitURL},{"../../Resource":33,"../../b64":35}],38:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}();function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var s=function(){function t(e,i,r){void 0===i&&(i=!1),n(this,t),this._fn=e,this._once=i,this._thisArg=r,this._next=this._prev=this._owner=null}return r(t,[{key:"detach",value:function(){return null!==this._owner&&(this._owner.detach(this),!0)}}]),t}();function a(t,e){return t._head?(t._tail._next=e,e._prev=t._tail,t._tail=e):(t._head=e,t._tail=e),e._owner=t,e}var o=function(){function t(){n(this,t),this._head=this._tail=void 0}return r(t,[{key:"handlers",value:function(){var t=!(arguments.length<=0||void 0===arguments[0])&&arguments[0],e=this._head;if(t)return!!e;for(var i=[];e;)i.push(e),e=e._next;return i}},{key:"has",value:function(t){if(!(t instanceof s))throw new Error("MiniSignal#has(): First arg must be a MiniSignalBinding object.");return t._owner===this}},{key:"dispatch",value:function(){var t=this._head;if(!t)return!1;for(;t;)t._once&&this.detach(t),t._fn.apply(t._thisArg,arguments),t=t._next;return!0}},{key:"add",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?null:arguments[1];if("function"!=typeof t)throw new Error("MiniSignal#add(): First arg must be a Function.");return a(this,new s(t,!1,e))}},{key:"once",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?null:arguments[1];if("function"!=typeof t)throw new Error("MiniSignal#once(): First arg must be a Function.");return a(this,new s(t,!0,e))}},{key:"detach",value:function(t){if(!(t instanceof s))throw new Error("MiniSignal#detach(): First arg must be a MiniSignalBinding object.");return t._owner!==this?this:(t._prev&&(t._prev._next=t._next),t._next&&(t._next._prev=t._prev),t===this._head?(this._head=t._next,null===t._next&&(this._tail=null)):t===this._tail&&(this._tail=t._prev,this._tail._next=null),t._owner=null,this)}},{key:"detachAll",value:function(){var t=this._head;if(!t)return this;for(this._head=this._tail=null;t;)t._owner=null,t=t._next;return this}}]),t}();o.MiniSignalBinding=s,i.default=o,e.exports=i.default},{}],39:[function(t,e,i){"use strict";e.exports=function(t,e){e=e||{};for(var i={key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},r=i.parser[e.strictMode?"strict":"loose"].exec(t),n={},s=14;s--;)n[i.key[s]]=r[s]||"";return n[i.q.name]={},n[i.key[12]].replace(i.q.parser,function(t,e,r){e&&(n[i.q.name][e]=r)}),n}},{}],40:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../core")),n=a(t("ismobilejs")),s=a(t("./accessibleTarget"));function a(t){return t&&t.__esModule?t:{default:t}}r.utils.mixins.delayMixin(r.DisplayObject.prototype,s.default);var o=100,l=0,h=0,u=2,c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!n.default.tablet&&!n.default.phone||navigator.isCocoonJS||this.createTouchHook();var i=document.createElement("div");i.style.width=o+"px",i.style.height=o+"px",i.style.position="absolute",i.style.top=l+"px",i.style.left=h+"px",i.style.zIndex=u,this.div=i,this.pool=[],this.renderId=0,this.debug=!1,this.renderer=e,this.children=[],this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this.isActive=!1,this.isMobileAccessabillity=!1,window.addEventListener("keydown",this._onKeyDown,!1)}return t.prototype.createTouchHook=function(){var t=this,e=document.createElement("button");e.style.width="1px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.left="-1000px",e.style.zIndex=2,e.style.backgroundColor="#FF0000",e.title="HOOK DIV",e.addEventListener("focus",function(){t.isMobileAccessabillity=!0,t.activate(),document.body.removeChild(e)}),document.body.appendChild(e)},t.prototype.activate=function(){this.isActive||(this.isActive=!0,window.document.addEventListener("mousemove",this._onMouseMove,!0),window.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),this.renderer.view.parentNode&&this.renderer.view.parentNode.appendChild(this.div))},t.prototype.deactivate=function(){this.isActive&&!this.isMobileAccessabillity&&(this.isActive=!1,window.document.removeEventListener("mousemove",this._onMouseMove),window.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),this.div.parentNode&&this.div.parentNode.removeChild(this.div))},t.prototype.updateAccessibleObjects=function(t){if(t.visible){t.accessible&&t.interactive&&(t._accessibleActive||this.addChild(t),t.renderId=this.renderId);for(var e=t.children,i=e.length-1;i>=0;i--)this.updateAccessibleObjects(e[i])}},t.prototype.update=function(){if(this.renderer.renderingToScreen){this.updateAccessibleObjects(this.renderer._lastObjectRendered);var t=this.renderer.view.getBoundingClientRect(),e=t.width/this.renderer.width,i=t.height/this.renderer.height,n=this.div;n.style.left=t.left+"px",n.style.top=t.top+"px",n.style.width=this.renderer.width+"px",n.style.height=this.renderer.height+"px";for(var s=0;s<this.children.length;s++){var a=this.children[s];if(a.renderId!==this.renderId)a._accessibleActive=!1,r.utils.removeItems(this.children,s,1),this.div.removeChild(a._accessibleDiv),this.pool.push(a._accessibleDiv),a._accessibleDiv=null,s--,0===this.children.length&&this.deactivate();else{n=a._accessibleDiv;var o=a.hitArea,l=a.worldTransform;a.hitArea?(n.style.left=(l.tx+o.x*l.a)*e+"px",n.style.top=(l.ty+o.y*l.d)*i+"px",n.style.width=o.width*l.a*e+"px",n.style.height=o.height*l.d*i+"px"):(o=a.getBounds(),this.capHitArea(o),n.style.left=o.x*e+"px",n.style.top=o.y*i+"px",n.style.width=o.width*e+"px",n.style.height=o.height*i+"px")}}this.renderId++}},t.prototype.capHitArea=function(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0),t.x+t.width>this.renderer.width&&(t.width=this.renderer.width-t.x),t.y+t.height>this.renderer.height&&(t.height=this.renderer.height-t.y)},t.prototype.addChild=function(t){var e=this.pool.pop();e||((e=document.createElement("button")).style.width=o+"px",e.style.height=o+"px",e.style.backgroundColor=this.debug?"rgba(255,0,0,0.5)":"transparent",e.style.position="absolute",e.style.zIndex=u,e.style.borderStyle="none",e.addEventListener("click",this._onClick.bind(this)),e.addEventListener("focus",this._onFocus.bind(this)),e.addEventListener("focusout",this._onFocusOut.bind(this))),t.accessibleTitle?e.title=t.accessibleTitle:t.accessibleTitle||t.accessibleHint||(e.title="displayObject "+this.tabIndex),t.accessibleHint&&e.setAttribute("aria-label",t.accessibleHint),t._accessibleActive=!0,t._accessibleDiv=e,e.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex},t.prototype._onClick=function(t){var e=this.renderer.plugins.interaction;e.dispatchEvent(t.target.displayObject,"click",e.eventData)},t.prototype._onFocus=function(t){var e=this.renderer.plugins.interaction;e.dispatchEvent(t.target.displayObject,"mouseover",e.eventData)},t.prototype._onFocusOut=function(t){var e=this.renderer.plugins.interaction;e.dispatchEvent(t.target.displayObject,"mouseout",e.eventData)},t.prototype._onKeyDown=function(t){9===t.keyCode&&this.activate()},t.prototype._onMouseMove=function(){this.deactivate()},t.prototype.destroy=function(){this.div=null;for(var t=0;t<this.children.length;t++)this.children[t].div=null;window.document.removeEventListener("mousemove",this._onMouseMove),window.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},t}();i.default=c,r.WebGLRenderer.registerPlugin("accessibility",c),r.CanvasRenderer.registerPlugin("accessibility",c)},{"../core":65,"./accessibleTarget":41,ismobilejs:4}],41:[function(t,e,i){"use strict";i.__esModule=!0,i.default={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:!1}},{}],42:[function(t,e,i){"use strict";i.__esModule=!0;var r=t("./accessibleTarget");Object.defineProperty(i,"accessibleTarget",{enumerable:!0,get:function(){return s(r).default}});var n=t("./AccessibilityManager");function s(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(i,"AccessibilityManager",{enumerable:!0,get:function(){return s(n).default}})},{"./AccessibilityManager":40,"./accessibleTarget":41}],43:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=t("./autoDetectRenderer"),s=h(t("./display/Container")),a=t("./ticker"),o=h(t("./settings")),l=t("./const");function h(t){return t&&t.__esModule?t:{default:t}}var u=function(){function t(e,i,r,l,h){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),"number"==typeof e&&(e=Object.assign({width:e,height:i||o.default.RENDER_OPTIONS.height,forceCanvas:!!l,sharedTicker:!!h},r)),this._options=e=Object.assign({sharedTicker:!1,forceCanvas:!1,sharedLoader:!1},e),this.renderer=(0,n.autoDetectRenderer)(e),this.stage=new s.default,this._ticker=null,this.ticker=e.sharedTicker?a.shared:new a.Ticker,this.start()}return t.prototype.render=function(){this.renderer.render(this.stage)},t.prototype.stop=function(){this._ticker.stop()},t.prototype.start=function(){this._ticker.start()},t.prototype.destroy=function(t){var e=this._ticker;this.ticker=null,e.destroy(),this.stage.destroy(),this.stage=null,this.renderer.destroy(t),this.renderer=null,this._options=null},r(t,[{key:"ticker",set:function(t){this._ticker&&this._ticker.remove(this.render,this),this._ticker=t,t&&t.add(this.render,this,l.UPDATE_PRIORITY.LOW)},get:function(){return this._ticker}},{key:"view",get:function(){return this.renderer.view}},{key:"screen",get:function(){return this.renderer.screen}}]),t}();i.default=u},{"./autoDetectRenderer":45,"./const":46,"./display/Container":48,"./settings":101,"./ticker":120}],44:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=t("pixi-gl-core"),s=t("./settings"),a=(r=s)&&r.__esModule?r:{default:r};function o(t,e){if(t instanceof Array){if("precision"!==t[0].substring(0,9)){var i=t.slice(0);return i.unshift("precision "+e+" float;"),i}}else if("precision"!==t.substring(0,9))return"precision "+e+" float;\n"+t;return t}var l=function(t){function e(i,r,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i,o(r,a.default.PRECISION_VERTEX),o(n,a.default.PRECISION_FRAGMENT)))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(n.GLShader);i.default=l},{"./settings":101,"pixi-gl-core":12}],45:[function(t,e,i){"use strict";i.__esModule=!0,i.autoDetectRenderer=function(t,e,i,a){var o=t&&t.forceCanvas;void 0!==a&&(o=a);if(!o&&r.isWebGLSupported())return new s.default(t,e,i);return new n.default(t,e,i)};var r=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("./utils")),n=a(t("./renderers/canvas/CanvasRenderer")),s=a(t("./renderers/webgl/WebGLRenderer"));function a(t){return t&&t.__esModule?t:{default:t}}},{"./renderers/canvas/CanvasRenderer":77,"./renderers/webgl/WebGLRenderer":84,"./utils":124}],46:[function(t,e,i){"use strict";i.__esModule=!0;i.VERSION="4.5.4",i.PI_2=2*Math.PI,i.RAD_TO_DEG=180/Math.PI,i.DEG_TO_RAD=Math.PI/180,i.RENDERER_TYPE={UNKNOWN:0,WEBGL:1,CANVAS:2},i.BLEND_MODES={NORMAL:0,ADD:1,MULTIPLY:2,SCREEN:3,OVERLAY:4,DARKEN:5,LIGHTEN:6,COLOR_DODGE:7,COLOR_BURN:8,HARD_LIGHT:9,SOFT_LIGHT:10,DIFFERENCE:11,EXCLUSION:12,HUE:13,SATURATION:14,COLOR:15,LUMINOSITY:16,NORMAL_NPM:17,ADD_NPM:18,SCREEN_NPM:19},i.DRAW_MODES={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},i.SCALE_MODES={LINEAR:0,NEAREST:1},i.WRAP_MODES={CLAMP:0,REPEAT:1,MIRRORED_REPEAT:2},i.GC_MODES={AUTO:0,MANUAL:1},i.URL_FILE_EXTENSION=/\.(\w{3,4})(?:$|\?|#)/i,i.DATA_URI=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;(charset=[\w-]+|base64))?,(.*)/i,i.SVG_SIZE=/<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,i.SHAPES={POLY:0,RECT:1,CIRC:2,ELIP:3,RREC:4},i.PRECISION={LOW:"lowp",MEDIUM:"mediump",HIGH:"highp"},i.TRANSFORM_MODE={STATIC:0,DYNAMIC:1},i.TEXT_GRADIENT={LINEAR_VERTICAL:0,LINEAR_HORIZONTAL:1},i.UPDATE_PRIORITY={INTERACTION:50,HIGH:25,NORMAL:0,LOW:-25,UTILITY:-50}},{}],47:[function(t,e,i){"use strict";i.__esModule=!0;var r=t("../math");var n=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null}return t.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},t.prototype.clear=function(){this.updateID++,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},t.prototype.getRectangle=function(t){return this.minX>this.maxX||this.minY>this.maxY?r.Rectangle.EMPTY:((t=t||new r.Rectangle(0,0,1,1)).x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)},t.prototype.addPoint=function(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)},t.prototype.addQuad=function(t){var e=this.minX,i=this.minY,r=this.maxX,n=this.maxY,s=t[0],a=t[1];e=s<e?s:e,i=a<i?a:i,r=s>r?s:r,n=a>n?a:n,e=(s=t[2])<e?s:e,i=(a=t[3])<i?a:i,r=s>r?s:r,n=a>n?a:n,e=(s=t[4])<e?s:e,i=(a=t[5])<i?a:i,r=s>r?s:r,n=a>n?a:n,e=(s=t[6])<e?s:e,i=(a=t[7])<i?a:i,r=s>r?s:r,n=a>n?a:n,this.minX=e,this.minY=i,this.maxX=r,this.maxY=n},t.prototype.addFrame=function(t,e,i,r,n){var s=t.worldTransform,a=s.a,o=s.b,l=s.c,h=s.d,u=s.tx,c=s.ty,d=this.minX,p=this.minY,f=this.maxX,_=this.maxY,m=a*e+l*i+u,g=o*e+h*i+c;d=m<d?m:d,p=g<p?g:p,f=m>f?m:f,_=g>_?g:_,d=(m=a*r+l*i+u)<d?m:d,p=(g=o*r+h*i+c)<p?g:p,f=m>f?m:f,_=g>_?g:_,d=(m=a*e+l*n+u)<d?m:d,p=(g=o*e+h*n+c)<p?g:p,f=m>f?m:f,_=g>_?g:_,d=(m=a*r+l*n+u)<d?m:d,p=(g=o*r+h*n+c)<p?g:p,f=m>f?m:f,_=g>_?g:_,this.minX=d,this.minY=p,this.maxX=f,this.maxY=_},t.prototype.addVertices=function(t,e,i,r){for(var n=t.worldTransform,s=n.a,a=n.b,o=n.c,l=n.d,h=n.tx,u=n.ty,c=this.minX,d=this.minY,p=this.maxX,f=this.maxY,_=i;_<r;_+=2){var m=e[_],g=e[_+1],v=s*m+o*g+h,y=l*g+a*m+u;c=v<c?v:c,d=y<d?y:d,p=v>p?v:p,f=y>f?y:f}this.minX=c,this.minY=d,this.maxX=p,this.maxY=f},t.prototype.addBounds=function(t){var e=this.minX,i=this.minY,r=this.maxX,n=this.maxY;this.minX=t.minX<e?t.minX:e,this.minY=t.minY<i?t.minY:i,this.maxX=t.maxX>r?t.maxX:r,this.maxY=t.maxY>n?t.maxY:n},t.prototype.addBoundsMask=function(t,e){var i=t.minX>e.minX?t.minX:e.minX,r=t.minY>e.minY?t.minY:e.minY,n=t.maxX<e.maxX?t.maxX:e.maxX,s=t.maxY<e.maxY?t.maxY:e.maxY;if(i<=n&&r<=s){var a=this.minX,o=this.minY,l=this.maxX,h=this.maxY;this.minX=i<a?i:a,this.minY=r<o?r:o,this.maxX=n>l?n:l,this.maxY=s>h?s:h}},t.prototype.addBoundsArea=function(t,e){var i=t.minX>e.x?t.minX:e.x,r=t.minY>e.y?t.minY:e.y,n=t.maxX<e.x+e.width?t.maxX:e.x+e.width,s=t.maxY<e.y+e.height?t.maxY:e.y+e.height;if(i<=n&&r<=s){var a=this.minX,o=this.minY,l=this.maxX,h=this.maxY;this.minX=i<a?i:a,this.minY=r<o?r:o,this.maxX=n>l?n:l,this.maxY=s>h?s:h}},t}();i.default=n},{"../math":70}],48:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),s=t("../utils"),a=t("./DisplayObject");var o=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return i.children=[],i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.onChildrenChange=function(){},e.prototype.addChild=function(t){var e=arguments.length;if(e>1)for(var i=0;i<e;i++)this.addChild(arguments[i]);else t.parent&&t.parent.removeChild(t),t.parent=this,t.transform._parentID=-1,this.children.push(t),this._boundsID++,this.onChildrenChange(this.children.length-1),t.emit("added",this);return t},e.prototype.addChildAt=function(t,e){if(e<0||e>this.children.length)throw new Error(t+"addChildAt: The index "+e+" supplied is out of bounds "+this.children.length);return t.parent&&t.parent.removeChild(t),t.parent=this,t.transform._parentID=-1,this.children.splice(e,0,t),this._boundsID++,this.onChildrenChange(e),t.emit("added",this),t},e.prototype.swapChildren=function(t,e){if(t!==e){var i=this.getChildIndex(t),r=this.getChildIndex(e);this.children[i]=e,this.children[r]=t,this.onChildrenChange(i<r?i:r)}},e.prototype.getChildIndex=function(t){var e=this.children.indexOf(t);if(-1===e)throw new Error("The supplied DisplayObject must be a child of the caller");return e},e.prototype.setChildIndex=function(t,e){if(e<0||e>=this.children.length)throw new Error("The supplied index is out of bounds");var i=this.getChildIndex(t);(0,s.removeItems)(this.children,i,1),this.children.splice(e,0,t),this.onChildrenChange(e)},e.prototype.getChildAt=function(t){if(t<0||t>=this.children.length)throw new Error("getChildAt: Index ("+t+") does not exist.");return this.children[t]},e.prototype.removeChild=function(t){var e=arguments.length;if(e>1)for(var i=0;i<e;i++)this.removeChild(arguments[i]);else{var r=this.children.indexOf(t);if(-1===r)return null;t.parent=null,t.transform._parentID=-1,(0,s.removeItems)(this.children,r,1),this._boundsID++,this.onChildrenChange(r),t.emit("removed",this)}return t},e.prototype.removeChildAt=function(t){var e=this.getChildAt(t);return e.parent=null,e.transform._parentID=-1,(0,s.removeItems)(this.children,t,1),this._boundsID++,this.onChildrenChange(t),e.emit("removed",this),e},e.prototype.removeChildren=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments[1],i=t,r="number"==typeof e?e:this.children.length,n=r-i,s=void 0;if(n>0&&n<=r){s=this.children.splice(i,n);for(var a=0;a<s.length;++a)s[a].parent=null,s[a].transform&&(s[a].transform._parentID=-1);this._boundsID++,this.onChildrenChange(t);for(var o=0;o<s.length;++o)s[o].emit("removed",this);return s}if(0===n&&0===this.children.length)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},e.prototype.updateTransform=function(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var t=0,e=this.children.length;t<e;++t){var i=this.children[t];i.visible&&i.updateTransform()}},e.prototype.calculateBounds=function(){this._bounds.clear(),this._calculateBounds();for(var t=0;t<this.children.length;t++){var e=this.children[t];e.visible&&e.renderable&&(e.calculateBounds(),e._mask?(e._mask.calculateBounds(),this._bounds.addBoundsMask(e._bounds,e._mask._bounds)):e.filterArea?this._bounds.addBoundsArea(e._bounds,e.filterArea):this._bounds.addBounds(e._bounds))}this._lastBoundsID=this._boundsID},e.prototype._calculateBounds=function(){},e.prototype.renderWebGL=function(t){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable)if(this._mask||this._filters)this.renderAdvancedWebGL(t);else{this._renderWebGL(t);for(var e=0,i=this.children.length;e<i;++e)this.children[e].renderWebGL(t)}},e.prototype.renderAdvancedWebGL=function(t){t.flush();var e=this._filters,i=this._mask;if(e){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(var r=0;r<e.length;r++)e[r].enabled&&this._enabledFilters.push(e[r]);this._enabledFilters.length&&t.filterManager.pushFilter(this,this._enabledFilters)}i&&t.maskManager.pushMask(this,this._mask),this._renderWebGL(t);for(var n=0,s=this.children.length;n<s;n++)this.children[n].renderWebGL(t);t.flush(),i&&t.maskManager.popMask(this,this._mask),e&&this._enabledFilters&&this._enabledFilters.length&&t.filterManager.popFilter()},e.prototype._renderWebGL=function(t){},e.prototype._renderCanvas=function(t){},e.prototype.renderCanvas=function(t){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable){this._mask&&t.maskManager.pushMask(this._mask),this._renderCanvas(t);for(var e=0,i=this.children.length;e<i;++e)this.children[e].renderCanvas(t);this._mask&&t.maskManager.popMask(t)}},e.prototype.destroy=function(e){t.prototype.destroy.call(this);var i="boolean"==typeof e?e:e&&e.children,r=this.removeChildren(0,this.children.length);if(i)for(var n=0;n<r.length;++n)r[n].destroy(e)},n(e,[{key:"width",get:function(){return this.scale.x*this.getLocalBounds().width},set:function(t){var e=this.getLocalBounds().width;this.scale.x=0!==e?t/e:1,this._width=t}},{key:"height",get:function(){return this.scale.y*this.getLocalBounds().height},set:function(t){var e=this.getLocalBounds().height;this.scale.y=0!==e?t/e:1,this._height=t}}]),e}(((r=a)&&r.__esModule?r:{default:r}).default);i.default=o,o.prototype.containerUpdateTransform=o.prototype.updateTransform},{"../utils":124,"./DisplayObject":49}],49:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=c(t("eventemitter3")),s=t("../const"),a=c(t("../settings")),o=c(t("./TransformStatic")),l=c(t("./Transform")),h=c(t("./Bounds")),u=t("../math");function c(t){return t&&t.__esModule?t:{default:t}}var d=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this)),r=a.default.TRANSFORM_MODE===s.TRANSFORM_MODE.STATIC?o.default:l.default;return i.tempDisplayObjectParent=null,i.transform=new r,i.alpha=1,i.visible=!0,i.renderable=!0,i.parent=null,i.worldAlpha=1,i.filterArea=null,i._filters=null,i._enabledFilters=null,i._bounds=new h.default,i._boundsID=0,i._lastBoundsID=-1,i._boundsRect=null,i._localBoundsRect=null,i._mask=null,i._destroyed=!1,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.updateTransform=function(){this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha,this._bounds.updateID++},e.prototype._recursivePostUpdateTransform=function(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)},e.prototype.getBounds=function(t,e){return t||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._boundsID!==this._lastBoundsID&&this.calculateBounds(),e||(this._boundsRect||(this._boundsRect=new u.Rectangle),e=this._boundsRect),this._bounds.getRectangle(e)},e.prototype.getLocalBounds=function(t){var e=this.transform,i=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform,t||(this._localBoundsRect||(this._localBoundsRect=new u.Rectangle),t=this._localBoundsRect);var r=this.getBounds(!1,t);return this.parent=i,this.transform=e,r},e.prototype.toGlobal=function(t,e){return arguments.length>2&&void 0!==arguments[2]&&arguments[2]||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(t,e)},e.prototype.toLocal=function(t,e,i,r){return e&&(t=e.toGlobal(t,i,r)),r||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(t,i)},e.prototype.renderWebGL=function(t){},e.prototype.renderCanvas=function(t){},e.prototype.setParent=function(t){if(!t||!t.addChild)throw new Error("setParent: Argument must be a Container");return t.addChild(this),t},e.prototype.setTransform=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0;return this.position.x=t,this.position.y=e,this.scale.x=i||1,this.scale.y=r||1,this.rotation=n,this.skew.x=s,this.skew.y=a,this.pivot.x=o,this.pivot.y=l,this},e.prototype.destroy=function(){this.removeAllListeners(),this.parent&&this.parent.removeChild(this),this.transform=null,this.parent=null,this._bounds=null,this._currentBounds=null,this._mask=null,this.filterArea=null,this.interactive=!1,this.interactiveChildren=!1,this._destroyed=!0},r(e,[{key:"_tempDisplayObjectParent",get:function(){return null===this.tempDisplayObjectParent&&(this.tempDisplayObjectParent=new e),this.tempDisplayObjectParent}},{key:"x",get:function(){return this.position.x},set:function(t){this.transform.position.x=t}},{key:"y",get:function(){return this.position.y},set:function(t){this.transform.position.y=t}},{key:"worldTransform",get:function(){return this.transform.worldTransform}},{key:"localTransform",get:function(){return this.transform.localTransform}},{key:"position",get:function(){return this.transform.position},set:function(t){this.transform.position.copy(t)}},{key:"scale",get:function(){return this.transform.scale},set:function(t){this.transform.scale.copy(t)}},{key:"pivot",get:function(){return this.transform.pivot},set:function(t){this.transform.pivot.copy(t)}},{key:"skew",get:function(){return this.transform.skew},set:function(t){this.transform.skew.copy(t)}},{key:"rotation",get:function(){return this.transform.rotation},set:function(t){this.transform.rotation=t}},{key:"worldVisible",get:function(){var t=this;do{if(!t.visible)return!1;t=t.parent}while(t);return!0}},{key:"mask",get:function(){return this._mask},set:function(t){this._mask&&(this._mask.renderable=!0),this._mask=t,this._mask&&(this._mask.renderable=!1)}},{key:"filters",get:function(){return this._filters&&this._filters.slice()},set:function(t){this._filters=t&&t.slice()}}]),e}(n.default);i.default=d,d.prototype.displayObjectUpdateTransform=d.prototype.updateTransform},{"../const":46,"../math":70,"../settings":101,"./Bounds":47,"./Transform":50,"./TransformStatic":52,eventemitter3:3}],50:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),s=t("../math"),a=t("./TransformBase");var o=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return i.position=new s.Point(0,0),i.scale=new s.Point(1,1),i.skew=new s.ObservablePoint(i.updateSkew,i,0,0),i.pivot=new s.Point(0,0),i._rotation=0,i._cx=1,i._sx=0,i._cy=0,i._sy=1,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew._y),this._sx=Math.sin(this._rotation+this.skew._y),this._cy=-Math.sin(this._rotation-this.skew._x),this._sy=Math.cos(this._rotation-this.skew._x)},e.prototype.updateLocalTransform=function(){var t=this.localTransform;t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d)},e.prototype.updateTransform=function(t){var e=this.localTransform;e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d);var i=t.worldTransform,r=this.worldTransform;r.a=e.a*i.a+e.b*i.c,r.b=e.a*i.b+e.b*i.d,r.c=e.c*i.a+e.d*i.c,r.d=e.c*i.b+e.d*i.d,r.tx=e.tx*i.a+e.ty*i.c+i.tx,r.ty=e.tx*i.b+e.ty*i.d+i.ty,this._worldID++},e.prototype.setFromMatrix=function(t){t.decompose(this)},n(e,[{key:"rotation",get:function(){return this._rotation},set:function(t){this._rotation=t,this.updateSkew()}}]),e}(((r=a)&&r.__esModule?r:{default:r}).default);i.default=o},{"../math":70,"./TransformBase":51}],51:[function(t,e,i){"use strict";i.__esModule=!0;var r=t("../math");var n=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.worldTransform=new r.Matrix,this.localTransform=new r.Matrix,this._worldID=0,this._parentID=0}return t.prototype.updateLocalTransform=function(){},t.prototype.updateTransform=function(t){var e=t.worldTransform,i=this.worldTransform,r=this.localTransform;i.a=r.a*e.a+r.b*e.c,i.b=r.a*e.b+r.b*e.d,i.c=r.c*e.a+r.d*e.c,i.d=r.c*e.b+r.d*e.d,i.tx=r.tx*e.a+r.ty*e.c+e.tx,i.ty=r.tx*e.b+r.ty*e.d+e.ty,this._worldID++},t}();i.default=n,n.prototype.updateWorldTransform=n.prototype.updateTransform,n.IDENTITY=new n},{"../math":70}],52:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),s=t("../math"),a=t("./TransformBase");var o=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return i.position=new s.ObservablePoint(i.onChange,i,0,0),i.scale=new s.ObservablePoint(i.onChange,i,1,1),i.pivot=new s.ObservablePoint(i.onChange,i,0,0),i.skew=new s.ObservablePoint(i.updateSkew,i,0,0),i._rotation=0,i._cx=1,i._sx=0,i._cy=0,i._sy=1,i._localID=0,i._currentLocalID=0,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.onChange=function(){this._localID++},e.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew._y),this._sx=Math.sin(this._rotation+this.skew._y),this._cy=-Math.sin(this._rotation-this.skew._x),this._sy=Math.cos(this._rotation-this.skew._x),this._localID++},e.prototype.updateLocalTransform=function(){var t=this.localTransform;this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale._x,t.b=this._sx*this.scale._x,t.c=this._cy*this.scale._y,t.d=this._sy*this.scale._y,t.tx=this.position._x-(this.pivot._x*t.a+this.pivot._y*t.c),t.ty=this.position._y-(this.pivot._x*t.b+this.pivot._y*t.d),this._currentLocalID=this._localID,this._parentID=-1)},e.prototype.updateTransform=function(t){var e=this.localTransform;if(this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale._x,e.b=this._sx*this.scale._x,e.c=this._cy*this.scale._y,e.d=this._sy*this.scale._y,e.tx=this.position._x-(this.pivot._x*e.a+this.pivot._y*e.c),e.ty=this.position._y-(this.pivot._x*e.b+this.pivot._y*e.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==t._worldID){var i=t.worldTransform,r=this.worldTransform;r.a=e.a*i.a+e.b*i.c,r.b=e.a*i.b+e.b*i.d,r.c=e.c*i.a+e.d*i.c,r.d=e.c*i.b+e.d*i.d,r.tx=e.tx*i.a+e.ty*i.c+i.tx,r.ty=e.tx*i.b+e.ty*i.d+i.ty,this._parentID=t._worldID,this._worldID++}},e.prototype.setFromMatrix=function(t){t.decompose(this),this._localID++},n(e,[{key:"rotation",get:function(){return this._rotation},set:function(t){this._rotation=t,this.updateSkew()}}]),e}(((r=a)&&r.__esModule?r:{default:r}).default);i.default=o},{"../math":70,"./TransformBase":51}],53:[function(t,e,i){"use strict";i.__esModule=!0;var r=f(t("../display/Container")),n=f(t("../textures/RenderTexture")),s=f(t("../textures/Texture")),a=f(t("./GraphicsData")),o=f(t("../sprites/Sprite")),l=t("../math"),h=t("../utils"),u=t("../const"),c=f(t("../display/Bounds")),d=f(t("./utils/bezierCurveTo")),p=f(t("../renderers/canvas/CanvasRenderer"));function f(t){return t&&t.__esModule?t:{default:t}}var _=void 0,m=new l.Matrix,g=new l.Point,v=new Float32Array(4),y=new Float32Array(4),b=function(t){function e(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return r.fillAlpha=1,r.lineWidth=0,r.nativeLines=i,r.lineColor=0,r.graphicsData=[],r.tint=16777215,r._prevTint=16777215,r.blendMode=u.BLEND_MODES.NORMAL,r.currentPath=null,r._webGL={},r.isMask=!1,r.boundsPadding=0,r._localBounds=new c.default,r.dirty=0,r.fastRectDirty=-1,r.clearDirty=0,r.boundsDirty=-1,r.cachedSpriteDirty=!1,r._spriteRect=null,r._fastRect=!1,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.clone=function(){var t=new e;t.renderable=this.renderable,t.fillAlpha=this.fillAlpha,t.lineWidth=this.lineWidth,t.lineColor=this.lineColor,t.tint=this.tint,t.blendMode=this.blendMode,t.isMask=this.isMask,t.boundsPadding=this.boundsPadding,t.dirty=0,t.cachedSpriteDirty=this.cachedSpriteDirty;for(var i=0;i<this.graphicsData.length;++i)t.graphicsData.push(this.graphicsData[i].clone());return t.currentPath=t.graphicsData[t.graphicsData.length-1],t.updateLocalBounds(),t},e.prototype.lineStyle=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(this.lineWidth=t,this.lineColor=e,this.lineAlpha=i,this.currentPath)if(this.currentPath.shape.points.length){var r=new l.Polygon(this.currentPath.shape.points.slice(-2));r.closed=!1,this.drawShape(r)}else this.currentPath.lineWidth=this.lineWidth,this.currentPath.lineColor=this.lineColor,this.currentPath.lineAlpha=this.lineAlpha;return this},e.prototype.moveTo=function(t,e){var i=new l.Polygon([t,e]);return i.closed=!1,this.drawShape(i),this},e.prototype.lineTo=function(t,e){return this.currentPath.shape.points.push(t,e),this.dirty++,this},e.prototype.quadraticCurveTo=function(t,e,i,r){this.currentPath?0===this.currentPath.shape.points.length&&(this.currentPath.shape.points=[0,0]):this.moveTo(0,0);var n=this.currentPath.shape.points,s=0,a=0;0===n.length&&this.moveTo(0,0);for(var o=n[n.length-2],l=n[n.length-1],h=1;h<=20;++h){var u=h/20;s=o+(t-o)*u,a=l+(e-l)*u,n.push(s+(t+(i-t)*u-s)*u,a+(e+(r-e)*u-a)*u)}return this.dirty++,this},e.prototype.bezierCurveTo=function(t,e,i,r,n,s){this.currentPath?0===this.currentPath.shape.points.length&&(this.currentPath.shape.points=[0,0]):this.moveTo(0,0);var a=this.currentPath.shape.points,o=a[a.length-2],l=a[a.length-1];return a.length-=2,(0,d.default)(o,l,t,e,i,r,n,s,a),this.dirty++,this},e.prototype.arcTo=function(t,e,i,r,n){this.currentPath?0===this.currentPath.shape.points.length&&this.currentPath.shape.points.push(t,e):this.moveTo(t,e);var s=this.currentPath.shape.points,a=s[s.length-2],o=s[s.length-1]-e,l=a-t,h=r-e,u=i-t,c=Math.abs(o*u-l*h);if(c<1e-8||0===n)s[s.length-2]===t&&s[s.length-1]===e||s.push(t,e);else{var d=o*o+l*l,p=h*h+u*u,f=o*h+l*u,_=n*Math.sqrt(d)/c,m=n*Math.sqrt(p)/c,g=_*f/d,v=m*f/p,y=_*u+m*l,b=_*h+m*o,T=l*(m+g),x=o*(m+g),E=u*(_+v),w=h*(_+v),S=Math.atan2(x-b,T-y),D=Math.atan2(w-b,E-y);this.arc(y+t,b+e,n,S,D,l*h>u*o)}return this.dirty++,this},e.prototype.arc=function(t,e,i,r,n){var s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(r===n)return this;!s&&n<=r?n+=2*Math.PI:s&&r<=n&&(r+=2*Math.PI);var a=n-r,o=40*Math.ceil(Math.abs(a)/(2*Math.PI));if(0===a)return this;var l=t+Math.cos(r)*i,h=e+Math.sin(r)*i,u=this.currentPath?this.currentPath.shape.points:null;u?u[u.length-2]===l&&u[u.length-1]===h||u.push(l,h):(this.moveTo(l,h),u=this.currentPath.shape.points);for(var c=a/(2*o),d=2*c,p=Math.cos(c),f=Math.sin(c),_=o-1,m=_%1/_,g=0;g<=_;++g){var v=c+r+d*(g+m*g),y=Math.cos(v),b=-Math.sin(v);u.push((p*y+f*b)*i+t,(p*-b+f*y)*i+e)}return this.dirty++,this},e.prototype.beginFill=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.filling=!0,this.fillColor=t,this.fillAlpha=e,this.currentPath&&this.currentPath.shape.points.length<=2&&(this.currentPath.fill=this.filling,this.currentPath.fillColor=this.fillColor,this.currentPath.fillAlpha=this.fillAlpha),this},e.prototype.endFill=function(){return this.filling=!1,this.fillColor=null,this.fillAlpha=1,this},e.prototype.drawRect=function(t,e,i,r){return this.drawShape(new l.Rectangle(t,e,i,r)),this},e.prototype.drawRoundedRect=function(t,e,i,r,n){return this.drawShape(new l.RoundedRectangle(t,e,i,r,n)),this},e.prototype.drawCircle=function(t,e,i){return this.drawShape(new l.Circle(t,e,i)),this},e.prototype.drawEllipse=function(t,e,i,r){return this.drawShape(new l.Ellipse(t,e,i,r)),this},e.prototype.drawPolygon=function(t){var e=t,i=!0;if(e instanceof l.Polygon&&(i=e.closed,e=e.points),!Array.isArray(e)){e=new Array(arguments.length);for(var r=0;r<e.length;++r)e[r]=arguments[r]}var n=new l.Polygon(e);return n.closed=i,this.drawShape(n),this},e.prototype.clear=function(){return(this.lineWidth||this.filling||this.graphicsData.length>0)&&(this.lineWidth=0,this.filling=!1,this.boundsDirty=-1,this.dirty++,this.clearDirty++,this.graphicsData.length=0),this.currentPath=null,this._spriteRect=null,this},e.prototype.isFastRect=function(){return 1===this.graphicsData.length&&this.graphicsData[0].shape.type===u.SHAPES.RECT&&!this.graphicsData[0].lineWidth},e.prototype._renderWebGL=function(t){this.dirty!==this.fastRectDirty&&(this.fastRectDirty=this.dirty,this._fastRect=this.isFastRect()),this._fastRect?this._renderSpriteRect(t):(t.setObjectRenderer(t.plugins.graphics),t.plugins.graphics.render(this))},e.prototype._renderSpriteRect=function(t){var e=this.graphicsData[0].shape;this._spriteRect||(this._spriteRect=new o.default(new s.default(s.default.WHITE)));var i=this._spriteRect;if(16777215===this.tint)i.tint=this.graphicsData[0].fillColor;else{var r=v,n=y;(0,h.hex2rgb)(this.graphicsData[0].fillColor,r),(0,h.hex2rgb)(this.tint,n),r[0]*=n[0],r[1]*=n[1],r[2]*=n[2],i.tint=(0,h.rgb2hex)(r)}i.alpha=this.graphicsData[0].fillAlpha,i.worldAlpha=this.worldAlpha*i.alpha,i.blendMode=this.blendMode,i._texture._frame.width=e.width,i._texture._frame.height=e.height,i.transform.worldTransform=this.transform.worldTransform,i.anchor.set(-e.x/e.width,-e.y/e.height),i._onAnchorUpdate(),i._renderWebGL(t)},e.prototype._renderCanvas=function(t){!0!==this.isMask&&t.plugins.graphics.render(this)},e.prototype._calculateBounds=function(){this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.updateLocalBounds(),this.cachedSpriteDirty=!0);var t=this._localBounds;this._bounds.addFrame(this.transform,t.minX,t.minY,t.maxX,t.maxY)},e.prototype.containsPoint=function(t){this.worldTransform.applyInverse(t,g);for(var e=this.graphicsData,i=0;i<e.length;++i){var r=e[i];if(r.fill&&(r.shape&&r.shape.contains(g.x,g.y))){if(r.holes)for(var n=0;n<r.holes.length;n++){if(r.holes[n].contains(g.x,g.y))return!1}return!0}}return!1},e.prototype.updateLocalBounds=function(){var t=1/0,e=-1/0,i=1/0,r=-1/0;if(this.graphicsData.length)for(var n=0,s=0,a=0,o=0,l=0,h=0;h<this.graphicsData.length;h++){var c=this.graphicsData[h],d=c.type,p=c.lineWidth;if(n=c.shape,d===u.SHAPES.RECT||d===u.SHAPES.RREC)s=n.x-p/2,a=n.y-p/2,t=s<t?s:t,e=s+(o=n.width+p)>e?s+o:e,i=a<i?a:i,r=a+(l=n.height+p)>r?a+l:r;else if(d===u.SHAPES.CIRC)s=n.x,a=n.y,t=s-(o=n.radius+p/2)<t?s-o:t,e=s+o>e?s+o:e,i=a-(l=n.radius+p/2)<i?a-l:i,r=a+l>r?a+l:r;else if(d===u.SHAPES.ELIP)s=n.x,a=n.y,t=s-(o=n.width+p/2)<t?s-o:t,e=s+o>e?s+o:e,i=a-(l=n.height+p/2)<i?a-l:i,r=a+l>r?a+l:r;else for(var f=n.points,_=0,m=0,g=0,v=0,y=0,b=0,T=0,x=0,E=0;E+2<f.length;E+=2)s=f[E],a=f[E+1],_=f[E+2],m=f[E+3],g=Math.abs(_-s),v=Math.abs(m-a),l=p,(o=Math.sqrt(g*g+v*v))<1e-9||(t=(T=(_+s)/2)-(y=(l/o*v+g)/2)<t?T-y:t,e=T+y>e?T+y:e,i=(x=(m+a)/2)-(b=(l/o*g+v)/2)<i?x-b:i,r=x+b>r?x+b:r)}else t=0,e=0,i=0,r=0;var w=this.boundsPadding;this._localBounds.minX=t-w,this._localBounds.maxX=e+w,this._localBounds.minY=i-w,this._localBounds.maxY=r+w},e.prototype.drawShape=function(t){this.currentPath&&this.currentPath.shape.points.length<=2&&this.graphicsData.pop(),this.currentPath=null;var e=new a.default(this.lineWidth,this.lineColor,this.lineAlpha,this.fillColor,this.fillAlpha,this.filling,this.nativeLines,t);return this.graphicsData.push(e),e.type===u.SHAPES.POLY&&(e.shape.closed=e.shape.closed||this.filling,this.currentPath=e),this.dirty++,e},e.prototype.generateCanvasTexture=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this.getLocalBounds(),r=n.default.create(i.width,i.height,t,e);_||(_=new p.default),this.transform.updateLocalTransform(),this.transform.localTransform.copy(m),m.invert(),m.tx-=i.x,m.ty-=i.y,_.render(this,r,!0,m);var a=s.default.fromCanvas(r.baseTexture._canvasRenderTarget.canvas,t,"graphics");return a.baseTexture.resolution=e,a.baseTexture.update(),a},e.prototype.closePath=function(){var t=this.currentPath;return t&&t.shape&&t.shape.close(),this},e.prototype.addHole=function(){var t=this.graphicsData.pop();return this.currentPath=this.graphicsData[this.graphicsData.length-1],this.currentPath.addHole(t.shape),this.currentPath=null,this},e.prototype.destroy=function(e){t.prototype.destroy.call(this,e);for(var i=0;i<this.graphicsData.length;++i)this.graphicsData[i].destroy();for(var r in this._webgl)for(var n=0;n<this._webgl[r].data.length;++n)this._webgl[r].data[n].destroy();this._spriteRect&&this._spriteRect.destroy(),this.graphicsData=null,this.currentPath=null,this._webgl=null,this._localBounds=null},e}(r.default);i.default=b,b._SPRITE_TEXTURE=null},{"../const":46,"../display/Bounds":47,"../display/Container":48,"../math":70,"../renderers/canvas/CanvasRenderer":77,"../sprites/Sprite":102,"../textures/RenderTexture":113,"../textures/Texture":115,"../utils":124,"./GraphicsData":54,"./utils/bezierCurveTo":56}],54:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(e,i,r,n,s,a,o,l){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.lineWidth=e,this.nativeLines=o,this.lineColor=i,this.lineAlpha=r,this._lineTint=i,this.fillColor=n,this.fillAlpha=s,this._fillTint=n,this.fill=a,this.holes=[],this.shape=l,this.type=l.type}return t.prototype.clone=function(){return new t(this.lineWidth,this.lineColor,this.lineAlpha,this.fillColor,this.fillAlpha,this.fill,this.nativeLines,this.shape)},t.prototype.addHole=function(t){this.holes.push(t)},t.prototype.destroy=function(){this.shape=null,this.holes=null},t}();i.default=r},{}],55:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=t("../../renderers/canvas/CanvasRenderer"),s=(r=n)&&r.__esModule?r:{default:r},a=t("../../const");var o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.renderer=e}return t.prototype.render=function(t){var e=this.renderer,i=e.context,r=t.worldAlpha,n=t.transform.worldTransform,s=e.resolution;this._prevTint!==this.tint&&(this.dirty=!0),i.setTransform(n.a*s,n.b*s,n.c*s,n.d*s,n.tx*s,n.ty*s),t.dirty&&(this.updateGraphicsTint(t),t.dirty=!1),e.setBlendMode(t.blendMode);for(var o=0;o<t.graphicsData.length;o++){var l=t.graphicsData[o],h=l.shape,u=l._fillTint,c=l._lineTint;if(i.lineWidth=l.lineWidth,l.type===a.SHAPES.POLY){i.beginPath(),this.renderPolygon(h.points,h.closed,i);for(var d=0;d<l.holes.length;d++)this.renderPolygon(l.holes[d].points,!0,i);l.fill&&(i.globalAlpha=l.fillAlpha*r,i.fillStyle="#"+("00000"+(0|u).toString(16)).substr(-6),i.fill()),l.lineWidth&&(i.globalAlpha=l.lineAlpha*r,i.strokeStyle="#"+("00000"+(0|c).toString(16)).substr(-6),i.stroke())}else if(l.type===a.SHAPES.RECT)(l.fillColor||0===l.fillColor)&&(i.globalAlpha=l.fillAlpha*r,i.fillStyle="#"+("00000"+(0|u).toString(16)).substr(-6),i.fillRect(h.x,h.y,h.width,h.height)),l.lineWidth&&(i.globalAlpha=l.lineAlpha*r,i.strokeStyle="#"+("00000"+(0|c).toString(16)).substr(-6),i.strokeRect(h.x,h.y,h.width,h.height));else if(l.type===a.SHAPES.CIRC)i.beginPath(),i.arc(h.x,h.y,h.radius,0,2*Math.PI),i.closePath(),l.fill&&(i.globalAlpha=l.fillAlpha*r,i.fillStyle="#"+("00000"+(0|u).toString(16)).substr(-6),i.fill()),l.lineWidth&&(i.globalAlpha=l.lineAlpha*r,i.strokeStyle="#"+("00000"+(0|c).toString(16)).substr(-6),i.stroke());else if(l.type===a.SHAPES.ELIP){var p=2*h.width,f=2*h.height,_=h.x-p/2,m=h.y-f/2;i.beginPath();var g=p/2*.5522848,v=f/2*.5522848,y=_+p,b=m+f,T=_+p/2,x=m+f/2;i.moveTo(_,x),i.bezierCurveTo(_,x-v,T-g,m,T,m),i.bezierCurveTo(T+g,m,y,x-v,y,x),i.bezierCurveTo(y,x+v,T+g,b,T,b),i.bezierCurveTo(T-g,b,_,x+v,_,x),i.closePath(),l.fill&&(i.globalAlpha=l.fillAlpha*r,i.fillStyle="#"+("00000"+(0|u).toString(16)).substr(-6),i.fill()),l.lineWidth&&(i.globalAlpha=l.lineAlpha*r,i.strokeStyle="#"+("00000"+(0|c).toString(16)).substr(-6),i.stroke())}else if(l.type===a.SHAPES.RREC){var E=h.x,w=h.y,S=h.width,D=h.height,I=h.radius,P=Math.min(S,D)/2|0;I=I>P?P:I,i.beginPath(),i.moveTo(E,w+I),i.lineTo(E,w+D-I),i.quadraticCurveTo(E,w+D,E+I,w+D),i.lineTo(E+S-I,w+D),i.quadraticCurveTo(E+S,w+D,E+S,w+D-I),i.lineTo(E+S,w+I),i.quadraticCurveTo(E+S,w,E+S-I,w),i.lineTo(E+I,w),i.quadraticCurveTo(E,w,E,w+I),i.closePath(),(l.fillColor||0===l.fillColor)&&(i.globalAlpha=l.fillAlpha*r,i.fillStyle="#"+("00000"+(0|u).toString(16)).substr(-6),i.fill()),l.lineWidth&&(i.globalAlpha=l.lineAlpha*r,i.strokeStyle="#"+("00000"+(0|c).toString(16)).substr(-6),i.stroke())}}},t.prototype.updateGraphicsTint=function(t){t._prevTint=t.tint;for(var e=(t.tint>>16&255)/255,i=(t.tint>>8&255)/255,r=(255&t.tint)/255,n=0;n<t.graphicsData.length;++n){var s=t.graphicsData[n],a=0|s.fillColor,o=0|s.lineColor;s._fillTint=((a>>16&255)/255*e*255<<16)+((a>>8&255)/255*i*255<<8)+(255&a)/255*r*255,s._lineTint=((o>>16&255)/255*e*255<<16)+((o>>8&255)/255*i*255<<8)+(255&o)/255*r*255}},t.prototype.renderPolygon=function(t,e,i){i.moveTo(t[0],t[1]);for(var r=1;r<t.length/2;++r)i.lineTo(t[2*r],t[2*r+1]);e&&i.closePath()},t.prototype.destroy=function(){this.renderer=null},t}();i.default=o,s.default.registerPlugin("graphics",o)},{"../../const":46,"../../renderers/canvas/CanvasRenderer":77}],56:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t,e,i,r,n,s,a,o){var l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:[],h=0,u=0,c=0,d=0,p=0;l.push(t,e);for(var f=1,_=0;f<=20;++f)c=(u=(h=1-(_=f/20))*h)*h,p=(d=_*_)*_,l.push(c*t+3*u*_*i+3*h*d*n+p*a,c*e+3*u*_*r+3*h*d*s+p*o);return l}},{}],57:[function(t,e,i){"use strict";i.__esModule=!0;var r=t("../../utils"),n=t("../../const"),s=p(t("../../renderers/webgl/utils/ObjectRenderer")),a=p(t("../../renderers/webgl/WebGLRenderer")),o=p(t("./WebGLGraphicsData")),l=p(t("./shaders/PrimitiveShader")),h=p(t("./utils/buildPoly")),u=p(t("./utils/buildRectangle")),c=p(t("./utils/buildRoundedRectangle")),d=p(t("./utils/buildCircle"));function p(t){return t&&t.__esModule?t:{default:t}}var f=function(t){function e(i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return r.graphicsDataPool=[],r.primitiveShader=null,r.gl=i.gl,r.CONTEXT_UID=0,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.onContextChange=function(){this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.primitiveShader=new l.default(this.gl)},e.prototype.destroy=function(){s.default.prototype.destroy.call(this);for(var t=0;t<this.graphicsDataPool.length;++t)this.graphicsDataPool[t].destroy();this.graphicsDataPool=null},e.prototype.render=function(t){var e=this.renderer,i=e.gl,n=void 0,s=t._webGL[this.CONTEXT_UID];s&&t.dirty===s.dirty||(this.updateGraphics(t),s=t._webGL[this.CONTEXT_UID]);var a=this.primitiveShader;e.bindShader(a),e.state.setBlendMode(t.blendMode);for(var o=0,l=s.data.length;o<l;o++){var h=(n=s.data[o]).shader;e.bindShader(h),h.uniforms.translationMatrix=t.transform.worldTransform.toArray(!0),h.uniforms.tint=(0,r.hex2rgb)(t.tint),h.uniforms.alpha=t.worldAlpha,e.bindVao(n.vao),n.nativeLines?i.drawArrays(i.LINES,0,n.points.length/6):n.vao.draw(i.TRIANGLE_STRIP,n.indices.length)}},e.prototype.updateGraphics=function(t){var e=this.renderer.gl,i=t._webGL[this.CONTEXT_UID];if(i||(i=t._webGL[this.CONTEXT_UID]={lastIndex:0,data:[],gl:e,clearDirty:-1,dirty:-1}),i.dirty=t.dirty,t.clearDirty!==i.clearDirty){i.clearDirty=t.clearDirty;for(var r=0;r<i.data.length;r++)this.graphicsDataPool.push(i.data[r]);i.data.length=0,i.lastIndex=0}for(var s=void 0,a=void 0,o=i.lastIndex;o<t.graphicsData.length;o++){var l=t.graphicsData[o];s=this.getWebGLData(i,0),l.nativeLines&&l.lineWidth&&(a=this.getWebGLData(i,0,!0),i.lastIndex++),l.type===n.SHAPES.POLY&&(0,h.default)(l,s,a),l.type===n.SHAPES.RECT?(0,u.default)(l,s,a):l.type===n.SHAPES.CIRC||l.type===n.SHAPES.ELIP?(0,d.default)(l,s,a):l.type===n.SHAPES.RREC&&(0,c.default)(l,s,a),i.lastIndex++}this.renderer.bindVao(null);for(var p=0;p<i.data.length;p++)(s=i.data[p]).dirty&&s.upload()},e.prototype.getWebGLData=function(t,e,i){var r=t.data[t.data.length-1];return(!r||r.nativeLines!==i||r.points.length>32e4)&&((r=this.graphicsDataPool.pop()||new o.default(this.renderer.gl,this.primitiveShader,this.renderer.state.attribsState)).nativeLines=i,r.reset(e),t.data.push(r)),r.dirty=!0,r},e}(s.default);i.default=f,a.default.registerPlugin("graphics",f)},{"../../const":46,"../../renderers/webgl/WebGLRenderer":84,"../../renderers/webgl/utils/ObjectRenderer":94,"../../utils":124,"./WebGLGraphicsData":58,"./shaders/PrimitiveShader":59,"./utils/buildCircle":60,"./utils/buildPoly":62,"./utils/buildRectangle":63,"./utils/buildRoundedRectangle":64}],58:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=t("pixi-gl-core"),s=(r=n)&&r.__esModule?r:{default:r};var a=function(){function t(e,i,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.gl=e,this.color=[0,0,0],this.points=[],this.indices=[],this.buffer=s.default.GLBuffer.createVertexBuffer(e),this.indexBuffer=s.default.GLBuffer.createIndexBuffer(e),this.dirty=!0,this.nativeLines=!1,this.glPoints=null,this.glIndices=null,this.shader=i,this.vao=new s.default.VertexArrayObject(e,r).addIndex(this.indexBuffer).addAttribute(this.buffer,i.attributes.aVertexPosition,e.FLOAT,!1,24,0).addAttribute(this.buffer,i.attributes.aColor,e.FLOAT,!1,24,8)}return t.prototype.reset=function(){this.points.length=0,this.indices.length=0},t.prototype.upload=function(){this.glPoints=new Float32Array(this.points),this.buffer.upload(this.glPoints),this.glIndices=new Uint16Array(this.indices),this.indexBuffer.upload(this.glIndices),this.dirty=!1},t.prototype.destroy=function(){this.color=null,this.points=null,this.indices=null,this.vao.destroy(),this.buffer.destroy(),this.indexBuffer.destroy(),this.gl=null,this.buffer=null,this.indexBuffer=null,this.glPoints=null,this.glIndices=null},t}();i.default=a},{"pixi-gl-core":12}],59:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=t("../../../Shader");var s=function(t){function e(i){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i,["attribute vec2 aVertexPosition;","attribute vec4 aColor;","uniform mat3 translationMatrix;","uniform mat3 projectionMatrix;","uniform float alpha;","uniform vec3 tint;","varying vec4 vColor;","void main(void){"," gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);"," vColor = aColor * vec4(tint * alpha, alpha);","}"].join("\n"),["varying vec4 vColor;","void main(void){"," gl_FragColor = vColor;","}"].join("\n")))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=n)&&r.__esModule?r:{default:r}).default);i.default=s},{"../../../Shader":44}],60:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t,e,i){var r=t.shape,n=r.x,l=r.y,h=void 0,u=void 0;t.type===a.SHAPES.CIRC?(h=r.radius,u=r.radius):(h=r.width,u=r.height);if(0===h||0===u)return;var c=Math.floor(30*Math.sqrt(r.radius))||Math.floor(15*Math.sqrt(r.width+r.height)),d=2*Math.PI/c;if(t.fill){var p=(0,o.hex2rgb)(t.fillColor),f=t.fillAlpha,_=p[0]*f,m=p[1]*f,g=p[2]*f,v=e.points,y=e.indices,b=v.length/6;y.push(b);for(var T=0;T<c+1;T++)v.push(n,l,_,m,g,f),v.push(n+Math.sin(d*T)*h,l+Math.cos(d*T)*u,_,m,g,f),y.push(b++,b++);y.push(b-1)}if(t.lineWidth){var x=t.points;t.points=[];for(var E=0;E<c+1;E++)t.points.push(n+Math.sin(d*E)*h,l+Math.cos(d*E)*u);(0,s.default)(t,e,i),t.points=x}};var r,n=t("./buildLine"),s=(r=n)&&r.__esModule?r:{default:r},a=t("../../../const"),o=t("../../../utils")},{"../../../const":46,"../../../utils":124,"./buildLine":61}],61:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t,e,i){t.nativeLines?function(t,e){var i=0,r=t.points;if(0===r.length)return;var s=e.points,a=r.length/2,o=(0,n.hex2rgb)(t.lineColor),l=t.lineAlpha,h=o[0]*l,u=o[1]*l,c=o[2]*l;for(i=1;i<a;i++){var d=r[2*(i-1)],p=r[2*(i-1)+1],f=r[2*i],_=r[2*i+1];s.push(d,p),s.push(h,u,c,l),s.push(f,_),s.push(h,u,c,l)}}(t,i):function(t,e){var i=t.points;if(0===i.length)return;var s=new r.Point(i[0],i[1]),a=new r.Point(i[i.length-2],i[i.length-1]);if(s.x===a.x&&s.y===a.y){(i=i.slice()).pop(),i.pop();var o=(a=new r.Point(i[i.length-2],i[i.length-1])).x+.5*(s.x-a.x),l=a.y+.5*(s.y-a.y);i.unshift(o,l),i.push(o,l)}var h=e.points,u=e.indices,c=i.length/2,d=i.length,p=h.length/6,f=t.lineWidth/2,_=(0,n.hex2rgb)(t.lineColor),m=t.lineAlpha,g=_[0]*m,v=_[1]*m,y=_[2]*m,b=i[0],T=i[1],x=i[2],E=i[3],w=0,S=0,D=-(T-E),I=b-x,P=0,A=0,C=0,M=0,L=Math.sqrt(D*D+I*I);D/=L,I/=L,D*=f,I*=f,h.push(b-D,T-I,g,v,y,m),h.push(b+D,T+I,g,v,y,m);for(var O=1;O<c-1;++O){b=i[2*(O-1)],T=i[2*(O-1)+1],x=i[2*O],E=i[2*O+1],w=i[2*(O+1)],S=i[2*(O+1)+1],D=-(T-E),I=b-x,L=Math.sqrt(D*D+I*I),D/=L,I/=L,D*=f,I*=f,P=-(E-S),A=x-w,L=Math.sqrt(P*P+A*A),P/=L,A/=L;var R=-I+T-(-I+E),j=-D+x-(-D+b),k=(-D+b)*(-I+E)-(-D+x)*(-I+T),N=-(A*=f)+S-(-A+E),H=-(P*=f)+x-(-P+w),B=(-P+w)*(-A+E)-(-P+x)*(-A+S),F=R*H-N*j;if(Math.abs(F)<.1)F+=10.1,h.push(x-D,E-I,g,v,y,m),h.push(x+D,E+I,g,v,y,m);else{var U=(j*B-H*k)/F,X=(N*k-R*B)/F,G=(U-x)*(U-x)+(X-E)*(X-E);G>196*f*f?(C=D-P,M=I-A,L=Math.sqrt(C*C+M*M),C/=L,M/=L,C*=f,M*=f,h.push(x-C,E-M),h.push(g,v,y,m),h.push(x+C,E+M),h.push(g,v,y,m),h.push(x-C,E-M),h.push(g,v,y,m),d++):(h.push(U,X),h.push(g,v,y,m),h.push(x-(U-x),E-(X-E)),h.push(g,v,y,m))}}b=i[2*(c-2)],T=i[2*(c-2)+1],x=i[2*(c-1)],E=i[2*(c-1)+1],D=-(T-E),I=b-x,L=Math.sqrt(D*D+I*I),D/=L,I/=L,D*=f,I*=f,h.push(x-D,E-I),h.push(g,v,y,m),h.push(x+D,E+I),h.push(g,v,y,m),u.push(p);for(var V=0;V<d;++V)u.push(p++);u.push(p-1)}(t,e)};var r=t("../../../math"),n=t("../../../utils")},{"../../../math":70,"../../../utils":124}],62:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t,e,i){t.points=t.shape.points.slice();var a=t.points;if(t.fill&&a.length>=6){for(var o=[],l=t.holes,h=0;h<l.length;h++){var u=l[h];o.push(a.length/2),a=a.concat(u.points)}var c=e.points,d=e.indices,p=a.length/2,f=(0,n.hex2rgb)(t.fillColor),_=t.fillAlpha,m=f[0]*_,g=f[1]*_,v=f[2]*_,y=(0,s.default)(a,o,2);if(!y)return;for(var b=c.length/6,T=0;T<y.length;T+=3)d.push(y[T]+b),d.push(y[T]+b),d.push(y[T+1]+b),d.push(y[T+2]+b),d.push(y[T+2]+b);for(var x=0;x<p;x++)c.push(a[2*x],a[2*x+1],m,g,v,_)}t.lineWidth>0&&(0,r.default)(t,e,i)};var r=a(t("./buildLine")),n=t("../../../utils"),s=a(t("earcut"));function a(t){return t&&t.__esModule?t:{default:t}}},{"../../../utils":124,"./buildLine":61,earcut:2}],63:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t,e,i){var r=t.shape,n=r.x,o=r.y,l=r.width,h=r.height;if(t.fill){var u=(0,a.hex2rgb)(t.fillColor),c=t.fillAlpha,d=u[0]*c,p=u[1]*c,f=u[2]*c,_=e.points,m=e.indices,g=_.length/6;_.push(n,o),_.push(d,p,f,c),_.push(n+l,o),_.push(d,p,f,c),_.push(n,o+h),_.push(d,p,f,c),_.push(n+l,o+h),_.push(d,p,f,c),m.push(g,g,g+1,g+2,g+3,g+3)}if(t.lineWidth){var v=t.points;t.points=[n,o,n+l,o,n+l,o+h,n,o+h,n,o],(0,s.default)(t,e,i),t.points=v}};var r,n=t("./buildLine"),s=(r=n)&&r.__esModule?r:{default:r},a=t("../../../utils")},{"../../../utils":124,"./buildLine":61}],64:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t,e,i){var a=t.shape,o=a.x,h=a.y,u=a.width,c=a.height,d=a.radius,p=[];if(p.push(o,h+d),l(o,h+c-d,o,h+c,o+d,h+c,p),l(o+u-d,h+c,o+u,h+c,o+u,h+c-d,p),l(o+u,h+d,o+u,h,o+u-d,h,p),l(o+d,h,o,h,o,h+d+1e-10,p),t.fill){for(var f=(0,s.hex2rgb)(t.fillColor),_=t.fillAlpha,m=f[0]*_,g=f[1]*_,v=f[2]*_,y=e.points,b=e.indices,T=y.length/6,x=(0,r.default)(p,null,2),E=0,w=x.length;E<w;E+=3)b.push(x[E]+T),b.push(x[E]+T),b.push(x[E+1]+T),b.push(x[E+2]+T),b.push(x[E+2]+T);for(var S=0,D=p.length;S<D;S++)y.push(p[S],p[++S],m,g,v,_)}if(t.lineWidth){var I=t.points;t.points=p,(0,n.default)(t,e,i),t.points=I}};var r=a(t("earcut")),n=a(t("./buildLine")),s=t("../../../utils");function a(t){return t&&t.__esModule?t:{default:t}}function o(t,e,i){return t+(e-t)*i}function l(t,e,i,r,n,s){for(var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],l=0,h=0,u=0,c=0,d=0,p=0,f=0,_=0;f<=20;++f)l=o(t,i,_=f/20),h=o(e,r,_),u=o(i,n,_),c=o(r,s,_),d=o(l,u,_),p=o(h,c,_),a.push(d,p);return a}},{"../../../utils":124,"./buildLine":61,earcut:2}],65:[function(t,e,i){"use strict";i.__esModule=!0,i.autoDetectRenderer=i.Application=i.Filter=i.SpriteMaskFilter=i.Quad=i.RenderTarget=i.ObjectRenderer=i.WebGLManager=i.Shader=i.CanvasRenderTarget=i.TextureUvs=i.VideoBaseTexture=i.BaseRenderTexture=i.RenderTexture=i.BaseTexture=i.Texture=i.Spritesheet=i.CanvasGraphicsRenderer=i.GraphicsRenderer=i.GraphicsData=i.Graphics=i.TextMetrics=i.TextStyle=i.Text=i.SpriteRenderer=i.CanvasTinter=i.CanvasSpriteRenderer=i.Sprite=i.TransformBase=i.TransformStatic=i.Transform=i.Container=i.DisplayObject=i.Bounds=i.glCore=i.WebGLRenderer=i.CanvasRenderer=i.ticker=i.utils=i.settings=void 0;var r=t("./const");Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(i,t,{enumerable:!0,get:function(){return r[t]}})});var n=t("./math");Object.keys(n).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(i,t,{enumerable:!0,get:function(){return n[t]}})});var s=t("pixi-gl-core");Object.defineProperty(i,"glCore",{enumerable:!0,get:function(){return W(s).default}});var a=t("./display/Bounds");Object.defineProperty(i,"Bounds",{enumerable:!0,get:function(){return W(a).default}});var o=t("./display/DisplayObject");Object.defineProperty(i,"DisplayObject",{enumerable:!0,get:function(){return W(o).default}});var l=t("./display/Container");Object.defineProperty(i,"Container",{enumerable:!0,get:function(){return W(l).default}});var h=t("./display/Transform");Object.defineProperty(i,"Transform",{enumerable:!0,get:function(){return W(h).default}});var u=t("./display/TransformStatic");Object.defineProperty(i,"TransformStatic",{enumerable:!0,get:function(){return W(u).default}});var c=t("./display/TransformBase");Object.defineProperty(i,"TransformBase",{enumerable:!0,get:function(){return W(c).default}});var d=t("./sprites/Sprite");Object.defineProperty(i,"Sprite",{enumerable:!0,get:function(){return W(d).default}});var p=t("./sprites/canvas/CanvasSpriteRenderer");Object.defineProperty(i,"CanvasSpriteRenderer",{enumerable:!0,get:function(){return W(p).default}});var f=t("./sprites/canvas/CanvasTinter");Object.defineProperty(i,"CanvasTinter",{enumerable:!0,get:function(){return W(f).default}});var _=t("./sprites/webgl/SpriteRenderer");Object.defineProperty(i,"SpriteRenderer",{enumerable:!0,get:function(){return W(_).default}});var m=t("./text/Text");Object.defineProperty(i,"Text",{enumerable:!0,get:function(){return W(m).default}});var g=t("./text/TextStyle");Object.defineProperty(i,"TextStyle",{enumerable:!0,get:function(){return W(g).default}});var v=t("./text/TextMetrics");Object.defineProperty(i,"TextMetrics",{enumerable:!0,get:function(){return W(v).default}});var y=t("./graphics/Graphics");Object.defineProperty(i,"Graphics",{enumerable:!0,get:function(){return W(y).default}});var b=t("./graphics/GraphicsData");Object.defineProperty(i,"GraphicsData",{enumerable:!0,get:function(){return W(b).default}});var T=t("./graphics/webgl/GraphicsRenderer");Object.defineProperty(i,"GraphicsRenderer",{enumerable:!0,get:function(){return W(T).default}});var x=t("./graphics/canvas/CanvasGraphicsRenderer");Object.defineProperty(i,"CanvasGraphicsRenderer",{enumerable:!0,get:function(){return W(x).default}});var E=t("./textures/Spritesheet");Object.defineProperty(i,"Spritesheet",{enumerable:!0,get:function(){return W(E).default}});var w=t("./textures/Texture");Object.defineProperty(i,"Texture",{enumerable:!0,get:function(){return W(w).default}});var S=t("./textures/BaseTexture");Object.defineProperty(i,"BaseTexture",{enumerable:!0,get:function(){return W(S).default}});var D=t("./textures/RenderTexture");Object.defineProperty(i,"RenderTexture",{enumerable:!0,get:function(){return W(D).default}});var I=t("./textures/BaseRenderTexture");Object.defineProperty(i,"BaseRenderTexture",{enumerable:!0,get:function(){return W(I).default}});var P=t("./textures/VideoBaseTexture");Object.defineProperty(i,"VideoBaseTexture",{enumerable:!0,get:function(){return W(P).default}});var A=t("./textures/TextureUvs");Object.defineProperty(i,"TextureUvs",{enumerable:!0,get:function(){return W(A).default}});var C=t("./renderers/canvas/utils/CanvasRenderTarget");Object.defineProperty(i,"CanvasRenderTarget",{enumerable:!0,get:function(){return W(C).default}});var M=t("./Shader");Object.defineProperty(i,"Shader",{enumerable:!0,get:function(){return W(M).default}});var L=t("./renderers/webgl/managers/WebGLManager");Object.defineProperty(i,"WebGLManager",{enumerable:!0,get:function(){return W(L).default}});var O=t("./renderers/webgl/utils/ObjectRenderer");Object.defineProperty(i,"ObjectRenderer",{enumerable:!0,get:function(){return W(O).default}});var R=t("./renderers/webgl/utils/RenderTarget");Object.defineProperty(i,"RenderTarget",{enumerable:!0,get:function(){return W(R).default}});var j=t("./renderers/webgl/utils/Quad");Object.defineProperty(i,"Quad",{enumerable:!0,get:function(){return W(j).default}});var k=t("./renderers/webgl/filters/spriteMask/SpriteMaskFilter");Object.defineProperty(i,"SpriteMaskFilter",{enumerable:!0,get:function(){return W(k).default}});var N=t("./renderers/webgl/filters/Filter");Object.defineProperty(i,"Filter",{enumerable:!0,get:function(){return W(N).default}});var H=t("./Application");Object.defineProperty(i,"Application",{enumerable:!0,get:function(){return W(H).default}});var B=t("./autoDetectRenderer");Object.defineProperty(i,"autoDetectRenderer",{enumerable:!0,get:function(){return B.autoDetectRenderer}});var F=Y(t("./utils")),U=Y(t("./ticker")),X=W(t("./settings")),G=W(t("./renderers/canvas/CanvasRenderer")),V=W(t("./renderers/webgl/WebGLRenderer"));function Y(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}function W(t){return t&&t.__esModule?t:{default:t}}i.settings=X.default,i.utils=F,i.ticker=U,i.CanvasRenderer=G.default,i.WebGLRenderer=V.default},{"./Application":43,"./Shader":44,"./autoDetectRenderer":45,"./const":46,"./display/Bounds":47,"./display/Container":48,"./display/DisplayObject":49,"./display/Transform":50,"./display/TransformBase":51,"./display/TransformStatic":52,"./graphics/Graphics":53,"./graphics/GraphicsData":54,"./graphics/canvas/CanvasGraphicsRenderer":55,"./graphics/webgl/GraphicsRenderer":57,"./math":70,"./renderers/canvas/CanvasRenderer":77,"./renderers/canvas/utils/CanvasRenderTarget":79,"./renderers/webgl/WebGLRenderer":84,"./renderers/webgl/filters/Filter":86,"./renderers/webgl/filters/spriteMask/SpriteMaskFilter":89,"./renderers/webgl/managers/WebGLManager":93,"./renderers/webgl/utils/ObjectRenderer":94,"./renderers/webgl/utils/Quad":95,"./renderers/webgl/utils/RenderTarget":96,"./settings":101,"./sprites/Sprite":102,"./sprites/canvas/CanvasSpriteRenderer":103,"./sprites/canvas/CanvasTinter":104,"./sprites/webgl/SpriteRenderer":106,"./text/Text":108,"./text/TextMetrics":109,"./text/TextStyle":110,"./textures/BaseRenderTexture":111,"./textures/BaseTexture":112,"./textures/RenderTexture":113,"./textures/Spritesheet":114,"./textures/Texture":115,"./textures/TextureUvs":116,"./textures/VideoBaseTexture":117,"./ticker":120,"./utils":124,"pixi-gl-core":12}],66:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=t("./Matrix"),s=(r=n)&&r.__esModule?r:{default:r};var a=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],o=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],l=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],h=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],u=[],c=[];function d(t){return t<0?-1:t>0?1:0}!function(){for(var t=0;t<16;t++){var e=[];c.push(e);for(var i=0;i<16;i++)for(var r=d(a[t]*a[i]+l[t]*o[i]),n=d(o[t]*a[i]+h[t]*o[i]),p=d(a[t]*l[i]+l[t]*h[i]),f=d(o[t]*l[i]+h[t]*h[i]),_=0;_<16;_++)if(a[_]===r&&o[_]===n&&l[_]===p&&h[_]===f){e.push(_);break}}for(var m=0;m<16;m++){var g=new s.default;g.set(a[m],o[m],l[m],h[m],0,0),u.push(g)}}();var p={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MIRROR_HORIZONTAL:12,uX:function(t){return a[t]},uY:function(t){return o[t]},vX:function(t){return l[t]},vY:function(t){return h[t]},inv:function(t){return 8&t?15&t:7&-t},add:function(t,e){return c[t][e]},sub:function(t,e){return c[t][p.inv(e)]},rotate180:function(t){return 4^t},isSwapWidthHeight:function(t){return 2==(3&t)},byDirection:function(t,e){return 2*Math.abs(t)<=Math.abs(e)?e>=0?p.S:p.N:2*Math.abs(e)<=Math.abs(t)?t>0?p.E:p.W:e>0?t>0?p.SE:p.SW:t>0?p.NE:p.NW},matrixAppendRotationInv:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=u[p.inv(e)];n.tx=i,n.ty=r,t.append(n)}};i.default=p},{"./Matrix":67}],67:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),s=t("./Point"),a=(r=s)&&r.__esModule?r:{default:r};var o=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.a=e,this.b=i,this.c=r,this.d=n,this.tx=s,this.ty=a,this.array=null}return t.prototype.fromArray=function(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]},t.prototype.set=function(t,e,i,r,n,s){return this.a=t,this.b=e,this.c=i,this.d=r,this.tx=n,this.ty=s,this},t.prototype.toArray=function(t,e){this.array||(this.array=new Float32Array(9));var i=e||this.array;return t?(i[0]=this.a,i[1]=this.b,i[2]=0,i[3]=this.c,i[4]=this.d,i[5]=0,i[6]=this.tx,i[7]=this.ty,i[8]=1):(i[0]=this.a,i[1]=this.c,i[2]=this.tx,i[3]=this.b,i[4]=this.d,i[5]=this.ty,i[6]=0,i[7]=0,i[8]=1),i},t.prototype.apply=function(t,e){e=e||new a.default;var i=t.x,r=t.y;return e.x=this.a*i+this.c*r+this.tx,e.y=this.b*i+this.d*r+this.ty,e},t.prototype.applyInverse=function(t,e){e=e||new a.default;var i=1/(this.a*this.d+this.c*-this.b),r=t.x,n=t.y;return e.x=this.d*i*r+-this.c*i*n+(this.ty*this.c-this.tx*this.d)*i,e.y=this.a*i*n+-this.b*i*r+(-this.ty*this.a+this.tx*this.b)*i,e},t.prototype.translate=function(t,e){return this.tx+=t,this.ty+=e,this},t.prototype.scale=function(t,e){return this.a*=t,this.d*=e,this.c*=t,this.b*=e,this.tx*=t,this.ty*=e,this},t.prototype.rotate=function(t){var e=Math.cos(t),i=Math.sin(t),r=this.a,n=this.c,s=this.tx;return this.a=r*e-this.b*i,this.b=r*i+this.b*e,this.c=n*e-this.d*i,this.d=n*i+this.d*e,this.tx=s*e-this.ty*i,this.ty=s*i+this.ty*e,this},t.prototype.append=function(t){var e=this.a,i=this.b,r=this.c,n=this.d;return this.a=t.a*e+t.b*r,this.b=t.a*i+t.b*n,this.c=t.c*e+t.d*r,this.d=t.c*i+t.d*n,this.tx=t.tx*e+t.ty*r+this.tx,this.ty=t.tx*i+t.ty*n+this.ty,this},t.prototype.setTransform=function(t,e,i,r,n,s,a,o,l){var h=Math.sin(a),u=Math.cos(a),c=Math.cos(l),d=Math.sin(l),p=-Math.sin(o),f=Math.cos(o),_=u*n,m=h*n,g=-h*s,v=u*s;return this.a=c*_+d*g,this.b=c*m+d*v,this.c=p*_+f*g,this.d=p*m+f*v,this.tx=t+(i*_+r*g),this.ty=e+(i*m+r*v),this},t.prototype.prepend=function(t){var e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){var i=this.a,r=this.c;this.a=i*t.a+this.b*t.c,this.b=i*t.b+this.b*t.d,this.c=r*t.a+this.d*t.c,this.d=r*t.b+this.d*t.d}return this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty,this},t.prototype.decompose=function(t){var e=this.a,i=this.b,r=this.c,n=this.d,s=-Math.atan2(-r,n),a=Math.atan2(i,e);return Math.abs(s+a)<1e-5?(t.rotation=a,e<0&&n>=0&&(t.rotation+=t.rotation<=0?Math.PI:-Math.PI),t.skew.x=t.skew.y=0):(t.skew.x=s,t.skew.y=a),t.scale.x=Math.sqrt(e*e+i*i),t.scale.y=Math.sqrt(r*r+n*n),t.position.x=this.tx,t.position.y=this.ty,t},t.prototype.invert=function(){var t=this.a,e=this.b,i=this.c,r=this.d,n=this.tx,s=t*r-e*i;return this.a=r/s,this.b=-e/s,this.c=-i/s,this.d=t/s,this.tx=(i*this.ty-r*n)/s,this.ty=-(t*this.ty-e*n)/s,this},t.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},t.prototype.clone=function(){var e=new t;return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e},t.prototype.copy=function(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},n(t,null,[{key:"IDENTITY",get:function(){return new t}},{key:"TEMP_MATRIX",get:function(){return new t}}]),t}();i.default=o},{"./Point":69}],68:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}();var n=function(){function t(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._x=r,this._y=n,this.cb=e,this.scope=i}return t.prototype.set=function(t,e){var i=t||0,r=e||(0!==e?i:0);this._x===i&&this._y===r||(this._x=i,this._y=r,this.cb.call(this.scope))},t.prototype.copy=function(t){this._x===t.x&&this._y===t.y||(this._x=t.x,this._y=t.y,this.cb.call(this.scope))},r(t,[{key:"x",get:function(){return this._x},set:function(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))}},{key:"y",get:function(){return this._y},set:function(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))}}]),t}();i.default=n},{}],69:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.x=e,this.y=i}return t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.copy=function(t){this.set(t.x,t.y)},t.prototype.equals=function(t){return t.x===this.x&&t.y===this.y},t.prototype.set=function(t,e){this.x=t||0,this.y=e||(0!==e?this.x:0)},t}();i.default=r},{}],70:[function(t,e,i){"use strict";i.__esModule=!0;var r=t("./Point");Object.defineProperty(i,"Point",{enumerable:!0,get:function(){return d(r).default}});var n=t("./ObservablePoint");Object.defineProperty(i,"ObservablePoint",{enumerable:!0,get:function(){return d(n).default}});var s=t("./Matrix");Object.defineProperty(i,"Matrix",{enumerable:!0,get:function(){return d(s).default}});var a=t("./GroupD8");Object.defineProperty(i,"GroupD8",{enumerable:!0,get:function(){return d(a).default}});var o=t("./shapes/Circle");Object.defineProperty(i,"Circle",{enumerable:!0,get:function(){return d(o).default}});var l=t("./shapes/Ellipse");Object.defineProperty(i,"Ellipse",{enumerable:!0,get:function(){return d(l).default}});var h=t("./shapes/Polygon");Object.defineProperty(i,"Polygon",{enumerable:!0,get:function(){return d(h).default}});var u=t("./shapes/Rectangle");Object.defineProperty(i,"Rectangle",{enumerable:!0,get:function(){return d(u).default}});var c=t("./shapes/RoundedRectangle");function d(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(i,"RoundedRectangle",{enumerable:!0,get:function(){return d(c).default}})},{"./GroupD8":66,"./Matrix":67,"./ObservablePoint":68,"./Point":69,"./shapes/Circle":71,"./shapes/Ellipse":72,"./shapes/Polygon":73,"./shapes/Rectangle":74,"./shapes/RoundedRectangle":75}],71:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=t("./Rectangle"),s=(r=n)&&r.__esModule?r:{default:r},a=t("../../const");var o=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.x=e,this.y=i,this.radius=r,this.type=a.SHAPES.CIRC}return t.prototype.clone=function(){return new t(this.x,this.y,this.radius)},t.prototype.contains=function(t,e){if(this.radius<=0)return!1;var i=this.radius*this.radius,r=this.x-t,n=this.y-e;return(r*=r)+(n*=n)<=i},t.prototype.getBounds=function(){return new s.default(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)},t}();i.default=o},{"../../const":46,"./Rectangle":74}],72:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=t("./Rectangle"),s=(r=n)&&r.__esModule?r:{default:r},a=t("../../const");var o=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.x=e,this.y=i,this.width=r,this.height=n,this.type=a.SHAPES.ELIP}return t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.contains=function(t,e){if(this.width<=0||this.height<=0)return!1;var i=(t-this.x)/this.width,r=(e-this.y)/this.height;return(i*=i)+(r*=r)<=1},t.prototype.getBounds=function(){return new s.default(this.x-this.width,this.y-this.height,this.width,this.height)},t}();i.default=o},{"../../const":46,"./Rectangle":74}],73:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=t("../Point"),s=(r=n)&&r.__esModule?r:{default:r},a=t("../../const");var o=function(){function t(){for(var e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Array.isArray(i[0])&&(i=i[0]),i[0]instanceof s.default){for(var n=[],o=0,l=i.length;o<l;o++)n.push(i[o].x,i[o].y);i=n}this.closed=!0,this.points=i,this.type=a.SHAPES.POLY}return t.prototype.clone=function(){return new t(this.points.slice())},t.prototype.close=function(){var t=this.points;t[0]===t[t.length-2]&&t[1]===t[t.length-1]||t.push(t[0],t[1])},t.prototype.contains=function(t,e){for(var i=!1,r=this.points.length/2,n=0,s=r-1;n<r;s=n++){var a=this.points[2*n],o=this.points[2*n+1],l=this.points[2*s],h=this.points[2*s+1];o>e!=h>e&&t<(e-o)/(h-o)*(l-a)+a&&(i=!i)}return i},t}();i.default=o},{"../../const":46,"../Point":69}],74:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=t("../../const");var s=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.x=Number(e),this.y=Number(i),this.width=Number(r),this.height=Number(s),this.type=n.SHAPES.RECT}return t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this},t.prototype.contains=function(t,e){return!(this.width<=0||this.height<=0)&&(t>=this.x&&t<this.x+this.width&&e>=this.y&&e<this.y+this.height)},t.prototype.pad=function(t,e){t=t||0,e=e||(0!==e?t:0),this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e},t.prototype.fit=function(t){this.x<t.x&&(this.width+=this.x,this.width<0&&(this.width=0),this.x=t.x),this.y<t.y&&(this.height+=this.y,this.height<0&&(this.height=0),this.y=t.y),this.x+this.width>t.x+t.width&&(this.width=t.width-this.x,this.width<0&&(this.width=0)),this.y+this.height>t.y+t.height&&(this.height=t.height-this.y,this.height<0&&(this.height=0))},t.prototype.enlarge=function(t){var e=Math.min(this.x,t.x),i=Math.max(this.x+this.width,t.x+t.width),r=Math.min(this.y,t.y),n=Math.max(this.y+this.height,t.y+t.height);this.x=e,this.width=i-e,this.y=r,this.height=n-r},r(t,[{key:"left",get:function(){return this.x}},{key:"right",get:function(){return this.x+this.width}},{key:"top",get:function(){return this.y}},{key:"bottom",get:function(){return this.y+this.height}}],[{key:"EMPTY",get:function(){return new t(0,0,0,0)}}]),t}();i.default=s},{"../../const":46}],75:[function(t,e,i){"use strict";i.__esModule=!0;var r=t("../../const");var n=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:20;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.x=e,this.y=i,this.width=n,this.height=s,this.radius=a,this.type=r.SHAPES.RREC}return t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height,this.radius)},t.prototype.contains=function(t,e){if(this.width<=0||this.height<=0)return!1;if(t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height){if(e>=this.y+this.radius&&e<=this.y+this.height-this.radius||t>=this.x+this.radius&&t<=this.x+this.width-this.radius)return!0;var i=t-(this.x+this.radius),r=e-(this.y+this.radius),n=this.radius*this.radius;if(i*i+r*r<=n)return!0;if((i=t-(this.x+this.width-this.radius))*i+r*r<=n)return!0;if(i*i+(r=e-(this.y+this.height-this.radius))*r<=n)return!0;if((i=t-(this.x+this.radius))*i+r*r<=n)return!0}return!1},t}();i.default=n},{"../../const":46}],76:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=t("../utils"),s=t("../math"),a=t("../const"),o=c(t("../settings")),l=c(t("../display/Container")),h=c(t("../textures/RenderTexture")),u=c(t("eventemitter3"));function c(t){return t&&t.__esModule?t:{default:t}}var d=new s.Matrix,p=function(t){function e(i,r,h,u){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var c=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return(0,n.sayHello)(i),"number"==typeof r&&(r=Object.assign({width:r,height:h||o.default.RENDER_OPTIONS.height},u)),r=Object.assign({},o.default.RENDER_OPTIONS,r),c.options=r,c.type=a.RENDERER_TYPE.UNKNOWN,c.screen=new s.Rectangle(0,0,r.width,r.height),c.view=r.view||document.createElement("canvas"),c.resolution=r.resolution||o.default.RESOLUTION,c.transparent=r.transparent,c.autoResize=r.autoResize||!1,c.blendModes=null,c.preserveDrawingBuffer=r.preserveDrawingBuffer,c.clearBeforeRender=r.clearBeforeRender,c.roundPixels=r.roundPixels,c._backgroundColor=0,c._backgroundColorRgba=[0,0,0,0],c._backgroundColorString="#000000",c.backgroundColor=r.backgroundColor||c._backgroundColor,c._tempDisplayObjectParent=new l.default,c._lastObjectRendered=c._tempDisplayObjectParent,c}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.resize=function(t,e){this.screen.width=t,this.screen.height=e,this.view.width=t*this.resolution,this.view.height=e*this.resolution,this.autoResize&&(this.view.style.width=t+"px",this.view.style.height=e+"px")},e.prototype.generateTexture=function(t,e,i){var r=t.getLocalBounds(),n=h.default.create(0|r.width,0|r.height,e,i);return d.tx=-r.x,d.ty=-r.y,this.render(t,n,!1,d,!0),n},e.prototype.destroy=function(t){t&&this.view.parentNode&&this.view.parentNode.removeChild(this.view),this.type=a.RENDERER_TYPE.UNKNOWN,this.view=null,this.screen=null,this.resolution=0,this.transparent=!1,this.autoResize=!1,this.blendModes=null,this.options=null,this.preserveDrawingBuffer=!1,this.clearBeforeRender=!1,this.roundPixels=!1,this._backgroundColor=0,this._backgroundColorRgba=null,this._backgroundColorString=null,this._tempDisplayObjectParent=null,this._lastObjectRendered=null},r(e,[{key:"width",get:function(){return this.view.width}},{key:"height",get:function(){return this.view.height}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(t){this._backgroundColor=t,this._backgroundColorString=(0,n.hex2string)(t),(0,n.hex2rgb)(t,this._backgroundColorRgba)}}]),e}(u.default);i.default=p},{"../const":46,"../display/Container":48,"../math":70,"../settings":101,"../textures/RenderTexture":113,"../utils":124,eventemitter3:3}],77:[function(t,e,i){"use strict";i.__esModule=!0;var r=u(t("../SystemRenderer")),n=u(t("./utils/CanvasMaskManager")),s=u(t("./utils/CanvasRenderTarget")),a=u(t("./utils/mapCanvasBlendModesToPixi")),o=t("../../utils"),l=t("../../const"),h=u(t("../../settings"));function u(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(i,r,s){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,"Canvas",i,r,s));return o.type=l.RENDERER_TYPE.CANVAS,o.rootContext=o.view.getContext("2d",{alpha:o.transparent}),o.context=o.rootContext,o.refresh=!0,o.maskManager=new n.default(o),o.smoothProperty="imageSmoothingEnabled",o.rootContext.imageSmoothingEnabled||(o.rootContext.webkitImageSmoothingEnabled?o.smoothProperty="webkitImageSmoothingEnabled":o.rootContext.mozImageSmoothingEnabled?o.smoothProperty="mozImageSmoothingEnabled":o.rootContext.oImageSmoothingEnabled?o.smoothProperty="oImageSmoothingEnabled":o.rootContext.msImageSmoothingEnabled&&(o.smoothProperty="msImageSmoothingEnabled")),o.initPlugins(),o.blendModes=(0,a.default)(),o._activeBlendMode=null,o.renderingToScreen=!1,o.resize(o.options.width,o.options.height),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.render=function(t,e,i,r,n){if(this.view){this.renderingToScreen=!e,this.emit("prerender");var a=this.resolution;e?((e=e.baseTexture||e)._canvasRenderTarget||(e._canvasRenderTarget=new s.default(e.width,e.height,e.resolution),e.source=e._canvasRenderTarget.canvas,e.valid=!0),this.context=e._canvasRenderTarget.context,this.resolution=e._canvasRenderTarget.resolution):this.context=this.rootContext;var o=this.context;if(e||(this._lastObjectRendered=t),!n){var h=t.parent,u=this._tempDisplayObjectParent.transform.worldTransform;r?(r.copy(u),this._tempDisplayObjectParent.transform._worldID=-1):u.identity(),t.parent=this._tempDisplayObjectParent,t.updateTransform(),t.parent=h}o.setTransform(1,0,0,1,0,0),o.globalAlpha=1,o.globalCompositeOperation=this.blendModes[l.BLEND_MODES.NORMAL],navigator.isCocoonJS&&this.view.screencanvas&&(o.fillStyle="black",o.clear()),(void 0!==i?i:this.clearBeforeRender)&&this.renderingToScreen&&(this.transparent?o.clearRect(0,0,this.width,this.height):(o.fillStyle=this._backgroundColorString,o.fillRect(0,0,this.width,this.height)));var c=this.context;this.context=o,t.renderCanvas(this),this.context=c,this.resolution=a,this.emit("postrender")}},e.prototype.clear=function(t){var e=this.context;t=t||this._backgroundColorString,!this.transparent&&t?(e.fillStyle=t,e.fillRect(0,0,this.width,this.height)):e.clearRect(0,0,this.width,this.height)},e.prototype.setBlendMode=function(t){this._activeBlendMode!==t&&(this._activeBlendMode=t,this.context.globalCompositeOperation=this.blendModes[t])},e.prototype.destroy=function(e){this.destroyPlugins(),t.prototype.destroy.call(this,e),this.context=null,this.refresh=!0,this.maskManager.destroy(),this.maskManager=null,this.smoothProperty=null},e.prototype.resize=function(e,i){t.prototype.resize.call(this,e,i),this.smoothProperty&&(this.rootContext[this.smoothProperty]=h.default.SCALE_MODE===l.SCALE_MODES.LINEAR)},e}(r.default);i.default=c,o.pluginTarget.mixin(c)},{"../../const":46,"../../settings":101,"../../utils":124,"../SystemRenderer":76,"./utils/CanvasMaskManager":78,"./utils/CanvasRenderTarget":79,"./utils/mapCanvasBlendModesToPixi":81}],78:[function(t,e,i){"use strict";i.__esModule=!0;var r=t("../../../const");var n=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.renderer=e}return t.prototype.pushMask=function(t){var e=this.renderer;e.context.save();var i=t.alpha,r=t.transform.worldTransform,n=e.resolution;e.context.setTransform(r.a*n,r.b*n,r.c*n,r.d*n,r.tx*n,r.ty*n),t._texture||(this.renderGraphicsShape(t),e.context.clip()),t.worldAlpha=i},t.prototype.renderGraphicsShape=function(t){var e=this.renderer.context,i=t.graphicsData.length;if(0!==i){e.beginPath();for(var n=0;n<i;n++){var s=t.graphicsData[n],a=s.shape;if(s.type===r.SHAPES.POLY){var o=a.points;e.moveTo(o[0],o[1]);for(var l=1;l<o.length/2;l++)e.lineTo(o[2*l],o[2*l+1]);o[0]===o[o.length-2]&&o[1]===o[o.length-1]&&e.closePath()}else if(s.type===r.SHAPES.RECT)e.rect(a.x,a.y,a.width,a.height),e.closePath();else if(s.type===r.SHAPES.CIRC)e.arc(a.x,a.y,a.radius,0,2*Math.PI),e.closePath();else if(s.type===r.SHAPES.ELIP){var h=2*a.width,u=2*a.height,c=a.x-h/2,d=a.y-u/2,p=h/2*.5522848,f=u/2*.5522848,_=c+h,m=d+u,g=c+h/2,v=d+u/2;e.moveTo(c,v),e.bezierCurveTo(c,v-f,g-p,d,g,d),e.bezierCurveTo(g+p,d,_,v-f,_,v),e.bezierCurveTo(_,v+f,g+p,m,g,m),e.bezierCurveTo(g-p,m,c,v+f,c,v),e.closePath()}else if(s.type===r.SHAPES.RREC){var y=a.x,b=a.y,T=a.width,x=a.height,E=a.radius,w=Math.min(T,x)/2|0;E=E>w?w:E,e.moveTo(y,b+E),e.lineTo(y,b+x-E),e.quadraticCurveTo(y,b+x,y+E,b+x),e.lineTo(y+T-E,b+x),e.quadraticCurveTo(y+T,b+x,y+T,b+x-E),e.lineTo(y+T,b+E),e.quadraticCurveTo(y+T,b,y+T-E,b),e.lineTo(y+E,b),e.quadraticCurveTo(y,b,y,b+E),e.closePath()}}}},t.prototype.popMask=function(t){t.context.restore()},t.prototype.destroy=function(){},t}();i.default=n},{"../../../const":46}],79:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),s=t("../../../settings"),a=(r=s)&&r.__esModule?r:{default:r};var o=function(){function t(e,i,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.resolution=r||a.default.RESOLUTION,this.resize(e,i)}return t.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},t.prototype.resize=function(t,e){this.canvas.width=t*this.resolution,this.canvas.height=e*this.resolution},t.prototype.destroy=function(){this.context=null,this.canvas=null},n(t,[{key:"width",get:function(){return this.canvas.width},set:function(t){this.canvas.width=t}},{key:"height",get:function(){return this.canvas.height},set:function(t){this.canvas.height=t}}]),t}();i.default=o},{"../../../settings":101}],80:[function(t,e,i){"use strict";function r(t){var e=document.createElement("canvas");e.width=6,e.height=1;var i=e.getContext("2d");return i.fillStyle=t,i.fillRect(0,0,6,1),e}i.__esModule=!0,i.default=function(){if("undefined"==typeof document)return!1;var t=r("#ff00ff"),e=r("#ffff00"),i=document.createElement("canvas");i.width=6,i.height=1;var n=i.getContext("2d");n.globalCompositeOperation="multiply",n.drawImage(t,0,0),n.drawImage(e,2,0);var s=n.getImageData(2,0,1,1);if(!s)return!1;var a=s.data;return 255===a[0]&&0===a[1]&&0===a[2]}},{}],81:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,a.default)()?(t[n.BLEND_MODES.NORMAL]="source-over",t[n.BLEND_MODES.ADD]="lighter",t[n.BLEND_MODES.MULTIPLY]="multiply",t[n.BLEND_MODES.SCREEN]="screen",t[n.BLEND_MODES.OVERLAY]="overlay",t[n.BLEND_MODES.DARKEN]="darken",t[n.BLEND_MODES.LIGHTEN]="lighten",t[n.BLEND_MODES.COLOR_DODGE]="color-dodge",t[n.BLEND_MODES.COLOR_BURN]="color-burn",t[n.BLEND_MODES.HARD_LIGHT]="hard-light",t[n.BLEND_MODES.SOFT_LIGHT]="soft-light",t[n.BLEND_MODES.DIFFERENCE]="difference",t[n.BLEND_MODES.EXCLUSION]="exclusion",t[n.BLEND_MODES.HUE]="hue",t[n.BLEND_MODES.SATURATION]="saturate",t[n.BLEND_MODES.COLOR]="color",t[n.BLEND_MODES.LUMINOSITY]="luminosity"):(t[n.BLEND_MODES.NORMAL]="source-over",t[n.BLEND_MODES.ADD]="lighter",t[n.BLEND_MODES.MULTIPLY]="source-over",t[n.BLEND_MODES.SCREEN]="source-over",t[n.BLEND_MODES.OVERLAY]="source-over",t[n.BLEND_MODES.DARKEN]="source-over",t[n.BLEND_MODES.LIGHTEN]="source-over",t[n.BLEND_MODES.COLOR_DODGE]="source-over",t[n.BLEND_MODES.COLOR_BURN]="source-over",t[n.BLEND_MODES.HARD_LIGHT]="source-over",t[n.BLEND_MODES.SOFT_LIGHT]="source-over",t[n.BLEND_MODES.DIFFERENCE]="source-over",t[n.BLEND_MODES.EXCLUSION]="source-over",t[n.BLEND_MODES.HUE]="source-over",t[n.BLEND_MODES.SATURATION]="source-over",t[n.BLEND_MODES.COLOR]="source-over",t[n.BLEND_MODES.LUMINOSITY]="source-over");return t[n.BLEND_MODES.NORMAL_NPM]=t[n.BLEND_MODES.NORMAL],t[n.BLEND_MODES.ADD_NPM]=t[n.BLEND_MODES.ADD],t[n.BLEND_MODES.SCREEN_NPM]=t[n.BLEND_MODES.SCREEN],t};var r,n=t("../../../const"),s=t("./canUseNewCanvasBlendModes"),a=(r=s)&&r.__esModule?r:{default:r}},{"../../../const":46,"./canUseNewCanvasBlendModes":80}],82:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=t("../../const"),s=t("../../settings"),a=(r=s)&&r.__esModule?r:{default:r};var o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.renderer=e,this.count=0,this.checkCount=0,this.maxIdle=a.default.GC_MAX_IDLE,this.checkCountMax=a.default.GC_MAX_CHECK_COUNT,this.mode=a.default.GC_MODE}return t.prototype.update=function(){this.count++,this.mode!==n.GC_MODES.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run()))},t.prototype.run=function(){for(var t=this.renderer.textureManager,e=t._managedTextures,i=!1,r=0;r<e.length;r++){var n=e[r];!n._glRenderTargets&&this.count-n.touched>this.maxIdle&&(t.destroyTexture(n,!0),e[r]=null,i=!0)}if(i){for(var s=0,a=0;a<e.length;a++)null!==e[a]&&(e[s++]=e[a]);e.length=s}},t.prototype.unload=function(t){var e=this.renderer.textureManager;t._texture&&t._texture._glRenderTargets&&e.destroyTexture(t._texture,!0);for(var i=t.children.length-1;i>=0;i--)this.unload(t.children[i])},t}();i.default=o},{"../../const":46,"../../settings":101}],83:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=t("pixi-gl-core"),s=t("../../const"),a=t("./utils/RenderTarget"),o=(r=a)&&r.__esModule?r:{default:r},l=t("../../utils");var h=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.renderer=e,this.gl=e.gl,this._managedTextures=[]}return t.prototype.bindTexture=function(){},t.prototype.getTexture=function(){},t.prototype.updateTexture=function(t,e){var i=this.gl,r=!!t._glRenderTargets;if(!t.hasLoaded)return null;var a=this.renderer.boundTextures;if(void 0===e){e=0;for(var l=0;l<a.length;++l)if(a[l]===t){e=l;break}}a[e]=t,i.activeTexture(i.TEXTURE0+e);var h=t._glTextures[this.renderer.CONTEXT_UID];if(h)r?t._glRenderTargets[this.renderer.CONTEXT_UID].resize(t.width,t.height):h.upload(t.source);else{if(r){var u=new o.default(this.gl,t.width,t.height,t.scaleMode,t.resolution);u.resize(t.width,t.height),t._glRenderTargets[this.renderer.CONTEXT_UID]=u,h=u.texture}else(h=new n.GLTexture(this.gl,null,null,null,null)).bind(e),h.premultiplyAlpha=!0,h.upload(t.source);t._glTextures[this.renderer.CONTEXT_UID]=h,t.on("update",this.updateTexture,this),t.on("dispose",this.destroyTexture,this),this._managedTextures.push(t),t.isPowerOfTwo?(t.mipmap&&h.enableMipmap(),t.wrapMode===s.WRAP_MODES.CLAMP?h.enableWrapClamp():t.wrapMode===s.WRAP_MODES.REPEAT?h.enableWrapRepeat():h.enableWrapMirrorRepeat()):h.enableWrapClamp(),t.scaleMode===s.SCALE_MODES.NEAREST?h.enableNearestScaling():h.enableLinearScaling()}return h},t.prototype.destroyTexture=function(t,e){if((t=t.baseTexture||t).hasLoaded){var i=this.renderer.CONTEXT_UID,r=t._glTextures,n=t._glRenderTargets;if(r[i]&&(this.renderer.unbindTexture(t),r[i].destroy(),t.off("update",this.updateTexture,this),t.off("dispose",this.destroyTexture,this),delete r[i],!e)){var s=this._managedTextures.indexOf(t);-1!==s&&(0,l.removeItems)(this._managedTextures,s,1)}n&&n[i]&&(n[i].destroy(),delete n[i])}},t.prototype.removeAll=function(){for(var t=0;t<this._managedTextures.length;++t){var e=this._managedTextures[t];e._glTextures[this.renderer.CONTEXT_UID]&&delete e._glTextures[this.renderer.CONTEXT_UID]}},t.prototype.destroy=function(){for(var t=0;t<this._managedTextures.length;++t){var e=this._managedTextures[t];this.destroyTexture(e,!0),e.off("update",this.updateTexture,this),e.off("dispose",this.destroyTexture,this)}this._managedTextures=null},t}();i.default=h},{"../../const":46,"../../utils":124,"./utils/RenderTarget":96,"pixi-gl-core":12}],84:[function(t,e,i){"use strict";i.__esModule=!0;var r=v(t("../SystemRenderer")),n=v(t("./managers/MaskManager")),s=v(t("./managers/StencilManager")),a=v(t("./managers/FilterManager")),o=v(t("./utils/RenderTarget")),l=v(t("./utils/ObjectRenderer")),h=v(t("./TextureManager")),u=v(t("../../textures/BaseTexture")),c=v(t("./TextureGarbageCollector")),d=v(t("./WebGLState")),p=v(t("./utils/mapWebGLDrawModesToPixi")),f=v(t("./utils/validateContext")),_=t("../../utils"),m=v(t("pixi-gl-core")),g=t("../../const");function v(t){return t&&t.__esModule?t:{default:t}}var y=0,b=function(t){function e(i,r,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var h=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,"WebGL",i,r,o));return h.legacy=h.options.legacy,h.legacy&&(m.default.VertexArrayObject.FORCE_NATIVE=!0),h.type=g.RENDERER_TYPE.WEBGL,h.handleContextLost=h.handleContextLost.bind(h),h.handleContextRestored=h.handleContextRestored.bind(h),h.view.addEventListener("webglcontextlost",h.handleContextLost,!1),h.view.addEventListener("webglcontextrestored",h.handleContextRestored,!1),h._contextOptions={alpha:h.transparent,antialias:h.options.antialias,premultipliedAlpha:h.transparent&&"notMultiplied"!==h.transparent,stencil:!0,preserveDrawingBuffer:h.options.preserveDrawingBuffer},h._backgroundColorRgba[3]=h.transparent?0:1,h.maskManager=new n.default(h),h.stencilManager=new s.default(h),h.emptyRenderer=new l.default(h),h.currentRenderer=h.emptyRenderer,h.initPlugins(),h.options.context&&(0,f.default)(h.options.context),h.gl=h.options.context||m.default.createContext(h.view,h._contextOptions),h.CONTEXT_UID=y++,h.state=new d.default(h.gl),h.renderingToScreen=!0,h.boundTextures=null,h._activeShader=null,h._activeVao=null,h._activeRenderTarget=null,h._initContext(),h.filterManager=new a.default(h),h.drawModes=(0,p.default)(h.gl),h._nextTextureLocation=0,h.setBlendMode(0),h}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._initContext=function(){var t=this.gl;t.isContextLost()&&t.getExtension("WEBGL_lose_context")&&t.getExtension("WEBGL_lose_context").restoreContext();var e=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this._activeShader=null,this._activeVao=null,this.boundTextures=new Array(e),this.emptyTextures=new Array(e),this.textureManager=new h.default(this),this.textureGC=new c.default(this),this.state.resetToDefault(),this.rootRenderTarget=new o.default(t,this.width,this.height,null,this.resolution,!0),this.rootRenderTarget.clearColor=this._backgroundColorRgba,this.bindRenderTarget(this.rootRenderTarget);var i=new m.default.GLTexture.fromData(t,null,1,1),r={_glTextures:{}};r._glTextures[this.CONTEXT_UID]={};for(var n=0;n<e;n++){var s=new u.default;s._glTextures[this.CONTEXT_UID]=i,this.boundTextures[n]=r,this.emptyTextures[n]=s,this.bindTexture(null,n)}this.emit("context",t),this.resize(this.screen.width,this.screen.height)},e.prototype.render=function(t,e,i,r,n){if(this.renderingToScreen=!e,this.emit("prerender"),this.gl&&!this.gl.isContextLost()){if(this._nextTextureLocation=0,e||(this._lastObjectRendered=t),!n){var s=t.parent;t.parent=this._tempDisplayObjectParent,t.updateTransform(),t.parent=s}this.bindRenderTexture(e,r),this.currentRenderer.start(),(void 0!==i?i:this.clearBeforeRender)&&this._activeRenderTarget.clear(),t.renderWebGL(this),this.currentRenderer.flush(),this.textureGC.update(),this.emit("postrender")}},e.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},e.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.resize=function(t,e){r.default.prototype.resize.call(this,t,e),this.rootRenderTarget.resize(t,e),this._activeRenderTarget===this.rootRenderTarget&&(this.rootRenderTarget.activate(),this._activeShader&&(this._activeShader.uniforms.projectionMatrix=this.rootRenderTarget.projectionMatrix.toArray(!0)))},e.prototype.setBlendMode=function(t){this.state.setBlendMode(t)},e.prototype.clear=function(t){this._activeRenderTarget.clear(t)},e.prototype.setTransform=function(t){this._activeRenderTarget.transform=t},e.prototype.clearRenderTexture=function(t,e){var i=t.baseTexture._glRenderTargets[this.CONTEXT_UID];return i&&i.clear(e),this},e.prototype.bindRenderTexture=function(t,e){var i=void 0;if(t){var r=t.baseTexture;r._glRenderTargets[this.CONTEXT_UID]||this.textureManager.updateTexture(r,0),this.unbindTexture(r),(i=r._glRenderTargets[this.CONTEXT_UID]).setFrame(t.frame)}else i=this.rootRenderTarget;return i.transform=e,this.bindRenderTarget(i),this},e.prototype.bindRenderTarget=function(t){return t!==this._activeRenderTarget&&(this._activeRenderTarget=t,t.activate(),this._activeShader&&(this._activeShader.uniforms.projectionMatrix=t.projectionMatrix.toArray(!0)),this.stencilManager.setMaskStack(t.stencilMaskStack)),this},e.prototype.bindShader=function(t,e){return this._activeShader!==t&&(this._activeShader=t,t.bind(),!1!==e&&(t.uniforms.projectionMatrix=this._activeRenderTarget.projectionMatrix.toArray(!0))),this},e.prototype.bindTexture=function(t,e,i){if((t=(t=t||this.emptyTextures[e]).baseTexture||t).touched=this.textureGC.count,i)e=e||0;else{for(var r=0;r<this.boundTextures.length;r++)if(this.boundTextures[r]===t)return r;void 0===e&&(this._nextTextureLocation++,this._nextTextureLocation%=this.boundTextures.length,e=this.boundTextures.length-this._nextTextureLocation-1)}var n=this.gl,s=t._glTextures[this.CONTEXT_UID];return s?(this.boundTextures[e]=t,n.activeTexture(n.TEXTURE0+e),n.bindTexture(n.TEXTURE_2D,s.texture)):this.textureManager.updateTexture(t,e),e},e.prototype.unbindTexture=function(t){var e=this.gl;t=t.baseTexture||t;for(var i=0;i<this.boundTextures.length;i++)this.boundTextures[i]===t&&(this.boundTextures[i]=this.emptyTextures[i],e.activeTexture(e.TEXTURE0+i),e.bindTexture(e.TEXTURE_2D,this.emptyTextures[i]._glTextures[this.CONTEXT_UID].texture));return this},e.prototype.createVao=function(){return new m.default.VertexArrayObject(this.gl,this.state.attribState)},e.prototype.bindVao=function(t){return this._activeVao===t?this:(t?t.bind():this._activeVao&&this._activeVao.unbind(),this._activeVao=t,this)},e.prototype.reset=function(){return this.setObjectRenderer(this.emptyRenderer),this._activeShader=null,this._activeRenderTarget=this.rootRenderTarget,this.rootRenderTarget.activate(),this.state.resetToDefault(),this},e.prototype.handleContextLost=function(t){t.preventDefault()},e.prototype.handleContextRestored=function(){this.textureManager.removeAll(),this._initContext()},e.prototype.destroy=function(e){this.destroyPlugins(),this.view.removeEventListener("webglcontextlost",this.handleContextLost),this.view.removeEventListener("webglcontextrestored",this.handleContextRestored),this.textureManager.destroy(),t.prototype.destroy.call(this,e),this.uid=0,this.maskManager.destroy(),this.stencilManager.destroy(),this.filterManager.destroy(),this.maskManager=null,this.filterManager=null,this.textureManager=null,this.currentRenderer=null,this.handleContextLost=null,this.handleContextRestored=null,this._contextOptions=null,this.gl.useProgram(null),this.gl.getExtension("WEBGL_lose_context")&&this.gl.getExtension("WEBGL_lose_context").loseContext(),this.gl=null},e}(r.default);i.default=b,_.pluginTarget.mixin(b)},{"../../const":46,"../../textures/BaseTexture":112,"../../utils":124,"../SystemRenderer":76,"./TextureGarbageCollector":82,"./TextureManager":83,"./WebGLState":85,"./managers/FilterManager":90,"./managers/MaskManager":91,"./managers/StencilManager":92,"./utils/ObjectRenderer":94,"./utils/RenderTarget":96,"./utils/mapWebGLDrawModesToPixi":99,"./utils/validateContext":100,"pixi-gl-core":12}],85:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=t("./utils/mapWebGLBlendModesToPixi"),s=(r=n)&&r.__esModule?r:{default:r};var a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.activeState=new Uint8Array(16),this.defaultState=new Uint8Array(16),this.defaultState[0]=1,this.stackIndex=0,this.stack=[],this.gl=e,this.maxAttribs=e.getParameter(e.MAX_VERTEX_ATTRIBS),this.attribState={tempAttribState:new Array(this.maxAttribs),attribState:new Array(this.maxAttribs)},this.blendModes=(0,s.default)(e),this.nativeVaoExtension=e.getExtension("OES_vertex_array_object")||e.getExtension("MOZ_OES_vertex_array_object")||e.getExtension("WEBKIT_OES_vertex_array_object")}return t.prototype.push=function(){var t=this.stack[this.stackIndex];t||(t=this.stack[this.stackIndex]=new Uint8Array(16)),++this.stackIndex;for(var e=0;e<this.activeState.length;e++)t[e]=this.activeState[e]},t.prototype.pop=function(){var t=this.stack[--this.stackIndex];this.setState(t)},t.prototype.setState=function(t){this.setBlend(t[0]),this.setDepthTest(t[1]),this.setFrontFace(t[2]),this.setCullFace(t[3]),this.setBlendMode(t[4])},t.prototype.setBlend=function(t){t=t?1:0,this.activeState[0]!==t&&(this.activeState[0]=t,this.gl[t?"enable":"disable"](this.gl.BLEND))},t.prototype.setBlendMode=function(t){if(t!==this.activeState[4]){this.activeState[4]=t;var e=this.blendModes[t];2===e.length?this.gl.blendFunc(e[0],e[1]):this.gl.blendFuncSeparate(e[0],e[1],e[2],e[3])}},t.prototype.setDepthTest=function(t){t=t?1:0,this.activeState[1]!==t&&(this.activeState[1]=t,this.gl[t?"enable":"disable"](this.gl.DEPTH_TEST))},t.prototype.setCullFace=function(t){t=t?1:0,this.activeState[3]!==t&&(this.activeState[3]=t,this.gl[t?"enable":"disable"](this.gl.CULL_FACE))},t.prototype.setFrontFace=function(t){t=t?1:0,this.activeState[2]!==t&&(this.activeState[2]=t,this.gl.frontFace(this.gl[t?"CW":"CCW"]))},t.prototype.resetAttributes=function(){for(var t=0;t<this.attribState.tempAttribState.length;t++)this.attribState.tempAttribState[t]=0;for(var e=0;e<this.attribState.attribState.length;e++)this.attribState.attribState[e]=0;for(var i=1;i<this.maxAttribs;i++)this.gl.disableVertexAttribArray(i)},t.prototype.resetToDefault=function(){this.nativeVaoExtension&&this.nativeVaoExtension.bindVertexArrayOES(null),this.resetAttributes();for(var t=0;t<this.activeState.length;++t)this.activeState[t]=32;this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL,!1),this.setState(this.defaultState)},t}();i.default=a},{"./utils/mapWebGLBlendModesToPixi":98}],86:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=l(t("./extractUniformsFromSrc")),s=t("../../../utils"),a=t("../../../const"),o=l(t("../../../settings"));function l(t){return t&&t.__esModule?t:{default:t}}var h={},u=function(){function t(e,i,r){for(var l in function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.vertexSrc=e||t.defaultVertexSrc,this.fragmentSrc=i||t.defaultFragmentSrc,this._blendMode=a.BLEND_MODES.NORMAL,this.uniformData=r||(0,n.default)(this.vertexSrc,this.fragmentSrc,"projectionMatrix|uSampler"),this.uniforms={},this.uniformData)this.uniforms[l]=this.uniformData[l].value;this.glShaders={},h[this.vertexSrc+this.fragmentSrc]||(h[this.vertexSrc+this.fragmentSrc]=(0,s.uid)()),this.glShaderKey=h[this.vertexSrc+this.fragmentSrc],this.padding=4,this.resolution=o.default.RESOLUTION,this.enabled=!0,this.autoFit=!0}return t.prototype.apply=function(t,e,i,r,n){t.applyFilter(this,e,i,r)},r(t,[{key:"blendMode",get:function(){return this._blendMode},set:function(t){this._blendMode=t}}],[{key:"defaultVertexSrc",get:function(){return["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","uniform mat3 projectionMatrix;","uniform mat3 filterMatrix;","varying vec2 vTextureCoord;","varying vec2 vFilterCoord;","void main(void){"," gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);"," vFilterCoord = ( filterMatrix * vec3( aTextureCoord, 1.0) ).xy;"," vTextureCoord = aTextureCoord ;","}"].join("\n")}},{key:"defaultFragmentSrc",get:function(){return["varying vec2 vTextureCoord;","varying vec2 vFilterCoord;","uniform sampler2D uSampler;","uniform sampler2D filterSampler;","void main(void){"," vec4 masky = texture2D(filterSampler, vFilterCoord);"," vec4 sample = texture2D(uSampler, vTextureCoord);"," vec4 color;"," if(mod(vFilterCoord.x, 1.0) > 0.5)"," {"," color = vec4(1.0, 0.0, 0.0, 1.0);"," }"," else"," {"," color = vec4(0.0, 1.0, 0.0, 1.0);"," }"," gl_FragColor = mix(sample, masky, 0.5);"," gl_FragColor *= sample.a;","}"].join("\n")}}]),t}();i.default=u},{"../../../const":46,"../../../settings":101,"../../../utils":124,"./extractUniformsFromSrc":87}],87:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t,e,i){var r=a(t),n=a(e);return Object.assign(r,n)};var r,n=t("pixi-gl-core");var s=((r=n)&&r.__esModule?r:{default:r}).default.shader.defaultValue;function a(t){for(var e=new RegExp("^(projectionMatrix|uSampler|filterArea|filterClamp)$"),i={},r=void 0,n=t.replace(/\s+/g," ").split(/\s*;\s*/),a=0;a<n.length;a++){var o=n[a].trim();if(o.indexOf("uniform")>-1){var l=o.split(" "),h=l[1],u=l[2],c=1;u.indexOf("[")>-1&&(u=(r=u.split(/\[|]/))[0],c*=Number(r[1])),u.match(e)||(i[u]={value:s(h,c),name:u,type:h})}}return i}},{"pixi-gl-core":12}],88:[function(t,e,i){"use strict";i.__esModule=!0,i.calculateScreenSpaceMatrix=function(t,e,i){var r=t.identity();return r.translate(e.x/i.width,e.y/i.height),r.scale(i.width,i.height),r},i.calculateNormalizedScreenSpaceMatrix=function(t,e,i){var r=t.identity();r.translate(e.x/i.width,e.y/i.height);var n=i.width/e.width,s=i.height/e.height;return r.scale(n,s),r},i.calculateSpriteMatrix=function(t,e,i,n){var s=n.worldTransform.copy(r.Matrix.TEMP_MATRIX),a=n._texture.baseTexture,o=t.identity(),l=i.height/i.width;o.translate(e.x/i.width,e.y/i.height),o.scale(1,l);var h=i.width/a.width,u=i.height/a.height;return s.tx/=a.width*h,s.ty/=a.width*h,s.invert(),o.prepend(s),o.scale(1,1/l),o.scale(h,u),o.translate(n.anchor.x,n.anchor.y),o};var r=t("../../../math")},{"../../../math":70}],89:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=t("../Filter"),s=(r=n)&&r.__esModule?r:{default:r},a=t("../../../../math");t("path");var o=function(t){function e(i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=new a.Matrix,n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 otherMatrix;\n\nvarying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;\n}\n","varying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float alpha;\nuniform sampler2D mask;\n\nvoid main(void)\n{\n // check clip! this will stop the mask bleeding out from the edges\n vec2 text = abs( vMaskCoord - 0.5 );\n text = step(0.5, text);\n\n float clip = 1.0 - max(text.y, text.x);\n vec4 original = texture2D(uSampler, vTextureCoord);\n vec4 masky = texture2D(mask, vMaskCoord);\n\n original *= (masky.r * masky.a * alpha * clip);\n\n gl_FragColor = original;\n}\n"));return i.renderable=!1,n.maskSprite=i,n.maskMatrix=r,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.apply=function(t,e,i){var r=this.maskSprite;this.uniforms.mask=r._texture,this.uniforms.otherMatrix=t.calculateSpriteMatrix(this.maskMatrix,r),this.uniforms.alpha=r.worldAlpha,t.applyFilter(this,e,i)},e}(s.default);i.default=o},{"../../../../math":70,"../Filter":86,path:23}],90:[function(t,e,i){"use strict";i.__esModule=!0;var r=u(t("./WebGLManager")),n=u(t("../utils/RenderTarget")),s=u(t("../utils/Quad")),a=t("../../../math"),o=u(t("../../../Shader")),l=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../filters/filterTransforms")),h=u(t("bit-twiddle"));function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var d=function t(){c(this,t),this.renderTarget=null,this.sourceFrame=new a.Rectangle,this.destinationFrame=new a.Rectangle,this.filters=[],this.target=null,this.resolution=1},p=function(t){function e(i){c(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return r.gl=r.renderer.gl,r.quad=new s.default(r.gl,i.state.attribState),r.shaderCache={},r.pool={},r.filterData=null,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.pushFilter=function(t,e){var i=this.renderer,r=this.filterData;if(!r){r=this.renderer._activeRenderTarget.filterStack;var n=new d;n.sourceFrame=n.destinationFrame=this.renderer._activeRenderTarget.size,n.renderTarget=i._activeRenderTarget,this.renderer._activeRenderTarget.filterData=r={index:0,stack:[n]},this.filterData=r}var s=r.stack[++r.index];s||(s=r.stack[r.index]=new d);var a=e[0].resolution,o=0|e[0].padding,l=t.filterArea||t.getBounds(!0),h=s.sourceFrame,u=s.destinationFrame;h.x=(l.x*a|0)/a,h.y=(l.y*a|0)/a,h.width=(l.width*a|0)/a,h.height=(l.height*a|0)/a,r.stack[0].renderTarget.transform||e[0].autoFit&&h.fit(r.stack[0].destinationFrame),h.pad(o),u.width=h.width,u.height=h.height;var c=this.getPotRenderTarget(i.gl,h.width,h.height,a);s.target=t,s.filters=e,s.resolution=a,s.renderTarget=c,c.setFrame(u,h),i.bindRenderTarget(c),c.clear()},e.prototype.popFilter=function(){var t=this.filterData,e=t.stack[t.index-1],i=t.stack[t.index];this.quad.map(i.renderTarget.size,i.sourceFrame).upload();var r=i.filters;if(1===r.length)r[0].apply(this,i.renderTarget,e.renderTarget,!1,i),this.freePotRenderTarget(i.renderTarget);else{var n=i.renderTarget,s=this.getPotRenderTarget(this.renderer.gl,i.sourceFrame.width,i.sourceFrame.height,i.resolution);s.setFrame(i.destinationFrame,i.sourceFrame),s.clear();var a=0;for(a=0;a<r.length-1;++a){r[a].apply(this,n,s,!0,i);var o=n;n=s,s=o}r[a].apply(this,n,e.renderTarget,!1,i),this.freePotRenderTarget(n),this.freePotRenderTarget(s)}t.index--,0===t.index&&(this.filterData=null)},e.prototype.applyFilter=function(t,e,i,r){var n=this.renderer,s=n.gl,a=t.glShaders[n.CONTEXT_UID];a||(t.glShaderKey?(a=this.shaderCache[t.glShaderKey])||(a=new o.default(this.gl,t.vertexSrc,t.fragmentSrc),t.glShaders[n.CONTEXT_UID]=this.shaderCache[t.glShaderKey]=a):a=t.glShaders[n.CONTEXT_UID]=new o.default(this.gl,t.vertexSrc,t.fragmentSrc),n.bindVao(null),this.quad.initVao(a)),n.bindVao(this.quad.vao),n.bindRenderTarget(i),r&&(s.disable(s.SCISSOR_TEST),n.clear(),s.enable(s.SCISSOR_TEST)),i===n.maskManager.scissorRenderTarget&&n.maskManager.pushScissorMask(null,n.maskManager.scissorData),n.bindShader(a);var l=this.renderer.emptyTextures[0];this.renderer.boundTextures[0]=l,this.syncUniforms(a,t),n.state.setBlendMode(t.blendMode),s.activeTexture(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,e.texture.texture),this.quad.vao.draw(this.renderer.gl.TRIANGLES,6,0),s.bindTexture(s.TEXTURE_2D,l._glTextures[this.renderer.CONTEXT_UID].texture)},e.prototype.syncUniforms=function(t,e){var i=e.uniformData,r=e.uniforms,n=1,s=void 0;if(t.uniforms.filterArea){s=this.filterData.stack[this.filterData.index];var a=t.uniforms.filterArea;a[0]=s.renderTarget.size.width,a[1]=s.renderTarget.size.height,a[2]=s.sourceFrame.x,a[3]=s.sourceFrame.y,t.uniforms.filterArea=a}if(t.uniforms.filterClamp){s=s||this.filterData.stack[this.filterData.index];var o=t.uniforms.filterClamp;o[0]=0,o[1]=0,o[2]=(s.sourceFrame.width-1)/s.renderTarget.size.width,o[3]=(s.sourceFrame.height-1)/s.renderTarget.size.height,t.uniforms.filterClamp=o}for(var l in i)if("sampler2D"===i[l].type&&0!==r[l]){if(r[l].baseTexture)t.uniforms[l]=this.renderer.bindTexture(r[l].baseTexture,n);else{t.uniforms[l]=n;var h=this.renderer.gl;this.renderer.boundTextures[n]=this.renderer.emptyTextures[n],h.activeTexture(h.TEXTURE0+n),r[l].texture.bind()}n++}else if("mat3"===i[l].type)void 0!==r[l].a?t.uniforms[l]=r[l].toArray(!0):t.uniforms[l]=r[l];else if("vec2"===i[l].type)if(void 0!==r[l].x){var u=t.uniforms[l]||new Float32Array(2);u[0]=r[l].x,u[1]=r[l].y,t.uniforms[l]=u}else t.uniforms[l]=r[l];else"float"===i[l].type?t.uniforms.data[l].value!==i[l]&&(t.uniforms[l]=r[l]):t.uniforms[l]=r[l]},e.prototype.getRenderTarget=function(t,e){var i=this.filterData.stack[this.filterData.index],r=this.getPotRenderTarget(this.renderer.gl,i.sourceFrame.width,i.sourceFrame.height,e||i.resolution);return r.setFrame(i.destinationFrame,i.sourceFrame),r},e.prototype.returnRenderTarget=function(t){this.freePotRenderTarget(t)},e.prototype.calculateScreenSpaceMatrix=function(t){var e=this.filterData.stack[this.filterData.index];return l.calculateScreenSpaceMatrix(t,e.sourceFrame,e.renderTarget.size)},e.prototype.calculateNormalizedScreenSpaceMatrix=function(t){var e=this.filterData.stack[this.filterData.index];return l.calculateNormalizedScreenSpaceMatrix(t,e.sourceFrame,e.renderTarget.size,e.destinationFrame)},e.prototype.calculateSpriteMatrix=function(t,e){var i=this.filterData.stack[this.filterData.index];return l.calculateSpriteMatrix(t,i.sourceFrame,i.renderTarget.size,e)},e.prototype.destroy=function(){this.shaderCache={},this.emptyPool()},e.prototype.getPotRenderTarget=function(t,e,i,r){var s=(65535&(e=h.default.nextPow2(e*r)))<<16|65535&(i=h.default.nextPow2(i*r));this.pool[s]||(this.pool[s]=[]);var a=this.pool[s].pop();if(!a){var o=this.renderer.boundTextures[0];t.activeTexture(t.TEXTURE0),a=new n.default(t,e,i,null,1),t.bindTexture(t.TEXTURE_2D,o._glTextures[this.renderer.CONTEXT_UID].texture)}return a.resolution=r,a.defaultFrame.width=a.size.width=e/r,a.defaultFrame.height=a.size.height=i/r,a},e.prototype.emptyPool=function(){for(var t in this.pool){var e=this.pool[t];if(e)for(var i=0;i<e.length;i++)e[i].destroy(!0)}this.pool={}},e.prototype.freePotRenderTarget=function(t){var e=(65535&t.size.width*t.resolution)<<16|65535&t.size.height*t.resolution;this.pool[e].push(t)},e}(r.default);i.default=p},{"../../../Shader":44,"../../../math":70,"../filters/filterTransforms":88,"../utils/Quad":95,"../utils/RenderTarget":96,"./WebGLManager":93,"bit-twiddle":1}],91:[function(t,e,i){"use strict";i.__esModule=!0;var r=s(t("./WebGLManager")),n=s(t("../filters/spriteMask/SpriteMaskFilter"));function s(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return r.scissor=!1,r.scissorData=null,r.scissorRenderTarget=null,r.enableScissor=!0,r.alphaMaskPool=[],r.alphaMaskIndex=0,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.pushMask=function(t,e){if(e.texture)this.pushSpriteMask(t,e);else if(this.enableScissor&&!this.scissor&&this.renderer._activeRenderTarget.root&&!this.renderer.stencilManager.stencilMaskStack.length&&e.isFastRect()){var i=e.worldTransform,r=Math.atan2(i.b,i.a);(r=Math.round(r*(180/Math.PI)))%90?this.pushStencilMask(e):this.pushScissorMask(t,e)}else this.pushStencilMask(e)},e.prototype.popMask=function(t,e){e.texture?this.popSpriteMask(t,e):this.enableScissor&&!this.renderer.stencilManager.stencilMaskStack.length?this.popScissorMask(t,e):this.popStencilMask(t,e)},e.prototype.pushSpriteMask=function(t,e){var i=this.alphaMaskPool[this.alphaMaskIndex];i||(i=this.alphaMaskPool[this.alphaMaskIndex]=[new n.default(e)]),i[0].resolution=this.renderer.resolution,i[0].maskSprite=e,t.filterArea=e.getBounds(!0),this.renderer.filterManager.pushFilter(t,i),this.alphaMaskIndex++},e.prototype.popSpriteMask=function(){this.renderer.filterManager.popFilter(),this.alphaMaskIndex--},e.prototype.pushStencilMask=function(t){this.renderer.currentRenderer.stop(),this.renderer.stencilManager.pushStencil(t)},e.prototype.popStencilMask=function(){this.renderer.currentRenderer.stop(),this.renderer.stencilManager.popStencil()},e.prototype.pushScissorMask=function(t,e){e.renderable=!0;var i=this.renderer._activeRenderTarget,r=e.getBounds();r.fit(i.size),e.renderable=!1,this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST);var n=this.renderer.resolution;this.renderer.gl.scissor(r.x*n,(i.root?i.size.height-r.y-r.height:r.y)*n,r.width*n,r.height*n),this.scissorRenderTarget=i,this.scissorData=e,this.scissor=!0},e.prototype.popScissorMask=function(){this.scissorRenderTarget=null,this.scissorData=null,this.scissor=!1;var t=this.renderer.gl;t.disable(t.SCISSOR_TEST)},e}(r.default);i.default=a},{"../filters/spriteMask/SpriteMaskFilter":89,"./WebGLManager":93}],92:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=t("./WebGLManager"),s=(r=n)&&r.__esModule?r:{default:r};var a=function(t){function e(i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return r.stencilMaskStack=null,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.setMaskStack=function(t){this.stencilMaskStack=t;var e=this.renderer.gl;0===t.length?e.disable(e.STENCIL_TEST):e.enable(e.STENCIL_TEST)},e.prototype.pushStencil=function(t){this.renderer.setObjectRenderer(this.renderer.plugins.graphics),this.renderer._activeRenderTarget.attachStencilBuffer();var e=this.renderer.gl,i=this.stencilMaskStack;0===i.length&&(e.enable(e.STENCIL_TEST),e.clear(e.STENCIL_BUFFER_BIT),e.stencilFunc(e.ALWAYS,1,1)),i.push(t),e.colorMask(!1,!1,!1,!1),e.stencilFunc(e.EQUAL,0,i.length),e.stencilOp(e.KEEP,e.KEEP,e.INCR),this.renderer.plugins.graphics.render(t),e.colorMask(!0,!0,!0,!0),e.stencilFunc(e.NOTEQUAL,0,i.length),e.stencilOp(e.KEEP,e.KEEP,e.KEEP)},e.prototype.popStencil=function(){this.renderer.setObjectRenderer(this.renderer.plugins.graphics);var t=this.renderer.gl,e=this.stencilMaskStack,i=e.pop();0===e.length?t.disable(t.STENCIL_TEST):(t.colorMask(!1,!1,!1,!1),t.stencilFunc(t.EQUAL,0,e.length),t.stencilOp(t.KEEP,t.KEEP,t.DECR),this.renderer.plugins.graphics.render(i),t.colorMask(!0,!0,!0,!0),t.stencilFunc(t.NOTEQUAL,0,e.length),t.stencilOp(t.KEEP,t.KEEP,t.KEEP))},e.prototype.destroy=function(){s.default.prototype.destroy.call(this),this.stencilMaskStack.stencilStack=null},e}(s.default);i.default=a},{"./WebGLManager":93}],93:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.renderer=e,this.renderer.on("context",this.onContextChange,this)}return t.prototype.onContextChange=function(){},t.prototype.destroy=function(){this.renderer.off("context",this.onContextChange,this),this.renderer=null},t}();i.default=r},{}],94:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=t("../managers/WebGLManager");var s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.start=function(){},e.prototype.stop=function(){this.flush()},e.prototype.flush=function(){},e.prototype.render=function(t){},e}(((r=n)&&r.__esModule?r:{default:r}).default);i.default=s},{"../managers/WebGLManager":93}],95:[function(t,e,i){"use strict";i.__esModule=!0;var r=s(t("pixi-gl-core")),n=s(t("../../../utils/createIndicesForQuads"));function s(t){return t&&t.__esModule?t:{default:t}}var a=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.gl=e,this.vertices=new Float32Array([-1,-1,1,-1,1,1,-1,1]),this.uvs=new Float32Array([0,0,1,0,1,1,0,1]),this.interleaved=new Float32Array(16);for(var s=0;s<4;s++)this.interleaved[4*s]=this.vertices[2*s],this.interleaved[4*s+1]=this.vertices[2*s+1],this.interleaved[4*s+2]=this.uvs[2*s],this.interleaved[4*s+3]=this.uvs[2*s+1];this.indices=(0,n.default)(1),this.vertexBuffer=r.default.GLBuffer.createVertexBuffer(e,this.interleaved,e.STATIC_DRAW),this.indexBuffer=r.default.GLBuffer.createIndexBuffer(e,this.indices,e.STATIC_DRAW),this.vao=new r.default.VertexArrayObject(e,i)}return t.prototype.initVao=function(t){this.vao.clear().addIndex(this.indexBuffer).addAttribute(this.vertexBuffer,t.attributes.aVertexPosition,this.gl.FLOAT,!1,16,0).addAttribute(this.vertexBuffer,t.attributes.aTextureCoord,this.gl.FLOAT,!1,16,8)},t.prototype.map=function(t,e){var i=0,r=0;return this.uvs[0]=i,this.uvs[1]=r,this.uvs[2]=i+e.width/t.width,this.uvs[3]=r,this.uvs[4]=i+e.width/t.width,this.uvs[5]=r+e.height/t.height,this.uvs[6]=i,this.uvs[7]=r+e.height/t.height,i=e.x,r=e.y,this.vertices[0]=i,this.vertices[1]=r,this.vertices[2]=i+e.width,this.vertices[3]=r,this.vertices[4]=i+e.width,this.vertices[5]=r+e.height,this.vertices[6]=i,this.vertices[7]=r+e.height,this},t.prototype.upload=function(){for(var t=0;t<4;t++)this.interleaved[4*t]=this.vertices[2*t],this.interleaved[4*t+1]=this.vertices[2*t+1],this.interleaved[4*t+2]=this.uvs[2*t],this.interleaved[4*t+3]=this.uvs[2*t+1];return this.vertexBuffer.upload(this.interleaved),this},t.prototype.destroy=function(){var t=this.gl;t.deleteBuffer(this.vertexBuffer),t.deleteBuffer(this.indexBuffer)},t}();i.default=a},{"../../../utils/createIndicesForQuads":122,"pixi-gl-core":12}],96:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=t("../../../math"),s=t("../../../const"),a=t("../../../settings"),o=(r=a)&&r.__esModule?r:{default:r},l=t("pixi-gl-core");var h=function(){function t(e,i,r,a,h,u){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.gl=e,this.frameBuffer=null,this.texture=null,this.clearColor=[0,0,0,0],this.size=new n.Rectangle(0,0,1,1),this.resolution=h||o.default.RESOLUTION,this.projectionMatrix=new n.Matrix,this.transform=null,this.frame=null,this.defaultFrame=new n.Rectangle,this.destinationFrame=null,this.sourceFrame=null,this.stencilBuffer=null,this.stencilMaskStack=[],this.filterData=null,this.scaleMode=void 0!==a?a:o.default.SCALE_MODE,this.root=u,this.root?(this.frameBuffer=new l.GLFramebuffer(e,100,100),this.frameBuffer.framebuffer=null):(this.frameBuffer=l.GLFramebuffer.createRGBA(e,100,100),this.scaleMode===s.SCALE_MODES.NEAREST?this.frameBuffer.texture.enableNearestScaling():this.frameBuffer.texture.enableLinearScaling(),this.texture=this.frameBuffer.texture),this.setFrame(),this.resize(i,r)}return t.prototype.clear=function(t){var e=t||this.clearColor;this.frameBuffer.clear(e[0],e[1],e[2],e[3])},t.prototype.attachStencilBuffer=function(){this.root||this.frameBuffer.enableStencil()},t.prototype.setFrame=function(t,e){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=e||this.sourceFrame||this.destinationFrame},t.prototype.activate=function(){var t=this.gl;this.frameBuffer.bind(),this.calculateProjection(this.destinationFrame,this.sourceFrame),this.transform&&this.projectionMatrix.append(this.transform),this.destinationFrame!==this.sourceFrame?(t.enable(t.SCISSOR_TEST),t.scissor(0|this.destinationFrame.x,0|this.destinationFrame.y,this.destinationFrame.width*this.resolution|0,this.destinationFrame.height*this.resolution|0)):t.disable(t.SCISSOR_TEST),t.viewport(0|this.destinationFrame.x,0|this.destinationFrame.y,this.destinationFrame.width*this.resolution|0,this.destinationFrame.height*this.resolution|0)},t.prototype.calculateProjection=function(t,e){var i=this.projectionMatrix;e=e||t,i.identity(),this.root?(i.a=1/t.width*2,i.d=-1/t.height*2,i.tx=-1-e.x*i.a,i.ty=1-e.y*i.d):(i.a=1/t.width*2,i.d=1/t.height*2,i.tx=-1-e.x*i.a,i.ty=-1-e.y*i.d)},t.prototype.resize=function(t,e){if(t|=0,e|=0,this.size.width!==t||this.size.height!==e){this.size.width=t,this.size.height=e,this.defaultFrame.width=t,this.defaultFrame.height=e,this.frameBuffer.resize(t*this.resolution,e*this.resolution);var i=this.frame||this.size;this.calculateProjection(i)}},t.prototype.destroy=function(){this.frameBuffer.destroy(),this.frameBuffer=null,this.texture=null},t}();i.default=h},{"../../../const":46,"../../../math":70,"../../../settings":101,"pixi-gl-core":12}],97:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t,e){var i=!e;if(0===t)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");if(i){var r=document.createElement("canvas");r.width=1,r.height=1,e=s.default.createContext(r)}var n=e.createShader(e.FRAGMENT_SHADER);for(;;){var l=a.replace(/%forloop%/gi,o(t));if(e.shaderSource(n,l),e.compileShader(n),e.getShaderParameter(n,e.COMPILE_STATUS))break;t=t/2|0}i&&e.getExtension("WEBGL_lose_context")&&e.getExtension("WEBGL_lose_context").loseContext();return t};var r,n=t("pixi-gl-core"),s=(r=n)&&r.__esModule?r:{default:r};var a=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join("\n");function o(t){for(var e="",i=0;i<t;++i)i>0&&(e+="\nelse "),i<t-1&&(e+="if(test == "+i+".0){}");return e}},{"pixi-gl-core":12}],98:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e[r.BLEND_MODES.NORMAL]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[r.BLEND_MODES.ADD]=[t.ONE,t.DST_ALPHA],e[r.BLEND_MODES.MULTIPLY]=[t.DST_COLOR,t.ONE_MINUS_SRC_ALPHA],e[r.BLEND_MODES.SCREEN]=[t.ONE,t.ONE_MINUS_SRC_COLOR],e[r.BLEND_MODES.OVERLAY]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[r.BLEND_MODES.DARKEN]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[r.BLEND_MODES.LIGHTEN]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[r.BLEND_MODES.COLOR_DODGE]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[r.BLEND_MODES.COLOR_BURN]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[r.BLEND_MODES.HARD_LIGHT]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[r.BLEND_MODES.SOFT_LIGHT]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[r.BLEND_MODES.DIFFERENCE]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[r.BLEND_MODES.EXCLUSION]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[r.BLEND_MODES.HUE]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[r.BLEND_MODES.SATURATION]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[r.BLEND_MODES.COLOR]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[r.BLEND_MODES.LUMINOSITY]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[r.BLEND_MODES.NORMAL_NPM]=[t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA],e[r.BLEND_MODES.ADD_NPM]=[t.SRC_ALPHA,t.DST_ALPHA,t.ONE,t.DST_ALPHA],e[r.BLEND_MODES.SCREEN_NPM]=[t.SRC_ALPHA,t.ONE_MINUS_SRC_COLOR,t.ONE,t.ONE_MINUS_SRC_COLOR],e};var r=t("../../../const")},{"../../../const":46}],99:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e[r.DRAW_MODES.POINTS]=t.POINTS,e[r.DRAW_MODES.LINES]=t.LINES,e[r.DRAW_MODES.LINE_LOOP]=t.LINE_LOOP,e[r.DRAW_MODES.LINE_STRIP]=t.LINE_STRIP,e[r.DRAW_MODES.TRIANGLES]=t.TRIANGLES,e[r.DRAW_MODES.TRIANGLE_STRIP]=t.TRIANGLE_STRIP,e[r.DRAW_MODES.TRIANGLE_FAN]=t.TRIANGLE_FAN,e};var r=t("../../../const")},{"../../../const":46}],100:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t){t.getContextAttributes().stencil||console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly")}},{}],101:[function(t,e,i){"use strict";i.__esModule=!0;var r=s(t("./utils/maxRecommendedTextures")),n=s(t("./utils/canUploadSameBuffer"));function s(t){return t&&t.__esModule?t:{default:t}}i.default={TARGET_FPMS:.06,MIPMAP_TEXTURES:!0,RESOLUTION:1,FILTER_RESOLUTION:1,SPRITE_MAX_TEXTURES:(0,r.default)(32),SPRITE_BATCH_SIZE:4096,RETINA_PREFIX:/@([0-9\.]+)x/,RENDER_OPTIONS:{view:null,antialias:!1,forceFXAA:!1,autoResize:!1,transparent:!1,backgroundColor:0,clearBeforeRender:!0,preserveDrawingBuffer:!1,roundPixels:!1,width:800,height:600,legacy:!1},TRANSFORM_MODE:0,GC_MODE:0,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:0,SCALE_MODE:0,PRECISION_VERTEX:"highp",PRECISION_FRAGMENT:"mediump",CAN_UPLOAD_SAME_BUFFER:(0,n.default)()}},{"./utils/canUploadSameBuffer":121,"./utils/maxRecommendedTextures":126}],102:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=t("../math"),s=t("../utils"),a=t("../const"),o=h(t("../textures/Texture")),l=h(t("../display/Container"));function h(t){return t&&t.__esModule?t:{default:t}}var u=new n.Point,c=function(t){function e(i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return r._anchor=new n.ObservablePoint(r._onAnchorUpdate,r),r._texture=null,r._width=0,r._height=0,r._tint=null,r._tintRGB=null,r.tint=16777215,r.blendMode=a.BLEND_MODES.NORMAL,r.shader=null,r.cachedTint=16777215,r.texture=i||o.default.EMPTY,r.vertexData=new Float32Array(8),r.vertexTrimmedData=null,r._transformID=-1,r._textureID=-1,r._transformTrimmedID=-1,r._textureTrimmedID=-1,r.pluginName="sprite",r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this._width&&(this.scale.x=(0,s.sign)(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=(0,s.sign)(this.scale.y)*this._height/this._texture.orig.height)},e.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},e.prototype.calculateVertices=function(){if(this._transformID!==this.transform._worldID||this._textureID!==this._texture._updateID){this._transformID=this.transform._worldID,this._textureID=this._texture._updateID;var t=this._texture,e=this.transform.worldTransform,i=e.a,r=e.b,n=e.c,s=e.d,a=e.tx,o=e.ty,l=this.vertexData,h=t.trim,u=t.orig,c=this._anchor,d=0,p=0,f=0,_=0;h?(d=(p=h.x-c._x*u.width)+h.width,f=(_=h.y-c._y*u.height)+h.height):(d=(p=-c._x*u.width)+u.width,f=(_=-c._y*u.height)+u.height),l[0]=i*p+n*_+a,l[1]=s*_+r*p+o,l[2]=i*d+n*_+a,l[3]=s*_+r*d+o,l[4]=i*d+n*f+a,l[5]=s*f+r*d+o,l[6]=i*p+n*f+a,l[7]=s*f+r*p+o}},e.prototype.calculateTrimmedVertices=function(){if(this.vertexTrimmedData){if(this._transformTrimmedID===this.transform._worldID&&this._textureTrimmedID===this._texture._updateID)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=this.transform._worldID,this._textureTrimmedID=this._texture._updateID;var t=this._texture,e=this.vertexTrimmedData,i=t.orig,r=this._anchor,n=this.transform.worldTransform,s=n.a,a=n.b,o=n.c,l=n.d,h=n.tx,u=n.ty,c=-r._x*i.width,d=c+i.width,p=-r._y*i.height,f=p+i.height;e[0]=s*c+o*p+h,e[1]=l*p+a*c+u,e[2]=s*d+o*p+h,e[3]=l*p+a*d+u,e[4]=s*d+o*f+h,e[5]=l*f+a*d+u,e[6]=s*c+o*f+h,e[7]=l*f+a*c+u},e.prototype._renderWebGL=function(t){this.calculateVertices(),t.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this)},e.prototype._renderCanvas=function(t){t.plugins[this.pluginName].render(this)},e.prototype._calculateBounds=function(){var t=this._texture.trim,e=this._texture.orig;!t||t.width===e.width&&t.height===e.height?(this.calculateVertices(),this._bounds.addQuad(this.vertexData)):(this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData))},e.prototype.getLocalBounds=function(e){return 0===this.children.length?(this._bounds.minX=this._texture.orig.width*-this._anchor._x,this._bounds.minY=this._texture.orig.height*-this._anchor._y,this._bounds.maxX=this._texture.orig.width*(1-this._anchor._x),this._bounds.maxY=this._texture.orig.height*(1-this._anchor._x),e||(this._localBoundsRect||(this._localBoundsRect=new n.Rectangle),e=this._localBoundsRect),this._bounds.getRectangle(e)):t.prototype.getLocalBounds.call(this,e)},e.prototype.containsPoint=function(t){this.worldTransform.applyInverse(t,u);var e=this._texture.orig.width,i=this._texture.orig.height,r=-e*this.anchor.x,n=0;return u.x>=r&&u.x<r+e&&(n=-i*this.anchor.y,u.y>=n&&u.y<n+i)},e.prototype.destroy=function(e){if(t.prototype.destroy.call(this,e),this._anchor=null,"boolean"==typeof e?e:e&&e.texture){var i="boolean"==typeof e?e:e&&e.baseTexture;this._texture.destroy(!!i)}this._texture=null,this.shader=null},e.from=function(t){return new e(o.default.from(t))},e.fromFrame=function(t){var i=s.TextureCache[t];if(!i)throw new Error('The frameId "'+t+'" does not exist in the texture cache');return new e(i)},e.fromImage=function(t,i,r){return new e(o.default.fromImage(t,i,r))},r(e,[{key:"width",get:function(){return Math.abs(this.scale.x)*this._texture.orig.width},set:function(t){var e=(0,s.sign)(this.scale.x)||1;this.scale.x=e*t/this._texture.orig.width,this._width=t}},{key:"height",get:function(){return Math.abs(this.scale.y)*this._texture.orig.height},set:function(t){var e=(0,s.sign)(this.scale.y)||1;this.scale.y=e*t/this._texture.orig.height,this._height=t}},{key:"anchor",get:function(){return this._anchor},set:function(t){this._anchor.copy(t)}},{key:"tint",get:function(){return this._tint},set:function(t){this._tint=t,this._tintRGB=(t>>16)+(65280&t)+((255&t)<<16)}},{key:"texture",get:function(){return this._texture},set:function(t){this._texture!==t&&(this._texture=t,this.cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,t&&(t.baseTexture.hasLoaded?this._onTextureUpdate():t.once("update",this._onTextureUpdate,this)))}}]),e}(l.default);i.default=c},{"../const":46,"../display/Container":48,"../math":70,"../textures/Texture":115,"../utils":124}],103:[function(t,e,i){"use strict";i.__esModule=!0;var r=o(t("../../renderers/canvas/CanvasRenderer")),n=t("../../const"),s=t("../../math"),a=o(t("./CanvasTinter"));function o(t){return t&&t.__esModule?t:{default:t}}var l=new s.Matrix,h=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.renderer=e}return t.prototype.render=function(t){var e=t._texture,i=this.renderer,r=e._frame.width,o=e._frame.height,h=t.transform.worldTransform,u=0,c=0;if(!(e.orig.width<=0||e.orig.height<=0)&&e.baseTexture.source&&(i.setBlendMode(t.blendMode),e.valid)){i.context.globalAlpha=t.worldAlpha;var d=e.baseTexture.scaleMode===n.SCALE_MODES.LINEAR;i.smoothProperty&&i.context[i.smoothProperty]!==d&&(i.context[i.smoothProperty]=d),e.trim?(u=e.trim.width/2+e.trim.x-t.anchor.x*e.orig.width,c=e.trim.height/2+e.trim.y-t.anchor.y*e.orig.height):(u=(.5-t.anchor.x)*e.orig.width,c=(.5-t.anchor.y)*e.orig.height),e.rotate&&(h.copy(l),h=l,s.GroupD8.matrixAppendRotationInv(h,e.rotate,u,c),u=0,c=0),u-=r/2,c-=o/2,i.roundPixels?(i.context.setTransform(h.a,h.b,h.c,h.d,h.tx*i.resolution|0,h.ty*i.resolution|0),u|=0,c|=0):i.context.setTransform(h.a,h.b,h.c,h.d,h.tx*i.resolution,h.ty*i.resolution);var p=e.baseTexture.resolution;16777215!==t.tint?(t.cachedTint===t.tint&&t.tintedTexture.tintId===t._texture._updateID||(t.cachedTint=t.tint,t.tintedTexture=a.default.getTintedTexture(t,t.tint)),i.context.drawImage(t.tintedTexture,0,0,r*p,o*p,u*i.resolution,c*i.resolution,r*i.resolution,o*i.resolution)):i.context.drawImage(e.baseTexture.source,e._frame.x*p,e._frame.y*p,r*p,o*p,u*i.resolution,c*i.resolution,r*i.resolution,o*i.resolution)}},t.prototype.destroy=function(){this.renderer=null},t}();i.default=h,r.default.registerPlugin("sprite",h)},{"../../const":46,"../../math":70,"../../renderers/canvas/CanvasRenderer":77,"./CanvasTinter":104}],104:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=t("../../utils"),s=t("../../renderers/canvas/utils/canUseNewCanvasBlendModes");var a={getTintedTexture:function(t,e){var i=t._texture,r="#"+("00000"+(0|(e=a.roundColor(e))).toString(16)).substr(-6);i.tintCache=i.tintCache||{};var n=i.tintCache[r],s=void 0;if(n){if(n.tintId===i._updateID)return i.tintCache[r];s=i.tintCache[r]}else s=a.canvas||document.createElement("canvas");if(a.tintMethod(i,e,s),s.tintId=i._updateID,a.convertTintToImage){var o=new Image;o.src=s.toDataURL(),i.tintCache[r]=o}else i.tintCache[r]=s,a.canvas=null;return s},tintWithMultiply:function(t,e,i){var r=i.getContext("2d"),n=t._frame.clone(),s=t.baseTexture.resolution;n.x*=s,n.y*=s,n.width*=s,n.height*=s,i.width=Math.ceil(n.width),i.height=Math.ceil(n.height),r.fillStyle="#"+("00000"+(0|e).toString(16)).substr(-6),r.fillRect(0,0,n.width,n.height),r.globalCompositeOperation="multiply",r.drawImage(t.baseTexture.source,n.x,n.y,n.width,n.height,0,0,n.width,n.height),r.globalCompositeOperation="destination-atop",r.drawImage(t.baseTexture.source,n.x,n.y,n.width,n.height,0,0,n.width,n.height)},tintWithOverlay:function(t,e,i){var r=i.getContext("2d"),n=t._frame.clone(),s=t.baseTexture.resolution;n.x*=s,n.y*=s,n.width*=s,n.height*=s,i.width=Math.ceil(n.width),i.height=Math.ceil(n.height),r.globalCompositeOperation="copy",r.fillStyle="#"+("00000"+(0|e).toString(16)).substr(-6),r.fillRect(0,0,n.width,n.height),r.globalCompositeOperation="destination-atop",r.drawImage(t.baseTexture.source,n.x,n.y,n.width,n.height,0,0,n.width,n.height)},tintWithPerPixel:function(t,e,i){var r=i.getContext("2d"),s=t._frame.clone(),a=t.baseTexture.resolution;s.x*=a,s.y*=a,s.width*=a,s.height*=a,i.width=Math.ceil(s.width),i.height=Math.ceil(s.height),r.globalCompositeOperation="copy",r.drawImage(t.baseTexture.source,s.x,s.y,s.width,s.height,0,0,s.width,s.height);for(var o=(0,n.hex2rgb)(e),l=o[0],h=o[1],u=o[2],c=r.getImageData(0,0,s.width,s.height),d=c.data,p=0;p<d.length;p+=4)d[p+0]*=l,d[p+1]*=h,d[p+2]*=u;r.putImageData(c,0,0)},roundColor:function(t){var e=a.cacheStepsPerColorChannel,i=(0,n.hex2rgb)(t);return i[0]=Math.min(255,i[0]/e*e),i[1]=Math.min(255,i[1]/e*e),i[2]=Math.min(255,i[2]/e*e),(0,n.rgb2hex)(i)},cacheStepsPerColorChannel:8,convertTintToImage:!1,canUseMultiply:(0,((r=s)&&r.__esModule?r:{default:r}).default)(),tintMethod:0};a.tintMethod=a.canUseMultiply?a.tintWithMultiply:a.tintWithPerPixel,i.default=a},{"../../renderers/canvas/utils/canUseNewCanvasBlendModes":80,"../../utils":124}],105:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.vertices=new ArrayBuffer(e),this.float32View=new Float32Array(this.vertices),this.uint32View=new Uint32Array(this.vertices)}return t.prototype.destroy=function(){this.vertices=null,this.positions=null,this.uvs=null,this.colors=null},t}();i.default=r},{}],106:[function(t,e,i){"use strict";i.__esModule=!0;var r=p(t("../../renderers/webgl/utils/ObjectRenderer")),n=p(t("../../renderers/webgl/WebGLRenderer")),s=p(t("../../utils/createIndicesForQuads")),a=p(t("./generateMultiTextureShader")),o=p(t("../../renderers/webgl/utils/checkMaxIfStatmentsInShader")),l=p(t("./BatchBuffer")),h=p(t("../../settings")),u=t("../../utils"),c=p(t("pixi-gl-core")),d=p(t("bit-twiddle"));function p(t){return t&&t.__esModule?t:{default:t}}var f=0,_=0,m=function(t){function e(i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));r.vertSize=5,r.vertByteSize=4*r.vertSize,r.size=h.default.SPRITE_BATCH_SIZE,r.buffers=[];for(var n=1;n<=d.default.nextPow2(r.size);n*=2)r.buffers.push(new l.default(4*n*r.vertByteSize));r.indices=(0,s.default)(r.size),r.shader=null,r.currentIndex=0,r.groups=[];for(var a=0;a<r.size;a++)r.groups[a]={textures:[],textureCount:0,ids:[],size:0,start:0,blend:0};return r.sprites=[],r.vertexBuffers=[],r.vaos=[],r.vaoMax=2,r.vertexCount=0,r.renderer.on("prerender",r.onPrerender,r),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.onContextChange=function(){var t=this.renderer.gl;this.renderer.legacy?this.MAX_TEXTURES=1:(this.MAX_TEXTURES=Math.min(t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),h.default.SPRITE_MAX_TEXTURES),this.MAX_TEXTURES=(0,o.default)(this.MAX_TEXTURES,t)),this.shader=(0,a.default)(t,this.MAX_TEXTURES),this.indexBuffer=c.default.GLBuffer.createIndexBuffer(t,this.indices,t.STATIC_DRAW),this.renderer.bindVao(null);for(var e=this.shader.attributes,i=0;i<this.vaoMax;i++){var r=this.vertexBuffers[i]=c.default.GLBuffer.createVertexBuffer(t,null,t.STREAM_DRAW),n=this.renderer.createVao().addIndex(this.indexBuffer).addAttribute(r,e.aVertexPosition,t.FLOAT,!1,this.vertByteSize,0).addAttribute(r,e.aTextureCoord,t.UNSIGNED_SHORT,!0,this.vertByteSize,8).addAttribute(r,e.aColor,t.UNSIGNED_BYTE,!0,this.vertByteSize,12);e.aTextureId&&n.addAttribute(r,e.aTextureId,t.FLOAT,!1,this.vertByteSize,16),this.vaos[i]=n}this.vao=this.vaos[0],this.currentBlendMode=99999,this.boundTextures=new Array(this.MAX_TEXTURES)},e.prototype.onPrerender=function(){this.vertexCount=0},e.prototype.render=function(t){this.currentIndex>=this.size&&this.flush(),t._texture._uvs&&(this.sprites[this.currentIndex++]=t)},e.prototype.flush=function(){if(0!==this.currentIndex){var t=this.renderer.gl,e=this.MAX_TEXTURES,i=d.default.nextPow2(this.currentIndex),r=d.default.log2(i),n=this.buffers[r],s=this.sprites,a=this.groups,o=n.float32View,l=n.uint32View,p=this.boundTextures,m=this.renderer.boundTextures,g=this.renderer.textureGC.count,v=0,y=void 0,b=void 0,T=1,x=0,E=a[0],w=void 0,S=void 0,D=u.premultiplyBlendMode[s[0]._texture.baseTexture.premultipliedAlpha?1:0][s[0].blendMode];E.textureCount=0,E.start=0,E.blend=D,f++;var I=void 0;for(I=0;I<e;++I)p[I]=m[I],p[I]._virtalBoundId=I;for(I=0;I<this.currentIndex;++I){var P=s[I];y=P._texture.baseTexture;var A=u.premultiplyBlendMode[Number(y.premultipliedAlpha)][P.blendMode];if(D!==A&&(D=A,b=null,x=e,f++),b!==y&&(b=y,y._enabled!==f)){if(x===e&&(f++,E.size=I-E.start,x=0,(E=a[T++]).blend=D,E.textureCount=0,E.start=I),y.touched=g,-1===y._virtalBoundId)for(var C=0;C<e;++C){var M=(C+_)%e,L=p[M];if(L._enabled!==f){_++,L._virtalBoundId=-1,y._virtalBoundId=M,p[M]=y;break}}y._enabled=f,E.textureCount++,E.ids[x]=y._virtalBoundId,E.textures[x++]=y}if(w=P.vertexData,S=P._texture._uvs.uvsUint32,this.renderer.roundPixels){var O=this.renderer.resolution;o[v]=(w[0]*O|0)/O,o[v+1]=(w[1]*O|0)/O,o[v+5]=(w[2]*O|0)/O,o[v+6]=(w[3]*O|0)/O,o[v+10]=(w[4]*O|0)/O,o[v+11]=(w[5]*O|0)/O,o[v+15]=(w[6]*O|0)/O,o[v+16]=(w[7]*O|0)/O}else o[v]=w[0],o[v+1]=w[1],o[v+5]=w[2],o[v+6]=w[3],o[v+10]=w[4],o[v+11]=w[5],o[v+15]=w[6],o[v+16]=w[7];l[v+2]=S[0],l[v+7]=S[1],l[v+12]=S[2],l[v+17]=S[3];var R=Math.min(P.worldAlpha,1),j=R<1&&y.premultipliedAlpha?(0,u.premultiplyTint)(P._tintRGB,R):P._tintRGB+(255*R<<24);l[v+3]=l[v+8]=l[v+13]=l[v+18]=j,o[v+4]=o[v+9]=o[v+14]=o[v+19]=y._virtalBoundId,v+=20}if(E.size=I-E.start,h.default.CAN_UPLOAD_SAME_BUFFER)this.vertexBuffers[this.vertexCount].upload(n.vertices,0,!0);else{if(this.vaoMax<=this.vertexCount){this.vaoMax++;var k=this.shader.attributes,N=this.vertexBuffers[this.vertexCount]=c.default.GLBuffer.createVertexBuffer(t,null,t.STREAM_DRAW),H=this.renderer.createVao().addIndex(this.indexBuffer).addAttribute(N,k.aVertexPosition,t.FLOAT,!1,this.vertByteSize,0).addAttribute(N,k.aTextureCoord,t.UNSIGNED_SHORT,!0,this.vertByteSize,8).addAttribute(N,k.aColor,t.UNSIGNED_BYTE,!0,this.vertByteSize,12);k.aTextureId&&H.addAttribute(N,k.aTextureId,t.FLOAT,!1,this.vertByteSize,16),this.vaos[this.vertexCount]=H}this.renderer.bindVao(this.vaos[this.vertexCount]),this.vertexBuffers[this.vertexCount].upload(n.vertices,0,!1),this.vertexCount++}for(I=0;I<e;++I)m[I]._virtalBoundId=-1;for(I=0;I<T;++I){for(var B=a[I],F=B.textureCount,U=0;U<F;U++)b=B.textures[U],m[B.ids[U]]!==b&&this.renderer.bindTexture(b,B.ids[U],!0),b._virtalBoundId=-1;this.renderer.state.setBlendMode(B.blend),t.drawElements(t.TRIANGLES,6*B.size,t.UNSIGNED_SHORT,6*B.start*2)}this.currentIndex=0}},e.prototype.start=function(){this.renderer.bindShader(this.shader),h.default.CAN_UPLOAD_SAME_BUFFER&&(this.renderer.bindVao(this.vaos[this.vertexCount]),this.vertexBuffers[this.vertexCount].bind())},e.prototype.stop=function(){this.flush()},e.prototype.destroy=function(){for(var e=0;e<this.vaoMax;e++)this.vertexBuffers[e]&&this.vertexBuffers[e].destroy(),this.vaos[e]&&this.vaos[e].destroy();this.indexBuffer&&this.indexBuffer.destroy(),this.renderer.off("prerender",this.onPrerender,this),t.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.vertexBuffers=null,this.vaos=null,this.indexBuffer=null,this.indices=null,this.sprites=null;for(var i=0;i<this.buffers.length;++i)this.buffers[i].destroy()},e}(r.default);i.default=m,n.default.registerPlugin("sprite",m)},{"../../renderers/webgl/WebGLRenderer":84,"../../renderers/webgl/utils/ObjectRenderer":94,"../../renderers/webgl/utils/checkMaxIfStatmentsInShader":97,"../../settings":101,"../../utils":124,"../../utils/createIndicesForQuads":122,"./BatchBuffer":105,"./generateMultiTextureShader":107,"bit-twiddle":1,"pixi-gl-core":12}],107:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t,e){var i=a;i=(i=i.replace(/%count%/gi,e)).replace(/%forloop%/gi,function(t){var e="";e+="\n",e+="\n";for(var i=0;i<t;i++)i>0&&(e+="\nelse "),i<t-1&&(e+="if(textureId == "+i+".0)"),e+="\n{",e+="\n\tcolor = texture2D(uSamplers["+i+"], vTextureCoord);",e+="\n}";return e+="\n",e+="\n"}(e));for(var r=new s.default(t,"precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vTextureId = aTextureId;\n vColor = aColor;\n}\n",i),n=[],o=0;o<e;o++)n[o]=o;return r.bind(),r.uniforms.uSamplers=n,r};var r,n=t("../../Shader"),s=(r=n)&&r.__esModule?r:{default:r};t("path");var a=["varying vec2 vTextureCoord;","varying vec4 vColor;","varying float vTextureId;","uniform sampler2D uSamplers[%count%];","void main(void){","vec4 color;","float textureId = floor(vTextureId+0.5);","%forloop%","gl_FragColor = color * vColor;","}"].join("\n")},{"../../Shader":44,path:23}],108:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=p(t("../sprites/Sprite")),s=p(t("../textures/Texture")),a=t("../math"),o=t("../utils"),l=t("../const"),h=p(t("../settings")),u=p(t("./TextStyle")),c=p(t("./TextMetrics")),d=p(t("../utils/trimCanvas"));function p(t){return t&&t.__esModule?t:{default:t}}var f={texture:!0,children:!1,baseTexture:!0},_=function(t){function e(i,r,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=n||document.createElement("canvas")).width=3,n.height=3;var o=s.default.fromCanvas(n,h.default.SCALE_MODE,"text");o.orig=new a.Rectangle,o.trim=new a.Rectangle;var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,o));return s.default.addToCache(l._texture,l._texture.baseTexture.textureCacheIds[0]),l.canvas=n,l.context=l.canvas.getContext("2d"),l.resolution=h.default.RESOLUTION,l._text=null,l._style=null,l._styleListener=null,l._font="",l.text=i,l.style=r,l.localStyleID=-1,l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.updateText=function(t){var e=this._style;if(this.localStyleID!==e.styleID&&(this.dirty=!0,this.localStyleID=e.styleID),this.dirty||!t){this._font=this._style.toFontString();var i=this.context,r=c.default.measureText(this._text,this._style,this._style.wordWrap,this.canvas),n=r.width,s=r.height,a=r.lines,o=r.lineHeight,l=r.lineWidths,h=r.maxLineWidth,u=r.fontProperties;this.canvas.width=Math.ceil((n+2*e.padding)*this.resolution),this.canvas.height=Math.ceil((s+2*e.padding)*this.resolution),i.scale(this.resolution,this.resolution),i.clearRect(0,0,this.canvas.width,this.canvas.height),i.font=this._font,i.strokeStyle=e.stroke,i.lineWidth=e.strokeThickness,i.textBaseline=e.textBaseline,i.lineJoin=e.lineJoin,i.miterLimit=e.miterLimit;var d=void 0,p=void 0;if(e.dropShadow){i.fillStyle=e.dropShadowColor,i.globalAlpha=e.dropShadowAlpha,i.shadowBlur=e.dropShadowBlur,e.dropShadowBlur>0&&(i.shadowColor=e.dropShadowColor);for(var f=Math.cos(e.dropShadowAngle)*e.dropShadowDistance,_=Math.sin(e.dropShadowAngle)*e.dropShadowDistance,m=0;m<a.length;m++)d=e.strokeThickness/2,p=e.strokeThickness/2+m*o+u.ascent,"right"===e.align?d+=h-l[m]:"center"===e.align&&(d+=(h-l[m])/2),e.fill&&(this.drawLetterSpacing(a[m],d+f+e.padding,p+_+e.padding),e.stroke&&e.strokeThickness&&(i.strokeStyle=e.dropShadowColor,this.drawLetterSpacing(a[m],d+f+e.padding,p+_+e.padding,!0),i.strokeStyle=e.stroke))}i.shadowBlur=0,i.globalAlpha=1,i.fillStyle=this._generateFillStyle(e,a);for(var g=0;g<a.length;g++)d=e.strokeThickness/2,p=e.strokeThickness/2+g*o+u.ascent,"right"===e.align?d+=h-l[g]:"center"===e.align&&(d+=(h-l[g])/2),e.stroke&&e.strokeThickness&&this.drawLetterSpacing(a[g],d+e.padding,p+e.padding,!0),e.fill&&this.drawLetterSpacing(a[g],d+e.padding,p+e.padding);this.updateTexture()}},e.prototype.drawLetterSpacing=function(t,e,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=this._style.letterSpacing;if(0!==n)for(var s=String.prototype.split.call(t,""),a=e,o=0,l="";o<t.length;)l=s[o++],r?this.context.strokeText(l,a,i):this.context.fillText(l,a,i),a+=this.context.measureText(l).width+n;else r?this.context.strokeText(t,e,i):this.context.fillText(t,e,i)},e.prototype.updateTexture=function(){var t=this.canvas;if(this._style.trim){var e=(0,d.default)(t);t.width=e.width,t.height=e.height,this.context.putImageData(e.data,0,0)}var i=this._texture,r=this._style,n=r.trim?0:r.padding,s=i.baseTexture;s.hasLoaded=!0,s.resolution=this.resolution,s.realWidth=t.width,s.realHeight=t.height,s.width=t.width/this.resolution,s.height=t.height/this.resolution,i.trim.width=i._frame.width=t.width/this.resolution,i.trim.height=i._frame.height=t.height/this.resolution,i.trim.x=-n,i.trim.y=-n,i.orig.width=i._frame.width-2*n,i.orig.height=i._frame.height-2*n,this._onTextureUpdate(),s.emit("update",s),this.dirty=!1},e.prototype.renderWebGL=function(e){this.resolution!==e.resolution&&(this.resolution=e.resolution,this.dirty=!0),this.updateText(!0),t.prototype.renderWebGL.call(this,e)},e.prototype._renderCanvas=function(e){this.resolution!==e.resolution&&(this.resolution=e.resolution,this.dirty=!0),this.updateText(!0),t.prototype._renderCanvas.call(this,e)},e.prototype.getLocalBounds=function(e){return this.updateText(!0),t.prototype.getLocalBounds.call(this,e)},e.prototype._calculateBounds=function(){this.updateText(!0),this.calculateVertices(),this._bounds.addQuad(this.vertexData)},e.prototype._onStyleChange=function(){this.dirty=!0},e.prototype._generateFillStyle=function(t,e){if(!Array.isArray(t.fill))return t.fill;if(navigator.isCocoonJS)return t.fill[0];var i=void 0,r=void 0,n=void 0,s=void 0,a=this.canvas.width/this.resolution,o=this.canvas.height/this.resolution,h=t.fill.slice(),u=t.fillGradientStops.slice();if(!u.length)for(var c=h.length+1,d=1;d<c;++d)u.push(d/c);if(h.unshift(t.fill[0]),u.unshift(0),h.push(t.fill[t.fill.length-1]),u.push(1),t.fillGradientType===l.TEXT_GRADIENT.LINEAR_VERTICAL){i=this.context.createLinearGradient(a/2,0,a/2,o),r=(h.length+1)*e.length,n=0;for(var p=0;p<e.length;p++){n+=1;for(var f=0;f<h.length;f++)s="number"==typeof u[f]?u[f]/e.length+p/e.length:n/r,i.addColorStop(s,h[f]),n++}}else{i=this.context.createLinearGradient(0,o/2,a,o/2),r=h.length+1,n=1;for(var _=0;_<h.length;_++)s="number"==typeof u[_]?u[_]:n/r,i.addColorStop(s,h[_]),n++}return i},e.prototype.destroy=function(e){"boolean"==typeof e&&(e={children:e}),e=Object.assign({},f,e),t.prototype.destroy.call(this,e),this.context=null,this.canvas=null,this._style=null},r(e,[{key:"width",get:function(){return this.updateText(!0),Math.abs(this.scale.x)*this._texture.orig.width},set:function(t){this.updateText(!0);var e=(0,o.sign)(this.scale.x)||1;this.scale.x=e*t/this._texture.orig.width,this._width=t}},{key:"height",get:function(){return this.updateText(!0),Math.abs(this.scale.y)*this._texture.orig.height},set:function(t){this.updateText(!0);var e=(0,o.sign)(this.scale.y)||1;this.scale.y=e*t/this._texture.orig.height,this._height=t}},{key:"style",get:function(){return this._style},set:function(t){(t=t||{})instanceof u.default?this._style=t:this._style=new u.default(t),this.localStyleID=-1,this.dirty=!0}},{key:"text",get:function(){return this._text},set:function(t){t=String(""===t||null==t?" ":t),this._text!==t&&(this._text=t,this.dirty=!0)}}]),e}(n.default);i.default=_},{"../const":46,"../math":70,"../settings":101,"../sprites/Sprite":102,"../textures/Texture":115,"../utils":124,"../utils/trimCanvas":129,"./TextMetrics":109,"./TextStyle":110}],109:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(e,i,r,n,s,a,o,l,h){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.text=e,this.style=i,this.width=r,this.height=n,this.lines=s,this.lineWidths=a,this.lineHeight=o,this.maxLineWidth=l,this.fontProperties=h}return t.measureText=function(e,i,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t._canvas;r=r||i.wordWrap;var s=i.toFontString(),a=t.measureFont(s),o=n.getContext("2d");o.font=s;for(var l=(r?t.wordWrap(e,i,n):e).split(/(?:\r\n|\r|\n)/),h=new Array(l.length),u=0,c=0;c<l.length;c++){var d=o.measureText(l[c]).width+(l[c].length-1)*i.letterSpacing;h[c]=d,u=Math.max(u,d)}var p=u+i.strokeThickness;i.dropShadow&&(p+=i.dropShadowDistance);var f=i.lineHeight||a.fontSize+i.strokeThickness,_=Math.max(f,a.fontSize+i.strokeThickness)+(l.length-1)*f;return i.dropShadow&&(_+=i.dropShadowDistance),new t(e,i,p,_,l,h,f,u,a)},t.wordWrap=function(e,i){for(var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:t._canvas).getContext("2d"),n="",s=e.split("\n"),a=i.wordWrapWidth,o={},l=0;l<s.length;l++){for(var h=a,u=s[l].split(" "),c=0;c<u.length;c++){var d=r.measureText(u[c]).width;if(i.breakWords&&d>a)for(var p=u[c].split(""),f=0;f<p.length;f++){var _=p[f],m=o[_];void 0===m&&(m=r.measureText(_).width,o[_]=m),m>h?(n+="\n"+_,h=a-m):(0===f&&(n+=" "),n+=_,h-=m)}else{var g=d+r.measureText(" ").width;0===c||g>h?(c>0&&(n+="\n"),n+=u[c],h=a-d):(h-=g,n+=" "+u[c])}}l<s.length-1&&(n+="\n")}return n},t.measureFont=function(e){if(t._fonts[e])return t._fonts[e];var i={},r=t._canvas,n=t._context;n.font=e;var s=Math.ceil(n.measureText("|MÉq").width),a=Math.ceil(n.measureText("M").width),o=2*a;a=1.4*a|0,r.width=s,r.height=o,n.fillStyle="#f00",n.fillRect(0,0,s,o),n.font=e,n.textBaseline="alphabetic",n.fillStyle="#000",n.fillText("|MÉq",0,a);var l=n.getImageData(0,0,s,o).data,h=l.length,u=4*s,c=0,d=0,p=!1;for(c=0;c<a;++c){for(var f=0;f<u;f+=4)if(255!==l[d+f]){p=!0;break}if(p)break;d+=u}for(i.ascent=a-c,d=h-u,p=!1,c=o;c>a;--c){for(var _=0;_<u;_+=4)if(255!==l[d+_]){p=!0;break}if(p)break;d-=u}return i.descent=c-a,i.fontSize=i.ascent+i.descent,t._fonts[e]=i,i},t}();i.default=r;var n=document.createElement("canvas");n.width=n.height=10,r._canvas=n,r._context=n.getContext("2d"),r._fonts={}},{}],110:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=t("../const"),s=t("../utils");var a={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:n.TEXT_GRADIENT.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,wordWrap:!1,wordWrapWidth:100},o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.styleID=0,Object.assign(this,a,e)}return t.prototype.clone=function(){var e={};for(var i in a)e[i]=this[i];return new t(e)},t.prototype.reset=function(){Object.assign(this,a)},t.prototype.toFontString=function(){var t="number"==typeof this.fontSize?this.fontSize+"px":this.fontSize,e=this.fontFamily;Array.isArray(this.fontFamily)||(e=this.fontFamily.split(","));for(var i=e.length-1;i>=0;i--){var r=e[i].trim();/([\"\'])[^\'\"]+\1/.test(r)||(r='"'+r+'"'),e[i]=r}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+t+" "+e.join(",")},r(t,[{key:"align",get:function(){return this._align},set:function(t){this._align!==t&&(this._align=t,this.styleID++)}},{key:"breakWords",get:function(){return this._breakWords},set:function(t){this._breakWords!==t&&(this._breakWords=t,this.styleID++)}},{key:"dropShadow",get:function(){return this._dropShadow},set:function(t){this._dropShadow!==t&&(this._dropShadow=t,this.styleID++)}},{key:"dropShadowAlpha",get:function(){return this._dropShadowAlpha},set:function(t){this._dropShadowAlpha!==t&&(this._dropShadowAlpha=t,this.styleID++)}},{key:"dropShadowAngle",get:function(){return this._dropShadowAngle},set:function(t){this._dropShadowAngle!==t&&(this._dropShadowAngle=t,this.styleID++)}},{key:"dropShadowBlur",get:function(){return this._dropShadowBlur},set:function(t){this._dropShadowBlur!==t&&(this._dropShadowBlur=t,this.styleID++)}},{key:"dropShadowColor",get:function(){return this._dropShadowColor},set:function(t){var e=h(t);this._dropShadowColor!==e&&(this._dropShadowColor=e,this.styleID++)}},{key:"dropShadowDistance",get:function(){return this._dropShadowDistance},set:function(t){this._dropShadowDistance!==t&&(this._dropShadowDistance=t,this.styleID++)}},{key:"fill",get:function(){return this._fill},set:function(t){var e=h(t);this._fill!==e&&(this._fill=e,this.styleID++)}},{key:"fillGradientType",get:function(){return this._fillGradientType},set:function(t){this._fillGradientType!==t&&(this._fillGradientType=t,this.styleID++)}},{key:"fillGradientStops",get:function(){return this._fillGradientStops},set:function(t){(function(t,e){if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t.length!==e.length)return!1;for(var i=0;i<t.length;++i)if(t[i]!==e[i])return!1;return!0})(this._fillGradientStops,t)||(this._fillGradientStops=t,this.styleID++)}},{key:"fontFamily",get:function(){return this._fontFamily},set:function(t){this.fontFamily!==t&&(this._fontFamily=t,this.styleID++)}},{key:"fontSize",get:function(){return this._fontSize},set:function(t){this._fontSize!==t&&(this._fontSize=t,this.styleID++)}},{key:"fontStyle",get:function(){return this._fontStyle},set:function(t){this._fontStyle!==t&&(this._fontStyle=t,this.styleID++)}},{key:"fontVariant",get:function(){return this._fontVariant},set:function(t){this._fontVariant!==t&&(this._fontVariant=t,this.styleID++)}},{key:"fontWeight",get:function(){return this._fontWeight},set:function(t){this._fontWeight!==t&&(this._fontWeight=t,this.styleID++)}},{key:"letterSpacing",get:function(){return this._letterSpacing},set:function(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.styleID++)}},{key:"lineHeight",get:function(){return this._lineHeight},set:function(t){this._lineHeight!==t&&(this._lineHeight=t,this.styleID++)}},{key:"lineJoin",get:function(){return this._lineJoin},set:function(t){this._lineJoin!==t&&(this._lineJoin=t,this.styleID++)}},{key:"miterLimit",get:function(){return this._miterLimit},set:function(t){this._miterLimit!==t&&(this._miterLimit=t,this.styleID++)}},{key:"padding",get:function(){return this._padding},set:function(t){this._padding!==t&&(this._padding=t,this.styleID++)}},{key:"stroke",get:function(){return this._stroke},set:function(t){var e=h(t);this._stroke!==e&&(this._stroke=e,this.styleID++)}},{key:"strokeThickness",get:function(){return this._strokeThickness},set:function(t){this._strokeThickness!==t&&(this._strokeThickness=t,this.styleID++)}},{key:"textBaseline",get:function(){return this._textBaseline},set:function(t){this._textBaseline!==t&&(this._textBaseline=t,this.styleID++)}},{key:"trim",get:function(){return this._trim},set:function(t){this._trim!==t&&(this._trim=t,this.styleID++)}},{key:"wordWrap",get:function(){return this._wordWrap},set:function(t){this._wordWrap!==t&&(this._wordWrap=t,this.styleID++)}},{key:"wordWrapWidth",get:function(){return this._wordWrapWidth},set:function(t){this._wordWrapWidth!==t&&(this._wordWrapWidth=t,this.styleID++)}}]),t}();function l(t){return"number"==typeof t?(0,s.hex2string)(t):("string"==typeof t&&0===t.indexOf("0x")&&(t=t.replace("0x","#")),t)}function h(t){if(Array.isArray(t)){for(var e=0;e<t.length;++e)t[e]=l(t[e]);return t}return l(t)}i.default=o},{"../const":46,"../utils":124}],111:[function(t,e,i){"use strict";i.__esModule=!0;var r=s(t("./BaseTexture")),n=s(t("../settings"));function s(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,s=arguments[2],a=arguments[3];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,null,s));return o.resolution=a||n.default.RESOLUTION,o.width=i,o.height=r,o.realWidth=o.width*o.resolution,o.realHeight=o.height*o.resolution,o.scaleMode=void 0!==s?s:n.default.SCALE_MODE,o.hasLoaded=!0,o._glRenderTargets={},o._canvasRenderTarget=null,o.valid=!1,o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.resize=function(t,e){t===this.width&&e===this.height||(this.valid=t>0&&e>0,this.width=t,this.height=e,this.realWidth=this.width*this.resolution,this.realHeight=this.height*this.resolution,this.valid&&this.emit("update",this))},e.prototype.destroy=function(){t.prototype.destroy.call(this,!0),this.renderer=null},e}(r.default);i.default=a},{"../settings":101,"./BaseTexture":112}],112:[function(t,e,i){"use strict";i.__esModule=!0;var r=t("../utils"),n=l(t("../settings")),s=l(t("eventemitter3")),a=l(t("../utils/determineCrossOrigin")),o=l(t("bit-twiddle"));function l(t){return t&&t.__esModule?t:{default:t}}var h=function(t){function e(i,s,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return o.uid=(0,r.uid)(),o.touched=0,o.resolution=a||n.default.RESOLUTION,o.width=100,o.height=100,o.realWidth=100,o.realHeight=100,o.scaleMode=void 0!==s?s:n.default.SCALE_MODE,o.hasLoaded=!1,o.isLoading=!1,o.source=null,o.origSource=null,o.imageType=null,o.sourceScale=1,o.premultipliedAlpha=!0,o.imageUrl=null,o.isPowerOfTwo=!1,o.mipmap=n.default.MIPMAP_TEXTURES,o.wrapMode=n.default.WRAP_MODE,o._glTextures={},o._enabled=0,o._virtalBoundId=-1,o._destroyed=!1,o.textureCacheIds=[],i&&o.loadSource(i),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.update=function(){"svg"!==this.imageType&&(this.realWidth=this.source.naturalWidth||this.source.videoWidth||this.source.width,this.realHeight=this.source.naturalHeight||this.source.videoHeight||this.source.height,this._updateDimensions()),this.emit("update",this)},e.prototype._updateDimensions=function(){this.width=this.realWidth/this.resolution,this.height=this.realHeight/this.resolution,this.isPowerOfTwo=o.default.isPow2(this.realWidth)&&o.default.isPow2(this.realHeight)},e.prototype.loadSource=function(t){var e=this.isLoading;this.hasLoaded=!1,this.isLoading=!1,e&&this.source&&(this.source.onload=null,this.source.onerror=null);var i=!this.source;if(this.source=t,(t.src&&t.complete||t.getContext)&&t.width&&t.height)this._updateImageType(),"svg"===this.imageType?this._loadSvgSource():this._sourceLoaded(),i&&this.emit("loaded",this);else if(!t.getContext){this.isLoading=!0;var r=this;if(t.onload=function(){r._updateImageType(),t.onload=null,t.onerror=null,r.isLoading&&(r.isLoading=!1,r._sourceLoaded(),"svg"!==r.imageType?r.emit("loaded",r):r._loadSvgSource())},t.onerror=function(){t.onload=null,t.onerror=null,r.isLoading&&(r.isLoading=!1,r.emit("error",r))},t.complete&&t.src){if(t.onload=null,t.onerror=null,"svg"===r.imageType)return void r._loadSvgSource();this.isLoading=!1,t.width&&t.height?(this._sourceLoaded(),e&&this.emit("loaded",this)):e&&this.emit("error",this)}}},e.prototype._updateImageType=function(){if(this.imageUrl){var t=(0,r.decomposeDataUri)(this.imageUrl),e=void 0;if(t&&"image"===t.mediaType){var i=t.subType.split("+")[0];if(!(e=(0,r.getUrlFileExtension)("."+i)))throw new Error("Invalid image type in data URI.")}else(e=(0,r.getUrlFileExtension)(this.imageUrl))||(e="png");this.imageType=e}},e.prototype._loadSvgSource=function(){if("svg"===this.imageType){var t=(0,r.decomposeDataUri)(this.imageUrl);t?this._loadSvgSourceUsingDataUri(t):this._loadSvgSourceUsingXhr()}},e.prototype._loadSvgSourceUsingDataUri=function(t){var e=void 0;if("base64"===t.encoding){if(!atob)throw new Error("Your browser doesn't support base64 conversions.");e=atob(t.data)}else e=t.data;this._loadSvgSourceUsingString(e)},e.prototype._loadSvgSourceUsingXhr=function(){var t=this,e=new XMLHttpRequest;e.onload=function(){if(e.readyState!==e.DONE||200!==e.status)throw new Error("Failed to load SVG using XHR.");t._loadSvgSourceUsingString(e.response)},e.onerror=function(){return t.emit("error",t)},e.open("GET",this.imageUrl,!0),e.send()},e.prototype._loadSvgSourceUsingString=function(t){var i=(0,r.getSvgSize)(t),n=i.width,s=i.height;if(!n||!s)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");this.realWidth=Math.round(n*this.sourceScale),this.realHeight=Math.round(s*this.sourceScale),this._updateDimensions();var a=document.createElement("canvas");a.width=this.realWidth,a.height=this.realHeight,a._pixiId="canvas_"+(0,r.uid)(),a.getContext("2d").drawImage(this.source,0,0,n,s,0,0,this.realWidth,this.realHeight),this.origSource=this.source,this.source=a,e.addToCache(this,a._pixiId),this.isLoading=!1,this._sourceLoaded(),this.emit("loaded",this)},e.prototype._sourceLoaded=function(){this.hasLoaded=!0,this.update()},e.prototype.destroy=function(){this.imageUrl&&(delete r.TextureCache[this.imageUrl],this.imageUrl=null,navigator.isCocoonJS||(this.source.src="")),this.source=null,this.dispose(),e.removeFromCache(this),this.textureCacheIds=null,this._destroyed=!0},e.prototype.dispose=function(){this.emit("dispose",this)},e.prototype.updateSourceImage=function(t){this.source.src=t,this.loadSource(this.source)},e.fromImage=function(t,i,n,s){var o=r.BaseTextureCache[t];if(!o){var l=new Image;void 0===i&&0!==t.indexOf("data:")?l.crossOrigin=(0,a.default)(t):i&&(l.crossOrigin="string"==typeof i?i:"anonymous"),(o=new e(l,n)).imageUrl=t,s&&(o.sourceScale=s),o.resolution=(0,r.getResolutionOfUrl)(t),l.src=t,e.addToCache(o,t)}return o},e.fromCanvas=function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"canvas";t._pixiId||(t._pixiId=n+"_"+(0,r.uid)());var s=r.BaseTextureCache[t._pixiId];return s||(s=new e(t,i),e.addToCache(s,t._pixiId)),s},e.from=function(t,i,n){if("string"==typeof t)return e.fromImage(t,void 0,i,n);if(t instanceof HTMLImageElement){var s=t.src,a=r.BaseTextureCache[s];return a||((a=new e(t,i)).imageUrl=s,n&&(a.sourceScale=n),a.resolution=(0,r.getResolutionOfUrl)(s),e.addToCache(a,s)),a}return t instanceof HTMLCanvasElement?e.fromCanvas(t,i):t},e.addToCache=function(t,e){e&&(-1===t.textureCacheIds.indexOf(e)&&t.textureCacheIds.push(e),r.BaseTextureCache[e]&&console.warn("BaseTexture added to the cache with an id ["+e+"] that already had an entry"),r.BaseTextureCache[e]=t)},e.removeFromCache=function(t){if("string"==typeof t){var e=r.BaseTextureCache[t];if(e){var i=e.textureCacheIds.indexOf(t);return i>-1&&e.textureCacheIds.splice(i,1),delete r.BaseTextureCache[t],e}}else if(t&&t.textureCacheIds){for(var n=0;n<t.textureCacheIds.length;++n)delete r.BaseTextureCache[t.textureCacheIds[n]];return t.textureCacheIds.length=0,t}return null},e}(s.default);i.default=h},{"../settings":101,"../utils":124,"../utils/determineCrossOrigin":123,"bit-twiddle":1,eventemitter3:3}],113:[function(t,e,i){"use strict";i.__esModule=!0;var r=n(t("./BaseRenderTexture"));function n(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(i,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var s=null;if(!(i instanceof r.default)){var a=arguments[1],o=arguments[2],l=arguments[3],h=arguments[4];console.warn("Please use RenderTexture.create("+a+", "+o+") instead of the ctor directly."),s=arguments[0],n=null,i=new r.default(a,o,l,h)}var u=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i,n));return u.legacyRenderer=s,u.valid=!0,u._updateUvs(),u}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.resize=function(t,e,i){this.valid=t>0&&e>0,this._frame.width=this.orig.width=t,this._frame.height=this.orig.height=e,i||this.baseTexture.resize(t,e),this._updateUvs()},e.create=function(t,i,n,s){return new e(new r.default(t,i,n,s))},e}(n(t("./Texture")).default);i.default=s},{"./BaseRenderTexture":111,"./Texture":115}],114:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=t("../"),s=t("../utils");var a=function(){function t(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.baseTexture=e,this.textures={},this.data=i,this.resolution=this._updateResolution(r||this.baseTexture.imageUrl),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}return r(t,null,[{key:"BATCH_SIZE",get:function(){return 1e3}}]),t.prototype._updateResolution=function(t){var e=this.data.meta.scale,i=(0,s.getResolutionOfUrl)(t,null);return null===i&&(i=void 0!==e?parseFloat(e):1),1!==i&&(this.baseTexture.resolution=i,this.baseTexture.update()),i},t.prototype.parse=function(e){this._batchIndex=0,this._callback=e,this._frameKeys.length<=t.BATCH_SIZE?(this._processFrames(0),this._parseComplete()):this._nextBatch()},t.prototype._processFrames=function(e){for(var i=e,r=t.BATCH_SIZE;i-e<r&&i<this._frameKeys.length;){var s=this._frameKeys[i],a=this._frames[s].frame;if(a){var o=null,l=null,h=new n.Rectangle(0,0,this._frames[s].sourceSize.w/this.resolution,this._frames[s].sourceSize.h/this.resolution);o=this._frames[s].rotated?new n.Rectangle(a.x/this.resolution,a.y/this.resolution,a.h/this.resolution,a.w/this.resolution):new n.Rectangle(a.x/this.resolution,a.y/this.resolution,a.w/this.resolution,a.h/this.resolution),this._frames[s].trimmed&&(l=new n.Rectangle(this._frames[s].spriteSourceSize.x/this.resolution,this._frames[s].spriteSourceSize.y/this.resolution,a.w/this.resolution,a.h/this.resolution)),this.textures[s]=new n.Texture(this.baseTexture,o,h,l,this._frames[s].rotated?2:0),n.Texture.addToCache(this.textures[s],s)}i++}},t.prototype._parseComplete=function(){var t=this._callback;this._callback=null,this._batchIndex=0,t.call(this,this.textures)},t.prototype._nextBatch=function(){var e=this;this._processFrames(this._batchIndex*t.BATCH_SIZE),this._batchIndex++,setTimeout(function(){e._batchIndex*t.BATCH_SIZE<e._frameKeys.length?e._nextBatch():e._parseComplete()},0)},t.prototype.destroy=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];for(var e in this.textures)this.textures[e].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,t&&this.baseTexture.destroy(),this.baseTexture=null},t}();i.default=a},{"../":65,"../utils":124}],115:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=c(t("./BaseTexture")),s=c(t("./VideoBaseTexture")),a=c(t("./TextureUvs")),o=c(t("eventemitter3")),l=t("../math"),h=t("../utils"),u=c(t("../settings"));function c(t){return t&&t.__esModule?t:{default:t}}var d=function(t){function e(i,r,n,s,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));if(o.noFrame=!1,r||(o.noFrame=!0,r=new l.Rectangle(0,0,1,1)),i instanceof e&&(i=i.baseTexture),o.baseTexture=i,o._frame=r,o.trim=s,o.valid=!1,o.requiresUpdate=!1,o._uvs=null,o.orig=n||r,o._rotate=Number(a||0),!0===a)o._rotate=2;else if(o._rotate%2!=0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");return i.hasLoaded?(o.noFrame&&(r=new l.Rectangle(0,0,i.width,i.height),i.on("update",o.onBaseTextureUpdated,o)),o.frame=r):i.once("loaded",o.onBaseTextureLoaded,o),o._updateID=0,o.transform=null,o.textureCacheIds=[],o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.update=function(){this.baseTexture.update()},e.prototype.onBaseTextureLoaded=function(t){this._updateID++,this.noFrame?this.frame=new l.Rectangle(0,0,t.width,t.height):this.frame=this._frame,this.baseTexture.on("update",this.onBaseTextureUpdated,this),this.emit("update",this)},e.prototype.onBaseTextureUpdated=function(t){this._updateID++,this._frame.width=t.width,this._frame.height=t.height,this.emit("update",this)},e.prototype.destroy=function(t){this.baseTexture&&(t&&(h.TextureCache[this.baseTexture.imageUrl]&&e.removeFromCache(this.baseTexture.imageUrl),this.baseTexture.destroy()),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture.off("loaded",this.onBaseTextureLoaded,this),this.baseTexture=null),this._frame=null,this._uvs=null,this.trim=null,this.orig=null,this.valid=!1,e.removeFromCache(this),this.textureCacheIds=null},e.prototype.clone=function(){return new e(this.baseTexture,this.frame,this.orig,this.trim,this.rotate)},e.prototype._updateUvs=function(){this._uvs||(this._uvs=new a.default),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++},e.fromImage=function(t,i,r,s){var a=h.TextureCache[t];return a||(a=new e(n.default.fromImage(t,i,r,s)),e.addToCache(a,t)),a},e.fromFrame=function(t){var e=h.TextureCache[t];if(!e)throw new Error('The frameId "'+t+'" does not exist in the texture cache');return e},e.fromCanvas=function(t,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"canvas";return new e(n.default.fromCanvas(t,i,r))},e.fromVideo=function(t,i){return"string"==typeof t?e.fromVideoUrl(t,i):new e(s.default.fromVideo(t,i))},e.fromVideoUrl=function(t,i){return new e(s.default.fromUrl(t,i))},e.from=function(t){if("string"==typeof t){var i=h.TextureCache[t];return i||(null!==t.match(/\.(mp4|webm|ogg|h264|avi|mov)$/)?e.fromVideoUrl(t):e.fromImage(t))}return t instanceof HTMLImageElement?new e(n.default.from(t)):t instanceof HTMLCanvasElement?e.fromCanvas(t,u.default.SCALE_MODE,"HTMLCanvasElement"):t instanceof HTMLVideoElement?e.fromVideo(t):t instanceof n.default?new e(t):t},e.fromLoader=function(t,i,r){var s=new n.default(t,void 0,(0,h.getResolutionOfUrl)(i)),a=new e(s);return s.imageUrl=i,r||(r=i),n.default.addToCache(a.baseTexture,r),e.addToCache(a,r),r!==i&&(n.default.addToCache(a.baseTexture,i),e.addToCache(a,i)),a},e.addToCache=function(t,e){e&&(-1===t.textureCacheIds.indexOf(e)&&t.textureCacheIds.push(e),h.TextureCache[e]&&console.warn("Texture added to the cache with an id ["+e+"] that already had an entry"),h.TextureCache[e]=t)},e.removeFromCache=function(t){if("string"==typeof t){var e=h.TextureCache[t];if(e){var i=e.textureCacheIds.indexOf(t);return i>-1&&e.textureCacheIds.splice(i,1),delete h.TextureCache[t],e}}else if(t&&t.textureCacheIds){for(var r=0;r<t.textureCacheIds.length;++r)delete h.TextureCache[t.textureCacheIds[r]];return t.textureCacheIds.length=0,t}return null},r(e,[{key:"frame",get:function(){return this._frame},set:function(t){if(this._frame=t,this.noFrame=!1,t.x+t.width>this.baseTexture.width||t.y+t.height>this.baseTexture.height)throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: X: "+t.x+" + "+t.width+" = "+(t.x+t.width)+" > "+this.baseTexture.width+" Y: "+t.y+" + "+t.height+" = "+(t.y+t.height)+" > "+this.baseTexture.height);this.valid=t&&t.width&&t.height&&this.baseTexture.hasLoaded,this.trim||this.rotate||(this.orig=t),this.valid&&this._updateUvs()}},{key:"rotate",get:function(){return this._rotate},set:function(t){this._rotate=t,this.valid&&this._updateUvs()}},{key:"width",get:function(){return this.orig.width}},{key:"height",get:function(){return this.orig.height}}]),e}(o.default);function p(t){t.destroy=function(){},t.on=function(){},t.once=function(){},t.emit=function(){}}i.default=d,d.EMPTY=new d(new n.default),p(d.EMPTY),p(d.EMPTY.baseTexture),d.WHITE=function(){var t=document.createElement("canvas");t.width=10,t.height=10;var e=t.getContext("2d");return e.fillStyle="white",e.fillRect(0,0,10,10),new d(new n.default(t))}(),p(d.WHITE),p(d.WHITE.baseTexture)},{"../math":70,"../settings":101,"../utils":124,"./BaseTexture":112,"./TextureUvs":116,"./VideoBaseTexture":117,eventemitter3:3}],116:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=t("../math/GroupD8"),s=(r=n)&&r.__esModule?r:{default:r};var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1,this.uvsUint32=new Uint32Array(4)}return t.prototype.set=function(t,e,i){var r=e.width,n=e.height;if(i){var a=t.width/2/r,o=t.height/2/n,l=t.x/r+a,h=t.y/n+o;i=s.default.add(i,s.default.NW),this.x0=l+a*s.default.uX(i),this.y0=h+o*s.default.uY(i),i=s.default.add(i,2),this.x1=l+a*s.default.uX(i),this.y1=h+o*s.default.uY(i),i=s.default.add(i,2),this.x2=l+a*s.default.uX(i),this.y2=h+o*s.default.uY(i),i=s.default.add(i,2),this.x3=l+a*s.default.uX(i),this.y3=h+o*s.default.uY(i)}else this.x0=t.x/r,this.y0=t.y/n,this.x1=(t.x+t.width)/r,this.y1=t.y/n,this.x2=(t.x+t.width)/r,this.y2=(t.y+t.height)/n,this.x3=t.x/r,this.y3=(t.y+t.height)/n;this.uvsUint32[0]=(65535*this.y0&65535)<<16|65535*this.x0&65535,this.uvsUint32[1]=(65535*this.y1&65535)<<16|65535*this.x1&65535,this.uvsUint32[2]=(65535*this.y2&65535)<<16|65535*this.x2&65535,this.uvsUint32[3]=(65535*this.y3&65535)<<16|65535*this.x3&65535},t}();i.default=a},{"../math/GroupD8":66}],117:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),s=t("./BaseTexture"),a=(r=s)&&r.__esModule?r:{default:r},o=t("../utils"),l=t("../ticker"),h=t("../const");var u=function(t){function e(i,r){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),!i)throw new Error("No video source element specified.");(i.readyState===i.HAVE_ENOUGH_DATA||i.readyState===i.HAVE_FUTURE_DATA)&&i.width&&i.height&&(i.complete=!0);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i,r));return n.width=i.videoWidth,n.height=i.videoHeight,n._autoUpdate=!0,n._isAutoUpdating=!1,n.autoPlay=!0,n.update=n.update.bind(n),n._onCanPlay=n._onCanPlay.bind(n),i.addEventListener("play",n._onPlayStart.bind(n)),i.addEventListener("pause",n._onPlayStop.bind(n)),n.hasLoaded=!1,n.__loaded=!1,n._isSourceReady()?n._onCanPlay():(i.addEventListener("canplay",n._onCanPlay),i.addEventListener("canplaythrough",n._onCanPlay)),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._isSourcePlaying=function(){var t=this.source;return t.currentTime>0&&!1===t.paused&&!1===t.ended&&t.readyState>2},e.prototype._isSourceReady=function(){return 3===this.source.readyState||4===this.source.readyState},e.prototype._onPlayStart=function(){this.hasLoaded||this._onCanPlay(),!this._isAutoUpdating&&this.autoUpdate&&(l.shared.add(this.update,this,h.UPDATE_PRIORITY.HIGH),this._isAutoUpdating=!0)},e.prototype._onPlayStop=function(){this._isAutoUpdating&&(l.shared.remove(this.update,this),this._isAutoUpdating=!1)},e.prototype._onCanPlay=function(){this.hasLoaded=!0,this.source&&(this.source.removeEventListener("canplay",this._onCanPlay),this.source.removeEventListener("canplaythrough",this._onCanPlay),this.width=this.source.videoWidth,this.height=this.source.videoHeight,this.__loaded||(this.__loaded=!0,this.emit("loaded",this)),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&this.source.play())},e.prototype.destroy=function(){this._isAutoUpdating&&l.shared.remove(this.update,this),this.source&&this.source._pixiId&&(a.default.removeFromCache(this.source._pixiId),delete this.source._pixiId),t.prototype.destroy.call(this)},e.fromVideo=function(t,i){t._pixiId||(t._pixiId="video_"+(0,o.uid)());var r=o.BaseTextureCache[t._pixiId];return r||(r=new e(t,i),a.default.addToCache(r,t._pixiId)),r},e.fromUrl=function(t,i){var r=document.createElement("video");if(r.setAttribute("webkit-playsinline",""),r.setAttribute("playsinline",""),Array.isArray(t))for(var n=0;n<t.length;++n)r.appendChild(c(t[n].src||t[n],t[n].mime));else r.appendChild(c(t.src||t,t.mime));return r.load(),e.fromVideo(r,i)},n(e,[{key:"autoUpdate",get:function(){return this._autoUpdate},set:function(t){t!==this._autoUpdate&&(this._autoUpdate=t,!this._autoUpdate&&this._isAutoUpdating?(l.shared.remove(this.update,this),this._isAutoUpdating=!1):this._autoUpdate&&!this._isAutoUpdating&&(l.shared.add(this.update,this,h.UPDATE_PRIORITY.HIGH),this._isAutoUpdating=!0))}}]),e}(a.default);function c(t,e){e||(e="video/"+t.substr(t.lastIndexOf(".")+1));var i=document.createElement("source");return i.src=t,i.type=e,i}i.default=u,u.fromUrls=u.fromUrl},{"../const":46,"../ticker":120,"../utils":124,"./BaseTexture":112}],118:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=o(t("../settings")),s=t("../const"),a=o(t("./TickerListener"));function o(t){return t&&t.__esModule?t:{default:t}}var l=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._head=new a.default(null,null,1/0),this._requestId=null,this._maxElapsedMS=100,this.autoStart=!1,this.deltaTime=1,this.elapsedMS=1/n.default.TARGET_FPMS,this.lastTime=0,this.speed=1,this.started=!1,this._tick=function(t){e._requestId=null,e.started&&(e.update(t),e.started&&null===e._requestId&&e._head.next&&(e._requestId=requestAnimationFrame(e._tick)))}}return t.prototype._requestIfNeeded=function(){null===this._requestId&&this._head.next&&(this.lastTime=performance.now(),this._requestId=requestAnimationFrame(this._tick))},t.prototype._cancelIfNeeded=function(){null!==this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=null)},t.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},t.prototype.add=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.UPDATE_PRIORITY.NORMAL;return this._addListener(new a.default(t,e,i))},t.prototype.addOnce=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.UPDATE_PRIORITY.NORMAL;return this._addListener(new a.default(t,e,i,!0))},t.prototype._addListener=function(t){var e=this._head.next,i=this._head;if(e){for(;e;){if(t.priority>e.priority){t.connect(i);break}i=e,e=e.next}t.previous||t.connect(i)}else t.connect(i);return this._startIfPossible(),this},t.prototype.remove=function(t,e){for(var i=this._head.next;i;)i=i.match(t,e)?i.destroy():i.next;return this._head.next||this._cancelIfNeeded(),this},t.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},t.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},t.prototype.destroy=function(){this.stop();for(var t=this._head.next;t;)t=t.destroy(!0);this._head.destroy(),this._head=null},t.prototype.update=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:performance.now(),e=void 0;if(t>this.lastTime){(e=this.elapsedMS=t-this.lastTime)>this._maxElapsedMS&&(e=this._maxElapsedMS),this.deltaTime=e*n.default.TARGET_FPMS*this.speed;for(var i=this._head,r=i.next;r;)r=r.emit(this.deltaTime);i.next||this._cancelIfNeeded()}else this.deltaTime=this.elapsedMS=0;this.lastTime=t},r(t,[{key:"FPS",get:function(){return 1e3/this.elapsedMS}},{key:"minFPS",get:function(){return 1e3/this._maxElapsedMS},set:function(t){var e=Math.min(Math.max(0,t)/1e3,n.default.TARGET_FPMS);this._maxElapsedMS=1/e}}]),t}();i.default=l},{"../const":46,"../settings":101,"./TickerListener":119}],119:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.fn=e,this.context=i,this.priority=r,this.once=n,this.next=null,this.previous=null,this._destroyed=!1}return t.prototype.match=function(t,e){return e=e||null,this.fn===t&&this.context===e},t.prototype.emit=function(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));var e=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),e},t.prototype.connect=function(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this},t.prototype.destroy=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var e=this.previous;return this.next=t?null:e,this.previous=null,e},t}();i.default=r},{}],120:[function(t,e,i){"use strict";i.__esModule=!0,i.Ticker=i.shared=void 0;var r,n=t("./Ticker"),s=(r=n)&&r.__esModule?r:{default:r};var a=new s.default;a.autoStart=!0,a.destroy=function(){},i.shared=a,i.Ticker=s.default},{"./Ticker":118}],121:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(){return!(navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform))}},{}],122:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t){for(var e=6*t,i=new Uint16Array(e),r=0,n=0;r<e;r+=6,n+=4)i[r+0]=n+0,i[r+1]=n+1,i[r+2]=n+2,i[r+3]=n+0,i[r+4]=n+2,i[r+5]=n+3;return i}},{}],123:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;if(0===t.indexOf("data:"))return"";e=e||window.location,a||(a=document.createElement("a"));a.href=t;var i=!(t=s.default.parse(a.href)).port&&""===e.port||t.port===e.port;if(t.hostname!==e.hostname||!i||t.protocol!==e.protocol)return"anonymous";return""};var r,n=t("url"),s=(r=n)&&r.__esModule?r:{default:r};var a=void 0},{url:29}],124:[function(t,e,i){"use strict";i.__esModule=!0,i.premultiplyBlendMode=i.BaseTextureCache=i.TextureCache=i.mixins=i.pluginTarget=i.EventEmitter=i.removeItems=i.isMobile=void 0,i.uid=function(){return++p},i.hex2rgb=function(t,e){return(e=e||[])[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255,e},i.hex2string=function(t){return t=t.toString(16),"#"+(t="000000".substr(0,6-t.length)+t)},i.rgb2hex=function(t){return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},i.getResolutionOfUrl=function(t,e){var i=n.default.RETINA_PREFIX.exec(t);if(i)return parseFloat(i[1]);return void 0!==e?e:1},i.decomposeDataUri=function(t){var e=r.DATA_URI.exec(t);if(e)return{mediaType:e[1]?e[1].toLowerCase():void 0,subType:e[2]?e[2].toLowerCase():void 0,encoding:e[3]?e[3].toLowerCase():void 0,data:e[4]};return},i.getUrlFileExtension=function(t){var e=r.URL_FILE_EXTENSION.exec(t);if(e)return e[1].toLowerCase();return},i.getSvgSize=function(t){var e=r.SVG_SIZE.exec(t),i={};e&&(i[e[1]]=Math.round(parseFloat(e[3])),i[e[5]]=Math.round(parseFloat(e[7])));return i},i.skipHello=function(){f=!0},i.sayHello=function(t){if(f)return;if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var e=["\n %c %c %c PixiJS "+r.VERSION+" - ✰ "+t+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];window.console.log.apply(console,e)}else window.console&&window.console.log("PixiJS "+r.VERSION+" - "+t+" - http://www.pixijs.com/");f=!0},i.isWebGLSupported=function(){var t={stencil:!0,failIfMajorPerformanceCaveat:!0};try{if(!window.WebGLRenderingContext)return!1;var e=document.createElement("canvas"),i=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),r=!(!i||!i.getContextAttributes().stencil);if(i){var n=i.getExtension("WEBGL_lose_context");n&&n.loseContext()}return i=null,r}catch(t){return!1}},i.sign=function(t){return 0===t?0:t<0?-1:1},i.destroyTextureCache=function(){var t=void 0;for(t in _)_[t].destroy();for(t in m)m[t].destroy()},i.clearTextureCache=function(){var t=void 0;for(t in _)delete _[t];for(t in m)delete m[t]},i.correctBlendMode=function(t,e){return g[e?1:0][t]},i.premultiplyTint=function(t,e){if(1===e)return(255*e<<24)+t;if(0===e)return 0;var i=t>>16&255,r=t>>8&255,n=255&t;return(255*e<<24)+((i=i*e+.5|0)<<16)+((r=r*e+.5|0)<<8)+(n=n*e+.5|0)},i.premultiplyRgba=function(t,e,i,r){i=i||new Float32Array(4),r||void 0===r?(i[0]=t[0]*e,i[1]=t[1]*e,i[2]=t[2]*e):(i[0]=t[0],i[1]=t[1],i[2]=t[2]);return i[3]=e,i},i.premultiplyTintToRgba=function(t,e,i,r){(i=i||new Float32Array(4))[0]=(t>>16&255)/255,i[1]=(t>>8&255)/255,i[2]=(255&t)/255,(r||void 0===r)&&(i[0]*=e,i[1]*=e,i[2]*=e);return i[3]=e,i};var r=t("../const"),n=d(t("../settings")),s=d(t("eventemitter3")),a=d(t("./pluginTarget")),o=c(t("./mixin")),l=c(t("ismobilejs")),h=d(t("remove-array-items")),u=d(t("./mapPremultipliedBlendModes"));function c(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}function d(t){return t&&t.__esModule?t:{default:t}}var p=0,f=!1;i.isMobile=l,i.removeItems=h.default,i.EventEmitter=s.default,i.pluginTarget=a.default,i.mixins=o;var _=i.TextureCache=Object.create(null),m=i.BaseTextureCache=Object.create(null);var g=i.premultiplyBlendMode=(0,u.default)()},{"../const":46,"../settings":101,"./mapPremultipliedBlendModes":125,"./mixin":127,"./pluginTarget":128,eventemitter3:3,ismobilejs:4,"remove-array-items":31}],125:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(){for(var t=[],e=[],i=0;i<32;i++)t[i]=i,e[i]=i;t[r.BLEND_MODES.NORMAL_NPM]=r.BLEND_MODES.NORMAL,t[r.BLEND_MODES.ADD_NPM]=r.BLEND_MODES.ADD,t[r.BLEND_MODES.SCREEN_NPM]=r.BLEND_MODES.SCREEN,e[r.BLEND_MODES.NORMAL]=r.BLEND_MODES.NORMAL_NPM,e[r.BLEND_MODES.ADD]=r.BLEND_MODES.ADD_NPM,e[r.BLEND_MODES.SCREEN]=r.BLEND_MODES.SCREEN_NPM;var n=[];return n.push(e),n.push(t),n};var r=t("../const")},{"../const":46}],126:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t){if(s.default.tablet||s.default.phone)return 4;return t};var r,n=t("ismobilejs"),s=(r=n)&&r.__esModule?r:{default:r}},{ismobilejs:4}],127:[function(t,e,i){"use strict";function r(t,e){if(t&&e)for(var i=Object.keys(e),r=0;r<i.length;++r){var n=i[r];Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}}i.__esModule=!0,i.mixin=r,i.delayMixin=function(t,e){n.push(t,e)},i.performMixins=function(){for(var t=0;t<n.length;t+=2)r(n[t],n[t+1]);n.length=0};var n=[]},{}],128:[function(t,e,i){"use strict";i.__esModule=!0,i.default={mixin:function(t){var e;(e=t).__plugins={},e.registerPlugin=function(t,i){e.__plugins[t]=i},e.prototype.initPlugins=function(){for(var t in this.plugins=this.plugins||{},e.__plugins)this.plugins[t]=new e.__plugins[t](this)},e.prototype.destroyPlugins=function(){for(var t in this.plugins)this.plugins[t].destroy(),this.plugins[t]=null;this.plugins=null}}}},{}],129:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t){var e=t.width,i=t.height,r=t.getContext("2d"),n=r.getImageData(0,0,e,i).data,s=n.length,a={top:null,left:null,right:null,bottom:null},o=void 0,l=void 0,h=void 0;for(o=0;o<s;o+=4)0!==n[o+3]&&(l=o/4%e,h=~~(o/4/e),null===a.top&&(a.top=h),null===a.left?a.left=l:l<a.left&&(a.left=l),null===a.right?a.right=l+1:a.right<l&&(a.right=l+1),null===a.bottom?a.bottom=h:a.bottom<h&&(a.bottom=h));e=a.right-a.left,i=a.bottom-a.top+1;var u=r.getImageData(a.left,a.top,e,i);return{height:i,width:e,data:u}}},{}],130:[function(t,e,i){"use strict";function r(t){var e=(new Error).stack;void 0===e?console.warn("Deprecation Warning: ",t):(e=e.split("\n").splice(3).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cDeprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",t),console.warn(e),console.groupEnd()):(console.warn("Deprecation Warning: ",t),console.warn(e)))}i.__esModule=!0,i.default=function(t){var e=t.mesh,i=t.particles,n=t.extras,s=t.filters,a=t.prepare,o=t.loaders,l=t.interaction;Object.defineProperties(t,{SpriteBatch:{get:function(){throw new ReferenceError("SpriteBatch does not exist any more, please use the new ParticleContainer instead.")}},AssetLoader:{get:function(){throw new ReferenceError("The loader system was overhauled in PixiJS v3, please see the new PIXI.loaders.Loader class.")}},Stage:{get:function(){return r("You do not need to use a PIXI Stage any more, you can simply render any container."),t.Container}},DisplayObjectContainer:{get:function(){return r("DisplayObjectContainer has been shortened to Container, please use Container from now on."),t.Container}},Strip:{get:function(){return r("The Strip class has been renamed to Mesh and moved to mesh.Mesh, please use mesh.Mesh from now on."),e.Mesh}},Rope:{get:function(){return r("The Rope class has been moved to mesh.Rope, please use mesh.Rope from now on."),e.Rope}},ParticleContainer:{get:function(){return r("The ParticleContainer class has been moved to particles.ParticleContainer, please use particles.ParticleContainer from now on."),i.ParticleContainer}},MovieClip:{get:function(){return r("The MovieClip class has been moved to extras.AnimatedSprite, please use extras.AnimatedSprite."),n.AnimatedSprite}},TilingSprite:{get:function(){return r("The TilingSprite class has been moved to extras.TilingSprite, please use extras.TilingSprite from now on."),n.TilingSprite}},BitmapText:{get:function(){return r("The BitmapText class has been moved to extras.BitmapText, please use extras.BitmapText from now on."),n.BitmapText}},blendModes:{get:function(){return r("The blendModes has been moved to BLEND_MODES, please use BLEND_MODES from now on."),t.BLEND_MODES}},scaleModes:{get:function(){return r("The scaleModes has been moved to SCALE_MODES, please use SCALE_MODES from now on."),t.SCALE_MODES}},BaseTextureCache:{get:function(){return r("The BaseTextureCache class has been moved to utils.BaseTextureCache, please use utils.BaseTextureCache from now on."),t.utils.BaseTextureCache}},TextureCache:{get:function(){return r("The TextureCache class has been moved to utils.TextureCache, please use utils.TextureCache from now on."),t.utils.TextureCache}},math:{get:function(){return r("The math namespace is deprecated, please access members already accessible on PIXI."),t}},AbstractFilter:{get:function(){return r("AstractFilter has been renamed to Filter, please use PIXI.Filter"),t.Filter}},TransformManual:{get:function(){return r("TransformManual has been renamed to TransformBase, please update your pixi-spine"),t.TransformBase}},TARGET_FPMS:{get:function(){return r("PIXI.TARGET_FPMS has been deprecated, please use PIXI.settings.TARGET_FPMS"),t.settings.TARGET_FPMS},set:function(e){r("PIXI.TARGET_FPMS has been deprecated, please use PIXI.settings.TARGET_FPMS"),t.settings.TARGET_FPMS=e}},FILTER_RESOLUTION:{get:function(){return r("PIXI.FILTER_RESOLUTION has been deprecated, please use PIXI.settings.FILTER_RESOLUTION"),t.settings.FILTER_RESOLUTION},set:function(e){r("PIXI.FILTER_RESOLUTION has been deprecated, please use PIXI.settings.FILTER_RESOLUTION"),t.settings.FILTER_RESOLUTION=e}},RESOLUTION:{get:function(){return r("PIXI.RESOLUTION has been deprecated, please use PIXI.settings.RESOLUTION"),t.settings.RESOLUTION},set:function(e){r("PIXI.RESOLUTION has been deprecated, please use PIXI.settings.RESOLUTION"),t.settings.RESOLUTION=e}},MIPMAP_TEXTURES:{get:function(){return r("PIXI.MIPMAP_TEXTURES has been deprecated, please use PIXI.settings.MIPMAP_TEXTURES"),t.settings.MIPMAP_TEXTURES},set:function(e){r("PIXI.MIPMAP_TEXTURES has been deprecated, please use PIXI.settings.MIPMAP_TEXTURES"),t.settings.MIPMAP_TEXTURES=e}},SPRITE_BATCH_SIZE:{get:function(){return r("PIXI.SPRITE_BATCH_SIZE has been deprecated, please use PIXI.settings.SPRITE_BATCH_SIZE"),t.settings.SPRITE_BATCH_SIZE},set:function(e){r("PIXI.SPRITE_BATCH_SIZE has been deprecated, please use PIXI.settings.SPRITE_BATCH_SIZE"),t.settings.SPRITE_BATCH_SIZE=e}},SPRITE_MAX_TEXTURES:{get:function(){return r("PIXI.SPRITE_MAX_TEXTURES has been deprecated, please use PIXI.settings.SPRITE_MAX_TEXTURES"),t.settings.SPRITE_MAX_TEXTURES},set:function(e){r("PIXI.SPRITE_MAX_TEXTURES has been deprecated, please use PIXI.settings.SPRITE_MAX_TEXTURES"),t.settings.SPRITE_MAX_TEXTURES=e}},RETINA_PREFIX:{get:function(){return r("PIXI.RETINA_PREFIX has been deprecated, please use PIXI.settings.RETINA_PREFIX"),t.settings.RETINA_PREFIX},set:function(e){r("PIXI.RETINA_PREFIX has been deprecated, please use PIXI.settings.RETINA_PREFIX"),t.settings.RETINA_PREFIX=e}},DEFAULT_RENDER_OPTIONS:{get:function(){return r("PIXI.DEFAULT_RENDER_OPTIONS has been deprecated, please use PIXI.settings.DEFAULT_RENDER_OPTIONS"),t.settings.RENDER_OPTIONS}}});for(var h=[{parent:"TRANSFORM_MODE",target:"TRANSFORM_MODE"},{parent:"GC_MODES",target:"GC_MODE"},{parent:"WRAP_MODES",target:"WRAP_MODE"},{parent:"SCALE_MODES",target:"SCALE_MODE"},{parent:"PRECISION",target:"PRECISION_FRAGMENT"}],u=function(e){var i=h[e];Object.defineProperty(t[i.parent],"DEFAULT",{get:function(){return r("PIXI."+i.parent+".DEFAULT has been deprecated, please use PIXI.settings."+i.target),t.settings[i.target]},set:function(e){r("PIXI."+i.parent+".DEFAULT has been deprecated, please use PIXI.settings."+i.target),t.settings[i.target]=e}})},c=0;c<h.length;c++)u(c);Object.defineProperties(t.settings,{PRECISION:{get:function(){return r("PIXI.settings.PRECISION has been deprecated, please use PIXI.settings.PRECISION_FRAGMENT"),t.settings.PRECISION_FRAGMENT},set:function(e){r("PIXI.settings.PRECISION has been deprecated, please use PIXI.settings.PRECISION_FRAGMENT"),t.settings.PRECISION_FRAGMENT=e}}}),n.AnimatedSprite&&Object.defineProperties(n,{MovieClip:{get:function(){return r("The MovieClip class has been renamed to AnimatedSprite, please use AnimatedSprite from now on."),n.AnimatedSprite}}});t.DisplayObject.prototype.generateTexture=function(t,e,i){return r("generateTexture has moved to the renderer, please use renderer.generateTexture(displayObject)"),t.generateTexture(this,e,i)},t.Graphics.prototype.generateTexture=function(t,e){return r("graphics generate texture has moved to the renderer. Or to render a graphics to a texture using canvas please use generateCanvasTexture"),this.generateCanvasTexture(t,e)},t.RenderTexture.prototype.render=function(t,e,i,n){this.legacyRenderer.render(t,this,i,e,!n),r("RenderTexture.render is now deprecated, please use renderer.render(displayObject, renderTexture)")},t.RenderTexture.prototype.getImage=function(t){return r("RenderTexture.getImage is now deprecated, please use renderer.extract.image(target)"),this.legacyRenderer.extract.image(t)},t.RenderTexture.prototype.getBase64=function(t){return r("RenderTexture.getBase64 is now deprecated, please use renderer.extract.base64(target)"),this.legacyRenderer.extract.base64(t)},t.RenderTexture.prototype.getCanvas=function(t){return r("RenderTexture.getCanvas is now deprecated, please use renderer.extract.canvas(target)"),this.legacyRenderer.extract.canvas(t)},t.RenderTexture.prototype.getPixels=function(t){return r("RenderTexture.getPixels is now deprecated, please use renderer.extract.pixels(target)"),this.legacyRenderer.pixels(t)},t.Sprite.prototype.setTexture=function(t){this.texture=t,r("setTexture is now deprecated, please use the texture property, e.g : sprite.texture = texture;")},n.BitmapText&&(n.BitmapText.prototype.setText=function(t){this.text=t,r("setText is now deprecated, please use the text property, e.g : myBitmapText.text = 'my text';")});t.Text.prototype.setText=function(t){this.text=t,r("setText is now deprecated, please use the text property, e.g : myText.text = 'my text';")},t.Text.calculateFontProperties=function(e){return r("Text.calculateFontProperties is now deprecated, please use the TextMetrics.measureFont"),t.TextMetrics.measureFont(e)},Object.defineProperties(t.Text,{fontPropertiesCache:{get:function(){return r("Text.fontPropertiesCache is deprecated"),t.TextMetrics._fonts}},fontPropertiesCanvas:{get:function(){return r("Text.fontPropertiesCanvas is deprecated"),t.TextMetrics._canvas}},fontPropertiesContext:{get:function(){return r("Text.fontPropertiesContext is deprecated"),t.TextMetrics._context}}}),t.Text.prototype.setStyle=function(t){this.style=t,r("setStyle is now deprecated, please use the style property, e.g : myText.style = style;")},t.Text.prototype.determineFontProperties=function(e){return r("determineFontProperties is now deprecated, please use TextMetrics.measureFont method"),t.TextMetrics.measureFont(e)},t.Text.getFontStyle=function(e){return r("getFontStyle is now deprecated, please use TextStyle.toFontString() instead"),(e=e||{})instanceof t.TextStyle||(e=new t.TextStyle(e)),e.toFontString()},Object.defineProperties(t.TextStyle.prototype,{font:{get:function(){r("text style property 'font' is now deprecated, please use the 'fontFamily', 'fontSize', 'fontStyle', 'fontVariant' and 'fontWeight' properties from now on");var t="number"==typeof this._fontSize?this._fontSize+"px":this._fontSize;return this._fontStyle+" "+this._fontVariant+" "+this._fontWeight+" "+t+" "+this._fontFamily},set:function(t){r("text style property 'font' is now deprecated, please use the 'fontFamily','fontSize',fontStyle','fontVariant' and 'fontWeight' properties from now on"),t.indexOf("italic")>1?this._fontStyle="italic":t.indexOf("oblique")>-1?this._fontStyle="oblique":this._fontStyle="normal",t.indexOf("small-caps")>-1?this._fontVariant="small-caps":this._fontVariant="normal";var e=t.split(" "),i=-1;this._fontSize=26;for(var n=0;n<e.length;++n)if(e[n].match(/(px|pt|em|%)/)){i=n,this._fontSize=e[n];break}this._fontWeight="normal";for(var s=0;s<i;++s)if(e[s].match(/(bold|bolder|lighter|100|200|300|400|500|600|700|800|900)/)){this._fontWeight=e[s];break}if(i>-1&&i<e.length-1){this._fontFamily="";for(var a=i+1;a<e.length;++a)this._fontFamily+=e[a]+" ";this._fontFamily=this._fontFamily.slice(0,-1)}else this._fontFamily="Arial";this.styleID++}}}),t.Texture.prototype.setFrame=function(t){this.frame=t,r("setFrame is now deprecated, please use the frame property, e.g: myTexture.frame = frame;")},t.Texture.addTextureToCache=function(e,i){t.Texture.addToCache(e,i),r("Texture.addTextureToCache is deprecated, please use Texture.addToCache from now on.")},t.Texture.removeTextureFromCache=function(e){return r("Texture.removeTextureFromCache is deprecated, please use Texture.removeFromCache from now on. Be aware that Texture.removeFromCache does not automatically its BaseTexture from the BaseTextureCache. For that, use BaseTexture.removeFromCache"),t.BaseTexture.removeFromCache(e),t.Texture.removeFromCache(e)},Object.defineProperties(s,{AbstractFilter:{get:function(){return r("AstractFilter has been renamed to Filter, please use PIXI.Filter"),t.AbstractFilter}},SpriteMaskFilter:{get:function(){return r("filters.SpriteMaskFilter is an undocumented alias, please use SpriteMaskFilter from now on."),t.SpriteMaskFilter}}}),t.utils.uuid=function(){return r("utils.uuid() is deprecated, please use utils.uid() from now on."),t.utils.uid()},t.utils.canUseNewCanvasBlendModes=function(){return r("utils.canUseNewCanvasBlendModes() is deprecated, please use CanvasTinter.canUseMultiply from now on"),t.CanvasTinter.canUseMultiply};var d=!0;Object.defineProperty(t.utils,"_saidHello",{set:function(t){t&&(r("PIXI.utils._saidHello is deprecated, please use PIXI.utils.skipHello()"),this.skipHello()),d=t},get:function(){return d}}),a.BasePrepare&&(a.BasePrepare.prototype.register=function(t,e){return r("renderer.plugins.prepare.register is now deprecated, please use renderer.plugins.prepare.registerFindHook & renderer.plugins.prepare.registerUploadHook"),t&&this.registerFindHook(t),e&&this.registerUploadHook(e),this});a.canvas&&Object.defineProperty(a.canvas,"UPLOADS_PER_FRAME",{set:function(){r("PIXI.CanvasPrepare.UPLOADS_PER_FRAME has been removed. Please set renderer.plugins.prepare.limiter.maxItemsPerFrame on your renderer")},get:function(){return r("PIXI.CanvasPrepare.UPLOADS_PER_FRAME has been removed. Please use renderer.plugins.prepare.limiter"),NaN}});a.webgl&&Object.defineProperty(a.webgl,"UPLOADS_PER_FRAME",{set:function(){r("PIXI.WebGLPrepare.UPLOADS_PER_FRAME has been removed. Please set renderer.plugins.prepare.limiter.maxItemsPerFrame on your renderer")},get:function(){return r("PIXI.WebGLPrepare.UPLOADS_PER_FRAME has been removed. Please use renderer.plugins.prepare.limiter"),NaN}});if(o.Loader){var p=o.Resource,f=o.Loader;Object.defineProperties(p.prototype,{isJson:{get:function(){return r("The isJson property is deprecated, please use `resource.type === Resource.TYPE.JSON`."),this.type===p.TYPE.JSON}},isXml:{get:function(){return r("The isXml property is deprecated, please use `resource.type === Resource.TYPE.XML`."),this.type===p.TYPE.XML}},isImage:{get:function(){return r("The isImage property is deprecated, please use `resource.type === Resource.TYPE.IMAGE`."),this.type===p.TYPE.IMAGE}},isAudio:{get:function(){return r("The isAudio property is deprecated, please use `resource.type === Resource.TYPE.AUDIO`."),this.type===p.TYPE.AUDIO}},isVideo:{get:function(){return r("The isVideo property is deprecated, please use `resource.type === Resource.TYPE.VIDEO`."),this.type===p.TYPE.VIDEO}}}),Object.defineProperties(f.prototype,{before:{get:function(){return r("The before() method is deprecated, please use pre()."),this.pre}},after:{get:function(){return r("The after() method is deprecated, please use use()."),this.use}}})}l.interactiveTarget&&Object.defineProperty(l.interactiveTarget,"defaultCursor",{set:function(t){r("Property defaultCursor has been replaced with 'cursor'. "),this.cursor=t},get:function(){return r("Property defaultCursor has been replaced with 'cursor'. "),this.cursor}});l.InteractionManager&&(Object.defineProperty(l.InteractionManager,"defaultCursorStyle",{set:function(t){r("Property defaultCursorStyle has been replaced with 'cursorStyles.default'. "),this.cursorStyles.default=t},get:function(){return r("Property defaultCursorStyle has been replaced with 'cursorStyles.default'. "),this.cursorStyles.default}}),Object.defineProperty(l.InteractionManager,"currentCursorStyle",{set:function(t){r("Property currentCursorStyle has been removed.See the currentCursorMode property, which works differently."),this.currentCursorMode=t},get:function(){return r("Property currentCursorStyle has been removed.See the currentCursorMode property, which works differently."),this.currentCursorMode}}))}},{}],131:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../../core"));var n=new r.Rectangle,s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.renderer=e,e.extract=this}return t.prototype.image=function(t){var e=new Image;return e.src=this.base64(t),e},t.prototype.base64=function(t){return this.canvas(t).toDataURL()},t.prototype.canvas=function(t){var e=this.renderer,i=void 0,s=void 0,a=void 0,o=void 0;t&&(o=t instanceof r.RenderTexture?t:e.generateTexture(t)),o?(i=o.baseTexture._canvasRenderTarget.context,s=o.baseTexture._canvasRenderTarget.resolution,a=o.frame):(i=e.rootContext,(a=n).width=this.renderer.width,a.height=this.renderer.height);var l=a.width*s,h=a.height*s,u=new r.CanvasRenderTarget(l,h),c=i.getImageData(a.x*s,a.y*s,l,h);return u.context.putImageData(c,0,0),u.canvas},t.prototype.pixels=function(t){var e=this.renderer,i=void 0,s=void 0,a=void 0,o=void 0;return t&&(o=t instanceof r.RenderTexture?t:e.generateTexture(t)),o?(i=o.baseTexture._canvasRenderTarget.context,s=o.baseTexture._canvasRenderTarget.resolution,a=o.frame):(i=e.rootContext,(a=n).width=e.width,a.height=e.height),i.getImageData(0,0,a.width*s,a.height*s).data},t.prototype.destroy=function(){this.renderer.extract=null,this.renderer=null},t}();i.default=s,r.CanvasRenderer.registerPlugin("extract",s)},{"../../core":65}],132:[function(t,e,i){"use strict";i.__esModule=!0;var r=t("./webgl/WebGLExtract");Object.defineProperty(i,"webgl",{enumerable:!0,get:function(){return s(r).default}});var n=t("./canvas/CanvasExtract");function s(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(i,"canvas",{enumerable:!0,get:function(){return s(n).default}})},{"./canvas/CanvasExtract":131,"./webgl/WebGLExtract":133}],133:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../../core"));var n=new r.Rectangle,s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.renderer=e,e.extract=this}return t.prototype.image=function(t){var e=new Image;return e.src=this.base64(t),e},t.prototype.base64=function(t){return this.canvas(t).toDataURL()},t.prototype.canvas=function(t){var e=this.renderer,i=void 0,s=void 0,a=void 0,o=!1,l=void 0;t&&(l=t instanceof r.RenderTexture?t:this.renderer.generateTexture(t)),l?(s=(i=l.baseTexture._glRenderTargets[this.renderer.CONTEXT_UID]).resolution,a=l.frame,o=!1):(s=(i=this.renderer.rootRenderTarget).resolution,o=!0,(a=n).width=i.size.width,a.height=i.size.height);var h=a.width*s,u=a.height*s,c=new r.CanvasRenderTarget(h,u);if(i){e.bindRenderTarget(i);var d=new Uint8Array(4*h*u),p=e.gl;p.readPixels(a.x*s,a.y*s,h,u,p.RGBA,p.UNSIGNED_BYTE,d);var f=c.context.getImageData(0,0,h,u);f.data.set(d),c.context.putImageData(f,0,0),o&&(c.context.scale(1,-1),c.context.drawImage(c.canvas,0,-u))}return c.canvas},t.prototype.pixels=function(t){var e=this.renderer,i=void 0,s=void 0,a=void 0,o=void 0;t&&(o=t instanceof r.RenderTexture?t:this.renderer.generateTexture(t)),o?(s=(i=o.baseTexture._glRenderTargets[this.renderer.CONTEXT_UID]).resolution,a=o.frame):(s=(i=this.renderer.rootRenderTarget).resolution,(a=n).width=i.size.width,a.height=i.size.height);var l=a.width*s,h=a.height*s,u=new Uint8Array(4*l*h);if(i){e.bindRenderTarget(i);var c=e.gl;c.readPixels(a.x*s,a.y*s,l,h,c.RGBA,c.UNSIGNED_BYTE,u)}return u},t.prototype.destroy=function(){this.renderer.extract=null,this.renderer=null},t}();i.default=s,r.WebGLRenderer.registerPlugin("extract",s)},{"../../core":65}],134:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../core"));var s=function(t){function e(i,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var s=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i[0]instanceof n.Texture?i[0]:i[0].texture));return s._textures=null,s._durations=null,s.textures=i,s._autoUpdate=!1!==r,s.animationSpeed=1,s.loop=!0,s.onComplete=null,s.onFrameChange=null,s.onLoop=null,s._currentTime=0,s.playing=!1,s}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.stop=function(){this.playing&&(this.playing=!1,this._autoUpdate&&n.ticker.shared.remove(this.update,this))},e.prototype.play=function(){this.playing||(this.playing=!0,this._autoUpdate&&n.ticker.shared.add(this.update,this,n.UPDATE_PRIORITY.HIGH))},e.prototype.gotoAndStop=function(t){this.stop();var e=this.currentFrame;this._currentTime=t,e!==this.currentFrame&&this.updateTexture()},e.prototype.gotoAndPlay=function(t){var e=this.currentFrame;this._currentTime=t,e!==this.currentFrame&&this.updateTexture(),this.play()},e.prototype.update=function(t){var e=this.animationSpeed*t,i=this.currentFrame;if(null!==this._durations){var r=this._currentTime%1*this._durations[this.currentFrame];for(r+=e/60*1e3;r<0;)this._currentTime--,r+=this._durations[this.currentFrame];var n=Math.sign(this.animationSpeed*t);for(this._currentTime=Math.floor(this._currentTime);r>=this._durations[this.currentFrame];)r-=this._durations[this.currentFrame]*n,this._currentTime+=n;this._currentTime+=r/this._durations[this.currentFrame]}else this._currentTime+=e;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):i!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFrame<i?this.onLoop():this.animationSpeed<0&&this.currentFrame>i&&this.onLoop()),this.updateTexture())},e.prototype.updateTexture=function(){this._texture=this._textures[this.currentFrame],this._textureID=-1,this.onFrameChange&&this.onFrameChange(this.currentFrame)},e.prototype.destroy=function(e){this.stop(),t.prototype.destroy.call(this,e)},e.fromFrames=function(t){for(var i=[],r=0;r<t.length;++r)i.push(n.Texture.fromFrame(t[r]));return new e(i)},e.fromImages=function(t){for(var i=[],r=0;r<t.length;++r)i.push(n.Texture.fromImage(t[r]));return new e(i)},r(e,[{key:"totalFrames",get:function(){return this._textures.length}},{key:"textures",get:function(){return this._textures},set:function(t){if(t[0]instanceof n.Texture)this._textures=t,this._durations=null;else{this._textures=[],this._durations=[];for(var e=0;e<t.length;e++)this._textures.push(t[e].texture),this._durations.push(t[e].time)}this.gotoAndStop(0),this.updateTexture()}},{key:"currentFrame",get:function(){var t=Math.floor(this._currentTime)%this._textures.length;return t<0&&(t+=this._textures.length),t}}]),e}(n.Sprite);i.default=s},{"../core":65}],135:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../core")),s=o(t("../core/math/ObservablePoint")),a=o(t("../core/settings"));function o(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return n._textWidth=0,n._textHeight=0,n._glyphs=[],n._font={tint:void 0!==r.tint?r.tint:16777215,align:r.align||"left",name:null,size:0},n.font=r.font,n._text=i,n._maxWidth=0,n._maxLineHeight=0,n._anchor=new s.default(function(){n.dirty=!0},n,0,0),n.dirty=!1,n.updateText(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.updateText=function(){for(var t=e.fonts[this._font.name],i=this._font.size/t.size,r=new n.Point,s=[],a=[],o=null,l=0,h=0,u=0,c=-1,d=0,p=0,f=0,_=0;_<this.text.length;_++){var m=this.text.charCodeAt(_);if(/(\s)/.test(this.text.charAt(_))&&(c=_,d=l),/(?:\r\n|\r|\n)/.test(this.text.charAt(_)))a.push(l),h=Math.max(h,l),u++,r.x=0,r.y+=t.lineHeight,o=null;else if(-1!==c&&this._maxWidth>0&&r.x*i>this._maxWidth)n.utils.removeItems(s,c-p,_-c),_=c,c=-1,++p,a.push(d),h=Math.max(h,d),u++,r.x=0,r.y+=t.lineHeight,o=null;else{var g=t.chars[m];g&&(o&&g.kerning[o]&&(r.x+=g.kerning[o]),s.push({texture:g.texture,line:u,charCode:m,position:new n.Point(r.x+g.xOffset,r.y+g.yOffset)}),l=r.x+(g.texture.width+g.xOffset),r.x+=g.xAdvance,f=Math.max(f,g.yOffset+g.texture.height),o=m)}}a.push(l),h=Math.max(h,l);for(var v=[],y=0;y<=u;y++){var b=0;"right"===this._font.align?b=h-a[y]:"center"===this._font.align&&(b=(h-a[y])/2),v.push(b)}for(var T=s.length,x=this.tint,E=0;E<T;E++){var w=this._glyphs[E];w?w.texture=s[E].texture:(w=new n.Sprite(s[E].texture),this._glyphs.push(w)),w.position.x=(s[E].position.x+v[s[E].line])*i,w.position.y=s[E].position.y*i,w.scale.x=w.scale.y=i,w.tint=x,w.parent||this.addChild(w)}for(var S=T;S<this._glyphs.length;++S)this.removeChild(this._glyphs[S]);if(this._textWidth=h*i,this._textHeight=(r.y+t.lineHeight)*i,0!==this.anchor.x||0!==this.anchor.y)for(var D=0;D<T;D++)this._glyphs[D].x-=this._textWidth*this.anchor.x,this._glyphs[D].y-=this._textHeight*this.anchor.y;this._maxLineHeight=f*i},e.prototype.updateTransform=function(){this.validate(),this.containerUpdateTransform()},e.prototype.getLocalBounds=function(){return this.validate(),t.prototype.getLocalBounds.call(this)},e.prototype.validate=function(){this.dirty&&(this.updateText(),this.dirty=!1)},e.registerFont=function(t,i){var r={},s=t.getElementsByTagName("info")[0],o=t.getElementsByTagName("common")[0],l=i.baseTexture.resolution||a.default.RESOLUTION;r.font=s.getAttribute("face"),r.size=parseInt(s.getAttribute("size"),10),r.lineHeight=parseInt(o.getAttribute("lineHeight"),10)/l,r.chars={};for(var h=t.getElementsByTagName("char"),u=0;u<h.length;u++){var c=h[u],d=parseInt(c.getAttribute("id"),10),p=new n.Rectangle(parseInt(c.getAttribute("x"),10)/l+i.frame.x/l,parseInt(c.getAttribute("y"),10)/l+i.frame.y/l,parseInt(c.getAttribute("width"),10)/l,parseInt(c.getAttribute("height"),10)/l);r.chars[d]={xOffset:parseInt(c.getAttribute("xoffset"),10)/l,yOffset:parseInt(c.getAttribute("yoffset"),10)/l,xAdvance:parseInt(c.getAttribute("xadvance"),10)/l,kerning:{},texture:new n.Texture(i.baseTexture,p)}}for(var f=t.getElementsByTagName("kerning"),_=0;_<f.length;_++){var m=f[_],g=parseInt(m.getAttribute("first"),10)/l,v=parseInt(m.getAttribute("second"),10)/l,y=parseInt(m.getAttribute("amount"),10)/l;r.chars[v]&&(r.chars[v].kerning[g]=y)}return e.fonts[r.font]=r,r},r(e,[{key:"tint",get:function(){return this._font.tint},set:function(t){this._font.tint="number"==typeof t&&t>=0?t:16777215,this.dirty=!0}},{key:"align",get:function(){return this._font.align},set:function(t){this._font.align=t||"left",this.dirty=!0}},{key:"anchor",get:function(){return this._anchor},set:function(t){"number"==typeof t?this._anchor.set(t):this._anchor.copy(t)}},{key:"font",get:function(){return this._font},set:function(t){t&&("string"==typeof t?(t=t.split(" "),this._font.name=1===t.length?t[0]:t.slice(1).join(" "),this._font.size=t.length>=2?parseInt(t[0],10):e.fonts[this._font.name].size):(this._font.name=t.name,this._font.size="number"==typeof t.size?t.size:parseInt(t.size,10)),this.dirty=!0)}},{key:"text",get:function(){return this._text},set:function(t){t=t.toString()||" ",this._text!==t&&(this._text=t,this.dirty=!0)}},{key:"maxWidth",get:function(){return this._maxWidth},set:function(t){this._maxWidth!==t&&(this._maxWidth=t,this.dirty=!0)}},{key:"maxLineHeight",get:function(){return this.validate(),this._maxLineHeight}},{key:"textWidth",get:function(){return this.validate(),this._textWidth}},{key:"textHeight",get:function(){return this.validate(),this._textHeight}}]),e}(n.Container);i.default=l,l.fonts={}},{"../core":65,"../core/math/ObservablePoint":68,"../core/settings":101}],136:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),s=t("../core/math/Matrix"),a=(r=s)&&r.__esModule?r:{default:r};var o=new a.default,l=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._texture=e,this.mapCoord=new a.default,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._lastTextureID=-1,this.clampOffset=0,this.clampMargin=void 0===i?.5:i}return t.prototype.multiplyUvs=function(t,e){void 0===e&&(e=t);for(var i=this.mapCoord,r=0;r<t.length;r+=2){var n=t[r],s=t[r+1];e[r]=n*i.a+s*i.c+i.tx,e[r+1]=n*i.b+s*i.d+i.ty}return e},t.prototype.update=function(t){var e=this._texture;if(!e||!e.valid)return!1;if(!t&&this._lastTextureID===e._updateID)return!1;this._lastTextureID=e._updateID;var i=e._uvs;this.mapCoord.set(i.x1-i.x0,i.y1-i.y0,i.x3-i.x0,i.y3-i.y0,i.x0,i.y0);var r=e.orig,n=e.trim;n&&(o.set(r.width/n.width,0,0,r.height/n.height,-n.x/n.width,-n.y/n.height),this.mapCoord.append(o));var s=e.baseTexture,a=this.uClampFrame,l=this.clampMargin/s.resolution,h=this.clampOffset;return a[0]=(e._frame.x+l+h)/s.width,a[1]=(e._frame.y+l+h)/s.height,a[2]=(e._frame.x+e._frame.width-l+h)/s.width,a[3]=(e._frame.y+e._frame.height-l+h)/s.height,this.uClampOffset[0]=h/s.realWidth,this.uClampOffset[1]=h/s.realHeight,!0},n(t,[{key:"texture",get:function(){return this._texture},set:function(t){this._texture=t,this._lastTextureID=-1}}]),t}();i.default=l},{"../core/math/Matrix":67}],137:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../core")),s=o(t("../core/sprites/canvas/CanvasTinter")),a=o(t("./TextureTransform"));function o(t){return t&&t.__esModule?t:{default:t}}var l=new n.Point,h=function(t){function e(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return o.tileTransform=new n.TransformStatic,o._width=r,o._height=s,o._canvasPattern=null,o.uvTransform=i.transform||new a.default(i),o.pluginName="tilingSprite",o.uvRespectAnchor=!1,o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._onTextureUpdate=function(){this.uvTransform&&(this.uvTransform.texture=this._texture)},e.prototype._renderWebGL=function(t){var e=this._texture;e&&e.valid&&(this.tileTransform.updateLocalTransform(),this.uvTransform.update(),t.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this))},e.prototype._renderCanvas=function(t){var e=this._texture;if(e.baseTexture.hasLoaded){var i=t.context,r=this.worldTransform,a=t.resolution,o=e.baseTexture,l=o.resolution,h=this.tilePosition.x/this.tileScale.x%e._frame.width*l,u=this.tilePosition.y/this.tileScale.y%e._frame.height*l;if(!this._canvasPattern){var c=new n.CanvasRenderTarget(e._frame.width,e._frame.height,l);16777215!==this.tint?(this.cachedTint!==this.tint&&(this.cachedTint=this.tint,this.tintedTexture=s.default.getTintedTexture(this,this.tint)),c.context.drawImage(this.tintedTexture,0,0)):c.context.drawImage(o.source,-e._frame.x*l,-e._frame.y*l),this._canvasPattern=c.context.createPattern(c.canvas,"repeat")}i.globalAlpha=this.worldAlpha,i.setTransform(r.a*a,r.b*a,r.c*a,r.d*a,r.tx*a,r.ty*a),t.setBlendMode(this.blendMode),i.fillStyle=this._canvasPattern,i.scale(this.tileScale.x/l,this.tileScale.y/l);var d=this.anchor.x*-this._width,p=this.anchor.y*-this._height;this.uvRespectAnchor?(i.translate(h,u),i.fillRect(-h+d,-u+p,this._width/this.tileScale.x*l,this._height/this.tileScale.y*l)):(i.translate(h+d,u+p),i.fillRect(-h,-u,this._width/this.tileScale.x*l,this._height/this.tileScale.y*l))}},e.prototype._calculateBounds=function(){var t=this._width*-this._anchor._x,e=this._height*-this._anchor._y,i=this._width*(1-this._anchor._x),r=this._height*(1-this._anchor._y);this._bounds.addFrame(this.transform,t,e,i,r)},e.prototype.getLocalBounds=function(e){return 0===this.children.length?(this._bounds.minX=this._width*-this._anchor._x,this._bounds.minY=this._height*-this._anchor._y,this._bounds.maxX=this._width*(1-this._anchor._x),this._bounds.maxY=this._height*(1-this._anchor._x),e||(this._localBoundsRect||(this._localBoundsRect=new n.Rectangle),e=this._localBoundsRect),this._bounds.getRectangle(e)):t.prototype.getLocalBounds.call(this,e)},e.prototype.containsPoint=function(t){this.worldTransform.applyInverse(t,l);var e=this._width,i=this._height,r=-e*this.anchor._x;if(l.x>=r&&l.x<r+e){var n=-i*this.anchor._y;if(l.y>=n&&l.y<n+i)return!0}return!1},e.prototype.destroy=function(e){t.prototype.destroy.call(this,e),this.tileTransform=null,this.uvTransform=null},e.from=function(t,i,r){return new e(n.Texture.from(t),i,r)},e.fromFrame=function(t,i,r){var s=n.utils.TextureCache[t];if(!s)throw new Error('The frameId "'+t+'" does not exist in the texture cache '+this);return new e(s,i,r)},e.fromImage=function(t,i,r,s,a){return new e(n.Texture.fromImage(t,s,a),i,r)},r(e,[{key:"clampMargin",get:function(){return this.uvTransform.clampMargin},set:function(t){this.uvTransform.clampMargin=t,this.uvTransform.update(!0)}},{key:"tileScale",get:function(){return this.tileTransform.scale},set:function(t){this.tileTransform.scale.copy(t)}},{key:"tilePosition",get:function(){return this.tileTransform.position},set:function(t){this.tileTransform.position.copy(t)}},{key:"width",get:function(){return this._width},set:function(t){this._width=t}},{key:"height",get:function(){return this._height},set:function(t){this._height=t}}]),e}(n.Sprite);i.default=h},{"../core":65,"../core/sprites/canvas/CanvasTinter":104,"./TextureTransform":136}],138:[function(t,e,i){"use strict";var r=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../core")),n=o(t("../core/textures/Texture")),s=o(t("../core/textures/BaseTexture")),a=t("../core/utils");function o(t){return t&&t.__esModule?t:{default:t}}var l=r.DisplayObject,h=new r.Matrix;l.prototype._cacheAsBitmap=!1,l.prototype._cacheData=!1;var u=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.textureCacheId=null,this.originalRenderWebGL=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalHitTest=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.sprite=null};Object.defineProperties(l.prototype,{cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(t){if(this._cacheAsBitmap!==t){this._cacheAsBitmap=t;var e=void 0;t?(this._cacheData||(this._cacheData=new u),(e=this._cacheData).originalRenderWebGL=this.renderWebGL,e.originalRenderCanvas=this.renderCanvas,e.originalUpdateTransform=this.updateTransform,e.originalCalculateBounds=this._calculateBounds,e.originalGetLocalBounds=this.getLocalBounds,e.originalDestroy=this.destroy,e.originalContainsPoint=this.containsPoint,e.originalMask=this._mask,e.originalFilterArea=this.filterArea,this.renderWebGL=this._renderCachedWebGL,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):((e=this._cacheData).sprite&&this._destroyCachedDisplayObject(),this.renderWebGL=e.originalRenderWebGL,this.renderCanvas=e.originalRenderCanvas,this._calculateBounds=e.originalCalculateBounds,this.getLocalBounds=e.originalGetLocalBounds,this.destroy=e.originalDestroy,this.updateTransform=e.originalUpdateTransform,this.containsPoint=e.originalContainsPoint,this._mask=e.originalMask,this.filterArea=e.originalFilterArea)}}}}),l.prototype._renderCachedWebGL=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(t),this._cacheData.sprite._transformID=-1,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderWebGL(t))},l.prototype._initCachedDisplayObject=function(t){if(!this._cacheData||!this._cacheData.sprite){var e=this.alpha;this.alpha=1,t.currentRenderer.flush();var i=this.getLocalBounds().clone();if(this._filters){var o=this._filters[0].padding;i.pad(o)}var l=t._activeRenderTarget,u=t.filterManager.filterStack,c=r.RenderTexture.create(0|i.width,0|i.height),d="cacheAsBitmap_"+(0,a.uid)();this._cacheData.textureCacheId=d,s.default.addToCache(c.baseTexture,d),n.default.addToCache(c,d);var p=h;p.tx=-i.x,p.ty=-i.y,this.transform.worldTransform.identity(),this.renderWebGL=this._cacheData.originalRenderWebGL,t.render(this,c,!0,p,!0),t.bindRenderTarget(l),t.filterManager.filterStack=u,this.renderWebGL=this._renderCachedWebGL,this.updateTransform=this.displayObjectUpdateTransform,this._mask=null,this.filterArea=null;var f=new r.Sprite(c);f.transform.worldTransform=this.transform.worldTransform,f.anchor.x=-i.x/i.width,f.anchor.y=-i.y/i.height,f.alpha=e,f._bounds=this._bounds,this._calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._cacheData.sprite=f,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=t._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=f.containsPoint.bind(f)}},l.prototype._renderCachedCanvas=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(t),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite.renderCanvas(t))},l.prototype._initCachedDisplayObjectCanvas=function(t){if(!this._cacheData||!this._cacheData.sprite){var e=this.getLocalBounds(),i=this.alpha;this.alpha=1;var o=t.context,l=r.RenderTexture.create(0|e.width,0|e.height),u="cacheAsBitmap_"+(0,a.uid)();this._cacheData.textureCacheId=u,s.default.addToCache(l.baseTexture,u),n.default.addToCache(l,u);var c=h;this.transform.localTransform.copy(c),c.invert(),c.tx-=e.x,c.ty-=e.y,this.renderCanvas=this._cacheData.originalRenderCanvas,t.render(this,l,!0,c,!1),t.context=o,this.renderCanvas=this._renderCachedCanvas,this._calculateBounds=this._calculateCachedBounds,this._mask=null,this.filterArea=null;var d=new r.Sprite(l);d.transform.worldTransform=this.transform.worldTransform,d.anchor.x=-e.x/e.width,d.anchor.y=-e.y/e.height,d._bounds=this._bounds,d.alpha=i,this.parent?this.updateTransform():(this.parent=t._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.updateTransform=this.displayObjectUpdateTransform,this._cacheData.sprite=d,this.containsPoint=d.containsPoint.bind(d)}},l.prototype._calculateCachedBounds=function(){this._cacheData.sprite._calculateBounds()},l.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds()},l.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,s.default.removeFromCache(this._cacheData.textureCacheId),n.default.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null},l.prototype._cacheAsBitmapDestroy=function(t){this.cacheAsBitmap=!1,this.destroy(t)}},{"../core":65,"../core/textures/BaseTexture":112,"../core/textures/Texture":115,"../core/utils":124}],139:[function(t,e,i){"use strict";var r=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../core"));r.DisplayObject.prototype.name=null,r.Container.prototype.getChildByName=function(t){for(var e=0;e<this.children.length;e++)if(this.children[e].name===t)return this.children[e];return null}},{"../core":65}],140:[function(t,e,i){"use strict";var r=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../core"));r.DisplayObject.prototype.getGlobalPosition=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new r.Point,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.parent?this.parent.toGlobal(this.position,t,e):(t.x=this.position.x,t.y=this.position.y),t}},{"../core":65}],141:[function(t,e,i){"use strict";i.__esModule=!0,i.BitmapText=i.TilingSpriteRenderer=i.TilingSprite=i.TextureTransform=i.AnimatedSprite=void 0;var r=t("./AnimatedSprite");Object.defineProperty(i,"AnimatedSprite",{enumerable:!0,get:function(){return l(r).default}});var n=t("./TextureTransform");Object.defineProperty(i,"TextureTransform",{enumerable:!0,get:function(){return l(n).default}});var s=t("./TilingSprite");Object.defineProperty(i,"TilingSprite",{enumerable:!0,get:function(){return l(s).default}});var a=t("./webgl/TilingSpriteRenderer");Object.defineProperty(i,"TilingSpriteRenderer",{enumerable:!0,get:function(){return l(a).default}});var o=t("./BitmapText");function l(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(i,"BitmapText",{enumerable:!0,get:function(){return l(o).default}}),t("./cacheAsBitmap"),t("./getChildByName"),t("./getGlobalPosition")},{"./AnimatedSprite":134,"./BitmapText":135,"./TextureTransform":136,"./TilingSprite":137,"./cacheAsBitmap":138,"./getChildByName":139,"./getGlobalPosition":140,"./webgl/TilingSpriteRenderer":142}],142:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../../core")),n=t("../../core/const");t("path");var s=new r.Matrix,a=function(t){function e(i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return r.shader=null,r.simpleShader=null,r.quad=null,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.onContextChange=function(){var t=this.renderer.gl;this.shader=new r.Shader(t,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n","varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\n vec2 coord = mod(vTextureCoord - uClampOffset, vec2(1.0, 1.0)) + uClampOffset;\n coord = (uMapCoord * vec3(coord, 1.0)).xy;\n coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n vec4 sample = texture2D(uSampler, coord);\n gl_FragColor = sample * uColor;\n}\n"),this.simpleShader=new r.Shader(t,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n","varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\n\nvoid main(void)\n{\n vec4 sample = texture2D(uSampler, vTextureCoord);\n gl_FragColor = sample * uColor;\n}\n"),this.renderer.bindVao(null),this.quad=new r.Quad(t,this.renderer.state.attribState),this.quad.initVao(this.shader)},e.prototype.render=function(t){var e=this.renderer,i=this.quad;e.bindVao(i.vao);var a=i.vertices;a[0]=a[6]=t._width*-t.anchor.x,a[1]=a[3]=t._height*-t.anchor.y,a[2]=a[4]=t._width*(1-t.anchor.x),a[5]=a[7]=t._height*(1-t.anchor.y),t.uvRespectAnchor&&((a=i.uvs)[0]=a[6]=-t.anchor.x,a[1]=a[3]=-t.anchor.y,a[2]=a[4]=1-t.anchor.x,a[5]=a[7]=1-t.anchor.y),i.upload();var o=t._texture,l=o.baseTexture,h=t.tileTransform.localTransform,u=t.uvTransform,c=l.isPowerOfTwo&&o.frame.width===l.width&&o.frame.height===l.height;c&&(l._glTextures[e.CONTEXT_UID]?c=l.wrapMode!==n.WRAP_MODES.CLAMP:l.wrapMode===n.WRAP_MODES.CLAMP&&(l.wrapMode=n.WRAP_MODES.REPEAT));var d=c?this.simpleShader:this.shader;e.bindShader(d);var p=o.width,f=o.height,_=t._width,m=t._height;s.set(h.a*p/_,h.b*p/m,h.c*f/_,h.d*f/m,h.tx/_,h.ty/m),s.invert(),c?s.prepend(u.mapCoord):(d.uniforms.uMapCoord=u.mapCoord.toArray(!0),d.uniforms.uClampFrame=u.uClampFrame,d.uniforms.uClampOffset=u.uClampOffset),d.uniforms.uTransform=s.toArray(!0),d.uniforms.uColor=r.utils.premultiplyTintToRgba(t.tint,t.worldAlpha,d.uniforms.uColor,l.premultipliedAlpha),d.uniforms.translationMatrix=t.transform.worldTransform.toArray(!0),d.uniforms.uSampler=e.bindTexture(o),e.setBlendMode(r.utils.correctBlendMode(t.blendMode,l.premultipliedAlpha)),i.vao.draw(this.renderer.gl.TRIANGLES,6,0)},e}(r.ObjectRenderer);i.default=a,r.WebGLRenderer.registerPlugin("tilingSprite",a)},{"../../core":65,"../../core/const":46,path:23}],143:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../../core")),s=o(t("./BlurXFilter")),a=o(t("./BlurYFilter"));function o(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(i,r,o,l){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var h=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return h.blurXFilter=new s.default(i,r,o,l),h.blurYFilter=new a.default(i,r,o,l),h.padding=0,h.resolution=o||n.settings.RESOLUTION,h.quality=r||4,h.blur=i||8,h}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.apply=function(t,e,i){var r=t.getRenderTarget(!0);this.blurXFilter.apply(t,e,r,!0),this.blurYFilter.apply(t,r,i,!1),t.returnRenderTarget(r)},r(e,[{key:"blur",get:function(){return this.blurXFilter.blur},set:function(t){this.blurXFilter.blur=this.blurYFilter.blur=t,this.padding=2*Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))}},{key:"quality",get:function(){return this.blurXFilter.quality},set:function(t){this.blurXFilter.quality=this.blurYFilter.quality=t}},{key:"blurX",get:function(){return this.blurXFilter.blur},set:function(t){this.blurXFilter.blur=t,this.padding=2*Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))}},{key:"blurY",get:function(){return this.blurYFilter.blur},set:function(t){this.blurYFilter.blur=t,this.padding=2*Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))}},{key:"blendMode",get:function(){return this.blurYFilter._blendMode},set:function(t){this.blurYFilter._blendMode=t}}]),e}(n.Filter);i.default=l},{"../../core":65,"./BlurXFilter":144,"./BlurYFilter":145}],144:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../../core")),s=l(t("./generateBlurVertSource")),a=l(t("./generateBlurFragSource")),o=l(t("./getMaxBlurKernelSize"));function l(t){return t&&t.__esModule?t:{default:t}}var h=function(t){function e(i,r,o,l){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l=l||5;var h=(0,s.default)(l,!0),u=(0,a.default)(l),c=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,h,u));return c.resolution=o||n.settings.RESOLUTION,c._quality=0,c.quality=r||4,c.strength=i||8,c.firstRun=!0,c}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.apply=function(t,e,i,r){if(this.firstRun){var n=t.renderer.gl,l=(0,o.default)(n);this.vertexSrc=(0,s.default)(l,!0),this.fragmentSrc=(0,a.default)(l),this.firstRun=!1}if(this.uniforms.strength=1/i.size.width*(i.size.width/e.size.width),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,1===this.passes)t.applyFilter(this,e,i,r);else{for(var h=t.getRenderTarget(!0),u=e,c=h,d=0;d<this.passes-1;d++){t.applyFilter(this,u,c,!0);var p=c;c=u,u=p}t.applyFilter(this,u,i,r),t.returnRenderTarget(h)}},r(e,[{key:"blur",get:function(){return this.strength},set:function(t){this.padding=2*Math.abs(t),this.strength=t}},{key:"quality",get:function(){return this._quality},set:function(t){this._quality=t,this.passes=t}}]),e}(n.Filter);i.default=h},{"../../core":65,"./generateBlurFragSource":146,"./generateBlurVertSource":147,"./getMaxBlurKernelSize":148}],145:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../../core")),s=l(t("./generateBlurVertSource")),a=l(t("./generateBlurFragSource")),o=l(t("./getMaxBlurKernelSize"));function l(t){return t&&t.__esModule?t:{default:t}}var h=function(t){function e(i,r,o,l){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l=l||5;var h=(0,s.default)(l,!1),u=(0,a.default)(l),c=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,h,u));return c.resolution=o||n.settings.RESOLUTION,c._quality=0,c.quality=r||4,c.strength=i||8,c.firstRun=!0,c}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.apply=function(t,e,i,r){if(this.firstRun){var n=t.renderer.gl,l=(0,o.default)(n);this.vertexSrc=(0,s.default)(l,!1),this.fragmentSrc=(0,a.default)(l),this.firstRun=!1}if(this.uniforms.strength=1/i.size.height*(i.size.height/e.size.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,1===this.passes)t.applyFilter(this,e,i,r);else{for(var h=t.getRenderTarget(!0),u=e,c=h,d=0;d<this.passes-1;d++){t.applyFilter(this,u,c,!0);var p=c;c=u,u=p}t.applyFilter(this,u,i,r),t.returnRenderTarget(h)}},r(e,[{key:"blur",get:function(){return this.strength},set:function(t){this.padding=2*Math.abs(t),this.strength=t}},{key:"quality",get:function(){return this._quality},set:function(t){this._quality=t,this.passes=t}}]),e}(n.Filter);i.default=h},{"../../core":65,"./generateBlurFragSource":146,"./generateBlurVertSource":147,"./getMaxBlurKernelSize":148}],146:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t){for(var e=r[t],i=e.length,s=n,a="",o=void 0,l=0;l<t;l++){var h="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;".replace("%index%",l);o=l,l>=i&&(o=t-l-1),h=h.replace("%value%",e[o]),a+=h,a+="\n"}return s=(s=s.replace("%blur%",a)).replace("%size%",t)};var r={5:[.153388,.221461,.250301],7:[.071303,.131514,.189879,.214607],9:[.028532,.067234,.124009,.179044,.20236],11:[.0093,.028002,.065984,.121703,.175713,.198596],13:[.002406,.009255,.027867,.065666,.121117,.174868,.197641],15:[489e-6,.002403,.009246,.02784,.065602,.120999,.174697,.197448]},n=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{"," gl_FragColor = vec4(0.0);"," %blur%","}"].join("\n")},{}],147:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t,e){var i=Math.ceil(t/2),n=r,s="",a=void 0;a=e?"vBlurTexCoords[%index%] = aTextureCoord + vec2(%sampleIndex% * strength, 0.0);":"vBlurTexCoords[%index%] = aTextureCoord + vec2(0.0, %sampleIndex% * strength);";for(var o=0;o<t;o++){var l=a.replace("%index%",o);l=l.replace("%sampleIndex%",o-(i-1)+".0"),s+=l,s+="\n"}return n=(n=n.replace("%blur%",s)).replace("%size%",t)};var r=["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","uniform float strength;","uniform mat3 projectionMatrix;","varying vec2 vBlurTexCoords[%size%];","void main(void)","{","gl_Position = vec4((projectionMatrix * vec3((aVertexPosition), 1.0)).xy, 0.0, 1.0);","%blur%","}"].join("\n")},{}],148:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t){var e=t.getParameter(t.MAX_VARYING_VECTORS),i=15;for(;i>e;)i-=2;return i}},{}],149:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../../core"));t("path");var s=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform float m[20];\nuniform float uAlpha;\n\nvoid main(void)\n{\n vec4 c = texture2D(uSampler, vTextureCoord);\n\n if (uAlpha == 0.0) {\n gl_FragColor = c;\n return;\n }\n\n // Un-premultiply alpha before applying the color matrix. See issue #3539.\n if (c.a > 0.0) {\n c.rgb /= c.a;\n }\n\n vec4 result;\n\n result.r = (m[0] * c.r);\n result.r += (m[1] * c.g);\n result.r += (m[2] * c.b);\n result.r += (m[3] * c.a);\n result.r += m[4];\n\n result.g = (m[5] * c.r);\n result.g += (m[6] * c.g);\n result.g += (m[7] * c.b);\n result.g += (m[8] * c.a);\n result.g += m[9];\n\n result.b = (m[10] * c.r);\n result.b += (m[11] * c.g);\n result.b += (m[12] * c.b);\n result.b += (m[13] * c.a);\n result.b += m[14];\n\n result.a = (m[15] * c.r);\n result.a += (m[16] * c.g);\n result.a += (m[17] * c.b);\n result.a += (m[18] * c.a);\n result.a += m[19];\n\n vec3 rgb = mix(c.rgb, result.rgb, uAlpha);\n\n // Premultiply alpha again.\n rgb *= result.a;\n\n gl_FragColor = vec4(rgb, result.a);\n}\n"));return i.uniforms.m=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],i.alpha=1,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._loadMatrix=function(t){var e=t;arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(this._multiply(e,this.uniforms.m,t),e=this._colorMatrix(e)),this.uniforms.m=e},e.prototype._multiply=function(t,e,i){return t[0]=e[0]*i[0]+e[1]*i[5]+e[2]*i[10]+e[3]*i[15],t[1]=e[0]*i[1]+e[1]*i[6]+e[2]*i[11]+e[3]*i[16],t[2]=e[0]*i[2]+e[1]*i[7]+e[2]*i[12]+e[3]*i[17],t[3]=e[0]*i[3]+e[1]*i[8]+e[2]*i[13]+e[3]*i[18],t[4]=e[0]*i[4]+e[1]*i[9]+e[2]*i[14]+e[3]*i[19]+e[4],t[5]=e[5]*i[0]+e[6]*i[5]+e[7]*i[10]+e[8]*i[15],t[6]=e[5]*i[1]+e[6]*i[6]+e[7]*i[11]+e[8]*i[16],t[7]=e[5]*i[2]+e[6]*i[7]+e[7]*i[12]+e[8]*i[17],t[8]=e[5]*i[3]+e[6]*i[8]+e[7]*i[13]+e[8]*i[18],t[9]=e[5]*i[4]+e[6]*i[9]+e[7]*i[14]+e[8]*i[19]+e[9],t[10]=e[10]*i[0]+e[11]*i[5]+e[12]*i[10]+e[13]*i[15],t[11]=e[10]*i[1]+e[11]*i[6]+e[12]*i[11]+e[13]*i[16],t[12]=e[10]*i[2]+e[11]*i[7]+e[12]*i[12]+e[13]*i[17],t[13]=e[10]*i[3]+e[11]*i[8]+e[12]*i[13]+e[13]*i[18],t[14]=e[10]*i[4]+e[11]*i[9]+e[12]*i[14]+e[13]*i[19]+e[14],t[15]=e[15]*i[0]+e[16]*i[5]+e[17]*i[10]+e[18]*i[15],t[16]=e[15]*i[1]+e[16]*i[6]+e[17]*i[11]+e[18]*i[16],t[17]=e[15]*i[2]+e[16]*i[7]+e[17]*i[12]+e[18]*i[17],t[18]=e[15]*i[3]+e[16]*i[8]+e[17]*i[13]+e[18]*i[18],t[19]=e[15]*i[4]+e[16]*i[9]+e[17]*i[14]+e[18]*i[19]+e[19],t},e.prototype._colorMatrix=function(t){var e=new Float32Array(t);return e[4]/=255,e[9]/=255,e[14]/=255,e[19]/=255,e},e.prototype.brightness=function(t,e){var i=[t,0,0,0,0,0,t,0,0,0,0,0,t,0,0,0,0,0,1,0];this._loadMatrix(i,e)},e.prototype.greyscale=function(t,e){var i=[t,t,t,0,0,t,t,t,0,0,t,t,t,0,0,0,0,0,1,0];this._loadMatrix(i,e)},e.prototype.blackAndWhite=function(t){this._loadMatrix([.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],t)},e.prototype.hue=function(t,e){t=(t||0)/180*Math.PI;var i=Math.cos(t),r=Math.sin(t),n=(0,Math.sqrt)(1/3),s=[i+1/3*(1-i),1/3*(1-i)-n*r,1/3*(1-i)+n*r,0,0,1/3*(1-i)+n*r,i+1/3*(1-i),1/3*(1-i)-n*r,0,0,1/3*(1-i)-n*r,1/3*(1-i)+n*r,i+1/3*(1-i),0,0,0,0,0,1,0];this._loadMatrix(s,e)},e.prototype.contrast=function(t,e){var i=(t||0)+1,r=-.5*(i-1),n=[i,0,0,0,r,0,i,0,0,r,0,0,i,0,r,0,0,0,1,0];this._loadMatrix(n,e)},e.prototype.saturate=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments[1],i=2*t/3+1,r=-.5*(i-1),n=[i,r,r,0,0,r,i,r,0,0,r,r,i,0,0,0,0,0,1,0];this._loadMatrix(n,e)},e.prototype.desaturate=function(){this.saturate(-1)},e.prototype.negative=function(t){this._loadMatrix([0,1,1,0,0,1,0,1,0,0,1,1,0,0,0,0,0,0,1,0],t)},e.prototype.sepia=function(t){this._loadMatrix([.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],t)},e.prototype.technicolor=function(t){this._loadMatrix([1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0],t)},e.prototype.polaroid=function(t){this._loadMatrix([1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],t)},e.prototype.toBGR=function(t){this._loadMatrix([0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],t)},e.prototype.kodachrome=function(t){this._loadMatrix([1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0],t)},e.prototype.browni=function(t){this._loadMatrix([.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0],t)},e.prototype.vintage=function(t){this._loadMatrix([.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0],t)},e.prototype.colorTone=function(t,e,i,r,n){var s=((i=i||16770432)>>16&255)/255,a=(i>>8&255)/255,o=(255&i)/255,l=((r=r||3375104)>>16&255)/255,h=(r>>8&255)/255,u=(255&r)/255,c=[.3,.59,.11,0,0,s,a,o,t=t||.2,0,l,h,u,e=e||.15,0,s-l,a-h,o-u,0,0];this._loadMatrix(c,n)},e.prototype.night=function(t,e){var i=[-2*(t=t||.1),-t,0,0,0,-t,0,t,0,0,0,t,2*t,0,0,0,0,0,1,0];this._loadMatrix(i,e)},e.prototype.predator=function(t,e){var i=[11.224130630493164*t,-4.794486999511719*t,-2.8746118545532227*t,0*t,.40342438220977783*t,-3.6330697536468506*t,9.193157196044922*t,-2.951810836791992*t,0*t,-1.316135048866272*t,-3.2184197902679443*t,-4.2375030517578125*t,7.476448059082031*t,0*t,.8044459223747253*t,0,0,0,1,0];this._loadMatrix(i,e)},e.prototype.lsd=function(t){this._loadMatrix([2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],t)},e.prototype.reset=function(){this._loadMatrix([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],!1)},r(e,[{key:"matrix",get:function(){return this.uniforms.m},set:function(t){this.uniforms.m=t}},{key:"alpha",get:function(){return this.uniforms.uAlpha},set:function(t){this.uniforms.uAlpha=t}}]),e}(n.Filter);i.default=s,s.prototype.grayscale=s.prototype.greyscale},{"../../core":65,path:23}],150:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../../core"));t("path");var s=function(t){function e(i,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var s=new n.Matrix;i.renderable=!1;var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 filterMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vFilterCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vFilterCoord = ( filterMatrix * vec3( aTextureCoord, 1.0) ).xy;\n vTextureCoord = aTextureCoord;\n}","varying vec2 vFilterCoord;\nvarying vec2 vTextureCoord;\n\nuniform vec2 scale;\n\nuniform sampler2D uSampler;\nuniform sampler2D mapSampler;\n\nuniform vec4 filterClamp;\n\nvoid main(void)\n{\n vec4 map = texture2D(mapSampler, vFilterCoord);\n\n map -= 0.5;\n map.xy *= scale;\n\n gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), filterClamp.xy, filterClamp.zw));\n}\n"));return a.maskSprite=i,a.maskMatrix=s,a.uniforms.mapSampler=i._texture,a.uniforms.filterMatrix=s,a.uniforms.scale={x:1,y:1},null==r&&(r=20),a.scale=new n.Point(r,r),a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.apply=function(t,e,i){var r=1/i.destinationFrame.width*(i.size.width/e.size.width);this.uniforms.filterMatrix=t.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x*r,this.uniforms.scale.y=this.scale.y*r,t.applyFilter(this,e,i)},r(e,[{key:"map",get:function(){return this.uniforms.mapSampler},set:function(t){this.uniforms.mapSampler=t}}]),e}(n.Filter);i.default=s},{"../../core":65,path:23}],151:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../../core"));t("path");var n=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,"\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nuniform vec4 filterArea;\n\nvarying vec2 vTextureCoord;\n\nvec2 mapCoord( vec2 coord )\n{\n coord *= filterArea.xy;\n coord += filterArea.zw;\n\n return coord;\n}\n\nvec2 unmapCoord( vec2 coord )\n{\n coord -= filterArea.zw;\n coord /= filterArea.xy;\n\n return coord;\n}\n\nvoid texcoords(vec2 fragCoord, vec2 resolution,\n out vec2 v_rgbNW, out vec2 v_rgbNE,\n out vec2 v_rgbSW, out vec2 v_rgbSE,\n out vec2 v_rgbM) {\n vec2 inverseVP = 1.0 / resolution.xy;\n v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP;\n v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP;\n v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP;\n v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP;\n v_rgbM = vec2(fragCoord * inverseVP);\n}\n\nvoid main(void) {\n\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n\n vec2 fragCoord = vTextureCoord * filterArea.xy;\n\n texcoords(fragCoord, filterArea.xy, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n}",'varying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\n\n/**\n Basic FXAA implementation based on the code on geeks3d.com with the\n modification that the texture2DLod stuff was removed since it\'s\n unsupported by WebGL.\n \n --\n \n From:\n https://github.com/mitsuhiko/webgl-meincraft\n \n Copyright (c) 2011 by Armin Ronacher.\n \n Some rights reserved.\n \n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are\n met:\n \n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n \n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following\n disclaimer in the documentation and/or other materials provided\n with the distribution.\n \n * The names of the contributors may not be used to endorse or\n promote products derived from this software without specific\n prior written permission.\n \n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#ifndef FXAA_REDUCE_MIN\n#define FXAA_REDUCE_MIN (1.0/ 128.0)\n#endif\n#ifndef FXAA_REDUCE_MUL\n#define FXAA_REDUCE_MUL (1.0 / 8.0)\n#endif\n#ifndef FXAA_SPAN_MAX\n#define FXAA_SPAN_MAX 8.0\n#endif\n\n//optimized version for mobile, where dependent\n//texture reads can be a bottleneck\nvec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 resolution,\n vec2 v_rgbNW, vec2 v_rgbNE,\n vec2 v_rgbSW, vec2 v_rgbSE,\n vec2 v_rgbM) {\n vec4 color;\n mediump vec2 inverseVP = vec2(1.0 / resolution.x, 1.0 / resolution.y);\n vec3 rgbNW = texture2D(tex, v_rgbNW).xyz;\n vec3 rgbNE = texture2D(tex, v_rgbNE).xyz;\n vec3 rgbSW = texture2D(tex, v_rgbSW).xyz;\n vec3 rgbSE = texture2D(tex, v_rgbSE).xyz;\n vec4 texColor = texture2D(tex, v_rgbM);\n vec3 rgbM = texColor.xyz;\n vec3 luma = vec3(0.299, 0.587, 0.114);\n float lumaNW = dot(rgbNW, luma);\n float lumaNE = dot(rgbNE, luma);\n float lumaSW = dot(rgbSW, luma);\n float lumaSE = dot(rgbSE, luma);\n float lumaM = dot(rgbM, luma);\n float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE)));\n float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE)));\n \n mediump vec2 dir;\n dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));\n dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE));\n \n float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) *\n (0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN);\n \n float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce);\n dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX),\n max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),\n dir * rcpDirMin)) * inverseVP;\n \n vec3 rgbA = 0.5 * (\n texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);\n vec3 rgbB = rgbA * 0.5 + 0.25 * (\n texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz);\n \n float lumaB = dot(rgbB, luma);\n if ((lumaB < lumaMin) || (lumaB > lumaMax))\n color = vec4(rgbA, texColor.a);\n else\n color = vec4(rgbB, texColor.a);\n return color;\n}\n\nvoid main() {\n\n vec2 fragCoord = vTextureCoord * filterArea.xy;\n\n vec4 color;\n\n color = fxaa(uSampler, fragCoord, filterArea.xy, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n\n gl_FragColor = color;\n}\n'))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.Filter);i.default=n},{"../../core":65,path:23}],152:[function(t,e,i){"use strict";i.__esModule=!0;var r=t("./fxaa/FXAAFilter");Object.defineProperty(i,"FXAAFilter",{enumerable:!0,get:function(){return c(r).default}});var n=t("./noise/NoiseFilter");Object.defineProperty(i,"NoiseFilter",{enumerable:!0,get:function(){return c(n).default}});var s=t("./displacement/DisplacementFilter");Object.defineProperty(i,"DisplacementFilter",{enumerable:!0,get:function(){return c(s).default}});var a=t("./blur/BlurFilter");Object.defineProperty(i,"BlurFilter",{enumerable:!0,get:function(){return c(a).default}});var o=t("./blur/BlurXFilter");Object.defineProperty(i,"BlurXFilter",{enumerable:!0,get:function(){return c(o).default}});var l=t("./blur/BlurYFilter");Object.defineProperty(i,"BlurYFilter",{enumerable:!0,get:function(){return c(l).default}});var h=t("./colormatrix/ColorMatrixFilter");Object.defineProperty(i,"ColorMatrixFilter",{enumerable:!0,get:function(){return c(h).default}});var u=t("./void/VoidFilter");function c(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(i,"VoidFilter",{enumerable:!0,get:function(){return c(u).default}})},{"./blur/BlurFilter":143,"./blur/BlurXFilter":144,"./blur/BlurYFilter":145,"./colormatrix/ColorMatrixFilter":149,"./displacement/DisplacementFilter":150,"./fxaa/FXAAFilter":151,"./noise/NoiseFilter":153,"./void/VoidFilter":154}],153:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../../core"));t("path");var s=function(t){function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.random();!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","precision highp float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform float uNoise;\nuniform float uSeed;\nuniform sampler2D uSampler;\n\nfloat rand(vec2 co)\n{\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main()\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n float randomValue = rand(gl_FragCoord.xy * uSeed);\n float diff = (randomValue - 0.5) * uNoise;\n\n // Un-premultiply alpha before applying the color matrix. See issue #3539.\n if (color.a > 0.0) {\n color.rgb /= color.a;\n }\n\n color.r += diff;\n color.g += diff;\n color.b += diff;\n\n // Premultiply alpha again.\n color.rgb *= color.a;\n\n gl_FragColor = color;\n}\n"));return n.noise=i,n.seed=r,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"noise",get:function(){return this.uniforms.uNoise},set:function(t){this.uniforms.uNoise=t}},{key:"seed",get:function(){return this.uniforms.uSeed},set:function(t){this.uniforms.uSeed=t}}]),e}(n.Filter);i.default=s},{"../../core":65,path:23}],154:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../../core"));t("path");var n=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n}\n"));return i.glShaderKey="void",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.Filter);i.default=n},{"../../core":65,path:23}],155:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../core"));var s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.global=new n.Point,this.target=null,this.originalEvent=null,this.identifier=null,this.isPrimary=!1,this.button=0,this.buttons=0,this.width=0,this.height=0,this.tiltX=0,this.tiltY=0,this.pointerType=null,this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0}return t.prototype.getLocalPosition=function(t,e,i){return t.worldTransform.applyInverse(i||this.global,e)},t.prototype._copyEvent=function(t){t.isPrimary&&(this.isPrimary=!0),this.button=t.button,this.buttons=t.buttons,this.width=t.width,this.height=t.height,this.tiltX=t.tiltX,this.tiltY=t.tiltY,this.pointerType=t.pointerType,this.pressure=t.pressure,this.rotationAngle=t.rotationAngle,this.twist=t.twist||0,this.tangentialPressure=t.tangentialPressure||0},t.prototype._reset=function(){this.isPrimary=!1},r(t,[{key:"pointerId",get:function(){return this.identifier}}]),t}();i.default=s},{"../core":65}],156:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.stopped=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return t.prototype.stopPropagation=function(){this.stopped=!0},t.prototype._reset=function(){this.stopped=!1,this.currentTarget=null,this.target=null},t}();i.default=r},{}],157:[function(t,e,i){"use strict";i.__esModule=!0;var r="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},n=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../core")),s=u(t("./InteractionData")),a=u(t("./InteractionEvent")),o=u(t("./InteractionTrackingData")),l=u(t("eventemitter3")),h=u(t("./interactiveTarget"));function u(t){return t&&t.__esModule?t:{default:t}}n.utils.mixins.delayMixin(n.DisplayObject.prototype,h.default);var c="MOUSE",d={target:null,data:{global:null}},p=function(t){function e(i,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return r=r||{},o.renderer=i,o.autoPreventDefault=void 0===r.autoPreventDefault||r.autoPreventDefault,o.interactionFrequency=r.interactionFrequency||10,o.mouse=new s.default,o.mouse.identifier=c,o.mouse.global.set(-999999),o.activeInteractionData={},o.activeInteractionData[c]=o.mouse,o.interactionDataPool=[],o.eventData=new a.default,o.interactionDOMElement=null,o.moveWhenInside=!1,o.eventsAdded=!1,o.mouseOverRenderer=!1,o.supportsTouchEvents="ontouchstart"in window,o.supportsPointerEvents=!!window.PointerEvent,o.onPointerUp=o.onPointerUp.bind(o),o.processPointerUp=o.processPointerUp.bind(o),o.onPointerCancel=o.onPointerCancel.bind(o),o.processPointerCancel=o.processPointerCancel.bind(o),o.onPointerDown=o.onPointerDown.bind(o),o.processPointerDown=o.processPointerDown.bind(o),o.onPointerMove=o.onPointerMove.bind(o),o.processPointerMove=o.processPointerMove.bind(o),o.onPointerOut=o.onPointerOut.bind(o),o.processPointerOverOut=o.processPointerOverOut.bind(o),o.onPointerOver=o.onPointerOver.bind(o),o.cursorStyles={default:"inherit",pointer:"pointer"},o.currentCursorMode=null,o.cursor=null,o._tempPoint=new n.Point,o.resolution=1,o.setTargetElement(o.renderer.view,o.renderer.resolution),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.hitTest=function(t,e){return d.target=null,d.data.global=t,e||(e=this.renderer._lastObjectRendered),this.processInteractive(d,e,null,!0),d.target},e.prototype.setTargetElement=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.removeEvents(),this.interactionDOMElement=t,this.resolution=e,this.addEvents()},e.prototype.addEvents=function(){this.interactionDOMElement&&(n.ticker.shared.add(this.update,this,n.UPDATE_PRIORITY.INTERACTION),window.navigator.msPointerEnabled?(this.interactionDOMElement.style["-ms-content-zooming"]="none",this.interactionDOMElement.style["-ms-touch-action"]="none"):this.supportsPointerEvents&&(this.interactionDOMElement.style["touch-action"]="none"),this.supportsPointerEvents?(window.document.addEventListener("pointermove",this.onPointerMove,!0),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,!0),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,!0),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,!0),window.addEventListener("pointercancel",this.onPointerCancel,!0),window.addEventListener("pointerup",this.onPointerUp,!0)):(window.document.addEventListener("mousemove",this.onPointerMove,!0),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,!0),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,!0),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,!0),window.addEventListener("mouseup",this.onPointerUp,!0)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,!0),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,!0),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,!0),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,!0)),this.eventsAdded=!0)},e.prototype.removeEvents=function(){this.interactionDOMElement&&(n.ticker.shared.remove(this.update,this),window.navigator.msPointerEnabled?(this.interactionDOMElement.style["-ms-content-zooming"]="",this.interactionDOMElement.style["-ms-touch-action"]=""):this.supportsPointerEvents&&(this.interactionDOMElement.style["touch-action"]=""),this.supportsPointerEvents?(window.document.removeEventListener("pointermove",this.onPointerMove,!0),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,!0),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,!0),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,!0),window.removeEventListener("pointercancel",this.onPointerCancel,!0),window.removeEventListener("pointerup",this.onPointerUp,!0)):(window.document.removeEventListener("mousemove",this.onPointerMove,!0),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,!0),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,!0),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,!0),window.removeEventListener("mouseup",this.onPointerUp,!0)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,!0),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,!0),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,!0),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,!0)),this.interactionDOMElement=null,this.eventsAdded=!1)},e.prototype.update=function(t){if(this._deltaTime+=t,!(this._deltaTime<this.interactionFrequency)&&(this._deltaTime=0,this.interactionDOMElement))if(this.didMove)this.didMove=!1;else{for(var e in this.cursor=null,this.activeInteractionData)if(this.activeInteractionData.hasOwnProperty(e)){var i=this.activeInteractionData[e];if(i.originalEvent&&"touch"!==i.pointerType){var r=this.configureInteractionEventForDOMEvent(this.eventData,i.originalEvent,i);this.processInteractive(r,this.renderer._lastObjectRendered,this.processPointerOverOut,!0)}}this.setCursorMode(this.cursor)}},e.prototype.setCursorMode=function(t){if(t=t||"default",this.currentCursorMode!==t){this.currentCursorMode=t;var e=this.cursorStyles[t];if(e)switch(void 0===e?"undefined":r(e)){case"string":this.interactionDOMElement.style.cursor=e;break;case"function":e(t);break;case"object":Object.assign(this.interactionDOMElement.style,e)}else"string"!=typeof t||Object.prototype.hasOwnProperty.call(this.cursorStyles,t)||(this.interactionDOMElement.style.cursor=t)}},e.prototype.dispatchEvent=function(t,e,i){i.stopped||(i.currentTarget=t,i.type=e,t.emit(e,i),t[e]&&t[e](i))},e.prototype.mapPositionToPoint=function(t,e,i){var r=void 0;r=this.interactionDOMElement.parentElement?this.interactionDOMElement.getBoundingClientRect():{x:0,y:0,width:0,height:0};var n=navigator.isCocoonJS?this.resolution:1/this.resolution;t.x=(e-r.left)*(this.interactionDOMElement.width/r.width)*n,t.y=(i-r.top)*(this.interactionDOMElement.height/r.height)*n},e.prototype.processInteractive=function(t,e,i,r,n){if(!e||!e.visible)return!1;var s=t.data.global,a=!1,o=n=e.interactive||n;if(e.hitArea?o=!1:r&&e._mask&&(e._mask.containsPoint(s)||(r=!1)),e.interactiveChildren&&e.children)for(var l=e.children,h=l.length-1;h>=0;h--){var u=l[h],c=this.processInteractive(t,u,i,r,o);if(c){if(!u.parent)continue;o=!1,c&&(t.target&&(r=!1),a=!0)}}return n&&(r&&!t.target&&(e.hitArea?(e.worldTransform.applyInverse(s,this._tempPoint),e.hitArea.contains(this._tempPoint.x,this._tempPoint.y)&&(a=!0)):e.containsPoint&&e.containsPoint(s)&&(a=!0)),e.interactive&&(a&&!t.target&&(t.target=e),i&&i(t,e,!!a))),a},e.prototype.onPointerDown=function(t){if(!this.supportsTouchEvents||"touch"!==t.pointerType){var e=this.normalizeToPointerData(t);this.autoPreventDefault&&e[0].isNormalized&&t.preventDefault();for(var i=e.length,r=0;r<i;r++){var n=e[r],s=this.getInteractionDataForPointerId(n),a=this.configureInteractionEventForDOMEvent(this.eventData,n,s);if(a.data.originalEvent=t,this.processInteractive(a,this.renderer._lastObjectRendered,this.processPointerDown,!0),this.emit("pointerdown",a),"touch"===n.pointerType)this.emit("touchstart",a);else if("mouse"===n.pointerType||"pen"===n.pointerType){var o=2===n.button;this.emit(o?"rightdown":"mousedown",this.eventData)}}}},e.prototype.processPointerDown=function(t,e,i){var r=t.data,n=t.data.identifier;if(i)if(e.trackedPointers[n]||(e.trackedPointers[n]=new o.default(n)),this.dispatchEvent(e,"pointerdown",t),"touch"===r.pointerType)this.dispatchEvent(e,"touchstart",t);else if("mouse"===r.pointerType||"pen"===r.pointerType){var s=2===r.button;s?e.trackedPointers[n].rightDown=!0:e.trackedPointers[n].leftDown=!0,this.dispatchEvent(e,s?"rightdown":"mousedown",t)}},e.prototype.onPointerComplete=function(t,e,i){for(var r=this.normalizeToPointerData(t),n=r.length,s=t.target!==this.interactionDOMElement?"outside":"",a=0;a<n;a++){var o=r[a],l=this.getInteractionDataForPointerId(o),h=this.configureInteractionEventForDOMEvent(this.eventData,o,l);if(h.data.originalEvent=t,this.processInteractive(h,this.renderer._lastObjectRendered,i,e||!s),this.emit(e?"pointercancel":"pointerup"+s,h),"mouse"===o.pointerType||"pen"===o.pointerType){var u=2===o.button;this.emit(u?"rightup"+s:"mouseup"+s,h)}else"touch"===o.pointerType&&(this.emit(e?"touchcancel":"touchend"+s,h),this.releaseInteractionDataForPointerId(o.pointerId,l))}},e.prototype.onPointerCancel=function(t){this.supportsTouchEvents&&"touch"===t.pointerType||this.onPointerComplete(t,!0,this.processPointerCancel)},e.prototype.processPointerCancel=function(t,e){var i=t.data,r=t.data.identifier;void 0!==e.trackedPointers[r]&&(delete e.trackedPointers[r],this.dispatchEvent(e,"pointercancel",t),"touch"===i.pointerType&&this.dispatchEvent(e,"touchcancel",t))},e.prototype.onPointerUp=function(t){this.supportsTouchEvents&&"touch"===t.pointerType||this.onPointerComplete(t,!1,this.processPointerUp)},e.prototype.processPointerUp=function(t,e,i){var r=t.data,n=t.data.identifier,s=e.trackedPointers[n],a="touch"===r.pointerType;if("mouse"===r.pointerType||"pen"===r.pointerType){var l=2===r.button,h=o.default.FLAGS,u=l?h.RIGHT_DOWN:h.LEFT_DOWN,c=void 0!==s&&s.flags&u;i?(this.dispatchEvent(e,l?"rightup":"mouseup",t),c&&this.dispatchEvent(e,l?"rightclick":"click",t)):c&&this.dispatchEvent(e,l?"rightupoutside":"mouseupoutside",t),s&&(l?s.rightDown=!1:s.leftDown=!1)}i?(this.dispatchEvent(e,"pointerup",t),a&&this.dispatchEvent(e,"touchend",t),s&&(this.dispatchEvent(e,"pointertap",t),a&&(this.dispatchEvent(e,"tap",t),s.over=!1))):s&&(this.dispatchEvent(e,"pointerupoutside",t),a&&this.dispatchEvent(e,"touchendoutside",t)),s&&s.none&&delete e.trackedPointers[n]},e.prototype.onPointerMove=function(t){if(!this.supportsTouchEvents||"touch"!==t.pointerType){var e=this.normalizeToPointerData(t);"mouse"===e[0].pointerType&&(this.didMove=!0,this.cursor=null);for(var i=e.length,r=0;r<i;r++){var n=e[r],s=this.getInteractionDataForPointerId(n),a=this.configureInteractionEventForDOMEvent(this.eventData,n,s);a.data.originalEvent=t;var o="touch"!==n.pointerType||this.moveWhenInside;this.processInteractive(a,this.renderer._lastObjectRendered,this.processPointerMove,o),this.emit("pointermove",a),"touch"===n.pointerType&&this.emit("touchmove",a),"mouse"!==n.pointerType&&"pen"!==n.pointerType||this.emit("mousemove",a)}"mouse"===e[0].pointerType&&this.setCursorMode(this.cursor)}},e.prototype.processPointerMove=function(t,e,i){var r=t.data,n="touch"===r.pointerType,s="mouse"===r.pointerType||"pen"===r.pointerType;s&&this.processPointerOverOut(t,e,i),this.moveWhenInside&&!i||(this.dispatchEvent(e,"pointermove",t),n&&this.dispatchEvent(e,"touchmove",t),s&&this.dispatchEvent(e,"mousemove",t))},e.prototype.onPointerOut=function(t){if(!this.supportsTouchEvents||"touch"!==t.pointerType){var e=this.normalizeToPointerData(t)[0];"mouse"===e.pointerType&&(this.mouseOverRenderer=!1,this.setCursorMode(null));var i=this.getInteractionDataForPointerId(e),r=this.configureInteractionEventForDOMEvent(this.eventData,e,i);r.data.originalEvent=e,this.processInteractive(r,this.renderer._lastObjectRendered,this.processPointerOverOut,!1),this.emit("pointerout",r),"mouse"===e.pointerType||"pen"===e.pointerType?this.emit("mouseout",r):this.releaseInteractionDataForPointerId(i.identifier)}},e.prototype.processPointerOverOut=function(t,e,i){var r=t.data,n=t.data.identifier,s="mouse"===r.pointerType||"pen"===r.pointerType,a=e.trackedPointers[n];i&&!a&&(a=e.trackedPointers[n]=new o.default(n)),void 0!==a&&(i&&this.mouseOverRenderer?(a.over||(a.over=!0,this.dispatchEvent(e,"pointerover",t),s&&this.dispatchEvent(e,"mouseover",t)),s&&null===this.cursor&&(this.cursor=e.cursor)):a.over&&(a.over=!1,this.dispatchEvent(e,"pointerout",this.eventData),s&&this.dispatchEvent(e,"mouseout",t),a.none&&delete e.trackedPointers[n]))},e.prototype.onPointerOver=function(t){var e=this.normalizeToPointerData(t)[0],i=this.getInteractionDataForPointerId(e),r=this.configureInteractionEventForDOMEvent(this.eventData,e,i);r.data.originalEvent=e,"mouse"===e.pointerType&&(this.mouseOverRenderer=!0),this.emit("pointerover",r),"mouse"!==e.pointerType&&"pen"!==e.pointerType||this.emit("mouseover",r)},e.prototype.getInteractionDataForPointerId=function(t){var e=t.pointerId,i=void 0;return e===c||"mouse"===t.pointerType?i=this.mouse:this.activeInteractionData[e]?i=this.activeInteractionData[e]:((i=this.interactionDataPool.pop()||new s.default).identifier=e,this.activeInteractionData[e]=i),i._copyEvent(t),i},e.prototype.releaseInteractionDataForPointerId=function(t){var e=this.activeInteractionData[t];e&&(delete this.activeInteractionData[t],e._reset(),this.interactionDataPool.push(e))},e.prototype.configureInteractionEventForDOMEvent=function(t,e,i){return t.data=i,this.mapPositionToPoint(i.global,e.clientX,e.clientY),navigator.isCocoonJS&&"touch"===e.pointerType&&(i.global.x=i.global.x/this.resolution,i.global.y=i.global.y/this.resolution),"touch"===e.pointerType&&(e.globalX=i.global.x,e.globalY=i.global.y),i.originalEvent=e,t._reset(),t},e.prototype.normalizeToPointerData=function(t){var e=[];if(this.supportsTouchEvents&&t instanceof TouchEvent)for(var i=0,r=t.changedTouches.length;i<r;i++){var n=t.changedTouches[i];void 0===n.button&&(n.button=t.touches.length?1:0),void 0===n.buttons&&(n.buttons=t.touches.length?1:0),void 0===n.isPrimary&&(n.isPrimary=1===t.touches.length&&"touchstart"===t.type),void 0===n.width&&(n.width=n.radiusX||1),void 0===n.height&&(n.height=n.radiusY||1),void 0===n.tiltX&&(n.tiltX=0),void 0===n.tiltY&&(n.tiltY=0),void 0===n.pointerType&&(n.pointerType="touch"),void 0===n.pointerId&&(n.pointerId=n.identifier||0),void 0===n.pressure&&(n.pressure=n.force||.5),n.twist=0,n.tangentialPressure=0,void 0===n.layerX&&(n.layerX=n.offsetX=n.clientX),void 0===n.layerY&&(n.layerY=n.offsetY=n.clientY),n.isNormalized=!0,e.push(n)}else!(t instanceof MouseEvent)||this.supportsPointerEvents&&t instanceof window.PointerEvent?e.push(t):(void 0===t.isPrimary&&(t.isPrimary=!0),void 0===t.width&&(t.width=1),void 0===t.height&&(t.height=1),void 0===t.tiltX&&(t.tiltX=0),void 0===t.tiltY&&(t.tiltY=0),void 0===t.pointerType&&(t.pointerType="mouse"),void 0===t.pointerId&&(t.pointerId=c),void 0===t.pressure&&(t.pressure=.5),t.twist=0,t.tangentialPressure=0,t.isNormalized=!0,e.push(t));return e},e.prototype.destroy=function(){this.removeEvents(),this.removeAllListeners(),this.renderer=null,this.mouse=null,this.eventData=null,this.interactionDOMElement=null,this.onPointerDown=null,this.processPointerDown=null,this.onPointerUp=null,this.processPointerUp=null,this.onPointerCancel=null,this.processPointerCancel=null,this.onPointerMove=null,this.processPointerMove=null,this.onPointerOut=null,this.processPointerOverOut=null,this.onPointerOver=null,this._tempPoint=null},e}(l.default);i.default=p,n.WebGLRenderer.registerPlugin("interaction",p),n.CanvasRenderer.registerPlugin("interaction",p)},{"../core":65,"./InteractionData":155,"./InteractionEvent":156,"./InteractionTrackingData":158,"./interactiveTarget":160,eventemitter3:3}],158:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}();var n=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._pointerId=e,this._flags=t.FLAGS.NONE}return t.prototype._doSet=function(t,e){this._flags=e?this._flags|t:this._flags&~t},r(t,[{key:"pointerId",get:function(){return this._pointerId}},{key:"flags",get:function(){return this._flags},set:function(t){this._flags=t}},{key:"none",get:function(){return this._flags===this.constructor.FLAGS.NONE}},{key:"over",get:function(){return 0!=(this._flags&this.constructor.FLAGS.OVER)},set:function(t){this._doSet(this.constructor.FLAGS.OVER,t)}},{key:"rightDown",get:function(){return 0!=(this._flags&this.constructor.FLAGS.RIGHT_DOWN)},set:function(t){this._doSet(this.constructor.FLAGS.RIGHT_DOWN,t)}},{key:"leftDown",get:function(){return 0!=(this._flags&this.constructor.FLAGS.LEFT_DOWN)},set:function(t){this._doSet(this.constructor.FLAGS.LEFT_DOWN,t)}}]),t}();i.default=n,n.FLAGS=Object.freeze({NONE:0,OVER:1,LEFT_DOWN:2,RIGHT_DOWN:4})},{}],159:[function(t,e,i){"use strict";i.__esModule=!0;var r=t("./InteractionData");Object.defineProperty(i,"InteractionData",{enumerable:!0,get:function(){return l(r).default}});var n=t("./InteractionManager");Object.defineProperty(i,"InteractionManager",{enumerable:!0,get:function(){return l(n).default}});var s=t("./interactiveTarget");Object.defineProperty(i,"interactiveTarget",{enumerable:!0,get:function(){return l(s).default}});var a=t("./InteractionTrackingData");Object.defineProperty(i,"InteractionTrackingData",{enumerable:!0,get:function(){return l(a).default}});var o=t("./InteractionEvent");function l(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(i,"InteractionEvent",{enumerable:!0,get:function(){return l(o).default}})},{"./InteractionData":155,"./InteractionEvent":156,"./InteractionManager":157,"./InteractionTrackingData":158,"./interactiveTarget":160}],160:[function(t,e,i){"use strict";i.__esModule=!0,i.default={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return"pointer"===this.cursor},set buttonMode(t){t?this.cursor="pointer":"pointer"===this.cursor&&(this.cursor=null)},cursor:null,get trackedPointers(){return void 0===this._trackedPointers&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0}},{}],161:[function(t,e,i){"use strict";i.__esModule=!0,i.parse=o,i.default=function(){return function(t,e){if(t.data&&t.type===s.Resource.TYPE.XML)if(0!==t.data.getElementsByTagName("page").length&&0!==t.data.getElementsByTagName("info").length&&null!==t.data.getElementsByTagName("info")[0].getAttribute("face")){var i=t.isDataUrl?"":r.dirname(t.url);t.isDataUrl&&("."===i&&(i=""),this.baseUrl&&i&&"/"===this.baseUrl.charAt(this.baseUrl.length-1)&&(i+="/")),(i=i.replace(this.baseUrl,""))&&"/"!==i.charAt(i.length-1)&&(i+="/");var a=i+t.data.getElementsByTagName("page")[0].getAttribute("file");if(n.utils.TextureCache[a])o(t,n.utils.TextureCache[a]),e();else{var l={crossOrigin:t.crossOrigin,loadType:s.Resource.LOAD_TYPE.IMAGE,metadata:t.metadata.imageMetadata,parentResource:t};this.add(t.name+"_image",a,l,function(i){o(t,i.texture),e()})}}else e();else e()}};var r=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("path")),n=t("../core"),s=t("resource-loader"),a=t("../extras");function o(t,e){t.bitmapFont=a.BitmapText.registerFont(t.data,e)}},{"../core":65,"../extras":141,path:23,"resource-loader":36}],162:[function(t,e,i){"use strict";i.__esModule=!0,i.shared=i.Resource=i.textureParser=i.getResourcePath=i.spritesheetParser=i.parseBitmapFontData=i.bitmapFontParser=i.Loader=void 0;var r=t("./bitmapFontParser");Object.defineProperty(i,"bitmapFontParser",{enumerable:!0,get:function(){return h(r).default}}),Object.defineProperty(i,"parseBitmapFontData",{enumerable:!0,get:function(){return r.parse}});var n=t("./spritesheetParser");Object.defineProperty(i,"spritesheetParser",{enumerable:!0,get:function(){return h(n).default}}),Object.defineProperty(i,"getResourcePath",{enumerable:!0,get:function(){return n.getResourcePath}});var s=t("./textureParser");Object.defineProperty(i,"textureParser",{enumerable:!0,get:function(){return h(s).default}});var a=t("resource-loader");Object.defineProperty(i,"Resource",{enumerable:!0,get:function(){return a.Resource}});var o=h(t("../core/Application")),l=h(t("./loader"));function h(t){return t&&t.__esModule?t:{default:t}}i.Loader=l.default;var u=new l.default;u.destroy=function(){},i.shared=u;var c=o.default.prototype;c._loader=null,Object.defineProperty(c,"loader",{get:function(){if(!this._loader){var t=this._options.sharedLoader;this._loader=t?u:new l.default}return this._loader}}),c._parentDestroy=c.destroy,c.destroy=function(t){this._loader&&(this._loader.destroy(),this._loader=null),this._parentDestroy(t)}},{"../core/Application":43,"./bitmapFontParser":161,"./loader":163,"./spritesheetParser":164,"./textureParser":165,"resource-loader":36}],163:[function(t,e,i){"use strict";i.__esModule=!0;var r=h(t("resource-loader")),n=t("resource-loader/lib/middlewares/parsing/blob"),s=h(t("eventemitter3")),a=h(t("./textureParser")),o=h(t("./spritesheetParser")),l=h(t("./bitmapFontParser"));function h(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(i,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i,r));s.default.call(n);for(var a=0;a<e._pixiMiddleware.length;++a)n.use(e._pixiMiddleware[a]());return n.onStart.add(function(t){return n.emit("start",t)}),n.onProgress.add(function(t,e){return n.emit("progress",t,e)}),n.onError.add(function(t,e,i){return n.emit("error",t,e,i)}),n.onLoad.add(function(t,e){return n.emit("load",t,e)}),n.onComplete.add(function(t,e){return n.emit("complete",t,e)}),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.addPixiMiddleware=function(t){e._pixiMiddleware.push(t)},e.prototype.destroy=function(){this.removeAllListeners(),this.reset()},e}(r.default);for(var c in i.default=u,s.default.prototype)u.prototype[c]=s.default.prototype[c];u._pixiMiddleware=[n.blobMiddlewareFactory,a.default,o.default,l.default];var d=r.default.Resource;d.setExtensionXhrType("fnt",d.XHR_RESPONSE_TYPE.DOCUMENT)},{"./bitmapFontParser":161,"./spritesheetParser":164,"./textureParser":165,eventemitter3:3,"resource-loader":36,"resource-loader/lib/middlewares/parsing/blob":37}],164:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(){return function(t,e){var i=t.name+"_image";if(t.data&&t.type===n.Resource.TYPE.JSON&&t.data.frames&&!this.resources[i]){var r={crossOrigin:t.crossOrigin,loadType:n.Resource.LOAD_TYPE.IMAGE,metadata:t.metadata.imageMetadata,parentResource:t},s=l(t,this.baseUrl);this.add(i,s,r,function(i){var r=new o.Spritesheet(i.texture.baseTexture,t.data,t.url);r.parse(function(){t.spritesheet=r,t.textures=r.textures,e()})})}else e()}},i.getResourcePath=l;var r,n=t("resource-loader"),s=t("url"),a=(r=s)&&r.__esModule?r:{default:r},o=t("../core");function l(t,e){return t.isDataUrl?t.data.meta.image:a.default.resolve(t.url.replace(e,""),t.data.meta.image)}},{"../core":65,"resource-loader":36,url:29}],165:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(){return function(t,e){t.data&&t.type===n.Resource.TYPE.IMAGE&&(t.texture=a.default.fromLoader(t.data,t.url,t.name)),e()}};var r,n=t("resource-loader"),s=t("../core/textures/Texture"),a=(r=s)&&r.__esModule?r:{default:r}},{"../core/textures/Texture":115,"resource-loader":36}],166:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),s=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../core")),a=t("../extras/TextureTransform"),o=(r=a)&&r.__esModule?r:{default:r};var l=new s.Point,h=new s.Polygon,u=function(t){function e(i,r,n,a,l){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var h=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return h._texture=i,h.uvs=n||new Float32Array([0,0,1,0,1,1,0,1]),h.vertices=r||new Float32Array([0,0,100,0,100,100,0,100]),h.indices=a||new Uint16Array([0,1,3,2]),h.dirty=0,h.indexDirty=0,h.blendMode=s.BLEND_MODES.NORMAL,h.canvasPadding=0,h.drawMode=l||e.DRAW_MODES.TRIANGLE_MESH,h.shader=null,h.tintRgb=new Float32Array([1,1,1]),h._glDatas={},h._uvTransform=new o.default(i),h.uploadUvTransform=!1,h.pluginName="mesh",h}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._renderWebGL=function(t){this.refresh(),t.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this)},e.prototype._renderCanvas=function(t){this.refresh(),t.plugins[this.pluginName].render(this)},e.prototype._onTextureUpdate=function(){this._uvTransform.texture=this._texture,this.refresh()},e.prototype.multiplyUvs=function(){this.uploadUvTransform||this._uvTransform.multiplyUvs(this.uvs)},e.prototype.refresh=function(t){this._uvTransform.update(t)&&this._refresh()},e.prototype._refresh=function(){},e.prototype._calculateBounds=function(){this._bounds.addVertices(this.transform,this.vertices,0,this.vertices.length)},e.prototype.containsPoint=function(t){if(!this.getBounds().contains(t.x,t.y))return!1;this.worldTransform.applyInverse(t,l);for(var i=this.vertices,r=h.points,n=this.indices,s=this.indices.length,a=this.drawMode===e.DRAW_MODES.TRIANGLES?3:1,o=0;o+2<s;o+=a){var u=2*n[o],c=2*n[o+1],d=2*n[o+2];if(r[0]=i[u],r[1]=i[u+1],r[2]=i[c],r[3]=i[c+1],r[4]=i[d],r[5]=i[d+1],h.contains(l.x,l.y))return!0}return!1},n(e,[{key:"texture",get:function(){return this._texture},set:function(t){this._texture!==t&&(this._texture=t,t&&(t.baseTexture.hasLoaded?this._onTextureUpdate():t.once("update",this._onTextureUpdate,this)))}},{key:"tint",get:function(){return s.utils.rgb2hex(this.tintRgb)},set:function(t){this.tintRgb=s.utils.hex2rgb(t,this.tintRgb)}}]),e}(s.Container);i.default=u,u.DRAW_MODES={TRIANGLE_MESH:0,TRIANGLES:1}},{"../core":65,"../extras/TextureTransform":136}],167:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),s=t("./Plane"),a=(r=s)&&r.__esModule?r:{default:r};var o=10,l=function(t){function e(i,r,n,s,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i,4,4));return l._origWidth=i.orig.width,l._origHeight=i.orig.height,l._width=l._origWidth,l._height=l._origHeight,l.leftWidth=void 0!==r?r:o,l.rightWidth=void 0!==s?s:o,l.topHeight=void 0!==n?n:o,l.bottomHeight=void 0!==a?a:o,l.refresh(!0),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.updateHorizontalVertices=function(){var t=this.vertices;t[9]=t[11]=t[13]=t[15]=this._topHeight,t[17]=t[19]=t[21]=t[23]=this._height-this._bottomHeight,t[25]=t[27]=t[29]=t[31]=this._height},e.prototype.updateVerticalVertices=function(){var t=this.vertices;t[2]=t[10]=t[18]=t[26]=this._leftWidth,t[4]=t[12]=t[20]=t[28]=this._width-this._rightWidth,t[6]=t[14]=t[22]=t[30]=this._width},e.prototype._renderCanvas=function(t){var e=t.context;e.globalAlpha=this.worldAlpha;var i=this.worldTransform,r=t.resolution;t.roundPixels?e.setTransform(i.a*r,i.b*r,i.c*r,i.d*r,i.tx*r|0,i.ty*r|0):e.setTransform(i.a*r,i.b*r,i.c*r,i.d*r,i.tx*r,i.ty*r);var n=this._texture.baseTexture,s=n.source,a=n.width,o=n.height;this.drawSegment(e,s,a,o,0,1,10,11),this.drawSegment(e,s,a,o,2,3,12,13),this.drawSegment(e,s,a,o,4,5,14,15),this.drawSegment(e,s,a,o,8,9,18,19),this.drawSegment(e,s,a,o,10,11,20,21),this.drawSegment(e,s,a,o,12,13,22,23),this.drawSegment(e,s,a,o,16,17,26,27),this.drawSegment(e,s,a,o,18,19,28,29),this.drawSegment(e,s,a,o,20,21,30,31)},e.prototype.drawSegment=function(t,e,i,r,n,s,a,o){var l=this.uvs,h=this.vertices,u=(l[a]-l[n])*i,c=(l[o]-l[s])*r,d=h[a]-h[n],p=h[o]-h[s];u<1&&(u=1),c<1&&(c=1),d<1&&(d=1),p<1&&(p=1),t.drawImage(e,l[n]*i,l[s]*r,u,c,h[n],h[s],d,p)},e.prototype._refresh=function(){t.prototype._refresh.call(this);var e=this.uvs,i=this._texture;this._origWidth=i.orig.width,this._origHeight=i.orig.height;var r=1/this._origWidth,n=1/this._origHeight;e[0]=e[8]=e[16]=e[24]=0,e[1]=e[3]=e[5]=e[7]=0,e[6]=e[14]=e[22]=e[30]=1,e[25]=e[27]=e[29]=e[31]=1,e[2]=e[10]=e[18]=e[26]=r*this._leftWidth,e[4]=e[12]=e[20]=e[28]=1-r*this._rightWidth,e[9]=e[11]=e[13]=e[15]=n*this._topHeight,e[17]=e[19]=e[21]=e[23]=1-n*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.dirty=!0,this.multiplyUvs()},n(e,[{key:"width",get:function(){return this._width},set:function(t){this._width=t,this._refresh()}},{key:"height",get:function(){return this._height},set:function(t){this._height=t,this._refresh()}},{key:"leftWidth",get:function(){return this._leftWidth},set:function(t){this._leftWidth=t,this._refresh()}},{key:"rightWidth",get:function(){return this._rightWidth},set:function(t){this._rightWidth=t,this._refresh()}},{key:"topHeight",get:function(){return this._topHeight},set:function(t){this._topHeight=t,this._refresh()}},{key:"bottomHeight",get:function(){return this._bottomHeight},set:function(t){this._bottomHeight=t,this._refresh()}}]),e}(a.default);i.default=l},{"./Plane":168}],168:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=t("./Mesh"),s=(r=n)&&r.__esModule?r:{default:r};var a=function(t){function e(i,r,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return a._ready=!0,a.verticesX=r||10,a.verticesY=n||10,a.drawMode=s.default.DRAW_MODES.TRIANGLES,a.refresh(),a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._refresh=function(){for(var t=this._texture,e=this.verticesX*this.verticesY,i=[],r=[],n=[],s=this.verticesX-1,a=this.verticesY-1,o=t.width/s,l=t.height/a,h=0;h<e;h++){var u=h%this.verticesX,c=h/this.verticesX|0;i.push(u*o,c*l),r.push(u/s,c/a)}for(var d=s*a,p=0;p<d;p++){var f=p%s,_=p/s|0,m=_*this.verticesX+f,g=_*this.verticesX+f+1,v=(_+1)*this.verticesX+f,y=(_+1)*this.verticesX+f+1;n.push(m,g,v),n.push(g,y,v)}this.vertices=new Float32Array(i),this.uvs=new Float32Array(r),this.colors=new Float32Array([]),this.indices=new Uint16Array(n),this.indexDirty=!0,this.multiplyUvs()},e.prototype._onTextureUpdate=function(){s.default.prototype._onTextureUpdate.call(this),this._ready&&this.refresh()},e}(s.default);i.default=a},{"./Mesh":166}],169:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=t("./Mesh");var s=function(t){function e(i,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return n.points=r,n.vertices=new Float32Array(4*r.length),n.uvs=new Float32Array(4*r.length),n.colors=new Float32Array(2*r.length),n.indices=new Uint16Array(2*r.length),n.autoUpdate=!0,n.refresh(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._refresh=function(){var t=this.points;if(!(t.length<1)&&this._texture._uvs){this.vertices.length/4!==t.length&&(this.vertices=new Float32Array(4*t.length),this.uvs=new Float32Array(4*t.length),this.colors=new Float32Array(2*t.length),this.indices=new Uint16Array(2*t.length));var e=this.uvs,i=this.indices,r=this.colors;e[0]=0,e[1]=0,e[2]=0,e[3]=1,r[0]=1,r[1]=1,i[0]=0,i[1]=1;for(var n=t.length,s=1;s<n;s++){var a=4*s,o=s/(n-1);e[a]=o,e[a+1]=0,e[a+2]=o,e[a+3]=1,r[a=2*s]=1,r[a+1]=1,i[a=2*s]=a,i[a+1]=a+1}this.dirty++,this.indexDirty++,this.multiplyUvs(),this.refreshVertices()}},e.prototype.refreshVertices=function(){var t=this.points;if(!(t.length<1))for(var e=t[0],i=void 0,r=0,n=0,s=this.vertices,a=t.length,o=0;o<a;o++){var l=t[o],h=4*o;n=-((i=o<t.length-1?t[o+1]:l).x-e.x),r=i.y-e.y;var u=10*(1-o/(a-1));u>1&&(u=1);var c=Math.sqrt(r*r+n*n),d=this._texture.height/2;r/=c,n/=c,r*=d,n*=d,s[h]=l.x+r,s[h+1]=l.y+n,s[h+2]=l.x-r,s[h+3]=l.y-n,e=l}},e.prototype.updateTransform=function(){this.autoUpdate&&this.refreshVertices(),this.containerUpdateTransform()},e}(((r=n)&&r.__esModule?r:{default:r}).default);i.default=s},{"./Mesh":166}],170:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../../core")),s=t("../Mesh"),a=(r=s)&&r.__esModule?r:{default:r};var o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.renderer=e}return t.prototype.render=function(t){var e=this.renderer,i=e.context,r=t.worldTransform,n=e.resolution;e.roundPixels?i.setTransform(r.a*n,r.b*n,r.c*n,r.d*n,r.tx*n|0,r.ty*n|0):i.setTransform(r.a*n,r.b*n,r.c*n,r.d*n,r.tx*n,r.ty*n),e.setBlendMode(t.blendMode),t.drawMode===a.default.DRAW_MODES.TRIANGLE_MESH?this._renderTriangleMesh(t):this._renderTriangles(t)},t.prototype._renderTriangleMesh=function(t){for(var e=t.vertices.length/2,i=0;i<e-2;i++){var r=2*i;this._renderDrawTriangle(t,r,r+2,r+4)}},t.prototype._renderTriangles=function(t){for(var e=t.indices,i=e.length,r=0;r<i;r+=3){var n=2*e[r],s=2*e[r+1],a=2*e[r+2];this._renderDrawTriangle(t,n,s,a)}},t.prototype._renderDrawTriangle=function(t,e,i,r){var n=this.renderer.context,s=t.uvs,a=t.vertices,o=t._texture;if(o.valid){var l=o.baseTexture,h=l.source,u=l.width,c=l.height,d=void 0,p=void 0,f=void 0,_=void 0,m=void 0,g=void 0;if(t.uploadUvTransform){var v=t._uvTransform.mapCoord;d=(s[e]*v.a+s[e+1]*v.c+v.tx)*l.width,p=(s[i]*v.a+s[i+1]*v.c+v.tx)*l.width,f=(s[r]*v.a+s[r+1]*v.c+v.tx)*l.width,_=(s[e]*v.b+s[e+1]*v.d+v.ty)*l.height,m=(s[i]*v.b+s[i+1]*v.d+v.ty)*l.height,g=(s[r]*v.b+s[r+1]*v.d+v.ty)*l.height}else d=s[e]*l.width,p=s[i]*l.width,f=s[r]*l.width,_=s[e+1]*l.height,m=s[i+1]*l.height,g=s[r+1]*l.height;var y=a[e],b=a[i],T=a[r],x=a[e+1],E=a[i+1],w=a[r+1];if(t.canvasPadding>0){var S=t.canvasPadding/t.worldTransform.a,D=t.canvasPadding/t.worldTransform.d,I=(y+b+T)/3,P=(x+E+w)/3,A=y-I,C=x-P,M=Math.sqrt(A*A+C*C);y=I+A/M*(M+S),x=P+C/M*(M+D),C=E-P,b=I+(A=b-I)/(M=Math.sqrt(A*A+C*C))*(M+S),E=P+C/M*(M+D),C=w-P,T=I+(A=T-I)/(M=Math.sqrt(A*A+C*C))*(M+S),w=P+C/M*(M+D)}n.save(),n.beginPath(),n.moveTo(y,x),n.lineTo(b,E),n.lineTo(T,w),n.closePath(),n.clip();var L=d*m+_*f+p*g-m*f-_*p-d*g,O=y*m+_*T+b*g-m*T-_*b-y*g,R=d*b+y*f+p*T-b*f-y*p-d*T,j=d*m*T+_*b*f+y*p*g-y*m*f-_*p*T-d*b*g,k=x*m+_*w+E*g-m*w-_*E-x*g,N=d*E+x*f+p*w-E*f-x*p-d*w,H=d*m*w+_*E*f+x*p*g-x*m*f-_*p*w-d*E*g;n.transform(O/L,k/L,R/L,N/L,j/L,H/L),n.drawImage(h,0,0,u*l.resolution,c*l.resolution,0,0,u,c),n.restore()}},t.prototype.renderMeshFlat=function(t){var e=this.renderer.context,i=t.vertices,r=i.length/2;e.beginPath();for(var n=1;n<r-2;++n){var s=2*n,a=i[s],o=i[s+1],l=i[s+2],h=i[s+3],u=i[s+4],c=i[s+5];e.moveTo(a,o),e.lineTo(l,h),e.lineTo(u,c)}e.fillStyle="#FF0000",e.fill(),e.closePath()},t.prototype.destroy=function(){this.renderer=null},t}();i.default=o,n.CanvasRenderer.registerPlugin("mesh",o)},{"../../core":65,"../Mesh":166}],171:[function(t,e,i){"use strict";i.__esModule=!0;var r=t("./Mesh");Object.defineProperty(i,"Mesh",{enumerable:!0,get:function(){return h(r).default}});var n=t("./webgl/MeshRenderer");Object.defineProperty(i,"MeshRenderer",{enumerable:!0,get:function(){return h(n).default}});var s=t("./canvas/CanvasMeshRenderer");Object.defineProperty(i,"CanvasMeshRenderer",{enumerable:!0,get:function(){return h(s).default}});var a=t("./Plane");Object.defineProperty(i,"Plane",{enumerable:!0,get:function(){return h(a).default}});var o=t("./NineSlicePlane");Object.defineProperty(i,"NineSlicePlane",{enumerable:!0,get:function(){return h(o).default}});var l=t("./Rope");function h(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(i,"Rope",{enumerable:!0,get:function(){return h(l).default}})},{"./Mesh":166,"./NineSlicePlane":167,"./Plane":168,"./Rope":169,"./canvas/CanvasMeshRenderer":170,"./webgl/MeshRenderer":172}],172:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../../core")),n=a(t("pixi-gl-core")),s=a(t("../Mesh"));t("path");function a(t){return t&&t.__esModule?t:{default:t}}var o=r.Matrix.IDENTITY,l=function(t){function e(i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return r.shader=null,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.onContextChange=function(){var t=this.renderer.gl;this.shader=new r.Shader(t,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n","varying vec2 vTextureCoord;\nuniform vec4 uColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;\n}\n")},e.prototype.render=function(t){var e=this.renderer,i=e.gl,a=t._texture;if(a.valid){var l=t._glDatas[e.CONTEXT_UID];l||(e.bindVao(null),(l={shader:this.shader,vertexBuffer:n.default.GLBuffer.createVertexBuffer(i,t.vertices,i.STREAM_DRAW),uvBuffer:n.default.GLBuffer.createVertexBuffer(i,t.uvs,i.STREAM_DRAW),indexBuffer:n.default.GLBuffer.createIndexBuffer(i,t.indices,i.STATIC_DRAW),vao:null,dirty:t.dirty,indexDirty:t.indexDirty}).vao=new n.default.VertexArrayObject(i).addIndex(l.indexBuffer).addAttribute(l.vertexBuffer,l.shader.attributes.aVertexPosition,i.FLOAT,!1,8,0).addAttribute(l.uvBuffer,l.shader.attributes.aTextureCoord,i.FLOAT,!1,8,0),t._glDatas[e.CONTEXT_UID]=l),e.bindVao(l.vao),t.dirty!==l.dirty&&(l.dirty=t.dirty,l.uvBuffer.upload(t.uvs)),t.indexDirty!==l.indexDirty&&(l.indexDirty=t.indexDirty,l.indexBuffer.upload(t.indices)),l.vertexBuffer.upload(t.vertices),e.bindShader(l.shader),l.shader.uniforms.uSampler=e.bindTexture(a),e.state.setBlendMode(r.utils.correctBlendMode(t.blendMode,a.baseTexture.premultipliedAlpha)),l.shader.uniforms.uTransform&&(t.uploadUvTransform?l.shader.uniforms.uTransform=t._uvTransform.mapCoord.toArray(!0):l.shader.uniforms.uTransform=o.toArray(!0)),l.shader.uniforms.translationMatrix=t.worldTransform.toArray(!0),l.shader.uniforms.uColor=r.utils.premultiplyRgba(t.tintRgb,t.worldAlpha,l.shader.uniforms.uColor,a.baseTexture.premultipliedAlpha);var h=t.drawMode===s.default.DRAW_MODES.TRIANGLE_MESH?i.TRIANGLE_STRIP:i.TRIANGLES;l.vao.draw(h,t.indices.length,0)}},e}(r.ObjectRenderer);i.default=l,r.WebGLRenderer.registerPlugin("mesh",l)},{"../../core":65,"../Mesh":166,path:23,"pixi-gl-core":12}],173:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../core")),s=t("../core/utils");var a=function(t){function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1500,r=arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16384;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return s>16384&&(s=16384),s>i&&(s=i),a._properties=[!1,!0,!1,!1,!1],a._maxSize=i,a._batchSize=s,a._glBuffers={},a._bufferToUpdate=0,a.interactiveChildren=!1,a.blendMode=n.BLEND_MODES.NORMAL,a.roundPixels=!0,a.baseTexture=null,a.setProperties(r),a._tint=0,a.tintRgb=new Float32Array(4),a.tint=16777215,a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.setProperties=function(t){t&&(this._properties[0]="scale"in t?!!t.scale:this._properties[0],this._properties[1]="position"in t?!!t.position:this._properties[1],this._properties[2]="rotation"in t?!!t.rotation:this._properties[2],this._properties[3]="uvs"in t?!!t.uvs:this._properties[3],this._properties[4]="alpha"in t?!!t.alpha:this._properties[4])},e.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},e.prototype.renderWebGL=function(t){var e=this;this.visible&&!(this.worldAlpha<=0)&&this.children.length&&this.renderable&&(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.hasLoaded||this.baseTexture.once("update",function(){return e.onChildrenChange(0)})),t.setObjectRenderer(t.plugins.particle),t.plugins.particle.render(this))},e.prototype.onChildrenChange=function(t){var e=Math.floor(t/this._batchSize);e<this._bufferToUpdate&&(this._bufferToUpdate=e)},e.prototype.renderCanvas=function(t){if(this.visible&&!(this.worldAlpha<=0)&&this.children.length&&this.renderable){var e=t.context,i=this.worldTransform,r=!0,n=0,s=0,a=0,o=0,l=t.blendModes[this.blendMode];l!==e.globalCompositeOperation&&(e.globalCompositeOperation=l),e.globalAlpha=this.worldAlpha,this.displayObjectUpdateTransform();for(var h=0;h<this.children.length;++h){var u=this.children[h];if(u.visible){var c=u._texture.frame;if(e.globalAlpha=this.worldAlpha*u.alpha,u.rotation%(2*Math.PI)==0)r&&(e.setTransform(i.a,i.b,i.c,i.d,i.tx*t.resolution,i.ty*t.resolution),r=!1),n=u.anchor.x*(-c.width*u.scale.x)+u.position.x+.5,s=u.anchor.y*(-c.height*u.scale.y)+u.position.y+.5,a=c.width*u.scale.x,o=c.height*u.scale.y;else{r||(r=!0),u.displayObjectUpdateTransform();var d=u.worldTransform;t.roundPixels?e.setTransform(d.a,d.b,d.c,d.d,d.tx*t.resolution|0,d.ty*t.resolution|0):e.setTransform(d.a,d.b,d.c,d.d,d.tx*t.resolution,d.ty*t.resolution),n=u.anchor.x*-c.width+.5,s=u.anchor.y*-c.height+.5,a=c.width,o=c.height}var p=u._texture.baseTexture.resolution;e.drawImage(u._texture.baseTexture.source,c.x*p,c.y*p,c.width*p,c.height*p,n*t.resolution,s*t.resolution,a*t.resolution,o*t.resolution)}}}},e.prototype.destroy=function(e){if(t.prototype.destroy.call(this,e),this._buffers)for(var i=0;i<this._buffers.length;++i)this._buffers[i].destroy();this._properties=null,this._buffers=null},r(e,[{key:"tint",get:function(){return this._tint},set:function(t){this._tint=t,(0,s.hex2rgb)(t,this.tintRgb)}}]),e}(n.Container);i.default=a},{"../core":65,"../core/utils":124}],174:[function(t,e,i){"use strict";i.__esModule=!0;var r=t("./ParticleContainer");Object.defineProperty(i,"ParticleContainer",{enumerable:!0,get:function(){return s(r).default}});var n=t("./webgl/ParticleRenderer");function s(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(i,"ParticleRenderer",{enumerable:!0,get:function(){return s(n).default}})},{"./ParticleContainer":173,"./webgl/ParticleRenderer":176}],175:[function(t,e,i){"use strict";i.__esModule=!0;var r=s(t("pixi-gl-core")),n=s(t("../../core/utils/createIndicesForQuads"));function s(t){return t&&t.__esModule?t:{default:t}}var a=function(){function t(e,i,r,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.gl=e,this.vertSize=2,this.vertByteSize=4*this.vertSize,this.size=n,this.dynamicProperties=[],this.staticProperties=[];for(var s=0;s<i.length;++s){var a=i[s];a={attribute:a.attribute,size:a.size,uploadFunction:a.uploadFunction,offset:a.offset},r[s]?this.dynamicProperties.push(a):this.staticProperties.push(a)}this.staticStride=0,this.staticBuffer=null,this.staticData=null,this.dynamicStride=0,this.dynamicBuffer=null,this.dynamicData=null,this.initBuffers()}return t.prototype.initBuffers=function(){var t=this.gl,e=0;this.indices=(0,n.default)(this.size),this.indexBuffer=r.default.GLBuffer.createIndexBuffer(t,this.indices,t.STATIC_DRAW),this.dynamicStride=0;for(var i=0;i<this.dynamicProperties.length;++i){var s=this.dynamicProperties[i];s.offset=e,e+=s.size,this.dynamicStride+=s.size}this.dynamicData=new Float32Array(this.size*this.dynamicStride*4),this.dynamicBuffer=r.default.GLBuffer.createVertexBuffer(t,this.dynamicData,t.STREAM_DRAW);var a=0;this.staticStride=0;for(var o=0;o<this.staticProperties.length;++o){var l=this.staticProperties[o];l.offset=a,a+=l.size,this.staticStride+=l.size}this.staticData=new Float32Array(this.size*this.staticStride*4),this.staticBuffer=r.default.GLBuffer.createVertexBuffer(t,this.staticData,t.STATIC_DRAW),this.vao=new r.default.VertexArrayObject(t).addIndex(this.indexBuffer);for(var h=0;h<this.dynamicProperties.length;++h){var u=this.dynamicProperties[h];this.vao.addAttribute(this.dynamicBuffer,u.attribute,t.FLOAT,!1,4*this.dynamicStride,4*u.offset)}for(var c=0;c<this.staticProperties.length;++c){var d=this.staticProperties[c];this.vao.addAttribute(this.staticBuffer,d.attribute,t.FLOAT,!1,4*this.staticStride,4*d.offset)}},t.prototype.uploadDynamic=function(t,e,i){for(var r=0;r<this.dynamicProperties.length;r++){var n=this.dynamicProperties[r];n.uploadFunction(t,e,i,this.dynamicData,this.dynamicStride,n.offset)}this.dynamicBuffer.upload()},t.prototype.uploadStatic=function(t,e,i){for(var r=0;r<this.staticProperties.length;r++){var n=this.staticProperties[r];n.uploadFunction(t,e,i,this.staticData,this.staticStride,n.offset)}this.staticBuffer.upload()},t.prototype.destroy=function(){this.dynamicProperties=null,this.dynamicData=null,this.dynamicBuffer.destroy(),this.staticProperties=null,this.staticData=null,this.staticBuffer.destroy()},t}();i.default=a},{"../../core/utils/createIndicesForQuads":122,"pixi-gl-core":12}],176:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../../core")),n=a(t("./ParticleShader")),s=a(t("./ParticleBuffer"));function a(t){return t&&t.__esModule?t:{default:t}}var o=function(t){function e(i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return n.shader=null,n.indexBuffer=null,n.properties=null,n.tempMatrix=new r.Matrix,n.CONTEXT_UID=0,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.onContextChange=function(){var t=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.shader=new n.default(t),this.properties=[{attribute:this.shader.attributes.aVertexPosition,size:2,uploadFunction:this.uploadVertices,offset:0},{attribute:this.shader.attributes.aPositionCoord,size:2,uploadFunction:this.uploadPosition,offset:0},{attribute:this.shader.attributes.aRotation,size:1,uploadFunction:this.uploadRotation,offset:0},{attribute:this.shader.attributes.aTextureCoord,size:2,uploadFunction:this.uploadUvs,offset:0},{attribute:this.shader.attributes.aColor,size:1,uploadFunction:this.uploadAlpha,offset:0}]},e.prototype.start=function(){this.renderer.bindShader(this.shader)},e.prototype.render=function(t){var e=t.children,i=t._maxSize,n=t._batchSize,s=this.renderer,a=e.length;if(0!==a){a>i&&(a=i);var o=t._glBuffers[s.CONTEXT_UID];o||(o=t._glBuffers[s.CONTEXT_UID]=this.generateBuffers(t));var l=e[0]._texture.baseTexture;this.renderer.setBlendMode(r.utils.correctBlendMode(t.blendMode,l.premultipliedAlpha));var h=s.gl,u=t.worldTransform.copy(this.tempMatrix);u.prepend(s._activeRenderTarget.projectionMatrix),this.shader.uniforms.projectionMatrix=u.toArray(!0),this.shader.uniforms.uColor=r.utils.premultiplyRgba(t.tintRgb,t.worldAlpha,this.shader.uniforms.uColor,l.premultipliedAlpha),this.shader.uniforms.uSampler=s.bindTexture(l);for(var c=0,d=0;c<a;c+=n,d+=1){var p=a-c;p>n&&(p=n);var f=o[d];f.uploadDynamic(e,c,p),t._bufferToUpdate===d&&(f.uploadStatic(e,c,p),t._bufferToUpdate=d+1),s.bindVao(f.vao),f.vao.draw(h.TRIANGLES,6*p)}}},e.prototype.generateBuffers=function(t){for(var e=this.renderer.gl,i=[],r=t._maxSize,n=t._batchSize,a=t._properties,o=0;o<r;o+=n)i.push(new s.default(e,this.properties,a,n));return i},e.prototype.uploadVertices=function(t,e,i,r,n,s){for(var a=0,o=0,l=0,h=0,u=0;u<i;++u){var c=t[e+u],d=c._texture,p=c.scale.x,f=c.scale.y,_=d.trim,m=d.orig;_?(a=(o=_.x-c.anchor.x*m.width)+_.width,l=(h=_.y-c.anchor.y*m.height)+_.height):(a=m.width*(1-c.anchor.x),o=m.width*-c.anchor.x,l=m.height*(1-c.anchor.y),h=m.height*-c.anchor.y),r[s]=o*p,r[s+1]=h*f,r[s+n]=a*p,r[s+n+1]=h*f,r[s+2*n]=a*p,r[s+2*n+1]=l*f,r[s+3*n]=o*p,r[s+3*n+1]=l*f,s+=4*n}},e.prototype.uploadPosition=function(t,e,i,r,n,s){for(var a=0;a<i;a++){var o=t[e+a].position;r[s]=o.x,r[s+1]=o.y,r[s+n]=o.x,r[s+n+1]=o.y,r[s+2*n]=o.x,r[s+2*n+1]=o.y,r[s+3*n]=o.x,r[s+3*n+1]=o.y,s+=4*n}},e.prototype.uploadRotation=function(t,e,i,r,n,s){for(var a=0;a<i;a++){var o=t[e+a].rotation;r[s]=o,r[s+n]=o,r[s+2*n]=o,r[s+3*n]=o,s+=4*n}},e.prototype.uploadUvs=function(t,e,i,r,n,s){for(var a=0;a<i;++a){var o=t[e+a]._texture._uvs;o?(r[s]=o.x0,r[s+1]=o.y0,r[s+n]=o.x1,r[s+n+1]=o.y1,r[s+2*n]=o.x2,r[s+2*n+1]=o.y2,r[s+3*n]=o.x3,r[s+3*n+1]=o.y3,s+=4*n):(r[s]=0,r[s+1]=0,r[s+n]=0,r[s+n+1]=0,r[s+2*n]=0,r[s+2*n+1]=0,r[s+3*n]=0,r[s+3*n+1]=0,s+=4*n)}},e.prototype.uploadAlpha=function(t,e,i,r,n,s){for(var a=0;a<i;a++){var o=t[e+a].alpha;r[s]=o,r[s+n]=o,r[s+2*n]=o,r[s+3*n]=o,s+=4*n}},e.prototype.destroy=function(){this.renderer.gl&&this.renderer.gl.deleteBuffer(this.indexBuffer),t.prototype.destroy.call(this),this.shader.destroy(),this.indices=null,this.tempMatrix=null},e}(r.ObjectRenderer);i.default=o,r.WebGLRenderer.registerPlugin("particle",o)},{"../../core":65,"./ParticleBuffer":175,"./ParticleShader":177}],177:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=t("../../core/Shader");var s=function(t){function e(i){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i,["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","attribute float aColor;","attribute vec2 aPositionCoord;","attribute vec2 aScale;","attribute float aRotation;","uniform mat3 projectionMatrix;","varying vec2 vTextureCoord;","varying float vColor;","void main(void){"," vec2 v = aVertexPosition;"," v.x = (aVertexPosition.x) * cos(aRotation) - (aVertexPosition.y) * sin(aRotation);"," v.y = (aVertexPosition.x) * sin(aRotation) + (aVertexPosition.y) * cos(aRotation);"," v = v + aPositionCoord;"," gl_Position = vec4((projectionMatrix * vec3(v, 1.0)).xy, 0.0, 1.0);"," vTextureCoord = aTextureCoord;"," vColor = aColor;","}"].join("\n"),["varying vec2 vTextureCoord;","varying float vColor;","uniform sampler2D uSampler;","uniform vec4 uColor;","void main(void){"," vec4 color = texture2D(uSampler, vTextureCoord) * vColor * uColor;"," if (color.a == 0.0) discard;"," gl_FragColor = color;","}"].join("\n")))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=n)&&r.__esModule?r:{default:r}).default);i.default=s},{"../../core/Shader":44}],178:[function(t,e,i){"use strict";Math.sign||(Math.sign=function(t){return 0===(t=Number(t))||isNaN(t)?t:t>0?1:-1})},{}],179:[function(t,e,i){"use strict";var r,n=t("object-assign"),s=(r=n)&&r.__esModule?r:{default:r};Object.assign||(Object.assign=s.default)},{"object-assign":5}],180:[function(t,e,i){"use strict";t("./Object.assign"),t("./requestAnimationFrame"),t("./Math.sign"),window.ArrayBuffer||(window.ArrayBuffer=Array),window.Float32Array||(window.Float32Array=Array),window.Uint32Array||(window.Uint32Array=Array),window.Uint16Array||(window.Uint16Array=Array)},{"./Math.sign":178,"./Object.assign":179,"./requestAnimationFrame":181}],181:[function(t,e,i){(function(t){"use strict";if(Date.now&&Date.prototype.getTime||(Date.now=function(){return(new Date).getTime()}),!t.performance||!t.performance.now){var e=Date.now();t.performance||(t.performance={}),t.performance.now=function(){return Date.now()-e}}for(var i=Date.now(),r=["ms","moz","webkit","o"],n=0;n<r.length&&!t.requestAnimationFrame;++n){var s=r[n];t.requestAnimationFrame=t[s+"RequestAnimationFrame"],t.cancelAnimationFrame=t[s+"CancelAnimationFrame"]||t[s+"CancelRequestAnimationFrame"]}t.requestAnimationFrame||(t.requestAnimationFrame=function(t){if("function"!=typeof t)throw new TypeError(t+"is not a function");var e=Date.now(),r=16+i-e;return r<0&&(r=0),i=e,setTimeout(function(){i=Date.now(),t(performance.now())},r)}),t.cancelAnimationFrame||(t.cancelAnimationFrame=function(t){return clearTimeout(t)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],182:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../core")),s=t("./limiters/CountLimiter"),a=(r=s)&&r.__esModule?r:{default:r};var o=n.ticker.shared;n.settings.UPLOADS_PER_FRAME=4;var l=function(){function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.limiter=new a.default(n.settings.UPLOADS_PER_FRAME),this.renderer=e,this.uploadHookHelper=null,this.queue=[],this.addHooks=[],this.uploadHooks=[],this.completes=[],this.ticking=!1,this.delayedTick=function(){i.queue&&i.prepareItems()},this.registerFindHook(f),this.registerFindHook(_),this.registerFindHook(h),this.registerFindHook(u),this.registerFindHook(c),this.registerUploadHook(d),this.registerUploadHook(p)}return t.prototype.upload=function(t,e){"function"==typeof t&&(e=t,t=null),t&&this.add(t),this.queue.length?(e&&this.completes.push(e),this.ticking||(this.ticking=!0,o.addOnce(this.tick,this,n.UPDATE_PRIORITY.UTILITY))):e&&e()},t.prototype.tick=function(){setTimeout(this.delayedTick,0)},t.prototype.prepareItems=function(){for(this.limiter.beginFrame();this.queue.length&&this.limiter.allowedToUpload();){var t=this.queue[0],e=!1;if(t&&!t._destroyed)for(var i=0,r=this.uploadHooks.length;i<r;i++)if(this.uploadHooks[i](this.uploadHookHelper,t)){this.queue.shift(),e=!0;break}e||this.queue.shift()}if(this.queue.length)o.addOnce(this.tick,this,n.UPDATE_PRIORITY.UTILITY);else{this.ticking=!1;var s=this.completes.slice(0);this.completes.length=0;for(var a=0,l=s.length;a<l;a++)s[a]()}},t.prototype.registerFindHook=function(t){return t&&this.addHooks.push(t),this},t.prototype.registerUploadHook=function(t){return t&&this.uploadHooks.push(t),this},t.prototype.add=function(t){for(var e=0,i=this.addHooks.length;e<i&&!this.addHooks[e](t,this.queue);e++);if(t instanceof n.Container)for(var r=t.children.length-1;r>=0;r--)this.add(t.children[r]);return this},t.prototype.destroy=function(){this.ticking&&o.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},t}();function h(t,e){var i=!1;if(t&&t._textures&&t._textures.length)for(var r=0;r<t._textures.length;r++)if(t._textures[r]instanceof n.Texture){var s=t._textures[r].baseTexture;-1===e.indexOf(s)&&(e.push(s),i=!0)}return i}function u(t,e){return t instanceof n.BaseTexture&&(-1===e.indexOf(t)&&e.push(t),!0)}function c(t,e){if(t._texture&&t._texture instanceof n.Texture){var i=t._texture.baseTexture;return-1===e.indexOf(i)&&e.push(i),!0}return!1}function d(t,e){return e instanceof n.Text&&(e.updateText(!0),!0)}function p(t,e){if(e instanceof n.TextStyle){var i=e.toFontString();return n.TextMetrics.measureFont(i),!0}return!1}function f(t,e){if(t instanceof n.Text){-1===e.indexOf(t.style)&&e.push(t.style),-1===e.indexOf(t)&&e.push(t);var i=t._texture.baseTexture;return-1===e.indexOf(i)&&e.push(i),!0}return!1}function _(t,e){return t instanceof n.TextStyle&&(-1===e.indexOf(t)&&e.push(t),!0)}i.default=l},{"../core":65,"./limiters/CountLimiter":185}],183:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../../core")),s=t("../BasePrepare"),a=(r=s)&&r.__esModule?r:{default:r};var o=16,l=function(t){function e(i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return r.uploadHookHelper=r,r.canvas=document.createElement("canvas"),r.canvas.width=o,r.canvas.height=o,r.ctx=r.canvas.getContext("2d"),r.registerUploadHook(h),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.ctx=null,this.canvas=null},e}(a.default);function h(t,e){if(e instanceof n.BaseTexture){var i=e.source,r=0===i.width?t.canvas.width:Math.min(t.canvas.width,i.width),s=0===i.height?t.canvas.height:Math.min(t.canvas.height,i.height);return t.ctx.drawImage(i,0,0,r,s,0,0,t.canvas.width,t.canvas.height),!0}return!1}i.default=l,n.CanvasRenderer.registerPlugin("prepare",l)},{"../../core":65,"../BasePrepare":182}],184:[function(t,e,i){"use strict";i.__esModule=!0;var r=t("./webgl/WebGLPrepare");Object.defineProperty(i,"webgl",{enumerable:!0,get:function(){return l(r).default}});var n=t("./canvas/CanvasPrepare");Object.defineProperty(i,"canvas",{enumerable:!0,get:function(){return l(n).default}});var s=t("./BasePrepare");Object.defineProperty(i,"BasePrepare",{enumerable:!0,get:function(){return l(s).default}});var a=t("./limiters/CountLimiter");Object.defineProperty(i,"CountLimiter",{enumerable:!0,get:function(){return l(a).default}});var o=t("./limiters/TimeLimiter");function l(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(i,"TimeLimiter",{enumerable:!0,get:function(){return l(o).default}})},{"./BasePrepare":182,"./canvas/CanvasPrepare":183,"./limiters/CountLimiter":185,"./limiters/TimeLimiter":186,"./webgl/WebGLPrepare":187}],185:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.maxItemsPerFrame=e,this.itemsLeft=0}return t.prototype.beginFrame=function(){this.itemsLeft=this.maxItemsPerFrame},t.prototype.allowedToUpload=function(){return this.itemsLeft-- >0},t}();i.default=r},{}],186:[function(t,e,i){"use strict";i.__esModule=!0;var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.maxMilliseconds=e,this.frameStart=0}return t.prototype.beginFrame=function(){this.frameStart=Date.now()},t.prototype.allowedToUpload=function(){return Date.now()-this.frameStart<this.maxMilliseconds},t}();i.default=r},{}],187:[function(t,e,i){"use strict";i.__esModule=!0;var r,n=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}}(t("../../core")),s=t("../BasePrepare");var a=function(t){function e(i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return r.uploadHookHelper=r.renderer,r.registerFindHook(h),r.registerUploadHook(o),r.registerUploadHook(l),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=s)&&r.__esModule?r:{default:r}).default);function o(t,e){return e instanceof n.BaseTexture&&(e._glTextures[t.CONTEXT_UID]||t.textureManager.updateTexture(e),!0)}function l(t,e){return e instanceof n.Graphics&&((e.dirty||e.clearDirty||!e._webGL[t.plugins.graphics.CONTEXT_UID])&&t.plugins.graphics.updateGraphics(e),!0)}function h(t,e){return t instanceof n.Graphics&&(e.push(t),!0)}i.default=a,n.WebGLRenderer.registerPlugin("prepare",a)},{"../../core":65,"../BasePrepare":182}],188:[function(t,e,i){(function(e){"use strict";i.__esModule=!0,i.loader=i.prepare=i.particles=i.mesh=i.loaders=i.interaction=i.filters=i.extras=i.extract=i.accessibility=void 0;var r=t("./polyfill");Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(i,t,{enumerable:!0,get:function(){return r[t]}})});var n=t("./core");Object.keys(n).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(i,t,{enumerable:!0,get:function(){return n[t]}})});var s,a=t("./deprecation"),o=(s=a)&&s.__esModule?s:{default:s},l=g(t("./accessibility")),h=g(t("./extract")),u=g(t("./extras")),c=g(t("./filters")),d=g(t("./interaction")),p=g(t("./loaders")),f=g(t("./mesh")),_=g(t("./particles")),m=g(t("./prepare"));function g(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}n.utils.mixins.performMixins();var v=p.shared||null;i.accessibility=l,i.extract=h,i.extras=u,i.filters=c,i.interaction=d,i.loaders=p,i.mesh=f,i.particles=_,i.prepare=m,i.loader=v,"function"==typeof o.default&&(0,o.default)(i),e.PIXI=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./accessibility":42,"./core":65,"./deprecation":130,"./extract":132,"./extras":141,"./filters":152,"./interaction":159,"./loaders":162,"./mesh":171,"./particles":174,"./polyfill":180,"./prepare":184}]},{},[188])(188)});var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;if((_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var t,e,i,r,n,s,a,o,l,h,u,c,d,p,f,_,m;_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var r=function(t){var e,i=[],r=t.length;for(e=0;e!==r;i.push(t[e++]));return i},n=function(t,e,i){var r,n,s=t.cycle;for(r in s)n=s[r],t[r]="function"==typeof n?n(i,e[i]):n[i%n.length];delete t.cycle},s=function(t,e,r){i.call(this,t,e,r),this._cycle=0,this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._dirty=!0,this.render=s.prototype.render},a=1e-10,o=i._internals,l=o.isSelector,h=o.isArray,u=s.prototype=i.to({},.1,{}),c=[];s.version="1.19.1",u.constructor=s,u.kill()._gc=!1,s.killTweensOf=s.killDelayedCallsTo=i.killTweensOf,s.getTweensOf=i.getTweensOf,s.lagSmoothing=i.lagSmoothing,s.ticker=i.ticker,s.render=i.render,u.invalidate=function(){return this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),i.prototype.invalidate.call(this)},u.updateTo=function(t,e){var r,n=this.ratio,s=this.vars.immediateRender||t.immediateRender;for(r in e&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay)),t)this.vars[r]=t[r];if(this._initted||s)if(e)this._initted=!1,s&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&i._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var a=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(a,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||s)for(var o,l=1/(1-n),h=this._firstPT;h;)o=h.s+h.c,h.c*=l,h.s=o-h.c,h=h._next;return this},u.render=function(t,e,i){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var r,n,s,l,h,u,c,d,p=this._dirty?this.totalDuration():this._totalDuration,f=this._time,_=this._totalTime,m=this._cycle,g=this._duration,v=this._rawPrevTime;if(t>=p-1e-7&&t>=0?(this._totalTime=p,this._cycle=this._repeat,this._yoyo&&0!=(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=g,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(r=!0,n="onComplete",i=i||this._timeline.autoRemoveChildren),0===g&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(v<0||t<=0&&t>=-1e-7||v===a&&"isPause"!==this.data)&&v!==t&&(i=!0,v>a&&(n="onReverseComplete")),this._rawPrevTime=d=!e||t||v===t?t:a)):t<1e-7?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==_||0===g&&v>0)&&(n="onReverseComplete",r=this._reversed),t<0&&(this._active=!1,0===g&&(this._initted||!this.vars.lazy||i)&&(v>=0&&(i=!0),this._rawPrevTime=d=!e||t||v===t?t:a)),this._initted||(i=!0)):(this._totalTime=this._time=t,0!==this._repeat&&(l=g+this._repeatDelay,this._cycle=this._totalTime/l>>0,0!==this._cycle&&this._cycle===this._totalTime/l&&_<=t&&this._cycle--,this._time=this._totalTime-this._cycle*l,this._yoyo&&0!=(1&this._cycle)&&(this._time=g-this._time),this._time>g?this._time=g:this._time<0&&(this._time=0)),this._easeType?(h=this._time/g,(1===(u=this._easeType)||3===u&&h>=.5)&&(h=1-h),3===u&&(h*=2),1===(c=this._easePower)?h*=h:2===c?h*=h*h:3===c?h*=h*h*h:4===c&&(h*=h*h*h*h),1===u?this.ratio=1-h:2===u?this.ratio=h:this._time/g<.5?this.ratio=h/2:this.ratio=1-h/2):this.ratio=this._ease.getRatio(this._time/g)),f!==this._time||i||m!==this._cycle){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=f,this._totalTime=_,this._rawPrevTime=v,this._cycle=m,o.lazyTweens.push(this),void(this._lazy=[t,e]);this._time&&!r?this.ratio=this._ease.getRatio(this._time/g):r&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==f&&t>=0&&(this._active=!0),0===_&&(2===this._initted&&t>0&&this._init(),this._startAt&&(t>=0?this._startAt.render(t,e,i):n||(n="_dummyGS")),this.vars.onStart&&(0===this._totalTime&&0!==g||e||this._callback("onStart"))),s=this._firstPT;s;)s.f?s.t[s.p](s.c*this.ratio+s.s):s.t[s.p]=s.c*this.ratio+s.s,s=s._next;this._onUpdate&&(t<0&&this._startAt&&this._startTime&&this._startAt.render(t,e,i),e||(this._totalTime!==_||n)&&this._callback("onUpdate")),this._cycle!==m&&(e||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),n&&(this._gc&&!i||(t<0&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,e,i),r&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[n]&&this._callback(n),0===g&&this._rawPrevTime===a&&d!==a&&(this._rawPrevTime=0)))}else _!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},s.to=function(t,e,i){return new s(t,e,i)},s.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new s(t,e,i)},s.fromTo=function(t,e,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new s(t,e,r)},s.staggerTo=s.allTo=function(t,e,a,o,u,d,p){o=o||0;var f,_,m,g,v=0,y=[],b=function(){a.onComplete&&a.onComplete.apply(a.onCompleteScope||this,arguments),u.apply(p||a.callbackScope||this,d||c)},T=a.cycle,x=a.startAt&&a.startAt.cycle;for(h(t)||("string"==typeof t&&(t=i.selector(t)||t),l(t)&&(t=r(t))),t=t||[],o<0&&((t=r(t)).reverse(),o*=-1),f=t.length-1,m=0;m<=f;m++){for(g in _={},a)_[g]=a[g];if(T&&(n(_,t,m),null!=_.duration&&(e=_.duration,delete _.duration)),x){for(g in x=_.startAt={},a.startAt)x[g]=a.startAt[g];n(_.startAt,t,m)}_.delay=v+(_.delay||0),m===f&&u&&(_.onComplete=b),y[m]=new s(t[m],e,_),v+=o}return y},s.staggerFrom=s.allFrom=function(t,e,i,r,n,a,o){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,s.staggerTo(t,e,i,r,n,a,o)},s.staggerFromTo=s.allFromTo=function(t,e,i,r,n,a,o,l){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,s.staggerTo(t,e,r,n,a,o,l)},s.delayedCall=function(t,e,i,r,n){return new s(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,useFrames:n,overwrite:0})},s.set=function(t,e){return new s(t,0,e)},s.isTweening=function(t){return i.getTweensOf(t,!0).length>0};var d=function(t,e){for(var r=[],n=0,s=t._first;s;)s instanceof i?r[n++]=s:(e&&(r[n++]=s),n=(r=r.concat(d(s,e))).length),s=s._next;return r},p=s.getAllTweens=function(e){return d(t._rootTimeline,e).concat(d(t._rootFramesTimeline,e))};s.killAll=function(t,i,r,n){null==i&&(i=!0),null==r&&(r=!0);var s,a,o,l=p(0!=n),h=l.length,u=i&&r&&n;for(o=0;o<h;o++)a=l[o],(u||a instanceof e||(s=a.target===a.vars.onComplete)&&r||i&&!s)&&(t?a.totalTime(a._reversed?0:a.totalDuration()):a._enabled(!1,!1))},s.killChildTweensOf=function(t,e){if(null!=t){var n,a,u,c,d,p=o.tweenLookup;if("string"==typeof t&&(t=i.selector(t)||t),l(t)&&(t=r(t)),h(t))for(c=t.length;--c>-1;)s.killChildTweensOf(t[c],e);else{for(u in n=[],p)for(a=p[u].target.parentNode;a;)a===t&&(n=n.concat(p[u].tweens)),a=a.parentNode;for(d=n.length,c=0;c<d;c++)e&&n[c].totalTime(n[c].totalDuration()),n[c]._enabled(!1,!1)}}};var f=function(t,i,r,n){i=!1!==i,r=!1!==r;for(var s,a,o=p(n=!1!==n),l=i&&r&&n,h=o.length;--h>-1;)a=o[h],(l||a instanceof e||(s=a.target===a.vars.onComplete)&&r||i&&!s)&&a.paused(t)};return s.pauseAll=function(t,e,i){f(!0,t,e,i)},s.resumeAll=function(t,e,i){f(!1,t,e,i)},s.globalTimeScale=function(e){var r=t._rootTimeline,n=i.ticker.time;return arguments.length?(e=e||a,r._startTime=n-(n-r._startTime)*r._timeScale/e,r=t._rootFramesTimeline,n=i.ticker.frame,r._startTime=n-(n-r._startTime)*r._timeScale/e,r._timeScale=t._rootTimeline._timeScale=e,e):r._timeScale},u.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()},u.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},u.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!=(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},u.duration=function(e){return arguments.length?t.prototype.duration.call(this,e):this._duration},u.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},u.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},u.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},u.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},s},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var r=function(t){e.call(this,t),this._labels={},this.autoRemoveChildren=!0===this.vars.autoRemoveChildren,this.smoothChildTiming=!0===this.vars.smoothChildTiming,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var i,r,n=this.vars;for(r in n)i=n[r],o(i)&&-1!==i.join("").indexOf("{self}")&&(n[r]=this._swapSelfInParams(i));o(n.tweens)&&this.add(n.tweens,0,n.align,n.stagger)},n=i._internals,s=r._internals={},a=n.isSelector,o=n.isArray,l=n.lazyTweens,h=n.lazyRender,u=_gsScope._gsDefine.globals,c=function(t){var e,i={};for(e in t)i[e]=t[e];return i},d=function(t,e,i){var r,n,s=t.cycle;for(r in s)n=s[r],t[r]="function"==typeof n?n(i,e[i]):n[i%n.length];delete t.cycle},p=s.pauseCallback=function(){},f=function(t){var e,i=[],r=t.length;for(e=0;e!==r;i.push(t[e++]));return i},_=r.prototype=new e;return r.version="1.19.1",_.constructor=r,_.kill()._gc=_._forcingPlayhead=_._hasPause=!1,_.to=function(t,e,r,n){var s=r.repeat&&u.TweenMax||i;return e?this.add(new s(t,e,r),n):this.set(t,r,n)},_.from=function(t,e,r,n){return this.add((r.repeat&&u.TweenMax||i).from(t,e,r),n)},_.fromTo=function(t,e,r,n,s){var a=n.repeat&&u.TweenMax||i;return e?this.add(a.fromTo(t,e,r,n),s):this.set(t,n,s)},_.staggerTo=function(t,e,n,s,o,l,h,u){var p,_,m=new r({onComplete:l,onCompleteParams:h,callbackScope:u,smoothChildTiming:this.smoothChildTiming}),g=n.cycle;for("string"==typeof t&&(t=i.selector(t)||t),a(t=t||[])&&(t=f(t)),(s=s||0)<0&&((t=f(t)).reverse(),s*=-1),_=0;_<t.length;_++)(p=c(n)).startAt&&(p.startAt=c(p.startAt),p.startAt.cycle&&d(p.startAt,t,_)),g&&(d(p,t,_),null!=p.duration&&(e=p.duration,delete p.duration)),m.to(t[_],e,p,_*s);return this.add(m,o)},_.staggerFrom=function(t,e,i,r,n,s,a,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,r,n,s,a,o)},_.staggerFromTo=function(t,e,i,r,n,s,a,o,l){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,r,n,s,a,o,l)},_.call=function(t,e,r,n){return this.add(i.delayedCall(0,t,e,r),n)},_.set=function(t,e,r){return r=this._parseTimeOrLabel(r,0,!0),null==e.immediateRender&&(e.immediateRender=r===this._time&&!this._paused),this.add(new i(t,0,e),r)},r.exportRoot=function(t,e){null==(t=t||{}).smoothChildTiming&&(t.smoothChildTiming=!0);var n,s,a=new r(t),o=a._timeline;for(null==e&&(e=!0),o._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=o._time,n=o._first;n;)s=n._next,e&&n instanceof i&&n.target===n.vars.onComplete||a.add(n,n._startTime-n._delay),n=s;return o.add(a,0),a},_.add=function(n,s,a,l){var h,u,c,d,p,f;if("number"!=typeof s&&(s=this._parseTimeOrLabel(s,0,!0,n)),!(n instanceof t)){if(n instanceof Array||n&&n.push&&o(n)){for(a=a||"normal",l=l||0,h=s,u=n.length,c=0;c<u;c++)o(d=n[c])&&(d=new r({tweens:d})),this.add(d,h),"string"!=typeof d&&"function"!=typeof d&&("sequence"===a?h=d._startTime+d.totalDuration()/d._timeScale:"start"===a&&(d._startTime-=d.delay())),h+=l;return this._uncache(!0)}if("string"==typeof n)return this.addLabel(n,s);if("function"!=typeof n)throw"Cannot add "+n+" into the timeline; it is not a tween, timeline, function, or string.";n=i.delayedCall(0,n)}if(e.prototype.add.call(this,n,s),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(f=(p=this).rawTime()>n._startTime;p._timeline;)f&&p._timeline.smoothChildTiming?p.totalTime(p._totalTime,!0):p._gc&&p._enabled(!0,!1),p=p._timeline;return this},_.remove=function(e){if(e instanceof t){this._remove(e,!1);var i=e._timeline=e.vars.useFrames?t._rootFramesTimeline:t._rootTimeline;return e._startTime=(e._paused?e._pauseTime:i._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this}if(e instanceof Array||e&&e.push&&o(e)){for(var r=e.length;--r>-1;)this.remove(e[r]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},_._remove=function(t,i){return e.prototype._remove.call(this,t,i),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},_.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},_.insert=_.insertMultiple=function(t,e,i,r){return this.add(t,e||0,i,r)},_.appendMultiple=function(t,e,i,r){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,r)},_.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},_.addPause=function(t,e,r,n){var s=i.delayedCall(0,p,r,n||this);return s.vars.onComplete=s.vars.onReverseComplete=e,s.data="isPause",this._hasPause=!0,this.add(s,t)},_.removeLabel=function(t){return delete this._labels[t],this},_.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},_._parseTimeOrLabel=function(e,i,r,n){var s;if(n instanceof t&&n.timeline===this)this.remove(n);else if(n&&(n instanceof Array||n.push&&o(n)))for(s=n.length;--s>-1;)n[s]instanceof t&&n[s].timeline===this&&this.remove(n[s]);if("string"==typeof i)return this._parseTimeOrLabel(i,r&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,r);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(-1===(s=e.indexOf("=")))return null==this._labels[e]?r?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseInt(e.charAt(s-1)+"1",10)*Number(e.substr(s+1)),e=s>1?this._parseTimeOrLabel(e.substr(0,s-1),0,r):this.duration()}return Number(e)+i},_.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},_.stop=function(){return this.paused(!0)},_.gotoAndPlay=function(t,e){return this.play(t,e)},_.gotoAndStop=function(t,e){return this.pause(t,e)},_.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,n,s,a,o,u,c,d=this._dirty?this.totalDuration():this._totalDuration,p=this._time,f=this._startTime,_=this._timeScale,m=this._paused;if(t>=d-1e-7&&t>=0)this._totalTime=this._time=d,this._reversed||this._hasPausedChild()||(n=!0,a="onComplete",o=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&t>=-1e-7||this._rawPrevTime<0||1e-10===this._rawPrevTime)&&this._rawPrevTime!==t&&this._first&&(o=!0,this._rawPrevTime>1e-10&&(a="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:1e-10,t=d+1e-4;else if(t<1e-7)if(this._totalTime=this._time=0,(0!==p||0===this._duration&&1e-10!==this._rawPrevTime&&(this._rawPrevTime>0||t<0&&this._rawPrevTime>=0))&&(a="onReverseComplete",n=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(o=n=!0,a="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(o=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:1e-10,0===t&&n)for(r=this._first;r&&0===r._startTime;)r._duration||(n=!1),r=r._next;t=0,this._initted||(o=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!e){if(t>=p)for(r=this._first;r&&r._startTime<=t&&!u;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===this._rawPrevTime||(u=r),r=r._next;else for(r=this._last;r&&r._startTime>=t&&!u;)r._duration||"isPause"===r.data&&r._rawPrevTime>0&&(u=r),r=r._prev;u&&(this._time=t=u._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=t}if(this._time!==p&&this._first||i||o||u){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==p&&t>0&&(this._active=!0),0===p&&this.vars.onStart&&(0===this._time&&this._duration||e||this._callback("onStart")),(c=this._time)>=p)for(r=this._first;r&&(s=r._next,c===this._time&&(!this._paused||m));)(r._active||r._startTime<=c&&!r._paused&&!r._gc)&&(u===r&&this.pause(),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=s;else for(r=this._last;r&&(s=r._prev,c===this._time&&(!this._paused||m));){if(r._active||r._startTime<=p&&!r._paused&&!r._gc){if(u===r){for(u=r._prev;u&&u.endTime()>this._time;)u.render(u._reversed?u.totalDuration()-(t-u._startTime)*u._timeScale:(t-u._startTime)*u._timeScale,e,i),u=u._prev;u=null,this.pause()}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)}r=s}this._onUpdate&&(e||(l.length&&h(),this._callback("onUpdate"))),a&&(this._gc||f!==this._startTime&&_===this._timeScale||(0===this._time||d>=this.totalDuration())&&(n&&(l.length&&h(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[a]&&this._callback(a)))}},_._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof r&&t._hasPausedChild())return!0;t=t._next}return!1},_.getChildren=function(t,e,r,n){n=n||-9999999999;for(var s=[],a=this._first,o=0;a;)a._startTime<n||(a instanceof i?!1!==e&&(s[o++]=a):(!1!==r&&(s[o++]=a),!1!==t&&(o=(s=s.concat(a.getChildren(!0,e,r))).length))),a=a._next;return s},_.getTweensOf=function(t,e){var r,n,s=this._gc,a=[],o=0;for(s&&this._enabled(!0,!0),n=(r=i.getTweensOf(t)).length;--n>-1;)(r[n].timeline===this||e&&this._contains(r[n]))&&(a[o++]=r[n]);return s&&this._enabled(!1,!0),a},_.recent=function(){return this._recent},_._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},_.shiftChildren=function(t,e,i){i=i||0;for(var r,n=this._first,s=this._labels;n;)n._startTime>=i&&(n._startTime+=t),n=n._next;if(e)for(r in s)s[r]>=i&&(s[r]+=t);return this._uncache(!0)},_._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),r=i.length,n=!1;--r>-1;)i[r]._kill(t,e)&&(n=!0);return n},_.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;)e[i]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},_.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},_._enabled=function(t,i){if(t===this._gc)for(var r=this._first;r;)r._enabled(t,!0),r=r._next;return e.prototype._enabled.call(this,t,i)},_.totalTime=function(e,i,r){this._forcingPlayhead=!0;var n=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,n},_.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},_.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,r=0,n=this._last,s=999999999999;n;)e=n._prev,n._dirty&&n.totalDuration(),n._startTime>s&&this._sortChildren&&!n._paused?this.add(n,n._startTime-n._delay):s=n._startTime,n._startTime<0&&!n._paused&&(r-=n._startTime,this._timeline.smoothChildTiming&&(this._startTime+=n._startTime/this._timeScale),this.shiftChildren(-n._startTime,!1,-9999999999),s=0),(i=n._startTime+n._totalDuration/n._timeScale)>r&&(r=i),n=e;this._duration=this._totalDuration=r,this._dirty=!1}return this._totalDuration}return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this},_.paused=function(e){if(!e)for(var i=this._first,r=this._time;i;)i._startTime===r&&"isPause"===i.data&&(i._rawPrevTime=0),i=i._next;return t.prototype.paused.apply(this,arguments)},_.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},_.rawTime=function(t){return t&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(t)-this._startTime)*this._timeScale},r},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(t,e,i){var r=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!0===this.vars.yoyo,this._dirty=!0},n=e._internals,s=n.lazyTweens,a=n.lazyRender,o=_gsScope._gsDefine.globals,l=new i(null,null,1,0),h=r.prototype=new t;return h.constructor=r,h.kill()._gc=!1,r.version="1.19.1",h.invalidate=function(){return this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},h.addCallback=function(t,i,r,n){return this.add(e.delayedCall(0,t,r,n),i)},h.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),r=i.length,n=this._parseTimeOrLabel(e);--r>-1;)i[r]._startTime===n&&i[r]._enabled(!1,!1);return this},h.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},h.tweenTo=function(t,i){i=i||{};var r,n,s,a={ease:l,useFrames:this.usesFrames(),immediateRender:!1},h=i.repeat&&o.TweenMax||e;for(n in i)a[n]=i[n];return a.time=this._parseTimeOrLabel(t),r=Math.abs(Number(a.time)-this._time)/this._timeScale||.001,s=new h(this,r,a),a.onStart=function(){s.target.paused(!0),s.vars.time!==s.target.time()&&r===s.duration()&&s.duration(Math.abs(s.vars.time-s.target.time())/s.target._timeScale),i.onStart&&i.onStart.apply(i.onStartScope||i.callbackScope||s,i.onStartParams||[])},s},h.tweenFromTo=function(t,e,i){i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},i.immediateRender=!1!==i.immediateRender;var r=this.tweenTo(e,i);return r.duration(Math.abs(r.vars.time-t)/this._timeScale||.001)},h.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,n,o,l,h,u,c,d,p=this._dirty?this.totalDuration():this._totalDuration,f=this._duration,_=this._time,m=this._totalTime,g=this._startTime,v=this._timeScale,y=this._rawPrevTime,b=this._paused,T=this._cycle;if(t>=p-1e-7&&t>=0)this._locked||(this._totalTime=p,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(n=!0,l="onComplete",h=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&t>=-1e-7||y<0||1e-10===y)&&y!==t&&this._first&&(h=!0,y>1e-10&&(l="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:1e-10,this._yoyo&&0!=(1&this._cycle)?this._time=t=0:(this._time=f,t=f+1e-4);else if(t<1e-7)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==_||0===f&&1e-10!==y&&(y>0||t<0&&y>=0)&&!this._locked)&&(l="onReverseComplete",n=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(h=n=!0,l="onReverseComplete"):y>=0&&this._first&&(h=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=f||!e||t||this._rawPrevTime===t?t:1e-10,0===t&&n)for(r=this._first;r&&0===r._startTime;)r._duration||(n=!1),r=r._next;t=0,this._initted||(h=!0)}else if(0===f&&y<0&&(h=!0),this._time=this._rawPrevTime=t,this._locked||(this._totalTime=t,0!==this._repeat&&(u=f+this._repeatDelay,this._cycle=this._totalTime/u>>0,0!==this._cycle&&this._cycle===this._totalTime/u&&m<=t&&this._cycle--,this._time=this._totalTime-this._cycle*u,this._yoyo&&0!=(1&this._cycle)&&(this._time=f-this._time),this._time>f?(this._time=f,t=f+1e-4):this._time<0?this._time=t=0:t=this._time)),this._hasPause&&!this._forcingPlayhead&&!e&&t<f){if((t=this._time)>=_||this._repeat&&T!==this._cycle)for(r=this._first;r&&r._startTime<=t&&!c;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===this._rawPrevTime||(c=r),r=r._next;else for(r=this._last;r&&r._startTime>=t&&!c;)r._duration||"isPause"===r.data&&r._rawPrevTime>0&&(c=r),r=r._prev;c&&(this._time=t=c._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==T&&!this._locked){var x=this._yoyo&&0!=(1&T),E=x===(this._yoyo&&0!=(1&this._cycle)),w=this._totalTime,S=this._cycle,D=this._rawPrevTime,I=this._time;if(this._totalTime=T*f,this._cycle<T?x=!x:this._totalTime+=f,this._time=_,this._rawPrevTime=0===f?y-1e-4:y,this._cycle=T,this._locked=!0,_=x?0:f,this.render(_,e,0===f),e||this._gc||this.vars.onRepeat&&(this._cycle=S,this._locked=!1,this._callback("onRepeat")),_!==this._time)return;if(E&&(this._cycle=T,this._locked=!0,_=x?f+1e-4:-1e-4,this.render(_,!0,!1)),this._locked=!1,this._paused&&!b)return;this._time=I,this._totalTime=w,this._cycle=S,this._rawPrevTime=D}if(this._time!==_&&this._first||i||h||c){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==m&&t>0&&(this._active=!0),0===m&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||e||this._callback("onStart")),(d=this._time)>=_)for(r=this._first;r&&(o=r._next,d===this._time&&(!this._paused||b));)(r._active||r._startTime<=this._time&&!r._paused&&!r._gc)&&(c===r&&this.pause(),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=o;else for(r=this._last;r&&(o=r._prev,d===this._time&&(!this._paused||b));){if(r._active||r._startTime<=_&&!r._paused&&!r._gc){if(c===r){for(c=r._prev;c&&c.endTime()>this._time;)c.render(c._reversed?c.totalDuration()-(t-c._startTime)*c._timeScale:(t-c._startTime)*c._timeScale,e,i),c=c._prev;c=null,this.pause()}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)}r=o}this._onUpdate&&(e||(s.length&&a(),this._callback("onUpdate"))),l&&(this._locked||this._gc||g!==this._startTime&&v===this._timeScale||(0===this._time||p>=this.totalDuration())&&(n&&(s.length&&a(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[l]&&this._callback(l)))}else m!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},h.getActive=function(t,e,i){null==t&&(t=!0),null==e&&(e=!0),null==i&&(i=!1);var r,n,s=[],a=this.getChildren(t,e,i),o=0,l=a.length;for(r=0;r<l;r++)(n=a[r]).isActive()&&(s[o++]=n);return s},h.getLabelAfter=function(t){t||0!==t&&(t=this._time);var e,i=this.getLabelsArray(),r=i.length;for(e=0;e<r;e++)if(i[e].time>t)return i[e].name;return null},h.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;--i>-1;)if(e[i].time<t)return e[i].name;return null},h.getLabelsArray=function(){var t,e=[],i=0;for(t in this._labels)e[i++]={time:this._labels[t],name:t};return e.sort(function(t,e){return t.time-e.time}),e},h.invalidate=function(){return this._locked=!1,t.prototype.invalidate.call(this)},h.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()},h.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},h.totalDuration=function(e){return arguments.length?-1!==this._repeat&&e?this.timeScale(this.totalDuration()/e):this:(this._dirty&&(t.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},h.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!=(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},h.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},h.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},h.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},h.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},r},!0),t=180/Math.PI,e=[],i=[],r=[],n={},s=_gsScope._gsDefine.globals,a=function(t,e,i,r){i===r&&(i=r-(r-e)/1e6),t===e&&(e=t+(i-t)/1e6),this.a=t,this.b=e,this.c=i,this.d=r,this.da=r-t,this.ca=i-t,this.ba=e-t},o=function(t,e,i,r){var n={a:t},s={},a={},o={c:r},l=(t+e)/2,h=(e+i)/2,u=(i+r)/2,c=(l+h)/2,d=(h+u)/2,p=(d-c)/8;return n.b=l+(t-l)/4,s.b=c+p,n.c=s.a=(n.b+s.b)/2,s.c=a.a=(c+d)/2,a.b=d-p,o.b=u+(r-u)/4,a.c=o.a=(a.b+o.b)/2,[n,s,a,o]},l=function(t,n,s,a,l){var h,u,c,d,p,f,_,m,g,v,y,b,T,x=t.length-1,E=0,w=t[0].a;for(h=0;h<x;h++)u=(p=t[E]).a,c=p.d,d=t[E+1].d,l?(y=e[h],T=((b=i[h])+y)*n*.25/(a?.5:r[h]||.5),m=c-((f=c-(c-u)*(a?.5*n:0!==y?T/y:0))+(((_=c+(d-c)*(a?.5*n:0!==b?T/b:0))-f)*(3*y/(y+b)+.5)/4||0))):m=c-((f=c-(c-u)*n*.5)+(_=c+(d-c)*n*.5))/2,f+=m,_+=m,p.c=g=f,p.b=0!==h?w:w=p.a+.6*(p.c-p.a),p.da=c-u,p.ca=g-u,p.ba=w-u,s?(v=o(u,w,g,c),t.splice(E,1,v[0],v[1],v[2],v[3]),E+=4):E++,w=_;(p=t[E]).b=w,p.c=w+.4*(p.d-w),p.da=p.d-p.a,p.ca=p.c-p.a,p.ba=w-p.a,s&&(v=o(p.a,w,p.c,p.d),t.splice(E,1,v[0],v[1],v[2],v[3]))},h=function(t,r,n,s){var o,l,h,u,c,d,p=[];if(s)for(l=(t=[s].concat(t)).length;--l>-1;)"string"==typeof(d=t[l][r])&&"="===d.charAt(1)&&(t[l][r]=s[r]+Number(d.charAt(0)+d.substr(2)));if((o=t.length-2)<0)return p[0]=new a(t[0][r],0,0,t[o<-1?0:1][r]),p;for(l=0;l<o;l++)h=t[l][r],u=t[l+1][r],p[l]=new a(h,0,0,u),n&&(c=t[l+2][r],e[l]=(e[l]||0)+(u-h)*(u-h),i[l]=(i[l]||0)+(c-u)*(c-u));return p[l]=new a(t[l][r],0,0,t[l+1][r]),p},u=function(t,s,a,o,u,c){var d,p,f,_,m,g,v,y,b={},T=[],x=c||t[0];for(p in u="string"==typeof u?","+u+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",null==s&&(s=1),t[0])T.push(p);if(t.length>1){for(y=t[t.length-1],v=!0,d=T.length;--d>-1;)if(p=T[d],Math.abs(x[p]-y[p])>.05){v=!1;break}v&&(t=t.concat(),c&&t.unshift(c),t.push(t[1]),c=t[t.length-3])}for(e.length=i.length=r.length=0,d=T.length;--d>-1;)p=T[d],n[p]=-1!==u.indexOf(","+p+","),b[p]=h(t,p,n[p],c);for(d=e.length;--d>-1;)e[d]=Math.sqrt(e[d]),i[d]=Math.sqrt(i[d]);if(!o){for(d=T.length;--d>-1;)if(n[p])for(g=(f=b[T[d]]).length-1,_=0;_<g;_++)m=f[_+1].da/i[_]+f[_].da/e[_]||0,r[_]=(r[_]||0)+m*m;for(d=r.length;--d>-1;)r[d]=Math.sqrt(r[d])}for(d=T.length,_=a?4:1;--d>-1;)f=b[p=T[d]],l(f,s,a,o,n[p]),v&&(f.splice(0,_),f.splice(f.length-_,_));return b},c=function(t,e,i){for(var r,n,s,a,o,l,h,u,c,d,p,f=1/i,_=t.length;--_>-1;)for(s=(d=t[_]).a,a=d.d-s,o=d.c-s,l=d.b-s,r=n=0,u=1;u<=i;u++)r=n-(n=((h=f*u)*h*a+3*(c=1-h)*(h*o+c*l))*h),e[p=_*i+u-1]=(e[p]||0)+r*r},d=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.7",API:2,global:!0,init:function(t,e,i){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._mod={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var r,n,s,o,l,h=e.values||[],d={},p=h[0],f=e.autoRotate||i.vars.orientToBezier;for(r in this._autoRotate=f?f instanceof Array?f:[["x","y","rotation",!0===f?0:Number(f)||0]]:null,p)this._props.push(r);for(s=this._props.length;--s>-1;)r=this._props[s],this._overwriteProps.push(r),n=this._func[r]="function"==typeof t[r],d[r]=n?t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)]():parseFloat(t[r]),l||d[r]!==h[0][r]&&(l=d);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?u(h,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,l):function(t,e,i){var r,n,s,o,l,h,u,c,d,p,f,_={},m="cubic"===(e=e||"soft")?3:2,g="soft"===e,v=[];if(g&&i&&(t=[i].concat(t)),null==t||t.length<m+1)throw"invalid Bezier data";for(d in t[0])v.push(d);for(h=v.length;--h>-1;){for(_[d=v[h]]=l=[],p=0,c=t.length,u=0;u<c;u++)r=null==i?t[u][d]:"string"==typeof(f=t[u][d])&&"="===f.charAt(1)?i[d]+Number(f.charAt(0)+f.substr(2)):Number(f),g&&u>1&&u<c-1&&(l[p++]=(r+l[p-2])/2),l[p++]=r;for(c=p-m+1,p=0,u=0;u<c;u+=m)r=l[u],n=l[u+1],s=l[u+2],o=2===m?0:l[u+3],l[p++]=f=3===m?new a(r,n,s,o):new a(r,(2*n+r)/3,(2*n+s)/3,s);l.length=p}return _}(h,e.type,d),this._segCount=this._beziers[r].length,this._timeRes){var _=function(t,e){var i,r,n,s,a=[],o=[],l=0,h=0,u=(e=e>>0||6)-1,d=[],p=[];for(i in t)c(t[i],a,e);for(n=a.length,r=0;r<n;r++)l+=Math.sqrt(a[r]),p[s=r%e]=l,s===u&&(h+=l,d[s=r/e>>0]=p,o[s]=h,l=0,p=[]);return{length:h,lengths:o,segments:d}}(this._beziers,this._timeRes);this._length=_.length,this._lengths=_.lengths,this._segments=_.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(f=this._autoRotate)for(this._initialRotations=[],f[0]instanceof Array||(this._autoRotate=f=[f]),s=f.length;--s>-1;){for(o=0;o<3;o++)r=f[s][o],this._func[r]="function"==typeof t[r]&&t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)];r=f[s][2],this._initialRotations[s]=(this._func[r]?this._func[r].call(this._target):this._target[r])||0,this._overwriteProps.push(r)}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(e){var i,r,n,s,a,o,l,h,u,c,d=this._segCount,p=this._func,f=this._target,_=e!==this._startRatio;if(this._timeRes){if(u=this._lengths,c=this._curSeg,e*=this._length,n=this._li,e>this._l2&&n<d-1){for(h=d-1;n<h&&(this._l2=u[++n])<=e;);this._l1=u[n-1],this._li=n,this._curSeg=c=this._segments[n],this._s2=c[this._s1=this._si=0]}else if(e<this._l1&&n>0){for(;n>0&&(this._l1=u[--n])>=e;);0===n&&e<this._l1?this._l1=0:n++,this._l2=u[n],this._li=n,this._curSeg=c=this._segments[n],this._s1=c[(this._si=c.length-1)-1]||0,this._s2=c[this._si]}if(i=n,e-=this._l1,n=this._si,e>this._s2&&n<c.length-1){for(h=c.length-1;n<h&&(this._s2=c[++n])<=e;);this._s1=c[n-1],this._si=n}else if(e<this._s1&&n>0){for(;n>0&&(this._s1=c[--n])>=e;);0===n&&e<this._s1?this._s1=0:n++,this._s2=c[n],this._si=n}o=(n+(e-this._s1)/(this._s2-this._s1))*this._prec||0}else o=(e-(i=e<0?0:e>=1?d-1:d*e>>0)*(1/d))*d;for(r=1-o,n=this._props.length;--n>-1;)s=this._props[n],l=(o*o*(a=this._beziers[s][i]).da+3*r*(o*a.ca+r*a.ba))*o+a.a,this._mod[s]&&(l=this._mod[s](l,f)),p[s]?f[s](l):f[s]=l;if(this._autoRotate){var m,g,v,y,b,T,x,E=this._autoRotate;for(n=E.length;--n>-1;)s=E[n][2],T=E[n][3]||0,x=!0===E[n][4]?1:t,a=this._beziers[E[n][0]],m=this._beziers[E[n][1]],a&&m&&(a=a[i],m=m[i],g=a.a+(a.b-a.a)*o,g+=((y=a.b+(a.c-a.b)*o)-g)*o,y+=(a.c+(a.d-a.c)*o-y)*o,v=m.a+(m.b-m.a)*o,v+=((b=m.b+(m.c-m.b)*o)-v)*o,b+=(m.c+(m.d-m.c)*o-b)*o,l=_?Math.atan2(b-v,y-g)*x+T:this._initialRotations[n],this._mod[s]&&(l=this._mod[s](l,f)),p[s]?f[s](l):f[s]=l)}}}),p=d.prototype,d.bezierThrough=u,d.cubicToQuadratic=o,d._autoCSS=!0,d.quadraticToCubic=function(t,e,i){return new a(t,(2*e+t)/3,(2*e+i)/3,i)},d._cssRegister=function(){var t=s.CSSPlugin;if(t){var e=t._internals,i=e._parseToProxy,r=e._setPluginRatio,n=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,s,a,o,l){e instanceof Array&&(e={values:e}),l=new d;var h,u,c,p=e.values,f=p.length-1,_=[],m={};if(f<0)return o;for(h=0;h<=f;h++)c=i(t,p[h],a,o,l,f!==h),_[h]=c.end;for(u in e)m[u]=e[u];return m.values=_,(o=new n(t,"bezier",0,0,c.pt,2)).data=c,o.plugin=l,o.setRatio=r,0===m.autoRotate&&(m.autoRotate=!0),!m.autoRotate||m.autoRotate instanceof Array||(h=!0===m.autoRotate?0:Number(m.autoRotate),m.autoRotate=null!=c.end.left?[["left","top","rotation",h,!1]]:null!=c.end.x&&[["x","y","rotation",h,!1]]),m.autoRotate&&(a._transform||a._enableTransforms(!1),c.autoRotate=a._target._gsTransform,c.proxy.rotation=c.autoRotate.rotation||0,a._overwriteProps.push("rotation")),l._onInitTween(c.proxy,m,a._tween),o}})}},p._mod=function(t){for(var e,i=this._overwriteProps,r=i.length;--r>-1;)(e=t[i[r]])&&"function"==typeof e&&(this._mod[i[r]]=e)},p._kill=function(t){var e,i,r=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=r.length;--i>-1;)r[i]===e&&r.splice(i,1);if(r=this._autoRotate)for(i=r.length;--i>-1;)t[r[i][2]]&&r.splice(i,1);return this._super._kill.call(this,t)},_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(t,e){var i,r,n,s,a=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=a.prototype.setRatio},o=_gsScope._gsDefine.globals,l={},h=a.prototype=new t("css");h.constructor=a,a.version="1.19.1",a.API=2,a.defaultTransformPerspective=0,a.defaultSkewType="compensated",a.defaultSmoothOrigin=!0,h="px",a.suffixMap={top:h,right:h,bottom:h,left:h,width:h,height:h,fontSize:h,padding:h,margin:h,perspective:h,lineHeight:""};var u,c,d,p,f,_,m,g,v,y,b=/(?:\-|\.|\b)(\d|\.|e\-)+/g,T=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,x=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,E=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,w=/(?:\d|\-|\+|=|#|\.)*/g,S=/opacity *= *([^)]*)/i,D=/opacity:([^;]*)/i,I=/alpha\(opacity *=.+?\)/i,P=/^(rgb|hsl)/,A=/([A-Z])/g,C=/-([a-z])/gi,M=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,L=function(t,e){return e.toUpperCase()},O=/(?:Left|Right|Width)/i,R=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,j=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,k=/,(?=[^\)]*(?:\(|$))/gi,N=/[\s,\(]/i,H=Math.PI/180,B=180/Math.PI,F={},U={style:{}},X=_gsScope.document||{createElement:function(){return U}},G=function(t,e){return X.createElementNS?X.createElementNS(e||"http://www.w3.org/1999/xhtml",t):X.createElement(t)},V=G("div"),Y=G("img"),W=a._internals={_specialProps:l},q=(_gsScope.navigator||{}).userAgent||"",z=(v=q.indexOf("Android"),y=G("a"),d=-1!==q.indexOf("Safari")&&-1===q.indexOf("Chrome")&&(-1===v||parseFloat(q.substr(v+8,2))>3),f=d&&parseFloat(q.substr(q.indexOf("Version/")+8,2))<6,p=-1!==q.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(q)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(q))&&(_=parseFloat(RegExp.$1)),!!y&&(y.style.cssText="top:1px;opacity:.55;",/^0.55/.test(y.style.opacity))),J=function(t){return S.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},Q=function(t){_gsScope.console&&console.log(t)},Z="",K="",$=function(t,e){var i,r,n=(e=e||V).style;if(void 0!==n[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],r=5;--r>-1&&void 0===n[i[r]+t];);return r>=0?(Z="-"+(K=3===r?"ms":i[r]).toLowerCase()+"-",K+t):null},tt=X.defaultView?X.defaultView.getComputedStyle:function(){},et=a.getStyle=function(t,e,i,r,n){var s;return z||"opacity"!==e?(!r&&t.style[e]?s=t.style[e]:(i=i||tt(t))?s=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(A,"-$1").toLowerCase()):t.currentStyle&&(s=t.currentStyle[e]),null==n||s&&"none"!==s&&"auto"!==s&&"auto auto"!==s?s:n):J(t)},it=W.convertToPixels=function(t,i,r,n,s){if("px"===n||!n)return r;if("auto"===n||!r)return 0;var o,l,h,u=O.test(i),c=t,d=V.style,p=r<0,f=1===r;if(p&&(r=-r),f&&(r*=100),"%"===n&&-1!==i.indexOf("border"))o=r/100*(u?t.clientWidth:t.clientHeight);else{if(d.cssText="border:0 solid red;position:"+et(t,"position")+";line-height:0;","%"!==n&&c.appendChild&&"v"!==n.charAt(0)&&"rem"!==n)d[u?"borderLeftWidth":"borderTopWidth"]=r+n;else{if(l=(c=t.parentNode||X.body)._gsCache,h=e.ticker.frame,l&&u&&l.time===h)return l.width*r/100;d[u?"width":"height"]=r+n}c.appendChild(V),o=parseFloat(V[u?"offsetWidth":"offsetHeight"]),c.removeChild(V),u&&"%"===n&&!1!==a.cacheWidths&&((l=c._gsCache=c._gsCache||{}).time=h,l.width=o/r*100),0!==o||s||(o=it(t,i,r,n,!0))}return f&&(o/=100),p?-o:o},rt=W.calculateOffset=function(t,e,i){if("absolute"!==et(t,"position",i))return 0;var r="left"===e?"Left":"Top",n=et(t,"margin"+r,i);return t["offset"+r]-(it(t,e,parseFloat(n),n.replace(w,""))||0)},nt=function(t,e){var i,r,n,s={};if(e=e||tt(t,null))if(i=e.length)for(;--i>-1;)-1!==(n=e[i]).indexOf("-transform")&&jt!==n||(s[n.replace(C,L)]=e.getPropertyValue(n));else for(i in e)-1!==i.indexOf("Transform")&&Rt!==i||(s[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===s[i]&&(s[i.replace(C,L)]=e[i]);return z||(s.opacity=J(t)),r=zt(t,e,!1),s.rotation=r.rotation,s.skewX=r.skewX,s.scaleX=r.scaleX,s.scaleY=r.scaleY,s.x=r.x,s.y=r.y,Nt&&(s.z=r.z,s.rotationX=r.rotationX,s.rotationY=r.rotationY,s.scaleZ=r.scaleZ),s.filters&&delete s.filters,s},st=function(t,e,i,r,n){var s,a,o,l={},h=t.style;for(a in i)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(s=i[a])||n&&n[a])&&-1===a.indexOf("Origin")&&("number"!=typeof s&&"string"!=typeof s||(l[a]="auto"!==s||"left"!==a&&"top"!==a?""!==s&&"auto"!==s&&"none"!==s||"string"!=typeof e[a]||""===e[a].replace(E,"")?s:0:rt(t,a),void 0!==h[a]&&(o=new bt(h,a,h[a],o))));if(r)for(a in r)"className"!==a&&(l[a]=r[a]);return{difs:l,firstMPT:o}},at={width:["Left","Right"],height:["Top","Bottom"]},ot=["marginLeft","marginRight","marginTop","marginBottom"],lt=function(t,e,i){if("svg"===(t.nodeName+"").toLowerCase())return(i||tt(t))[e]||0;if(t.getCTM&&Yt(t))return t.getBBox()[e]||0;var r=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),n=at[e],s=n.length;for(i=i||tt(t,null);--s>-1;)r-=parseFloat(et(t,"padding"+n[s],i,!0))||0,r-=parseFloat(et(t,"border"+n[s]+"Width",i,!0))||0;return r},ht=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";null!=t&&""!==t||(t="0 0");var i,r=t.split(" "),n=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":r[0],s=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":r[1];if(r.length>3&&!e){for(r=t.split(", ").join(",").split(","),t=[],i=0;i<r.length;i++)t.push(ht(r[i]));return t.join(",")}return null==s?s="center"===n?"50%":"0":"center"===s&&(s="50%"),("center"===n||isNaN(parseFloat(n))&&-1===(n+"").indexOf("="))&&(n="50%"),t=n+" "+s+(r.length>2?" "+r[2]:""),e&&(e.oxp=-1!==n.indexOf("%"),e.oyp=-1!==s.indexOf("%"),e.oxr="="===n.charAt(1),e.oyr="="===s.charAt(1),e.ox=parseFloat(n.replace(E,"")),e.oy=parseFloat(s.replace(E,"")),e.v=t),e||t},ut=function(t,e){return"function"==typeof t&&(t=t(g,m)),"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0},ct=function(t,e){return"function"==typeof t&&(t=t(g,m)),null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0},dt=function(t,e,i,r){var n,s,a,o;return"function"==typeof t&&(t=t(g,m)),null==t?a=e:"number"==typeof t?a=t:(360,n=t.split("_"),s=((o="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(n[0].substr(2)):parseFloat(n[0]))*(-1===t.indexOf("rad")?1:B)-(o?0:e),n.length&&(r&&(r[i]=e+s),-1!==t.indexOf("short")&&(s%=360)!==s%180&&(s=s<0?s+360:s-360),-1!==t.indexOf("_cw")&&s<0?s=(s+3599999999640)%360-360*(s/360|0):-1!==t.indexOf("ccw")&&s>0&&(s=(s-3599999999640)%360-360*(s/360|0))),a=e+s),a<1e-6&&a>-1e-6&&(a=0),a},pt={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ft=function(t,e,i){return 255*(6*(t=t<0?t+1:t>1?t-1:t)<1?e+(i-e)*t*6:t<.5?i:3*t<2?e+(i-e)*(2/3-t)*6:e)+.5|0},_t=a.parseColor=function(t,e){var i,r,n,s,a,o,l,h,u,c,d;if(t)if("number"==typeof t)i=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),pt[t])i=pt[t];else if("#"===t.charAt(0))4===t.length&&(t="#"+(r=t.charAt(1))+r+(n=t.charAt(2))+n+(s=t.charAt(3))+s),i=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(i=d=t.match(b),e){if(-1!==t.indexOf("="))return t.match(T)}else a=Number(i[0])%360/360,o=Number(i[1])/100,r=2*(l=Number(i[2])/100)-(n=l<=.5?l*(o+1):l+o-l*o),i.length>3&&(i[3]=Number(t[3])),i[0]=ft(a+1/3,r,n),i[1]=ft(a,r,n),i[2]=ft(a-1/3,r,n);else i=t.match(b)||pt.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),i.length>3&&(i[3]=Number(i[3]))}else i=pt.black;return e&&!d&&(r=i[0]/255,n=i[1]/255,s=i[2]/255,l=((h=Math.max(r,n,s))+(u=Math.min(r,n,s)))/2,h===u?a=o=0:(c=h-u,o=l>.5?c/(2-h-u):c/(h+u),a=h===r?(n-s)/c+(n<s?6:0):h===n?(s-r)/c+2:(r-n)/c+4,a*=60),i[0]=a+.5|0,i[1]=100*o+.5|0,i[2]=100*l+.5|0),i},mt=function(t,e){var i,r,n,s=t.match(gt)||[],a=0,o=s.length?"":t;for(i=0;i<s.length;i++)r=s[i],a+=(n=t.substr(a,t.indexOf(r,a)-a)).length+r.length,3===(r=_t(r,e)).length&&r.push(1),o+=n+(e?"hsla("+r[0]+","+r[1]+"%,"+r[2]+"%,"+r[3]:"rgba("+r.join(","))+")";return o+t.substr(a)},gt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(h in pt)gt+="|"+h+"\\b";gt=new RegExp(gt+")","gi"),a.colorStringFilter=function(t){var e,i=t[0]+t[1];gt.test(i)&&(e=-1!==i.indexOf("hsl(")||-1!==i.indexOf("hsla("),t[0]=mt(t[0],e),t[1]=mt(t[1],e)),gt.lastIndex=0},e.defaultStringFilter||(e.defaultStringFilter=a.colorStringFilter);var vt=function(t,e,i,r){if(null==t)return function(t){return t};var n,s=e?(t.match(gt)||[""])[0]:"",a=t.split(s).join("").match(x)||[],o=t.substr(0,t.indexOf(a[0])),l=")"===t.charAt(t.length-1)?")":"",h=-1!==t.indexOf(" ")?" ":",",u=a.length,c=u>0?a[0].replace(b,""):"";return u?n=e?function(t){var e,d,p,f;if("number"==typeof t)t+=c;else if(r&&k.test(t)){for(f=t.replace(k,"|").split("|"),p=0;p<f.length;p++)f[p]=n(f[p]);return f.join(",")}if(e=(t.match(gt)||[s])[0],p=(d=t.split(e).join("").match(x)||[]).length,u>p--)for(;++p<u;)d[p]=i?d[(p-1)/2|0]:a[p];return o+d.join(h)+h+e+l+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,s,d;if("number"==typeof t)t+=c;else if(r&&k.test(t)){for(s=t.replace(k,"|").split("|"),d=0;d<s.length;d++)s[d]=n(s[d]);return s.join(",")}if(d=(e=t.match(x)||[]).length,u>d--)for(;++d<u;)e[d]=i?e[(d-1)/2|0]:a[d];return o+e.join(h)+l}:function(t){return t}},yt=function(t){return t=t.split(","),function(e,i,r,n,s,a,o){var l,h=(i+"").split(" ");for(o={},l=0;l<4;l++)o[t[l]]=h[l]=h[l]||h[(l-1)/2>>0];return n.parse(e,o,s,a)}},bt=(W._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,r,n,s,a=this.data,o=a.proxy,l=a.firstMPT;l;)e=o[l.v],l.r?e=Math.round(e):e<1e-6&&e>-1e-6&&(e=0),l.t[l.p]=e,l=l._next;if(a.autoRotate&&(a.autoRotate.rotation=a.mod?a.mod(o.rotation,this.t):o.rotation),1===t||0===t)for(l=a.firstMPT,s=1===t?"e":"b";l;){if((i=l.t).type){if(1===i.type){for(n=i.xs0+i.s+i.xs1,r=1;r<i.l;r++)n+=i["xn"+r]+i["xs"+(r+1)];i[s]=n}}else i[s]=i.s+i.xs0;l=l._next}},function(t,e,i,r,n){this.t=t,this.p=e,this.v=i,this.r=n,r&&(r._prev=this,this._next=r)}),Tt=(W._parseToProxy=function(t,e,i,r,n,s){var a,o,l,h,u,c=r,d={},p={},f=i._transform,_=F;for(i._transform=null,F=e,r=u=i.parse(t,e,r,n),F=_,s&&(i._transform=f,c&&(c._prev=null,c._prev&&(c._prev._next=null)));r&&r!==c;){if(r.type<=1&&(p[o=r.p]=r.s+r.c,d[o]=r.s,s||(h=new bt(r,"s",o,h,r.r),r.c=0),1===r.type))for(a=r.l;--a>0;)l="xn"+a,p[o=r.p+"_"+l]=r.data[l],d[o]=r[l],s||(h=new bt(r,l,o,h,r.rxp[l]));r=r._next}return{proxy:d,end:p,firstMPT:h,pt:u}},W.CSSPropTween=function(t,e,r,n,a,o,l,h,u,c,d){this.t=t,this.p=e,this.s=r,this.c=n,this.n=l||e,t instanceof Tt||s.push(this.n),this.r=h,this.type=o||0,u&&(this.pr=u,i=!0),this.b=void 0===c?r:c,this.e=void 0===d?r+n:d,a&&(this._next=a,a._prev=this)}),xt=function(t,e,i,r,n,s){var a=new Tt(t,e,i,r-i,n,-1,s);return a.b=i,a.e=a.xs0=r,a},Et=a.parseComplex=function(t,e,i,r,n,s,o,l,h,c){i=i||s||"","function"==typeof r&&(r=r(g,m)),o=new Tt(t,e,0,0,o,c?2:1,null,!1,l,i,r),r+="",n&>.test(r+i)&&(r=[i,r],a.colorStringFilter(r),i=r[0],r=r[1]);var d,p,f,_,v,y,x,E,w,S,D,I,P,A=i.split(", ").join(",").split(" "),C=r.split(", ").join(",").split(" "),M=A.length,L=!1!==u;for(-1===r.indexOf(",")&&-1===i.indexOf(",")||(A=A.join(" ").replace(k,", ").split(" "),C=C.join(" ").replace(k,", ").split(" "),M=A.length),M!==C.length&&(M=(A=(s||"").split(" ")).length),o.plugin=h,o.setRatio=c,gt.lastIndex=0,d=0;d<M;d++)if(_=A[d],v=C[d],(E=parseFloat(_))||0===E)o.appendXtra("",E,ut(v,E),v.replace(T,""),L&&-1!==v.indexOf("px"),!0);else if(n&>.test(_))I=")"+((I=v.indexOf(")")+1)?v.substr(I):""),P=-1!==v.indexOf("hsl")&&z,_=_t(_,P),v=_t(v,P),(w=_.length+v.length>6)&&!z&&0===v[3]?(o["xs"+o.l]+=o.l?" transparent":"transparent",o.e=o.e.split(C[d]).join("transparent")):(z||(w=!1),P?o.appendXtra(w?"hsla(":"hsl(",_[0],ut(v[0],_[0]),",",!1,!0).appendXtra("",_[1],ut(v[1],_[1]),"%,",!1).appendXtra("",_[2],ut(v[2],_[2]),w?"%,":"%"+I,!1):o.appendXtra(w?"rgba(":"rgb(",_[0],v[0]-_[0],",",!0,!0).appendXtra("",_[1],v[1]-_[1],",",!0).appendXtra("",_[2],v[2]-_[2],w?",":I,!0),w&&(_=_.length<4?1:_[3],o.appendXtra("",_,(v.length<4?1:v[3])-_,I,!1))),gt.lastIndex=0;else if(y=_.match(b)){if(!(x=v.match(T))||x.length!==y.length)return o;for(f=0,p=0;p<y.length;p++)D=y[p],S=_.indexOf(D,f),o.appendXtra(_.substr(f,S-f),Number(D),ut(x[p],D),"",L&&"px"===_.substr(S+D.length,2),0===p),f=S+D.length;o["xs"+o.l]+=_.substr(f)}else o["xs"+o.l]+=o.l||o["xs"+o.l]?" "+v:v;if(-1!==r.indexOf("=")&&o.data){for(I=o.xs0+o.data.s,d=1;d<o.l;d++)I+=o["xs"+d]+o.data["xn"+d];o.e=I+o["xs"+d]}return o.l||(o.type=-1,o.xs0=o.e),o.xfirst||o},wt=9;for((h=Tt.prototype).l=h.pr=0;--wt>0;)h["xn"+wt]=0,h["xs"+wt]="";h.xs0="",h._next=h._prev=h.xfirst=h.data=h.plugin=h.setRatio=h.rxp=null,h.appendXtra=function(t,e,i,r,n,s){var a=this,o=a.l;return a["xs"+o]+=s&&(o||a["xs"+o])?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=r||"",o>0?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=n,a["xn"+o]=e,a.plugin||(a.xfirst=new Tt(a,"xn"+o,e,i,a.xfirst||a,0,a.n,n,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=n,a)):(a["xs"+o]+=e+(r||""),a)};var St=function(t,e){e=e||{},this.p=e.prefix&&$(t)||t,l[t]=l[this.p]=this,this.format=e.formatter||vt(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0},Dt=W._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var r,n=t.split(","),s=e.defaultValue;for(i=i||[s],r=0;r<n.length;r++)e.prefix=0===r&&e.prefix,e.defaultValue=i[r]||s,new St(n[r],e)},It=W._registerPluginProp=function(t){if(!l[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";Dt(t,{parser:function(t,i,r,n,s,a,h){var u=o.com.greensock.plugins[e];return u?(u._cssRegister(),l[r].parse(t,i,r,n,s,a,h)):(Q("Error: "+e+" js file not loaded."),s)}})}};(h=St.prototype).parseComplex=function(t,e,i,r,n,s){var a,o,l,h,u,c,d=this.keyword;if(this.multi&&(k.test(i)||k.test(e)?(o=e.replace(k,"|").split("|"),l=i.replace(k,"|").split("|")):d&&(o=[e],l=[i])),l){for(h=l.length>o.length?l.length:o.length,a=0;a<h;a++)e=o[a]=o[a]||this.dflt,i=l[a]=l[a]||this.dflt,d&&(u=e.indexOf(d))!==(c=i.indexOf(d))&&(-1===c?o[a]=o[a].split(d).join(""):-1===u&&(o[a]+=" "+d));e=o.join(", "),i=l.join(", ")}return Et(t,this.p,e,i,this.clrs,this.dflt,r,this.pr,n,s)},h.parse=function(t,e,i,r,s,a,o){return this.parseComplex(t.style,this.format(et(t,this.p,n,!1,this.dflt)),this.format(e),s,a)},a.registerSpecialProp=function(t,e,i){Dt(t,{parser:function(t,r,n,s,a,o,l){var h=new Tt(t,n,0,0,a,2,n,!1,i);return h.plugin=o,h.setRatio=e(t,r,s._tween,n),h},priority:i})},a.useSVGTransformAttr=!0;var Pt,At,Ct,Mt,Lt,Ot="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Rt=$("transform"),jt=Z+"transform",kt=$("transformOrigin"),Nt=null!==$("perspective"),Ht=W.Transform=function(){this.perspective=parseFloat(a.defaultTransformPerspective)||0,this.force3D=!(!1===a.defaultForce3D||!Nt)&&(a.defaultForce3D||"auto")},Bt=_gsScope.SVGElement,Ft=function(t,e,i){var r,n=X.createElementNS("http://www.w3.org/2000/svg",t),s=/([a-z])([A-Z])/g;for(r in i)n.setAttributeNS(null,r.replace(s,"$1-$2").toLowerCase(),i[r]);return e.appendChild(n),n},Ut=X.documentElement||{},Xt=(Lt=_||/Android/i.test(q)&&!_gsScope.chrome,X.createElementNS&&!Lt&&(At=Ft("svg",Ut),Mt=(Ct=Ft("rect",At,{width:100,height:50,x:100})).getBoundingClientRect().width,Ct.style[kt]="50% 50%",Ct.style[Rt]="scaleX(0.5)",Lt=Mt===Ct.getBoundingClientRect().width&&!(p&&Nt),Ut.removeChild(At)),Lt),Gt=function(t,e,i,r,n,s){var o,l,h,u,c,d,p,f,_,m,g,v,y,b,T=t._gsTransform,x=qt(t,!0);T&&(y=T.xOrigin,b=T.yOrigin),(!r||(o=r.split(" ")).length<2)&&(0===(p=t.getBBox()).x&&0===p.y&&p.width+p.height===0&&(p={x:parseFloat(t.hasAttribute("x")?t.getAttribute("x"):t.hasAttribute("cx")?t.getAttribute("cx"):0)||0,y:parseFloat(t.hasAttribute("y")?t.getAttribute("y"):t.hasAttribute("cy")?t.getAttribute("cy"):0)||0,width:0,height:0}),o=[(-1!==(e=ht(e).split(" "))[0].indexOf("%")?parseFloat(e[0])/100*p.width:parseFloat(e[0]))+p.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*p.height:parseFloat(e[1]))+p.y]),i.xOrigin=u=parseFloat(o[0]),i.yOrigin=c=parseFloat(o[1]),r&&x!==Wt&&(d=x[0],p=x[1],f=x[2],_=x[3],m=x[4],g=x[5],(v=d*_-p*f)&&(l=u*(_/v)+c*(-f/v)+(f*g-_*m)/v,h=u*(-p/v)+c*(d/v)-(d*g-p*m)/v,u=i.xOrigin=o[0]=l,c=i.yOrigin=o[1]=h)),T&&(s&&(i.xOffset=T.xOffset,i.yOffset=T.yOffset,T=i),n||!1!==n&&!1!==a.defaultSmoothOrigin?(l=u-y,h=c-b,T.xOffset+=l*x[0]+h*x[2]-l,T.yOffset+=l*x[1]+h*x[3]-h):T.xOffset=T.yOffset=0),s||t.setAttribute("data-svg-origin",o.join(" "))},Vt=function(t){var e,i=G("svg",this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,n=this.nextSibling,s=this.style.cssText;if(Ut.appendChild(i),i.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Vt}catch(t){}else this._originalGetBBox&&(e=this._originalGetBBox());return n?r.insertBefore(this,n):r.appendChild(this),Ut.removeChild(i),this.style.cssText=s,e},Yt=function(t){return!(!(Bt&&t.getCTM&&function(t){try{return t.getBBox()}catch(e){return Vt.call(t,!0)}}(t))||t.parentNode&&!t.ownerSVGElement)},Wt=[1,0,0,1,0,0],qt=function(t,e){var i,r,n,s,a,o,l=t._gsTransform||new Ht,h=t.style;if(Rt?r=et(t,jt,null,!0):t.currentStyle&&(r=(r=t.currentStyle.filter.match(R))&&4===r.length?[r[0].substr(4),Number(r[2].substr(4)),Number(r[1].substr(4)),r[3].substr(4),l.x||0,l.y||0].join(","):""),(i=!r||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r)&&Rt&&((o="none"===tt(t).display)||!t.parentNode)&&(o&&(s=h.display,h.display="block"),t.parentNode||(a=1,Ut.appendChild(t)),i=!(r=et(t,jt,null,!0))||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,s?h.display=s:o&&Kt(h,"display"),a&&Ut.removeChild(t)),(l.svg||t.getCTM&&Yt(t))&&(i&&-1!==(h[Rt]+"").indexOf("matrix")&&(r=h[Rt],i=0),n=t.getAttribute("transform"),i&&n&&(-1!==n.indexOf("matrix")?(r=n,i=0):-1!==n.indexOf("translate")&&(r="matrix(1,0,0,1,"+n.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",i=0))),i)return Wt;for(n=(r||"").match(b)||[],wt=n.length;--wt>-1;)s=Number(n[wt]),n[wt]=(a=s-(s|=0))?(1e5*a+(a<0?-.5:.5)|0)/1e5+s:s;return e&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n},zt=W.getTransform=function(t,i,r,n){if(t._gsTransform&&r&&!n)return t._gsTransform;var s,o,l,h,u,c,d=r&&t._gsTransform||new Ht,p=d.scaleX<0,f=Nt&&(parseFloat(et(t,kt,i,!1,"0 0 0").split(" ")[2])||d.zOrigin)||0,_=parseFloat(a.defaultTransformPerspective)||0;if(d.svg=!(!t.getCTM||!Yt(t)),d.svg&&(Gt(t,et(t,kt,i,!1,"50% 50%")+"",d,t.getAttribute("data-svg-origin")),Pt=a.useSVGTransformAttr||Xt),(s=qt(t))!==Wt){if(16===s.length){var m,g,v,y,b,T=s[0],x=s[1],E=s[2],w=s[3],S=s[4],D=s[5],I=s[6],P=s[7],A=s[8],C=s[9],M=s[10],L=s[12],O=s[13],R=s[14],j=s[11],k=Math.atan2(I,M);d.zOrigin&&(L=A*(R=-d.zOrigin)-s[12],O=C*R-s[13],R=M*R+d.zOrigin-s[14]),d.rotationX=k*B,k&&(m=S*(y=Math.cos(-k))+A*(b=Math.sin(-k)),g=D*y+C*b,v=I*y+M*b,A=S*-b+A*y,C=D*-b+C*y,M=I*-b+M*y,j=P*-b+j*y,S=m,D=g,I=v),k=Math.atan2(-E,M),d.rotationY=k*B,k&&(g=x*(y=Math.cos(-k))-C*(b=Math.sin(-k)),v=E*y-M*b,C=x*b+C*y,M=E*b+M*y,j=w*b+j*y,T=m=T*y-A*b,x=g,E=v),k=Math.atan2(x,T),d.rotation=k*B,k&&(T=T*(y=Math.cos(-k))+S*(b=Math.sin(-k)),g=x*y+D*b,D=x*-b+D*y,I=E*-b+I*y,x=g),d.rotationX&&Math.abs(d.rotationX)+Math.abs(d.rotation)>359.9&&(d.rotationX=d.rotation=0,d.rotationY=180-d.rotationY),d.scaleX=(1e5*Math.sqrt(T*T+x*x)+.5|0)/1e5,d.scaleY=(1e5*Math.sqrt(D*D+C*C)+.5|0)/1e5,d.scaleZ=(1e5*Math.sqrt(I*I+M*M)+.5|0)/1e5,d.rotationX||d.rotationY?d.skewX=0:(d.skewX=S||D?Math.atan2(S,D)*B+d.rotation:d.skewX||0,Math.abs(d.skewX)>90&&Math.abs(d.skewX)<270&&(p?(d.scaleX*=-1,d.skewX+=d.rotation<=0?180:-180,d.rotation+=d.rotation<=0?180:-180):(d.scaleY*=-1,d.skewX+=d.skewX<=0?180:-180))),d.perspective=j?1/(j<0?-j:j):0,d.x=L,d.y=O,d.z=R,d.svg&&(d.x-=d.xOrigin-(d.xOrigin*T-d.yOrigin*S),d.y-=d.yOrigin-(d.yOrigin*x-d.xOrigin*D))}else if(!Nt||n||!s.length||d.x!==s[4]||d.y!==s[5]||!d.rotationX&&!d.rotationY){var N=s.length>=6,H=N?s[0]:1,F=s[1]||0,U=s[2]||0,X=N?s[3]:1;d.x=s[4]||0,d.y=s[5]||0,l=Math.sqrt(H*H+F*F),h=Math.sqrt(X*X+U*U),u=H||F?Math.atan2(F,H)*B:d.rotation||0,c=U||X?Math.atan2(U,X)*B+u:d.skewX||0,Math.abs(c)>90&&Math.abs(c)<270&&(p?(l*=-1,c+=u<=0?180:-180,u+=u<=0?180:-180):(h*=-1,c+=c<=0?180:-180)),d.scaleX=l,d.scaleY=h,d.rotation=u,d.skewX=c,Nt&&(d.rotationX=d.rotationY=d.z=0,d.perspective=_,d.scaleZ=1),d.svg&&(d.x-=d.xOrigin-(d.xOrigin*H+d.yOrigin*U),d.y-=d.yOrigin-(d.xOrigin*F+d.yOrigin*X))}for(o in d.zOrigin=f,d)d[o]<2e-5&&d[o]>-2e-5&&(d[o]=0)}return r&&(t._gsTransform=d,d.svg&&(Pt&&t.style[Rt]?e.delayedCall(.001,function(){Kt(t.style,Rt)}):!Pt&&t.getAttribute("transform")&&e.delayedCall(.001,function(){t.removeAttribute("transform")}))),d},Jt=function(t){var e,i,r=this.data,n=-r.rotation*H,s=n+r.skewX*H,a=(Math.cos(n)*r.scaleX*1e5|0)/1e5,o=(Math.sin(n)*r.scaleX*1e5|0)/1e5,l=(Math.sin(s)*-r.scaleY*1e5|0)/1e5,h=(Math.cos(s)*r.scaleY*1e5|0)/1e5,u=this.t.style,c=this.t.currentStyle;if(c){i=o,o=-l,l=-i,e=c.filter,u.filter="";var d,p,f=this.t.offsetWidth,m=this.t.offsetHeight,g="absolute"!==c.position,v="progid:DXImageTransform.Microsoft.Matrix(M11="+a+", M12="+o+", M21="+l+", M22="+h,y=r.x+f*r.xPercent/100,b=r.y+m*r.yPercent/100;if(null!=r.ox&&(y+=(d=(r.oxp?f*r.ox*.01:r.ox)-f/2)-(d*a+(p=(r.oyp?m*r.oy*.01:r.oy)-m/2)*o),b+=p-(d*l+p*h)),v+=g?", Dx="+((d=f/2)-(d*a+(p=m/2)*o)+y)+", Dy="+(p-(d*l+p*h)+b)+")":", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?u.filter=e.replace(j,v):u.filter=v+" "+e,0!==t&&1!==t||1===a&&0===o&&0===l&&1===h&&(g&&-1===v.indexOf("Dx=0, Dy=0")||S.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&u.removeAttribute("filter")),!g){var T,x,E,D=_<8?1:-1;for(d=r.ieOffsetX||0,p=r.ieOffsetY||0,r.ieOffsetX=Math.round((f-((a<0?-a:a)*f+(o<0?-o:o)*m))/2+y),r.ieOffsetY=Math.round((m-((h<0?-h:h)*m+(l<0?-l:l)*f))/2+b),wt=0;wt<4;wt++)E=(i=-1!==(T=c[x=ot[wt]]).indexOf("px")?parseFloat(T):it(this.t,x,parseFloat(T),T.replace(w,""))||0)!==r[x]?wt<2?-r.ieOffsetX:-r.ieOffsetY:wt<2?d-r.ieOffsetX:p-r.ieOffsetY,u[x]=(r[x]=Math.round(i-E*(0===wt||2===wt?1:D)))+"px"}}},Qt=W.set3DTransformRatio=W.setTransformRatio=function(t){var e,i,r,n,s,a,o,l,h,u,c,d,f,_,m,g,v,y,b,T,x=this.data,E=this.t.style,w=x.rotation,S=x.rotationX,D=x.rotationY,I=x.scaleX,P=x.scaleY,A=x.scaleZ,C=x.x,M=x.y,L=x.z,O=x.svg,R=x.perspective,j=x.force3D,k=x.skewY,N=x.skewX;if(k&&(N+=k,w+=k),!((1!==t&&0!==t||"auto"!==j||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&j||L||R||D||S||1!==A)||Pt&&O||!Nt)w||N||O?(w*=H,T=N*H,1e5,i=Math.cos(w)*I,s=Math.sin(w)*I,r=Math.sin(w-T)*-P,a=Math.cos(w-T)*P,T&&"simple"===x.skewType&&(e=Math.tan(T-k*H),r*=e=Math.sqrt(1+e*e),a*=e,k&&(e=Math.tan(k*H),i*=e=Math.sqrt(1+e*e),s*=e)),O&&(C+=x.xOrigin-(x.xOrigin*i+x.yOrigin*r)+x.xOffset,M+=x.yOrigin-(x.xOrigin*s+x.yOrigin*a)+x.yOffset,Pt&&(x.xPercent||x.yPercent)&&(m=this.t.getBBox(),C+=.01*x.xPercent*m.width,M+=.01*x.yPercent*m.height),C<(m=1e-6)&&C>-m&&(C=0),M<m&&M>-m&&(M=0)),b=(1e5*i|0)/1e5+","+(1e5*s|0)/1e5+","+(1e5*r|0)/1e5+","+(1e5*a|0)/1e5+","+C+","+M+")",O&&Pt?this.t.setAttribute("transform","matrix("+b):E[Rt]=(x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) matrix(":"matrix(")+b):E[Rt]=(x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) matrix(":"matrix(")+I+",0,0,"+P+","+C+","+M+")";else{if(p&&(I<(m=1e-4)&&I>-m&&(I=A=2e-5),P<m&&P>-m&&(P=A=2e-5),!R||x.z||x.rotationX||x.rotationY||(R=0)),w||N)w*=H,g=i=Math.cos(w),v=s=Math.sin(w),N&&(w-=N*H,g=Math.cos(w),v=Math.sin(w),"simple"===x.skewType&&(e=Math.tan((N-k)*H),g*=e=Math.sqrt(1+e*e),v*=e,x.skewY&&(e=Math.tan(k*H),i*=e=Math.sqrt(1+e*e),s*=e))),r=-v,a=g;else{if(!(D||S||1!==A||R||O))return void(E[Rt]=(x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) translate3d(":"translate3d(")+C+"px,"+M+"px,"+L+"px)"+(1!==I||1!==P?" scale("+I+","+P+")":""));i=a=1,r=s=0}u=1,n=o=l=h=c=d=0,f=R?-1/R:0,_=x.zOrigin,m=1e-6,",","0",(w=D*H)&&(g=Math.cos(w),l=-(v=Math.sin(w)),c=f*-v,n=i*v,o=s*v,u=g,f*=g,i*=g,s*=g),(w=S*H)&&(e=r*(g=Math.cos(w))+n*(v=Math.sin(w)),y=a*g+o*v,h=u*v,d=f*v,n=r*-v+n*g,o=a*-v+o*g,u*=g,f*=g,r=e,a=y),1!==A&&(n*=A,o*=A,u*=A,f*=A),1!==P&&(r*=P,a*=P,h*=P,d*=P),1!==I&&(i*=I,s*=I,l*=I,c*=I),(_||O)&&(_&&(C+=n*-_,M+=o*-_,L+=u*-_+_),O&&(C+=x.xOrigin-(x.xOrigin*i+x.yOrigin*r)+x.xOffset,M+=x.yOrigin-(x.xOrigin*s+x.yOrigin*a)+x.yOffset),C<m&&C>-m&&(C="0"),M<m&&M>-m&&(M="0"),L<m&&L>-m&&(L=0)),b=x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) matrix3d(":"matrix3d(",b+=(i<m&&i>-m?"0":i)+","+(s<m&&s>-m?"0":s)+","+(l<m&&l>-m?"0":l),b+=","+(c<m&&c>-m?"0":c)+","+(r<m&&r>-m?"0":r)+","+(a<m&&a>-m?"0":a),S||D||1!==A?(b+=","+(h<m&&h>-m?"0":h)+","+(d<m&&d>-m?"0":d)+","+(n<m&&n>-m?"0":n),b+=","+(o<m&&o>-m?"0":o)+","+(u<m&&u>-m?"0":u)+","+(f<m&&f>-m?"0":f)+","):b+=",0,0,0,0,1,0,",b+=C+","+M+","+L+","+(R?1+-L/R:1)+")",E[Rt]=b}};(h=Ht.prototype).x=h.y=h.z=h.skewX=h.skewY=h.rotation=h.rotationX=h.rotationY=h.zOrigin=h.xPercent=h.yPercent=h.xOffset=h.yOffset=0,h.scaleX=h.scaleY=h.scaleZ=1,Dt("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(t,e,i,r,s,o,l){if(r._lastParsedTransform===l)return s;r._lastParsedTransform=l;var h,u=l.scale&&"function"==typeof l.scale?l.scale:0;"function"==typeof l[i]&&(h=l[i],l[i]=e),u&&(l.scale=u(g,t));var c,d,p,f,_,v,y,b,T,x=t._gsTransform,E=t.style,w=Ot.length,S=l,D={},I="transformOrigin",P=zt(t,n,!0,S.parseTransform),A=S.transform&&("function"==typeof S.transform?S.transform(g,m):S.transform);if(r._transform=P,A&&"string"==typeof A&&Rt)(d=V.style)[Rt]=A,d.display="block",d.position="absolute",X.body.appendChild(V),c=zt(V,null,!1),P.svg&&(v=P.xOrigin,y=P.yOrigin,c.x-=P.xOffset,c.y-=P.yOffset,(S.transformOrigin||S.svgOrigin)&&(A={},Gt(t,ht(S.transformOrigin),A,S.svgOrigin,S.smoothOrigin,!0),v=A.xOrigin,y=A.yOrigin,c.x-=A.xOffset-P.xOffset,c.y-=A.yOffset-P.yOffset),(v||y)&&(b=qt(V,!0),c.x-=v-(v*b[0]+y*b[2]),c.y-=y-(v*b[1]+y*b[3]))),X.body.removeChild(V),c.perspective||(c.perspective=P.perspective),null!=S.xPercent&&(c.xPercent=ct(S.xPercent,P.xPercent)),null!=S.yPercent&&(c.yPercent=ct(S.yPercent,P.yPercent));else if("object"==typeof S){if(c={scaleX:ct(null!=S.scaleX?S.scaleX:S.scale,P.scaleX),scaleY:ct(null!=S.scaleY?S.scaleY:S.scale,P.scaleY),scaleZ:ct(S.scaleZ,P.scaleZ),x:ct(S.x,P.x),y:ct(S.y,P.y),z:ct(S.z,P.z),xPercent:ct(S.xPercent,P.xPercent),yPercent:ct(S.yPercent,P.yPercent),perspective:ct(S.transformPerspective,P.perspective)},null!=(_=S.directionalRotation))if("object"==typeof _)for(d in _)S[d]=_[d];else S.rotation=_;"string"==typeof S.x&&-1!==S.x.indexOf("%")&&(c.x=0,c.xPercent=ct(S.x,P.xPercent)),"string"==typeof S.y&&-1!==S.y.indexOf("%")&&(c.y=0,c.yPercent=ct(S.y,P.yPercent)),c.rotation=dt("rotation"in S?S.rotation:"shortRotation"in S?S.shortRotation+"_short":"rotationZ"in S?S.rotationZ:P.rotation,P.rotation,"rotation",D),Nt&&(c.rotationX=dt("rotationX"in S?S.rotationX:"shortRotationX"in S?S.shortRotationX+"_short":P.rotationX||0,P.rotationX,"rotationX",D),c.rotationY=dt("rotationY"in S?S.rotationY:"shortRotationY"in S?S.shortRotationY+"_short":P.rotationY||0,P.rotationY,"rotationY",D)),c.skewX=dt(S.skewX,P.skewX),c.skewY=dt(S.skewY,P.skewY)}for(Nt&&null!=S.force3D&&(P.force3D=S.force3D,f=!0),P.skewType=S.skewType||P.skewType||a.defaultSkewType,(p=P.force3D||P.z||P.rotationX||P.rotationY||c.z||c.rotationX||c.rotationY||c.perspective)||null==S.scale||(c.scaleZ=1);--w>-1;)((A=c[T=Ot[w]]-P[T])>1e-6||A<-1e-6||null!=S[T]||null!=F[T])&&(f=!0,s=new Tt(P,T,P[T],A,s),T in D&&(s.e=D[T]),s.xs0=0,s.plugin=o,r._overwriteProps.push(s.n));return A=S.transformOrigin,P.svg&&(A||S.svgOrigin)&&(v=P.xOffset,y=P.yOffset,Gt(t,ht(A),c,S.svgOrigin,S.smoothOrigin),s=xt(P,"xOrigin",(x?P:c).xOrigin,c.xOrigin,s,I),s=xt(P,"yOrigin",(x?P:c).yOrigin,c.yOrigin,s,I),v===P.xOffset&&y===P.yOffset||(s=xt(P,"xOffset",x?v:P.xOffset,P.xOffset,s,I),s=xt(P,"yOffset",x?y:P.yOffset,P.yOffset,s,I)),A="0px 0px"),(A||Nt&&p&&P.zOrigin)&&(Rt?(f=!0,T=kt,A=(A||et(t,T,n,!1,"50% 50%"))+"",(s=new Tt(E,T,0,0,s,-1,I)).b=E[T],s.plugin=o,Nt?(d=P.zOrigin,A=A.split(" "),P.zOrigin=(A.length>2&&(0===d||"0px"!==A[2])?parseFloat(A[2]):d)||0,s.xs0=s.e=A[0]+" "+(A[1]||"50%")+" 0px",(s=new Tt(P,"zOrigin",0,0,s,-1,s.n)).b=d,s.xs0=s.e=P.zOrigin):s.xs0=s.e=A):ht(A+"",P)),f&&(r._transformType=P.svg&&Pt||!p&&3!==this._transformType?2:3),h&&(l[i]=h),u&&(l.scale=u),s},prefix:!0}),Dt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Dt("borderRadius",{defaultValue:"0px",parser:function(t,e,i,s,a,o){e=this.format(e);var l,h,u,c,d,p,f,_,m,g,v,y,b,T,x,E,w=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],S=t.style;for(m=parseFloat(t.offsetWidth),g=parseFloat(t.offsetHeight),l=e.split(" "),h=0;h<w.length;h++)this.p.indexOf("border")&&(w[h]=$(w[h])),-1!==(d=c=et(t,w[h],n,!1,"0px")).indexOf(" ")&&(d=(c=d.split(" "))[0],c=c[1]),p=u=l[h],f=parseFloat(d),y=d.substr((f+"").length),(b="="===p.charAt(1))?(_=parseInt(p.charAt(0)+"1",10),p=p.substr(2),_*=parseFloat(p),v=p.substr((_+"").length-(_<0?1:0))||""):(_=parseFloat(p),v=p.substr((_+"").length)),""===v&&(v=r[i]||y),v!==y&&(T=it(t,"borderLeft",f,y),x=it(t,"borderTop",f,y),"%"===v?(d=T/m*100+"%",c=x/g*100+"%"):"em"===v?(d=T/(E=it(t,"borderLeft",1,"em"))+"em",c=x/E+"em"):(d=T+"px",c=x+"px"),b&&(p=parseFloat(d)+_+v,u=parseFloat(c)+_+v)),a=Et(S,w[h],d+" "+c,p+" "+u,!1,"0px",a);return a},prefix:!0,formatter:vt("0px 0px 0px 0px",!1,!0)}),Dt("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,i,r,s,a){return Et(t.style,i,this.format(et(t,i,n,!1,"0px 0px")),this.format(e),!1,"0px",s)},prefix:!0,formatter:vt("0px 0px",!1,!0)}),Dt("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,r,s,a){var o,l,h,u,c,d,p="background-position",f=n||tt(t,null),m=this.format((f?_?f.getPropertyValue(p+"-x")+" "+f.getPropertyValue(p+"-y"):f.getPropertyValue(p):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),g=this.format(e);if(-1!==m.indexOf("%")!=(-1!==g.indexOf("%"))&&g.split(",").length<2&&(d=et(t,"backgroundImage").replace(M,""))&&"none"!==d){for(o=m.split(" "),l=g.split(" "),Y.setAttribute("src",d),h=2;--h>-1;)(u=-1!==(m=o[h]).indexOf("%"))!==(-1!==l[h].indexOf("%"))&&(c=0===h?t.offsetWidth-Y.width:t.offsetHeight-Y.height,o[h]=u?parseFloat(m)/100*c+"px":parseFloat(m)/c*100+"%");m=o.join(" ")}return this.parseComplex(t.style,m,g,s,a)},formatter:ht}),Dt("backgroundSize",{defaultValue:"0 0",formatter:function(t){return ht(-1===(t+="").indexOf(" ")?t+" "+t:t)}}),Dt("perspective",{defaultValue:"0px",prefix:!0}),Dt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Dt("transformStyle",{prefix:!0}),Dt("backfaceVisibility",{prefix:!0}),Dt("userSelect",{prefix:!0}),Dt("margin",{parser:yt("marginTop,marginRight,marginBottom,marginLeft")}),Dt("padding",{parser:yt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Dt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,r,s,a){var o,l,h;return _<9?(l=t.currentStyle,h=_<8?" ":",",o="rect("+l.clipTop+h+l.clipRight+h+l.clipBottom+h+l.clipLeft+")",e=this.format(e).split(",").join(h)):(o=this.format(et(t,this.p,n,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,o,e,s,a)}}),Dt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Dt("autoRound,strictUnits",{parser:function(t,e,i,r,n){return n}}),Dt("border",{defaultValue:"0px solid #000",parser:function(t,e,i,r,s,a){var o=et(t,"borderTopWidth",n,!1,"0px"),l=this.format(e).split(" "),h=l[0].replace(w,"");return"px"!==h&&(o=parseFloat(o)/it(t,"borderTopWidth",1,h)+h),this.parseComplex(t.style,this.format(o+" "+et(t,"borderTopStyle",n,!1,"solid")+" "+et(t,"borderTopColor",n,!1,"#000")),l.join(" "),s,a)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(gt)||["#000"])[0]}}),Dt("borderWidth",{parser:yt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Dt("float,cssFloat,styleFloat",{parser:function(t,e,i,r,n,s){var a=t.style,o="cssFloat"in a?"cssFloat":"styleFloat";return new Tt(a,o,0,0,n,-1,i,!1,0,a[o],e)}});var Zt=function(t){var e,i=this.t,r=i.filter||et(this.data,"filter")||"",n=this.s+this.c*t|0;100===n&&(-1===r.indexOf("atrix(")&&-1===r.indexOf("radient(")&&-1===r.indexOf("oader(")?(i.removeAttribute("filter"),e=!et(this.data,"filter")):(i.filter=r.replace(I,""),e=!0)),e||(this.xn1&&(i.filter=r=r||"alpha(opacity="+n+")"),-1===r.indexOf("pacity")?0===n&&this.xn1||(i.filter=r+" alpha(opacity="+n+")"):i.filter=r.replace(S,"opacity="+n))};Dt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,r,s,a){var o=parseFloat(et(t,"opacity",n,!1,"1")),l=t.style,h="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+o),h&&1===o&&"hidden"===et(t,"visibility",n)&&0!==e&&(o=0),z?s=new Tt(l,"opacity",o,e-o,s):((s=new Tt(l,"opacity",100*o,100*(e-o),s)).xn1=h?1:0,l.zoom=1,s.type=2,s.b="alpha(opacity="+s.s+")",s.e="alpha(opacity="+(s.s+s.c)+")",s.data=t,s.plugin=a,s.setRatio=Zt),h&&((s=new Tt(l,"visibility",0,0,s,-1,null,!1,0,0!==o?"inherit":"hidden",0===e?"hidden":"inherit")).xs0="inherit",r._overwriteProps.push(s.n),r._overwriteProps.push(i)),s}});var Kt=function(t,e){e&&(t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace(A,"-$1").toLowerCase())):t.removeAttribute(e))},$t=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:Kt(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Dt("className",{parser:function(t,e,r,s,a,o,l){var h,u,c,d,p,f=t.getAttribute("class")||"",_=t.style.cssText;if((a=s._classNamePT=new Tt(t,r,0,0,a,2)).setRatio=$t,a.pr=-11,i=!0,a.b=f,u=nt(t,n),c=t._gsClassPT){for(d={},p=c.data;p;)d[p.p]=1,p=p._next;c.setRatio(1)}return t._gsClassPT=a,a.e="="!==e.charAt(1)?e:f.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",a.e),h=st(t,u,nt(t),l,d),t.setAttribute("class",f),a.data=h.firstMPT,t.style.cssText=_,a=a.xfirst=s.parse(t,h.difs,a,o)}});var te=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,r,n,s,a=this.t.style,o=l.transform.parse;if("all"===this.e)a.cssText="",n=!0;else for(r=(e=this.e.split(" ").join("").split(",")).length;--r>-1;)i=e[r],l[i]&&(l[i].parse===o?n=!0:i="transformOrigin"===i?kt:l[i].p),Kt(a,i);n&&(Kt(a,Rt),(s=this.t._gsTransform)&&(s.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Dt("clearProps",{parser:function(t,e,r,n,s){return(s=new Tt(t,r,0,0,s,2)).setRatio=te,s.e=e,s.pr=-10,s.data=n._tween,i=!0,s}}),h="bezier,throwProps,physicsProps,physics2D".split(","),wt=h.length;wt--;)It(h[wt]);(h=a.prototype)._firstPT=h._lastParsedTransform=h._transform=null,h._onInitTween=function(t,e,o,h){if(!t.nodeType)return!1;this._target=m=t,this._tween=o,this._vars=e,g=h,u=e.autoRound,i=!1,r=e.suffixMap||a.suffixMap,n=tt(t,""),s=this._overwriteProps;var p,_,v,y,b,T,x,E,w,S=t.style;if(c&&""===S.zIndex&&("auto"!==(p=et(t,"zIndex",n))&&""!==p||this._addLazySet(S,"zIndex",0)),"string"==typeof e&&(y=S.cssText,p=nt(t,n),S.cssText=y+";"+e,p=st(t,p,nt(t)).difs,!z&&D.test(e)&&(p.opacity=parseFloat(RegExp.$1)),e=p,S.cssText=y),e.className?this._firstPT=_=l.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=_=this.parse(t,e,null),this._transformType){for(w=3===this._transformType,Rt?d&&(c=!0,""===S.zIndex&&("auto"!==(x=et(t,"zIndex",n))&&""!==x||this._addLazySet(S,"zIndex",0)),f&&this._addLazySet(S,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(w?"visible":"hidden"))):S.zoom=1,v=_;v&&v._next;)v=v._next;E=new Tt(t,"transform",0,0,null,2),this._linkCSSP(E,null,v),E.setRatio=Rt?Qt:Jt,E.data=this._transform||zt(t,n,!0),E.tween=o,E.pr=-1,s.pop()}if(i){for(;_;){for(T=_._next,v=y;v&&v.pr>_.pr;)v=v._next;(_._prev=v?v._prev:b)?_._prev._next=_:y=_,(_._next=v)?v._prev=_:b=_,_=T}this._firstPT=y}return!0},h.parse=function(t,e,i,s){var a,o,h,c,d,p,f,_,v,y,b=t.style;for(a in e)"function"==typeof(p=e[a])&&(p=p(g,m)),(o=l[a])?i=o.parse(t,p,a,this,i,s,e):(d=et(t,a,n)+"",v="string"==typeof p,"color"===a||"fill"===a||"stroke"===a||-1!==a.indexOf("Color")||v&&P.test(p)?(v||(p=((p=_t(p)).length>3?"rgba(":"rgb(")+p.join(",")+")"),i=Et(b,a,d,p,!0,"transparent",i,0,s)):v&&N.test(p)?i=Et(b,a,d,p,!0,null,i,0,s):(f=(h=parseFloat(d))||0===h?d.substr((h+"").length):"",""!==d&&"auto"!==d||("width"===a||"height"===a?(h=lt(t,a,n),f="px"):"left"===a||"top"===a?(h=rt(t,a,n),f="px"):(h="opacity"!==a?0:1,f="")),(y=v&&"="===p.charAt(1))?(c=parseInt(p.charAt(0)+"1",10),p=p.substr(2),c*=parseFloat(p),_=p.replace(w,"")):(c=parseFloat(p),_=v?p.replace(w,""):""),""===_&&(_=a in r?r[a]:f),p=c||0===c?(y?c+h:c)+_:e[a],f!==_&&""!==_&&(c||0===c)&&h&&(h=it(t,a,h,f),"%"===_?(h/=it(t,a,100,"%")/100,!0!==e.strictUnits&&(d=h+"%")):"em"===_||"rem"===_||"vw"===_||"vh"===_?h/=it(t,a,1,_):"px"!==_&&(c=it(t,a,c,_),_="px"),y&&(c||0===c)&&(p=c+h+_)),y&&(c+=h),!h&&0!==h||!c&&0!==c?void 0!==b[a]&&(p||p+""!="NaN"&&null!=p)?(i=new Tt(b,a,c||h||0,0,i,-1,a,!1,0,d,p)).xs0="none"!==p||"display"!==a&&-1===a.indexOf("Style")?p:d:Q("invalid "+a+" tween value: "+e[a]):(i=new Tt(b,a,h,c-h,i,0,a,!1!==u&&("px"===_||"zIndex"===a),0,d,p)).xs0=_)),s&&i&&!i.plugin&&(i.plugin=s);return i},h.setRatio=function(t){var e,i,r,n=this._firstPT;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;n;){if(e=n.c*t+n.s,n.r?e=Math.round(e):e<1e-6&&e>-1e-6&&(e=0),n.type)if(1===n.type)if(2===(r=n.l))n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2;else if(3===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3;else if(4===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4;else if(5===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4+n.xn4+n.xs5;else{for(i=n.xs0+e+n.xs1,r=1;r<n.l;r++)i+=n["xn"+r]+n["xs"+(r+1)];n.t[n.p]=i}else-1===n.type?n.t[n.p]=n.xs0:n.setRatio&&n.setRatio(t);else n.t[n.p]=e+n.xs0;n=n._next}else for(;n;)2!==n.type?n.t[n.p]=n.b:n.setRatio(t),n=n._next;else for(;n;){if(2!==n.type)if(n.r&&-1!==n.type)if(e=Math.round(n.s+n.c),n.type){if(1===n.type){for(r=n.l,i=n.xs0+e+n.xs1,r=1;r<n.l;r++)i+=n["xn"+r]+n["xs"+(r+1)];n.t[n.p]=i}}else n.t[n.p]=e+n.xs0;else n.t[n.p]=n.e;else n.setRatio(t);n=n._next}},h._enableTransforms=function(t){this._transform=this._transform||zt(this._target,n,!0),this._transformType=this._transform.svg&&Pt||!t&&3!==this._transformType?2:3};var ee=function(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};h._addLazySet=function(t,e,i){var r=this._firstPT=new Tt(t,e,0,0,this._firstPT,2);r.e=i,r.setRatio=ee,r.data=this},h._linkCSSP=function(t,e,i,r){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,r=!0),i?i._next=t:r||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},h._mod=function(t){for(var e=this._firstPT;e;)"function"==typeof t[e.p]&&t[e.p]===Math.round&&(e.r=1),e=e._next},h._kill=function(e){var i,r,n,s=e;if(e.autoAlpha||e.alpha){for(r in s={},e)s[r]=e[r];s.opacity=1,s.autoAlpha&&(s.visibility=1)}for(e.className&&(i=this._classNamePT)&&((n=i.xfirst)&&n._prev?this._linkCSSP(n._prev,i._next,n._prev._prev):n===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,n._prev),this._classNamePT=null),i=this._firstPT;i;)i.plugin&&i.plugin!==r&&i.plugin._kill&&(i.plugin._kill(e),r=i.plugin),i=i._next;return t.prototype._kill.call(this,s)};var ie=function(t,e,i){var r,n,s,a;if(t.slice)for(n=t.length;--n>-1;)ie(t[n],e,i);else for(n=(r=t.childNodes).length;--n>-1;)a=(s=r[n]).type,s.style&&(e.push(nt(s)),i&&i.push(s)),1!==a&&9!==a&&11!==a||!s.childNodes.length||ie(s,e,i)};return a.cascadeTo=function(t,i,r){var n,s,a,o,l=e.to(t,i,r),h=[l],u=[],c=[],d=[],p=e._internals.reservedProps;for(t=l._targets||l.target,ie(t,u,d),l.render(i,!0,!0),ie(t,c),l.render(0,!0,!0),l._enabled(!0),n=d.length;--n>-1;)if((s=st(d[n],u[n],c[n])).firstMPT){for(a in s=s.difs,r)p[a]&&(s[a]=r[a]);for(a in o={},s)o[a]=u[n][a];h.push(e.fromTo(d[n],i,o,s))}return h},t.activate([a]),a},!0),f=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.6.0",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}),_=function(t){for(;t;)t.f||t.blob||(t.m=Math.round),t=t._next},(m=f.prototype)._onInitAllProps=function(){for(var t,e,i,r=this._tween,n=r.vars.roundProps.join?r.vars.roundProps:r.vars.roundProps.split(","),s=n.length,a={},o=r._propLookup.roundProps;--s>-1;)a[n[s]]=Math.round;for(s=n.length;--s>-1;)for(t=n[s],e=r._firstPT;e;)i=e._next,e.pg?e.t._mod(a):e.n===t&&(2===e.f&&e.t?_(e.t._firstPT):(this._add(e.t,t,e.s,e.c),i&&(i._prev=e._prev),e._prev?e._prev._next=i:r._firstPT===e&&(r._firstPT=i),e._next=e._prev=null,r._propLookup[t]=o)),e=i;return!1},m._add=function(t,e,i,r){this._addTween(t,e,i,i+r,e,Math.round),this._overwriteProps.push(e)},_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.0",init:function(t,e,i,r){var n,s;if("function"!=typeof t.setAttribute)return!1;for(n in e)"function"==typeof(s=e[n])&&(s=s(r,t)),this._addTween(t,"setAttribute",t.getAttribute(n)+"",s+"",n,!1,n),this._overwriteProps.push(n);return!0}}),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.0",API:2,init:function(t,e,i,r){"object"!=typeof e&&(e={rotation:e}),this.finals={};var n,s,a,o,l,h,u=!0===e.useRadians?2*Math.PI:360;for(n in e)"useRadians"!==n&&("function"==typeof(o=e[n])&&(o=o(r,t)),s=(h=(o+"").split("_"))[0],a=parseFloat("function"!=typeof t[n]?t[n]:t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)]()),l=(o=this.finals[n]="string"==typeof s&&"="===s.charAt(1)?a+parseInt(s.charAt(0)+"1",10)*Number(s.substr(2)):Number(s)||0)-a,h.length&&(-1!==(s=h.join("_")).indexOf("short")&&(l%=u)!==l%(u/2)&&(l=l<0?l+u:l-u),-1!==s.indexOf("_cw")&&l<0?l=(l+9999999999*u)%u-(l/u|0)*u:-1!==s.indexOf("ccw")&&l>0&&(l=(l-9999999999*u)%u-(l/u|0)*u)),(l>1e-6||l<-1e-6)&&(this._addTween(t,n,a,a+l,n),this._overwriteProps.push(n)));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(t){var e,i,r,n=_gsScope.GreenSockGlobals||_gsScope,s=n.com.greensock,a=2*Math.PI,o=Math.PI/2,l=s._class,h=function(e,i){var r=l("easing."+e,function(){},!0),n=r.prototype=new t;return n.constructor=r,n.getRatio=i,r},u=t.register||function(){},c=function(t,e,i,r,n){var s=l("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new r},!0);return u(s,t),s},d=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},p=function(e,i){var r=l("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),n=r.prototype=new t;return n.constructor=r,n.getRatio=i,n.config=function(t){return new r(t)},r},f=c("Back",p("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),p("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),p("BackInOut",function(t){return(t*=2)<1?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),_=l("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=!0===i},!0),m=_.prototype=new t;return m.constructor=_,m.getRatio=function(t){var e=t+(.5-t)*this._p;return t<this._p1?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},_.ease=new _(.7,.7),m.config=_.config=function(t,e,i){return new _(t,e,i)},(m=(e=l("easing.SteppedEase",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0)).prototype=new t).constructor=e,m.getRatio=function(t){return t<0?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},m.config=e.config=function(t){return new e(t)},(m=(i=l("easing.RoughEase",function(e){for(var i,r,n,s,a,o,l=(e=e||{}).taper||"none",h=[],u=0,c=0|(e.points||20),p=c,f=!1!==e.randomize,_=!0===e.clamp,m=e.template instanceof t?e.template:null,g="number"==typeof e.strength?.4*e.strength:.4;--p>-1;)i=f?Math.random():1/c*p,r=m?m.getRatio(i):i,n="none"===l?g:"out"===l?(s=1-i)*s*g:"in"===l?i*i*g:i<.5?(s=2*i)*s*.5*g:(s=2*(1-i))*s*.5*g,f?r+=Math.random()*n-.5*n:p%2?r+=.5*n:r-=.5*n,_&&(r>1?r=1:r<0&&(r=0)),h[u++]={x:i,y:r};for(h.sort(function(t,e){return t.x-e.x}),o=new d(1,1,null),p=c;--p>-1;)a=h[p],o=new d(a.x,a.y,o);this._prev=new d(0,0,0!==o.t?o:o.next)},!0)).prototype=new t).constructor=i,m.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},m.config=function(t){return new i(t)},i.ease=new i,c("Bounce",h("BounceOut",function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),h("BounceIn",function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),h("BounceInOut",function(t){var e=t<.5;return(t=e?1-2*t:2*t-1)<1/2.75?t*=7.5625*t:t=t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),c("Circ",h("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),h("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),h("CircInOut",function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),c("Elastic",(r=function(e,i,r){var n=l("easing."+e,function(t,e){this._p1=t>=1?t:1,this._p2=(e||r)/(t<1?t:1),this._p3=this._p2/a*(Math.asin(1/this._p1)||0),this._p2=a/this._p2},!0),s=n.prototype=new t;return s.constructor=n,s.getRatio=i,s.config=function(t,e){return new n(t,e)},n})("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),r("ElasticIn",function(t){return-this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)},.3),r("ElasticInOut",function(t){return(t*=2)<1?this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*this._p2)*.5+1},.45)),c("Expo",h("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),h("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),h("ExpoInOut",function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),c("Sine",h("SineOut",function(t){return Math.sin(t*o)}),h("SineIn",function(t){return 1-Math.cos(t*o)}),h("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),l("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),u(n.SlowMo,"SlowMo","ease,"),u(i,"RoughEase","ease,"),u(e,"SteppedEase","ease,"),f},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t,e){"use strict";var i={},r=t.document,n=t.GreenSockGlobals=t.GreenSockGlobals||t;if(!n.TweenLite){var s,a,o,l,h,u,c,d=function(t){var e,i=t.split("."),r=n;for(e=0;e<i.length;e++)r[i[e]]=r=r[i[e]]||{};return r},p=d("com.greensock"),f=1e-10,_=function(t){var e,i=[],r=t.length;for(e=0;e!==r;i.push(t[e++]));return i},m=function(){},g=(u=Object.prototype.toString,c=u.call([]),function(t){return null!=t&&(t instanceof Array||"object"==typeof t&&!!t.push&&u.call(t)===c)}),v={},y=function(r,s,a,o){this.sc=v[r]?v[r].sc:[],v[r]=this,this.gsClass=null,this.func=a;var l=[];this.check=function(h){for(var u,c,p,f,_,m=s.length,g=m;--m>-1;)(u=v[s[m]]||new y(s[m],[])).gsClass?(l[m]=u.gsClass,g--):h&&u.sc.push(this);if(0===g&&a){if(p=(c=("com.greensock."+r).split(".")).pop(),f=d(c.join("."))[p]=this.gsClass=a.apply(a,l),o)if(n[p]=i[p]=f,!(_="undefined"!=typeof module&&module.exports)&&"function"==typeof define&&define.amd)define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+r.split(".").pop(),[],function(){return f});else if(_)if(r===e)for(m in module.exports=i[e]=f,i)f[m]=i[m];else i[e]&&(i[e][p]=f);for(m=0;m<this.sc.length;m++)this.sc[m].check()}},this.check(!0)},b=t._gsDefine=function(t,e,i,r){return new y(t,e,i,r)},T=p._class=function(t,e,i){return e=e||function(){},b(t,[],function(){return e},i),e};b.globals=n;var x=[0,0,1,1],E=T("easing.Ease",function(t,e,i,r){this._func=t,this._type=i||0,this._power=r||0,this._params=e?x.concat(e):x},!0),w=E.map={},S=E.register=function(t,e,i,r){for(var n,s,a,o,l=e.split(","),h=l.length,u=(i||"easeIn,easeOut,easeInOut").split(",");--h>-1;)for(s=l[h],n=r?T("easing."+s,null,!0):p.easing[s]||{},a=u.length;--a>-1;)o=u[a],w[s+"."+o]=w[o+s]=n[o]=t.getRatio?t:t[o]||new t};for((o=E.prototype)._calcEnd=!1,o.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,r=1===e?1-t:2===e?t:t<.5?2*t:2*(1-t);return 1===i?r*=r:2===i?r*=r*r:3===i?r*=r*r*r:4===i&&(r*=r*r*r*r),1===e?1-r:2===e?r:t<.5?r/2:1-r/2},a=(s=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;--a>-1;)o=s[a]+",Power"+a,S(new E(null,null,1,a),o,"easeOut",!0),S(new E(null,null,2,a),o,"easeIn"+(0===a?",easeNone":"")),S(new E(null,null,3,a),o,"easeInOut");w.linear=p.easing.Linear.easeIn,w.swing=p.easing.Quad.easeInOut;var D=T("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});(o=D.prototype).addEventListener=function(t,e,i,r,n){n=n||0;var s,a,o=this._listeners[t],u=0;for(this!==l||h||l.wake(),null==o&&(this._listeners[t]=o=[]),a=o.length;--a>-1;)(s=o[a]).c===e&&s.s===i?o.splice(a,1):0===u&&s.pr<n&&(u=a+1);o.splice(u,0,{c:e,s:i,up:r,pr:n})},o.removeEventListener=function(t,e){var i,r=this._listeners[t];if(r)for(i=r.length;--i>-1;)if(r[i].c===e)return void r.splice(i,1)},o.dispatchEvent=function(t){var e,i,r,n=this._listeners[t];if(n)for((e=n.length)>1&&(n=n.slice(0)),i=this._eventTarget;--e>-1;)(r=n[e])&&(r.up?r.c.call(r.s||i,{type:t,target:i}):r.c.call(r.s||i))};var I=t.requestAnimationFrame,P=t.cancelAnimationFrame,A=Date.now||function(){return(new Date).getTime()},C=A();for(a=(s=["ms","moz","webkit","o"]).length;--a>-1&&!I;)I=t[s[a]+"RequestAnimationFrame"],P=t[s[a]+"CancelAnimationFrame"]||t[s[a]+"CancelRequestAnimationFrame"];T("Ticker",function(t,e){var i,n,s,a,o,u=this,c=A(),d=!(!1===e||!I)&&"auto",p=500,f=33,_=function(t){var e,r,l=A()-C;l>p&&(c+=l-f),C+=l,u.time=(C-c)/1e3,e=u.time-o,(!i||e>0||!0===t)&&(u.frame++,o+=e+(e>=a?.004:a-e),r=!0),!0!==t&&(s=n(_)),r&&u.dispatchEvent("tick")};D.call(u),u.time=u.frame=0,u.tick=function(){_(!0)},u.lagSmoothing=function(t,e){p=t||1e10,f=Math.min(e,p,0)},u.sleep=function(){null!=s&&(d&&P?P(s):clearTimeout(s),n=m,s=null,u===l&&(h=!1))},u.wake=function(t){null!==s?u.sleep():t?c+=-C+(C=A()):u.frame>10&&(C=A()-p+5),n=0===i?m:d&&I?I:function(t){return setTimeout(t,1e3*(o-u.time)+1|0)},u===l&&(h=!0),_(2)},u.fps=function(t){if(!arguments.length)return i;a=1/((i=t)||60),o=this.time+a,u.wake()},u.useRAF=function(t){if(!arguments.length)return d;u.sleep(),d=t,u.fps(i)},u.fps(t),setTimeout(function(){"auto"===d&&u.frame<5&&"hidden"!==r.visibilityState&&u.useRAF(!1)},1500)}),(o=p.Ticker.prototype=new p.events.EventDispatcher).constructor=p.Ticker;var M=T("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!0===e.immediateRender,this.data=e.data,this._reversed=!0===e.reversed,J){h||l.wake();var i=this.vars.useFrames?z:J;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});l=M.ticker=new p.Ticker,(o=M.prototype)._dirty=o._gc=o._initted=o._paused=!1,o._totalTime=o._time=0,o._rawPrevTime=-1,o._next=o._last=o._onUpdate=o._timeline=o.timeline=null,o._paused=!1;var L=function(){h&&A()-C>2e3&&l.wake(),setTimeout(L,2e3)};L(),o.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},o.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},o.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},o.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},o.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},o.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},o.render=function(t,e,i){},o.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},o.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime(!0))>=i&&t<i+this.totalDuration()/this._timeScale},o._enabled=function(t,e){return h||l.wake(),this._gc=!t,this._active=this.isActive(),!0!==e&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},o._kill=function(t,e){return this._enabled(!1,!1)},o.kill=function(t,e){return this._kill(t,e),this},o._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},o._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},o._callback=function(t){var e=this.vars,i=e[t],r=e[t+"Params"],n=e[t+"Scope"]||e.callbackScope||this;switch(r?r.length:0){case 0:i.call(n);break;case 1:i.call(n,r[0]);break;case 2:i.call(n,r[0],r[1]);break;default:i.apply(n,r)}},o.eventCallback=function(t,e,i,r){if("on"===(t||"").substr(0,2)){var n=this.vars;if(1===arguments.length)return n[t];null==e?delete n[t]:(n[t]=e,n[t+"Params"]=g(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,n[t+"Scope"]=r),"onUpdate"===t&&(this._onUpdate=e)}return this},o.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},o.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},o.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},o.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},o.totalTime=function(t,e,i){if(h||l.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var r=this._totalDuration,n=this._timeline;if(t>r&&!i&&(t=r),this._startTime=(this._paused?this._pauseTime:n._time)-(this._reversed?r-t:t)/this._timeScale,n._dirty||this._uncache(!1),n._timeline)for(;n._timeline;)n._timeline._time!==(n._startTime+n._totalTime)/n._timeScale&&n.totalTime(n._totalTime,!0),n=n._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===t&&0!==this._duration||(k.length&&Z(),this.render(t,e,!1),k.length&&Z())}return this},o.progress=o.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},o.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},o.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},o.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||f,this._timeline&&this._timeline.smoothChildTiming){var e=this._pauseTime,i=e||0===e?e:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/t}return this._timeScale=t,this._uncache(!1)},o.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},o.paused=function(t){if(!arguments.length)return this._paused;var e,i,r=this._timeline;return t!=this._paused&&r&&(h||t||l.wake(),i=(e=r.rawTime())-this._pauseTime,!t&&r.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==i&&this._initted&&this.duration()&&(e=r.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var O=T("core.SimpleTimeline",function(t){M.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});(o=O.prototype=new M).constructor=O,o.kill()._gc=!1,o._first=o._last=o._recent=null,o._sortChildren=!1,o.add=o.insert=function(t,e,i,r){var n,s;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),n=this._last,this._sortChildren)for(s=t._startTime;n&&n._startTime>s;)n=n._prev;return n?(t._next=n._next,n._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=n,this._recent=t,this._timeline&&this._uncache(!0),this},o._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},o.render=function(t,e,i){var r,n=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;n;)r=n._next,(n._active||t>=n._startTime&&!n._paused)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=r},o.rawTime=function(){return h||l.wake(),this._totalTime};var R=T("TweenLite",function(e,i,r){if(M.call(this,i,r),this.render=R.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:R.selector(e)||e;var n,s,a,o=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?q[R.defaultOverwrite]:"number"==typeof l?l>>0:q[l],(o||e instanceof Array||e.push&&g(e))&&"number"!=typeof e[0])for(this._targets=a=_(e),this._propLookup=[],this._siblings=[],n=0;n<a.length;n++)(s=a[n])?"string"!=typeof s?s.length&&s!==t&&s[0]&&(s[0]===t||s[0].nodeType&&s[0].style&&!s.nodeType)?(a.splice(n--,1),this._targets=a=a.concat(_(s))):(this._siblings[n]=K(s,this,!1),1===l&&this._siblings[n].length>1&&tt(s,this,null,1,this._siblings[n])):"string"==typeof(s=a[n--]=R.selector(s))&&a.splice(n+1,1):a.splice(n--,1);else this._propLookup={},this._siblings=K(e,this,!1),1===l&&this._siblings.length>1&&tt(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-f,this.render(Math.min(0,-this._delay)))},!0),j=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)};(o=R.prototype=new M).constructor=R,o.kill()._gc=!1,o.ratio=0,o._firstPT=o._targets=o._overwrittenProps=o._startAt=null,o._notifyPluginsOfEnabled=o._lazy=!1,R.version="1.19.1",R.defaultEase=o._ease=new E(null,null,1,1),R.defaultOverwrite="auto",R.ticker=l,R.autoSleep=120,R.lagSmoothing=function(t,e){l.lagSmoothing(t,e)},R.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(R.selector=i,i(e)):void 0===r?e:r.querySelectorAll?r.querySelectorAll(e):r.getElementById("#"===e.charAt(0)?e.substr(1):e)};var k=[],N={},H=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,B=function(t){for(var e,i=this._firstPT;i;)e=i.blob?1===t?this.end:t?this.join(""):this.start:i.c*t+i.s,i.m?e=i.m(e,this._target||i.t):e<1e-6&&e>-1e-6&&!i.blob&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next},F=function(t,e,i,r){var n,s,a,o,l,h,u,c=[],d=0,p="",f=0;for(c.start=t,c.end=e,t=c[0]=t+"",e=c[1]=e+"",i&&(i(c),t=c[0],e=c[1]),c.length=0,n=t.match(H)||[],s=e.match(H)||[],r&&(r._next=null,r.blob=1,c._firstPT=c._applyPT=r),l=s.length,o=0;o<l;o++)u=s[o],p+=(h=e.substr(d,e.indexOf(u,d)-d))||!o?h:",",d+=h.length,f?f=(f+1)%5:"rgba("===h.substr(-5)&&(f=1),u===n[o]||n.length<=o?p+=u:(p&&(c.push(p),p=""),a=parseFloat(n[o]),c.push(a),c._firstPT={_next:c._firstPT,t:c,p:c.length-1,s:a,c:("="===u.charAt(1)?parseInt(u.charAt(0)+"1",10)*parseFloat(u.substr(2)):parseFloat(u)-a)||0,f:0,m:f&&f<4?Math.round:0}),d+=u.length;return(p+=e.substr(d))&&c.push(p),c.setRatio=B,c},U=function(t,e,i,r,n,s,a,o,l){"function"==typeof r&&(r=r(l||0,t));var h=typeof t[e],u="function"!==h?"":e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),c="get"!==i?i:u?a?t[u](a):t[u]():t[e],d="string"==typeof r&&"="===r.charAt(1),p={t:t,p:e,s:c,f:"function"===h,pg:0,n:n||e,m:s?"function"==typeof s?s:Math.round:0,pr:0,c:d?parseInt(r.charAt(0)+"1",10)*parseFloat(r.substr(2)):parseFloat(r)-c||0};if(("number"!=typeof c||"number"!=typeof r&&!d)&&(a||isNaN(c)||!d&&isNaN(r)||"boolean"==typeof c||"boolean"==typeof r?(p.fp=a,p={t:F(c,d?p.s+p.c:r,o||R.defaultStringFilter,p),p:"setRatio",s:0,c:1,f:2,pg:0,n:n||e,pr:0,m:0}):(p.s=parseFloat(c),d||(p.c=parseFloat(r)-p.s||0))),p.c)return(p._next=this._firstPT)&&(p._next._prev=p),this._firstPT=p,p},X=R._internals={isArray:g,isSelector:j,lazyTweens:k,blobDif:F},G=R._plugins={},V=X.tweenLookup={},Y=0,W=X.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1},q={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},z=M._rootFramesTimeline=new O,J=M._rootTimeline=new O,Q=30,Z=X.lazyRender=function(){var t,e=k.length;for(N={};--e>-1;)(t=k[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);k.length=0};J._startTime=l.time,z._startTime=l.frame,J._active=z._active=!0,setTimeout(Z,1),M._updateRoot=R.render=function(){var t,e,i;if(k.length&&Z(),J.render((l.time-J._startTime)*J._timeScale,!1,!1),z.render((l.frame-z._startTime)*z._timeScale,!1,!1),k.length&&Z(),l.frame>=Q){for(i in Q=l.frame+(parseInt(R.autoSleep,10)||120),V){for(t=(e=V[i].tweens).length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete V[i]}if((!(i=J._first)||i._paused)&&R.autoSleep&&!z._first&&1===l._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||l.sleep()}}},l.addEventListener("tick",M._updateRoot);var K=function(t,e,i){var r,n,s=t._gsTweenID;if(V[s||(t._gsTweenID=s="t"+Y++)]||(V[s]={target:t,tweens:[]}),e&&((r=V[s].tweens)[n=r.length]=e,i))for(;--n>-1;)r[n]===e&&r.splice(n,1);return V[s].tweens},$=function(t,e,i,r){var n,s,a=t.vars.onOverwrite;return a&&(n=a(t,e,i,r)),(a=R.onOverwrite)&&(s=a(t,e,i,r)),!1!==n&&!1!==s},tt=function(t,e,i,r,n){var s,a,o,l;if(1===r||r>=4){for(l=n.length,s=0;s<l;s++)if((o=n[s])!==e)o._gc||o._kill(null,t,e)&&(a=!0);else if(5===r)break;return a}var h,u=e._startTime+f,c=[],d=0,p=0===e._duration;for(s=n.length;--s>-1;)(o=n[s])===e||o._gc||o._paused||(o._timeline!==e._timeline?(h=h||et(e,0,p),0===et(o,h,p)&&(c[d++]=o)):o._startTime<=u&&o._startTime+o.totalDuration()/o._timeScale>u&&((p||!o._initted)&&u-o._startTime<=2e-10||(c[d++]=o)));for(s=d;--s>-1;)if(o=c[s],2===r&&o._kill(i,t,e)&&(a=!0),2!==r||!o._firstPT&&o._initted){if(2!==r&&!$(o,e))continue;o._enabled(!1,!1)&&(a=!0)}return a},et=function(t,e,i){for(var r=t._timeline,n=r._timeScale,s=t._startTime;r._timeline;){if(s+=r._startTime,n*=r._timeScale,r._paused)return-100;r=r._timeline}return(s/=n)>e?s-e:i&&s===e||!t._initted&&s-e<2e-10?f:(s+=t.totalDuration()/t._timeScale/n)>e+f?0:s-e-f};o._init=function(){var t,e,i,r,n,s,a=this.vars,o=this._overwrittenProps,l=this._duration,h=!!a.immediateRender,u=a.ease;if(a.startAt){for(r in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),n={},a.startAt)n[r]=a.startAt[r];if(n.overwrite=!1,n.immediateRender=!0,n.lazy=h&&!1!==a.lazy,n.startAt=n.delay=null,this._startAt=R.to(this.target,0,n),h)if(this._time>0)this._startAt=null;else if(0!==l)return}else if(a.runBackwards&&0!==l)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{for(r in 0!==this._time&&(h=!1),i={},a)W[r]&&"autoCSS"!==r||(i[r]=a[r]);if(i.overwrite=0,i.data="isFromStart",i.lazy=h&&!1!==a.lazy,i.immediateRender=h,this._startAt=R.to(this.target,0,i),h){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=u=u?u instanceof E?u:"function"==typeof u?new E(u,a.easeParams):w[u]||R.defaultEase:R.defaultEase,a.easeParams instanceof Array&&u.config&&(this._ease=u.config.apply(u,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(s=this._targets.length,t=0;t<s;t++)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],o?o[t]:null,t)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,o,0);if(e&&R._onPluginEvent("_onInitAllProps",this),o&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),a.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=a.onUpdate,this._initted=!0},o._initProps=function(e,i,r,n,s){var a,o,l,h,u,c;if(null==e)return!1;for(a in N[e._gsTweenID]&&Z(),this.vars.css||e.style&&e!==t&&e.nodeType&&G.css&&!1!==this.vars.autoCSS&&function(t,e){var i,r={};for(i in t)W[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!G[i]||G[i]&&G[i]._autoCSS)||(r[i]=t[i],delete t[i]);t.css=r}(this.vars,e),this.vars)if(c=this.vars[a],W[a])c&&(c instanceof Array||c.push&&g(c))&&-1!==c.join("").indexOf("{self}")&&(this.vars[a]=c=this._swapSelfInParams(c,this));else if(G[a]&&(h=new G[a])._onInitTween(e,this.vars[a],this,s)){for(this._firstPT=u={_next:this._firstPT,t:h,p:"setRatio",s:0,c:1,f:1,n:a,pg:1,pr:h._priority,m:0},o=h._overwriteProps.length;--o>-1;)i[h._overwriteProps[o]]=this._firstPT;(h._priority||h._onInitAllProps)&&(l=!0),(h._onDisable||h._onEnable)&&(this._notifyPluginsOfEnabled=!0),u._next&&(u._next._prev=u)}else i[a]=U.call(this,e,a,"get",c,a,0,null,this.vars.stringFilter,s);return n&&this._kill(n,e)?this._initProps(e,i,r,n,s):this._overwrite>1&&this._firstPT&&r.length>1&&tt(e,this,i,this._overwrite,r)?(this._kill(i,e),this._initProps(e,i,r,n,s)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(N[e._gsTweenID]=!0),l)},o.render=function(t,e,i){var r,n,s,a,o=this._time,l=this._duration,h=this._rawPrevTime;if(t>=l-1e-7&&t>=0)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(r=!0,n="onComplete",i=i||this._timeline.autoRemoveChildren),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(h<0||t<=0&&t>=-1e-7||h===f&&"isPause"!==this.data)&&h!==t&&(i=!0,h>f&&(n="onReverseComplete")),this._rawPrevTime=a=!e||t||h===t?t:f);else if(t<1e-7)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==o||0===l&&h>0)&&(n="onReverseComplete",r=this._reversed),t<0&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(h>=0&&(h!==f||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=a=!e||t||h===t?t:f)),this._initted||(i=!0);else if(this._totalTime=this._time=t,this._easeType){var u=t/l,c=this._easeType,d=this._easePower;(1===c||3===c&&u>=.5)&&(u=1-u),3===c&&(u*=2),1===d?u*=u:2===d?u*=u*u:3===d?u*=u*u*u:4===d&&(u*=u*u*u*u),this.ratio=1===c?1-u:2===c?u:t/l<.5?u/2:1-u/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==o||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=o,this._rawPrevTime=h,k.push(this),void(this._lazy=[t,e]);this._time&&!r?this.ratio=this._ease.getRatio(this._time/l):r&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==o&&t>=0&&(this._active=!0),0===o&&(this._startAt&&(t>=0?this._startAt.render(t,e,i):n||(n="_dummyGS")),this.vars.onStart&&(0===this._time&&0!==l||e||this._callback("onStart"))),s=this._firstPT;s;)s.f?s.t[s.p](s.c*this.ratio+s.s):s.t[s.p]=s.c*this.ratio+s.s,s=s._next;this._onUpdate&&(t<0&&this._startAt&&-1e-4!==t&&this._startAt.render(t,e,i),e||(this._time!==o||r||i)&&this._callback("onUpdate")),n&&(this._gc&&!i||(t<0&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,e,i),r&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[n]&&this._callback(n),0===l&&this._rawPrevTime===f&&a!==f&&(this._rawPrevTime=0)))}},o._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:R.selector(e)||e;var r,n,s,a,o,l,h,u,c,d=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline;if((g(e)||j(e))&&"number"!=typeof e[0])for(r=e.length;--r>-1;)this._kill(t,e[r],i)&&(l=!0);else{if(this._targets){for(r=this._targets.length;--r>-1;)if(e===this._targets[r]){o=this._propLookup[r]||{},this._overwrittenProps=this._overwrittenProps||[],n=this._overwrittenProps[r]=t?this._overwrittenProps[r]||{}:"all";break}}else{if(e!==this.target)return!1;o=this._propLookup,n=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(o){if(h=t||o,u=t!==n&&"all"!==n&&t!==o&&("object"!=typeof t||!t._tempKill),i&&(R.onOverwrite||this.vars.onOverwrite)){for(s in h)o[s]&&(c||(c=[]),c.push(s));if((c||!t)&&!$(this,i,e,c))return!1}for(s in h)(a=o[s])&&(d&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,l=!0),a.pg&&a.t._kill(h)&&(l=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete o[s]),u&&(n[s]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},o.invalidate=function(){return this._notifyPluginsOfEnabled&&R._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],M.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-f,this.render(Math.min(0,-this._delay))),this},o._enabled=function(t,e){if(h||l.wake(),t&&this._gc){var i,r=this._targets;if(r)for(i=r.length;--i>-1;)this._siblings[i]=K(r[i],this,!0);else this._siblings=K(this.target,this,!0)}return M.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&R._onPluginEvent(t?"_onEnable":"_onDisable",this)},R.to=function(t,e,i){return new R(t,e,i)},R.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new R(t,e,i)},R.fromTo=function(t,e,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new R(t,e,r)},R.delayedCall=function(t,e,i,r,n){return new R(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:n,overwrite:0})},R.set=function(t,e){return new R(t,0,e)},R.getTweensOf=function(t,e){if(null==t)return[];var i,r,n,s;if(t="string"!=typeof t?t:R.selector(t)||t,(g(t)||j(t))&&"number"!=typeof t[0]){for(i=t.length,r=[];--i>-1;)r=r.concat(R.getTweensOf(t[i],e));for(i=r.length;--i>-1;)for(s=r[i],n=i;--n>-1;)s===r[n]&&r.splice(i,1)}else for(i=(r=K(t).concat()).length;--i>-1;)(r[i]._gc||e&&!r[i].isActive())&&r.splice(i,1);return r},R.killTweensOf=R.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var r=R.getTweensOf(t,e),n=r.length;--n>-1;)r[n]._kill(i,t)};var it=T("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=it.prototype},!0);if(o=it.prototype,it.version="1.19.0",it.API=2,o._firstPT=null,o._addTween=U,o.setRatio=B,o._kill=function(t){var e,i=this._overwriteProps,r=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;r;)null!=t[r.n]&&(r._next&&(r._next._prev=r._prev),r._prev?(r._prev._next=r._next,r._prev=null):this._firstPT===r&&(this._firstPT=r._next)),r=r._next;return!1},o._mod=o._roundProps=function(t){for(var e,i=this._firstPT;i;)(e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&"function"==typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},R._onPluginEvent=function(t,e){var i,r,n,s,a,o=e._firstPT;if("_onInitAllProps"===t){for(;o;){for(a=o._next,r=n;r&&r.pr>o.pr;)r=r._next;(o._prev=r?r._prev:s)?o._prev._next=o:n=o,(o._next=r)?r._prev=o:s=o,o=a}o=e._firstPT=n}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},it.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===it.API&&(G[(new t[e])._propName]=t[e]);return!0},b.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,r=t.priority||0,n=t.overwriteProps,s={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=T("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){it.call(this,i,r),this._overwriteProps=n||[]},!0===t.global),o=a.prototype=new it(i);for(e in o.constructor=a,a.API=t.API,s)"function"==typeof t[e]&&(o[s[e]]=t[e]);return a.version=t.version,it.activate([a]),a},s=t._gsQueue){for(a=0;a<s.length;a++)s[a]();for(o in v)v[o].func||t.console.log("GSAP encountered missing dependency: "+o)}h=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax"),this.createjs=this.createjs||{},function(){"use strict";var t=createjs.PreloadJS=createjs.PreloadJS||{};t.version="0.6.2",t.buildDate="Thu, 26 Nov 2015 20:44:31 GMT"}(),this.createjs=this.createjs||{},createjs.extend=function(t,e){"use strict";function i(){this.constructor=t}return i.prototype=e.prototype,t.prototype=new i},this.createjs=this.createjs||{},createjs.promote=function(t,e){"use strict";var i=t.prototype,r=Object.getPrototypeOf&&Object.getPrototypeOf(i)||i.__proto__;if(r)for(var n in i[(e+="_")+"constructor"]=r.constructor,r)i.hasOwnProperty(n)&&"function"==typeof r[n]&&(i[e+n]=r[n]);return t},this.createjs=this.createjs||{},function(){"use strict";createjs.proxy=function(t,e){var i=Array.prototype.slice.call(arguments,2);return function(){return t.apply(e,Array.prototype.slice.call(arguments,0).concat(i))}}}(),this.createjs=this.createjs||{},createjs.indexOf=function(t,e){"use strict";for(var i=0,r=t.length;i<r;i++)if(e===t[i])return i;return-1},this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.type=t,this.target=null,this.currentTarget=null,this.eventPhase=0,this.bubbles=!!e,this.cancelable=!!i,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.removed=!1}var e=t.prototype;e.preventDefault=function(){this.defaultPrevented=this.cancelable&&!0},e.stopPropagation=function(){this.propagationStopped=!0},e.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},e.remove=function(){this.removed=!0},e.clone=function(){return new t(this.type,this.bubbles,this.cancelable)},e.set=function(t){for(var e in t)this[e]=t[e];return this},e.toString=function(){return"[Event (type="+this.type+")]"},createjs.Event=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.Event_constructor("error"),this.title=t,this.message=e,this.data=i}createjs.extend(t,createjs.Event).clone=function(){return new createjs.ErrorEvent(this.title,this.message,this.data)},createjs.ErrorEvent=createjs.promote(t,"Event")}(),this.createjs=this.createjs||{},function(){"use strict";function t(){this._listeners=null,this._captureListeners=null}var e=t.prototype;t.initialize=function(t){t.addEventListener=e.addEventListener,t.on=e.on,t.removeEventListener=t.off=e.removeEventListener,t.removeAllEventListeners=e.removeAllEventListeners,t.hasEventListener=e.hasEventListener,t.dispatchEvent=e.dispatchEvent,t._dispatchEvent=e._dispatchEvent,t.willTrigger=e.willTrigger},e.addEventListener=function(t,e,i){var r,n=(r=i?this._captureListeners=this._captureListeners||{}:this._listeners=this._listeners||{})[t];return n&&this.removeEventListener(t,e,i),(n=r[t])?n.push(e):r[t]=[e],e},e.on=function(t,e,i,r,n,s){return e.handleEvent&&(i=i||e,e=e.handleEvent),i=i||this,this.addEventListener(t,function(t){e.call(i,t,n),r&&t.remove()},s)},e.removeEventListener=function(t,e,i){var r=i?this._captureListeners:this._listeners;if(r){var n=r[t];if(n)for(var s=0,a=n.length;s<a;s++)if(n[s]==e){1==a?delete r[t]:n.splice(s,1);break}}},e.off=e.removeEventListener,e.removeAllEventListeners=function(t){t?(this._listeners&&delete this._listeners[t],this._captureListeners&&delete this._captureListeners[t]):this._listeners=this._captureListeners=null},e.dispatchEvent=function(t,e,i){if("string"==typeof t){var r=this._listeners;if(!(e||r&&r[t]))return!0;t=new createjs.Event(t,e,i)}else t.target&&t.clone&&(t=t.clone());try{t.target=this}catch(t){}if(t.bubbles&&this.parent){for(var n=this,s=[n];n.parent;)s.push(n=n.parent);var a,o=s.length;for(a=o-1;a>=0&&!t.propagationStopped;a--)s[a]._dispatchEvent(t,1+(0==a));for(a=1;a<o&&!t.propagationStopped;a++)s[a]._dispatchEvent(t,3)}else this._dispatchEvent(t,2);return!t.defaultPrevented},e.hasEventListener=function(t){var e=this._listeners,i=this._captureListeners;return!!(e&&e[t]||i&&i[t])},e.willTrigger=function(t){for(var e=this;e;){if(e.hasEventListener(t))return!0;e=e.parent}return!1},e.toString=function(){return"[EventDispatcher]"},e._dispatchEvent=function(t,e){var i,r=1==e?this._captureListeners:this._listeners;if(t&&r){var n=r[t.type];if(!n||!(i=n.length))return;try{t.currentTarget=this}catch(t){}try{t.eventPhase=e}catch(t){}t.removed=!1,n=n.slice();for(var s=0;s<i&&!t.immediatePropagationStopped;s++){var a=n[s];a.handleEvent?a.handleEvent(t):a(t),t.removed&&(this.off(t.type,a,1==e),t.removed=!1)}}},createjs.EventDispatcher=t}(),this.createjs=this.createjs||{},function(t){"use strict";function e(t,e){this.Event_constructor("progress"),this.loaded=t,this.total=null==e?1:e,this.progress=0==e?0:this.loaded/this.total}createjs.extend(e,createjs.Event).clone=function(){return new createjs.ProgressEvent(this.loaded,this.total)},createjs.ProgressEvent=createjs.promote(e,"Event")}(window),function(){var t="function"==typeof define&&define.amd,e={function:!0,object:!0},i=e[typeof exports]&&exports&&!exports.nodeType&&exports,r=e[typeof window]&&window||this,n=i&&e[typeof module]&&module&&!module.nodeType&&"object"==typeof global&&global;function s(t,i){t||(t=r.Object()),i||(i=r.Object());var n=t.Number||r.Number,a=t.String||r.String,o=t.Object||r.Object,l=t.Date||r.Date,h=t.SyntaxError||r.SyntaxError,u=t.TypeError||r.TypeError,c=t.Math||r.Math,d=t.JSON||r.JSON;"object"==typeof d&&d&&(i.stringify=d.stringify,i.parse=d.parse);var p,f,_,m=o.prototype,g=m.toString,v=new l(-0xc782b5b800cec);try{v=-109252==v.getUTCFullYear()&&0===v.getUTCMonth()&&1===v.getUTCDate()&&10==v.getUTCHours()&&37==v.getUTCMinutes()&&6==v.getUTCSeconds()&&708==v.getUTCMilliseconds()}catch(t){}function y(t){if(y[t]!==_)return y[t];var e;if("bug-string-char-index"==t)e="a"!="a"[0];else if("json"==t)e=y("json-stringify")&&y("json-parse");else{var r,s='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==t){var o=i.stringify,h="function"==typeof o&&v;if(h){(r=function(){return 1}).toJSON=r;try{h="0"===o(0)&&"0"===o(new n)&&'""'==o(new a)&&o(g)===_&&o(_)===_&&o()===_&&"1"===o(r)&&"[1]"==o([r])&&"[null]"==o([_])&&"null"==o(null)&&"[null,null,null]"==o([_,g,null])&&o({a:[r,!0,!1,null,"\0\b\n\f\r\t"]})==s&&"1"===o(null,r)&&"[\n 1,\n 2\n]"==o([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==o(new l(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==o(new l(864e13))&&'"-000001-01-01T00:00:00.000Z"'==o(new l(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==o(new l(-1))}catch(t){h=!1}}e=h}if("json-parse"==t){var u=i.parse;if("function"==typeof u)try{if(0===u("0")&&!u(!1)){var c=5==(r=u(s)).a.length&&1===r.a[0];if(c){try{c=!u('"\t"')}catch(t){}if(c)try{c=1!==u("01")}catch(t){}if(c)try{c=1!==u("1.")}catch(t){}}}}catch(t){c=!1}e=c}}return y[t]=!!e}if(!y("json")){var b="[object Function]",T="[object Number]",x="[object String]",E="[object Array]",w=y("bug-string-char-index");if(!v)var S=c.floor,D=[0,31,59,90,120,151,181,212,243,273,304,334],I=function(t,e){return D[e]+365*(t-1970)+S((t-1969+(e=+(e>1)))/4)-S((t-1901+e)/100)+S((t-1601+e)/400)};if((p=m.hasOwnProperty)||(p=function(t){var e,i={};return(i.__proto__=null,i.__proto__={toString:1},i).toString!=g?p=function(t){var e=this.__proto__,i=t in(this.__proto__=null,this);return this.__proto__=e,i}:(e=i.constructor,p=function(t){var i=(this.constructor||e).prototype;return t in this&&!(t in i&&this[t]===i[t])}),i=null,p.call(this,t)}),f=function(t,i){var r,n,s,a=0;for(s in(r=function(){this.valueOf=0}).prototype.valueOf=0,n=new r)p.call(n,s)&&a++;return r=n=null,a?f=2==a?function(t,e){var i,r={},n=g.call(t)==b;for(i in t)n&&"prototype"==i||p.call(r,i)||!(r[i]=1)||!p.call(t,i)||e(i)}:function(t,e){var i,r,n=g.call(t)==b;for(i in t)n&&"prototype"==i||!p.call(t,i)||(r="constructor"===i)||e(i);(r||p.call(t,i="constructor"))&&e(i)}:(n=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],f=function(t,i){var r,s,a=g.call(t)==b,o=!a&&"function"!=typeof t.constructor&&e[typeof t.hasOwnProperty]&&t.hasOwnProperty||p;for(r in t)a&&"prototype"==r||!o.call(t,r)||i(r);for(s=n.length;r=n[--s];o.call(t,r)&&i(r));}),f(t,i)},!y("json-stringify")){var P={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},A=function(t,e){return("000000"+(e||0)).slice(-t)},C=function(t){for(var e='"',i=0,r=t.length,n=!w||r>10,s=n&&(w?t.split(""):t);i<r;i++){var a=t.charCodeAt(i);switch(a){case 8:case 9:case 10:case 12:case 13:case 34:case 92:e+=P[a];break;default:if(a<32){e+="\\u00"+A(2,a.toString(16));break}e+=n?s[i]:t.charAt(i)}}return e+'"'},M=function(t,e,i,r,n,s,a){var o,l,h,c,d,m,v,y,b,w,D,P,L,O,R,j;try{o=e[t]}catch(t){}if("object"==typeof o&&o)if("[object Date]"!=(l=g.call(o))||p.call(o,"toJSON"))"function"==typeof o.toJSON&&(l!=T&&l!=x&&l!=E||p.call(o,"toJSON"))&&(o=o.toJSON(t));else if(o>-1/0&&o<1/0){if(I){for(d=S(o/864e5),h=S(d/365.2425)+1970-1;I(h+1,0)<=d;h++);for(c=S((d-I(h,0))/30.42);I(h,c+1)<=d;c++);d=1+d-I(h,c),v=S((m=(o%864e5+864e5)%864e5)/36e5)%24,y=S(m/6e4)%60,b=S(m/1e3)%60,w=m%1e3}else h=o.getUTCFullYear(),c=o.getUTCMonth(),d=o.getUTCDate(),v=o.getUTCHours(),y=o.getUTCMinutes(),b=o.getUTCSeconds(),w=o.getUTCMilliseconds();o=(h<=0||h>=1e4?(h<0?"-":"+")+A(6,h<0?-h:h):A(4,h))+"-"+A(2,c+1)+"-"+A(2,d)+"T"+A(2,v)+":"+A(2,y)+":"+A(2,b)+"."+A(3,w)+"Z"}else o=null;if(i&&(o=i.call(e,t,o)),null===o)return"null";if("[object Boolean]"==(l=g.call(o)))return""+o;if(l==T)return o>-1/0&&o<1/0?""+o:"null";if(l==x)return C(""+o);if("object"==typeof o){for(O=a.length;O--;)if(a[O]===o)throw u();if(a.push(o),D=[],R=s,s+=n,l==E){for(L=0,O=o.length;L<O;L++)P=M(L,o,i,r,n,s,a),D.push(P===_?"null":P);j=D.length?n?"[\n"+s+D.join(",\n"+s)+"\n"+R+"]":"["+D.join(",")+"]":"[]"}else f(r||o,function(t){var e=M(t,o,i,r,n,s,a);e!==_&&D.push(C(t)+":"+(n?" ":"")+e)}),j=D.length?n?"{\n"+s+D.join(",\n"+s)+"\n"+R+"}":"{"+D.join(",")+"}":"{}";return a.pop(),j}};i.stringify=function(t,i,r){var n,s,a,o;if(e[typeof i]&&i)if((o=g.call(i))==b)s=i;else if(o==E){a={};for(var l,h=0,u=i.length;h<u;l=i[h++],((o=g.call(l))==x||o==T)&&(a[l]=1));}if(r)if((o=g.call(r))==T){if((r-=r%1)>0)for(n="",r>10&&(r=10);n.length<r;n+=" ");}else o==x&&(n=r.length<=10?r:r.slice(0,10));return M("",((l={})[""]=t,l),s,a,n,"",[])}}if(!y("json-parse")){var L,O,R=a.fromCharCode,j={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},k=function(){throw L=O=null,h()},N=function(){for(var t,e,i,r,n,s=O,a=s.length;L<a;)switch(n=s.charCodeAt(L)){case 9:case 10:case 13:case 32:L++;break;case 123:case 125:case 91:case 93:case 58:case 44:return t=w?s.charAt(L):s[L],L++,t;case 34:for(t="@",L++;L<a;)if((n=s.charCodeAt(L))<32)k();else if(92==n)switch(n=s.charCodeAt(++L)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:t+=j[n],L++;break;case 117:for(e=++L,i=L+4;L<i;L++)(n=s.charCodeAt(L))>=48&&n<=57||n>=97&&n<=102||n>=65&&n<=70||k();t+=R("0x"+s.slice(e,L));break;default:k()}else{if(34==n)break;for(n=s.charCodeAt(L),e=L;n>=32&&92!=n&&34!=n;)n=s.charCodeAt(++L);t+=s.slice(e,L)}if(34==s.charCodeAt(L))return L++,t;k();default:if(e=L,45==n&&(r=!0,n=s.charCodeAt(++L)),n>=48&&n<=57){for(48==n&&((n=s.charCodeAt(L+1))>=48&&n<=57)&&k(),r=!1;L<a&&((n=s.charCodeAt(L))>=48&&n<=57);L++);if(46==s.charCodeAt(L)){for(i=++L;i<a&&((n=s.charCodeAt(i))>=48&&n<=57);i++);i==L&&k(),L=i}if(101==(n=s.charCodeAt(L))||69==n){for(43!=(n=s.charCodeAt(++L))&&45!=n||L++,i=L;i<a&&((n=s.charCodeAt(i))>=48&&n<=57);i++);i==L&&k(),L=i}return+s.slice(e,L)}if(r&&k(),"true"==s.slice(L,L+4))return L+=4,!0;if("false"==s.slice(L,L+5))return L+=5,!1;if("null"==s.slice(L,L+4))return L+=4,null;k()}return"$"},H=function(t){var e,i;if("$"==t&&k(),"string"==typeof t){if("@"==(w?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(e=[];"]"!=(t=N());i||(i=!0))i&&(","==t?"]"==(t=N())&&k():k()),","==t&&k(),e.push(H(t));return e}if("{"==t){for(e={};"}"!=(t=N());i||(i=!0))i&&(","==t?"}"==(t=N())&&k():k()),","!=t&&"string"==typeof t&&"@"==(w?t.charAt(0):t[0])&&":"==N()||k(),e[t.slice(1)]=H(N());return e}k()}return t},B=function(t,e,i){var r=F(t,e,i);r===_?delete t[e]:t[e]=r},F=function(t,e,i){var r,n=t[e];if("object"==typeof n&&n)if(g.call(n)==E)for(r=n.length;r--;)B(n,r,i);else f(n,function(t){B(n,t,i)});return i.call(t,e,n)};i.parse=function(t,e){var i,r;return L=0,O=""+t,i=H(N()),"$"!=N()&&k(),L=O=null,e&&g.call(e)==b?F(((r={})[""]=i,r),"",e):i}}}return i.runInContext=s,i}if(!n||n.global!==n&&n.window!==n&&n.self!==n||(r=n),i&&!t)s(r,i);else{var a=r.JSON,o=r.JSON3,l=!1,h=s(r,r.JSON3={noConflict:function(){return l||(l=!0,r.JSON=a,r.JSON3=o,a=o=null),h}});r.JSON={parse:h.parse,stringify:h.stringify}}t&&define(function(){return h})}.call(this),function(){var t={appendToHead:function(e){t.getHead().appendChild(e)},getHead:function(){return document.head||document.getElementsByTagName("head")[0]},getBody:function(){return document.body||document.getElementsByTagName("body")[0]}};createjs.DomUtils=t}(),function(){var t={parseXML:function(t,e){var i=null;try{if(window.DOMParser){var r=new DOMParser;i=r.parseFromString(t,e)}}catch(t){}if(!i)try{(i=new ActiveXObject("Microsoft.XMLDOM")).async=!1,i.loadXML(t)}catch(t){i=null}return i},parseJSON:function(t){if(null==t)return null;try{return JSON.parse(t)}catch(t){throw t}}};createjs.DataUtils=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(){this.src=null,this.type=null,this.id=null,this.maintainOrder=!1,this.callback=null,this.data=null,this.method=createjs.LoadItem.GET,this.values=null,this.headers=null,this.withCredentials=!1,this.mimeType=null,this.crossOrigin=null,this.loadTimeout=i.LOAD_TIMEOUT_DEFAULT}var e=t.prototype={},i=t;i.LOAD_TIMEOUT_DEFAULT=8e3,i.create=function(e){if("string"==typeof e){var r=new t;return r.src=e,r}if(e instanceof i)return e;if(e instanceof Object&&e.src)return null==e.loadTimeout&&(e.loadTimeout=i.LOAD_TIMEOUT_DEFAULT),e;throw new Error("Type not recognized.")},e.set=function(t){for(var e in t)this[e]=t[e];return this},createjs.LoadItem=i}(),function(){var t={ABSOLUTE_PATT:/^(?:\w+:)?\/{2}/i,RELATIVE_PATT:/^[./]*?\//i,EXTENSION_PATT:/\/?[^/]+\.(\w{1,5})$/i,parseURI:function(e){var i={absolute:!1,relative:!1};if(null==e)return i;var r,n=e.indexOf("?");return n>-1&&(e=e.substr(0,n)),t.ABSOLUTE_PATT.test(e)?i.absolute=!0:t.RELATIVE_PATT.test(e)&&(i.relative=!0),(r=e.match(t.EXTENSION_PATT))&&(i.extension=r[1].toLowerCase()),i},formatQueryString:function(t,e){if(null==t)throw new Error("You must specify data.");var i=[];for(var r in t)i.push(r+"="+escape(t[r]));return e&&(i=i.concat(e)),i.join("&")},buildPath:function(t,e){if(null==e)return t;var i=[],r=t.indexOf("?");if(-1!=r){var n=t.slice(r+1);i=i.concat(n.split("&"))}return-1!=r?t.slice(0,r)+"?"+this.formatQueryString(e,i):t+"?"+this.formatQueryString(e,i)},isCrossDomain:function(t){var e=document.createElement("a");e.href=t.src;var i=document.createElement("a");return i.href=location.href,""!=e.hostname&&(e.port!=i.port||e.protocol!=i.protocol||e.hostname!=i.hostname)},isLocal:function(t){var e=document.createElement("a");return e.href=t.src,""==e.hostname&&"file:"==e.protocol},isBinary:function(t){switch(t){case createjs.AbstractLoader.IMAGE:case createjs.AbstractLoader.BINARY:return!0;default:return!1}},isImageTag:function(t){return t instanceof HTMLImageElement},isAudioTag:function(t){return!!window.HTMLAudioElement&&t instanceof HTMLAudioElement},isVideoTag:function(t){return!!window.HTMLVideoElement&&t instanceof HTMLVideoElement},isText:function(t){switch(t){case createjs.AbstractLoader.TEXT:case createjs.AbstractLoader.JSON:case createjs.AbstractLoader.MANIFEST:case createjs.AbstractLoader.XML:case createjs.AbstractLoader.CSS:case createjs.AbstractLoader.SVG:case createjs.AbstractLoader.JAVASCRIPT:case createjs.AbstractLoader.SPRITESHEET:return!0;default:return!1}},getTypeByExtension:function(t){if(null==t)return createjs.AbstractLoader.TEXT;switch(t.toLowerCase()){case"jpeg":case"jpg":case"gif":case"png":case"webp":case"bmp":return createjs.AbstractLoader.IMAGE;case"ogg":case"mp3":case"webm":return createjs.AbstractLoader.SOUND;case"mp4":case"webm":case"ts":return createjs.AbstractLoader.VIDEO;case"json":return createjs.AbstractLoader.JSON;case"xml":return createjs.AbstractLoader.XML;case"css":return createjs.AbstractLoader.CSS;case"js":return createjs.AbstractLoader.JAVASCRIPT;case"svg":return createjs.AbstractLoader.SVG;default:return createjs.AbstractLoader.TEXT}}};createjs.RequestUtils=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.EventDispatcher_constructor(),this.loaded=!1,this.canceled=!1,this.progress=0,this.type=i,this.resultFormatter=null,this._item=t?createjs.LoadItem.create(t):null,this._preferXHR=e,this._result=null,this._rawResult=null,this._loadedItems=null,this._tagSrcAttribute=null,this._tag=null}var e=createjs.extend(t,createjs.EventDispatcher),i=t;i.POST="POST",i.GET="GET",i.BINARY="binary",i.CSS="css",i.IMAGE="image",i.JAVASCRIPT="javascript",i.JSON="json",i.JSONP="jsonp",i.MANIFEST="manifest",i.SOUND="sound",i.VIDEO="video",i.SPRITESHEET="spritesheet",i.SVG="svg",i.TEXT="text",i.XML="xml",e.getItem=function(){return this._item},e.getResult=function(t){return t?this._rawResult:this._result},e.getTag=function(){return this._tag},e.setTag=function(t){this._tag=t},e.load=function(){this._createRequest(),this._request.on("complete",this,this),this._request.on("progress",this,this),this._request.on("loadStart",this,this),this._request.on("abort",this,this),this._request.on("timeout",this,this),this._request.on("error",this,this);var t=new createjs.Event("initialize");t.loader=this._request,this.dispatchEvent(t),this._request.load()},e.cancel=function(){this.canceled=!0,this.destroy()},e.destroy=function(){this._request&&(this._request.removeAllEventListeners(),this._request.destroy()),this._request=null,this._item=null,this._rawResult=null,this._result=null,this._loadItems=null,this.removeAllEventListeners()},e.getLoadedItems=function(){return this._loadedItems},e._createRequest=function(){this._preferXHR?this._request=new createjs.XHRRequest(this._item):this._request=new createjs.TagRequest(this._item,this._tag||this._createTag(),this._tagSrcAttribute)},e._createTag=function(t){return null},e._sendLoadStart=function(){this._isCanceled()||this.dispatchEvent("loadstart")},e._sendProgress=function(t){if(!this._isCanceled()){var e=null;"number"==typeof t?(this.progress=t,e=new createjs.ProgressEvent(this.progress)):(e=t,this.progress=t.loaded/t.total,e.progress=this.progress,(isNaN(this.progress)||this.progress==1/0)&&(this.progress=0)),this.hasEventListener("progress")&&this.dispatchEvent(e)}},e._sendComplete=function(){if(!this._isCanceled()){this.loaded=!0;var t=new createjs.Event("complete");t.rawResult=this._rawResult,null!=this._result&&(t.result=this._result),this.dispatchEvent(t)}},e._sendError=function(t){!this._isCanceled()&&this.hasEventListener("error")&&(null==t&&(t=new createjs.ErrorEvent("PRELOAD_ERROR_EMPTY")),this.dispatchEvent(t))},e._isCanceled=function(){return!(null!=window.createjs&&!this.canceled)},e.resultFormatter=null,e.handleEvent=function(t){switch(t.type){case"complete":this._rawResult=t.target._response;var e=this.resultFormatter&&this.resultFormatter(this);e instanceof Function?e.call(this,createjs.proxy(this._resultFormatSuccess,this),createjs.proxy(this._resultFormatFailed,this)):(this._result=e||this._rawResult,this._sendComplete());break;case"progress":this._sendProgress(t);break;case"error":this._sendError(t);break;case"loadstart":this._sendLoadStart();break;case"abort":case"timeout":this._isCanceled()||this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_"+t.type.toUpperCase()+"_ERROR"))}},e._resultFormatSuccess=function(t){this._result=t,this._sendComplete()},e._resultFormatFailed=function(t){this._sendError(t)},e.buildPath=function(t,e){return createjs.RequestUtils.buildPath(t,e)},e.toString=function(){return"[PreloadJS AbstractLoader]"},createjs.AbstractLoader=createjs.promote(t,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.AbstractLoader_constructor(t,e,i),this.resultFormatter=this._formatResult,this._tagSrcAttribute="src",this.on("initialize",this._updateXHR,this)}var e=createjs.extend(t,createjs.AbstractLoader);e.load=function(){this._tag||(this._tag=this._createTag(this._item.src)),this._tag.preload="auto",this._tag.load(),this.AbstractLoader_load()},e._createTag=function(){},e._createRequest=function(){this._preferXHR?this._request=new createjs.XHRRequest(this._item):this._request=new createjs.MediaTagRequest(this._item,this._tag||this._createTag(),this._tagSrcAttribute)},e._updateXHR=function(t){t.loader.setResponseType&&t.loader.setResponseType("blob")},e._formatResult=function(t){if(this._tag.removeEventListener&&this._tag.removeEventListener("canplaythrough",this._loadedHandler),this._tag.onstalled=null,this._preferXHR){var e=window.URL||window.webkitURL,i=t.getResult(!0);t.getTag().src=e.createObjectURL(i)}return t.getTag()},createjs.AbstractMediaLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";var t=function(t){this._item=t},e=createjs.extend(t,createjs.EventDispatcher);e.load=function(){},e.destroy=function(){},e.cancel=function(){},createjs.AbstractRequest=createjs.promote(t,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.AbstractRequest_constructor(t),this._tag=e,this._tagSrcAttribute=i,this._loadedHandler=createjs.proxy(this._handleTagComplete,this),this._addedToDOM=!1,this._startTagVisibility=null}var e=createjs.extend(t,createjs.AbstractRequest);e.load=function(){this._tag.onload=createjs.proxy(this._handleTagComplete,this),this._tag.onreadystatechange=createjs.proxy(this._handleReadyStateChange,this),this._tag.onerror=createjs.proxy(this._handleError,this);var t=new createjs.Event("initialize");t.loader=this._tag,this.dispatchEvent(t),this._hideTag(),this._loadTimeout=setTimeout(createjs.proxy(this._handleTimeout,this),this._item.loadTimeout),this._tag[this._tagSrcAttribute]=this._item.src,null==this._tag.parentNode&&(window.document.body.appendChild(this._tag),this._addedToDOM=!0)},e.destroy=function(){this._clean(),this._tag=null,this.AbstractRequest_destroy()},e._handleReadyStateChange=function(){clearTimeout(this._loadTimeout);var t=this._tag;"loaded"!=t.readyState&&"complete"!=t.readyState||this._handleTagComplete()},e._handleError=function(){this._clean(),this.dispatchEvent("error")},e._handleTagComplete=function(){this._rawResult=this._tag,this._result=this.resultFormatter&&this.resultFormatter(this)||this._rawResult,this._clean(),this._showTag(),this.dispatchEvent("complete")},e._handleTimeout=function(){this._clean(),this.dispatchEvent(new createjs.Event("timeout"))},e._clean=function(){this._tag.onload=null,this._tag.onreadystatechange=null,this._tag.onerror=null,this._addedToDOM&&null!=this._tag.parentNode&&this._tag.parentNode.removeChild(this._tag),clearTimeout(this._loadTimeout)},e._hideTag=function(){this._startTagVisibility=this._tag.style.visibility,this._tag.style.visibility="hidden"},e._showTag=function(){this._tag.style.visibility=this._startTagVisibility},e._handleStalled=function(){},createjs.TagRequest=createjs.promote(t,"AbstractRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.AbstractRequest_constructor(t),this._tag=e,this._tagSrcAttribute=i,this._loadedHandler=createjs.proxy(this._handleTagComplete,this)}var e=createjs.extend(t,createjs.TagRequest);e.load=function(){var t=createjs.proxy(this._handleStalled,this);this._stalledCallback=t;var e=createjs.proxy(this._handleProgress,this);this._handleProgress=e,this._tag.addEventListener("stalled",t),this._tag.addEventListener("progress",e),this._tag.addEventListener&&this._tag.addEventListener("canplaythrough",this._loadedHandler,!1),this.TagRequest_load()},e._handleReadyStateChange=function(){clearTimeout(this._loadTimeout);var t=this._tag;"loaded"!=t.readyState&&"complete"!=t.readyState||this._handleTagComplete()},e._handleStalled=function(){},e._handleProgress=function(t){if(t&&!(t.loaded>0&&0==t.total)){var e=new createjs.ProgressEvent(t.loaded,t.total);this.dispatchEvent(e)}},e._clean=function(){this._tag.removeEventListener&&this._tag.removeEventListener("canplaythrough",this._loadedHandler),this._tag.removeEventListener("stalled",this._stalledCallback),this._tag.removeEventListener("progress",this._progressCallback),this.TagRequest__clean()},createjs.MediaTagRequest=createjs.promote(t,"TagRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.AbstractRequest_constructor(t),this._request=null,this._loadTimeout=null,this._xhrLevel=1,this._response=null,this._rawResponse=null,this._canceled=!1,this._handleLoadStartProxy=createjs.proxy(this._handleLoadStart,this),this._handleProgressProxy=createjs.proxy(this._handleProgress,this),this._handleAbortProxy=createjs.proxy(this._handleAbort,this),this._handleErrorProxy=createjs.proxy(this._handleError,this),this._handleTimeoutProxy=createjs.proxy(this._handleTimeout,this),this._handleLoadProxy=createjs.proxy(this._handleLoad,this),this._handleReadyStateChangeProxy=createjs.proxy(this._handleReadyStateChange,this),this._createXHR(t)}var e=createjs.extend(t,createjs.AbstractRequest);t.ACTIVEX_VERSIONS=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],e.getResult=function(t){return t&&this._rawResponse?this._rawResponse:this._response},e.cancel=function(){this.canceled=!0,this._clean(),this._request.abort()},e.load=function(){if(null!=this._request){null!=this._request.addEventListener?(this._request.addEventListener("loadstart",this._handleLoadStartProxy,!1),this._request.addEventListener("progress",this._handleProgressProxy,!1),this._request.addEventListener("abort",this._handleAbortProxy,!1),this._request.addEventListener("error",this._handleErrorProxy,!1),this._request.addEventListener("timeout",this._handleTimeoutProxy,!1),this._request.addEventListener("load",this._handleLoadProxy,!1),this._request.addEventListener("readystatechange",this._handleReadyStateChangeProxy,!1)):(this._request.onloadstart=this._handleLoadStartProxy,this._request.onprogress=this._handleProgressProxy,this._request.onabort=this._handleAbortProxy,this._request.onerror=this._handleErrorProxy,this._request.ontimeout=this._handleTimeoutProxy,this._request.onload=this._handleLoadProxy,this._request.onreadystatechange=this._handleReadyStateChangeProxy),1==this._xhrLevel&&(this._loadTimeout=setTimeout(createjs.proxy(this._handleTimeout,this),this._item.loadTimeout));try{this._item.values&&this._item.method!=createjs.AbstractLoader.GET?this._item.method==createjs.AbstractLoader.POST&&this._request.send(createjs.RequestUtils.formatQueryString(this._item.values)):this._request.send()}catch(t){this.dispatchEvent(new createjs.ErrorEvent("XHR_SEND",null,t))}}else this._handleError()},e.setResponseType=function(t){"blob"===t&&(t=window.URL?"blob":"arraybuffer",this._responseType=t),this._request.responseType=t},e.getAllResponseHeaders=function(){return this._request.getAllResponseHeaders instanceof Function?this._request.getAllResponseHeaders():null},e.getResponseHeader=function(t){return this._request.getResponseHeader instanceof Function?this._request.getResponseHeader(t):null},e._handleProgress=function(t){if(t&&!(t.loaded>0&&0==t.total)){var e=new createjs.ProgressEvent(t.loaded,t.total);this.dispatchEvent(e)}},e._handleLoadStart=function(t){clearTimeout(this._loadTimeout),this.dispatchEvent("loadstart")},e._handleAbort=function(t){this._clean(),this.dispatchEvent(new createjs.ErrorEvent("XHR_ABORTED",null,t))},e._handleError=function(t){this._clean(),this.dispatchEvent(new createjs.ErrorEvent(t.message))},e._handleReadyStateChange=function(t){4==this._request.readyState&&this._handleLoad()},e._handleLoad=function(t){if(!this.loaded){this.loaded=!0;var e=this._checkError();if(e)this._handleError(e);else{if(this._response=this._getResponse(),"arraybuffer"===this._responseType)try{this._response=new Blob([this._response])}catch(t){if(window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,"TypeError"===t.name&&window.BlobBuilder){var i=new BlobBuilder;i.append(this._response),this._response=i.getBlob()}}this._clean(),this.dispatchEvent(new createjs.Event("complete"))}}},e._handleTimeout=function(t){this._clean(),this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_TIMEOUT",null,t))},e._checkError=function(){var t=parseInt(this._request.status);switch(t){case 404:case 0:return new Error(t)}return null},e._getResponse=function(){if(null!=this._response)return this._response;if(null!=this._request.response)return this._request.response;try{if(null!=this._request.responseText)return this._request.responseText}catch(t){}try{if(null!=this._request.responseXML)return this._request.responseXML}catch(t){}return null},e._createXHR=function(t){var e=createjs.RequestUtils.isCrossDomain(t),i={},r=null;if(window.XMLHttpRequest)r=new XMLHttpRequest,e&&void 0===r.withCredentials&&window.XDomainRequest&&(r=new XDomainRequest);else{for(var n=0,a=s.ACTIVEX_VERSIONS.length;n<a;n++){var o=s.ACTIVEX_VERSIONS[n];try{r=new ActiveXObject(o);break}catch(t){}}if(null==r)return!1}null==t.mimeType&&createjs.RequestUtils.isText(t.type)&&(t.mimeType="text/plain; charset=utf-8"),t.mimeType&&r.overrideMimeType&&r.overrideMimeType(t.mimeType),this._xhrLevel="string"==typeof r.responseType?2:1;var l=null;if(l=t.method==createjs.AbstractLoader.GET?createjs.RequestUtils.buildPath(t.src,t.values):t.src,r.open(t.method||createjs.AbstractLoader.GET,l,!0),e&&r instanceof XMLHttpRequest&&1==this._xhrLevel&&(i.Origin=location.origin),t.values&&t.method==createjs.AbstractLoader.POST&&(i["Content-Type"]="application/x-www-form-urlencoded"),e||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),t.headers)for(var h in t.headers)i[h]=t.headers[h];for(h in i)r.setRequestHeader(h,i[h]);return r instanceof XMLHttpRequest&&void 0!==t.withCredentials&&(r.withCredentials=t.withCredentials),this._request=r,!0},e._clean=function(){clearTimeout(this._loadTimeout),null!=this._request.removeEventListener?(this._request.removeEventListener("loadstart",this._handleLoadStartProxy),this._request.removeEventListener("progress",this._handleProgressProxy),this._request.removeEventListener("abort",this._handleAbortProxy),this._request.removeEventListener("error",this._handleErrorProxy),this._request.removeEventListener("timeout",this._handleTimeoutProxy),this._request.removeEventListener("load",this._handleLoadProxy),this._request.removeEventListener("readystatechange",this._handleReadyStateChangeProxy)):(this._request.onloadstart=null,this._request.onprogress=null,this._request.onabort=null,this._request.onerror=null,this._request.ontimeout=null,this._request.onload=null,this._request.onreadystatechange=null)},e.toString=function(){return"[PreloadJS XHRRequest]"},createjs.XHRRequest=createjs.promote(t,"AbstractRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.AbstractLoader_constructor(),this._plugins=[],this._typeCallbacks={},this._extensionCallbacks={},this.next=null,this.maintainScriptOrder=!0,this.stopOnError=!1,this._maxConnections=1,this._availableLoaders=[createjs.ImageLoader,createjs.JavaScriptLoader,createjs.CSSLoader,createjs.JSONLoader,createjs.JSONPLoader,createjs.SoundLoader,createjs.ManifestLoader,createjs.SpriteSheetLoader,createjs.XMLLoader,createjs.SVGLoader,createjs.BinaryLoader,createjs.VideoLoader,createjs.TextLoader],this._defaultLoaderLength=this._availableLoaders.length,this.init(t,e,i)}var e=createjs.extend(t,createjs.AbstractLoader),i=t;e.init=function(t,e,i){this.useXHR=!0,this.preferXHR=!0,this._preferXHR=!0,this.setPreferXHR(t),this._paused=!1,this._basePath=e,this._crossOrigin=i,this._loadStartWasDispatched=!1,this._currentlyLoadingScript=null,this._currentLoads=[],this._loadQueue=[],this._loadQueueBackup=[],this._loadItemsById={},this._loadItemsBySrc={},this._loadedResults={},this._loadedRawResults={},this._numItems=0,this._numItemsLoaded=0,this._scriptOrder=[],this._loadedScripts=[],this._lastProgress=NaN},i.loadTimeout=8e3,i.LOAD_TIMEOUT=0,i.BINARY=createjs.AbstractLoader.BINARY,i.CSS=createjs.AbstractLoader.CSS,i.IMAGE=createjs.AbstractLoader.IMAGE,i.JAVASCRIPT=createjs.AbstractLoader.JAVASCRIPT,i.JSON=createjs.AbstractLoader.JSON,i.JSONP=createjs.AbstractLoader.JSONP,i.MANIFEST=createjs.AbstractLoader.MANIFEST,i.SOUND=createjs.AbstractLoader.SOUND,i.VIDEO=createjs.AbstractLoader.VIDEO,i.SVG=createjs.AbstractLoader.SVG,i.TEXT=createjs.AbstractLoader.TEXT,i.XML=createjs.AbstractLoader.XML,i.POST=createjs.AbstractLoader.POST,i.GET=createjs.AbstractLoader.GET,e.registerLoader=function(t){if(!t||!t.canLoadItem)throw new Error("loader is of an incorrect type.");if(-1!=this._availableLoaders.indexOf(t))throw new Error("loader already exists.");this._availableLoaders.unshift(t)},e.unregisterLoader=function(t){var e=this._availableLoaders.indexOf(t);-1!=e&&e<this._defaultLoaderLength-1&&this._availableLoaders.splice(e,1)},e.setUseXHR=function(t){return this.setPreferXHR(t)},e.setPreferXHR=function(t){return this.preferXHR=0!=t&&null!=window.XMLHttpRequest,this.preferXHR},e.removeAll=function(){this.remove()},e.remove=function(t){var e=null;if(t&&!Array.isArray(t))e=[t];else if(t)e=t;else if(arguments.length>0)return;var i=!1;if(e){for(;e.length;){var r=e.pop(),n=this.getResult(r);for(s=this._loadQueue.length-1;s>=0;s--)if((a=this._loadQueue[s].getItem()).id==r||a.src==r){this._loadQueue.splice(s,1)[0].cancel();break}for(s=this._loadQueueBackup.length-1;s>=0;s--)if((a=this._loadQueueBackup[s].getItem()).id==r||a.src==r){this._loadQueueBackup.splice(s,1)[0].cancel();break}if(n)this._disposeItem(this.getItem(r));else for(var s=this._currentLoads.length-1;s>=0;s--){var a=this._currentLoads[s].getItem();if(a.id==r||a.src==r){this._currentLoads.splice(s,1)[0].cancel(),i=!0;break}}}i&&this._loadNext()}else{for(var o in this.close(),this._loadItemsById)this._disposeItem(this._loadItemsById[o]);this.init(this.preferXHR,this._basePath)}},e.reset=function(){for(var t in this.close(),this._loadItemsById)this._disposeItem(this._loadItemsById[t]);for(var e=[],i=0,r=this._loadQueueBackup.length;i<r;i++)e.push(this._loadQueueBackup[i].getItem());this.loadManifest(e,!1)},e.installPlugin=function(t){if(null!=t&&null!=t.getPreloadHandlers){this._plugins.push(t);var e=t.getPreloadHandlers();if(e.scope=t,null!=e.types)for(var i=0,r=e.types.length;i<r;i++)this._typeCallbacks[e.types[i]]=e;if(null!=e.extensions)for(i=0,r=e.extensions.length;i<r;i++)this._extensionCallbacks[e.extensions[i]]=e}},e.setMaxConnections=function(t){this._maxConnections=t,!this._paused&&this._loadQueue.length>0&&this._loadNext()},e.loadFile=function(t,e,i){if(null!=t)this._addItem(t,null,i),!1!==e?this.setPaused(!1):this.setPaused(!0);else{var r=new createjs.ErrorEvent("PRELOAD_NO_FILE");this._sendError(r)}},e.loadManifest=function(t,e,r){var n=null,s=null;if(Array.isArray(t)){if(0==t.length){var a=new createjs.ErrorEvent("PRELOAD_MANIFEST_EMPTY");return void this._sendError(a)}n=t}else if("string"==typeof t)n=[{src:t,type:i.MANIFEST}];else{if("object"!=typeof t){a=new createjs.ErrorEvent("PRELOAD_MANIFEST_NULL");return void this._sendError(a)}if(void 0!==t.src){if(null==t.type)t.type=i.MANIFEST;else if(t.type!=i.MANIFEST){var a=new createjs.ErrorEvent("PRELOAD_MANIFEST_TYPE");this._sendError(a)}n=[t]}else void 0!==t.manifest&&(n=t.manifest,s=t.path)}for(var o=0,l=n.length;o<l;o++)this._addItem(n[o],s,r);!1!==e?this.setPaused(!1):this.setPaused(!0)},e.load=function(){this.setPaused(!1)},e.getItem=function(t){return this._loadItemsById[t]||this._loadItemsBySrc[t]},e.getResult=function(t,e){var i=this._loadItemsById[t]||this._loadItemsBySrc[t];if(null==i)return null;var r=i.id;return e&&this._loadedRawResults[r]?this._loadedRawResults[r]:this._loadedResults[r]},e.getItems=function(t){var e=[];for(var i in this._loadItemsById){var r=this._loadItemsById[i],n=this.getResult(i);!0===t&&null==n||e.push({item:r,result:n,rawResult:this.getResult(i,!0)})}return e},e.setPaused=function(t){this._paused=t,this._paused||this._loadNext()},e.close=function(){for(;this._currentLoads.length;)this._currentLoads.pop().cancel();this._scriptOrder.length=0,this._loadedScripts.length=0,this.loadStartWasDispatched=!1,this._itemCount=0,this._lastProgress=NaN},e._addItem=function(t,e,i){var r=this._createLoadItem(t,e,i);if(null!=r){var n=this._createLoader(r);null!=n&&("plugins"in n&&(n.plugins=this._plugins),r._loader=n,this._loadQueue.push(n),this._loadQueueBackup.push(n),this._numItems++,this._updateProgress(),(this.maintainScriptOrder&&r.type==createjs.LoadQueue.JAVASCRIPT||!0===r.maintainOrder)&&(this._scriptOrder.push(r),this._loadedScripts.push(null)))}},e._createLoadItem=function(t,e,i){var r=createjs.LoadItem.create(t);if(null==r)return null;var n="",s=i||this._basePath;if(r.src instanceof Object){if(!r.type)return null;if(e){n=e;var a=createjs.RequestUtils.parseURI(e);null==s||a.absolute||a.relative||(n=s+n)}else null!=s&&(n=s)}else{var o=createjs.RequestUtils.parseURI(r.src);o.extension&&(r.ext=o.extension),null==r.type&&(r.type=createjs.RequestUtils.getTypeByExtension(r.ext));var l=r.src;if(!o.absolute&&!o.relative)if(e){n=e;a=createjs.RequestUtils.parseURI(e);l=e+l,null==s||a.absolute||a.relative||(n=s+n)}else null!=s&&(n=s);r.src=n+r.src}r.path=n,void 0!==r.id&&null!==r.id&&""!==r.id||(r.id=l);var h=this._typeCallbacks[r.type]||this._extensionCallbacks[r.ext];if(h){var u=h.callback.call(h.scope,r,this);if(!1===u)return null;!0===u||null!=u&&(r._loader=u),null!=(o=createjs.RequestUtils.parseURI(r.src)).extension&&(r.ext=o.extension)}return this._loadItemsById[r.id]=r,this._loadItemsBySrc[r.src]=r,null==r.crossOrigin&&(r.crossOrigin=this._crossOrigin),r},e._createLoader=function(t){if(null!=t._loader)return t._loader;for(var e=this.preferXHR,i=0;i<this._availableLoaders.length;i++){var r=this._availableLoaders[i];if(r&&r.canLoadItem(t))return new r(t,e)}return null},e._loadNext=function(){if(!this._paused){this._loadStartWasDispatched||(this._sendLoadStart(),this._loadStartWasDispatched=!0),this._numItems==this._numItemsLoaded?(this.loaded=!0,this._sendComplete(),this.next&&this.next.load&&this.next.load()):this.loaded=!1;for(var t=0;t<this._loadQueue.length&&!(this._currentLoads.length>=this._maxConnections);t++){var e=this._loadQueue[t];this._canStartLoad(e)&&(this._loadQueue.splice(t,1),t--,this._loadItem(e))}}},e._loadItem=function(t){t.on("fileload",this._handleFileLoad,this),t.on("progress",this._handleProgress,this),t.on("complete",this._handleFileComplete,this),t.on("error",this._handleError,this),t.on("fileerror",this._handleFileError,this),this._currentLoads.push(t),this._sendFileStart(t.getItem()),t.load()},e._handleFileLoad=function(t){t.target=null,this.dispatchEvent(t)},e._handleFileError=function(t){var e=new createjs.ErrorEvent("FILE_LOAD_ERROR",null,t.item);this._sendError(e)},e._handleError=function(t){var e=t.target;this._numItemsLoaded++,this._finishOrderedItem(e,!0),this._updateProgress();var i=new createjs.ErrorEvent("FILE_LOAD_ERROR",null,e.getItem());this._sendError(i),this.stopOnError?this.setPaused(!0):(this._removeLoadItem(e),this._cleanLoadItem(e),this._loadNext())},e._handleFileComplete=function(t){var e=t.target,i=e.getItem(),r=e.getResult();this._loadedResults[i.id]=r;var n=e.getResult(!0);null!=n&&n!==r&&(this._loadedRawResults[i.id]=n),this._saveLoadedItems(e),this._removeLoadItem(e),this._finishOrderedItem(e)||this._processFinishedLoad(i,e),this._cleanLoadItem(e)},e._saveLoadedItems=function(t){var e=t.getLoadedItems();if(null!==e)for(var i=0;i<e.length;i++){var r=e[i].item;this._loadItemsBySrc[r.src]=r,this._loadItemsById[r.id]=r,this._loadedResults[r.id]=e[i].result,this._loadedRawResults[r.id]=e[i].rawResult}},e._finishOrderedItem=function(t,e){var i=t.getItem();if(this.maintainScriptOrder&&i.type==createjs.LoadQueue.JAVASCRIPT||i.maintainOrder){t instanceof createjs.JavaScriptLoader&&(this._currentlyLoadingScript=!1);var r=createjs.indexOf(this._scriptOrder,i);return-1!=r&&(this._loadedScripts[r]=!0===e||i,this._checkScriptLoadOrder(),!0)}return!1},e._checkScriptLoadOrder=function(){for(var t=this._loadedScripts.length,e=0;e<t;e++){var i=this._loadedScripts[e];if(null===i)break;if(!0!==i){var r=this._loadedResults[i.id];i.type==createjs.LoadQueue.JAVASCRIPT&&createjs.DomUtils.appendToHead(r);var n=i._loader;this._processFinishedLoad(i,n),this._loadedScripts[e]=!0}}},e._processFinishedLoad=function(t,e){if(this._numItemsLoaded++,!this.maintainScriptOrder&&t.type==createjs.LoadQueue.JAVASCRIPT){var i=e.getTag();createjs.DomUtils.appendToHead(i)}this._updateProgress(),this._sendFileComplete(t,e),this._loadNext()},e._canStartLoad=function(t){if(!this.maintainScriptOrder||t.preferXHR)return!0;var e=t.getItem();if(e.type!=createjs.LoadQueue.JAVASCRIPT)return!0;if(this._currentlyLoadingScript)return!1;for(var i=this._scriptOrder.indexOf(e),r=0;r<i;){if(null==this._loadedScripts[r])return!1;r++}return this._currentlyLoadingScript=!0,!0},e._removeLoadItem=function(t){for(var e=this._currentLoads.length,i=0;i<e;i++)if(this._currentLoads[i]==t){this._currentLoads.splice(i,1);break}},e._cleanLoadItem=function(t){var e=t.getItem();e&&delete e._loader},e._handleProgress=function(t){var e=t.target;this._sendFileProgress(e.getItem(),e.progress),this._updateProgress()},e._updateProgress=function(){var t=this._numItemsLoaded/this._numItems,e=this._numItems-this._numItemsLoaded;if(e>0){for(var i=0,r=0,n=this._currentLoads.length;r<n;r++)i+=this._currentLoads[r].progress;t+=i/e*(e/this._numItems)}this._lastProgress!=t&&(this._sendProgress(t),this._lastProgress=t)},e._disposeItem=function(t){delete this._loadedResults[t.id],delete this._loadedRawResults[t.id],delete this._loadItemsById[t.id],delete this._loadItemsBySrc[t.src]},e._sendFileProgress=function(t,e){if(!this._isCanceled()&&!this._paused&&this.hasEventListener("fileprogress")){var i=new createjs.Event("fileprogress");i.progress=e,i.loaded=e,i.total=1,i.item=t,this.dispatchEvent(i)}},e._sendFileComplete=function(t,e){if(!this._isCanceled()&&!this._paused){var i=new createjs.Event("fileload");i.loader=e,i.item=t,i.result=this._loadedResults[t.id],i.rawResult=this._loadedRawResults[t.id],t.completeHandler&&t.completeHandler(i),this.hasEventListener("fileload")&&this.dispatchEvent(i)}},e._sendFileStart=function(t){var e=new createjs.Event("filestart");e.item=t,this.hasEventListener("filestart")&&this.dispatchEvent(e)},e.toString=function(){return"[PreloadJS LoadQueue]"},createjs.LoadQueue=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.AbstractLoader_constructor(t,!0,createjs.AbstractLoader.TEXT)}createjs.extend(t,createjs.AbstractLoader);t.canLoadItem=function(t){return t.type==createjs.AbstractLoader.TEXT},createjs.TextLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.AbstractLoader_constructor(t,!0,createjs.AbstractLoader.BINARY),this.on("initialize",this._updateXHR,this)}var e=createjs.extend(t,createjs.AbstractLoader);t.canLoadItem=function(t){return t.type==createjs.AbstractLoader.BINARY},e._updateXHR=function(t){t.loader.setResponseType("arraybuffer")},createjs.BinaryLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e){this.AbstractLoader_constructor(t,e,createjs.AbstractLoader.CSS),this.resultFormatter=this._formatResult,this._tagSrcAttribute="href",this._tag=e?document.createElement("style"):document.createElement("link"),this._tag.rel="stylesheet",this._tag.type="text/css"}var e=createjs.extend(t,createjs.AbstractLoader);t.canLoadItem=function(t){return t.type==createjs.AbstractLoader.CSS},e._formatResult=function(t){if(this._preferXHR){var e=t.getTag();if(e.styleSheet)e.styleSheet.cssText=t.getResult(!0);else{var i=document.createTextNode(t.getResult(!0));e.appendChild(i)}}else e=this._tag;return createjs.DomUtils.appendToHead(e),e},createjs.CSSLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e){this.AbstractLoader_constructor(t,e,createjs.AbstractLoader.IMAGE),this.resultFormatter=this._formatResult,this._tagSrcAttribute="src",createjs.RequestUtils.isImageTag(t)?this._tag=t:createjs.RequestUtils.isImageTag(t.src)?this._tag=t.src:createjs.RequestUtils.isImageTag(t.tag)&&(this._tag=t.tag),null!=this._tag?this._preferXHR=!1:this._tag=document.createElement("img"),this.on("initialize",this._updateXHR,this)}var e=createjs.extend(t,createjs.AbstractLoader);t.canLoadItem=function(t){return t.type==createjs.AbstractLoader.IMAGE},e.load=function(){if(""!=this._tag.src&&this._tag.complete)this._sendComplete();else{var t=this._item.crossOrigin;1==t&&(t="Anonymous"),null==t||createjs.RequestUtils.isLocal(this._item.src)||(this._tag.crossOrigin=t),this.AbstractLoader_load()}},e._updateXHR=function(t){t.loader.mimeType="text/plain; charset=x-user-defined-binary",t.loader.setResponseType&&t.loader.setResponseType("blob")},e._formatResult=function(t){return this._formatImage},e._formatImage=function(t,e){var i=this._tag,r=window.URL||window.webkitURL;if(this._preferXHR)if(r){var n=r.createObjectURL(this.getResult(!0));i.src=n,i.addEventListener("load",this._cleanUpURL,!1),i.addEventListener("error",this._cleanUpURL,!1)}else i.src=this._item.src;else;i.complete?t(i):(i.onload=createjs.proxy(function(){t(this._tag)},this),i.onerror=createjs.proxy(function(){e(_this._tag)},this))},e._cleanUpURL=function(t){(window.URL||window.webkitURL).revokeObjectURL(t.target.src)},createjs.ImageLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e){this.AbstractLoader_constructor(t,e,createjs.AbstractLoader.JAVASCRIPT),this.resultFormatter=this._formatResult,this._tagSrcAttribute="src",this.setTag(document.createElement("script"))}var e=createjs.extend(t,createjs.AbstractLoader);t.canLoadItem=function(t){return t.type==createjs.AbstractLoader.JAVASCRIPT},e._formatResult=function(t){var e=t.getTag();return this._preferXHR&&(e.text=t.getResult(!0)),e},createjs.JavaScriptLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.AbstractLoader_constructor(t,!0,createjs.AbstractLoader.JSON),this.resultFormatter=this._formatResult}var e=createjs.extend(t,createjs.AbstractLoader);t.canLoadItem=function(t){return t.type==createjs.AbstractLoader.JSON},e._formatResult=function(t){var e=null;try{e=createjs.DataUtils.parseJSON(t.getResult(!0))}catch(t){var i=new createjs.ErrorEvent("JSON_FORMAT",null,t);return this._sendError(i),t}return e},createjs.JSONLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.AbstractLoader_constructor(t,!1,createjs.AbstractLoader.JSONP),this.setTag(document.createElement("script")),this.getTag().type="text/javascript"}var e=createjs.extend(t,createjs.AbstractLoader);t.canLoadItem=function(t){return t.type==createjs.AbstractLoader.JSONP},e.cancel=function(){this.AbstractLoader_cancel(),this._dispose()},e.load=function(){if(null==this._item.callback)throw new Error("callback is required for loading JSONP requests.");if(null!=window[this._item.callback])throw new Error("JSONP callback '"+this._item.callback+"' already exists on window. You need to specify a different callback or re-name the current one.");window[this._item.callback]=createjs.proxy(this._handleLoad,this),window.document.body.appendChild(this._tag),this._loadTimeout=setTimeout(createjs.proxy(this._handleTimeout,this),this._item.loadTimeout),this._tag.src=this._item.src},e._handleLoad=function(t){this._result=this._rawResult=t,this._sendComplete(),this._dispose()},e._handleTimeout=function(){this._dispose(),this.dispatchEvent(new createjs.ErrorEvent("timeout"))},e._dispose=function(){window.document.body.removeChild(this._tag),delete window[this._item.callback],clearTimeout(this._loadTimeout)},createjs.JSONPLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.AbstractLoader_constructor(t,null,createjs.AbstractLoader.MANIFEST),this.plugins=null,this._manifestQueue=null}var e=createjs.extend(t,createjs.AbstractLoader),i=t;i.MANIFEST_PROGRESS=.25,i.canLoadItem=function(t){return t.type==createjs.AbstractLoader.MANIFEST},e.load=function(){this.AbstractLoader_load()},e._createRequest=function(){var t=this._item.callback;this._request=null!=t?new createjs.JSONPLoader(this._item):new createjs.JSONLoader(this._item)},e.handleEvent=function(t){switch(t.type){case"complete":return this._rawResult=t.target.getResult(!0),this._result=t.target.getResult(),this._sendProgress(i.MANIFEST_PROGRESS),void this._loadManifest(this._result);case"progress":return t.loaded*=i.MANIFEST_PROGRESS,this.progress=t.loaded/t.total,(isNaN(this.progress)||this.progress==1/0)&&(this.progress=0),void this._sendProgress(t)}this.AbstractLoader_handleEvent(t)},e.destroy=function(){this.AbstractLoader_destroy(),this._manifestQueue.close()},e._loadManifest=function(t){if(t&&t.manifest){var e=this._manifestQueue=new createjs.LoadQueue;e.on("fileload",this._handleManifestFileLoad,this),e.on("progress",this._handleManifestProgress,this),e.on("complete",this._handleManifestComplete,this,!0),e.on("error",this._handleManifestError,this,!0);for(var i=0,r=this.plugins.length;i<r;i++)e.installPlugin(this.plugins[i]);e.loadManifest(t)}else this._sendComplete()},e._handleManifestFileLoad=function(t){t.target=null,this.dispatchEvent(t)},e._handleManifestComplete=function(t){this._loadedItems=this._manifestQueue.getItems(!0),this._sendComplete()},e._handleManifestProgress=function(t){this.progress=t.progress*(1-i.MANIFEST_PROGRESS)+i.MANIFEST_PROGRESS,this._sendProgress(this.progress)},e._handleManifestError=function(t){var e=new createjs.Event("fileerror");e.item=t.data,this.dispatchEvent(e)},createjs.ManifestLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e){this.AbstractMediaLoader_constructor(t,e,createjs.AbstractLoader.SOUND),createjs.RequestUtils.isAudioTag(t)?this._tag=t:createjs.RequestUtils.isAudioTag(t.src)?this._tag=t:createjs.RequestUtils.isAudioTag(t.tag)&&(this._tag=createjs.RequestUtils.isAudioTag(t)?t:t.src),null!=this._tag&&(this._preferXHR=!1)}var e=createjs.extend(t,createjs.AbstractMediaLoader);t.canLoadItem=function(t){return t.type==createjs.AbstractLoader.SOUND},e._createTag=function(t){var e=document.createElement("audio");return e.autoplay=!1,e.preload="none",e.src=t,e},createjs.SoundLoader=createjs.promote(t,"AbstractMediaLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e){this.AbstractMediaLoader_constructor(t,e,createjs.AbstractLoader.VIDEO),createjs.RequestUtils.isVideoTag(t)||createjs.RequestUtils.isVideoTag(t.src)?(this.setTag(createjs.RequestUtils.isVideoTag(t)?t:t.src),this._preferXHR=!1):this.setTag(this._createTag())}var e=t;createjs.extend(t,createjs.AbstractMediaLoader)._createTag=function(){return document.createElement("video")},e.canLoadItem=function(t){return t.type==createjs.AbstractLoader.VIDEO},createjs.VideoLoader=createjs.promote(t,"AbstractMediaLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e){this.AbstractLoader_constructor(t,e,createjs.AbstractLoader.SPRITESHEET),this._manifestQueue=null}var e=createjs.extend(t,createjs.AbstractLoader),i=t;i.SPRITESHEET_PROGRESS=.25,i.canLoadItem=function(t){return t.type==createjs.AbstractLoader.SPRITESHEET},e.destroy=function(){this.AbstractLoader_destroy,this._manifestQueue.close()},e._createRequest=function(){var t=this._item.callback;this._request=null!=t?new createjs.JSONPLoader(this._item):new createjs.JSONLoader(this._item)},e.handleEvent=function(t){switch(t.type){case"complete":return this._rawResult=t.target.getResult(!0),this._result=t.target.getResult(),this._sendProgress(i.SPRITESHEET_PROGRESS),void this._loadManifest(this._result);case"progress":return t.loaded*=i.SPRITESHEET_PROGRESS,this.progress=t.loaded/t.total,(isNaN(this.progress)||this.progress==1/0)&&(this.progress=0),void this._sendProgress(t)}this.AbstractLoader_handleEvent(t)},e._loadManifest=function(t){if(t&&t.images){var e=this._manifestQueue=new createjs.LoadQueue(this._preferXHR,this._item.path,this._item.crossOrigin);e.on("complete",this._handleManifestComplete,this,!0),e.on("fileload",this._handleManifestFileLoad,this),e.on("progress",this._handleManifestProgress,this),e.on("error",this._handleManifestError,this,!0),e.loadManifest(t.images)}},e._handleManifestFileLoad=function(t){var e=t.result;if(null!=e){var i=this.getResult().images;i[i.indexOf(t.item.src)]=e}},e._handleManifestComplete=function(t){this._result=new createjs.SpriteSheet(this._result),this._loadedItems=this._manifestQueue.getItems(!0),this._sendComplete()},e._handleManifestProgress=function(t){this.progress=t.progress*(1-i.SPRITESHEET_PROGRESS)+i.SPRITESHEET_PROGRESS,this._sendProgress(this.progress)},e._handleManifestError=function(t){var e=new createjs.Event("fileerror");e.item=t.data,this.dispatchEvent(e)},createjs.SpriteSheetLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e){this.AbstractLoader_constructor(t,e,createjs.AbstractLoader.SVG),this.resultFormatter=this._formatResult,this._tagSrcAttribute="data",e?this.setTag(document.createElement("svg")):(this.setTag(document.createElement("object")),this.getTag().type="image/svg+xml")}var e=createjs.extend(t,createjs.AbstractLoader);t.canLoadItem=function(t){return t.type==createjs.AbstractLoader.SVG},e._formatResult=function(t){var e=createjs.DataUtils.parseXML(t.getResult(!0),"text/xml"),i=t.getTag();return!this._preferXHR&&document.body.contains(i)&&document.body.removeChild(i),null!=e.documentElement?(i.appendChild(e.documentElement),i.style.visibility="visible",i):e},createjs.SVGLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.AbstractLoader_constructor(t,!0,createjs.AbstractLoader.XML),this.resultFormatter=this._formatResult}var e=createjs.extend(t,createjs.AbstractLoader);t.canLoadItem=function(t){return t.type==createjs.AbstractLoader.XML},e._formatResult=function(t){return createjs.DataUtils.parseXML(t.getResult(!0),"text/xml")},createjs.XMLLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){var t=createjs.SoundJS=createjs.SoundJS||{};t.version="0.6.2",t.buildDate="Thu, 26 Nov 2015 20:44:31 GMT"}(),this.createjs=this.createjs||{},createjs.extend=function(t,e){"use strict";function i(){this.constructor=t}return i.prototype=e.prototype,t.prototype=new i},this.createjs=this.createjs||{},createjs.promote=function(t,e){"use strict";var i=t.prototype,r=Object.getPrototypeOf&&Object.getPrototypeOf(i)||i.__proto__;if(r)for(var n in i[(e+="_")+"constructor"]=r.constructor,r)i.hasOwnProperty(n)&&"function"==typeof r[n]&&(i[e+n]=r[n]);return t},this.createjs=this.createjs||{},createjs.indexOf=function(t,e){"use strict";for(var i=0,r=t.length;i<r;i++)if(e===t[i])return i;return-1},this.createjs=this.createjs||{},function(){"use strict";createjs.proxy=function(t,e){var i=Array.prototype.slice.call(arguments,2);return function(){return t.apply(e,Array.prototype.slice.call(arguments,0).concat(i))}}}(),this.createjs=this.createjs||{},function(){"use strict";function t(){throw"BrowserDetect cannot be instantiated"}var e=t.agent=window.navigator.userAgent;t.isWindowPhone=e.indexOf("IEMobile")>-1||e.indexOf("Windows Phone")>-1,t.isFirefox=e.indexOf("Firefox")>-1,t.isOpera=null!=window.opera,t.isChrome=e.indexOf("Chrome")>-1,t.isIOS=(e.indexOf("iPod")>-1||e.indexOf("iPhone")>-1||e.indexOf("iPad")>-1)&&!t.isWindowPhone,t.isAndroid=e.indexOf("Android")>-1&&!t.isWindowPhone,t.isBlackberry=e.indexOf("Blackberry")>-1,createjs.BrowserDetect=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(){this._listeners=null,this._captureListeners=null}var e=t.prototype;t.initialize=function(t){t.addEventListener=e.addEventListener,t.on=e.on,t.removeEventListener=t.off=e.removeEventListener,t.removeAllEventListeners=e.removeAllEventListeners,t.hasEventListener=e.hasEventListener,t.dispatchEvent=e.dispatchEvent,t._dispatchEvent=e._dispatchEvent,t.willTrigger=e.willTrigger},e.addEventListener=function(t,e,i){var r,n=(r=i?this._captureListeners=this._captureListeners||{}:this._listeners=this._listeners||{})[t];return n&&this.removeEventListener(t,e,i),(n=r[t])?n.push(e):r[t]=[e],e},e.on=function(t,e,i,r,n,s){return e.handleEvent&&(i=i||e,e=e.handleEvent),i=i||this,this.addEventListener(t,function(t){e.call(i,t,n),r&&t.remove()},s)},e.removeEventListener=function(t,e,i){var r=i?this._captureListeners:this._listeners;if(r){var n=r[t];if(n)for(var s=0,a=n.length;s<a;s++)if(n[s]==e){1==a?delete r[t]:n.splice(s,1);break}}},e.off=e.removeEventListener,e.removeAllEventListeners=function(t){t?(this._listeners&&delete this._listeners[t],this._captureListeners&&delete this._captureListeners[t]):this._listeners=this._captureListeners=null},e.dispatchEvent=function(t,e,i){if("string"==typeof t){var r=this._listeners;if(!(e||r&&r[t]))return!0;t=new createjs.Event(t,e,i)}else t.target&&t.clone&&(t=t.clone());try{t.target=this}catch(t){}if(t.bubbles&&this.parent){for(var n=this,s=[n];n.parent;)s.push(n=n.parent);var a,o=s.length;for(a=o-1;a>=0&&!t.propagationStopped;a--)s[a]._dispatchEvent(t,1+(0==a));for(a=1;a<o&&!t.propagationStopped;a++)s[a]._dispatchEvent(t,3)}else this._dispatchEvent(t,2);return!t.defaultPrevented},e.hasEventListener=function(t){var e=this._listeners,i=this._captureListeners;return!!(e&&e[t]||i&&i[t])},e.willTrigger=function(t){for(var e=this;e;){if(e.hasEventListener(t))return!0;e=e.parent}return!1},e.toString=function(){return"[EventDispatcher]"},e._dispatchEvent=function(t,e){var i,r=1==e?this._captureListeners:this._listeners;if(t&&r){var n=r[t.type];if(!n||!(i=n.length))return;try{t.currentTarget=this}catch(t){}try{t.eventPhase=e}catch(t){}t.removed=!1,n=n.slice();for(var s=0;s<i&&!t.immediatePropagationStopped;s++){var a=n[s];a.handleEvent?a.handleEvent(t):a(t),t.removed&&(this.off(t.type,a,1==e),t.removed=!1)}}},createjs.EventDispatcher=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.type=t,this.target=null,this.currentTarget=null,this.eventPhase=0,this.bubbles=!!e,this.cancelable=!!i,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.removed=!1}var e=t.prototype;e.preventDefault=function(){this.defaultPrevented=this.cancelable&&!0},e.stopPropagation=function(){this.propagationStopped=!0},e.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},e.remove=function(){this.removed=!0},e.clone=function(){return new t(this.type,this.bubbles,this.cancelable)},e.set=function(t){for(var e in t)this[e]=t[e];return this},e.toString=function(){return"[Event (type="+this.type+")]"},createjs.Event=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.Event_constructor("error"),this.title=t,this.message=e,this.data=i}createjs.extend(t,createjs.Event).clone=function(){return new createjs.ErrorEvent(this.title,this.message,this.data)},createjs.ErrorEvent=createjs.promote(t,"Event")}(),this.createjs=this.createjs||{},function(t){"use strict";function e(t,e){this.Event_constructor("progress"),this.loaded=t,this.total=null==e?1:e,this.progress=0==e?0:this.loaded/this.total}createjs.extend(e,createjs.Event).clone=function(){return new createjs.ProgressEvent(this.loaded,this.total)},createjs.ProgressEvent=createjs.promote(e,"Event")}(window),this.createjs=this.createjs||{},function(){"use strict";function t(){this.src=null,this.type=null,this.id=null,this.maintainOrder=!1,this.callback=null,this.data=null,this.method=createjs.LoadItem.GET,this.values=null,this.headers=null,this.withCredentials=!1,this.mimeType=null,this.crossOrigin=null,this.loadTimeout=i.LOAD_TIMEOUT_DEFAULT}var e=t.prototype={},i=t;i.LOAD_TIMEOUT_DEFAULT=8e3,i.create=function(e){if("string"==typeof e){var r=new t;return r.src=e,r}if(e instanceof i)return e;if(e instanceof Object&&e.src)return null==e.loadTimeout&&(e.loadTimeout=i.LOAD_TIMEOUT_DEFAULT),e;throw new Error("Type not recognized.")},e.set=function(t){for(var e in t)this[e]=t[e];return this},createjs.LoadItem=i}(),function(){var t={ABSOLUTE_PATT:/^(?:\w+:)?\/{2}/i,RELATIVE_PATT:/^[./]*?\//i,EXTENSION_PATT:/\/?[^/]+\.(\w{1,5})$/i,parseURI:function(e){var i={absolute:!1,relative:!1};if(null==e)return i;var r,n=e.indexOf("?");return n>-1&&(e=e.substr(0,n)),t.ABSOLUTE_PATT.test(e)?i.absolute=!0:t.RELATIVE_PATT.test(e)&&(i.relative=!0),(r=e.match(t.EXTENSION_PATT))&&(i.extension=r[1].toLowerCase()),i},formatQueryString:function(t,e){if(null==t)throw new Error("You must specify data.");var i=[];for(var r in t)i.push(r+"="+escape(t[r]));return e&&(i=i.concat(e)),i.join("&")},buildPath:function(t,e){if(null==e)return t;var i=[],r=t.indexOf("?");if(-1!=r){var n=t.slice(r+1);i=i.concat(n.split("&"))}return-1!=r?t.slice(0,r)+"?"+this.formatQueryString(e,i):t+"?"+this.formatQueryString(e,i)},isCrossDomain:function(t){var e=document.createElement("a");e.href=t.src;var i=document.createElement("a");return i.href=location.href,""!=e.hostname&&(e.port!=i.port||e.protocol!=i.protocol||e.hostname!=i.hostname)},isLocal:function(t){var e=document.createElement("a");return e.href=t.src,""==e.hostname&&"file:"==e.protocol},isBinary:function(t){switch(t){case createjs.AbstractLoader.IMAGE:case createjs.AbstractLoader.BINARY:return!0;default:return!1}},isImageTag:function(t){return t instanceof HTMLImageElement},isAudioTag:function(t){return!!window.HTMLAudioElement&&t instanceof HTMLAudioElement},isVideoTag:function(t){return!!window.HTMLVideoElement&&t instanceof HTMLVideoElement},isText:function(t){switch(t){case createjs.AbstractLoader.TEXT:case createjs.AbstractLoader.JSON:case createjs.AbstractLoader.MANIFEST:case createjs.AbstractLoader.XML:case createjs.AbstractLoader.CSS:case createjs.AbstractLoader.SVG:case createjs.AbstractLoader.JAVASCRIPT:case createjs.AbstractLoader.SPRITESHEET:return!0;default:return!1}},getTypeByExtension:function(t){if(null==t)return createjs.AbstractLoader.TEXT;switch(t.toLowerCase()){case"jpeg":case"jpg":case"gif":case"png":case"webp":case"bmp":return createjs.AbstractLoader.IMAGE;case"ogg":case"mp3":case"webm":return createjs.AbstractLoader.SOUND;case"mp4":case"webm":case"ts":return createjs.AbstractLoader.VIDEO;case"json":return createjs.AbstractLoader.JSON;case"xml":return createjs.AbstractLoader.XML;case"css":return createjs.AbstractLoader.CSS;case"js":return createjs.AbstractLoader.JAVASCRIPT;case"svg":return createjs.AbstractLoader.SVG;default:return createjs.AbstractLoader.TEXT}}};createjs.RequestUtils=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.EventDispatcher_constructor(),this.loaded=!1,this.canceled=!1,this.progress=0,this.type=i,this.resultFormatter=null,this._item=t?createjs.LoadItem.create(t):null,this._preferXHR=e,this._result=null,this._rawResult=null,this._loadedItems=null,this._tagSrcAttribute=null,this._tag=null}var e=createjs.extend(t,createjs.EventDispatcher),i=t;i.POST="POST",i.GET="GET",i.BINARY="binary",i.CSS="css",i.IMAGE="image",i.JAVASCRIPT="javascript",i.JSON="json",i.JSONP="jsonp",i.MANIFEST="manifest",i.SOUND="sound",i.VIDEO="video",i.SPRITESHEET="spritesheet",i.SVG="svg",i.TEXT="text",i.XML="xml",e.getItem=function(){return this._item},e.getResult=function(t){return t?this._rawResult:this._result},e.getTag=function(){return this._tag},e.setTag=function(t){this._tag=t},e.load=function(){this._createRequest(),this._request.on("complete",this,this),this._request.on("progress",this,this),this._request.on("loadStart",this,this),this._request.on("abort",this,this),this._request.on("timeout",this,this),this._request.on("error",this,this);var t=new createjs.Event("initialize");t.loader=this._request,this.dispatchEvent(t),this._request.load()},e.cancel=function(){this.canceled=!0,this.destroy()},e.destroy=function(){this._request&&(this._request.removeAllEventListeners(),this._request.destroy()),this._request=null,this._item=null,this._rawResult=null,this._result=null,this._loadItems=null,this.removeAllEventListeners()},e.getLoadedItems=function(){return this._loadedItems},e._createRequest=function(){this._preferXHR?this._request=new createjs.XHRRequest(this._item):this._request=new createjs.TagRequest(this._item,this._tag||this._createTag(),this._tagSrcAttribute)},e._createTag=function(t){return null},e._sendLoadStart=function(){this._isCanceled()||this.dispatchEvent("loadstart")},e._sendProgress=function(t){if(!this._isCanceled()){var e=null;"number"==typeof t?(this.progress=t,e=new createjs.ProgressEvent(this.progress)):(e=t,this.progress=t.loaded/t.total,e.progress=this.progress,(isNaN(this.progress)||this.progress==1/0)&&(this.progress=0)),this.hasEventListener("progress")&&this.dispatchEvent(e)}},e._sendComplete=function(){if(!this._isCanceled()){this.loaded=!0;var t=new createjs.Event("complete");t.rawResult=this._rawResult,null!=this._result&&(t.result=this._result),this.dispatchEvent(t)}},e._sendError=function(t){!this._isCanceled()&&this.hasEventListener("error")&&(null==t&&(t=new createjs.ErrorEvent("PRELOAD_ERROR_EMPTY")),this.dispatchEvent(t))},e._isCanceled=function(){return!(null!=window.createjs&&!this.canceled)},e.resultFormatter=null,e.handleEvent=function(t){switch(t.type){case"complete":this._rawResult=t.target._response;var e=this.resultFormatter&&this.resultFormatter(this);e instanceof Function?e.call(this,createjs.proxy(this._resultFormatSuccess,this),createjs.proxy(this._resultFormatFailed,this)):(this._result=e||this._rawResult,this._sendComplete());break;case"progress":this._sendProgress(t);break;case"error":this._sendError(t);break;case"loadstart":this._sendLoadStart();break;case"abort":case"timeout":this._isCanceled()||this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_"+t.type.toUpperCase()+"_ERROR"))}},e._resultFormatSuccess=function(t){this._result=t,this._sendComplete()},e._resultFormatFailed=function(t){this._sendError(t)},e.buildPath=function(t,e){return createjs.RequestUtils.buildPath(t,e)},e.toString=function(){return"[PreloadJS AbstractLoader]"},createjs.AbstractLoader=createjs.promote(t,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.AbstractLoader_constructor(t,e,i),this.resultFormatter=this._formatResult,this._tagSrcAttribute="src",this.on("initialize",this._updateXHR,this)}var e=createjs.extend(t,createjs.AbstractLoader);e.load=function(){this._tag||(this._tag=this._createTag(this._item.src)),this._tag.preload="auto",this._tag.load(),this.AbstractLoader_load()},e._createTag=function(){},e._createRequest=function(){this._preferXHR?this._request=new createjs.XHRRequest(this._item):this._request=new createjs.MediaTagRequest(this._item,this._tag||this._createTag(),this._tagSrcAttribute)},e._updateXHR=function(t){t.loader.setResponseType&&t.loader.setResponseType("blob")},e._formatResult=function(t){if(this._tag.removeEventListener&&this._tag.removeEventListener("canplaythrough",this._loadedHandler),this._tag.onstalled=null,this._preferXHR){var e=window.URL||window.webkitURL,i=t.getResult(!0);t.getTag().src=e.createObjectURL(i)}return t.getTag()},createjs.AbstractMediaLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";var t=function(t){this._item=t},e=createjs.extend(t,createjs.EventDispatcher);e.load=function(){},e.destroy=function(){},e.cancel=function(){},createjs.AbstractRequest=createjs.promote(t,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.AbstractRequest_constructor(t),this._tag=e,this._tagSrcAttribute=i,this._loadedHandler=createjs.proxy(this._handleTagComplete,this),this._addedToDOM=!1,this._startTagVisibility=null}var e=createjs.extend(t,createjs.AbstractRequest);e.load=function(){this._tag.onload=createjs.proxy(this._handleTagComplete,this),this._tag.onreadystatechange=createjs.proxy(this._handleReadyStateChange,this),this._tag.onerror=createjs.proxy(this._handleError,this);var t=new createjs.Event("initialize");t.loader=this._tag,this.dispatchEvent(t),this._hideTag(),this._loadTimeout=setTimeout(createjs.proxy(this._handleTimeout,this),this._item.loadTimeout),this._tag[this._tagSrcAttribute]=this._item.src,null==this._tag.parentNode&&(window.document.body.appendChild(this._tag),this._addedToDOM=!0)},e.destroy=function(){this._clean(),this._tag=null,this.AbstractRequest_destroy()},e._handleReadyStateChange=function(){clearTimeout(this._loadTimeout);var t=this._tag;"loaded"!=t.readyState&&"complete"!=t.readyState||this._handleTagComplete()},e._handleError=function(){this._clean(),this.dispatchEvent("error")},e._handleTagComplete=function(){this._rawResult=this._tag,this._result=this.resultFormatter&&this.resultFormatter(this)||this._rawResult,this._clean(),this._showTag(),this.dispatchEvent("complete")},e._handleTimeout=function(){this._clean(),this.dispatchEvent(new createjs.Event("timeout"))},e._clean=function(){this._tag.onload=null,this._tag.onreadystatechange=null,this._tag.onerror=null,this._addedToDOM&&null!=this._tag.parentNode&&this._tag.parentNode.removeChild(this._tag),clearTimeout(this._loadTimeout)},e._hideTag=function(){this._startTagVisibility=this._tag.style.visibility,this._tag.style.visibility="hidden"},e._showTag=function(){this._tag.style.visibility=this._startTagVisibility},e._handleStalled=function(){},createjs.TagRequest=createjs.promote(t,"AbstractRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.AbstractRequest_constructor(t),this._tag=e,this._tagSrcAttribute=i,this._loadedHandler=createjs.proxy(this._handleTagComplete,this)}var e=createjs.extend(t,createjs.TagRequest);e.load=function(){var t=createjs.proxy(this._handleStalled,this);this._stalledCallback=t;var e=createjs.proxy(this._handleProgress,this);this._handleProgress=e,this._tag.addEventListener("stalled",t),this._tag.addEventListener("progress",e),this._tag.addEventListener&&this._tag.addEventListener("canplaythrough",this._loadedHandler,!1),this.TagRequest_load()},e._handleReadyStateChange=function(){clearTimeout(this._loadTimeout);var t=this._tag;"loaded"!=t.readyState&&"complete"!=t.readyState||this._handleTagComplete()},e._handleStalled=function(){},e._handleProgress=function(t){if(t&&!(t.loaded>0&&0==t.total)){var e=new createjs.ProgressEvent(t.loaded,t.total);this.dispatchEvent(e)}},e._clean=function(){this._tag.removeEventListener&&this._tag.removeEventListener("canplaythrough",this._loadedHandler),this._tag.removeEventListener("stalled",this._stalledCallback),this._tag.removeEventListener("progress",this._progressCallback),this.TagRequest__clean()},createjs.MediaTagRequest=createjs.promote(t,"TagRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.AbstractRequest_constructor(t),this._request=null,this._loadTimeout=null,this._xhrLevel=1,this._response=null,this._rawResponse=null,this._canceled=!1,this._handleLoadStartProxy=createjs.proxy(this._handleLoadStart,this),this._handleProgressProxy=createjs.proxy(this._handleProgress,this),this._handleAbortProxy=createjs.proxy(this._handleAbort,this),this._handleErrorProxy=createjs.proxy(this._handleError,this),this._handleTimeoutProxy=createjs.proxy(this._handleTimeout,this),this._handleLoadProxy=createjs.proxy(this._handleLoad,this),this._handleReadyStateChangeProxy=createjs.proxy(this._handleReadyStateChange,this),this._createXHR(t)}var e=createjs.extend(t,createjs.AbstractRequest);t.ACTIVEX_VERSIONS=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],e.getResult=function(t){return t&&this._rawResponse?this._rawResponse:this._response},e.cancel=function(){this.canceled=!0,this._clean(),this._request.abort()},e.load=function(){if(null!=this._request){null!=this._request.addEventListener?(this._request.addEventListener("loadstart",this._handleLoadStartProxy,!1),this._request.addEventListener("progress",this._handleProgressProxy,!1),this._request.addEventListener("abort",this._handleAbortProxy,!1),this._request.addEventListener("error",this._handleErrorProxy,!1),this._request.addEventListener("timeout",this._handleTimeoutProxy,!1),this._request.addEventListener("load",this._handleLoadProxy,!1),this._request.addEventListener("readystatechange",this._handleReadyStateChangeProxy,!1)):(this._request.onloadstart=this._handleLoadStartProxy,this._request.onprogress=this._handleProgressProxy,this._request.onabort=this._handleAbortProxy,this._request.onerror=this._handleErrorProxy,this._request.ontimeout=this._handleTimeoutProxy,this._request.onload=this._handleLoadProxy,this._request.onreadystatechange=this._handleReadyStateChangeProxy),1==this._xhrLevel&&(this._loadTimeout=setTimeout(createjs.proxy(this._handleTimeout,this),this._item.loadTimeout));try{this._item.values&&this._item.method!=createjs.AbstractLoader.GET?this._item.method==createjs.AbstractLoader.POST&&this._request.send(createjs.RequestUtils.formatQueryString(this._item.values)):this._request.send()}catch(t){this.dispatchEvent(new createjs.ErrorEvent("XHR_SEND",null,t))}}else this._handleError()},e.setResponseType=function(t){"blob"===t&&(t=window.URL?"blob":"arraybuffer",this._responseType=t),this._request.responseType=t},e.getAllResponseHeaders=function(){return this._request.getAllResponseHeaders instanceof Function?this._request.getAllResponseHeaders():null},e.getResponseHeader=function(t){return this._request.getResponseHeader instanceof Function?this._request.getResponseHeader(t):null},e._handleProgress=function(t){if(t&&!(t.loaded>0&&0==t.total)){var e=new createjs.ProgressEvent(t.loaded,t.total);this.dispatchEvent(e)}},e._handleLoadStart=function(t){clearTimeout(this._loadTimeout),this.dispatchEvent("loadstart")},e._handleAbort=function(t){this._clean(),this.dispatchEvent(new createjs.ErrorEvent("XHR_ABORTED",null,t))},e._handleError=function(t){this._clean(),this.dispatchEvent(new createjs.ErrorEvent(t.message))},e._handleReadyStateChange=function(t){4==this._request.readyState&&this._handleLoad()},e._handleLoad=function(t){if(!this.loaded){this.loaded=!0;var e=this._checkError();if(e)this._handleError(e);else{if(this._response=this._getResponse(),"arraybuffer"===this._responseType)try{this._response=new Blob([this._response])}catch(t){if(window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,"TypeError"===t.name&&window.BlobBuilder){var i=new BlobBuilder;i.append(this._response),this._response=i.getBlob()}}this._clean(),this.dispatchEvent(new createjs.Event("complete"))}}},e._handleTimeout=function(t){this._clean(),this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_TIMEOUT",null,t))},e._checkError=function(){var t=parseInt(this._request.status);switch(t){case 404:case 0:return new Error(t)}return null},e._getResponse=function(){if(null!=this._response)return this._response;if(null!=this._request.response)return this._request.response;try{if(null!=this._request.responseText)return this._request.responseText}catch(t){}try{if(null!=this._request.responseXML)return this._request.responseXML}catch(t){}return null},e._createXHR=function(t){var e=createjs.RequestUtils.isCrossDomain(t),i={},r=null;if(window.XMLHttpRequest)r=new XMLHttpRequest,e&&void 0===r.withCredentials&&window.XDomainRequest&&(r=new XDomainRequest);else{for(var n=0,a=s.ACTIVEX_VERSIONS.length;n<a;n++){var o=s.ACTIVEX_VERSIONS[n];try{r=new ActiveXObject(o);break}catch(t){}}if(null==r)return!1}null==t.mimeType&&createjs.RequestUtils.isText(t.type)&&(t.mimeType="text/plain; charset=utf-8"),t.mimeType&&r.overrideMimeType&&r.overrideMimeType(t.mimeType),this._xhrLevel="string"==typeof r.responseType?2:1;var l=null;if(l=t.method==createjs.AbstractLoader.GET?createjs.RequestUtils.buildPath(t.src,t.values):t.src,r.open(t.method||createjs.AbstractLoader.GET,l,!0),e&&r instanceof XMLHttpRequest&&1==this._xhrLevel&&(i.Origin=location.origin),t.values&&t.method==createjs.AbstractLoader.POST&&(i["Content-Type"]="application/x-www-form-urlencoded"),e||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),t.headers)for(var h in t.headers)i[h]=t.headers[h];for(h in i)r.setRequestHeader(h,i[h]);return r instanceof XMLHttpRequest&&void 0!==t.withCredentials&&(r.withCredentials=t.withCredentials),this._request=r,!0},e._clean=function(){clearTimeout(this._loadTimeout),null!=this._request.removeEventListener?(this._request.removeEventListener("loadstart",this._handleLoadStartProxy),this._request.removeEventListener("progress",this._handleProgressProxy),this._request.removeEventListener("abort",this._handleAbortProxy),this._request.removeEventListener("error",this._handleErrorProxy),this._request.removeEventListener("timeout",this._handleTimeoutProxy),this._request.removeEventListener("load",this._handleLoadProxy),this._request.removeEventListener("readystatechange",this._handleReadyStateChangeProxy)):(this._request.onloadstart=null,this._request.onprogress=null,this._request.onabort=null,this._request.onerror=null,this._request.ontimeout=null,this._request.onload=null,this._request.onreadystatechange=null)},e.toString=function(){return"[PreloadJS XHRRequest]"},createjs.XHRRequest=createjs.promote(t,"AbstractRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e){this.AbstractMediaLoader_constructor(t,e,createjs.AbstractLoader.SOUND),createjs.RequestUtils.isAudioTag(t)?this._tag=t:createjs.RequestUtils.isAudioTag(t.src)?this._tag=t:createjs.RequestUtils.isAudioTag(t.tag)&&(this._tag=createjs.RequestUtils.isAudioTag(t)?t:t.src),null!=this._tag&&(this._preferXHR=!1)}var e=createjs.extend(t,createjs.AbstractMediaLoader);t.canLoadItem=function(t){return t.type==createjs.AbstractLoader.SOUND},e._createTag=function(t){var e=document.createElement("audio");return e.autoplay=!1,e.preload="none",e.src=t,e},createjs.SoundLoader=createjs.promote(t,"AbstractMediaLoader")}(),this.createjs=this.createjs||{},function(){"use strict";var t=function(){this.interrupt=null,this.delay=null,this.offset=null,this.loop=null,this.volume=null,this.pan=null,this.startTime=null,this.duration=null},e=t.prototype={},i=t;i.create=function(t){if(t instanceof i||t instanceof Object){var e=new createjs.PlayPropsConfig;return e.set(t),e}throw new Error("Type not recognized.")},e.set=function(t){for(var e in t)this[e]=t[e];return this},e.toString=function(){return"[PlayPropsConfig]"},createjs.PlayPropsConfig=i}(),this.createjs=this.createjs||{},function(){"use strict";function t(){throw"Sound cannot be instantiated"}var e=t;function i(t,e){this.init(t,e)}e.INTERRUPT_ANY="any",e.INTERRUPT_EARLY="early",e.INTERRUPT_LATE="late",e.INTERRUPT_NONE="none",e.PLAY_INITED="playInited",e.PLAY_SUCCEEDED="playSucceeded",e.PLAY_INTERRUPTED="playInterrupted",e.PLAY_FINISHED="playFinished",e.PLAY_FAILED="playFailed",e.SUPPORTED_EXTENSIONS=["mp3","ogg","opus","mpeg","wav","m4a","mp4","aiff","wma","mid"],e.EXTENSION_MAP={m4a:"mp4"},e.FILE_PATTERN=/^(?:(\w+:)\/{2}(\w+(?:\.\w+)*\/?))?([/.]*?(?:[^?]+)?\/)?((?:[^/?]+)\.(\w+))(?:\?(\S+)?)?$/,e.defaultInterruptBehavior=e.INTERRUPT_NONE,e.alternateExtensions=[],e.activePlugin=null,e._masterVolume=1,Object.defineProperty(e,"volume",{get:function(){return this._masterVolume},set:function(t){if(null==Number(t))return!1;if(t=Math.max(0,Math.min(1,t)),e._masterVolume=t,!this.activePlugin||!this.activePlugin.setVolume||!this.activePlugin.setVolume(t))for(var i=this._instances,r=0,n=i.length;r<n;r++)i[r].setMasterVolume(t)}}),e._masterMute=!1,Object.defineProperty(e,"muted",{get:function(){return this._masterMute},set:function(t){if(null==t)return!1;if(this._masterMute=t,!this.activePlugin||!this.activePlugin.setMute||!this.activePlugin.setMute(t))for(var e=this._instances,i=0,r=e.length;i<r;i++)e[i].setMasterMute(t);return!0}}),Object.defineProperty(e,"capabilities",{get:function(){return null==e.activePlugin?null:e.activePlugin._capabilities},set:function(t){return!1}}),e._pluginsRegistered=!1,e._lastID=0,e._instances=[],e._idHash={},e._preloadHash={},e._defaultPlayPropsHash={},e.addEventListener=null,e.removeEventListener=null,e.removeAllEventListeners=null,e.dispatchEvent=null,e.hasEventListener=null,e._listeners=null,createjs.EventDispatcher.initialize(e),e.getPreloadHandlers=function(){return{callback:createjs.proxy(e.initLoad,e),types:["sound"],extensions:e.SUPPORTED_EXTENSIONS}},e._handleLoadComplete=function(t){var i=t.target.getItem().src;if(e._preloadHash[i])for(var r=0,n=e._preloadHash[i].length;r<n;r++){var s=e._preloadHash[i][r];if(e._preloadHash[i][r]=!0,e.hasEventListener("fileload"))(t=new createjs.Event("fileload")).src=s.src,t.id=s.id,t.data=s.data,t.sprite=s.sprite,e.dispatchEvent(t)}},e._handleLoadError=function(t){var i=t.target.getItem().src;if(e._preloadHash[i])for(var r=0,n=e._preloadHash[i].length;r<n;r++){var s=e._preloadHash[i][r];if(e._preloadHash[i][r]=!1,e.hasEventListener("fileerror"))(t=new createjs.Event("fileerror")).src=s.src,t.id=s.id,t.data=s.data,t.sprite=s.sprite,e.dispatchEvent(t)}},e._registerPlugin=function(t){return!!t.isSupported()&&(e.activePlugin=new t,!0)},e.registerPlugins=function(t){e._pluginsRegistered=!0;for(var i=0,r=t.length;i<r;i++)if(e._registerPlugin(t[i]))return!0;return!1},e.initializeDefaultPlugins=function(){return null!=e.activePlugin||!e._pluginsRegistered&&!!e.registerPlugins([createjs.WebAudioPlugin,createjs.HTMLAudioPlugin])},e.isReady=function(){return null!=e.activePlugin},e.getCapabilities=function(){return null==e.activePlugin?null:e.activePlugin._capabilities},e.getCapability=function(t){return null==e.activePlugin?null:e.activePlugin._capabilities[t]},e.initLoad=function(t){return e._registerSound(t)},e._registerSound=function(t){if(!e.initializeDefaultPlugins())return!1;var r;if(t.src instanceof Object?(r=e._parseSrc(t.src)).src=t.path+r.src:r=e._parsePath(t.src),null==r)return!1;t.src=r.src,t.type="sound";var n=t.data,s=null;if(null!=n&&(isNaN(n.channels)?isNaN(n)||(s=parseInt(n)):s=parseInt(n.channels),n.audioSprite))for(var a,o=n.audioSprite.length;o--;)a=n.audioSprite[o],e._idHash[a.id]={src:t.src,startTime:parseInt(a.startTime),duration:parseInt(a.duration)},a.defaultPlayProps&&(e._defaultPlayPropsHash[a.id]=createjs.PlayPropsConfig.create(a.defaultPlayProps));null!=t.id&&(e._idHash[t.id]={src:t.src});var l=e.activePlugin.register(t);return i.create(t.src,s),null!=n&&isNaN(n)?t.data.channels=s||i.maxPerChannel():t.data=s||i.maxPerChannel(),l.type&&(t.type=l.type),t.defaultPlayProps&&(e._defaultPlayPropsHash[t.src]=createjs.PlayPropsConfig.create(t.defaultPlayProps)),l},e.registerSound=function(t,i,r,n,s){var a={src:t,id:i,data:r,defaultPlayProps:s};t instanceof Object&&t.src&&(n=i,a=t),(a=createjs.LoadItem.create(a)).path=n,null==n||a.src instanceof Object||(a.src=n+t);var o=e._registerSound(a);if(!o)return!1;if(e._preloadHash[a.src]||(e._preloadHash[a.src]=[]),e._preloadHash[a.src].push(a),1==e._preloadHash[a.src].length)o.on("complete",createjs.proxy(this._handleLoadComplete,this)),o.on("error",createjs.proxy(this._handleLoadError,this)),e.activePlugin.preload(o);else if(1==e._preloadHash[a.src][0])return!0;return a},e.registerSounds=function(t,e){var i=[];t.path&&(e?e+=t.path:e=t.path,t=t.manifest);for(var r=0,n=t.length;r<n;r++)i[r]=createjs.Sound.registerSound(t[r].src,t[r].id,t[r].data,e,t[r].defaultPlayProps);return i},e.removeSound=function(t,r){if(null==e.activePlugin)return!1;var n;if(t instanceof Object&&t.src&&(t=t.src),t instanceof Object?n=e._parseSrc(t):(t=e._getSrcById(t).src,n=e._parsePath(t)),null==n)return!1;for(var s in t=n.src,null!=r&&(t=r+t),e._idHash)e._idHash[s].src==t&&delete e._idHash[s];return i.removeSrc(t),delete e._preloadHash[t],e.activePlugin.removeSound(t),!0},e.removeSounds=function(t,e){var i=[];t.path&&(e?e+=t.path:e=t.path,t=t.manifest);for(var r=0,n=t.length;r<n;r++)i[r]=createjs.Sound.removeSound(t[r].src,e);return i},e.removeAllSounds=function(){e._idHash={},e._preloadHash={},i.removeAll(),e.activePlugin&&e.activePlugin.removeAllSounds()},e.loadComplete=function(t){if(!e.isReady())return!1;var i=e._parsePath(t);return t=i?e._getSrcById(i.src).src:e._getSrcById(t).src,null!=e._preloadHash[t]&&1==e._preloadHash[t][0]},e._parsePath=function(t){"string"!=typeof t&&(t=t.toString());var i=t.match(e.FILE_PATTERN);if(null==i)return!1;for(var r=i[4],n=i[5],s=e.capabilities,a=0;!s[n];)if(n=e.alternateExtensions[a++],a>e.alternateExtensions.length)return null;return{name:r,src:t=t.replace("."+i[5],"."+n),extension:n}},e._parseSrc=function(t){var i={name:void 0,src:void 0,extension:void 0},r=e.capabilities;for(var n in t)if(t.hasOwnProperty(n)&&r[n]){i.src=t[n],i.extension=n;break}if(!i.src)return!1;var s=i.src.lastIndexOf("/");return i.name=-1!=s?i.src.slice(s+1):i.src,i},e.play=function(t,i,r,n,s,a,o,l,h){var u;u=i instanceof Object||i instanceof createjs.PlayPropsConfig?createjs.PlayPropsConfig.create(i):createjs.PlayPropsConfig.create({interrupt:i,delay:r,offset:n,loop:s,volume:a,pan:o,startTime:l,duration:h});var c=e.createInstance(t,u.startTime,u.duration);return e._playInstance(c,u)||c._playFailed(),c},e.createInstance=function(t,r,n){if(!e.initializeDefaultPlugins())return new createjs.DefaultSoundInstance(t,r,n);var s=e._defaultPlayPropsHash[t];t=e._getSrcById(t);var a=e._parsePath(t.src),o=null;return null!=a&&null!=a.src?(i.create(a.src),null==r&&(r=t.startTime),o=e.activePlugin.create(a.src,r,n||t.duration),(s=s||e._defaultPlayPropsHash[a.src])&&o.applyPlayProps(s)):o=new createjs.DefaultSoundInstance(t,r,n),o.uniqueId=e._lastID++,o},e.stop=function(){for(var t=this._instances,e=t.length;e--;)t[e].stop()},e.setVolume=function(t){if(null==Number(t))return!1;if(t=Math.max(0,Math.min(1,t)),e._masterVolume=t,!this.activePlugin||!this.activePlugin.setVolume||!this.activePlugin.setVolume(t))for(var i=this._instances,r=0,n=i.length;r<n;r++)i[r].setMasterVolume(t)},e.getVolume=function(){return this._masterVolume},e.setMute=function(t){if(null==t)return!1;if(this._masterMute=t,!this.activePlugin||!this.activePlugin.setMute||!this.activePlugin.setMute(t))for(var e=this._instances,i=0,r=e.length;i<r;i++)e[i].setMasterMute(t);return!0},e.getMute=function(){return this._masterMute},e.setDefaultPlayProps=function(t,i){t=e._getSrcById(t),e._defaultPlayPropsHash[e._parsePath(t.src).src]=createjs.PlayPropsConfig.create(i)},e.getDefaultPlayProps=function(t){return t=e._getSrcById(t),e._defaultPlayPropsHash[e._parsePath(t.src).src]},e._playInstance=function(t,i){var r=e._defaultPlayPropsHash[t.src]||{};if(null==i.interrupt&&(i.interrupt=r.interrupt||e.defaultInterruptBehavior),null==i.delay&&(i.delay=r.delay||0),null==i.offset&&(i.offset=t.getPosition()),null==i.loop&&(i.loop=t.loop),null==i.volume&&(i.volume=t.volume),null==i.pan&&(i.pan=t.pan),0==i.delay){if(!e._beginPlaying(t,i))return!1}else{var n=setTimeout(function(){e._beginPlaying(t,i)},i.delay);t.delayTimeoutId=n}return this._instances.push(t),!0},e._beginPlaying=function(t,e){if(!i.add(t,e.interrupt))return!1;if(!t._beginPlaying(e)){var r=createjs.indexOf(this._instances,t);return r>-1&&this._instances.splice(r,1),!1}return!0},e._getSrcById=function(t){return e._idHash[t]||{src:t}},e._playFinished=function(t){i.remove(t);var e=createjs.indexOf(this._instances,t);e>-1&&this._instances.splice(e,1)},createjs.Sound=t,i.channels={},i.create=function(t,e){return null==i.get(t)&&(i.channels[t]=new i(t,e),!0)},i.removeSrc=function(t){var e=i.get(t);return null!=e&&(e._removeAll(),delete i.channels[t],!0)},i.removeAll=function(){for(var t in i.channels)i.channels[t]._removeAll();i.channels={}},i.add=function(t,e){var r=i.get(t.src);return null!=r&&r._add(t,e)},i.remove=function(t){var e=i.get(t.src);return null!=e&&(e._remove(t),!0)},i.maxPerChannel=function(){return r.maxDefault},i.get=function(t){return i.channels[t]};var r=i.prototype;r.constructor=i,r.src=null,r.max=null,r.maxDefault=100,r.length=0,r.init=function(t,e){this.src=t,this.max=e||this.maxDefault,-1==this.max&&(this.max=this.maxDefault),this._instances=[]},r._get=function(t){return this._instances[t]},r._add=function(t,e){return!!this._getSlot(e,t)&&(this._instances.push(t),this.length++,!0)},r._remove=function(t){var e=createjs.indexOf(this._instances,t);return-1!=e&&(this._instances.splice(e,1),this.length--,!0)},r._removeAll=function(){for(var t=this.length-1;t>=0;t--)this._instances[t].stop()},r._getSlot=function(e,i){var r,n;if(e!=t.INTERRUPT_NONE&&null==(n=this._get(0)))return!0;for(var s=0,a=this.max;s<a;s++){if(null==(r=this._get(s)))return!0;if(r.playState==t.PLAY_FINISHED||r.playState==t.PLAY_INTERRUPTED||r.playState==t.PLAY_FAILED){n=r;break}e!=t.INTERRUPT_NONE&&((e==t.INTERRUPT_EARLY&&r.getPosition()<n.getPosition()||e==t.INTERRUPT_LATE&&r.getPosition()>n.getPosition())&&(n=r))}return null!=n&&(n._interrupt(),this._remove(n),!0)},r.toString=function(){return"[Sound SoundChannel]"}}(),this.createjs=this.createjs||{},function(){"use strict";var t=function(t,e,i,r){this.EventDispatcher_constructor(),this.src=t,this.uniqueId=-1,this.playState=null,this.delayTimeoutId=null,this._volume=1,Object.defineProperty(this,"volume",{get:this.getVolume,set:this.setVolume}),this._pan=0,Object.defineProperty(this,"pan",{get:this.getPan,set:this.setPan}),this._startTime=Math.max(0,e||0),Object.defineProperty(this,"startTime",{get:this.getStartTime,set:this.setStartTime}),this._duration=Math.max(0,i||0),Object.defineProperty(this,"duration",{get:this.getDuration,set:this.setDuration}),this._playbackResource=null,Object.defineProperty(this,"playbackResource",{get:this.getPlaybackResource,set:this.setPlaybackResource}),!1!==r&&!0!==r&&this.setPlaybackResource(r),this._position=0,Object.defineProperty(this,"position",{get:this.getPosition,set:this.setPosition}),this._loop=0,Object.defineProperty(this,"loop",{get:this.getLoop,set:this.setLoop}),this._muted=!1,Object.defineProperty(this,"muted",{get:this.getMuted,set:this.setMuted}),this._paused=!1,Object.defineProperty(this,"paused",{get:this.getPaused,set:this.setPaused})},e=createjs.extend(t,createjs.EventDispatcher);e.play=function(t,e,i,r,n,s){var a;return a=t instanceof Object||t instanceof createjs.PlayPropsConfig?createjs.PlayPropsConfig.create(t):createjs.PlayPropsConfig.create({interrupt:t,delay:e,offset:i,loop:r,volume:n,pan:s}),this.playState==createjs.Sound.PLAY_SUCCEEDED?(this.applyPlayProps(a),void(this._paused&&this.setPaused(!1))):(this._cleanUp(),createjs.Sound._playInstance(this,a),this)},e.stop=function(){return this._position=0,this._paused=!1,this._handleStop(),this._cleanUp(),this.playState=createjs.Sound.PLAY_FINISHED,this},e.destroy=function(){this._cleanUp(),this.src=null,this.playbackResource=null,this.removeAllEventListeners()},e.applyPlayProps=function(t){return null!=t.offset&&this.setPosition(t.offset),null!=t.loop&&this.setLoop(t.loop),null!=t.volume&&this.setVolume(t.volume),null!=t.pan&&this.setPan(t.pan),null!=t.startTime&&(this.setStartTime(t.startTime),this.setDuration(t.duration)),this},e.toString=function(){return"[AbstractSoundInstance]"},e.getPaused=function(){return this._paused},e.setPaused=function(t){if(!(!0!==t&&!1!==t||this._paused==t||1==t&&this.playState!=createjs.Sound.PLAY_SUCCEEDED))return this._paused=t,t?this._pause():this._resume(),clearTimeout(this.delayTimeoutId),this},e.setVolume=function(t){return t==this._volume?this:(this._volume=Math.max(0,Math.min(1,t)),this._muted||this._updateVolume(),this)},e.getVolume=function(){return this._volume},e.setMuted=function(t){if(!0===t||!1===t)return this._muted=t,this._updateVolume(),this},e.getMuted=function(){return this._muted},e.setPan=function(t){return t==this._pan?this:(this._pan=Math.max(-1,Math.min(1,t)),this._updatePan(),this)},e.getPan=function(){return this._pan},e.getPosition=function(){return this._paused||this.playState!=createjs.Sound.PLAY_SUCCEEDED||(this._position=this._calculateCurrentPosition()),this._position},e.setPosition=function(t){return this._position=Math.max(0,t),this.playState==createjs.Sound.PLAY_SUCCEEDED&&this._updatePosition(),this},e.getStartTime=function(){return this._startTime},e.setStartTime=function(t){return t==this._startTime?this:(this._startTime=Math.max(0,t||0),this._updateStartTime(),this)},e.getDuration=function(){return this._duration},e.setDuration=function(t){return t==this._duration?this:(this._duration=Math.max(0,t||0),this._updateDuration(),this)},e.setPlaybackResource=function(t){return this._playbackResource=t,0==this._duration&&this._setDurationFromSource(),this},e.getPlaybackResource=function(){return this._playbackResource},e.getLoop=function(){return this._loop},e.setLoop=function(t){null!=this._playbackResource&&(0!=this._loop&&0==t?this._removeLooping(t):0==this._loop&&0!=t&&this._addLooping(t)),this._loop=t},e._sendEvent=function(t){var e=new createjs.Event(t);this.dispatchEvent(e)},e._cleanUp=function(){clearTimeout(this.delayTimeoutId),this._handleCleanUp(),this._paused=!1,createjs.Sound._playFinished(this)},e._interrupt=function(){this._cleanUp(),this.playState=createjs.Sound.PLAY_INTERRUPTED,this._sendEvent("interrupted")},e._beginPlaying=function(t){return this.setPosition(t.offset),this.setLoop(t.loop),this.setVolume(t.volume),this.setPan(t.pan),null!=t.startTime&&(this.setStartTime(t.startTime),this.setDuration(t.duration)),null!=this._playbackResource&&this._position<this._duration?(this._paused=!1,this._handleSoundReady(),this.playState=createjs.Sound.PLAY_SUCCEEDED,this._sendEvent("succeeded"),!0):(this._playFailed(),!1)},e._playFailed=function(){this._cleanUp(),this.playState=createjs.Sound.PLAY_FAILED,this._sendEvent("failed")},e._handleSoundComplete=function(t){if(this._position=0,0!=this._loop)return this._loop--,this._handleLoop(),void this._sendEvent("loop");this._cleanUp(),this.playState=createjs.Sound.PLAY_FINISHED,this._sendEvent("complete")},e._handleSoundReady=function(){},e._updateVolume=function(){},e._updatePan=function(){},e._updateStartTime=function(){},e._updateDuration=function(){},e._setDurationFromSource=function(){},e._calculateCurrentPosition=function(){},e._updatePosition=function(){},e._removeLooping=function(t){},e._addLooping=function(t){},e._pause=function(){},e._resume=function(){},e._handleStop=function(){},e._handleCleanUp=function(){},e._handleLoop=function(){},createjs.AbstractSoundInstance=createjs.promote(t,"EventDispatcher"),createjs.DefaultSoundInstance=createjs.AbstractSoundInstance}(),this.createjs=this.createjs||{},function(){"use strict";var t=function(){this._capabilities=null,this._loaders={},this._audioSources={},this._soundInstances={},this._volume=1,this._loaderClass,this._soundInstanceClass},e=t.prototype;t._capabilities=null,t.isSupported=function(){return!0},e.register=function(t){var e=this._loaders[t.src];return e&&!e.canceled?this._loaders[t.src]:(this._audioSources[t.src]=!0,this._soundInstances[t.src]=[],(e=new this._loaderClass(t)).on("complete",this._handlePreloadComplete,this),this._loaders[t.src]=e,e)},e.preload=function(t){t.on("error",this._handlePreloadError,this),t.load()},e.isPreloadStarted=function(t){return null!=this._audioSources[t]},e.isPreloadComplete=function(t){return!(null==this._audioSources[t]||1==this._audioSources[t])},e.removeSound=function(t){if(this._soundInstances[t]){for(var e=this._soundInstances[t].length;e--;){this._soundInstances[t][e].destroy()}delete this._soundInstances[t],delete this._audioSources[t],this._loaders[t]&&this._loaders[t].destroy(),delete this._loaders[t]}},e.removeAllSounds=function(){for(var t in this._audioSources)this.removeSound(t)},e.create=function(t,e,i){this.isPreloadStarted(t)||this.preload(this.register(t));var r=new this._soundInstanceClass(t,e,i,this._audioSources[t]);return this._soundInstances[t].push(r),r},e.setVolume=function(t){return this._volume=t,this._updateVolume(),!0},e.getVolume=function(){return this._volume},e.setMute=function(t){return this._updateVolume(),!0},e.toString=function(){return"[AbstractPlugin]"},e._handlePreloadComplete=function(t){var e=t.target.getItem().src;this._audioSources[e]=t.result;for(var i=0,r=this._soundInstances[e].length;i<r;i++){this._soundInstances[e][i].setPlaybackResource(this._audioSources[e])}},e._handlePreloadError=function(t){},e._updateVolume=function(){},createjs.AbstractPlugin=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.AbstractLoader_constructor(t,!0,createjs.AbstractLoader.SOUND)}var e=createjs.extend(t,createjs.AbstractLoader);t.context=null,e.toString=function(){return"[WebAudioLoader]"},e._createRequest=function(){this._request=new createjs.XHRRequest(this._item,!1),this._request.setResponseType("arraybuffer")},e._sendComplete=function(e){t.context.decodeAudioData(this._rawResult,createjs.proxy(this._handleAudioDecoded,this),createjs.proxy(this._sendError,this))},e._handleAudioDecoded=function(t){this._result=t,this.AbstractLoader__sendComplete()},createjs.WebAudioLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,r,n){this.AbstractSoundInstance_constructor(t,e,r,n),this.gainNode=i.context.createGain(),this.panNode=i.context.createPanner(),this.panNode.panningModel=i._panningModel,this.panNode.connect(this.gainNode),this._updatePan(),this.sourceNode=null,this._soundCompleteTimeout=null,this._sourceNodeNext=null,this._playbackStartTime=0,this._endedHandler=createjs.proxy(this._handleSoundComplete,this)}var e=createjs.extend(t,createjs.AbstractSoundInstance),i=t;i.context=null,i._scratchBuffer=null,i.destinationNode=null,i._panningModel="equalpower",e.destroy=function(){this.AbstractSoundInstance_destroy(),this.panNode.disconnect(0),this.panNode=null,this.gainNode.disconnect(0),this.gainNode=null},e.toString=function(){return"[WebAudioSoundInstance]"},e._updatePan=function(){this.panNode.setPosition(this._pan,0,-.5)},e._removeLooping=function(t){this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext)},e._addLooping=function(t){this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._sourceNodeNext=this._createAndPlayAudioNode(this._playbackStartTime,0))},e._setDurationFromSource=function(){this._duration=1e3*this.playbackResource.duration},e._handleCleanUp=function(){this.sourceNode&&this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this.sourceNode=this._cleanUpAudioNode(this.sourceNode),this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext)),0!=this.gainNode.numberOfOutputs&&this.gainNode.disconnect(0),clearTimeout(this._soundCompleteTimeout),this._playbackStartTime=0},e._cleanUpAudioNode=function(t){if(t){t.stop(0),t.disconnect(0);try{t.buffer=i._scratchBuffer}catch(t){}t=null}return t},e._handleSoundReady=function(t){this.gainNode.connect(i.destinationNode);var e=.001*this._duration,r=.001*this._position;r>e&&(r=e),this.sourceNode=this._createAndPlayAudioNode(i.context.currentTime-e,r),this._playbackStartTime=this.sourceNode.startTime-r,this._soundCompleteTimeout=setTimeout(this._endedHandler,1e3*(e-r)),0!=this._loop&&(this._sourceNodeNext=this._createAndPlayAudioNode(this._playbackStartTime,0))},e._createAndPlayAudioNode=function(t,e){var r=i.context.createBufferSource();r.buffer=this.playbackResource,r.connect(this.panNode);var n=.001*this._duration;return r.startTime=t+n,r.start(r.startTime,e+.001*this._startTime,n-e),r},e._pause=function(){this._position=1e3*(i.context.currentTime-this._playbackStartTime),this.sourceNode=this._cleanUpAudioNode(this.sourceNode),this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext),0!=this.gainNode.numberOfOutputs&&this.gainNode.disconnect(0),clearTimeout(this._soundCompleteTimeout)},e._resume=function(){this._handleSoundReady()},e._updateVolume=function(){var t=this._muted?0:this._volume;t!=this.gainNode.gain.value&&(this.gainNode.gain.value=t)},e._calculateCurrentPosition=function(){return 1e3*(i.context.currentTime-this._playbackStartTime)},e._updatePosition=function(){this.sourceNode=this._cleanUpAudioNode(this.sourceNode),this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext),clearTimeout(this._soundCompleteTimeout),this._paused||this._handleSoundReady()},e._handleLoop=function(){this._cleanUpAudioNode(this.sourceNode),this.sourceNode=this._sourceNodeNext,this._playbackStartTime=this.sourceNode.startTime,this._sourceNodeNext=this._createAndPlayAudioNode(this._playbackStartTime,0),this._soundCompleteTimeout=setTimeout(this._endedHandler,this._duration)},e._updateDuration=function(){this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._pause(),this._resume())},createjs.WebAudioSoundInstance=createjs.promote(t,"AbstractSoundInstance")}(),this.createjs=this.createjs||{},function(){"use strict";function t(){this.AbstractPlugin_constructor(),this._panningModel=i._panningModel,this.context=i.context,this.dynamicsCompressorNode=this.context.createDynamicsCompressor(),this.dynamicsCompressorNode.connect(this.context.destination),this.gainNode=this.context.createGain(),this.gainNode.connect(this.dynamicsCompressorNode),createjs.WebAudioSoundInstance.destinationNode=this.gainNode,this._capabilities=i._capabilities,this._loaderClass=createjs.WebAudioLoader,this._soundInstanceClass=createjs.WebAudioSoundInstance,this._addPropsToClasses()}var e=createjs.extend(t,createjs.AbstractPlugin),i=t;i._capabilities=null,i._panningModel="equalpower",i.context=null,i._scratchBuffer=null,i._unlocked=!1,i.isSupported=function(){var t=createjs.BrowserDetect.isIOS||createjs.BrowserDetect.isAndroid||createjs.BrowserDetect.isBlackberry;return!("file:"==location.protocol&&!t&&!this._isFileXHRSupported())&&(i._generateCapabilities(),null!=i.context)},i.playEmptySound=function(){if(null!=i.context){var t=i.context.createBufferSource();t.buffer=i._scratchBuffer,t.connect(i.context.destination),t.start(0,0,0)}},i._isFileXHRSupported=function(){var t=!0,e=new XMLHttpRequest;try{e.open("GET","WebAudioPluginTest.fail",!1)}catch(e){return t=!1}e.onerror=function(){t=!1},e.onload=function(){t=404==this.status||200==this.status||0==this.status&&""!=this.response};try{e.send()}catch(e){t=!1}return t},i._generateCapabilities=function(){if(null==i._capabilities){var t=document.createElement("audio");if(null==t.canPlayType)return null;if(null==i.context)if(window.AudioContext)i.context=new AudioContext;else{if(!window.webkitAudioContext)return null;i.context=new webkitAudioContext}null==i._scratchBuffer&&(i._scratchBuffer=i.context.createBuffer(1,1,22050)),i._compatibilitySetUp(),"ontouchstart"in window&&"running"!=i.context.state&&(i._unlock(),document.addEventListener("mousedown",i._unlock,!0),document.addEventListener("touchend",i._unlock,!0)),i._capabilities={panning:!0,volume:!0,tracks:-1};for(var e=createjs.Sound.SUPPORTED_EXTENSIONS,r=createjs.Sound.EXTENSION_MAP,n=0,s=e.length;n<s;n++){var a=e[n],o=r[a]||a;i._capabilities[a]="no"!=t.canPlayType("audio/"+a)&&""!=t.canPlayType("audio/"+a)||"no"!=t.canPlayType("audio/"+o)&&""!=t.canPlayType("audio/"+o)}i.context.destination.numberOfChannels<2&&(i._capabilities.panning=!1)}},i._compatibilitySetUp=function(){if(i._panningModel="equalpower",!i.context.createGain){i.context.createGain=i.context.createGainNode;var t=i.context.createBufferSource();t.__proto__.start=t.__proto__.noteGrainOn,t.__proto__.stop=t.__proto__.noteOff,i._panningModel=0}},i._unlock=function(){i._unlocked||(i.playEmptySound(),"running"==i.context.state&&(document.removeEventListener("mousedown",i._unlock,!0),document.removeEventListener("touchend",i._unlock,!0),i._unlocked=!0))},e.toString=function(){return"[WebAudioPlugin]"},e._addPropsToClasses=function(){var t=this._soundInstanceClass;t.context=this.context,t._scratchBuffer=i._scratchBuffer,t.destinationNode=this.gainNode,t._panningModel=this._panningModel,this._loaderClass.context=this.context},e._updateVolume=function(){var t=createjs.Sound._masterMute?0:this._volume;t!=this.gainNode.gain.value&&(this.gainNode.gain.value=t)},createjs.WebAudioPlugin=createjs.promote(t,"AbstractPlugin")}(),this.createjs=this.createjs||{},function(){"use strict";function t(){throw"HTMLAudioTagPool cannot be instantiated"}var e=t;function i(t){this._tags=[]}e._tags={},e._tagPool=new i,e._tagUsed={},e.get=function(t){var i=e._tags[t];return null==i?(i=e._tags[t]=e._tagPool.get()).src=t:e._tagUsed[t]?(i=e._tagPool.get()).src=t:e._tagUsed[t]=!0,i},e.set=function(t,i){i==e._tags[t]?e._tagUsed[t]=!1:e._tagPool.set(i)},e.remove=function(t){var i=e._tags[t];return null!=i&&(e._tagPool.set(i),delete e._tags[t],delete e._tagUsed[t],!0)},e.getDuration=function(t){var i=e._tags[t];return null!=i&&i.duration?1e3*i.duration:0},createjs.HTMLAudioTagPool=t;var r=i.prototype;r.constructor=i,r.get=function(){var t;return null==(t=0==this._tags.length?this._createTag():this._tags.pop()).parentNode&&document.body.appendChild(t),t},r.set=function(t){-1==createjs.indexOf(this._tags,t)&&(this._tags.src=null,this._tags.push(t))},r.toString=function(){return"[TagPool]"},r._createTag=function(){var t=document.createElement("audio");return t.autoplay=!1,t.preload="none",t}}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i,r){this.AbstractSoundInstance_constructor(t,e,i,r),this._audioSpriteStopTime=null,this._delayTimeoutId=null,this._endedHandler=createjs.proxy(this._handleSoundComplete,this),this._readyHandler=createjs.proxy(this._handleTagReady,this),this._stalledHandler=createjs.proxy(this._playFailed,this),this._audioSpriteEndHandler=createjs.proxy(this._handleAudioSpriteLoop,this),this._loopHandler=createjs.proxy(this._handleSoundComplete,this),i?this._audioSpriteStopTime=.001*(e+i):this._duration=createjs.HTMLAudioTagPool.getDuration(this.src)}var e=createjs.extend(t,createjs.AbstractSoundInstance);e.setMasterVolume=function(t){this._updateVolume()},e.setMasterMute=function(t){this._updateVolume()},e.toString=function(){return"[HTMLAudioSoundInstance]"},e._removeLooping=function(){null!=this._playbackResource&&(this._playbackResource.loop=!1,this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1))},e._addLooping=function(){null==this._playbackResource||this._audioSpriteStopTime||(this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),this._playbackResource.loop=!0)},e._handleCleanUp=function(){var t=this._playbackResource;if(null!=t){t.pause(),t.loop=!1,t.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),t.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1),t.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED,this._stalledHandler,!1),t.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),t.removeEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1);try{t.currentTime=this._startTime}catch(t){}createjs.HTMLAudioTagPool.set(this.src,t),this._playbackResource=null}},e._beginPlaying=function(t){return this._playbackResource=createjs.HTMLAudioTagPool.get(this.src),this.AbstractSoundInstance__beginPlaying(t)},e._handleSoundReady=function(t){if(4!==this._playbackResource.readyState){var e=this._playbackResource;return e.addEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1),e.addEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED,this._stalledHandler,!1),e.preload="auto",void e.load()}this._updateVolume(),this._playbackResource.currentTime=.001*(this._startTime+this._position),this._audioSpriteStopTime?this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1):(this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),0!=this._loop&&(this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),this._playbackResource.loop=!0)),this._playbackResource.play()},e._handleTagReady=function(t){this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1),this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED,this._stalledHandler,!1),this._handleSoundReady()},e._pause=function(){this._playbackResource.pause()},e._resume=function(){this._playbackResource.play()},e._updateVolume=function(){if(null!=this._playbackResource){var t=this._muted||createjs.Sound._masterMute?0:this._volume*createjs.Sound._masterVolume;t!=this._playbackResource.volume&&(this._playbackResource.volume=t)}},e._calculateCurrentPosition=function(){return 1e3*this._playbackResource.currentTime-this._startTime},e._updatePosition=function(){this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._handleSetPositionSeek,!1);try{this._playbackResource.currentTime=.001*(this._position+this._startTime)}catch(t){this._handleSetPositionSeek(null)}},e._handleSetPositionSeek=function(t){null!=this._playbackResource&&(this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._handleSetPositionSeek,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1))},e._handleAudioSpriteLoop=function(t){this._playbackResource.currentTime<=this._audioSpriteStopTime||(this._playbackResource.pause(),0==this._loop?this._handleSoundComplete(null):(this._position=0,this._loop--,this._playbackResource.currentTime=.001*this._startTime,this._paused||this._playbackResource.play(),this._sendEvent("loop")))},e._handleLoop=function(t){0==this._loop&&(this._playbackResource.loop=!1,this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1))},e._updateStartTime=function(){this._audioSpriteStopTime=.001*(this._startTime+this._duration),this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1))},e._updateDuration=function(){this._audioSpriteStopTime=.001*(this._startTime+this._duration),this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1))},e._setDurationFromSource=function(){this._duration=createjs.HTMLAudioTagPool.getDuration(this.src),this._playbackResource=null},createjs.HTMLAudioSoundInstance=createjs.promote(t,"AbstractSoundInstance")}(),this.createjs=this.createjs||{},function(){"use strict";function t(){this.AbstractPlugin_constructor(),this.defaultNumChannels=2,this._capabilities=i._capabilities,this._loaderClass=createjs.SoundLoader,this._soundInstanceClass=createjs.HTMLAudioSoundInstance}var e=createjs.extend(t,createjs.AbstractPlugin),i=t;i.MAX_INSTANCES=30,i._AUDIO_READY="canplaythrough",i._AUDIO_ENDED="ended",i._AUDIO_SEEKED="seeked",i._AUDIO_STALLED="stalled",i._TIME_UPDATE="timeupdate",i._capabilities=null,i.isSupported=function(){return i._generateCapabilities(),null!=i._capabilities},i._generateCapabilities=function(){if(null==i._capabilities){var t=document.createElement("audio");if(null==t.canPlayType)return null;i._capabilities={panning:!1,volume:!0,tracks:-1};for(var e=createjs.Sound.SUPPORTED_EXTENSIONS,r=createjs.Sound.EXTENSION_MAP,n=0,s=e.length;n<s;n++){var a=e[n],o=r[a]||a;i._capabilities[a]="no"!=t.canPlayType("audio/"+a)&&""!=t.canPlayType("audio/"+a)||"no"!=t.canPlayType("audio/"+o)&&""!=t.canPlayType("audio/"+o)}}},e.register=function(t){var e=createjs.HTMLAudioTagPool.get(t.src),i=this.AbstractPlugin_register(t);return i.setTag(e),i},e.removeSound=function(t){this.AbstractPlugin_removeSound(t),createjs.HTMLAudioTagPool.remove(t)},e.create=function(t,e,i){var r=this.AbstractPlugin_create(t,e,i);return r.setPlaybackResource(null),r},e.toString=function(){return"[HTMLAudioPlugin]"},e.setVolume=e.getVolume=e.setMute=null,createjs.HTMLAudioPlugin=createjs.promote(t,"AbstractPlugin")}(),this.createjs=this.createjs||{},createjs.extend=function(t,e){"use strict";function i(){this.constructor=t}return i.prototype=e.prototype,t.prototype=new i},this.createjs=this.createjs||{},createjs.promote=function(t,e){"use strict";var i=t.prototype,r=Object.getPrototypeOf&&Object.getPrototypeOf(i)||i.__proto__;if(r)for(var n in i[(e+="_")+"constructor"]=r.constructor,r)i.hasOwnProperty(n)&&"function"==typeof r[n]&&(i[e+n]=r[n]);return t},this.createjs=this.createjs||{},createjs.indexOf=function(t,e){"use strict";for(var i=0,r=t.length;r>i;i++)if(e===t[i])return i;return-1},this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.type=t,this.target=null,this.currentTarget=null,this.eventPhase=0,this.bubbles=!!e,this.cancelable=!!i,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.removed=!1}var e=t.prototype;e.preventDefault=function(){this.defaultPrevented=this.cancelable&&!0},e.stopPropagation=function(){this.propagationStopped=!0},e.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},e.remove=function(){this.removed=!0},e.clone=function(){return new t(this.type,this.bubbles,this.cancelable)},e.set=function(t){for(var e in t)this[e]=t[e];return this},e.toString=function(){return"[Event (type="+this.type+")]"},createjs.Event=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(){this._listeners=null,this._captureListeners=null}var e=t.prototype;t.initialize=function(t){t.addEventListener=e.addEventListener,t.on=e.on,t.removeEventListener=t.off=e.removeEventListener,t.removeAllEventListeners=e.removeAllEventListeners,t.hasEventListener=e.hasEventListener,t.dispatchEvent=e.dispatchEvent,t._dispatchEvent=e._dispatchEvent,t.willTrigger=e.willTrigger},e.addEventListener=function(t,e,i){var r,n=(r=i?this._captureListeners=this._captureListeners||{}:this._listeners=this._listeners||{})[t];return n&&this.removeEventListener(t,e,i),(n=r[t])?n.push(e):r[t]=[e],e},e.on=function(t,e,i,r,n,s){return e.handleEvent&&(i=i||e,e=e.handleEvent),i=i||this,this.addEventListener(t,function(t){e.call(i,t,n),r&&t.remove()},s)},e.removeEventListener=function(t,e,i){var r=i?this._captureListeners:this._listeners;if(r){var n=r[t];if(n)for(var s=0,a=n.length;a>s;s++)if(n[s]==e){1==a?delete r[t]:n.splice(s,1);break}}},e.off=e.removeEventListener,e.removeAllEventListeners=function(t){t?(this._listeners&&delete this._listeners[t],this._captureListeners&&delete this._captureListeners[t]):this._listeners=this._captureListeners=null},e.dispatchEvent=function(t,e,i){if("string"==typeof t){var r=this._listeners;if(!(e||r&&r[t]))return!0;t=new createjs.Event(t,e,i)}else t.target&&t.clone&&(t=t.clone());try{t.target=this}catch(t){}if(t.bubbles&&this.parent){for(var n=this,s=[n];n.parent;)s.push(n=n.parent);var a,o=s.length;for(a=o-1;a>=0&&!t.propagationStopped;a--)s[a]._dispatchEvent(t,1+(0==a));for(a=1;o>a&&!t.propagationStopped;a++)s[a]._dispatchEvent(t,3)}else this._dispatchEvent(t,2);return!t.defaultPrevented},e.hasEventListener=function(t){var e=this._listeners,i=this._captureListeners;return!!(e&&e[t]||i&&i[t])},e.willTrigger=function(t){for(var e=this;e;){if(e.hasEventListener(t))return!0;e=e.parent}return!1},e.toString=function(){return"[EventDispatcher]"},e._dispatchEvent=function(t,e){var i,r=1==e?this._captureListeners:this._listeners;if(t&&r){var n=r[t.type];if(!n||!(i=n.length))return;try{t.currentTarget=this}catch(t){}try{t.eventPhase=e}catch(t){}t.removed=!1,n=n.slice();for(var s=0;i>s&&!t.immediatePropagationStopped;s++){var a=n[s];a.handleEvent?a.handleEvent(t):a(t),t.removed&&(this.off(t.type,a,1==e),t.removed=!1)}}},createjs.EventDispatcher=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(){throw"Ticker cannot be instantiated."}t.RAF_SYNCHED="synched",t.RAF="raf",t.TIMEOUT="timeout",t.useRAF=!1,t.timingMode=null,t.maxDelta=0,t.paused=!1,t.removeEventListener=null,t.removeAllEventListeners=null,t.dispatchEvent=null,t.hasEventListener=null,t._listeners=null,createjs.EventDispatcher.initialize(t),t._addEventListener=t.addEventListener,t.addEventListener=function(){return!t._inited&&t.init(),t._addEventListener.apply(t,arguments)},t._inited=!1,t._startTime=0,t._pausedTime=0,t._ticks=0,t._pausedTicks=0,t._interval=50,t._lastTime=0,t._times=null,t._tickTimes=null,t._timerId=null,t._raf=!0,t.setInterval=function(e){t._interval=e,t._inited&&t._setupTick()},t.getInterval=function(){return t._interval},t.setFPS=function(e){t.setInterval(1e3/e)},t.getFPS=function(){return 1e3/t._interval};try{Object.defineProperties(t,{interval:{get:t.getInterval,set:t.setInterval},framerate:{get:t.getFPS,set:t.setFPS}})}catch(t){console.log(t)}t.init=function(){t._inited||(t._inited=!0,t._times=[],t._tickTimes=[],t._startTime=t._getTime(),t._times.push(t._lastTime=0),t.interval=t._interval)},t.reset=function(){if(t._raf){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame;e&&e(t._timerId)}else clearTimeout(t._timerId);t.removeAllEventListeners("tick"),t._timerId=t._times=t._tickTimes=null,t._startTime=t._lastTime=t._ticks=0,t._inited=!1},t.getMeasuredTickTime=function(e){var i=0,r=t._tickTimes;if(!r||r.length<1)return-1;e=Math.min(r.length,e||0|t.getFPS());for(var n=0;e>n;n++)i+=r[n];return i/e},t.getMeasuredFPS=function(e){var i=t._times;return!i||i.length<2?-1:(e=Math.min(i.length-1,e||0|t.getFPS()),1e3/((i[0]-i[e])/e))},t.setPaused=function(e){t.paused=e},t.getPaused=function(){return t.paused},t.getTime=function(e){return t._startTime?t._getTime()-(e?t._pausedTime:0):-1},t.getEventTime=function(e){return t._startTime?(t._lastTime||t._startTime)-(e?t._pausedTime:0):-1},t.getTicks=function(e){return t._ticks-(e?t._pausedTicks:0)},t._handleSynch=function(){t._timerId=null,t._setupTick(),t._getTime()-t._lastTime>=.97*(t._interval-1)&&t._tick()},t._handleRAF=function(){t._timerId=null,t._setupTick(),t._tick()},t._handleTimeout=function(){t._timerId=null,t._setupTick(),t._tick()},t._setupTick=function(){if(null==t._timerId){var e=t.timingMode||t.useRAF&&t.RAF_SYNCHED;if(e==t.RAF_SYNCHED||e==t.RAF){var i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(i)return t._timerId=i(e==t.RAF?t._handleRAF:t._handleSynch),void(t._raf=!0)}t._raf=!1,t._timerId=setTimeout(t._handleTimeout,t._interval)}},t._tick=function(){var e=t.paused,i=t._getTime(),r=i-t._lastTime;if(t._lastTime=i,t._ticks++,e&&(t._pausedTicks++,t._pausedTime+=r),t.hasEventListener("tick")){var n=new createjs.Event("tick"),s=t.maxDelta;n.delta=s&&r>s?s:r,n.paused=e,n.time=i,n.runTime=i-t._pausedTime,t.dispatchEvent(n)}for(t._tickTimes.unshift(t._getTime()-i);t._tickTimes.length>100;)t._tickTimes.pop();for(t._times.unshift(i);t._times.length>100;)t._times.pop()};var e=window.performance&&(performance.now||performance.mozNow||performance.msNow||performance.oNow||performance.webkitNow);t._getTime=function(){return(e&&e.call(performance)||(new Date).getTime())-t._startTime},createjs.Ticker=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(){throw"UID cannot be instantiated"}t._nextID=0,t.get=function(){return t._nextID++},createjs.UID=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i,r,n,s,a,o,l,h,u){this.Event_constructor(t,e,i),this.stageX=r,this.stageY=n,this.rawX=null==l?r:l,this.rawY=null==h?n:h,this.nativeEvent=s,this.pointerID=a,this.primary=!!o,this.relatedTarget=u}var e=createjs.extend(t,createjs.Event);e._get_localX=function(){return this.currentTarget.globalToLocal(this.rawX,this.rawY).x},e._get_localY=function(){return this.currentTarget.globalToLocal(this.rawX,this.rawY).y},e._get_isTouch=function(){return-1!==this.pointerID};try{Object.defineProperties(e,{localX:{get:e._get_localX},localY:{get:e._get_localY},isTouch:{get:e._get_isTouch}})}catch(t){}e.clone=function(){return new t(this.type,this.bubbles,this.cancelable,this.stageX,this.stageY,this.nativeEvent,this.pointerID,this.primary,this.rawX,this.rawY)},e.toString=function(){return"[MouseEvent (type="+this.type+" stageX="+this.stageX+" stageY="+this.stageY+")]"},createjs.MouseEvent=createjs.promote(t,"Event")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i,r,n,s){this.setValues(t,e,i,r,n,s)}var e=t.prototype;t.DEG_TO_RAD=Math.PI/180,t.identity=null,e.setValues=function(t,e,i,r,n,s){return this.a=null==t?1:t,this.b=e||0,this.c=i||0,this.d=null==r?1:r,this.tx=n||0,this.ty=s||0,this},e.append=function(t,e,i,r,n,s){var a=this.a,o=this.b,l=this.c,h=this.d;return(1!=t||0!=e||0!=i||1!=r)&&(this.a=a*t+l*e,this.b=o*t+h*e,this.c=a*i+l*r,this.d=o*i+h*r),this.tx=a*n+l*s+this.tx,this.ty=o*n+h*s+this.ty,this},e.prepend=function(t,e,i,r,n,s){var a=this.a,o=this.c,l=this.tx;return this.a=t*a+i*this.b,this.b=e*a+r*this.b,this.c=t*o+i*this.d,this.d=e*o+r*this.d,this.tx=t*l+i*this.ty+n,this.ty=e*l+r*this.ty+s,this},e.appendMatrix=function(t){return this.append(t.a,t.b,t.c,t.d,t.tx,t.ty)},e.prependMatrix=function(t){return this.prepend(t.a,t.b,t.c,t.d,t.tx,t.ty)},e.appendTransform=function(e,i,r,n,s,a,o,l,h){if(s%360)var u=s*t.DEG_TO_RAD,c=Math.cos(u),d=Math.sin(u);else c=1,d=0;return a||o?(a*=t.DEG_TO_RAD,o*=t.DEG_TO_RAD,this.append(Math.cos(o),Math.sin(o),-Math.sin(a),Math.cos(a),e,i),this.append(c*r,d*r,-d*n,c*n,0,0)):this.append(c*r,d*r,-d*n,c*n,e,i),(l||h)&&(this.tx-=l*this.a+h*this.c,this.ty-=l*this.b+h*this.d),this},e.prependTransform=function(e,i,r,n,s,a,o,l,h){if(s%360)var u=s*t.DEG_TO_RAD,c=Math.cos(u),d=Math.sin(u);else c=1,d=0;return(l||h)&&(this.tx-=l,this.ty-=h),a||o?(a*=t.DEG_TO_RAD,o*=t.DEG_TO_RAD,this.prepend(c*r,d*r,-d*n,c*n,0,0),this.prepend(Math.cos(o),Math.sin(o),-Math.sin(a),Math.cos(a),e,i)):this.prepend(c*r,d*r,-d*n,c*n,e,i),this},e.rotate=function(e){e*=t.DEG_TO_RAD;var i=Math.cos(e),r=Math.sin(e),n=this.a,s=this.b;return this.a=n*i+this.c*r,this.b=s*i+this.d*r,this.c=-n*r+this.c*i,this.d=-s*r+this.d*i,this},e.skew=function(e,i){return e*=t.DEG_TO_RAD,i*=t.DEG_TO_RAD,this.append(Math.cos(i),Math.sin(i),-Math.sin(e),Math.cos(e),0,0),this},e.scale=function(t,e){return this.a*=t,this.b*=t,this.c*=e,this.d*=e,this},e.translate=function(t,e){return this.tx+=this.a*t+this.c*e,this.ty+=this.b*t+this.d*e,this},e.identity=function(){return this.a=this.d=1,this.b=this.c=this.tx=this.ty=0,this},e.invert=function(){var t=this.a,e=this.b,i=this.c,r=this.d,n=this.tx,s=t*r-e*i;return this.a=r/s,this.b=-e/s,this.c=-i/s,this.d=t/s,this.tx=(i*this.ty-r*n)/s,this.ty=-(t*this.ty-e*n)/s,this},e.isIdentity=function(){return 0===this.tx&&0===this.ty&&1===this.a&&0===this.b&&0===this.c&&1===this.d},e.equals=function(t){return this.tx===t.tx&&this.ty===t.ty&&this.a===t.a&&this.b===t.b&&this.c===t.c&&this.d===t.d},e.transformPoint=function(t,e,i){return(i=i||{}).x=t*this.a+e*this.c+this.tx,i.y=t*this.b+e*this.d+this.ty,i},e.decompose=function(e){null==e&&(e={}),e.x=this.tx,e.y=this.ty,e.scaleX=Math.sqrt(this.a*this.a+this.b*this.b),e.scaleY=Math.sqrt(this.c*this.c+this.d*this.d);var i=Math.atan2(-this.c,this.d),r=Math.atan2(this.b,this.a);return 1e-5>Math.abs(1-i/r)?(e.rotation=r/t.DEG_TO_RAD,this.a<0&&this.d>=0&&(e.rotation+=e.rotation<=0?180:-180),e.skewX=e.skewY=0):(e.skewX=i/t.DEG_TO_RAD,e.skewY=r/t.DEG_TO_RAD),e},e.copy=function(t){return this.setValues(t.a,t.b,t.c,t.d,t.tx,t.ty)},e.clone=function(){return new t(this.a,this.b,this.c,this.d,this.tx,this.ty)},e.toString=function(){return"[Matrix2D (a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+")]"},t.identity=new t,createjs.Matrix2D=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i,r,n){this.setValues(t,e,i,r,n)}var e=t.prototype;e.setValues=function(t,e,i,r,n){return this.visible=null==t||!!t,this.alpha=null==e?1:e,this.shadow=i,this.compositeOperation=r,this.matrix=n||this.matrix&&this.matrix.identity()||new createjs.Matrix2D,this},e.append=function(t,e,i,r,n){return this.alpha*=e,this.shadow=i||this.shadow,this.compositeOperation=r||this.compositeOperation,this.visible=this.visible&&t,n&&this.matrix.appendMatrix(n),this},e.prepend=function(t,e,i,r,n){return this.alpha*=e,this.shadow=this.shadow||i,this.compositeOperation=this.compositeOperation||r,this.visible=this.visible&&t,n&&this.matrix.prependMatrix(n),this},e.identity=function(){return this.visible=!0,this.alpha=1,this.shadow=this.compositeOperation=null,this.matrix.identity(),this},e.clone=function(){return new t(this.alpha,this.shadow,this.compositeOperation,this.visible,this.matrix.clone())},createjs.DisplayProps=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e){this.setValues(t,e)}var e=t.prototype;e.setValues=function(t,e){return this.x=t||0,this.y=e||0,this},e.copy=function(t){return this.x=t.x,this.y=t.y,this},e.clone=function(){return new t(this.x,this.y)},e.toString=function(){return"[Point (x="+this.x+" y="+this.y+")]"},createjs.Point=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i,r){this.setValues(t,e,i,r)}var e=t.prototype;e.setValues=function(t,e,i,r){return this.x=t||0,this.y=e||0,this.width=i||0,this.height=r||0,this},e.extend=function(t,e,i,r){return r=r||0,t+(i=i||0)>this.x+this.width&&(this.width=t+i-this.x),e+r>this.y+this.height&&(this.height=e+r-this.y),t<this.x&&(this.width+=this.x-t,this.x=t),e<this.y&&(this.height+=this.y-e,this.y=e),this},e.pad=function(t,e,i,r){return this.x-=e,this.y-=t,this.width+=e+r,this.height+=t+i,this},e.copy=function(t){return this.setValues(t.x,t.y,t.width,t.height)},e.contains=function(t,e,i,r){return i=i||0,r=r||0,t>=this.x&&t+i<=this.x+this.width&&e>=this.y&&e+r<=this.y+this.height},e.union=function(t){return this.clone().extend(t.x,t.y,t.width,t.height)},e.intersection=function(e){var i=e.x,r=e.y,n=i+e.width,s=r+e.height;return this.x>i&&(i=this.x),this.y>r&&(r=this.y),this.x+this.width<n&&(n=this.x+this.width),this.y+this.height<s&&(s=this.y+this.height),i>=n||r>=s?null:new t(i,r,n-i,s-r)},e.intersects=function(t){return t.x<=this.x+this.width&&this.x<=t.x+t.width&&t.y<=this.y+this.height&&this.y<=t.y+t.height},e.isEmpty=function(){return this.width<=0||this.height<=0},e.clone=function(){return new t(this.x,this.y,this.width,this.height)},e.toString=function(){return"[Rectangle (x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+")]"},createjs.Rectangle=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i,r,n,s,a){t.addEventListener&&(this.target=t,this.overLabel=null==i?"over":i,this.outLabel=null==e?"out":e,this.downLabel=null==r?"down":r,this.play=n,this._isPressed=!1,this._isOver=!1,this._enabled=!1,t.mouseChildren=!1,this.enabled=!0,this.handleEvent({}),s&&(a&&(s.actionsEnabled=!1,s.gotoAndStop&&s.gotoAndStop(a)),t.hitArea=s))}var e=t.prototype;e.setEnabled=function(t){if(t!=this._enabled){var e=this.target;this._enabled=t,t?(e.cursor="pointer",e.addEventListener("rollover",this),e.addEventListener("rollout",this),e.addEventListener("mousedown",this),e.addEventListener("pressup",this),e._reset&&(e.__reset=e._reset,e._reset=this._reset)):(e.cursor=null,e.removeEventListener("rollover",this),e.removeEventListener("rollout",this),e.removeEventListener("mousedown",this),e.removeEventListener("pressup",this),e.__reset&&(e._reset=e.__reset,delete e.__reset))}},e.getEnabled=function(){return this._enabled};try{Object.defineProperties(e,{enabled:{get:e.getEnabled,set:e.setEnabled}})}catch(t){}e.toString=function(){return"[ButtonHelper]"},e.handleEvent=function(t){var e,i=this.target,r=t.type;"mousedown"==r?(this._isPressed=!0,e=this.downLabel):"pressup"==r?(this._isPressed=!1,e=this._isOver?this.overLabel:this.outLabel):"rollover"==r?(this._isOver=!0,e=this._isPressed?this.downLabel:this.overLabel):(this._isOver=!1,e=this._isPressed?this.overLabel:this.outLabel),this.play?i.gotoAndPlay&&i.gotoAndPlay(e):i.gotoAndStop&&i.gotoAndStop(e)},e._reset=function(){var t=this.paused;this.__reset(),this.paused=t},createjs.ButtonHelper=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i,r){this.color=t||"black",this.offsetX=e||0,this.offsetY=i||0,this.blur=r||0}var e=t.prototype;t.identity=new t("transparent",0,0,0),e.toString=function(){return"[Shadow]"},e.clone=function(){return new t(this.color,this.offsetX,this.offsetY,this.blur)},createjs.Shadow=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.EventDispatcher_constructor(),this.complete=!0,this.framerate=0,this._animations=null,this._frames=null,this._images=null,this._data=null,this._loadCount=0,this._frameHeight=0,this._frameWidth=0,this._numFrames=0,this._regX=0,this._regY=0,this._spacing=0,this._margin=0,this._parseData(t)}var e=createjs.extend(t,createjs.EventDispatcher);e.getAnimations=function(){return this._animations.slice()};try{Object.defineProperties(e,{animations:{get:e.getAnimations}})}catch(t){}e.getNumFrames=function(t){if(null==t)return this._frames?this._frames.length:this._numFrames||0;var e=this._data[t];return null==e?0:e.frames.length},e.getAnimation=function(t){return this._data[t]},e.getFrame=function(t){var e;return this._frames&&(e=this._frames[t])?e:null},e.getFrameBounds=function(t,e){var i=this.getFrame(t);return i?(e||new createjs.Rectangle).setValues(-i.regX,-i.regY,i.rect.width,i.rect.height):null},e.toString=function(){return"[SpriteSheet]"},e.clone=function(){throw"SpriteSheet cannot be cloned."},e._parseData=function(t){var e,i,r,n;if(null!=t){if(this.framerate=t.framerate||0,t.images&&(i=t.images.length)>0)for(n=this._images=[],e=0;i>e;e++){var s=t.images[e];if("string"==typeof s){var a=s;(s=document.createElement("img")).src=a}n.push(s),s.getContext||s.naturalWidth||(this._loadCount++,this.complete=!1,function(t,e){s.onload=function(){t._handleImageLoad(e)}}(this,a),function(t,e){s.onerror=function(){t._handleImageError(e)}}(this,a))}if(null==t.frames);else if(Array.isArray(t.frames))for(this._frames=[],e=0,i=(n=t.frames).length;i>e;e++){var o=n[e];this._frames.push({image:this._images[o[4]?o[4]:0],rect:new createjs.Rectangle(o[0],o[1],o[2],o[3]),regX:o[5]||0,regY:o[6]||0})}else r=t.frames,this._frameWidth=r.width,this._frameHeight=r.height,this._regX=r.regX||0,this._regY=r.regY||0,this._spacing=r.spacing||0,this._margin=r.margin||0,this._numFrames=r.count,0==this._loadCount&&this._calculateFrames();var l;if(this._animations=[],null!=(r=t.animations))for(l in this._data={},r){var h={name:l},u=r[l];if("number"==typeof u)n=h.frames=[u];else if(Array.isArray(u))if(1==u.length)h.frames=[u[0]];else for(h.speed=u[3],h.next=u[2],n=h.frames=[],e=u[0];e<=u[1];e++)n.push(e);else{h.speed=u.speed,h.next=u.next;var c=u.frames;n=h.frames="number"==typeof c?[c]:c.slice(0)}(!0===h.next||void 0===h.next)&&(h.next=l),(!1===h.next||n.length<2&&h.next==l)&&(h.next=null),h.speed||(h.speed=1),this._animations.push(l),this._data[l]=h}}},e._handleImageLoad=function(t){0==--this._loadCount&&(this._calculateFrames(),this.complete=!0,this.dispatchEvent("complete"))},e._handleImageError=function(t){var e=new createjs.Event("error");e.src=t,this.dispatchEvent(e),0==--this._loadCount&&this.dispatchEvent("complete")},e._calculateFrames=function(){if(!this._frames&&0!=this._frameWidth){this._frames=[];var t=this._numFrames||1e5,e=0,i=this._frameWidth,r=this._frameHeight,n=this._spacing,s=this._margin;t:for(var a=0,o=this._images;a<o.length;a++)for(var l=o[a],h=l.width,u=l.height,c=s;u-s-r>=c;){for(var d=s;h-s-i>=d;){if(e>=t)break t;e++,this._frames.push({image:l,rect:new createjs.Rectangle(d,c,i,r),regX:this._regX,regY:this._regY}),d+=i+n}c+=r+n}this._numFrames=e}},createjs.SpriteSheet=createjs.promote(t,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function t(){this.command=null,this._stroke=null,this._strokeStyle=null,this._oldStrokeStyle=null,this._strokeDash=null,this._oldStrokeDash=null,this._strokeIgnoreScale=!1,this._fill=null,this._instructions=[],this._commitIndex=0,this._activeInstructions=[],this._dirty=!1,this._storeIndex=0,this.clear()}var e=t.prototype,i=t;t.getRGB=function(t,e,i,r){return null!=t&&null==i&&(r=e,i=255&t,e=t>>8&255,t=t>>16&255),null==r?"rgb("+t+","+e+","+i+")":"rgba("+t+","+e+","+i+","+r+")"},t.getHSL=function(t,e,i,r){return null==r?"hsl("+t%360+","+e+"%,"+i+"%)":"hsla("+t%360+","+e+"%,"+i+"%,"+r+")"},t.BASE_64={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,a:26,b:27,c:28,d:29,e:30,f:31,g:32,h:33,i:34,j:35,k:36,l:37,m:38,n:39,o:40,p:41,q:42,r:43,s:44,t:45,u:46,v:47,w:48,x:49,y:50,z:51,0:52,1:53,2:54,3:55,4:56,5:57,6:58,7:59,8:60,9:61,"+":62,"/":63},t.STROKE_CAPS_MAP=["butt","round","square"],t.STROKE_JOINTS_MAP=["miter","round","bevel"];var r=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");r.getContext&&(t._ctx=r.getContext("2d"),r.width=r.height=1),e.getInstructions=function(){return this._updateInstructions(),this._instructions};try{Object.defineProperties(e,{instructions:{get:e.getInstructions}})}catch(t){}e.isEmpty=function(){return!(this._instructions.length||this._activeInstructions.length)},e.draw=function(t,e){this._updateInstructions();for(var i=this._instructions,r=this._storeIndex,n=i.length;n>r;r++)i[r].exec(t,e)},e.drawAsPath=function(t){this._updateInstructions();for(var e,i=this._instructions,r=this._storeIndex,n=i.length;n>r;r++)!1!==(e=i[r]).path&&e.exec(t)},e.moveTo=function(t,e){return this.append(new i.MoveTo(t,e),!0)},e.lineTo=function(t,e){return this.append(new i.LineTo(t,e))},e.arcTo=function(t,e,r,n,s){return this.append(new i.ArcTo(t,e,r,n,s))},e.arc=function(t,e,r,n,s,a){return this.append(new i.Arc(t,e,r,n,s,a))},e.quadraticCurveTo=function(t,e,r,n){return this.append(new i.QuadraticCurveTo(t,e,r,n))},e.bezierCurveTo=function(t,e,r,n,s,a){return this.append(new i.BezierCurveTo(t,e,r,n,s,a))},e.rect=function(t,e,r,n){return this.append(new i.Rect(t,e,r,n))},e.closePath=function(){return this._activeInstructions.length?this.append(new i.ClosePath):this},e.clear=function(){return this._instructions.length=this._activeInstructions.length=this._commitIndex=0,this._strokeStyle=this._oldStrokeStyle=this._stroke=this._fill=this._strokeDash=this._oldStrokeDash=null,this._dirty=this._strokeIgnoreScale=!1,this},e.beginFill=function(t){return this._setFill(t?new i.Fill(t):null)},e.beginLinearGradientFill=function(t,e,r,n,s,a){return this._setFill((new i.Fill).linearGradient(t,e,r,n,s,a))},e.beginRadialGradientFill=function(t,e,r,n,s,a,o,l){return this._setFill((new i.Fill).radialGradient(t,e,r,n,s,a,o,l))},e.beginBitmapFill=function(t,e,r){return this._setFill(new i.Fill(null,r).bitmap(t,e))},e.endFill=function(){return this.beginFill()},e.setStrokeStyle=function(t,e,r,n,s){return this._updateInstructions(!0),this._strokeStyle=this.command=new i.StrokeStyle(t,e,r,n,s),this._stroke&&(this._stroke.ignoreScale=s),this._strokeIgnoreScale=s,this},e.setStrokeDash=function(t,e){return this._updateInstructions(!0),this._strokeDash=this.command=new i.StrokeDash(t,e),this},e.beginStroke=function(t){return this._setStroke(t?new i.Stroke(t):null)},e.beginLinearGradientStroke=function(t,e,r,n,s,a){return this._setStroke((new i.Stroke).linearGradient(t,e,r,n,s,a))},e.beginRadialGradientStroke=function(t,e,r,n,s,a,o,l){return this._setStroke((new i.Stroke).radialGradient(t,e,r,n,s,a,o,l))},e.beginBitmapStroke=function(t,e){return this._setStroke((new i.Stroke).bitmap(t,e))},e.endStroke=function(){return this.beginStroke()},e.curveTo=e.quadraticCurveTo,e.drawRect=e.rect,e.drawRoundRect=function(t,e,i,r,n){return this.drawRoundRectComplex(t,e,i,r,n,n,n,n)},e.drawRoundRectComplex=function(t,e,r,n,s,a,o,l){return this.append(new i.RoundRect(t,e,r,n,s,a,o,l))},e.drawCircle=function(t,e,r){return this.append(new i.Circle(t,e,r))},e.drawEllipse=function(t,e,r,n){return this.append(new i.Ellipse(t,e,r,n))},e.drawPolyStar=function(t,e,r,n,s,a){return this.append(new i.PolyStar(t,e,r,n,s,a))},e.append=function(t,e){return this._activeInstructions.push(t),this.command=t,e||(this._dirty=!0),this},e.decodePath=function(e){for(var i=[this.moveTo,this.lineTo,this.quadraticCurveTo,this.bezierCurveTo,this.closePath],r=[2,2,4,6,0],n=0,s=e.length,a=[],o=0,l=0,h=t.BASE_64;s>n;){var u=e.charAt(n),c=h[u],d=c>>3,p=i[d];if(!p||3&c)throw"bad path data (@"+n+"): "+u;var f=r[d];d||(o=l=0),a.length=0,n++;for(var _=2+(c>>2&1),m=0;f>m;m++){var g=h[e.charAt(n)],v=g>>5?-1:1;g=(31&g)<<6|h[e.charAt(n+1)],3==_&&(g=g<<6|h[e.charAt(n+2)]),g=v*g/10,m%2?o=g+=o:l=g+=l,a[m]=g,n+=_}p.apply(this,a)}return this},e.store=function(){return this._updateInstructions(!0),this._storeIndex=this._instructions.length,this},e.unstore=function(){return this._storeIndex=0,this},e.clone=function(){var e=new t;return e.command=this.command,e._stroke=this._stroke,e._strokeStyle=this._strokeStyle,e._strokeDash=this._strokeDash,e._strokeIgnoreScale=this._strokeIgnoreScale,e._fill=this._fill,e._instructions=this._instructions.slice(),e._commitIndex=this._commitIndex,e._activeInstructions=this._activeInstructions.slice(),e._dirty=this._dirty,e._storeIndex=this._storeIndex,e},e.toString=function(){return"[Graphics]"},e.mt=e.moveTo,e.lt=e.lineTo,e.at=e.arcTo,e.bt=e.bezierCurveTo,e.qt=e.quadraticCurveTo,e.a=e.arc,e.r=e.rect,e.cp=e.closePath,e.c=e.clear,e.f=e.beginFill,e.lf=e.beginLinearGradientFill,e.rf=e.beginRadialGradientFill,e.bf=e.beginBitmapFill,e.ef=e.endFill,e.ss=e.setStrokeStyle,e.sd=e.setStrokeDash,e.s=e.beginStroke,e.ls=e.beginLinearGradientStroke,e.rs=e.beginRadialGradientStroke,e.bs=e.beginBitmapStroke,e.es=e.endStroke,e.dr=e.drawRect,e.rr=e.drawRoundRect,e.rc=e.drawRoundRectComplex,e.dc=e.drawCircle,e.de=e.drawEllipse,e.dp=e.drawPolyStar,e.p=e.decodePath,e._updateInstructions=function(e){var i=this._instructions,r=this._activeInstructions,n=this._commitIndex;if(this._dirty&&r.length){i.length=n,i.push(t.beginCmd);var s=r.length,a=i.length;i.length=a+s;for(var o=0;s>o;o++)i[o+a]=r[o];this._fill&&i.push(this._fill),this._stroke&&(this._strokeDash!==this._oldStrokeDash&&(this._oldStrokeDash=this._strokeDash,i.push(this._strokeDash)),this._strokeStyle!==this._oldStrokeStyle&&(this._oldStrokeStyle=this._strokeStyle,i.push(this._strokeStyle)),i.push(this._stroke)),this._dirty=!1}e&&(r.length=0,this._commitIndex=i.length)},e._setFill=function(t){return this._updateInstructions(!0),this.command=this._fill=t,this},e._setStroke=function(t){return this._updateInstructions(!0),(this.command=this._stroke=t)&&(t.ignoreScale=this._strokeIgnoreScale),this},(i.LineTo=function(t,e){this.x=t,this.y=e}).prototype.exec=function(t){t.lineTo(this.x,this.y)},(i.MoveTo=function(t,e){this.x=t,this.y=e}).prototype.exec=function(t){t.moveTo(this.x,this.y)},(i.ArcTo=function(t,e,i,r,n){this.x1=t,this.y1=e,this.x2=i,this.y2=r,this.radius=n}).prototype.exec=function(t){t.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)},(i.Arc=function(t,e,i,r,n,s){this.x=t,this.y=e,this.radius=i,this.startAngle=r,this.endAngle=n,this.anticlockwise=!!s}).prototype.exec=function(t){t.arc(this.x,this.y,this.radius,this.startAngle,this.endAngle,this.anticlockwise)},(i.QuadraticCurveTo=function(t,e,i,r){this.cpx=t,this.cpy=e,this.x=i,this.y=r}).prototype.exec=function(t){t.quadraticCurveTo(this.cpx,this.cpy,this.x,this.y)},(i.BezierCurveTo=function(t,e,i,r,n,s){this.cp1x=t,this.cp1y=e,this.cp2x=i,this.cp2y=r,this.x=n,this.y=s}).prototype.exec=function(t){t.bezierCurveTo(this.cp1x,this.cp1y,this.cp2x,this.cp2y,this.x,this.y)},(i.Rect=function(t,e,i,r){this.x=t,this.y=e,this.w=i,this.h=r}).prototype.exec=function(t){t.rect(this.x,this.y,this.w,this.h)},(i.ClosePath=function(){}).prototype.exec=function(t){t.closePath()},(i.BeginPath=function(){}).prototype.exec=function(t){t.beginPath()},(e=(i.Fill=function(t,e){this.style=t,this.matrix=e}).prototype).exec=function(t){if(this.style){t.fillStyle=this.style;var e=this.matrix;e&&(t.save(),t.transform(e.a,e.b,e.c,e.d,e.tx,e.ty)),t.fill(),e&&t.restore()}},e.linearGradient=function(e,i,r,n,s,a){for(var o=this.style=t._ctx.createLinearGradient(r,n,s,a),l=0,h=e.length;h>l;l++)o.addColorStop(i[l],e[l]);return o.props={colors:e,ratios:i,x0:r,y0:n,x1:s,y1:a,type:"linear"},this},e.radialGradient=function(e,i,r,n,s,a,o,l){for(var h=this.style=t._ctx.createRadialGradient(r,n,s,a,o,l),u=0,c=e.length;c>u;u++)h.addColorStop(i[u],e[u]);return h.props={colors:e,ratios:i,x0:r,y0:n,r0:s,x1:a,y1:o,r1:l,type:"radial"},this},e.bitmap=function(e,i){(e.naturalWidth||e.getContext||e.readyState>=2)&&((this.style=t._ctx.createPattern(e,i||"")).props={image:e,repetition:i,type:"bitmap"});return this},e.path=!1,(e=(i.Stroke=function(t,e){this.style=t,this.ignoreScale=e}).prototype).exec=function(t){this.style&&(t.strokeStyle=this.style,this.ignoreScale&&(t.save(),t.setTransform(1,0,0,1,0,0)),t.stroke(),this.ignoreScale&&t.restore())},e.linearGradient=i.Fill.prototype.linearGradient,e.radialGradient=i.Fill.prototype.radialGradient,e.bitmap=i.Fill.prototype.bitmap,e.path=!1,(e=(i.StrokeStyle=function(t,e,i,r,n){this.width=t,this.caps=e,this.joints=i,this.miterLimit=r,this.ignoreScale=n}).prototype).exec=function(e){e.lineWidth=null==this.width?"1":this.width,e.lineCap=null==this.caps?"butt":isNaN(this.caps)?this.caps:t.STROKE_CAPS_MAP[this.caps],e.lineJoin=null==this.joints?"miter":isNaN(this.joints)?this.joints:t.STROKE_JOINTS_MAP[this.joints],e.miterLimit=null==this.miterLimit?"10":this.miterLimit,e.ignoreScale=null!=this.ignoreScale&&this.ignoreScale},e.path=!1,(i.StrokeDash=function(t,e){this.segments=t,this.offset=e||0}).prototype.exec=function(t){t.setLineDash&&(t.setLineDash(this.segments||i.StrokeDash.EMPTY_SEGMENTS),t.lineDashOffset=this.offset||0)},i.StrokeDash.EMPTY_SEGMENTS=[],(i.RoundRect=function(t,e,i,r,n,s,a,o){this.x=t,this.y=e,this.w=i,this.h=r,this.radiusTL=n,this.radiusTR=s,this.radiusBR=a,this.radiusBL=o}).prototype.exec=function(t){var e=(h>l?l:h)/2,i=0,r=0,n=0,s=0,a=this.x,o=this.y,l=this.w,h=this.h,u=this.radiusTL,c=this.radiusTR,d=this.radiusBR,p=this.radiusBL;0>u&&(u*=i=-1),u>e&&(u=e),0>c&&(c*=r=-1),c>e&&(c=e),0>d&&(d*=n=-1),d>e&&(d=e),0>p&&(p*=s=-1),p>e&&(p=e),t.moveTo(a+l-c,o),t.arcTo(a+l+c*r,o-c*r,a+l,o+c,c),t.lineTo(a+l,o+h-d),t.arcTo(a+l+d*n,o+h+d*n,a+l-d,o+h,d),t.lineTo(a+p,o+h),t.arcTo(a-p*s,o+h+p*s,a,o+h-p,p),t.lineTo(a,o+u),t.arcTo(a-u*i,o-u*i,a+u,o,u),t.closePath()},(i.Circle=function(t,e,i){this.x=t,this.y=e,this.radius=i}).prototype.exec=function(t){t.arc(this.x,this.y,this.radius,0,2*Math.PI)},(i.Ellipse=function(t,e,i,r){this.x=t,this.y=e,this.w=i,this.h=r}).prototype.exec=function(t){var e=this.x,i=this.y,r=this.w,n=this.h,s=r/2*.5522848,a=n/2*.5522848,o=e+r,l=i+n,h=e+r/2,u=i+n/2;t.moveTo(e,u),t.bezierCurveTo(e,u-a,h-s,i,h,i),t.bezierCurveTo(h+s,i,o,u-a,o,u),t.bezierCurveTo(o,u+a,h+s,l,h,l),t.bezierCurveTo(h-s,l,e,u+a,e,u)},(i.PolyStar=function(t,e,i,r,n,s){this.x=t,this.y=e,this.radius=i,this.sides=r,this.pointSize=n,this.angle=s}).prototype.exec=function(t){var e=this.x,i=this.y,r=this.radius,n=(this.angle||0)/180*Math.PI,s=this.sides,a=1-(this.pointSize||0),o=Math.PI/s;t.moveTo(e+Math.cos(n)*r,i+Math.sin(n)*r);for(var l=0;s>l;l++)n+=o,1!=a&&t.lineTo(e+Math.cos(n)*r*a,i+Math.sin(n)*r*a),n+=o,t.lineTo(e+Math.cos(n)*r,i+Math.sin(n)*r);t.closePath()},t.beginCmd=new i.BeginPath,createjs.Graphics=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(){this.EventDispatcher_constructor(),this.alpha=1,this.cacheCanvas=null,this.cacheID=0,this.id=createjs.UID.get(),this.mouseEnabled=!0,this.tickEnabled=!0,this.name=null,this.parent=null,this.regX=0,this.regY=0,this.rotation=0,this.scaleX=1,this.scaleY=1,this.skewX=0,this.skewY=0,this.shadow=null,this.visible=!0,this.x=0,this.y=0,this.transformMatrix=null,this.compositeOperation=null,this.snapToPixel=!0,this.filters=null,this.mask=null,this.hitArea=null,this.cursor=null,this._cacheOffsetX=0,this._cacheOffsetY=0,this._filterOffsetX=0,this._filterOffsetY=0,this._cacheScale=1,this._cacheDataURLID=0,this._cacheDataURL=null,this._props=new createjs.DisplayProps,this._rectangle=new createjs.Rectangle,this._bounds=null}var e=createjs.extend(t,createjs.EventDispatcher);t._MOUSE_EVENTS=["click","dblclick","mousedown","mouseout","mouseover","pressmove","pressup","rollout","rollover"],t.suppressCrossDomainErrors=!1,t._snapToPixelEnabled=!1;var i=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");i.getContext&&(t._hitTestCanvas=i,t._hitTestContext=i.getContext("2d"),i.width=i.height=1),t._nextCacheID=1,e.getStage=function(){for(var t=this,e=createjs.Stage;t.parent;)t=t.parent;return t instanceof e?t:null};try{Object.defineProperties(e,{stage:{get:e.getStage}})}catch(t){}e.isVisible=function(){return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY)},e.draw=function(t,e){var i=this.cacheCanvas;if(e||!i)return!1;var r=this._cacheScale;return t.drawImage(i,this._cacheOffsetX+this._filterOffsetX,this._cacheOffsetY+this._filterOffsetY,i.width/r,i.height/r),!0},e.updateContext=function(e){var i=this.mask,r=this._props.matrix;i&&i.graphics&&!i.graphics.isEmpty()&&(i.getMatrix(r),e.transform(r.a,r.b,r.c,r.d,r.tx,r.ty),i.graphics.drawAsPath(e),e.clip(),r.invert(),e.transform(r.a,r.b,r.c,r.d,r.tx,r.ty)),this.getMatrix(r);var n=r.tx,s=r.ty;t._snapToPixelEnabled&&this.snapToPixel&&(n=n+(0>n?-.5:.5)|0,s=s+(0>s?-.5:.5)|0),e.transform(r.a,r.b,r.c,r.d,n,s),e.globalAlpha*=this.alpha,this.compositeOperation&&(e.globalCompositeOperation=this.compositeOperation),this.shadow&&this._applyShadow(e,this.shadow)},e.cache=function(t,e,i,r,n){n=n||1,this.cacheCanvas||(this.cacheCanvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas")),this._cacheWidth=i,this._cacheHeight=r,this._cacheOffsetX=t,this._cacheOffsetY=e,this._cacheScale=n,this.updateCache()},e.updateCache=function(e){var i=this.cacheCanvas;if(!i)throw"cache() must be called before updateCache()";var r=this._cacheScale,n=this._cacheOffsetX*r,s=this._cacheOffsetY*r,a=this._cacheWidth,o=this._cacheHeight,l=i.getContext("2d"),h=this._getFilterBounds();n+=this._filterOffsetX=h.x,s+=this._filterOffsetY=h.y,a=Math.ceil(a*r)+h.width,o=Math.ceil(o*r)+h.height,a!=i.width||o!=i.height?(i.width=a,i.height=o):e||l.clearRect(0,0,a+1,o+1),l.save(),l.globalCompositeOperation=e,l.setTransform(r,0,0,r,-n,-s),this.draw(l,!0),this._applyFilters(),l.restore(),this.cacheID=t._nextCacheID++},e.uncache=function(){this._cacheDataURL=this.cacheCanvas=null,this.cacheID=this._cacheOffsetX=this._cacheOffsetY=this._filterOffsetX=this._filterOffsetY=0,this._cacheScale=1},e.getCacheDataURL=function(){return this.cacheCanvas?(this.cacheID!=this._cacheDataURLID&&(this._cacheDataURL=this.cacheCanvas.toDataURL()),this._cacheDataURL):null},e.localToGlobal=function(t,e,i){return this.getConcatenatedMatrix(this._props.matrix).transformPoint(t,e,i||new createjs.Point)},e.globalToLocal=function(t,e,i){return this.getConcatenatedMatrix(this._props.matrix).invert().transformPoint(t,e,i||new createjs.Point)},e.localToLocal=function(t,e,i,r){return r=this.localToGlobal(t,e,r),i.globalToLocal(r.x,r.y,r)},e.setTransform=function(t,e,i,r,n,s,a,o,l){return this.x=t||0,this.y=e||0,this.scaleX=null==i?1:i,this.scaleY=null==r?1:r,this.rotation=n||0,this.skewX=s||0,this.skewY=a||0,this.regX=o||0,this.regY=l||0,this},e.getMatrix=function(t){var e=this,i=t&&t.identity()||new createjs.Matrix2D;return e.transformMatrix?i.copy(e.transformMatrix):i.appendTransform(e.x,e.y,e.scaleX,e.scaleY,e.rotation,e.skewX,e.skewY,e.regX,e.regY)},e.getConcatenatedMatrix=function(t){for(var e=this,i=this.getMatrix(t);e=e.parent;)i.prependMatrix(e.getMatrix(e._props.matrix));return i},e.getConcatenatedDisplayProps=function(t){t=t?t.identity():new createjs.DisplayProps;for(var e=this,i=e.getMatrix(t.matrix);t.prepend(e.visible,e.alpha,e.shadow,e.compositeOperation),e!=this&&i.prependMatrix(e.getMatrix(e._props.matrix)),e=e.parent;);return t},e.hitTest=function(e,i){var r=t._hitTestContext;r.setTransform(1,0,0,1,-e,-i),this.draw(r);var n=this._testHit(r);return r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,2,2),n},e.set=function(t){for(var e in t)this[e]=t[e];return this},e.getBounds=function(){if(this._bounds)return this._rectangle.copy(this._bounds);var t=this.cacheCanvas;if(t){var e=this._cacheScale;return this._rectangle.setValues(this._cacheOffsetX,this._cacheOffsetY,t.width/e,t.height/e)}return null},e.getTransformedBounds=function(){return this._getBounds()},e.setBounds=function(t,e,i,r){null==t&&(this._bounds=t),this._bounds=(this._bounds||new createjs.Rectangle).setValues(t,e,i,r)},e.clone=function(){return this._cloneProps(new t)},e.toString=function(){return"[DisplayObject (name="+this.name+")]"},e._cloneProps=function(t){return t.alpha=this.alpha,t.mouseEnabled=this.mouseEnabled,t.tickEnabled=this.tickEnabled,t.name=this.name,t.regX=this.regX,t.regY=this.regY,t.rotation=this.rotation,t.scaleX=this.scaleX,t.scaleY=this.scaleY,t.shadow=this.shadow,t.skewX=this.skewX,t.skewY=this.skewY,t.visible=this.visible,t.x=this.x,t.y=this.y,t.compositeOperation=this.compositeOperation,t.snapToPixel=this.snapToPixel,t.filters=null==this.filters?null:this.filters.slice(0),t.mask=this.mask,t.hitArea=this.hitArea,t.cursor=this.cursor,t._bounds=this._bounds,t},e._applyShadow=function(t,e){e=e||Shadow.identity,t.shadowColor=e.color,t.shadowOffsetX=e.offsetX,t.shadowOffsetY=e.offsetY,t.shadowBlur=e.blur},e._tick=function(t){var e=this._listeners;e&&e.tick&&(t.target=null,t.propagationStopped=t.immediatePropagationStopped=!1,this.dispatchEvent(t))},e._testHit=function(e){try{var i=e.getImageData(0,0,1,1).data[3]>1}catch(e){if(!t.suppressCrossDomainErrors)throw"An error has occurred. This is most likely due to security restrictions on reading canvas pixel data with local or cross-domain images."}return i},e._applyFilters=function(){if(this.filters&&0!=this.filters.length&&this.cacheCanvas)for(var t=this.filters.length,e=this.cacheCanvas.getContext("2d"),i=this.cacheCanvas.width,r=this.cacheCanvas.height,n=0;t>n;n++)this.filters[n].applyFilter(e,0,0,i,r)},e._getFilterBounds=function(t){var e,i=this.filters,r=this._rectangle.setValues(0,0,0,0);if(!i||!(e=i.length))return r;for(var n=0;e>n;n++){var s=this.filters[n];s.getBounds&&s.getBounds(r)}return r},e._getBounds=function(t,e){return this._transformBounds(this.getBounds(),t,e)},e._transformBounds=function(t,e,i){if(!t)return t;var r=t.x,n=t.y,s=t.width,a=t.height,o=this._props.matrix;o=i?o.identity():this.getMatrix(o),(r||n)&&o.appendTransform(0,0,1,1,0,0,0,-r,-n),e&&o.prependMatrix(e);var l=s*o.a,h=s*o.b,u=a*o.c,c=a*o.d,d=o.tx,p=o.ty,f=d,_=d,m=p,g=p;return(r=l+d)<f?f=r:r>_&&(_=r),(r=l+u+d)<f?f=r:r>_&&(_=r),(r=u+d)<f?f=r:r>_&&(_=r),(n=h+p)<m?m=n:n>g&&(g=n),(n=h+c+p)<m?m=n:n>g&&(g=n),(n=c+p)<m?m=n:n>g&&(g=n),t.setValues(f,m,_-f,g-m)},e._hasMouseEventListener=function(){for(var e=t._MOUSE_EVENTS,i=0,r=e.length;r>i;i++)if(this.hasEventListener(e[i]))return!0;return!!this.cursor},createjs.DisplayObject=createjs.promote(t,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function t(){this.DisplayObject_constructor(),this.children=[],this.mouseChildren=!0,this.tickChildren=!0}var e=createjs.extend(t,createjs.DisplayObject);e.getNumChildren=function(){return this.children.length};try{Object.defineProperties(e,{numChildren:{get:e.getNumChildren}})}catch(t){}e.initialize=t,e.isVisible=function(){var t=this.cacheCanvas||this.children.length;return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&t)},e.draw=function(t,e){if(this.DisplayObject_draw(t,e))return!0;for(var i=this.children.slice(),r=0,n=i.length;n>r;r++){var s=i[r];s.isVisible()&&(t.save(),s.updateContext(t),s.draw(t),t.restore())}return!0},e.addChild=function(t){if(null==t)return t;var e=arguments.length;if(e>1){for(var i=0;e>i;i++)this.addChild(arguments[i]);return arguments[e-1]}return t.parent&&t.parent.removeChild(t),t.parent=this,this.children.push(t),t.dispatchEvent("added"),t},e.addChildAt=function(t,e){var i=arguments.length,r=arguments[i-1];if(0>r||r>this.children.length)return arguments[i-2];if(i>2){for(var n=0;i-1>n;n++)this.addChildAt(arguments[n],r+n);return arguments[i-2]}return t.parent&&t.parent.removeChild(t),t.parent=this,this.children.splice(e,0,t),t.dispatchEvent("added"),t},e.removeChild=function(t){var e=arguments.length;if(e>1){for(var i=!0,r=0;e>r;r++)i=i&&this.removeChild(arguments[r]);return i}return this.removeChildAt(createjs.indexOf(this.children,t))},e.removeChildAt=function(t){var e=arguments.length;if(e>1){for(var i=[],r=0;e>r;r++)i[r]=arguments[r];i.sort(function(t,e){return e-t});var n=!0;for(r=0;e>r;r++)n=n&&this.removeChildAt(i[r]);return n}if(0>t||t>this.children.length-1)return!1;var s=this.children[t];return s&&(s.parent=null),this.children.splice(t,1),s.dispatchEvent("removed"),!0},e.removeAllChildren=function(){for(var t=this.children;t.length;)this.removeChildAt(0)},e.getChildAt=function(t){return this.children[t]},e.getChildByName=function(t){for(var e=this.children,i=0,r=e.length;r>i;i++)if(e[i].name==t)return e[i];return null},e.sortChildren=function(t){this.children.sort(t)},e.getChildIndex=function(t){return createjs.indexOf(this.children,t)},e.swapChildrenAt=function(t,e){var i=this.children,r=i[t],n=i[e];r&&n&&(i[t]=n,i[e]=r)},e.swapChildren=function(t,e){for(var i,r,n=this.children,s=0,a=n.length;a>s&&(n[s]==t&&(i=s),n[s]==e&&(r=s),null==i||null==r);s++);s!=a&&(n[i]=e,n[r]=t)},e.setChildIndex=function(t,e){var i=this.children,r=i.length;if(!(t.parent!=this||0>e||e>=r)){for(var n=0;r>n&&i[n]!=t;n++);n!=r&&n!=e&&(i.splice(n,1),i.splice(e,0,t))}},e.contains=function(t){for(;t;){if(t==this)return!0;t=t.parent}return!1},e.hitTest=function(t,e){return null!=this.getObjectUnderPoint(t,e)},e.getObjectsUnderPoint=function(t,e,i){var r=[],n=this.localToGlobal(t,e);return this._getObjectsUnderPoint(n.x,n.y,r,i>0,1==i),r},e.getObjectUnderPoint=function(t,e,i){var r=this.localToGlobal(t,e);return this._getObjectsUnderPoint(r.x,r.y,null,i>0,1==i)},e.getBounds=function(){return this._getBounds(null,!0)},e.getTransformedBounds=function(){return this._getBounds()},e.clone=function(e){var i=this._cloneProps(new t);return e&&this._cloneChildren(i),i},e.toString=function(){return"[Container (name="+this.name+")]"},e._tick=function(t){if(this.tickChildren)for(var e=this.children.length-1;e>=0;e--){var i=this.children[e];i.tickEnabled&&i._tick&&i._tick(t)}this.DisplayObject__tick(t)},e._cloneChildren=function(t){t.children.length&&t.removeAllChildren();for(var e=t.children,i=0,r=this.children.length;r>i;i++){var n=this.children[i].clone(!0);n.parent=t,e.push(n)}},e._getObjectsUnderPoint=function(e,i,r,n,s,a){if(!(a=a||0)&&!this._testMask(this,e,i))return null;var o,l=createjs.DisplayObject._hitTestContext;s=s||n&&this._hasMouseEventListener();for(var h=this.children,u=h.length-1;u>=0;u--){var c=h[u],d=c.hitArea;if(c.visible&&(d||c.isVisible())&&(!n||c.mouseEnabled)&&(d||this._testMask(c,e,i)))if(!d&&c instanceof t){var p=c._getObjectsUnderPoint(e,i,r,n,s,a+1);if(!r&&p)return n&&!this.mouseChildren?this:p}else{if(n&&!s&&!c._hasMouseEventListener())continue;var f=c.getConcatenatedDisplayProps(c._props);if(o=f.matrix,d&&(o.appendMatrix(d.getMatrix(d._props.matrix)),f.alpha=d.alpha),l.globalAlpha=f.alpha,l.setTransform(o.a,o.b,o.c,o.d,o.tx-e,o.ty-i),(d||c).draw(l),!this._testHit(l))continue;if(l.setTransform(1,0,0,1,0,0),l.clearRect(0,0,2,2),!r)return n&&!this.mouseChildren?this:c;r.push(c)}}return null},e._testMask=function(t,e,i){var r=t.mask;if(!r||!r.graphics||r.graphics.isEmpty())return!0;var n=this._props.matrix,s=t.parent;n=s?s.getConcatenatedMatrix(n):n.identity(),n=r.getMatrix(r._props.matrix).prependMatrix(n);var a=createjs.DisplayObject._hitTestContext;return a.setTransform(n.a,n.b,n.c,n.d,n.tx-e,n.ty-i),r.graphics.drawAsPath(a),a.fillStyle="#000",a.fill(),!!this._testHit(a)&&(a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,2,2),!0)},e._getBounds=function(t,e){var i=this.DisplayObject_getBounds();if(i)return this._transformBounds(i,t,e);var r=this._props.matrix;r=e?r.identity():this.getMatrix(r),t&&r.prependMatrix(t);for(var n=this.children.length,s=null,a=0;n>a;a++){var o=this.children[a];o.visible&&(i=o._getBounds(r))&&(s?s.extend(i.x,i.y,i.width,i.height):s=i.clone())}return s},createjs.Container=createjs.promote(t,"DisplayObject")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.Container_constructor(),this.autoClear=!0,this.canvas="string"==typeof t?document.getElementById(t):t,this.mouseX=0,this.mouseY=0,this.drawRect=null,this.snapToPixelEnabled=!1,this.mouseInBounds=!1,this.tickOnUpdate=!0,this.mouseMoveOutside=!1,this.preventSelection=!0,this._pointerData={},this._pointerCount=0,this._primaryPointerID=null,this._mouseOverIntervalID=null,this._nextStage=null,this._prevStage=null,this.enableDOMEvents(!0)}var e=createjs.extend(t,createjs.Container);e._get_nextStage=function(){return this._nextStage},e._set_nextStage=function(t){this._nextStage&&(this._nextStage._prevStage=null),t&&(t._prevStage=this),this._nextStage=t};try{Object.defineProperties(e,{nextStage:{get:e._get_nextStage,set:e._set_nextStage}})}catch(t){}e.update=function(t){if(this.canvas&&(this.tickOnUpdate&&this.tick(t),!1!==this.dispatchEvent("drawstart",!1,!0))){createjs.DisplayObject._snapToPixelEnabled=this.snapToPixelEnabled;var e=this.drawRect,i=this.canvas.getContext("2d");i.setTransform(1,0,0,1,0,0),this.autoClear&&(e?i.clearRect(e.x,e.y,e.width,e.height):i.clearRect(0,0,this.canvas.width+1,this.canvas.height+1)),i.save(),this.drawRect&&(i.beginPath(),i.rect(e.x,e.y,e.width,e.height),i.clip()),this.updateContext(i),this.draw(i,!1),i.restore(),this.dispatchEvent("drawend")}},e.tick=function(t){if(this.tickEnabled&&!1!==this.dispatchEvent("tickstart",!1,!0)){var e=new createjs.Event("tick");if(t)for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);this._tick(e),this.dispatchEvent("tickend")}},e.handleEvent=function(t){"tick"==t.type&&this.update(t)},e.clear=function(){if(this.canvas){var t=this.canvas.getContext("2d");t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,this.canvas.width+1,this.canvas.height+1)}},e.toDataURL=function(t,e){var i,r=this.canvas.getContext("2d"),n=this.canvas.width,s=this.canvas.height;if(t){i=r.getImageData(0,0,n,s);var a=r.globalCompositeOperation;r.globalCompositeOperation="destination-over",r.fillStyle=t,r.fillRect(0,0,n,s)}var o=this.canvas.toDataURL(e||"image/png");return t&&(r.putImageData(i,0,0),r.globalCompositeOperation=a),o},e.enableMouseOver=function(t){if(this._mouseOverIntervalID&&(clearInterval(this._mouseOverIntervalID),this._mouseOverIntervalID=null,0==t&&this._testMouseOver(!0)),null==t)t=20;else if(0>=t)return;var e=this;this._mouseOverIntervalID=setInterval(function(){e._testMouseOver()},1e3/Math.min(50,t))},e.enableDOMEvents=function(t){null==t&&(t=!0);var e,i,r=this._eventListeners;if(!t&&r){for(e in r)(i=r[e]).t.removeEventListener(e,i.f,!1);this._eventListeners=null}else if(t&&!r&&this.canvas){var n=window.addEventListener?window:document,s=this;for(e in(r=this._eventListeners={}).mouseup={t:n,f:function(t){s._handleMouseUp(t)}},r.mousemove={t:n,f:function(t){s._handleMouseMove(t)}},r.dblclick={t:this.canvas,f:function(t){s._handleDoubleClick(t)}},r.mousedown={t:this.canvas,f:function(t){s._handleMouseDown(t)}},r)(i=r[e]).t.addEventListener(e,i.f,!1)}},e.clone=function(){throw"Stage cannot be cloned."},e.toString=function(){return"[Stage (name="+this.name+")]"},e._getElementRect=function(t){var e;try{e=t.getBoundingClientRect()}catch(i){e={top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}var i=(window.pageXOffset||document.scrollLeft||0)-(document.clientLeft||document.body.clientLeft||0),r=(window.pageYOffset||document.scrollTop||0)-(document.clientTop||document.body.clientTop||0),n=window.getComputedStyle?getComputedStyle(t,null):t.currentStyle,s=parseInt(n.paddingLeft)+parseInt(n.borderLeftWidth),a=parseInt(n.paddingTop)+parseInt(n.borderTopWidth),o=parseInt(n.paddingRight)+parseInt(n.borderRightWidth),l=parseInt(n.paddingBottom)+parseInt(n.borderBottomWidth);return{left:e.left+i+s,right:e.right+i-o,top:e.top+r+a,bottom:e.bottom+r-l}},e._getPointerData=function(t){var e=this._pointerData[t];return e||(e=this._pointerData[t]={x:0,y:0}),e},e._handleMouseMove=function(t){t||(t=window.event),this._handlePointerMove(-1,t,t.pageX,t.pageY)},e._handlePointerMove=function(t,e,i,r,n){if((!this._prevStage||void 0!==n)&&this.canvas){var s=this._nextStage,a=this._getPointerData(t),o=a.inBounds;this._updatePointerPosition(t,e,i,r),(o||a.inBounds||this.mouseMoveOutside)&&(-1===t&&a.inBounds==!o&&this._dispatchMouseEvent(this,o?"mouseleave":"mouseenter",!1,t,a,e),this._dispatchMouseEvent(this,"stagemousemove",!1,t,a,e),this._dispatchMouseEvent(a.target,"pressmove",!0,t,a,e)),s&&s._handlePointerMove(t,e,i,r,null)}},e._updatePointerPosition=function(t,e,i,r){var n=this._getElementRect(this.canvas);i-=n.left,r-=n.top;var s=this.canvas.width,a=this.canvas.height;i/=(n.right-n.left)/s,r/=(n.bottom-n.top)/a;var o=this._getPointerData(t);(o.inBounds=i>=0&&r>=0&&s-1>=i&&a-1>=r)?(o.x=i,o.y=r):this.mouseMoveOutside&&(o.x=0>i?0:i>s-1?s-1:i,o.y=0>r?0:r>a-1?a-1:r),o.posEvtObj=e,o.rawX=i,o.rawY=r,(t===this._primaryPointerID||-1===t)&&(this.mouseX=o.x,this.mouseY=o.y,this.mouseInBounds=o.inBounds)},e._handleMouseUp=function(t){this._handlePointerUp(-1,t,!1)},e._handlePointerUp=function(t,e,i,r){var n=this._nextStage,s=this._getPointerData(t);if(!this._prevStage||void 0!==r){var a=null,o=s.target;r||!o&&!n||(a=this._getObjectsUnderPoint(s.x,s.y,null,!0)),s.down&&(this._dispatchMouseEvent(this,"stagemouseup",!1,t,s,e,a),s.down=!1),a==o&&this._dispatchMouseEvent(o,"click",!0,t,s,e),this._dispatchMouseEvent(o,"pressup",!0,t,s,e),i?(t==this._primaryPointerID&&(this._primaryPointerID=null),delete this._pointerData[t]):s.target=null,n&&n._handlePointerUp(t,e,i,r||a&&this)}},e._handleMouseDown=function(t){this._handlePointerDown(-1,t,t.pageX,t.pageY)},e._handlePointerDown=function(t,e,i,r,n){this.preventSelection&&e.preventDefault(),(null==this._primaryPointerID||-1===t)&&(this._primaryPointerID=t),null!=r&&this._updatePointerPosition(t,e,i,r);var s=null,a=this._nextStage,o=this._getPointerData(t);n||(s=o.target=this._getObjectsUnderPoint(o.x,o.y,null,!0)),o.inBounds&&(this._dispatchMouseEvent(this,"stagemousedown",!1,t,o,e,s),o.down=!0),this._dispatchMouseEvent(s,"mousedown",!0,t,o,e),a&&a._handlePointerDown(t,e,i,r,n||s&&this)},e._testMouseOver=function(t,e,i){if(!this._prevStage||void 0!==e){var r=this._nextStage;if(!this._mouseOverIntervalID)return void(r&&r._testMouseOver(t,e,i));var n=this._getPointerData(-1);if(n&&(t||this.mouseX!=this._mouseOverX||this.mouseY!=this._mouseOverY||!this.mouseInBounds)){var s,a,o,l=n.posEvtObj,h=i||l&&l.target==this.canvas,u=null,c=-1,d="";!e&&(t||this.mouseInBounds&&h)&&(u=this._getObjectsUnderPoint(this.mouseX,this.mouseY,null,!0),this._mouseOverX=this.mouseX,this._mouseOverY=this.mouseY);var p=this._mouseOverTarget||[],f=p[p.length-1],_=this._mouseOverTarget=[];for(s=u;s;)_.unshift(s),d||(d=s.cursor),s=s.parent;for(this.canvas.style.cursor=d,!e&&i&&(i.canvas.style.cursor=d),a=0,o=_.length;o>a&&_[a]==p[a];a++)c=a;for(f!=u&&this._dispatchMouseEvent(f,"mouseout",!0,-1,n,l,u),a=p.length-1;a>c;a--)this._dispatchMouseEvent(p[a],"rollout",!1,-1,n,l,u);for(a=_.length-1;a>c;a--)this._dispatchMouseEvent(_[a],"rollover",!1,-1,n,l,f);f!=u&&this._dispatchMouseEvent(u,"mouseover",!0,-1,n,l,f),r&&r._testMouseOver(t,e||u&&this,i||h&&this)}}},e._handleDoubleClick=function(t,e){var i=null,r=this._nextStage,n=this._getPointerData(-1);e||(i=this._getObjectsUnderPoint(n.x,n.y,null,!0),this._dispatchMouseEvent(i,"dblclick",!0,-1,n,t)),r&&r._handleDoubleClick(t,e||i&&this)},e._dispatchMouseEvent=function(t,e,i,r,n,s,a){if(t&&(i||t.hasEventListener(e))){var o=new createjs.MouseEvent(e,i,!1,n.x,n.y,s,r,r===this._primaryPointerID||-1===r,n.rawX,n.rawY,a);t.dispatchEvent(o)}},createjs.Stage=createjs.promote(t,"Container")}(),this.createjs=this.createjs||{},function(){function t(t){this.DisplayObject_constructor(),"string"==typeof t?(this.image=document.createElement("img"),this.image.src=t):this.image=t,this.sourceRect=null}var e=createjs.extend(t,createjs.DisplayObject);e.initialize=t,e.isVisible=function(){var t=this.image,e=this.cacheCanvas||t&&(t.naturalWidth||t.getContext||t.readyState>=2);return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&e)},e.draw=function(t,e){if(this.DisplayObject_draw(t,e)||!this.image)return!0;var i=this.image,r=this.sourceRect;if(r){var n=r.x,s=r.y,a=n+r.width,o=s+r.height,l=0,h=0,u=i.width,c=i.height;0>n&&(l-=n,n=0),a>u&&(a=u),0>s&&(h-=s,s=0),o>c&&(o=c),t.drawImage(i,n,s,a-n,o-s,l,h,a-n,o-s)}else t.drawImage(i,0,0);return!0},e.getBounds=function(){var t=this.DisplayObject_getBounds();if(t)return t;var e=this.image,i=this.sourceRect||e;return e&&(e.naturalWidth||e.getContext||e.readyState>=2)?this._rectangle.setValues(0,0,i.width,i.height):null},e.clone=function(){var e=new t(this.image);return this.sourceRect&&(e.sourceRect=this.sourceRect.clone()),this._cloneProps(e),e},e.toString=function(){return"[Bitmap (name="+this.name+")]"},createjs.Bitmap=createjs.promote(t,"DisplayObject")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e){this.DisplayObject_constructor(),this.currentFrame=0,this.currentAnimation=null,this.paused=!0,this.spriteSheet=t,this.currentAnimationFrame=0,this.framerate=0,this._animation=null,this._currentFrame=null,this._skipAdvance=!1,null!=e&&this.gotoAndPlay(e)}var e=createjs.extend(t,createjs.DisplayObject);e.initialize=t,e.isVisible=function(){var t=this.cacheCanvas||this.spriteSheet.complete;return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&t)},e.draw=function(t,e){if(this.DisplayObject_draw(t,e))return!0;this._normalizeFrame();var i=this.spriteSheet.getFrame(0|this._currentFrame);if(!i)return!1;var r=i.rect;return r.width&&r.height&&t.drawImage(i.image,r.x,r.y,r.width,r.height,-i.regX,-i.regY,r.width,r.height),!0},e.play=function(){this.paused=!1},e.stop=function(){this.paused=!0},e.gotoAndPlay=function(t){this.paused=!1,this._skipAdvance=!0,this._goto(t)},e.gotoAndStop=function(t){this.paused=!0,this._goto(t)},e.advance=function(t){var e=this.framerate||this.spriteSheet.framerate,i=e&&null!=t?t/(1e3/e):1;this._normalizeFrame(i)},e.getBounds=function(){return this.DisplayObject_getBounds()||this.spriteSheet.getFrameBounds(this.currentFrame,this._rectangle)},e.clone=function(){return this._cloneProps(new t(this.spriteSheet))},e.toString=function(){return"[Sprite (name="+this.name+")]"},e._cloneProps=function(t){return this.DisplayObject__cloneProps(t),t.currentFrame=this.currentFrame,t.currentAnimation=this.currentAnimation,t.paused=this.paused,t.currentAnimationFrame=this.currentAnimationFrame,t.framerate=this.framerate,t._animation=this._animation,t._currentFrame=this._currentFrame,t._skipAdvance=this._skipAdvance,t},e._tick=function(t){this.paused||(this._skipAdvance||this.advance(t&&t.delta),this._skipAdvance=!1),this.DisplayObject__tick(t)},e._normalizeFrame=function(t){t=t||0;var e,i=this._animation,r=this.paused,n=this._currentFrame;if(i){var s=i.speed||1,a=this.currentAnimationFrame;if(a+t*s>=(e=i.frames.length)){var o=i.next;if(this._dispatchAnimationEnd(i,n,r,o,e-1))return;if(o)return this._goto(o,t-(e-a)/s);this.paused=!0,a=i.frames.length-1}else a+=t*s;this.currentAnimationFrame=a,this._currentFrame=i.frames[0|a]}else if((n=this._currentFrame+=t)>=(e=this.spriteSheet.getNumFrames())&&e>0&&!this._dispatchAnimationEnd(i,n,r,e-1)&&(this._currentFrame-=e)>=e)return this._normalizeFrame();n=0|this._currentFrame,this.currentFrame!=n&&(this.currentFrame=n,this.dispatchEvent("change"))},e._dispatchAnimationEnd=function(t,e,i,r,n){var s=t?t.name:null;if(this.hasEventListener("animationend")){var a=new createjs.Event("animationend");a.name=s,a.next=r,this.dispatchEvent(a)}var o=this._animation!=t||this._currentFrame!=e;return o||i||!this.paused||(this.currentAnimationFrame=n,o=!0),o},e._goto=function(t,e){if(this.currentAnimationFrame=0,isNaN(t)){var i=this.spriteSheet.getAnimation(t);i&&(this._animation=i,this.currentAnimation=t,this._normalizeFrame(e))}else this.currentAnimation=this._animation=null,this._currentFrame=t,this._normalizeFrame()},createjs.Sprite=createjs.promote(t,"DisplayObject")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.DisplayObject_constructor(),this.graphics=t||new createjs.Graphics}var e=createjs.extend(t,createjs.DisplayObject);e.isVisible=function(){var t=this.cacheCanvas||this.graphics&&!this.graphics.isEmpty();return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&t)},e.draw=function(t,e){return!!this.DisplayObject_draw(t,e)||(this.graphics.draw(t,this),!0)},e.clone=function(e){var i=e&&this.graphics?this.graphics.clone():this.graphics;return this._cloneProps(new t(i))},e.toString=function(){return"[Shape (name="+this.name+")]"},createjs.Shape=createjs.promote(t,"DisplayObject")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.DisplayObject_constructor(),this.text=t,this.font=e,this.color=i,this.textAlign="left",this.textBaseline="top",this.maxWidth=null,this.outline=0,this.lineHeight=0,this.lineWidth=null}var e=createjs.extend(t,createjs.DisplayObject),i=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");i.getContext&&(t._workingContext=i.getContext("2d"),i.width=i.height=1),t.H_OFFSETS={start:0,left:0,center:-.5,end:-1,right:-1},t.V_OFFSETS={top:0,hanging:-.01,middle:-.4,alphabetic:-.8,ideographic:-.85,bottom:-1},e.isVisible=function(){var t=this.cacheCanvas||null!=this.text&&""!==this.text;return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&t)},e.draw=function(t,e){if(this.DisplayObject_draw(t,e))return!0;var i=this.color||"#000";return this.outline?(t.strokeStyle=i,t.lineWidth=1*this.outline):t.fillStyle=i,this._drawText(this._prepContext(t)),!0},e.getMeasuredWidth=function(){return this._getMeasuredWidth(this.text)},e.getMeasuredLineHeight=function(){return 1.2*this._getMeasuredWidth("M")},e.getMeasuredHeight=function(){return this._drawText(null,{}).height},e.getBounds=function(){var e=this.DisplayObject_getBounds();if(e)return e;if(null==this.text||""===this.text)return null;var i=this._drawText(null,{}),r=this.maxWidth&&this.maxWidth<i.width?this.maxWidth:i.width,n=r*t.H_OFFSETS[this.textAlign||"left"],s=(this.lineHeight||this.getMeasuredLineHeight())*t.V_OFFSETS[this.textBaseline||"top"];return this._rectangle.setValues(n,s,r,i.height)},e.getMetrics=function(){var e={lines:[]};return e.lineHeight=this.lineHeight||this.getMeasuredLineHeight(),e.vOffset=e.lineHeight*t.V_OFFSETS[this.textBaseline||"top"],this._drawText(null,e,e.lines)},e.clone=function(){return this._cloneProps(new t(this.text,this.font,this.color))},e.toString=function(){return"[Text (text="+(this.text.length>20?this.text.substr(0,17)+"...":this.text)+")]"},e._cloneProps=function(t){return this.DisplayObject__cloneProps(t),t.textAlign=this.textAlign,t.textBaseline=this.textBaseline,t.maxWidth=this.maxWidth,t.outline=this.outline,t.lineHeight=this.lineHeight,t.lineWidth=this.lineWidth,t},e._prepContext=function(t){return t.font=this.font||"10px sans-serif",t.textAlign=this.textAlign||"left",t.textBaseline=this.textBaseline||"top",t},e._drawText=function(e,i,r){var n=!!e;n||((e=t._workingContext).save(),this._prepContext(e));for(var s=this.lineHeight||this.getMeasuredLineHeight(),a=0,o=0,l=String(this.text).split(/(?:\r\n|\r|\n)/),h=0,u=l.length;u>h;h++){var c=l[h],d=null;if(null!=this.lineWidth&&(d=e.measureText(c).width)>this.lineWidth){var p=c.split(/(\s)/);c=p[0],d=e.measureText(c).width;for(var f=1,_=p.length;_>f;f+=2){var m=e.measureText(p[f]+p[f+1]).width;d+m>this.lineWidth?(n&&this._drawTextLine(e,c,o*s),r&&r.push(c),d>a&&(a=d),c=p[f+1],d=e.measureText(c).width,o++):(c+=p[f]+p[f+1],d+=m)}}n&&this._drawTextLine(e,c,o*s),r&&r.push(c),i&&null==d&&(d=e.measureText(c).width),d>a&&(a=d),o++}return i&&(i.width=a,i.height=o*s),n||e.restore(),i},e._drawTextLine=function(t,e,i){this.outline?t.strokeText(e,0,i,this.maxWidth||65535):t.fillText(e,0,i,this.maxWidth||65535)},e._getMeasuredWidth=function(e){var i=t._workingContext;i.save();var r=this._prepContext(i).measureText(e).width;return i.restore(),r},createjs.Text=createjs.promote(t,"DisplayObject")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e){this.Container_constructor(),this.text=t||"",this.spriteSheet=e,this.lineHeight=0,this.letterSpacing=0,this.spaceWidth=0,this._oldProps={text:0,spriteSheet:0,lineHeight:0,letterSpacing:0,spaceWidth:0}}var e=createjs.extend(t,createjs.Container);t.maxPoolSize=100,t._spritePool=[],e.draw=function(t,e){this.DisplayObject_draw(t,e)||(this._updateText(),this.Container_draw(t,e))},e.getBounds=function(){return this._updateText(),this.Container_getBounds()},e.isVisible=function(){var t=this.cacheCanvas||this.spriteSheet&&this.spriteSheet.complete&&this.text;return!!(this.visible&&this.alpha>0&&0!==this.scaleX&&0!==this.scaleY&&t)},e.clone=function(){return this._cloneProps(new t(this.text,this.spriteSheet))},e.addChild=e.addChildAt=e.removeChild=e.removeChildAt=e.removeAllChildren=function(){},e._cloneProps=function(t){return this.Container__cloneProps(t),t.lineHeight=this.lineHeight,t.letterSpacing=this.letterSpacing,t.spaceWidth=this.spaceWidth,t},e._getFrameIndex=function(t,e){var i,r=e.getAnimation(t);return r||(t!=(i=t.toUpperCase())||t!=(i=t.toLowerCase())||(i=null),i&&(r=e.getAnimation(i))),r&&r.frames[0]},e._getFrame=function(t,e){var i=this._getFrameIndex(t,e);return null==i?i:e.getFrame(i)},e._getLineHeight=function(t){var e=this._getFrame("1",t)||this._getFrame("T",t)||this._getFrame("L",t)||t.getFrame(0);return e?e.rect.height:1},e._getSpaceWidth=function(t){var e=this._getFrame("1",t)||this._getFrame("l",t)||this._getFrame("e",t)||this._getFrame("a",t)||t.getFrame(0);return e?e.rect.width:1},e._updateText=function(){var e,i=0,r=0,n=this._oldProps,s=!1,a=this.spaceWidth,o=this.lineHeight,l=this.spriteSheet,h=t._spritePool,u=this.children,c=0,d=u.length;for(var p in n)n[p]!=this[p]&&(n[p]=this[p],s=!0);if(s){var f=!!this._getFrame(" ",l);f||a||(a=this._getSpaceWidth(l)),o||(o=this._getLineHeight(l));for(var _=0,m=this.text.length;m>_;_++){var g=this.text.charAt(_);if(" "!=g||f)if("\n"!=g&&"\r"!=g){var v=this._getFrameIndex(g,l);null!=v&&(d>c?e=u[c]:(u.push(e=h.length?h.pop():new createjs.Sprite),e.parent=this,d++),e.spriteSheet=l,e.gotoAndStop(v),e.x=i,e.y=r,c++,i+=e.getBounds().width+this.letterSpacing)}else"\r"==g&&"\n"==this.text.charAt(_+1)&&_++,i=0,r+=o;else i+=a}for(;d>c;)h.push(e=u.pop()),e.parent=null,d--;h.length>t.maxPoolSize&&(h.length=t.maxPoolSize)}},createjs.BitmapText=createjs.promote(t,"Container")}(),this.createjs=this.createjs||{},function(){"use strict";function t(e,i,r,n){this.Container_constructor(),!t.inited&&t.init(),this.mode=e||t.INDEPENDENT,this.startPosition=i||0,this.loop=r,this.currentFrame=0,this.timeline=new createjs.Timeline(null,n,{paused:!0,position:i,useTicks:!0}),this.paused=!1,this.actionsEnabled=!0,this.autoReset=!0,this.frameBounds=this.frameBounds||null,this.framerate=null,this._synchOffset=0,this._prevPos=-1,this._prevPosition=0,this._t=0,this._managed={}}function e(){throw"MovieClipPlugin cannot be instantiated."}var i=createjs.extend(t,createjs.Container);t.INDEPENDENT="independent",t.SINGLE_FRAME="single",t.SYNCHED="synched",t.inited=!1,t.init=function(){t.inited||(e.install(),t.inited=!0)},i.getLabels=function(){return this.timeline.getLabels()},i.getCurrentLabel=function(){return this._updateTimeline(),this.timeline.getCurrentLabel()},i.getDuration=function(){return this.timeline.duration};try{Object.defineProperties(i,{labels:{get:i.getLabels},currentLabel:{get:i.getCurrentLabel},totalFrames:{get:i.getDuration},duration:{get:i.getDuration}})}catch(t){}i.initialize=t,i.isVisible=function(){return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY)},i.draw=function(t,e){return!!this.DisplayObject_draw(t,e)||(this._updateTimeline(),this.Container_draw(t,e),!0)},i.play=function(){this.paused=!1},i.stop=function(){this.paused=!0},i.gotoAndPlay=function(t){this.paused=!1,this._goto(t)},i.gotoAndStop=function(t){this.paused=!0,this._goto(t)},i.advance=function(e){var i=t.INDEPENDENT;if(this.mode==i){for(var r=this,n=r.framerate;(r=r.parent)&&null==n;)r.mode==i&&(n=r._framerate);this._framerate=n;var s=null!=n&&-1!=n&&null!=e?e/(1e3/n)+this._t:1,a=0|s;for(this._t=s-a;!this.paused&&a--;)this._prevPosition=this._prevPos<0?0:this._prevPosition+1,this._updateTimeline()}},i.clone=function(){throw"MovieClip cannot be cloned."},i.toString=function(){return"[MovieClip (name="+this.name+")]"},i._tick=function(t){this.advance(t&&t.delta),this.Container__tick(t)},i._goto=function(t){var e=this.timeline.resolve(t);null!=e&&(-1==this._prevPos&&(this._prevPos=NaN),this._prevPosition=e,this._t=0,this._updateTimeline())},i._reset=function(){this._prevPos=-1,this._t=this.currentFrame=0,this.paused=!1},i._updateTimeline=function(){var e=this.timeline,i=this.mode!=t.INDEPENDENT;e.loop=null==this.loop||this.loop;var r=i?this.startPosition+(this.mode==t.SINGLE_FRAME?0:this._synchOffset):this._prevPos<0?0:this._prevPosition,n=i||!this.actionsEnabled?createjs.Tween.NONE:null;if(this.currentFrame=e._calcPosition(r),e.setPosition(r,n),this._prevPosition=e._prevPosition,this._prevPos!=e._prevPos){for(var s in this.currentFrame=this._prevPos=e._prevPos,this._managed)this._managed[s]=1;for(var a=e._tweens,o=0,l=a.length;l>o;o++){var h=a[o],u=h._target;if(u!=this&&!h.passive){var c=h._stepPosition;u instanceof createjs.DisplayObject?this._addManagedChild(u,c):this._setState(u.state,c)}}var d=this.children;for(o=d.length-1;o>=0;o--){var p=d[o].id;1==this._managed[p]&&(this.removeChildAt(o),delete this._managed[p])}}},i._setState=function(t,e){if(t)for(var i=t.length-1;i>=0;i--){var r=t[i],n=r.t,s=r.p;for(var a in s)n[a]=s[a];this._addManagedChild(n,e)}},i._addManagedChild=function(e,i){e._off||(this.addChildAt(e,0),e instanceof t&&(e._synchOffset=i,e.mode==t.INDEPENDENT&&e.autoReset&&!this._managed[e.id]&&e._reset()),this._managed[e.id]=2)},i._getBounds=function(t,e){var i=this.DisplayObject_getBounds();return i||(this._updateTimeline(),this.frameBounds&&(i=this._rectangle.copy(this.frameBounds[this.currentFrame]))),i?this._transformBounds(i,t,e):this.Container__getBounds(t,e)},createjs.MovieClip=createjs.promote(t,"Container"),e.priority=100,e.install=function(){createjs.Tween.installPlugin(e,["startPosition"])},e.init=function(t,e,i){return i},e.step=function(){},e.tween=function(e,i,r,n,s,a,o,l){return e.target instanceof t?1==a?s[i]:n[i]:r}}(),this.createjs=this.createjs||{},function(){"use strict";function t(){throw"SpriteSheetUtils cannot be instantiated"}var e=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");e.getContext&&(t._workingCanvas=e,t._workingContext=e.getContext("2d"),e.width=e.height=1),t.addFlippedFrames=function(e,i,r,n){if(i||r||n){var s=0;i&&t._flip(e,++s,!0,!1),r&&t._flip(e,++s,!1,!0),n&&t._flip(e,++s,!0,!0)}},t.extractFrame=function(e,i){isNaN(i)&&(i=e.getAnimation(i).frames[0]);var r=e.getFrame(i);if(!r)return null;var n=r.rect,s=t._workingCanvas;s.width=n.width,s.height=n.height,t._workingContext.drawImage(r.image,n.x,n.y,n.width,n.height,0,0,n.width,n.height);var a=document.createElement("img");return a.src=s.toDataURL("image/png"),a},t.mergeAlpha=function(t,e,i){i||(i=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas")),i.width=Math.max(e.width,t.width),i.height=Math.max(e.height,t.height);var r=i.getContext("2d");return r.save(),r.drawImage(t,0,0),r.globalCompositeOperation="destination-in",r.drawImage(e,0,0),r.restore(),i},t._flip=function(e,i,r,n){for(var s=e._images,a=t._workingCanvas,o=t._workingContext,l=s.length/i,h=0;l>h;h++){var u=s[h];u.__tmp=h,o.setTransform(1,0,0,1,0,0),o.clearRect(0,0,a.width+1,a.height+1),a.width=u.width,a.height=u.height,o.setTransform(r?-1:1,0,0,n?-1:1,r?u.width:0,n?u.height:0),o.drawImage(u,0,0);var c=document.createElement("img");c.src=a.toDataURL("image/png"),c.width=u.width,c.height=u.height,s.push(c)}var d=e._frames,p=d.length/i;for(h=0;p>h;h++){var f=(u=d[h]).rect.clone(),_={image:c=s[u.image.__tmp+l*i],rect:f,regX:u.regX,regY:u.regY};r&&(f.x=c.width-f.x-f.width,_.regX=f.width-u.regX),n&&(f.y=c.height-f.y-f.height,_.regY=f.height-u.regY),d.push(_)}var m="_"+(r?"h":"")+(n?"v":""),g=e._animations,v=e._data,y=g.length/i;for(h=0;y>h;h++){var b=g[h],T={name:b+m,speed:(u=v[b]).speed,next:u.next,frames:[]};u.next&&(T.next+=m);for(var x=0,E=(d=u.frames).length;E>x;x++)T.frames.push(d[x]+p*i);v[T.name]=T,g.push(T.name)}},createjs.SpriteSheetUtils=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.EventDispatcher_constructor(),this.maxWidth=2048,this.maxHeight=2048,this.spriteSheet=null,this.scale=1,this.padding=1,this.timeSlice=.3,this.progress=-1,this.framerate=t||0,this._frames=[],this._animations={},this._data=null,this._nextFrameIndex=0,this._index=0,this._timerID=null,this._scale=1}var e=createjs.extend(t,createjs.EventDispatcher);t.ERR_DIMENSIONS="frame dimensions exceed max spritesheet dimensions",t.ERR_RUNNING="a build is already running",e.addFrame=function(e,i,r,n,s){if(this._data)throw t.ERR_RUNNING;var a=i||e.bounds||e.nominalBounds;return!a&&e.getBounds&&(a=e.getBounds()),a?(r=r||1,this._frames.push({source:e,sourceRect:a,scale:r,funct:n,data:s,index:this._frames.length,height:a.height*r})-1):null},e.addAnimation=function(e,i,r,n){if(this._data)throw t.ERR_RUNNING;this._animations[e]={frames:i,next:r,speed:n}},e.addMovieClip=function(e,i,r,n,s,a){if(this._data)throw t.ERR_RUNNING;var o=e.frameBounds,l=i||e.bounds||e.nominalBounds;if(!l&&e.getBounds&&(l=e.getBounds()),l||o){var h,u,c=this._frames.length,d=e.timeline.duration;for(h=0;d>h;h++){var p=o&&o[h]?o[h]:l;this.addFrame(e,p,r,this._setupMovieClipFrame,{i:h,f:n,d:s})}var f=e.timeline._labels,_=[];for(var m in f)_.push({index:f[m],label:m});if(_.length)for(_.sort(function(t,e){return t.index-e.index}),h=0,u=_.length;u>h;h++){for(var g=_[h].label,v=c+_[h].index,y=c+(h==u-1?d:_[h+1].index),b=[],T=v;y>T;T++)b.push(T);(!a||(g=a(g,e,v,y)))&&this.addAnimation(g,b,!0)}}},e.build=function(){if(this._data)throw t.ERR_RUNNING;for(this._startBuild();this._drawNext(););return this._endBuild(),this.spriteSheet},e.buildAsync=function(e){if(this._data)throw t.ERR_RUNNING;this.timeSlice=e,this._startBuild();var i=this;this._timerID=setTimeout(function(){i._run()},50-50*Math.max(.01,Math.min(.99,this.timeSlice||.3)))},e.stopAsync=function(){clearTimeout(this._timerID),this._data=null},e.clone=function(){throw"SpriteSheetBuilder cannot be cloned."},e.toString=function(){return"[SpriteSheetBuilder]"},e._startBuild=function(){var e=this.padding||0;this.progress=0,this.spriteSheet=null,this._index=0,this._scale=this.scale;var i=[];this._data={images:[],frames:i,framerate:this.framerate,animations:this._animations};var r=this._frames.slice();if(r.sort(function(t,e){return t.height<=e.height?-1:1}),r[r.length-1].height+2*e>this.maxHeight)throw t.ERR_DIMENSIONS;for(var n=0,s=0,a=0;r.length;){var o=this._fillRow(r,n,a,i,e);if(o.w>s&&(s=o.w),n+=o.h,!o.h||!r.length){var l=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");l.width=this._getSize(s,this.maxWidth),l.height=this._getSize(n,this.maxHeight),this._data.images[a]=l,o.h||(s=n=0,a++)}}},e._setupMovieClipFrame=function(t,e){var i=t.actionsEnabled;t.actionsEnabled=!1,t.gotoAndStop(e.i),t.actionsEnabled=i,e.f&&e.f(t,e.d,e.i)},e._getSize=function(t,e){for(var i=4;Math.pow(2,++i)<t;);return Math.min(e,Math.pow(2,i))},e._fillRow=function(e,i,r,n,s){for(var a=this.maxWidth,o=this.maxHeight-(i+=s),l=s,h=0,u=e.length-1;u>=0;u--){var c=e[u],d=this._scale*c.scale,p=c.sourceRect,f=c.source,_=Math.floor(d*p.x-s),m=Math.floor(d*p.y-s),g=Math.ceil(d*p.height+2*s),v=Math.ceil(d*p.width+2*s);if(v>a)throw t.ERR_DIMENSIONS;g>o||l+v>a||(c.img=r,c.rect=new createjs.Rectangle(l,i,v,g),h=h||g,e.splice(u,1),n[c.index]=[l,i,v,g,r,Math.round(-_+d*f.regX-s),Math.round(-m+d*f.regY-s)],l+=v)}return{w:l,h:h}},e._endBuild=function(){this.spriteSheet=new createjs.SpriteSheet(this._data),this._data=null,this.progress=1,this.dispatchEvent("complete")},e._run=function(){for(var t=50*Math.max(.01,Math.min(.99,this.timeSlice||.3)),e=(new Date).getTime()+t,i=!1;e>(new Date).getTime();)if(!this._drawNext()){i=!0;break}if(i)this._endBuild();else{var r=this;this._timerID=setTimeout(function(){r._run()},50-t)}var n=this.progress=this._index/this._frames.length;if(this.hasEventListener("progress")){var s=new createjs.Event("progress");s.progress=n,this.dispatchEvent(s)}},e._drawNext=function(){var t=this._frames[this._index],e=t.scale*this._scale,i=t.rect,r=t.sourceRect,n=this._data.images[t.img].getContext("2d");return t.funct&&t.funct(t.source,t.data),n.save(),n.beginPath(),n.rect(i.x,i.y,i.width,i.height),n.clip(),n.translate(Math.ceil(i.x-r.x*e),Math.ceil(i.y-r.y*e)),n.scale(e,e),t.source.draw(n),n.restore(),++this._index<this._frames.length},createjs.SpriteSheetBuilder=createjs.promote(t,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.DisplayObject_constructor(),"string"==typeof t&&(t=document.getElementById(t)),this.mouseEnabled=!1;var e=t.style;e.position="absolute",e.transformOrigin=e.WebkitTransformOrigin=e.msTransformOrigin=e.MozTransformOrigin=e.OTransformOrigin="0% 0%",this.htmlElement=t,this._oldProps=null}var e=createjs.extend(t,createjs.DisplayObject);e.isVisible=function(){return null!=this.htmlElement},e.draw=function(t,e){return!0},e.cache=function(){},e.uncache=function(){},e.updateCache=function(){},e.hitTest=function(){},e.localToGlobal=function(){},e.globalToLocal=function(){},e.localToLocal=function(){},e.clone=function(){throw"DOMElement cannot be cloned."},e.toString=function(){return"[DOMElement (name="+this.name+")]"},e._tick=function(t){var e=this.getStage();e&&e.on("drawend",this._handleDrawEnd,this,!0),this.DisplayObject__tick(t)},e._handleDrawEnd=function(t){var e=this.htmlElement;if(e){var i=e.style,r=this.getConcatenatedDisplayProps(this._props),n=r.matrix,s=r.visible?"visible":"hidden";if(s!=i.visibility&&(i.visibility=s),r.visible){var a=this._oldProps,o=a&&a.matrix;if(!o||!o.equals(n)){var l="matrix("+(1e4*n.a|0)/1e4+","+(1e4*n.b|0)/1e4+","+(1e4*n.c|0)/1e4+","+(1e4*n.d|0)/1e4+","+(n.tx+.5|0);i.transform=i.WebkitTransform=i.OTransform=i.msTransform=l+","+(n.ty+.5|0)+")",i.MozTransform=l+"px,"+(n.ty+.5|0)+"px)",a||(a=this._oldProps=new createjs.DisplayProps(!0,NaN)),a.matrix.copy(n)}a.alpha!=r.alpha&&(i.opacity=""+(1e4*r.alpha|0)/1e4,a.alpha=r.alpha)}}},createjs.DOMElement=createjs.promote(t,"DisplayObject")}(),this.createjs=this.createjs||{},function(){"use strict";function t(){}var e=t.prototype;e.getBounds=function(t){return t},e.applyFilter=function(t,e,i,r,n,s,a,o){s=s||t,null==a&&(a=e),null==o&&(o=i);try{var l=t.getImageData(e,i,r,n)}catch(t){return!1}return!!this._applyFilter(l)&&(s.putImageData(l,a,o),!0)},e.toString=function(){return"[Filter]"},e.clone=function(){return new t},e._applyFilter=function(t){return!0},createjs.Filter=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){(isNaN(t)||0>t)&&(t=0),(isNaN(e)||0>e)&&(e=0),(isNaN(i)||1>i)&&(i=1),this.blurX=0|t,this.blurY=0|e,this.quality=0|i}var e=createjs.extend(t,createjs.Filter);t.MUL_TABLE=[1,171,205,293,57,373,79,137,241,27,391,357,41,19,283,265,497,469,443,421,25,191,365,349,335,161,155,149,9,278,269,261,505,245,475,231,449,437,213,415,405,395,193,377,369,361,353,345,169,331,325,319,313,307,301,37,145,285,281,69,271,267,263,259,509,501,493,243,479,118,465,459,113,446,55,435,429,423,209,413,51,403,199,393,97,3,379,375,371,367,363,359,355,351,347,43,85,337,333,165,327,323,5,317,157,311,77,305,303,75,297,294,73,289,287,71,141,279,277,275,68,135,67,133,33,262,260,129,511,507,503,499,495,491,61,121,481,477,237,235,467,232,115,457,227,451,7,445,221,439,218,433,215,427,425,211,419,417,207,411,409,203,202,401,399,396,197,49,389,387,385,383,95,189,47,187,93,185,23,183,91,181,45,179,89,177,11,175,87,173,345,343,341,339,337,21,167,83,331,329,327,163,81,323,321,319,159,79,315,313,39,155,309,307,153,305,303,151,75,299,149,37,295,147,73,291,145,289,287,143,285,71,141,281,35,279,139,69,275,137,273,17,271,135,269,267,133,265,33,263,131,261,130,259,129,257,1],t.SHG_TABLE=[0,9,10,11,9,12,10,11,12,9,13,13,10,9,13,13,14,14,14,14,10,13,14,14,14,13,13,13,9,14,14,14,15,14,15,14,15,15,14,15,15,15,14,15,15,15,15,15,14,15,15,15,15,15,15,12,14,15,15,13,15,15,15,15,16,16,16,15,16,14,16,16,14,16,13,16,16,16,15,16,13,16,15,16,14,9,16,16,16,16,16,16,16,16,16,13,14,16,16,15,16,16,10,16,15,16,14,16,16,14,16,16,14,16,16,14,15,16,16,16,14,15,14,15,13,16,16,15,17,17,17,17,17,17,14,15,17,17,16,16,17,16,15,17,16,17,11,17,16,17,16,17,16,17,17,16,17,17,16,17,17,16,16,17,17,17,16,14,17,17,17,17,15,16,14,16,15,16,13,16,15,16,14,16,15,16,12,16,15,16,17,17,17,17,17,13,16,15,17,17,17,16,15,17,17,17,16,15,17,17,14,16,17,17,16,17,17,16,15,17,16,14,17,16,15,17,16,17,17,16,17,15,16,17,14,17,16,15,17,16,17,13,17,16,17,17,16,17,14,17,16,17,16,17,16,17,9],e.getBounds=function(t){var e=0|this.blurX,i=0|this.blurY;if(0>=e&&0>=i)return t;var r=Math.pow(this.quality,.2);return(t||new createjs.Rectangle).pad(e*r+1,i*r+1,e*r+1,i*r+1)},e.clone=function(){return new t(this.blurX,this.blurY,this.quality)},e.toString=function(){return"[BlurFilter]"},e._applyFilter=function(e){var i=this.blurX>>1;if(isNaN(i)||0>i)return!1;var r=this.blurY>>1;if(isNaN(r)||0>r)return!1;if(0==i&&0==r)return!1;var n=this.quality;(isNaN(n)||1>n)&&(n=1),(n|=0)>3&&(n=3),1>n&&(n=1);var s=e.data,a=0,o=0,l=0,h=0,u=0,c=0,d=0,p=0,f=0,_=0,m=0,g=0,v=0,y=0,b=0,T=i+i+1|0,x=r+r+1|0,E=0|e.width,w=0|e.height,S=E-1|0,D=w-1|0,I=i+1|0,P=r+1|0,A={r:0,b:0,g:0,a:0},C=A;for(l=1;T>l;l++)C=C.n={r:0,b:0,g:0,a:0};C.n=A;var M={r:0,b:0,g:0,a:0},L=M;for(l=1;x>l;l++)L=L.n={r:0,b:0,g:0,a:0};L.n=M;for(var O=null,R=0|t.MUL_TABLE[i],j=0|t.SHG_TABLE[i],k=0|t.MUL_TABLE[r],N=0|t.SHG_TABLE[r];n-- >0;){d=c=0;var H=R,B=j;for(o=w;--o>-1;){for(p=I*(g=s[0|c]),f=I*(v=s[c+1|0]),_=I*(y=s[c+2|0]),m=I*(b=s[c+3|0]),C=A,l=I;--l>-1;)C.r=g,C.g=v,C.b=y,C.a=b,C=C.n;for(l=1;I>l;l++)h=c+((l>S?S:l)<<2)|0,p+=C.r=s[h],f+=C.g=s[h+1],_+=C.b=s[h+2],m+=C.a=s[h+3],C=C.n;for(O=A,a=0;E>a;a++)s[c++]=p*H>>>B,s[c++]=f*H>>>B,s[c++]=_*H>>>B,s[c++]=m*H>>>B,h=d+((h=a+i+1)<S?h:S)<<2,p-=O.r-(O.r=s[h]),f-=O.g-(O.g=s[h+1]),_-=O.b-(O.b=s[h+2]),m-=O.a-(O.a=s[h+3]),O=O.n;d+=E}for(H=k,B=N,a=0;E>a;a++){for(p=P*(g=s[c=a<<2|0])|0,f=P*(v=s[c+1|0])|0,_=P*(y=s[c+2|0])|0,m=P*(b=s[c+3|0])|0,L=M,l=0;P>l;l++)L.r=g,L.g=v,L.b=y,L.a=b,L=L.n;for(u=E,l=1;r>=l;l++)c=u+a<<2,p+=L.r=s[c],f+=L.g=s[c+1],_+=L.b=s[c+2],m+=L.a=s[c+3],L=L.n,D>l&&(u+=E);if(c=a,O=M,n>0)for(o=0;w>o;o++)s[(h=c<<2)+3]=b=m*H>>>B,b>0?(s[h]=p*H>>>B,s[h+1]=f*H>>>B,s[h+2]=_*H>>>B):s[h]=s[h+1]=s[h+2]=0,h=a+((h=o+P)<D?h:D)*E<<2,p-=O.r-(O.r=s[h]),f-=O.g-(O.g=s[h+1]),_-=O.b-(O.b=s[h+2]),m-=O.a-(O.a=s[h+3]),O=O.n,c+=E;else for(o=0;w>o;o++)s[(h=c<<2)+3]=b=m*H>>>B,b>0?(b=255/b,s[h]=(p*H>>>B)*b,s[h+1]=(f*H>>>B)*b,s[h+2]=(_*H>>>B)*b):s[h]=s[h+1]=s[h+2]=0,h=a+((h=o+P)<D?h:D)*E<<2,p-=O.r-(O.r=s[h]),f-=O.g-(O.g=s[h+1]),_-=O.b-(O.b=s[h+2]),m-=O.a-(O.a=s[h+3]),O=O.n,c+=E}}return!0},createjs.BlurFilter=createjs.promote(t,"Filter")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.alphaMap=t,this._alphaMap=null,this._mapData=null}var e=createjs.extend(t,createjs.Filter);e.clone=function(){var e=new t(this.alphaMap);return e._alphaMap=this._alphaMap,e._mapData=this._mapData,e},e.toString=function(){return"[AlphaMapFilter]"},e._applyFilter=function(t){if(!this.alphaMap)return!0;if(!this._prepAlphaMap())return!1;for(var e=t.data,i=this._mapData,r=0,n=e.length;n>r;r+=4)e[r+3]=i[r]||0;return!0},e._prepAlphaMap=function(){if(!this.alphaMap)return!1;if(this.alphaMap==this._alphaMap&&this._mapData)return!0;this._mapData=null;var t,e=this._alphaMap=this.alphaMap,i=e;e instanceof HTMLCanvasElement?t=i.getContext("2d"):((i=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas")).width=e.width,i.height=e.height,(t=i.getContext("2d")).drawImage(e,0,0));try{var r=t.getImageData(0,0,e.width,e.height)}catch(t){return!1}return this._mapData=r.data,!0},createjs.AlphaMapFilter=createjs.promote(t,"Filter")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.mask=t}var e=createjs.extend(t,createjs.Filter);e.applyFilter=function(t,e,i,r,n,s,a,o){return!this.mask||(null==a&&(a=e),null==o&&(o=i),(s=s||t).save(),t==s&&(s.globalCompositeOperation="destination-in",s.drawImage(this.mask,a,o),s.restore(),!0))},e.clone=function(){return new t(this.mask)},e.toString=function(){return"[AlphaMaskFilter]"},createjs.AlphaMaskFilter=createjs.promote(t,"Filter")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i,r,n,s,a,o){this.redMultiplier=null!=t?t:1,this.greenMultiplier=null!=e?e:1,this.blueMultiplier=null!=i?i:1,this.alphaMultiplier=null!=r?r:1,this.redOffset=n||0,this.greenOffset=s||0,this.blueOffset=a||0,this.alphaOffset=o||0}var e=createjs.extend(t,createjs.Filter);e.toString=function(){return"[ColorFilter]"},e.clone=function(){return new t(this.redMultiplier,this.greenMultiplier,this.blueMultiplier,this.alphaMultiplier,this.redOffset,this.greenOffset,this.blueOffset,this.alphaOffset)},e._applyFilter=function(t){for(var e=t.data,i=e.length,r=0;i>r;r+=4)e[r]=e[r]*this.redMultiplier+this.redOffset,e[r+1]=e[r+1]*this.greenMultiplier+this.greenOffset,e[r+2]=e[r+2]*this.blueMultiplier+this.blueOffset,e[r+3]=e[r+3]*this.alphaMultiplier+this.alphaOffset;return!0},createjs.ColorFilter=createjs.promote(t,"Filter")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i,r){this.setColor(t,e,i,r)}var e=t.prototype;t.DELTA_INDEX=[0,.01,.02,.04,.05,.06,.07,.08,.1,.11,.12,.14,.15,.16,.17,.18,.2,.21,.22,.24,.25,.27,.28,.3,.32,.34,.36,.38,.4,.42,.44,.46,.48,.5,.53,.56,.59,.62,.65,.68,.71,.74,.77,.8,.83,.86,.89,.92,.95,.98,1,1.06,1.12,1.18,1.24,1.3,1.36,1.42,1.48,1.54,1.6,1.66,1.72,1.78,1.84,1.9,1.96,2,2.12,2.25,2.37,2.5,2.62,2.75,2.87,3,3.2,3.4,3.6,3.8,4,4.3,4.7,4.9,5,5.5,6,6.5,6.8,7,7.3,7.5,7.8,8,8.4,8.7,9,9.4,9.6,9.8,10],t.IDENTITY_MATRIX=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1],t.LENGTH=t.IDENTITY_MATRIX.length,e.setColor=function(t,e,i,r){return this.reset().adjustColor(t,e,i,r)},e.reset=function(){return this.copy(t.IDENTITY_MATRIX)},e.adjustColor=function(t,e,i,r){return this.adjustHue(r),this.adjustContrast(e),this.adjustBrightness(t),this.adjustSaturation(i)},e.adjustBrightness=function(t){return 0==t||isNaN(t)?this:(t=this._cleanValue(t,255),this._multiplyMatrix([1,0,0,0,t,0,1,0,0,t,0,0,1,0,t,0,0,0,1,0,0,0,0,0,1]),this)},e.adjustContrast=function(e){return 0==e||isNaN(e)?this:(0>(e=this._cleanValue(e,100))?i=127+e/100*127:i=127*(i=0==(i=e%1)?t.DELTA_INDEX[e]:t.DELTA_INDEX[e<<0]*(1-i)+t.DELTA_INDEX[1+(e<<0)]*i)+127,this._multiplyMatrix([i/127,0,0,0,.5*(127-i),0,i/127,0,0,.5*(127-i),0,0,i/127,0,.5*(127-i),0,0,0,1,0,0,0,0,0,1]),this);var i},e.adjustSaturation=function(t){if(0==t||isNaN(t))return this;var e=1+((t=this._cleanValue(t,100))>0?3*t/100:t/100);return this._multiplyMatrix([.3086*(1-e)+e,.6094*(1-e),.082*(1-e),0,0,.3086*(1-e),.6094*(1-e)+e,.082*(1-e),0,0,.3086*(1-e),.6094*(1-e),.082*(1-e)+e,0,0,0,0,0,1,0,0,0,0,0,1]),this},e.adjustHue=function(t){if(0==t||isNaN(t))return this;t=this._cleanValue(t,180)/180*Math.PI;var e=Math.cos(t),i=Math.sin(t);return this._multiplyMatrix([.213+.787*e+-.213*i,.715+-.715*e+-.715*i,.072+-.072*e+.928*i,0,0,.213+-.213*e+.143*i,.715+e*(1-.715)+.14*i,.072+-.072*e+-.283*i,0,0,.213+-.213*e+-.787*i,.715+-.715*e+.715*i,.072+.928*e+.072*i,0,0,0,0,0,1,0,0,0,0,0,1]),this},e.concat=function(e){return(e=this._fixMatrix(e)).length!=t.LENGTH?this:(this._multiplyMatrix(e),this)},e.clone=function(){return(new t).copy(this)},e.toArray=function(){for(var e=[],i=0,r=t.LENGTH;r>i;i++)e[i]=this[i];return e},e.copy=function(e){for(var i=t.LENGTH,r=0;i>r;r++)this[r]=e[r];return this},e.toString=function(){return"[ColorMatrix]"},e._multiplyMatrix=function(t){var e,i,r,n=[];for(e=0;5>e;e++){for(i=0;5>i;i++)n[i]=this[i+5*e];for(i=0;5>i;i++){var s=0;for(r=0;5>r;r++)s+=t[i+5*r]*n[r];this[i+5*e]=s}}},e._cleanValue=function(t,e){return Math.min(e,Math.max(-e,t))},e._fixMatrix=function(e){return e instanceof t&&(e=e.toArray()),e.length<t.LENGTH?e=e.slice(0,e.length).concat(t.IDENTITY_MATRIX.slice(e.length,t.LENGTH)):e.length>t.LENGTH&&(e=e.slice(0,t.LENGTH)),e},createjs.ColorMatrix=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.matrix=t}var e=createjs.extend(t,createjs.Filter);e.toString=function(){return"[ColorMatrixFilter]"},e.clone=function(){return new t(this.matrix)},e._applyFilter=function(t){for(var e,i,r,n,s=t.data,a=s.length,o=this.matrix,l=o[0],h=o[1],u=o[2],c=o[3],d=o[4],p=o[5],f=o[6],_=o[7],m=o[8],g=o[9],v=o[10],y=o[11],b=o[12],T=o[13],x=o[14],E=o[15],w=o[16],S=o[17],D=o[18],I=o[19],P=0;a>P;P+=4)e=s[P],i=s[P+1],r=s[P+2],n=s[P+3],s[P]=e*l+i*h+r*u+n*c+d,s[P+1]=e*p+i*f+r*_+n*m+g,s[P+2]=e*v+i*y+r*b+n*T+x,s[P+3]=e*E+i*w+r*S+n*D+I;return!0},createjs.ColorMatrixFilter=createjs.promote(t,"Filter")}(),this.createjs=this.createjs||{},function(){"use strict";function t(){throw"Touch cannot be instantiated"}t.isSupported=function(){return!!("ontouchstart"in window||window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>0||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>0)},t.enable=function(e,i,r){return!!(e&&e.canvas&&t.isSupported())&&(!!e.__touch||(e.__touch={pointers:{},multitouch:!i,preventDefault:!r,count:0},"ontouchstart"in window?t._IOS_enable(e):(window.navigator.msPointerEnabled||window.navigator.pointerEnabled)&&t._IE_enable(e),!0))},t.disable=function(e){e&&("ontouchstart"in window?t._IOS_disable(e):(window.navigator.msPointerEnabled||window.navigator.pointerEnabled)&&t._IE_disable(e),delete e.__touch)},t._IOS_enable=function(e){var i=e.canvas,r=e.__touch.f=function(i){t._IOS_handleEvent(e,i)};i.addEventListener("touchstart",r,!1),i.addEventListener("touchmove",r,!1),i.addEventListener("touchend",r,!1),i.addEventListener("touchcancel",r,!1)},t._IOS_disable=function(t){var e=t.canvas;if(e){var i=t.__touch.f;e.removeEventListener("touchstart",i,!1),e.removeEventListener("touchmove",i,!1),e.removeEventListener("touchend",i,!1),e.removeEventListener("touchcancel",i,!1)}},t._IOS_handleEvent=function(t,e){if(t){t.__touch.preventDefault&&e.preventDefault&&e.preventDefault();for(var i=e.changedTouches,r=e.type,n=0,s=i.length;s>n;n++){var a=i[n],o=a.identifier;a.target==t.canvas&&("touchstart"==r?this._handleStart(t,o,e,a.pageX,a.pageY):"touchmove"==r?this._handleMove(t,o,e,a.pageX,a.pageY):("touchend"==r||"touchcancel"==r)&&this._handleEnd(t,o,e))}}},t._IE_enable=function(e){var i=e.canvas,r=e.__touch.f=function(i){t._IE_handleEvent(e,i)};void 0===window.navigator.pointerEnabled?(i.addEventListener("MSPointerDown",r,!1),window.addEventListener("MSPointerMove",r,!1),window.addEventListener("MSPointerUp",r,!1),window.addEventListener("MSPointerCancel",r,!1),e.__touch.preventDefault&&(i.style.msTouchAction="none")):(i.addEventListener("pointerdown",r,!1),window.addEventListener("pointermove",r,!1),window.addEventListener("pointerup",r,!1),window.addEventListener("pointercancel",r,!1),e.__touch.preventDefault&&(i.style.touchAction="none")),e.__touch.activeIDs={}},t._IE_disable=function(t){var e=t.__touch.f;void 0===window.navigator.pointerEnabled?(window.removeEventListener("MSPointerMove",e,!1),window.removeEventListener("MSPointerUp",e,!1),window.removeEventListener("MSPointerCancel",e,!1),t.canvas&&t.canvas.removeEventListener("MSPointerDown",e,!1)):(window.removeEventListener("pointermove",e,!1),window.removeEventListener("pointerup",e,!1),window.removeEventListener("pointercancel",e,!1),t.canvas&&t.canvas.removeEventListener("pointerdown",e,!1))},t._IE_handleEvent=function(t,e){if(t){t.__touch.preventDefault&&e.preventDefault&&e.preventDefault();var i=e.type,r=e.pointerId,n=t.__touch.activeIDs;if("MSPointerDown"==i||"pointerdown"==i){if(e.srcElement!=t.canvas)return;n[r]=!0,this._handleStart(t,r,e,e.pageX,e.pageY)}else n[r]&&("MSPointerMove"==i||"pointermove"==i?this._handleMove(t,r,e,e.pageX,e.pageY):("MSPointerUp"==i||"MSPointerCancel"==i||"pointerup"==i||"pointercancel"==i)&&(delete n[r],this._handleEnd(t,r,e)))}},t._handleStart=function(t,e,i,r,n){var s=t.__touch;if(s.multitouch||!s.count){var a=s.pointers;a[e]||(a[e]=!0,s.count++,t._handlePointerDown(e,i,r,n))}},t._handleMove=function(t,e,i,r,n){t.__touch.pointers[e]&&t._handlePointerMove(e,i,r,n)},t._handleEnd=function(t,e,i){var r=t.__touch,n=r.pointers;n[e]&&(r.count--,t._handlePointerUp(e,i,!0),delete n[e])},createjs.Touch=t}(),this.createjs=this.createjs||{},function(){"use strict";var t=createjs.EaselJS=createjs.EaselJS||{};t.version="0.8.2",t.buildDate="Thu, 26 Nov 2015 20:44:34 GMT"}(),this.createjs=this.createjs||{},function(){"use strict";var t=createjs.PreloadJS=createjs.PreloadJS||{};t.version="0.6.2",t.buildDate="Thu, 26 Nov 2015 20:44:31 GMT"}(),this.createjs=this.createjs||{},function(){"use strict";createjs.proxy=function(t,e){var i=Array.prototype.slice.call(arguments,2);return function(){return t.apply(e,Array.prototype.slice.call(arguments,0).concat(i))}}}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.Event_constructor("error"),this.title=t,this.message=e,this.data=i}createjs.extend(t,createjs.Event).clone=function(){return new createjs.ErrorEvent(this.title,this.message,this.data)},createjs.ErrorEvent=createjs.promote(t,"Event")}(),this.createjs=this.createjs||{},function(t){"use strict";function e(t,e){this.Event_constructor("progress"),this.loaded=t,this.total=null==e?1:e,this.progress=0==e?0:this.loaded/this.total}createjs.extend(e,createjs.Event).clone=function(){return new createjs.ProgressEvent(this.loaded,this.total)},createjs.ProgressEvent=createjs.promote(e,"Event")}(window),function(){function t(e,r){function s(t){if(s[t]!==m)return s[t];var e;if("bug-string-char-index"==t)e="a"!="a"[0];else if("json"==t)e=s("json-stringify")&&s("json-parse");else{var i,n='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==t){var l=r.stringify,u="function"==typeof l&&y;if(u){(i=function(){return 1}).toJSON=i;try{u="0"===l(0)&&"0"===l(new a)&&'""'==l(new o)&&l(v)===m&&l(m)===m&&l()===m&&"1"===l(i)&&"[1]"==l([i])&&"[null]"==l([m])&&"null"==l(null)&&"[null,null,null]"==l([m,v,null])&&l({a:[i,!0,!1,null,"\0\b\n\f\r\t"]})==n&&"1"===l(null,i)&&"[\n 1,\n 2\n]"==l([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==l(new h(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==l(new h(864e13))&&'"-000001-01-01T00:00:00.000Z"'==l(new h(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==l(new h(-1))}catch(t){u=!1}}e=u}if("json-parse"==t){var c=r.parse;if("function"==typeof c)try{if(0===c("0")&&!c(!1)){var d=5==(i=c(n)).a.length&&1===i.a[0];if(d){try{d=!c('"\t"')}catch(t){}if(d)try{d=1!==c("01")}catch(t){}if(d)try{d=1!==c("1.")}catch(t){}}}}catch(t){d=!1}e=d}}return s[t]=!!e}e||(e=n.Object()),r||(r=n.Object());var a=e.Number||n.Number,o=e.String||n.String,l=e.Object||n.Object,h=e.Date||n.Date,u=e.SyntaxError||n.SyntaxError,c=e.TypeError||n.TypeError,d=e.Math||n.Math,p=e.JSON||n.JSON;"object"==typeof p&&p&&(r.stringify=p.stringify,r.parse=p.parse);var f,_,m,g=l.prototype,v=g.toString,y=new h(-0xc782b5b800cec);try{y=-109252==y.getUTCFullYear()&&0===y.getUTCMonth()&&1===y.getUTCDate()&&10==y.getUTCHours()&&37==y.getUTCMinutes()&&6==y.getUTCSeconds()&&708==y.getUTCMilliseconds()}catch(t){}if(!s("json")){var b="[object Function]",T="[object Number]",x="[object String]",E="[object Array]",w=s("bug-string-char-index");if(!y)var S=d.floor,D=[0,31,59,90,120,151,181,212,243,273,304,334],I=function(t,e){return D[e]+365*(t-1970)+S((t-1969+(e=+(e>1)))/4)-S((t-1901+e)/100)+S((t-1601+e)/400)};if((f=g.hasOwnProperty)||(f=function(t){var e,i={};return(i.__proto__=null,i.__proto__={toString:1},i).toString!=v?f=function(t){var e=this.__proto__,i=t in(this.__proto__=null,this);return this.__proto__=e,i}:(e=i.constructor,f=function(t){var i=(this.constructor||e).prototype;return t in this&&!(t in i&&this[t]===i[t])}),i=null,f.call(this,t)}),_=function(t,e){var r,n,s,a=0;for(s in(r=function(){this.valueOf=0}).prototype.valueOf=0,n=new r)f.call(n,s)&&a++;return r=n=null,a?_=2==a?function(t,e){var i,r={},n=v.call(t)==b;for(i in t)n&&"prototype"==i||f.call(r,i)||!(r[i]=1)||!f.call(t,i)||e(i)}:function(t,e){var i,r,n=v.call(t)==b;for(i in t)n&&"prototype"==i||!f.call(t,i)||(r="constructor"===i)||e(i);(r||f.call(t,i="constructor"))&&e(i)}:(n=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],_=function(t,e){var r,s,a=v.call(t)==b,o=!a&&"function"!=typeof t.constructor&&i[typeof t.hasOwnProperty]&&t.hasOwnProperty||f;for(r in t)a&&"prototype"==r||!o.call(t,r)||e(r);for(s=n.length;r=n[--s];o.call(t,r)&&e(r));}),_(t,e)},!s("json-stringify")){var P={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},A=function(t,e){return("000000"+(e||0)).slice(-t)},C=function(t){for(var e='"',i=0,r=t.length,n=!w||r>10,s=n&&(w?t.split(""):t);r>i;i++){var a=t.charCodeAt(i);switch(a){case 8:case 9:case 10:case 12:case 13:case 34:case 92:e+=P[a];break;default:if(32>a){e+="\\u00"+A(2,a.toString(16));break}e+=n?s[i]:t.charAt(i)}}return e+'"'},M=function(t,e,i,r,n,s,a){var o,l,h,u,d,p,g,y,b,w,D,P,L,O,R,j;try{o=e[t]}catch(t){}if("object"==typeof o&&o)if("[object Date]"!=(l=v.call(o))||f.call(o,"toJSON"))"function"==typeof o.toJSON&&(l!=T&&l!=x&&l!=E||f.call(o,"toJSON"))&&(o=o.toJSON(t));else if(o>-1/0&&1/0>o){if(I){for(d=S(o/864e5),h=S(d/365.2425)+1970-1;I(h+1,0)<=d;h++);for(u=S((d-I(h,0))/30.42);I(h,u+1)<=d;u++);d=1+d-I(h,u),g=S((p=(o%864e5+864e5)%864e5)/36e5)%24,y=S(p/6e4)%60,b=S(p/1e3)%60,w=p%1e3}else h=o.getUTCFullYear(),u=o.getUTCMonth(),d=o.getUTCDate(),g=o.getUTCHours(),y=o.getUTCMinutes(),b=o.getUTCSeconds(),w=o.getUTCMilliseconds();o=(0>=h||h>=1e4?(0>h?"-":"+")+A(6,0>h?-h:h):A(4,h))+"-"+A(2,u+1)+"-"+A(2,d)+"T"+A(2,g)+":"+A(2,y)+":"+A(2,b)+"."+A(3,w)+"Z"}else o=null;if(i&&(o=i.call(e,t,o)),null===o)return"null";if("[object Boolean]"==(l=v.call(o)))return""+o;if(l==T)return o>-1/0&&1/0>o?""+o:"null";if(l==x)return C(""+o);if("object"==typeof o){for(O=a.length;O--;)if(a[O]===o)throw c();if(a.push(o),D=[],R=s,s+=n,l==E){for(L=0,O=o.length;O>L;L++)P=M(L,o,i,r,n,s,a),D.push(P===m?"null":P);j=D.length?n?"[\n"+s+D.join(",\n"+s)+"\n"+R+"]":"["+D.join(",")+"]":"[]"}else _(r||o,function(t){var e=M(t,o,i,r,n,s,a);e!==m&&D.push(C(t)+":"+(n?" ":"")+e)}),j=D.length?n?"{\n"+s+D.join(",\n"+s)+"\n"+R+"}":"{"+D.join(",")+"}":"{}";return a.pop(),j}};r.stringify=function(t,e,r){var n,s,a,o;if(i[typeof e]&&e)if((o=v.call(e))==b)s=e;else if(o==E){a={};for(var l,h=0,u=e.length;u>h;l=e[h++],((o=v.call(l))==x||o==T)&&(a[l]=1));}if(r)if((o=v.call(r))==T){if((r-=r%1)>0)for(n="",r>10&&(r=10);n.length<r;n+=" ");}else o==x&&(n=r.length<=10?r:r.slice(0,10));return M("",((l={})[""]=t,l),s,a,n,"",[])}}if(!s("json-parse")){var L,O,R=o.fromCharCode,j={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},k=function(){throw L=O=null,u()},N=function(){for(var t,e,i,r,n,s=O,a=s.length;a>L;)switch(n=s.charCodeAt(L)){case 9:case 10:case 13:case 32:L++;break;case 123:case 125:case 91:case 93:case 58:case 44:return t=w?s.charAt(L):s[L],L++,t;case 34:for(t="@",L++;a>L;)if(32>(n=s.charCodeAt(L)))k();else if(92==n)switch(n=s.charCodeAt(++L)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:t+=j[n],L++;break;case 117:for(e=++L,i=L+4;i>L;L++)(n=s.charCodeAt(L))>=48&&57>=n||n>=97&&102>=n||n>=65&&70>=n||k();t+=R("0x"+s.slice(e,L));break;default:k()}else{if(34==n)break;for(n=s.charCodeAt(L),e=L;n>=32&&92!=n&&34!=n;)n=s.charCodeAt(++L);t+=s.slice(e,L)}if(34==s.charCodeAt(L))return L++,t;k();default:if(e=L,45==n&&(r=!0,n=s.charCodeAt(++L)),n>=48&&57>=n){for(48==n&&((n=s.charCodeAt(L+1))>=48&&57>=n)&&k(),r=!1;a>L&&((n=s.charCodeAt(L))>=48&&57>=n);L++);if(46==s.charCodeAt(L)){for(i=++L;a>i&&((n=s.charCodeAt(i))>=48&&57>=n);i++);i==L&&k(),L=i}if(101==(n=s.charCodeAt(L))||69==n){for((43==(n=s.charCodeAt(++L))||45==n)&&L++,i=L;a>i&&((n=s.charCodeAt(i))>=48&&57>=n);i++);i==L&&k(),L=i}return+s.slice(e,L)}if(r&&k(),"true"==s.slice(L,L+4))return L+=4,!0;if("false"==s.slice(L,L+5))return L+=5,!1;if("null"==s.slice(L,L+4))return L+=4,null;k()}return"$"},H=function(t){var e,i;if("$"==t&&k(),"string"==typeof t){if("@"==(w?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(e=[];"]"!=(t=N());i||(i=!0))i&&(","==t?"]"==(t=N())&&k():k()),","==t&&k(),e.push(H(t));return e}if("{"==t){for(e={};"}"!=(t=N());i||(i=!0))i&&(","==t?"}"==(t=N())&&k():k()),(","==t||"string"!=typeof t||"@"!=(w?t.charAt(0):t[0])||":"!=N())&&k(),e[t.slice(1)]=H(N());return e}k()}return t},B=function(t,e,i){var r=F(t,e,i);r===m?delete t[e]:t[e]=r},F=function(t,e,i){var r,n=t[e];if("object"==typeof n&&n)if(v.call(n)==E)for(r=n.length;r--;)B(n,r,i);else _(n,function(t){B(n,t,i)});return i.call(t,e,n)};r.parse=function(t,e){var i,r;return L=0,O=""+t,i=H(N()),"$"!=N()&&k(),L=O=null,e&&v.call(e)==b?F(((r={})[""]=i,r),"",e):i}}}return r.runInContext=t,r}var e="function"==typeof define&&define.amd,i={function:!0,object:!0},r=i[typeof exports]&&exports&&!exports.nodeType&&exports,n=i[typeof window]&&window||this,s=r&&i[typeof module]&&module&&!module.nodeType&&"object"==typeof global&&global;if(!s||s.global!==s&&s.window!==s&&s.self!==s||(n=s),r&&!e)t(n,r);else{var a=n.JSON,o=n.JSON3,l=!1,h=t(n,n.JSON3={noConflict:function(){return l||(l=!0,n.JSON=a,n.JSON3=o,a=o=null),h}});n.JSON={parse:h.parse,stringify:h.stringify}}e&&define(function(){return h})}.call(this),function(){var t={appendToHead:function(e){t.getHead().appendChild(e)},getHead:function(){return document.head||document.getElementsByTagName("head")[0]},getBody:function(){return document.body||document.getElementsByTagName("body")[0]}};createjs.DomUtils=t}(),function(){var t={parseXML:function(t,e){var i=null;try{if(window.DOMParser){var r=new DOMParser;i=r.parseFromString(t,e)}}catch(t){}if(!i)try{(i=new ActiveXObject("Microsoft.XMLDOM")).async=!1,i.loadXML(t)}catch(t){i=null}return i},parseJSON:function(t){if(null==t)return null;try{return JSON.parse(t)}catch(t){throw t}}};createjs.DataUtils=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(){this.src=null,this.type=null,this.id=null,this.maintainOrder=!1,this.callback=null,this.data=null,this.method=createjs.LoadItem.GET,this.values=null,this.headers=null,this.withCredentials=!1,this.mimeType=null,this.crossOrigin=null,this.loadTimeout=i.LOAD_TIMEOUT_DEFAULT}var e=t.prototype={},i=t;i.LOAD_TIMEOUT_DEFAULT=8e3,i.create=function(e){if("string"==typeof e){var r=new t;return r.src=e,r}if(e instanceof i)return e;if(e instanceof Object&&e.src)return null==e.loadTimeout&&(e.loadTimeout=i.LOAD_TIMEOUT_DEFAULT),e;throw new Error("Type not recognized.")},e.set=function(t){for(var e in t)this[e]=t[e];return this},createjs.LoadItem=i}(),function(){var t={ABSOLUTE_PATT:/^(?:\w+:)?\/{2}/i,RELATIVE_PATT:/^[.\/]*?\//i,EXTENSION_PATT:/\/?[^\/]+\.(\w{1,5})$/i,parseURI:function(e){var i={absolute:!1,relative:!1};if(null==e)return i;var r,n=e.indexOf("?");return n>-1&&(e=e.substr(0,n)),t.ABSOLUTE_PATT.test(e)?i.absolute=!0:t.RELATIVE_PATT.test(e)&&(i.relative=!0),(r=e.match(t.EXTENSION_PATT))&&(i.extension=r[1].toLowerCase()),i},formatQueryString:function(t,e){if(null==t)throw new Error("You must specify data.");var i=[];for(var r in t)i.push(r+"="+escape(t[r]));return e&&(i=i.concat(e)),i.join("&")},buildPath:function(t,e){if(null==e)return t;var i=[],r=t.indexOf("?");if(-1!=r){var n=t.slice(r+1);i=i.concat(n.split("&"))}return-1!=r?t.slice(0,r)+"?"+this.formatQueryString(e,i):t+"?"+this.formatQueryString(e,i)},isCrossDomain:function(t){var e=document.createElement("a");e.href=t.src;var i=document.createElement("a");return i.href=location.href,""!=e.hostname&&(e.port!=i.port||e.protocol!=i.protocol||e.hostname!=i.hostname)},isLocal:function(t){var e=document.createElement("a");return e.href=t.src,""==e.hostname&&"file:"==e.protocol},isBinary:function(t){switch(t){case createjs.AbstractLoader.IMAGE:case createjs.AbstractLoader.BINARY:return!0;default:return!1}},isImageTag:function(t){return t instanceof HTMLImageElement},isAudioTag:function(t){return!!window.HTMLAudioElement&&t instanceof HTMLAudioElement},isVideoTag:function(t){return!!window.HTMLVideoElement&&t instanceof HTMLVideoElement},isText:function(t){switch(t){case createjs.AbstractLoader.TEXT:case createjs.AbstractLoader.JSON:case createjs.AbstractLoader.MANIFEST:case createjs.AbstractLoader.XML:case createjs.AbstractLoader.CSS:case createjs.AbstractLoader.SVG:case createjs.AbstractLoader.JAVASCRIPT:case createjs.AbstractLoader.SPRITESHEET:return!0;default:return!1}},getTypeByExtension:function(t){if(null==t)return createjs.AbstractLoader.TEXT;switch(t.toLowerCase()){case"jpeg":case"jpg":case"gif":case"png":case"webp":case"bmp":return createjs.AbstractLoader.IMAGE;case"ogg":case"mp3":case"webm":return createjs.AbstractLoader.SOUND;case"mp4":case"webm":case"ts":return createjs.AbstractLoader.VIDEO;case"json":return createjs.AbstractLoader.JSON;case"xml":return createjs.AbstractLoader.XML;case"css":return createjs.AbstractLoader.CSS;case"js":return createjs.AbstractLoader.JAVASCRIPT;case"svg":return createjs.AbstractLoader.SVG;default:return createjs.AbstractLoader.TEXT}}};createjs.RequestUtils=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.EventDispatcher_constructor(),this.loaded=!1,this.canceled=!1,this.progress=0,this.type=i,this.resultFormatter=null,this._item=t?createjs.LoadItem.create(t):null,this._preferXHR=e,this._result=null,this._rawResult=null,this._loadedItems=null,this._tagSrcAttribute=null,this._tag=null}var e=createjs.extend(t,createjs.EventDispatcher),i=t;i.POST="POST",i.GET="GET",i.BINARY="binary",i.CSS="css",i.IMAGE="image",i.JAVASCRIPT="javascript",i.JSON="json",i.JSONP="jsonp",i.MANIFEST="manifest",i.SOUND="sound",i.VIDEO="video",i.SPRITESHEET="spritesheet",i.SVG="svg",i.TEXT="text",i.XML="xml",e.getItem=function(){return this._item},e.getResult=function(t){return t?this._rawResult:this._result},e.getTag=function(){return this._tag},e.setTag=function(t){this._tag=t},e.load=function(){this._createRequest(),this._request.on("complete",this,this),this._request.on("progress",this,this),this._request.on("loadStart",this,this),this._request.on("abort",this,this),this._request.on("timeout",this,this),this._request.on("error",this,this);var t=new createjs.Event("initialize");t.loader=this._request,this.dispatchEvent(t),this._request.load()},e.cancel=function(){this.canceled=!0,this.destroy()},e.destroy=function(){this._request&&(this._request.removeAllEventListeners(),this._request.destroy()),this._request=null,this._item=null,this._rawResult=null,this._result=null,this._loadItems=null,this.removeAllEventListeners()},e.getLoadedItems=function(){return this._loadedItems},e._createRequest=function(){this._preferXHR?this._request=new createjs.XHRRequest(this._item):this._request=new createjs.TagRequest(this._item,this._tag||this._createTag(),this._tagSrcAttribute)},e._createTag=function(t){return null},e._sendLoadStart=function(){this._isCanceled()||this.dispatchEvent("loadstart")},e._sendProgress=function(t){if(!this._isCanceled()){var e=null;"number"==typeof t?(this.progress=t,e=new createjs.ProgressEvent(this.progress)):(e=t,this.progress=t.loaded/t.total,e.progress=this.progress,(isNaN(this.progress)||this.progress==1/0)&&(this.progress=0)),this.hasEventListener("progress")&&this.dispatchEvent(e)}},e._sendComplete=function(){if(!this._isCanceled()){this.loaded=!0;var t=new createjs.Event("complete");t.rawResult=this._rawResult,null!=this._result&&(t.result=this._result),this.dispatchEvent(t)}},e._sendError=function(t){!this._isCanceled()&&this.hasEventListener("error")&&(null==t&&(t=new createjs.ErrorEvent("PRELOAD_ERROR_EMPTY")),this.dispatchEvent(t))},e._isCanceled=function(){return!(null!=window.createjs&&!this.canceled)},e.resultFormatter=null,e.handleEvent=function(t){switch(t.type){case"complete":this._rawResult=t.target._response;var e=this.resultFormatter&&this.resultFormatter(this);e instanceof Function?e.call(this,createjs.proxy(this._resultFormatSuccess,this),createjs.proxy(this._resultFormatFailed,this)):(this._result=e||this._rawResult,this._sendComplete());break;case"progress":this._sendProgress(t);break;case"error":this._sendError(t);break;case"loadstart":this._sendLoadStart();break;case"abort":case"timeout":this._isCanceled()||this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_"+t.type.toUpperCase()+"_ERROR"))}},e._resultFormatSuccess=function(t){this._result=t,this._sendComplete()},e._resultFormatFailed=function(t){this._sendError(t)},e.buildPath=function(t,e){return createjs.RequestUtils.buildPath(t,e)},e.toString=function(){return"[PreloadJS AbstractLoader]"},createjs.AbstractLoader=createjs.promote(t,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.AbstractLoader_constructor(t,e,i),this.resultFormatter=this._formatResult,this._tagSrcAttribute="src",this.on("initialize",this._updateXHR,this)}var e=createjs.extend(t,createjs.AbstractLoader);e.load=function(){this._tag||(this._tag=this._createTag(this._item.src)),this._tag.preload="auto",this._tag.load(),this.AbstractLoader_load()},e._createTag=function(){},e._createRequest=function(){this._preferXHR?this._request=new createjs.XHRRequest(this._item):this._request=new createjs.MediaTagRequest(this._item,this._tag||this._createTag(),this._tagSrcAttribute)},e._updateXHR=function(t){t.loader.setResponseType&&t.loader.setResponseType("blob")},e._formatResult=function(t){if(this._tag.removeEventListener&&this._tag.removeEventListener("canplaythrough",this._loadedHandler),this._tag.onstalled=null,this._preferXHR){var e=window.URL||window.webkitURL,i=t.getResult(!0);t.getTag().src=e.createObjectURL(i)}return t.getTag()},createjs.AbstractMediaLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";var t=function(t){this._item=t},e=createjs.extend(t,createjs.EventDispatcher);e.load=function(){},e.destroy=function(){},e.cancel=function(){},createjs.AbstractRequest=createjs.promote(t,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.AbstractRequest_constructor(t),this._tag=e,this._tagSrcAttribute=i,this._loadedHandler=createjs.proxy(this._handleTagComplete,this),this._addedToDOM=!1,this._startTagVisibility=null}var e=createjs.extend(t,createjs.AbstractRequest);e.load=function(){this._tag.onload=createjs.proxy(this._handleTagComplete,this),this._tag.onreadystatechange=createjs.proxy(this._handleReadyStateChange,this),this._tag.onerror=createjs.proxy(this._handleError,this);var t=new createjs.Event("initialize");t.loader=this._tag,this.dispatchEvent(t),this._hideTag(),this._loadTimeout=setTimeout(createjs.proxy(this._handleTimeout,this),this._item.loadTimeout),this._tag[this._tagSrcAttribute]=this._item.src,null==this._tag.parentNode&&(window.document.body.appendChild(this._tag),this._addedToDOM=!0)},e.destroy=function(){this._clean(),this._tag=null,this.AbstractRequest_destroy()},e._handleReadyStateChange=function(){clearTimeout(this._loadTimeout);var t=this._tag;("loaded"==t.readyState||"complete"==t.readyState)&&this._handleTagComplete()},e._handleError=function(){this._clean(),this.dispatchEvent("error")},e._handleTagComplete=function(){this._rawResult=this._tag,this._result=this.resultFormatter&&this.resultFormatter(this)||this._rawResult,this._clean(),this._showTag(),this.dispatchEvent("complete")},e._handleTimeout=function(){this._clean(),this.dispatchEvent(new createjs.Event("timeout"))},e._clean=function(){this._tag.onload=null,this._tag.onreadystatechange=null,this._tag.onerror=null,this._addedToDOM&&null!=this._tag.parentNode&&this._tag.parentNode.removeChild(this._tag),clearTimeout(this._loadTimeout)},e._hideTag=function(){this._startTagVisibility=this._tag.style.visibility,this._tag.style.visibility="hidden"},e._showTag=function(){this._tag.style.visibility=this._startTagVisibility},e._handleStalled=function(){},createjs.TagRequest=createjs.promote(t,"AbstractRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.AbstractRequest_constructor(t),this._tag=e,this._tagSrcAttribute=i,this._loadedHandler=createjs.proxy(this._handleTagComplete,this)}var e=createjs.extend(t,createjs.TagRequest);e.load=function(){var t=createjs.proxy(this._handleStalled,this);this._stalledCallback=t;var e=createjs.proxy(this._handleProgress,this);this._handleProgress=e,this._tag.addEventListener("stalled",t),this._tag.addEventListener("progress",e),this._tag.addEventListener&&this._tag.addEventListener("canplaythrough",this._loadedHandler,!1),this.TagRequest_load()},e._handleReadyStateChange=function(){clearTimeout(this._loadTimeout);var t=this._tag;("loaded"==t.readyState||"complete"==t.readyState)&&this._handleTagComplete()},e._handleStalled=function(){},e._handleProgress=function(t){if(t&&!(t.loaded>0&&0==t.total)){var e=new createjs.ProgressEvent(t.loaded,t.total);this.dispatchEvent(e)}},e._clean=function(){this._tag.removeEventListener&&this._tag.removeEventListener("canplaythrough",this._loadedHandler),this._tag.removeEventListener("stalled",this._stalledCallback),this._tag.removeEventListener("progress",this._progressCallback),this.TagRequest__clean()},createjs.MediaTagRequest=createjs.promote(t,"TagRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.AbstractRequest_constructor(t),this._request=null,this._loadTimeout=null,this._xhrLevel=1,this._response=null,this._rawResponse=null,this._canceled=!1,this._handleLoadStartProxy=createjs.proxy(this._handleLoadStart,this),this._handleProgressProxy=createjs.proxy(this._handleProgress,this),this._handleAbortProxy=createjs.proxy(this._handleAbort,this),this._handleErrorProxy=createjs.proxy(this._handleError,this),this._handleTimeoutProxy=createjs.proxy(this._handleTimeout,this),this._handleLoadProxy=createjs.proxy(this._handleLoad,this),this._handleReadyStateChangeProxy=createjs.proxy(this._handleReadyStateChange,this),this._createXHR(t)}var e=createjs.extend(t,createjs.AbstractRequest);t.ACTIVEX_VERSIONS=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],e.getResult=function(t){return t&&this._rawResponse?this._rawResponse:this._response},e.cancel=function(){this.canceled=!0,this._clean(),this._request.abort()},e.load=function(){if(null!=this._request){null!=this._request.addEventListener?(this._request.addEventListener("loadstart",this._handleLoadStartProxy,!1),this._request.addEventListener("progress",this._handleProgressProxy,!1),this._request.addEventListener("abort",this._handleAbortProxy,!1),this._request.addEventListener("error",this._handleErrorProxy,!1),this._request.addEventListener("timeout",this._handleTimeoutProxy,!1),this._request.addEventListener("load",this._handleLoadProxy,!1),this._request.addEventListener("readystatechange",this._handleReadyStateChangeProxy,!1)):(this._request.onloadstart=this._handleLoadStartProxy,this._request.onprogress=this._handleProgressProxy,this._request.onabort=this._handleAbortProxy,this._request.onerror=this._handleErrorProxy,this._request.ontimeout=this._handleTimeoutProxy,this._request.onload=this._handleLoadProxy,this._request.onreadystatechange=this._handleReadyStateChangeProxy),1==this._xhrLevel&&(this._loadTimeout=setTimeout(createjs.proxy(this._handleTimeout,this),this._item.loadTimeout));try{this._item.values&&this._item.method!=createjs.AbstractLoader.GET?this._item.method==createjs.AbstractLoader.POST&&this._request.send(createjs.RequestUtils.formatQueryString(this._item.values)):this._request.send()}catch(t){this.dispatchEvent(new createjs.ErrorEvent("XHR_SEND",null,t))}}else this._handleError()},e.setResponseType=function(t){"blob"===t&&(t=window.URL?"blob":"arraybuffer",this._responseType=t),this._request.responseType=t},e.getAllResponseHeaders=function(){return this._request.getAllResponseHeaders instanceof Function?this._request.getAllResponseHeaders():null},e.getResponseHeader=function(t){return this._request.getResponseHeader instanceof Function?this._request.getResponseHeader(t):null},e._handleProgress=function(t){if(t&&!(t.loaded>0&&0==t.total)){var e=new createjs.ProgressEvent(t.loaded,t.total);this.dispatchEvent(e)}},e._handleLoadStart=function(t){clearTimeout(this._loadTimeout),this.dispatchEvent("loadstart")},e._handleAbort=function(t){this._clean(),this.dispatchEvent(new createjs.ErrorEvent("XHR_ABORTED",null,t))},e._handleError=function(t){this._clean(),this.dispatchEvent(new createjs.ErrorEvent(t.message))},e._handleReadyStateChange=function(t){4==this._request.readyState&&this._handleLoad()},e._handleLoad=function(t){if(!this.loaded){this.loaded=!0;var e=this._checkError();if(e)return void this._handleError(e);if(this._response=this._getResponse(),"arraybuffer"===this._responseType)try{this._response=new Blob([this._response])}catch(t){if(window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,"TypeError"===t.name&&window.BlobBuilder){var i=new BlobBuilder;i.append(this._response),this._response=i.getBlob()}}this._clean(),this.dispatchEvent(new createjs.Event("complete"))}},e._handleTimeout=function(t){this._clean(),this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_TIMEOUT",null,t))},e._checkError=function(){var t=parseInt(this._request.status);switch(t){case 404:case 0:return new Error(t)}return null},e._getResponse=function(){if(null!=this._response)return this._response;if(null!=this._request.response)return this._request.response;try{if(null!=this._request.responseText)return this._request.responseText}catch(t){}try{if(null!=this._request.responseXML)return this._request.responseXML}catch(t){}return null},e._createXHR=function(t){var e=createjs.RequestUtils.isCrossDomain(t),i={},r=null;if(window.XMLHttpRequest)r=new XMLHttpRequest,e&&void 0===r.withCredentials&&window.XDomainRequest&&(r=new XDomainRequest);else{for(var n=0,a=s.ACTIVEX_VERSIONS.length;a>n;n++){var o=s.ACTIVEX_VERSIONS[n];try{r=new ActiveXObject(o);break}catch(t){}}if(null==r)return!1}null==t.mimeType&&createjs.RequestUtils.isText(t.type)&&(t.mimeType="text/plain; charset=utf-8"),t.mimeType&&r.overrideMimeType&&r.overrideMimeType(t.mimeType),this._xhrLevel="string"==typeof r.responseType?2:1;var l;if(l=t.method==createjs.AbstractLoader.GET?createjs.RequestUtils.buildPath(t.src,t.values):t.src,r.open(t.method||createjs.AbstractLoader.GET,l,!0),e&&r instanceof XMLHttpRequest&&1==this._xhrLevel&&(i.Origin=location.origin),t.values&&t.method==createjs.AbstractLoader.POST&&(i["Content-Type"]="application/x-www-form-urlencoded"),e||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),t.headers)for(var h in t.headers)i[h]=t.headers[h];for(h in i)r.setRequestHeader(h,i[h]);return r instanceof XMLHttpRequest&&void 0!==t.withCredentials&&(r.withCredentials=t.withCredentials),this._request=r,!0},e._clean=function(){clearTimeout(this._loadTimeout),null!=this._request.removeEventListener?(this._request.removeEventListener("loadstart",this._handleLoadStartProxy),this._request.removeEventListener("progress",this._handleProgressProxy),this._request.removeEventListener("abort",this._handleAbortProxy),this._request.removeEventListener("error",this._handleErrorProxy),this._request.removeEventListener("timeout",this._handleTimeoutProxy),this._request.removeEventListener("load",this._handleLoadProxy),this._request.removeEventListener("readystatechange",this._handleReadyStateChangeProxy)):(this._request.onloadstart=null,this._request.onprogress=null,this._request.onabort=null,this._request.onerror=null,this._request.ontimeout=null,this._request.onload=null,this._request.onreadystatechange=null)},e.toString=function(){return"[PreloadJS XHRRequest]"},createjs.XHRRequest=createjs.promote(t,"AbstractRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.AbstractLoader_constructor(),this._plugins=[],this._typeCallbacks={},this._extensionCallbacks={},this.next=null,this.maintainScriptOrder=!0,this.stopOnError=!1,this._maxConnections=1,this._availableLoaders=[createjs.ImageLoader,createjs.JavaScriptLoader,createjs.CSSLoader,createjs.JSONLoader,createjs.JSONPLoader,createjs.SoundLoader,createjs.ManifestLoader,createjs.SpriteSheetLoader,createjs.XMLLoader,createjs.SVGLoader,createjs.BinaryLoader,createjs.VideoLoader,createjs.TextLoader],this._defaultLoaderLength=this._availableLoaders.length,this.init(t,e,i)}var e=createjs.extend(t,createjs.AbstractLoader),i=t;e.init=function(t,e,i){this.useXHR=!0,this.preferXHR=!0,this._preferXHR=!0,this.setPreferXHR(t),this._paused=!1,this._basePath=e,this._crossOrigin=i,this._loadStartWasDispatched=!1,this._currentlyLoadingScript=null,this._currentLoads=[],this._loadQueue=[],this._loadQueueBackup=[],this._loadItemsById={},this._loadItemsBySrc={},this._loadedResults={},this._loadedRawResults={},this._numItems=0,this._numItemsLoaded=0,this._scriptOrder=[],this._loadedScripts=[],this._lastProgress=NaN},i.loadTimeout=8e3,i.LOAD_TIMEOUT=0,i.BINARY=createjs.AbstractLoader.BINARY,i.CSS=createjs.AbstractLoader.CSS,i.IMAGE=createjs.AbstractLoader.IMAGE,i.JAVASCRIPT=createjs.AbstractLoader.JAVASCRIPT,i.JSON=createjs.AbstractLoader.JSON,i.JSONP=createjs.AbstractLoader.JSONP,i.MANIFEST=createjs.AbstractLoader.MANIFEST,i.SOUND=createjs.AbstractLoader.SOUND,i.VIDEO=createjs.AbstractLoader.VIDEO,i.SVG=createjs.AbstractLoader.SVG,i.TEXT=createjs.AbstractLoader.TEXT,i.XML=createjs.AbstractLoader.XML,i.POST=createjs.AbstractLoader.POST,i.GET=createjs.AbstractLoader.GET,e.registerLoader=function(t){if(!t||!t.canLoadItem)throw new Error("loader is of an incorrect type.");if(-1!=this._availableLoaders.indexOf(t))throw new Error("loader already exists.");this._availableLoaders.unshift(t)},e.unregisterLoader=function(t){var e=this._availableLoaders.indexOf(t);-1!=e&&e<this._defaultLoaderLength-1&&this._availableLoaders.splice(e,1)},e.setUseXHR=function(t){return this.setPreferXHR(t)},e.setPreferXHR=function(t){return this.preferXHR=0!=t&&null!=window.XMLHttpRequest,this.preferXHR},e.removeAll=function(){this.remove()},e.remove=function(t){var e=null;if(t&&!Array.isArray(t))e=[t];else if(t)e=t;else if(arguments.length>0)return;var i=!1;if(e){for(;e.length;){var r=e.pop(),n=this.getResult(r);for(s=this._loadQueue.length-1;s>=0;s--)if((a=this._loadQueue[s].getItem()).id==r||a.src==r){this._loadQueue.splice(s,1)[0].cancel();break}for(s=this._loadQueueBackup.length-1;s>=0;s--)if((a=this._loadQueueBackup[s].getItem()).id==r||a.src==r){this._loadQueueBackup.splice(s,1)[0].cancel();break}if(n)this._disposeItem(this.getItem(r));else for(var s=this._currentLoads.length-1;s>=0;s--){var a=this._currentLoads[s].getItem();if(a.id==r||a.src==r){this._currentLoads.splice(s,1)[0].cancel(),i=!0;break}}}i&&this._loadNext()}else{for(var o in this.close(),this._loadItemsById)this._disposeItem(this._loadItemsById[o]);this.init(this.preferXHR,this._basePath)}},e.reset=function(){for(var t in this.close(),this._loadItemsById)this._disposeItem(this._loadItemsById[t]);for(var e=[],i=0,r=this._loadQueueBackup.length;r>i;i++)e.push(this._loadQueueBackup[i].getItem());this.loadManifest(e,!1)},e.installPlugin=function(t){if(null!=t&&null!=t.getPreloadHandlers){this._plugins.push(t);var e=t.getPreloadHandlers();if(e.scope=t,null!=e.types)for(var i=0,r=e.types.length;r>i;i++)this._typeCallbacks[e.types[i]]=e;if(null!=e.extensions)for(i=0,r=e.extensions.length;r>i;i++)this._extensionCallbacks[e.extensions[i]]=e}},e.setMaxConnections=function(t){this._maxConnections=t,!this._paused&&this._loadQueue.length>0&&this._loadNext()},e.loadFile=function(t,e,i){if(null!=t)this._addItem(t,null,i),!1!==e?this.setPaused(!1):this.setPaused(!0);else{var r=new createjs.ErrorEvent("PRELOAD_NO_FILE");this._sendError(r)}},e.loadManifest=function(t,e,r){var n=null,s=null;if(Array.isArray(t)){if(0==t.length){var a=new createjs.ErrorEvent("PRELOAD_MANIFEST_EMPTY");return void this._sendError(a)}n=t}else if("string"==typeof t)n=[{src:t,type:i.MANIFEST}];else{if("object"!=typeof t){a=new createjs.ErrorEvent("PRELOAD_MANIFEST_NULL");return void this._sendError(a)}if(void 0!==t.src){if(null==t.type)t.type=i.MANIFEST;else if(t.type!=i.MANIFEST){a=new createjs.ErrorEvent("PRELOAD_MANIFEST_TYPE");this._sendError(a)}n=[t]}else void 0!==t.manifest&&(n=t.manifest,s=t.path)}for(var o=0,l=n.length;l>o;o++)this._addItem(n[o],s,r);!1!==e?this.setPaused(!1):this.setPaused(!0)},e.load=function(){this.setPaused(!1)},e.getItem=function(t){return this._loadItemsById[t]||this._loadItemsBySrc[t]},e.getResult=function(t,e){var i=this._loadItemsById[t]||this._loadItemsBySrc[t];if(null==i)return null;var r=i.id;return e&&this._loadedRawResults[r]?this._loadedRawResults[r]:this._loadedResults[r]},e.getItems=function(t){var e=[];for(var i in this._loadItemsById){var r=this._loadItemsById[i],n=this.getResult(i);(!0!==t||null!=n)&&e.push({item:r,result:n,rawResult:this.getResult(i,!0)})}return e},e.setPaused=function(t){this._paused=t,this._paused||this._loadNext()},e.close=function(){for(;this._currentLoads.length;)this._currentLoads.pop().cancel();this._scriptOrder.length=0,this._loadedScripts.length=0,this.loadStartWasDispatched=!1,this._itemCount=0,this._lastProgress=NaN},e._addItem=function(t,e,i){var r=this._createLoadItem(t,e,i);if(null!=r){var n=this._createLoader(r);null!=n&&("plugins"in n&&(n.plugins=this._plugins),r._loader=n,this._loadQueue.push(n),this._loadQueueBackup.push(n),this._numItems++,this._updateProgress(),(this.maintainScriptOrder&&r.type==createjs.LoadQueue.JAVASCRIPT||!0===r.maintainOrder)&&(this._scriptOrder.push(r),this._loadedScripts.push(null)))}},e._createLoadItem=function(t,e,i){var r=createjs.LoadItem.create(t);if(null==r)return null;var n="",s=i||this._basePath;if(r.src instanceof Object){if(!r.type)return null;if(e){n=e;var a=createjs.RequestUtils.parseURI(e);null==s||a.absolute||a.relative||(n=s+n)}else null!=s&&(n=s)}else{var o=createjs.RequestUtils.parseURI(r.src);o.extension&&(r.ext=o.extension),null==r.type&&(r.type=createjs.RequestUtils.getTypeByExtension(r.ext));var l=r.src;if(!o.absolute&&!o.relative)if(e){n=e;a=createjs.RequestUtils.parseURI(e);l=e+l,null==s||a.absolute||a.relative||(n=s+n)}else null!=s&&(n=s);r.src=n+r.src}r.path=n,(void 0===r.id||null===r.id||""===r.id)&&(r.id=l);var h=this._typeCallbacks[r.type]||this._extensionCallbacks[r.ext];if(h){var u=h.callback.call(h.scope,r,this);if(!1===u)return null;!0===u||null!=u&&(r._loader=u),null!=(o=createjs.RequestUtils.parseURI(r.src)).extension&&(r.ext=o.extension)}return this._loadItemsById[r.id]=r,this._loadItemsBySrc[r.src]=r,null==r.crossOrigin&&(r.crossOrigin=this._crossOrigin),r},e._createLoader=function(t){if(null!=t._loader)return t._loader;for(var e=this.preferXHR,i=0;i<this._availableLoaders.length;i++){var r=this._availableLoaders[i];if(r&&r.canLoadItem(t))return new r(t,e)}return null},e._loadNext=function(){if(!this._paused){this._loadStartWasDispatched||(this._sendLoadStart(),this._loadStartWasDispatched=!0),this._numItems==this._numItemsLoaded?(this.loaded=!0,this._sendComplete(),this.next&&this.next.load&&this.next.load()):this.loaded=!1;for(var t=0;t<this._loadQueue.length&&!(this._currentLoads.length>=this._maxConnections);t++){var e=this._loadQueue[t];this._canStartLoad(e)&&(this._loadQueue.splice(t,1),t--,this._loadItem(e))}}},e._loadItem=function(t){t.on("fileload",this._handleFileLoad,this),t.on("progress",this._handleProgress,this),t.on("complete",this._handleFileComplete,this),t.on("error",this._handleError,this),t.on("fileerror",this._handleFileError,this),this._currentLoads.push(t),this._sendFileStart(t.getItem()),t.load()},e._handleFileLoad=function(t){t.target=null,this.dispatchEvent(t)},e._handleFileError=function(t){var e=new createjs.ErrorEvent("FILE_LOAD_ERROR",null,t.item);this._sendError(e)},e._handleError=function(t){var e=t.target;this._numItemsLoaded++,this._finishOrderedItem(e,!0),this._updateProgress();var i=new createjs.ErrorEvent("FILE_LOAD_ERROR",null,e.getItem());this._sendError(i),this.stopOnError?this.setPaused(!0):(this._removeLoadItem(e),this._cleanLoadItem(e),this._loadNext())},e._handleFileComplete=function(t){var e=t.target,i=e.getItem(),r=e.getResult();this._loadedResults[i.id]=r;var n=e.getResult(!0);null!=n&&n!==r&&(this._loadedRawResults[i.id]=n),this._saveLoadedItems(e),this._removeLoadItem(e),this._finishOrderedItem(e)||this._processFinishedLoad(i,e),this._cleanLoadItem(e)},e._saveLoadedItems=function(t){var e=t.getLoadedItems();if(null!==e)for(var i=0;i<e.length;i++){var r=e[i].item;this._loadItemsBySrc[r.src]=r,this._loadItemsById[r.id]=r,this._loadedResults[r.id]=e[i].result,this._loadedRawResults[r.id]=e[i].rawResult}},e._finishOrderedItem=function(t,e){var i=t.getItem();if(this.maintainScriptOrder&&i.type==createjs.LoadQueue.JAVASCRIPT||i.maintainOrder){t instanceof createjs.JavaScriptLoader&&(this._currentlyLoadingScript=!1);var r=createjs.indexOf(this._scriptOrder,i);return-1!=r&&(this._loadedScripts[r]=!0===e||i,this._checkScriptLoadOrder(),!0)}return!1},e._checkScriptLoadOrder=function(){for(var t=this._loadedScripts.length,e=0;t>e;e++){var i=this._loadedScripts[e];if(null===i)break;if(!0!==i){var r=this._loadedResults[i.id];i.type==createjs.LoadQueue.JAVASCRIPT&&createjs.DomUtils.appendToHead(r);var n=i._loader;this._processFinishedLoad(i,n),this._loadedScripts[e]=!0}}},e._processFinishedLoad=function(t,e){if(this._numItemsLoaded++,!this.maintainScriptOrder&&t.type==createjs.LoadQueue.JAVASCRIPT){var i=e.getTag();createjs.DomUtils.appendToHead(i)}this._updateProgress(),this._sendFileComplete(t,e),this._loadNext()},e._canStartLoad=function(t){if(!this.maintainScriptOrder||t.preferXHR)return!0;var e=t.getItem();if(e.type!=createjs.LoadQueue.JAVASCRIPT)return!0;if(this._currentlyLoadingScript)return!1;for(var i=this._scriptOrder.indexOf(e),r=0;i>r;){if(null==this._loadedScripts[r])return!1;r++}return this._currentlyLoadingScript=!0,!0},e._removeLoadItem=function(t){for(var e=this._currentLoads.length,i=0;e>i;i++)if(this._currentLoads[i]==t){this._currentLoads.splice(i,1);break}},e._cleanLoadItem=function(t){var e=t.getItem();e&&delete e._loader},e._handleProgress=function(t){var e=t.target;this._sendFileProgress(e.getItem(),e.progress),this._updateProgress()},e._updateProgress=function(){var t=this._numItemsLoaded/this._numItems,e=this._numItems-this._numItemsLoaded;if(e>0){for(var i=0,r=0,n=this._currentLoads.length;n>r;r++)i+=this._currentLoads[r].progress;t+=i/e*(e/this._numItems)}this._lastProgress!=t&&(this._sendProgress(t),this._lastProgress=t)},e._disposeItem=function(t){delete this._loadedResults[t.id],delete this._loadedRawResults[t.id],delete this._loadItemsById[t.id],delete this._loadItemsBySrc[t.src]},e._sendFileProgress=function(t,e){if(!this._isCanceled()&&!this._paused&&this.hasEventListener("fileprogress")){var i=new createjs.Event("fileprogress");i.progress=e,i.loaded=e,i.total=1,i.item=t,this.dispatchEvent(i)}},e._sendFileComplete=function(t,e){if(!this._isCanceled()&&!this._paused){var i=new createjs.Event("fileload");i.loader=e,i.item=t,i.result=this._loadedResults[t.id],i.rawResult=this._loadedRawResults[t.id],t.completeHandler&&t.completeHandler(i),this.hasEventListener("fileload")&&this.dispatchEvent(i)}},e._sendFileStart=function(t){var e=new createjs.Event("filestart");e.item=t,this.hasEventListener("filestart")&&this.dispatchEvent(e)},e.toString=function(){return"[PreloadJS LoadQueue]"},createjs.LoadQueue=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.AbstractLoader_constructor(t,!0,createjs.AbstractLoader.TEXT)}(createjs.extend(t,createjs.AbstractLoader),t).canLoadItem=function(t){return t.type==createjs.AbstractLoader.TEXT},createjs.TextLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.AbstractLoader_constructor(t,!0,createjs.AbstractLoader.BINARY),this.on("initialize",this._updateXHR,this)}var e=createjs.extend(t,createjs.AbstractLoader);t.canLoadItem=function(t){return t.type==createjs.AbstractLoader.BINARY},e._updateXHR=function(t){t.loader.setResponseType("arraybuffer")},createjs.BinaryLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e){this.AbstractLoader_constructor(t,e,createjs.AbstractLoader.CSS),this.resultFormatter=this._formatResult,this._tagSrcAttribute="href",this._tag=e?document.createElement("style"):document.createElement("link"),this._tag.rel="stylesheet",this._tag.type="text/css"}var e=createjs.extend(t,createjs.AbstractLoader);t.canLoadItem=function(t){return t.type==createjs.AbstractLoader.CSS},e._formatResult=function(t){if(this._preferXHR){var e=t.getTag();if(e.styleSheet)e.styleSheet.cssText=t.getResult(!0);else{var i=document.createTextNode(t.getResult(!0));e.appendChild(i)}}else e=this._tag;return createjs.DomUtils.appendToHead(e),e},createjs.CSSLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e){this.AbstractLoader_constructor(t,e,createjs.AbstractLoader.IMAGE),this.resultFormatter=this._formatResult,this._tagSrcAttribute="src",createjs.RequestUtils.isImageTag(t)?this._tag=t:createjs.RequestUtils.isImageTag(t.src)?this._tag=t.src:createjs.RequestUtils.isImageTag(t.tag)&&(this._tag=t.tag),null!=this._tag?this._preferXHR=!1:this._tag=document.createElement("img"),this.on("initialize",this._updateXHR,this)}var e=createjs.extend(t,createjs.AbstractLoader);t.canLoadItem=function(t){return t.type==createjs.AbstractLoader.IMAGE},e.load=function(){if(""!=this._tag.src&&this._tag.complete)this._sendComplete();else{var t=this._item.crossOrigin;1==t&&(t="Anonymous"),null==t||createjs.RequestUtils.isLocal(this._item.src)||(this._tag.crossOrigin=t),this.AbstractLoader_load()}},e._updateXHR=function(t){t.loader.mimeType="text/plain; charset=x-user-defined-binary",t.loader.setResponseType&&t.loader.setResponseType("blob")},e._formatResult=function(t){return this._formatImage},e._formatImage=function(t,e){var i=this._tag,r=window.URL||window.webkitURL;if(this._preferXHR)if(r){var n=r.createObjectURL(this.getResult(!0));i.src=n,i.addEventListener("load",this._cleanUpURL,!1),i.addEventListener("error",this._cleanUpURL,!1)}else i.src=this._item.src;i.complete?t(i):(i.onload=createjs.proxy(function(){t(this._tag)},this),i.onerror=createjs.proxy(function(){e(_this._tag)},this))},e._cleanUpURL=function(t){(window.URL||window.webkitURL).revokeObjectURL(t.target.src)},createjs.ImageLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e){this.AbstractLoader_constructor(t,e,createjs.AbstractLoader.JAVASCRIPT),this.resultFormatter=this._formatResult,this._tagSrcAttribute="src",this.setTag(document.createElement("script"))}var e=createjs.extend(t,createjs.AbstractLoader);t.canLoadItem=function(t){return t.type==createjs.AbstractLoader.JAVASCRIPT},e._formatResult=function(t){var e=t.getTag();return this._preferXHR&&(e.text=t.getResult(!0)),e},createjs.JavaScriptLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.AbstractLoader_constructor(t,!0,createjs.AbstractLoader.JSON),this.resultFormatter=this._formatResult}var e=createjs.extend(t,createjs.AbstractLoader);t.canLoadItem=function(t){return t.type==createjs.AbstractLoader.JSON},e._formatResult=function(t){var e=null;try{e=createjs.DataUtils.parseJSON(t.getResult(!0))}catch(t){var i=new createjs.ErrorEvent("JSON_FORMAT",null,t);return this._sendError(i),t}return e},createjs.JSONLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.AbstractLoader_constructor(t,!1,createjs.AbstractLoader.JSONP),this.setTag(document.createElement("script")),this.getTag().type="text/javascript"}var e=createjs.extend(t,createjs.AbstractLoader);t.canLoadItem=function(t){return t.type==createjs.AbstractLoader.JSONP},e.cancel=function(){this.AbstractLoader_cancel(),this._dispose()},e.load=function(){if(null==this._item.callback)throw new Error("callback is required for loading JSONP requests.");if(null!=window[this._item.callback])throw new Error("JSONP callback '"+this._item.callback+"' already exists on window. You need to specify a different callback or re-name the current one.");window[this._item.callback]=createjs.proxy(this._handleLoad,this),window.document.body.appendChild(this._tag),this._loadTimeout=setTimeout(createjs.proxy(this._handleTimeout,this),this._item.loadTimeout),this._tag.src=this._item.src},e._handleLoad=function(t){this._result=this._rawResult=t,this._sendComplete(),this._dispose()},e._handleTimeout=function(){this._dispose(),this.dispatchEvent(new createjs.ErrorEvent("timeout"))},e._dispose=function(){window.document.body.removeChild(this._tag),delete window[this._item.callback],clearTimeout(this._loadTimeout)},createjs.JSONPLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.AbstractLoader_constructor(t,null,createjs.AbstractLoader.MANIFEST),this.plugins=null,this._manifestQueue=null}var e=createjs.extend(t,createjs.AbstractLoader),i=t;i.MANIFEST_PROGRESS=.25,i.canLoadItem=function(t){return t.type==createjs.AbstractLoader.MANIFEST},e.load=function(){this.AbstractLoader_load()},e._createRequest=function(){var t=this._item.callback;this._request=null!=t?new createjs.JSONPLoader(this._item):new createjs.JSONLoader(this._item)},e.handleEvent=function(t){switch(t.type){case"complete":return this._rawResult=t.target.getResult(!0),this._result=t.target.getResult(),this._sendProgress(i.MANIFEST_PROGRESS),void this._loadManifest(this._result);case"progress":return t.loaded*=i.MANIFEST_PROGRESS,this.progress=t.loaded/t.total,(isNaN(this.progress)||this.progress==1/0)&&(this.progress=0),void this._sendProgress(t)}this.AbstractLoader_handleEvent(t)},e.destroy=function(){this.AbstractLoader_destroy(),this._manifestQueue.close()},e._loadManifest=function(t){if(t&&t.manifest){var e=this._manifestQueue=new createjs.LoadQueue;e.on("fileload",this._handleManifestFileLoad,this),e.on("progress",this._handleManifestProgress,this),e.on("complete",this._handleManifestComplete,this,!0),e.on("error",this._handleManifestError,this,!0);for(var i=0,r=this.plugins.length;r>i;i++)e.installPlugin(this.plugins[i]);e.loadManifest(t)}else this._sendComplete()},e._handleManifestFileLoad=function(t){t.target=null,this.dispatchEvent(t)},e._handleManifestComplete=function(t){this._loadedItems=this._manifestQueue.getItems(!0),this._sendComplete()},e._handleManifestProgress=function(t){this.progress=t.progress*(1-i.MANIFEST_PROGRESS)+i.MANIFEST_PROGRESS,this._sendProgress(this.progress)},e._handleManifestError=function(t){var e=new createjs.Event("fileerror");e.item=t.data,this.dispatchEvent(e)},createjs.ManifestLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e){this.AbstractMediaLoader_constructor(t,e,createjs.AbstractLoader.SOUND),createjs.RequestUtils.isAudioTag(t)?this._tag=t:createjs.RequestUtils.isAudioTag(t.src)?this._tag=t:createjs.RequestUtils.isAudioTag(t.tag)&&(this._tag=createjs.RequestUtils.isAudioTag(t)?t:t.src),null!=this._tag&&(this._preferXHR=!1)}var e=createjs.extend(t,createjs.AbstractMediaLoader);t.canLoadItem=function(t){return t.type==createjs.AbstractLoader.SOUND},e._createTag=function(t){var e=document.createElement("audio");return e.autoplay=!1,e.preload="none",e.src=t,e},createjs.SoundLoader=createjs.promote(t,"AbstractMediaLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e){this.AbstractMediaLoader_constructor(t,e,createjs.AbstractLoader.VIDEO),createjs.RequestUtils.isVideoTag(t)||createjs.RequestUtils.isVideoTag(t.src)?(this.setTag(createjs.RequestUtils.isVideoTag(t)?t:t.src),this._preferXHR=!1):this.setTag(this._createTag())}var e=t;createjs.extend(t,createjs.AbstractMediaLoader)._createTag=function(){return document.createElement("video")},e.canLoadItem=function(t){return t.type==createjs.AbstractLoader.VIDEO},createjs.VideoLoader=createjs.promote(t,"AbstractMediaLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e){this.AbstractLoader_constructor(t,e,createjs.AbstractLoader.SPRITESHEET),this._manifestQueue=null}var e=createjs.extend(t,createjs.AbstractLoader),i=t;i.SPRITESHEET_PROGRESS=.25,i.canLoadItem=function(t){return t.type==createjs.AbstractLoader.SPRITESHEET},e.destroy=function(){this.AbstractLoader_destroy,this._manifestQueue.close()},e._createRequest=function(){var t=this._item.callback;this._request=null!=t?new createjs.JSONPLoader(this._item):new createjs.JSONLoader(this._item)},e.handleEvent=function(t){switch(t.type){case"complete":return this._rawResult=t.target.getResult(!0),this._result=t.target.getResult(),this._sendProgress(i.SPRITESHEET_PROGRESS),void this._loadManifest(this._result);case"progress":return t.loaded*=i.SPRITESHEET_PROGRESS,this.progress=t.loaded/t.total,(isNaN(this.progress)||this.progress==1/0)&&(this.progress=0),void this._sendProgress(t)}this.AbstractLoader_handleEvent(t)},e._loadManifest=function(t){if(t&&t.images){var e=this._manifestQueue=new createjs.LoadQueue(this._preferXHR,this._item.path,this._item.crossOrigin);e.on("complete",this._handleManifestComplete,this,!0),e.on("fileload",this._handleManifestFileLoad,this),e.on("progress",this._handleManifestProgress,this),e.on("error",this._handleManifestError,this,!0),e.loadManifest(t.images)}},e._handleManifestFileLoad=function(t){var e=t.result;if(null!=e){var i=this.getResult().images;i[i.indexOf(t.item.src)]=e}},e._handleManifestComplete=function(t){this._result=new createjs.SpriteSheet(this._result),this._loadedItems=this._manifestQueue.getItems(!0),this._sendComplete()},e._handleManifestProgress=function(t){this.progress=t.progress*(1-i.SPRITESHEET_PROGRESS)+i.SPRITESHEET_PROGRESS,this._sendProgress(this.progress)},e._handleManifestError=function(t){var e=new createjs.Event("fileerror");e.item=t.data,this.dispatchEvent(e)},createjs.SpriteSheetLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e){this.AbstractLoader_constructor(t,e,createjs.AbstractLoader.SVG),this.resultFormatter=this._formatResult,this._tagSrcAttribute="data",e?this.setTag(document.createElement("svg")):(this.setTag(document.createElement("object")),this.getTag().type="image/svg+xml")}var e=createjs.extend(t,createjs.AbstractLoader);t.canLoadItem=function(t){return t.type==createjs.AbstractLoader.SVG},e._formatResult=function(t){var e=createjs.DataUtils.parseXML(t.getResult(!0),"text/xml"),i=t.getTag();return!this._preferXHR&&document.body.contains(i)&&document.body.removeChild(i),null!=e.documentElement?(i.appendChild(e.documentElement),i.style.visibility="visible",i):e},createjs.SVGLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.AbstractLoader_constructor(t,!0,createjs.AbstractLoader.XML),this.resultFormatter=this._formatResult}var e=createjs.extend(t,createjs.AbstractLoader);t.canLoadItem=function(t){return t.type==createjs.AbstractLoader.XML},e._formatResult=function(t){return createjs.DataUtils.parseXML(t.getResult(!0),"text/xml")},createjs.XMLLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){var t=createjs.SoundJS=createjs.SoundJS||{};t.version="0.6.2",t.buildDate="Thu, 26 Nov 2015 20:44:31 GMT"}(),this.createjs=this.createjs||{},createjs.indexOf=function(t,e){"use strict";for(var i=0,r=t.length;r>i;i++)if(e===t[i])return i;return-1},this.createjs=this.createjs||{},function(){"use strict";createjs.proxy=function(t,e){var i=Array.prototype.slice.call(arguments,2);return function(){return t.apply(e,Array.prototype.slice.call(arguments,0).concat(i))}}}(),this.createjs=this.createjs||{},function(){"use strict";function t(){throw"BrowserDetect cannot be instantiated"}var e=t.agent=window.navigator.userAgent;t.isWindowPhone=e.indexOf("IEMobile")>-1||e.indexOf("Windows Phone")>-1,t.isFirefox=e.indexOf("Firefox")>-1,t.isOpera=null!=window.opera,t.isChrome=e.indexOf("Chrome")>-1,t.isIOS=(e.indexOf("iPod")>-1||e.indexOf("iPhone")>-1||e.indexOf("iPad")>-1)&&!t.isWindowPhone,t.isAndroid=e.indexOf("Android")>-1&&!t.isWindowPhone,t.isBlackberry=e.indexOf("Blackberry")>-1,createjs.BrowserDetect=t}(),this.createjs=this.createjs||{},function(){"use strict";var t=function(){this.interrupt=null,this.delay=null,this.offset=null,this.loop=null,this.volume=null,this.pan=null,this.startTime=null,this.duration=null},e=t.prototype={},i=t;i.create=function(t){if(t instanceof i||t instanceof Object){var e=new createjs.PlayPropsConfig;return e.set(t),e}throw new Error("Type not recognized.")},e.set=function(t){for(var e in t)this[e]=t[e];return this},e.toString=function(){return"[PlayPropsConfig]"},createjs.PlayPropsConfig=i}(),this.createjs=this.createjs||{},function(){"use strict";function t(){throw"Sound cannot be instantiated"}function e(t,e){this.init(t,e)}var i=t;i.INTERRUPT_ANY="any",i.INTERRUPT_EARLY="early",i.INTERRUPT_LATE="late",i.INTERRUPT_NONE="none",i.PLAY_INITED="playInited",i.PLAY_SUCCEEDED="playSucceeded",i.PLAY_INTERRUPTED="playInterrupted",i.PLAY_FINISHED="playFinished",i.PLAY_FAILED="playFailed",i.SUPPORTED_EXTENSIONS=["mp3","ogg","opus","mpeg","wav","m4a","mp4","aiff","wma","mid"],i.EXTENSION_MAP={m4a:"mp4"},i.FILE_PATTERN=/^(?:(\w+:)\/{2}(\w+(?:\.\w+)*\/?))?([\/.]*?(?:[^?]+)?\/)?((?:[^\/?]+)\.(\w+))(?:\?(\S+)?)?$/,i.defaultInterruptBehavior=i.INTERRUPT_NONE,i.alternateExtensions=[],i.activePlugin=null,i._masterVolume=1,Object.defineProperty(i,"volume",{get:function(){return this._masterVolume},set:function(t){if(null==Number(t))return!1;if(t=Math.max(0,Math.min(1,t)),i._masterVolume=t,!this.activePlugin||!this.activePlugin.setVolume||!this.activePlugin.setVolume(t))for(var e=this._instances,r=0,n=e.length;n>r;r++)e[r].setMasterVolume(t)}}),i._masterMute=!1,Object.defineProperty(i,"muted",{get:function(){return this._masterMute},set:function(t){if(null==t)return!1;if(this._masterMute=t,!this.activePlugin||!this.activePlugin.setMute||!this.activePlugin.setMute(t))for(var e=this._instances,i=0,r=e.length;r>i;i++)e[i].setMasterMute(t);return!0}}),Object.defineProperty(i,"capabilities",{get:function(){return null==i.activePlugin?null:i.activePlugin._capabilities},set:function(t){return!1}}),i._pluginsRegistered=!1,i._lastID=0,i._instances=[],i._idHash={},i._preloadHash={},i._defaultPlayPropsHash={},i.addEventListener=null,i.removeEventListener=null,i.removeAllEventListeners=null,i.dispatchEvent=null,i.hasEventListener=null,i._listeners=null,createjs.EventDispatcher.initialize(i),i.getPreloadHandlers=function(){return{callback:createjs.proxy(i.initLoad,i),types:["sound"],extensions:i.SUPPORTED_EXTENSIONS}},i._handleLoadComplete=function(t){var e=t.target.getItem().src;if(i._preloadHash[e])for(var r=0,n=i._preloadHash[e].length;n>r;r++){var s=i._preloadHash[e][r];if(i._preloadHash[e][r]=!0,i.hasEventListener("fileload"))(t=new createjs.Event("fileload")).src=s.src,t.id=s.id,t.data=s.data,t.sprite=s.sprite,i.dispatchEvent(t)}},i._handleLoadError=function(t){var e=t.target.getItem().src;if(i._preloadHash[e])for(var r=0,n=i._preloadHash[e].length;n>r;r++){var s=i._preloadHash[e][r];if(i._preloadHash[e][r]=!1,i.hasEventListener("fileerror"))(t=new createjs.Event("fileerror")).src=s.src,t.id=s.id,t.data=s.data,t.sprite=s.sprite,i.dispatchEvent(t)}},i._registerPlugin=function(t){return!!t.isSupported()&&(i.activePlugin=new t,!0)},i.registerPlugins=function(t){i._pluginsRegistered=!0;for(var e=0,r=t.length;r>e;e++)if(i._registerPlugin(t[e]))return!0;return!1},i.initializeDefaultPlugins=function(){return null!=i.activePlugin||!i._pluginsRegistered&&!!i.registerPlugins([createjs.WebAudioPlugin,createjs.HTMLAudioPlugin])},i.isReady=function(){return null!=i.activePlugin},i.getCapabilities=function(){return null==i.activePlugin?null:i.activePlugin._capabilities},i.getCapability=function(t){return null==i.activePlugin?null:i.activePlugin._capabilities[t]},i.initLoad=function(t){return i._registerSound(t)},i._registerSound=function(t){if(!i.initializeDefaultPlugins())return!1;var r;if(t.src instanceof Object?(r=i._parseSrc(t.src)).src=t.path+r.src:r=i._parsePath(t.src),null==r)return!1;t.src=r.src,t.type="sound";var n=t.data,s=null;if(null!=n&&(isNaN(n.channels)?isNaN(n)||(s=parseInt(n)):s=parseInt(n.channels),n.audioSprite))for(var a,o=n.audioSprite.length;o--;)a=n.audioSprite[o],i._idHash[a.id]={src:t.src,startTime:parseInt(a.startTime),duration:parseInt(a.duration)},a.defaultPlayProps&&(i._defaultPlayPropsHash[a.id]=createjs.PlayPropsConfig.create(a.defaultPlayProps));null!=t.id&&(i._idHash[t.id]={src:t.src});var l=i.activePlugin.register(t);return e.create(t.src,s),null!=n&&isNaN(n)?t.data.channels=s||e.maxPerChannel():t.data=s||e.maxPerChannel(),l.type&&(t.type=l.type),t.defaultPlayProps&&(i._defaultPlayPropsHash[t.src]=createjs.PlayPropsConfig.create(t.defaultPlayProps)),l},i.registerSound=function(t,e,r,n,s){var a={src:t,id:e,data:r,defaultPlayProps:s};t instanceof Object&&t.src&&(n=e,a=t),(a=createjs.LoadItem.create(a)).path=n,null==n||a.src instanceof Object||(a.src=n+t);var o=i._registerSound(a);if(!o)return!1;if(i._preloadHash[a.src]||(i._preloadHash[a.src]=[]),i._preloadHash[a.src].push(a),1==i._preloadHash[a.src].length)o.on("complete",createjs.proxy(this._handleLoadComplete,this)),o.on("error",createjs.proxy(this._handleLoadError,this)),i.activePlugin.preload(o);else if(1==i._preloadHash[a.src][0])return!0;return a},i.registerSounds=function(t,e){var i=[];t.path&&(e?e+=t.path:e=t.path,t=t.manifest);for(var r=0,n=t.length;n>r;r++)i[r]=createjs.Sound.registerSound(t[r].src,t[r].id,t[r].data,e,t[r].defaultPlayProps);return i},i.removeSound=function(t,r){if(null==i.activePlugin)return!1;var n;if(t instanceof Object&&t.src&&(t=t.src),t instanceof Object?n=i._parseSrc(t):(t=i._getSrcById(t).src,n=i._parsePath(t)),null==n)return!1;for(var s in t=n.src,null!=r&&(t=r+t),i._idHash)i._idHash[s].src==t&&delete i._idHash[s];return e.removeSrc(t),delete i._preloadHash[t],i.activePlugin.removeSound(t),!0},i.removeSounds=function(t,e){var i=[];t.path&&(e?e+=t.path:e=t.path,t=t.manifest);for(var r=0,n=t.length;n>r;r++)i[r]=createjs.Sound.removeSound(t[r].src,e);return i},i.removeAllSounds=function(){i._idHash={},i._preloadHash={},e.removeAll(),i.activePlugin&&i.activePlugin.removeAllSounds()},i.loadComplete=function(t){if(!i.isReady())return!1;var e=i._parsePath(t);return t=e?i._getSrcById(e.src).src:i._getSrcById(t).src,null!=i._preloadHash[t]&&1==i._preloadHash[t][0]},i._parsePath=function(t){"string"!=typeof t&&(t=t.toString());var e=t.match(i.FILE_PATTERN);if(null==e)return!1;for(var r=e[4],n=e[5],s=i.capabilities,a=0;!s[n];)if(n=i.alternateExtensions[a++],a>i.alternateExtensions.length)return null;return{name:r,src:t=t.replace("."+e[5],"."+n),extension:n}},i._parseSrc=function(t){var e={name:void 0,src:void 0,extension:void 0},r=i.capabilities;for(var n in t)if(t.hasOwnProperty(n)&&r[n]){e.src=t[n],e.extension=n;break}if(!e.src)return!1;var s=e.src.lastIndexOf("/");return e.name=-1!=s?e.src.slice(s+1):e.src,e},i.play=function(t,e,r,n,s,a,o,l,h){var u;u=e instanceof Object||e instanceof createjs.PlayPropsConfig?createjs.PlayPropsConfig.create(e):createjs.PlayPropsConfig.create({interrupt:e,delay:r,offset:n,loop:s,volume:a,pan:o,startTime:l,duration:h});var c=i.createInstance(t,u.startTime,u.duration);return i._playInstance(c,u)||c._playFailed(),c},i.createInstance=function(t,r,n){if(!i.initializeDefaultPlugins())return new createjs.DefaultSoundInstance(t,r,n);var s=i._defaultPlayPropsHash[t];t=i._getSrcById(t);var a=i._parsePath(t.src),o=null;return null!=a&&null!=a.src?(e.create(a.src),null==r&&(r=t.startTime),o=i.activePlugin.create(a.src,r,n||t.duration),(s=s||i._defaultPlayPropsHash[a.src])&&o.applyPlayProps(s)):o=new createjs.DefaultSoundInstance(t,r,n),o.uniqueId=i._lastID++,o},i.stop=function(){for(var t=this._instances,e=t.length;e--;)t[e].stop()},i.setVolume=function(t){if(null==Number(t))return!1;if(t=Math.max(0,Math.min(1,t)),i._masterVolume=t,!this.activePlugin||!this.activePlugin.setVolume||!this.activePlugin.setVolume(t))for(var e=this._instances,r=0,n=e.length;n>r;r++)e[r].setMasterVolume(t)},i.getVolume=function(){return this._masterVolume},i.setMute=function(t){if(null==t)return!1;if(this._masterMute=t,!this.activePlugin||!this.activePlugin.setMute||!this.activePlugin.setMute(t))for(var e=this._instances,i=0,r=e.length;r>i;i++)e[i].setMasterMute(t);return!0},i.getMute=function(){return this._masterMute},i.setDefaultPlayProps=function(t,e){t=i._getSrcById(t),i._defaultPlayPropsHash[i._parsePath(t.src).src]=createjs.PlayPropsConfig.create(e)},i.getDefaultPlayProps=function(t){return t=i._getSrcById(t),i._defaultPlayPropsHash[i._parsePath(t.src).src]},i._playInstance=function(t,e){var r=i._defaultPlayPropsHash[t.src]||{};if(null==e.interrupt&&(e.interrupt=r.interrupt||i.defaultInterruptBehavior),null==e.delay&&(e.delay=r.delay||0),null==e.offset&&(e.offset=t.getPosition()),null==e.loop&&(e.loop=t.loop),null==e.volume&&(e.volume=t.volume),null==e.pan&&(e.pan=t.pan),0==e.delay){if(!i._beginPlaying(t,e))return!1}else{var n=setTimeout(function(){i._beginPlaying(t,e)},e.delay);t.delayTimeoutId=n}return this._instances.push(t),!0},i._beginPlaying=function(t,i){if(!e.add(t,i.interrupt))return!1;if(!t._beginPlaying(i)){var r=createjs.indexOf(this._instances,t);return r>-1&&this._instances.splice(r,1),!1}return!0},i._getSrcById=function(t){return i._idHash[t]||{src:t}},i._playFinished=function(t){e.remove(t);var i=createjs.indexOf(this._instances,t);i>-1&&this._instances.splice(i,1)},createjs.Sound=t,e.channels={},e.create=function(t,i){return null==e.get(t)&&(e.channels[t]=new e(t,i),!0)},e.removeSrc=function(t){var i=e.get(t);return null!=i&&(i._removeAll(),delete e.channels[t],!0)},e.removeAll=function(){for(var t in e.channels)e.channels[t]._removeAll();e.channels={}},e.add=function(t,i){var r=e.get(t.src);return null!=r&&r._add(t,i)},e.remove=function(t){var i=e.get(t.src);return null!=i&&(i._remove(t),!0)},e.maxPerChannel=function(){return r.maxDefault},e.get=function(t){return e.channels[t]};var r=e.prototype;r.constructor=e,r.src=null,r.max=null,r.maxDefault=100,r.length=0,r.init=function(t,e){this.src=t,this.max=e||this.maxDefault,-1==this.max&&(this.max=this.maxDefault),this._instances=[]},r._get=function(t){return this._instances[t]},r._add=function(t,e){return!!this._getSlot(e,t)&&(this._instances.push(t),this.length++,!0)},r._remove=function(t){var e=createjs.indexOf(this._instances,t);return-1!=e&&(this._instances.splice(e,1),this.length--,!0)},r._removeAll=function(){for(var t=this.length-1;t>=0;t--)this._instances[t].stop()},r._getSlot=function(e,i){var r,n;if(e!=t.INTERRUPT_NONE&&null==(n=this._get(0)))return!0;for(var s=0,a=this.max;a>s;s++){if(null==(r=this._get(s)))return!0;if(r.playState==t.PLAY_FINISHED||r.playState==t.PLAY_INTERRUPTED||r.playState==t.PLAY_FAILED){n=r;break}e!=t.INTERRUPT_NONE&&(e==t.INTERRUPT_EARLY&&r.getPosition()<n.getPosition()||e==t.INTERRUPT_LATE&&r.getPosition()>n.getPosition())&&(n=r)}return null!=n&&(n._interrupt(),this._remove(n),!0)},r.toString=function(){return"[Sound SoundChannel]"}}(),this.createjs=this.createjs||{},function(){"use strict";var t=function(t,e,i,r){this.EventDispatcher_constructor(),this.src=t,this.uniqueId=-1,this.playState=null,this.delayTimeoutId=null,this._volume=1,Object.defineProperty(this,"volume",{get:this.getVolume,set:this.setVolume}),this._pan=0,Object.defineProperty(this,"pan",{get:this.getPan,set:this.setPan}),this._startTime=Math.max(0,e||0),Object.defineProperty(this,"startTime",{get:this.getStartTime,set:this.setStartTime}),this._duration=Math.max(0,i||0),Object.defineProperty(this,"duration",{get:this.getDuration,set:this.setDuration}),this._playbackResource=null,Object.defineProperty(this,"playbackResource",{get:this.getPlaybackResource,set:this.setPlaybackResource}),!1!==r&&!0!==r&&this.setPlaybackResource(r),this._position=0,Object.defineProperty(this,"position",{get:this.getPosition,set:this.setPosition}),this._loop=0,Object.defineProperty(this,"loop",{get:this.getLoop,set:this.setLoop}),this._muted=!1,Object.defineProperty(this,"muted",{get:this.getMuted,set:this.setMuted}),this._paused=!1,Object.defineProperty(this,"paused",{get:this.getPaused,set:this.setPaused})},e=createjs.extend(t,createjs.EventDispatcher);e.play=function(t,e,i,r,n,s){var a;return a=t instanceof Object||t instanceof createjs.PlayPropsConfig?createjs.PlayPropsConfig.create(t):createjs.PlayPropsConfig.create({interrupt:t,delay:e,offset:i,loop:r,volume:n,pan:s}),this.playState==createjs.Sound.PLAY_SUCCEEDED?(this.applyPlayProps(a),void(this._paused&&this.setPaused(!1))):(this._cleanUp(),createjs.Sound._playInstance(this,a),this)},e.stop=function(){return this._position=0,this._paused=!1,this._handleStop(),this._cleanUp(),this.playState=createjs.Sound.PLAY_FINISHED,this},e.destroy=function(){this._cleanUp(),this.src=null,this.playbackResource=null,this.removeAllEventListeners()},e.applyPlayProps=function(t){return null!=t.offset&&this.setPosition(t.offset),null!=t.loop&&this.setLoop(t.loop),null!=t.volume&&this.setVolume(t.volume),null!=t.pan&&this.setPan(t.pan),null!=t.startTime&&(this.setStartTime(t.startTime),this.setDuration(t.duration)),this},e.toString=function(){return"[AbstractSoundInstance]"},e.getPaused=function(){return this._paused},e.setPaused=function(t){return!0!==t&&!1!==t||this._paused==t||1==t&&this.playState!=createjs.Sound.PLAY_SUCCEEDED?void 0:(this._paused=t,t?this._pause():this._resume(),clearTimeout(this.delayTimeoutId),this)},e.setVolume=function(t){return t==this._volume?this:(this._volume=Math.max(0,Math.min(1,t)),this._muted||this._updateVolume(),this)},e.getVolume=function(){return this._volume},e.setMuted=function(t){return!0===t||!1===t?(this._muted=t,this._updateVolume(),this):void 0},e.getMuted=function(){return this._muted},e.setPan=function(t){return t==this._pan?this:(this._pan=Math.max(-1,Math.min(1,t)),this._updatePan(),this)},e.getPan=function(){return this._pan},e.getPosition=function(){return this._paused||this.playState!=createjs.Sound.PLAY_SUCCEEDED||(this._position=this._calculateCurrentPosition()),this._position},e.setPosition=function(t){return this._position=Math.max(0,t),this.playState==createjs.Sound.PLAY_SUCCEEDED&&this._updatePosition(),this},e.getStartTime=function(){return this._startTime},e.setStartTime=function(t){return t==this._startTime?this:(this._startTime=Math.max(0,t||0),this._updateStartTime(),this)},e.getDuration=function(){return this._duration},e.setDuration=function(t){return t==this._duration?this:(this._duration=Math.max(0,t||0),this._updateDuration(),this)},e.setPlaybackResource=function(t){return this._playbackResource=t,0==this._duration&&this._setDurationFromSource(),this},e.getPlaybackResource=function(){return this._playbackResource},e.getLoop=function(){return this._loop},e.setLoop=function(t){null!=this._playbackResource&&(0!=this._loop&&0==t?this._removeLooping(t):0==this._loop&&0!=t&&this._addLooping(t)),this._loop=t},e._sendEvent=function(t){var e=new createjs.Event(t);this.dispatchEvent(e)},e._cleanUp=function(){clearTimeout(this.delayTimeoutId),this._handleCleanUp(),this._paused=!1,createjs.Sound._playFinished(this)},e._interrupt=function(){this._cleanUp(),this.playState=createjs.Sound.PLAY_INTERRUPTED,this._sendEvent("interrupted")},e._beginPlaying=function(t){return this.setPosition(t.offset),this.setLoop(t.loop),this.setVolume(t.volume),this.setPan(t.pan),null!=t.startTime&&(this.setStartTime(t.startTime),this.setDuration(t.duration)),null!=this._playbackResource&&this._position<this._duration?(this._paused=!1,this._handleSoundReady(),this.playState=createjs.Sound.PLAY_SUCCEEDED,this._sendEvent("succeeded"),!0):(this._playFailed(),!1)},e._playFailed=function(){this._cleanUp(),this.playState=createjs.Sound.PLAY_FAILED,this._sendEvent("failed")},e._handleSoundComplete=function(t){return this._position=0,0!=this._loop?(this._loop--,this._handleLoop(),void this._sendEvent("loop")):(this._cleanUp(),this.playState=createjs.Sound.PLAY_FINISHED,void this._sendEvent("complete"))},e._handleSoundReady=function(){},e._updateVolume=function(){},e._updatePan=function(){},e._updateStartTime=function(){},e._updateDuration=function(){},e._setDurationFromSource=function(){},e._calculateCurrentPosition=function(){},e._updatePosition=function(){},e._removeLooping=function(t){},e._addLooping=function(t){},e._pause=function(){},e._resume=function(){},e._handleStop=function(){},e._handleCleanUp=function(){},e._handleLoop=function(){},createjs.AbstractSoundInstance=createjs.promote(t,"EventDispatcher"),createjs.DefaultSoundInstance=createjs.AbstractSoundInstance}(),this.createjs=this.createjs||{},function(){"use strict";var t=function(){this._capabilities=null,this._loaders={},this._audioSources={},this._soundInstances={},this._volume=1,this._loaderClass,this._soundInstanceClass},e=t.prototype;t._capabilities=null,t.isSupported=function(){return!0},e.register=function(t){var e=this._loaders[t.src];return e&&!e.canceled?this._loaders[t.src]:(this._audioSources[t.src]=!0,this._soundInstances[t.src]=[],(e=new this._loaderClass(t)).on("complete",this._handlePreloadComplete,this),this._loaders[t.src]=e,e)},e.preload=function(t){t.on("error",this._handlePreloadError,this),t.load()},e.isPreloadStarted=function(t){return null!=this._audioSources[t]},e.isPreloadComplete=function(t){return!(null==this._audioSources[t]||1==this._audioSources[t])},e.removeSound=function(t){if(this._soundInstances[t]){for(var e=this._soundInstances[t].length;e--;){this._soundInstances[t][e].destroy()}delete this._soundInstances[t],delete this._audioSources[t],this._loaders[t]&&this._loaders[t].destroy(),delete this._loaders[t]}},e.removeAllSounds=function(){for(var t in this._audioSources)this.removeSound(t)},e.create=function(t,e,i){this.isPreloadStarted(t)||this.preload(this.register(t));var r=new this._soundInstanceClass(t,e,i,this._audioSources[t]);return this._soundInstances[t].push(r),r},e.setVolume=function(t){return this._volume=t,this._updateVolume(),!0},e.getVolume=function(){return this._volume},e.setMute=function(t){return this._updateVolume(),!0},e.toString=function(){return"[AbstractPlugin]"},e._handlePreloadComplete=function(t){var e=t.target.getItem().src;this._audioSources[e]=t.result;for(var i=0,r=this._soundInstances[e].length;r>i;i++){this._soundInstances[e][i].setPlaybackResource(this._audioSources[e])}},e._handlePreloadError=function(t){},e._updateVolume=function(){},createjs.AbstractPlugin=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.AbstractLoader_constructor(t,!0,createjs.AbstractLoader.SOUND)}var e=createjs.extend(t,createjs.AbstractLoader);t.context=null,e.toString=function(){return"[WebAudioLoader]"},e._createRequest=function(){this._request=new createjs.XHRRequest(this._item,!1),this._request.setResponseType("arraybuffer")},e._sendComplete=function(e){t.context.decodeAudioData(this._rawResult,createjs.proxy(this._handleAudioDecoded,this),createjs.proxy(this._sendError,this))},e._handleAudioDecoded=function(t){this._result=t,this.AbstractLoader__sendComplete()},createjs.WebAudioLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,r,n){this.AbstractSoundInstance_constructor(t,e,r,n),this.gainNode=i.context.createGain(),this.panNode=i.context.createPanner(),this.panNode.panningModel=i._panningModel,this.panNode.connect(this.gainNode),this._updatePan(),this.sourceNode=null,this._soundCompleteTimeout=null,this._sourceNodeNext=null,this._playbackStartTime=0,this._endedHandler=createjs.proxy(this._handleSoundComplete,this)}var e=createjs.extend(t,createjs.AbstractSoundInstance),i=t;i.context=null,i._scratchBuffer=null,i.destinationNode=null,i._panningModel="equalpower",e.destroy=function(){this.AbstractSoundInstance_destroy(),this.panNode.disconnect(0),this.panNode=null,this.gainNode.disconnect(0),this.gainNode=null},e.toString=function(){return"[WebAudioSoundInstance]"},e._updatePan=function(){this.panNode.setPosition(this._pan,0,-.5)},e._removeLooping=function(t){this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext)},e._addLooping=function(t){this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._sourceNodeNext=this._createAndPlayAudioNode(this._playbackStartTime,0))},e._setDurationFromSource=function(){this._duration=1e3*this.playbackResource.duration},e._handleCleanUp=function(){this.sourceNode&&this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this.sourceNode=this._cleanUpAudioNode(this.sourceNode),this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext)),0!=this.gainNode.numberOfOutputs&&this.gainNode.disconnect(0),clearTimeout(this._soundCompleteTimeout),this._playbackStartTime=0},e._cleanUpAudioNode=function(t){if(t){t.stop(0),t.disconnect(0);try{t.buffer=i._scratchBuffer}catch(t){}t=null}return t},e._handleSoundReady=function(t){this.gainNode.connect(i.destinationNode);var e=.001*this._duration,r=.001*this._position;r>e&&(r=e),this.sourceNode=this._createAndPlayAudioNode(i.context.currentTime-e,r),this._playbackStartTime=this.sourceNode.startTime-r,this._soundCompleteTimeout=setTimeout(this._endedHandler,1e3*(e-r)),0!=this._loop&&(this._sourceNodeNext=this._createAndPlayAudioNode(this._playbackStartTime,0))},e._createAndPlayAudioNode=function(t,e){var r=i.context.createBufferSource();r.buffer=this.playbackResource,r.connect(this.panNode);var n=.001*this._duration;return r.startTime=t+n,r.start(r.startTime,e+.001*this._startTime,n-e),r},e._pause=function(){this._position=1e3*(i.context.currentTime-this._playbackStartTime),this.sourceNode=this._cleanUpAudioNode(this.sourceNode),this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext),0!=this.gainNode.numberOfOutputs&&this.gainNode.disconnect(0),clearTimeout(this._soundCompleteTimeout)},e._resume=function(){this._handleSoundReady()},e._updateVolume=function(){var t=this._muted?0:this._volume;t!=this.gainNode.gain.value&&(this.gainNode.gain.value=t)},e._calculateCurrentPosition=function(){return 1e3*(i.context.currentTime-this._playbackStartTime)},e._updatePosition=function(){this.sourceNode=this._cleanUpAudioNode(this.sourceNode),this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext),clearTimeout(this._soundCompleteTimeout),this._paused||this._handleSoundReady()},e._handleLoop=function(){this._cleanUpAudioNode(this.sourceNode),this.sourceNode=this._sourceNodeNext,this._playbackStartTime=this.sourceNode.startTime,this._sourceNodeNext=this._createAndPlayAudioNode(this._playbackStartTime,0),this._soundCompleteTimeout=setTimeout(this._endedHandler,this._duration)},e._updateDuration=function(){this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._pause(),this._resume())},createjs.WebAudioSoundInstance=createjs.promote(t,"AbstractSoundInstance")}(),this.createjs=this.createjs||{},function(){"use strict";function t(){this.AbstractPlugin_constructor(),this._panningModel=i._panningModel,this.context=i.context,this.dynamicsCompressorNode=this.context.createDynamicsCompressor(),this.dynamicsCompressorNode.connect(this.context.destination),this.gainNode=this.context.createGain(),this.gainNode.connect(this.dynamicsCompressorNode),createjs.WebAudioSoundInstance.destinationNode=this.gainNode,this._capabilities=i._capabilities,this._loaderClass=createjs.WebAudioLoader,this._soundInstanceClass=createjs.WebAudioSoundInstance,this._addPropsToClasses()}var e=createjs.extend(t,createjs.AbstractPlugin),i=t;i._capabilities=null,i._panningModel="equalpower",i.context=null,i._scratchBuffer=null,i._unlocked=!1,i.isSupported=function(){var t=createjs.BrowserDetect.isIOS||createjs.BrowserDetect.isAndroid||createjs.BrowserDetect.isBlackberry;return!("file:"==location.protocol&&!t&&!this._isFileXHRSupported())&&(i._generateCapabilities(),null!=i.context)},i.playEmptySound=function(){if(null!=i.context){var t=i.context.createBufferSource();t.buffer=i._scratchBuffer,t.connect(i.context.destination),t.start(0,0,0)}},i._isFileXHRSupported=function(){var t=!0,e=new XMLHttpRequest;try{e.open("GET","WebAudioPluginTest.fail",!1)}catch(e){return t=!1}e.onerror=function(){t=!1},e.onload=function(){t=404==this.status||200==this.status||0==this.status&&""!=this.response};try{e.send()}catch(e){t=!1}return t},i._generateCapabilities=function(){if(null==i._capabilities){var t=document.createElement("audio");if(null==t.canPlayType)return null;if(null==i.context)if(window.AudioContext)i.context=new AudioContext;else{if(!window.webkitAudioContext)return null;i.context=new webkitAudioContext}null==i._scratchBuffer&&(i._scratchBuffer=i.context.createBuffer(1,1,22050)),i._compatibilitySetUp(),"ontouchstart"in window&&"running"!=i.context.state&&(i._unlock(),document.addEventListener("mousedown",i._unlock,!0),document.addEventListener("touchend",i._unlock,!0)),i._capabilities={panning:!0,volume:!0,tracks:-1};for(var e=createjs.Sound.SUPPORTED_EXTENSIONS,r=createjs.Sound.EXTENSION_MAP,n=0,s=e.length;s>n;n++){var a=e[n],o=r[a]||a;i._capabilities[a]="no"!=t.canPlayType("audio/"+a)&&""!=t.canPlayType("audio/"+a)||"no"!=t.canPlayType("audio/"+o)&&""!=t.canPlayType("audio/"+o)}i.context.destination.numberOfChannels<2&&(i._capabilities.panning=!1)}},i._compatibilitySetUp=function(){if(i._panningModel="equalpower",!i.context.createGain){i.context.createGain=i.context.createGainNode;var t=i.context.createBufferSource();t.__proto__.start=t.__proto__.noteGrainOn,t.__proto__.stop=t.__proto__.noteOff,i._panningModel=0}},i._unlock=function(){i._unlocked||(i.playEmptySound(),"running"==i.context.state&&(document.removeEventListener("mousedown",i._unlock,!0),document.removeEventListener("touchend",i._unlock,!0),i._unlocked=!0))},e.toString=function(){return"[WebAudioPlugin]"},e._addPropsToClasses=function(){var t=this._soundInstanceClass;t.context=this.context,t._scratchBuffer=i._scratchBuffer,t.destinationNode=this.gainNode,t._panningModel=this._panningModel,this._loaderClass.context=this.context},e._updateVolume=function(){var t=createjs.Sound._masterMute?0:this._volume;t!=this.gainNode.gain.value&&(this.gainNode.gain.value=t)},createjs.WebAudioPlugin=createjs.promote(t,"AbstractPlugin")}(),this.createjs=this.createjs||{},function(){"use strict";function t(){throw"HTMLAudioTagPool cannot be instantiated"}function e(t){this._tags=[]}var i=t;i._tags={},i._tagPool=new e,i._tagUsed={},i.get=function(t){var e=i._tags[t];return null==e?(e=i._tags[t]=i._tagPool.get()).src=t:i._tagUsed[t]?(e=i._tagPool.get()).src=t:i._tagUsed[t]=!0,e},i.set=function(t,e){e==i._tags[t]?i._tagUsed[t]=!1:i._tagPool.set(e)},i.remove=function(t){var e=i._tags[t];return null!=e&&(i._tagPool.set(e),delete i._tags[t],delete i._tagUsed[t],!0)},i.getDuration=function(t){var e=i._tags[t];return null!=e&&e.duration?1e3*e.duration:0},createjs.HTMLAudioTagPool=t;var r=e.prototype;r.constructor=e,r.get=function(){var t;return null==(t=0==this._tags.length?this._createTag():this._tags.pop()).parentNode&&document.body.appendChild(t),t},r.set=function(t){-1==createjs.indexOf(this._tags,t)&&(this._tags.src=null,this._tags.push(t))},r.toString=function(){return"[TagPool]"},r._createTag=function(){var t=document.createElement("audio");return t.autoplay=!1,t.preload="none",t}}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i,r){this.AbstractSoundInstance_constructor(t,e,i,r),this._audioSpriteStopTime=null,this._delayTimeoutId=null,this._endedHandler=createjs.proxy(this._handleSoundComplete,this),this._readyHandler=createjs.proxy(this._handleTagReady,this),this._stalledHandler=createjs.proxy(this._playFailed,this),this._audioSpriteEndHandler=createjs.proxy(this._handleAudioSpriteLoop,this),this._loopHandler=createjs.proxy(this._handleSoundComplete,this),i?this._audioSpriteStopTime=.001*(e+i):this._duration=createjs.HTMLAudioTagPool.getDuration(this.src)}var e=createjs.extend(t,createjs.AbstractSoundInstance);e.setMasterVolume=function(t){this._updateVolume()},e.setMasterMute=function(t){this._updateVolume()},e.toString=function(){return"[HTMLAudioSoundInstance]"},e._removeLooping=function(){null!=this._playbackResource&&(this._playbackResource.loop=!1,this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1))},e._addLooping=function(){null==this._playbackResource||this._audioSpriteStopTime||(this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),this._playbackResource.loop=!0)},e._handleCleanUp=function(){var t=this._playbackResource;if(null!=t){t.pause(),t.loop=!1,t.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),t.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1),t.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED,this._stalledHandler,!1),t.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),t.removeEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1);try{t.currentTime=this._startTime}catch(t){}createjs.HTMLAudioTagPool.set(this.src,t),this._playbackResource=null}},e._beginPlaying=function(t){return this._playbackResource=createjs.HTMLAudioTagPool.get(this.src),this.AbstractSoundInstance__beginPlaying(t)},e._handleSoundReady=function(t){if(4!==this._playbackResource.readyState){var e=this._playbackResource;return e.addEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1),e.addEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED,this._stalledHandler,!1),e.preload="auto",void e.load()}this._updateVolume(),this._playbackResource.currentTime=.001*(this._startTime+this._position),this._audioSpriteStopTime?this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1):(this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),0!=this._loop&&(this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),this._playbackResource.loop=!0)),this._playbackResource.play()},e._handleTagReady=function(t){this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1),this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED,this._stalledHandler,!1),this._handleSoundReady()},e._pause=function(){this._playbackResource.pause()},e._resume=function(){this._playbackResource.play()},e._updateVolume=function(){if(null!=this._playbackResource){var t=this._muted||createjs.Sound._masterMute?0:this._volume*createjs.Sound._masterVolume;t!=this._playbackResource.volume&&(this._playbackResource.volume=t)}},e._calculateCurrentPosition=function(){return 1e3*this._playbackResource.currentTime-this._startTime},e._updatePosition=function(){this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._handleSetPositionSeek,!1);try{this._playbackResource.currentTime=.001*(this._position+this._startTime)}catch(t){this._handleSetPositionSeek(null)}},e._handleSetPositionSeek=function(t){null!=this._playbackResource&&(this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._handleSetPositionSeek,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1))},e._handleAudioSpriteLoop=function(t){this._playbackResource.currentTime<=this._audioSpriteStopTime||(this._playbackResource.pause(),0==this._loop?this._handleSoundComplete(null):(this._position=0,this._loop--,this._playbackResource.currentTime=.001*this._startTime,this._paused||this._playbackResource.play(),this._sendEvent("loop")))},e._handleLoop=function(t){0==this._loop&&(this._playbackResource.loop=!1,this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1))},e._updateStartTime=function(){this._audioSpriteStopTime=.001*(this._startTime+this._duration),this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1))},e._updateDuration=function(){this._audioSpriteStopTime=.001*(this._startTime+this._duration),this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1))},e._setDurationFromSource=function(){this._duration=createjs.HTMLAudioTagPool.getDuration(this.src),this._playbackResource=null},createjs.HTMLAudioSoundInstance=createjs.promote(t,"AbstractSoundInstance")}(),this.createjs=this.createjs||{},function(){"use strict";function t(){this.AbstractPlugin_constructor(),this.defaultNumChannels=2,this._capabilities=i._capabilities,this._loaderClass=createjs.SoundLoader,this._soundInstanceClass=createjs.HTMLAudioSoundInstance}var e=createjs.extend(t,createjs.AbstractPlugin),i=t;i.MAX_INSTANCES=30,i._AUDIO_READY="canplaythrough",i._AUDIO_ENDED="ended",i._AUDIO_SEEKED="seeked",i._AUDIO_STALLED="stalled",i._TIME_UPDATE="timeupdate",i._capabilities=null,i.isSupported=function(){return i._generateCapabilities(),null!=i._capabilities},i._generateCapabilities=function(){if(null==i._capabilities){var t=document.createElement("audio");if(null==t.canPlayType)return null;i._capabilities={panning:!1,volume:!0,tracks:-1};for(var e=createjs.Sound.SUPPORTED_EXTENSIONS,r=createjs.Sound.EXTENSION_MAP,n=0,s=e.length;s>n;n++){var a=e[n],o=r[a]||a;i._capabilities[a]="no"!=t.canPlayType("audio/"+a)&&""!=t.canPlayType("audio/"+a)||"no"!=t.canPlayType("audio/"+o)&&""!=t.canPlayType("audio/"+o)}}},e.register=function(t){var e=createjs.HTMLAudioTagPool.get(t.src),i=this.AbstractPlugin_register(t);return i.setTag(e),i},e.removeSound=function(t){this.AbstractPlugin_removeSound(t),createjs.HTMLAudioTagPool.remove(t)},e.create=function(t,e,i){var r=this.AbstractPlugin_create(t,e,i);return r.setPlaybackResource(null),r},e.toString=function(){return"[HTMLAudioPlugin]"},e.setVolume=e.getVolume=e.setMute=null,createjs.HTMLAudioPlugin=createjs.promote(t,"AbstractPlugin")}(),this.createjs=this.createjs||{},function(){"use strict";function t(e,i,r){this.ignoreGlobalPause=!1,this.loop=!1,this.duration=0,this.pluginData=r||{},this.target=e,this.position=null,this.passive=!1,this._paused=!1,this._curQueueProps={},this._initQueueProps={},this._steps=[],this._actions=[],this._prevPosition=0,this._stepPosition=0,this._prevPos=-1,this._target=e,this._useTicks=!1,this._inited=!1,this._registered=!1,i&&(this._useTicks=i.useTicks,this.ignoreGlobalPause=i.ignoreGlobalPause,this.loop=i.loop,i.onChange&&this.addEventListener("change",i.onChange),i.override&&t.removeTweens(e)),i&&i.paused?this._paused=!0:createjs.Tween._register(this,!0),i&&null!=i.position&&this.setPosition(i.position,t.NONE)}var e=createjs.extend(t,createjs.EventDispatcher);t.NONE=0,t.LOOP=1,t.REVERSE=2,t.IGNORE={},t._tweens=[],t._plugins={},t.get=function(e,i,r,n){return n&&t.removeTweens(e),new t(e,i,r)},t.tick=function(e,i){for(var r=t._tweens.slice(),n=r.length-1;n>=0;n--){var s=r[n];i&&!s.ignoreGlobalPause||s._paused||s.tick(s._useTicks?1:e)}},t.handleEvent=function(t){"tick"==t.type&&this.tick(t.delta,t.paused)},t.removeTweens=function(e){if(e.tweenjs_count){for(var i=t._tweens,r=i.length-1;r>=0;r--){var n=i[r];n._target==e&&(n._paused=!0,i.splice(r,1))}e.tweenjs_count=0}},t.removeAllTweens=function(){for(var e=t._tweens,i=0,r=e.length;r>i;i++){var n=e[i];n._paused=!0,n.target&&(n.target.tweenjs_count=0)}e.length=0},t.hasActiveTweens=function(e){return e?null!=e.tweenjs_count&&!!e.tweenjs_count:t._tweens&&!!t._tweens.length},t.installPlugin=function(e,i){var r=e.priority;null==r&&(e.priority=r=0);for(var n=0,s=i.length,a=t._plugins;s>n;n++){var o=i[n];if(a[o]){for(var l=a[o],h=0,u=l.length;u>h&&!(r<l[h].priority);h++);a[o].splice(h,0,e)}else a[o]=[e]}},t._register=function(e,i){var r=e._target,n=t._tweens;if(i&&!e._registered)r&&(r.tweenjs_count=r.tweenjs_count?r.tweenjs_count+1:1),n.push(e),!t._inited&&createjs.Ticker&&(createjs.Ticker.addEventListener("tick",t),t._inited=!0);else if(!i&&e._registered){r&&r.tweenjs_count--;for(var s=n.length;s--;)if(n[s]==e){n.splice(s,1);break}}e._registered=i},e.wait=function(t,e){if(null==t||0>=t)return this;var i=this._cloneProps(this._curQueueProps);return this._addStep({d:t,p0:i,e:this._linearEase,p1:i,v:e})},e.to=function(t,e,i){return(isNaN(e)||0>e)&&(e=0),this._addStep({d:e||0,p0:this._cloneProps(this._curQueueProps),e:i,p1:this._cloneProps(this._appendQueueProps(t))})},e.call=function(t,e,i){return this._addAction({f:t,p:e||[this],o:i||this._target})},e.set=function(t,e){return this._addAction({f:this._set,o:this,p:[t,e||this._target]})},e.play=function(t){return t||(t=this),this.call(t.setPaused,[!1],t)},e.pause=function(t){return t||(t=this),this.call(t.setPaused,[!0],t)},e.setPosition=function(t,e){0>t&&(t=0),null==e&&(e=1);var i=t,r=!1;if(i>=this.duration&&(this.loop?i%=this.duration:(i=this.duration,r=!0)),i==this._prevPos)return r;var n=this._prevPos;if(this.position=this._prevPos=i,this._prevPosition=t,this._target)if(r)this._updateTargetProps(null,1);else if(this._steps.length>0){for(var s=0,a=this._steps.length;a>s&&!(this._steps[s].t>i);s++);var o=this._steps[s-1];this._updateTargetProps(o,(this._stepPosition=i-o.t)/o.d)}return 0!=e&&this._actions.length>0&&(this._useTicks?this._runActions(i,i):1==e&&n>i?(n!=this.duration&&this._runActions(n,this.duration),this._runActions(0,i,!0)):this._runActions(n,i)),r&&this.setPaused(!0),this.dispatchEvent("change"),r},e.tick=function(t){this._paused||this.setPosition(this._prevPosition+t)},e.setPaused=function(e){return this._paused===!!e?this:(this._paused=!!e,t._register(this,!e),this)},e.w=e.wait,e.t=e.to,e.c=e.call,e.s=e.set,e.toString=function(){return"[Tween]"},e.clone=function(){throw"Tween can not be cloned."},e._updateTargetProps=function(e,i){var r,n,s,a,o,l;if(e||1!=i){if(this.passive=!!e.v,this.passive)return;e.e&&(i=e.e(i,0,1,1)),r=e.p0,n=e.p1}else this.passive=!1,r=n=this._curQueueProps;for(var h in this._initQueueProps){null==(a=r[h])&&(r[h]=a=this._initQueueProps[h]),null==(o=n[h])&&(n[h]=o=a),s=a==o||0==i||1==i||"number"!=typeof a?1==i?o:a:a+(o-a)*i;var u=!1;if(l=t._plugins[h])for(var c=0,d=l.length;d>c;c++){var p=l[c].tween(this,h,s,r,n,i,!!e&&r==n,!e);p==t.IGNORE?u=!0:s=p}u||(this._target[h]=s)}},e._runActions=function(t,e,i){var r=t,n=e,s=-1,a=this._actions.length,o=1;for(t>e&&(r=e,n=t,s=a,a=o=-1);(s+=o)!=a;){var l=this._actions[s],h=l.t;(h==n||h>r&&n>h||i&&h==t)&&l.f.apply(l.o,l.p)}},e._appendQueueProps=function(e){var i,r,n,s,a;for(var o in e)if(void 0===this._initQueueProps[o]){if(r=this._target[o],i=t._plugins[o])for(n=0,s=i.length;s>n;n++)r=i[n].init(this,o,r);this._initQueueProps[o]=this._curQueueProps[o]=void 0===r?null:r}else r=this._curQueueProps[o];for(var o in e){if(r=this._curQueueProps[o],i=t._plugins[o])for(a=a||{},n=0,s=i.length;s>n;n++)i[n].step&&i[n].step(this,o,r,e[o],a);this._curQueueProps[o]=e[o]}return a&&this._appendQueueProps(a),this._curQueueProps},e._cloneProps=function(t){var e={};for(var i in t)e[i]=t[i];return e},e._addStep=function(t){return t.d>0&&(this._steps.push(t),t.t=this.duration,this.duration+=t.d),this},e._addAction=function(t){return t.t=this.duration,this._actions.push(t),this},e._set=function(t,e){for(var i in t)e[i]=t[i]},createjs.Tween=createjs.promote(t,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.EventDispatcher_constructor(),this.ignoreGlobalPause=!1,this.duration=0,this.loop=!1,this.position=null,this._paused=!1,this._tweens=[],this._labels=null,this._labelList=null,this._prevPosition=0,this._prevPos=-1,this._useTicks=!1,this._registered=!1,i&&(this._useTicks=i.useTicks,this.loop=i.loop,this.ignoreGlobalPause=i.ignoreGlobalPause,i.onChange&&this.addEventListener("change",i.onChange)),t&&this.addTween.apply(this,t),this.setLabels(e),i&&i.paused?this._paused=!0:createjs.Tween._register(this,!0),i&&null!=i.position&&this.setPosition(i.position,createjs.Tween.NONE)}var e=createjs.extend(t,createjs.EventDispatcher);e.addTween=function(t){var e=arguments.length;if(e>1){for(var i=0;e>i;i++)this.addTween(arguments[i]);return arguments[0]}return 0==e?null:(this.removeTween(t),this._tweens.push(t),t.setPaused(!0),t._paused=!1,t._useTicks=this._useTicks,t.duration>this.duration&&(this.duration=t.duration),this._prevPos>=0&&t.setPosition(this._prevPos,createjs.Tween.NONE),t)},e.removeTween=function(t){var e=arguments.length;if(e>1){for(var i=!0,r=0;e>r;r++)i=i&&this.removeTween(arguments[r]);return i}if(0==e)return!1;var n=this._tweens;for(r=n.length;r--;)if(n[r]==t)return n.splice(r,1),t.duration>=this.duration&&this.updateDuration(),!0;return!1},e.addLabel=function(t,e){this._labels[t]=e;var i=this._labelList;if(i){for(var r=0,n=i.length;n>r&&!(e<i[r].position);r++);i.splice(r,0,{label:t,position:e})}},e.setLabels=function(t){this._labels=t||{}},e.getLabels=function(){var t=this._labelList;if(!t){t=this._labelList=[];var e=this._labels;for(var i in e)t.push({label:i,position:e[i]});t.sort(function(t,e){return t.position-e.position})}return t},e.getCurrentLabel=function(){var t=this.getLabels(),e=this.position,i=t.length;if(i){for(var r=0;i>r&&!(e<t[r].position);r++);return 0==r?null:t[r-1].label}return null},e.gotoAndPlay=function(t){this.setPaused(!1),this._goto(t)},e.gotoAndStop=function(t){this.setPaused(!0),this._goto(t)},e.setPosition=function(t,e){var i=this._calcPosition(t),r=!this.loop&&t>=this.duration;if(i==this._prevPos)return r;this._prevPosition=t,this.position=this._prevPos=i;for(var n=0,s=this._tweens.length;s>n;n++)if(this._tweens[n].setPosition(i,e),i!=this._prevPos)return!1;return r&&this.setPaused(!0),this.dispatchEvent("change"),r},e.setPaused=function(t){this._paused=!!t,createjs.Tween._register(this,!t)},e.updateDuration=function(){this.duration=0;for(var t=0,e=this._tweens.length;e>t;t++){var i=this._tweens[t];i.duration>this.duration&&(this.duration=i.duration)}},e.tick=function(t){this.setPosition(this._prevPosition+t)},e.resolve=function(t){var e=Number(t);return isNaN(e)&&(e=this._labels[t]),e},e.toString=function(){return"[Timeline]"},e.clone=function(){throw"Timeline can not be cloned."},e._goto=function(t){var e=this.resolve(t);null!=e&&this.setPosition(e)},e._calcPosition=function(t){return 0>t?0:t<this.duration?t:this.loop?t%this.duration:this.duration},createjs.Timeline=createjs.promote(t,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function t(){throw"Ease cannot be instantiated."}t.linear=function(t){return t},t.none=t.linear,t.get=function(t){return-1>t&&(t=-1),t>1&&(t=1),function(e){return 0==t?e:0>t?e*(e*-t+1+t):e*((2-e)*t+(1-t))}},t.getPowIn=function(t){return function(e){return Math.pow(e,t)}},t.getPowOut=function(t){return function(e){return 1-Math.pow(1-e,t)}},t.getPowInOut=function(t){return function(e){return(e*=2)<1?.5*Math.pow(e,t):1-.5*Math.abs(Math.pow(2-e,t))}},t.quadIn=t.getPowIn(2),t.quadOut=t.getPowOut(2),t.quadInOut=t.getPowInOut(2),t.cubicIn=t.getPowIn(3),t.cubicOut=t.getPowOut(3),t.cubicInOut=t.getPowInOut(3),t.quartIn=t.getPowIn(4),t.quartOut=t.getPowOut(4),t.quartInOut=t.getPowInOut(4),t.quintIn=t.getPowIn(5),t.quintOut=t.getPowOut(5),t.quintInOut=t.getPowInOut(5),t.sineIn=function(t){return 1-Math.cos(t*Math.PI/2)},t.sineOut=function(t){return Math.sin(t*Math.PI/2)},t.sineInOut=function(t){return-.5*(Math.cos(Math.PI*t)-1)},t.getBackIn=function(t){return function(e){return e*e*((t+1)*e-t)}},t.backIn=t.getBackIn(1.7),t.getBackOut=function(t){return function(e){return--e*e*((t+1)*e+t)+1}},t.backOut=t.getBackOut(1.7),t.getBackInOut=function(t){return t*=1.525,function(e){return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)}},t.backInOut=t.getBackInOut(1.7),t.circIn=function(t){return-(Math.sqrt(1-t*t)-1)},t.circOut=function(t){return Math.sqrt(1- --t*t)},t.circInOut=function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},t.bounceIn=function(e){return 1-t.bounceOut(1-e)},t.bounceOut=function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},t.bounceInOut=function(e){return.5>e?.5*t.bounceIn(2*e):.5*t.bounceOut(2*e-1)+.5},t.getElasticIn=function(t,e){var i=2*Math.PI;return function(r){if(0==r||1==r)return r;var n=e/i*Math.asin(1/t);return-t*Math.pow(2,10*(r-=1))*Math.sin((r-n)*i/e)}},t.elasticIn=t.getElasticIn(1,.3),t.getElasticOut=function(t,e){var i=2*Math.PI;return function(r){if(0==r||1==r)return r;var n=e/i*Math.asin(1/t);return t*Math.pow(2,-10*r)*Math.sin((r-n)*i/e)+1}},t.elasticOut=t.getElasticOut(1,.3),t.getElasticInOut=function(t,e){var i=2*Math.PI;return function(r){var n=e/i*Math.asin(1/t);return(r*=2)<1?t*Math.pow(2,10*(r-=1))*Math.sin((r-n)*i/e)*-.5:t*Math.pow(2,-10*(r-=1))*Math.sin((r-n)*i/e)*.5+1}},t.elasticInOut=t.getElasticInOut(1,.3*1.5),createjs.Ease=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(){throw"MotionGuidePlugin cannot be instantiated."}t.priority=0,t._rotOffS,t._rotOffE,t._rotNormS,t._rotNormE,t.install=function(){return createjs.Tween.installPlugin(t,["guide","x","y","rotation"]),createjs.Tween.IGNORE},t.init=function(t,e,i){var r=t.target;return r.hasOwnProperty("x")||(r.x=0),r.hasOwnProperty("y")||(r.y=0),r.hasOwnProperty("rotation")||(r.rotation=0),"rotation"==e&&(t.__needsRot=!0),"guide"==e?null:i},t.step=function(e,i,r,n,s){if("rotation"==i&&(e.__rotGlobalS=r,e.__rotGlobalE=n,t.testRotData(e,s)),"guide"!=i)return n;var a,o=n;o.hasOwnProperty("path")||(o.path=[]);var l=o.path;if(o.hasOwnProperty("end")||(o.end=1),o.hasOwnProperty("start")||(o.start=r&&r.hasOwnProperty("end")&&r.path===l?r.end:0),o.hasOwnProperty("_segments")&&o._length)return n;var h=l.length;if(!(h>=6&&(h-2)%4==0))throw"invalid 'path' data, please see documentation for valid paths";o._segments=[],o._length=0;for(var u=2;h>u;u+=4){for(var c,d,p=l[u-2],f=l[u-1],_=l[u+0],m=l[u+1],g=l[u+2],v=l[u+3],y=p,b=f,T=0,x=[],E=1;10>=E;E++){var w=E/10,S=1-w;c=S*S*p+2*S*w*_+w*w*g,d=S*S*f+2*S*w*m+w*w*v,T+=x[x.push(Math.sqrt((a=c-y)*a+(a=d-b)*a))-1],y=c,b=d}o._segments.push(T),o._segments.push(x),o._length+=T}a=o.orient,o.orient=!0;var D={};return t.calc(o,o.start,D),e.__rotPathS=Number(D.rotation.toFixed(5)),t.calc(o,o.end,D),e.__rotPathE=Number(D.rotation.toFixed(5)),o.orient=!1,t.calc(o,o.end,s),o.orient=a,o.orient?(e.__guideData=o,t.testRotData(e,s),n):n},t.testRotData=function(t,e){if(void 0===t.__rotGlobalS||void 0===t.__rotGlobalE){if(t.__needsRot)return;void 0!==t._curQueueProps.rotation?t.__rotGlobalS=t.__rotGlobalE=t._curQueueProps.rotation:t.__rotGlobalS=t.__rotGlobalE=e.rotation=t.target.rotation||0}if(void 0!==t.__guideData){var i=t.__guideData,r=t.__rotGlobalE-t.__rotGlobalS,n=t.__rotPathE-t.__rotPathS,s=r-n;if("auto"==i.orient)s>180?s-=360:-180>s&&(s+=360);else if("cw"==i.orient){for(;0>s;)s+=360;0==s&&r>0&&180!=r&&(s+=360)}else if("ccw"==i.orient){for(s=r-(n>180?360-n:n);s>0;)s-=360;0==s&&0>r&&-180!=r&&(s-=360)}i.rotDelta=s,i.rotOffS=t.__rotGlobalS-t.__rotPathS,t.__rotGlobalS=t.__rotGlobalE=t.__guideData=t.__needsRot=void 0}},t.tween=function(e,i,r,n,s,a,o,l){var h=s.guide;if(null==h||h===n.guide)return r;if(h.lastRatio!=a){var u=(h.end-h.start)*(o?h.end:a)+h.start;switch(t.calc(h,u,e.target),h.orient){case"cw":case"ccw":case"auto":e.target.rotation+=h.rotOffS+h.rotDelta*a;break;case"fixed":default:e.target.rotation+=h.rotOffS}h.lastRatio=a}return"rotation"!=i||h.orient&&"false"!=h.orient?e.target[i]:r},t.calc=function(t,e,i){if(null==t._segments)throw"Missing critical pre-calculated information, please file a bug";null==i&&(i={x:0,y:0,rotation:0});for(var r=t._segments,n=t.path,s=t._length*e,a=r.length-2,o=0;s>r[o]&&a>o;)s-=r[o],o+=2;var l=r[o+1],h=0;for(a=l.length-1;s>l[h]&&a>h;)s-=l[h],h++;var u=h/++a+s/(a*l[h]);o=2*o+2;var c=1-u;return i.x=c*c*n[o-2]+2*c*u*n[o+0]+u*u*n[o+2],i.y=c*c*n[o-1]+2*c*u*n[o+1]+u*u*n[o+3],t.orient&&(i.rotation=57.2957795*Math.atan2((n[o+1]-n[o-1])*c+(n[o+3]-n[o+1])*u,(n[o+0]-n[o-2])*c+(n[o+2]-n[o+0])*u)),i},createjs.MotionGuidePlugin=t}(),this.createjs=this.createjs||{},function(){"use strict";var t=createjs.TweenJS=createjs.TweenJS||{};t.version="0.6.2",t.buildDate="Thu, 26 Nov 2015 20:44:31 GMT"}(),!window.egret){var egret_strings={4001:"Abstract class can not be instantiated!",4002:"Unnamed data!",4003:"Nonsupport version!"},Event=function(t,e,i,r){this.type=t,this.bubbles=e||!1,this.cancelable=i||!1,this.data=r},EventDispatcher=function(t){this._listenerDict={}};EventDispatcher.prototype={constructor:EventDispatcher,addEventListener:function(t,e,i,r,n,s){this._listenerDict[t]||(this._listenerDict[t]=[]),this._listenerDict[t].push({listener:e,thisObject:i,useCapture:r,priority:n,once:s})},once:function(t,e,i,r,n){this.addEventListener(t,e,i,r,n,!0)},removeEventListener:function(t,e,i,r){if(t)if(e){var n=this._listenerDict[t],s=n.indexOf(e);s>-1&&n.splice(s,1)}else this._listenerDict[t]&&(this._listenerDict[t].length=0);else this._listenerDict={}},hasEventListener:function(t){return this._listenerDict[t]},dispatchEvent:function(t){if(t&&t.type&&this._listenerDict[t.type])for(var e=this._listenerDict[t.type],i=e.slice(),r=0;r<i.length;r++){var n=i[r];if(n.dispatchOnce){var s=e.indexOf(n);s>-1&&e.splice(s,1)}n.listener&&n.listener.call(n.thisObject||this,t)}},willTrigger:function(t){return this.hasEventListener(t)}},window.egret={getString:function(t){return egret_strings[t]||"no string code"},Event:Event,EventDispatcher:EventDispatcher,registerClass:function(t,e,i){var r=t.prototype;r.__class__=e;var n=[e];i&&(n=n.concat(i));var s=r.__types__;if(r.__types__)for(var a=s.length,o=0;o<a;o++){var l=s[o];-1==n.indexOf(l)&&n.push(l)}r.__types__=n}}}window.__extends=window.__extends||function(t,e,i){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}if(n.prototype=e.prototype,t.prototype=new n,i)for(var s in i)t.prototype[s]=i[s]},window.__define=window.__define||function(t,e,i,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:i,set:r})},function(t){var e=function(){function t(){}__define,t.prototype;return t.DATA_VERSION="4.0",t.PARENT_COORDINATE_DATA_VERSION="3.0",t.VERSION="4.3.5",t}();t.DragonBones=e,egret.registerClass(e,"dragonBones.DragonBones")}(dragonBones||(dragonBones={})),function(t){var e=function(){function e(t){this._animationStateCount=0,this._armature=t,this._animationList=[],this._animationStateList=[],this._timeScale=1,this._isPlaying=!1,this.tweenEnabled=!0}var i=__define,r=e.prototype;return r.dispose=function(){this._armature&&(this._resetAnimationStateList(),this._animationList.length=0,this._armature=null,this._animationDataList=null,this._animationList=null,this._animationStateList=null)},r._resetAnimationStateList=function(){for(var e,i=this._animationStateList.length;i--;)(e=this._animationStateList[i])._resetTimelineStateList(),t.AnimationState._returnObject(e);this._animationStateList.length=0},r.gotoAndPlay=function(i,r,n,s,a,o,l,h,u){if(void 0===r&&(r=-1),void 0===n&&(n=-1),void 0===s&&(s=NaN),void 0===a&&(a=0),void 0===o&&(o=null),void 0===l&&(l=e.SAME_LAYER_AND_GROUP),void 0===h&&(h=!0),void 0===u&&(u=!0),!this._animationDataList)return null;for(var c,d=this._animationDataList.length;d--;)if(this._animationDataList[d].name==i){c=this._animationDataList[d];break}if(!c)return null;var p,f,_=0==this._isPlaying;switch(this._isPlaying=!0,this._isFading=!0,r=r<0?c.fadeTime<0?.3:c.fadeTime:r,p=n<0?c.scale<0?1:c.scale:1e3*n/c.duration,s=isNaN(s)?c.playTimes:s,l){case e.NONE:break;case e.SAME_LAYER:for(d=this._animationStateList.length;d--;)(f=this._animationStateList[d]).layer==a&&f.fadeOut(r,h);break;case e.SAME_GROUP:for(d=this._animationStateList.length;d--;)(f=this._animationStateList[d]).group==o&&f.fadeOut(r,h);break;case e.ALL:for(d=this._animationStateList.length;d--;)(f=this._animationStateList[d]).fadeOut(r,h);break;case e.SAME_LAYER_AND_GROUP:default:for(d=this._animationStateList.length;d--;)(f=this._animationStateList[d]).layer==a&&f.group==o&&f.fadeOut(r,h)}this._lastAnimationState=t.AnimationState._borrowObject(),this._lastAnimationState._layer=a,this._lastAnimationState._group=o,this._lastAnimationState.autoTween=this.tweenEnabled,this._lastAnimationState._fadeIn(this._armature,c,r,1/p,s,u),this.addState(this._lastAnimationState);var m=this._armature.getSlots(!1);for(d=m.length;d--;){var g=m[d];g.childArmature&&g.childArmature.animation.gotoAndPlay(i,r)}return _&&this._armature.advanceTime(0),this._lastAnimationState},r.gotoAndStop=function(t,i,r,n,s,a,o,l){void 0===r&&(r=-1),void 0===n&&(n=0),void 0===s&&(s=-1),void 0===a&&(a=0),void 0===o&&(o=null),void 0===l&&(l=e.ALL);var h=this.getState(t,a);return h||(h=this.gotoAndPlay(t,n,s,NaN,a,o,l)),r>=0?h.setCurrentTime(h.totalTime*r):h.setCurrentTime(i),h.stop(),h},r.play=function(){this._animationDataList&&0!=this._animationDataList.length&&(this._lastAnimationState?this._isPlaying?this.gotoAndPlay(this._lastAnimationState.name):this._isPlaying=!0:this.gotoAndPlay(this._animationDataList[0].name))},r.stop=function(){this._isPlaying=!1},r.getState=function(t,e){void 0===e&&(e=0);for(var i=this._animationStateList.length;i--;){var r=this._animationStateList[i];if(r.name==t&&r.layer==e)return r}return null},r.hasAnimation=function(t){for(var e=this._animationDataList.length;e--;)if(this._animationDataList[e].name==t)return!0;return!1},r._advanceTime=function(t){if(this._isPlaying){var e=!1;t*=this._timeScale;for(var i=this._animationStateList.length;i--;){var r=this._animationStateList[i];r._advanceTime(t)?this.removeState(r):1!=r.fadeState&&(e=!0)}this._isFading=e}},r._updateAnimationStates=function(){for(var t=this._animationStateList.length;t--;)this._animationStateList[t]._updateTimelineStates()},r.addState=function(t){this._animationStateList.indexOf(t)<0&&(this._animationStateList.unshift(t),this._animationStateCount=this._animationStateList.length)},r.removeState=function(e){var i=this._animationStateList.indexOf(e);i>=0&&(this._animationStateList.splice(i,1),t.AnimationState._returnObject(e),this._lastAnimationState==e&&(this._animationStateList.length>0?this._lastAnimationState=this._animationStateList[0]:this._lastAnimationState=null),this._animationStateCount=this._animationStateList.length)},i(r,"movementList",function(){return this._animationList}),i(r,"movementID",function(){return this.lastAnimationName}),i(r,"lastAnimationState",function(){return this._lastAnimationState}),i(r,"lastAnimationName",function(){return this._lastAnimationState?this._lastAnimationState.name:null}),i(r,"animationList",function(){return this._animationList}),i(r,"isPlaying",function(){return this._isPlaying&&!this.isComplete}),i(r,"isComplete",function(){if(this._lastAnimationState){if(!this._lastAnimationState.isComplete)return!1;for(var t=this._animationStateList.length;t--;)if(!this._animationStateList[t].isComplete)return!1;return!0}return!0}),i(r,"timeScale",function(){return this._timeScale},function(t){(isNaN(t)||t<0)&&(t=1),this._timeScale=t}),i(r,"animationDataList",function(){return this._animationDataList},function(t){this._animationDataList=t,this._animationList.length=0;for(var e=0,i=this._animationDataList.length;e<i;e++){var r=this._animationDataList[e];this._animationList[this._animationList.length]=r.name}}),e.NONE="none",e.SAME_LAYER="sameLayer",e.SAME_GROUP="sameGroup",e.SAME_LAYER_AND_GROUP="sameLayerAndGroup",e.ALL="all",e}();t.Animation=e,egret.registerClass(e,"dragonBones.Animation")}(dragonBones||(dragonBones={})),function(t){var e=function(){function e(){this._layer=0,this._currentFrameIndex=0,this._currentFramePosition=0,this._currentFrameDuration=0,this._currentPlayTimes=0,this._totalTime=0,this._currentTime=0,this._lastTime=0,this._fadeState=0,this._playTimes=0,this._timelineStateList=[],this._slotTimelineStateList=[],this._boneMasks=[]}var i=__define,r=e.prototype;return e._borrowObject=function(){return 0==e._pool.length?new e:e._pool.pop()},e._returnObject=function(t){t.clear(),e._pool.indexOf(t)<0&&(e._pool[e._pool.length]=t)},e._clear=function(){for(var i=e._pool.length;i--;)e._pool[i].clear();e._pool.length=0,t.TimelineState._clear()},r.clear=function(){this._resetTimelineStateList(),this._boneMasks.length=0,this._armature=null,this._clip=null},r._resetTimelineStateList=function(){for(var e=this._timelineStateList.length;e--;)t.TimelineState._returnObject(this._timelineStateList[e]);for(this._timelineStateList.length=0,e=this._slotTimelineStateList.length;e--;)t.SlotTimelineState._returnObject(this._slotTimelineStateList[e]);this._slotTimelineStateList.length=0},r.containsBoneMask=function(t){return 0==this._boneMasks.length||this._boneMasks.indexOf(t)>=0},r.addBoneMask=function(t,e){if(void 0===e&&(e=!0),this.addBoneToBoneMask(t),e){var i=this._armature.getBone(t);if(i)for(var r=this._armature.getBones(!1),n=r.length;n--;){var s=r[n];i.contains(s)&&this.addBoneToBoneMask(s.name)}}return this._updateTimelineStates(),this},r.removeBoneMask=function(t,e){if(void 0===e&&(e=!0),this.removeBoneFromBoneMask(t),e){var i=this._armature.getBone(t);if(i)for(var r=this._armature.getBones(!1),n=r.length;n--;){var s=r[n];i.contains(s)&&this.removeBoneFromBoneMask(s.name)}}return this._updateTimelineStates(),this},r.removeAllMixingTransform=function(){return this._boneMasks.length=0,this._updateTimelineStates(),this},r.addBoneToBoneMask=function(t){this._clip.getTimeline(t)&&this._boneMasks.indexOf(t)<0&&this._boneMasks.push(t)},r.removeBoneFromBoneMask=function(t){var e=this._boneMasks.indexOf(t);e>=0&&this._boneMasks.splice(e,1)},r._updateTimelineStates=function(){for(var t,e,i,r=this._timelineStateList.length;r--;)t=this._timelineStateList[r],this._armature.getBone(t.name)||this.removeTimelineState(t);for(r=this._slotTimelineStateList.length;r--;)e=this._slotTimelineStateList[r],this._armature.getSlot(e.name)||this.removeSlotTimelineState(e);if(this._boneMasks.length>0){for(r=this._timelineStateList.length;r--;)t=this._timelineStateList[r],this._boneMasks.indexOf(t.name)<0&&this.removeTimelineState(t);for(r=0,i=this._boneMasks.length;r<i;r++){var n=this._boneMasks[r];this.addTimelineState(n)}}else for(r=0,i=this._clip.timelineList.length;r<i;r++){var s=this._clip.timelineList[r];this.addTimelineState(s.name)}for(r=0,i=this._clip.slotTimelineList.length;r<i;r++){var a=this._clip.slotTimelineList[r];this.addSlotTimelineState(a.name)}},r.addTimelineState=function(e){var i=this._armature.getBone(e);if(i){for(var r=0,n=this._timelineStateList.length;r<n;r++){if(this._timelineStateList[r].name==e)return}var s=t.TimelineState._borrowObject();s._fadeIn(i,this,this._clip.getTimeline(e)),this._timelineStateList.push(s)}},r.removeTimelineState=function(e){var i=this._timelineStateList.indexOf(e);this._timelineStateList.splice(i,1),t.TimelineState._returnObject(e)},r.addSlotTimelineState=function(e){var i=this._armature.getSlot(e);if(i){for(var r=0,n=this._slotTimelineStateList.length;r<n;r++){if(this._slotTimelineStateList[r].name==e)return}var s=t.SlotTimelineState._borrowObject();s._fadeIn(i,this,this._clip.getSlotTimeline(e)),this._slotTimelineStateList.push(s)}},r.removeSlotTimelineState=function(e){var i=this._slotTimelineStateList.indexOf(e);this._slotTimelineStateList.splice(i,1),t.SlotTimelineState._returnObject(e)},r.play=function(){return this._isPlaying=!0,this},r.stop=function(){return this._isPlaying=!1,this},r._fadeIn=function(t,e,i,r,n,s){return this._armature=t,this._clip=e,this._pausePlayheadInFade=s,this._name=this._clip.name,this._totalTime=this._clip.duration,this.autoTween=this._clip.autoTween,this.setTimeScale(r),this.setPlayTimes(n),this._isComplete=!1,this._currentFrameIndex=-1,this._currentPlayTimes=-1,Math.round(this._totalTime*this._clip.frameRate*.001)<2||r==1/0?this._currentTime=this._totalTime:this._currentTime=-1,this._time=0,this._boneMasks.length=0,this._isFadeOut=!1,this._fadeWeight=0,this._fadeTotalWeight=1,this._fadeState=-1,this._fadeCurrentTime=0,this._fadeBeginTime=this._fadeCurrentTime,this._fadeTotalTime=i*this._timeScale,this._isPlaying=!0,this.displayControl=!0,this.lastFrameAutoTween=!0,this.additiveBlending=!1,this.weight=1,this.fadeOutTime=i,this._updateTimelineStates(),this},r.fadeOut=function(t,e){if(!this._armature)return null;if((isNaN(t)||t<0)&&(t=0),this._pausePlayheadInFade=e,this._isFadeOut){if(t>this._fadeTotalTime/this._timeScale-(this._fadeCurrentTime-this._fadeBeginTime))return this}else for(var i=0,r=this._timelineStateList.length;i<r;i++){this._timelineStateList[i]._fadeOut()}return this._isFadeOut=!0,this._fadeTotalWeight=this._fadeWeight,this._fadeState=-1,this._fadeBeginTime=this._fadeCurrentTime,this._fadeTotalTime=this._fadeTotalWeight>=0?t*this._timeScale:0,this.displayControl=!1,this},r._advanceTime=function(t){return t*=this._timeScale,this.advanceFadeTime(t),this._fadeWeight&&this.advanceTimelinesTime(t),this._isFadeOut&&1==this._fadeState},r.advanceFadeTime=function(e){var i,r=!1,n=!1;if(this._fadeBeginTime>=0){var s=this._fadeState;this._fadeCurrentTime+=e<0?-e:e,this._fadeCurrentTime>=this._fadeBeginTime+this._fadeTotalTime?(1!=this._fadeWeight&&0!=this._fadeWeight||(s=1,this._pausePlayheadInFade&&(this._pausePlayheadInFade=!1,this._currentTime=-1)),this._fadeWeight=this._isFadeOut?0:1):this._fadeCurrentTime>=this._fadeBeginTime?(s=0,this._fadeWeight=(this._fadeCurrentTime-this._fadeBeginTime)/this._fadeTotalTime*this._fadeTotalWeight,this._isFadeOut&&(this._fadeWeight=this._fadeTotalWeight-this._fadeWeight)):(s=-1,this._fadeWeight=this._isFadeOut?1:0),this._fadeState!=s&&(-1==this._fadeState&&(r=!0),1==s&&(n=!0),this._fadeState=s)}r&&(this._isFadeOut?this._armature.hasEventListener(t.AnimationEvent.FADE_OUT)&&((i=new t.AnimationEvent(t.AnimationEvent.FADE_OUT)).animationState=this,this._armature._eventList.push(i)):(this.hideBones(),this._armature.hasEventListener(t.AnimationEvent.FADE_IN)&&((i=new t.AnimationEvent(t.AnimationEvent.FADE_IN)).animationState=this,this._armature._eventList.push(i)))),n&&(this._isFadeOut?this._armature.hasEventListener(t.AnimationEvent.FADE_OUT_COMPLETE)&&((i=new t.AnimationEvent(t.AnimationEvent.FADE_OUT_COMPLETE)).animationState=this,this._armature._eventList.push(i)):this._armature.hasEventListener(t.AnimationEvent.FADE_IN_COMPLETE)&&((i=new t.AnimationEvent(t.AnimationEvent.FADE_IN_COMPLETE)).animationState=this,this._armature._eventList.push(i)))},r.advanceTimelinesTime=function(e){this._isPlaying&&!this._pausePlayheadInFade&&(this._time+=e);var i=!1,r=!1,n=!1,s=!1,a=0,o=1e3*this._time;if(0==this._playTimes)s=!1,a=Math.ceil(Math.abs(o)/this._totalTime)||1,(o-=o>=0?Math.floor(o/this._totalTime)*this._totalTime:Math.ceil(o/this._totalTime)*this._totalTime)<0&&(o+=this._totalTime);else{var l=this._playTimes*this._totalTime;o>=l?(o=l,s=!0):o<=-l?(o=-l,s=!0):s=!1,o<0&&(o+=l),a=Math.ceil(o/this._totalTime)||1,o-=o>=0?Math.floor(o/this._totalTime)*this._totalTime:Math.ceil(o/this._totalTime)*this._totalTime,s&&(o=this._totalTime)}this._isComplete=s;var h,u=1e3*this._time/this._totalTime,c=0,d=0;for(c=0,d=this._timelineStateList.length;c<d;c++){var p=this._timelineStateList[c];p._update(u),this._isComplete=p._isComplete&&this._isComplete}for(c=0,d=this._slotTimelineStateList.length;c<d;c++){this._slotTimelineStateList[c]._update(u),this._isComplete=p._isComplete&&this._isComplete}this._currentTime!=o&&(this._currentPlayTimes!=a&&(this._currentPlayTimes>0&&a>1&&(n=!0),this._currentPlayTimes=a),this._currentTime<0&&(i=!0),this._isComplete&&(r=!0),this._lastTime=this._currentTime,this._currentTime=o,this.updateMainTimeline(s)),i&&this._armature.hasEventListener(t.AnimationEvent.START)&&((h=new t.AnimationEvent(t.AnimationEvent.START)).animationState=this,this._armature._eventList.push(h)),r?(this._armature.hasEventListener(t.AnimationEvent.COMPLETE)&&((h=new t.AnimationEvent(t.AnimationEvent.COMPLETE)).animationState=this,this._armature._eventList.push(h)),this.autoFadeOut&&this.fadeOut(this.fadeOutTime,!0)):n&&this._armature.hasEventListener(t.AnimationEvent.LOOP_COMPLETE)&&((h=new t.AnimationEvent(t.AnimationEvent.LOOP_COMPLETE)).animationState=this,this._armature._eventList.push(h))},r.updateMainTimeline=function(t){var e=this._clip.frameList;if(e.length>0){for(var i,r,n=0,s=this._clip.frameList.length;n<s;++n){if(this._currentFrameIndex<0)this._currentFrameIndex=0;else{if(!(this._currentTime<this._currentFramePosition||this._currentTime>=this._currentFramePosition+this._currentFrameDuration||this._currentTime<this._lastTime))break;if(this._currentFrameIndex++,this._lastTime=this._currentTime,this._currentFrameIndex>=e.length){if(t){this._currentFrameIndex--;break}this._currentFrameIndex=0}}r=e[this._currentFrameIndex],i&&this._armature._arriveAtFrame(i,null,this,!0),this._currentFrameDuration=r.duration,this._currentFramePosition=r.position,i=r}r&&this._armature._arriveAtFrame(r,null,this,!1)}},r.hideBones=function(){for(var t=0,e=this._clip.hideTimelineNameMap.length;t<e;t++){var i=this._clip.hideTimelineNameMap[t],r=this._armature.getBone(i);r&&r._hideSlots()}var n;for(t=0,e=this._clip.hideSlotTimelineNameMap.length;t<e;t++){n=this._clip.hideSlotTimelineNameMap[t];var s=this._armature.getSlot(n);s&&s._resetToOrigin()}},r.setAdditiveBlending=function(t){return this.additiveBlending=t,this},r.setAutoFadeOut=function(t,e){return void 0===e&&(e=-1),this.autoFadeOut=t,e>=0&&(this.fadeOutTime=e*this._timeScale),this},r.setWeight=function(t){return(isNaN(t)||t<0)&&(t=1),this.weight=t,this},r.setFrameTween=function(t,e){return this.autoTween=t,this.lastFrameAutoTween=e,this},r.setCurrentTime=function(t){return(t<0||isNaN(t))&&(t=0),this._time=t,this._currentTime=1e3*this._time,this},r.setTimeScale=function(t){return(isNaN(t)||t==1/0)&&(t=1),this._timeScale=t,this},r.setPlayTimes=function(t){return void 0===t&&(t=0),Math.round(.001*this._totalTime*this._clip.frameRate)<2?this._playTimes=t<0?-1:1:this._playTimes=t<0?-t:t,this.autoFadeOut=t<0,this},i(r,"name",function(){return this._name}),i(r,"layer",function(){return this._layer}),i(r,"group",function(){return this._group}),i(r,"clip",function(){return this._clip}),i(r,"isComplete",function(){return this._isComplete}),i(r,"isPlaying",function(){return this._isPlaying&&!this._isComplete}),i(r,"currentPlayTimes",function(){return this._currentPlayTimes<0?0:this._currentPlayTimes}),i(r,"totalTime",function(){return.001*this._totalTime}),i(r,"currentTime",function(){return this._currentTime<0?0:.001*this._currentTime}),i(r,"fadeWeight",function(){return this._fadeWeight}),i(r,"fadeState",function(){return this._fadeState}),i(r,"fadeTotalTime",function(){return this._fadeTotalTime}),i(r,"timeScale",function(){return this._timeScale}),i(r,"playTimes",function(){return this._playTimes}),e._pool=[],e}();t.AnimationState=e,egret.registerClass(e,"dragonBones.AnimationState")}(dragonBones||(dragonBones={})),function(t){var e=function(){function e(){this._totalTime=0,this._currentTime=0,this._currentFrameIndex=0,this._currentFramePosition=0,this._currentFrameDuration=0,this._updateMode=0,this._durationColor=new t.ColorTransform}__define;var i=e.prototype;return e._borrowObject=function(){return 0==e._pool.length?new e:e._pool.pop()},e._returnObject=function(t){e._pool.indexOf(t)<0&&(e._pool[e._pool.length]=t),t.clear()},e._clear=function(){for(var t=e._pool.length;t--;)e._pool[t].clear();e._pool.length=0},i.clear=function(){this._slot&&(this._slot._removeState(this),this._slot=null),this._armature=null,this._animation=null,this._animationState=null,this._timelineData=null},i._fadeIn=function(t,e,i){switch(this._slot=t,this._armature=this._slot.armature,this._animation=this._armature.animation,this._animationState=e,this._timelineData=i,this.name=i.name,this._totalTime=this._timelineData.duration,this._rawAnimationScale=this._animationState.clip.scale,this._isComplete=!1,this._blendEnabled=!1,this._tweenColor=!1,this._currentFrameIndex=-1,this._currentTime=-1,this._tweenEasing=NaN,this._weight=1,this._timelineData.frameList.length){case 0:this._updateMode=0;break;case 1:this._updateMode=1;break;default:this._updateMode=-1}this._slot._addState(this)},i._fadeOut=function(){},i._update=function(t){-1==this._updateMode?this.updateMultipleFrame(t):1==this._updateMode&&(this._updateMode=0,this.updateSingleFrame())},i.updateMultipleFrame=function(t){var e=0;t/=this._timelineData.scale,t+=this._timelineData.offset;var i=this._totalTime*t,r=this._animationState.playTimes;if(0==r)this._isComplete=!1,e=Math.ceil(Math.abs(i)/this._totalTime)||1,(i-=i>=0?Math.floor(i/this._totalTime)*this._totalTime:Math.ceil(i/this._totalTime)*this._totalTime)<0&&(i+=this._totalTime);else{var n=r*this._totalTime;i>=n?(i=n,this._isComplete=!0):i<=-n?(i=-n,this._isComplete=!0):this._isComplete=!1,i<0&&(i+=n),e=Math.ceil(i/this._totalTime)||1,this._isComplete?i=this._totalTime:i-=i>=0?Math.floor(i/this._totalTime)*this._totalTime:Math.ceil(i/this._totalTime)*this._totalTime}if(this._currentTime!=i){this._currentTime=i;for(var s,a,o=this._timelineData.frameList,l=0,h=this._timelineData.frameList.length;l<h;++l){if(this._currentFrameIndex<0)this._currentFrameIndex=0;else{if(!(this._currentTime<this._currentFramePosition||this._currentTime>=this._currentFramePosition+this._currentFrameDuration))break;if(this._currentFrameIndex++,this._currentFrameIndex>=o.length){if(this._isComplete){this._currentFrameIndex--;break}this._currentFrameIndex=0}}a=o[this._currentFrameIndex],s&&this._slot._arriveAtFrame(s,this,this._animationState,!0),this._currentFrameDuration=a.duration,this._currentFramePosition=a.position,s=a}a&&(this._slot._arriveAtFrame(a,this,this._animationState,!1),this._blendEnabled=a.displayIndex>=0,this._blendEnabled?this.updateToNextFrame(e):(this._tweenEasing=NaN,this._tweenColor=!1)),this._blendEnabled&&this.updateTween()}},i.updateToNextFrame=function(t){void 0===t&&(t=0);var e=this._currentFrameIndex+1;e>=this._timelineData.frameList.length&&(e=0);var i=this._timelineData.frameList[this._currentFrameIndex],r=this._timelineData.frameList[e],n=!1;0==e&&(!this._animationState.lastFrameAutoTween||this._animationState.playTimes&&this._animationState.currentPlayTimes>=this._animationState.playTimes&&((this._currentFramePosition+this._currentFrameDuration)/this._totalTime+t-this._timelineData.offset)*this._timelineData.scale>.999999)?(this._tweenEasing=NaN,n=!1):i.displayIndex<0||r.displayIndex<0?(this._tweenEasing=NaN,n=!1):this._animationState.autoTween?(this._tweenEasing=this._animationState.clip.tweenEasing,isNaN(this._tweenEasing)?(this._tweenEasing=i.tweenEasing,this._tweenCurve=i.curve,isNaN(this._tweenEasing)&&null==this._tweenCurve?n=!1:(10==this._tweenEasing&&(this._tweenEasing=0),n=!0)):n=!0):(this._tweenEasing=i.tweenEasing,this._tweenCurve=i.curve,!isNaN(this._tweenEasing)&&10!=this._tweenEasing||null!=this._tweenCurve?n=!0:(this._tweenEasing=NaN,n=!1)),n?i.color&&r.color?(this._durationColor.alphaOffset=r.color.alphaOffset-i.color.alphaOffset,this._durationColor.redOffset=r.color.redOffset-i.color.redOffset,this._durationColor.greenOffset=r.color.greenOffset-i.color.greenOffset,this._durationColor.blueOffset=r.color.blueOffset-i.color.blueOffset,this._durationColor.alphaMultiplier=r.color.alphaMultiplier-i.color.alphaMultiplier,this._durationColor.redMultiplier=r.color.redMultiplier-i.color.redMultiplier,this._durationColor.greenMultiplier=r.color.greenMultiplier-i.color.greenMultiplier,this._durationColor.blueMultiplier=r.color.blueMultiplier-i.color.blueMultiplier,this._durationColor.alphaOffset||this._durationColor.redOffset||this._durationColor.greenOffset||this._durationColor.blueOffset||this._durationColor.alphaMultiplier||this._durationColor.redMultiplier||this._durationColor.greenMultiplier||this._durationColor.blueMultiplier?this._tweenColor=!0:this._tweenColor=!1):i.color?(this._tweenColor=!0,this._durationColor.alphaOffset=-i.color.alphaOffset,this._durationColor.redOffset=-i.color.redOffset,this._durationColor.greenOffset=-i.color.greenOffset,this._durationColor.blueOffset=-i.color.blueOffset,this._durationColor.alphaMultiplier=1-i.color.alphaMultiplier,this._durationColor.redMultiplier=1-i.color.redMultiplier,this._durationColor.greenMultiplier=1-i.color.greenMultiplier,this._durationColor.blueMultiplier=1-i.color.blueMultiplier):r.color?(this._tweenColor=!0,this._durationColor.alphaOffset=r.color.alphaOffset,this._durationColor.redOffset=r.color.redOffset,this._durationColor.greenOffset=r.color.greenOffset,this._durationColor.blueOffset=r.color.blueOffset,this._durationColor.alphaMultiplier=r.color.alphaMultiplier-1,this._durationColor.redMultiplier=r.color.redMultiplier-1,this._durationColor.greenMultiplier=r.color.greenMultiplier-1,this._durationColor.blueMultiplier=r.color.blueMultiplier-1):this._tweenColor=!1:this._tweenColor=!1,!this._tweenColor&&this._animationState.displayControl&&(i.color?this._slot._updateDisplayColor(i.color.alphaOffset,i.color.redOffset,i.color.greenOffset,i.color.blueOffset,i.color.alphaMultiplier,i.color.redMultiplier,i.color.greenMultiplier,i.color.blueMultiplier,!0):this._slot._isColorChanged&&this._slot._updateDisplayColor(0,0,0,0,1,1,1,1,!1))},i.updateTween=function(){var e=this._timelineData.frameList[this._currentFrameIndex];if(this._tweenColor&&this._animationState.displayControl){var i=(this._currentTime-this._currentFramePosition)/this._currentFrameDuration;null!=this._tweenCurve?i=this._tweenCurve.getValueByProgress(i):this._tweenEasing&&(i=t.MathUtil.getEaseValue(i,this._tweenEasing)),e.color?this._slot._updateDisplayColor(e.color.alphaOffset+this._durationColor.alphaOffset*i,e.color.redOffset+this._durationColor.redOffset*i,e.color.greenOffset+this._durationColor.greenOffset*i,e.color.blueOffset+this._durationColor.blueOffset*i,e.color.alphaMultiplier+this._durationColor.alphaMultiplier*i,e.color.redMultiplier+this._durationColor.redMultiplier*i,e.color.greenMultiplier+this._durationColor.greenMultiplier*i,e.color.blueMultiplier+this._durationColor.blueMultiplier*i,!0):this._slot._updateDisplayColor(this._durationColor.alphaOffset*i,this._durationColor.redOffset*i,this._durationColor.greenOffset*i,this._durationColor.blueOffset*i,1+this._durationColor.alphaMultiplier*i,1+this._durationColor.redMultiplier*i,1+this._durationColor.greenMultiplier*i,1+this._durationColor.blueMultiplier*i,!0)}},i.updateSingleFrame=function(){var t=this._timelineData.frameList[0];this._slot._arriveAtFrame(t,this,this._animationState,!1),this._isComplete=!0,this._tweenEasing=NaN,this._tweenColor=!1,this._blendEnabled=t.displayIndex>=0,this._blendEnabled&&this._animationState.displayControl&&(t.color?this._slot._updateDisplayColor(t.color.alphaOffset,t.color.redOffset,t.color.greenOffset,t.color.blueOffset,t.color.alphaMultiplier,t.color.redMultiplier,t.color.greenMultiplier,t.color.blueMultiplier,!0):this._slot._isColorChanged&&this._slot._updateDisplayColor(0,0,0,0,1,1,1,1,!1))},e.HALF_PI=.5*Math.PI,e.DOUBLE_PI=2*Math.PI,e._pool=[],e}();t.SlotTimelineState=e,egret.registerClass(e,"dragonBones.SlotTimelineState")}(dragonBones||(dragonBones={})),function(t){var e=function(){function e(){this._totalTime=0,this._currentTime=0,this._lastTime=0,this._currentFrameIndex=0,this._currentFramePosition=0,this._currentFrameDuration=0,this._updateMode=0,this._transform=new t.DBTransform,this._pivot=new t.Point,this._durationTransform=new t.DBTransform,this._durationPivot=new t.Point,this._durationColor=new t.ColorTransform}__define;var i=e.prototype;return e._borrowObject=function(){return 0==e._pool.length?new e:e._pool.pop()},e._returnObject=function(t){e._pool.indexOf(t)<0&&(e._pool[e._pool.length]=t),t.clear()},e._clear=function(){for(var t=e._pool.length;t--;)e._pool[t].clear();e._pool.length=0},i.clear=function(){this._bone&&(this._bone._removeState(this),this._bone=null),this._armature=null,this._animation=null,this._animationState=null,this._timelineData=null,this._originTransform=null,this._originPivot=null},i._fadeIn=function(t,e,i){switch(this._bone=t,this._armature=this._bone.armature,this._animation=this._armature.animation,this._animationState=e,this._timelineData=i,this._originTransform=this._timelineData.originTransform,this._originPivot=this._timelineData.originPivot,this.name=i.name,this._totalTime=this._timelineData.duration,this._rawAnimationScale=this._animationState.clip.scale,this._isComplete=!1,this._tweenTransform=!1,this._tweenScale=!1,this._currentFrameIndex=-1,this._currentTime=-1,this._tweenEasing=NaN,this._weight=1,this._transform.x=0,this._transform.y=0,this._transform.scaleX=1,this._transform.scaleY=1,this._transform.skewX=0,this._transform.skewY=0,this._pivot.x=0,this._pivot.y=0,this._durationTransform.x=0,this._durationTransform.y=0,this._durationTransform.scaleX=1,this._durationTransform.scaleY=1,this._durationTransform.skewX=0,this._durationTransform.skewY=0,this._durationPivot.x=0,this._durationPivot.y=0,this._timelineData.frameList.length){case 0:this._updateMode=0;break;case 1:this._updateMode=1;break;default:this._updateMode=-1}this._bone._addState(this)},i._fadeOut=function(){this._transform.skewX=t.TransformUtil.formatRadian(this._transform.skewX),this._transform.skewY=t.TransformUtil.formatRadian(this._transform.skewY)},i._update=function(t){-1==this._updateMode?this.updateMultipleFrame(t):1==this._updateMode&&(this._updateMode=0,this.updateSingleFrame())},i.updateMultipleFrame=function(t){var e=0;t/=this._timelineData.scale,t+=this._timelineData.offset;var i=this._totalTime*t,r=this._animationState.playTimes;if(0==r)this._isComplete=!1,e=Math.ceil(Math.abs(i)/this._totalTime)||1,(i-=i>=0?Math.floor(i/this._totalTime)*this._totalTime:Math.ceil(i/this._totalTime)*this._totalTime)<0&&(i+=this._totalTime);else{var n=r*this._totalTime;i>=n?(i=n,this._isComplete=!0):i<=-n?(i=-n,this._isComplete=!0):this._isComplete=!1,i<0&&(i+=n),e=Math.ceil(i/this._totalTime)||1,this._isComplete?i=this._totalTime:i-=i>=0?Math.floor(i/this._totalTime)*this._totalTime:Math.ceil(i/this._totalTime)*this._totalTime}if(this._currentTime!=i){this._lastTime=this._currentTime,this._currentTime=i;for(var s,a,o=this._timelineData.frameList,l=0,h=this._timelineData.frameList.length;l<h;++l){if(this._currentFrameIndex<0)this._currentFrameIndex=0;else{if(!(this._currentTime<this._currentFramePosition||this._currentTime>=this._currentFramePosition+this._currentFrameDuration||this._currentTime<this._lastTime))break;if(this._currentFrameIndex++,this._lastTime=this._currentTime,this._currentFrameIndex>=o.length){if(this._isComplete){this._currentFrameIndex--;break}this._currentFrameIndex=0}}a=o[this._currentFrameIndex],s&&this._bone._arriveAtFrame(s,this,this._animationState,!0),this._currentFrameDuration=a.duration,this._currentFramePosition=a.position,s=a}a&&(this._bone._arriveAtFrame(a,this,this._animationState,!1),this.updateToNextFrame(e)),this.updateTween()}},i.updateToNextFrame=function(e){void 0===e&&(e=0);var i=this._currentFrameIndex+1;i>=this._timelineData.frameList.length&&(i=0);var r=this._timelineData.frameList[this._currentFrameIndex],n=this._timelineData.frameList[i],s=!1;0==i&&(!this._animationState.lastFrameAutoTween||this._animationState.playTimes&&this._animationState.currentPlayTimes>=this._animationState.playTimes&&((this._currentFramePosition+this._currentFrameDuration)/this._totalTime+e-this._timelineData.offset)*this._timelineData.scale>.999999)?(this._tweenEasing=NaN,s=!1):r.displayIndex<0||n.displayIndex<0?(this._tweenEasing=NaN,s=!1):this._animationState.autoTween?(this._tweenEasing=this._animationState.clip.tweenEasing,isNaN(this._tweenEasing)?(this._tweenEasing=r.tweenEasing,this._tweenCurve=r.curve,isNaN(this._tweenEasing)&&null==this._tweenCurve?s=!1:(10==this._tweenEasing&&(this._tweenEasing=0),s=!0)):s=!0):(this._tweenEasing=r.tweenEasing,this._tweenCurve=r.curve,!isNaN(this._tweenEasing)&&10!=this._tweenEasing||null!=this._tweenCurve?s=!0:(this._tweenEasing=NaN,s=!1)),s?(this._durationTransform.x=n.transform.x-r.transform.x,this._durationTransform.y=n.transform.y-r.transform.y,this._durationTransform.skewX=n.transform.skewX-r.transform.skewX,this._durationTransform.skewY=n.transform.skewY-r.transform.skewY,this._durationTransform.scaleX=n.transform.scaleX-r.transform.scaleX+n.scaleOffset.x,this._durationTransform.scaleY=n.transform.scaleY-r.transform.scaleY+n.scaleOffset.y,this._durationTransform.normalizeRotation(),0==i&&(this._durationTransform.skewX=t.TransformUtil.formatRadian(this._durationTransform.skewX),this._durationTransform.skewY=t.TransformUtil.formatRadian(this._durationTransform.skewY)),this._durationPivot.x=n.pivot.x-r.pivot.x,this._durationPivot.y=n.pivot.y-r.pivot.y,this._durationTransform.x||this._durationTransform.y||this._durationTransform.skewX||this._durationTransform.skewY||this._durationTransform.scaleX||this._durationTransform.scaleY||this._durationPivot.x||this._durationPivot.y?(this._tweenTransform=!0,this._tweenScale=r.tweenScale):(this._tweenTransform=!1,this._tweenScale=!1)):(this._tweenTransform=!1,this._tweenScale=!1),this._tweenTransform?this._tweenScale||(this._animationState.additiveBlending?(this._transform.scaleX=r.transform.scaleX,this._transform.scaleY=r.transform.scaleY):(this._transform.scaleX=this._originTransform.scaleX*r.transform.scaleX,this._transform.scaleY=this._originTransform.scaleY*r.transform.scaleY)):(this._animationState.additiveBlending?(this._transform.x=r.transform.x,this._transform.y=r.transform.y,this._transform.skewX=r.transform.skewX,this._transform.skewY=r.transform.skewY,this._transform.scaleX=r.transform.scaleX,this._transform.scaleY=r.transform.scaleY,this._pivot.x=r.pivot.x,this._pivot.y=r.pivot.y):(this._transform.x=this._originTransform.x+r.transform.x,this._transform.y=this._originTransform.y+r.transform.y,this._transform.skewX=this._originTransform.skewX+r.transform.skewX,this._transform.skewY=this._originTransform.skewY+r.transform.skewY,this._transform.scaleX=this._originTransform.scaleX*r.transform.scaleX,this._transform.scaleY=this._originTransform.scaleY*r.transform.scaleY,this._pivot.x=this._originPivot.x+r.pivot.x,this._pivot.y=this._originPivot.y+r.pivot.y),this._bone.invalidUpdate())},i.updateTween=function(){var e=this._timelineData.frameList[this._currentFrameIndex];if(this._tweenTransform){var i=(this._currentTime-this._currentFramePosition)/this._currentFrameDuration;null!=this._tweenCurve?i=this._tweenCurve.getValueByProgress(i):this._tweenEasing&&(i=t.MathUtil.getEaseValue(i,this._tweenEasing));var r=e.transform,n=e.pivot;this._animationState.additiveBlending?(this._transform.x=r.x+this._durationTransform.x*i,this._transform.y=r.y+this._durationTransform.y*i,this._transform.skewX=r.skewX+this._durationTransform.skewX*i,this._transform.skewY=r.skewY+this._durationTransform.skewY*i,this._tweenScale&&(this._transform.scaleX=r.scaleX+this._durationTransform.scaleX*i,this._transform.scaleY=r.scaleY+this._durationTransform.scaleY*i),this._pivot.x=n.x+this._durationPivot.x*i,this._pivot.y=n.y+this._durationPivot.y*i):(this._transform.x=this._originTransform.x+r.x+this._durationTransform.x*i,this._transform.y=this._originTransform.y+r.y+this._durationTransform.y*i,this._transform.skewX=this._originTransform.skewX+r.skewX+this._durationTransform.skewX*i,this._transform.skewY=this._originTransform.skewY+r.skewY+this._durationTransform.skewY*i,this._tweenScale&&(this._transform.scaleX=this._originTransform.scaleX*r.scaleX+this._durationTransform.scaleX*i,this._transform.scaleY=this._originTransform.scaleY*r.scaleY+this._durationTransform.scaleY*i),this._pivot.x=this._originPivot.x+n.x+this._durationPivot.x*i,this._pivot.y=this._originPivot.y+n.y+this._durationPivot.y*i),this._bone.invalidUpdate()}},i.updateSingleFrame=function(){var t=this._timelineData.frameList[0];this._bone._arriveAtFrame(t,this,this._animationState,!1),this._isComplete=!0,this._tweenEasing=NaN,this._tweenTransform=!1,this._tweenScale=!1,this._tweenColor=!1,this._animationState.additiveBlending?(this._transform.x=t.transform.x,this._transform.y=t.transform.y,this._transform.skewX=t.transform.skewX,this._transform.skewY=t.transform.skewY,this._transform.scaleX=t.transform.scaleX,this._transform.scaleY=t.transform.scaleY,this._pivot.x=t.pivot.x,this._pivot.y=t.pivot.y):(this._transform.x=this._originTransform.x+t.transform.x,this._transform.y=this._originTransform.y+t.transform.y,this._transform.skewX=this._originTransform.skewX+t.transform.skewX,this._transform.skewY=this._originTransform.skewY+t.transform.skewY,this._transform.scaleX=this._originTransform.scaleX*t.transform.scaleX,this._transform.scaleY=this._originTransform.scaleY*t.transform.scaleY,this._pivot.x=this._originPivot.x+t.pivot.x,this._pivot.y=this._originPivot.y+t.pivot.y),this._bone.invalidUpdate()},e.HALF_PI=.5*Math.PI,e.DOUBLE_PI=2*Math.PI,e._pool=[],e}();t.TimelineState=e,egret.registerClass(e,"dragonBones.TimelineState")}(dragonBones||(dragonBones={})),function(t){var e=function(){function t(t,e){void 0===t&&(t=-1),void 0===e&&(e=1),this._time=t>=0?t:.001*(new Date).getTime(),this._timeScale=isNaN(e)?1:e,this._animatableList=[]}var e=__define,i=t.prototype;return e(i,"time",function(){return this._time}),e(i,"timeScale",function(){return this._timeScale},function(t){(isNaN(t)||t<0)&&(t=1),this._timeScale=t}),i.contains=function(t){return this._animatableList.indexOf(t)>=0},i.add=function(t){t&&-1==this._animatableList.indexOf(t)&&this._animatableList.push(t)},i.remove=function(t){var e=this._animatableList.indexOf(t);e>=0&&(this._animatableList[e]=null)},i.clear=function(){this._animatableList.length=0},i.advanceTime=function(t){void 0===t&&(t=-1),t<0&&(t=.001*(new Date).getTime()-this._time),t*=this._timeScale,this._time+=t;var e=this._animatableList.length;if(0!=e){for(var i=0,r=0;r<e;r++){var n=this._animatableList[r];n&&(i!=r&&(this._animatableList[i]=n,this._animatableList[r]=null),n.advanceTime(t),i++)}if(i!=r){for(e=this._animatableList.length;r<e;)this._animatableList[i++]=this._animatableList[r++];this._animatableList.length=i}}},t.clock=new t,t}();t.WorldClock=e,egret.registerClass(e,"dragonBones.WorldClock",["dragonBones.IAnimatable"])}(dragonBones||(dragonBones={})),function(t){var e=function(t){function e(e){void 0===e&&(e=null),t.call(this,e)}__extends(e,t);__define,e.prototype;return e}(egret.EventDispatcher);t.EventDispatcher=e,egret.registerClass(e,"dragonBones.EventDispatcher")}(dragonBones||(dragonBones={})),function(t){var e=function(t){function e(){if(t.call(this),e._instance)throw new Error("Singleton already constructed!")}__extends(e,t);__define,e.prototype;return e.getInstance=function(){return e._instance||(e._instance=new e),e._instance},e}(t.EventDispatcher);t.SoundEventManager=e,egret.registerClass(e,"dragonBones.SoundEventManager")}(dragonBones||(dragonBones={})),function(t){var e=function(e){function i(i){e.call(this),this._display=i,this._animation=new t.Animation(this),this._slotsZOrderChanged=!1,this._slotList=[],this._boneList=[],this._eventList=[],this._delayDispose=!1,this._lockDispose=!1,this._armatureData=null}__extends(i,e);var r=__define,n=i.prototype;return r(n,"armatureData",function(){return this._armatureData}),r(n,"display",function(){return this._display}),n.getDisplay=function(){return this._display},r(n,"animation",function(){return this._animation}),n.dispose=function(){if(this._delayDispose=!0,this._animation&&!this._lockDispose){this.userData=null,this._animation.dispose();for(var t=this._slotList.length;t--;)this._slotList[t].dispose();for(t=this._boneList.length;t--;)this._boneList[t].dispose();this._armatureData=null,this._animation=null,this._slotList=null,this._boneList=null,this._eventList=null}},n.invalidUpdate=function(t){if(void 0===t&&(t=null),t){var e=this.getBone(t);e&&e.invalidUpdate()}else for(var i=this._boneList.length;i--;)this._boneList[i].invalidUpdate()},n.advanceTime=function(e){this._lockDispose=!0,this._animation._advanceTime(e),e*=this._animation.timeScale;for(var i=this._animation._isFading,r=this._boneList.length;r--;){this._boneList[r]._update(i)}for(r=this._slotList.length;r--;){var n=this._slotList[r];if(n._update(),n._isShowDisplay){var s=n.childArmature;s&&s.advanceTime(e)}}if(this._slotsZOrderChanged&&(this.updateSlotsZOrder(),this.hasEventListener(t.ArmatureEvent.Z_ORDER_UPDATED)&&this.dispatchEvent(new t.ArmatureEvent(t.ArmatureEvent.Z_ORDER_UPDATED))),this._eventList.length>0){r=0;for(var a=this._eventList.length;r<a;r++){var o=this._eventList[r];this.dispatchEvent(o)}this._eventList.length=0}this._lockDispose=!1,this._delayDispose&&this.dispose()},n.resetAnimation=function(){this.animation.stop(),this.animation._resetAnimationStateList();for(var t=0,e=this._boneList.length;t<e;t++)this._boneList[t]._removeAllStates()},n.getSlots=function(t){return void 0===t&&(t=!0),t?this._slotList.concat():this._slotList},n.getSlot=function(t){for(var e=this._slotList.length,i=0;i<e;i++){var r=this._slotList[i];if(r.name==t)return r}return null},n.getSlotByDisplay=function(t){if(t)for(var e=this._slotList.length,i=0;i<e;i++){var r=this._slotList[i];if(r.display==t)return r}return null},n.addSlot=function(t,e){var i=this.getBone(e);if(!i)throw new Error;i.addSlot(t)},n.removeSlot=function(t){if(!t||t.armature!=this)throw new Error;t.parent.removeSlot(t)},n.removeSlotByName=function(t){var e=this.getSlot(t);return e&&this.removeSlot(e),e},n.getBones=function(t){return void 0===t&&(t=!0),t?this._boneList.concat():this._boneList},n.getBone=function(t){for(var e=this._boneList.length,i=0;i<e;i++){var r=this._boneList[i];if(r.name==t)return r}return null},n.getBoneByDisplay=function(t){var e=this.getSlotByDisplay(t);return e?e.parent:null},n.addBone=function(t,e,i){var r;if(void 0===e&&(e=null),void 0===i&&(i=!1),e&&!(r=this.getBone(e)))throw new Error;r?r.addChildBone(t,i):(t.parent&&t.parent.removeChildBone(t,i),t._setArmature(this),i||this._updateAnimationAfterBoneListChanged())},n.removeBone=function(t,e){if(void 0===e&&(e=!1),!t||t.armature!=this)throw new Error;t.parent?t.parent.removeChildBone(t,e):(t._setArmature(null),e||this._updateAnimationAfterBoneListChanged(!1))},n.removeBoneByName=function(t){var e=this.getBone(t);return e&&this.removeBone(e),e},n._addBoneToBoneList=function(t){this._boneList.indexOf(t)<0&&(this._boneList[this._boneList.length]=t)},n._removeBoneFromBoneList=function(t){var e=this._boneList.indexOf(t);e>=0&&this._boneList.splice(e,1)},n._addSlotToSlotList=function(t){this._slotList.indexOf(t)<0&&(this._slotList[this._slotList.length]=t)},n._removeSlotFromSlotList=function(t){var e=this._slotList.indexOf(t);e>=0&&this._slotList.splice(e,1)},n.updateSlotsZOrder=function(){this._slotList.sort(this.sortSlot);for(var t=this._slotList.length;t--;){var e=this._slotList[t];e._isShowDisplay&&e._addDisplayToContainer(this._display)}this._slotsZOrderChanged=!1},n._updateAnimationAfterBoneListChanged=function(t){void 0===t&&(t=!0),t&&this.sortBoneList(),this._animation._updateAnimationStates()},n.sortBoneList=function(){var e=this._boneList.length;if(0!=e){for(var i=[];e--;){for(var r=0,n=this._boneList[e],s=n;s;)r++,s=s.parent;i[e]=[r,n]}for(i.sort(t.ArmatureData.sortBoneDataHelpArrayDescending),e=i.length;e--;)this._boneList[e]=i[e][1];i.length=0}},n._arriveAtFrame=function(e,r,n,s){if(e.event&&this.hasEventListener(t.FrameEvent.ANIMATION_FRAME_EVENT)){var a=new t.FrameEvent(t.FrameEvent.ANIMATION_FRAME_EVENT);a.animationState=n,a.frameLabel=e.event,this._eventList.push(a)}if(e.sound&&i._soundManager.hasEventListener(t.SoundEvent.SOUND)){var o=new t.SoundEvent(t.SoundEvent.SOUND);o.armature=this,o.animationState=n,o.sound=e.sound,i._soundManager.dispatchEvent(o)}e.action&&n.displayControl&&this.animation.gotoAndPlay(e.action)},n.sortSlot=function(t,e){return t.zOrder<e.zOrder?1:-1},n.getAnimation=function(){return this._animation},i._soundManager=t.SoundEventManager.getInstance(),i}(t.EventDispatcher);t.Armature=e,egret.registerClass(e,"dragonBones.Armature",["dragonBones.IAnimatable"])}(dragonBones||(dragonBones={})),function(t){var e=function(){function t(){this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0}__define;var e=t.prototype;return e.invert=function(){var t=this.a,e=this.b,i=this.c,r=this.d,n=this.tx,s=t*r-e*i;this.a=r/s,this.b=-e/s,this.c=-i/s,this.d=t/s,this.tx=(i*this.ty-r*n)/s,this.ty=-(t*this.ty-e*n)/s},e.concat=function(t){var e=t.a,i=t.b,r=t.c,n=t.d,s=this.tx,a=this.ty;if(1!=e||0!=i||0!=r||1!=n){var o=this.a,l=this.b,h=this.c,u=this.d;this.a=o*e+l*r,this.b=o*i+l*n,this.c=h*e+u*r,this.d=h*i+u*n}this.tx=s*e+a*r+t.tx,this.ty=s*i+a*n+t.ty},e.copyFrom=function(t){this.tx=t.tx,this.ty=t.ty,this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d},t}();t.Matrix=e,egret.registerClass(e,"dragonBones.Matrix")}(dragonBones||(dragonBones={})),function(t){var e=function(){function e(){this.x=0,this.y=0,this.skewX=0,this.skewY=0,this.scaleX=1,this.scaleY=1}var i=__define,r=e.prototype;return i(r,"rotation",function(){return this.skewX},function(t){this.skewX=this.skewY=t}),r.copy=function(t){this.x=t.x,this.y=t.y,this.skewX=t.skewX,this.skewY=t.skewY,this.scaleX=t.scaleX,this.scaleY=t.scaleY},r.add=function(t){this.x+=t.x,this.y+=t.y,this.skewX+=t.skewX,this.skewY+=t.skewY,this.scaleX*=t.scaleX,this.scaleY*=t.scaleY},r.minus=function(t){this.x-=t.x,this.y-=t.y,this.skewX-=t.skewX,this.skewY-=t.skewY,this.scaleX/=t.scaleX,this.scaleY/=t.scaleY},r.normalizeRotation=function(){this.skewX=t.TransformUtil.normalizeRotation(this.skewX),this.skewY=t.TransformUtil.normalizeRotation(this.skewY)},r.toString=function(){return"x:"+this.x+" y:"+this.y+" skewX:"+this.skewX+" skewY:"+this.skewY+" scaleX:"+this.scaleX+" scaleY:"+this.scaleY},e}();t.DBTransform=e,egret.registerClass(e,"dragonBones.DBTransform")}(dragonBones||(dragonBones={})),function(t){var e=function(){function e(){this._globalTransformMatrix=new t.Matrix,this._global=new t.DBTransform,this._origin=new t.DBTransform,this._offset=new t.DBTransform,this._offset.scaleX=this._offset.scaleY=1,this._visible=!0,this._armature=null,this._parent=null,this.userData=null,this.inheritRotation=!0,this.inheritScale=!0,this.inheritTranslation=!0}var i=__define,r=e.prototype;return i(r,"global",function(){return this._global}),i(r,"origin",function(){return this._origin}),i(r,"offset",function(){return this._offset}),i(r,"armature",function(){return this._armature}),r._setArmature=function(t){this._armature=t},i(r,"parent",function(){return this._parent}),r._setParent=function(t){this._parent=t},r.dispose=function(){this.userData=null,this._globalTransformMatrix=null,this._global=null,this._origin=null,this._offset=null,this._armature=null,this._parent=null},r._calculateRelativeParentTransform=function(){},r._calculateParentTransform=function(){if(this.parent&&(this.inheritTranslation||this.inheritRotation||this.inheritScale)){var i=this._parent._globalTransformForChild,r=this._parent._globalTransformMatrixForChild;return this.inheritTranslation&&this.inheritRotation&&this.inheritScale||((i=e._tempParentGlobalTransform).copy(this._parent._globalTransformForChild),this.inheritTranslation||(i.x=0,i.y=0),this.inheritScale||(i.scaleX=1,i.scaleY=1),this.inheritRotation||(i.skewX=0,i.skewY=0),r=e._tempParentGlobalTransformMatrix,t.TransformUtil.transformToMatrix(i,r,!0)),{parentGlobalTransform:i,parentGlobalTransformMatrix:r}}return null},r._updateGlobal=function(){this._calculateRelativeParentTransform();var e=this._calculateParentTransform();if(null!=e){var i=e.parentGlobalTransformMatrix,r=e.parentGlobalTransform,n=this._global.x,s=this._global.y;this._global.x=i.a*n+i.c*s+i.tx,this._global.y=i.d*s+i.b*n+i.ty,this.inheritRotation&&(this._global.skewX+=r.skewX,this._global.skewY+=r.skewY),this.inheritScale&&(this._global.scaleX*=r.scaleX,this._global.scaleY*=r.scaleY)}return t.TransformUtil.transformToMatrix(this._global,this._globalTransformMatrix,!0),e},e._tempParentGlobalTransformMatrix=new t.Matrix,e._tempParentGlobalTransform=new t.DBTransform,e}();t.DBObject=e,egret.registerClass(e,"dragonBones.DBObject")}(dragonBones||(dragonBones={})),function(t){var e=function(e){function i(){e.call(this),this.applyOffsetTranslationToChild=!0,this.applyOffsetRotationToChild=!0,this.applyOffsetScaleToChild=!1,this._needUpdate=0,this._tween=new t.DBTransform,this._tweenPivot=new t.Point,this._tween.scaleX=this._tween.scaleY=1,this._boneList=[],this._slotList=[],this._timelineStateList=[],this._needUpdate=2,this._isColorChanged=!1}__extends(i,e);var r=__define,n=i.prototype;return i.initWithBoneData=function(t){var e=new i;return e.name=t.name,e.inheritRotation=t.inheritRotation,e.inheritScale=t.inheritScale,e.origin.copy(t.transform),e},n.dispose=function(){if(this._boneList){e.prototype.dispose.call(this);for(var t=this._boneList.length;t--;)this._boneList[t].dispose();for(t=this._slotList.length;t--;)this._slotList[t].dispose();this._tween=null,this._tweenPivot=null,this._boneList=null,this._slotList=null,this._timelineStateList=null}},n.contains=function(t){if(!t)throw new Error;if(t==this)return!1;for(var e=t;e!=this&&null!=e;)e=e.parent;return e==this},n.addChildBone=function(t,e){if(void 0===e&&(e=!1),!t)throw new Error;if(t==this||t.contains(this))throw new Error;t.parent!=this&&(t.parent&&t.parent.removeChildBone(t,e),this._boneList[this._boneList.length]=t,t._setParent(this),t._setArmature(this._armature),this._armature&&!e&&this._armature._updateAnimationAfterBoneListChanged())},n.removeChildBone=function(t,e){if(void 0===e&&(e=!1),!t)throw new Error;var i=this._boneList.indexOf(t);if(i<0)throw new Error;this._boneList.splice(i,1),t._setParent(null),t._setArmature(null),this._armature&&!e&&this._armature._updateAnimationAfterBoneListChanged(!1)},n.addSlot=function(t){if(!t)throw new Error;t.parent&&t.parent.removeSlot(t),this._slotList[this._slotList.length]=t,t._setParent(this),t.setArmature(this._armature)},n.removeSlot=function(t){if(!t)throw new Error;var e=this._slotList.indexOf(t);if(e<0)throw new Error;this._slotList.splice(e,1),t._setParent(null),t.setArmature(null)},n._setArmature=function(t){if(this._armature!=t){this._armature&&(this._armature._removeBoneFromBoneList(this),this._armature._updateAnimationAfterBoneListChanged(!1)),this._armature=t,this._armature&&this._armature._addBoneToBoneList(this);for(var e=this._boneList.length;e--;)this._boneList[e]._setArmature(this._armature);for(e=this._slotList.length;e--;)this._slotList[e].setArmature(this._armature)}},n.getBones=function(t){return void 0===t&&(t=!0),t?this._boneList.concat():this._boneList},n.getSlots=function(t){return void 0===t&&(t=!0),t?this._slotList.concat():this._slotList},n.invalidUpdate=function(){this._needUpdate=2},n._calculateRelativeParentTransform=function(){this._global.scaleX=this._origin.scaleX*this._tween.scaleX*this._offset.scaleX,this._global.scaleY=this._origin.scaleY*this._tween.scaleY*this._offset.scaleY,this._global.skewX=this._origin.skewX+this._tween.skewX+this._offset.skewX,this._global.skewY=this._origin.skewY+this._tween.skewY+this._offset.skewY,this._global.x=this._origin.x+this._tween.x+this._offset.x,this._global.y=this._origin.y+this._tween.y+this._offset.y},n._update=function(e){if(void 0===e&&(e=!1),this._needUpdate--,e||this._needUpdate>0||this._parent&&this._parent._needUpdate>0){this._needUpdate=1,this.blendingTimeline();var i=this._updateGlobal(),r=i?i.parentGlobalTransform:null,n=i?i.parentGlobalTransformMatrix:null,s=0!=this._offset.x||0!=this._offset.y,a=0!=this._offset.scaleX||0!=this._offset.scaleY,o=0!=this._offset.skewX||0!=this._offset.skewY;s&&!this.applyOffsetTranslationToChild||a&&!this.applyOffsetScaleToChild||o&&!this.applyOffsetRotationToChild?(this._tempGlobalTransformForChild||(this._tempGlobalTransformForChild=new t.DBTransform),this._globalTransformForChild=this._tempGlobalTransformForChild,this._tempGlobalTransformMatrixForChild||(this._tempGlobalTransformMatrixForChild=new t.Matrix),this._globalTransformMatrixForChild=this._tempGlobalTransformMatrixForChild,this._globalTransformForChild.x=this._origin.x+this._tween.x,this._globalTransformForChild.y=this._origin.y+this._tween.y,this._globalTransformForChild.scaleX=this._origin.scaleX*this._tween.scaleX,this._globalTransformForChild.scaleY=this._origin.scaleY*this._tween.scaleY,this._globalTransformForChild.skewX=this._origin.skewX+this._tween.skewX,this._globalTransformForChild.skewY=this._origin.skewY+this._tween.skewY,this.applyOffsetTranslationToChild&&(this._globalTransformForChild.x+=this._offset.x,this._globalTransformForChild.y+=this._offset.y),this.applyOffsetScaleToChild&&(this._globalTransformForChild.scaleX*=this._offset.scaleX,this._globalTransformForChild.scaleY*=this._offset.scaleY),this.applyOffsetRotationToChild&&(this._globalTransformForChild.skewX+=this._offset.skewX,this._globalTransformForChild.skewY+=this._offset.skewY),t.TransformUtil.transformToMatrix(this._globalTransformForChild,this._globalTransformMatrixForChild,!0),n&&(this._globalTransformMatrixForChild.concat(n),t.TransformUtil.matrixToTransform(this._globalTransformMatrixForChild,this._globalTransformForChild,this._globalTransformForChild.scaleX*r.scaleX>=0,this._globalTransformForChild.scaleY*r.scaleY>=0))):(this._globalTransformForChild=this._global,this._globalTransformMatrixForChild=this._globalTransformMatrix)}},n._updateColor=function(t,e,i,r,n,s,a,o,l){for(var h=this._slotList.length,u=0;u<h;u++){this._slotList[u]._updateDisplayColor(t,e,i,r,n,s,a,o)}this._isColorChanged=l},n._hideSlots=function(){for(var t=this._slotList.length,e=0;e<t;e++){this._slotList[e]._changeDisplay(-1)}},n._arriveAtFrame=function(e,r,n,s){if(n.displayControl&&(!this.displayController||this.displayController==n.name)&&n.containsBoneMask(this.name)){e.displayIndex;if(e.event&&this._armature.hasEventListener(t.FrameEvent.BONE_FRAME_EVENT)){var a=new t.FrameEvent(t.FrameEvent.BONE_FRAME_EVENT);a.bone=this,a.animationState=n,a.frameLabel=e.event,this._armature._eventList.push(a)}if(e.sound&&i._soundManager.hasEventListener(t.SoundEvent.SOUND)){var o=new t.SoundEvent(t.SoundEvent.SOUND);o.armature=this._armature,o.animationState=n,o.sound=e.sound,i._soundManager.dispatchEvent(o)}if(e.action)for(var l=this._slotList.length,h=0;h<l;h++){var u=this._slotList[h].childArmature;u&&u.animation.gotoAndPlay(e.action)}}},n._addState=function(t){this._timelineStateList.indexOf(t)<0&&(this._timelineStateList.push(t),this._timelineStateList.sort(this.sortState))},n._removeState=function(t){var e=this._timelineStateList.indexOf(t);e>=0&&this._timelineStateList.splice(e,1)},n._removeAllStates=function(){this._timelineStateList.length=0},n.blendingTimeline=function(){var t,e,i,r,n=this._timelineStateList.length;if(1==n)r=(t=this._timelineStateList[0])._animationState.weight*t._animationState.fadeWeight,t._weight=r,e=t._transform,i=t._pivot,this._tween.x=e.x*r,this._tween.y=e.y*r,this._tween.skewX=e.skewX*r,this._tween.skewY=e.skewY*r,this._tween.scaleX=1+(e.scaleX-1)*r,this._tween.scaleY=1+(e.scaleY-1)*r,this._tweenPivot.x=i.x*r,this._tweenPivot.y=i.y*r;else if(n>1){for(var s=0,a=0,o=0,l=0,h=1,u=1,c=0,d=0,p=1,f=0,_=this._timelineStateList[n-1]._animationState.layer,m=0;n--;){if(_!=(m=(t=this._timelineStateList[n])._animationState.layer)){if(f>=p){t._weight=0;break}p-=f}_=m,r=t._animationState.weight*t._animationState.fadeWeight*p,t._weight=r,r&&(e=t._transform,i=t._pivot,s+=e.x*r,a+=e.y*r,o+=e.skewX*r,l+=e.skewY*r,h+=(e.scaleX-1)*r,u+=(e.scaleY-1)*r,c+=i.x*r,d+=i.y*r,f+=r)}this._tween.x=s,this._tween.y=a,this._tween.skewX=o,this._tween.skewY=l,this._tween.scaleX=h,this._tween.scaleY=u,this._tweenPivot.x=c,this._tweenPivot.y=d}},n.sortState=function(t,e){return t._animationState.layer<e._animationState.layer?-1:1},r(n,"childArmature",function(){return this.slot?this.slot.childArmature:null}),r(n,"display",function(){return this.slot?this.slot.display:null},function(t){this.slot&&(this.slot.display=t)}),r(n,"node",function(){return this._offset}),r(n,"visible",void 0,function(t){if(this._visible!=t){this._visible=t;for(var e=this._slotList.length,i=0;i<e;i++){this._slotList[i]._updateDisplayVisible(this._visible)}}}),r(n,"slot",function(){return this._slotList.length>0?this._slotList[0]:null}),i._soundManager=t.SoundEventManager.getInstance(),i}(t.DBObject);t.Bone=e,egret.registerClass(e,"dragonBones.Bone")}(dragonBones||(dragonBones={})),function(t){var e=function(e){function i(i){if(e.call(this),this._currentDisplayIndex=0,i!=this)throw new Error(egret.getString(4001));this._displayList=[],this._timelineStateList=[],this._currentDisplayIndex=-1,this._originZOrder=0,this._tweenZOrder=0,this._offsetZOrder=0,this._isShowDisplay=!1,this._colorTransform=new t.ColorTransform,this._displayDataList=null,this._currentDisplay=null,this.inheritRotation=!0,this.inheritScale=!0}__extends(i,e);var r=__define,n=i.prototype;return n.initWithSlotData=function(t){this.name=t.name,this.blendMode=t.blendMode,this._originZOrder=t.zOrder,this._displayDataList=t.displayDataList,this._originDisplayIndex=t.displayIndex},n.dispose=function(){this._displayList&&(e.prototype.dispose.call(this),this._displayList.length=0,this._displayDataList=null,this._displayList=null,this._currentDisplay=null)},n.sortState=function(t,e){return t._animationState.layer<e._animationState.layer?-1:1},n._addState=function(t){this._timelineStateList.indexOf(t)<0&&(this._timelineStateList.push(t),this._timelineStateList.sort(this.sortState))},n._removeState=function(t){var e=this._timelineStateList.indexOf(t);e>=0&&this._timelineStateList.splice(e,1)},n.setArmature=function(t){this._armature!=t&&(this._armature&&this._armature._removeSlotFromSlotList(this),this._armature=t,this._armature?(this._armature._addSlotToSlotList(this),this._armature._slotsZOrderChanged=!0,this._addDisplayToContainer(this._armature.display)):this._removeDisplayFromContainer())},n._update=function(){this._parent._needUpdate<=0&&!this._needUpdate||(this._updateGlobal(),this._updateTransform(),this._needUpdate=!1)},n._calculateRelativeParentTransform=function(){this._global.scaleX=this._origin.scaleX*this._offset.scaleX,this._global.scaleY=this._origin.scaleY*this._offset.scaleY,this._global.skewX=this._origin.skewX+this._offset.skewX,this._global.skewY=this._origin.skewY+this._offset.skewY,this._global.x=this._origin.x+this._offset.x+this._parent._tweenPivot.x,this._global.y=this._origin.y+this._offset.y+this._parent._tweenPivot.y},n.updateChildArmatureAnimation=function(){this.childArmature&&(this._isShowDisplay?this._armature&&this._armature.animation.lastAnimationState&&this.childArmature.animation.hasAnimation(this._armature.animation.lastAnimationState.name)?this.childArmature.animation.gotoAndPlay(this._armature.animation.lastAnimationState.name):this.childArmature.animation.play():(this.childArmature.animation.stop(),this.childArmature.animation._lastAnimationState=null))},n._changeDisplay=function(t){if(void 0===t&&(t=0),t<0)this._isShowDisplay&&(this._isShowDisplay=!1,this._removeDisplayFromContainer(),this.updateChildArmatureAnimation());else if(this._displayList.length>0){var e=this._displayList.length;t>=e&&(t=e-1),this._currentDisplayIndex!=t?(this._isShowDisplay=!0,this._currentDisplayIndex=t,this._updateSlotDisplay(),this.updateChildArmatureAnimation(),this._displayDataList&&this._displayDataList.length>0&&this._currentDisplayIndex<this._displayDataList.length&&this._origin.copy(this._displayDataList[this._currentDisplayIndex].transform),this._needUpdate=!0):this._isShowDisplay||(this._isShowDisplay=!0,this._armature&&(this._armature._slotsZOrderChanged=!0,this._addDisplayToContainer(this._armature.display)),this.updateChildArmatureAnimation())}},n._updateSlotDisplay=function(){var e=-1;this._currentDisplay&&(e=this._getDisplayIndex(),this._removeDisplayFromContainer());var i=this._displayList[this._currentDisplayIndex];i?i instanceof t.Armature?this._currentDisplay=i.display:this._currentDisplay=i:this._currentDisplay=null,this._updateDisplay(this._currentDisplay),this._currentDisplay&&(this._armature&&this._isShowDisplay&&(e<0?(this._armature._slotsZOrderChanged=!0,this._addDisplayToContainer(this._armature.display)):this._addDisplayToContainer(this._armature.display,e)),this._updateDisplayBlendMode(this._blendMode),this._updateDisplayColor(this._colorTransform.alphaOffset,this._colorTransform.redOffset,this._colorTransform.greenOffset,this._colorTransform.blueOffset,this._colorTransform.alphaMultiplier,this._colorTransform.redMultiplier,this._colorTransform.greenMultiplier,this._colorTransform.blueMultiplier,!0),this._updateDisplayVisible(this._visible),this._updateTransform())},r(n,"visible",void 0,function(t){this._visible!=t&&(this._visible=t,this._updateDisplayVisible(this._visible))}),r(n,"displayList",function(){return this._displayList},function(t){if(!t)throw new Error;this._currentDisplayIndex<0&&(this._currentDisplayIndex=0);for(var e=this._displayList.length=t.length;e--;)this._displayList[e]=t[e];var i=this._currentDisplayIndex;this._currentDisplayIndex=-1,this._changeDisplay(i)}),r(n,"display",function(){return this._currentDisplay},function(t){this._currentDisplayIndex<0&&(this._currentDisplayIndex=0),this._displayList[this._currentDisplayIndex]!=t&&(this._displayList[this._currentDisplayIndex]=t,this._updateSlotDisplay(),this.updateChildArmatureAnimation(),this._updateTransform())}),n.getDisplay=function(){return this.display},n.setDisplay=function(t){this.display=t},r(n,"childArmature",function(){return this._displayList[this._currentDisplayIndex]instanceof t.Armature?this._displayList[this._currentDisplayIndex]:null},function(t){this.display=t}),r(n,"zOrder",function(){return this._originZOrder+this._tweenZOrder+this._offsetZOrder},function(t){this.zOrder!=t&&(this._offsetZOrder=t-this._originZOrder-this._tweenZOrder,this._armature&&(this._armature._slotsZOrderChanged=!0))}),r(n,"blendMode",function(){return this._blendMode},function(t){this._blendMode!=t&&(this._blendMode=t,this._updateDisplayBlendMode(this._blendMode))}),n._updateDisplay=function(t){throw new Error("")},n._getDisplayIndex=function(){throw new Error(egret.getString(4001))},n._addDisplayToContainer=function(t,e){throw void 0===e&&(e=-1),new Error(egret.getString(4001))},n._removeDisplayFromContainer=function(){throw new Error(egret.getString(4001))},n._updateTransform=function(){throw new Error(egret.getString(4001))},n._updateDisplayVisible=function(t){throw new Error(egret.getString(4001))},n._updateDisplayColor=function(t,e,i,r,n,s,a,o,l){void 0===l&&(l=!1),this._colorTransform.alphaOffset=t,this._colorTransform.redOffset=e,this._colorTransform.greenOffset=i,this._colorTransform.blueOffset=r,this._colorTransform.alphaMultiplier=n,this._colorTransform.redMultiplier=s,this._colorTransform.greenMultiplier=a,this._colorTransform.blueMultiplier=o,this._isColorChanged=l},n._updateDisplayBlendMode=function(t){throw new Error("Abstract method needs to be implemented in subclass!")},n._arriveAtFrame=function(t,e,i,r){if(i.displayControl&&i.containsBoneMask(this.parent.name)){var n=t,s=n.displayIndex;this._changeDisplay(s),this._updateDisplayVisible(n.visible),s>=0&&(isNaN(n.zOrder)||n.zOrder==this._tweenZOrder||(this._tweenZOrder=n.zOrder,this._armature._slotsZOrderChanged=!0)),t.action&&this.childArmature&&this.childArmature.animation.gotoAndPlay(t.action)}},n._updateGlobal=function(){this._calculateRelativeParentTransform(),t.TransformUtil.transformToMatrix(this._global,this._globalTransformMatrix,!0);var e=this._calculateParentTransform();return e&&(this._globalTransformMatrix.concat(e.parentGlobalTransformMatrix),t.TransformUtil.matrixToTransform(this._globalTransformMatrix,this._global,this._global.scaleX*e.parentGlobalTransform.scaleX>=0,this._global.scaleY*e.parentGlobalTransform.scaleY>=0)),e},n._resetToOrigin=function(){this._changeDisplay(this._originDisplayIndex),this._updateDisplayColor(0,0,0,0,1,1,1,1,!0)},i}(t.DBObject);t.Slot=e,egret.registerClass(e,"dragonBones.Slot")}(dragonBones||(dragonBones={})),function(t){var e=function(){function e(){this.slotTimelineCacheList=[],this.slotTimelineCacheDic={},this.frameNum=0}__define;var i=e.prototype;return e.initWithAnimationData=function(i,r){var n=new e;n.name=i.name;for(var s,a,o,l,h=i.timelineList,u=0,c=h.length;u<c;u++){s=h[u].name;for(var d=0,p=r.slotDataList.length;d<p;d++)l=(a=r.slotDataList[d]).name,a.parent==s&&null==n.slotTimelineCacheDic[l]&&((o=new t.SlotTimelineCache).name=l,n.slotTimelineCacheList.push(o),n.slotTimelineCacheDic[l]=o)}return n},i.initSlotTimelineCacheDic=function(t,e){var i;for(var r in this.slotTimelineCacheDic){var n=this.slotTimelineCacheDic[r];i=n.name,n.cacheGenerator=t[i],n.currentFrameCache=e[i]}},i.bindCacheUserSlotDic=function(t){for(var e in t)this.slotTimelineCacheDic[e].bindCacheUser(t[e])},i.addFrame=function(){this.frameNum++;for(var t=0,e=this.slotTimelineCacheList.length;t<e;t++)this.slotTimelineCacheList[t].addFrame()},i.update=function(t){for(var e=Math.floor(t*(this.frameNum-1)),i=0,r=this.slotTimelineCacheList.length;i<r;i++)this.slotTimelineCacheList[i].update(e)},e}();t.AnimationCache=e,egret.registerClass(e,"dragonBones.AnimationCache")}(dragonBones||(dragonBones={})),function(t){var e=function(){function e(){this.animationCacheDic={},this.slotFrameCacheDic={}}__define;var i=e.prototype;return e.initWithArmatureData=function(t,i){void 0===i&&(i=0);var r=new e;if(r.armatureData=t,i<=0){var n=t.animationDataList[0];n&&(r.frameRate=n.frameRate)}else r.frameRate=i;return r},i.initAllAnimationCache=function(){for(var e=this.armatureData.animationDataList.length,i=0;i<e;i++){var r=this.armatureData.animationDataList[i];this.animationCacheDic[r.name]=t.AnimationCache.initWithAnimationData(r,this.armatureData)}},i.initAnimationCache=function(e){this.animationCacheDic[e]=t.AnimationCache.initWithAnimationData(this.armatureData.getAnimationData(e),this.armatureData)},i.bindCacheUserArmatures=function(t){for(var e=t.length,i=0;i<e;i++){var r=t[i];this.bindCacheUserArmature(r)}},i.bindCacheUserArmature=function(t){var e;for(var i in t.animation.animationCacheManager=this,t._slotDic)(e=t._slotDic[i]).frameCache=this.slotFrameCacheDic[e.name]},i.setCacheGeneratorArmature=function(e){var i;for(var r in this.cacheGeneratorArmature=e,e._slotDic)i=e._slotDic[r],this.slotFrameCacheDic[i.name]=new t.SlotFrameCache;for(var n in this.animationCacheDic){this.animationCacheDic[n].initSlotTimelineCacheDic(e._slotDic,this.slotFrameCacheDic)}},i.generateAllAnimationCache=function(t){for(var e in this.animationCacheDic){var i=this.animationCacheDic[e];this.generateAnimationCache(i.name,t)}},i.generateAnimationCache=function(t,e){var i=this.cacheGeneratorArmature.enableCache;this.cacheGeneratorArmature.enableCache=!1;var r=this.animationCacheDic[t];if(r){var n=this.cacheGeneratorArmature.getAnimation().animationState,s=1/this.frameRate;e?this.cacheGeneratorArmature.getAnimation().gotoAndPlay(t,0,-1,0):this.cacheGeneratorArmature.getAnimation().gotoAndPlay(t,0,-1,1);var a,o=this.cacheGeneratorArmature.enableEventDispatch;for(this.cacheGeneratorArmature.enableEventDispatch=!1;a=n.progress,this.cacheGeneratorArmature.advanceTime(s),r.addFrame(),n.progress>=a&&n.progress<1;);this.cacheGeneratorArmature.enableEventDispatch=o,this.resetCacheGeneratorArmature(),this.cacheGeneratorArmature.enableCache=i}},i.resetCacheGeneratorArmature=function(){this.cacheGeneratorArmature.resetAnimation()},i.getAnimationCache=function(t){return this.animationCacheDic[t]},e}();t.AnimationCacheManager=e,egret.registerClass(e,"dragonBones.AnimationCacheManager")}(dragonBones||(dragonBones={})),function(t){var e=function(){function e(){this.globalTransform=new t.DBTransform,this.globalTransformMatrix=new t.Matrix}__define;var i=e.prototype;return i.copy=function(t){this.globalTransform=t.globalTransform,this.globalTransformMatrix=t.globalTransformMatrix},i.clear=function(){this.globalTransform=e.ORIGIN_TRAMSFORM,this.globalTransformMatrix=e.ORIGIN_MATRIX},e.ORIGIN_TRAMSFORM=new t.DBTransform,e.ORIGIN_MATRIX=new t.Matrix,e}();t.FrameCache=e,egret.registerClass(e,"dragonBones.FrameCache")}(dragonBones||(dragonBones={})),function(t){var e=function(t){function e(){t.call(this),this.displayIndex=-1}__extends(e,t);__define;var i=e.prototype;return i.copy=function(e){t.prototype.copy.call(this,e),this.colorTransform=e.colorTransform,this.displayIndex=e.displayIndex},i.clear=function(){t.prototype.clear.call(this),this.colorTransform=null,this.displayIndex=-1},e}(t.FrameCache);t.SlotFrameCache=e,egret.registerClass(e,"dragonBones.SlotFrameCache")}(dragonBones||(dragonBones={})),function(t){var e=function(){function t(){this.frameCacheList=new Array}__define;var e=t.prototype;return e.addFrame=function(){},e.update=function(t){void 0===t&&(t=0),this.currentFrameCache.copy(this.frameCacheList[t])},e.bindCacheUser=function(t){t.frameCache=this.currentFrameCache},t}();t.TimelineCache=e,egret.registerClass(e,"dragonBones.TimelineCache")}(dragonBones||(dragonBones={})),function(t){var e=function(e){function i(){e.call(this)}__extends(i,e);__define;return i.prototype.addFrame=function(){var e=new t.SlotFrameCache;e.globalTransform.copy(this.cacheGenerator.global),e.globalTransformMatrix.copyFrom(this.cacheGenerator.globalTransformMatrix),this.cacheGenerator.colorChanged&&(e.colorTransform=t.ColorTransformUtil.cloneColor(this.cacheGenerator.colorTransform)),e.displayIndex=this.cacheGenerator.displayIndex,this.frameCacheList.push(e)},i}(t.TimelineCache);t.SlotTimelineCache=e,egret.registerClass(e,"dragonBones.SlotTimelineCache")}(dragonBones||(dragonBones={})),function(t){var e=function(t){function e(e,i,r){void 0===i&&(i=!1),void 0===r&&(r=!1),t.call(this,e,i,r)}__extends(e,t);__define,e.prototype;return e}(egret.Event);t.Event=e,egret.registerClass(e,"dragonBones.Event")}(dragonBones||(dragonBones={})),function(t){var e=function(t){function e(e,i){void 0===i&&(i=!1),t.call(this,e)}__extends(e,t);var i=__define,r=e.prototype;return i(e,"MOVEMENT_CHANGE",function(){return e.FADE_IN}),i(r,"movementID",function(){return this.animationName}),i(r,"armature",function(){return this.target}),i(r,"animationName",function(){return this.animationState.name}),e.FADE_IN="fadeIn",e.FADE_OUT="fadeOut",e.START="start",e.COMPLETE="complete",e.LOOP_COMPLETE="loopComplete",e.FADE_IN_COMPLETE="fadeInComplete",e.FADE_OUT_COMPLETE="fadeOutComplete",e}(t.Event);t.AnimationEvent=e,egret.registerClass(e,"dragonBones.AnimationEvent")}(dragonBones||(dragonBones={})),function(t){var e=function(t){function e(e){t.call(this,e)}__extends(e,t);__define,e.prototype;return e.Z_ORDER_UPDATED="zOrderUpdated",e}(t.Event);t.ArmatureEvent=e,egret.registerClass(e,"dragonBones.ArmatureEvent")}(dragonBones||(dragonBones={})),function(t){var e=function(t){function e(e,i){void 0===i&&(i=!1),t.call(this,e)}__extends(e,t);var i=__define,r=e.prototype;return i(e,"MOVEMENT_FRAME_EVENT",function(){return e.ANIMATION_FRAME_EVENT}),i(r,"armature",function(){return this.target}),e.ANIMATION_FRAME_EVENT="animationFrameEvent",e.BONE_FRAME_EVENT="boneFrameEvent",e}(t.Event);t.FrameEvent=e,egret.registerClass(e,"dragonBones.FrameEvent")}(dragonBones||(dragonBones={})),function(t){var e=function(t){function e(e,i){void 0===i&&(i=!1),t.call(this,e)}__extends(e,t);__define,e.prototype;return e.SOUND="sound",e}(t.Event);t.SoundEvent=e,egret.registerClass(e,"dragonBones.SoundEvent")}(dragonBones||(dragonBones={})),function(t){var e=function(e){function r(t){if(e.call(this),this.dragonBonesDataDic={},this.textureAtlasDic={},t!=this)throw new Error(egret.getString(4001))}__extends(r,e);__define;var n=r.prototype;return n.dispose=function(t){if(void 0===t&&(t=!0),t){for(var e in this.dragonBonesDataDic)this.dragonBonesDataDic[e].dispose(),delete this.dragonBonesDataDic[e];for(var i in this.textureAtlasDic){var r=this.textureAtlasDic[i];if(r)for(var n=0,s=r.length;n<s;n++)r[n].dispose();delete this.textureAtlasDic[i]}}this.dragonBonesDataDic=null,this.textureAtlasDic=null},n.getDragonBonesData=function(t){return this.dragonBonesDataDic[t]},n.getSkeletonData=function(t){return this.getDragonBonesData(t)},n.addDragonBonesData=function(t,e){if(void 0===e&&(e=null),!t)throw new Error;if(!(e=e||t.name))throw new Error(egret.getString(4002));this.dragonBonesDataDic[e]=t},n.addSkeletonData=function(t,e){void 0===e&&(e=null),this.addDragonBonesData(t,e)},n.removeDragonBonesData=function(t){delete this.dragonBonesDataDic[t]},n.removeSkeletonData=function(t){delete this.dragonBonesDataDic[t]},n.getTextureAtlas=function(t){return this.textureAtlasDic[t]},n.addTextureAtlas=function(t,e){if(void 0===e&&(e=null),!t)throw new Error;if(!e&&t.hasOwnProperty("name")&&(e=t.name),!e)throw new Error(egret.getString(4002));var i=this.textureAtlasDic[e];null==i&&(i=[],this.textureAtlasDic[e]=i),-1==i.indexOf(t)&&i.push(t)},n.removeTextureAtlas=function(t){delete this.textureAtlasDic[t]},n.getTextureDisplay=function(t,e,i,r){var n,s,a,o;if(void 0===e&&(e=null),void 0===i&&(i=NaN),void 0===r&&(r=NaN),e){if(s=this.textureAtlasDic[e])for(a=0,o=s.length;a<o&&!(n=s[a]).getRegion(t);a++)n=null}else for(e in this.textureAtlasDic)if(s=this.textureAtlasDic[e]){for(a=0,o=s.length;a<o&&!(n=s[a]).getRegion(t);a++)n=null;if(null!=n)break}if(!n)return null;if(isNaN(i)||isNaN(r)){var l=this.dragonBonesDataDic[e];if(l=l||this.findFirstDragonBonesData()){var h=l.getDisplayDataByName(t);h&&(i=h.pivot.x,r=h.pivot.y)}}return this._generateDisplay(n,t,i,r)},n.buildArmature=function(t,e,i,r){void 0===e&&(e=null),void 0===i&&(i=null),void 0===r&&(r=null);var n={};this.fillBuildArmatureDataPackageArmatureInfo(t,e,n),null==i&&(i=n.dragonBonesDataName);var s=n.dragonBonesData,a=n.armatureData;return a?this.buildArmatureUsingArmatureDataFromTextureAtlas(s,a,i,r):null},n.buildFastArmature=function(t,e,r,n){void 0===e&&(e=null),void 0===r&&(r=null),void 0===n&&(n=null);var s=new i;this.fillBuildArmatureDataPackageArmatureInfo(t,e,s),null==r&&(r=s.dragonBonesDataName);var a=s.dragonBonesData,o=s.armatureData;return o?this.buildFastArmatureUsingArmatureDataFromTextureAtlas(a,o,r,n):null},n.buildArmatureUsingArmatureDataFromTextureAtlas=function(t,e,i,r){void 0===r&&(r=null);var n=this._generateArmature();return n.name=e.name,n.__dragonBonesData=t,n._armatureData=e,n.animation.animationDataList=e.animationDataList,this._buildBones(n),this._buildSlots(n,r,i),n.advanceTime(0),n},n.buildFastArmatureUsingArmatureDataFromTextureAtlas=function(t,e,i,r){void 0===r&&(r=null);var n=this._generateFastArmature();return n.name=e.name,n.__dragonBonesData=t,n._armatureData=e,n.animation.animationDataList=e.animationDataList,this._buildFastBones(n),this._buildFastSlots(n,r,i),n.advanceTime(0),n},n.copyAnimationsToArmature=function(e,i,r,n){void 0===r&&(r=null),void 0===n&&(n=!0);var s={};if(!this.fillBuildArmatureDataPackageArmatureInfo(i,r,s))return!1;var a=s.armatureData;e.animation.animationDataList=a.animationDataList;for(var o,l,h,u,c,d=a.getSkinData(""),p=e.getSlots(!1),f=0,_=p.length,m=0;m<_;m++){f=(h=(l=p[m]).displayList).length;for(var g=0;g<f;g++)(u=h[g])instanceof t.Armature&&(c=u,(o=d.getSlotData(l.name).displayDataList[g]).type==t.DisplayData.ARMATURE&&this.copyAnimationsToArmature(c,o.name,s.dragonBonesDataName,n))}return!0},n.fillBuildArmatureDataPackageArmatureInfo=function(t,e,i){if(e)return i.dragonBonesDataName=e,i.dragonBonesData=this.dragonBonesDataDic[e],i.armatureData=i.dragonBonesData.getArmatureDataByName(t),!0;for(e in this.dragonBonesDataDic)if(i.dragonBonesData=this.dragonBonesDataDic[e],i.armatureData=i.dragonBonesData.getArmatureDataByName(t),i.armatureData)return i.dragonBonesDataName=e,!0;return!1},n.fillBuildArmatureDataPackageTextureInfo=function(t,e){e.textureAtlas=this.textureAtlasDic[t||e.dragonBonesDataName]},n.findFirstDragonBonesData=function(){for(var t in this.dragonBonesDataDic){var e=this.dragonBonesDataDic[t];if(e)return e}return null},n.findFirstTextureAtlas=function(){for(var t in this.textureAtlasDic){var e=this.textureAtlasDic[t];if(e)return e}return null},n._buildBones=function(e){for(var i,r,n,s=e.armatureData.boneDataList,a=0;a<s.length;a++)i=s[a],r=t.Bone.initWithBoneData(i),(n=i.parent)&&null==e.armatureData.getBoneData(n)&&(n=null),e.addBone(r,n,!0);e._updateAnimationAfterBoneListChanged()},n._buildSlots=function(e,i,r){if(e.armatureData.getSkinData(i)){e.armatureData.setSkinData(i);for(var n,s,a,o=[],l=e.armatureData.slotDataList,h=0;h<l.length;h++)if(n=l[h],a=e.getBone(n.parent)){(s=this._generateSlot()).initWithSlotData(n),a.addSlot(s),o.length=0;for(var u=n.displayDataList.length;u--;){var c=n.displayDataList[u];switch(c.type){case t.DisplayData.ARMATURE:var d=this.buildArmatureUsingArmatureDataFromTextureAtlas(e.__dragonBonesData,e.__dragonBonesData.getArmatureDataByName(c.name),r,i);o[u]=d;break;case t.DisplayData.IMAGE:default:o[u]=this.getTextureDisplay(c.name,r,c.pivot.x,c.pivot.y)}}for(var p=0,f=o.length;p<f;p++){var _=o[p];if(_&&(_ instanceof t.Armature&&(_=_.display),_.hasOwnProperty("name")))try{_.name=s.name}catch(t){}}s.displayList=o,s._changeDisplay(n.displayIndex)}}},n._buildFastBones=function(e){for(var i,r,n=e.armatureData.boneDataList,s=0;s<n.length;s++)i=n[s],r=t.FastBone.initWithBoneData(i),e.addBone(r,i.parent)},n._buildFastSlots=function(e,i,r){if(e.armatureData.getSkinData(i)){e.armatureData.setSkinData(i);for(var n,s,a=[],o=e.armatureData.slotDataList,l=0;l<o.length;l++){a.length=0,n=o[l],(s=this._generateFastSlot()).initWithSlotData(n);for(var h=n.displayDataList.length;h--;){var u=n.displayDataList[h];switch(u.type){case t.DisplayData.ARMATURE:var c=this.buildFastArmatureUsingArmatureDataFromTextureAtlas(e.__dragonBonesData,e.__dragonBonesData.getArmatureDataByName(u.name),r,i);a[h]=c,s.hasChildArmature=!0;break;case t.DisplayData.IMAGE:default:a[h]=this.getTextureDisplay(u.name,r,u.pivot.x,u.pivot.y)}}for(var d=a.length,p=0;p<d;p++){var f=a[p];if(f&&(f instanceof t.FastArmature&&(f=f.display),f.hasOwnProperty("name")))try{f.name=s.name}catch(t){}}s.initDisplayList(a.concat()),e.addSlot(s,n.parent),s._changeDisplayIndex(n.displayIndex)}}},n._generateArmature=function(){return null},n._generateSlot=function(){return null},n._generateFastArmature=function(){return null},n._generateFastSlot=function(){return null},n._generateDisplay=function(t,e,i,r){return null},r._helpMatrix=new t.Matrix,r}(t.EventDispatcher);t.BaseFactory=e,egret.registerClass(e,"dragonBones.BaseFactory");var i=function(){function t(){}__define,t.prototype;return t}();t.BuildArmatureDataPackage=i,egret.registerClass(i,"dragonBones.BuildArmatureDataPackage")}(dragonBones||(dragonBones={})),function(t){var e=function(e){function i(i){e.call(this),this.isCacheManagerExclusive=!1,this._enableEventDispatch=!0,this.useCache=!0,this._display=i,this._animation=new t.FastAnimation(this),this._slotsZOrderChanged=!1,this._armatureData=null,this.boneList=[],this._boneDic={},this.slotList=[],this._slotDic={},this.slotHasChildArmatureList=[],this._eventList=[],this._delayDispose=!1,this._lockDispose=!1}__extends(i,e);var r=__define,n=i.prototype;return n.dispose=function(){if(this._delayDispose=!0,this._animation&&!this._lockDispose){this.userData=null,this._animation.dispose();for(var t=this.slotList.length;t--;)this.slotList[t].dispose();for(t=this.boneList.length;t--;)this.boneList[t].dispose();this.slotList.length=0,this.boneList.length=0,this._armatureData=null,this._animation=null,this.slotList=null,this.boneList=null,this._eventList=null}},n.advanceTime=function(t){this._lockDispose=!0,this._animation.advanceTime(t);var e=0;if(this._animation.animationState.isUseCache())for(this.useCache||(this.useCache=!0),e=this.slotList.length;e--;)this.slotList[e].updateByCache();else{if(this.useCache)for(this.useCache=!1,e=this.slotList.length;e--;)this.slotList[e].switchTransformToBackup();for(e=this.boneList.length;e--;)this.boneList[e].update();for(e=this.slotList.length;e--;)this.slotList[e]._update()}for(e=this.slotHasChildArmatureList.length;e--;){var i=this.slotHasChildArmatureList[e].childArmature;i&&i.advanceTime(t)}for(this._slotsZOrderChanged&&this.updateSlotsZOrder();this._eventList.length>0;)this.dispatchEvent(this._eventList.shift());this._lockDispose=!1,this._delayDispose&&this.dispose()},n.enableAnimationCache=function(e,i,r){void 0===i&&(i=null),void 0===r&&(r=!0);var n=t.AnimationCacheManager.initWithArmatureData(this.armatureData,e);if(i)for(var s=i.length,a=0;a<s;a++){var o=i[a];n.initAnimationCache(o)}else n.initAllAnimationCache();return n.setCacheGeneratorArmature(this),n.generateAllAnimationCache(r),n.bindCacheUserArmature(this),this.enableCache=!0,n},n.getBone=function(t){return this._boneDic[t]},n.getSlot=function(t){return this._slotDic[t]},n.getBoneByDisplay=function(t){var e=this.getSlotByDisplay(t);return e?e.parent:null},n.getSlotByDisplay=function(t){if(t)for(var e=0,i=this.slotList.length;e<i;e++)if(this.slotList[e].display==t)return this.slotList[e];return null},n.getSlots=function(t){return void 0===t&&(t=!0),t?this.slotList.concat():this.slotList},n._updateBonesByCache=function(){for(var t=this.boneList.length;t--;)this.boneList[t].update()},n.addBone=function(t,e){var i;void 0===e&&(e=null),e&&(i=this.getBone(e)).boneList.push(t),t.armature=this,t.setParent(i),this.boneList.unshift(t),this._boneDic[t.name]=t},n.addSlot=function(t,e){var i=this.getBone(e);if(!i)throw new Error;t.armature=this,t.setParent(i),i.slotList.push(t),t._addDisplayToContainer(this.display),this.slotList.push(t),this._slotDic[t.name]=t,t.hasChildArmature&&this.slotHasChildArmatureList.push(t)},n.updateSlotsZOrder=function(){this.slotList.sort(this.sortSlot);for(var t=this.slotList.length;t--;){var e=this.slotList[t];(e._frameCache&&e._frameCache.displayIndex>=0||!e._frameCache&&e.displayIndex>=0)&&e._addDisplayToContainer(this._display)}this._slotsZOrderChanged=!1},n.sortBoneList=function(){var e=this.boneList.length;if(0!=e){for(var i=[];e--;){for(var r=0,n=this.boneList[e],s=n;s;)r++,s=s.parent;i[e]=[r,n]}for(i.sort(t.ArmatureData.sortBoneDataHelpArrayDescending),e=i.length;e--;)this.boneList[e]=i[e][1];i.length=0}},n.arriveAtFrame=function(e,i){if(e.event&&this.hasEventListener(t.FrameEvent.ANIMATION_FRAME_EVENT)){var r=new t.FrameEvent(t.FrameEvent.ANIMATION_FRAME_EVENT);r.animationState=i,r.frameLabel=e.event,this._addEvent(r)}e.action&&this.animation.gotoAndPlay(e.action)},n.invalidUpdate=function(t){if(void 0===t&&(t=null),t){var e=this.getBone(t);e&&e.invalidUpdate()}else for(var i=this.boneList.length;i--;)this.boneList[i].invalidUpdate()},n.resetAnimation=function(){this.animation.animationState._resetTimelineStateList();for(var t=this.boneList.length,e=0;e<t;e++){this.boneList[e]._timelineState=null}this.animation.stop()},n.sortSlot=function(t,e){return t.zOrder<e.zOrder?1:-1},n.getAnimation=function(){return this._animation},r(n,"armatureData",function(){return this._armatureData}),r(n,"animation",function(){return this._animation}),r(n,"display",function(){return this._display}),r(n,"enableCache",function(){return this._enableCache},function(t){this._enableCache=t}),r(n,"enableEventDispatch",function(){return this._enableEventDispatch},function(t){this._enableEventDispatch=t}),n._addEvent=function(t){this._enableEventDispatch&&this._eventList.push(t)},i}(t.EventDispatcher);t.FastArmature=e,egret.registerClass(e,"dragonBones.FastArmature",["dragonBones.ICacheableArmature","dragonBones.IArmature","dragonBones.IAnimatable"])}(dragonBones||(dragonBones={})),function(t){var e=function(){function e(){this._globalTransformMatrix=new t.Matrix,this._global=new t.DBTransform,this._origin=new t.DBTransform,this._visible=!0,this.armature=null,this._parent=null,this.userData=null,this.inheritRotation=!0,this.inheritScale=!0,this.inheritTranslation=!0}var i=__define,r=e.prototype;return r.updateByCache=function(){this._global=this._frameCache.globalTransform,this._globalTransformMatrix=this._frameCache.globalTransformMatrix},r.switchTransformToBackup=function(){this._globalBackup||(this._globalBackup=new t.DBTransform,this._globalTransformMatrixBackup=new t.Matrix),this._global=this._globalBackup,this._globalTransformMatrix=this._globalTransformMatrixBackup},r.setParent=function(t){this._parent=t},r.dispose=function(){this.userData=null,this._globalTransformMatrix=null,this._global=null,this._origin=null,this.armature=null,this._parent=null},r._calculateParentTransform=function(){if(this.parent&&(this.inheritTranslation||this.inheritRotation||this.inheritScale)){var i=this._parent._global,r=this._parent._globalTransformMatrix;return(this.inheritTranslation||0==i.x&&0==i.y)&&(this.inheritRotation||0==i.skewX&&0==i.skewY)&&(this.inheritScale||1==i.scaleX&&1==i.scaleY)||((i=e._tempParentGlobalTransform).copy(this._parent._global),this.inheritTranslation||(i.x=0,i.y=0),this.inheritScale||(i.scaleX=1,i.scaleY=1),this.inheritRotation||(i.skewX=0,i.skewY=0),r=t.DBObject._tempParentGlobalTransformMatrix,t.TransformUtil.transformToMatrix(i,r)),e.tempOutputObj.parentGlobalTransform=i,e.tempOutputObj.parentGlobalTransformMatrix=r,e.tempOutputObj}return null},r._updateGlobal=function(){this._calculateRelativeParentTransform();var e=this._calculateParentTransform();if(null!=e){var i=e.parentGlobalTransformMatrix,r=e.parentGlobalTransform,n=this._global.x,s=this._global.y;this._global.x=i.a*n+i.c*s+i.tx,this._global.y=i.d*s+i.b*n+i.ty,this.inheritRotation&&(this._global.skewX+=r.skewX,this._global.skewY+=r.skewY),this.inheritScale&&(this._global.scaleX*=r.scaleX,this._global.scaleY*=r.scaleY)}return t.TransformUtil.transformToMatrix(this._global,this._globalTransformMatrix,!0),e},r._calculateRelativeParentTransform=function(){},i(r,"name",function(){return this._name},function(t){this._name=t}),i(r,"global",function(){return this._global}),i(r,"globalTransformMatrix",function(){return this._globalTransformMatrix}),i(r,"origin",function(){return this._origin}),i(r,"parent",function(){return this._parent}),i(r,"visible",function(){return this._visible},function(t){this._visible=t}),i(r,"frameCache",void 0,function(t){this._frameCache=t}),e._tempParentGlobalTransform=new t.DBTransform,e.tempOutputObj={},e}();t.FastDBObject=e,egret.registerClass(e,"dragonBones.FastDBObject")}(dragonBones||(dragonBones={})),function(t){var e=function(e){function i(){e.call(this),this.slotList=[],this.boneList=[],this._needUpdate=0,this._needUpdate=2,this._tweenPivot=new t.Point}__extends(i,e);var r=__define,n=i.prototype;return i.initWithBoneData=function(t){var e=new i;return e.name=t.name,e.inheritRotation=t.inheritRotation,e.inheritScale=t.inheritScale,e.origin.copy(t.transform),e},n.getBones=function(t){return void 0===t&&(t=!0),t?this.boneList.concat():this.boneList},n.getSlots=function(t){return void 0===t&&(t=!0),t?this.slotList.concat():this.slotList},n.dispose=function(){e.prototype.dispose.call(this),this._timelineState=null,this._tweenPivot=null},n.invalidUpdate=function(){this._needUpdate=2},n._calculateRelativeParentTransform=function(){this._global.copy(this._origin),this._timelineState&&this._global.add(this._timelineState._transform)},n.updateByCache=function(){e.prototype.updateByCache.call(this),this._global=this._frameCache.globalTransform,this._globalTransformMatrix=this._frameCache.globalTransformMatrix},n.update=function(t){void 0===t&&(t=!1),this._needUpdate--,(t||this._needUpdate>0||this._parent&&this._parent._needUpdate>0)&&(this._needUpdate=1,this.blendingTimeline(),this._updateGlobal())},n._hideSlots=function(){for(var t=this.slotList.length,e=0;e<t;e++){this.slotList[e].hideSlots()}},n.blendingTimeline=function(){this._timelineState&&(this._tweenPivot.x=this._timelineState._pivot.x,this._tweenPivot.y=this._timelineState._pivot.y)},n.arriveAtFrame=function(e,i){if(e.event&&this.armature.hasEventListener(t.FrameEvent.BONE_FRAME_EVENT)){var r=new t.FrameEvent(t.FrameEvent.BONE_FRAME_EVENT);r.bone=this,r.animationState=i,r.frameLabel=e.event,this.armature._addEvent(r)}},r(n,"childArmature",function(){var t=this.slot;return t?t.childArmature:null}),r(n,"display",function(){var t=this.slot;return t?t.display:null},function(t){var e=this.slot;e&&(e.display=t)}),r(n,"visible",void 0,function(t){if(this._visible!=t){this._visible=t;for(var e=0,i=this.armature.slotList.length;e<i;e++)this.armature.slotList[e].parent==this&&this.armature.slotList[e]._updateDisplayVisible(this._visible)}}),r(n,"slot",function(){return this.slotList.length>0?this.slotList[0]:null}),i}(t.FastDBObject);t.FastBone=e,egret.registerClass(e,"dragonBones.FastBone")}(dragonBones||(dragonBones={})),function(t){var e=function(e){function i(i){if(e.call(this),this._currentDisplayIndex=0,i!=this)throw new Error("Abstract class can not be instantiated!");this.hasChildArmature=!1,this._currentDisplayIndex=-1,this._originZOrder=0,this._tweenZOrder=0,this._offsetZOrder=0,this._colorTransform=new t.ColorTransform,this._isColorChanged=!1,this._displayDataList=null,this._currentDisplay=null,this.inheritRotation=!0,this.inheritScale=!0}__extends(i,e);var r=__define,n=i.prototype;return n.initWithSlotData=function(t){this.name=t.name,this.blendMode=t.blendMode,this._originZOrder=t.zOrder,this._displayDataList=t.displayDataList,this._originDisplayIndex=t.displayIndex},n.dispose=function(){this._displayList&&(e.prototype.dispose.call(this),this._displayDataList=null,this._displayList=null,this._currentDisplay=null)},n.updateByCache=function(){e.prototype.updateByCache.call(this),this._updateTransform();var i=this._frameCache.colorTransform,r=null!=i;(this.colorChanged!=r||this.colorChanged&&r&&!t.ColorTransformUtil.isEqual(this._colorTransform,i))&&(i=i||t.ColorTransformUtil.originalColor,this._updateDisplayColor(i.alphaOffset,i.redOffset,i.greenOffset,i.blueOffset,i.alphaMultiplier,i.redMultiplier,i.greenMultiplier,i.blueMultiplier,r)),this._changeDisplayIndex(this._frameCache.displayIndex)},n._update=function(){this._parent._needUpdate<=0||(this._updateGlobal(),this._updateTransform())},n._calculateRelativeParentTransform=function(){this._global.copy(this._origin),this._global.x+=this._parent._tweenPivot.x,this._global.y+=this._parent._tweenPivot.y},n.initDisplayList=function(t){this._displayList=t},n.clearCurrentDisplay=function(){if(this.hasChildArmature){var t=this.childArmature;t&&t.resetAnimation()}var e=this._getDisplayIndex();return this._removeDisplayFromContainer(),e},n._changeDisplayIndex=function(t){if(void 0===t&&(t=0),this._currentDisplayIndex!=t){var e=-1;this._currentDisplayIndex>=0&&(e=this.clearCurrentDisplay()),this._currentDisplayIndex=t,this._currentDisplayIndex>=0&&(this._origin.copy(this._displayDataList[this._currentDisplayIndex].transform),this.initCurrentDisplay(e))}},n.changeSlotDisplay=function(t){var e=this.clearCurrentDisplay();this._displayList[this._currentDisplayIndex]=t,this.initCurrentDisplay(e)},n.initCurrentDisplay=function(e){void 0===e&&(e=0);var i=this._displayList[this._currentDisplayIndex];if(i?i instanceof t.FastArmature?this._currentDisplay=i.display:this._currentDisplay=i:this._currentDisplay=null,this._updateDisplay(this._currentDisplay),this._currentDisplay&&(-1!=e?this._addDisplayToContainer(this.armature.display,e):(this.armature._slotsZOrderChanged=!0,this._addDisplayToContainer(this.armature.display)),this._blendMode&&this._updateDisplayBlendMode(this._blendMode),this._isColorChanged&&this._updateDisplayColor(this._colorTransform.alphaOffset,this._colorTransform.redOffset,this._colorTransform.greenOffset,this._colorTransform.blueOffset,this._colorTransform.alphaMultiplier,this._colorTransform.redMultiplier,this._colorTransform.greenMultiplier,this._colorTransform.blueMultiplier,!0),this._updateTransform(),i instanceof t.FastArmature)){var r=i;this.armature&&this.armature.animation.animationState&&r.animation.hasAnimation(this.armature.animation.animationState.name)?r.animation.gotoAndPlay(this.armature.animation.animationState.name):r.animation.play()}},r(n,"visible",void 0,function(t){this._visible!=t&&(this._visible=t,this._updateDisplayVisible(this._visible))}),r(n,"displayList",function(){return this._displayList},function(t){if(!t)throw new Error;var e=t[this._currentDisplayIndex],i=this._currentDisplayIndex>=0&&this._displayList[this._currentDisplayIndex]!=e;this._displayList=t,i&&this.changeSlotDisplay(e)}),r(n,"display",function(){return this._currentDisplay},function(t){this._currentDisplayIndex<0||this._displayList[this._currentDisplayIndex]!=t&&this.changeSlotDisplay(t)}),r(n,"childArmature",function(){return this._displayList[this._currentDisplayIndex]instanceof t.Armature||this._displayList[this._currentDisplayIndex]instanceof t.FastArmature?this._displayList[this._currentDisplayIndex]:null},function(t){this.display=t}),r(n,"zOrder",function(){return this._originZOrder+this._tweenZOrder+this._offsetZOrder},function(t){this.zOrder!=t&&(this._offsetZOrder=t-this._originZOrder-this._tweenZOrder,this.armature&&(this.armature._slotsZOrderChanged=!0))}),r(n,"blendMode",function(){return this._blendMode},function(t){this._blendMode!=t&&(this._blendMode=t,this._updateDisplayBlendMode(this._blendMode))}),r(n,"colorTransform",function(){return this._colorTransform}),r(n,"displayIndex",function(){return this._currentDisplayIndex}),r(n,"colorChanged",function(){return this._isColorChanged}),n._updateDisplay=function(t){throw new Error("Abstract method needs to be implemented in subclass!")},n._getDisplayIndex=function(){throw new Error("Abstract method needs to be implemented in subclass!")},n._addDisplayToContainer=function(t,e){throw void 0===e&&(e=-1),new Error("Abstract method needs to be implemented in subclass!")},n._removeDisplayFromContainer=function(){throw new Error("Abstract method needs to be implemented in subclass!")},n._updateTransform=function(){throw new Error("Abstract method needs to be implemented in subclass!")},n._updateDisplayVisible=function(t){throw new Error("Abstract method needs to be implemented in subclass!")},n._updateDisplayColor=function(t,e,i,r,n,s,a,o,l){void 0===l&&(l=!1),this._colorTransform.alphaOffset=t,this._colorTransform.redOffset=e,this._colorTransform.greenOffset=i,this._colorTransform.blueOffset=r,this._colorTransform.alphaMultiplier=n,this._colorTransform.redMultiplier=s,this._colorTransform.greenMultiplier=a,this._colorTransform.blueMultiplier=o,this._isColorChanged=l},n._updateDisplayBlendMode=function(t){throw new Error("Abstract method needs to be implemented in subclass!")},n._arriveAtFrame=function(t,e){var i=t,r=i.displayIndex;if(this._changeDisplayIndex(r),this._updateDisplayVisible(i.visible),r>=0&&(isNaN(i.zOrder)||i.zOrder==this._tweenZOrder||(this._tweenZOrder=i.zOrder,this.armature._slotsZOrderChanged=!0)),t.action){var n=this.childArmature;n&&n.getAnimation().gotoAndPlay(t.action)}},n.hideSlots=function(){this._changeDisplayIndex(-1),this._removeDisplayFromContainer(),this._frameCache&&this._frameCache.clear()},n._updateGlobal=function(){this._calculateRelativeParentTransform(),t.TransformUtil.transformToMatrix(this._global,this._globalTransformMatrix,!0);var e=this._calculateParentTransform();return e&&(this._globalTransformMatrix.concat(e.parentGlobalTransformMatrix),t.TransformUtil.matrixToTransform(this._globalTransformMatrix,this._global,this._global.scaleX*e.parentGlobalTransform.scaleX>=0,this._global.scaleY*e.parentGlobalTransform.scaleY>=0)),e},n._resetToOrigin=function(){this._changeDisplayIndex(this._originDisplayIndex),this._updateDisplayColor(0,0,0,0,1,1,1,1,!0)},i}(t.FastDBObject);t.FastSlot=e,egret.registerClass(e,"dragonBones.FastSlot",["dragonBones.ISlotCacheGenerator","dragonBones.ICacheUser"])}(dragonBones||(dragonBones={})),function(t){var e=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=t,this.y=e}__define;return t.prototype.toString=function(){return"[Point (x="+this.x+" y="+this.y+")]"},t}();t.Point=e,egret.registerClass(e,"dragonBones.Point")}(dragonBones||(dragonBones={})),function(t){var e=function(){function t(t,e,i,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===r&&(r=0),this.x=t,this.y=e,this.width=i,this.height=r}__define,t.prototype;return t}();t.Rectangle=e,egret.registerClass(e,"dragonBones.Rectangle")}(dragonBones||(dragonBones={})),function(t){var e=function(){function e(){}__define,e.prototype;return e.parseDragonBonesData=function(i){if(!i)throw new Error;var r=i[t.ConstValues.A_VERSION];if((r=r.toString()).toString()!=t.DragonBones.DATA_VERSION&&r.toString()!=t.DragonBones.PARENT_COORDINATE_DATA_VERSION&&"2.3"!=r.toString())throw new Error("Nonsupport version!");var n=e.getNumber(i,t.ConstValues.A_FRAME_RATE,0)||0,s=new t.DragonBonesData;s.name=i[t.ConstValues.A_NAME],s.isGlobal="0"!=i[t.ConstValues.A_IS_GLOBAL],e.tempDragonBonesData=s;for(var a=i[t.ConstValues.ARMATURE],o=0,l=a.length;o<l;o++){var h=a[o];s.addArmatureData(e.parseArmatureData(h,n))}return e.tempDragonBonesData=null,s},e.parseArmatureData=function(i,r){var n,s,a=new t.ArmatureData;a.name=i[t.ConstValues.A_NAME];var o=i[t.ConstValues.BONE];for(n=0,s=o.length;n<s;n++){var l=o[n];a.addBoneData(e.parseBoneData(l))}var h=i[t.ConstValues.SKIN];for(n=0,s=h.length;n<s;n++)for(var u=h[n][t.ConstValues.SLOT],c=0,d=u.length;c<d;c++){var p=u[c];a.addSlotData(e.parseSlotData(p))}for(n=0,s=h.length;n<s;n++){var f=h[n];a.addSkinData(e.parseSkinData(f))}e.tempDragonBonesData.isGlobal&&t.DBDataUtil.transformArmatureData(a),a.sortBoneDataList();var _=i[t.ConstValues.ANIMATION];for(n=0,s=_.length;n<s;n++){var m=_[n],g=e.parseAnimationData(m,r);t.DBDataUtil.addHideTimeline(g,a),t.DBDataUtil.transformAnimationData(g,a,e.tempDragonBonesData.isGlobal),a.addAnimationData(g)}return a},e.parseBoneData=function(i){var r=new t.BoneData;return r.name=i[t.ConstValues.A_NAME],r.parent=i[t.ConstValues.A_PARENT],r.length=Number(i[t.ConstValues.A_LENGTH])||0,r.inheritRotation=e.getBoolean(i,t.ConstValues.A_INHERIT_ROTATION,!0),r.inheritScale=e.getBoolean(i,t.ConstValues.A_INHERIT_SCALE,!0),e.parseTransform(i[t.ConstValues.TRANSFORM],r.transform),e.tempDragonBonesData.isGlobal&&r.global.copy(r.transform),r},e.parseSkinData=function(i){var r=new t.SkinData;r.name=i[t.ConstValues.A_NAME];for(var n=i[t.ConstValues.SLOT],s=0,a=n.length;s<a;s++){var o=n[s];r.addSlotData(e.parseSkinSlotData(o))}return r},e.parseSkinSlotData=function(i){var r=new t.SlotData;r.name=i[t.ConstValues.A_NAME],r.parent=i[t.ConstValues.A_PARENT],r.zOrder=i[t.ConstValues.A_Z_ORDER],r.zOrder=e.getNumber(i,t.ConstValues.A_Z_ORDER,0)||0,r.blendMode=i[t.ConstValues.A_BLENDMODE];var n=i[t.ConstValues.DISPLAY];if(n)for(var s=0,a=n.length;s<a;s++){var o=n[s];r.addDisplayData(e.parseDisplayData(o))}return r},e.parseSlotData=function(i){var r=new t.SlotData;return r.name=i[t.ConstValues.A_NAME],r.parent=i[t.ConstValues.A_PARENT],r.zOrder=i[t.ConstValues.A_Z_ORDER],r.zOrder=e.getNumber(i,t.ConstValues.A_Z_ORDER,0)||0,r.blendMode=i[t.ConstValues.A_BLENDMODE],r.displayIndex=0,r},e.parseDisplayData=function(i){var r=new t.DisplayData;return r.name=i[t.ConstValues.A_NAME],r.type=i[t.ConstValues.A_TYPE],e.parseTransform(i[t.ConstValues.TRANSFORM],r.transform,r.pivot),null!=e.tempDragonBonesData&&e.tempDragonBonesData.addDisplayData(r),r},e.parseAnimationData=function(i,r){var n=new t.AnimationData;n.name=i[t.ConstValues.A_NAME],n.frameRate=r,n.duration=Math.round(1e3*(e.getNumber(i,t.ConstValues.A_DURATION,1)||1)/r),n.playTimes=e.getNumber(i,t.ConstValues.A_LOOP,1),n.playTimes=NaN!=n.playTimes?n.playTimes:1,n.fadeTime=e.getNumber(i,t.ConstValues.A_FADE_IN_TIME,0)||0,n.scale=e.getNumber(i,t.ConstValues.A_SCALE,1)||0,n.tweenEasing=e.getNumber(i,t.ConstValues.A_TWEEN_EASING,NaN),n.autoTween=e.getBoolean(i,t.ConstValues.A_AUTO_TWEEN,!0);var s=i[t.ConstValues.FRAME],a=0,o=0;if(s)for(a=0,o=s.length;a<o;a++){var l=s[a],h=e.parseTransformFrame(l,null,r);n.addFrame(h)}e.parseTimeline(i,n);var u,c=n.duration,d=i[t.ConstValues.TIMELINE];if(d){for(a=0,o=d.length;a<o;a++){var p=d[a],f=e.parseTransformTimeline(p,n.duration,r);f=e.parseTransformTimeline(p,n.duration,r),c=Math.min(c,f.frameList[f.frameList.length-1].duration),n.addTimeline(f);var _=e.parseSlotTimeline(p,n.duration,r);if(n.addSlotTimeline(_),n.autoTween&&!u)for(var m,g=0,v=_.frameList.length;g<v;g++)if((m=_.frameList[g])&&m.displayIndex<0){u=!0;break}}var y=n.tweenEasing;if(u){for(o=n.slotTimelineList.length,a=0;a<o;a++){var b,T,x;for(_=n.slotTimelineList[a],f=n.timelineList[a],g=0,v=_.frameList.length;g<v;g++)T=_.frameList[g],b=f.frameList[g],x=g==v-1?_.frameList[0]:_.frameList[g+1],T.displayIndex<0||x.displayIndex<0?b.tweenEasing=T.tweenEasing=NaN:10==y?b.tweenEasing=T.tweenEasing=0:isNaN(y)?10==b.tweenEasing&&(b.tweenEasing=0):b.tweenEasing=T.tweenEasing=y}n.autoTween=!1}}return n.frameList.length>0&&(c=Math.min(c,n.frameList[n.frameList.length-1].duration)),n.lastFrameDuration=c,n},e.parseSlotTimeline=function(i,r,n){var s=new t.SlotTimeline;s.name=i[t.ConstValues.A_NAME],s.scale=e.getNumber(i,t.ConstValues.A_SCALE,1)||0,s.offset=e.getNumber(i,t.ConstValues.A_OFFSET,0)||0,s.duration=r;for(var a=i[t.ConstValues.FRAME],o=0,l=a.length;o<l;o++){var h=a[o],u=e.parseSlotFrame(h,n);s.addFrame(u)}return e.parseTimeline(i,s),s},e.parseSlotFrame=function(i,r){var n=new t.SlotFrame;e.parseFrame(i,n,r),n.visible=!e.getBoolean(i,t.ConstValues.A_HIDE,!1),n.tweenEasing=e.getNumber(i,t.ConstValues.A_TWEEN_EASING,10),n.displayIndex=Math.floor(e.getNumber(i,t.ConstValues.A_DISPLAY_INDEX,0)||0),n.zOrder=e.getNumber(i,t.ConstValues.A_Z_ORDER,e.tempDragonBonesData.isGlobal?NaN:0);var s=i[t.ConstValues.COLOR_TRANSFORM];return s&&(n.color=new t.ColorTransform,e.parseColorTransform(s,n.color)),n},e.parseTransformTimeline=function(i,r,n){var s=new t.TransformTimeline;s.name=i[t.ConstValues.A_NAME],s.scale=e.getNumber(i,t.ConstValues.A_SCALE,1)||0,s.offset=e.getNumber(i,t.ConstValues.A_OFFSET,0)||0,s.originPivot.x=e.getNumber(i,t.ConstValues.A_PIVOT_X,0)||0,s.originPivot.y=e.getNumber(i,t.ConstValues.A_PIVOT_Y,0)||0,s.duration=r;for(var a,o=i[t.ConstValues.FRAME],l=0,h=o.length;l<h;l++){var u=o[l];a=l<h-1?o[l+1]:0!=l?o[0]:null;var c=e.parseTransformFrame(u,a,n);s.addFrame(c)}return e.parseTimeline(i,s),s},e.parseTransformFrame=function(i,r,n){var s=new t.TransformFrame;return e.parseFrame(i,s,n),s.visible=!e.getBoolean(i,t.ConstValues.A_HIDE,!1),s.tweenEasing=e.getNumber(i,t.ConstValues.A_TWEEN_EASING,10),s.tweenRotate=Math.floor(e.getNumber(i,t.ConstValues.A_TWEEN_ROTATE,0)||0),s.tweenScale=e.getBoolean(i,t.ConstValues.A_TWEEN_SCALE,!0),r&&-1==Math.floor(e.getNumber(r,t.ConstValues.A_DISPLAY_INDEX,0)||0)&&(s.tweenEasing=NaN),e.parseTransform(i[t.ConstValues.TRANSFORM],s.transform,s.pivot),e.tempDragonBonesData.isGlobal&&s.global.copy(s.transform),s.scaleOffset.x=e.getNumber(i,t.ConstValues.A_SCALE_X_OFFSET,0)||0,s.scaleOffset.y=e.getNumber(i,t.ConstValues.A_SCALE_Y_OFFSET,0)||0,s},e.parseTimeline=function(t,e){for(var i,r=0,n=e.frameList,s=0,a=n.length;s<a;s++)(i=n[s]).position=r,r+=i.duration;i&&(i.duration=e.duration-i.position)},e.parseFrame=function(e,i,r){void 0===r&&(r=0),i.duration=Math.round(1e3*(e[t.ConstValues.A_DURATION]||1)/r),i.action=e[t.ConstValues.A_ACTION],i.event=e[t.ConstValues.A_EVENT],i.sound=e[t.ConstValues.A_SOUND]},e.parseTransform=function(i,r,n){void 0===n&&(n=null),i&&(r&&(r.x=e.getNumber(i,t.ConstValues.A_X,0)||0,r.y=e.getNumber(i,t.ConstValues.A_Y,0)||0,r.skewX=e.getNumber(i,t.ConstValues.A_SKEW_X,0)*t.ConstValues.ANGLE_TO_RADIAN||0,r.skewY=e.getNumber(i,t.ConstValues.A_SKEW_Y,0)*t.ConstValues.ANGLE_TO_RADIAN||0,r.scaleX=e.getNumber(i,t.ConstValues.A_SCALE_X,1)||0,r.scaleY=e.getNumber(i,t.ConstValues.A_SCALE_Y,1)||0),n&&(n.x=e.getNumber(i,t.ConstValues.A_PIVOT_X,0)||0,n.y=e.getNumber(i,t.ConstValues.A_PIVOT_Y,0)||0))},e.parseColorTransform=function(i,r){i&&r&&(r.alphaOffset=e.getNumber(i,t.ConstValues.A_ALPHA_OFFSET,0),r.redOffset=e.getNumber(i,t.ConstValues.A_RED_OFFSET,0),r.greenOffset=e.getNumber(i,t.ConstValues.A_GREEN_OFFSET,0),r.blueOffset=e.getNumber(i,t.ConstValues.A_BLUE_OFFSET,0),r.alphaMultiplier=.01*e.getNumber(i,t.ConstValues.A_ALPHA_MULTIPLIER,100),r.redMultiplier=.01*e.getNumber(i,t.ConstValues.A_RED_MULTIPLIER,100),r.greenMultiplier=.01*e.getNumber(i,t.ConstValues.A_GREEN_MULTIPLIER,100),r.blueMultiplier=.01*e.getNumber(i,t.ConstValues.A_BLUE_MULTIPLIER,100))},e.getBoolean=function(t,e,i){if(t&&e in t)switch(String(t[e])){case"0":case"NaN":case"":case"false":case"null":case"undefined":return!1;case"1":case"true":default:return!0}return i},e.getNumber=function(t,e,i){if(t&&e in t)switch(String(t[e])){case"NaN":case"":case"false":case"null":case"undefined":return NaN;default:return Number(t[e])}return i},e}();t.Data3Parser=e,egret.registerClass(e,"dragonBones.Data3Parser")}(dragonBones||(dragonBones={})),function(t){var e=function(){function e(){}__define,e.prototype;return e.parseTextureAtlasData=function(i,r){void 0===r&&(r=1);for(var n,s={},a=i[t.ConstValues.SUB_TEXTURE],o=0,l=a.length;o<l;o++){var h=a[o],u=h[t.ConstValues.A_NAME],c=new t.Rectangle;c.x=e.getNumber(h,t.ConstValues.A_X,0)/r,c.y=e.getNumber(h,t.ConstValues.A_Y,0)/r,c.width=e.getNumber(h,t.ConstValues.A_WIDTH,0)/r,c.height=e.getNumber(h,t.ConstValues.A_HEIGHT,0)/r;var d="true"==h[t.ConstValues.A_ROTATED],p=e.getNumber(h,t.ConstValues.A_FRAME_WIDTH,0)/r,f=e.getNumber(h,t.ConstValues.A_FRAME_HEIGHT,0)/r;p>0&&f>0?((n=new t.Rectangle).x=e.getNumber(h,t.ConstValues.A_FRAME_X,0)/r,n.y=e.getNumber(h,t.ConstValues.A_FRAME_Y,0)/r,n.width=p,n.height=f):n=null,s[u]=new t.TextureData(c,n,d)}return s},e.parseDragonBonesData=function(i){if(!i)throw new Error;var r=i[t.ConstValues.A_VERSION];if((r=r.toString()).toString()==t.DragonBones.PARENT_COORDINATE_DATA_VERSION||"2.3"==r.toString())return t.Data3Parser.parseDragonBonesData(i);var n=e.getNumber(i,t.ConstValues.A_FRAME_RATE,0)||0,s=new t.DragonBonesData;s.name=i[t.ConstValues.A_NAME],s.isGlobal="0"!=i[t.ConstValues.A_IS_GLOBAL],e.tempDragonBonesData=s;for(var a=i[t.ConstValues.ARMATURE],o=0,l=a.length;o<l;o++){var h=a[o];s.addArmatureData(e.parseArmatureData(h,n))}return e.tempDragonBonesData=null,s},e.parseArmatureData=function(i,r){var n=new t.ArmatureData;n.name=i[t.ConstValues.A_NAME];var s,a,o=i[t.ConstValues.BONE];for(s=0,a=o.length;s<a;s++){var l=o[s];n.addBoneData(e.parseBoneData(l))}var h=i[t.ConstValues.SLOT];for(s=0,a=h.length;s<a;s++){var u=h[s];n.addSlotData(e.parseSlotData(u))}var c=i[t.ConstValues.SKIN];for(s=0,a=c.length;s<a;s++){var d=c[s];n.addSkinData(e.parseSkinData(d))}e.tempDragonBonesData.isGlobal&&t.DBDataUtil.transformArmatureData(n),n.sortBoneDataList();var p=i[t.ConstValues.ANIMATION];for(s=0,a=p.length;s<a;s++){var f=p[s],_=e.parseAnimationData(f,r);t.DBDataUtil.addHideTimeline(_,n,!0),t.DBDataUtil.transformAnimationData(_,n,e.tempDragonBonesData.isGlobal),n.addAnimationData(_)}return n},e.parseBoneData=function(i){var r=new t.BoneData;return r.name=i[t.ConstValues.A_NAME],r.parent=i[t.ConstValues.A_PARENT],r.length=Number(i[t.ConstValues.A_LENGTH])||0,r.inheritRotation=e.getBoolean(i,t.ConstValues.A_INHERIT_ROTATION,!0),r.inheritScale=e.getBoolean(i,t.ConstValues.A_INHERIT_SCALE,!0),e.parseTransform(i[t.ConstValues.TRANSFORM],r.transform),e.tempDragonBonesData.isGlobal&&r.global.copy(r.transform),r},e.parseSkinData=function(i){var r=new t.SkinData;r.name=i[t.ConstValues.A_NAME];for(var n=i[t.ConstValues.SLOT],s=0,a=n.length;s<a;s++){var o=n[s];r.addSlotData(e.parseSlotDisplayData(o))}return r},e.parseSlotData=function(i){var r=new t.SlotData;return r.name=i[t.ConstValues.A_NAME],r.parent=i[t.ConstValues.A_PARENT],r.zOrder=e.getNumber(i,t.ConstValues.A_Z_ORDER,0)||0,r.displayIndex=e.getNumber(i,t.ConstValues.A_DISPLAY_INDEX,0),r.blendMode=i[t.ConstValues.A_BLENDMODE],r},e.parseSlotDisplayData=function(i){var r=new t.SlotData;r.name=i[t.ConstValues.A_NAME],r.parent=i[t.ConstValues.A_PARENT],r.zOrder=e.getNumber(i,t.ConstValues.A_Z_ORDER,0)||0;var n=i[t.ConstValues.DISPLAY];if(n)for(var s=0,a=n.length;s<a;s++){var o=n[s];r.addDisplayData(e.parseDisplayData(o))}return r},e.parseDisplayData=function(i){var r=new t.DisplayData;return r.name=i[t.ConstValues.A_NAME],r.type=i[t.ConstValues.A_TYPE],e.parseTransform(i[t.ConstValues.TRANSFORM],r.transform,r.pivot),r.pivot.x=NaN,r.pivot.y=NaN,null!=e.tempDragonBonesData&&e.tempDragonBonesData.addDisplayData(r),r},e.parseAnimationData=function(i,r){var n=new t.AnimationData;n.name=i[t.ConstValues.A_NAME],n.frameRate=r,n.duration=Math.ceil(1e3*(e.getNumber(i,t.ConstValues.A_DURATION,1)||1)/r),n.playTimes=e.getNumber(i,t.ConstValues.A_PLAY_TIMES,1),n.playTimes=NaN!=n.playTimes?n.playTimes:1,n.fadeTime=e.getNumber(i,t.ConstValues.A_FADE_IN_TIME,0)||0,n.scale=e.getNumber(i,t.ConstValues.A_SCALE,1)||0,n.tweenEasing=e.getNumber(i,t.ConstValues.A_TWEEN_EASING,NaN),n.autoTween=e.getBoolean(i,t.ConstValues.A_AUTO_TWEEN,!0);var s=i[t.ConstValues.FRAME],a=0,o=0;if(s)for(a=0,o=s.length;a<o;a++){var l=s[a],h=e.parseTransformFrame(l,r);n.addFrame(h)}e.parseTimeline(i,n);var u=n.duration,c=i[t.ConstValues.BONE];if(c)for(a=0,o=c.length;a<o;a++){var d=c[a];if(d){var p=e.parseTransformTimeline(d,n.duration,r);p.frameList.length>0&&(u=Math.min(u,p.frameList[p.frameList.length-1].duration)),n.addTimeline(p)}}var f=i[t.ConstValues.SLOT];if(f)for(a=0,o=f.length;a<o;a++){var _=f[a];if(_){var m=e.parseSlotTimeline(_,n.duration,r);m.frameList.length>0&&(u=Math.min(u,m.frameList[m.frameList.length-1].duration),n.addSlotTimeline(m))}}return n.frameList.length>0&&(u=Math.min(u,n.frameList[n.frameList.length-1].duration)),n.lastFrameDuration=u,n},e.parseTransformTimeline=function(i,r,n){var s=new t.TransformTimeline;s.name=i[t.ConstValues.A_NAME],s.scale=e.getNumber(i,t.ConstValues.A_SCALE,1)||0,s.offset=e.getNumber(i,t.ConstValues.A_OFFSET,0)||0,s.originPivot.x=e.getNumber(i,t.ConstValues.A_PIVOT_X,0)||0,s.originPivot.y=e.getNumber(i,t.ConstValues.A_PIVOT_Y,0)||0,s.duration=r;for(var a=i[t.ConstValues.FRAME],o=0,l=a.length;o<l;o++){var h=a[o],u=e.parseTransformFrame(h,n);s.addFrame(u)}return e.parseTimeline(i,s),s},e.parseSlotTimeline=function(i,r,n){var s=new t.SlotTimeline;s.name=i[t.ConstValues.A_NAME],s.scale=e.getNumber(i,t.ConstValues.A_SCALE,1)||0,s.offset=e.getNumber(i,t.ConstValues.A_OFFSET,0)||0,s.duration=r;for(var a=i[t.ConstValues.FRAME],o=0,l=a.length;o<l;o++){var h=a[o],u=e.parseSlotFrame(h,n);s.addFrame(u)}return e.parseTimeline(i,s),s},e.parseTransformFrame=function(i,r){var n=new t.TransformFrame;return e.parseFrame(i,n,r),n.visible=!e.getBoolean(i,t.ConstValues.A_HIDE,!1),n.tweenEasing=e.getNumber(i,t.ConstValues.A_TWEEN_EASING,10),n.tweenRotate=Math.floor(e.getNumber(i,t.ConstValues.A_TWEEN_ROTATE,0)||0),n.tweenScale=e.getBoolean(i,t.ConstValues.A_TWEEN_SCALE,!0),n.displayIndex=Math.floor(e.getNumber(i,t.ConstValues.A_DISPLAY_INDEX,0)||0),e.parseTransform(i[t.ConstValues.TRANSFORM],n.transform,n.pivot),e.tempDragonBonesData.isGlobal&&n.global.copy(n.transform),n.scaleOffset.x=e.getNumber(i,t.ConstValues.A_SCALE_X_OFFSET,0)||0,n.scaleOffset.y=e.getNumber(i,t.ConstValues.A_SCALE_Y_OFFSET,0)||0,n},e.parseSlotFrame=function(i,r){var n=new t.SlotFrame;e.parseFrame(i,n,r),n.visible=!e.getBoolean(i,t.ConstValues.A_HIDE,!1),n.tweenEasing=e.getNumber(i,t.ConstValues.A_TWEEN_EASING,10),n.displayIndex=Math.floor(e.getNumber(i,t.ConstValues.A_DISPLAY_INDEX,0)||0),n.zOrder=e.getNumber(i,t.ConstValues.A_Z_ORDER,e.tempDragonBonesData.isGlobal?NaN:0);var s=i[t.ConstValues.COLOR];return s&&(n.color=new t.ColorTransform,e.parseColorTransform(s,n.color)),n},e.parseTimeline=function(t,e){for(var i,r=0,n=e.frameList,s=0,a=n.length;s<a;s++)(i=n[s]).position=r,r+=i.duration;i&&(i.duration=e.duration-i.position)},e.parseFrame=function(e,i,r){void 0===r&&(r=0),i.duration=Math.round(1e3*(e[t.ConstValues.A_DURATION]||1)/r),i.action=e[t.ConstValues.A_ACTION],i.event=e[t.ConstValues.A_EVENT],i.sound=e[t.ConstValues.A_SOUND];var n=e[t.ConstValues.A_CURVE];null!=n&&4==n.length&&(i.curve=new t.CurveData,i.curve.pointList=[new t.Point(n[0],n[1]),new t.Point(n[2],n[3])])},e.parseTransform=function(i,r,n){void 0===n&&(n=null),i&&(r&&(r.x=e.getNumber(i,t.ConstValues.A_X,0)||0,r.y=e.getNumber(i,t.ConstValues.A_Y,0)||0,r.skewX=e.getNumber(i,t.ConstValues.A_SKEW_X,0)*t.ConstValues.ANGLE_TO_RADIAN||0,r.skewY=e.getNumber(i,t.ConstValues.A_SKEW_Y,0)*t.ConstValues.ANGLE_TO_RADIAN||0,r.scaleX=e.getNumber(i,t.ConstValues.A_SCALE_X,1)||0,r.scaleY=e.getNumber(i,t.ConstValues.A_SCALE_Y,1)||0),n&&(n.x=e.getNumber(i,t.ConstValues.A_PIVOT_X,0)||0,n.y=e.getNumber(i,t.ConstValues.A_PIVOT_Y,0)||0))},e.parseColorTransform=function(i,r){r&&(r.alphaOffset=e.getNumber(i,t.ConstValues.A_ALPHA_OFFSET,0),r.redOffset=e.getNumber(i,t.ConstValues.A_RED_OFFSET,0),r.greenOffset=e.getNumber(i,t.ConstValues.A_GREEN_OFFSET,0),r.blueOffset=e.getNumber(i,t.ConstValues.A_BLUE_OFFSET,0),r.alphaMultiplier=.01*e.getNumber(i,t.ConstValues.A_ALPHA_MULTIPLIER,100),r.redMultiplier=.01*e.getNumber(i,t.ConstValues.A_RED_MULTIPLIER,100),r.greenMultiplier=.01*e.getNumber(i,t.ConstValues.A_GREEN_MULTIPLIER,100),r.blueMultiplier=.01*e.getNumber(i,t.ConstValues.A_BLUE_MULTIPLIER,100))},e.getBoolean=function(t,e,i){if(t&&e in t)switch(String(t[e])){case"0":case"NaN":case"":case"false":case"null":case"undefined":return!1;case"1":case"true":default:return!0}return i},e.getNumber=function(t,e,i){if(t&&e in t)switch(String(t[e])){case"NaN":case"":case"false":case"null":case"undefined":return NaN;default:return Number(t[e])}return i},e}();t.DataParser=e,egret.registerClass(e,"dragonBones.DataParser")}(dragonBones||(dragonBones={})),function(t){var e=function(){function t(){this.duration=0,this._frameList=[],this.duration=0,this.scale=1}var e=__define,i=t.prototype;return i.dispose=function(){for(var t=this._frameList.length;t--;)this._frameList[t].dispose();this._frameList=null},i.addFrame=function(t){if(!t)throw new Error;if(!(this._frameList.indexOf(t)<0))throw new Error;this._frameList[this._frameList.length]=t},e(i,"frameList",function(){return this._frameList}),t}();t.Timeline=e,egret.registerClass(e,"dragonBones.Timeline")}(dragonBones||(dragonBones={})),function(t){var e=function(t){function e(){t.call(this),this.frameRate=0,this.playTimes=0,this.lastFrameDuration=0,this.fadeTime=0,this.playTimes=0,this.autoTween=!0,this.tweenEasing=NaN,this.hideTimelineNameMap=[],this.hideSlotTimelineNameMap=[],this._timelineList=[],this._slotTimelineList=[]}__extends(e,t);var i=__define,r=e.prototype;return i(r,"timelineList",function(){return this._timelineList}),i(r,"slotTimelineList",function(){return this._slotTimelineList}),r.dispose=function(){t.prototype.dispose.call(this),this.hideTimelineNameMap=null;var e=0,i=0;for(e=0,i=this._timelineList.length;e<i;e++){this._timelineList[e].dispose()}for(this._timelineList=null,e=0,i=this._slotTimelineList.length;e<i;e++){this._slotTimelineList[e].dispose()}this._slotTimelineList=null},r.getTimeline=function(t){for(var e=this._timelineList.length;e--;)if(this._timelineList[e].name==t)return this._timelineList[e];return null},r.addTimeline=function(t){if(!t)throw new Error;this._timelineList.indexOf(t)<0&&(this._timelineList[this._timelineList.length]=t)},r.getSlotTimeline=function(t){for(var e=this._slotTimelineList.length;e--;)if(this._slotTimelineList[e].name==t)return this._slotTimelineList[e];return null},r.addSlotTimeline=function(t){if(!t)throw new Error;this._slotTimelineList.indexOf(t)<0&&(this._slotTimelineList[this._slotTimelineList.length]=t)},e}(t.Timeline);t.AnimationData=e,egret.registerClass(e,"dragonBones.AnimationData")}(dragonBones||(dragonBones={})),function(t){var e=function(){function t(){this._boneDataList=[],this._skinDataList=[],this._slotDataList=[],this._animationDataList=[]}var e=__define,i=t.prototype;return t.sortBoneDataHelpArray=function(t,e){return t[0]>e[0]?1:-1},t.sortBoneDataHelpArrayDescending=function(t,e){return t[0]>e[0]?-1:1},i.setSkinData=function(t){var e,i,r=0,n=this._slotDataList.length;for(r=0;r<n;r++)this._slotDataList[r].dispose();if(!t&&this._skinDataList.length>0)e=this._skinDataList[0];else for(r=0,n=this._skinDataList.length;r<n;r++)if(this._skinDataList[r].name==t){e=this._skinDataList[r];break}if(e)for(r=0,n=e.slotDataList.length,r=0;r<n;r++)if(i=this.getSlotData(e.slotDataList[r].name)){var s=0,a=e.slotDataList[r].displayDataList.length;for(s=0;s<a;s++)i.addDisplayData(e.slotDataList[r].displayDataList[s])}},i.dispose=function(){for(var t=this._boneDataList.length;t--;)this._boneDataList[t].dispose();for(t=this._skinDataList.length;t--;)this._skinDataList[t].dispose();for(t=this._slotDataList.length;t--;)this._slotDataList[t].dispose();for(t=this._animationDataList.length;t--;)this._animationDataList[t].dispose();this._boneDataList=null,this._slotDataList=null,this._skinDataList=null,this._animationDataList=null},i.getBoneData=function(t){for(var e=this._boneDataList.length;e--;)if(this._boneDataList[e].name==t)return this._boneDataList[e];return null},i.getSlotData=function(t){for(var e=this._slotDataList.length;e--;)if(this._slotDataList[e].name==t)return this._slotDataList[e];return null},i.getSkinData=function(t){if(!t&&this._skinDataList.length>0)return this._skinDataList[0];for(var e=this._skinDataList.length;e--;)if(this._skinDataList[e].name==t)return this._skinDataList[e];return null},i.getAnimationData=function(t){for(var e=this._animationDataList.length;e--;)if(this._animationDataList[e].name==t)return this._animationDataList[e];return null},i.addBoneData=function(t){if(!t)throw new Error;if(!(this._boneDataList.indexOf(t)<0))throw new Error;this._boneDataList[this._boneDataList.length]=t},i.addSlotData=function(t){if(!t)throw new Error;if(!(this._slotDataList.indexOf(t)<0))throw new Error;this._slotDataList[this._slotDataList.length]=t},i.addSkinData=function(t){if(!t)throw new Error;if(!(this._skinDataList.indexOf(t)<0))throw new Error;this._skinDataList[this._skinDataList.length]=t},i.addAnimationData=function(t){if(!t)throw new Error;this._animationDataList.indexOf(t)<0&&(this._animationDataList[this._animationDataList.length]=t)},i.sortBoneDataList=function(){var e=this._boneDataList.length;if(0!=e){for(var i=[];e--;){for(var r=this._boneDataList[e],n=0,s=r;s;)n++,s=this.getBoneData(s.parent);i[e]=[n,r]}for(i.sort(t.sortBoneDataHelpArray),e=i.length;e--;)this._boneDataList[e]=i[e][1]}},e(i,"boneDataList",function(){return this._boneDataList}),e(i,"slotDataList",function(){return this._slotDataList}),e(i,"skinDataList",function(){return this._skinDataList}),e(i,"animationDataList",function(){return this._animationDataList}),t}();t.ArmatureData=e,egret.registerClass(e,"dragonBones.ArmatureData")}(dragonBones||(dragonBones={})),function(t){var e=function(){function e(){this.length=0,this.global=new t.DBTransform,this.transform=new t.DBTransform,this.inheritRotation=!0,this.inheritScale=!1}__define;return e.prototype.dispose=function(){this.global=null,this.transform=null},e}();t.BoneData=e,egret.registerClass(e,"dragonBones.BoneData")}(dragonBones||(dragonBones={})),function(t){var e=function(){function t(){this.alphaMultiplier=1,this.alphaOffset=0,this.blueMultiplier=1,this.blueOffset=0,this.greenMultiplier=1,this.greenOffset=0,this.redMultiplier=1,this.redOffset=0}__define,t.prototype;return t}();t.ColorTransform=e,egret.registerClass(e,"dragonBones.ColorTransform")}(dragonBones||(dragonBones={})),function(t){var e=function(){function e(){this._dataChanged=!1,this._pointList=[],this.sampling=new Array(e.SamplingTimes);for(var i=0;i<e.SamplingTimes-1;i++)this.sampling[i]=new t.Point}var i=__define,r=e.prototype;return r.getValueByProgress=function(t){this._dataChanged&&this.refreshSampling();for(var i=0;i<e.SamplingTimes-1;i++){var r=this.sampling[i];if(r.x>=t){if(0==i)return r.y*t/r.x;var n=this.sampling[i-1];return n.y+(r.y-n.y)*(t-n.x)/(r.x-n.x)}}return r.y+(1-r.y)*(t-r.x)/(1-r.x)},r.refreshSampling=function(){for(var t=0;t<e.SamplingTimes-1;t++)this.bezierCurve(e.SamplingStep*(t+1),this.sampling[t]);this._dataChanged=!1},r.bezierCurve=function(t,e){var i=1-t;e.x=3*this.point1.x*t*i*i+3*this.point2.x*t*t*i+Math.pow(t,3),e.y=3*this.point1.y*t*i*i+3*this.point2.y*t*t*i+Math.pow(t,3)},i(r,"pointList",function(){return this._pointList},function(t){this._pointList=t,this._dataChanged=!0}),r.isCurve=function(){return 0!=this.point1.x||0!=this.point1.y||1!=this.point2.x||1!=this.point2.y},i(r,"point1",function(){return this.pointList[0]}),i(r,"point2",function(){return this.pointList[1]}),e.SamplingTimes=20,e.SamplingStep=.05,e}();t.CurveData=e,egret.registerClass(e,"dragonBones.CurveData")}(dragonBones||(dragonBones={})),function(t){var e=function(){function e(){this.transform=new t.DBTransform,this.pivot=new t.Point}__define;return e.prototype.dispose=function(){this.transform=null,this.pivot=null},e.ARMATURE="armature",e.IMAGE="image",e}();t.DisplayData=e,egret.registerClass(e,"dragonBones.DisplayData")}(dragonBones||(dragonBones={})),function(t){var e=function(){function t(){this._armatureDataList=[],this._displayDataDictionary={}}var e=__define,i=t.prototype;return i.dispose=function(){for(var t=0,e=this._armatureDataList.length;t<e;t++){this._armatureDataList[t].dispose()}this._armatureDataList=null,this.removeAllDisplayData(),this._displayDataDictionary=null},e(i,"armatureDataList",function(){return this._armatureDataList}),i.getArmatureDataByName=function(t){for(var e=this._armatureDataList.length;e--;)if(this._armatureDataList[e].name==t)return this._armatureDataList[e];return null},i.addArmatureData=function(t){if(!t)throw new Error;if(!(this._armatureDataList.indexOf(t)<0))throw new Error;this._armatureDataList[this._armatureDataList.length]=t},i.removeArmatureData=function(t){var e=this._armatureDataList.indexOf(t);e>=0&&this._armatureDataList.splice(e,1)},i.removeArmatureDataByName=function(t){for(var e=this._armatureDataList.length;e--;)this._armatureDataList[e].name==t&&this._armatureDataList.splice(e,1)},i.getDisplayDataByName=function(t){return this._displayDataDictionary[t]},i.addDisplayData=function(t){this._displayDataDictionary[t.name]=t},i.removeDisplayDataByName=function(t){delete this._displayDataDictionary[t]},i.removeAllDisplayData=function(){for(var t in this._displayDataDictionary)delete this._displayDataDictionary[t]},t}();t.DragonBonesData=e,egret.registerClass(e,"dragonBones.DragonBonesData")}(dragonBones||(dragonBones={})),function(t){var e=function(){function t(){this.position=0,this.duration=0,this.position=0,this.duration=0}__define;return t.prototype.dispose=function(){},t}();t.Frame=e,egret.registerClass(e,"dragonBones.Frame")}(dragonBones||(dragonBones={})),function(t){var e=function(){function t(){this._slotDataList=[]}var e=__define,i=t.prototype;return i.dispose=function(){for(var t=this._slotDataList.length;t--;)this._slotDataList[t].dispose();this._slotDataList=null},i.getSlotData=function(t){for(var e=this._slotDataList.length;e--;)if(this._slotDataList[e].name==t)return this._slotDataList[e];return null},i.addSlotData=function(t){if(!t)throw new Error;if(!(this._slotDataList.indexOf(t)<0))throw new Error;this._slotDataList[this._slotDataList.length]=t},e(i,"slotDataList",function(){return this._slotDataList}),t}();t.SkinData=e,egret.registerClass(e,"dragonBones.SkinData")}(dragonBones||(dragonBones={})),function(t){var e=function(){function t(){this._displayDataList=[],this.zOrder=0}var e=__define,i=t.prototype;return i.dispose=function(){this._displayDataList.length=0},i.addDisplayData=function(t){if(!t)throw new Error;if(!(this._displayDataList.indexOf(t)<0))throw new Error;this._displayDataList[this._displayDataList.length]=t},i.getDisplayData=function(t){for(var e=this._displayDataList.length;e--;)if(this._displayDataList[e].name==t)return this._displayDataList[e];return null},e(i,"displayDataList",function(){return this._displayDataList}),t}();t.SlotData=e,egret.registerClass(e,"dragonBones.SlotData")}(dragonBones||(dragonBones={})),function(t){var e=function(t){function e(){t.call(this),this.displayIndex=0,this.tweenEasing=10,this.displayIndex=0,this.visible=!0,this.zOrder=NaN}__extends(e,t);__define;return e.prototype.dispose=function(){t.prototype.dispose.call(this),this.color=null},e}(t.Frame);t.SlotFrame=e,egret.registerClass(e,"dragonBones.SlotFrame")}(dragonBones||(dragonBones={})),function(t){var e=function(t){function e(){t.call(this),this.offset=0}__extends(e,t);__define;return e.prototype.dispose=function(){t.prototype.dispose.call(this)},e}(t.Timeline);t.SlotTimeline=e,egret.registerClass(e,"dragonBones.SlotTimeline")}(dragonBones||(dragonBones={})),function(t){var e=function(e){function i(){e.call(this),this.tweenRotate=0,this.displayIndex=0,this.tweenEasing=10,this.tweenRotate=0,this.tweenScale=!0,this.displayIndex=0,this.visible=!0,this.zOrder=NaN,this.global=new t.DBTransform,this.transform=new t.DBTransform,this.pivot=new t.Point,this.scaleOffset=new t.Point}__extends(i,e);__define;return i.prototype.dispose=function(){e.prototype.dispose.call(this),this.global=null,this.transform=null,this.pivot=null,this.scaleOffset=null,this.color=null},i}(t.Frame);t.TransformFrame=e,egret.registerClass(e,"dragonBones.TransformFrame")}(dragonBones||(dragonBones={})),function(t){var e=function(e){function i(){e.call(this),this.originTransform=new t.DBTransform,this.originTransform.scaleX=1,this.originTransform.scaleY=1,this.originPivot=new t.Point,this.offset=0}__extends(i,e);__define;return i.prototype.dispose=function(){e.prototype.dispose.call(this),this.originTransform=null,this.originPivot=null},i}(t.Timeline);t.TransformTimeline=e,egret.registerClass(e,"dragonBones.TransformTimeline")}(dragonBones||(dragonBones={})),function(t){var e=function(){function t(t,e,i){this.region=t,this.frame=e,this.rotated=i}__define,t.prototype;return t}();t.TextureData=e,egret.registerClass(e,"dragonBones.TextureData")}(dragonBones||(dragonBones={})),function(t){var e=function(){function e(){}__define,e.prototype;return e.cloneColor=function(e){var i=new t.ColorTransform;return i.redMultiplier=e.redMultiplier,i.greenMultiplier=e.greenMultiplier,i.blueMultiplier=e.blueMultiplier,i.alphaMultiplier=e.alphaMultiplier,i.redOffset=e.redOffset,i.greenOffset=e.greenOffset,i.blueOffset=e.blueOffset,i.alphaOffset=e.alphaOffset,i},e.isEqual=function(t,e){return t.alphaOffset==e.alphaOffset&&t.redOffset==e.redOffset&&t.greenOffset==e.greenOffset&&t.blueOffset==e.blueOffset&&t.alphaMultiplier==e.alphaMultiplier&&t.redMultiplier==e.redMultiplier&&t.greenMultiplier==e.greenMultiplier&&t.blueMultiplier==e.blueMultiplier},e.minus=function(t,e,i){i.alphaOffset=t.alphaOffset-e.alphaOffset,i.redOffset=t.redOffset-e.redOffset,i.greenOffset=t.greenOffset-e.greenOffset,i.blueOffset=t.blueOffset-e.blueOffset,i.alphaMultiplier=t.alphaMultiplier-e.alphaMultiplier,i.redMultiplier=t.redMultiplier-e.redMultiplier,i.greenMultiplier=t.greenMultiplier-e.greenMultiplier,i.blueMultiplier=t.blueMultiplier-e.blueMultiplier},e.originalColor=new t.ColorTransform,e}();t.ColorTransformUtil=e,egret.registerClass(e,"dragonBones.ColorTransformUtil")}(dragonBones||(dragonBones={})),function(t){var e=function(){function t(){}__define,t.prototype;return t.ANGLE_TO_RADIAN=Math.PI/180,t.RADIAN_TO_ANGLE=180/Math.PI,t.DRAGON_BONES="dragonBones",t.ARMATURE="armature",t.SKIN="skin",t.BONE="bone",t.SLOT="slot",t.DISPLAY="display",t.ANIMATION="animation",t.TIMELINE="timeline",t.FRAME="frame",t.TRANSFORM="transform",t.COLOR_TRANSFORM="colorTransform",t.COLOR="color",t.RECTANGLE="rectangle",t.ELLIPSE="ellipse",t.TEXTURE_ATLAS="TextureAtlas",t.SUB_TEXTURE="SubTexture",t.A_ROTATED="rotated",t.A_FRAME_X="frameX",t.A_FRAME_Y="frameY",t.A_FRAME_WIDTH="frameWidth",t.A_FRAME_HEIGHT="frameHeight",t.A_VERSION="version",t.A_IMAGE_PATH="imagePath",t.A_FRAME_RATE="frameRate",t.A_NAME="name",t.A_IS_GLOBAL="isGlobal",t.A_PARENT="parent",t.A_LENGTH="length",t.A_TYPE="type",t.A_FADE_IN_TIME="fadeInTime",t.A_DURATION="duration",t.A_SCALE="scale",t.A_OFFSET="offset",t.A_LOOP="loop",t.A_PLAY_TIMES="playTimes",t.A_EVENT="event",t.A_EVENT_PARAMETERS="eventParameters",t.A_SOUND="sound",t.A_ACTION="action",t.A_HIDE="hide",t.A_AUTO_TWEEN="autoTween",t.A_TWEEN_EASING="tweenEasing",t.A_TWEEN_ROTATE="tweenRotate",t.A_TWEEN_SCALE="tweenScale",t.A_DISPLAY_INDEX="displayIndex",t.A_Z_ORDER="z",t.A_BLENDMODE="blendMode",t.A_WIDTH="width",t.A_HEIGHT="height",t.A_INHERIT_SCALE="inheritScale",t.A_INHERIT_ROTATION="inheritRotation",t.A_X="x",t.A_Y="y",t.A_SKEW_X="skX",t.A_SKEW_Y="skY",t.A_SCALE_X="scX",t.A_SCALE_Y="scY",t.A_PIVOT_X="pX",t.A_PIVOT_Y="pY",t.A_ALPHA_OFFSET="aO",t.A_RED_OFFSET="rO",t.A_GREEN_OFFSET="gO",t.A_BLUE_OFFSET="bO",t.A_ALPHA_MULTIPLIER="aM",t.A_RED_MULTIPLIER="rM",t.A_GREEN_MULTIPLIER="gM",t.A_BLUE_MULTIPLIER="bM",t.A_CURVE="curve",t.A_SCALE_X_OFFSET="scXOffset",t.A_SCALE_Y_OFFSET="scYOffset",t.A_SCALE_MODE="scaleMode",t.A_FIXED_ROTATION="fixedRotation",t}();t.ConstValues=e,egret.registerClass(e,"dragonBones.ConstValues")}(dragonBones||(dragonBones={})),function(t){var e=function(){function e(){}__define,e.prototype;return e.transformArmatureData=function(e){for(var i=e.boneDataList,r=i.length;r--;){var n=i[r];if(n.parent){var s=e.getBoneData(n.parent);s&&(n.transform.copy(n.global),t.TransformUtil.globalToLocal(n.transform,s.global))}}},e.transformArmatureDataAnimations=function(t){for(var i=t.animationDataList,r=i.length;r--;)e.transformAnimationData(i[r],t,!1)},e.transformRelativeAnimationData=function(t,e){},e.transformAnimationData=function(i,r,n){if(n){var s,a=r.getSkinData(null),o=r.boneDataList;a&&(s=a.slotDataList);for(var l=0;l<o.length;l++){var h=o[l],u=i.getTimeline(h.name),c=i.getSlotTimeline(h.name);if(u||c){var d=null;if(s)for(var p=0,f=s.length;p<f&&(d=s[p]).parent!=h.name;p++);var _=u.frameList;if(c)var m=c.frameList;var g=null,v=_.length;for(p=0;p<v;p++){var y=_[p];if(e.setFrameTransform(i,r,h,y),y.transform.x-=h.transform.x,y.transform.y-=h.transform.y,y.transform.skewX-=h.transform.skewX,y.transform.skewY-=h.transform.skewY,y.transform.scaleX/=h.transform.scaleX,y.transform.scaleY/=h.transform.scaleY,g){var b=y.transform.skewX-g.transform.skewX;g.tweenRotate?g.tweenRotate>0?(b<0&&(y.transform.skewX+=2*Math.PI,y.transform.skewY+=2*Math.PI),g.tweenRotate>1&&(y.transform.skewX+=2*Math.PI*(g.tweenRotate-1),y.transform.skewY+=2*Math.PI*(g.tweenRotate-1))):(b>0&&(y.transform.skewX-=2*Math.PI,y.transform.skewY-=2*Math.PI),g.tweenRotate<1&&(y.transform.skewX+=2*Math.PI*(g.tweenRotate+1),y.transform.skewY+=2*Math.PI*(g.tweenRotate+1))):(y.transform.skewX=g.transform.skewX+t.TransformUtil.formatRadian(y.transform.skewX-g.transform.skewX),y.transform.skewY=g.transform.skewY+t.TransformUtil.formatRadian(y.transform.skewY-g.transform.skewY))}g=y}if(c&&m){v=m.length;for(p=0;p<v;p++){var T=m[p];c.transformed||d&&(T.zOrder-=d.zOrder)}c.transformed=!0}u.transformed=!0}}}else e.transformRelativeAnimationData(i,r)},e.setFrameTransform=function(i,r,n,s){s.transform.copy(s.global);var a=r.getBoneData(n.parent);if(a){var o=i.getTimeline(a.name);if(o){for(var l=[],h=[];o;)l.push(o),h.push(a),o=(a=r.getBoneData(a.parent))?i.getTimeline(a.name):null;for(var u,c=l.length,d=new t.Matrix,p=new t.DBTransform,f=new t.Matrix;c--;)o=l[c],a=h[c],e.getTimelineTransform(o,s.position,p,!u),u?(p.x+=o.originTransform.x+a.transform.x,p.y+=o.originTransform.y+a.transform.y,p.skewX+=o.originTransform.skewX+a.transform.skewX,p.skewY+=o.originTransform.skewY+a.transform.skewY,p.scaleX*=o.originTransform.scaleX*a.transform.scaleX,p.scaleY*=o.originTransform.scaleY*a.transform.scaleY,t.TransformUtil.transformToMatrix(p,f,!0),f.concat(d),t.TransformUtil.matrixToTransform(f,u,p.scaleX*u.scaleX>=0,p.scaleY*u.scaleY>=0)):(u=new t.DBTransform).copy(p),t.TransformUtil.transformToMatrix(u,d,!0);t.TransformUtil.globalToLocal(s.transform,u)}}},e.getTimelineTransform=function(e,i,r,n){for(var s=e.frameList,a=s.length;a--;){var o=s[a];if(o.position<=i&&o.position+o.duration>i){if(a==s.length-1||i==o.position)r.copy(n?o.global:o.transform);else{var l=o.tweenEasing,h=(i-o.position)/o.duration;l&&10!=l&&(h=t.MathUtil.getEaseValue(h,l));var u=s[a+1],c=n?o.global:o.transform,d=n?u.global:u.transform;r.x=c.x+(d.x-c.x)*h,r.y=c.y+(d.y-c.y)*h,r.skewX=t.TransformUtil.formatRadian(c.skewX+(d.skewX-c.skewX)*h),r.skewY=t.TransformUtil.formatRadian(c.skewY+(d.skewY-c.skewY)*h),r.scaleX=c.scaleX+(d.scaleX-c.scaleX)*h,r.scaleY=c.scaleY+(d.scaleY-c.scaleY)*h}break}}},e.addHideTimeline=function(t,e,i){void 0===i&&(i=!1);for(var r,n=e.boneDataList,s=e.slotDataList,a=n.length;a--;){var o=n[a].name;t.getTimeline(o)||t.hideTimelineNameMap.indexOf(o)<0&&t.hideTimelineNameMap.push(o)}if(i)for(a=s.length;a--;)r=s[a].name,t.getSlotTimeline(r)||t.hideSlotTimelineNameMap.indexOf(r)<0&&t.hideSlotTimelineNameMap.push(r)},e}();t.DBDataUtil=e,egret.registerClass(e,"dragonBones.DBDataUtil")}(dragonBones||(dragonBones={})),function(t){var e=function(){function t(){}__define,t.prototype;return t.getEaseValue=function(e,i){var r=1;return i>1?(r=.5*(1-t.cos(e*Math.PI)),i-=1):i>0?r=1-Math.pow(1-e,2):i<0&&(i*=-1,r=Math.pow(e,2)),(r-e)*i+e},t.isNumber=function(t){return"number"==typeof t&&!isNaN(t)},t.sin=function(e){e*=t.RADIAN_TO_ANGLE;var i=Math.floor(e),r=i+1,n=t.sinInt(i);return(e-i)*t.sinInt(r)+(r-e)*n},t.sinInt=function(t){return(t%=360)<0&&(t+=360),t<90?db_sin_map[t]:t<180?db_sin_map[180-t]:t<270?-db_sin_map[t-180]:-db_sin_map[360-t]},t.cos=function(e){return t.sin(Math.PI/2-e)},t.ANGLE_TO_RADIAN=Math.PI/180,t.RADIAN_TO_ANGLE=180/Math.PI,t}();t.MathUtil=e,egret.registerClass(e,"dragonBones.MathUtil")}(dragonBones||(dragonBones={}));for(var dragonBones,db_sin_map={},dbMathIndex=0;dbMathIndex<=90;dbMathIndex++)db_sin_map[dbMathIndex]=Math.sin(dbMathIndex*dragonBones.MathUtil.ANGLE_TO_RADIAN);!function(t){var e=function(){function e(){}__define,e.prototype;return e.globalToLocal=function(t,i){e.transformToMatrix(t,e._helpTransformMatrix,!0),e.transformToMatrix(i,e._helpParentTransformMatrix,!0),e._helpParentTransformMatrix.invert(),e._helpTransformMatrix.concat(e._helpParentTransformMatrix),e.matrixToTransform(e._helpTransformMatrix,t,t.scaleX*i.scaleX>=0,t.scaleY*i.scaleY>=0)},e.transformToMatrix=function(e,i,r){void 0===r&&(r=!1),r?(i.a=e.scaleX*t.MathUtil.cos(e.skewY),i.b=e.scaleX*t.MathUtil.sin(e.skewY),i.c=-e.scaleY*t.MathUtil.sin(e.skewX),i.d=e.scaleY*t.MathUtil.cos(e.skewX),i.tx=e.x,i.ty=e.y):(i.a=t.MathUtil.cos(e.skewY),i.b=t.MathUtil.sin(e.skewY),i.c=-t.MathUtil.sin(e.skewX),i.d=t.MathUtil.cos(e.skewX),i.tx=e.x,i.ty=e.y)},e.matrixToTransform=function(t,e,i,r){e.x=t.tx,e.y=t.ty,e.scaleX=Math.sqrt(t.a*t.a+t.b*t.b)*(i?1:-1),e.scaleY=Math.sqrt(t.d*t.d+t.c*t.c)*(r?1:-1);var n=[];n[0]=Math.acos(t.d/e.scaleY),n[1]=-n[0],n[2]=Math.asin(-t.c/e.scaleY),n[3]=n[2]>=0?Math.PI-n[2]:n[2]-Math.PI,Number(n[0]).toFixed(4)==Number(n[2]).toFixed(4)||Number(n[0]).toFixed(4)==Number(n[3]).toFixed(4)?e.skewX=n[0]:e.skewX=n[1];var s=[];s[0]=Math.acos(t.a/e.scaleX),s[1]=-s[0],s[2]=Math.asin(t.b/e.scaleX),s[3]=s[2]>=0?Math.PI-s[2]:s[2]-Math.PI,Number(s[0]).toFixed(4)==Number(s[2]).toFixed(4)||Number(s[0]).toFixed(4)==Number(s[3]).toFixed(4)?e.skewY=s[0]:e.skewY=s[1]},e.formatRadian=function(t){return t>Math.PI&&(t-=e.DOUBLE_PI),t<-Math.PI&&(t+=e.DOUBLE_PI),t},e.normalizeRotation=function(t){return(t=(t=(t+Math.PI)%(2*Math.PI))>0?t:2*Math.PI+t)-Math.PI},e.HALF_PI=.5*Math.PI,e.DOUBLE_PI=2*Math.PI,e._helpTransformMatrix=new t.Matrix,e._helpParentTransformMatrix=new t.Matrix,e}();t.TransformUtil=e,egret.registerClass(e,"dragonBones.TransformUtil")}(dragonBones||(dragonBones={})),function(t){var e=function(){function e(e){this.animationState=new t.FastAnimationState,this._armature=e,this.animationState._armature=e,this.animationList=[],this._animationDataObj={},this._isPlaying=!1,this._timeScale=1}var i=__define,r=e.prototype;return r.dispose=function(){this._armature&&(this._armature=null,this._animationDataList=null,this.animationList=null,this.animationState=null)},r.gotoAndPlay=function(t,e,i,r){if(void 0===e&&(e=-1),void 0===i&&(i=-1),void 0===r&&(r=NaN),!this._animationDataList)return null;var n,s=this._animationDataObj[t];if(!s)return null;this._isPlaying=!0,e=e<0?s.fadeTime<0?.3:s.fadeTime:e,n=i<0?s.scale<0?1:s.scale:1e3*i/s.duration,r=isNaN(r)?s.playTimes:r,this.animationState._fadeIn(s,r,1/n,e),this._armature.enableCache&&this.animationCacheManager&&(this.animationState.animationCache=this.animationCacheManager.getAnimationCache(t));for(var a=this._armature.slotHasChildArmatureList.length;a--;){var o=this._armature.slotHasChildArmatureList[a].childArmature;o&&o.getAnimation().gotoAndPlay(t)}return this.animationState},r.gotoAndStop=function(t,e,i,r,n){return void 0===i&&(i=-1),void 0===r&&(r=0),void 0===n&&(n=-1),this.animationState.name!=t&&this.gotoAndPlay(t,r,n),i>=0?this.animationState.setCurrentTime(this.animationState.totalTime*i):this.animationState.setCurrentTime(e),this.animationState.stop(),this.animationState},r.play=function(){this._animationDataList&&(this.animationState.name?this._isPlaying?this.gotoAndPlay(this.animationState.name):this._isPlaying=!0:this.gotoAndPlay(this._animationDataList[0].name))},r.stop=function(){this._isPlaying=!1},r.advanceTime=function(t){this._isPlaying&&this.animationState._advanceTime(t*this._timeScale)},r.hasAnimation=function(t){return null!=this._animationDataObj[t]},i(r,"timeScale",function(){return this._timeScale},function(t){(isNaN(t)||t<0)&&(t=1),this._timeScale=t}),i(r,"animationDataList",function(){return this._animationDataList},function(t){this._animationDataList=t,this.animationList.length=0;for(var e=this._animationDataList.length,i=0;i<e;i++){var r=this._animationDataList[i];this.animationList.push(r.name),this._animationDataObj[r.name]=r}}),i(r,"movementList",function(){return this.animationList}),i(r,"movementID",function(){return this.lastAnimationName}),r.isPlaying=function(){return this._isPlaying&&!this.isComplete},i(r,"isComplete",function(){return this.animationState.isComplete}),i(r,"lastAnimationState",function(){return this.animationState}),i(r,"lastAnimationName",function(){return this.animationState?this.animationState.name:null}),e}();t.FastAnimation=e,egret.registerClass(e,"dragonBones.FastAnimation")}(dragonBones||(dragonBones={})),function(t){var e=function(){function e(){this._boneTimelineStateList=[],this._slotTimelineStateList=[],this._currentFrameIndex=0,this._currentFramePosition=0,this._currentFrameDuration=0,this._currentPlayTimes=0,this._totalTime=0,this._currentTime=0,this._lastTime=0,this._playTimes=0,this._fading=!1}var i=__define,r=e.prototype;return r.dispose=function(){this._resetTimelineStateList(),this._armature=null},r.play=function(){return this._isPlaying=!0,this},r.stop=function(){return this._isPlaying=!1,this},r.setCurrentTime=function(t){return(t<0||isNaN(t))&&(t=0),this._time=t,this._currentTime=1e3*this._time,this},r._resetTimelineStateList=function(){for(var e=this._boneTimelineStateList.length;e--;)t.FastBoneTimelineState.returnObject(this._boneTimelineStateList[e]);for(this._boneTimelineStateList.length=0,e=this._slotTimelineStateList.length;e--;)t.FastSlotTimelineState.returnObject(this._slotTimelineStateList[e]);this._slotTimelineStateList.length=0,this.name=null},r._fadeIn=function(t,e,i,r){this.animationData=t,this.name=this.animationData.name,this._totalTime=this.animationData.duration,this.autoTween=t.autoTween,this.setTimeScale(i),this.setPlayTimes(e),this._isComplete=!1,this._currentFrameIndex=-1,this._currentPlayTimes=-1,Math.round(this._totalTime*this.animationData.frameRate*.001)<2?this._currentTime=this._totalTime:this._currentTime=-1,this._fadeTotalTime=r*this._timeScale,this._fading=this._fadeTotalTime>0,this._isPlaying=!0,this._armature.enableCache&&this.animationCache&&this._fading&&this._boneTimelineStateList&&this.updateTransformTimeline(this.progress),this._time=0,this._progress=0,this._updateTimelineStateList(),this.hideBones()},r._updateTimelineStateList=function(){var e;this._resetTimelineStateList();for(var i=this.animationData.timelineList.length,r=0;r<i;r++){var n=this.animationData.timelineList[r];e=n.name;var s=this._armature.getBone(e);if(s){var a=t.FastBoneTimelineState.borrowObject();a.fadeIn(s,this,n),this._boneTimelineStateList.push(a)}}for(var o=this.animationData.slotTimelineList.length,l=0;l<o;l++){var h=this.animationData.slotTimelineList[l];e=h.name;var u=this._armature.getSlot(e);if(u&&u.displayList.length>0){var c=t.FastSlotTimelineState.borrowObject();c.fadeIn(u,this,h),this._slotTimelineStateList.push(c)}}},r._advanceTime=function(t){if(t*=this._timeScale,this._fading&&(this._time+=t,this._progress=this._time/this._fadeTotalTime,this._progress>=1&&(this._progress=0,this._time=0,this._fading=!1)),this._fading){for(var e=this._boneTimelineStateList.length,i=0;i<e;i++){this._boneTimelineStateList[i].updateFade(this.progress)}for(var r=this._slotTimelineStateList.length,n=0;n<r;n++){this._slotTimelineStateList[n].updateFade(this.progress)}}else this.advanceTimelinesTime(t)},r.advanceTimelinesTime=function(e){this._isPlaying&&(this._time+=e);var i,r=!1,n=!1,s=!1,a=!1,o=0,l=1e3*this._time;0==this._playTimes||l<this._playTimes*this._totalTime?(a=!1,this._progress=l/this._totalTime,o=Math.ceil(this.progress)||1,this._progress-=Math.floor(this.progress),l%=this._totalTime):(o=this._playTimes,l=this._totalTime,a=!0,this._progress=1),this._isComplete=a,this.isUseCache()?this.animationCache.update(this.progress):this.updateTransformTimeline(this.progress),this._currentTime!=l&&(this._currentPlayTimes!=o&&(this._currentPlayTimes>0&&o>1&&(n=!0),this._currentPlayTimes=o),this._currentTime<0&&(r=!0),this._isComplete&&(s=!0),this._lastTime=this._currentTime,this._currentTime=l,this.updateMainTimeline(a)),r&&this._armature.hasEventListener(t.AnimationEvent.START)&&((i=new t.AnimationEvent(t.AnimationEvent.START)).animationState=this,this._armature._addEvent(i)),s?this._armature.hasEventListener(t.AnimationEvent.COMPLETE)&&((i=new t.AnimationEvent(t.AnimationEvent.COMPLETE)).animationState=this,this._armature._addEvent(i)):n&&this._armature.hasEventListener(t.AnimationEvent.LOOP_COMPLETE)&&((i=new t.AnimationEvent(t.AnimationEvent.LOOP_COMPLETE)).animationState=this,this._armature._addEvent(i))},r.updateTransformTimeline=function(t){var e,i,r=this._boneTimelineStateList.length;if(this._isComplete){for(;r--;)(e=this._boneTimelineStateList[r]).update(t),this._isComplete=e._isComplete&&this._isComplete;for(r=this._slotTimelineStateList.length;r--;)(i=this._slotTimelineStateList[r]).update(t),this._isComplete=i._isComplete&&this._isComplete}else{for(;r--;)(e=this._boneTimelineStateList[r]).update(t);for(r=this._slotTimelineStateList.length;r--;)(i=this._slotTimelineStateList[r]).update(t)}},r.updateMainTimeline=function(t){var e=this.animationData.frameList;if(e.length>0){for(var i,r,n=0,s=this.animationData.frameList.length;n<s;++n){if(this._currentFrameIndex<0)this._currentFrameIndex=0;else{if(!(this._currentTime<this._currentFramePosition||this._currentTime>=this._currentFramePosition+this._currentFrameDuration||this._currentTime<this._lastTime))break;if(this._lastTime=this._currentTime,this._currentFrameIndex++,this._currentFrameIndex>=e.length){if(t){this._currentFrameIndex--;break}this._currentFrameIndex=0}}r=e[this._currentFrameIndex],i&&this._armature.arriveAtFrame(i,this),this._currentFrameDuration=r.duration,this._currentFramePosition=r.position,i=r}r&&this._armature.arriveAtFrame(r,this)}},r.setTimeScale=function(t){return(isNaN(t)||t==1/0)&&(t=1),this._timeScale=t,this},r.setPlayTimes=function(t){return void 0===t&&(t=0),Math.round(.001*this._totalTime*this.animationData.frameRate)<2?this._playTimes=1:this._playTimes=t,this},i(r,"playTimes",function(){return this._playTimes}),i(r,"currentPlayTimes",function(){return this._currentPlayTimes<0?0:this._currentPlayTimes}),i(r,"isComplete",function(){return this._isComplete}),i(r,"isPlaying",function(){return this._isPlaying&&!this._isComplete}),i(r,"totalTime",function(){return.001*this._totalTime}),i(r,"currentTime",function(){return this._currentTime<0?0:.001*this._currentTime}),r.isUseCache=function(){return this._armature.enableCache&&this.animationCache&&!this._fading},r.hideBones=function(){for(var t,e=this.animationData.hideTimelineNameMap.length,i=0;i<e;i++){var r=this.animationData.hideTimelineNameMap[i],n=this._armature.getBone(r);n&&n._hideSlots()}for(i=0,e=this.animationData.hideSlotTimelineNameMap.length;i<e;i++){t=this.animationData.hideSlotTimelineNameMap[i];var s=this._armature.getSlot(t);s&&s._resetToOrigin()}},i(r,"progress",function(){return this._progress}),e}();t.FastAnimationState=e,egret.registerClass(e,"dragonBones.FastAnimationState",["dragonBones.IAnimationState"])}(dragonBones||(dragonBones={})),function(t){var e=function(){function e(){this._totalTime=0,this._currentTime=0,this._lastTime=0,this._currentFrameIndex=0,this._currentFramePosition=0,this._currentFrameDuration=0,this._updateMode=0,this._transform=new t.DBTransform,this._durationTransform=new t.DBTransform,this._transformToFadein=new t.DBTransform,this._pivot=new t.Point,this._durationPivot=new t.Point}__define;var i=e.prototype;return e.borrowObject=function(){return 0==e._pool.length?new e:e._pool.pop()},e.returnObject=function(t){e._pool.indexOf(t)<0&&(e._pool[e._pool.length]=t),t.clear()},e.clear=function(){for(var t=e._pool.length;t--;)e._pool[t].clear();e._pool.length=0},i.clear=function(){this._bone&&(this._bone._timelineState=null,this._bone=null),this._animationState=null,this._timelineData=null,this._originPivot=null},i.fadeIn=function(e,i,r){switch(this._bone=e,this._animationState=i,this._timelineData=r,this.name=r.name,this._totalTime=this._timelineData.duration,this._isComplete=!1,this._tweenTransform=!1,this._currentFrameIndex=-1,this._currentTime=-1,this._tweenEasing=NaN,this._durationPivot.x=0,this._durationPivot.y=0,this._pivot.x=0,this._pivot.y=0,this._originPivot=this._timelineData.originPivot,this._timelineData.frameList.length){case 0:this._updateMode=0;break;case 1:this._updateMode=1;break;default:this._updateMode=-1}if(i._fadeTotalTime>0){this._bone._timelineState?this._transformToFadein.copy(this._bone._timelineState._transform):this._transformToFadein=new t.DBTransform;var n=this._timelineData.frameList[0];this._durationTransform.copy(n.transform),this._durationTransform.minus(this._transformToFadein)}this._bone._timelineState=this},i.updateFade=function(t){this._transform.x=this._transformToFadein.x+this._durationTransform.x*t,this._transform.y=this._transformToFadein.y+this._durationTransform.y*t,this._transform.scaleX=this._transformToFadein.scaleX*(1+(this._durationTransform.scaleX-1)*t),this._transform.scaleY=this._transformToFadein.scaleX*(1+(this._durationTransform.scaleY-1)*t),this._transform.rotation=this._transformToFadein.rotation+this._durationTransform.rotation*t,this._bone.invalidUpdate()},i.update=function(t){1==this._updateMode?(this._updateMode=0,this.updateSingleFrame()):-1==this._updateMode&&this.updateMultipleFrame(t)},i.updateSingleFrame=function(){var t=this._timelineData.frameList[0];this._bone.arriveAtFrame(t,this._animationState),this._isComplete=!0,this._tweenEasing=NaN,this._tweenTransform=!1,this._pivot.x=this._originPivot.x+t.pivot.x,this._pivot.y=this._originPivot.y+t.pivot.y,this._transform.copy(t.transform),this._bone.invalidUpdate()},i.updateMultipleFrame=function(t){var e=0;t/=this._timelineData.scale,t+=this._timelineData.offset;var i=this._totalTime*t,r=this._animationState.playTimes;if(0==r)this._isComplete=!1,e=Math.ceil(Math.abs(i)/this._totalTime)||1,(i-=Math.floor(i/this._totalTime)*this._totalTime)<0&&(i+=this._totalTime);else{var n=r*this._totalTime;i>=n?(i=n,this._isComplete=!0):i<=-n?(i=-n,this._isComplete=!0):this._isComplete=!1,i<0&&(i+=n),e=Math.ceil(i/this._totalTime)||1,this._isComplete?i=this._totalTime:i-=Math.floor(i/this._totalTime)*this._totalTime}if(this._currentTime!=i){this._lastTime=this._currentTime,this._currentTime=i;for(var s,a,o=this._timelineData.frameList,l=0,h=this._timelineData.frameList.length;l<h;++l){if(this._currentFrameIndex<0)this._currentFrameIndex=0;else{if(!(this._currentTime<this._currentFramePosition||this._currentTime>=this._currentFramePosition+this._currentFrameDuration||this._currentTime<this._lastTime))break;if(this._currentFrameIndex++,this._lastTime=this._currentTime,this._currentFrameIndex>=o.length){if(this._isComplete){this._currentFrameIndex--;break}this._currentFrameIndex=0}}a=o[this._currentFrameIndex],s&&this._bone.arriveAtFrame(s,this._animationState),this._currentFrameDuration=a.duration,this._currentFramePosition=a.position,s=a}a&&(this._bone.arriveAtFrame(a,this._animationState),this.updateToNextFrame(e)),this._tweenTransform&&this.updateTween()}},i.updateToNextFrame=function(e){void 0===e&&(e=0);var i=this._currentFrameIndex+1;i>=this._timelineData.frameList.length&&(i=0);var r=this._timelineData.frameList[this._currentFrameIndex],n=this._timelineData.frameList[i],s=!1;0==i&&this._animationState.playTimes&&this._animationState.currentPlayTimes>=this._animationState.playTimes&&((this._currentFramePosition+this._currentFrameDuration)/this._totalTime+e-this._timelineData.offset)*this._timelineData.scale>.999999?(this._tweenEasing=NaN,s=!1):this._animationState.autoTween?(this._tweenEasing=this._animationState.animationData.tweenEasing,isNaN(this._tweenEasing)?(this._tweenEasing=r.tweenEasing,this._tweenCurve=r.curve,isNaN(this._tweenEasing)&&null==this._tweenCurve?s=!1:(10==this._tweenEasing&&(this._tweenEasing=0),s=!0)):s=!0):(this._tweenEasing=r.tweenEasing,this._tweenCurve=r.curve,!isNaN(this._tweenEasing)&&10!=this._tweenEasing||null!=this._tweenCurve?s=!0:(this._tweenEasing=NaN,s=!1)),s?(this._durationTransform.x=n.transform.x-r.transform.x,this._durationTransform.y=n.transform.y-r.transform.y,this._durationTransform.skewX=n.transform.skewX-r.transform.skewX,this._durationTransform.skewY=n.transform.skewY-r.transform.skewY,this._durationTransform.scaleX=n.transform.scaleX-r.transform.scaleX+n.scaleOffset.x,this._durationTransform.scaleY=n.transform.scaleY-r.transform.scaleY+n.scaleOffset.y,this._durationPivot.x=n.pivot.x-r.pivot.x,this._durationPivot.y=n.pivot.y-r.pivot.y,this._durationTransform.normalizeRotation(),0==i&&(this._durationTransform.skewX=t.TransformUtil.formatRadian(this._durationTransform.skewX),this._durationTransform.skewY=t.TransformUtil.formatRadian(this._durationTransform.skewY)),this._durationTransform.x||this._durationTransform.y||this._durationTransform.skewX||this._durationTransform.skewY||1!=this._durationTransform.scaleX||1!=this._durationTransform.scaleY||this._durationPivot.x||this._durationPivot.y?this._tweenTransform=!0:this._tweenTransform=!1):this._tweenTransform=!1,this._tweenTransform||(this._transform.copy(r.transform),this._pivot.x=this._originPivot.x+r.pivot.x,this._pivot.y=this._originPivot.y+r.pivot.y,this._bone.invalidUpdate())},i.updateTween=function(){var e=(this._currentTime-this._currentFramePosition)/this._currentFrameDuration;this._tweenCurve?e=this._tweenCurve.getValueByProgress(e):this._tweenEasing&&(e=t.MathUtil.getEaseValue(e,this._tweenEasing));var i=this._timelineData.frameList[this._currentFrameIndex],r=i.transform,n=i.pivot;this._transform.x=r.x+this._durationTransform.x*e,this._transform.y=r.y+this._durationTransform.y*e,this._transform.skewX=r.skewX+this._durationTransform.skewX*e,this._transform.skewY=r.skewY+this._durationTransform.skewY*e,this._transform.scaleX=r.scaleX+this._durationTransform.scaleX*e,this._transform.scaleY=r.scaleY+this._durationTransform.scaleY*e,this._pivot.x=n.x+this._durationPivot.x*e,this._pivot.y=n.y+this._durationPivot.y*e,this._bone.invalidUpdate()},e._pool=[],e}();t.FastBoneTimelineState=e,egret.registerClass(e,"dragonBones.FastBoneTimelineState")}(dragonBones||(dragonBones={})),function(t){var e=function(){function e(){this._totalTime=0,this._currentTime=0,this._currentFrameIndex=0,this._currentFramePosition=0,this._currentFrameDuration=0,this._updateMode=0,this._durationColor=new t.ColorTransform}__define;var i=e.prototype;return e.borrowObject=function(){return 0==e._pool.length?new e:e._pool.pop()},e.returnObject=function(t){e._pool.indexOf(t)<0&&(e._pool[e._pool.length]=t),t.clear()},e.clear=function(){for(var t=e._pool.length;t--;)e._pool[t].clear();e._pool.length=0},i.clear=function(){this._slot=null,this._armature=null,this._animation=null,this._animationState=null,this._timelineData=null},i.fadeIn=function(t,e,i){switch(this._slot=t,this._armature=this._slot.armature,this._animation=this._armature.animation,this._animationState=e,this._timelineData=i,this.name=i.name,this._totalTime=this._timelineData.duration,this._isComplete=!1,this._blendEnabled=!1,this._tweenColor=!1,this._currentFrameIndex=-1,this._currentTime=-1,this._tweenEasing=NaN,this._weight=1,this._timelineData.frameList.length){case 0:this._updateMode=0;break;case 1:this._updateMode=1;break;default:this._updateMode=-1}},i.updateFade=function(t){},i.update=function(t){-1==this._updateMode?this.updateMultipleFrame(t):1==this._updateMode&&(this._updateMode=0,this.updateSingleFrame())},i.updateMultipleFrame=function(t){var e=0;t/=this._timelineData.scale,t+=this._timelineData.offset;var i=this._totalTime*t,r=this._animationState.playTimes;if(0==r)this._isComplete=!1,e=Math.ceil(Math.abs(i)/this._totalTime)||1,(i-=Math.floor(i/this._totalTime)*this._totalTime)<0&&(i+=this._totalTime);else{var n=r*this._totalTime;i>=n?(i=n,this._isComplete=!0):i<=-n?(i=-n,this._isComplete=!0):this._isComplete=!1,i<0&&(i+=n),e=Math.ceil(i/this._totalTime)||1,this._isComplete?i=this._totalTime:i-=Math.floor(i/this._totalTime)*this._totalTime}if(this._currentTime!=i){this._currentTime=i;for(var s,a,o=this._timelineData.frameList,l=0,h=this._timelineData.frameList.length;l<h;++l){if(this._currentFrameIndex<0)this._currentFrameIndex=0;else{if(!(this._currentTime<this._currentFramePosition||this._currentTime>=this._currentFramePosition+this._currentFrameDuration))break;if(this._currentFrameIndex++,this._currentFrameIndex>=o.length){if(this._isComplete){this._currentFrameIndex--;break}this._currentFrameIndex=0}}a=o[this._currentFrameIndex],s&&this._slot._arriveAtFrame(s,this._animationState),this._currentFrameDuration=a.duration,this._currentFramePosition=a.position,s=a}a&&(this._slot._arriveAtFrame(a,this._animationState),this._blendEnabled=a.displayIndex>=0,this._blendEnabled?this.updateToNextFrame(e):(this._tweenEasing=NaN,this._tweenColor=!1)),this._blendEnabled&&this.updateTween()}},i.updateToNextFrame=function(e){void 0===e&&(e=0);var i=this._currentFrameIndex+1;i>=this._timelineData.frameList.length&&(i=0);var r,n,s=this._timelineData.frameList[this._currentFrameIndex],a=this._timelineData.frameList[i],o=!1;(0==i&&this._animationState.playTimes&&this._animationState.currentPlayTimes>=this._animationState.playTimes&&((this._currentFramePosition+this._currentFrameDuration)/this._totalTime+e-this._timelineData.offset)*this._timelineData.scale>.999999?(this._tweenEasing=NaN,o=!1):s.displayIndex<0||a.displayIndex<0?(this._tweenEasing=NaN,o=!1):this._animationState.autoTween?(this._tweenEasing=this._animationState.animationData.tweenEasing,isNaN(this._tweenEasing)?(this._tweenEasing=s.tweenEasing,this._tweenCurve=s.curve,isNaN(this._tweenEasing)&&null==this._tweenCurve?o=!1:(10==this._tweenEasing&&(this._tweenEasing=0),o=!0)):o=!0):(this._tweenEasing=s.tweenEasing,this._tweenCurve=s.curve,!isNaN(this._tweenEasing)&&10!=this._tweenEasing||null!=this._tweenCurve?o=!0:(this._tweenEasing=NaN,o=!1)),o&&(s.color||a.color)?(t.ColorTransformUtil.minus(a.color||t.ColorTransformUtil.originalColor,s.color||t.ColorTransformUtil.originalColor,this._durationColor),this._tweenColor=0!=this._durationColor.alphaOffset||0!=this._durationColor.redOffset||0!=this._durationColor.greenOffset||0!=this._durationColor.blueOffset||0!=this._durationColor.alphaMultiplier||0!=this._durationColor.redMultiplier||0!=this._durationColor.greenMultiplier||0!=this._durationColor.blueMultiplier):this._tweenColor=!1,this._tweenColor)||(s.color?(r=s.color,n=!0):(r=t.ColorTransformUtil.originalColor,n=!1),(this._slot._isColorChanged||n)&&(t.ColorTransformUtil.isEqual(this._slot._colorTransform,r)||this._slot._updateDisplayColor(r.alphaOffset,r.redOffset,r.greenOffset,r.blueOffset,r.alphaMultiplier,r.redMultiplier,r.greenMultiplier,r.blueMultiplier,n)))},i.updateTween=function(){var e=this._timelineData.frameList[this._currentFrameIndex];if(this._tweenColor){var i=(this._currentTime-this._currentFramePosition)/this._currentFrameDuration;null!=this._tweenCurve?i=this._tweenCurve.getValueByProgress(i):this._tweenEasing&&(i=t.MathUtil.getEaseValue(i,this._tweenEasing)),e.color?this._slot._updateDisplayColor(e.color.alphaOffset+this._durationColor.alphaOffset*i,e.color.redOffset+this._durationColor.redOffset*i,e.color.greenOffset+this._durationColor.greenOffset*i,e.color.blueOffset+this._durationColor.blueOffset*i,e.color.alphaMultiplier+this._durationColor.alphaMultiplier*i,e.color.redMultiplier+this._durationColor.redMultiplier*i,e.color.greenMultiplier+this._durationColor.greenMultiplier*i,e.color.blueMultiplier+this._durationColor.blueMultiplier*i,!0):this._slot._updateDisplayColor(this._durationColor.alphaOffset*i,this._durationColor.redOffset*i,this._durationColor.greenOffset*i,this._durationColor.blueOffset*i,this._durationColor.alphaMultiplier*i+1,this._durationColor.redMultiplier*i+1,this._durationColor.greenMultiplier*i+1,this._durationColor.blueMultiplier*i+1,!0)}},i.updateSingleFrame=function(){var e,i,r=this._timelineData.frameList[0];(this._slot._arriveAtFrame(r,this._animationState),this._isComplete=!0,this._tweenEasing=NaN,this._tweenColor=!1,this._blendEnabled=r.displayIndex>=0,this._blendEnabled)&&(r.color?(e=r.color,i=!0):(e=t.ColorTransformUtil.originalColor,i=!1),(this._slot._isColorChanged||i)&&(t.ColorTransformUtil.isEqual(this._slot._colorTransform,e)||this._slot._updateDisplayColor(e.alphaOffset,e.redOffset,e.greenOffset,e.blueOffset,e.alphaMultiplier,e.redMultiplier,e.greenMultiplier,e.blueMultiplier,i)))},e.HALF_PI=.5*Math.PI,e.DOUBLE_PI=2*Math.PI,e._pool=[],e}();t.FastSlotTimelineState=e,egret.registerClass(e,"dragonBones.FastSlotTimelineState")}(dragonBones||(dragonBones={})),function(){var t=dragonBones.DataParser,e=dragonBones.TextureData,i=function(t,e,i){this._textureDatas={},this.scale=i||1,this.texture=t,this.name=e.name,this.parseData(e)};i.rotatedDic={},i.prototype={constructor:i,getTexture:function(t){var e=this._textureDatas[t];return e&&(e.texture=this.texture,e.rotated&&(i.rotatedDic[t]=1)),e},dispose:function(){this.texture=null,this._textureDatas={}},getRegion:function(t){var i=this._textureDatas[t];return i&&i instanceof e?i.region:null},getFrame:function(t){var i=this._textureDatas[t];return i&&i instanceof e?i.frame:null},parseData:function(e){this._textureDatas=t.parseTextureAtlasData(e,this.scale)}},dragonBones.TextureAtlas=i}(),function(t){Math.PI;var e=dragonBones.TextureAtlas,i=function(){t.call(this,this),this._display=null};__extends(i,t,{dispose:function(){if(this._displayList)for(var e=this._displayList.length,i=0;i<e;i++){var r=this._displayList[i];"function"==typeof r.dispose&&r.dispose()}t.prototype.dispose(),this._display=null},_updateDisplay:function(t){this._display=t},_getDisplayIndex:function(){return this._display&&this._display.parent?this._display.parent.getChildIndex(this._display):-1},_addDisplayToContainer:function(t,e){this._display&&t&&(e?t.addChildAt(this._display,e):t.addChild(this._display))},_removeDisplayFromContainer:function(){this._display&&this._display.parent&&this._display.parent.removeChild(this._display)},_updateTransform:function(){this._display&&(this._display.position.x=this._global.x,this._display.position.y=this._global.y,this._display.scale.x=this._global.scaleX,this._display.scale.y=this._global.scaleY,this._display.rotation=this._global.skewX)},_updateDisplayVisible:function(t){this._display&&this._parent&&(this._display.visible=this._parent._visible&&this._visible&&t)},_updateDisplayColor:function(e,i,r,n,s,a,o,l,h){t.prototype._updateDisplayColor.call(this,e,i,r,n,s,a,o,l,h),this._display&&(this._display.alpha=s)},_updateDisplayBlendMode:function(t){},_calculateRelativeParentTransform:function(){this._global.scaleX=this._origin.scaleX*this._offset.scaleX,this._global.scaleY=this._origin.scaleY*this._offset.scaleY,this._global.skewX=this._origin.skewX+this._offset.skewX,this._global.skewY=this._origin.skewY+this._offset.skewY,this._global.x=this._origin.x+this._offset.x+this._parent._tweenPivot.x,this._global.y=this._origin.y+this._offset.y+this._parent._tweenPivot.y,this._displayDataList&&this._currentDisplayIndex>=0&&this._displayDataList[this._currentDisplayIndex]&&1==e.rotatedDic[this._displayDataList[this._currentDisplayIndex].name]&&(this._global.skewX-=1.57,this._global.skewY-=1.57)}}),dragonBones.PixiSlot=i}(dragonBones.Slot),function(t){var e=dragonBones.Armature,i=dragonBones.PixiSlot,r=function(){t.call(this,this)};__extends(r,t,{_generateArmature:function(){return new e(new PIXI.Container)},_generateSlot:function(){return new i},_generateDisplay:function(t,e,i,r){var n=t.getTexture(e),s=n.region;this._textureCache=this._textureCache||{},this._textureCache[t.texture.src]||(this._textureCache[t.texture.src]=new PIXI.BaseTexture(t.texture));var a=new PIXI.Texture(this._textureCache[t.texture.src],new PIXI.Rectangle(s.x,s.y,s.width,s.height)),o=new PIXI.Sprite(a);if(isNaN(i)||isNaN(r)){var l=t.getFrame(e);null!=l?(i=l.width/2,r=l.height/2):(i=n.region.width/2,r=n.region.height/2)}return o.pivot.x=i,o.pivot.y=r,o}}),dragonBones.PixiFactory=r}(dragonBones.BaseFactory),function(t){!function(t){t.createIndicesForQuads=function(t){for(var e=6*t,i=new Uint16Array(e),r=0,n=0;r<e;r+=6,n+=4)i[r+0]=n+0,i[r+1]=n+1,i[r+2]=n+2,i[r+3]=n+0,i[r+4]=n+2,i[r+5]=n+3;return i},t.isPow2=function(t){return!(t&t-1||!t)},t.nextPow2=function(t){return t+=+(0===t),--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,1+(t|=t>>>16)},t.log2=function(t){var e,i;return e=+(t>65535)<<4,e|=i=+((t>>>=e)>255)<<3,e|=i=+((t>>>=i)>15)<<2,(e|=i=+((t>>>=i)>3)<<1)|(t>>>=i)>>1},t.getIntersectionFactor=function(t,e,i,r,n){var s=e.x-t.x,a=i.x-r.x,o=i.x-t.x,l=e.y-t.y,h=i.y-r.y,u=i.y-t.y,c=s*h-l*a;if(Math.abs(c)<1e-7)return n.x=s,n.y=l,0;var d=(o*h-u*a)/c,p=(s*u-l*o)/c;return p<1e-6||p-1>-1e-6?-1:(n.x=t.x+d*(e.x-t.x),n.y=t.y+d*(e.y-t.y),1)},t.getPositionFromQuad=function(t,e,i){i=i||new PIXI.Point;var r=1-e.x,n=1-r,s=1-e.y,a=1-s;return i.x=(t[0].x*r+t[1].x*n)*s+(t[3].x*r+t[2].x*n)*a,i.y=(t[0].y*r+t[1].y*n)*s+(t[3].y*r+t[2].y*n)*a,i}}(t.utils||(t.utils={}))}(pixi_projection||(pixi_projection={})),PIXI.projection=pixi_projection,function(t){var e=function(){function t(t,e){void 0===e&&(e=!0),this._enabled=!1,this.legacy=t,e&&(this.enabled=!0),this.legacy.proj=this}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this._enabled=t},enumerable:!0,configurable:!0}),t.prototype.clear=function(){},t}();t.Projection=e}(pixi_projection||(pixi_projection={})),function(t){var e,i;e=t.webgl||(t.webgl={}),i=function(){function t(t){this.vertices=new ArrayBuffer(t),this.float32View=new Float32Array(this.vertices),this.uint32View=new Uint32Array(this.vertices)}return t.prototype.destroy=function(){this.vertices=null},t}(),e.BatchBuffer=i}(pixi_projection||(pixi_projection={})),function(t){!function(e){(t.webgl||(t.webgl={})).generateMultiTextureShader=function(t,e,i,r){e=(e=e.replace(/%count%/gi,r+"")).replace(/%forloop%/gi,function(t){var e="";e+="\n",e+="\n";for(var i=0;i<t;i++)i>0&&(e+="\nelse "),i<t-1&&(e+="if(textureId == "+i+".0)"),e+="\n{",e+="\n\tcolor = texture2D(uSamplers["+i+"], textureCoord);",e+="\n}";return e+="\n",e+="\n"}(r));for(var n=new PIXI.Shader(i,t,e),s=new Int32Array(r),a=0;a<r;a++)s[a]=a;return n.bind(),n.uniforms.uSamplers=s,n}}()}(pixi_projection||(pixi_projection={}));var pixi_projection,__extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();!function(t){!function(e){var i=PIXI.ObjectRenderer,r=PIXI.settings,n=PIXI.glCore.GLBuffer,s=PIXI.utils.premultiplyTint,a=PIXI.utils.premultiplyBlendMode,o=0,l=function(){return function(){this.textures=[],this.textureCount=0,this.ids=[],this.size=0,this.start=0,this.blend=PIXI.BLEND_MODES.NORMAL,this.uniforms=null}}();e.BatchGroup=l;var h=function(i){function h(e){var n=i.call(this,e)||this;n.shaderVert="",n.shaderFrag="",n.MAX_TEXTURES_LOCAL=32,n.vertSize=5,n.vertByteSize=4*n.vertSize,n.size=r.SPRITE_BATCH_SIZE,n.currentIndex=0,n.sprites=[],n.vertexBuffers=[],n.vaos=[],n.vaoMax=2,n.vertexCount=0,n.MAX_TEXTURES=1,n.indices=t.utils.createIndicesForQuads(n.size),n.groups=[];for(var s=0;s<n.size;s++)n.groups[s]=new l;return n.vaoMax=2,n.vertexCount=0,n.renderer.on("prerender",n.onPrerender,n),n}return __extends(h,i),h.prototype.getUniforms=function(t){return null},h.prototype.syncUniforms=function(t){if(t){var e=this.shader;for(var i in t)e.uniforms[i]=t[i]}},h.prototype.onContextChange=function(){var i=this.renderer.gl;this.MAX_TEXTURES=Math.min(this.MAX_TEXTURES_LOCAL,this.renderer.plugins.sprite.MAX_TEXTURES),this.shader=e.generateMultiTextureShader(this.shaderVert,this.shaderFrag,i,this.MAX_TEXTURES),this.indexBuffer=n.createIndexBuffer(i,this.indices,i.STATIC_DRAW),this.renderer.bindVao(null);this.shader.attributes;for(var r=0;r<this.vaoMax;r++){var s=this.vertexBuffers[r]=n.createVertexBuffer(i,null,i.STREAM_DRAW);this.vaos[r]=this.createVao(s)}if(!this.buffers){this.buffers=[];for(r=1;r<=t.utils.nextPow2(this.size);r*=2)this.buffers.push(new e.BatchBuffer(4*r*this.vertByteSize))}this.vao=this.vaos[0]},h.prototype.onPrerender=function(){this.vertexCount=0},h.prototype.render=function(t){this.currentIndex>=this.size&&this.flush(),t._texture._uvs&&t._texture.baseTexture&&(this.sprites[this.currentIndex++]=t)},h.prototype.flush=function(){if(0!==this.currentIndex){var e,i,l,h=this.renderer.gl,u=this.MAX_TEXTURES,c=t.utils.nextPow2(this.currentIndex),d=t.utils.log2(c),p=this.buffers[d],f=this.sprites,_=this.groups,m=p.float32View,g=p.uint32View,v=0,y=null,b=1,T=0,x=_[0],E=a[f[0]._texture.baseTexture.premultipliedAlpha?1:0][f[0].blendMode];for(x.textureCount=0,x.start=0,x.blend=E,o++,l=0;l<this.currentIndex;++l){var w=f[l];e=w._texture.baseTexture;var S=a[Number(e.premultipliedAlpha)][w.blendMode];E!==S&&(E=S,i=null,T=u,o++);var D=this.getUniforms(w);y!==D&&(y=D,i=null,T=u,o++),i!==e&&(i=e,e._enabled!==o&&(T===u&&(o++,T=0,x.size=l-x.start,(x=_[b++]).textureCount=0,x.blend=E,x.start=l,x.uniforms=y),e._enabled=o,e._virtalBoundId=T,x.textures[x.textureCount++]=e,T++));var I=Math.min(w.worldAlpha,1),P=I<1&&e.premultipliedAlpha?s(w._tintRGB,I):w._tintRGB+(255*I<<24);this.fillVertices(m,g,v,w,P,e._virtalBoundId),v+=4*this.vertSize}if(x.size=l-x.start,r.CAN_UPLOAD_SAME_BUFFER)this.vertexBuffers[this.vertexCount].upload(p.vertices,0,!0);else{if(this.vaoMax<=this.vertexCount){this.vaoMax++;this.shader.attributes;var A=this.vertexBuffers[this.vertexCount]=n.createVertexBuffer(h,null,h.STREAM_DRAW);this.vaos[this.vertexCount]=this.createVao(A)}this.renderer.bindVao(this.vaos[this.vertexCount]),this.vertexBuffers[this.vertexCount].upload(p.vertices,0,!1),this.vertexCount++}for(y=null,l=0;l<b;l++){var C=_[l],M=C.textureCount;C.uniforms!==y&&this.syncUniforms(C.uniforms);for(var L=0;L<M;L++){this.renderer.bindTexture(C.textures[L],L,!0);var O=this.shader.uniforms.samplerSize;O&&(O[0]=C.textures[L].realWidth,O[1]=C.textures[L].realHeight,this.shader.uniforms.samplerSize=O)}this.renderer.state.setBlendMode(C.blend),h.drawElements(h.TRIANGLES,6*C.size,h.UNSIGNED_SHORT,6*C.start*2)}this.currentIndex=0}},h.prototype.start=function(){this.renderer.bindShader(this.shader),r.CAN_UPLOAD_SAME_BUFFER&&(this.renderer.bindVao(this.vaos[this.vertexCount]),this.vertexBuffers[this.vertexCount].bind())},h.prototype.stop=function(){this.flush()},h.prototype.destroy=function(){for(var t=0;t<this.vaoMax;t++)this.vertexBuffers[t]&&this.vertexBuffers[t].destroy(),this.vaos[t]&&this.vaos[t].destroy();this.indexBuffer&&this.indexBuffer.destroy(),this.renderer.off("prerender",this.onPrerender,this),i.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.vertexBuffers=null,this.vaos=null,this.indexBuffer=null,this.indices=null,this.sprites=null;for(t=0;t<this.buffers.length;++t)this.buffers[t].destroy()},h}(i);e.MultiTextureSpriteRenderer=h}(t.webgl||(t.webgl={}))}(pixi_projection||(pixi_projection={})),function(t){var e=[new PIXI.Point,new PIXI.Point,new PIXI.Point,new PIXI.Point],i=[0,0,0,0],r=function(){function t(){this.surfaceID="default",this._updateID=0,this.vertexSrc="",this.fragmentSrc=""}return t.prototype.fillUniforms=function(t){},t.prototype.clear=function(){},t.prototype.boundsQuad=function(t,r,n){for(var s=r[0],a=r[1],o=r[0],l=r[1],h=2;h<8;h+=2)s>r[h]&&(s=r[h]),o<r[h]&&(o=r[h]),a>r[h+1]&&(a=r[h+1]),l<r[h+1]&&(l=r[h+1]);if(e[0].set(s,a),this.apply(e[0],e[0]),e[1].set(o,a),this.apply(e[1],e[1]),e[2].set(o,l),this.apply(e[2],e[2]),e[3].set(s,l),this.apply(e[3],e[3]),n)n.apply(e[0],e[0]),n.apply(e[1],e[1]),n.apply(e[2],e[2]),n.apply(e[3],e[3]),r[0]=e[0].x,r[1]=e[0].y,r[2]=e[1].x,r[3]=e[1].y,r[4]=e[2].x,r[5]=e[2].y,r[6]=e[3].x,r[7]=e[3].y;else{for(h=1;h<=3;h++)if(e[h].y<e[0].y||e[h].y==e[0].y&&e[h].x<e[0].x){var u=e[0];e[0]=e[h],e[h]=u}for(h=1;h<=3;h++)i[h]=Math.atan2(e[h].y-e[0].y,e[h].x-e[0].x);for(h=1;h<=3;h++)for(var c=h+1;c<=3;c++)if(i[h]>i[c]){u=e[h];e[h]=e[c],e[c]=u;var d=i[h];i[h]=i[c],i[c]=d}if(r[0]=e[0].x,r[1]=e[0].y,r[2]=e[1].x,r[3]=e[1].y,r[4]=e[2].x,r[5]=e[2].y,r[6]=e[3].x,r[7]=e[3].y,(e[3].x-e[2].x)*(e[1].y-e[2].y)-(e[1].x-e[2].x)*(e[3].y-e[2].y)<0)return r[4]=e[3].x,void(r[5]=e[3].y)}},t}();t.Surface=r}(pixi_projection||(pixi_projection={})),function(t){var e=new PIXI.Matrix,i=new PIXI.Rectangle,r=new PIXI.Point,n=function(t){function n(){var e=t.call(this)||this;return e.distortion=new PIXI.Point,e}return __extends(n,t),n.prototype.clear=function(){this.distortion.set(0,0)},n.prototype.apply=function(t,e){e=e||new PIXI.Point;var i=this.distortion,r=t.x*t.y;return e.x=t.x+i.x*r,e.y=t.y+i.y*r,e},n.prototype.applyInverse=function(t,e){e=e||new PIXI.Point;var i=t.x,r=t.y,n=this.distortion.x,s=this.distortion.y;if(0==n)e.x=i,e.y=r/(1+s*i);else if(0==s)e.y=r,e.x=i/(1+n*r);else{var a=.5*(r*n-i*s+1)/s,o=a*a+i/s;if(o<=1e-5)return void e.set(NaN,NaN);e.x=s>0?-a+Math.sqrt(o):-a-Math.sqrt(o),e.y=(i/e.x-1)/n}return e},n.prototype.mapSprite=function(t,e,r){var n=t.texture;return i.x=-t.anchor.x*n.orig.width,i.y=-t.anchor.y*n.orig.height,i.width=n.orig.width,i.height=n.orig.height,this.mapQuad(i,e,r||t.transform)},n.prototype.mapQuad=function(t,i,n){var s=-t.x/t.width,a=-t.y/t.height,o=(1-t.x)/t.width,l=(1-t.y)/t.height,h=i[0].x*(1-s)+i[1].x*s,u=i[0].y*(1-s)+i[1].y*s,c=i[0].x*(1-o)+i[1].x*o,d=i[0].y*(1-o)+i[1].y*o,p=i[3].x*(1-s)+i[2].x*s,f=i[3].y*(1-s)+i[2].y*s,_=i[3].x*(1-o)+i[2].x*o,m=i[3].y*(1-o)+i[2].y*o,g=h*(1-a)+p*a,v=u*(1-a)+f*a,y=c*(1-a)+_*a,b=d*(1-a)+m*a,T=h*(1-l)+p*l,x=u*(1-l)+f*l,E=c*(1-l)+_*l,w=d*(1-l)+m*l,S=e;return S.tx=g,S.ty=v,S.a=y-g,S.b=b-v,S.c=T-g,S.d=x-v,r.set(E,w),S.applyInverse(r,r),this.distortion.set(r.x-1,r.y-1),n.setFromMatrix(S),this},n.prototype.fillUniforms=function(t){t.distortion=t.distortion||new Float32Array([0,0,0,0]);var e=Math.abs(this.distortion.x),i=Math.abs(this.distortion.y);t.distortion[0]=1e4*e<=i?0:this.distortion.x,t.distortion[1]=1e4*i<=e?0:this.distortion.y,t.distortion[2]=1/t.distortion[0],t.distortion[3]=1/t.distortion[1]},n}(t.Surface);t.BilinearSurface=n}(pixi_projection||(pixi_projection={})),function(t){var e=function(e){function i(){var i=e.call(this)||this;return i.proj=new t.ProjectionSurface(i.transform),i}return __extends(i,e),Object.defineProperty(i.prototype,"worldTransform",{get:function(){return this.proj},enumerable:!0,configurable:!0}),i}(PIXI.Container);t.Container2s=e}(pixi_projection||(pixi_projection={})),function(t){var e=PIXI.TransformStatic.prototype.updateTransform;function i(t){var i=this.proj,r=t.proj;return r?r._surface?(i._activeProjection=r,this.updateLocalTransform(),this.localTransform.copy(this.worldTransform),void(this._parentID<0&&++this._worldID)):(e.call(this,t),void(i._activeProjection=r._activeProjection)):(e.call(this,t),void(i._activeProjection=null))}var r=function(e){function r(t,i){var r=e.call(this,t,i)||this;return r._surface=null,r._activeProjection=null,r._currentSurfaceID=-1,r._currentLegacyID=-1,r._lastUniforms=null,r}return __extends(r,e),Object.defineProperty(r.prototype,"enabled",{set:function(t){t!==this._enabled&&(this._enabled=t,t?(this.legacy.updateTransform=i,this.legacy._parentID=-1):(this.legacy.updateTransform=PIXI.TransformStatic.prototype.updateTransform,this.legacy._parentID=-1))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"surface",{get:function(){return this._surface},set:function(t){this._surface!=t&&(this._surface=t||null,this.legacy._parentID=-1)},enumerable:!0,configurable:!0}),r.prototype.applyPartial=function(t,e){return null!==this._activeProjection?(e=this.legacy.worldTransform.apply(t,e),this._activeProjection.surface.apply(e,e)):null!==this._surface?this.surface.apply(t,e):this.legacy.worldTransform.apply(t,e)},r.prototype.apply=function(t,e){return null!==this._activeProjection?(e=this.legacy.worldTransform.apply(t,e),this._activeProjection.surface.apply(e,e),this._activeProjection.legacy.worldTransform.apply(e,e)):null!==this._surface?(e=this.surface.apply(t,e),this.legacy.worldTransform.apply(e,e)):this.legacy.worldTransform.apply(t,e)},r.prototype.applyInverse=function(t,e){return null!==this._activeProjection?(e=this._activeProjection.legacy.worldTransform.applyInverse(t,e),this._activeProjection._surface.applyInverse(e,e),this.legacy.worldTransform.applyInverse(e,e)):null!==this._surface?(e=this.legacy.worldTransform.applyInverse(t,e),this._surface.applyInverse(e,e)):this.legacy.worldTransform.applyInverse(t,e)},r.prototype.mapBilinearSprite=function(e,i){this._surface instanceof t.BilinearSurface||(this.surface=new t.BilinearSurface),this.surface.mapSprite(e,i,this.legacy)},r.prototype.clear=function(){this.surface&&this.surface.clear()},Object.defineProperty(r.prototype,"uniforms",{get:function(){return this._currentLegacyID===this.legacy._worldID&&this._currentSurfaceID===this.surface._updateID?this._lastUniforms:(this._lastUniforms=this._lastUniforms||{},this._lastUniforms.worldTransform=this.legacy.worldTransform.toArray(!0),this._surface.fillUniforms(this._lastUniforms),this._lastUniforms)},enumerable:!0,configurable:!0}),r}(t.Projection);t.ProjectionSurface=r}(pixi_projection||(pixi_projection={})),function(t){var e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.size=100,e.MAX_TEXTURES_LOCAL=1,e.shaderVert="precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec3 aTrans1;\nattribute vec3 aTrans2;\nattribute vec4 aFrame;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\nuniform mat3 worldTransform;\n\nvarying vec2 vTextureCoord;\nvarying vec3 vTrans1;\nvarying vec3 vTrans2;\nvarying vec4 vFrame;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position.xyw = projectionMatrix * worldTransform * vec3(aVertexPosition, 1.0);\n gl_Position.z = 0.0;\n \n vTextureCoord = aVertexPosition;\n vTrans1 = aTrans1;\n vTrans2 = aTrans2;\n vTextureId = aTextureId;\n vColor = aColor;\n vFrame = aFrame;\n}\n",e.shaderFrag="precision highp float;\nvarying vec2 vTextureCoord;\nvarying vec3 vTrans1;\nvarying vec3 vTrans2;\nvarying vec4 vFrame;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nuniform sampler2D uSamplers[%count%];\nuniform vec2 samplerSize[%count%]; \nuniform vec4 distortion;\n\nvoid main(void){\nvec2 surface;\nvec2 surface2;\n\nfloat vx = vTextureCoord.x;\nfloat vy = vTextureCoord.y;\nfloat dx = distortion.x;\nfloat dy = distortion.y;\nfloat revx = distortion.z;\nfloat revy = distortion.w;\n\nif (distortion.x == 0.0) {\n surface.x = vx;\n surface.y = vy / (1.0 + dy * vx);\n surface2 = surface;\n} else\nif (distortion.y == 0.0) {\n surface.y = vy;\n surface.x = vx/ (1.0 + dx * vy);\n surface2 = surface;\n} else {\n float c = vy * dx - vx * dy;\n float b = (c + 1.0) * 0.5;\n float b2 = (-c + 1.0) * 0.5;\n float d = b * b + vx * dy;\n if (d < -0.00001) {\n discard;\n }\n d = sqrt(max(d, 0.0));\n surface.x = (- b + d) * revy;\n surface2.x = (- b - d) * revy;\n surface.y = (- b2 + d) * revx;\n surface2.y = (- b2 - d) * revx;\n}\n\nvec2 uv;\nuv.x = vTrans1.x * surface.x + vTrans1.y * surface.y + vTrans1.z;\nuv.y = vTrans2.x * surface.x + vTrans2.y * surface.y + vTrans2.z;\n\nvec2 pixels = uv * samplerSize[0];\n\nif (pixels.x < vFrame.x || pixels.x > vFrame.z ||\n pixels.y < vFrame.y || pixels.y > vFrame.w) {\n uv.x = vTrans1.x * surface2.x + vTrans1.y * surface2.y + vTrans1.z;\n uv.y = vTrans2.x * surface2.x + vTrans2.y * surface2.y + vTrans2.z;\n pixels = uv * samplerSize[0];\n \n if (pixels.x < vFrame.x || pixels.x > vFrame.z ||\n pixels.y < vFrame.y || pixels.y > vFrame.w) {\n discard;\n }\n}\n\nvec4 edge;\nedge.xy = clamp(pixels - vFrame.xy + 0.5, vec2(0.0, 0.0), vec2(1.0, 1.0));\nedge.zw = clamp(vFrame.zw - pixels + 0.5, vec2(0.0, 0.0), vec2(1.0, 1.0));\n\nfloat alpha = 1.0; //edge.x * edge.y * edge.z * edge.w;\nvec4 rColor = vColor * alpha;\n\nfloat textureId = floor(vTextureId+0.5);\nvec4 color;\nvec2 textureCoord = uv;\n%forloop%\ngl_FragColor = color * rColor;\n}",e.defUniforms={worldTransform:new Float32Array([1,0,0,0,1,0,0,0,1]),distortion:new Float32Array([0,0])},e}return __extends(e,t),e.prototype.getUniforms=function(t){var e=t.proj;this.shader;return null!==e.surface?e.uniforms:null!==e._activeProjection?e._activeProjection.uniforms:this.defUniforms},e.prototype.createVao=function(t){var e=this.shader.attributes;this.vertSize=14,this.vertByteSize=4*this.vertSize;var i=this.renderer.gl,r=this.renderer.createVao().addIndex(this.indexBuffer).addAttribute(t,e.aVertexPosition,i.FLOAT,!1,this.vertByteSize,0).addAttribute(t,e.aTrans1,i.FLOAT,!1,this.vertByteSize,8).addAttribute(t,e.aTrans2,i.FLOAT,!1,this.vertByteSize,20).addAttribute(t,e.aFrame,i.FLOAT,!1,this.vertByteSize,32).addAttribute(t,e.aColor,i.UNSIGNED_BYTE,!0,this.vertByteSize,48);return e.aTextureId&&r.addAttribute(t,e.aTextureId,i.FLOAT,!1,this.vertByteSize,52),r},e.prototype.fillVertices=function(t,e,i,r,n,s){for(var a=r.vertexData,o=r._texture,l=(o.orig.width,o.orig.height,r._anchor._x,r._anchor._y,o._frame),h=r.aTrans,u=0;u<4;u++)t[i]=a[2*u],t[i+1]=a[2*u+1],t[i+2]=h.a,t[i+3]=h.c,t[i+4]=h.tx,t[i+5]=h.b,t[i+6]=h.d,t[i+7]=h.ty,t[i+8]=l.x,t[i+9]=l.y,t[i+10]=l.x+l.width,t[i+11]=l.y+l.height,e[i+12]=n,t[i+13]=s,i+=14},e}((pixi_projection||(pixi_projection={})).webgl.MultiTextureSpriteRenderer);PIXI.WebGLRenderer.registerPlugin("sprite_bilinear",e)}(),function(t){var e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.size=100,e.MAX_TEXTURES_LOCAL=1,e.shaderVert="precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec3 aTrans1;\nattribute vec3 aTrans2;\nattribute vec4 aFrame;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\nuniform mat3 worldTransform;\n\nvarying vec2 vTextureCoord;\nvarying vec3 vTrans1;\nvarying vec3 vTrans2;\nvarying vec4 vFrame;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position.xyw = projectionMatrix * worldTransform * vec3(aVertexPosition, 1.0);\n gl_Position.z = 0.0;\n \n vTextureCoord = aVertexPosition;\n vTrans1 = aTrans1;\n vTrans2 = aTrans2;\n vTextureId = aTextureId;\n vColor = aColor;\n vFrame = aFrame;\n}\n",e.shaderFrag="precision highp float;\nvarying vec2 vTextureCoord;\nvarying vec3 vTrans1;\nvarying vec3 vTrans2;\nvarying vec4 vFrame;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nuniform sampler2D uSamplers[%count%];\nuniform vec2 samplerSize[%count%]; \nuniform vec4 params;\n\nvoid main(void){\nvec2 surface;\n\nfloat vx = vTextureCoord.x;\nfloat vy = vTextureCoord.y;\nfloat aleph = params.x;\nfloat bet = params.y;\nfloat A = params.z;\nfloat B = params.w;\n\nif (aleph == 0.0) {\n\tsurface.y = vy / (1.0 + vx * bet);\n\tsurface.x = vx;\n}\nelse if (bet == 0.0) {\n\tsurface.x = vx / (1.0 + vy * aleph);\n\tsurface.y = vy;\n} else {\n\tsurface.x = vx * (bet + 1.0) / (bet + 1.0 + vy * aleph);\n\tsurface.y = vy * (aleph + 1.0) / (aleph + 1.0 + vx * bet);\n}\n\nvec2 uv;\nuv.x = vTrans1.x * surface.x + vTrans1.y * surface.y + vTrans1.z;\nuv.y = vTrans2.x * surface.x + vTrans2.y * surface.y + vTrans2.z;\n\nvec2 pixels = uv * samplerSize[0];\n\nvec4 edge;\nedge.xy = clamp(pixels - vFrame.xy + 0.5, vec2(0.0, 0.0), vec2(1.0, 1.0));\nedge.zw = clamp(vFrame.zw - pixels + 0.5, vec2(0.0, 0.0), vec2(1.0, 1.0));\n\nfloat alpha = edge.x * edge.y * edge.z * edge.w;\nvec4 rColor = vColor * alpha;\n\nfloat textureId = floor(vTextureId+0.5);\nvec4 color;\nvec2 textureCoord = uv;\n%forloop%\ngl_FragColor = color * rColor;\n}",e.defUniforms={worldTransform:new Float32Array([1,0,0,0,1,0,0,0,1]),distortion:new Float32Array([0,0])},e}return __extends(e,t),e.prototype.getUniforms=function(t){var e=t.proj;this.shader;return null!==e.surface?e.uniforms:null!==e._activeProjection?e._activeProjection.uniforms:this.defUniforms},e.prototype.createVao=function(t){var e=this.shader.attributes;this.vertSize=14,this.vertByteSize=4*this.vertSize;var i=this.renderer.gl,r=this.renderer.createVao().addIndex(this.indexBuffer).addAttribute(t,e.aVertexPosition,i.FLOAT,!1,this.vertByteSize,0).addAttribute(t,e.aTrans1,i.FLOAT,!1,this.vertByteSize,8).addAttribute(t,e.aTrans2,i.FLOAT,!1,this.vertByteSize,20).addAttribute(t,e.aFrame,i.FLOAT,!1,this.vertByteSize,32).addAttribute(t,e.aColor,i.UNSIGNED_BYTE,!0,this.vertByteSize,48);return e.aTextureId&&r.addAttribute(t,e.aTextureId,i.FLOAT,!1,this.vertByteSize,52),r},e.prototype.fillVertices=function(t,e,i,r,n,s){for(var a=r.vertexData,o=r._texture,l=(o.orig.width,o.orig.height,r._anchor._x,r._anchor._y,o._frame),h=r.aTrans,u=0;u<4;u++)t[i]=a[2*u],t[i+1]=a[2*u+1],t[i+2]=h.a,t[i+3]=h.c,t[i+4]=h.tx,t[i+5]=h.b,t[i+6]=h.d,t[i+7]=h.ty,t[i+8]=l.x,t[i+9]=l.y,t[i+10]=l.x+l.width,t[i+11]=l.y+l.height,e[i+12]=n,t[i+13]=s,i+=14},e}((pixi_projection||(pixi_projection={})).webgl.MultiTextureSpriteRenderer);PIXI.WebGLRenderer.registerPlugin("sprite_strange",e)}(),function(t){var e=new PIXI.Matrix,i=new PIXI.Rectangle,r=new PIXI.Point,n=function(t){function n(){var e=t.call(this)||this;return e.params=[0,0,NaN,NaN],e}return __extends(n,t),n.prototype.clear=function(){var t=this.params;t[0]=0,t[1]=0,t[2]=NaN,t[3]=NaN},n.prototype.setAxisX=function(t,e,i){var r=t.x,n=t.y,s=Math.sqrt(r*r+n*n),a=i.rotation;0!==a&&(i.skew._x-=a,i.skew._y+=a,i.rotation=0),i.skew.y=Math.atan2(n,r);var o=this.params;o[2]=0!==e?-s*e:NaN,this._calc01()},n.prototype.setAxisY=function(t,e,i){var r=t.x,n=t.y,s=Math.sqrt(r*r+n*n),a=i.rotation;0!==a&&(i.skew._x-=a,i.skew._y+=a,i.rotation=0),i.skew.x=-Math.atan2(n,r)+Math.PI/2;var o=this.params;o[3]=0!==e?-s*e:NaN,this._calc01()},n.prototype._calc01=function(){var t=this.params;if(isNaN(t[2]))t[1]=0,isNaN(t[3])?t[0]=0:t[0]=1/t[3];else if(isNaN(t[3]))t[0]=0,t[1]=1/t[2];else{var e=1-t[2]*t[3];t[0]=(1-t[2])/e,t[1]=(1-t[3])/e}},n.prototype.apply=function(t,e){e=e||new PIXI.Point;var i=this.params[0],r=this.params[1],n=this.params[2],s=this.params[3],a=t.x,o=t.y;if(0===i)e.y=o*(1+a*r),e.x=a;else if(0===r)e.x=a*(1+o*i),e.y=o;else{var l=n*s-o*a;e.x=n*a*(s+o)/l,e.y=s*o*(n+a)/l}return e},n.prototype.applyInverse=function(t,e){e=e||new PIXI.Point;var i=this.params[0],r=this.params[1],n=(this.params[2],this.params[3],t.x),s=t.y;return 0===i?(e.y=s/(1+n*r),e.x=n):0===r?(e.x=n*(1+s*i),e.y=s):(e.x=n*(r+1)/(r+1+s*i),e.y=s*(i+1)/(i+1+n*r)),e},n.prototype.mapSprite=function(t,e,r){var n=t.texture;return i.x=-t.anchor.x*n.orig.width,i.y=-t.anchor.y*n.orig.height,i.width=n.orig.width,i.height=n.orig.height,this.mapQuad(i,e,r||t.transform)},n.prototype.mapQuad=function(t,i,n){var s=-t.x/t.width,a=-t.y/t.height,o=(1-t.x)/t.width,l=(1-t.y)/t.height,h=i[0].x*(1-s)+i[1].x*s,u=i[0].y*(1-s)+i[1].y*s,c=i[0].x*(1-o)+i[1].x*o,d=i[0].y*(1-o)+i[1].y*o,p=i[3].x*(1-s)+i[2].x*s,f=i[3].y*(1-s)+i[2].y*s,_=i[3].x*(1-o)+i[2].x*o,m=i[3].y*(1-o)+i[2].y*o,g=h*(1-a)+p*a,v=u*(1-a)+f*a,y=c*(1-a)+_*a,b=d*(1-a)+m*a,T=h*(1-l)+p*l,x=u*(1-l)+f*l,E=c*(1-l)+_*l,w=d*(1-l)+m*l,S=e;return S.tx=g,S.ty=v,S.a=y-g,S.b=b-v,S.c=T-g,S.d=x-v,r.set(E,w),S.applyInverse(r,r),n.setFromMatrix(S),this},n.prototype.fillUniforms=function(t){var e=this.params,i=t.params||new Float32Array([0,0,0,0]);t.params=i,i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3]},n}(t.Surface);t.StrangeSurface=n}(pixi_projection||(pixi_projection={})),function(t){PIXI.Sprite.prototype.convertTo2s=function(){this.proj||(this.pluginName="sprite_bilinear",this.aTrans=new PIXI.Matrix,this.calculateVertices=t.Sprite2s.prototype.calculateVertices,this.calculateTrimmedVertices=t.Sprite2s.prototype.calculateTrimmedVertices,this._calculateBounds=t.Sprite2s.prototype._calculateBounds,PIXI.Container.prototype.convertTo2s.call(this))},PIXI.Container.prototype.convertTo2s=function(){this.proj||(this.proj=new t.Projection2d(this.transform),Object.defineProperty(this,"worldTransform",{get:function(){return this.proj},enumerable:!0,configurable:!0}))},PIXI.Container.prototype.convertSubtreeTo2s=function(){this.convertTo2s();for(var t=0;t<this.children.length;t++)this.children[t].convertSubtreeTo2s()}}(pixi_projection||(pixi_projection={})),function(t){var e=function(e){function i(i){var r=e.call(this,i)||this;return r.aTrans=new PIXI.Matrix,r.proj=new t.ProjectionSurface(r.transform),r.pluginName="sprite_bilinear",r}return __extends(i,e),i.prototype._calculateBounds=function(){this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData)},i.prototype.calculateVertices=function(){var t=this.transform._worldID,e=this._texture._updateID;if(this._transformID!==t||this._textureID!==e){this._transformID=t,this._textureID=e;var i=this._texture,r=this.vertexData,n=i.trim,s=i.orig,a=this._anchor,o=0,l=0,h=0,u=0;if(n?(o=(l=n.x-a._x*s.width)+n.width,h=(u=n.y-a._y*s.height)+n.height):(o=(l=-a._x*s.width)+s.width,h=(u=-a._y*s.height)+s.height),this.proj._surface)r[0]=l,r[1]=u,r[2]=o,r[3]=u,r[4]=o,r[5]=h,r[6]=l,r[7]=h,this.proj._surface.boundsQuad(r,r);else{var c=this.transform.worldTransform,d=c.a,p=c.b,f=c.c,_=c.d,m=c.tx,g=c.ty;r[0]=d*l+f*u+m,r[1]=_*u+p*l+g,r[2]=d*o+f*u+m,r[3]=_*u+p*o+g,r[4]=d*o+f*h+m,r[5]=_*h+p*o+g,r[6]=d*l+f*h+m,r[7]=_*h+p*l+g,this.proj._activeProjection&&this.proj._activeProjection.surface.boundsQuad(r,r)}i.transform||(i.transform=new PIXI.extras.TextureTransform(i)),i.transform.update();var v=this.aTrans;v.set(s.width,0,0,s.height,l,u),null===this.proj._surface&&v.prepend(this.transform.worldTransform),v.invert(),v.prepend(i.transform.mapCoord)}},i.prototype.calculateTrimmedVertices=function(){var t=this.transform._worldID,e=this._texture._updateID;if(this.vertexTrimmedData){if(this._transformTrimmedID===t&&this._textureTrimmedID===e)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=t,this._textureTrimmedID=e;var i=this._texture,r=this.vertexTrimmedData,n=i.orig,s=this._anchor,a=-s._x*n.width,o=a+n.width,l=-s._y*n.height,h=l+n.height;if(this.proj._surface)r[0]=a,r[1]=l,r[2]=o,r[3]=l,r[4]=o,r[5]=h,r[6]=a,r[7]=h,this.proj._surface.boundsQuad(r,r,this.transform.worldTransform);else{var u=this.transform.worldTransform,c=u.a,d=u.b,p=u.c,f=u.d,_=u.tx,m=u.ty;r[0]=c*a+p*l+_,r[1]=f*l+d*a+m,r[2]=c*o+p*l+_,r[3]=f*l+d*o+m,r[4]=c*o+p*h+_,r[5]=f*h+d*o+m,r[6]=c*a+p*h+_,r[7]=f*h+d*a+m,this.proj._activeProjection&&this.proj._activeProjection.surface.boundsQuad(r,r,this.proj._activeProjection.legacy.worldTransform)}},Object.defineProperty(i.prototype,"worldTransform",{get:function(){return this.proj},enumerable:!0,configurable:!0}),i}(PIXI.Sprite);t.Sprite2s=e}(pixi_projection||(pixi_projection={})),function(t){var e=function(e){function i(i,r,n){var s=e.call(this,i,r,n)||this;return s.aTrans=new PIXI.Matrix,s.proj=new t.ProjectionSurface(s.transform),s.pluginName="sprite_bilinear",s}return __extends(i,e),Object.defineProperty(i.prototype,"worldTransform",{get:function(){return this.proj},enumerable:!0,configurable:!0}),i}(PIXI.Text);t.Text2s=e,e.prototype.calculateVertices=t.Sprite2s.prototype.calculateVertices,e.prototype.calculateTrimmedVertices=t.Sprite2s.prototype.calculateTrimmedVertices,e.prototype._calculateBounds=t.Sprite2s.prototype._calculateBounds}(pixi_projection||(pixi_projection={})),function(t){t.container2dWorldTransform=function(){return this.proj.affine?this.transform.worldTransform:this.proj.world};var e=function(e){function i(){var i=e.call(this)||this;return i.proj=new t.Projection2d(i.transform),i}return __extends(i,e),Object.defineProperty(i.prototype,"worldTransform",{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0}),i}(PIXI.Container);t.Container2d=e}(pixi_projection||(pixi_projection={})),function(t){var e,i,r=PIXI.Point,n=[1,0,0,0,1,0,0,0,1];(i=e=t.AFFINE||(t.AFFINE={}))[i.NONE=0]="NONE",i[i.FREE=1]="FREE",i[i.AXIS_X=2]="AXIS_X",i[i.AXIS_Y=3]="AXIS_Y",i[i.POINT=4]="POINT";var s=function(){function t(t){this.floatArray=null,this.mat3=new Float64Array(t||n)}return Object.defineProperty(t.prototype,"a",{get:function(){return this.mat3[0]},set:function(t){this.mat3[0]=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"b",{get:function(){return this.mat3[1]},set:function(t){this.mat3[1]=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"c",{get:function(){return this.mat3[3]},set:function(t){this.mat3[3]=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"d",{get:function(){return this.mat3[4]},set:function(t){this.mat3[4]=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tx",{get:function(){return this.mat3[6]},set:function(t){this.mat3[6]=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ty",{get:function(){return this.mat3[7]},set:function(t){this.mat3[7]=t},enumerable:!0,configurable:!0}),t.prototype.set=function(t,e,i,r,n,s){var a=this.mat3;return a[0]=t,a[1]=e,a[2]=0,a[3]=i,a[4]=r,a[5]=0,a[6]=n,a[7]=s,a[8]=1,this},t.prototype.toArray=function(t,e){this.floatArray||(this.floatArray=new Float32Array(9));var i=e||this.floatArray,r=this.mat3;return t?(i[0]=r[0],i[1]=r[1],i[2]=r[2],i[3]=r[3],i[4]=r[4],i[5]=r[5],i[6]=r[6],i[7]=r[7],i[8]=r[8]):(i[0]=r[0],i[1]=r[3],i[2]=r[6],i[3]=r[1],i[4]=r[4],i[5]=r[7],i[6]=r[2],i[7]=r[5],i[8]=r[8]),i},t.prototype.apply=function(t,e){e=e||new PIXI.Point;var i=this.mat3,r=t.x,n=t.y,s=1/(i[2]*r+i[5]*n+i[8]);return e.x=s*(i[0]*r+i[3]*n+i[6]),e.y=s*(i[1]*r+i[4]*n+i[7]),e},t.prototype.translate=function(t,e){var i=this.mat3;return i[0]+=t*i[2],i[1]+=e*i[2],i[3]+=t*i[5],i[4]+=e*i[5],i[6]+=t*i[8],i[7]+=e*i[8],this},t.prototype.scale=function(t,e){var i=this.mat3;return i[0]*=t,i[1]*=e,i[3]*=t,i[4]*=e,i[6]*=t,i[7]*=e,this},t.prototype.scaleAndTranslate=function(t,e,i,r){var n=this.mat3;n[0]=t*n[0]+i*n[2],n[1]=e*n[1]+r*n[2],n[3]=t*n[3]+i*n[5],n[4]=e*n[4]+r*n[5],n[6]=t*n[6]+i*n[8],n[7]=e*n[7]+r*n[8]},t.prototype.applyInverse=function(t,e){e=e||new r;var i=this.mat3,n=t.x,s=t.y,a=i[0],o=i[3],l=i[6],h=i[1],u=i[4],c=i[7],d=i[2],p=i[5],f=i[8],_=(f*u-c*p)*n+(-f*o+l*p)*s+(c*o-l*u),m=(-f*h+c*d)*n+(f*a-l*d)*s+(-c*a+l*h),g=(p*h-u*d)*n+(-p*a+o*d)*s+(u*a-o*h);return e.x=_/g,e.y=m/g,e},t.prototype.invert=function(){var t=this.mat3,e=t[0],i=t[1],r=t[2],n=t[3],s=t[4],a=t[5],o=t[6],l=t[7],h=t[8],u=h*s-a*l,c=-h*n+a*o,d=l*n-s*o,p=e*u+i*c+r*d;return p?(p=1/p,t[0]=u*p,t[1]=(-h*i+r*l)*p,t[2]=(a*i-r*s)*p,t[3]=c*p,t[4]=(h*e-r*o)*p,t[5]=(-a*e+r*n)*p,t[6]=d*p,t[7]=(-l*e+i*o)*p,t[8]=(s*e-i*n)*p,this):this},t.prototype.identity=function(){var t=this.mat3;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,this},t.prototype.clone=function(){return new t(this.mat3)},t.prototype.copyTo=function(t){var e=this.mat3,i=t.mat3;return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3],i[4]=e[4],i[5]=e[5],i[6]=e[6],i[7]=e[7],i[8]=e[8],t},t.prototype.copy=function(t,i){var r=this.mat3,n=1/r[8],s=r[6]*n,a=r[7]*n;t.a=(r[0]-r[2]*s)*n,t.b=(r[1]-r[2]*a)*n,t.c=(r[3]-r[5]*s)*n,t.d=(r[4]-r[5]*a)*n,t.tx=s,t.ty=a,i>=2&&(i===e.POINT?(t.a=1,t.b=0,t.c=0,t.d=1):i===e.AXIS_X?(t.c=-t.b,t.d=t.a):i===e.AXIS_Y&&(t.a=t.d,t.c=-t.b))},t.prototype.copyFrom=function(t){var e=this.mat3;return e[0]=t.a,e[1]=t.b,e[2]=0,e[3]=t.c,e[4]=t.d,e[5]=0,e[6]=t.tx,e[7]=t.ty,e[8]=1,this},t.prototype.setToMultLegacy=function(t,e){var i=this.mat3,r=e.mat3,n=t.a,s=t.b,a=t.c,o=t.d,l=t.tx,h=t.ty,u=r[0],c=r[1],d=r[2],p=r[3],f=r[4],_=r[5],m=r[6],g=r[7],v=r[8];return i[0]=u*n+c*a+d*l,i[1]=u*s+c*o+d*h,i[2]=d,i[3]=p*n+f*a+_*l,i[4]=p*s+f*o+_*h,i[5]=_,i[6]=m*n+g*a+v*l,i[7]=m*s+g*o+v*h,i[8]=v,this},t.prototype.setToMult2d=function(t,e){var i=this.mat3,r=t.mat3,n=e.mat3,s=r[0],a=r[1],o=r[2],l=r[3],h=r[4],u=r[5],c=r[6],d=r[7],p=r[8],f=n[0],_=n[1],m=n[2],g=n[3],v=n[4],y=n[5],b=n[6],T=n[7],x=n[8];return i[0]=f*s+_*l+m*c,i[1]=f*a+_*h+m*d,i[2]=f*o+_*u+m*p,i[3]=g*s+v*l+y*c,i[4]=g*a+v*h+y*d,i[5]=g*o+v*u+y*p,i[6]=b*s+T*l+x*c,i[7]=b*a+T*h+x*d,i[8]=b*o+T*u+x*p,this},t.IDENTITY=new t,t.TEMP_MATRIX=new t,t}();t.Matrix2d=s}(pixi_projection||(pixi_projection={})),function(t){function e(t){var e=this.proj,i=this,r=t._worldID,n=i.localTransform;i._localID!==i._currentLocalID&&(n.a=i._cx*i.scale._x,n.b=i._sx*i.scale._x,n.c=i._cy*i.scale._y,n.d=i._sy*i.scale._y,n.tx=i.position._x-(i.pivot._x*n.a+i.pivot._y*n.c),n.ty=i.position._y-(i.pivot._x*n.b+i.pivot._y*n.d),i._currentLocalID=i._localID,e._currentProjID=-1);var s=e._projID;if(e._currentProjID!==s&&(e._currentProjID=s,0!==s?e.local.setToMultLegacy(n,e.matrix):e.local.copyFrom(n),i._parentID=-1),i._parentID!==r){var a=t.proj;a&&!a.affine?e.world.setToMult2d(a.world,e.local):e.world.setToMultLegacy(t.worldTransform,e.local),e.world.copy(i.worldTransform,e._affine),i._parentID=r,i._worldID++}}var i=new PIXI.Point,r=[new PIXI.Point,new PIXI.Point,new PIXI.Point,new PIXI.Point],n=new PIXI.Rectangle,s=new t.Matrix2d,a=function(a){function o(e,i){var r=a.call(this,e,i)||this;return r.matrix=new t.Matrix2d,r.local=new t.Matrix2d,r.world=new t.Matrix2d,r._projID=0,r._currentProjID=-1,r._affine=t.AFFINE.NONE,r}return __extends(o,a),Object.defineProperty(o.prototype,"affine",{get:function(){return this._affine},set:function(t){this._affine!=t&&(this._affine=t,this._currentProjID=-1)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"enabled",{set:function(t){t!==this._enabled&&(this._enabled=t,t?(this.legacy.updateTransform=e,this.legacy._parentID=-1):(this.legacy.updateTransform=PIXI.TransformStatic.prototype.updateTransform,this.legacy._parentID=-1))},enumerable:!0,configurable:!0}),o.prototype.setAxisX=function(t,e){void 0===e&&(e=1);var i=t.x,r=t.y,n=Math.sqrt(i*i+r*r),s=this.matrix.mat3;s[0]=i/n,s[1]=r/n,s[2]=e/n,this._projID++},o.prototype.setAxisY=function(t,e){void 0===e&&(e=1);var i=t.x,r=t.y,n=Math.sqrt(i*i+r*r),s=this.matrix.mat3;s[3]=i/n,s[4]=r/n,s[5]=e/n,this._projID++},o.prototype.mapSprite=function(t,e){var i=t.texture;return n.x=-t.anchor.x*i.orig.width,n.y=-t.anchor.y*i.orig.height,n.width=i.orig.width,n.height=i.orig.height,this.mapQuad(n,e)},o.prototype.mapQuad=function(e,n){r[0].set(e.x,e.y),r[1].set(e.x+e.width,e.y),r[2].set(e.x+e.width,e.y+e.height),r[3].set(e.x,e.y+e.height);var a=1,o=2,l=3;if(0!==t.utils.getIntersectionFactor(n[0],n[2],n[1],n[3],i)){a=1,o=3,l=2;var h=Math.sqrt((n[0].x-i.x)*(n[0].x-i.x)+(n[0].y-i.y)*(n[0].y-i.y)),u=Math.sqrt((n[a].x-i.x)*(n[a].x-i.x)+(n[a].y-i.y)*(n[a].y-i.y)),c=Math.sqrt((n[o].x-i.x)*(n[o].x-i.x)+(n[o].y-i.y)*(n[o].y-i.y)),d=Math.sqrt((n[l].x-i.x)*(n[l].x-i.x)+(n[l].y-i.y)*(n[l].y-i.y)),p=(h+d)/d,f=(u+c)/c,_=(u+c)/u,m=this.matrix.mat3;m[0]=r[0].x*p,m[1]=r[0].y*p,m[2]=p,m[3]=r[a].x*f,m[4]=r[a].y*f,m[5]=f,m[6]=r[o].x*_,m[7]=r[o].y*_,m[8]=_,this.matrix.invert(),(m=s.mat3)[0]=n[0].x,m[1]=n[0].y,m[2]=1,m[3]=n[a].x,m[4]=n[a].y,m[5]=1,m[6]=n[o].x,m[7]=n[o].y,m[8]=1,this.matrix.setToMult2d(s,this.matrix),this._projID++}},o.prototype.clear=function(){this._currentProjID=-1,this._projID=0,this.matrix.identity()},o}(t.Projection);t.Projection2d=a}(pixi_projection||(pixi_projection={})),function(t){var e=function(e){function i(i,r,n,s,a){var o=e.call(this,i,r,n,s,a)||this;return o.proj=new t.Projection2d(o.transform),o.pluginName="mesh2d",o}return __extends(i,e),Object.defineProperty(i.prototype,"worldTransform",{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0}),i}(PIXI.mesh.Mesh);t.Mesh2d=e}(pixi_projection||(pixi_projection={})),function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.onContextChange=function(){var t=this.renderer.gl;this.shader=new PIXI.Shader(t,"precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position.xyw = projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0);\n gl_Position.z = 0.0;\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n","\nvarying vec2 vTextureCoord;\nuniform vec4 uColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;\n}")},e}(PIXI.mesh.MeshRenderer);t.Mesh2dRenderer=e,PIXI.WebGLRenderer.registerPlugin("mesh2d",e)}(pixi_projection||(pixi_projection={})),function(t){PIXI.Sprite.prototype.convertTo2d=function(){this.proj||(this.calculateVertices=t.Sprite2d.prototype.calculateVertices,this.calculateTrimmedVertices=t.Sprite2d.prototype.calculateTrimmedVertices,this._calculateBounds=t.Sprite2d.prototype._calculateBounds,this.proj=new t.Projection2d(this.transform),this.pluginName="sprite2d",this.vertexData=new Float32Array(12),Object.defineProperty(this,"worldTransform",{get:t.container2dWorldTransform,enumerable:!0,configurable:!0}))},PIXI.mesh.Mesh.prototype.convertTo2d=function(){this.proj||(this.proj=new t.Projection2d(this.transform),this.pluginName="mesh2d",Object.defineProperty(this,"worldTransform",{get:t.container2dWorldTransform,enumerable:!0,configurable:!0}))},PIXI.Container.prototype.convertTo2d=function(){this.proj||(this.proj=new t.Projection2d(this.transform),Object.defineProperty(this,"worldTransform",{get:t.container2dWorldTransform,enumerable:!0,configurable:!0}))},PIXI.Container.prototype.convertSubtreeTo2d=function(){this.convertTo2d();for(var t=0;t<this.children.length;t++)this.children[t].convertSubtreeTo2d()}}(pixi_projection||(pixi_projection={})),function(t){var e=function(e){function i(i){var r=e.call(this,i)||this;return r.proj=new t.Projection2d(r.transform),r.pluginName="sprite2d",r.vertexData=new Float32Array(12),r}return __extends(i,e),i.prototype._calculateBounds=function(){this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData)},i.prototype.calculateVertices=function(){if(this.proj._affine)return 8!=this.vertexData.length&&(this.vertexData=new Float32Array(8)),void e.prototype.calculateVertices.call(this);12!=this.vertexData.length&&(this.vertexData=new Float32Array(12));var t=this.transform._worldID,i=this._texture._updateID;if(this._transformID!==t||this._textureID!==i){this._transformID=t,this._textureID=i;var r=this._texture,n=this.proj.world.mat3,s=this.vertexData,a=r.trim,o=r.orig,l=this._anchor,h=0,u=0,c=0,d=0;a?(h=(u=a.x-l._x*o.width)+a.width,c=(d=a.y-l._y*o.height)+a.height):(h=(u=-l._x*o.width)+o.width,c=(d=-l._y*o.height)+o.height),s[0]=n[0]*u+n[3]*d+n[6],s[1]=n[1]*u+n[4]*d+n[7],s[2]=n[2]*u+n[5]*d+n[8],s[3]=n[0]*h+n[3]*d+n[6],s[4]=n[1]*h+n[4]*d+n[7],s[5]=n[2]*h+n[5]*d+n[8],s[6]=n[0]*h+n[3]*c+n[6],s[7]=n[1]*h+n[4]*c+n[7],s[8]=n[2]*h+n[5]*c+n[8],s[9]=n[0]*u+n[3]*c+n[6],s[10]=n[1]*u+n[4]*c+n[7],s[11]=n[2]*u+n[5]*c+n[8]}},i.prototype.calculateTrimmedVertices=function(){if(this.proj._affine)e.prototype.calculateTrimmedVertices.call(this);else{var t=this.transform._worldID,i=this._texture._updateID;if(this.vertexTrimmedData){if(this._transformTrimmedID===t&&this._textureTrimmedID===i)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=t,this._textureTrimmedID=i;var r=this._texture,n=this.vertexTrimmedData,s=r.orig,a=this._anchor,o=this.proj.world.mat3,l=-a._x*s.width,h=l+s.width,u=-a._y*s.height,c=u+s.height,d=1/(o[2]*l+o[5]*u+o[8]);n[0]=d*(o[0]*l+o[3]*u+o[6]),n[1]=d*(o[1]*l+o[4]*u+o[7]),d=1/(o[2]*h+o[5]*u+o[8]),n[2]=d*(o[0]*h+o[3]*u+o[6]),n[3]=d*(o[1]*h+o[4]*u+o[7]),d=1/(o[2]*h+o[5]*c+o[8]),n[4]=d*(o[0]*h+o[3]*c+o[6]),n[5]=d*(o[1]*h+o[4]*c+o[7]),d=1/(o[2]*l+o[5]*c+o[8]),n[6]=d*(o[0]*l+o[3]*c+o[6]),n[7]=d*(o[1]*l+o[4]*c+o[7])}},Object.defineProperty(i.prototype,"worldTransform",{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0}),i}(PIXI.Sprite);t.Sprite2d=e}(pixi_projection||(pixi_projection={})),function(t){var e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shaderVert="precision highp float;\nattribute vec3 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position.xyw = projectionMatrix * aVertexPosition;\n gl_Position.z = 0.0;\n \n vTextureCoord = aTextureCoord;\n vTextureId = aTextureId;\n vColor = aColor;\n}\n",e.shaderFrag="\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\nuniform sampler2D uSamplers[%count%];\n\nvoid main(void){\nvec4 color;\nvec2 textureCoord = vTextureCoord;\nfloat textureId = floor(vTextureId+0.5);\n%forloop%\ngl_FragColor = color * vColor;\n}",e}return __extends(e,t),e.prototype.createVao=function(t){var e=this.shader.attributes;this.vertSize=6,this.vertByteSize=4*this.vertSize;var i=this.renderer.gl,r=this.renderer.createVao().addIndex(this.indexBuffer).addAttribute(t,e.aVertexPosition,i.FLOAT,!1,this.vertByteSize,0).addAttribute(t,e.aTextureCoord,i.UNSIGNED_SHORT,!0,this.vertByteSize,12).addAttribute(t,e.aColor,i.UNSIGNED_BYTE,!0,this.vertByteSize,16);return e.aTextureId&&r.addAttribute(t,e.aTextureId,i.FLOAT,!1,this.vertByteSize,20),r},e.prototype.fillVertices=function(t,e,i,r,n,s){var a=r.vertexData,o=r._texture._uvs.uvsUint32;if(8===a.length)if(this.renderer.roundPixels){var l=this.renderer.resolution;t[i]=(a[0]*l|0)/l,t[i+1]=(a[1]*l|0)/l,t[i+2]=1,t[i+6]=(a[2]*l|0)/l,t[i+7]=(a[3]*l|0)/l,t[i+8]=1,t[i+12]=(a[4]*l|0)/l,t[i+13]=(a[5]*l|0)/l,t[i+14]=1,t[i+18]=(a[6]*l|0)/l,t[i+19]=(a[7]*l|0)/l,t[i+20]=1}else t[i]=a[0],t[i+1]=a[1],t[i+2]=1,t[i+6]=a[2],t[i+7]=a[3],t[i+8]=1,t[i+12]=a[4],t[i+13]=a[5],t[i+14]=1,t[i+18]=a[6],t[i+19]=a[7],t[i+20]=1;else t[i]=a[0],t[i+1]=a[1],t[i+2]=a[2],t[i+6]=a[3],t[i+7]=a[4],t[i+8]=a[5],t[i+12]=a[6],t[i+13]=a[7],t[i+14]=a[8],t[i+18]=a[9],t[i+19]=a[10],t[i+20]=a[11];e[i+3]=o[0],e[i+9]=o[1],e[i+15]=o[2],e[i+21]=o[3],e[i+4]=e[i+10]=e[i+16]=e[i+22]=n,t[i+5]=t[i+11]=t[i+17]=t[i+23]=s},e}((pixi_projection||(pixi_projection={})).webgl.MultiTextureSpriteRenderer);PIXI.WebGLRenderer.registerPlugin("sprite2d",e)}(),function(t){var e=function(e){function i(i,r,n){var s=e.call(this,i,r,n)||this;return s.proj=new t.Projection2d(s.transform),s.pluginName="sprite2d",s.vertexData=new Float32Array(12),s}return __extends(i,e),Object.defineProperty(i.prototype,"worldTransform",{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0}),i}(PIXI.Text);t.Text2d=e,e.prototype.calculateVertices=t.Sprite2d.prototype.calculateVertices,e.prototype.calculateTrimmedVertices=t.Sprite2d.prototype.calculateTrimmedVertices,e.prototype._calculateBounds=t.Sprite2d.prototype._calculateBounds}(pixi_projection||(pixi_projection={})),function(t){var e=function(){function t(t){var e=this;this.onContextChange=function(t){e.gl=t,e.renderer.maskManager.pushSpriteMask=i},this.renderer=t,t.on("context",this.onContextChange)}return t.prototype.destroy=function(){this.renderer.off("context",this.onContextChange)},t}();function i(e,i){var r=this.alphaMaskPool[this.alphaMaskIndex];r||(r=this.alphaMaskPool[this.alphaMaskIndex]=[new t.SpriteMaskFilter2d(i)]),r[0].resolution=this.renderer.resolution,r[0].maskSprite=i,e.filterArea=i.getBounds(!0),this.renderer.filterManager.pushFilter(e,r),this.alphaMaskIndex++}t.ProjectionsManager=e,PIXI.WebGLRenderer.registerPlugin("projections",e)}(pixi_projection||(pixi_projection={})),function(t){var e="\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 otherMatrix;\n\nvarying vec3 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n\tgl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n\tvTextureCoord = aTextureCoord;\n\tvMaskCoord = otherMatrix * vec3( aTextureCoord, 1.0);\n}\n",i="\nvarying vec3 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float alpha;\nuniform sampler2D mask;\n\nvoid main(void)\n{\n vec2 uv = vMaskCoord.xy / vMaskCoord.z;\n \n vec2 text = abs( uv - 0.5 );\n text = step(0.5, text);\n\n float clip = 1.0 - max(text.y, text.x);\n vec4 original = texture2D(uSampler, vTextureCoord);\n vec4 masky = texture2D(mask, uv);\n\n original *= (masky.r * masky.a * alpha * clip);\n\n gl_FragColor = original;\n}\n",r=new t.Matrix2d,n=function(n){function s(r){var s=n.call(this,e,i)||this;return s.maskMatrix=new t.Matrix2d,r.renderable=!1,s.maskSprite=r,s}return __extends(s,n),s.prototype.apply=function(t,e,i,r,n){var a=this.maskSprite;this.uniforms.mask=a.texture,this.uniforms.otherMatrix=s.calculateSpriteMatrix(n,this.maskMatrix,a),this.uniforms.alpha=a.worldAlpha,t.applyFilter(this,e,i)},s.calculateSpriteMatrix=function(t,e,i){var n=i.proj,s=t.sourceFrame,a=t.renderTarget.size,o=n&&!n._affine?n.world.copyTo(r):r.copyFrom(i.transform.worldTransform),l=i.texture.orig;return e.set(a.width,0,0,a.height,s.x,s.y),o.invert(),e.setToMult2d(o,e),e.scaleAndTranslate(1/l.width,1/l.height,i.anchor.x,i.anchor.y),e},s}(PIXI.Filter);t.SpriteMaskFilter2d=n}(pixi_projection||(pixi_projection={})),(EHDI=EHDI||Object.create(null)).onWindowLoad=function(){EHDI.GAME=Object.create(null),EHDI.GAME.id=GAMEID,EHDI.GAME.language="en",EHDI.sbGame=new SuperbookGame(EHDI.GAME.id,"state",EHDI.init),EHDI.sbGame.renderGameArea();var t=EHDI.sbGame.getVendorGameElement();EHDI.canvas=document.createElement("canvas"),EHDI.canvas.id="game-canvas",EHDI.canvas.width=t.style.width,EHDI.canvas.height=t.style.height,t.appendChild(EHDI.canvas),EHDI.sbGame.start()},EHDI.init=function(){EHDI.GAME.sceneManager=EHDI.SceneManager(1024,600),console.log("Is WebGL Supported = "+PIXI.utils.isWebGLSupported());var t=function(){var t,e,i,r,n=EHDI.sbGame.getVendorGameElement(),s=n.offsetWidth/EHDI.GAME.sceneManager.defaultWidth,a=n.offsetHeight/EHDI.GAME.sceneManager.defaultHeight,o=Math.min(s,a);if(t=Math.ceil(EHDI.GAME.sceneManager.defaultWidth*o),e=Math.ceil(EHDI.GAME.sceneManager.defaultHeight*o),(i=EHDI.GAME.sceneManager.getStage()).scale.x=i.scale.y=o,EHDI.GAME.sceneManager.getRenderer().resize(t,e),(r=EHDI.GAME.sceneManager.getRenderer().view).style.paddingLeft=0,r.style.paddingRight=0,r.style.paddingTop=0,r.style.paddingBottom=0,r.style.display="block",r.style.position="absolute",r.style.top=0,r.style.left=0,r.style.right=0,r.style.bottom=0,t<n.offsetWidth){var l=(n.offsetWidth-t)/2;r.style.left=l+"px",r.style.right=l+"px"}if(e<n.offsetHeight){l=(n.offsetHeight-e)/2;r.style.top=l+"px",r.style.bottom=l+"px"}window.scrollTo(0,0)};EHDI.sbGame.resizeCallback=t,t(),EHDI.GAME.storageManager=EHDI.StorageManager(),EHDI.GAME.updateManager=new EHDI.UpdateManager(EHDI.GAME.sceneManager.getRenderer(),EHDI.GAME.sceneManager.getStage()),EHDI.GAME.soundManager=EHDI.SoundManager(!0);var e=EHDI.GAME.storageManager.getLocalInfo(EHDI.GAME.id)||{isMuted:!1};EHDI.GAME.storageManager.setLocalInfo(EHDI.GAME.id,e),EHDI.GAME.soundManager.setMute(e.isMuted);var i=function(){EHDI.LoadManager.queueAssets(AssetDirectory.preloader),EHDI.LoadManager.start(function(){var t=[];this.fontObserve=[];for(var e=0;e<EHDI.Assets.fonts.length;e++)this.fontObserve[e]=new FontFaceObserver(EHDI.Assets.fonts[e]),t.push(this.fontObserve[e].load(null,8e3));Promise.all(t).then(function(){EHDI.loadScene()})})};EHDI.sbGame.loadGameData(void 0,function(t){EHDI.GAME.saveData="object"==typeof t?t:{highScore:0,isFirstTimePlay:!0},i()},function(){EHDI.GAME.saveData={highScore:0,isFirstTimePlay:!0},i()})},EHDI.aka={AutoDetectRenderer:PIXI.autoDetectRenderer,CanvasRenderer:PIXI.CanvasRenderer,GLRenderer:PIXI.WebGLRenderer,DisplayObject:PIXI.DisplayObject,AbstractFilter:PIXI.Filter,Container:PIXI.Container,Sprite:PIXI.Sprite,Point:PIXI.Point,AnimatedSprite:PIXI.extras.AnimatedSprite,PixiText:PIXI.Text,PixiFilters:PIXI.filters,TextureCache:PIXI.utils.TextureCache,Loader:PIXI.loader,Graphics:PIXI.Graphics,Ticker:PIXI.ticker.Ticker,Rectangle:PIXI.Rectangle,TilingSprite:PIXI.extras.TilingSprite,ParticleContainer:PIXI.particles.ParticleContainer,Container2d:PIXI.projection.Container2d,Sprite2d:PIXI.projection.Sprite2d},EHDI.config={isTransition:!1},(EHDI=EHDI||Object.create(null)).displays=EHDI.displays||Object.create(null),EHDI.displays.Button=function(t){this.pointerUp=t,this.pointerDown=arguments.length<=1||void 0===arguments[1]?void 0:arguments[1],this.mouseOver=arguments.length<=2||void 0===arguments[2]?void 0:arguments[2],this.disabledTexture=arguments.length<=3||void 0===arguments[3]?void 0:arguments[3],this.scaleOnPointerDown=arguments.length<=4||void 0===arguments[4]?void 0:arguments[4];var e=!1;this.onClickFunction=null,this.baseScale={x:1,y:1},PIXI.Sprite.call(this,t),this.sfx=null,this.isDisabled=function(){return e},this.setDisabled=function(t){e=t},this.interactive=!0,this.anchor.x=.5,this.anchor.y=.5,this.hitArea=new PIXI.Rectangle(.5*-this.width,.5*-this.height,this.width,this.height)},EHDI.displays.Button.prototype=Object.create(EHDI.aka.Sprite.prototype),EHDI.displays.Button.prototype.touchstart=function(t){!0!==this.isDisabled()&&(this.isTouched=!0,this.touchID=t.data.identifier,this.pointerDown&&(this.texture=this.pointerDown),this.scaleOnPointerDown&&(this.baseScale.x=this.scale.x,this.baseScale.y=this.scale.y,this.scale.x=this.scaleOnPointerDown,this.scale.y=this.scaleOnPointerDown))},EHDI.displays.Button.prototype.touchend=function(t){!0!==this.isDisabled()&&(this.pointerUp&&(this.texture=this.pointerUp),this.scaleOnPointerDown&&(this.scale.x=this.baseScale.x,this.scale.y=this.baseScale.y))},EHDI.displays.Button.prototype.touchendoutside=function(t){this.touchID===t.data.identifier&&!0!==this.isDisabled()&&(this.pointerUp&&(this.texture=this.pointerUp),this.scaleOnPointerDown&&(this.scale.x=this.baseScale.x,this.scale.y=this.baseScale.y),this.isTouched=!1)},EHDI.displays.Button.prototype.tap=function(t){!0!==this.isDisabled()&&!0!==EHDI.config.isTransition&&(this.onClickFunction&&this.isTouched&&this.onClickFunction.apply(null,this.onClickArgs),this.isTouched=!1)},EHDI.displays.Button.prototype.mouseover=function(t){!0!==this.isDisabled()&&this.mouseOver&&(this.texture=this.mouseOver)},EHDI.displays.Button.prototype.mouseout=function(t){!0!==this.isDisabled()&&(this.pointerUp&&(this.texture=this.pointerUp),this.scaleOnPointerDown&&(this.scale.x=this.baseScale.x,this.scale.y=this.baseScale.y))},EHDI.displays.Button.prototype.mousedown=function(t){!0!==this.isDisabled()&&(this.pointerDown&&(this.texture=this.pointerDown),this.scaleOnPointerDown&&(this.baseScale.x=this.scale.x,this.baseScale.y=this.scale.y,this.scale.x=this.scaleOnPointerDown,this.scale.y=this.scaleOnPointerDown))},EHDI.displays.Button.prototype.mouseup=function(t){!0!==this.isDisabled()&&(this.pointerUp&&(this.texture=this.pointerUp),this.scaleOnPointerDown&&(this.scale.x=this.baseScale.x,this.scale.y=this.baseScale.y))},EHDI.displays.Button.prototype.click=function(t){!0!==this.isDisabled()&&!0!==EHDI.config.isTransition&&this.onClickFunction&&this.onClickFunction.apply(null,this.onClickArgs)},EHDI.displays.Button.prototype.mouseupoutside=function(t){!0!==this.isDisabled()&&(this.pointerUp&&(this.texture=this.pointerUp),this.scaleOnPointerDown&&(this.scale.x=this.baseScale.x,this.scale.y=this.baseScale.y))},EHDI.displays.Button.prototype.disable=function(t){this.setDisabled(t),this.disabledTexture&&t?(this.texture=this.disabledTexture,this.scaleOnPointerDown&&(this.scale.x=this.baseScale.x,this.scale.y=this.baseScale.y)):this.pointerUp&&!t&&(this.texture=this.pointerUp,this.scaleOnPointerDown&&(this.scale.x=this.baseScale.x,this.scale.y=this.baseScale.y))},EHDI.displays.Button.defaultSFX=null,EHDI.displays.Button.prototype.setSFX=function(t){this.sfx=t},EHDI.displays.Button.prototype.setOnClickFunction=function(t){this.onClickFunction=t,this.onClickArgs=arguments.length<=1||void 0===arguments[1]?[]:arguments[1]},EHDI.displays.Button.prototype.destroy=function(){delete this.pointerUp,delete this.pointerDown,delete this.mouseOver,delete this.disabledTexture,delete this.onClickFunction,delete this.baseScale,EHDI.aka.Sprite.prototype.destroy.apply(this,arguments)},EHDI.displays.Button.prototype.dispose=function(){delete this.pointerUp,delete this.pointerDown,delete this.mouseOver,delete this.disabledTexture,delete this.onClickFunction,delete this.baseScale,this.destroy({children:!0})},(EHDI=EHDI||Object.create(null)).displays=EHDI.displays||Object.create(null),EHDI.displays.FillRectangle=function(t,e,i,r,n){var s=arguments.length<=4||void 0===arguments[5]?1:arguments[5],a=new PIXI.Graphics;a._sprite=null,a._width=r,a._height=n,a._color=t;var o,l,h;o=a._width,l=a._height,h=a._color,a.clear(),a.beginFill(h),a.drawRect(0,0,o,l),a.endFill();var u=a.generateCanvasTexture(1),c=new EHDI.aka.Sprite(u);return c.position.set(e,i),c.alpha=s,a.sprite=c,c},EHDI.displays.changeRectangleColor=function(t,e,i){arguments.length<=4||void 0===arguments[5]||arguments[5];var r=new PIXI.Graphics;r._sprite=null,r._width=e,r._height=i,r._color=t;var n,s,a;return n=r._width,s=r._height,a=r._color,r.clear(),r.beginFill(a),r.drawRect(0,0,n,s),r.endFill(),r.generateCanvasTexture(1)},(EHDI=EHDI||Object.create(null)).displays=EHDI.displays||Object.create(null),EHDI.displays.TextSprite=function(t){EHDI.aka.PixiText.call(this,t.TEXT,t.STYLE)},EHDI.displays.TextSprite.prototype=Object.create(EHDI.aka.PixiText.prototype),(EHDI=EHDI||Object.create(null)).displays=EHDI.displays||Object.create(null),EHDI.displays.ToggleButton=function(t,e,i,r){this.active=!(arguments.length<=4||void 0===arguments[4])&&arguments[4],this.scaleOnPointerDown=arguments.length<=5||void 0===arguments[5]?1:arguments[5],this.baseScale={x:1,y:1},this.inactivePointerUp=t,this.inactivePointerDown=e,this.activePointerUp=i,this.activePointerDown=r,this.onClickFunction=null,!1===this.active?PIXI.Sprite.call(this,t):PIXI.Sprite.call(this,i),this.interactive=!0,this.anchor.x=.5,this.anchor.y=.5},EHDI.displays.ToggleButton.prototype=Object.create(PIXI.Sprite.prototype),EHDI.displays.ToggleButton.prototype.touchstart=function(t){!1===this.active?this.texture=this.inactivePointerDown:this.texture=this.activePointerDown,this.scaleOnPointerDown&&(this.baseScale.x=this.scale.x,this.baseScale.y=this.scale.y,this.scale.x=this.scaleOnPointerDown,this.scale.y=this.scaleOnPointerDown)},EHDI.displays.ToggleButton.prototype.touchend=function(t){!1===this.active?this.texture=this.inactivePointerUp:this.texture=this.activePointerUp,this.scaleOnPointerDown&&(this.scale.x=this.baseScale.x,this.scale.y=this.baseScale.y)},EHDI.displays.ToggleButton.prototype.touchendoutside=function(t){!1===this.active?this.texture=this.inactivePointerUp:this.texture=this.activePointerUp,this.scaleOnPointerDown&&(this.scale.x=this.baseScale.x,this.scale.y=this.baseScale.y)},EHDI.displays.ToggleButton.prototype.tap=function(t){this.active=!this.active,!1===this.active?this.texture=this.inactivePointerUp:this.texture=this.activePointerUp,this.scaleOnPointerDown&&(this.scale.x=this.baseScale.x,this.scale.y=this.baseScale.y),this.onClickFunction&&this.onClickFunction(this.active)},EHDI.displays.ToggleButton.prototype.mouseout=function(t){!1===this.active?this.texture=this.inactivePointerUp:this.texture=this.activePointerUp,this.scaleOnPointerDown&&(this.scale.x=this.baseScale.x,this.scale.y=this.baseScale.y)},EHDI.displays.ToggleButton.prototype.mousedown=function(t){!1===this.active?this.texture=this.inactivePointerDown:this.texture=this.activePointerDown,this.scaleOnPointerDown&&(this.baseScale.x=this.scale.x,this.baseScale.y=this.scale.y,this.scale.x=this.scaleOnPointerDown,this.scale.y=this.scaleOnPointerDown)},EHDI.displays.ToggleButton.prototype.mouseup=function(t){!1===this.active?this.texture=this.inactivePointerUp:this.texture=this.activePointerUp,this.scaleOnPointerDown&&(this.scale.x=this.baseScale.x,this.scale.y=this.baseScale.y)},EHDI.displays.ToggleButton.prototype.click=function(t){this.active=!this.active,!1===this.active?this.texture=this.inactivePointerUp:this.texture=this.activePointerUp,this.scaleOnPointerDown&&(this.scale.x=this.baseScale.x,this.scale.y=this.baseScale.y),this.onClickFunction&&this.onClickFunction(this.active)},EHDI.displays.ToggleButton.prototype.mouseupoutside=function(t){!1===this.active?this.texture=this.inactivePointerUp:this.texture=this.activePointerUp,this.scaleOnPointerDown&&(this.scale.x=this.baseScale.x,this.scale.y=this.baseScale.y)},EHDI.displays.Button.prototype.destroy=function(){delete this.pointerUp,delete this.pointerDown,delete this.mouseOver,delete this.disabledTexture,delete this.onClickFunction,delete this.baseScale,EHDI.aka.Sprite.prototype.destroy.apply(this,arguments)},EHDI.displays.ToggleButton.prototype.dispose=function(){delete this.inactivePointerUp,delete this.inactivePointerDown,delete this.activePointerUp,delete this.activePointerDown,delete this.onClickFunction,delete this.baseScale,this.destroy({children:!0})},EHDI.displays.ToggleButton.prototype.setOnClickFunction=function(t){this.onClickFunction=t},(EHDI=EHDI||Object.create(null)).components=EHDI.components||Object.create(null),EHDI.components.HighScoreHolder=function(t,e){var i=new EHDI.aka.Container;t.addChild(i);var r=new EHDI.aka.Sprite(EHDI.Assets.images.gfx_container);i.addChild(r);var n=new EHDI.displays.TextSprite(EHDI.GAME.jsonManager.getLocale("STR_CONT_BEST"));n.anchor.x=.5,n.anchor.y=.5,n.position.set(.169*r.width,.4*r.height),i.addChild(n);var s=new EHDI.displays.TextSprite(EHDI.GAME.jsonManager.getLocale("STR_CONT_BESTSCORE"));s.text=""+e,s.anchor.x=.5,s.anchor.y=.5,s.position.set(.675*r.width,.45*r.height),i.addChild(s);return{setXY:function(t,e){i.position.set(t,e)},dispose:function(){onScoreTimeline.kill()}}},(EHDI=EHDI||Object.create(null)).components=EHDI.components||Object.create(null),EHDI.components.pauseButton=function(){EHDI.displays.Button.call(this,EHDI.Assets.images.btn_pause,EHDI.Assets.images.btn_pause2,null,null),this.isPaused=!1,this.isEndGame=!1,EHDI.GAME.soundManager.autoResumeToggle(!1),this.setOnClickFunction(this.sfxThenPause.bind(this)),this.position.set(.95*EHDI.GAME.sceneManager.getStageWidth(),.075*EHDI.GAME.sceneManager.getStageHeight()),EHDI.GAME.pauseButton=this,this.pauseTheGame=EHDI.GAME.pauseButton.pauseGame.bind(EHDI.GAME.pauseButton).bind(EHDI.GAME.pauseButton),this.checkIfInterrupt=EHDI.GAME.pauseButton.checkInterrupt.bind(EHDI.GAME.pauseButton),window.addEventListener("blur",this.pauseTheGame),window.addEventListener("pagehide",this.pauseTheGame),window.addEventListener("webkitvisibilitychange",this.checkIfInterrupt),window.addEventListener("visibilitychange",this.checkIfInterrupt)},EHDI.components.pauseButton.prototype=Object.create(EHDI.displays.Button.prototype),EHDI.components.pauseButton.prototype.sfxThenPause=function(){this.pauseGame(),EHDI.GAME.soundManager.playSFX("button_sfx")},EHDI.components.pauseButton.prototype.checkInterrupt=function(){(window.document.webkitHidden||window.document.hidden)&&this.pauseGame()},EHDI.components.pauseButton.prototype.pauseGame=function(){this.isPaused||this.isEndGame||(this.isPaused=!0,this.emit("PAUSE_GAME"),EHDI.GAME.sceneManager.pushPopUp(new EHDI.popup.PausePopUp(!0),{y:new EHDI.scene.TransitionParameter(-EHDI.GAME.sceneManager.getStageHeight(),.5*EHDI.GAME.sceneManager.getStageHeight()),duration:.25}))},EHDI.components.pauseButton.prototype.resumeGame=function(){this.isPaused=!1,this.isEndGame||this.emit("RESUME_GAME")},EHDI.components.pauseButton.prototype.endGame=function(){this.isEndGame=!0,window.removeEventListener("blur",this.pauseTheGame),window.removeEventListener("pagehide",this.pauseTheGame),window.removeEventListener("webkitvisibilitychange",this.checkIfInterrupt),window.removeEventListener("visibilitychange",this.checkIfInterrupt)},EHDI.components.pauseButton.prototype.destroy=function(){window.removeEventListener("blur",this.pauseTheGame),window.removeEventListener("pagehide",this.pauseTheGame),window.removeEventListener("webkitvisibilitychange",this.checkIfInterrupt),window.removeEventListener("visibilitychange",this.checkIfInterrupt),this.pauseTheGame=null,this.checkIfInterrupt=null,EHDI.GAME.pauseButton=null,this.isPaused=null,this.isEndGame=null,EHDI.GAME.soundManager.autoResumeToggle(!0),EHDI.aka.Sprite.prototype.destroy.apply(this,arguments)},EHDI.components.pauseButton.prototype.hidePauseButton=function(){TweenLite.to(this,.25,{y:-this.y})},(EHDI=EHDI||Object.create(null)).components=EHDI.components||Object.create(null),EHDI.components.ScoreManager=function(t){var e=0,i=new EHDI.aka.Container;t.addChild(i);var r=new EHDI.aka.Sprite(EHDI.Assets.images.gfx_container);i.addChild(r);var n=new EHDI.displays.TextSprite(EHDI.GAME.jsonManager.getLocale("STR_CONT_SCORETITLE"));n.anchor.x=.5,n.anchor.y=.5,n.position.set(.169*r.width,.4*r.height),i.addChild(n);var s=new EHDI.displays.TextSprite(EHDI.GAME.jsonManager.getLocale("STR_CONT_SCOREVALUE"));s.anchor.x=.5,s.anchor.y=.5,s.position.set(.675*r.width,.45*r.height),i.addChild(s);var a=new EHDI.aka.Sprite(EHDI.Assets.images.gfx_container_white);i.addChild(a),a.alpha=0,a.visible=!1;var o=new EHDI.aka.Sprite(EHDI.Assets.images.gfx_flare_star);o.anchor.set(.5,.5),o.position.set(n.x,n.y),o.scale.set(0,0),i.addChild(o);var l=new EHDI.aka.Sprite(EHDI.Assets.images.gfx_flare_long);l.anchor.set(.5,.5),l.position.set(.5*r.width,.4*r.height),l.scale.set(0,1),i.addChild(l);var h=function(t){l.visible=t,o.visible=t},u=function(t){a.visible=t};h();var c=new TimelineMax;c.to(s.scale,.1,{x:1.5,y:1.5}),c.to(s.scale,.1,{x:1,y:1}),c.addCallback(h,"+=0",[!0]),c.addCallback(u,"+=0",[!0]),c.to(o.scale,.1,{x:1,y:1,ease:Power0.easeNone}),c.to(l.scale,.2,{x:1,y:1,ease:Power0.easeNone},"-=0.1"),c.to(a,.05,{alpha:.75}),c.to(o,.15,{x:.9*r.width,rotation:5,ease:Power0.easeNone},"-=0.15"),c.to(a,.1,{alpha:0},"-=0.025"),c.addCallback(u,"-=0.05",[!1]),c.addCallback(h,"+=0.025",[!1]),c.pause();return{addScore:function(t){e+=t,s.text=e,c.restart(),c.play(),EHDI.GAME.soundManager.playSFX("score_points")},getScore:function(){return e},setXY:function(t,e){i.position.set(t,e)},dispose:function(){c.kill(),null!=i.parent&&i.parent.removeChild(i)}}},(EHDI=EHDI||Object.create(nul)).components=EHDI.components||Object.create(null),EHDI.components.Timer=function(){EHDI.aka.Container.call(this),this.timeLeft=20,this.containerSprite=new EHDI.aka.Sprite(EHDI.Assets.images.gfx_container),this.addChild(this.containerSprite);var t=new EHDI.displays.TextSprite(EHDI.GAME.jsonManager.getLocale("STR_CONT_TIMERTITLE"));t.anchor.x=.5,t.anchor.y=.5,t.position.set(.169*this.containerSprite.width,.4*this.containerSprite.height),this.addChild(t),this.timerTxt=new EHDI.displays.TextSprite(EHDI.GAME.jsonManager.getLocale("STR_CONT_TIMERVALUE")),this.timerTxt.anchor.x=.5,this.timerTxt.anchor.y=.5,this.timerTxt.position.set(.675*this.containerSprite.width,.45*this.containerSprite.height),this.addChild(this.timerTxt),this.flash=new EHDI.aka.Sprite(EHDI.Assets.images.gfx_container_white),this.addChild(this.flash),this.flash.alpha=0,this.flash.visible=!1,this.sparkle=new EHDI.aka.Sprite(EHDI.Assets.images.gfx_flare_star),this.sparkle.anchor.set(.5,.5),this.sparkle.position.set(t.x,t.y),this.sparkle.scale.set(0,0),this.addChild(this.sparkle),this.line=new EHDI.aka.Sprite(EHDI.Assets.images.gfx_flare_long),this.line.anchor.set(.5,.5),this.line.position.set(.5*this.containerSprite.width,.4*this.containerSprite.height),this.line.scale.set(0,1),this.addChild(this.line),this.onTimeTimeline=new TimelineMax,this.onTimeTimeline.to(this.timerTxt.scale,.1,{x:1.5,y:1.5}),this.onTimeTimeline.to(this.timerTxt.scale,.1,{x:1,y:1}),this.onTimeTimeline.addCallback(this.toggleEffects.bind(this),"+=0",[!0]),this.onTimeTimeline.addCallback(this.toggleFlash.bind(this),"+=0",[!0]),this.onTimeTimeline.to(this.sparkle.scale,.1,{x:1,y:1,ease:Power0.easeNone}),this.onTimeTimeline.to(this.line.scale,.2,{x:1,y:1,ease:Power0.easeNone},"-=0.1"),this.onTimeTimeline.to(this.flash,.05,{alpha:.75}),this.onTimeTimeline.to(this.sparkle,.15,{x:.9*this.containerSprite.width,rotation:5,ease:Power0.easeNone},"-=0.15"),this.onTimeTimeline.to(this.flash,.1,{alpha:0},"-=0.025"),this.onTimeTimeline.addCallback(this.toggleFlash.bind(this),"-=0.05",[!1]),this.onTimeTimeline.addCallback(this.toggleEffects.bind(this),"+=0.025",[!1]),this.onTimeTimeline.pause()},EHDI.components.Timer.prototype=Object.create(EHDI.aka.Container.prototype),EHDI.components.Timer.prototype.updateTime=function(t){EHDI.GAME.pauseButton.isPaused||EHDI.GAME.pauseButton.isEndGame?this.shakeTimeline&&this.shakeTimeline.pause():(this.shakeTimeline&&this.shakeTimeline.paused&&this.shakeTimeline.play(),this.timeLeft!=t&&(this.timeLeft=t,this.timeLeft<0&&(this.timeLeft=0),this.actualText=Math.floor(this.timeLeft/60)+":",Math.floor(this.timeLeft%60)<10&&(this.actualText+="0"),this.actualText+=Math.floor(this.timeLeft%60),this.timerTxt.text=this.actualText,this.timeLeft>10&&this.isRed?(this.isRed=!1,this.timerTxt.style={fontFamily:"proximanova-black",fill:16777215,fontSize:36},this.shakeTimeline&&(this.shakeTimeline.kill(),this.shakeTimeline=null)):this.timeLeft<10&&!this.isRed?(this.isRed=!0,console.log("start"),this.timerTxt.style={fontFamily:"proximanova-black",fill:15539236,fontSize:36},this.shakeTimeline=new TimelineMax({repeat:-1}),this.shakeTimeline.to(this.timerTxt,.05,{x:.69*this.containerSprite.width,ease:Power0.easeNone}),this.shakeTimeline.to(this.timerTxt,.1,{x:.66*this.containerSprite.width,ease:Power0.easeNone}),this.shakeTimeline.to(this.timerTxt,.05,{x:.675*this.containerSprite.width,ease:Power0.easeNone})):this.timeLeft<=0&&this.shakeTimeline&&this.shakeTimeline.kill()))},EHDI.components.Timer.prototype.addTime=function(t){this.timeLeft+=t,this.onTimeTimeline.restart(),this.onTimeTimeline.play()},EHDI.components.Timer.prototype.dispose=function(){this.shakeTimeline&&this.shakeTimeline.kill()},EHDI.components.Timer.prototype.toggleEffects=function(t){this.line.visible=t,this.sparkle.visible=t},EHDI.components.Timer.prototype.toggleFlash=function(t){this.flash.visible=t},(EHDI=EHDI||Object.create(null)).game=EHDI.game||Object.create(null),EHDI.game.AddDiscContainer=function(){EHDI.aka.Container.call(this)},EHDI.game.AddDiscContainer.prototype=Object.create(EHDI.aka.Container.prototype),EHDI.game.AddDiscContainer.prototype.init=function(){this._textContainer,this._text1,this._animation,null==this._textContainer&&(this._textContainer=new EHDI.aka.Container,this.addChild(this._textContainer)),null==this._text1&&(this._text1=new EHDI.displays.TextSprite(EHDI.GAME.jsonManager.getLocale("STR_ADD_DISC_ANIMATION")),this._text1.anchor.x=.5,this._text1.anchor.y=.5,this._textContainer.addChild(this._text1)),null==this._animation&&(this._animation=new EHDI.game.Effect,this._animation.init("burst_fx"),this._animation.getDisplay().scale.x=.6,this._animation.getDisplay().scale.y=.6,this.addChild(this._animation.getDisplay())),this.visible=!1},EHDI.game.AddDiscContainer.prototype.destroy=function(){null!=this._tl1&&(this._tl1.kill(),this._tl1=null),null!=this._animation&&(this.removeChild(this._animation.getDisplay()),this._animation.destroy(),this._animation=null),null!=this._text1&&(this._textContainer.removeChild(this._text1),this._textContainer=null),null!=this._textContainer&&(this.removeChild(this._textContainer),this._textContainer=null)},EHDI.game.AddDiscContainer.prototype.spawn=function(t){this.visible=!0,this._textContainer.y=0,this._textContainer.alpha=1,this._text1.setText("+"+t),this._animation.changeAnimation(!1,"pickglow2"),this._tl1=TweenLite.to(this._textContainer,1.5,{y:this._textContainer.y-100,alpha:0,onComplete:this.animationComplete.bind(this)})},EHDI.game.AddDiscContainer.prototype.animationComplete=function(t){this.visible=!1},(EHDI=EHDI||Object.create(null)).game=EHDI.game||Object.create(null),EHDI.game.Animation=function(){},EHDI.game.Animation.prototype.init=function(t){this._animationPath=t,this._skeletonData,this._factory,this._armature,this._animationFactory=EHDI.GetAnimationFactory(),this._animationFactory.addAnimation(t),null==this._skeletonData&&(this._skeletonData=EHDI.Assets.fetch(t+"_anim_ske")),null==this._factory&&(this._factory=this._animationFactory.getFactory()),null==this._armature&&(this._armature=this._factory.buildArmature(this._skeletonData.armature[0].name),dragonBones.WorldClock.clock.add(this._armature))},EHDI.game.Animation.prototype.getArmature=function(){return this._armature},EHDI.game.Animation.prototype.changeAnimation=function(t){this._armature.animation.movementID!=this._animationPath+"_"+t&&this._armature.animation.gotoAndPlay(this._animationPath+"_"+t)},EHDI.game.Animation.prototype.play=function(){this._armature.animation.play()},EHDI.game.Animation.prototype.stop=function(){this._armature.animation.stop()},EHDI.game.Animation.prototype.getDisplay=function(){return this._armature.getDisplay()},EHDI.game.Animation.prototype.destroy=function(){null!=this._armature&&(null!=this._armature.getDisplay().parent&&this._armature.getDisplay().parent.removeChild(this._armature.getDisplay()),this._armature.animation.stop(),dragonBones.WorldClock.clock.remove(this._armature),this._armature.dispose(),this._armature=null),null!=this._factory&&(this._factory=null),null!=this._skeletonData&&(this._skeletonData=null),this._animationPath=null,this._animationFactory=null},EHDI.game.Animation.prototype.reset=function(){null!=this._armature&&(null!=this._armature.getDisplay().parent&&this._armature.getDisplay().parent.removeChild(this._armature.getDisplay()),this._armature.animation.stop(),dragonBones.WorldClock.clock.remove(this._armature),this._armature.dispose(),this._armature=null),null!=this._skeletonData&&(this._skeletonData=null)},(EHDI=EHDI||Object.create(null)).game=EHDI.game||Object.create(null),EHDI.game.BallState={INACTIVE:0,SET:1,READY:2,IDLE:3,MOVING:4,LANDED:5},EHDI.game.MovementState={FIRSTMOVE:0,RAMP:1,FLY:2,DEFLECT:3,SUCCESS:4,GOBACK_RAMP:5,GOBACK_STARTING:6,STOP:7},EHDI.game.Ball=function(){EHDI.aka.Container2d.call(this)},EHDI.game.Ball.prototype=Object.create(EHDI.aka.Container2d.prototype),EHDI.game.Ball.prototype.init=function(){this._state=EHDI.game.BallState.INACTIVE,this._sprite,this._onPointerDownWithBind,this._tl,this._deltaDelay=100,this._currentDelta=0,this._topHorLimit=300,this._bottomHorLimit=280,this._horLimitDifference=this._topHorLimit-this._bottomHorLimit,this._movementState=EHDI.game.MovementState.FIRSTMOVE,this._baseSpeed=14,this._currentSpeed=this._baseSpeed,this._texture=[EHDI.Assets.images.disc1a,EHDI.Assets.images.disc1b,EHDI.Assets.images.disc2a,EHDI.Assets.images.disc2b,EHDI.Assets.images.shadow1,EHDI.Assets.images.shadow2],this._tilePos=[new EHDI.aka.Point(-222,-512),new EHDI.aka.Point(0,-512),new EHDI.aka.Point(222,-512),new EHDI.aka.Point(-229,-333),new EHDI.aka.Point(0,-333),new EHDI.aka.Point(229,-333),new EHDI.aka.Point(-239,-158),new EHDI.aka.Point(0,-158),new EHDI.aka.Point(239,-158)],this._tilePosLim=[new EHDI.aka.Point(20,15),new EHDI.aka.Point(21,15),new EHDI.aka.Point(20,15),new EHDI.aka.Point(25,18),new EHDI.aka.Point(28,18),new EHDI.aka.Point(25,18),new EHDI.aka.Point(33,23),new EHDI.aka.Point(32,23),new EHDI.aka.Point(33,23)],this._speedX=0,this._speedZ=0,this._speedY=0,this._gravity=.2,this._theta=0,this._horCollisionLimit=this._bottomHorLimit,this._tileTop,this._tileBottom,this._tileLeft,this._tileRight,this._collidedCount,null==this._shadow&&(this._shadow=new EHDI.aka.Sprite2d(this._texture[4]),this._shadow.anchor.set(.5,.5),this._shadow.proj.affine=PIXI.projection.AFFINE.AXIS_Y,this.addChild(this._shadow)),null==this._sprite&&(this._sprite=new EHDI.aka.Sprite2d(this._texture[0]),this._sprite.anchor.set(.5,.5),this._sprite.proj.affine=PIXI.projection.AFFINE.AXIS_Y,this.addChild(this._sprite)),this.proj.affine=PIXI.projection.AFFINE.AXIS_X,this.interactive=!0,this.scale.x=.9,this.scale.y=.9,null==this._onPointerDownWithBind&&(this._onPointerDownWithBind=this._onPointerDown.bind(this)),this.on("pointerdown",this._onPointerDownWithBind)},EHDI.game.Ball.prototype.activate=function(){this._setNewState(EHDI.game.BallState.SET),this.visible=!0,this._sprite.y=0,this.x=370,this.y=-20,this._tl=TweenLite.to(this,.2,{x:0,y:-65,onComplete:this._ballSetComplete.bind(this)}),EHDI.GAME.soundManager.playSFX("disc")},EHDI.game.Ball.prototype._ballSetComplete=function(){null!=this._tl&&(this._tl.kill(),this._tl=null),this._tl=TweenLite.to(this._sprite,.2,{y:20}),this._setNewState(EHDI.game.BallState.IDLE)},EHDI.game.Ball.prototype._setNewState=function(t){this._state!=t&&(this._state=t)},EHDI.game.Ball.prototype.getState=function(){return this._state},EHDI.game.Ball.prototype._onPointerDown=function(){},EHDI.game.Ball.prototype._set=function(){this._setNewState(EHDI.game.BallState.SET)},EHDI.game.Ball.prototype.shoot=function(t,e){null!=this._tl&&(this._tl.kill(),this._tl=null),EHDI.GAME.soundManager.playSFX("disc"),this._setNewState(EHDI.game.BallState.MOVING),this._currentSpeed=20*e,this._speedX=Math.cos(t)*this._currentSpeed,this._speedZ=Math.sin(t)*this._currentSpeed},EHDI.game.Ball.prototype.update=function(t){this._state==EHDI.game.BallState.MOVING?(this._movementState==EHDI.game.MovementState.FIRSTMOVE?(this._updateTexture1(t),this._sprite.x+=this._speedX,this.y+=this._speedZ,this.y<=-450&&(this._movementState=EHDI.game.MovementState.RAMP,this._speedY=this._speedZ,this._speedZ=this._speedZ,this._speedX*=.8),this._checkCollision()):this._movementState==EHDI.game.MovementState.RAMP?(this._updateTexture2(t),this._sprite.x+=this._speedX,this._sprite.y+=this._speedY,this._speedY+=this._gravity,this._sprite.y<=-100?(this.emit("SWITCH_BALL"),this._horCollisionLimit=this._topHorLimit,this._movementState=EHDI.game.MovementState.FLY):this._speedY>=0&&(this._movementState=EHDI.game.MovementState.GOBACK_RAMP,this._horCollisionLimit=this._bottomHorLimit),this._checkCollision()):this._movementState==EHDI.game.MovementState.GOBACK_RAMP?(this._updateTexture2(t),this._sprite.x+=this._speedX,this._checkCollision(),this._sprite.y<0?(this._sprite.y+=this._speedY,this._speedY+=this._gravity):this._sprite.y>=0&&(this._sprite.y=0,this._speedZ=this._speedY,this._movementState=EHDI.game.MovementState.GOBACK_STARTING)):this._movementState==EHDI.game.MovementState.GOBACK_STARTING?(this._updateTexture1(t),this._sprite.x+=this._speedX,this._checkCollision(),this.y+=this._speedZ,this.y>=-65&&(this.y=-65,null!=this._tl&&(this._tl.kill(),this._tl=null),this._tl=TweenLite.to(this._sprite,.2,{y:20}),this._movementState=EHDI.game.MovementState.FIRSTMOVE,this._setNewState(EHDI.game.BallState.IDLE),this.emit("BALL_BACK_AT_STARTING"))):this._movementState==EHDI.game.MovementState.FLY?(this._updateTexture2(t),this._speedY+=this._gravity,this._sprite.y+=this._speedY,this._speedY>-12&&this._checkTileCollision()?(this._movementState=EHDI.game.MovementState.SUCCESS,this._currentSpeed=Math.sqrt(Math.pow(this._speedX,2)+Math.pow(this._speedY,2))):this._sprite.y<-530?this._speedY=-this._speedY:this._sprite.y>-100?(this._movementState=EHDI.game.MovementState.GOBACK_RAMP,this._horCollisionLimit=this._bottomHorLimit):this._sprite.y>-110&&(this._horCollisionLimit=this._bottomHorLimit+this._horLimitDifference*(Math.abs(this._sprite.y+100)/10)),this._sprite.x+=this._speedX,this._checkCollision()):this._movementState==EHDI.game.MovementState.SUCCESS&&(this._updateTexture2(t),this._speedX=.9*this._speedX,this._speedY=.9*this._speedY,this._sprite.scale.x>.9&&(this._sprite.scale.x-=this._currentSpeed/20*.05,this._sprite.y+=this._speedY*(this._currentSpeed/20)*.5,this._sprite.scale.y=this._sprite.scale.x,this._sprite.scale.x<.9&&(this._sprite.scale.x=.9,this._sprite.scale.y=.9),this._shadow.scale.x=this._sprite.scale.x,this._shadow.scale.y=this._sprite.scale.x),this._sprite.x+=this._speedX,this._sprite.y+=this._speedY,this._sprite.y<this._tileTop?(this._sprite.y=this._tileTop,this._speedY=-this._speedY):this._sprite.y>this._tileBottom&&(this._sprite.y=this._tileBottom,this._speedY=-this._speedY),this._checkTileHorCollision(),Math.abs(this._speedY)<=.1&&Math.abs(this._speedX)<=.1&&.9==this._sprite.scale.x&&(this._setNewState(EHDI.game.BallState.LANDED),this._movementState=EHDI.game.MovementState.STOP,EHDI.GAME.soundManager.playSFX("gridselect"),this._animateOut())),this._shadow.x=this._sprite.x,this._shadow.texture==this._texture[4]?this._shadow.y=this._sprite.y+30:this._shadow.y=this._sprite.y+20):this._state==EHDI.game.BallState.READY&&this._updateTexture3(t)},EHDI.game.Ball.prototype._animateOut=function(){this.emit("BALL_ANIMATEOUT",{addScore:!0,tileCount:_collidedCount}),this._tl=TweenLite.to(this,1,{alpha:0,onComplete:this._animationComplete.bind(this)})},EHDI.game.Ball.prototype._animationComplete=function(){this.emit("BALL_STOPPED")},EHDI.game.Ball.prototype._updateTexture3=function(t){this._currentDelta+=.3*t,this._currentDelta>=this._deltaDelay&&(this._currentDelta-=this._deltaDelay,this._sprite.texture==this._texture[0]?this._sprite.texture=this._texture[1]:this._sprite.texture=this._texture[0],this._shadow.texture!=this._texture[4]&&(this._shadow.texture=this._texture[4],this._shadow.y=this._sprite.y+30))},EHDI.game.Ball.prototype._updateTexture1=function(t){this._currentDelta+=t*this._currentSpeed*.07,this._currentDelta>=this._deltaDelay&&(this._currentDelta-=this._deltaDelay,this._sprite.texture==this._texture[0]?this._sprite.texture=this._texture[1]:this._sprite.texture=this._texture[0],this._shadow.texture!=this._texture[4]&&(this._shadow.texture=this._texture[4],this._shadow.y=this._sprite.y+30))},EHDI.game.Ball.prototype._updateTexture2=function(t){this._currentDelta+=t*this._currentSpeed*.07,this._currentDelta>=this._deltaDelay&&(this._currentDelta-=this._deltaDelay,this._sprite.texture==this._texture[2]?this._sprite.texture=this._texture[3]:this._sprite.texture=this._texture[2],this._shadow.texture!=this._texture[5]&&(this._shadow.texture=this._texture[5],this._shadow.y=this._sprite.y+20))},EHDI.game.Ball.prototype._checkTileCollision=function(){for(var t=0;t<9;t++)if(this._tileTop=this._tilePos[t].y-this._tilePosLim[t].y,this._tileBottom=this._tilePos[t].y+this._tilePosLim[t].y,this._tileLeft=this._tilePos[t].x-this._tilePosLim[t].x,this._tileRight=this._tilePos[t].x+this._tilePosLim[t].x,this._sprite.x<this._tileRight&&this._sprite.x>this._tileLeft&&this._sprite.y>this._tileTop&&this._sprite.y<this._tileBottom)return _collidedCount=t,!0;return!1},EHDI.game.Ball.prototype._checkTileHorCollision=function(){this._sprite.x<this._tileLeft?(this._sprite.x=this._tileLeft,this._speedX=-this._speedX,EHDI.GAME.soundManager.playSFX("disc")):this._sprite.x>this._tileRight&&(this._sprite.x=this._tileRight,this._speedX=-this._speedX,EHDI.GAME.soundManager.playSFX("disc"))},EHDI.game.Ball.prototype._checkCollision=function(){this._sprite.x<-this._horCollisionLimit?(this._sprite.x=-this._horCollisionLimit,this._speedX=-this._speedX,EHDI.GAME.soundManager.playSFX("disc")):this._sprite.x>this._horCollisionLimit&&(this._sprite.x=this._horCollisionLimit,this._speedX=-this._speedX,EHDI.GAME.soundManager.playSFX("disc"))},EHDI.game.Ball.prototype.reset=function(){this._state=EHDI.game.BallState.INACTIVE,this._currentDelta=0,this._movementState=EHDI.game.MovementState.FIRSTMOVE,this._currentSpeed=this._baseSpeed,this._speedX=0,this._speedZ=0,this._speedY=0,this._theta=0,this._horCollisionLimit=this._bottomHorLimit,this._tileTop=null,this._tileBottom=null,this._tileLeft=null,this._tileRight=null,this._collidedCount=null,this._shadow.texture=this._texture[4],this._sprite.texture=this._texture[0],this.visible=!0,this.alpha=1,this._sprite.x=0,this._sprite.y=0,this._shadow.x=0,this._shadow.y=30,this.y=0},EHDI.game.Ball.prototype.setZ=function(t){this.y=t},EHDI.game.Ball.prototype.setX=function(t){this._sprite.x=t,this._shadow.x=t},EHDI.game.Ball.prototype.setY=function(t){this._sprite.y=t},EHDI.game.Ball.prototype.getZ=function(){return this.y},EHDI.game.Ball.prototype.getX=function(){return this._sprite.x},EHDI.game.Ball.prototype.getY=function(){return this._sprite.y},EHDI.game.Ball.prototype.pause=function(){null!=this._tl&&this._tl.pause()},EHDI.game.Ball.prototype.resume=function(){null!=this._tl&&this._tl.resume()},EHDI.game.Ball.prototype.ready=function(){this._setNewState(EHDI.game.BallState.READY),null!=this._tl&&(this._tl.kill(),this._tl=null),this._tl=TweenLite.to(this._sprite,.2,{y:0})},EHDI.game.Ball.prototype.set=function(){this._setNewState(EHDI.game.BallState.IDLE),null!=this._tl&&(this._tl.kill(),this._tl=null),this._tl=TweenLite.to(this._sprite,.2,{y:20})},(EHDI=EHDI||Object.create(null)).game=EHDI.game||Object.create(null),EHDI.game.Collectible=function(){EHDI.aka.Container2d.call(this)},EHDI.game.Collectible.prototype=Object.create(EHDI.aka.Container2d.prototype),EHDI.game.Collectible.prototype.init=function(){this._collectibleX=0,this._sprite,this._shadow,this._text,this._animateUp=!1,this._animation,this._textContainer,this._animationName,this._collected=!1,this._collectibleCount,this._time,this._timerDelay=3e3,this._blinkOut=!1,this._alphaOut=!0,null==this._shadow&&(this._shadow=new EHDI.aka.Sprite2d(EHDI.Assets.images.shadow3),this._shadow.anchor.set(.5,.5),this._shadow.proj.affine=PIXI.projection.AFFINE.AXIS_Y,this.addChild(this._shadow)),null==this._sprite&&(this._sprite=new EHDI.aka.Sprite2d(EHDI.Assets.images.pickup1),this._sprite.anchor.set(.5,.5),this._sprite.y=-120,this._sprite.proj.affine=PIXI.projection.AFFINE.AXIS_Y,this.addChild(this._sprite)),null==this._textContainer&&(this._textContainer=new EHDI.aka.Container,this.addChild(this._textContainer)),null==this._text1&&(this._text1=new EHDI.displays.TextSprite(EHDI.GAME.jsonManager.getLocale("STR_COL_MULTIPLIER1")),this._text1.anchor.x=.5,this._text1.anchor.y=.5,this._text1.position.set(0,-16),this._textContainer.addChild(this._text1)),null==this._text2&&(this._text2=new EHDI.displays.TextSprite(EHDI.GAME.jsonManager.getLocale("STR_COL_MULTIPLIER2")),this._text2.anchor.x=.5,this._text2.anchor.y=.5,this._text2.position.set(0,16),this._textContainer.addChild(this._text2)),null==this._animation&&(this._animation=new EHDI.game.Effect,this._animation.init("burst_fx"),this._animation.getDisplay().visible=!1,this.addChild(this._animation.getDisplay())),null==this._time&&(this._time=new EHDI.util.Time),this.proj.affine=PIXI.projection.AFFINE.AXIS_X,this.scale.x=.9,this.scale.y=.9,this.visible=!1,this._active=!1},EHDI.game.Collectible.prototype.isActive=function(){return this._active},EHDI.game.Collectible.prototype.isCollected=function(){return this._collected},EHDI.game.Collectible.prototype.getCollectibleCount=function(){return this._collectibleCount},EHDI.game.Collectible.prototype.spawn=function(t,e){this._collectibleCount=e,this._blinkOut=!1,this._alphaOut=!0,this._time.reset(),this.alpha=1,0==e?(this._sprite.texture=EHDI.Assets.images.pickup1,this._animationName="pickglow1",this._text1.text=EHDI.GAME.jsonManager.getLocale("STR_COL_MULTIPLIER1").TEXT,this._text2.text=EHDI.GAME.jsonManager.getLocale("STR_COL_MULTIPLIER2").TEXT):1==e?(this._sprite.texture=EHDI.Assets.images.pickup2,this._animationName="pickglow2",this._text1.text=EHDI.GAME.jsonManager.getLocale("STR_COL_ADDITIONAL_DISC1").TEXT,this._text2.text=EHDI.GAME.jsonManager.getLocale("STR_COL_ADDITIONAL_DISC2").TEXT):2==e&&(this._sprite.texture=EHDI.Assets.images.pickup3,this._animationName="pickglow3",this._text1.text=EHDI.GAME.jsonManager.getLocale("STR_COL_BONUS1").TEXT,this._text2.text=EHDI.GAME.jsonManager.getLocale("STR_COL_BONUS2").TEXT),this._active=!0,this.visible=!0,this._collected=!1,this._animation.getDisplay().visible=!1,this._textContainer.alpha=1,this._sprite.visible=!0,this._shadow.visible=!0,this._shadow.x=t,this._sprite.x=t,this._collectibleX=t,this._textContainer.x=this._sprite.x,this._textContainer.y=this._sprite.y,this._shadow.scale.x=0,this._shadow.scale.y=0,this._sprite.scale.x=0,this._sprite.scale.y=0,this._textContainer.scale.x=0,this._textContainer.scale.y=0,TweenLite.to(this._shadow.scale,.2,{x:1,y:1}),TweenLite.to(this._sprite.scale,.2,{x:1,y:1}),TweenLite.to(this._textContainer.scale,.2,{x:1,y:1})},EHDI.game.Collectible.prototype.getCollectibleX=function(){return this._collectibleX},EHDI.game.Collectible.prototype.explode=function(){this._active=!1,this._collected=!0,this._sprite.visible=!1,this._shadow.visible=!1,this.alpha=1,this._animation.getDisplay().x=this._sprite.x,this._animation.getDisplay().y=this._sprite.y,this._animation.changeAnimation(!1,this._animationName),this._animation.getDisplay().visible=!0,this._tl1=TweenLite.to(this._textContainer,1.5,{y:this._textContainer.y-150,alpha:0})},EHDI.game.Collectible.prototype.remove=function(){this._active=!1,this._sprite.visible=!1,this._shadow.visible=!1},EHDI.game.Collectible.prototype.update=function(){this._active&&(this._animateUp?(this._sprite.y-=.2,this._sprite.y<=-130&&(this._sprite.y=-130,this._animateUp=!1)):(this._sprite.y+=.2,this._sprite.y>=-110&&(this._sprite.y=-110,this._animateUp=!0)),this._textContainer.y=this._sprite.y,this.manageDespawn())},EHDI.game.Collectible.prototype.manageDespawn=function(){this._blinkOut?this._alphaOut?(this.alpha-=.02,this._timerDelay>this._time.getTime()?this.alpha<=.5&&(this.alpha=.5,this._alphaOut=!1):this.alpha<=0&&(this.alpha=0,this.remove())):(this.alpha+=.02,this.alpha>=1&&(this.alpha=1,this._alphaOut=!0)):this._timerDelay<=this._time.getTime()&&(this._blinkOut=!0,this._time.reset())},(EHDI=EHDI||Object.create(null)).game=EHDI.game||Object.create(null),EHDI.game.CollectibleIndicator=function(){EHDI.aka.Container.call(this)},EHDI.game.CollectibleIndicator.prototype=Object.create(EHDI.aka.Container.prototype),EHDI.game.CollectibleIndicator.prototype.init=function(){this._active,this._sprite,this._textContainer,this._text1,this._text2,this._animation,null==this._sprite&&(this._sprite=new EHDI.aka.Sprite(EHDI.Assets.images.pickup1),this._sprite.anchor.set(.5,.5),this.addChild(this._sprite)),null==this._textContainer&&(this._textContainer=new EHDI.aka.Container,this.addChild(this._textContainer)),null==this._text1&&(this._text1=new EHDI.displays.TextSprite(EHDI.GAME.jsonManager.getLocale("STR_COL_MULTIPLIER1")),this._text1.anchor.x=.5,this._text1.anchor.y=.5,this._text1.position.set(0,-16),this._textContainer.addChild(this._text1)),null==this._text2&&(this._text2=new EHDI.displays.TextSprite(EHDI.GAME.jsonManager.getLocale("STR_COL_MULTIPLIER2")),this._text2.anchor.x=.5,this._text2.anchor.y=.5,this._text2.position.set(0,16),this._textContainer.addChild(this._text2)),null==this._animation&&(this._animation=new EHDI.game.Effect,this._animation.init("burst_fx"),this._animation.getDisplay().visible=!1,this.addChild(this._animation.getDisplay())),this.visible=!1,this._active=!1,this._animateUp=!1},EHDI.game.CollectibleIndicator.prototype.isActive=function(){return this._active},EHDI.game.CollectibleIndicator.prototype.spawn=function(t){0==t?(this._sprite.texture=EHDI.Assets.images.pickup1,this._animationName="pickglow1",this._text1.text=EHDI.GAME.jsonManager.getLocale("STR_COL_MULTIPLIER1").TEXT,this._text2.text=EHDI.GAME.jsonManager.getLocale("STR_COL_MULTIPLIER2").TEXT):1==t?(this._sprite.texture=EHDI.Assets.images.pickup2,this._animationName="pickglow2",this._text1.text=EHDI.GAME.jsonManager.getLocale("STR_COL_ADDITIONAL_DISC1").TEXT,this._text2.text=EHDI.GAME.jsonManager.getLocale("STR_COL_ADDITIONAL_DISC2").TEXT):2==t&&(this._sprite.texture=EHDI.Assets.images.pickup3,this._animationName="pickglow3",this._text1.text=EHDI.GAME.jsonManager.getLocale("STR_COL_BONUS1").TEXT,this._text2.text=EHDI.GAME.jsonManager.getLocale("STR_COL_BONUS2").TEXT),this.scale.x=0,this.scale.y=0,this._active=!0,this.visible=!0,this._animation.getDisplay().visible=!1,this._textContainer.alpha=1,this._sprite.visible=!0,this._tl1=TweenLite.to(this.scale,.3,{x:1,y:1})},EHDI.game.CollectibleIndicator.prototype.explode=function(){EHDI.GAME.soundManager.playSFX("success"),EHDI.GAME.soundManager.playSFX("pickup"),this._active=!1,this._sprite.visible=!1,this._animation.getDisplay().x=this._sprite.x,this._animation.getDisplay().y=this._sprite.y,this._animation.changeAnimation(!1,this._animationName),this._animation.getDisplay().visible=!0,this._tl1=TweenLite.to(this._textContainer,1,{alpha:0})},EHDI.game.CollectibleIndicator.prototype.remove=function(){this._active&&(EHDI.GAME.soundManager.playSFX("lose"),this._active=!1),this._tl1=TweenLite.to(this.scale,.3,{x:0,y:0})},EHDI.game.CollectibleIndicator.prototype.update=function(){this._active&&(this._animateUp?(this.y-=.2,this.y<=250&&(this.y=250,this._animateUp=!1)):(this.y+=.2,this.y>=270&&(this.y=270,this._animateUp=!0)),this._textContainer.y=this._sprite.y)},(EHDI=EHDI||Object.create(null)).game=EHDI.game||Object.create(null),EHDI.game.Effect=function(){},EHDI.game.Effect.prototype.init=function(t,e){this._animationPath=t,this._textureData,this._skeletonData,this._textureImage,this._factory,this._armature,this._completeCallback,this._completeCallbackEnabled,this._animationFactory=EHDI.GetAnimationFactory(),this._animationFactory.addAnimation(t),null==this._skeletonData&&(this._skeletonData=EHDI.Assets.fetch(t+"_ske")),null==this._factory&&(this._factory=this._animationFactory.getFactory()),null==this._armature&&(this._armature=null==e?this._factory.buildArmature(this._skeletonData.armature[0].name):this._factory.buildArmature(e),dragonBones.WorldClock.clock.add(this._armature))},EHDI.game.Effect.prototype.getArmature=function(){return this._armature},EHDI.game.Effect.prototype.changeAnimation=function(t,e){null==e?this._armature.animation.gotoAndPlay(this._animationPath,-1,-1,!t):this._armature.animation.gotoAndPlay(e,-1,-1,!t)},EHDI.game.Effect.prototype.play=function(){this._armature.animation.play()},EHDI.game.Effect.prototype.stop=function(){this._armature.animation.stop()},EHDI.game.Effect.prototype.getDisplay=function(){return this._armature.getDisplay()},EHDI.game.Effect.prototype.updatePos=function(t,e){this._armature.getDisplay().x=t,this._armature.getDisplay().y=e},EHDI.game.Effect.prototype.addCompleteCallback=function(t){this._completeCallbackEnabled=!0,this._completeCallback=t,this._armature.addEventListener("complete",this._handler_onComplete.bind(this))},EHDI.game.Effect.prototype._handler_onComplete=function(t){null!=this._completeCallback&&this._completeCallback(this)},EHDI.game.Effect.prototype.destroy=function(){this._completeCallbackEnabled&&(this._armature.removeEventListener("complete",this._handler_onComplete),this._completeCallbackEnabled=!1,this._completeCallback=null),null!=this._armature&&(null!=this._armature.getDisplay().parent&&this._armature.getDisplay().parent.removeChild(this._armature.getDisplay()),this._armature.animation.stop(),dragonBones.WorldClock.clock.remove(this._armature),this._armature.dispose(),this._armature=null),null!=this._factory&&(this._factory=null),null!=this._skeletonData&&(this._skeletonData=null),this._animationPath=null,this._animationFactory=null},EHDI.game.Effect.prototype.reset=function(){this._completeCallbackEnabled&&(this._armature.removeEventListener("complete",this._handler_onComplete),this._completeCallbackEnabled=!1,this._completeCallback=null),null!=this._armature&&(this._armature.animation.stop(),dragonBones.WorldClock.clock.remove(this._armature),null!=this._armature.getDisplay().parent&&this._armature.getDisplay().parent.removeChild(this._armature.getDisplay()),this._armature.dispose(),this._armature=null),null!=this._skeletonData&&(this._skeletonData=null)},(EHDI=EHDI||Object.create(null)).game=EHDI.game||Object.create(null),EHDI.game.Grid=function(){EHDI.aka.Container.call(this)},EHDI.game.Grid.prototype=Object.create(EHDI.aka.Container.prototype),EHDI.game.Grid.prototype.init=function(){this._gridBase,this._gridTiles=[],this._shuffle=!1,this._isClear=!1,this._deltaDelay=0,this._currentDelta=0,this._shufflePattern,this._shuffleCount,this._shuffleCurrentCount=0,this._gridOff=!0,null==this._gridBase&&(this._gridBase=new EHDI.aka.Sprite(EHDI.Assets.images.grid_base),this._gridBase.anchor.set(.5,.5),this.addChild(this._gridBase));for(var t=0;t<9;t++){var e,i,r=t%3,n=Math.floor(t/3);i=0==t||7==t?10:6==t||5==t?20:3==t||2==t?30:1==t||8==t?40:50,e=new EHDI.game.GridTile,0==r?(e.init(EHDI.game.GridTileTipe.LEFT,i),e.x=-110):1==r?e.init(EHDI.game.GridTileTipe.CENTER,i):(e.init(EHDI.game.GridTileTipe.RIGHT,i),e.x=110),0==n?(e.y=-84,e.scale.set(.9,.9),0==r?e.x+=10:2==r&&(e.x-=10)):1==n?(e.y=-4,e.scale.set(.95,.95),0==r?e.x+=5:2==r&&(e.x-=5)):e.y=76,e.changeAsset(2),this.addChild(e),this._gridTiles.push(e)}},EHDI.game.Grid.prototype.shuffle=function(t){this._shufflePattern=[[0,1,2],[3,4,5],[6,7,8],[0,3,6],[1,4,7],[2,5,8],[0,4,8],[6,4,2]],EHDI.GAME.soundManager.playSFX("pattern"),this._currentDelta=0,this._shuffleCount=this._shufflePattern.length,this._shuffleCurrentCount=0,this._gridOff=!1,this._shuffle=!0,this._isClear=t},EHDI.game.Grid.prototype.getGridtilePos=function(t){return this._gridTiles[t].position},EHDI.game.Grid.prototype.checkTileCount=function(t){return null!=this._pattern&&-1!=this._pattern.indexOf(t)},EHDI.game.Grid.prototype.closeTileGrid=function(t){this._gridTiles[t].changeAsset(0),this._pattern.splice(this._pattern.indexOf(t),1)},EHDI.game.Grid.prototype.checkPatternCount=function(){return this._pattern.length},EHDI.game.Grid.prototype.update=function(t){if(this._shuffle&&(this._currentDelta+=t,this._currentDelta>=this._deltaDelay)){if(this._gridOff){var e=Math.floor(Math.random()*this._shufflePattern.length);this._pattern=this._shufflePattern[e],this._shufflePattern.splice(e,1),this._shuffleCurrentCount++,this._isClear&&this.emit("SHUFFLE_DURING");for(var i=0;i<this._gridTiles.length;i++)-1!=this._pattern.indexOf(i)?(this._gridTiles[i].changeAsset(1),this._gridTiles[i].addGlow()):(this._gridTiles[i].changeAsset(0),this._gridTiles[i].removeGlow());this._gridOff=!1}else{for(i=0;i<this._gridTiles.length;i++)this._gridTiles[i].changeAsset(2),this._gridTiles[i].removeGlow();this._gridOff=!0}this._shuffleCurrentCount>=this._shuffleCount?(this._shuffle=!1,this.emit("SHUFFLE_FINISHED")):(this._currentDelta-=this._deltaDelay,this._gridOff,this._deltaDelay=200)}},(EHDI=EHDI||Object.create(null)).game=EHDI.game||Object.create(null),EHDI.game.GridTileTipe={LEFT:0,CENTER:1,RIGHT:2},EHDI.game.GridTile=function(){EHDI.aka.Container.call(this)},EHDI.game.GridTile.prototype=Object.create(EHDI.aka.Container.prototype),EHDI.game.GridTile.prototype.init=function(t,e){this._textures=[],this._glow,this._sprite,this._glowSprite,this._scoreCount=e,this._countSprite,t==EHDI.game.GridTileTipe.CENTER?(this._textures.push(EHDI.Assets.images.grid1a),this._textures.push(EHDI.Assets.images.grid2a),this._textures.push(EHDI.Assets.images.grid3a),this._textures.push(EHDI.Assets.images.gridglow1)):(this._textures.push(EHDI.Assets.images.grid1b),this._textures.push(EHDI.Assets.images.grid2b),this._textures.push(EHDI.Assets.images.grid3b),this._textures.push(EHDI.Assets.images.gridglow2)),this._textures.push(EHDI.Assets.images[this._scoreCount.toString()]),this._textures.push(EHDI.Assets.images[this._scoreCount.toString()+"a"]),this._textures.push(EHDI.Assets.images[this._scoreCount.toString()+"b"]),null==this._sprite&&(this._sprite=new EHDI.aka.Sprite(this._textures[0]),this._sprite.anchor.set(.5,.5),t==EHDI.game.GridTileTipe.LEFT&&(this._sprite.scale.x=-1),this.addChild(this._sprite)),null==this._countSprite&&(this._countSprite=new EHDI.aka.Sprite(this._textures[5]),this._countSprite.anchor.set(.5,.4),this.addChild(this._countSprite)),null==this._glowSprite&&(this._glowSprite=new EHDI.aka.Sprite(this._textures[3]),this._glowSprite.anchor.set(.5,.5),this._glowSprite.visible=!1,t==EHDI.game.GridTileTipe.LEFT&&(this._glowSprite.scale.x=-1),this.addChild(this._glowSprite))},EHDI.game.GridTile.prototype.changeAsset=function(t){0==t?(this._sprite.texture=this._textures[0],this._countSprite.texture=this._textures[4]):1==t?(this._sprite.texture=this._textures[2],this._countSprite.texture=this._textures[5]):2==t&&(this._sprite.texture=this._textures[1],this._countSprite.texture=this._textures[6])},EHDI.game.GridTile.prototype.addGlow=function(){this._glowSprite.visible=!0},EHDI.game.GridTile.prototype.removeGlow=function(){this._glowSprite.visible=!1},(EHDI=EHDI||Object.create(null)).game=EHDI.game||Object.create(null),EHDI.game.Hitbox=function(t,e,i,r,n){if(EHDI.aka.Container.call(this),"number"!=typeof t||"number"!=typeof e||"number"!=typeof i||"number"!=typeof r)throw new Error("Invalid Hitbox Parameter");this.init(t,e,i,r),this.addGraphics(n)},EHDI.game.Hitbox.prototype=Object.create(EHDI.aka.Container.prototype),EHDI.game.Hitbox.prototype.init=function(t,e,i,r){this._left=t,this._right=e,this._top=i,this._bottom=r,this._width=t+e,this._height=i+r,this._halfWidth=this._width/2,this._halfHeight=this._height/2,this._centerX=this._halfWidth-t,this._centerY=this._halfHeight-i,this._updatedCenterX=0,this._updatedCenterY=0,this._globalLeftX=0,this._globalRightX=0,this._globalTopY=0,this._globalBottomY=0},EHDI.game.Hitbox.prototype.addGraphics=function(t){this._graphics=new EHDI.aka.Graphics,this._graphics.beginFill(t),this._graphics.drawRect(-this._left,-this._top,this._left+this._right,this._top+this._bottom),this._graphics.endFill(),this.addChild(this._graphics)},EHDI.game.Hitbox.prototype.update=function(t,e){this._updatedCenterX=t+this._centerX,this._updatedCenterY=e+this._centerY,this._globalLeftX=this._updatedCenterX-this._halfWidth,this._globalRightX=this._updatedCenterX+this._halfWidth,this._globalTopY=this._updatedCenterY-this._halfHeight,this._globalBottomY=this._updatedCenterY+this._halfHeight},EHDI.game.Hitbox.prototype.getGlobalLeftX=function(){return this._globalLeftX},EHDI.game.Hitbox.prototype.getGlobalRightX=function(){return this._globalRightX},EHDI.game.Hitbox.prototype.getGlobalTopY=function(){return this._globalTopY},EHDI.game.Hitbox.prototype.getGlobalBottomY=function(){return this._globalBottomY},EHDI.game.Hitbox.prototype.getWidth=function(){return this._width},EHDI.game.Hitbox.prototype.getHeight=function(){return this._height},(EHDI=EHDI||Object.create(null)).game=EHDI.game||Object.create(null),EHDI.game.Power=function(){EHDI.aka.Container.call(this)},EHDI.game.Power.prototype=Object.create(EHDI.aka.Container.prototype),EHDI.game.Power.prototype.init=function(){this._container,this._bar,this._barMask,null==this._container&&(this._container=new EHDI.aka.Sprite(EHDI.Assets.images.meter_container),this.addChild(this._container)),null==this._bar&&(this._bar=new EHDI.aka.Sprite(EHDI.Assets.images.meter_bar),this._bar.x=6,this.addChild(this._bar)),null==this._barMask&&(this._barMask=new PIXI.Graphics,this._barMask.beginFill(),this._barMask.drawRect(this._bar.x,this._bar.y,this._bar.width,this._bar.height),this._barMask.endFill(),this._barMask.height=0,this._barMask.y=this._bar.height,this._bar.mask=this._barMask,this.addChild(this._barMask))},EHDI.game.Power.prototype.set=function(t){null!=this._tl&&this._tl.kill(),this._barMask.height=0,this._barMask.y=this._bar.height,this._tl=TweenLite.to(this._barMask,.3,{y:this._bar.height*(1-t),height:this._bar.height*t})},EHDI.game.Power.prototype.reset=function(){null!=this._tl&&this._tl.kill(),this._tl=TweenLite.to(this._barMask,.3,{y:this._bar.height,height:0})},EHDI.game.Power.prototype.destroy=function(){null!=this._tl&&(this._tl.kill(),this._tl=null),null!=this._barMask&&(this.removeChild(this._barMask),this._barMask=null),null!=this._bar&&(this.removeChild(this._bar),this._bar=null),null!=this._container&&(this.removeChild(this._container),this._container=null)},(EHDI=EHDI||Object.create(null)).game=EHDI.game||Object.create(null),EHDI.game.ScoreContainer=function(){EHDI.aka.Container.call(this)},EHDI.game.ScoreContainer.prototype=Object.create(EHDI.aka.Container.prototype),EHDI.game.ScoreContainer.prototype.init=function(){this._textContainer,this._text1,this._animation,null==this._textContainer&&(this._textContainer=new EHDI.aka.Container,this.addChild(this._textContainer)),null==this._text1&&(this._text1=new EHDI.displays.TextSprite(EHDI.GAME.jsonManager.getLocale("STR_SCORE_ANIMATION")),this._text1.anchor.x=.5,this._text1.anchor.y=.5,this._textContainer.addChild(this._text1)),null==this._animation&&(this._animation=new EHDI.game.Effect,this._animation.init("fx_pickup"),this.addChild(this._animation.getDisplay())),this.visible=!1},EHDI.game.ScoreContainer.prototype.spawn=function(t){this.visible=!0,this._textContainer.y=0,this._textContainer.alpha=1,this._text1.text=""+t,this._animation.changeAnimation(!1),this._tl1=TweenLite.to(this._textContainer,1.5,{y:this._textContainer.y-100,alpha:0,onComplete:this.animationComplete.bind(this)})},EHDI.game.ScoreContainer.prototype.animationComplete=function(t){this.visible=!1},(EHDI=EHDI||Object.create(null)).game=EHDI.game||Object.create(null),EHDI.game.Warning=function(){EHDI.aka.Container.call(this)},EHDI.game.Warning.prototype=Object.create(EHDI.aka.Container.prototype),EHDI.game.Warning.prototype.init=function(t,e){this._warningTexture,this._warningSprite,this._timelineMax,this._tl,this._holeNumber,this.spawnX=t,this.spawnY=e,null==this._warningTexture&&(this._warningTexture=EHDI.Assets.images.fx_warning),null==this._warningSprite&&(this._warningSprite=new EHDI.aka.Sprite(this._warningTexture),this._warningSprite.anchor.x=.5,this._warningSprite.anchor.y=.5,this.addChild(this._warningSprite)),this.scale.x=.5,this.scale.y=.5,this.x=this.spawnX+50,this.y=this.spawnY+50,null==this._timelineMax&&(this._timelineMax=new TimelineMax({repeat:-1,yoyo:!0})),this._tl=this._timelineMax.to(this.scale,.2,{x:1,y:1,ease:Power0.easeNone})},EHDI.game.Warning.prototype.reset=function(){null!=this._tl&&(this._tl.kill(),this._tl=null),null!=this._timelineMax&&(this._timelineMax.kill(),this._timelineMax=null)},(EHDI=EHDI||Object.create(null)).popup=EHDI.popup||Object.create(null),EHDI.popup.ConfirmationPopup=function(t,e){EHDI.aka.Container.call(this),this.confirmationContainer,this.overlay=null,this.btnYes,this.btnNo,this.headerTxt=null,this.confirmTxt=null,this.interactive=!0,this.onYesClick=t||null,this.onNoClick=e||null},EHDI.popup.ConfirmationPopup.prototype=Object.create(EHDI.aka.Container.prototype),EHDI.popup.ConfirmationPopup.prototype.popUpWillAppear=function(){this.overlay=new EHDI.aka.Graphics,this.overlay.beginFill(0),this.overlay.drawRect(0,0,EHDI.GAME.sceneManager.getStageWidth(),EHDI.GAME.sceneManager.getStageHeight()),this.overlay.alpha=.5,this.overlay.visible=!1,this.confirmationContainer=new EHDI.aka.Sprite(EHDI.Assets.images.gfx_pop2),this.confirmationContainer.position.set(.5*EHDI.GAME.sceneManager.getStageWidth(),.5*EHDI.GAME.sceneManager.getStageHeight()),this.confirmationContainer.anchor.set(.5,.5),this.btnYes=new EHDI.displays.Button(EHDI.Assets.images["check-button1"],EHDI.Assets.images["check-button2"]),this.btnYes.setOnClickFunction(this.btnYesClick.bind(this)),this.btnYes.x=this.confirmationContainer.x+.25*this.confirmationContainer.width,this.btnYes.y=this.confirmationContainer.y,this.btnNo=new EHDI.displays.Button(EHDI.Assets.images["x-button1"],EHDI.Assets.images["x-button2"]),this.btnNo.setOnClickFunction(this.btnNoClick.bind(this)),this.btnNo.x=this.confirmationContainer.x-.25*this.confirmationContainer.width,this.btnNo.y=this.confirmationContainer.y,this.addChild(this.overlay),this.addChild(this.confirmationContainer)},EHDI.popup.ConfirmationPopup.prototype.popUpDidAppear=function(){this.headerTxt=new EHDI.displays.TextSprite(EHDI.GAME.jsonManager.getLocale("STR_CONFIRM")),this.headerTxt.anchor.set(.5,.5),this.headerTxt.position.set(.2*-this.confirmationContainer.width,.18*-this.confirmationContainer.width),this.confirmationContainer.addChild(this.headerTxt),this.overlay.visible=!0,this.addChild(this.btnYes),this.addChild(this.btnNo)},EHDI.popup.ConfirmationPopup.prototype.btnYesClick=function(){EHDI.GAME.soundManager.playSFX("button_sfx"),this.onYesClick?(this.onYesClick(),EHDI.GAME.sceneManager.popPopUp()):EHDI.GAME.sceneManager.popPopUp()},EHDI.popup.ConfirmationPopup.prototype.btnNoClick=function(){EHDI.GAME.soundManager.playSFX("button_sfx"),this.onNoClick?this.onNoClick():EHDI.GAME.sceneManager.popPopUp()},EHDI.popup.ConfirmationPopup.prototype.setHeader=function(t){this.headerTxt=new EHDI.displays.TextSprite(t),this.headerTxt.anchor.set(.5,.5)},EHDI.popup.ConfirmationPopup.prototype.setMessage=function(t){this.confirmTxt=new EHDI.displays.TextSprite(t),this.confirmTxt.anchor.set(.5,1),this.confirmTxt.y=-10},EHDI.popup.ConfirmationPopup.prototype.popUpDidDisappear=function(){this.btnYes.dispose(),delete this.btnYes,this.btnNo.dispose(),delete this.btnNo,this.overlay.destroy(),delete this.overlay,this.confirmationContainer.destroy({children:!0}),delete this.confirmationContainer,delete this.onClickYes,delete this.onClickNo,this.destroy({children:!0})},(EHDI=EHDI||Object.create(null)).popup=EHDI.popup||Object.create(null),EHDI.popup.HTPPopUp=function(){EHDI.aka.Container.call(this),this.pageNumber=1},EHDI.popup.HTPPopUp.prototype=Object.create(EHDI.aka.Container.prototype),EHDI.popup.HTPPopUp.prototype.popUpWillAppear=function(){this.overlay=EHDI.displays.FillRectangle(0,0,0,EHDI.GAME.sceneManager.getStageWidth(),EHDI.GAME.sceneManager.getStageHeight(),0),this.overlay.anchor.set(.5,.5),this.addChild(this.overlay),this.position.x=.5*EHDI.GAME.sceneManager.getStageWidth(),this.bg=new EHDI.aka.Sprite(EHDI.Assets.images.gfx_pop),this.bg.anchor.set(.5,.5),this.addChild(this.bg),this.action=EHDI.BrowserInfo.isMobileDevice?"Tap":"Click"},EHDI.popup.HTPPopUp.prototype.popUpDidAppear=function(){this.overlay.alpha=.5,this.overlay.interactive=!0,this.pausedTxt=new EHDI.aka.PixiText("HOW TO PLAY",{fontFamily:"Exo-Bold",fill:16777215,fontSize:50}),this.pausedTxt.anchor.set(.5,.5),this.pausedTxt.position.set(.2*-this.bg.width,.24*-this.bg.width),this.bg.addChild(this.pausedTxt),this.next=new EHDI.displays.Button(EHDI.Assets.images.btn_prevnext,EHDI.Assets.images.btn_prevnext2,null,null),this.bg.addChild(this.next),this.next.position.set(.45*this.bg.width,0),this.next.setOnClickFunction(this.nextPage.bind(this)),this.page=new EHDI.aka.Container,this.bg.addChild(this.page);var t=new EHDI.aka.Sprite(EHDI.Assets.images.htp_match1);t.anchor.set(.5,.5),t.position.set(0,.15*-this.bg.height),this.page.addChild(t);var e=new EHDI.aka.PixiText(this.action+" the animal icons to select them. "+this.action+" again to deselect the icon.",{fontFamily:"proximanova-black",fill:16777215,fontSize:28,align:"center",wordWrap:!0,wordWrapWidth:.9*t.width});e.anchor.set(.5,0),e.position.set(0,.05*this.bg.height),this.page.addChild(e),this.previous=new EHDI.displays.Button(EHDI.Assets.images.btn_prevnext,EHDI.Assets.images.btn_prevnext2,null,null),this.bg.addChild(this.previous),this.previous.setOnClickFunction(this.previousPage.bind(this)),this.previous.position.set(.45*-this.bg.width,0),this.previous.scale.x=-1,this.return=new EHDI.displays.Button(EHDI.Assets.images.btn_return,EHDI.Assets.images.btn_return2,null,null),this.bg.addChild(this.return),this.return.position.set(0,.35*this.bg.height),this.return.setOnClickFunction(this.resumeGame)},EHDI.popup.HTPPopUp.prototype.popUpWillDisappear=function(){this.overlay.alpha=0},EHDI.popup.HTPPopUp.prototype.popUpDidDisappear=function(){EHDI.GAME.pauseButton.resumeGame()},EHDI.popup.HTPPopUp.prototype.toggleAudio=function(t){EHDI.GAME.soundManager.setMute(t),EHDI.GAME.storageManager.getLocalInfo(EHDI.GAME.id).isMuted=t,EHDI.GAME.storageManager.setLocalInfo(EHDI.GAME.id,t)},EHDI.popup.HTPPopUp.prototype.resumeGame=function(){EHDI.GAME.soundManager.playSFX("button_sfx"),EHDI.GAME.sceneManager.popPopUp({y:new EHDI.scene.TransitionParameter(.5*EHDI.GAME.sceneManager.getStageHeight(),-EHDI.GAME.sceneManager.getStageHeight()),duration:.25})},EHDI.popup.HTPPopUp.prototype.exitGame=function(){EHDI.GAME.soundManager.playSFX("button_sfx"),EHDI.GAME.sceneManager.pushPopUp(new EHDI.popup.ConfirmationPopup(this.goToTitleScreen.bind(this),null),{y:new EHDI.scene.TransitionParameter(EHDI.GAME.sceneManager.getStageHeight(),0),duration:.25})},EHDI.popup.HTPPopUp.prototype.goToTitleScreen=function(){EHDI.GAME.pauseButton.isEndGame=!0,EHDI.GAME.sceneManager.popPopUp(),EHDI.GAME.sceneManager.changeScene(new EHDI.scene.TitleScene,{alpha:new EHDI.scene.TransitionParameter(0,1),duration:.25})},EHDI.popup.HTPPopUp.prototype.nextPage=function(){this.transitionTimeline&&this.transitionTimeline.kill(),this.upcomingPage&&this.endTransition(),EHDI.GAME.soundManager.playSFX("button_sfx"),this.upcomingPage=new EHDI.aka.Container,this.upcomingPage.alpha=0,this.pageNumber++,this.pageNumber>2&&(this.pageNumber=1);var t=new EHDI.aka.Sprite(EHDI.Assets.images["htp_match"+this.pageNumber]);t.anchor.set(.5,.5),t.position.set(0,.15*-this.bg.height),this.upcomingPage.addChild(t);var e=this.action+" the animal icons to select them. "+this.action+" again to deselect the icon.";2===this.pageNumber&&(e="Match as many pairs as you can before time runs out!");var i=new EHDI.aka.PixiText(e,{fontFamily:"proximanova-black",fill:16777215,fontSize:28,align:"center",wordWrap:!0,wordWrapWidth:.9*t.width});i.anchor.set(.5,0),i.position.set(0,.05*this.bg.height),this.upcomingPage.addChild(i),this.transitionTimeline=new TimelineMax,this.transitionTimeline.to(this.upcomingPage,.5,{alpha:1}),this.transitionTimeline.to(this.page,.5,{alpha:0},0),this.transitionTimeline.add(this.endTransition.bind(this)),this.bg.addChild(this.upcomingPage)},EHDI.popup.HTPPopUp.prototype.previousPage=function(){this.transitionTimeline&&this.transitionTimeline.kill(),this.upcomingPage&&this.endTransition(),EHDI.GAME.soundManager.playSFX("button_sfx"),this.upcomingPage=new EHDI.aka.Container,this.upcomingPage.alpha=0,this.pageNumber--,this.pageNumber<1&&(this.pageNumber=2);var t=new EHDI.aka.Sprite(EHDI.Assets.images["htp_match"+this.pageNumber]);t.anchor.set(.5,.5),t.position.set(0,.15*-this.bg.height),this.upcomingPage.addChild(t);var e=this.action+" the animal icons to select them. "+this.action+" again to deselect the icon.";2===this.pageNumber&&(e="Match as many pairs as you can before time runs out!");var i=new EHDI.aka.PixiText(e,{fontFamily:"proximanova-black",fill:16777215,fontSize:28,align:"center",wordWrap:!0,wordWrapWidth:.9*t.width});i.anchor.set(.5,0),i.position.set(0,.05*this.bg.height),this.upcomingPage.addChild(i),this.transitionTimeline=new TimelineMax,this.transitionTimeline.to(this.upcomingPage,.5,{alpha:1}),this.transitionTimeline.to(this.page,.5,{alpha:0},0),this.transitionTimeline.add(this.endTransition.bind(this)),this.bg.addChild(this.upcomingPage)},EHDI.popup.HTPPopUp.prototype.endTransition=function(){this.page.destroy({children:!0}),this.page=this.upcomingPage,this.upcomingPage=null,this.page.alpa=1},(EHDI=EHDI||Object.create(null)).popup=EHDI.popup||Object.create(null),EHDI.popup.PausePopUp=function(t){EHDI.aka.Container.call(this),this.pageNumber=1,this.fromPauseBtn=t,this.action=EHDI.BrowserInfo.isMobileDevice?"Tap":"Click",this.messages=[],this.messages.push(EHDI.GAME.jsonManager.getLocale("STR_HTP_0")),this.messages.push(EHDI.GAME.jsonManager.getLocale("STR_HTP_1")),this.messages.push(EHDI.GAME.jsonManager.getLocale("STR_HTP_2")),this.filePaths=["htp1","htp2","htp3"],this.maxPages=this.filePaths.length},EHDI.popup.PausePopUp.prototype=Object.create(EHDI.aka.Container.prototype),EHDI.popup.PausePopUp.prototype.popUpWillAppear=function(){this.overlay=EHDI.displays.FillRectangle(0,0,0,EHDI.GAME.sceneManager.getStageWidth(),EHDI.GAME.sceneManager.getStageHeight(),0),this.overlay.anchor.set(.5,.5),this.addChild(this.overlay),this.position.x=.5*EHDI.GAME.sceneManager.getStageWidth(),this.bg=new EHDI.aka.Sprite(EHDI.Assets.images.gfx_pop),this.bg.anchor.set(.5,.5),this.addChild(this.bg)},EHDI.popup.PausePopUp.prototype.popUpDidAppear=function(){var t;this.overlay.alpha=.5,this.overlay.interactive=!0,t=this.fromPauseBtn?EHDI.GAME.jsonManager.getLocale("STR_PAUSED"):EHDI.GAME.jsonManager.getLocale("STR_HTP"),this.pausedTxt=new EHDI.displays.TextSprite(t),this.pausedTxt.anchor.set(.5,.5),this.pausedTxt.position.set(.2*-this.bg.width,.24*-this.bg.width),this.bg.addChild(this.pausedTxt),this.next=new EHDI.displays.Button(EHDI.Assets.images.btn_prevnext,EHDI.Assets.images.btn_prevnext2,null,null),this.bg.addChild(this.next),this.next.position.set(.45*this.bg.width,0),this.next.setOnClickFunction(this.nextPage.bind(this)),this.page=new EHDI.aka.Container,this.bg.addChild(this.page);var e=new EHDI.aka.Sprite(EHDI.Assets.images[this.filePaths[0]]);e.anchor.set(.5,.5),e.position.set(0,.15*-this.bg.height),this.page.addChild(e);var i=new EHDI.displays.TextSprite(this.messages[0]);i.style.wordWrap=!0,i.style.wordWrapWidth=.9*e.width,i.anchor.set(.5,0),i.position.set(0,.05*this.bg.height),this.page.addChild(i),this.previous=new EHDI.displays.Button(EHDI.Assets.images.btn_prevnext,EHDI.Assets.images.btn_prevnext2,null,null),this.bg.addChild(this.previous),this.previous.position.set(.45*-this.bg.width,0),this.previous.scale.x=-1,this.previous.setOnClickFunction(this.previousPage.bind(this)),this.return=new EHDI.displays.Button(EHDI.Assets.images.btn_return,EHDI.Assets.images.btn_return2,null,null),this.bg.addChild(this.return),this.return.position.set(0,.35*this.bg.height),this.return.setOnClickFunction(this.resumeGame),this.fromPauseBtn&&(this.exit=new EHDI.displays.Button(EHDI.Assets.images.btn_exit,EHDI.Assets.images.btn_exit2,null,null),this.bg.addChild(this.exit),this.exit.position.set(.3*-this.bg.width,.35*this.bg.height),this.exit.setOnClickFunction(this.exitGame.bind(this)),this.sound=new EHDI.displays.ToggleButton(EHDI.Assets.images.btn_audio1,EHDI.Assets.images.btn_audio3,EHDI.Assets.images.btn_audio2,EHDI.Assets.images.btn_audio4,EHDI.GAME.soundManager.getMuted()),this.sound.setOnClickFunction(this.toggleAudio),this.sound.position.set(.3*this.bg.width,.35*this.bg.height),this.bg.addChild(this.sound))},EHDI.popup.PausePopUp.prototype.popUpWillDisappear=function(){this.overlay.alpha=0},EHDI.popup.PausePopUp.prototype.popUpDidDisappear=function(){EHDI.GAME.pauseButton.resumeGame()},EHDI.popup.PausePopUp.prototype.toggleAudio=function(t){EHDI.GAME.soundManager.setMute(t),EHDI.GAME.soundManager.playSFX("button_sfx");var e=EHDI.GAME.storageManager.getLocalInfo(EHDI.GAME.id);e.isMuted=t,EHDI.GAME.storageManager.setLocalInfo(EHDI.GAME.id,e)},EHDI.popup.PausePopUp.prototype.resumeGame=function(){EHDI.GAME.soundManager.playSFX("button_sfx"),EHDI.GAME.sceneManager.popPopUp({y:new EHDI.scene.TransitionParameter(.5*EHDI.GAME.sceneManager.getStageHeight(),-EHDI.GAME.sceneManager.getStageHeight()),duration:.25},!0)},EHDI.popup.PausePopUp.prototype.exitGame=function(){EHDI.GAME.soundManager.playSFX("button_sfx"),EHDI.GAME.sceneManager.pushPopUp(new EHDI.popup.ConfirmationPopup(this.goToTitleScreen.bind(this),null),{y:new EHDI.scene.TransitionParameter(EHDI.GAME.sceneManager.getStageHeight(),0),duration:.25})},EHDI.popup.PausePopUp.prototype.goToTitleScreen=function(){EHDI.GAME.soundManager.stopAllSFX(),EHDI.GAME.pauseButton.isEndGame=!0,EHDI.GAME.sceneManager.popPopUp(null,!0),EHDI.GAME.sceneManager.changeScene(new EHDI.scene.TitleScene,{alpha:new EHDI.scene.TransitionParameter(0,1),duration:.25},!0)},EHDI.popup.PausePopUp.prototype.nextPage=function(){this.movePage(1)},EHDI.popup.PausePopUp.prototype.previousPage=function(){this.movePage(-1)},EHDI.popup.PausePopUp.prototype.movePage=function(t){this.transitionTimeline&&this.transitionTimeline.kill(),this.upcomingPage&&this.endTransition(),EHDI.GAME.soundManager.playSFX("button_sfx"),this.upcomingPage=new EHDI.aka.Container,this.upcomingPage.alpha=0,this.pageNumber+=t,this.pageNumber<1?this.pageNumber=this.maxPages:this.pageNumber>this.maxPages&&(this.pageNumber=1);var e=new EHDI.aka.Sprite(EHDI.Assets.images[this.filePaths[this.pageNumber-1]]);e.anchor.set(.5,.5),e.position.set(0,.15*-this.bg.height),this.upcomingPage.addChild(e);var i=new EHDI.displays.TextSprite(this.messages[this.pageNumber-1]);i.style.wordWrap=!0,i.style.wordWrapWidth=.9*e.width,i.anchor.set(.5,0),i.position.set(0,.05*this.bg.height),this.upcomingPage.addChild(i),this.transitionTimeline=new TimelineMax,this.transitionTimeline.to(this.upcomingPage,.5,{alpha:1}),this.transitionTimeline.to(this.page,.5,{alpha:0},0),this.transitionTimeline.add(this.endTransition.bind(this)),this.bg.addChild(this.upcomingPage)},EHDI.popup.PausePopUp.prototype.endTransition=function(){this.page.destroy({children:!0}),this.page=this.upcomingPage,this.upcomingPage=null,this.page.alpa=1},(EHDI=EHDI||Object.create(null)).Scene=function(){EHDI.aka.Container.call(this)},EHDI.Scene.prototype=Object.create(EHDI.aka.Container.prototype),EHDI.Scene.prototype.screenWillAppear=function(){},EHDI.Scene.prototype.screenDidAppear=function(){},EHDI.Scene.prototype.screenWillDisappear=function(){},EHDI.Scene.prototype.screenDidDisappear=function(){},EHDI.Scene.prototype.init=function(){},EHDI.Scene.prototype.reset=function(){},EHDI.Scene.prototype.gameStart=function(){},EHDI.Scene.prototype.onScreenResize=function(){},(EHDI=EHDI||Object.create(null)).GameStateEnum={GAMEINITIALIZING:0,GAMESHUFFLE:1,GAMESTARTED:2,GAMEPAUSED:3,GAMERESUMED:4,GAMEOVER:5},EHDI.scene=EHDI.scene||Object.create(null),EHDI.scene.GameScene=function(){EHDI.Scene.call(this)},EHDI.scene.GameScene.prototype=Object.create(EHDI.Scene.prototype),EHDI.scene.GameScene.prototype.screenWillAppear=function(){this.init()},EHDI.scene.GameScene.prototype.popUpWillAppear=function(){EHDI.GAME.soundManager.pauseAllSFX(),EHDI.GAME.soundManager.pauseBGM()},EHDI.scene.GameScene.prototype.popUpDidDisappear=function(){EHDI.GAME.soundManager.resumeAllSFX(),EHDI.GAME.soundManager.resumeBGM()},EHDI.scene.GameScene.prototype.screenDidAppear=function(){var t=EHDI.GAME.saveData;this.shuffleGrid(),t.isFirstTimePlay&&(t.isFirstTimePlay=!1,EHDI.sbGame.saveGameData(EHDI.GAME.saveData,"DEFAULT",function(){console.log("data saved.")}),EHDI.GAME.pauseButton.isPaused=!0,EHDI.GAME.sceneManager.pushPopUp(new EHDI.popup.PausePopUp,{y:new EHDI.scene.TransitionParameter(-EHDI.GAME.sceneManager.getStageHeight(),.5*EHDI.GAME.sceneManager.getStageHeight()),duration:.25}),EHDI.GAME.soundManager.pauseAllSFX(),this._handler_pauseGame())},EHDI.scene.GameScene.prototype.init=function(){this.initProps(),this.initGraphics(),this.initListeners()},EHDI.scene.GameScene.prototype.destroy=function(){this.gameStateManager(EHDI.GameStateEnum.GAMEOVER),this.killListeners(),this.killGraphics(),this.killProps()},EHDI.scene.GameScene.prototype.initProps=function(){this._gameState,this._gameWidth=1024,this._gameHeight=600,this._gameState=EHDI.GameStateEnum.GAMEINITIALIZING,this._prevState,this._deltaTotal=0,this._clearCount=1,this._deltaLimit=25,this._ballCount=0,this._collectibleCount=Math.floor(3*Math.random()),this.interactive=!0,this._touchPoint=new EHDI.aka.Point(0,0),this._onTouch=!1},EHDI.scene.GameScene.prototype.killProps=function(){this._gameState=null,this._gameWidth=null,this._gameHeight=null,this._gameState=null,this._prevState=null,this._deltaTotal=null,this._deltaLimit=null,this._ballCount=null,this._collectibleCount=null,this.interactive=null,this._touchPoint=null,this._onTouch=null},EHDI.scene.GameScene.prototype.initGraphics=function(){this._background,this._mid,this._grid,this._top,this._slide,this._collectibleIndicator,this._gameContainer,this._container2D,this._ball,this._hudContainer,this._powerContainer,this._hudPauseButton,this._scoreContainer,this._textDiscCount,this._collectible,this._scoreAnimation,null==this._background&&(this._background=new EHDI.aka.Sprite(EHDI.Assets.images.bg_ingame),this.addChild(this._background)),null==this._mid&&(this._mid=new EHDI.aka.Sprite(EHDI.Assets.images.mid),this._mid.anchor.set(.5,0),this._mid.x=.5*this._gameWidth,this.addChild(this._mid)),null==this._grid&&(this._grid=new EHDI.game.Grid,this._grid.init(),this._grid.x=.5*this._gameWidth,this._grid.y=.38*this._gameHeight,this.addChild(this._grid)),null==this._top&&(this._top=new EHDI.aka.Sprite(EHDI.Assets.images.top),this._top.anchor.set(.5,0),this._top.x=.5*this._gameWidth,this.addChild(this._top)),null==this._collectibleIndicator&&(this._collectibleIndicator=new EHDI.game.CollectibleIndicator,this._collectibleIndicator.init(),this._collectibleIndicator.x=900,this._collectibleIndicator.y=250,this.addChild(this._collectibleIndicator)),null==this._slide&&(this._slide=new EHDI.aka.Sprite(EHDI.Assets.images.slide),this._slide.anchor.set(.5,1),this._slide.x=.5*this._gameWidth,this._slide.y=this._gameHeight,this.addChild(this._slide)),null==this._gameContainer&&(this._gameContainer=new EHDI.aka.Container,this.addChild(this._gameContainer)),null==this._container2D&&(this._container2D=new PIXI.projection.Container2d,this._container2D.position.set(.5*this._gameWidth,this._gameHeight),this._gameContainer.addChild(this._container2D),this._container2D.proj.setAxisY(new EHDI.aka.Point(0,450),-1)),null==this._collectible&&(this._collectible=new EHDI.game.Collectible,this._collectible.init(),this._collectible.y=-370,this._container2D.addChild(this._collectible)),null==this._ball&&(this._ball=new EHDI.game.Ball,this._ball.init()),null==this._scoreAnimation&&(this._scoreAnimation=new EHDI.game.ScoreContainer,this._scoreAnimation.init(),this.addChild(this._scoreAnimation)),null==this._hudContainer&&(this._hudContainer=new EHDI.aka.Container,this.addChild(this._hudContainer)),null==this._powerContainer&&(this._powerContainer=new EHDI.game.Power,this._powerContainer.init(),this._powerContainer.x=52,this._powerContainer.y=420,this._hudContainer.addChild(this._powerContainer)),null==this._textDiscCount&&(this._textDiscCount=new EHDI.displays.TextSprite(EHDI.GAME.jsonManager.getLocale("STR_CONT_DISC_COUNT")),this._textDiscCount.x=798,this._textDiscCount.y=420,this.addChild(this._textDiscCount)),null==this._addDiscAnimation&&(this._addDiscAnimation=new EHDI.game.AddDiscContainer,this._addDiscAnimation.init(),this._addDiscAnimation.x=this._textDiscCount.x+20,this._addDiscAnimation.y=this._textDiscCount.y+14,this.addChild(this._addDiscAnimation)),null==this._scoreContainer&&(this._scoreContainer=new EHDI.components.ScoreManager(this._hudContainer),this._scoreContainer.setXY(10,10)),null==this._hudPauseButton&&(this._hudPauseButton=new EHDI.components.pauseButton,this._hudContainer.addChild(this._hudPauseButton))},EHDI.scene.GameScene.prototype.killGraphics=function(){null!=this._hudPauseButton&&(this._hudContainer.removeChild(this._hudPauseButton),this._hudPauseButton.destroy(),this._hudPauseButton=null),null!=this._scoreContainer&&(this._scoreContainer.dispose(),this._scoreContainer=null),null!=this._addDiscAnimation&&(this.removeChild(this._addDiscAnimation),this._addDiscAnimation.destroy(),this._addDiscAnimation=null),null!=this._textDiscCount&&(this.removeChild(this._textDiscCount),this._textDiscCount=null),null!=this._powerContainer&&(this._hudContainer.removeChild(this._powerContainer),this._powerContainer.destroy(),this._powerContainer=null),null!=this._hudContainer&&(this.removeChild(this._hudContainer),this._hudContainer=null),null!=this._scoreAnimation&&(this.removeChild(this._scoreAnimation),this._scoreAnimation=null),null!=this._ball&&(this._container2D.removeChild(this._ball),this._ball=null),null!=this._collectible&&(this._container2D.removeChild(this._collectible),this._collectible=null),null!=this._container2D&&(this._gameContainer.removeChild(this._container2D),this._container2D=null),null!=this._gameContainer&&(this.removeChild(this._gameContainer),this._gameContainer=null),null!=this._slide&&(this.removeChild(this._slide),this._slide=null),null!=this._collectibleIndicator&&(this.removeChild(this._collectibleIndicator),this._collectibleIndicator=null),null!=this._top&&(this.removeChild(this._top),this._top=null),null!=this._grid&&(this.removeChild(this._grid),this._grid=null),null!=this._mid&&(this.removeChild(this._mid),this._mid=null),null!=this._background&&(this.removeChild(this._background),this._background=null)},EHDI.scene.GameScene.prototype.initListeners=function(){null==this.onBallActivatedWithBind&&(this.onBallActivatedWithBind=this._handler_onBallActivated.bind(this)),null==this.onBallSwitchWithBind&&(this.onBallSwitchWithBind=this._handler_onBallSwitch.bind(this)),null==this.onBallStoppedWithBind&&(this.onBallStoppedWithBind=this._handler_onBallStopped.bind(this)),null==this.onBallBackWithBind&&(this.onBallBackWithBind=this._handler_onBallBack.bind(this)),null==this.onBallAnimateoutWithBind&&(this.onBallAnimateoutWithBind=this._handler_onBallAnimateout.bind(this)),null==this.updateWithBind&&(this.updateWithBind=this.update.bind(this)),null==this.onPauseWithBind&&(this.onPauseWithBind=this._handler_pauseGame.bind(this)),null==this.onResumeWithBind&&(this.onResumeWithBind=this._handler_resumeGame.bind(this)),null==this.onPointerDownWithBind&&(this.onPointerDownWithBind=this._handler_onPointerDown.bind(this)),null==this.onPointerUpWithBind&&(this.onPointerUpWithBind=this._handler_onPointerUp.bind(this)),null==this.onPointerMoveWithBind&&(this.onPointerMoveWithBind=this._handler_onPointerMove.bind(this)),null==this.onPointerOusideWithBind&&(this.onPointerOusideWithBind=this._handler_onPointerOutside.bind(this)),null==this.onShuffleFinishedWithBind&&(this.onShuffleFinishedWithBind=this._handlerOnShuffleFinished.bind(this)),null==this.onShuffleWithBind&&(this.onShuffleWithBind=this._handlerOnShuffle.bind(this)),EHDI.GAME.updateManager.addFrameListener(this.updateWithBind),this._hudPauseButton.on("PAUSE_GAME",this.onPauseWithBind),this._hudPauseButton.on("RESUME_GAME",this.onResumeWithBind),this._ball.on("BALL_STOPPED",this.onBallStoppedWithBind),this._ball.on("BALL_BACK_AT_STARTING",this.onBallBackWithBind),this._ball.on("BALL_ANIMATEOUT",this.onBallAnimateoutWithBind),this._ball.on("BALL_ACTIVATED",this.onBallActivatedWithBind),this._ball.on("SWITCH_BALL",this.onBallSwitchWithBind),this.on("pointerdown",this.onPointerDownWithBind),this.on("pointerup",this.onPointerUpWithBind),this.on("pointermove",this.onPointerMoveWithBind),this.on("pointerupoutside",this.onPointerOusideWithBind),this.on("pointerout",this.onPointerOusideWithBind),this._grid.on("SHUFFLE_FINISHED",this.onShuffleFinishedWithBind),this._grid.on("SHUFFLE_DURING",this.onShuffleWithBind)},EHDI.scene.GameScene.prototype.killListeners=function(){EHDI.GAME.updateManager.removeFrameListener(this.updateWithBind),this._hudPauseButton.removeListener("PAUSE_GAME",this.onPauseWithBind),this._hudPauseButton.removeListener("RESUME_GAME",this.onResumeWithBind),this._ball.removeListener("BALL_STOPPED",this.onBallStoppedWithBind),this._ball.removeListener("BALL_BACK_AT_STARTING",this.onBallBackWithBind),this._ball.removeListener("BALL_ANIMATEOUT",this.onBallAnimateoutWithBind),this._ball.removeListener("BALL_ACTIVATED",this.onBallActivatedWithBind),this._ball.removeListener("SWITCH_BALL",this.onBallSwitchWithBind),this.removeListener("pointerdown",this.onPointerDownWithBind),this.removeListener("pointerup",this.onPointerUpWithBind),this.removeListener("pointermove",this.onPointerMoveWithBind),this.removeListener("pointerupoutside",this.onPointerOusideWithBind),this.removeListener("pointerout",this.onPointerOusideWithBind),this._grid.removeListener("SHUFFLE_FINISHED",this.onShuffleFinishedWithBind),null!=this.onBallActivatedWithBind&&(this.onBallActivatedWithBind=this._handler_onBallActivated.bind(this)),null!=this.onBallSwitchWithBind&&(this.onBallSwitchWithBind=this._handler_onBallSwitch.bind(this)),null!=this.onBallStoppedWithBind&&(this.onBallStoppedWithBind=this._handler_onBallStopped.bind(this)),null!=this.onBallBackWithBind&&(this.onBallBackWithBind=this._handler_onBallBack.bind(this)),null!=this.onBallAnimateoutWithBind&&(this.onBallAnimateoutWithBind=null),null!=this.updateWithBind&&(this.updateWithBind=null),null!=this.onPauseWithBind&&(this.onPauseWithBind=null),null!=this.onResumeWithBind&&(this.onResumeWithBind=null),null!=this.onPointerDownWithBind&&(this.onPointerDownWithBind=null),null!=this.onPointerUpWithBind&&(this.onPointerUpWithBind=null),null!=this.onPointerMoveWithBind&&(this.onPointerMoveWithBind=null),null!=this.onPointerOusideWithBind&&(this.onPointerOusideWithBind=null),null!=this.onShuffleFinishedWithBind&&(this.onShuffleFinishedWithBind=null)},EHDI.scene.GameScene.prototype.startGame=function(){this.gameStateManager(EHDI.GameStateEnum.GAMESTARTED)},EHDI.scene.GameScene.prototype.shuffleGrid=function(t){this.gameStateManager(EHDI.GameStateEnum.GAMESHUFFLE),this._grid.shuffle(t)},EHDI.scene.GameScene.prototype.gameStateManager=function(t){this._gameState!=t&&(this._gameState=t)},EHDI.scene.GameScene.prototype._handlerOnShuffleFinished=function(t){this.startGame(),this.updateBall()},EHDI.scene.GameScene.prototype._handlerOnShuffle=function(){console.log("clear"),this._scoreContainer.addScore(10*this._clearCount)},EHDI.scene.GameScene.prototype._handler_onBallActivated=function(t){},EHDI.scene.GameScene.prototype._handler_onBallSwitch=function(t){},EHDI.scene.GameScene.prototype._handler_onBallAnimateout=function(t){var e=0,i=1,r=0,n=0;this._collectible.isCollected()&&this._collectibleIndicator.isActive()&&(0==this._collectibleCount?i*=2:1==this._collectibleCount?n++:2==this._collectibleCount&&(r=30),this._collectibleIndicator.explode()),e=0==t.tileCount||7==t.tileCount?10:6==t.tileCount||5==t.tileCount?20:3==t.tileCount||2==t.tileCount?30:1==t.tileCount||8==t.tileCount?40:50,this._grid.checkTileCount(t.tileCount)&&(i*=2,this._grid.closeTileGrid(t.tileCount)),this._grid.checkPatternCount()<=0&&n++,n>0&&(this._ballCount-=n,this.updateBallText(),this._addDiscAnimation.spawn(n)),e=e*i+r;var s=this._grid.getGridtilePos(t.tileCount);this._scoreAnimation.x=s.x+this._grid.x,this._scoreAnimation.y=s.y+this._grid.y,this._scoreAnimation.spawn(e),t.addScore&&this._scoreContainer.addScore(e)},EHDI.scene.GameScene.prototype._handler_onBallBack=function(t){this._collectibleIndicator.remove(),this._powerContainer.reset()},EHDI.scene.GameScene.prototype._handler_onBallStopped=function(t){this._ballCount<10?(this._powerContainer.reset(),this._grid.checkPatternCount()>0?this.updateBall():(this._clearCount++,this.shuffleGrid(!0))):this.showPostGamePopup()},EHDI.scene.GameScene.prototype.getStar=function(){var t=this._scoreContainer.getScore();return 0==t?0:t<=300?1:t<=800?2:3},EHDI.scene.GameScene.prototype.gameUpdate=function(t){this._gameState!=EHDI.GameStateEnum.GAMEPAUSED&&(dragonBones.WorldClock.clock.advanceTime(.001*t),this._gameState==EHDI.GameStateEnum.GAMESTARTED?(this._ball.update(t),this.updateForDepthSwap(),this.updateForCollision(),this._collectible.update(t),this._collectibleIndicator.update(t)):this._gameState==EHDI.GameStateEnum.GAMESHUFFLE&&this._grid.update(t))},EHDI.scene.GameScene.prototype.updateGlow=function(){},EHDI.scene.GameScene.prototype.updateForCollision=function(){this._collectible.isActive()&&Math.abs(this._ball.getX()-this._collectible.getCollectibleX())<=74&&Math.abs(this._ball.y-this._collectible.y)<=74&&(this._collectible.explode(),this._collectibleIndicator.spawn(this._collectible.getCollectibleCount()),EHDI.GAME.soundManager.playSFX("pickup"))},EHDI.scene.GameScene.prototype.spawnCollectible=function(){this._collectibleCount++,this._collectibleCount>=3&&(this._collectibleCount=0),this._collectible.spawn(240-480*Math.random(),this._collectibleCount)},EHDI.scene.GameScene.prototype.updateForDepthSwap=function(){this._ball.y<this._collectible.y&&this._container2D.getChildIndex(this._ball)>this._container2D.getChildIndex(this._collectible)?this._container2D.swapChildren(this._ball,this._collectible):this._ball.y>this._collectible.y&&this._container2D.getChildIndex(this._ball)<this._container2D.getChildIndex(this._collectible)&&this._container2D.swapChildren(this._ball,this._collectible)},EHDI.scene.GameScene.prototype.updateBallText=function(){this._ballCount<=0?this._textDiscCount.x=798:this._textDiscCount.x=808,this._textDiscCount.text=(10-this._ballCount).toString()},EHDI.scene.GameScene.prototype.updateBall=function(){this._ball.reset(),this._container2D.addChild(this._ball),this._ball.activate(),this._ballCount++,this.updateBallText(),this.manageSpawning()},EHDI.scene.GameScene.prototype.manageSpawning=function(){this._collectible.isActive()||this.spawnCollectible()},EHDI.scene.GameScene.prototype.showPostGamePopup=function(){if(this._gameState!=EHDI.GameStateEnum.GAMEOVER){this.gameStateManager(EHDI.GameStateEnum.GAMEOVER),this._hudPauseButton.endGame();var t=this._scoreContainer.getScore();t>EHDI.GAME.saveData.highScore&&(EHDI.GAME.saveData.highScore=t,EHDI.sbGame.saveGameData(EHDI.GAME.saveData,"DEFAULT",function(){console.log("data saved.")})),EHDI.sbGame.end(t)}},EHDI.scene.GameScene.prototype.update=function(t){if(this._deltaTotal+=25*t,this._deltaTotal>=this._deltaLimit){this._deltaMultiplier=Math.floor(this._deltaTotal/this._deltaLimit);for(var e=0;e<this._deltaMultiplier;e++)this.gameUpdate(this._deltaLimit);this._deltaTotal-=this._deltaMultiplier*this._deltaLimit}},EHDI.scene.GameScene.prototype._handler_pauseGame=function(t){this._prevState=this._gameState,this._ball.getState()==EHDI.game.BallState.READY&&this._ball.set(),this._onTouch&&(this._onTouch=!1),this._ball.pause(),this.gameStateManager(EHDI.GameStateEnum.GAMEPAUSED)},EHDI.scene.GameScene.prototype._handler_resumeGame=function(t){this.gameStateManager(this._prevState),this._ball.resume()},EHDI.scene.GameScene.prototype._handler_onPointerDown=function(t){this._touchPoint=this._container2D.toGlobal(new EHDI.aka.Point(this._ball.getX(),this._ball.y)),this._touchPoint.y-20<=t.data.global.y&&this._ball.getState()==EHDI.game.BallState.IDLE&&(this._ball.setX(Math.min(Math.max(this._container2D.toLocal(t.data.global).x,-240),240)),this._touchPoint=this._container2D.toGlobal(new EHDI.aka.Point(this._ball.getX(),this._ball.y)),this._touchPoint.y<t.data.global.y&&(this._touchPoint.y=t.data.global.y),this._onTouch=!0,this._ball.ready())},EHDI.scene.GameScene.prototype._handler_onPointerUp=function(t){if(this._onTouch){this._onTouch=!1,this._touchPoint=this._container2D.toGlobal(new EHDI.aka.Point(this._ball.getX(),this._ball.y));var e=EHDI.util.Trigo.getUnitCircleAngle(new EHDI.aka.Point(this._ball.getX(),this._ball.y),this._container2D.toLocal(t.data.global)),i=EHDI.util.Trigo.getHypotenuseUsingOppositeAndAdjacent(this._touchPoint.x-t.data.global.x,this._touchPoint.y-t.data.global.y);e<180&&this._ball.set(),i>=30&&e>200&&e<340?(i=Math.max(Math.min(i,200),60),this._ball.shoot(EHDI.util.Trigo.convertDegreeToRadian(e),i/200),this._powerContainer.set(i/200)):this._ball.set()}},EHDI.scene.GameScene.prototype._handler_onPointerMove=function(t){if(this._onTouch&&this._touchPoint.y-20<=t.data.global.y){var e=t.data.global;e.y=this._container2D.toGlobal(new EHDI.aka.Point(this._ball.getX(),this._ball.y-60)).y,this._ball.setX(Math.min(Math.max(this._container2D.toLocal(e).x,-260),260)),this._touchPoint=this._container2D.toGlobal(new EHDI.aka.Point(this._ball.getX(),this._ball.y)),this._touchPoint.y<=t.data.global.y&&(this._touchPoint.y=t.data.global.y)}},EHDI.scene.GameScene.prototype._handler_onPointerOutside=function(t){this._onTouch&&(this._onTouch=!1),this._ball.getState()==EHDI.game.BallState.READY&&this._ball.set()},(EHDI=EHDI||Object.create(null)).loadScene=function(){var t=new PIXI.Container,e=new EHDI.aka.PixiText("hello world",{fontFamily:"proximanova-black"}),i=new EHDI.aka.PixiText("text",{fontFamily:"Exo-Bold"});EHDI.GAME.jsonManager=EHDI.JSONManager(null,EHDI.Assets.fetch("assets/strings/preloader/strings.json")),t.addChild(e),t.addChild(i);var r=new PIXI.extras.TilingSprite(EHDI.Assets.images.gfx_bg,EHDI.GAME.sceneManager.getStageWidth(),EHDI.GAME.sceneManager.getStageHeight());t.addChild(r);var n=new EHDI.aka.Sprite(EHDI.Assets.images.gfx_loading);n.anchor.x=.5,n.anchor.y=.5,n.position.set(.5*EHDI.GAME.sceneManager.getStageWidth(),.5*EHDI.GAME.sceneManager.getStageHeight()),t.addChild(n);var s=new EHDI.aka.Sprite(EHDI.Assets.images.gfx_loading_bar_con);s.anchor.set(.5,.5),s.position.set(.5*EHDI.GAME.sceneManager.getStageWidth(),.64*EHDI.GAME.sceneManager.getStageHeight()),t.addChild(s);var a=new EHDI.displays.TextSprite(EHDI.GAME.jsonManager.getLocale("STR_LOADING"));a.position.set(.316*EHDI.GAME.sceneManager.getStageWidth(),.595*EHDI.GAME.sceneManager.getStageHeight()),t.addChild(a);var o=new EHDI.displays.FillRectangle(0,0,0,380,27);o.anchor.x=.5,o.anchor.y=.5,o.position.x=.5*EHDI.GAME.sceneManager.getStageWidth(),o.position.y=.65*EHDI.GAME.sceneManager.getStageHeight(),t.addChild(o);var l=new EHDI.displays.FillRectangle(1677809,0,0,380,27);o.addChild(l),l.x=.5*-o.width,l.y=.5*-o.height;l.width;var h=null,u=null,c=[];c=(c=(c=c.concat(AssetDirectory.ui)).concat(AssetDirectory.title)).concat(AssetDirectory.game),EHDI.LoadManager.queueAssets(c),EHDI.LoadManager.start(function(){l.scale.x=EHDI.LoadManager.getProgress()/100,EHDI.GAME.updateManager.removeFrameListener(y),EHDI.BrowserInfo.isIOS?((h=new EHDI.displays.TextSprite(EHDI.GAME.jsonManager.getLocale("STR_TAP_CONT"))).anchor.set(.5,.5),h.position.set(.5*EHDI.GAME.sceneManager.getStageWidth(),.65*EHDI.GAME.sceneManager.getStageHeight()),t.addChild(h),h.alpha=0,(u=new TimelineMax).to(a,.25,{alpha:0},0),u.to(o,.25,{alpha:0},0),u.to(h,.25,{alpha:1},0),u.add(function(){r.interactive=!0,u.kill(),(u=new TimelineMax({repeat:-1,repeatDelay:1,delay:1})).to(h,1,{alpha:0}),u.to(h,.5,{alpha:1},"+=0.2")}),r.touchstart=function(){r.interactive=!1,EHDI.GAME.soundManager.playSFX("button_sfx"),EHDI.GAME.sceneManager.changeScene(new EHDI.scene.TitleScene,{alpha:new EHDI.scene.TransitionParameter(0,1),duration:1})}):setTimeout(function(){EHDI.GAME.sceneManager.changeScene(new EHDI.scene.TitleScene,{alpha:new EHDI.scene.TransitionParameter(0,1),duration:1})},500)}),EHDI.GAME.updateManager.addFrameListener(y);var d=new dragonBones.PixiFactory,p=EHDI.Assets.images.gizmoloading_tex.baseTexture.source,f=EHDI.Assets.fetch("gizmoloading_tex");d.addTextureAtlas(new dragonBones.TextureAtlas(p,f));var _=EHDI.Assets.fetch("gizmoloading_ske");d.addDragonBonesData(dragonBones.DataParser.parseDragonBonesData(_));var m=d.buildArmature(_.armature[0].name);dragonBones.WorldClock.clock.add(m),m.animation.gotoAndPlay(m.animation.animationList[0],-1,-1,0),m.animation.play();var g=m.getDisplay();function v(t){dragonBones.WorldClock.clock.advanceTime(.01*t)}function y(){l.scale.x=EHDI.LoadManager.getProgress()/100}g.position.set(.5*EHDI.GAME.sceneManager.getStageWidth(),.55*EHDI.GAME.sceneManager.getStageHeight()),t.addChild(g),EHDI.GAME.updateManager.addFrameListener(v),t.screenDidDisappear=function(){EHDI.GAME.updateManager.removeFrameListener(v),d.dispose(),dragonBones.WorldClock.clock.remove(m),m.dispose(),t.destroy({children:!0})},EHDI.GAME.sceneManager.changeScene(t)},(EHDI=EHDI||Object.create(null)).scene=EHDI.scene||Object.create(null),EHDI.scene.TitleScene=function(){EHDI.aka.Container.call(this)},EHDI.scene.TitleScene.prototype=Object.create(EHDI.aka.Container.prototype),EHDI.scene.TitleScene.prototype.screenWillAppear=function(){this.bg=new PIXI.extras.TilingSprite(EHDI.Assets.images.title_background,EHDI.GAME.sceneManager.getStageWidth(),EHDI.GAME.sceneManager.getStageHeight()),this.addChild(this.bg)},EHDI.scene.TitleScene.prototype.screenDidAppear=function(){this.title=new EHDI.aka.Sprite(EHDI.Assets.images.game_title),this.title.anchor.set(.5,.5),this.title.x=512,this.title.y=276,this.title.scale.x=0,this.title.scale.y=0,this.addChild(this.title),this.tl1=TweenLite.to(this.title.scale,1,{x:1,y:1,ease:Back.easeOut}),this.sound=new EHDI.displays.ToggleButton(EHDI.Assets.images.btn_audio1,EHDI.Assets.images.btn_audio3,EHDI.Assets.images.btn_audio2,EHDI.Assets.images.btn_audio4,EHDI.GAME.soundManager.getMuted()),this.sound.setOnClickFunction(this.toggleAudio),this.sound.position.set(.1*EHDI.GAME.sceneManager.getStageWidth(),.09*EHDI.GAME.sceneManager.getStageHeight()),this.addChild(this.sound),this.highScoreHolder=new EHDI.components.HighScoreHolder(this,EHDI.GAME.saveData.highScore),this.highScoreHolder.setXY(.723*EHDI.GAME.sceneManager.getStageWidth(),.0417*EHDI.GAME.sceneManager.getStageHeight()),this.playBtn=new EHDI.displays.Button(EHDI.Assets.images.btn_play,EHDI.Assets.images.btn_play2,null,null),this.playBtn.position.set(.5*EHDI.GAME.sceneManager.getStageWidth(),.85*EHDI.GAME.sceneManager.getStageHeight()),this.addChild(this.playBtn),this.playBtn.setOnClickFunction(this.startGame),this.playTxt=new EHDI.displays.TextSprite(EHDI.GAME.jsonManager.getLocale("BTN_PLAY")),this.playTxt.anchor.set(.75,.5),this.playBtn.addChild(this.playTxt),EHDI.GAME.soundManager.autoResumeToggle(!0),EHDI.GAME.soundManager.playBGM("game_bgm")},EHDI.scene.TitleScene.prototype.robotCallback=function(){},EHDI.scene.TitleScene.prototype.toggleAudio=function(t){EHDI.GAME.soundManager.setMute(t);var e=EHDI.GAME.storageManager.getLocalInfo(EHDI.GAME.id);e.isMuted=t,EHDI.GAME.storageManager.setLocalInfo(EHDI.GAME.id,e),EHDI.GAME.soundManager.playSFX("button_sfx")},EHDI.scene.TitleScene.prototype.startGame=function(){EHDI.GAME.soundManager.playSFX("button_sfx"),EHDI.GAME.sceneManager.changeScene(EHDI.GetGlobalPool().gameScenePool.get(),{x:new EHDI.scene.TransitionParameter(-EHDI.GAME.sceneManager.getStageWidth(),0),duration:.25},!0)},EHDI.scene.TitleScene.prototype.screenDidDisappear=function(){null!=this.tl1&&(this.tl1.kill(),this.tl1=null),null!=this.tl2&&(this.tl2.kill(),this.tl2=null),null!=this.tl&&(this.tl.kill(),this.tl=null),null!=this.bg&&(this.removeChild(this.bg),this.bg=null),null!=this.title&&(this.removeChild(this.title),this.title=null),null!=this.sound&&(this.removeChild(this.sound),this.sound=null),null!=this.playBtn&&(null!=this.playTxt&&(this.playBtn.removeChild(this.playTxt),this.playTxt=null),this.removeChild(this.playBtn),this.playBtn=null),EHDI.aka.Container.prototype.destroy.apply(this,arguments)},(EHDI=EHDI||Object.create(null)).GetAnimationFactory=function(){return null==EHDI._animationFactory&&(EHDI._animationFactory=new EHDI.AnimationFactory),EHDI._animationFactory},EHDI.AnimationFactory=function(){this._factory=new dragonBones.PixiFactory,this._animationPaths=[]},EHDI.AnimationFactory.prototype.addAnimation=function(t){if(-1==this._animationPaths.indexOf(t)){var e=EHDI.Assets.fetch(t+"_tex"),i=EHDI.Assets.fetch(t+"_ske"),r=EHDI.Assets.images[t+"_tex"].baseTexture.source;this._factory.addTextureAtlas(new dragonBones.TextureAtlas(r,e)),this._factory.addDragonBonesData(dragonBones.DataParser.parseDragonBonesData(i)),this._animationPaths.push(t)}},EHDI.AnimationFactory.prototype.getFactory=function(){return this._factory},(EHDI=EHDI||Object.create(null)).CameraManager=function(t){var e,i=!1,r=t,n=null,s=!1,a=function(t){var e=document.getElementById("photo");e.click(),e.onchange=function(i){var r,n=i.target.files;if(n&&n.length>0){r=n[0];var s=new FileReader;s.onload=function(e){var i=new Image,r=EXIF.readFromBinaryFile(function(t){t=t.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var e=atob(t),i=e.length,r=new Uint8Array(i),n=0;n<i;n++)r[n]=e.charCodeAt(n);return r.buffer}(this.result)).Orientation;i.src=e.target.result,i.onload=function(e){var n=new PIXI.BaseTexture(i);n.imageUrl=i.src;var s=new PIXI.Texture(n);t.apply(null,[s,r])}},s.readAsDataURL(r)}e.value=""}},o=function(){e&&cancelAnimationFrame(e),s=!0};return{getVideoSetup:function(){return i},setupVideo:function(t,a,o,l,h,u){if(!0!==i){void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(t){var e=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return e?new Promise(function(i,r){e.call(navigator,t,i,r)}):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}),navigator.mediaDevices.getUserMedia({audio:!1,video:!0}).then(function(a){var c=document.createElement("video");c.autoplay=!0,r.style.position="absolute",c.style.position="absolute",c.style.display="none",document.getElementById("vidiv").appendChild(c),n=null,(n=document.createElement("canvas")).id="stream",n.style.position="absolute",n.width=r.width,n.height=r.height,n.style.width=r.style.width,n.style.height=r.style.height,n.style.display="block",n.style.marginTop=r.style.marginTop,n.style.marginBottom=r.style.marginBottom,n.style.marginLeft=r.style.marginLeft,n.style.marginRight=r.style.marginRight,n.style.paddingLeft=r.style.paddingLeft,n.style.paddingRight=r.style.paddingRight,n.style.paddingTop=r.style.paddingTop,n.style.paddingBottom=r.style.paddingBottom,document.getElementById("vidiv").appendChild(n);var d=document.querySelector("video");window.stream=a,d.src=URL.createObjectURL(a),d.play(),d.onloadeddata=function(){i=!0,t(),function(t,i,r,n){var a=document.getElementById("stream").getContext("2d"),o=document.body.querySelector("video"),l=1;-1!==r&&(l=r/o.videoWidth),-1!==n&&(l=n/o.videoHeight);var h=o.videoWidth*l,u=o.videoHeight*l,c=t-.5*h,d=i-.5*u;s=!1;var p=function(){!1===s&&(a.drawImage(o,c,d,h,u),requestAnimationFrame(p))};e=requestAnimationFrame(p)}(o,l,h,u)}}).catch(function(t){alert(t.name+": "+t.message),a()})}},takePhoto:function(t,e){if(e){a(function(e,i){var r=new EHDI.aka.Container,n=new EHDI.aka.Sprite(e);!function(t,e){switch(t){case 3:e.rotation=Math.PI,e.position.set(e.width,e.height);break;case 6:e.rotation=.5*Math.PI,e.position.set(e.height,0);break;case 8:e.rotation=-.5*Math.PI,e.position.set(0,e.width)}}(i,n),r.addChild(n),t.apply(null,[r])})}else{var r=document.body.querySelector("video");if(null!=r)!function(t){var e=document.createElement("canvas"),i=document.body.querySelector("video"),r=document.getElementById("stream");e.width=i.videoWidth,e.height=i.videoHeight,e.getContext("2d").drawImage(i,0,0,i.videoWidth,i.videoHeight),i.pause(),i.src="",window.stream.getTracks()[0].stop(),document.getElementById("vidiv").removeChild(i),o(),document.getElementById("vidiv").removeChild(r);var n=new Image;n.src=e.toDataURL(),n.onload=function(){var e=new PIXI.BaseTexture(n),i=new PIXI.Texture(e);t.apply(null,[i])}}(function(e){i=!1;var r=new EHDI.aka.Container,n=new EHDI.aka.Sprite(e);r.addChild(n),t.apply(null,[r])})}}}},(EHDI=EHDI||Object.create(null)).CollisionManager=Object.create(null),EHDI.CollisionManager.testRectCollision=function(t,e){var i=t._updatedCenterX-e._updatedCenterX,r=t._updatedCenterY-e._updatedCenterY,n=t._halfWidth+e._halfWidth,s=t._halfHeight+e._halfHeight,a=!1;return Math.abs(i)<n&&Math.abs(r)<s&&(a=!0),a},EHDI.CollisionManager.testRectVerticalCollision=function(t,e){var i=t._updatedCenterX-e._updatedCenterX,r=t._halfWidth+e._halfWidth,n=!1;return Math.abs(i)<r&&(n=!0),n},(EHDI=EHDI||Object.create(null)).Event=function(t,e){this.name=t,this.data=e,this.callbacks=[]},EHDI.Event.prototype.registerCallback=function(t){this.callbacks.push(t)},EHDI.Event.prototype.unregisterCallback=function(t){var e=this.callbacks.indexOf(t);e>-1&&this.callbacks.splice(e,1)},EHDI.Event.prototype.clearCallbacks=function(){this.callbacks.length=0},EHDI.EventManager=function(){"use strict";"use restrict";var t=Object.create(null),e=Object.create(null),i=10;return Object.defineProperty(t,"maxListeners",{set:function(t){"number"==typeof t&&(i=t)},get:function(){return i}}),t.register=function(t,i){var r=new EHDI.Event(t,i);e[t]=r},t.unregister=function(t){if(!(t in e))throw new Error("event not found");e[t].clearCallbacks(),delete e[t]},t.dispatch=function(t){if(!(t in e))throw new Error("event is unregistered");for(var i=e[t].callbacks,r=0,n=i.length;r<n;r++)void 0!==e[t].data?i[r](e[t].data):i[r]()},t.addListener=function(t,r){if(!(t in e))throw new Error("event is unregistered");if(e[t].callbacks.length>=i)throw new Error("max amount of listeners limit reached, maxListener: "+i);e[t].registerCallback(r)},t.removeListener=function(t,i){if(!(t in e))throw new Error("event is unregistered");e[t].callbacks.indexOf(i)<=-1&&console.log("callback listener not found"),e[t].unregisterCallback(i)},t},(EHDI=EHDI||Object.create(null)).JSONManager=function(t,e){"use strict";"use restrict";var i=t,r=e;return{setConfigData:function(t){void 0===i&&(i=t)},setLocaleData:function(t){void 0===r&&(r=t)},getLocale:function(t){return arguments.length<1?r.data:r.data[t]},getConfig:function(){return i}}},function(){"use strict";"use restrict";(EHDI=EHDI||Object.create(null)).Assets={images:EHDI.aka.TextureCache,fonts:[]},EHDI.LoadManager=function(){var t,e,i=["json","js","xml","txt"],r=["ogg","mp3","wav"],n=["ttf","woff","woff2","otf"],s=Object.create(null),a=[],o=[],l=[],h=null,u=[],c=!1,d=0,p=0,f=0,_=[],m=[];EHDI.Assets.fetch=function(e){var i=t.getResult(e);return i||(i=EHDI.aka.Loader.resources[e]||null),i};var g=function(){o.length=0,a.length=0,_.length=0,m.length=0},v=function(t,e){return t.filter(function(t){"string"!=typeof t&&(t=t.url);var i=t.split(".").pop();return-1!==e.indexOf(i)})},y=function(t){var e=t.split("/").pop().split("."),i=e[0],r=e[1];"ttf"===r&&(r="truetype"),"otf"===r&&(r="opentype"),"eot"===r&&(r="embedded-opentype");var n=document.createElement("style"),s="@font-face {font-family: '"+i+"'; src: url('"+t+"') format('"+r+"');";n.appendChild(document.createTextNode(s)),document.body.appendChild(n),EHDI.Assets.fonts.push(i)},b=function(t,e){d=p+t.progress*o.length/f},T=function(t,e,i){console.log("PixiJS Loading Error!"),console.log(t)},x=function(t,e){g(),c=!1,l.length>0&&(l.length=0),"function"==typeof h&&h.apply(null,u)},E=function(t){var e=t.progress>1?1:t.progress;d=e*a.length/f*100,p=d},w=function(t){o.length<=0?x():e.add(o).load(x)},S=function(t){console.log("CreateJS Loading Error"),console.log(t)},D=function(e,i,r){var n,a,o,l,h,u,c,d;l=(a=(n=t.getResult(i)).locale).url,h=void 0!==a.lang?a.lang:"en",o=a.id+h,c=void 0===a.font[h]?a.font.default:a.font[h],d=[l+o+".json"],u=function(){e.setConfigData(n),e.setLocaleData(t.getResult(o)),"function"==typeof r&&r()},s.queueStrings(d),s.queueFonts(c),s.start(u)};return e=EHDI.aka.Loader,t=new createjs.LoadQueue,createjs.Sound.alternateExtensions=r,Object.defineProperty(EHDI.Assets,"cjAssets",{value:t,enumerable:!1}),t.installPlugin(createjs.Sound),t.addEventListener("progress",E),t.addEventListener("complete",w),t.addEventListener("error",S),e.on("progress",b),e.on("error",T),s.queueStrings=function(t){for(var e,i,r=[];t.length>0;)i=(e=t.pop()).split("/").pop().split(".")[0],r.push({id:i,src:e});a=a.concat(r)},s.queueFonts=function(t){for(var e;t.length>0;)(e=t.pop()).split("/").pop().split(".")[0],l.push(y(e))},s.queueAudios=function(t){for(var e,i,r=[];t.length>0;)"string"!=typeof(e=t.pop())?(i=e.id,e=e.url):i=e.split("/").pop().split(".")[0],r.push({id:i,src:e});a=a.concat(r)},s.queueImages=function(t){for(var e,i,r=[];t.length>0;)"string"!=typeof(e=t.pop())?(i=e.id,e=e.url):i=e.split("/").pop().split(".")[0],r.push({name:i,url:e});o=o.concat(r)},s.queueAssets=function(t){var e=function(t,e){return t=t.filter(function(t){return e.indexOf(t)<0})},a=v(t,n),o=v(t,r),l=v(t,i),h=e(t,a);h=e(h=e(h,l),o),s.queueFonts(a),s.queueAudios(o),s.queueStrings(l),s.queueImages(h)},s.loadConfig=function(t,e,i){if("string"!=typeof t)throw new Error("Invalid URL");if(void 0===e)throw new Error("needs JSONManager component");if(c)throw new Error("Load manager is currently running");var r=t.split("/").pop().split(".")[0];g(),s.queueStrings([t]),s.start(D,[e,r,i])},s.getProgress=function(){return d},s.start=function(i,r){if(c)throw new Error("EHDI Load manager is currently running");h=i,u=r,c=!0,d=0,p=0,f=a.length+o.length,_.length+m.length,e.reset(),function(){for(var e,i;_.length>0;)i=_.pop(),e=t.getItem(i),t.remove(e.id),"sound"===e.type&&createjs.Sound.removeSound(e.id);for(;m.length>0;)i=m.pop(),(e=EHDI.Assets.images[i]).destroy(!0);a.length>0?t.loadManifest(a):w()}()},s.unloadAssets=function(t){var e=function(t,e){return t=t.filter(function(t){return e.indexOf(t)<0})},s=v(t,n),a=v(t,r),o=v(t,i),l=e(t,a);l=e(l=e(l,o),s),_=(_=_.concat(a)).concat(o),m=m.concat(l)},s}()}(),(EHDI=EHDI||Object.create(null)).GetGlobalPool=function(){return null==EHDI.GlobalPool&&(EHDI.GlobalPool={},EHDI.GlobalPool.gameScenePool=new EHDI.PoolManager(EHDI.scene.GameScene)),EHDI.GlobalPool},EHDI.PoolManager=function(t){this._objType=t,this._totalObjects,this._inactiveObjexts,this._objPool,this.init()},EHDI.PoolManager.prototype.init=function(){this._totalObjects=0,this._inactiveObjexts=0,this._objPool=[]},EHDI.PoolManager.prototype.freeUp=function(){this._totalObjects=this._totalObjects-this._inactiveObjexts,this._inactiveObjexts=0,this._objPool=[]},EHDI.PoolManager.prototype.get=function(){return new this._objType},EHDI.PoolManager.prototype.return=function(t){"function"==typeof t.reset&&t.reset(),this._objPool.push(t),this._inactiveObjexts++},(EHDI=EHDI||Object.create(null)).ScaleManager=function(t,e,i,r,n){var s,a,o,l,h,u,c=arguments.length<=5||void 0===arguments[5]?null:arguments[5],d=document.createElement("style");d.appendChild(document.createTextNode("html, body {padding : 0; margin : 0; overflow : hidden; width: 100%; height: 100%, position : fixed}")),document.head.appendChild(d);var p=1,f=r,_=n;function m(){s=window.innerWidth/r,a=window.innerHeight/n,i===EHDI.ScaleManager.DOCKING.WIDTH?p=s:i===EHDI.ScaleManager.DOCKING.HEIGHT?p=a:i===EHDI.ScaleManager.DOCKING.AUTO?p=Math.min(s,a):i===EHDI.ScaleManager.DOCKING.FULLSCREEN&&(p=Math.max(s,a));var o=t.view;o.style.paddingLeft=0,o.style.paddingRight=0,o.style.paddingTop=0,o.style.paddingBottom=0,o.style.display="block",f=Math.floor(r*p),_=Math.floor(n*p),e.scale.x=e.scale.y=p,f>window.innerWidth?(f=window.innerWidth,EHDI.screen.viewWidth=f/p):(EHDI.screen.viewWidth=window.innerWidth/p,EHDI.screen.viewWidth>r&&(EHDI.screen.viewWidth=r)),_>window.innerHeight?(_=window.innerHeight,EHDI.screen.viewHeight=_/p):(EHDI.screen.viewHeight=window.innerHeight/p,EHDI.screen.viewHeight>n&&(EHDI.screen.viewHeight=n)),EHDI.screen.centerOrigin&&e.children.forEach(function(t){t.position.set(.5*EHDI.screen.viewWidth,.5*EHDI.screen.viewHeight)}),EHDI.screen.xOffset=EHDI.screen.stageWidth-EHDI.screen.viewWidth,EHDI.screen.yOffset=EHDI.screen.stageHeight-EHDI.screen.viewHeight,t.resize(f,_),function(){var e=t.view;e.style.marginTop=0,e.style.marginBottom=0,e.style.marginLeft=0,e.style.marginRight=0,(i==EHDI.ScaleManager.DOCKING.HEIGHT||i==EHDI.ScaleManager.DOCKING.FULLSCREEN||i==EHDI.ScaleManager.DOCKING.AUTO&&f<window.innerWidth)&&(h=(window.innerWidth-f)/2,e.style.marginLeft=h+"px",e.style.marginRight=h+"px");(i==EHDI.ScaleManager.DOCKING.WIDTH||i==EHDI.ScaleManager.DOCKING.FULLSCREEN||i==EHDI.ScaleManager.DOCKING.AUTO&&_<window.innerHeight)&&(h=(window.innerHeight-_)/2,e.style.marginTop=h+"px",e.style.marginBottom=h+"px")}(),window.scrollTo(0,0),g(),c&&c()}function g(){return o=window.innerHeight>window.innerWidth?EHDI.ScaleManager.SCREEN_ORIENTATION.PORTRAIT:EHDI.ScaleManager.SCREEN_ORIENTATION.LANDSCAPE}return EHDI.screen=EHDI.screen||Object.create(null),g(),m(),{getScale:function(){return p},getOrientation:function(){return o},scaleToWindow:m,setResizeCallback:function(t){if("function"!=typeof t)throw new Error("insert function as parameter");c=t},addAutomaticScaling:function(t){l||window.addEventListener("resize",function(){clearTimeout(u),t=t||500,u=setTimeout(m,t),l=!0})}}},EHDI.ScaleManager.SCREEN_ORIENTATION={LANDSCAPE:0,PORTRAIT:1},EHDI.ScaleManager.DOCKING={WIDTH:0,HEIGHT:1,AUTO:2,FULLSCREEN:3},(EHDI=EHDI||Object.create(null)).scene=EHDI.scene||Object.create(null),EHDI.SceneManager=function(t,e,i,r){var n,s=arguments.length<=4||void 0===arguments[4]?document.getElementById("game-canvas"):arguments[4],a=new EHDI.aka.Container,o={view:s,antialiasing:!1,transparent:!0,resolution:window.devicePixelRatio,autoResize:!0};n=i?new EHDI.aka.CanvasRenderer(t,e,o):new EHDI.aka.AutoDetectRenderer(t,e,o);var l=t,h=e,u=[],c=null,d=new EHDI.aka.Container,p=new EHDI.aka.Container,f=new EHDI.aka.Container;return EHDI.screen=EHDI.screen||Object.create(null),EHDI.screen.stageWidth=t,EHDI.screen.stageHeight=e,EHDI.screen.centerOrigin=r,r&&(d.position.set(.5*t,.5*e),p.position.set(.5*t,.5*e),f.position.set(.5*t,.5*e)),a.addChild(d),a.addChild(p),a.addChild(f),{getStage:function(){return a},getRenderer:function(){return n},getStageWidth:function(){return l},getStageHeight:function(){return h},defaultWidth:t,defaultHeight:e,renderScreen:function(){n.render(a)},changeScene:function(t,e,i){if("function"==typeof t.screenWillAppear&&t.screenWillAppear(),c&&"function"==typeof c.screenWillDisappear&&c.screenWillDisappear(),e){var r=Object.create(null);EHDI.config.isTransition=!0;for(var n=Object.keys(e),s=0;s<n.length;s++)e[n[s]].hasOwnProperty("from")&&e[n[s]].hasOwnProperty("to")?(t[n[s]]=e[n[s]].from,r[n[s]]=e[n[s]].to):e[n[s]].hasOwnProperty("duration")||(r[n[s]]=e[n[s]]);d.addChild(t),r.onComplete=function(){EHDI.config.isTransition=!1,c&&("function"==typeof c.screenDidDisappear&&c.screenDidDisappear(),d.removeChild(c)),"function"==typeof t.screenDidAppear&&t.screenDidAppear(),i&&c.destroy({children:!0}),c=t},TweenLite.to(t,e.duration,r)}else d.addChild(t),c&&(d.removeChild(c),"function"==typeof c.screenDidDisappear&&c.screenDidDisappear()),"function"==typeof t.screenDidAppear&&t.screenDidAppear(),i&&c.destroy({children:!0}),c=t},pushPopUp:function(t,e){if("function"==typeof t.popUpWillAppear&&t.popUpWillAppear(),"function"==typeof c.popUpWillAppear&&0===u.length&&c.popUpWillAppear(),e){var i=Object.create(null);EHDI.config.isTransition=!0;for(var r=Object.keys(e),n=0;n<r.length;n++)e[r[n]].hasOwnProperty("from")&&e[r[n]].hasOwnProperty("to")?(t[r[n]]=e[r[n]].from,i[r[n]]=e[r[n]].to):e[r[n]].hasOwnProperty("duration")||(i[r[n]]=e[r[n]]);p.addChild(t),i.onComplete=function(){EHDI.config.isTransition=!1,"function"==typeof t.popUpDidAppear&&t.popUpDidAppear(),"function"==typeof c.popUpDidAppear&&0===u.length&&c.popUpDidAppear(),u.push(t)},TweenLite.to(t,e.duration,i)}else u.push(t),p.addChild(t),"function"==typeof t.popUpDidAppear&&t.popUpDidAppear()},popPopUp:function(t,e){if(u.length<=0)throw"Pop Up list is empty!";var i=u.pop();if("function"==typeof i.popUpWillDisappear&&i.popUpWillDisappear(),"function"==typeof c.popUpWillDisappear&&0===u.length&&c.popUpWillDisappear(),t){var r=Object.create(null);EHDI.config.isTransition=!0;for(var n=Object.keys(t),s=0;s<n.length;s++)t[n[s]].hasOwnProperty("from")&&t[n[s]].hasOwnProperty("to")?(i[n[s]]=t[n[s]].from,r[n[s]]=t[n[s]].to):t[n[s]].hasOwnProperty("duration")||(r[n[s]]=t[n[s]]);r.onComplete=function(){EHDI.config.isTransition=!1,"function"==typeof i.popUpDidDisappear&&i.popUpDidDisappear(),"function"==typeof c.popUpDidDisappear&&0===u.length&&c.popUpDidDisappear(),p.removeChild(i),e&&i.destroy({children:!0})},TweenLite.to(i,t.duration,r)}else p.removeChild(i),"function"==typeof i.popUpDidDisappear&&i.popUpDidDisappear(),"function"==typeof c.popUpDidDisappear&&0===u.length&&c.popUpDidDisappear(),e&&i.destroy({children:!0})},popAllPopUps:function(t){for(;u.length>0;){var e=u.pop();"function"==typeof e.popUpWillDisappear&&e.popUpWillDisappear(),"function"==typeof c.popUpWillDisappear&&0===u.length&&c.popUpWillDisappear(),p.removeChild(e),"function"==typeof e.popUpDidDisappear&&e.popUpDidDisappear(),"function"==typeof c.popUpDidDisappear&&0===u.length&&c.popUpDidDisappear(),t&&e.destroy({children:!0})}},addNotification:function(t){f.addChild(t)},removeNotification:function(t,e){var i;f.children.indexOf(t)>-1&&(i=f.removeChild(t)),e&&i.destroy({children:!0}),i=null},popNofication:function(){return f.children.pop()},screenResize:function(){c&&"function"==typeof c.onScreenResize&&c.onScreenResize(),u.forEach(function(t){"function"==typeof t.onScreenResize&&t.onScreenResize()}),f.children.forEach(function(t){"function"==typeof t.onScreenResize&&t.onScreenResize()})}}},EHDI.scene.TransitionParameter=function(t,e){this.from=t,this.to=e},EHDI.scene.TransitionParameter.constructor=EHDI.scene.TransitionParameter,(EHDI=EHDI||Object.create(null)).SoundManager=function(t){var e=null,i=[],r=null,n=!1,s=!0,a=!0,o={bgm:1,sfx:1,vo:1},l=t||!0,h=function(){e&&(e.paused=!0),i.forEach(function(t){t.paused=!0}),r&&(r.paused=!0)},u=function(){a&&(e&&(e.paused=!1),i.forEach(function(t){t.paused=!1}),r&&(r.paused=!1))},c=function(){window.document.webkitHidden||window.document.hidden?h():u()},d=function(){window.addEventListener("blur",h),window.addEventListener("focus",u),window.addEventListener("pagehide",h),window.addEventListener("pageshow",u),window.addEventListener("webkitvisibilitychange",c),window.addEventListener("webkitvisibilitychange",c)};return l&&d(),{set enableInterrupt(t){"boolean"==typeof t&&l!==t&&((l=t)?d():(window.removeEventListener("blur",h),window.removeEventListener("focus",u),window.removeEventListener("pagehide",h),window.removeEventListener("pageshow",u),window.removeEventListener("webkitvisibilitychange",c),window.removeEventListener("webkitvisibilitychange",c)))},get enableInterrupt(){return l},set sfxVolume(t){"number"==typeof t&&(o.sfx=t,i&&i.forEach(function(t){t.volume=t.volume*o.sfx}))},get sfxVolume(){return o.sfx},set bgmVolume(t){"number"==typeof t&&(o.bgm=t,e&&(e.volume=e.volume*o.bgm))},get bgmVolume(){return o.bgm},set voVolume(t){"number"==typeof t&&(o.vo=t,r&&(r.volume=r.volume*o.vo))},get voVolume(){return o.vo},playBGM:function(t,i){if(i=i*o.bgm||o.bgm,"string"==typeof t)return e instanceof createjs.AbstractSoundInstance&&(e.stop(),e.destroy()),(e=createjs.Sound.play(t,{loop:-1})).volume=i,e.muted=n,e;throw"pass string id of BGM to be played"},stopBGM:function(){e&&(e.stop(),e.destroy(),e=null)},pauseBGM:function(){e&&(e.paused=!0)},resumeBGM:function(){e&&(e.paused=!1)},playSFX:function(t,e){if(e=e*o.sfx||o.sfx,"string"==typeof t){var r=createjs.Sound.play(t);r.volume=e,r.muted=n,i.push(r);var s=r.on("complete",function(t){var e=i.indexOf(t.currentTarget);if(e>-1){var n=i.splice(e,1)[0];r.off("complete",s),n.destroy()}});return r}throw"pass string id of SFX to be played"},stopSFX:function(t){var e=i.indexOf(t);if(e>-1){var r=i.splice(e,1)[0];r.stop(),r.destroy()}},stopAllSFX:function(){i.forEach(function(t){t.stop(),t.destroy()}),i=[]},pauseAllSFX:function(){i.forEach(function(t){t.paused=!0})},resumeAllSFX:function(){i.forEach(function(t){t.paused=!1})},playVO:function(t,e){if(e=e*o.vo||o.vo,"string"==typeof t)return(r=createjs.Sound.play(t)).volume=e,r.muted=n,r;throw"pass string ID of VO to be played"},stopVO:function(){r&&(r.stop(),r.destroy())},pauseVO:function(){r&&(r.paused=!0)},resumeVO:function(){r&&(r.paused=!1)},setMute:function(){var t=arguments.length<=0||void 0===arguments[0]?!n:arguments[0];n=t,e&&(e.muted=n),i.forEach(function(t){t.muted=n}),r&&(r.muted=n)},getMuted:function(){return n},setDeactivate:function(){var t=arguments.length<=0||void 0===arguments[0]?!s:arguments[0];s=t,e&&(e.paused=!s),i.forEach(function(t){t.paused=!s}),r&&(r.muted=!s)},autoResumeToggle:function(t){a=t}}},(EHDI=EHDI||Object.create(null)).StorageManager=function(){"use strict";"use restrict";var t="game_data",e=!0,i=JSON.parse(localStorage.getItem(t)),r=function(){return!!e&&(null===i&&null!==t?(i=Object.create(null),r=JSON.stringify(i),localStorage.setItem(t,r),!0):null!==i);var r};return(e=function(){try{return localStorage.setItem("t3st","1"),localStorage.removeItem("t3st"),!0}catch(t){return!1}}())?r():(i=Object.create(null),console.log("Local storage is not supported. Current session will not be saved offline")),{checkLocalData:r,setDataID:function(e){(arguments.length<0||"string"!=typeof e)&&(e="game_data"),t=e,r()},getDataID:function(){return t},getLocalInfo:function(t){if("string"!=typeof t)throw"invalid key";return void 0===i[t]?null:i[t]},setLocalInfo:function(e,n){if(arguments.length<2)throw"invalid parameters";if("string"!=typeof e)throw"invalid key";i[e]=n,r()&&localStorage.setItem(t,JSON.stringify(i))},deleteLocalInfo:function(e){if("string"!=typeof e)throw"invalid key";delete i[e],localStorage.setItem(t,JSON.stringify(i))},clearLocalData:function(){var r;i=Object.create(null),e&&(r=JSON.stringify(i),localStorage.setItem(t,r))}}},(EHDI=EHDI||Object.create(null)).UpdateManager=function(t,e){if(this._autoRender,this._updateList,this._ticker,this._bindUpdate,this._currentFPS,this._autoRender=!1,this._updateList=[],this._currentFPS=60,this.update(),null==this._bindUpdate&&(this._bindUpdate=this.update.bind(this)),null==this._ticker&&(this._ticker=new EHDI.aka.Ticker,this._ticker.add(this._bindUpdate)),arguments.length>0){if(!(t instanceof EHDI.aka.CanvasRenderer||t instanceof EHDI.aka.GLRenderer))throw new Error("Please pass renderer as parameter");if(!(e instanceof EHDI.aka.DisplayObject))throw new Error("Stage is not a display object");this._autoRender=!0,this._renderer=t,this._stage=e}this._ticker.start()},EHDI.UpdateManager.prototype.update=function(t){if(this._updateSkipCount=0,this._updateList.length>0)for(var e=0;e<this._updateList.length;e++)this._updateList[e](t);this._autoRender&&this._renderer.render(this._stage)},EHDI.UpdateManager.prototype.getFPS=function(){return this._currentFPS!=this._ticker.FPS&&(this._currentFPS=this._ticker.FPS),Math.ceil(this._currentFPS)},EHDI.UpdateManager.prototype.setAutoRender=function(t){if("bool"!=typeof t)throw new Error("Parameter must be a boolean");this._autoRender=t},EHDI.UpdateManager.prototype.isAutoRendering=function(){return this._autoRender},EHDI.UpdateManager.prototype.addFrameListener=function(t){if("function"!=typeof t)throw new Error("Callback must be a function");this._updateList.push(t)},EHDI.UpdateManager.prototype.removeFrameListener=function(t){if("function"!=typeof t)throw new Error("Callback must be a function");var e=this._updateList.indexOf(t);e>-1&&this._updateList.splice(e,1)},EHDI.UpdateManager.prototype.hasFrameListener=function(t){if("function"!=typeof t)throw new Error("Callback must be a function");return this._updateList.indexOf(t)>-1},EHDI.UpdateManager.prototype.removeAllFrameListeners=function(){for(;this._updateList.length>0;)this._updateList.pop();this._updateList=[]},function(){"use strict";var t,e=[];function i(){for(;e.length;)e[0](),e.shift()}function r(t){this.a=n,this.b=void 0,this.f=[];var e=this;try{t(function(t){!function t(e,i){if(e.a==n){if(i==e)throw new TypeError;var r=!1;try{var s=i&&i.then;if(null!=i&&"object"==typeof i&&"function"==typeof s)return void s.call(i,function(i){r||t(e,i),r=!0},function(t){r||a(e,t),r=!0})}catch(t){return void(r||a(e,t))}e.a=0,e.b=i,o(e)}}(e,t)},function(t){a(e,t)})}catch(t){a(e,t)}}t=function(){setTimeout(i)};var n=2;function s(t){return new r(function(e){e(t)})}function a(t,e){if(t.a==n){if(e==t)throw new TypeError;t.a=1,t.b=e,o(t)}}function o(i){var r;r=function(){if(i.a!=n)for(;i.f.length;){var t=(s=i.f.shift())[0],e=s[1],r=s[2],s=s[3];try{0==i.a?r("function"==typeof t?t.call(void 0,i.b):i.b):1==i.a&&("function"==typeof e?r(e.call(void 0,i.b)):s(i.b))}catch(t){s(t)}}},e.push(r),1==e.length&&t()}r.prototype.g=function(t){return this.c(void 0,t)},r.prototype.c=function(t,e){var i=this;return new r(function(r,n){i.f.push([t,e,r,n]),o(i)})},window.Promise||(window.Promise=r,window.Promise.resolve=s,window.Promise.reject=function(t){return new r(function(e,i){i(t)})},window.Promise.race=function(t){return new r(function(e,i){for(var r=0;r<t.length;r+=1)s(t[r]).c(e,i)})},window.Promise.all=function(t){return new r(function(e,i){function r(i){return function(r){a[i]=r,(n+=1)==t.length&&e(a)}}var n=0,a=[];0==t.length&&e(a);for(var o=0;o<t.length;o+=1)s(t[o]).c(r(o),i)})},window.Promise.prototype.then=r.prototype.c,window.Promise.prototype.catch=r.prototype.g)}(),function(){function t(t,e){document.addEventListener?t.addEventListener("scroll",e,!1):t.attachEvent("scroll",e)}function e(t){this.a=document.createElement("div"),this.a.setAttribute("aria-hidden","true"),this.a.appendChild(document.createTextNode(t)),this.b=document.createElement("span"),this.c=document.createElement("span"),this.h=document.createElement("span"),this.f=document.createElement("span"),this.g=-1,this.b.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.c.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.f.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.h.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.b.appendChild(this.h),this.c.appendChild(this.f),this.a.appendChild(this.b),this.a.appendChild(this.c)}function i(t,e){t.a.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+e+";"}function r(t){var e=t.a.offsetWidth,i=e+100;return t.f.style.width=i+"px",t.c.scrollLeft=i,t.b.scrollLeft=t.b.scrollWidth+100,t.g!==e&&(t.g=e,!0)}function n(e,i){function n(){var t=s;r(t)&&t.a.parentNode&&i(t.g)}var s=e;t(e.b,n),t(e.c,n),r(e)}function s(t,e){var i=e||{};this.family=t,this.style=i.style||"normal",this.weight=i.weight||"normal",this.stretch=i.stretch||"normal"}var a=null,o=null,l=null,h=null;function u(){return null===h&&(h=!!document.fonts),h}function c(t,e){return[t.style,t.weight,function(){if(null===l){var t=document.createElement("div");try{t.style.font="condensed 100px sans-serif"}catch(t){}l=""!==t.style.font}return l}()?t.stretch:"","100px",e].join(" ")}s.prototype.load=function(t,r){var s=this,l=t||"BESbswy",h=0,d=r||3e3,p=(new Date).getTime();return new Promise(function(t,r){if(u()&&!function(){if(null===o)if(u()&&/Apple/.test(window.navigator.vendor)){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent);o=!!t&&603>parseInt(t[1],10)}else o=!1;return o}()){var f=new Promise(function(t,e){!function i(){(new Date).getTime()-p>=d?e():document.fonts.load(c(s,'"'+s.family+'"'),l).then(function(e){1<=e.length?t():setTimeout(i,25)},function(){e()})}()}),_=new Promise(function(t,e){h=setTimeout(e,d)});Promise.race([_,f]).then(function(){clearTimeout(h),t(s)},function(){r(s)})}else m=function(){function o(){var e;(e=-1!=m&&-1!=g||-1!=m&&-1!=v||-1!=g&&-1!=v)&&((e=m!=g&&m!=v&&g!=v)||(null===a&&(e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),a=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))),e=a&&(m==y&&g==y&&v==y||m==b&&g==b&&v==b||m==T&&g==T&&v==T)),e=!e),e&&(x.parentNode&&x.parentNode.removeChild(x),clearTimeout(h),t(s))}var u=new e(l),f=new e(l),_=new e(l),m=-1,g=-1,v=-1,y=-1,b=-1,T=-1,x=document.createElement("div");x.dir="ltr",i(u,c(s,"sans-serif")),i(f,c(s,"serif")),i(_,c(s,"monospace")),x.appendChild(u.a),x.appendChild(f.a),x.appendChild(_.a),document.body.appendChild(x),y=u.a.offsetWidth,b=f.a.offsetWidth,T=_.a.offsetWidth,function t(){if((new Date).getTime()-p>=d)x.parentNode&&x.parentNode.removeChild(x),r(s);else{var e=document.hidden;!0!==e&&void 0!==e||(m=u.a.offsetWidth,g=f.a.offsetWidth,v=_.a.offsetWidth,o()),h=setTimeout(t,50)}}(),n(u,function(t){m=t,o()}),i(u,c(s,'"'+s.family+'",sans-serif')),n(f,function(t){g=t,o()}),i(f,c(s,'"'+s.family+'",serif')),n(_,function(t){v=t,o()}),i(_,c(s,'"'+s.family+'",monospace'))},document.body?m():document.addEventListener?document.addEventListener("DOMContentLoaded",function t(){document.removeEventListener("DOMContentLoaded",t),m()}):document.attachEvent("onreadystatechange",function t(){"interactive"!=document.readyState&&"complete"!=document.readyState||(document.detachEvent("onreadystatechange",t),m())});var m})},"object"==typeof module?module.exports=s:(window.FontFaceObserver=s,window.FontFaceObserver.prototype.load=s.prototype.load)}();var EHDI,AssetDirectory={preloader:["assets/font/preloader/exo-bold.ttf","assets/font/preloader/exo-medium.ttf","assets/font/preloader/proximanova-black.ttf","assets/images/preloader/loader/gfx_bg.png","assets/images/preloader/loader/gfx_loading.png","assets/images/preloader/loader/gizmoloading.json","assets/images/preloader/loader/gizmoloading_ske.json","assets/images/preloader/loader/gizmoloading_tex.json","assets/images/preloader/loader/gizmoloading_tex.png","assets/sounds/preloader/loader/bgm/game_bgm.ogg","assets/sounds/preloader/loader/sfx/button_sfx.ogg","assets/sounds/preloader/loader/sfx/score_points.ogg","assets/sounds/preloader/loader/sfx/star_gain.ogg","assets/strings/preloader/strings.json"],game:["assets/images/external/game/10.png","assets/images/external/game/10a.png","assets/images/external/game/10b.png","assets/images/external/game/20.png","assets/images/external/game/20a.png","assets/images/external/game/20b.png","assets/images/external/game/30.png","assets/images/external/game/30a.png","assets/images/external/game/30b.png","assets/images/external/game/40.png","assets/images/external/game/40a.png","assets/images/external/game/40b.png","assets/images/external/game/50.png","assets/images/external/game/50a.png","assets/images/external/game/50b.png","assets/images/external/game/bg_ingame.png","assets/images/external/game/burst_fx/burst_fx_ske.json","assets/images/external/game/burst_fx/burst_fx_tex.json","assets/images/external/game/burst_fx/burst_fx_tex.png","assets/images/external/game/disc1a.png","assets/images/external/game/disc1b.png","assets/images/external/game/disc2a.png","assets/images/external/game/disc2b.png","assets/images/external/game/grid1a.png","assets/images/external/game/grid1b.png","assets/images/external/game/grid2a.png","assets/images/external/game/grid2b.png","assets/images/external/game/grid3a.png","assets/images/external/game/grid3b.png","assets/images/external/game/gridglow1.png","assets/images/external/game/gridglow2.png","assets/images/external/game/grid_base.png","assets/images/external/game/meter_bar.png","assets/images/external/game/meter_container.png","assets/images/external/game/mid.png","assets/images/external/game/pickup/fx_pickup_ske.json","assets/images/external/game/pickup/fx_pickup_tex.json","assets/images/external/game/pickup/fx_pickup_tex.png","assets/images/external/game/pickup1.png","assets/images/external/game/pickup2.png","assets/images/external/game/pickup3.png","assets/images/external/game/shadow1.png","assets/images/external/game/shadow2.png","assets/images/external/game/shadow3.png","assets/images/external/game/slide.png","assets/images/external/game/top.png","assets/sounds/external/game/disc.ogg","assets/sounds/external/game/gridselect.ogg","assets/sounds/external/game/lose.ogg","assets/sounds/external/game/pattern.ogg","assets/sounds/external/game/pickup.ogg","assets/sounds/external/game/success.ogg"],title:["assets/images/external/title/game_title.png","assets/images/external/title/title_background.png"],ui:["assets/images/external/ui/btn_audio1.png","assets/images/external/ui/btn_audio2.png","assets/images/external/ui/btn_audio3.png","assets/images/external/ui/btn_audio4.png","assets/images/external/ui/btn_exit.png","assets/images/external/ui/btn_exit2.png","assets/images/external/ui/btn_pause.png","assets/images/external/ui/btn_pause2.png","assets/images/external/ui/btn_play.png","assets/images/external/ui/btn_play2.png","assets/images/external/ui/btn_prevnext.png","assets/images/external/ui/btn_prevnext2.png","assets/images/external/ui/btn_return.png","assets/images/external/ui/btn_return2.png","assets/images/external/ui/check-button1.png","assets/images/external/ui/check-button2.png","assets/images/external/ui/gfx_container.png","assets/images/external/ui/gfx_container_white.png","assets/images/external/ui/gfx_explode.png","assets/images/external/ui/gfx_flare_long.png","assets/images/external/ui/gfx_flare_star.png","assets/images/external/ui/gfx_loading_bar_con.png","assets/images/external/ui/gfx_pop.png","assets/images/external/ui/gfx_pop2.png","assets/images/external/ui/gfx_star0.png","assets/images/external/ui/gfx_star1.png","assets/images/external/ui/gfx_starbg.png","assets/images/external/ui/htp1.png","assets/images/external/ui/htp2.png","assets/images/external/ui/htp3.png","assets/images/external/ui/x-button1.png","assets/images/external/ui/x-button2.png"]};!function(t){"use strict";t.BrowserInfo=Object.create(null);var e,i,r,n,s=window.navigator,a=t.BrowserInfo,o=s.userAgent;a.platformType=s.platform,a.platformVersion="",a.browserName=s.appName,a.browserVersion=s.appVersion,a.isMobileDevice=!1,a.isIOS=!1,a.deviceType="desktop",-1!==s.platform.indexOf("iPhone")?(a.isMobileDevice=!0,a.platformType="iPhone "+(r=window.screen.height,320===(n=window.screen.width)&&480===r?"4":375===n&&667===r?"6":414===n&&736===r?"6+":320===n&&568===r?"5":r<=480?"1-3":" "),a.deviceType="phone",a.isIOS=!0,e=/OS (\d+_\d+)/g,-1!==o.search(e)&&(i=String(o.match(e)),a.platformVersion=i.replace("_","."))):-1!=s.platform.indexOf("iPod")?(a.isMobileDevice=!0,a.platformType="iPod",a.deviceType="tablet",a.isIOS=!0,e=/OS (\d+_\d+)/g,-1!==o.search(e)&&(i=String(o.match(e)),a.platformVersion=i.replace("_","."))):-1!=s.platform.indexOf("iPad")?(a.isMobileDevice=!0,a.platformType="iPad",a.deviceType="tablet",a.isIOS=!0,e=/OS (\d+_\d+)/g,-1!==o.search(e)&&(i=String(o.match(e)),a.platformVersion=i.replace("_","."))):-1!=o.indexOf("Android")?(a.isMobileDevice=!0,a.platformType="Android",a.deviceType="tablet",e=/OS (\d+_\d+)/g,-1!==o.search(e)&&(i=String(o.match(e)),a.platformVersion=i.replace("_","."))):-1!=o.indexOf("Kindle")||-1!=o.indexOf("Silk")?(a.isMobileDevice=!0,a.platformType="Android",a.deviceType="tablet"):-1!=o.indexOf("IEMobile")?(a.isMobileDevice=!0,a.platformType="IEMobile",a.deviceType="phone",e=/IEMobile\/(\d+\.\d+)/g,-1!==o.search(e)&&(a.platformVersion=String(o.match(e)))):-1!=s.platform.indexOf("Win")?(a.platformType="Windows",a.deviceType="desktop"):-1!=s.platform.indexOf("Mac")?(a.platformType="MAC",a.deviceType="desktop",e=/OS (\d+_\d+)/g,-1!==o.search(e)&&(i=String(o.match(e)),a.platformVersion=i.replace("_","."))):-1!=s.platform.indexOf("Linux")&&(a.platformType="Linux",a.deviceType="desktop");var l=function(){var t,e=s.userAgent,i=e.match(/(crios|samsungbrowser|opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if(/trident/i.test(i[1]))return"IE "+((t=/\brv[ :]+(\d+)/g.exec(e)||[])[1]||"");if("Chrome"===i[1]&&null!=(t=e.match(/\b(OPR|Edge)\/(\d+)/))){if(-1!=t.indexOf("OPR"))return t.slice(1).join(" ").replace("OPR","Opera");if(-1!=t.indexOf("Edge"))return t.slice(1).join(" ").replace("Edge","Edge")}return i=i[2]?[i[1],i[2]]:[s.appName,s.appVersion,"-?"],null!=(t=e.match(/version\/(\d+)/i))&&i.splice(1,1,t[1]),i.join(" ")}();a.browserName=l.split(" ")[0],"CRIOS"===a.browserName.toUpperCase()&&(a.browserName="Chrome"),a.browserVersion=l.split(" ")[1],t.checkGLQuality=function(t){if(!t)throw new Error("pass renderer as parameters");var e=0,i=t.view.getContext("webgl")||t.view.getContext("experimental-webgl");if(!i)return"canvas";var r=i.getExtension("EXT_texture_filter_anisotropic")||i.getExtension("MOZ_EXT_texture_filter_anisotropic")||i.getExtension("WEBKIT_EXT_texture_filter_anisotropic");return r&&(e=i.getParameter(r.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),e>4?"gl-high":"gl-normal"}}(EHDI||Object.create(null)),(EHDI=EHDI||Object.create(null)).CollisionUtil=function(){},EHDI.CollisionUtil.rectToRect=function(t,e){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.height+t.y>e.y},EHDI.CollisionUtil.circleToRect=function(t,e){var i=Math.abs(t.x-e.x-.5*e.width),r=Math.abs(t.y-e.y-.5*e.height);if(i>.5*e.width+t.r)return!1;if(r>.5*e.height+t.r)return!1;if(i<=.5*e.width)return!0;if(r<=.5*e.height)return!0;var n=i-.5*e.width,s=r-.5*e.height;return n*n+s*s<=t.r*t.r},EHDI.CollisionUtil.circleToCircle=function(t,e){var i=t.x-e.x,r=t.y-e.y;return Math.sqrt(i*i+r*r)<t.r+e.r},(EHDI=EHDI||Object.create(null)).debugUtils=EHDI.debugUtils||Object.create(null),EHDI.debugUtils.debugUtilsContainer=function(t){EHDI.aka.Container.call(this);var e=new EHDI.debugUtils.FPSDisplay;e.anchor.y=1,e.position.set(0,EHDI.GAME.sceneManager.getStageHeight()),this.addChild(e);var i=new EHDI.aka.PixiText(t,{fontFamily:"sans-serif",fill:16777215,dropShadow:!0,fontSize:32});i.anchor.x=1,i.anchor.y=1,i.position.set(EHDI.GAME.sceneManager.getStageWidth(),EHDI.GAME.sceneManager.getStageHeight()),this.addChild(i)},EHDI.debugUtils.debugUtilsContainer.prototype=Object.create(EHDI.aka.Container.prototype),EHDI.debugUtils.FPSDisplay=function(){this.fps=EHDI.GAME.updateManager.getFPS(),EHDI.aka.PixiText.call(this,"FPS : "+this.fps,{fontFamily:"sans-serif",fill:16777215,dropShadow:!0,fontSize:32}),EHDI.GAME.updateManager.addFrameListener(this.updateMe.bind(this))},EHDI.debugUtils.FPSDisplay.prototype=Object.create(EHDI.aka.PixiText.prototype),EHDI.debugUtils.FPSDisplay.prototype.updateMe=function(){this.fps!==EHDI.GAME.updateManager.getFPS()&&(this.text="FPS :"+EHDI.GAME.updateManager.getFPS())},(EHDI=EHDI||Object.create(null)).interactions=EHDI.interactions||Object.create(null),EHDI.interactions.Keyboard=function(t){var e={};e.code=t,e.isDown=!1,e.isUp=!0,e.press=null,e.release=null,e.downHandler=function(t){t.keyCode===e.code&&(e.isUp&&e.press&&e.press(),e.isDown=!0,e.isUp=!1)},e.upHandler=function(t){t.keyCode===e.code&&(e.isDown&&e.release&&e.release(),e.isUp=!0,e.isDown=!1)};var i=e.downHandler.bind(e),r=e.upHandler.bind(e);return window.addEventListener("keydown",i,!1),window.addEventListener("keyup",r,!1),e.dispose=function(){window.removeEventListener("keydown",i),window.removeEventListener("keyup",r)},e},EHDI.interactions.ArrowControl=function(t,e){if(void 0===typeof e)throw new Error("Indicate speed in which you whant the sprite to move");var i=EHDI.interactions.Keyboard(38),r=EHDI.interactions.Keyboard(39),n=EHDI.interactions.Keyboard(40),s=EHDI.interactions.Keyboard(37);s.press=function(){t.vx=-e},s.release=function(){r.isDown||(t.vx=0)},r.press=function(){t.vx=e},r.release=function(){s.isDown||(t.vx=0)},i.press=function(){t.vy=-e},i.release=function(){n.isDown||(t.vy=0)},n.press=function(){t.vy=e},n.release=function(){i.isDown||(t.vy=0)}},(EHDI=EHDI||Object.create(null)).NumberUtil=EHDI.NumberUtil||Object.create(null),EHDI.NumberUtil.GOLDEN_RATIO=1.61803398875,EHDI.NumberUtil.degreeToRadian=function(t){return t*(Math.PI/180)},EHDI.NumberUtil.radianToDegree=function(t){return t*(180/Math.PI)},EHDI.NumberUtil.lerp=function(t,e,i){return(1-t)*e+t*i},EHDI.NumberUtil.normalize=function(t,e,i){return(t-e)/(i-e)},EHDI.NumberUtil.map=function(t,e,i,r,n,s){if(s=void 0!==s&&s){if(t>e)return r;if(t<i)return n}return NumberUtil.lerp(NumberUtil.normalize(t,e,i),r,n)},EHDI.NumberUtil.clamp=function(t,e,i){return Math.max(e,Math.min(i,t))},EHDI.NumberUtil.randomRange=function(t,e){return t>e?Math.random()*(t-e)+e:Math.random()*(e-t)+t},EHDI.NumberUtil.getDigit=function(t){return t.toString().length},EHDI.NumberUtil.shuffleArray=function(t){for(var e,i,r,n,s,a=t.length-1;a>0;a--){var o=(s=a+1,Math.floor(Math.random()*s));r=a,void 0,n=(e=t)[i=o],e[i]=e[r],e[r]=n}},(EHDI=EHDI||Object.create(null)).util=EHDI.util||Object.create(null),EHDI.util.Time=function(){this._lastTime,this._pauseTime,this._pause,this._lastFrameTime,this._date,this._pause=!1,this._lastTime=(new Date).getTime(),this._lastFrameTime=(new Date).getTime()},EHDI.util.Time.prototype.reset=function(){this._pause=!1,this._lastTime=(new Date).getTime(),this._lastFrameTime=(new Date).getTime()},EHDI.util.Time.prototype.addAdditionalTime=function(t){this._lastTime-=t},EHDI.util.Time.prototype.resetLastTime=function(t){this._lastTime-=(new Date).getTime()-t},EHDI.util.Time.prototype.getDelta=function(){var t=(new Date).getTime()-this._lastFrameTime;return t/=10,this.resetLastFrameTime(),t},EHDI.util.Time.prototype.resetLastFrameTime=function(){lastFrameTime=(new Date).getTime()},EHDI.util.Time.prototype.pause=function(t){t&&!this._pause?(this._pause=!0,this._pauseTime=(new Date).getTime()-this._lastTime):!t&&this._pause&&(this._pause=!1,this._lastTime=(new Date).getTime()-this._pauseTime,this._lastFrameTime=(new Date).getTime())},EHDI.util.Time.prototype.getTimeInMilliseconds=function(){var t;return t=this._pause?this._pauseTime:(new Date).getTime()-this._lastTime,parseInt(t)},EHDI.util.Time.prototype.getTime=function(){var t;return t=this._pause?this._pauseTime:(new Date).getTime()-this._lastTime,parseInt(t)},EHDI.util.Time.prototype.getTimeInSeconds=function(){var t;return t=this._pause?this._pauseTime:(new Date).getTime()-this._lastTime,t/=1e3,parseInt(t)},EHDI.util.Time.prototype.getPercentageOfCurrentTimeOverGivenTime=function(t){var e;return(e=this.getTimeInMilliseconds()/t)>1&&(e=1),e},EHDI.util.Time.prototype.addValueToLastTime=function(t){t+this._lastTime>(new Date).getTime()?this._lastTime=(new Date).getTime():this._lastTime+=t},EHDI.util.Time.prototype.destroy=function(){this.lastTime=null,this.pauseTime=null,this.onPause=null,this.lastFrameTime=null},(EHDI=EHDI||Object.create(null)).util=EHDI.util||Object.create(null),EHDI.util.Trigo=Object.create(null),EHDI.util.Trigo.getAngleOfOppositeAndAdjacent=function(t,e){return Math.atan(t/e)},EHDI.util.Trigo.getAngleOfOppositeAndHypotenuse=function(t,e){return Math.atan(t/e)},EHDI.util.Trigo.getAngleOfAdjacentAndHypotenuse=function(t,e){return Math.atan(t/e)},EHDI.util.Trigo.convertRadianToDegree=function(t){var e=t*(180/Math.PI);return EHDI.util.Trigo.floatRound(e,4)},EHDI.util.Trigo.convertDegreeToRadian=function(t){var e=t/(180/Math.PI);return EHDI.util.Trigo.floatRound(e,4)},EHDI.util.Trigo.floatRound=function(t,e){var i=Math.pow(10,e);return Math.round(i*t)/i},EHDI.util.Trigo.getHypotenuseUsingOppositeAndAdjacent=function(t,e){return EHDI.util.Trigo.floatRound(Math.sqrt(Math.pow(t,2)+Math.pow(e,2)),4)},EHDI.util.Trigo.getUnitCircleAngle=function(t,e){var i,r=e.x-t.x,n=e.y-t.y;if(0==r&&0==n)i=-1;else{var s=EHDI.util.Trigo.convertRadianToDegree(EHDI.util.Trigo.getAngleOfOppositeAndAdjacent(r,n));s=Math.abs(s),i=r>=0&&n>=0?90-s:r<0&&n>=0?s+90:r<0&&n<0?270-s:s+270}return i};