(function(B){function E(_){if(O[_])return O[_].exports;var b=O[_]={exports:{},id:_,loaded:!1};return B[_].call(b.exports,b,b.exports,E),b.loaded=!0,b.exports}var c=window.webpackJsonp;window.webpackJsonp=function(_,b){for(var m,l,f=0,o=[];f<_.length;f++)l=_[f],x[l]&&o.push.apply(o,x[l]),x[l]=0;for(m in b)B[m]=b[m];for(c&&c(_,b);o.length;)o.shift().call(null,E);if(b[0])return O[0]=0,E(0)};var O={},x={0:0};E.e=function(_,b){if(x[_]===0)return b.call(null,E);if(x[_]!==void 0)x[_].push(b);else{x[_]=[b];var m=document.getElementsByTagName("head")[0],l=document.createElement("script");l.type="text/javascript",l.charset="utf-8",l.async=!0,l.src=E.p+""+({1:"index"}[_]||_)+".js",m.appendChild(l)}},E.m=B,E.c=O,E.p=""})([]),webpackJsonp([1,0],[function(B,E,c){"use strict";function O(n){return n&&n.__esModule?n:{default:n}}var x=c(8),_=O(x),b=c(14),m=c(9);c(136);var l,f=c(259),o=c(262),e=c(261),t=c(257),i=m.TweenMax;(function(n){var r={number:1e3,duration:.75,gridSize:16,center:{x:400,y:280}},h=function(){function d(w){(0,_.default)(this,d),this.options=w,this.width=document.body.clientWidth||1440,this.height=560,this.renderer=b.autoDetectRenderer(this.width,this.height,{transparent:!0,antialias:!0}),this.stage=new b.Container,this.pointWrapper=new b.Container,this.pointBGWrap=new b.Container,this.lineContainer=new f.default(2*this.options.center.x+200,2*this.options.center.y),this.pointContainer=new o.default,this.pointLoopContainer=new e.default,this.pointBg=new b.Graphics,this.bgContainer=new t.default({w:this.width,h:this.height}),this.stage.alpha=0}return d.prototype.init=function(){var w=this;this.renderer.view.id="myCanvas",document.getElementById("canvasWrapper").appendChild(this.renderer.view),this.bgContainer.init(),this.stage.addChild(this.bgContainer.container),this.lineContainer.init(),this.pointBGWrap.addChild(this.lineContainer.container),this.lineContainer.container.x=-100,this.pointLoopContainer.init(),this.pointBGWrap.addChild(this.pointLoopContainer.container),this.pointWrapper.addChild(this.pointBGWrap),this.pointBg.beginFill(328976),this.pointBg.drawCircle(0,0,40),this.pointBg.x=this.options.center.x,this.pointBg.y=this.options.center.y,this.pointWrapper.addChild(this.pointBg),this.pointContainer.init(),this.pointWrapper.addChild(this.pointContainer.container),this.pointWrapper.x=.68*this.width/2-this.options.center.x,this.stage.addChild(this.pointWrapper),this.render(),this.resize(),window.addEventListener("resize",function(){return w.resize()}),i.ticker.addEventListener("tick",this.render,this),this.animate()},d.prototype.animate=function(){this.lineContainer.animate(),this.pointContainer.animate(),this.bgContainer.animate(),i.to(this.stage,.5,{delay:.3,alpha:1}),i.from(this.pointBg,.5,{delay:2.5,alpha:0})},d.prototype.render=function(){this.renderer.render(this.stage)},d.prototype.resize=function(){this.width=document.body.clientWidth,this.renderer.resize(this.width,this.height),this.bgContainer.resize({w:this.width,h:this.height});var w=.68*this.width/2-this.options.center.x;i.to(this.pointWrapper,.45,{x:w})},d}(),p=function(){function d(){(0,_.default)(this,d),this.scene=new h(r),this.scene.init()}return d.prototype.init=function(){},d}(),u=["https://zos.alipayobjects.com/rmsportal/JorDDgUVJljaIxDBpiBM.png","https://zos.alipayobjects.com/rmsportal/uIbqAshSeUuRPrRXNOrN.png"],y=0;u.forEach(function(d){var w=new Image;w.onload=w.onerror=function(){y++,y>=u.length&&new p},w.src=d})})(l||(l={}))},function(B,E,c){"use strict";function O(Tt){if(Tt&&Tt.__esModule)return Tt;var It={};if(Tt!=null)for(var bt in Tt)Object.prototype.hasOwnProperty.call(Tt,bt)&&(It[bt]=Tt[bt]);return It.default=Tt,It}function x(Tt){return Tt&&Tt.__esModule?Tt:{default:Tt}}function _(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:800,It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:600,bt=arguments[2],kt=arguments[3];return!kt&&tt.isWebGLSupported()?new yt.default(Tt,It,bt):new wt.default(Tt,It,bt)}E.__esModule=!0,E.Filter=E.SpriteMaskFilter=E.Quad=E.RenderTarget=E.ObjectRenderer=E.WebGLManager=E.Shader=E.CanvasRenderTarget=E.TextureUvs=E.VideoBaseTexture=E.BaseRenderTexture=E.RenderTexture=E.BaseTexture=E.Texture=E.CanvasGraphicsRenderer=E.GraphicsRenderer=E.GraphicsData=E.Graphics=E.TextStyle=E.Text=E.SpriteRenderer=E.CanvasTinter=E.CanvasSpriteRenderer=E.Sprite=E.TransformBase=E.TransformStatic=E.Transform=E.Container=E.DisplayObject=E.Bounds=E.glCore=E.WebGLRenderer=E.CanvasRenderer=E.ticker=E.utils=E.settings=void 0;var b=c(2);Object.keys(b).forEach(function(Tt){Tt!=="default"&&Tt!=="__esModule"&&Object.defineProperty(E,Tt,{enumerable:!0,get:function(){return b[Tt]}})});var m=c(4);Object.keys(m).forEach(function(Tt){Tt!=="default"&&Tt!=="__esModule"&&Object.defineProperty(E,Tt,{enumerable:!0,get:function(){return m[Tt]}})});var l=c(6);Object.defineProperty(E,"glCore",{enumerable:!0,get:function(){return x(l).default}});var f=c(57);Object.defineProperty(E,"Bounds",{enumerable:!0,get:function(){return x(f).default}});var o=c(93);Object.defineProperty(E,"DisplayObject",{enumerable:!0,get:function(){return x(o).default}});var e=c(34);Object.defineProperty(E,"Container",{enumerable:!0,get:function(){return x(e).default}});var t=c(94);Object.defineProperty(E,"Transform",{enumerable:!0,get:function(){return x(t).default}});var i=c(95);Object.defineProperty(E,"TransformStatic",{enumerable:!0,get:function(){return x(i).default}});var n=c(58);Object.defineProperty(E,"TransformBase",{enumerable:!0,get:function(){return x(n).default}});var r=c(63);Object.defineProperty(E,"Sprite",{enumerable:!0,get:function(){return x(r).default}});var h=c(211);Object.defineProperty(E,"CanvasSpriteRenderer",{enumerable:!0,get:function(){return x(h).default}});var p=c(64);Object.defineProperty(E,"CanvasTinter",{enumerable:!0,get:function(){return x(p).default}});var u=c(213);Object.defineProperty(E,"SpriteRenderer",{enumerable:!0,get:function(){return x(u).default}});var y=c(215);Object.defineProperty(E,"Text",{enumerable:!0,get:function(){return x(y).default}});var d=c(105);Object.defineProperty(E,"TextStyle",{enumerable:!0,get:function(){return x(d).default}});var w=c(183);Object.defineProperty(E,"Graphics",{enumerable:!0,get:function(){return x(w).default}});var g=c(96);Object.defineProperty(E,"GraphicsData",{enumerable:!0,get:function(){return x(g).default}});var a=c(186);Object.defineProperty(E,"GraphicsRenderer",{enumerable:!0,get:function(){return x(a).default}});var s=c(184);Object.defineProperty(E,"CanvasGraphicsRenderer",{enumerable:!0,get:function(){return x(s).default}});var v=c(26);Object.defineProperty(E,"Texture",{enumerable:!0,get:function(){return x(v).default}});var P=c(25);Object.defineProperty(E,"BaseTexture",{enumerable:!0,get:function(){return x(P).default}});var T=c(65);Object.defineProperty(E,"RenderTexture",{enumerable:!0,get:function(){return x(T).default}});var C=c(106);Object.defineProperty(E,"BaseRenderTexture",{enumerable:!0,get:function(){return x(C).default}});var M=c(108);Object.defineProperty(E,"VideoBaseTexture",{enumerable:!0,get:function(){return x(M).default}});var R=c(107);Object.defineProperty(E,"TextureUvs",{enumerable:!0,get:function(){return x(R).default}});var S=c(100);Object.defineProperty(E,"CanvasRenderTarget",{enumerable:!0,get:function(){return x(S).default}});var L=c(23);Object.defineProperty(E,"Shader",{enumerable:!0,get:function(){return x(L).default}});var A=c(24);Object.defineProperty(E,"WebGLManager",{enumerable:!0,get:function(){return x(A).default}});var D=c(37);Object.defineProperty(E,"ObjectRenderer",{enumerable:!0,get:function(){return x(D).default}});var I=c(38);Object.defineProperty(E,"RenderTarget",{enumerable:!0,get:function(){return x(I).default}});var U=c(104);Object.defineProperty(E,"Quad",{enumerable:!0,get:function(){return x(U).default}});var N=c(103);Object.defineProperty(E,"SpriteMaskFilter",{enumerable:!0,get:function(){return x(N).default}});var W=c(102);Object.defineProperty(E,"Filter",{enumerable:!0,get:function(){return x(W).default}}),E.autoDetectRenderer=_;var H=c(3),tt=O(H),it=c(109),K=O(it),at=c(5),ut=x(at),mt=c(36),wt=x(mt),Dt=c(62),yt=x(Dt);E.settings=ut.default,E.utils=tt,E.ticker=K,E.CanvasRenderer=wt.default,E.WebGLRenderer=yt.default},function(B,E){"use strict";E.__esModule=!0,E.VERSION="4.3.2",E.PI_2=2*Math.PI,E.RAD_TO_DEG=180/Math.PI,E.DEG_TO_RAD=Math.PI/180,E.RENDERER_TYPE={UNKNOWN:0,WEBGL:1,CANVAS:2},E.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},E.DRAW_MODES={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},E.SCALE_MODES={LINEAR:0,NEAREST:1},E.WRAP_MODES={CLAMP:0,REPEAT:1,MIRRORED_REPEAT:2},E.GC_MODES={AUTO:0,MANUAL:1},E.URL_FILE_EXTENSION=/\.(\w{3,4})(?:$|\?|#)/i,E.DATA_URI=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;(charset=[\w-]+|base64))?,(.*)/i,E.SVG_SIZE=/]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,E.SHAPES={POLY:0,RECT:1,CIRC:2,ELIP:3,RREC:4},E.PRECISION={LOW:"lowp",MEDIUM:"mediump",HIGH:"highp"},E.TRANSFORM_MODE={STATIC:0,DYNAMIC:1},E.TEXT_GRADIENT={LINEAR_VERTICAL:0,LINEAR_HORIZONTAL:1}},function(B,E,c){"use strict";function O(M){if(M&&M.__esModule)return M;var R={};if(M!=null)for(var S in M)Object.prototype.hasOwnProperty.call(M,S)&&(R[S]=M[S]);return R.default=M,R}function x(M){return M&&M.__esModule?M:{default:M}}function _(){return++T}function b(M,R){return R=R||[],R[0]=(M>>16&255)/255,R[1]=(M>>8&255)/255,R[2]=(255&M)/255,R}function m(M){return M=M.toString(16),M="000000".substr(0,6-M.length)+M,"#"+M}function l(M){return(255*M[0]<<16)+(255*M[1]<<8)+255*M[2]}function f(M,R){var S=d.default.RETINA_PREFIX.exec(M);return S?parseFloat(S[1]):R!==void 0?R:1}function o(M){var R=u.DATA_URI.exec(M);if(R)return{mediaType:R[1]?R[1].toLowerCase():void 0,subType:R[2]?R[2].toLowerCase():void 0,encoding:R[3]?R[3].toLowerCase():void 0,data:R[4]}}function e(M){var R=u.URL_FILE_EXTENSION.exec(M);if(R)return R[1].toLowerCase()}function t(M){var R=u.SVG_SIZE.exec(M),S={};return R&&(S[R[1]]=Math.round(parseFloat(R[3])),S[R[5]]=Math.round(parseFloat(R[7]))),S}function i(){C=!0}function n(M){if(!C){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1)var R=[` %c %c %c Pixi.js `+u.VERSION+" - \u2730 "+M+` \u2730 %c %c http://www.pixijs.com/ %c %c \u2665%c\u2665%c\u2665 `,"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;"];C=!0}}function r(){var M={stencil:!0,failIfMajorPerformanceCaveat:!0};try{if(!window.WebGLRenderingContext)return!1;var R=document.createElement("canvas"),S=R.getContext("webgl",M)||R.getContext("experimental-webgl",M),L=!(!S||!S.getContextAttributes().stencil);if(S){var A=S.getExtension("WEBGL_lose_context");A&&A.loseContext()}return S=null,L}catch(D){return!1}}function h(M){return M===0?0:M<0?-1:1}function p(M,R,S){var L=M.length;if(!(R>=L||S===0)){S=R+S>L?L-R:S;for(var A=L-S,D=R;D=0;t--){var i=f[t];i==="."?f.splice(t,1):i===".."?(f.splice(t,1),e++):e&&(f.splice(t,1),e--)}if(o)for(;e--;e)f.unshift("..");return f}function _(f,o){if(f.filter)return f.filter(o);for(var e=[],t=0;t=-1&&!o;e--){var t=e>=0?arguments[e]:O.cwd();if(typeof t!="string")throw new TypeError("Arguments to path.resolve must be strings");t&&(f=t+"/"+f,o=t.charAt(0)==="/")}return f=x(_(f.split("/"),function(i){return!!i}),!o).join("/"),(o?"/":"")+f||"."},E.normalize=function(f){var o=E.isAbsolute(f),e=l(f,-1)==="/";return f=x(_(f.split("/"),function(t){return!!t}),!o).join("/"),f||o||(f="."),f&&e&&(f+="/"),(o?"/":"")+f},E.isAbsolute=function(f){return f.charAt(0)==="/"},E.join=function(){var f=Array.prototype.slice.call(arguments,0);return E.normalize(_(f,function(o,e){if(typeof o!="string")throw new TypeError("Arguments to path.join must be strings");return o}).join("/"))},E.relative=function(f,o){function e(u){for(var y=0;y=0&&u[d]==="";d--);return y>d?[]:u.slice(y,d-y+1)}f=E.resolve(f).substr(1),o=E.resolve(o).substr(1);for(var t=e(f.split("/")),i=e(o.split("/")),n=Math.min(t.length,i.length),r=n,h=0;h.998){var T=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(T,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||P)for(var C,M=1/(1-v),R=this._firstPT;R;)C=R.s+R.c,R.c*=M,R.s=C-R.c,R=R._next}return this},p.render=function(g,a,s){this._initted||this._duration===0&&this.vars.repeat&&this.invalidate();var v,P,T,C,M,R,S,L,A=this._dirty?this.totalDuration():this._totalDuration,D=this._time,I=this._totalTime,U=this._cycle,N=this._duration,W=this._rawPrevTime;if(g>=A-1e-7?(this._totalTime=A,this._cycle=this._repeat,this._yoyo&&(1&this._cycle)!=0?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=N,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(v=!0,P="onComplete",s=s||this._timeline.autoRemoveChildren),N===0&&(this._initted||!this.vars.lazy||s)&&(this._startTime===this._timeline._duration&&(g=0),(W<0||g<=0&&g>=-1e-7||W===i&&this.data!=="isPause")&&W!==g&&(s=!0,W>i&&(P="onReverseComplete")),this._rawPrevTime=L=!a||g||W===g?g:i)):g<1e-7?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(I!==0||N===0&&W>0)&&(P="onReverseComplete",v=this._reversed),g<0&&(this._active=!1,N===0&&(this._initted||!this.vars.lazy||s)&&(W>=0&&(s=!0),this._rawPrevTime=L=!a||g||W===g?g:i)),this._initted||(s=!0)):(this._totalTime=this._time=g,this._repeat!==0&&(C=N+this._repeatDelay,this._cycle=this._totalTime/C>>0,this._cycle!==0&&this._cycle===this._totalTime/C&&I<=g&&this._cycle--,this._time=this._totalTime-this._cycle*C,this._yoyo&&(1&this._cycle)!=0&&(this._time=N-this._time),this._time>N?this._time=N:this._time<0&&(this._time=0)),this._easeType?(M=this._time/N,R=this._easeType,S=this._easePower,(R===1||R===3&&M>=.5)&&(M=1-M),R===3&&(M*=2),S===1?M*=M:S===2?M*=M*M:S===3?M*=M*M*M:S===4&&(M*=M*M*M*M),R===1?this.ratio=1-M:R===2?this.ratio=M:this._time/N<.5?this.ratio=M/2:this.ratio=1-M/2):this.ratio=this._ease.getRatio(this._time/N)),D===this._time&&!s&&U===this._cycle)return void(I!==this._totalTime&&this._onUpdate&&(a||this._callback("onUpdate")));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!s&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=D,this._totalTime=I,this._rawPrevTime=W,this._cycle=U,n.lazyTweens.push(this),void(this._lazy=[g,a]);this._time&&!v?this.ratio=this._ease.getRatio(this._time/N):v&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(this._time===0?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==D&&g>=0&&(this._active=!0),I===0&&(this._initted===2&&g>0&&this._init(),this._startAt&&(g>=0?this._startAt.render(g,a,s):P||(P="_dummyGS")),this.vars.onStart&&(this._totalTime===0&&N!==0||a||this._callback("onStart"))),T=this._firstPT;T;)T.f?T.t[T.p](T.c*this.ratio+T.s):T.t[T.p]=T.c*this.ratio+T.s,T=T._next;this._onUpdate&&(g<0&&this._startAt&&this._startTime&&this._startAt.render(g,a,s),a||(this._totalTime!==I||P)&&this._callback("onUpdate")),this._cycle!==U&&(a||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),P&&(this._gc&&!s||(g<0&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(g,a,s),v&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!a&&this.vars[P]&&this._callback(P),N===0&&this._rawPrevTime===i&&L!==i&&(this._rawPrevTime=0)))},t.to=function(g,a,s){return new t(g,a,s)},t.from=function(g,a,s){return s.runBackwards=!0,s.immediateRender=s.immediateRender!=0,new t(g,a,s)},t.fromTo=function(g,a,s,v){return v.startAt=s,v.immediateRender=v.immediateRender!=0&&s.immediateRender!=0,new t(g,a,v)},t.staggerTo=t.allTo=function(g,a,s,v,P,T,C){v=v||0;var M,R,S,L,A=0,D=[],I=function(){s.onComplete&&s.onComplete.apply(s.onCompleteScope||this,arguments),P.apply(C||s.callbackScope||this,T||u)},U=s.cycle,N=s.startAt&&s.startAt.cycle;for(h(g)||(typeof g=="string"&&(g=f.selector(g)||g),r(g)&&(g=o(g))),g=g||[],v<0&&(g=o(g),g.reverse(),v*=-1),M=g.length-1,S=0;S<=M;S++){R={};for(L in s)R[L]=s[L];if(U&&(e(R,g,S),R.duration!=null&&(a=R.duration,delete R.duration)),N){N=R.startAt={};for(L in s.startAt)N[L]=s.startAt[L];e(R.startAt,g,S)}R.delay=A+(R.delay||0),S===M&&P&&(R.onComplete=I),D[S]=new t(g[S],a,R),A+=v}return D},t.staggerFrom=t.allFrom=function(g,a,s,v,P,T,C){return s.runBackwards=!0,s.immediateRender=s.immediateRender!=0,t.staggerTo(g,a,s,v,P,T,C)},t.staggerFromTo=t.allFromTo=function(g,a,s,v,P,T,C,M){return v.startAt=s,v.immediateRender=v.immediateRender!=0&&s.immediateRender!=0,t.staggerTo(g,a,v,P,T,C,M)},t.delayedCall=function(g,a,s,v,P){return new t(a,0,{delay:g,onComplete:a,onCompleteParams:s,callbackScope:v,onReverseComplete:a,onReverseCompleteParams:s,immediateRender:!1,useFrames:P,overwrite:0})},t.set=function(g,a){return new t(g,0,a)},t.isTweening=function(g){return f.getTweensOf(g,!0).length>0};var y=function(g,a){for(var s=[],v=0,P=g._first;P;)P instanceof f?s[v++]=P:(a&&(s[v++]=P),s=s.concat(y(P,a)),v=s.length),P=P._next;return s},d=t.getAllTweens=function(g){return y(m._rootTimeline,g).concat(y(m._rootFramesTimeline,g))};t.killAll=function(g,a,s,v){a==null&&(a=!0),s==null&&(s=!0);var P,T,C,M=d(v!=0),R=M.length,S=a&&s&&v;for(C=0;C-1;)t.killChildTweensOf(g[T],a);else{s=[];for(P in M)for(v=M[P].target.parentNode;v;)v===g&&(s=s.concat(M[P].tweens)),v=v.parentNode;for(C=s.length,T=0;T-1;)T=C[R],(M||T instanceof l||(P=T.target===T.vars.onComplete)&&s||a&&!P)&&T.paused(g)};return t.pauseAll=function(g,a,s){w(!0,g,a,s)},t.resumeAll=function(g,a,s){w(!1,g,a,s)},t.globalTimeScale=function(g){var a=m._rootTimeline,s=f.ticker.time;return arguments.length?(g=g||i,a._startTime=s-(s-a._startTime)*a._timeScale/g,a=m._rootFramesTimeline,s=f.ticker.frame,a._startTime=s-(s-a._startTime)*a._timeScale/g,a._timeScale=m._rootTimeline._timeScale=g,g):a._timeScale},p.progress=function(g,a){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&(1&this._cycle)!=0?1-g:g)+this._cycle*(this._duration+this._repeatDelay),a):this._time/this.duration()},p.totalProgress=function(g,a){return arguments.length?this.totalTime(this.totalDuration()*g,a):this._totalTime/this.totalDuration()},p.time=function(g,a){return arguments.length?(this._dirty&&this.totalDuration(),g>this._duration&&(g=this._duration),this._yoyo&&(1&this._cycle)!=0?g=this._duration-g+this._cycle*(this._duration+this._repeatDelay):this._repeat!==0&&(g+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(g,a)):this._time},p.duration=function(g){return arguments.length?m.prototype.duration.call(this,g):this._duration},p.totalDuration=function(g){return arguments.length?this._repeat===-1?this:this.duration((g-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=this._repeat===-1?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},p.repeat=function(g){return arguments.length?(this._repeat=g,this._uncache(!0)):this._repeat},p.repeatDelay=function(g){return arguments.length?(this._repeatDelay=g,this._uncache(!0)):this._repeatDelay},p.yoyo=function(g){return arguments.length?(this._yoyo=g,this):this._yoyo},t},!0),b._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(m,l,f){var o=function(s){l.call(this,s),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var v,P,T=this.vars;for(P in T)v=T[P],r(v)&&v.join("").indexOf("{self}")!==-1&&(T[P]=this._swapSelfInParams(v));r(T.tweens)&&this.add(T.tweens,0,T.align,T.stagger)},e=1e-10,t=f._internals,i=o._internals={},n=t.isSelector,r=t.isArray,h=t.lazyTweens,p=t.lazyRender,u=b._gsDefine.globals,y=function(s){var v,P={};for(v in s)P[v]=s[v];return P},d=function(s,v,P){var T,C,M=s.cycle;for(T in M)C=M[T],s[T]=typeof C=="function"?C.call(v[P],P):C[P%C.length];delete s.cycle},w=i.pauseCallback=function(){},g=function(s){var v,P=[],T=s.length;for(v=0;v!==T;P.push(s[v++]));return P},a=o.prototype=new l;return o.version="1.19.0",a.constructor=o,a.kill()._gc=a._forcingPlayhead=a._hasPause=!1,a.to=function(s,v,P,T){var C=P.repeat&&u.TweenMax||f;return v?this.add(new C(s,v,P),T):this.set(s,P,T)},a.from=function(s,v,P,T){return this.add((P.repeat&&u.TweenMax||f).from(s,v,P),T)},a.fromTo=function(s,v,P,T,C){var M=T.repeat&&u.TweenMax||f;return v?this.add(M.fromTo(s,v,P,T),C):this.set(s,T,C)},a.staggerTo=function(s,v,P,T,C,M,R,S){var L,A,D=new o({onComplete:M,onCompleteParams:R,callbackScope:S,smoothChildTiming:this.smoothChildTiming}),I=P.cycle;for(typeof s=="string"&&(s=f.selector(s)||s),s=s||[],n(s)&&(s=g(s)),T=T||0,T<0&&(s=g(s),s.reverse(),T*=-1),A=0;As._startTime;L._timeline;)A&&L._timeline.smoothChildTiming?L.totalTime(L._totalTime,!0):L._gc&&L._enabled(!0,!1),L=L._timeline;return this},a.remove=function(s){if(s instanceof m){this._remove(s,!1);var v=s._timeline=s.vars.useFrames?m._rootFramesTimeline:m._rootTimeline;return s._startTime=(s._paused?s._pauseTime:v._time)-(s._reversed?s.totalDuration()-s._totalTime:s._totalTime)/s._timeScale,this}if(s instanceof Array||s&&s.push&&r(s)){for(var P=s.length;--P>-1;)this.remove(s[P]);return this}return typeof s=="string"?this.removeLabel(s):this.kill(null,s)},a._remove=function(s,v){l.prototype._remove.call(this,s,v);var P=this._last;return P?this._time>P._startTime+P._totalDuration/P._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},a.append=function(s,v){return this.add(s,this._parseTimeOrLabel(null,v,!0,s))},a.insert=a.insertMultiple=function(s,v,P,T){return this.add(s,v||0,P,T)},a.appendMultiple=function(s,v,P,T){return this.add(s,this._parseTimeOrLabel(null,v,!0,s),P,T)},a.addLabel=function(s,v){return this._labels[s]=this._parseTimeOrLabel(v),this},a.addPause=function(s,v,P,T){var C=f.delayedCall(0,w,P,T||this);return C.vars.onComplete=C.vars.onReverseComplete=v,C.data="isPause",this._hasPause=!0,this.add(C,s)},a.removeLabel=function(s){return delete this._labels[s],this},a.getLabelTime=function(s){return this._labels[s]!=null?this._labels[s]:-1},a._parseTimeOrLabel=function(s,v,P,T){var C;if(T instanceof m&&T.timeline===this)this.remove(T);else if(T&&(T instanceof Array||T.push&&r(T)))for(C=T.length;--C>-1;)T[C]instanceof m&&T[C].timeline===this&&this.remove(T[C]);if(typeof v=="string")return this._parseTimeOrLabel(v,P&&typeof s=="number"&&this._labels[v]==null?s-this.duration():0,P);if(v=v||0,typeof s!="string"||!isNaN(s)&&this._labels[s]==null)s==null&&(s=this.duration());else{if(C=s.indexOf("="),C===-1)return this._labels[s]==null?P?this._labels[s]=this.duration()+v:v:this._labels[s]+v;v=parseInt(s.charAt(C-1)+"1",10)*Number(s.substr(C+1)),s=C>1?this._parseTimeOrLabel(s.substr(0,C-1),0,P):this.duration()}return Number(s)+v},a.seek=function(s,v){return this.totalTime(typeof s=="number"?s:this._parseTimeOrLabel(s),v!==!1)},a.stop=function(){return this.paused(!0)},a.gotoAndPlay=function(s,v){return this.play(s,v)},a.gotoAndStop=function(s,v){return this.pause(s,v)},a.render=function(s,v,P){this._gc&&this._enabled(!0,!1);var T,C,M,R,S,L,A,D=this._dirty?this.totalDuration():this._totalDuration,I=this._time,U=this._startTime,N=this._timeScale,W=this._paused;if(s>=D-1e-7)this._totalTime=this._time=D,this._reversed||this._hasPausedChild()||(C=!0,R="onComplete",S=!!this._timeline.autoRemoveChildren,this._duration===0&&(s<=0&&s>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===e)&&this._rawPrevTime!==s&&this._first&&(S=!0,this._rawPrevTime>e&&(R="onReverseComplete"))),this._rawPrevTime=this._duration||!v||s||this._rawPrevTime===s?s:e,s=D+1e-4;else if(s<1e-7)if(this._totalTime=this._time=0,(I!==0||this._duration===0&&this._rawPrevTime!==e&&(this._rawPrevTime>0||s<0&&this._rawPrevTime>=0))&&(R="onReverseComplete",C=this._reversed),s<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(S=C=!0,R="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(S=!0),this._rawPrevTime=s;else{if(this._rawPrevTime=this._duration||!v||s||this._rawPrevTime===s?s:e,s===0&&C)for(T=this._first;T&&T._startTime===0;)T._duration||(C=!1),T=T._next;s=0,this._initted||(S=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!v){if(s>=I)for(T=this._first;T&&T._startTime<=s&&!L;)T._duration||T.data!=="isPause"||T.ratio||T._startTime===0&&this._rawPrevTime===0||(L=T),T=T._next;else for(T=this._last;T&&T._startTime>=s&&!L;)T._duration||T.data==="isPause"&&T._rawPrevTime>0&&(L=T),T=T._prev;L&&(this._time=s=L._startTime,this._totalTime=s+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=s}if(this._time!==I&&this._first||P||S||L){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==I&&s>0&&(this._active=!0),I===0&&this.vars.onStart&&(this._time===0&&this._duration||v||this._callback("onStart")),A=this._time,A>=I)for(T=this._first;T&&(M=T._next,A===this._time&&(!this._paused||W));)(T._active||T._startTime<=A&&!T._paused&&!T._gc)&&(L===T&&this.pause(),T._reversed?T.render((T._dirty?T.totalDuration():T._totalDuration)-(s-T._startTime)*T._timeScale,v,P):T.render((s-T._startTime)*T._timeScale,v,P)),T=M;else for(T=this._last;T&&(M=T._prev,A===this._time&&(!this._paused||W));){if(T._active||T._startTime<=I&&!T._paused&&!T._gc){if(L===T){for(L=T._prev;L&&L.endTime()>this._time;)L.render(L._reversed?L.totalDuration()-(s-L._startTime)*L._timeScale:(s-L._startTime)*L._timeScale,v,P),L=L._prev;L=null,this.pause()}T._reversed?T.render((T._dirty?T.totalDuration():T._totalDuration)-(s-T._startTime)*T._timeScale,v,P):T.render((s-T._startTime)*T._timeScale,v,P)}T=M}this._onUpdate&&(v||(h.length&&p(),this._callback("onUpdate"))),R&&(this._gc||U!==this._startTime&&N===this._timeScale||(this._time===0||D>=this.totalDuration())&&(C&&(h.length&&p(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!v&&this.vars[R]&&this._callback(R)))}},a._hasPausedChild=function(){for(var s=this._first;s;){if(s._paused||s instanceof o&&s._hasPausedChild())return!0;s=s._next}return!1},a.getChildren=function(s,v,P,T){T=T||-9999999999;for(var C=[],M=this._first,R=0;M;)M._startTime-1;)(P[T].timeline===this||v&&this._contains(P[T]))&&(M[R++]=P[T]);return C&&this._enabled(!1,!0),M},a.recent=function(){return this._recent},a._contains=function(s){for(var v=s.timeline;v;){if(v===this)return!0;v=v.timeline}return!1},a.shiftChildren=function(s,v,P){P=P||0;for(var T,C=this._first,M=this._labels;C;)C._startTime>=P&&(C._startTime+=s),C=C._next;if(v)for(T in M)M[T]>=P&&(M[T]+=s);return this._uncache(!0)},a._kill=function(s,v){if(!s&&!v)return this._enabled(!1,!1);for(var P=v?this.getTweensOf(v):this.getChildren(!0,!0,!1),T=P.length,C=!1;--T>-1;)P[T]._kill(s,v)&&(C=!0);return C},a.clear=function(s){var v=this.getChildren(!1,!0,!0),P=v.length;for(this._time=this._totalTime=0;--P>-1;)v[P]._enabled(!1,!1);return s!==!1&&(this._labels={}),this._uncache(!0)},a.invalidate=function(){for(var s=this._first;s;)s.invalidate(),s=s._next;return m.prototype.invalidate.call(this)},a._enabled=function(s,v){if(s===this._gc)for(var P=this._first;P;)P._enabled(s,!0),P=P._next;return l.prototype._enabled.call(this,s,v)},a.totalTime=function(s,v,P){this._forcingPlayhead=!0;var T=m.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,T},a.duration=function(s){return arguments.length?(this.duration()!==0&&s!==0&&this.timeScale(this._duration/s),this):(this._dirty&&this.totalDuration(),this._duration)},a.totalDuration=function(s){if(!arguments.length){if(this._dirty){for(var v,P,T=0,C=this._last,M=999999999999;C;)v=C._prev,C._dirty&&C.totalDuration(),C._startTime>M&&this._sortChildren&&!C._paused?this.add(C,C._startTime-C._delay):M=C._startTime,C._startTime<0&&!C._paused&&(T-=C._startTime,this._timeline.smoothChildTiming&&(this._startTime+=C._startTime/this._timeScale),this.shiftChildren(-C._startTime,!1,-9999999999),M=0),P=C._startTime+C._totalDuration/C._timeScale,P>T&&(T=P),C=v;this._duration=this._totalDuration=T,this._dirty=!1}return this._totalDuration}return s&&this.totalDuration()?this.timeScale(this._totalDuration/s):this},a.paused=function(s){if(!s)for(var v=this._first,P=this._time;v;)v._startTime===P&&v.data==="isPause"&&(v._rawPrevTime=0),v=v._next;return m.prototype.paused.apply(this,arguments)},a.usesFrames=function(){for(var s=this._timeline;s._timeline;)s=s._timeline;return s===m._rootFramesTimeline},a.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},o},!0),b._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(m,l,f){var o=function(u){m.call(this,u),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},e=1e-10,t=l._internals,i=t.lazyTweens,n=t.lazyRender,r=b._gsDefine.globals,h=new f(null,null,1,0),p=o.prototype=new m;return p.constructor=o,p.kill()._gc=!1,o.version="1.19.0",p.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),m.prototype.invalidate.call(this)},p.addCallback=function(u,y,d,w){return this.add(l.delayedCall(0,u,d,w),y)},p.removeCallback=function(u,y){if(u)if(y==null)this._kill(null,u);else for(var d=this.getTweensOf(u,!1),w=d.length,g=this._parseTimeOrLabel(y);--w>-1;)d[w]._startTime===g&&d[w]._enabled(!1,!1);return this},p.removePause=function(u){return this.removeCallback(m._internals.pauseCallback,u)},p.tweenTo=function(u,y){y=y||{};var d,w,g,a={ease:h,useFrames:this.usesFrames(),immediateRender:!1},s=y.repeat&&r.TweenMax||l;for(w in y)a[w]=y[w];return a.time=this._parseTimeOrLabel(u),d=Math.abs(Number(a.time)-this._time)/this._timeScale||.001,g=new s(this,d,a),a.onStart=function(){g.target.paused(!0),g.vars.time!==g.target.time()&&d===g.duration()&&g.duration(Math.abs(g.vars.time-g.target.time())/g.target._timeScale),y.onStart&&g._callback("onStart")},g},p.tweenFromTo=function(u,y,d){d=d||{},u=this._parseTimeOrLabel(u),d.startAt={onComplete:this.seek,onCompleteParams:[u],callbackScope:this},d.immediateRender=d.immediateRender!==!1;var w=this.tweenTo(y,d);return w.duration(Math.abs(w.vars.time-u)/this._timeScale||.001)},p.render=function(u,y,d){this._gc&&this._enabled(!0,!1);var w,g,a,s,v,P,T,C,M=this._dirty?this.totalDuration():this._totalDuration,R=this._duration,S=this._time,L=this._totalTime,A=this._startTime,D=this._timeScale,I=this._rawPrevTime,U=this._paused,N=this._cycle;if(u>=M-1e-7)this._locked||(this._totalTime=M,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(g=!0,s="onComplete",v=!!this._timeline.autoRemoveChildren,this._duration===0&&(u<=0&&u>=-1e-7||I<0||I===e)&&I!==u&&this._first&&(v=!0,I>e&&(s="onReverseComplete"))),this._rawPrevTime=this._duration||!y||u||this._rawPrevTime===u?u:e,this._yoyo&&(1&this._cycle)!=0?this._time=u=0:(this._time=R,u=R+1e-4);else if(u<1e-7)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(S!==0||R===0&&I!==e&&(I>0||u<0&&I>=0)&&!this._locked)&&(s="onReverseComplete",g=this._reversed),u<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(v=g=!0,s="onReverseComplete"):I>=0&&this._first&&(v=!0),this._rawPrevTime=u;else{if(this._rawPrevTime=R||!y||u||this._rawPrevTime===u?u:e,u===0&&g)for(w=this._first;w&&w._startTime===0;)w._duration||(g=!1),w=w._next;u=0,this._initted||(v=!0)}else if(R===0&&I<0&&(v=!0),this._time=this._rawPrevTime=u,this._locked||(this._totalTime=u,this._repeat!==0&&(P=R+this._repeatDelay,this._cycle=this._totalTime/P>>0,this._cycle!==0&&this._cycle===this._totalTime/P&&L<=u&&this._cycle--,this._time=this._totalTime-this._cycle*P,this._yoyo&&(1&this._cycle)!=0&&(this._time=R-this._time),this._time>R?(this._time=R,u=R+1e-4):this._time<0?this._time=u=0:u=this._time)),this._hasPause&&!this._forcingPlayhead&&!y){if(u=this._time,u>=S)for(w=this._first;w&&w._startTime<=u&&!T;)w._duration||w.data!=="isPause"||w.ratio||w._startTime===0&&this._rawPrevTime===0||(T=w),w=w._next;else for(w=this._last;w&&w._startTime>=u&&!T;)w._duration||w.data==="isPause"&&w._rawPrevTime>0&&(T=w),w=w._prev;T&&(this._time=u=T._startTime,this._totalTime=u+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==N&&!this._locked){var W=this._yoyo&&(1&N)!=0,H=W===(this._yoyo&&(1&this._cycle)!=0),tt=this._totalTime,it=this._cycle,K=this._rawPrevTime,at=this._time;if(this._totalTime=N*R,this._cycle0&&(this._active=!0),L===0&&this.vars.onStart&&(this._totalTime===0&&this._totalDuration||y||this._callback("onStart")),C=this._time,C>=S)for(w=this._first;w&&(a=w._next,C===this._time&&(!this._paused||U));)(w._active||w._startTime<=this._time&&!w._paused&&!w._gc)&&(T===w&&this.pause(),w._reversed?w.render((w._dirty?w.totalDuration():w._totalDuration)-(u-w._startTime)*w._timeScale,y,d):w.render((u-w._startTime)*w._timeScale,y,d)),w=a;else for(w=this._last;w&&(a=w._prev,C===this._time&&(!this._paused||U));){if(w._active||w._startTime<=S&&!w._paused&&!w._gc){if(T===w){for(T=w._prev;T&&T.endTime()>this._time;)T.render(T._reversed?T.totalDuration()-(u-T._startTime)*T._timeScale:(u-T._startTime)*T._timeScale,y,d),T=T._prev;T=null,this.pause()}w._reversed?w.render((w._dirty?w.totalDuration():w._totalDuration)-(u-w._startTime)*w._timeScale,y,d):w.render((u-w._startTime)*w._timeScale,y,d)}w=a}this._onUpdate&&(y||(i.length&&n(),this._callback("onUpdate"))),s&&(this._locked||this._gc||A!==this._startTime&&D===this._timeScale||(this._time===0||M>=this.totalDuration())&&(g&&(i.length&&n(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!y&&this.vars[s]&&this._callback(s)))},p.getActive=function(u,y,d){u==null&&(u=!0),y==null&&(y=!0),d==null&&(d=!1);var w,g,a=[],s=this.getChildren(u,y,d),v=0,P=s.length;for(w=0;wu)return d[y].name;return null},p.getLabelBefore=function(u){u==null&&(u=this._time);for(var y=this.getLabelsArray(),d=y.length;--d>-1;)if(y[d].timethis._duration&&(u=this._duration),this._yoyo&&(1&this._cycle)!=0?u=this._duration-u+this._cycle*(this._duration+this._repeatDelay):this._repeat!==0&&(u+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(u,y)):this._time},p.repeat=function(u){return arguments.length?(this._repeat=u,this._uncache(!0)):this._repeat},p.repeatDelay=function(u){return arguments.length?(this._repeatDelay=u,this._uncache(!0)):this._repeatDelay},p.yoyo=function(u){return arguments.length?(this._yoyo=u,this):this._yoyo},p.currentLabel=function(u){return arguments.length?this.seek(u,!0):this.getLabelBefore(this._time+1e-8)},o},!0),function(){var m=180/Math.PI,l=[],f=[],o=[],e={},t=b._gsDefine.globals,i=function(s,v,P,T){P===T&&(P=T-(T-v)/1e6),s===v&&(v=s+(P-s)/1e6),this.a=s,this.b=v,this.c=P,this.d=T,this.da=T-s,this.ca=P-s,this.ba=v-s},n=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",r=function(s,v,P,T){var C={a:s},M={},R={},S={c:T},L=(s+v)/2,A=(v+P)/2,D=(P+T)/2,I=(L+A)/2,U=(A+D)/2,N=(U-I)/8;return C.b=L+(s-L)/4,M.b=I+N,C.c=M.a=(C.b+M.b)/2,M.c=R.a=(I+U)/2,R.b=U-N,S.b=D+(T-D)/4,R.c=S.a=(R.b+S.b)/2,[C,M,R,S]},h=function(s,v,P,T,C){var M,R,S,L,A,D,I,U,N,W,H,tt,it,K=s.length-1,at=0,ut=s[0].a;for(M=0;M-1;)typeof(A=s[M][v])=="string"&&A.charAt(1)==="="&&(s[M][v]=T[v]+Number(A.charAt(0)+A.substr(2)));if(C=s.length-2,C<0)return D[0]=new i(s[0][v],0,0,s[C<-1?0:1][v]),D;for(M=0;M1){for(N=s[s.length-1],U=!0,R=H.length;--R>-1;)if(S=H[R],Math.abs(tt[S]-N[S])>.05){U=!1;break}U&&(s=s.concat(),M&&s.unshift(M),s.push(s[1]),M=s[s.length-3])}for(l.length=f.length=o.length=0,R=H.length;--R>-1;)S=H[R],e[S]=C.indexOf(","+S+",")!==-1,W[S]=p(s,S,e[S],M);for(R=l.length;--R>-1;)l[R]=Math.sqrt(l[R]),f[R]=Math.sqrt(f[R]);if(!T){for(R=H.length;--R>-1;)if(e[S])for(L=W[H[R]],I=L.length-1,A=0;A-1;)o[R]=Math.sqrt(o[R])}for(R=H.length,A=P?4:1;--R>-1;)S=H[R],L=W[S],h(L,v,P,T,e[S]),U&&(L.splice(0,A),L.splice(L.length-A,A));return W},y=function(s,v,P){v=v||"soft";var T,C,M,R,S,L,A,D,I,U,N,W={},H=v==="cubic"?3:2,tt=v==="soft",it=[];if(tt&&P&&(s=[P].concat(s)),s==null||s.length-1;){for(I=it[L],W[I]=S=[],U=0,D=s.length,A=0;A1&&A-1;)for(U=s[H],M=U.a,R=U.d-M,S=U.c-M,L=U.b-M,T=C=0,D=1;D<=P;D++)A=W*D,I=1-A,T=C-(C=(A*A*R+3*I*(A*S+I*L))*A),N=H*P+D-1,v[N]=(v[N]||0)+T*T},w=function(s,v){v=v>>0||6;var P,T,C,M,R=[],S=[],L=0,A=0,D=v-1,I=[],U=[];for(P in s)d(s[P],R,v);for(C=R.length,T=0;T>0,I[M]=U,S[M]=A,L=0,U=[]);return{length:A,lengths:S,segments:I}},g=b._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.7",API:2,global:!0,init:function(s,v,P){this._target=s,v instanceof Array&&(v={values:v}),this._func={},this._mod={},this._props=[],this._timeRes=v.timeResolution==null?6:parseInt(v.timeResolution,10);var T,C,M,R,S,L=v.values||[],A={},D=L[0],I=v.autoRotate||P.vars.orientToBezier;this._autoRotate=I?I instanceof Array?I:[["x","y","rotation",I===!0?0:Number(I)||0]]:null;for(T in D)this._props.push(T);for(M=this._props.length;--M>-1;)T=this._props[M],this._overwriteProps.push(T),C=this._func[T]=typeof s[T]=="function",A[T]=C?s[T.indexOf("set")||typeof s["get"+T.substr(3)]!="function"?T:"get"+T.substr(3)]():parseFloat(s[T]),S||A[T]!==L[0][T]&&(S=A);if(this._beziers=v.type!=="cubic"&&v.type!=="quadratic"&&v.type!=="soft"?u(L,isNaN(v.curviness)?1:v.curviness,!1,v.type==="thruBasic",v.correlate,S):y(L,v.type,A),this._segCount=this._beziers[T].length,this._timeRes){var U=w(this._beziers,this._timeRes);this._length=U.length,this._lengths=U.lengths,this._segments=U.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(I=this._autoRotate)for(this._initialRotations=[],I[0]instanceof Array||(this._autoRotate=I=[I]),M=I.length;--M>-1;){for(R=0;R<3;R++)T=I[M][R],this._func[T]=typeof s[T]=="function"&&s[T.indexOf("set")||typeof s["get"+T.substr(3)]!="function"?T:"get"+T.substr(3)];T=I[M][2],this._initialRotations[M]=(this._func[T]?this._func[T].call(this._target):this._target[T])||0,this._overwriteProps.push(T)}return this._startRatio=P.vars.runBackwards?1:0,!0},set:function(s){var v,P,T,C,M,R,S,L,A,D,I=this._segCount,U=this._func,N=this._target,W=s!==this._startRatio;if(this._timeRes){if(A=this._lengths,D=this._curSeg,s*=this._length,T=this._li,s>this._l2&&T0){for(;T>0&&(this._l1=A[--T])>=s;);T===0&&sthis._s2&&T0){for(;T>0&&(this._s1=D[--T])>=s;);T===0&&s=1?I-1:I*s>>0,R=(s-v*(1/I))*I;for(P=1-R,T=this._props.length;--T>-1;)C=this._props[T],M=this._beziers[C][v],S=(R*R*M.da+3*P*(R*M.ca+P*M.ba))*R+M.a,this._mod[C]&&(S=this._mod[C](S,N)),U[C]?N[C](S):N[C]=S;if(this._autoRotate){var H,tt,it,K,at,ut,mt,wt=this._autoRotate;for(T=wt.length;--T>-1;)C=wt[T][2],ut=wt[T][3]||0,mt=wt[T][4]===!0?1:m,M=this._beziers[wt[T][0]],H=this._beziers[wt[T][1]],M&&H&&(M=M[v],H=H[v],tt=M.a+(M.b-M.a)*R,K=M.b+(M.c-M.b)*R,tt+=(K-tt)*R,K+=(M.c+(M.d-M.c)*R-K)*R,it=H.a+(H.b-H.a)*R,at=H.b+(H.c-H.b)*R,it+=(at-it)*R,at+=(H.c+(H.d-H.c)*R-at)*R,S=W?Math.atan2(at-it,K-tt)*mt+ut:this._initialRotations[T],this._mod[C]&&(S=this._mod[C](S,N)),U[C]?N[C](S):N[C]=S)}}}),a=g.prototype;g.bezierThrough=u,g.cubicToQuadratic=r,g._autoCSS=!0,g.quadraticToCubic=function(s,v,P){return new i(s,(2*v+s)/3,(2*v+P)/3,P)},g._cssRegister=function(){var s=t.CSSPlugin;if(s){var v=s._internals,P=v._parseToProxy,T=v._setPluginRatio,C=v.CSSPropTween;v._registerComplexSpecialProp("bezier",{parser:function(M,R,S,L,A,D){R instanceof Array&&(R={values:R}),D=new g;var I,U,N,W=R.values,H=W.length-1,tt=[],it={};if(H<0)return A;for(I=0;I<=H;I++)N=P(M,W[I],L,A,D,H!==I),tt[I]=N.end;for(U in R)it[U]=R[U];return it.values=tt,A=new C(M,"bezier",0,0,N.pt,2),A.data=N,A.plugin=D,A.setRatio=T,it.autoRotate===0&&(it.autoRotate=!0),!it.autoRotate||it.autoRotate instanceof Array||(I=it.autoRotate===!0?0:Number(it.autoRotate),it.autoRotate=N.end.left!=null?[["left","top","rotation",I,!1]]:N.end.x!=null&&[["x","y","rotation",I,!1]]),it.autoRotate&&(L._transform||L._enableTransforms(!1),N.autoRotate=L._target._gsTransform,N.proxy.rotation=N.autoRotate.rotation||0,L._overwriteProps.push("rotation")),D._onInitTween(N.proxy,it,L._tween),A}})}},a._mod=function(s){for(var v,P=this._overwriteProps,T=P.length;--T>-1;)v=s[P[T]],v&&typeof v=="function"&&(this._mod[P[T]]=v)},a._kill=function(s){var v,P,T=this._props;for(v in this._beziers)if(v in s)for(delete this._beziers[v],delete this._func[v],P=T.length;--P>-1;)T[P]===v&&T.splice(P,1);if(T=this._autoRotate)for(P=T.length;--P>-1;)s[T[P][2]]&&T.splice(P,1);return this._super._kill.call(this,s)}}(),b._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(m,l){var f,o,e,t,i=function(){m.call(this,"css"),this._overwriteProps.length=0,this.setRatio=i.prototype.setRatio},n=b._gsDefine.globals,r={},h=i.prototype=new m("css");h.constructor=i,i.version="1.19.0",i.API=2,i.defaultTransformPerspective=0,i.defaultSkewType="compensated",i.defaultSmoothOrigin=!0,h="px",i.suffixMap={top:h,right:h,bottom:h,left:h,width:h,height:h,fontSize:h,padding:h,margin:h,perspective:h,lineHeight:""};var p,u,y,d,w,g,a,s,v=/(?:\-|\.|\b)(\d|\.|e\-)+/g,P=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,T=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,C=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,M=/(?:\d|\-|\+|=|#|\.)*/g,R=/opacity *= *([^)]*)/i,S=/opacity:([^;]*)/i,L=/alpha\(opacity *=.+?\)/i,A=/^(rgb|hsl)/,D=/([A-Z])/g,I=/-([a-z])/gi,U=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,N=function(F,X){return X.toUpperCase()},W=/(?:Left|Right|Width)/i,H=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,tt=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,it=/,(?=[^\)]*(?:\(|$))/gi,K=/[\s,\(]/i,at=Math.PI/180,ut=180/Math.PI,mt={},wt=document,Dt=function(F){return wt.createElementNS?wt.createElementNS("http://www.w3.org/1999/xhtml",F):wt.createElement(F)},yt=Dt("div"),Tt=Dt("img"),It=i._internals={_specialProps:r},bt=navigator.userAgent,kt=function(){var F=bt.indexOf("Android"),X=Dt("a");return y=bt.indexOf("Safari")!==-1&&bt.indexOf("Chrome")===-1&&(F===-1||Number(bt.substr(F+8,1))>3),w=y&&Number(bt.substr(bt.indexOf("Version/")+8,1))<6,d=bt.indexOf("Firefox")!==-1,(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(bt)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(bt))&&(g=parseFloat(RegExp.$1)),!!X&&(X.style.cssText="top:1px;opacity:.55;",/^0.55/.test(X.style.opacity))}(),Bt=function(F){return R.test(typeof F=="string"?F:(F.currentStyle?F.currentStyle.filter:F.style.filter)||"")?parseFloat(RegExp.$1)/100:1},Ut=function(F){window.console&&console.log(F)},Vt="",jt="",_t=function(F,X){X=X||yt;var Y,z,k=X.style;if(k[F]!==void 0)return F;for(F=F.charAt(0).toUpperCase()+F.substr(1),Y=["O","Moz","ms","Ms","Webkit"],z=5;--z>-1&&k[Y[z]+F]===void 0;);return z>=0?(jt=z===3?"ms":Y[z],Vt="-"+jt.toLowerCase()+"-",jt+F):null},Et=wt.defaultView?wt.defaultView.getComputedStyle:function(){},Ot=i.getStyle=function(F,X,Y,z,k){var J;return kt||X!=="opacity"?(!z&&F.style[X]?J=F.style[X]:(Y=Y||Et(F))?J=Y[X]||Y.getPropertyValue(X)||Y.getPropertyValue(X.replace(D,"-$1").toLowerCase()):F.currentStyle&&(J=F.currentStyle[X]),k==null||J&&J!=="none"&&J!=="auto"&&J!=="auto auto"?J:k):Bt(F)},zt=It.convertToPixels=function(F,X,Y,z,k){if(z==="px"||!z)return Y;if(z==="auto"||!Y)return 0;var J,G,et,$=W.test(X),rt=F,Q=yt.style,dt=Y<0,gt=Y===1;if(dt&&(Y=-Y),gt&&(Y*=100),z==="%"&&X.indexOf("border")!==-1)J=Y/100*($?F.clientWidth:F.clientHeight);else{if(Q.cssText="border:0 solid red;position:"+Ot(F,"position")+";line-height:0;",z!=="%"&&rt.appendChild&&z.charAt(0)!=="v"&&z!=="rem")Q[$?"borderLeftWidth":"borderTopWidth"]=Y+z;else{if(rt=F.parentNode||wt.body,G=rt._gsCache,et=l.ticker.frame,G&&$&&G.time===et)return G.width*Y/100;Q[$?"width":"height"]=Y+z}rt.appendChild(yt),J=parseFloat(yt[$?"offsetWidth":"offsetHeight"]),rt.removeChild(yt),$&&z==="%"&&i.cacheWidths!==!1&&(G=rt._gsCache=rt._gsCache||{},G.time=et,G.width=J/Y*100),J!==0||k||(J=zt(F,X,Y,z,!0))}return gt&&(J/=100),dt?-J:J},Zt=It.calculateOffset=function(F,X,Y){if(Ot(F,"position",Y)!=="absolute")return 0;var z=X==="left"?"Left":"Top",k=Ot(F,"margin"+z,Y);return F["offset"+z]-(zt(F,X,parseFloat(k),k.replace(M,""))||0)},j=function(F,X){var Y,z,k,J={};if(X=X||Et(F,null))if(Y=X.length)for(;--Y>-1;)k=X[Y],k.indexOf("-transform")!==-1&&Se!==k||(J[k.replace(I,N)]=X.getPropertyValue(k));else for(Y in X)Y.indexOf("Transform")!==-1&&ne!==Y||(J[Y]=X[Y]);else if(X=F.currentStyle||F.style)for(Y in X)typeof Y=="string"&&J[Y]===void 0&&(J[Y.replace(I,N)]=X[Y]);return kt||(J.opacity=Bt(F)),z=ge(F,X,!1),J.rotation=z.rotation,J.skewX=z.skewX,J.scaleX=z.scaleX,J.scaleY=z.scaleY,J.x=z.x,J.y=z.y,le&&(J.z=z.z,J.rotationX=z.rotationX,J.rotationY=z.rotationY,J.scaleZ=z.scaleZ),J.filters&&delete J.filters,J},V=function(F,X,Y,z,k){var J,G,et,$={},rt=F.style;for(G in Y)G!=="cssText"&&G!=="length"&&isNaN(G)&&(X[G]!==(J=Y[G])||k&&k[G])&&G.indexOf("Origin")===-1&&(typeof J!="number"&&typeof J!="string"||($[G]=J!=="auto"||G!=="left"&&G!=="top"?J!==""&&J!=="auto"&&J!=="none"||typeof X[G]!="string"||X[G].replace(C,"")===""?J:0:Zt(F,G),rt[G]!==void 0&&(et=new fe(rt,G,rt[G],et))));if(z)for(G in z)G!=="className"&&($[G]=z[G]);return{difs:$,firstMPT:et}},q={width:["Left","Right"],height:["Top","Bottom"]},Z=["marginLeft","marginRight","marginTop","marginBottom"],nt=function(F,X,Y){if((F.nodeName+"").toLowerCase()==="svg")return(Y||Et(F))[X]||0;if(F.getBBox&&Ce(F))return F.getBBox()[X]||0;var z=parseFloat(X==="width"?F.offsetWidth:F.offsetHeight),k=q[X],J=k.length;for(Y=Y||Et(F,null);--J>-1;)z-=parseFloat(Ot(F,"padding"+k[J],Y,!0))||0,z-=parseFloat(Ot(F,"border"+k[J]+"Width",Y,!0))||0;return z},lt=function(F,X){if(F==="contain"||F==="auto"||F==="auto auto")return F+" ";F!=null&&F!==""||(F="0 0");var Y,z=F.split(" "),k=F.indexOf("left")!==-1?"0%":F.indexOf("right")!==-1?"100%":z[0],J=F.indexOf("top")!==-1?"0%":F.indexOf("bottom")!==-1?"100%":z[1];if(z.length>3&&!X){for(z=F.split(", ").join(",").split(","),F=[],Y=0;Y2?" "+z[2]:""),X&&(X.oxp=k.indexOf("%")!==-1,X.oyp=J.indexOf("%")!==-1,X.oxr=k.charAt(1)==="=",X.oyr=J.charAt(1)==="=",X.ox=parseFloat(k.replace(C,"")),X.oy=parseFloat(J.replace(C,"")),X.v=F),X||F},pt=function(F,X){return typeof F=="function"&&(F=F(s,a)),typeof F=="string"&&F.charAt(1)==="="?parseInt(F.charAt(0)+"1",10)*parseFloat(F.substr(2)):parseFloat(F)-parseFloat(X)||0},ot=function(F,X){return typeof F=="function"&&(F=F(s,a)),F==null?X:typeof F=="string"&&F.charAt(1)==="="?parseInt(F.charAt(0)+"1",10)*parseFloat(F.substr(2))+X:parseFloat(F)||0},At=function(F,X,Y,z){var k,J,G,et,$,rt=1e-6;return typeof F=="function"&&(F=F(s,a)),F==null?et=X:typeof F=="number"?et=F:(k=360,J=F.split("_"),$=F.charAt(1)==="=",G=($?parseInt(F.charAt(0)+"1",10)*parseFloat(J[0].substr(2)):parseFloat(J[0]))*(F.indexOf("rad")===-1?1:ut)-($?0:X),J.length&&(z&&(z[Y]=X+G),F.indexOf("short")!==-1&&(G%=k,G!==G%(k/2)&&(G=G<0?G+k:G-k)),F.indexOf("_cw")!==-1&&G<0?G=(G+9999999999*k)%k-(G/k|0)*k:F.indexOf("ccw")!==-1&&G>0&&(G=(G-9999999999*k)%k-(G/k|0)*k)),et=X+G),et-rt&&(et=0),et},Mt={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]},vt=function(F,X,Y){return F=F<0?F+1:F>1?F-1:F,255*(6*F<1?X+(Y-X)*F*6:F<.5?Y:3*F<2?X+(Y-X)*(2/3-F)*6:X)+.5|0},Rt=i.parseColor=function(F,X){var Y,z,k,J,G,et,$,rt,Q,dt,gt;if(F)if(typeof F=="number")Y=[F>>16,F>>8&255,255&F];else{if(F.charAt(F.length-1)===","&&(F=F.substr(0,F.length-1)),Mt[F])Y=Mt[F];else if(F.charAt(0)==="#")F.length===4&&(z=F.charAt(1),k=F.charAt(2),J=F.charAt(3),F="#"+z+z+k+k+J+J),F=parseInt(F.substr(1),16),Y=[F>>16,F>>8&255,255&F];else if(F.substr(0,3)==="hsl")if(Y=gt=F.match(v),X){if(F.indexOf("=")!==-1)return F.match(P)}else G=Number(Y[0])%360/360,et=Number(Y[1])/100,$=Number(Y[2])/100,k=$<=.5?$*(et+1):$+et-$*et,z=2*$-k,Y.length>3&&(Y[3]=Number(F[3])),Y[0]=vt(G+1/3,z,k),Y[1]=vt(G,z,k),Y[2]=vt(G-1/3,z,k);else Y=F.match(v)||Mt.transparent;Y[0]=Number(Y[0]),Y[1]=Number(Y[1]),Y[2]=Number(Y[2]),Y.length>3&&(Y[3]=Number(Y[3]))}else Y=Mt.black;return X&&!gt&&(z=Y[0]/255,k=Y[1]/255,J=Y[2]/255,rt=Math.max(z,k,J),Q=Math.min(z,k,J),$=(rt+Q)/2,rt===Q?G=et=0:(dt=rt-Q,et=$>.5?dt/(2-rt-Q):dt/(rt+Q),G=rt===z?(k-J)/dt+(k0?G[0].replace(v,""):"";return Q?k=X?function(gt){var ft,ht,xt,Pt;if(typeof gt=="number")gt+=dt;else if(z&&it.test(gt)){for(Pt=gt.replace(it,"|").split("|"),xt=0;xtxt--)for(;++xtxt--)for(;++xt>0];return k.parse(X,et,J,G)}},fe=(It._setPluginRatio=function(F){this.plugin.setRatio(F);for(var X,Y,z,k,J,G=this.data,et=G.proxy,$=G.firstMPT,rt=1e-6;$;)X=et[$.v],$.r?X=Math.round(X):X-rt&&(X=0),$.t[$.p]=X,$=$._next;if(G.autoRotate&&(G.autoRotate.rotation=G.mod?G.mod(et.rotation,this.t):et.rotation),F===1||F===0)for($=G.firstMPT,J=F===1?"e":"b";$;){if(Y=$.t,Y.type){if(Y.type===1){for(k=Y.xs0+Y.s+Y.xs1,z=1;z0;)$="xn"+G,et=z.p+"_"+$,ft[et]=z.data[$],gt[et]=z[$],J||(rt=new fe(z,$,et,rt,z.rxp[$]));z=z._next}return{proxy:gt,end:ft,firstMPT:rt,pt:Q}},It.CSSPropTween=function(F,X,Y,z,k,J,G,et,$,rt,Q){this.t=F,this.p=X,this.s=Y,this.c=z,this.n=G||X,F instanceof Jt||t.push(this.n),this.r=et,this.type=J||0,$&&(this.pr=$,f=!0),this.b=rt===void 0?Y:rt,this.e=Q===void 0?Y+z:Q,k&&(this._next=k,k._prev=this)}),we=function(F,X,Y,z,k,J){var G=new Jt(F,X,Y,z-Y,k,-1,J);return G.b=Y,G.e=G.xs0=z,G},pe=i.parseComplex=function(F,X,Y,z,k,J,G,et,$,rt){Y=Y||J||"",typeof z=="function"&&(z=z(s,a)),G=new Jt(F,X,0,0,G,rt?2:1,null,!1,et,Y,z),z+="",k&&Gt.test(z+Y)&&(z=[Y,z],i.colorStringFilter(z),Y=z[0],z=z[1]);var Q,dt,gt,ft,ht,xt,Pt,Ct,Ht,Lt,St,ct,Nt,Yt=Y.split(", ").join(",").split(" "),st=z.split(", ").join(",").split(" "),Ft=Yt.length,Xt=p!==!1;for(z.indexOf(",")===-1&&Y.indexOf(",")===-1||(Yt=Yt.join(" ").replace(it,", ").split(" "),st=st.join(" ").replace(it,", ").split(" "),Ft=Yt.length),Ft!==st.length&&(Yt=(J||"").split(" "),Ft=Yt.length),G.plugin=$,G.setRatio=rt,Gt.lastIndex=0,Q=0;Q6,Ht&&!kt&&ht[3]===0?(G["xs"+G.l]+=G.l?" transparent":"transparent",G.e=G.e.split(st[Q]).join("transparent")):(kt||(Ht=!1),Nt?G.appendXtra(Ht?"hsla(":"hsl(",ft[0],pt(ht[0],ft[0]),",",!1,!0).appendXtra("",ft[1],pt(ht[1],ft[1]),"%,",!1).appendXtra("",ft[2],pt(ht[2],ft[2]),Ht?"%,":"%"+ct,!1):G.appendXtra(Ht?"rgba(":"rgb(",ft[0],ht[0]-ft[0],",",!0,!0).appendXtra("",ft[1],ht[1]-ft[1],",",!0).appendXtra("",ft[2],ht[2]-ft[2],Ht?",":ct,!0),Ht&&(ft=ft.length<4?1:ft[3],G.appendXtra("",ft,(ht.length<4?1:ht[3])-ft,ct,!1))),Gt.lastIndex=0;else if(xt=ft.match(v)){if(Pt=ht.match(P),!Pt||Pt.length!==xt.length)return G;for(gt=0,dt=0;dt0;)h["xn"+ie]=0,h["xs"+ie]="";h.xs0="",h._next=h._prev=h.xfirst=h.data=h.plugin=h.setRatio=h.rxp=null,h.appendXtra=function(F,X,Y,z,k,J){var G=this,et=G.l;return G["xs"+et]+=J&&(et||G["xs"+et])?" "+F:F||"",Y||et===0||G.plugin?(G.l++,G.type=G.setRatio?2:1,G["xs"+G.l]=z||"",et>0?(G.data["xn"+et]=X+Y,G.rxp["xn"+et]=k,G["xn"+et]=X,G.plugin||(G.xfirst=new Jt(G,"xn"+et,X,Y,G.xfirst||G,0,G.n,k,G.pr),G.xfirst.xs0=0),G):(G.data={s:X+Y},G.rxp={},G.s=X,G.c=Y,G.r=k,G)):(G["xs"+et]+=X+(z||""),G)};var De=function(F,X){X=X||{},this.p=X.prefix&&_t(F)||F,r[F]=r[this.p]=this,this.format=X.formatter||Wt(X.defaultValue,X.color,X.collapsible,X.multi),X.parser&&(this.parse=X.parser),this.clrs=X.color,this.multi=X.multi,this.keyword=X.keyword,this.dflt=X.defaultValue,this.pr=X.priority||0},Kt=It._registerComplexSpecialProp=function(F,X,Y){typeof X!="object"&&(X={parser:Y});var z,k,J=F.split(","),G=X.defaultValue;for(Y=Y||[G],z=0;zet.length?$.length:et.length,G=0;G-1;)J=Number(k[ie]),k[ie]=(G=J-(J|=0))?(G*rt+(G<0?-.5:.5)|0)/rt+J:J;return X&&k.length>6?[k[0],k[1],k[4],k[5],k[12],k[13]]:k},ge=It.getTransform=function(F,X,Y,z){if(F._gsTransform&&Y&&!z)return F._gsTransform;var k,J,G,et,$,rt,Q=Y?F._gsTransform||new Ee:new Ee,dt=Q.scaleX<0,gt=2e-5,ft=1e5,ht=le&&(parseFloat(Ot(F,_e,X,!1,"0 0 0").split(" ")[2])||Q.zOrigin)||0,xt=parseFloat(i.defaultTransformPerspective)||0;if(Q.svg=!(!F.getBBox||!Ce(F)),Q.svg&&(Me(F,Ot(F,_e,X,!1,"50% 50%")+"",Q,F.getAttribute("data-svg-origin")),ce=i.useSVGTransformAttr||je),k=Ae(F),k!==Re){if(k.length===16){var Pt,Ct,Ht,Lt,St,ct=k[0],Nt=k[1],Yt=k[2],st=k[3],Ft=k[4],Xt=k[5],he=k[6],de=k[7],ee=k[8],Qt=k[9],te=k[10],re=k[12],oe=k[13],ae=k[14],se=k[11],$t=Math.atan2(he,te);Q.zOrigin&&(ae=-Q.zOrigin,re=ee*ae-k[12],oe=Qt*ae-k[13],ae=te*ae+Q.zOrigin-k[14]),Q.rotationX=$t*ut,$t&&(Lt=Math.cos(-$t),St=Math.sin(-$t),Pt=Ft*Lt+ee*St,Ct=Xt*Lt+Qt*St,Ht=he*Lt+te*St,ee=Ft*-St+ee*Lt,Qt=Xt*-St+Qt*Lt,te=he*-St+te*Lt,se=de*-St+se*Lt,Ft=Pt,Xt=Ct,he=Ht),$t=Math.atan2(-Yt,te),Q.rotationY=$t*ut,$t&&(Lt=Math.cos(-$t),St=Math.sin(-$t),Pt=ct*Lt-ee*St,Ct=Nt*Lt-Qt*St,Ht=Yt*Lt-te*St,Qt=Nt*St+Qt*Lt,te=Yt*St+te*Lt,se=st*St+se*Lt,ct=Pt,Nt=Ct,Yt=Ht),$t=Math.atan2(Nt,ct),Q.rotation=$t*ut,$t&&(Lt=Math.cos(-$t),St=Math.sin(-$t),ct=ct*Lt+Ft*St,Ct=Nt*Lt+Xt*St,Xt=Nt*-St+Xt*Lt,he=Yt*-St+he*Lt,Nt=Ct),Q.rotationX&&Math.abs(Q.rotationX)+Math.abs(Q.rotation)>359.9&&(Q.rotationX=Q.rotation=0,Q.rotationY=180-Q.rotationY),Q.scaleX=(Math.sqrt(ct*ct+Nt*Nt)*ft+.5|0)/ft,Q.scaleY=(Math.sqrt(Xt*Xt+Qt*Qt)*ft+.5|0)/ft,Q.scaleZ=(Math.sqrt(he*he+te*te)*ft+.5|0)/ft,Q.rotationX||Q.rotationY?Q.skewX=0:(Q.skewX=Ft||Xt?Math.atan2(Ft,Xt)*ut+Q.rotation:Q.skewX||0,Math.abs(Q.skewX)>90&&Math.abs(Q.skewX)<270&&(dt?(Q.scaleX*=-1,Q.skewX+=Q.rotation<=0?180:-180,Q.rotation+=Q.rotation<=0?180:-180):(Q.scaleY*=-1,Q.skewX+=Q.skewX<=0?180:-180))),Q.perspective=se?1/(se<0?-se:se):0,Q.x=re,Q.y=oe,Q.z=ae,Q.svg&&(Q.x-=Q.xOrigin-(Q.xOrigin*ct-Q.yOrigin*Ft),Q.y-=Q.yOrigin-(Q.yOrigin*Nt-Q.xOrigin*Xt))}else if(!le||z||!k.length||Q.x!==k[4]||Q.y!==k[5]||!Q.rotationX&&!Q.rotationY){var ve=k.length>=6,ye=ve?k[0]:1,be=k[1]||0,xe=k[2]||0,Te=ve?k[3]:1;Q.x=k[4]||0,Q.y=k[5]||0,G=Math.sqrt(ye*ye+be*be),et=Math.sqrt(Te*Te+xe*xe),$=ye||be?Math.atan2(be,ye)*ut:Q.rotation||0,rt=xe||Te?Math.atan2(xe,Te)*ut+$:Q.skewX||0,Math.abs(rt)>90&&Math.abs(rt)<270&&(dt?(G*=-1,rt+=$<=0?180:-180,$+=$<=0?180:-180):(et*=-1,rt+=rt<=0?180:-180)),Q.scaleX=G,Q.scaleY=et,Q.rotation=$,Q.skewX=rt,le&&(Q.rotationX=Q.rotationY=Q.z=0,Q.perspective=xt,Q.scaleZ=1),Q.svg&&(Q.x-=Q.xOrigin-(Q.xOrigin*ye+Q.yOrigin*xe),Q.y-=Q.yOrigin-(Q.xOrigin*be+Q.yOrigin*Te))}Q.zOrigin=ht;for(J in Q)Q[J]-gt&&(Q[J]=0)}return Y&&(F._gsTransform=Q,Q.svg&&(ce&&F.style[ne]?l.delayedCall(.001,function(){me(F.style,ne)}):!ce&&F.getAttribute("transform")&&l.delayedCall(.001,function(){F.removeAttribute("transform")}))),Q},Be=function(F){var X,Y,z=this.data,k=-z.rotation*at,J=k+z.skewX*at,G=1e5,et=(Math.cos(k)*z.scaleX*G|0)/G,$=(Math.sin(k)*z.scaleX*G|0)/G,rt=(Math.sin(J)*-z.scaleY*G|0)/G,Q=(Math.cos(J)*z.scaleY*G|0)/G,dt=this.t.style,gt=this.t.currentStyle;if(gt){Y=$,$=-rt,rt=-Y,X=gt.filter,dt.filter="";var ft,ht,xt=this.t.offsetWidth,Pt=this.t.offsetHeight,Ct=gt.position!=="absolute",Ht="progid:DXImageTransform.Microsoft.Matrix(M11="+et+", M12="+$+", M21="+rt+", M22="+Q,Lt=z.x+xt*z.xPercent/100,St=z.y+Pt*z.yPercent/100;if(z.ox!=null&&(ft=(z.oxp?xt*z.ox*.01:z.ox)-xt/2,ht=(z.oyp?Pt*z.oy*.01:z.oy)-Pt/2,Lt+=ft-(ft*et+ht*$),St+=ht-(ft*rt+ht*Q)),Ct?(ft=xt/2,ht=Pt/2,Ht+=", Dx="+(ft-(ft*et+ht*$)+Lt)+", Dy="+(ht-(ft*rt+ht*Q)+St)+")"):Ht+=", sizingMethod='auto expand')",X.indexOf("DXImageTransform.Microsoft.Matrix(")!==-1?dt.filter=X.replace(tt,Ht):dt.filter=Ht+" "+X,F!==0&&F!==1||et===1&&$===0&&rt===0&&Q===1&&(Ct&&Ht.indexOf("Dx=0, Dy=0")===-1||R.test(X)&&parseFloat(RegExp.$1)!==100||X.indexOf(X.indexOf("Alpha"))===-1&&dt.removeAttribute("filter")),!Ct){var ct,Nt,Yt,st=g<8?1:-1;for(ft=z.ieOffsetX||0,ht=z.ieOffsetY||0,z.ieOffsetX=Math.round((xt-((et<0?-et:et)*xt+($<0?-$:$)*Pt))/2+Lt),z.ieOffsetY=Math.round((Pt-((Q<0?-Q:Q)*Pt+(rt<0?-rt:rt)*xt))/2+St),ie=0;ie<4;ie++)Nt=Z[ie],ct=gt[Nt],Y=ct.indexOf("px")!==-1?parseFloat(ct):zt(this.t,Nt,parseFloat(ct),ct.replace(M,""))||0,Yt=Y!==z[Nt]?ie<2?-z.ieOffsetX:-z.ieOffsetY:ie<2?ft-z.ieOffsetX:ht-z.ieOffsetY,dt[Nt]=(z[Nt]=Math.round(Y-Yt*(ie===0||ie===2?1:st)))+"px"}}},Ue=It.set3DTransformRatio=It.setTransformRatio=function(F){var X,Y,z,k,J,G,et,$,rt,Q,dt,gt,ft,ht,xt,Pt,Ct,Ht,Lt,St,ct,Nt,Yt,st=this.data,Ft=this.t.style,Xt=st.rotation,he=st.rotationX,de=st.rotationY,ee=st.scaleX,Qt=st.scaleY,te=st.scaleZ,re=st.x,oe=st.y,ae=st.z,se=st.svg,$t=st.perspective,ve=st.force3D;if(((F===1||F===0)&&ve==="auto"&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!ve)&&!ae&&!$t&&!de&&!he&&te===1||ce&&se||!le)return void(Xt||st.skewX||se?(Xt*=at,Nt=st.skewX*at,Yt=1e5,X=Math.cos(Xt)*ee,k=Math.sin(Xt)*ee,Y=Math.sin(Xt-Nt)*-Qt,J=Math.cos(Xt-Nt)*Qt,Nt&&st.skewType==="simple"&&(Ct=Math.tan(Nt-st.skewY*at),Ct=Math.sqrt(1+Ct*Ct),Y*=Ct,J*=Ct,st.skewY&&(Ct=Math.tan(st.skewY*at),Ct=Math.sqrt(1+Ct*Ct),X*=Ct,k*=Ct)),se&&(re+=st.xOrigin-(st.xOrigin*X+st.yOrigin*Y)+st.xOffset,oe+=st.yOrigin-(st.xOrigin*k+st.yOrigin*J)+st.yOffset,ce&&(st.xPercent||st.yPercent)&&(ht=this.t.getBBox(),re+=.01*st.xPercent*ht.width,oe+=.01*st.yPercent*ht.height),ht=1e-6,re-ht&&(re=0),oe-ht&&(oe=0)),Lt=(X*Yt|0)/Yt+","+(k*Yt|0)/Yt+","+(Y*Yt|0)/Yt+","+(J*Yt|0)/Yt+","+re+","+oe+")",se&&ce?this.t.setAttribute("transform","matrix("+Lt):Ft[ne]=(st.xPercent||st.yPercent?"translate("+st.xPercent+"%,"+st.yPercent+"%) matrix(":"matrix(")+Lt):Ft[ne]=(st.xPercent||st.yPercent?"translate("+st.xPercent+"%,"+st.yPercent+"%) matrix(":"matrix(")+ee+",0,0,"+Qt+","+re+","+oe+")");if(d&&(ht=1e-4,ee-ht&&(ee=te=2e-5),Qt-ht&&(Qt=te=2e-5),!$t||st.z||st.rotationX||st.rotationY||($t=0)),Xt||st.skewX)Xt*=at,xt=X=Math.cos(Xt),Pt=k=Math.sin(Xt),st.skewX&&(Xt-=st.skewX*at,xt=Math.cos(Xt),Pt=Math.sin(Xt),st.skewType==="simple"&&(Ct=Math.tan((st.skewX-st.skewY)*at),Ct=Math.sqrt(1+Ct*Ct),xt*=Ct,Pt*=Ct,st.skewY&&(Ct=Math.tan(st.skewY*at),Ct=Math.sqrt(1+Ct*Ct),X*=Ct,k*=Ct))),Y=-Pt,J=xt;else{if(!(de||he||te!==1||$t||se))return void(Ft[ne]=(st.xPercent||st.yPercent?"translate("+st.xPercent+"%,"+st.yPercent+"%) translate3d(":"translate3d(")+re+"px,"+oe+"px,"+ae+"px)"+(ee!==1||Qt!==1?" scale("+ee+","+Qt+")":""));X=J=1,Y=k=0}rt=1,z=G=et=$=Q=dt=0,gt=$t?-1/$t:0,ft=st.zOrigin,ht=1e-6,St=",",ct="0",Xt=de*at,Xt&&(xt=Math.cos(Xt),Pt=Math.sin(Xt),et=-Pt,Q=gt*-Pt,z=X*Pt,G=k*Pt,rt=xt,gt*=xt,X*=xt,k*=xt),Xt=he*at,Xt&&(xt=Math.cos(Xt),Pt=Math.sin(Xt),Ct=Y*xt+z*Pt,Ht=J*xt+G*Pt,$=rt*Pt,dt=gt*Pt,z=Y*-Pt+z*xt,G=J*-Pt+G*xt,rt*=xt,gt*=xt,Y=Ct,J=Ht),te!==1&&(z*=te,G*=te,rt*=te,gt*=te),Qt!==1&&(Y*=Qt,J*=Qt,$*=Qt,dt*=Qt),ee!==1&&(X*=ee,k*=ee,et*=ee,Q*=ee),(ft||se)&&(ft&&(re+=z*-ft,oe+=G*-ft,ae+=rt*-ft+ft),se&&(re+=st.xOrigin-(st.xOrigin*X+st.yOrigin*Y)+st.xOffset,oe+=st.yOrigin-(st.xOrigin*k+st.yOrigin*J)+st.yOffset),re-ht&&(re=ct),oe-ht&&(oe=ct),ae-ht&&(ae=0)),Lt=st.xPercent||st.yPercent?"translate("+st.xPercent+"%,"+st.yPercent+"%) matrix3d(":"matrix3d(",Lt+=(X-ht?ct:X)+St+(k-ht?ct:k)+St+(et-ht?ct:et),Lt+=St+(Q-ht?ct:Q)+St+(Y-ht?ct:Y)+St+(J-ht?ct:J),he||de||te!==1?(Lt+=St+($-ht?ct:$)+St+(dt-ht?ct:dt)+St+(z-ht?ct:z),Lt+=St+(G-ht?ct:G)+St+(rt-ht?ct:rt)+St+(gt-ht?ct:gt)+St):Lt+=",0,0,0,0,1,0,",Lt+=re+St+oe+St+ae+St+($t?1+-ae/$t:1)+")",Ft[ne]=Lt};h=Ee.prototype,h.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,Kt("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(F,X,Y,z,k,J,G){if(z._lastParsedTransform===G)return k;z._lastParsedTransform=G;var et;typeof G[Y]=="function"&&(et=G[Y],G[Y]=X);var $,rt,Q,dt,gt,ft,ht,xt,Pt,Ct=F._gsTransform,Ht=F.style,Lt=1e-6,St=Ie.length,ct=G,Nt={},Yt="transformOrigin",st=ge(F,e,!0,ct.parseTransform),Ft=ct.transform&&(typeof ct.transform=="function"?ct.transform(s,a):ct.transform);if(z._transform=st,Ft&&typeof Ft=="string"&&ne)rt=yt.style,rt[ne]=Ft,rt.display="block",rt.position="absolute",wt.body.appendChild(yt),$=ge(yt,null,!1),st.svg&&(ft=st.xOrigin,ht=st.yOrigin,$.x-=st.xOffset,$.y-=st.yOffset,(ct.transformOrigin||ct.svgOrigin)&&(Ft={},Me(F,lt(ct.transformOrigin),Ft,ct.svgOrigin,ct.smoothOrigin,!0),ft=Ft.xOrigin,ht=Ft.yOrigin,$.x-=Ft.xOffset-st.xOffset,$.y-=Ft.yOffset-st.yOffset),(ft||ht)&&(xt=Ae(yt,!0),$.x-=ft-(ft*xt[0]+ht*xt[2]),$.y-=ht-(ft*xt[1]+ht*xt[3]))),wt.body.removeChild(yt),$.perspective||($.perspective=st.perspective),ct.xPercent!=null&&($.xPercent=ot(ct.xPercent,st.xPercent)),ct.yPercent!=null&&($.yPercent=ot(ct.yPercent,st.yPercent));else if(typeof ct=="object"){if($={scaleX:ot(ct.scaleX!=null?ct.scaleX:ct.scale,st.scaleX),scaleY:ot(ct.scaleY!=null?ct.scaleY:ct.scale,st.scaleY),scaleZ:ot(ct.scaleZ,st.scaleZ),x:ot(ct.x,st.x),y:ot(ct.y,st.y),z:ot(ct.z,st.z),xPercent:ot(ct.xPercent,st.xPercent),yPercent:ot(ct.yPercent,st.yPercent),perspective:ot(ct.transformPerspective,st.perspective)},gt=ct.directionalRotation,gt!=null)if(typeof gt=="object")for(rt in gt)ct[rt]=gt[rt];else ct.rotation=gt;typeof ct.x=="string"&&ct.x.indexOf("%")!==-1&&($.x=0,$.xPercent=ot(ct.x,st.xPercent)),typeof ct.y=="string"&&ct.y.indexOf("%")!==-1&&($.y=0,$.yPercent=ot(ct.y,st.yPercent)),$.rotation=At("rotation"in ct?ct.rotation:"shortRotation"in ct?ct.shortRotation+"_short":"rotationZ"in ct?ct.rotationZ:st.rotation-st.skewY,st.rotation-st.skewY,"rotation",Nt),le&&($.rotationX=At("rotationX"in ct?ct.rotationX:"shortRotationX"in ct?ct.shortRotationX+"_short":st.rotationX||0,st.rotationX,"rotationX",Nt),$.rotationY=At("rotationY"in ct?ct.rotationY:"shortRotationY"in ct?ct.shortRotationY+"_short":st.rotationY||0,st.rotationY,"rotationY",Nt)),$.skewX=At(ct.skewX,st.skewX-st.skewY),($.skewY=At(ct.skewY,st.skewY))&&($.skewX+=$.skewY,$.rotation+=$.skewY)}for(le&&ct.force3D!=null&&(st.force3D=ct.force3D,dt=!0),st.skewType=ct.skewType||st.skewType||i.defaultSkewType,Q=st.force3D||st.z||st.rotationX||st.rotationY||$.z||$.rotationX||$.rotationY||$.perspective,Q||ct.scale==null||($.scaleZ=1);--St>-1;)Pt=Ie[St],Ft=$[Pt]-st[Pt],(Ft>Lt||Ft<-Lt||ct[Pt]!=null||mt[Pt]!=null)&&(dt=!0,k=new Jt(st,Pt,st[Pt],Ft,k),Pt in Nt&&(k.e=Nt[Pt]),k.xs0=0,k.plugin=J,z._overwriteProps.push(k.n));return Ft=ct.transformOrigin,st.svg&&(Ft||ct.svgOrigin)&&(ft=st.xOffset,ht=st.yOffset,Me(F,lt(Ft),$,ct.svgOrigin,ct.smoothOrigin),k=we(st,"xOrigin",(Ct?st:$).xOrigin,$.xOrigin,k,Yt),k=we(st,"yOrigin",(Ct?st:$).yOrigin,$.yOrigin,k,Yt),ft===st.xOffset&&ht===st.yOffset||(k=we(st,"xOffset",Ct?ft:st.xOffset,st.xOffset,k,Yt),k=we(st,"yOffset",Ct?ht:st.yOffset,st.yOffset,k,Yt)),Ft=ce?null:"0px 0px"),(Ft||le&&Q&&st.zOrigin)&&(ne?(dt=!0,Pt=_e,Ft=(Ft||Ot(F,Pt,e,!1,"50% 50%"))+"",k=new Jt(Ht,Pt,0,0,k,-1,Yt),k.b=Ht[Pt],k.plugin=J,le?(rt=st.zOrigin,Ft=Ft.split(" "),st.zOrigin=(Ft.length>2&&(rt===0||Ft[2]!=="0px")?parseFloat(Ft[2]):rt)||0,k.xs0=k.e=Ft[0]+" "+(Ft[1]||"50%")+" 0px",k=new Jt(st,"zOrigin",0,0,k,-1,k.n),k.b=rt,k.xs0=k.e=st.zOrigin):k.xs0=k.e=Ft):lt(Ft+"",st)),dt&&(z._transformType=st.svg&&ce||!Q&&this._transformType!==3?2:3),et&&(G[Y]=et),k},prefix:!0}),Kt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Kt("borderRadius",{defaultValue:"0px",parser:function(F,X,Y,z,k,J){X=this.format(X);var G,et,$,rt,Q,dt,gt,ft,ht,xt,Pt,Ct,Ht,Lt,St,ct,Nt=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],Yt=F.style;for(ht=parseFloat(F.offsetWidth),xt=parseFloat(F.offsetHeight),G=X.split(" "),et=0;et-1;)ht=G[$],rt=ht.indexOf("%")!==-1,rt!==(et[$].indexOf("%")!==-1)&&(Q=$===0?F.offsetWidth-Tt.width:F.offsetHeight-Tt.height,G[$]=rt?parseFloat(ht)/100*Q+"px":parseFloat(ht)/Q*100+"%");ht=G.join(" ")}return this.parseComplex(F.style,ht,xt,k,J)},formatter:lt}),Kt("backgroundSize",{defaultValue:"0 0",formatter:function(F){return F+="",lt(F.indexOf(" ")===-1?F+" "+F:F)}}),Kt("perspective",{defaultValue:"0px",prefix:!0}),Kt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Kt("transformStyle",{prefix:!0}),Kt("backfaceVisibility",{prefix:!0}),Kt("userSelect",{prefix:!0}),Kt("margin",{parser:ue("marginTop,marginRight,marginBottom,marginLeft")}),Kt("padding",{parser:ue("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Kt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(F,X,Y,z,k,J){var G,et,$;return g<9?(et=F.currentStyle,$=g<8?" ":",",G="rect("+et.clipTop+$+et.clipRight+$+et.clipBottom+$+et.clipLeft+")",X=this.format(X).split(",").join($)):(G=this.format(Ot(F,this.p,e,!1,this.dflt)),X=this.format(X)),this.parseComplex(F.style,G,X,k,J)}}),Kt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Kt("autoRound,strictUnits",{parser:function(F,X,Y,z,k){return k}}),Kt("border",{defaultValue:"0px solid #000",parser:function(F,X,Y,z,k,J){var G=Ot(F,"borderTopWidth",e,!1,"0px"),et=this.format(X).split(" "),$=et[0].replace(M,"");return $!=="px"&&(G=parseFloat(G)/zt(F,"borderTopWidth",1,$)+$),this.parseComplex(F.style,this.format(G+" "+Ot(F,"borderTopStyle",e,!1,"solid")+" "+Ot(F,"borderTopColor",e,!1,"#000")),et.join(" "),k,J)},color:!0,formatter:function(F){var X=F.split(" ");return X[0]+" "+(X[1]||"solid")+" "+(F.match(Gt)||["#000"])[0]}}),Kt("borderWidth",{parser:ue("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Kt("float,cssFloat,styleFloat",{parser:function(F,X,Y,z,k,J){var G=F.style,et="cssFloat"in G?"cssFloat":"styleFloat";return new Jt(G,et,0,0,k,-1,Y,!1,0,G[et],X)}});var Xe=function(F){var X,Y=this.t,z=Y.filter||Ot(this.data,"filter")||"",k=this.s+this.c*F|0;k===100&&(z.indexOf("atrix(")===-1&&z.indexOf("radient(")===-1&&z.indexOf("oader(")===-1?(Y.removeAttribute("filter"),X=!Ot(this.data,"filter")):(Y.filter=z.replace(L,""),X=!0)),X||(this.xn1&&(Y.filter=z=z||"alpha(opacity="+k+")"),z.indexOf("pacity")===-1?k===0&&this.xn1||(Y.filter=z+" alpha(opacity="+k+")"):Y.filter=z.replace(R,"opacity="+k))};Kt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(F,X,Y,z,k,J){var G=parseFloat(Ot(F,"opacity",e,!1,"1")),et=F.style,$=Y==="autoAlpha";return typeof X=="string"&&X.charAt(1)==="="&&(X=(X.charAt(0)==="-"?-1:1)*parseFloat(X.substr(2))+G),$&&G===1&&Ot(F,"visibility",e)==="hidden"&&X!==0&&(G=0),kt?k=new Jt(et,"opacity",G,X-G,k):(k=new Jt(et,"opacity",100*G,100*(X-G),k),k.xn1=$?1:0,et.zoom=1,k.type=2,k.b="alpha(opacity="+k.s+")",k.e="alpha(opacity="+(k.s+k.c)+")",k.data=F,k.plugin=J,k.setRatio=Xe),$&&(k=new Jt(et,"visibility",0,0,k,-1,null,!1,0,G!==0?"inherit":"hidden",X===0?"hidden":"inherit"),k.xs0="inherit",z._overwriteProps.push(k.n),z._overwriteProps.push(Y)),k}});var me=function(F,X){X&&(F.removeProperty?(X.substr(0,2)!=="ms"&&X.substr(0,6)!=="webkit"||(X="-"+X),F.removeProperty(X.replace(D,"-$1").toLowerCase())):F.removeAttribute(X))},We=function(F){if(this.t._gsClassPT=this,F===1||F===0){this.t.setAttribute("class",F===0?this.b:this.e);for(var X=this.data,Y=this.t.style;X;)X.v?Y[X.p]=X.v:me(Y,X.p),X=X._next;F===1&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Kt("className",{parser:function(F,X,Y,z,k,J,G){var et,$,rt,Q,dt,gt=F.getAttribute("class")||"",ft=F.style.cssText;if(k=z._classNamePT=new Jt(F,Y,0,0,k,2),k.setRatio=We,k.pr=-11,f=!0,k.b=gt,$=j(F,e),rt=F._gsClassPT){for(Q={},dt=rt.data;dt;)Q[dt.p]=1,dt=dt._next;rt.setRatio(1)}return F._gsClassPT=k,k.e=X.charAt(1)!=="="?X:gt.replace(new RegExp("(?:\\s|^)"+X.substr(2)+"(?![\\w-])"),"")+(X.charAt(0)==="+"?" "+X.substr(2):""),F.setAttribute("class",k.e),et=V(F,$,j(F),G,Q),F.setAttribute("class",gt),k.data=et.firstMPT,F.style.cssText=ft,k=k.xfirst=z.parse(F,et.difs,k,J)}});var ze=function(F){if((F===1||F===0)&&this.data._totalTime===this.data._totalDuration&&this.data.data!=="isFromStart"){var X,Y,z,k,J,G=this.t.style,et=r.transform.parse;if(this.e==="all")G.cssText="",k=!0;else for(X=this.e.split(" ").join("").split(","),z=X.length;--z>-1;)Y=X[z],r[Y]&&(r[Y].parse===et?k=!0:Y=Y==="transformOrigin"?_e:r[Y].p),me(G,Y);k&&(me(G,ne),J=this.t._gsTransform,J&&(J.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Kt("clearProps",{parser:function(F,X,Y,z,k){return k=new Jt(F,Y,0,0,k,2),k.setRatio=ze,k.e=X,k.pr=-10,k.data=z._tween,f=!0,k}}),h="bezier,throwProps,physicsProps,physics2D".split(","),ie=h.length;ie--;)ke(h[ie]);h=i.prototype,h._firstPT=h._lastParsedTransform=h._transform=null,h._onInitTween=function(F,X,Y,z){if(!F.nodeType)return!1;this._target=a=F,this._tween=Y,this._vars=X,s=z,p=X.autoRound,f=!1,o=X.suffixMap||i.suffixMap,e=Et(F,""),t=this._overwriteProps;var k,J,G,et,$,rt,Q,dt,gt,ft=F.style;if(u&&ft.zIndex===""&&(k=Ot(F,"zIndex",e),k!=="auto"&&k!==""||this._addLazySet(ft,"zIndex",0)),typeof X=="string"&&(et=ft.cssText,k=j(F,e),ft.cssText=et+";"+X,k=V(F,k,j(F)).difs,!kt&&S.test(X)&&(k.opacity=parseFloat(RegExp.$1)),X=k,ft.cssText=et),X.className?this._firstPT=J=r.className.parse(F,X.className,"className",this,null,null,X):this._firstPT=J=this.parse(F,X,null),this._transformType){for(gt=this._transformType===3,ne?y&&(u=!0,ft.zIndex===""&&(Q=Ot(F,"zIndex",e),Q!=="auto"&&Q!==""||this._addLazySet(ft,"zIndex",0)),w&&this._addLazySet(ft,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(gt?"visible":"hidden"))):ft.zoom=1,G=J;G&&G._next;)G=G._next;dt=new Jt(F,"transform",0,0,null,2),this._linkCSSP(dt,null,G),dt.setRatio=ne?Ue:Be,dt.data=this._transform||ge(F,e,!0),dt.tween=Y,dt.pr=-1,t.pop()}if(f){for(;J;){for(rt=J._next,G=et;G&&G.pr>J.pr;)G=G._next;(J._prev=G?G._prev:$)?J._prev._next=J:et=J,(J._next=G)?G._prev=J:$=J,J=rt}this._firstPT=et}return!0},h.parse=function(F,X,Y,z){var k,J,G,et,$,rt,Q,dt,gt,ft,ht=F.style;for(k in X)rt=X[k],typeof rt=="function"&&(rt=rt(s,a)),J=r[k],J?Y=J.parse(F,rt,k,this,Y,z,X):($=Ot(F,k,e)+"",gt=typeof rt=="string",k==="color"||k==="fill"||k==="stroke"||k.indexOf("Color")!==-1||gt&&A.test(rt)?(gt||(rt=Rt(rt),rt=(rt.length>3?"rgba(":"rgb(")+rt.join(",")+")"),Y=pe(ht,k,$,rt,!0,"transparent",Y,0,z)):gt&&K.test(rt)?Y=pe(ht,k,$,rt,!0,null,Y,0,z):(G=parseFloat($),Q=G||G===0?$.substr((G+"").length):"",$!==""&&$!=="auto"||(k==="width"||k==="height"?(G=nt(F,k,e),Q="px"):k==="left"||k==="top"?(G=Zt(F,k,e),Q="px"):(G=k!=="opacity"?0:1,Q="")),ft=gt&&rt.charAt(1)==="=",ft?(et=parseInt(rt.charAt(0)+"1",10),rt=rt.substr(2),et*=parseFloat(rt),dt=rt.replace(M,"")):(et=parseFloat(rt),dt=gt?rt.replace(M,""):""),dt===""&&(dt=k in o?o[k]:Q),rt=et||et===0?(ft?et+G:et)+dt:X[k],Q!==dt&&dt!==""&&(et||et===0)&&G&&(G=zt(F,k,G,Q),dt==="%"?(G/=zt(F,k,100,"%")/100,X.strictUnits!==!0&&($=G+"%")):dt==="em"||dt==="rem"||dt==="vw"||dt==="vh"?G/=zt(F,k,1,dt):dt!=="px"&&(et=zt(F,k,et,dt),dt="px"),ft&&(et||et===0)&&(rt=et+G+dt)),ft&&(et+=G),!G&&G!==0||!et&&et!==0?ht[k]!==void 0&&(rt||rt+""!="NaN"&&rt!=null)?(Y=new Jt(ht,k,et||G||0,0,Y,-1,k,!1,0,$,rt),Y.xs0=rt!=="none"||k!=="display"&&k.indexOf("Style")===-1?rt:$):Ut("invalid "+k+" tween value: "+X[k]):(Y=new Jt(ht,k,G,et-G,Y,0,k,p!==!1&&(dt==="px"||k==="zIndex"),0,$,rt),Y.xs0=dt))),z&&Y&&!Y.plugin&&(Y.plugin=z);return Y},h.setRatio=function(F){var X,Y,z,k=this._firstPT,J=1e-6;if(F!==1||this._tween._time!==this._tween._duration&&this._tween._time!==0)if(F||this._tween._time!==this._tween._duration&&this._tween._time!==0||this._tween._rawPrevTime===-1e-6)for(;k;){if(X=k.c*F+k.s,k.r?X=Math.round(X):X-J&&(X=0),k.type)if(k.type===1)if(z=k.l,z===2)k.t[k.p]=k.xs0+X+k.xs1+k.xn1+k.xs2;else if(z===3)k.t[k.p]=k.xs0+X+k.xs1+k.xn1+k.xs2+k.xn2+k.xs3;else if(z===4)k.t[k.p]=k.xs0+X+k.xs1+k.xn1+k.xs2+k.xn2+k.xs3+k.xn3+k.xs4;else if(z===5)k.t[k.p]=k.xs0+X+k.xs1+k.xn1+k.xs2+k.xn2+k.xs3+k.xn3+k.xs4+k.xn4+k.xs5;else{for(Y=k.xs0+X+k.xs1,z=1;z-1;)Pe(F[k],X,Y);else for(z=F.childNodes,k=z.length;--k>-1;)J=z[k],G=J.type,J.style&&(X.push(j(J)),Y&&Y.push(J)),G!==1&&G!==9&&G!==11||!J.childNodes.length||Pe(J,X,Y)};return i.cascadeTo=function(F,X,Y){var z,k,J,G,et=l.to(F,X,Y),$=[et],rt=[],Q=[],dt=[],gt=l._internals.reservedProps;for(F=et._targets||et.target,Pe(F,rt,dt),et.render(X,!0,!0),Pe(F,Q),et.render(0,!0,!0),et._enabled(!0),z=dt.length;--z>-1;)if(k=V(dt[z],rt[z],Q[z]),k.firstMPT){k=k.difs;for(J in Y)gt[J]&&(k[J]=Y[J]);G={};for(J in k)G[J]=rt[z][J];$.push(l.fromTo(dt[z],X,G,k))}return $},m.activate([i]),i},!0),function(){var m=b._gsDefine.plugin({propName:"roundProps",version:"1.6.0",priority:-1,API:2,init:function(o,e,t){return this._tween=t,!0}}),l=function(o){for(;o;)o.f||o.blob||(o.m=Math.round),o=o._next},f=m.prototype;f._onInitAllProps=function(){for(var o,e,t,i=this._tween,n=i.vars.roundProps.join?i.vars.roundProps:i.vars.roundProps.split(","),r=n.length,h={},p=i._propLookup.roundProps;--r>-1;)h[n[r]]=Math.round;for(r=n.length;--r>-1;)for(o=n[r],e=i._firstPT;e;)t=e._next,e.pg?e.t._mod(h):e.n===o&&(e.f===2&&e.t?l(e.t._firstPT):(this._add(e.t,o,e.s,e.c),t&&(t._prev=e._prev),e._prev?e._prev._next=t:i._firstPT===e&&(i._firstPT=t),e._next=e._prev=null,i._propLookup[o]=p)),e=t;return!1},f._add=function(o,e,t,i){this._addTween(o,e,t,t+i,e,Math.round),this._overwriteProps.push(e)}}(),function(){b._gsDefine.plugin({propName:"attr",API:2,version:"0.6.0",init:function(m,l,f,o){var e,t;if(typeof m.setAttribute!="function")return!1;for(e in l)t=l[e],typeof t=="function"&&(t=t(o,m)),this._addTween(m,"setAttribute",m.getAttribute(e)+"",t+"",e,!1,e),this._overwriteProps.push(e);return!0}})}(),b._gsDefine.plugin({propName:"directionalRotation",version:"0.3.0",API:2,init:function(m,l,f,o){typeof l!="object"&&(l={rotation:l}),this.finals={};var e,t,i,n,r,h,p=l.useRadians===!0?2*Math.PI:360,u=1e-6;for(e in l)e!=="useRadians"&&(n=l[e],typeof n=="function"&&(n=n(o,m)),h=(n+"").split("_"),t=h[0],i=parseFloat(typeof m[e]!="function"?m[e]:m[e.indexOf("set")||typeof m["get"+e.substr(3)]!="function"?e:"get"+e.substr(3)]()),n=this.finals[e]=typeof t=="string"&&t.charAt(1)==="="?i+parseInt(t.charAt(0)+"1",10)*Number(t.substr(2)):Number(t)||0,r=n-i,h.length&&(t=h.join("_"),t.indexOf("short")!==-1&&(r%=p,r!==r%(p/2)&&(r=r<0?r+p:r-p)),t.indexOf("_cw")!==-1&&r<0?r=(r+9999999999*p)%p-(r/p|0)*p:t.indexOf("ccw")!==-1&&r>0&&(r=(r-9999999999*p)%p-(r/p|0)*p)),(r>u||r<-u)&&(this._addTween(m,e,i,i+r,e),this._overwriteProps.push(e)));return!0},set:function(m){var l;if(m!==1)this._super.setRatio.call(this,m);else for(l=this._firstPT;l;)l.f?l.t[l.p](this.finals[l.p]):l.t[l.p]=this.finals[l.p],l=l._next}})._autoCSS=!0,b._gsDefine("easing.Back",["easing.Ease"],function(m){var l,f,o,e=b.GreenSockGlobals||b,t=e.com.greensock,i=2*Math.PI,n=Math.PI/2,r=t._class,h=function(s,v){var P=r("easing."+s,function(){},!0),T=P.prototype=new m;return T.constructor=P,T.getRatio=v,P},p=m.register||function(){},u=function(s,v,P,T,C){var M=r("easing."+s,{easeOut:new v,easeIn:new P,easeInOut:new T},!0);return p(M,s),M},y=function(s,v,P){this.t=s,this.v=v,P&&(this.next=P,P.prev=this,this.c=P.v-v,this.gap=P.t-s)},d=function(s,v){var P=r("easing."+s,function(C){this._p1=C||C===0?C:1.70158,this._p2=1.525*this._p1},!0),T=P.prototype=new m;return T.constructor=P,T.getRatio=v,T.config=function(C){return new P(C)},P},w=u("Back",d("BackOut",function(s){return(s-=1)*s*((this._p1+1)*s+this._p1)+1}),d("BackIn",function(s){return s*s*((this._p1+1)*s-this._p1)}),d("BackInOut",function(s){return(s*=2)<1?.5*s*s*((this._p2+1)*s-this._p2):.5*((s-=2)*s*((this._p2+1)*s+this._p2)+2)})),g=r("easing.SlowMo",function(s,v,P){v=v||v===0?v:.7,s==null?s=.7:s>1&&(s=1),this._p=s!==1?v:0,this._p1=(1-s)/2,this._p2=s,this._p3=this._p1+this._p2,this._calcEnd=P===!0},!0),a=g.prototype=new m;return a.constructor=g,a.getRatio=function(s){var v=s+(.5-s)*this._p;return sthis._p3?this._calcEnd?1-(s=(s-this._p3)/this._p1)*s:v+(s-v)*(s=(s-this._p3)/this._p1)*s*s*s:this._calcEnd?1:v},g.ease=new g(.7,.7),a.config=g.config=function(s,v,P){return new g(s,v,P)},l=r("easing.SteppedEase",function(s){s=s||1,this._p1=1/s,this._p2=s+1},!0),a=l.prototype=new m,a.constructor=l,a.getRatio=function(s){return s<0?s=0:s>=1&&(s=.999999999),(this._p2*s>>0)*this._p1},a.config=l.config=function(s){return new l(s)},f=r("easing.RoughEase",function(s){s=s||{};for(var v,P,T,C,M,R,S=s.taper||"none",L=[],A=0,D=0|(s.points||20),I=D,U=s.randomize!==!1,N=s.clamp===!0,W=s.template instanceof m?s.template:null,H=typeof s.strength=="number"?.4*s.strength:.4;--I>-1;)v=U?Math.random():1/D*I,P=W?W.getRatio(v):v,S==="none"?T=H:S==="out"?(C=1-v,T=C*C*H):S==="in"?T=v*v*H:v<.5?(C=2*v,T=C*C*.5*H):(C=2*(1-v),T=C*C*.5*H),U?P+=Math.random()*T-.5*T:I%2?P+=.5*T:P-=.5*T,N&&(P>1?P=1:P<0&&(P=0)),L[A++]={x:v,y:P};for(L.sort(function(tt,it){return tt.x-it.x}),R=new y(1,1,null),I=D;--I>-1;)M=L[I],R=new y(M.x,M.y,R);this._prev=new y(0,0,R.t!==0?R:R.next)},!0),a=f.prototype=new m,a.constructor=f,a.getRatio=function(s){var v=this._prev;if(s>v.t){for(;v.next&&s>=v.t;)v=v.next;v=v.prev}else for(;v.prev&&s<=v.t;)v=v.prev;return this._prev=v,v.v+(s-v.t)/v.gap*v.c},a.config=function(s){return new f(s)},f.ease=new f,u("Bounce",h("BounceOut",function(s){return s<1/2.75?7.5625*s*s:s<2/2.75?7.5625*(s-=1.5/2.75)*s+.75:s<2.5/2.75?7.5625*(s-=2.25/2.75)*s+.9375:7.5625*(s-=2.625/2.75)*s+.984375}),h("BounceIn",function(s){return(s=1-s)<1/2.75?1-7.5625*s*s:s<2/2.75?1-(7.5625*(s-=1.5/2.75)*s+.75):s<2.5/2.75?1-(7.5625*(s-=2.25/2.75)*s+.9375):1-(7.5625*(s-=2.625/2.75)*s+.984375)}),h("BounceInOut",function(s){var v=s<.5;return s=v?1-2*s:2*s-1,s=s<1/2.75?7.5625*s*s:s<2/2.75?7.5625*(s-=1.5/2.75)*s+.75:s<2.5/2.75?7.5625*(s-=2.25/2.75)*s+.9375:7.5625*(s-=2.625/2.75)*s+.984375,v?.5*(1-s):.5*s+.5})),u("Circ",h("CircOut",function(s){return Math.sqrt(1-(s-=1)*s)}),h("CircIn",function(s){return-(Math.sqrt(1-s*s)-1)}),h("CircInOut",function(s){return(s*=2)<1?-.5*(Math.sqrt(1-s*s)-1):.5*(Math.sqrt(1-(s-=2)*s)+1)})),o=function(s,v,P){var T=r("easing."+s,function(M,R){this._p1=M>=1?M:1,this._p2=(R||P)/(M<1?M:1),this._p3=this._p2/i*(Math.asin(1/this._p1)||0),this._p2=i/this._p2},!0),C=T.prototype=new m;return C.constructor=T,C.getRatio=v,C.config=function(M,R){return new T(M,R)},T},u("Elastic",o("ElasticOut",function(s){return this._p1*Math.pow(2,-10*s)*Math.sin((s-this._p3)*this._p2)+1},.3),o("ElasticIn",function(s){return-(this._p1*Math.pow(2,10*(s-=1))*Math.sin((s-this._p3)*this._p2))},.3),o("ElasticInOut",function(s){return(s*=2)<1?-.5*(this._p1*Math.pow(2,10*(s-=1))*Math.sin((s-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(s-=1))*Math.sin((s-this._p3)*this._p2)*.5+1},.45)),u("Expo",h("ExpoOut",function(s){return 1-Math.pow(2,-10*s)}),h("ExpoIn",function(s){return Math.pow(2,10*(s-1))-.001}),h("ExpoInOut",function(s){return(s*=2)<1?.5*Math.pow(2,10*(s-1)):.5*(2-Math.pow(2,-10*(s-1)))})),u("Sine",h("SineOut",function(s){return Math.sin(s*n)}),h("SineIn",function(s){return-Math.cos(s*n)+1}),h("SineInOut",function(s){return-.5*(Math.cos(Math.PI*s)-1)})),r("easing.EaseLookup",{find:function(s){return m.map[s]}},!0),p(e.SlowMo,"SlowMo","ease,"),p(f,"RoughEase","ease,"),p(l,"SteppedEase","ease,"),w},!0)}),b._gsDefine&&b._gsQueue.pop()(),function(m,l){"use strict";var f={},o=m.GreenSockGlobals=m.GreenSockGlobals||m;if(!o.TweenLite){var e,t,i,n,r,h=function(j){var V,q=j.split("."),Z=o;for(V=0;V-1;)(pt=g[V[Rt]]||new a(V[Rt],[])).gsClass?(nt[Rt]=pt.gsClass,qt--):lt&&pt.sc.push(this);if(qt===0&&q){if(ot=("com.greensock."+j).split("."),At=ot.pop(),Mt=h(ot.join("."))[At]=this.gsClass=q.apply(q,nt),Z){if(o[At]=f[At]=Mt,vt=typeof B!="undefined"&&B.exports,!vt&&c(143))O=[],x=function(){return Mt}.apply(E,O),x!==void 0&&(B.exports=x);else if(vt)if(j===l){B.exports=f[l]=Mt;for(Rt in f)Mt[Rt]=f[Rt]}else f[l]&&(f[l][At]=Mt)}for(Rt=0;Rt-1;)for(lt=At[Mt],nt=Z?v("easing."+lt,null,!0):p.easing[lt]||{},pt=vt.length;--pt>-1;)ot=vt[pt],C[lt+"."+ot]=C[ot+lt]=nt[ot]=j.getRatio?j:j[ot]||new j};for(i=T.prototype,i._calcEnd=!1,i.getRatio=function(j){if(this._func)return this._params[0]=j,this._func.apply(null,this._params);var V=this._type,q=this._power,Z=V===1?1-j:V===2?j:j<.5?2*j:2*(1-j);return q===1?Z*=Z:q===2?Z*=Z*Z:q===3?Z*=Z*Z*Z:q===4&&(Z*=Z*Z*Z*Z),V===1?1-Z:V===2?Z:j<.5?Z/2:1-Z/2},e=["Linear","Quad","Cubic","Quart","Quint,Strong"],t=e.length;--t>-1;)i=e[t]+",Power"+t,M(new T(null,null,1,t),i,"easeOut",!0),M(new T(null,null,2,t),i,"easeIn"+(t===0?",easeNone":"")),M(new T(null,null,3,t),i,"easeInOut");C.linear=p.easing.Linear.easeIn,C.swing=p.easing.Quad.easeInOut;var R=v("events.EventDispatcher",function(j){this._listeners={},this._eventTarget=j||this});i=R.prototype,i.addEventListener=function(j,V,q,Z,nt){nt=nt||0;var lt,pt,ot=this._listeners[j],At=0;for(this!==n||r||n.wake(),ot==null&&(this._listeners[j]=ot=[]),pt=ot.length;--pt>-1;)lt=ot[pt],lt.c===V&<.s===q?ot.splice(pt,1):At===0&<.pr-1;)if(Z[q].c===V)return void Z.splice(q,1)}},i.dispatchEvent=function(j){var V,q,Z,nt=this._listeners[j];if(nt)for(V=nt.length,V>1&&(nt=nt.slice(0)),q=this._eventTarget;--V>-1;)Z=nt[V],Z&&(Z.up?Z.c.call(Z.s||q,{type:j,target:q}):Z.c.call(Z.s||q))};var S=m.requestAnimationFrame,L=m.cancelAnimationFrame,A=Date.now||function(){return new Date().getTime()},D=A();for(e=["ms","moz","webkit","o"],t=e.length;--t>-1&&!S;)S=m[e[t]+"RequestAnimationFrame"],L=m[e[t]+"CancelAnimationFrame"]||m[e[t]+"CancelRequestAnimationFrame"];v("Ticker",function(j,V){var q,Z,nt,lt,pt,ot=this,At=A(),Mt=!(V===!1||!S)&&"auto",vt=500,Rt=33,qt="tick",Gt=function(Wt){var ue,fe,Jt=A()-D;Jt>vt&&(At+=Jt-Rt),D+=Jt,ot.time=(D-At)/1e3,ue=ot.time-pt,(!q||ue>0||Wt===!0)&&(ot.frame++,pt+=ue+(ue>=lt?.004:lt-ue),fe=!0),Wt!==!0&&(nt=Z(Gt)),fe&&ot.dispatchEvent(qt)};R.call(ot),ot.time=ot.frame=0,ot.tick=function(){Gt(!0)},ot.lagSmoothing=function(Wt,ue){vt=Wt||1/u,Rt=Math.min(ue,vt,0)},ot.sleep=function(){nt!=null&&(Mt&&L?L(nt):clearTimeout(nt),Z=d,nt=null,ot===n&&(r=!1))},ot.wake=function(Wt){nt!==null?ot.sleep():Wt?At+=-D+(D=A()):ot.frame>10&&(D=A()-vt+5),Z=q===0?d:Mt&&S?S:function(ue){return setTimeout(ue,1e3*(pt-ot.time)+1|0)},ot===n&&(r=!0),Gt(2)},ot.fps=function(Wt){return arguments.length?(q=Wt,lt=1/(q||60),pt=this.time+lt,void ot.wake()):q},ot.useRAF=function(Wt){return arguments.length?(ot.sleep(),Mt=Wt,void ot.fps(q)):Mt},ot.fps(j),setTimeout(function(){Mt==="auto"&&ot.frame<5&&document.visibilityState!=="hidden"&&ot.useRAF(!1)},1500)}),i=p.Ticker.prototype=new p.events.EventDispatcher,i.constructor=p.Ticker;var I=v("core.Animation",function(j,V){if(this.vars=V=V||{},this._duration=this._totalDuration=j||0,this._delay=Number(V.delay)||0,this._timeScale=1,this._active=V.immediateRender===!0,this.data=V.data,this._reversed=V.reversed===!0,Ut){r||n.wake();var q=this.vars.useFrames?Bt:Ut;q.add(this,q._time),this.vars.paused&&this.paused(!0)}});n=I.ticker=new p.Ticker,i=I.prototype,i._dirty=i._gc=i._initted=i._paused=!1,i._totalTime=i._time=0,i._rawPrevTime=-1,i._next=i._last=i._onUpdate=i._timeline=i.timeline=null,i._paused=!1;var U=function(){r&&A()-D>2e3&&n.wake(),setTimeout(U,2e3)};U(),i.play=function(j,V){return j!=null&&this.seek(j,V),this.reversed(!1).paused(!1)},i.pause=function(j,V){return j!=null&&this.seek(j,V),this.paused(!0)},i.resume=function(j,V){return j!=null&&this.seek(j,V),this.paused(!1)},i.seek=function(j,V){return this.totalTime(Number(j),V!==!1)},i.restart=function(j,V){return this.reversed(!1).paused(!1).totalTime(j?-this._delay:0,V!==!1,!0)},i.reverse=function(j,V){return j!=null&&this.seek(j||this.totalDuration(),V),this.reversed(!0).paused(!1)},i.render=function(j,V,q){},i.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},i.isActive=function(){var j,V=this._timeline,q=this._startTime;return!V||!this._gc&&!this._paused&&V.isActive()&&(j=V.rawTime())>=q&&j-1;)j[V]==="{self}"&&(q[V]=this);return q},i._callback=function(j){var V=this.vars,q=V[j],Z=V[j+"Params"],nt=V[j+"Scope"]||V.callbackScope||this,lt=Z?Z.length:0;switch(lt){case 0:q.call(nt);break;case 1:q.call(nt,Z[0]);break;case 2:q.call(nt,Z[0],Z[1]);break;default:q.apply(nt,Z)}},i.eventCallback=function(j,V,q,Z){if((j||"").substr(0,2)==="on"){var nt=this.vars;if(arguments.length===1)return nt[j];V==null?delete nt[j]:(nt[j]=V,nt[j+"Params"]=w(q)&&q.join("").indexOf("{self}")!==-1?this._swapSelfInParams(q):q,nt[j+"Scope"]=Z),j==="onUpdate"&&(this._onUpdate=V)}return this},i.delay=function(j){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+j-this._delay),this._delay=j,this):this._delay},i.duration=function(j){return arguments.length?(this._duration=this._totalDuration=j,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._timethis._duration?this._duration:j,V)):this._time},i.totalTime=function(j,V,q){if(r||n.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(j<0&&!q&&(j+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var Z=this._totalDuration,nt=this._timeline;if(j>Z&&!q&&(j=Z),this._startTime=(this._paused?this._pauseTime:nt._time)-(this._reversed?Z-j:j)/this._timeScale,nt._dirty||this._uncache(!1),nt._timeline)for(;nt._timeline;)nt._timeline._time!==(nt._startTime+nt._totalTime)/nt._timeScale&&nt.totalTime(nt._totalTime,!0),nt=nt._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===j&&this._duration!==0||(it.length&&jt(),this.render(j,V,!1),it.length&&jt())}return this},i.progress=i.totalProgress=function(j,V){var q=this.duration();return arguments.length?this.totalTime(q*j,V):q?this._time/q:this.ratio},i.startTime=function(j){return arguments.length?(j!==this._startTime&&(this._startTime=j,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,j-this._delay)),this):this._startTime},i.endTime=function(j){return this._startTime+(j!=0?this.totalDuration():this.duration())/this._timeScale},i.timeScale=function(j){if(!arguments.length)return this._timeScale;if(j=j||u,this._timeline&&this._timeline.smoothChildTiming){var V=this._pauseTime,q=V||V===0?V:this._timeline.totalTime();this._startTime=q-(q-this._startTime)*this._timeScale/j}return this._timeScale=j,this._uncache(!1)},i.reversed=function(j){return arguments.length?(j!=this._reversed&&(this._reversed=j,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},i.paused=function(j){if(!arguments.length)return this._paused;var V,q,Z=this._timeline;return j!=this._paused&&Z&&(r||j||n.wake(),V=Z.rawTime(),q=V-this._pauseTime,!j&&Z.smoothChildTiming&&(this._startTime+=q,this._uncache(!1)),this._pauseTime=j?V:null,this._paused=j,this._active=this.isActive(),!j&&q!==0&&this._initted&&this.duration()&&(V=Z.smoothChildTiming?this._totalTime:(V-this._startTime)/this._timeScale,this.render(V,V===this._totalTime,!0))),this._gc&&!j&&this._enabled(!0,!1),this};var N=v("core.SimpleTimeline",function(j){I.call(this,0,j),this.autoRemoveChildren=this.smoothChildTiming=!0});i=N.prototype=new I,i.constructor=N,i.kill()._gc=!1,i._first=i._last=i._recent=null,i._sortChildren=!1,i.add=i.insert=function(j,V,q,Z){var nt,lt;if(j._startTime=Number(V||0)+j._delay,j._paused&&this!==j._timeline&&(j._pauseTime=j._startTime+(this.rawTime()-j._startTime)/j._timeScale),j.timeline&&j.timeline._remove(j,!0),j.timeline=j._timeline=this,j._gc&&j._enabled(!0,!0),nt=this._last,this._sortChildren)for(lt=j._startTime;nt&&nt._startTime>lt;)nt=nt._prev;return nt?(j._next=nt._next,nt._next=j):(j._next=this._first,this._first=j),j._next?j._next._prev=j:this._last=j,j._prev=nt,this._recent=j,this._timeline&&this._uncache(!0),this},i._remove=function(j,V){return j.timeline===this&&(V||j._enabled(!1,!0),j._prev?j._prev._next=j._next:this._first===j&&(this._first=j._next),j._next?j._next._prev=j._prev:this._last===j&&(this._last=j._prev),j._next=j._prev=j.timeline=null,j===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},i.render=function(j,V,q){var Z,nt=this._first;for(this._totalTime=this._time=this._rawPrevTime=j;nt;)Z=nt._next,(nt._active||j>=nt._startTime&&!nt._paused)&&(nt._reversed?nt.render((nt._dirty?nt.totalDuration():nt._totalDuration)-(j-nt._startTime)*nt._timeScale,V,q):nt.render((j-nt._startTime)*nt._timeScale,V,q)),nt=Z},i.rawTime=function(){return r||n.wake(),this._totalTime};var W=v("TweenLite",function(j,V,q){if(I.call(this,V,q),this.render=W.prototype.render,j==null)throw"Cannot tween a null target.";this.target=j=typeof j!="string"?j:W.selector(j)||j;var Z,nt,lt,pt=j.jquery||j.length&&j!==m&&j[0]&&(j[0]===m||j[0].nodeType&&j[0].style&&!j.nodeType),ot=this.vars.overwrite;if(this._overwrite=ot=ot==null?kt[W.defaultOverwrite]:typeof ot=="number"?ot>>0:kt[ot],(pt||j instanceof Array||j.push&&w(j))&&typeof j[0]!="number")for(this._targets=lt=y(j),this._propLookup=[],this._siblings=[],Z=0;Z1&&Ot(nt,this,null,1,this._siblings[Z])):(nt=lt[Z--]=W.selector(nt),typeof nt=="string"&<.splice(Z+1,1)):lt.splice(Z--,1);else this._propLookup={},this._siblings=_t(j,this,!1),ot===1&&this._siblings.length>1&&Ot(j,this,null,1,this._siblings);(this.vars.immediateRender||V===0&&this._delay===0&&this.vars.immediateRender!==!1)&&(this._time=-u,this.render(Math.min(0,-this._delay)))},!0),H=function(j){return j&&j.length&&j!==m&&j[0]&&(j[0]===m||j[0].nodeType&&j[0].style&&!j.nodeType)},tt=function(j,V){var q,Z={};for(q in j)bt[q]||q in V&&q!=="transform"&&q!=="x"&&q!=="y"&&q!=="width"&&q!=="height"&&q!=="className"&&q!=="border"||!(!yt[q]||yt[q]&&yt[q]._autoCSS)||(Z[q]=j[q],delete j[q]);j.css=Z};i=W.prototype=new I,i.constructor=W,i.kill()._gc=!1,i.ratio=0,i._firstPT=i._targets=i._overwrittenProps=i._startAt=null,i._notifyPluginsOfEnabled=i._lazy=!1,W.version="1.19.0",W.defaultEase=i._ease=new T(null,null,1,1),W.defaultOverwrite="auto",W.ticker=n,W.autoSleep=120,W.lagSmoothing=function(j,V){n.lagSmoothing(j,V)},W.selector=m.$||m.jQuery||function(j){var V=m.$||m.jQuery;return V?(W.selector=V,V(j)):typeof document=="undefined"?j:document.querySelectorAll?document.querySelectorAll(j):document.getElementById(j.charAt(0)==="#"?j.substr(1):j)};var it=[],K={},at=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,ut=function(j){for(var V,q=this._firstPT,Z=1e-6;q;)V=q.blob?j?this.join(""):this.start:q.c*j+q.s,q.m?V=q.m(V,this._target||q.t):V-Z&&(V=0),q.f?q.fp?q.t[q.p](q.fp,V):q.t[q.p](V):q.t[q.p]=V,q=q._next},mt=function(j,V,q,Z){var nt,lt,pt,ot,At,Mt,vt,Rt=[j,V],qt=0,Gt="",Wt=0;for(Rt.start=j,q&&(q(Rt),j=Rt[0],V=Rt[1]),Rt.length=0,nt=j.match(at)||[],lt=V.match(at)||[],Z&&(Z._next=null,Z.blob=1,Rt._firstPT=Rt._applyPT=Z),At=lt.length,ot=0;ot-1;)j=it[V],j&&j._lazy!==!1&&(j.render(j._lazy[0],j._lazy[1],!0),j._lazy=!1);it.length=0};Ut._startTime=n.time,Bt._startTime=n.frame,Ut._active=Bt._active=!0,setTimeout(jt,1),I._updateRoot=W.render=function(){var j,V,q;if(it.length&&jt(),Ut.render((n.time-Ut._startTime)*Ut._timeScale,!1,!1),Bt.render((n.frame-Bt._startTime)*Bt._timeScale,!1,!1),it.length&&jt(),n.frame>=Vt){Vt=n.frame+(parseInt(W.autoSleep,10)||120);for(q in Tt){for(V=Tt[q].tweens,j=V.length;--j>-1;)V[j]._gc&&V.splice(j,1);V.length===0&&delete Tt[q]}if(q=Ut._first,(!q||q._paused)&&W.autoSleep&&!Bt._first&&n._listeners.tick.length===1){for(;q&&q._paused;)q=q._next;q||n.sleep()}}},n.addEventListener("tick",I._updateRoot);var _t=function(j,V,q){var Z,nt,lt=j._gsTweenID;if(Tt[lt||(j._gsTweenID=lt="t"+It++)]||(Tt[lt]={target:j,tweens:[]}),V&&(Z=Tt[lt].tweens,Z[nt=Z.length]=V,q))for(;--nt>-1;)Z[nt]===V&&Z.splice(nt,1);return Tt[lt].tweens},Et=function(j,V,q,Z){var nt,lt,pt=j.vars.onOverwrite;return pt&&(nt=pt(j,V,q,Z)),pt=W.onOverwrite,pt&&(lt=pt(j,V,q,Z)),nt!==!1&<!==!1},Ot=function(j,V,q,Z,nt){var lt,pt,ot,At;if(Z===1||Z>=4){for(At=nt.length,lt=0;lt-1;)(ot=nt[lt])===V||ot._gc||ot._paused||(ot._timeline!==V._timeline?(Mt=Mt||zt(V,0,Gt),zt(ot,Mt,Gt)===0&&(Rt[qt++]=ot)):ot._startTime<=vt&&ot._startTime+ot.totalDuration()/ot._timeScale>vt&&((Gt||!ot._initted)&&vt-ot._startTime<=2e-10||(Rt[qt++]=ot)));for(lt=qt;--lt>-1;)if(ot=Rt[lt],Z===2&&ot._kill(q,j,V)&&(pt=!0),Z!==2||!ot._firstPT&&ot._initted){if(Z!==2&&!Et(ot,V))continue;ot._enabled(!1,!1)&&(pt=!0)}return pt},zt=function(j,V,q){for(var Z=j._timeline,nt=Z._timeScale,lt=j._startTime;Z._timeline;){if(lt+=Z._startTime,nt*=Z._timeScale,Z._paused)return-100;Z=Z._timeline}return lt/=nt,lt>V?lt-V:q&<===V||!j._initted&<-V<2*u?u:(lt+=j.totalDuration()/j._timeScale/nt)>V+u?0:lt-V-u};i._init=function(){var j,V,q,Z,nt,lt,pt=this.vars,ot=this._overwrittenProps,At=this._duration,Mt=!!pt.immediateRender,vt=pt.ease;if(pt.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),nt={};for(Z in pt.startAt)nt[Z]=pt.startAt[Z];if(nt.overwrite=!1,nt.immediateRender=!0,nt.lazy=Mt&&pt.lazy!==!1,nt.startAt=nt.delay=null,this._startAt=W.to(this.target,0,nt),Mt){if(this._time>0)this._startAt=null;else if(At!==0)return}}else if(pt.runBackwards&&At!==0)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{this._time!==0&&(Mt=!1),q={};for(Z in pt)bt[Z]&&Z!=="autoCSS"||(q[Z]=pt[Z]);if(q.overwrite=0,q.data="isFromStart",q.lazy=Mt&&pt.lazy!==!1,q.immediateRender=Mt,this._startAt=W.to(this.target,0,q),Mt){if(this._time===0)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=vt=vt?vt instanceof T?vt:typeof vt=="function"?new T(vt,pt.easeParams):C[vt]||W.defaultEase:W.defaultEase,pt.easeParams instanceof Array&&vt.config&&(this._ease=vt.config.apply(vt,pt.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(lt=this._targets.length,j=0;j-1;)V[At._overwriteProps[pt]]=this._firstPT;(At._priority||At._onInitAllProps)&&(ot=!0),(At._onDisable||At._onEnable)&&(this._notifyPluginsOfEnabled=!0),Mt._next&&(Mt._next._prev=Mt)}else V[lt]=wt.call(this,j,lt,"get",vt,lt,0,null,this.vars.stringFilter,nt);return Z&&this._kill(Z,j)?this._initProps(j,V,q,Z,nt):this._overwrite>1&&this._firstPT&&q.length>1&&Ot(j,this,V,this._overwrite,q)?(this._kill(V,j),this._initProps(j,V,q,Z,nt)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(K[j._gsTweenID]=!0),ot)},i.render=function(j,V,q){var Z,nt,lt,pt,ot=this._time,At=this._duration,Mt=this._rawPrevTime;if(j>=At-1e-7)this._totalTime=this._time=At,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(Z=!0,nt="onComplete",q=q||this._timeline.autoRemoveChildren),At===0&&(this._initted||!this.vars.lazy||q)&&(this._startTime===this._timeline._duration&&(j=0),(Mt<0||j<=0&&j>=-1e-7||Mt===u&&this.data!=="isPause")&&Mt!==j&&(q=!0,Mt>u&&(nt="onReverseComplete")),this._rawPrevTime=pt=!V||j||Mt===j?j:u);else if(j<1e-7)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(ot!==0||At===0&&Mt>0)&&(nt="onReverseComplete",Z=this._reversed),j<0&&(this._active=!1,At===0&&(this._initted||!this.vars.lazy||q)&&(Mt>=0&&(Mt!==u||this.data!=="isPause")&&(q=!0),this._rawPrevTime=pt=!V||j||Mt===j?j:u)),this._initted||(q=!0);else if(this._totalTime=this._time=j,this._easeType){var vt=j/At,Rt=this._easeType,qt=this._easePower;(Rt===1||Rt===3&&vt>=.5)&&(vt=1-vt),Rt===3&&(vt*=2),qt===1?vt*=vt:qt===2?vt*=vt*vt:qt===3?vt*=vt*vt*vt:qt===4&&(vt*=vt*vt*vt*vt),Rt===1?this.ratio=1-vt:Rt===2?this.ratio=vt:j/At<.5?this.ratio=vt/2:this.ratio=1-vt/2}else this.ratio=this._ease.getRatio(j/At);if(this._time!==ot||q){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!q&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=ot,this._rawPrevTime=Mt,it.push(this),void(this._lazy=[j,V]);this._time&&!Z?this.ratio=this._ease.getRatio(this._time/At):Z&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(this._time===0?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==ot&&j>=0&&(this._active=!0),ot===0&&(this._startAt&&(j>=0?this._startAt.render(j,V,q):nt||(nt="_dummyGS")),this.vars.onStart&&(this._time===0&&At!==0||V||this._callback("onStart"))),lt=this._firstPT;lt;)lt.f?lt.t[lt.p](lt.c*this.ratio+lt.s):lt.t[lt.p]=lt.c*this.ratio+lt.s,lt=lt._next;this._onUpdate&&(j<0&&this._startAt&&j!==-1e-4&&this._startAt.render(j,V,q),V||(this._time!==ot||Z||q)&&this._callback("onUpdate")),nt&&(this._gc&&!q||(j<0&&this._startAt&&!this._onUpdate&&j!==-1e-4&&this._startAt.render(j,V,q),Z&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!V&&this.vars[nt]&&this._callback(nt),At===0&&this._rawPrevTime===u&&pt!==u&&(this._rawPrevTime=0)))}},i._kill=function(j,V,q){if(j==="all"&&(j=null),j==null&&(V==null||V===this.target))return this._lazy=!1,this._enabled(!1,!1);V=typeof V!="string"?V||this._targets||this.target:W.selector(V)||V;var Z,nt,lt,pt,ot,At,Mt,vt,Rt,qt=q&&this._time&&q._startTime===this._startTime&&this._timeline===q._timeline;if((w(V)||H(V))&&typeof V[0]!="number")for(Z=V.length;--Z>-1;)this._kill(j,V[Z],q)&&(At=!0);else{if(this._targets){for(Z=this._targets.length;--Z>-1;)if(V===this._targets[Z]){ot=this._propLookup[Z]||{},this._overwrittenProps=this._overwrittenProps||[],nt=this._overwrittenProps[Z]=j?this._overwrittenProps[Z]||{}:"all";break}}else{if(V!==this.target)return!1;ot=this._propLookup,nt=this._overwrittenProps=j?this._overwrittenProps||{}:"all"}if(ot){if(Mt=j||ot,vt=j!==nt&&nt!=="all"&&j!==ot&&(typeof j!="object"||!j._tempKill),q&&(W.onOverwrite||this.vars.onOverwrite)){for(lt in Mt)ot[lt]&&(Rt||(Rt=[]),Rt.push(lt));if((Rt||!j)&&!Et(this,q,V,Rt))return!1}for(lt in Mt)(pt=ot[lt])&&(qt&&(pt.f?pt.t[pt.p](pt.s):pt.t[pt.p]=pt.s,At=!0),pt.pg&&pt.t._kill(Mt)&&(At=!0),pt.pg&&pt.t._overwriteProps.length!==0||(pt._prev?pt._prev._next=pt._next:pt===this._firstPT&&(this._firstPT=pt._next),pt._next&&(pt._next._prev=pt._prev),pt._next=pt._prev=null),delete ot[lt]),vt&&(nt[lt]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return At},i.invalidate=function(){return this._notifyPluginsOfEnabled&&W._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],I.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-u,this.render(Math.min(0,-this._delay))),this},i._enabled=function(j,V){if(r||n.wake(),j&&this._gc){var q,Z=this._targets;if(Z)for(q=Z.length;--q>-1;)this._siblings[q]=_t(Z[q],this,!0);else this._siblings=_t(this.target,this,!0)}return I.prototype._enabled.call(this,j,V),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&W._onPluginEvent(j?"_onEnable":"_onDisable",this)},W.to=function(j,V,q){return new W(j,V,q)},W.from=function(j,V,q){return q.runBackwards=!0,q.immediateRender=q.immediateRender!=0,new W(j,V,q)},W.fromTo=function(j,V,q,Z){return Z.startAt=q,Z.immediateRender=Z.immediateRender!=0&&q.immediateRender!=0,new W(j,V,Z)},W.delayedCall=function(j,V,q,Z,nt){return new W(V,0,{delay:j,onComplete:V,onCompleteParams:q,callbackScope:Z,onReverseComplete:V,onReverseCompleteParams:q,immediateRender:!1,lazy:!1,useFrames:nt,overwrite:0})},W.set=function(j,V){return new W(j,0,V)},W.getTweensOf=function(j,V){if(j==null)return[];j=typeof j!="string"?j:W.selector(j)||j;var q,Z,nt,lt;if((w(j)||H(j))&&typeof j[0]!="number"){for(q=j.length,Z=[];--q>-1;)Z=Z.concat(W.getTweensOf(j[q],V));for(q=Z.length;--q>-1;)for(lt=Z[q],nt=q;--nt>-1;)lt===Z[nt]&&Z.splice(q,1)}else for(Z=_t(j).concat(),q=Z.length;--q>-1;)(Z[q]._gc||V&&!Z[q].isActive())&&Z.splice(q,1);return Z},W.killTweensOf=W.killDelayedCallsTo=function(j,V,q){typeof V=="object"&&(q=V,V=!1);for(var Z=W.getTweensOf(j,V),nt=Z.length;--nt>-1;)Z[nt]._kill(q,j)};var Zt=v("plugins.TweenPlugin",function(j,V){this._overwriteProps=(j||"").split(","),this._propName=this._overwriteProps[0],this._priority=V||0,this._super=Zt.prototype},!0);if(i=Zt.prototype,Zt.version="1.19.0",Zt.API=2,i._firstPT=null,i._addTween=wt,i.setRatio=ut,i._kill=function(j){var V,q=this._overwriteProps,Z=this._firstPT;if(j[this._propName]!=null)this._overwriteProps=[];else for(V=q.length;--V>-1;)j[q[V]]!=null&&q.splice(V,1);for(;Z;)j[Z.n]!=null&&(Z._next&&(Z._next._prev=Z._prev),Z._prev?(Z._prev._next=Z._next,Z._prev=null):this._firstPT===Z&&(this._firstPT=Z._next)),Z=Z._next;return!1},i._mod=i._roundProps=function(j){for(var V,q=this._firstPT;q;)V=j[this._propName]||q.n!=null&&j[q.n.split(this._propName+"_").join("")],V&&typeof V=="function"&&(q.f===2?q.t._applyPT.m=V:q.m=V),q=q._next},W._onPluginEvent=function(j,V){var q,Z,nt,lt,pt,ot=V._firstPT;if(j==="_onInitAllProps"){for(;ot;){for(pt=ot._next,Z=nt;Z&&Z.pr>ot.pr;)Z=Z._next;(ot._prev=Z?Z._prev:lt)?ot._prev._next=ot:nt=ot,(ot._next=Z)?Z._prev=ot:lt=ot,ot=pt}ot=V._firstPT=nt}for(;ot;)ot.pg&&typeof ot.t[j]=="function"&&ot.t[j]()&&(q=!0),ot=ot._next;return q},Zt.activate=function(j){for(var V=j.length;--V>-1;)j[V].API===Zt.API&&(yt[new j[V]()._propName]=j[V]);return!0},s.plugin=function(j){if(!(j&&j.propName&&j.init&&j.API))throw"illegal plugin definition.";var V,q=j.propName,Z=j.priority||0,nt=j.overwriteProps,lt={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},pt=v("plugins."+q.charAt(0).toUpperCase()+q.substr(1)+"Plugin",function(){Zt.call(this,q,Z),this._overwriteProps=nt||[]},j.global===!0),ot=pt.prototype=new Zt(q);ot.constructor=pt,pt.API=j.API;for(V in lt)typeof j[V]=="function"&&(ot[lt[V]]=j[V]);return pt.version=j.version,Zt.activate([pt]),pt},e=m._gsQueue){for(t=0;tthis.baseTexture.width||w.y+w.height>this.baseTexture.height)throw new Error("Texture Error: frame does not fit inside the base Texture dimensions "+this);this.valid=w&&w.width&&w.height&&this.baseTexture.hasLoaded,this.trim||this.rotate||(this.orig=w),this.valid&&this._updateUvs()}},{key:"rotate",get:function(){return this._rotate},set:function(w){this._rotate=w,this.valid&&this._updateUvs()}},{key:"width",get:function(){return this.orig.width}},{key:"height",get:function(){return this.orig.height}}]),d}(r.default);E.default=u,u.EMPTY=new u(new f.default),u.EMPTY.destroy=function(){},u.EMPTY.on=function(){},u.EMPTY.once=function(){},u.EMPTY.emit=function(){}},function(B,E,c){"use strict";function O(i){if(i&&i.__esModule)return i;var n={};if(i!=null)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r]);return n.default=i,n}function x(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function _(i,n){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||typeof n!="object"&&typeof n!="function"?i:n}function b(i,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);i.prototype=Object.create(n&&n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(i,n):i.__proto__=n)}E.__esModule=!0;var m=function(){function i(n,r){for(var h=0;h1)for(var h=0;hthis.children.length)throw new Error(n+"addChildAt: The index "+r+" supplied is out of bounds "+this.children.length);return n.parent&&n.parent.removeChild(n),n.parent=this,this.children.splice(r,0,n),this.onChildrenChange(r),n.emit("added",this),n},i.prototype.swapChildren=function(n,r){if(n!==r){var h=this.getChildIndex(n),p=this.getChildIndex(r);this.children[h]=r,this.children[p]=n,this.onChildrenChange(h=this.children.length)throw new Error("The supplied index is out of bounds");var h=this.getChildIndex(n);(0,l.removeItems)(this.children,h,1),this.children.splice(r,0,n),this.onChildrenChange(r)},i.prototype.getChildAt=function(n){if(n<0||n>=this.children.length)throw new Error("getChildAt: Index ("+n+") does not exist.");return this.children[n]},i.prototype.removeChild=function(n){var r=arguments.length;if(r>1)for(var h=0;h0&&arguments[0]!==void 0?arguments[0]:0,r=arguments[1],h=n,p=typeof r=="number"?r:this.children.length,u=p-h,y=void 0;if(u>0&&u<=p){y=this.children.splice(h,u);for(var d=0;d196*u*u?(D=R-L,I=S-A,U=Math.sqrt(D*D+I*I),D/=U,I/=U,D*=u,I*=u,i.push(P-D,T-I),i.push(w,g,a,d),i.push(P+D,T+I),i.push(w,g,a,d),i.push(P-D,T-I),i.push(w,g,a,d),h++):(i.push(mt,wt),i.push(w,g,a,d),i.push(P-(mt-P),T-(wt-T)),i.push(w,g,a,d))}}s=l[2*(r-2)],v=l[2*(r-2)+1],P=l[2*(r-1)],T=l[2*(r-1)+1],R=-(v-T),S=s-P,U=Math.sqrt(R*R+S*S),R/=U,S/=U,R*=u,S*=u,i.push(P-R,T-S),i.push(w,g,a,d),i.push(P+R,T+S),i.push(w,g,a,d),n.push(p);for(var yt=0;yt2&&arguments[2]!==void 0?arguments[2]:{};x(this,w);var v=_(this,d.call(this,"Canvas",g,a,s));return v.type=h.RENDERER_TYPE.CANVAS,v.rootContext=v.view.getContext("2d",{alpha:v.transparent}),v.refresh=!0,v.maskManager=new o.default(v),v.smoothProperty="imageSmoothingEnabled",v.rootContext.imageSmoothingEnabled||(v.rootContext.webkitImageSmoothingEnabled?v.smoothProperty="webkitImageSmoothingEnabled":v.rootContext.mozImageSmoothingEnabled?v.smoothProperty="mozImageSmoothingEnabled":v.rootContext.oImageSmoothingEnabled?v.smoothProperty="oImageSmoothingEnabled":v.rootContext.msImageSmoothingEnabled&&(v.smoothProperty="msImageSmoothingEnabled")),v.initPlugins(),v.blendModes=(0,n.default)(),v._activeBlendMode=null,v.context=null,v.renderingToScreen=!1,v.resize(g,a),v}return b(w,d),w.prototype.render=function(g,a,s,v,P){if(this.view){this.renderingToScreen=!a,this.emit("prerender");var T=this.resolution;a?(a=a.baseTexture||a,a._canvasRenderTarget||(a._canvasRenderTarget=new t.default(a.width,a.height,a.resolution),a.source=a._canvasRenderTarget.canvas,a.valid=!0),this.context=a._canvasRenderTarget.context,this.resolution=a._canvasRenderTarget.resolution):this.context=this.rootContext;var C=this.context;if(a||(this._lastObjectRendered=g),!P){var M=g.parent,R=this._tempDisplayObjectParent.transform.worldTransform;v?v.copy(R):R.identity(),g.parent=this._tempDisplayObjectParent,g.updateTransform(),g.parent=M}C.setTransform(1,0,0,1,0,0),C.globalAlpha=1,C.globalCompositeOperation=this.blendModes[h.BLEND_MODES.NORMAL],navigator.isCocoonJS&&this.view.screencanvas&&(C.fillStyle="black",C.clear()),(s!==void 0?s:this.clearBeforeRender)&&this.renderingToScreen&&(this.transparent?C.clearRect(0,0,this.width,this.height):(C.fillStyle=this._backgroundColorString,C.fillRect(0,0,this.width,this.height)));var S=this.context;this.context=C,g.renderCanvas(this),this.context=S,this.resolution=T,this.emit("postrender")}},w.prototype.clear=function(g){var a=this.context;g=g||this._backgroundColorString,!this.transparent&&g?(a.fillStyle=g,a.fillRect(0,0,this.width,this.height)):a.clearRect(0,0,this.width,this.height)},w.prototype.setBlendMode=function(g){this._activeBlendMode!==g&&(this._activeBlendMode=g,this.context.globalCompositeOperation=this.blendModes[g])},w.prototype.destroy=function(g){this.destroyPlugins(),d.prototype.destroy.call(this,g),this.context=null,this.refresh=!0,this.maskManager.destroy(),this.maskManager=null,this.smoothProperty=null},w.prototype.resize=function(g,a){d.prototype.resize.call(this,g,a),this.smoothProperty&&(this.rootContext[this.smoothProperty]=u.default.SCALE_MODE===h.SCALE_MODES.LINEAR)},w}(l.default);E.default=y,r.pluginTarget.mixin(y)},function(B,E,c){"use strict";function O(o){return o&&o.__esModule?o:{default:o}}function x(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function _(o,e){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||typeof e!="object"&&typeof e!="function"?o:e}function b(o,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}E.__esModule=!0;var m=c(24),l=O(m),f=function(o){function e(){return x(this,e),_(this,o.apply(this,arguments))}return b(e,o),e.prototype.start=function(){},e.prototype.stop=function(){this.flush()},e.prototype.flush=function(){},e.prototype.render=function(t){},e}(l.default);E.default=f},function(B,E,c){"use strict";function O(e){return e&&e.__esModule?e:{default:e}}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var _=c(4),b=c(2),m=c(5),l=O(m),f=c(6),o=function(){function e(t,i,n,r,h,p){x(this,e),this.gl=t,this.frameBuffer=null,this.texture=null,this.clearColor=[0,0,0,0],this.size=new _.Rectangle(0,0,1,1),this.resolution=h||l.default.RESOLUTION,this.projectionMatrix=new _.Matrix,this.transform=null,this.frame=null,this.defaultFrame=new _.Rectangle,this.destinationFrame=null,this.sourceFrame=null,this.stencilBuffer=null,this.stencilMaskStack=[],this.filterData=null,this.scaleMode=r||l.default.SCALE_MODE,this.root=p,this.root?(this.frameBuffer=new f.GLFramebuffer(t,100,100),this.frameBuffer.framebuffer=null):(this.frameBuffer=f.GLFramebuffer.createRGBA(t,100,100),this.scaleMode===b.SCALE_MODES.NEAREST?this.frameBuffer.texture.enableNearestScaling():this.frameBuffer.texture.enableLinearScaling(),this.texture=this.frameBuffer.texture),this.setFrame(),this.resize(i,n)}return e.prototype.clear=function(t){var i=t||this.clearColor;this.frameBuffer.clear(i[0],i[1],i[2],i[3])},e.prototype.attachStencilBuffer=function(){this.root||this.frameBuffer.enableStencil()},e.prototype.setFrame=function(t,i){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=i||this.sourceFrame||t},e.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)},e.prototype.calculateProjection=function(t,i){var n=this.projectionMatrix;i=i||t,n.identity(),this.root?(n.a=1/t.width*2,n.d=-1/t.height*2,n.tx=-1-i.x*n.a,n.ty=1-i.y*n.d):(n.a=1/t.width*2,n.d=1/t.height*2,n.tx=-1-i.x*n.a,n.ty=-1-i.y*n.d)},e.prototype.resize=function(t,i){if(t=0|t,i=0|i,this.size.width!==t||this.size.height!==i){this.size.width=t,this.size.height=i,this.defaultFrame.width=t,this.defaultFrame.height=i,this.frameBuffer.resize(t*this.resolution,i*this.resolution);var n=this.frame||this.size;this.calculateProjection(n)}},e.prototype.destroy=function(){this.frameBuffer.destroy(),this.frameBuffer=null,this.texture=null},e}();E.default=o},function(B,E,c){"use strict";function O(o){return o&&o.__esModule?o:{default:o}}E.__esModule=!0;var x=c(264),_=O(x),b=c(263),m=O(b),l=c(130),f=O(l);E.default=function(o,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof e=="undefined"?"undefined":(0,f.default)(e)));o.prototype=(0,m.default)(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(_.default?(0,_.default)(o,e):o.__proto__=e)}},function(B,E,c){"use strict";function O(b){return b&&b.__esModule?b:{default:b}}E.__esModule=!0;var x=c(130),_=O(x);E.default=function(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!m||(typeof m=="undefined"?"undefined":(0,_.default)(m))!=="object"&&typeof m!="function"?b:m}},function(B,E){"use strict";function c(_){var b=32;return _&=-_,_&&b--,65535&_&&(b-=16),16711935&_&&(b-=8),252645135&_&&(b-=4),858993459&_&&(b-=2),1431655765&_&&(b-=1),b}var O=32;E.INT_BITS=O,E.INT_MAX=2147483647,E.INT_MIN=-1<0)-(_<0)},E.abs=function(_){var b=_>>O-1;return(_^b)-b},E.min=function(_,b){return b^(_^b)&-(_65535)<<4,_>>>=b,m=(_>255)<<3,_>>>=m,b|=m,m=(_>15)<<2,_>>>=m,b|=m,m=(_>3)<<1,_>>>=m,b|=m,b|_>>1},E.log10=function(_){return _>=1e9?9:_>=1e8?8:_>=1e7?7:_>=1e6?6:_>=1e5?5:_>=1e4?4:_>=1e3?3:_>=100?2:_>=10?1:0},E.popCount=function(_){return _-=_>>>1&1431655765,_=(858993459&_)+(_>>>2&858993459),16843009*(_+(_>>>4)&252645135)>>>24},E.countTrailingZeros=c,E.nextPow2=function(_){return _+=_===0,--_,_|=_>>>1,_|=_>>>2,_|=_>>>4,_|=_>>>8,_|=_>>>16,_+1},E.prevPow2=function(_){return _|=_>>>1,_|=_>>>2,_|=_>>>4,_|=_>>>8,_|=_>>>16,_-(_>>>1)},E.parity=function(_){return _^=_>>>16,_^=_>>>8,_^=_>>>4,_&=15,27030>>>_&1};var x=new Array(256);(function(_){for(var b=0;b<256;++b){var m=b,l=b,f=7;for(m>>>=1;m;m>>>=1)l<<=1,l|=1&m,--f;_[b]=l<>>8&255]<<16|x[_>>>16&255]<<8|x[_>>>24&255]},E.interleave2=function(_,b){return _&=65535,_=16711935&(_|_<<8),_=252645135&(_|_<<4),_=858993459&(_|_<<2),_=1431655765&(_|_<<1),b&=65535,b=16711935&(b|b<<8),b=252645135&(b|b<<4),b=858993459&(b|b<<2),b=1431655765&(b|b<<1),_|b<<1},E.deinterleave2=function(_,b){return _=_>>>b&1431655765,_=858993459&(_|_>>>1),_=252645135&(_|_>>>2),_=16711935&(_|_>>>4),_=65535&(_|_>>>16),_<<16>>16},E.interleave3=function(_,b,m){return _&=1023,_=4278190335&(_|_<<16),_=251719695&(_|_<<8),_=3272356035&(_|_<<4),_=1227133513&(_|_<<2),b&=1023,b=4278190335&(b|b<<16),b=251719695&(b|b<<8),b=3272356035&(b|b<<4),b=1227133513&(b|b<<2),_|=b<<1,m&=1023,m=4278190335&(m|m<<16),m=251719695&(m|m<<8),m=3272356035&(m|m<<4),m=1227133513&(m|m<<2),_|m<<2},E.deinterleave3=function(_,b){return _=_>>>b&1227133513,_=3272356035&(_|_>>>2),_=251719695&(_|_>>>4),_=4278190335&(_|_>>>8),_=1023&(_|_>>>16),_<<22>>22},E.nextCombination=function(_){var b=_|_-1;return b+1|(~b&-~b)-1>>>c(_)+1}},function(B,E){var c=function(_,b){if(!O){var m=Object.keys(x);O={};for(var l=0;l0))return void this.abort("["+d.status+"] "+d.statusText+": "+d.responseURL);if(this.xhrType===y.XHR_RESPONSE_TYPE.TEXT)this.data=d.responseText,this.type=y.TYPE.TEXT;else if(this.xhrType===y.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(d.responseText),this.type=y.TYPE.JSON}catch(s){return void this.abort("Error trying to parse loaded json: "+s)}else if(this.xhrType===y.XHR_RESPONSE_TYPE.DOCUMENT)try{if(window.DOMParser){var g=new DOMParser;this.data=g.parseFromString(d.responseText,"text/xml")}else{var a=document.createElement("div");a.innerHTML=d.responseText,this.data=a}this.type=y.TYPE.XML}catch(s){return void this.abort("Error trying to parse loaded xml: "+s)}else this.data=d.response||d.responseText;this.complete()},y.prototype._determineCrossOrigin=function(d,w){if(d.indexOf("data:")===0)return"";w=w||window.location,n||(n=document.createElement("a")),n.href=d,d=(0,o.default)(n.href,{strictMode:!0});var g=!d.port&&w.port===""||d.port===w.port,a=d.protocol?d.protocol+":":"";return d.host===w.hostname&&g&&a===w.protocol?"":"anonymous"},y.prototype._determineXhrType=function(){return y._xhrTypeMap[this._getExtension()]||y.XHR_RESPONSE_TYPE.TEXT},y.prototype._determineLoadType=function(){return y._loadTypeMap[this._getExtension()]||y.LOAD_TYPE.XHR},y.prototype._getExtension=function(){var d=this.url,w="";if(this.isDataUrl){var g=d.indexOf("/");w=d.substring(g+1,d.indexOf(";",g))}else{var a=d.indexOf("?");a!==-1&&(d=d.substring(0,a)),w=d.substring(d.lastIndexOf(".")+1)}return w.toLowerCase()},y.prototype._getMimeFromXhrType=function(d){switch(d){case y.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case y.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case y.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case y.XHR_RESPONSE_TYPE.JSON:return"application/json";case y.XHR_RESPONSE_TYPE.DEFAULT:case y.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},l(y,[{key:"isDataUrl",get:function(){return this._hasFlag(y.STATUS_FLAGS.DATA_URL)}},{key:"isComplete",get:function(){return this._hasFlag(y.STATUS_FLAGS.COMPLETE)}},{key:"isLoading",get:function(){return this._hasFlag(y.STATUS_FLAGS.LOADING)}}]),y}();E.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=="},function(B,E){B.exports=function(c){if(c==null)throw TypeError("Can't call method on "+c);return c}},function(B,E){B.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(B,E){B.exports={}},function(B,E){B.exports=!0},function(B,E,c){var O=c(20),x=c(163),_=c(45),b=c(51)("IE_PROTO"),m=function(){},l="prototype",f=function(){var o,e=c(84)("iframe"),t=_.length,i="<",n=">";for(e.style.display="none",c(156).appendChild(e),e.src="javascript:",o=e.contentWindow.document,o.open(),o.write(i+"script"+n+"document.F=Object"+i+"/script"+n),o.close(),f=o.F;t--;)delete f[l][_[t]];return f()};B.exports=Object.create||function(o,e){var t;return o!==null?(m[l]=O(o),t=new m,m[l]=null,t[b]=o):t=f(),e===void 0?t:x(t,e)}},function(B,E){E.f={}.propertyIsEnumerable},function(B,E,c){var O=c(17).f,x=c(12),_=c(18)("toStringTag");B.exports=function(b,m,l){b&&!x(b=l?b:b.prototype,_)&&O(b,_,{configurable:!0,value:m})}},function(B,E,c){var O=c(52)("keys"),x=c(33);B.exports=function(_){return O[_]||(O[_]=x(_))}},function(B,E,c){var O=c(11),x="__core-js_shared__",_=O[x]||(O[x]={});B.exports=function(b){return _[b]||(_[b]={})}},function(B,E){var c=Math.ceil,O=Math.floor;B.exports=function(x){return isNaN(x=+x)?0:(x>0?O:c)(x)}},function(B,E,c){var O=c(22);B.exports=function(x,_){if(!O(x))return x;var b,m;if(_&&typeof(b=x.toString)=="function"&&!O(m=b.call(x))||typeof(b=x.valueOf)=="function"&&!O(m=b.call(x))||!_&&typeof(b=x.toString)=="function"&&!O(m=b.call(x)))return m;throw TypeError("Can't convert object to primitive value")}},function(B,E,c){var O=c(11),x=c(21),_=c(47),b=c(56),m=c(17).f;B.exports=function(l){var f=x.Symbol||(x.Symbol=_?{}:O.Symbol||{});l.charAt(0)=="_"||l in f||m(f,l,{value:b.f(l)})}},function(B,E,c){E.f=c(18)},function(B,E,c){"use strict";function O(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var x=c(4),_=function(){function b(){O(this,b),this.minX=1/0,this.minY=1/0,this.maxX=-(1/0),this.maxY=-(1/0),this.rect=null}return b.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},b.prototype.clear=function(){this.updateID++,this.minX=1/0,this.minY=1/0,this.maxX=-(1/0),this.maxY=-(1/0)},b.prototype.getRectangle=function(m){return this.minX>this.maxX||this.minY>this.maxY?x.Rectangle.EMPTY:(m=m||new x.Rectangle(0,0,1,1),m.x=this.minX,m.y=this.minY,m.width=this.maxX-this.minX,m.height=this.maxY-this.minY,m)},b.prototype.addPoint=function(m){this.minX=Math.min(this.minX,m.x),this.maxX=Math.max(this.maxX,m.x),this.minY=Math.min(this.minY,m.y),this.maxY=Math.max(this.maxY,m.y)},b.prototype.addQuad=function(m){var l=this.minX,f=this.minY,o=this.maxX,e=this.maxY,t=m[0],i=m[1];l=to?t:o,e=i>e?i:e,t=m[2],i=m[3],l=to?t:o,e=i>e?i:e,t=m[4],i=m[5],l=to?t:o,e=i>e?i:e,t=m[6],i=m[7],l=to?t:o,e=i>e?i:e,this.minX=l,this.minY=f,this.maxX=o,this.maxY=e},b.prototype.addFrame=function(m,l,f,o,e){var t=m.worldTransform,i=t.a,n=t.b,r=t.c,h=t.d,p=t.tx,u=t.ty,y=this.minX,d=this.minY,w=this.maxX,g=this.maxY,a=i*l+r*f+p,s=n*l+h*f+u;y=aw?a:w,g=s>g?s:g,a=i*o+r*f+p,s=n*o+h*f+u,y=aw?a:w,g=s>g?s:g,a=i*l+r*e+p,s=n*l+h*e+u,y=aw?a:w,g=s>g?s:g,a=i*o+r*e+p,s=n*o+h*e+u,y=aw?a:w,g=s>g?s:g,this.minX=y,this.minY=d,this.maxX=w,this.maxY=g},b.prototype.addVertices=function(m,l,f,o){for(var e=m.worldTransform,t=e.a,i=e.b,n=e.c,r=e.d,h=e.tx,p=e.ty,u=this.minX,y=this.minY,d=this.maxX,w=this.maxY,g=f;gd?v:d,w=P>w?P:w}this.minX=u,this.minY=y,this.maxX=d,this.maxY=w},b.prototype.addBounds=function(m){var l=this.minX,f=this.minY,o=this.maxX,e=this.maxY;this.minX=m.minXo?m.maxX:o,this.maxY=m.maxY>e?m.maxY:e},b.prototype.addBoundsMask=function(m,l){var f=m.minX>l.minX?m.minX:l.minX,o=m.minY>l.minY?m.minY:l.minY,e=m.maxXr?e:r,this.maxY=t>h?t:h}},b.prototype.addBoundsArea=function(m,l){var f=m.minX>l.x?m.minX:l.x,o=m.minY>l.y?m.minY:l.y,e=m.maxXr?e:r,this.maxY=t>h?t:h}},b}();E.default=_},function(B,E,c){"use strict";function O(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var x=c(4),_=function(){function b(){O(this,b),this.worldTransform=new x.Matrix,this.localTransform=new x.Matrix,this._worldID=0,this._parentID=0}return b.prototype.updateLocalTransform=function(){},b.prototype.updateTransform=function(m){var l=m.worldTransform,f=this.worldTransform,o=this.localTransform;f.a=o.a*l.a+o.b*l.c,f.b=o.a*l.b+o.b*l.d,f.c=o.c*l.a+o.d*l.c,f.d=o.c*l.b+o.d*l.d,f.tx=o.tx*l.a+o.ty*l.c+l.tx,f.ty=o.tx*l.b+o.ty*l.d+l.ty,this._worldID++},b}();E.default=_,_.prototype.updateWorldTransform=_.prototype.updateTransform,_.IDENTITY=new _},function(B,E,c){"use strict";function O(f){return f&&f.__esModule?f:{default:f}}function x(f,o){if(!(f instanceof o))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var _=function(){function f(o,e){for(var t=0;t=0&&(o.rotation+=o.rotation<=0?Math.PI:-Math.PI),o.skew.x=o.skew.y=0):(o.skew.x=r,o.skew.y=h),o.scale.x=Math.sqrt(e*e+t*t),o.scale.y=Math.sqrt(i*i+n*n),o.position.x=this.tx,o.position.y=this.ty,o},f.prototype.invert=function(){var o=this.a,e=this.b,t=this.c,i=this.d,n=this.tx,r=o*i-e*t;return this.a=i/r,this.b=-e/r,this.c=-t/r,this.d=o/r,this.tx=(t*this.ty-i*n)/r,this.ty=-(o*this.ty-e*n)/r,this},f.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},f.prototype.clone=function(){var o=new f;return o.a=this.a,o.b=this.b,o.c=this.c,o.d=this.d,o.tx=this.tx,o.ty=this.ty,o},f.prototype.copy=function(o){return o.a=this.a,o.b=this.b,o.c=this.c,o.d=this.d,o.tx=this.tx,o.ty=this.ty,o},_(f,null,[{key:"IDENTITY",get:function(){return new f}},{key:"TEMP_MATRIX",get:function(){return new f}}]),f}();E.default=l},function(B,E){"use strict";function c(x,_){if(!(x instanceof _))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var O=function(){function x(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;c(this,x),this.x=_,this.y=b}return x.prototype.clone=function(){return new x(this.x,this.y)},x.prototype.copy=function(_){this.set(_.x,_.y)},x.prototype.equals=function(_){return _.x===this.x&&_.y===this.y},x.prototype.set=function(_,b){this.x=_||0,this.y=b||(b!==0?this.x:0)},x}();E.default=O},function(B,E,c){"use strict";function O(m,l){if(!(m instanceof l))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var x=function(){function m(l,f){for(var o=0;o0&&arguments[0]!==void 0?arguments[0]:0,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;O(this,m),this.x=l,this.y=f,this.width=o,this.height=e,this.type=_.SHAPES.RECT}return m.prototype.clone=function(){return new m(this.x,this.y,this.width,this.height)},m.prototype.copy=function(l){return this.x=l.x,this.y=l.y,this.width=l.width,this.height=l.height,this},m.prototype.contains=function(l,f){return!(this.width<=0||this.height<=0)&&l>=this.x&&l=this.y&&fl.x+l.width&&(this.width=l.width-this.x,this.width<0&&(this.width=0)),this.y+this.height>l.y+l.height&&(this.height=l.height-this.y,this.height<0&&(this.height=0))},m.prototype.enlarge=function(l){if(l!==m.EMPTY){var f=Math.min(this.x,l.x),o=Math.max(this.x+this.width,l.x+l.width),e=Math.min(this.y,l.y),t=Math.max(this.y+this.height,l.y+l.height);this.x=f,this.width=o-f,this.y=e,this.height=t-e}},x(m,[{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 m(0,0,0,0)}}]),m}();E.default=b},function(B,E,c){"use strict";function O(N){return N&&N.__esModule?N:{default:N}}function x(N,W){if(!(N instanceof W))throw new TypeError("Cannot call a class as a function")}function _(N,W){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!W||typeof W!="object"&&typeof W!="function"?N:W}function b(N,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof W);N.prototype=Object.create(W&&W.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(N,W):N.__proto__=W)}E.__esModule=!0;var m=c(99),l=O(m),f=c(205),o=O(f),e=c(206),t=O(e),i=c(204),n=O(i),r=c(38),h=O(r),p=c(37),u=O(p),y=c(200),d=O(y),w=c(25),g=O(w),a=c(199),s=O(a),v=c(201),P=O(v),T=c(209),C=O(T),M=c(210),R=O(M),S=c(3),L=c(6),A=O(L),D=c(2),I=0,U=function(N){function W(H,tt){var it=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};x(this,W);var K=_(this,N.call(this,"WebGL",H,tt,it));return K.type=D.RENDERER_TYPE.WEBGL,K.handleContextLost=K.handleContextLost.bind(K),K.handleContextRestored=K.handleContextRestored.bind(K),K.view.addEventListener("webglcontextlost",K.handleContextLost,!1),K.view.addEventListener("webglcontextrestored",K.handleContextRestored,!1),K._contextOptions={alpha:K.transparent,antialias:it.antialias,premultipliedAlpha:K.transparent&&K.transparent!=="notMultiplied",stencil:!0,preserveDrawingBuffer:it.preserveDrawingBuffer},K._backgroundColorRgba[3]=K.transparent?0:1,K.maskManager=new o.default(K),K.stencilManager=new t.default(K),K.emptyRenderer=new u.default(K),K.currentRenderer=K.emptyRenderer,K.initPlugins(),it.context&&(0,R.default)(it.context),K.gl=it.context||A.default.createContext(K.view,K._contextOptions),K.CONTEXT_UID=I++,K.state=new P.default(K.gl),K.renderingToScreen=!0,K.boundTextures=null,K._activeShader=null,K._activeVao=null,K._activeRenderTarget=null,K._initContext(),K.filterManager=new n.default(K),K.drawModes=(0,C.default)(K.gl),K._nextTextureLocation=0,K.setBlendMode(0),K}return b(W,N),W.prototype._initContext=function(){var H=this.gl;H.isContextLost()&&H.getExtension("WEBGL_lose_context")&&H.getExtension("WEBGL_lose_context").restoreContext();var tt=H.getParameter(H.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures=new Array(tt),this.emptyTextures=new Array(tt),this.textureManager=new d.default(this),this.textureGC=new s.default(this),this.state.resetToDefault(),this.rootRenderTarget=new h.default(H,this.width,this.height,null,this.resolution,!0),this.rootRenderTarget.clearColor=this._backgroundColorRgba,this.bindRenderTarget(this.rootRenderTarget);var it=new A.default.GLTexture.fromData(H,null,1,1),K={_glTextures:{}};K._glTextures[this.CONTEXT_UID]={};for(var at=0;atg&&r.xa&&r.y>16)+(65280&y)+((255&y)<<16)}},{key:"texture",get:function(){return this._texture},set:function(y){this._texture!==y&&(this._texture=y,this.cachedTint=16777215,this._textureID=-1,y&&(y.baseTexture.hasLoaded?this._onTextureUpdate():y.once("update",this._onTextureUpdate,this)))}}]),u}(n.default);E.default=h},function(B,E,c){"use strict";function O(l){return l&&l.__esModule?l:{default:l}}E.__esModule=!0;var x=c(3),_=c(101),b=O(_),m={getTintedTexture:function(l,f){var o=l.texture;f=m.roundColor(f);var e="#"+("00000"+(0|f).toString(16)).substr(-6);if(o.tintCache=o.tintCache||{},o.tintCache[e])return o.tintCache[e];var t=m.canvas||document.createElement("canvas");if(m.tintMethod(o,f,t),m.convertTintToImage){var i=new Image;i.src=t.toDataURL(),o.tintCache[e]=i}else o.tintCache[e]=t,m.canvas=null;return t},tintWithMultiply:function(l,f,o){var e=o.getContext("2d"),t=l._frame.clone(),i=l.baseTexture.resolution;t.x*=i,t.y*=i,t.width*=i,t.height*=i,o.width=t.width,o.height=t.height,e.fillStyle="#"+("00000"+(0|f).toString(16)).substr(-6),e.fillRect(0,0,t.width,t.height),e.globalCompositeOperation="multiply",e.drawImage(l.baseTexture.source,t.x,t.y,t.width,t.height,0,0,t.width,t.height),e.globalCompositeOperation="destination-atop",e.drawImage(l.baseTexture.source,t.x,t.y,t.width,t.height,0,0,t.width,t.height)},tintWithOverlay:function(l,f,o){var e=o.getContext("2d"),t=l._frame.clone(),i=l.baseTexture.resolution;t.x*=i,t.y*=i,t.width*=i,t.height*=i,o.width=t.width,o.height=t.height,e.globalCompositeOperation="copy",e.fillStyle="#"+("00000"+(0|f).toString(16)).substr(-6),e.fillRect(0,0,t.width,t.height),e.globalCompositeOperation="destination-atop",e.drawImage(l.baseTexture.source,t.x,t.y,t.width,t.height,0,0,t.width,t.height)},tintWithPerPixel:function(l,f,o){var e=o.getContext("2d"),t=l._frame.clone(),i=l.baseTexture.resolution;t.x*=i,t.y*=i,t.width*=i,t.height*=i,o.width=t.width,o.height=t.height,e.globalCompositeOperation="copy",e.drawImage(l.baseTexture.source,t.x,t.y,t.width,t.height,0,0,t.width,t.height);for(var n=(0,x.hex2rgb)(f),r=n[0],h=n[1],p=n[2],u=e.getImageData(0,0,t.width,t.height),y=u.data,d=0;d0&&r>0,this._frame.width=this.orig.width=n,this._frame.height=this.orig.height=r,h||this.baseTexture.resize(n,r),this._updateUvs()},i.create=function(n,r,h,p){return new i(new l.default(n,r,h,p))},i}(o.default);E.default=e},function(B,E){"use strict";function c(O){for(var x=6*O,_=new Uint16Array(x),b=0,m=0;b=0;d--)this.add(p.children[d]);return this},h.prototype.destroy=function(){this.ticking&&n.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},h}();E.default=r},function(B,E){"use strict";B.exports=function(c,O){O=O||{};for(var x={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*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},_=x.parser[O.strictMode?"strict":"loose"].exec(c),b={},m=14;m--;)b[x.key[m]]=_[m]||"";return b[x.q.name]={},b[x.key[12]].replace(x.q.parser,function(l,f,o){f&&(b[x.q.name][f]=o)}),b}},function(B,E){var c=function(x,_,b,m,l){this.gl=x,this.texture=x.createTexture(),this.mipmap=!1,this.premultiplyAlpha=!1,this.width=_||-1,this.height=b||-1,this.format=m||x.RGBA,this.type=l||x.UNSIGNED_BYTE};c.prototype.upload=function(x){this.bind();var _=this.gl;_.pixelStorei(_.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha);var b=x.videoWidth||x.width,m=x.videoHeight||x.height;m!==this.height||b!==this.width?_.texImage2D(_.TEXTURE_2D,0,this.format,this.format,this.type,x):_.texSubImage2D(_.TEXTURE_2D,0,0,0,this.format,this.type,x),this.width=b,this.height=m};var O=!1;c.prototype.uploadData=function(x,_,b){this.bind();var m=this.gl;if(x instanceof Float32Array){if(!O){var l=m.getExtension("OES_texture_float");if(!l)throw new Error("floating point textures not available");O=!0}this.type=m.FLOAT}else this.type=m.UNSIGNED_BYTE;m.pixelStorei(m.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha),_!==this.width||b!==this.height?m.texImage2D(m.TEXTURE_2D,0,this.format,_,b,0,this.format,this.type,x||null):m.texSubImage2D(m.TEXTURE_2D,0,0,0,_,b,this.format,this.type,x||null),this.width=_,this.height=b},c.prototype.bind=function(x){var _=this.gl;x!==void 0&&_.activeTexture(_.TEXTURE0+x),_.bindTexture(_.TEXTURE_2D,this.texture)},c.prototype.unbind=function(){var x=this.gl;x.bindTexture(x.TEXTURE_2D,null)},c.prototype.minFilter=function(x){var _=this.gl;this.bind(),this.mipmap?_.texParameteri(_.TEXTURE_2D,_.TEXTURE_MIN_FILTER,x?_.LINEAR_MIPMAP_LINEAR:_.NEAREST_MIPMAP_NEAREST):_.texParameteri(_.TEXTURE_2D,_.TEXTURE_MIN_FILTER,x?_.LINEAR:_.NEAREST)},c.prototype.magFilter=function(x){var _=this.gl;this.bind(),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_MAG_FILTER,x?_.LINEAR:_.NEAREST)},c.prototype.enableMipmap=function(){var x=this.gl;this.bind(),this.mipmap=!0,x.generateMipmap(x.TEXTURE_2D)},c.prototype.enableLinearScaling=function(){this.minFilter(!0),this.magFilter(!0)},c.prototype.enableNearestScaling=function(){this.minFilter(!1),this.magFilter(!1)},c.prototype.enableWrapClamp=function(){var x=this.gl;this.bind(),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_WRAP_S,x.CLAMP_TO_EDGE),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_WRAP_T,x.CLAMP_TO_EDGE)},c.prototype.enableWrapRepeat=function(){var x=this.gl;this.bind(),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_WRAP_S,x.REPEAT),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_WRAP_T,x.REPEAT)},c.prototype.enableWrapMirrorRepeat=function(){var x=this.gl;this.bind(),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_WRAP_S,x.MIRRORED_REPEAT),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_WRAP_T,x.MIRRORED_REPEAT)},c.prototype.destroy=function(){var x=this.gl;x.deleteTexture(this.texture)},c.fromSource=function(x,_,b){var m=new c(x);return m.premultiplyAlpha=b||!1,m.upload(_),m},c.fromData=function(x,_,b,m){var l=new c(x);return l.uploadData(_,b,m),l},B.exports=c},function(B,E){var c=function(O,x,_){var b;if(_){var m=_.tempAttribState,l=_.attribState;for(b=0;b>2,l[1]=(3&m[0])<<4|m[1]>>4,l[2]=(15&m[1])<<2|m[2]>>6,l[3]=63&m[2];var o=b-(x.length-1);switch(o){case 2:l[3]=64,l[2]=64;break;case 1:l[3]=64}for(var e=0;e80*A){W=tt=S[0],H=it=S[1];for(var mt=A;mttt&&(tt=K),at>it&&(it=at);ut=Math.max(tt-W,it-H)}return _(U,N,A,W,H,ut),N}function O(S,L,A,D,I){var U,N;if(I===R(S,L,A,D)>0)for(U=L;U=L;U-=D)N=T(U,S[U],S[U+1],N);return N&&w(N,N.next)&&(C(N),N=N.next),N}function x(S,L){if(!S)return S;L||(L=S);var A,D=S;do if(A=!1,D.steiner||!w(D,D.next)&&d(D.prev,D,D.next)!==0)D=D.next;else{if(C(D),D=L=D.prev,D===D.next)return null;A=!0}while(A||D!==L);return L}function _(S,L,A,D,I,U,N){if(S){!N&&U&&n(S,D,I,U);for(var W,H,tt=S;S.prev!==S.next;)if(W=S.prev,H=S.next,U?m(S,D,I,U):b(S))L.push(W.i/A),L.push(S.i/A),L.push(H.i/A),C(S),S=H.next,tt=H.next;else if(S=H,S===tt){N?N===1?(S=l(S,L,A),_(S,L,A,D,I,U,2)):N===2&&f(S,L,A,D,I,U):_(x(S),L,A,D,I,U,1);break}}}function b(S){var L=S.prev,A=S,D=S.next;if(d(L,A,D)>=0)return!1;for(var I=S.next.next;I!==S.prev;){if(u(L.x,L.y,A.x,A.y,D.x,D.y,I.x,I.y)&&d(I.prev,I,I.next)>=0)return!1;I=I.next}return!0}function m(S,L,A,D){var I=S.prev,U=S,N=S.next;if(d(I,U,N)>=0)return!1;for(var W=I.xU.x?I.x>N.x?I.x:N.x:U.x>N.x?U.x:N.x,it=I.y>U.y?I.y>N.y?I.y:N.y:U.y>N.y?U.y:N.y,K=h(W,H,L,A,D),at=h(tt,it,L,A,D),ut=S.nextZ;ut&&ut.z<=at;){if(ut!==S.prev&&ut!==S.next&&u(I.x,I.y,U.x,U.y,N.x,N.y,ut.x,ut.y)&&d(ut.prev,ut,ut.next)>=0)return!1;ut=ut.nextZ}for(ut=S.prevZ;ut&&ut.z>=K;){if(ut!==S.prev&&ut!==S.next&&u(I.x,I.y,U.x,U.y,N.x,N.y,ut.x,ut.y)&&d(ut.prev,ut,ut.next)>=0)return!1;ut=ut.prevZ}return!0}function l(S,L,A){var D=S;do{var I=D.prev,U=D.next.next;!w(I,U)&&g(I,D,D.next,U)&&s(I,U)&&s(U,I)&&(L.push(I.i/A),L.push(D.i/A),L.push(U.i/A),C(D),C(D.next),D=S=U),D=D.next}while(D!==S);return D}function f(S,L,A,D,I,U){var N=S;do{for(var W=N.next.next;W!==N.prev;){if(N.i!==W.i&&y(N,W)){var H=P(N,W);return N=x(N,N.next),H=x(H,H.next),_(N,L,A,D,I,U),void _(H,L,A,D,I,U)}W=W.next}N=N.next}while(N!==S)}function o(S,L,A,D){var I,U,N,W,H,tt=[];for(I=0,U=L.length;I=D.next.y){var W=D.x+(U-D.y)*(D.next.x-D.x)/(D.next.y-D.y);if(W<=I&&W>N){if(N=W,W===I){if(U===D.y)return D;if(U===D.next.y)return D.next}A=D.x=D.x&&D.x>=it&&u(UA.x)&&s(D,S)&&(A=D,at=H)),D=D.next;return A}function n(S,L,A,D){var I=S;do I.z===null&&(I.z=h(I.x,I.y,L,A,D)),I.prevZ=I.prev,I.nextZ=I.next,I=I.next;while(I!==S);I.prevZ.nextZ=null,I.prevZ=null,r(I)}function r(S){var L,A,D,I,U,N,W,H,tt=1;do{for(A=S,S=null,U=null,N=0;A;){for(N++,D=A,W=0,L=0;L0||H>0&&D;)W===0?(I=D,D=D.nextZ,H--):H!==0&&D?A.z<=D.z?(I=A,A=A.nextZ,W--):(I=D,D=D.nextZ,H--):(I=A,A=A.nextZ,W--),U?U.nextZ=I:S=I,I.prevZ=U,U=I;A=D}U.nextZ=null,tt*=2}while(N>1);return S}function h(S,L,A,D,I){return S=32767*(S-A)/I,L=32767*(L-D)/I,S=16711935&(S|S<<8),S=252645135&(S|S<<4),S=858993459&(S|S<<2),S=1431655765&(S|S<<1),L=16711935&(L|L<<8),L=252645135&(L|L<<4),L=858993459&(L|L<<2),L=1431655765&(L|L<<1),S|L<<1}function p(S){var L=S,A=S;do L.x=0&&(S-N)*(D-W)-(A-N)*(L-W)>=0&&(A-N)*(U-W)-(I-N)*(D-W)>=0}function y(S,L){return S.next.i!==L.i&&S.prev.i!==L.i&&!a(S,L)&&s(S,L)&&s(L,S)&&v(S,L)}function d(S,L,A){return(L.y-S.y)*(A.x-L.x)-(L.x-S.x)*(A.y-L.y)}function w(S,L){return S.x===L.x&&S.y===L.y}function g(S,L,A,D){return!!(w(S,L)&&w(A,D)||w(S,D)&&w(A,L))||d(S,L,A)>0!=d(S,L,D)>0&&d(A,D,S)>0!=d(A,D,L)>0}function a(S,L){var A=S;do{if(A.i!==S.i&&A.next.i!==S.i&&A.i!==L.i&&A.next.i!==L.i&&g(A,A.next,S,L))return!0;A=A.next}while(A!==S);return!1}function s(S,L){return d(S.prev,S,S.next)<0?d(S,L,S.next)>=0&&d(S,S.prev,L)>=0:d(S,L,S.prev)<0||d(S,S.next,L)<0}function v(S,L){var A=S,D=!1,I=(S.x+L.x)/2,U=(S.y+L.y)/2;do A.y>U!=A.next.y>U&&I<(A.next.x-A.x)*(U-A.y)/(A.next.y-A.y)+A.x&&(D=!D),A=A.next;while(A!==S);return D}function P(S,L){var A=new M(S.i,S.x,S.y),D=new M(L.i,L.x,L.y),I=S.next,U=L.prev;return S.next=L,L.prev=S,A.next=I,I.prev=A,D.next=A,A.prev=D,U.next=D,D.prev=U,D}function T(S,L,A,D){var I=new M(S,L,A);return D?(I.next=D.next,I.prev=D,D.next.prev=I,D.next=I):(I.prev=I,I.next=I),I}function C(S){S.next.prev=S.prev,S.prev.next=S.next,S.prevZ&&(S.prevZ.nextZ=S.nextZ),S.nextZ&&(S.nextZ.prevZ=S.prevZ)}function M(S,L,A){this.i=S,this.x=L,this.y=A,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function R(S,L,A,D){for(var I=0,U=L,N=A-D;U0&&(D+=S[I-1].length,A.holes.push(D))}return A}},function(B,E){var c={}.toString;B.exports=function(O){return c.call(O).slice(8,-1)}},function(B,E,c){var O=c(152);B.exports=function(x,_,b){if(O(x),_===void 0)return x;switch(b){case 1:return function(m){return x.call(_,m)};case 2:return function(m,l){return x.call(_,m,l)};case 3:return function(m,l,f){return x.call(_,m,l,f)}}return function(){return x.apply(_,arguments)}}},function(B,E,c){var O=c(22),x=c(11).document,_=O(x)&&O(x.createElement);B.exports=function(b){return _?x.createElement(b):{}}},function(B,E,c){B.exports=!c(15)&&!c(30)(function(){return Object.defineProperty(c(84)("div"),"a",{get:function(){return 7}}).a!=7})},function(B,E,c){"use strict";var O=c(47),x=c(29),_=c(91),b=c(16),m=c(12),l=c(46),f=c(159),o=c(50),e=c(165),t=c(18)("iterator"),i=!([].keys&&"next"in[].keys()),n="@@iterator",r="keys",h="values",p=function(){return this};B.exports=function(u,y,d,w,g,a,s){f(d,y,w);var v,P,T,C=function(N){if(!i&&N in L)return L[N];switch(N){case r:return function(){return new d(this,N)};case h:return function(){return new d(this,N)}}return function(){return new d(this,N)}},M=y+" Iterator",R=g==h,S=!1,L=u.prototype,A=L[t]||L[n]||g&&L[g],D=A||C(g),I=g?R?C("entries"):D:void 0,U=y=="Array"&&L.entries||A;if(U&&(T=e(U.call(new u)),T!==Object.prototype&&(o(T,M,!0),O||m(T,t)||b(T,t,p))),R&&A&&A.name!==h&&(S=!0,D=function(){return A.call(this)}),O&&!s||!i&&!S&&L[t]||b(L,t,D),l[y]=D,l[M]=p,g)if(v={values:R?D:C(h),keys:a?D:C(r),entries:I},s)for(P in v)P in L||_(L,P,v[P]);else x(x.P+x.F*(i||S),y,v);return v}},function(B,E,c){var O=c(49),x=c(32),_=c(13),b=c(54),m=c(12),l=c(85),f=Object.getOwnPropertyDescriptor;E.f=c(15)?f:function(o,e){if(o=_(o),e=b(e,!0),l)try{return f(o,e)}catch(t){}if(m(o,e))return x(!O.f.call(o,e),o[e])}},function(B,E,c){var O=c(90),x=c(45).concat("length","prototype");E.f=Object.getOwnPropertyNames||function(_){return O(_,x)}},function(B,E){E.f=Object.getOwnPropertySymbols},function(B,E,c){var O=c(12),x=c(13),_=c(154)(!1),b=c(51)("IE_PROTO");B.exports=function(m,l){var f,o=x(m),e=0,t=[];for(f in o)f!=b&&O(o,f)&&t.push(f);for(;l.length>e;)O(o,f=l[e++])&&(~_(t,f)||t.push(f));return t}},function(B,E,c){B.exports=c(16)},function(B,E){"use strict";E.__esModule=!0,E.default={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:!1}},function(B,E,c){"use strict";function O(w){return w&&w.__esModule?w:{default:w}}function x(w,g){if(!(w instanceof g))throw new TypeError("Cannot call a class as a function")}function _(w,g){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||typeof g!="object"&&typeof g!="function"?w:g}function b(w,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);w.prototype=Object.create(g&&g.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(w,g):w.__proto__=g)}E.__esModule=!0;var m=function(){function w(g,a){for(var s=0;s2&&arguments[2]!==void 0&&arguments[2];return v||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(a,s)},g.prototype.toLocal=function(a,s,v,P){return s&&(a=s.toGlobal(a,v,P)),P||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(a,v)},g.prototype.renderWebGL=function(a){},g.prototype.renderCanvas=function(a){},g.prototype.setParent=function(a){if(!a||!a.addChild)throw new Error("setParent: Argument must be a Container");return a.addChild(this),a},g.prototype.setTransform=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,C=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,M=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,R=arguments.length>7&&arguments[7]!==void 0?arguments[7]:0,S=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0;return this.position.x=a,this.position.y=s,this.scale.x=v||1,this.scale.y=P||1,this.rotation=T,this.skew.x=C,this.skew.y=M,this.pivot.x=R,this.pivot.y=S,this},g.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},m(g,[{key:"_tempDisplayObjectParent",get:function(){return this.tempDisplayObjectParent===null&&(this.tempDisplayObjectParent=new g),this.tempDisplayObjectParent}},{key:"x",get:function(){return this.position.x},set:function(a){this.transform.position.x=a}},{key:"y",get:function(){return this.position.y},set:function(a){this.transform.position.y=a}},{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(a){this.transform.position.copy(a)}},{key:"scale",get:function(){return this.transform.scale},set:function(a){this.transform.scale.copy(a)}},{key:"pivot",get:function(){return this.transform.pivot},set:function(a){this.transform.pivot.copy(a)}},{key:"skew",get:function(){return this.transform.skew},set:function(a){this.transform.skew.copy(a)}},{key:"rotation",get:function(){return this.transform.rotation},set:function(a){this.transform.rotation=a}},{key:"worldVisible",get:function(){var a=this;do{if(!a.visible)return!1;a=a.parent}while(a);return!0}},{key:"mask",get:function(){return this._mask},set:function(a){this._mask&&(this._mask.renderable=!0),this._mask=a,this._mask&&(this._mask.renderable=!1)}},{key:"filters",get:function(){return this._filters&&this._filters.slice()},set:function(a){this._filters=a&&a.slice()}}]),g}(f.default);E.default=d,d.prototype.displayObjectUpdateTransform=d.prototype.updateTransform},function(B,E,c){"use strict";function O(t){return t&&t.__esModule?t:{default:t}}function x(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function _(t,i){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||typeof i!="object"&&typeof i!="function"?t:i}function b(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(t,i):t.__proto__=i)}E.__esModule=!0;var m=function(){function t(i,n){for(var r=0;r0?1:0}function _(){for(var r=0;r<16;r++){var h=[];i.push(h);for(var p=0;p<16;p++)for(var u=x(l[r]*l[p]+o[r]*f[p]),y=x(f[r]*l[p]+e[r]*f[p]),d=x(l[r]*o[p]+o[r]*e[p]),w=x(f[r]*o[p]+e[r]*e[p]),g=0;g<16;g++)if(l[g]===u&&f[g]===y&&o[g]===d&&e[g]===w){h.push(g);break}}for(var a=0;a<16;a++){var s=new m.default;s.set(l[a],f[a],o[a],e[a],0,0),t.push(s)}}E.__esModule=!0;var b=c(59),m=O(b),l=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],f=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],o=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],e=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],t=[],i=[];_();var n={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MIRROR_HORIZONTAL:12,uX:function(r){return l[r]},uY:function(r){return f[r]},vX:function(r){return o[r]},vY:function(r){return e[r]},inv:function(r){return 8&r?15&r:7&-r},add:function(r,h){return i[r][h]},sub:function(r,h){return i[r][n.inv(h)]},rotate180:function(r){return 4^r},isSwapWidthHeight:function(r){return(3&r)==2},byDirection:function(r,h){return 2*Math.abs(r)<=Math.abs(h)?h>=0?n.S:n.N:2*Math.abs(h)<=Math.abs(r)?r>0?n.E:n.W:h>0?r>0?n.SE:n.SW:r>0?n.NE:n.NW},matrixAppendRotationInv:function(r,h){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,y=t[n.inv(h)];y.tx=p,y.ty=u,r.append(y)}};E.default=n},function(B,E){"use strict";function c(_,b){if(!(_ instanceof b))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var O=function(){function _(b,m){for(var l=0;l2&&arguments[2]!==void 0?arguments[2]:0,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;c(this,_),this._x=l,this._y=f,this.cb=b,this.scope=m}return _.prototype.set=function(b,m){var l=b||0,f=m||(m!==0?l:0);this._x===l&&this._y===f||(this._x=l,this._y=f,this.cb.call(this.scope))},_.prototype.copy=function(b){this._x===b.x&&this._y===b.y||(this._x=b.x,this._y=b.y,this.cb.call(this.scope))},O(_,[{key:"x",get:function(){return this._x},set:function(b){this._x!==b&&(this._x=b,this.cb.call(this.scope))}},{key:"y",get:function(){return this._y},set:function(b){this._y!==b&&(this._y=b,this.cb.call(this.scope))}}]),_}();E.default=x},function(B,E,c){"use strict";function O(w){return w&&w.__esModule?w:{default:w}}function x(w,g){if(!(w instanceof g))throw new TypeError("Cannot call a class as a function")}function _(w,g){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||typeof g!="object"&&typeof g!="function"?w:g}function b(w,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);w.prototype=Object.create(g&&g.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(w,g):w.__proto__=g)}E.__esModule=!0;var m=function(){function w(g,a){for(var s=0;s 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(` `)}}]),t}();E.default=e},function(B,E,c){"use strict";function O(e){return e&&e.__esModule?e:{default:e}}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||typeof t!="object"&&typeof t!="function"?e:t}function b(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}E.__esModule=!0;var m=c(102),l=O(m),f=c(4),o=(c(7),function(e){function t(i){x(this,t);var n=new f.Matrix,r=_(this,e.call(this,`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; uniform mat3 otherMatrix; varying vec2 vMaskCoord; varying vec2 vTextureCoord; void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy; } `,`varying vec2 vMaskCoord; varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform float alpha; uniform sampler2D mask; void main(void) { // check clip! this will stop the mask bleeding out from the edges vec2 text = abs( vMaskCoord - 0.5 ); text = step(0.5, text); float clip = 1.0 - max(text.y, text.x); vec4 original = texture2D(uSampler, vTextureCoord); vec4 masky = texture2D(mask, vMaskCoord); original *= (masky.r * masky.a * alpha * clip); gl_FragColor = original; } `));return i.renderable=!1,r.maskSprite=i,r.maskMatrix=n,r}return b(t,e),t.prototype.apply=function(i,n,r){var h=this.maskSprite;this.uniforms.mask=h._texture,this.uniforms.otherMatrix=i.calculateSpriteMatrix(this.maskMatrix,h),this.uniforms.alpha=h.worldAlpha,i.applyFilter(this,n,r)},t}(l.default));E.default=o},function(B,E,c){"use strict";function O(o){return o&&o.__esModule?o:{default:o}}function x(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var _=c(6),b=O(_),m=c(66),l=O(m),f=function(){function o(e,t){x(this,o),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 i=0;i<4;i++)this.interleaved[4*i]=this.vertices[2*i],this.interleaved[4*i+1]=this.vertices[2*i+1],this.interleaved[4*i+2]=this.uvs[2*i],this.interleaved[4*i+3]=this.uvs[2*i+1];this.indices=(0,l.default)(1),this.vertexBuffer=b.default.GLBuffer.createVertexBuffer(e,this.interleaved,e.STATIC_DRAW),this.indexBuffer=b.default.GLBuffer.createIndexBuffer(e,this.indices,e.STATIC_DRAW),this.vao=new b.default.VertexArrayObject(e,t)}return o.prototype.initVao=function(e){this.vao.clear().addIndex(this.indexBuffer).addAttribute(this.vertexBuffer,e.attributes.aVertexPosition,this.gl.FLOAT,!1,16,0).addAttribute(this.vertexBuffer,e.attributes.aTextureCoord,this.gl.FLOAT,!1,16,8)},o.prototype.map=function(e,t){var i=0,n=0;return this.uvs[0]=i,this.uvs[1]=n,this.uvs[2]=i+t.width/e.width,this.uvs[3]=n,this.uvs[4]=i+t.width/e.width,this.uvs[5]=n+t.height/e.height,this.uvs[6]=i,this.uvs[7]=n+t.height/e.height,i=t.x,n=t.y,this.vertices[0]=i,this.vertices[1]=n,this.vertices[2]=i+t.width,this.vertices[3]=n,this.vertices[4]=i+t.width,this.vertices[5]=n+t.height,this.vertices[6]=i,this.vertices[7]=n+t.height,this},o.prototype.upload=function(){for(var e=0;e<4;e++)this.interleaved[4*e]=this.vertices[2*e],this.interleaved[4*e+1]=this.vertices[2*e+1],this.interleaved[4*e+2]=this.uvs[2*e],this.interleaved[4*e+3]=this.uvs[2*e+1];return this.vertexBuffer.upload(this.interleaved),this},o.prototype.destroy=function(){var e=this.gl;e.deleteBuffer(this.vertexBuffer),e.deleteBuffer(this.indexBuffer)},o}();E.default=f},function(B,E,c){"use strict";function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e){return typeof e=="number"?(0,l.hex2string)(e):(typeof e=="string"&&e.indexOf("0x")===0&&(e=e.replace("0x","#")),e)}function _(e){if(Array.isArray(e)){for(var t=0;t0&&arguments[0]!==void 0?arguments[0]:100,p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,u=arguments[2],y=arguments[3];x(this,r);var d=_(this,n.call(this,null,u));return d.resolution=y||e,d.width=h,d.height=p,d.realWidth=d.width*d.resolution,d.realHeight=d.height*d.resolution,d.scaleMode=u||t,d.hasLoaded=!0,d._glRenderTargets={},d._canvasRenderTarget=null,d.valid=!1,d}return b(r,n),r.prototype.resize=function(h,p){h===this.width&&p===this.height||(this.valid=h>0&&p>0,this.width=h,this.height=p,this.realWidth=this.width*this.resolution,this.realHeight=this.height*this.resolution,this.valid&&this.emit("update",this))},r.prototype.destroy=function(){n.prototype.destroy.call(this,!0),this.renderer=null},r}(l.default);E.default=i},function(B,E,c){"use strict";function O(l){return l&&l.__esModule?l:{default:l}}function x(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var _=c(97),b=O(_),m=function(){function l(){x(this,l),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 l.prototype.set=function(f,o,e){var t=o.width,i=o.height;if(e){var n=f.width/2/t,r=f.height/2/i,h=f.x/t+n,p=f.y/i+r;e=b.default.add(e,b.default.NW),this.x0=h+n*b.default.uX(e),this.y0=p+r*b.default.uY(e),e=b.default.add(e,2),this.x1=h+n*b.default.uX(e),this.y1=p+r*b.default.uY(e),e=b.default.add(e,2),this.x2=h+n*b.default.uX(e),this.y2=p+r*b.default.uY(e),e=b.default.add(e,2),this.x3=h+n*b.default.uX(e),this.y3=p+r*b.default.uY(e)}else this.x0=f.x/t,this.y0=f.y/i,this.x1=(f.x+f.width)/t,this.y1=f.y/i,this.x2=(f.x+f.width)/t,this.y2=(f.y+f.height)/i,this.x3=f.x/t,this.y3=(f.y+f.height)/i;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},l}();E.default=m},function(B,E,c){"use strict";function O(h){if(h&&h.__esModule)return h;var p={};if(h!=null)for(var u in h)Object.prototype.hasOwnProperty.call(h,u)&&(p[u]=h[u]);return p.default=h,p}function x(h){return h&&h.__esModule?h:{default:h}}function _(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function b(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!p||typeof p!="object"&&typeof p!="function"?h:p}function m(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}function l(h,p){p||(p="video/"+h.substr(h.lastIndexOf(".")+1));var u=document.createElement("source");return u.src=h,u.type=p,u}E.__esModule=!0;var f=function(){function h(p,u){for(var y=0;y0&&u.paused===!1&&u.ended===!1&&u.readyState>2},p.prototype._isSourceReady=function(){return this.source.readyState===3||this.source.readyState===4},p.prototype._onPlayStart=function(){this.hasLoaded||this._onCanPlay(),!this._isAutoUpdating&&this.autoUpdate&&(n.shared.add(this.update,this),this._isAutoUpdating=!0)},p.prototype._onPlayStop=function(){this._isAutoUpdating&&(n.shared.remove(this.update,this),this._isAutoUpdating=!1)},p.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())},p.prototype.destroy=function(){this._isAutoUpdating&&n.shared.remove(this.update,this),this.source&&this.source._pixiId&&(delete t.BaseTextureCache[this.source._pixiId],delete this.source._pixiId),h.prototype.destroy.call(this)},p.fromVideo=function(u,y){u._pixiId||(u._pixiId="video_"+(0,t.uid)());var d=t.BaseTextureCache[u._pixiId];return d||(d=new p(u,y),t.BaseTextureCache[u._pixiId]=d),d},p.fromUrl=function(u,y){var d=document.createElement("video");if(d.setAttribute("webkit-playsinline",""),d.setAttribute("playsinline",""),Array.isArray(u))for(var w=0;w=m&&(e=_-t-1),i=i.replace("%value%",b[e]),f+=i,f+=` `}return l=l.replace("%blur%",f),l=l.replace("%size%",_)}E.__esModule=!0,E.default=c;var O={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]},x=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{"," gl_FragColor = vec4(0.0);"," %blur%","}"].join(` `)},function(B,E){"use strict";function c(x,_){var b=Math.ceil(x/2),m=O,l="",f=void 0;f=_?"vBlurTexCoords[%index%] = aTextureCoord + vec2(%sampleIndex% * strength, 0.0);":"vBlurTexCoords[%index%] = aTextureCoord + vec2(0.0, %sampleIndex% * strength);";for(var o=0;ox;)_-=2;return _}E.__esModule=!0,E.default=c},function(B,E,c){"use strict";function O(t){return t&&t.__esModule?t:{default:t}}E.__esModule=!0;var x=c(235);Object.defineProperty(E,"FXAAFilter",{enumerable:!0,get:function(){return O(x).default}});var _=c(236);Object.defineProperty(E,"NoiseFilter",{enumerable:!0,get:function(){return O(_).default}});var b=c(234);Object.defineProperty(E,"DisplacementFilter",{enumerable:!0,get:function(){return O(b).default}});var m=c(232);Object.defineProperty(E,"BlurFilter",{enumerable:!0,get:function(){return O(m).default}});var l=c(111);Object.defineProperty(E,"BlurXFilter",{enumerable:!0,get:function(){return O(l).default}});var f=c(112);Object.defineProperty(E,"BlurYFilter",{enumerable:!0,get:function(){return O(f).default}});var o=c(233);Object.defineProperty(E,"ColorMatrixFilter",{enumerable:!0,get:function(){return O(o).default}});var e=c(237);Object.defineProperty(E,"VoidFilter",{enumerable:!0,get:function(){return O(e).default}})},function(B,E,c){"use strict";function O(l){if(l&&l.__esModule)return l;var f={};if(l!=null)for(var o in l)Object.prototype.hasOwnProperty.call(l,o)&&(f[o]=l[o]);return f.default=l,f}function x(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var _=c(1),b=O(_),m=function(){function l(){x(this,l),this.global=new b.Point,this.target=null,this.originalEvent=null}return l.prototype.getLocalPosition=function(f,o,e){return f.worldTransform.applyInverse(e||this.global,o)},l}();E.default=m},function(B,E){"use strict";E.__esModule=!0,E.default={interactive:!1,interactiveChildren:!0,hitArea:null,buttonMode:!1,defaultCursor:"pointer",_over:!1,_isLeftDown:!1,_isRightDown:!1,_pointerOver:!1,_pointerDown:!1,_touchDown:!1}},function(B,E,c){"use strict";function O(o){if(o&&o.__esModule)return o;var e={};if(o!=null)for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t]);return e.default=o,e}function x(o,e){var t={},i=o.data.getElementsByTagName("info")[0],n=o.data.getElementsByTagName("common")[0];t.font=i.getAttribute("face"),t.size=parseInt(i.getAttribute("size"),10),t.lineHeight=parseInt(n.getAttribute("lineHeight"),10),t.chars={};for(var r=o.data.getElementsByTagName("char"),h=0;h0},x}();E.default=O},function(B,E,c){"use strict";function O(m){return m&&m.__esModule?m:{default:m}}var x=c(8),_=O(x),b=function(){function m(l){(0,_.default)(this,m),this.ringObj=l,this.center={x:400,y:280},this.rArray=[],this.PI=Math.PI/180}return m.prototype.setRArray=function(){var l=this.ringObj.inner,f=this.ringObj.outside,o=f-l,e=this.ringObj.listNumber,t=.7*o/e,i=0,n=void 0;for(n=1;n2&&arguments[2]!==void 0?arguments[2]:2492293,y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:3542694;(0,_.default)(this,r);var d=(0,m.default)(this,n.call(this,p));return d.number=h,d.ringObj=p,d.bgColor=u,d.lineColor=y,d.container=new o.Container,d.pointContainer=new o.Container,d.bgContainer=new o.Container,d.lineContainer=new o.Container,d.dataArr=[],d.increasArr=[],d.aa=0,d}return(0,f.default)(r,n),r.prototype.init=function(){this.setRArray(),this.getIncrease(),this.createBgElement(),this.createLineElement(),this.createPointElement(),this.startAnim()},r.prototype.createPointElement=function(){for(var h=0;h180?-d:d),p.y=2*Math.random()|0?5*-Math.random():5*Math.random(),p.cacheAsBitmapboolean=!0,p.alpha=0,this.pointContainer.addChild(p)}var w=new o.filters.BlurFilter;w.blur=.5,this.container.addChild(this.pointContainer),this.container.x=this.center.x,this.container.y=this.center.y},r.prototype.createLineElement=function(){for(var h=0;h0&&arguments[0]!==void 0&&arguments[0],p=360*Math.random(),u=void 0,y=void 0;if(h)u=Math.round(Math.random()*(this.ringObj.listNumber-1));else{var d=this.ringObj.listNumber;u=this.aa,y=this.dataArr[u]=this.dataArr[u]||[];var w=.35*this.number/d;y.length>=w+this.increasArr[u]&&(u++,y=this.dataArr[u]=this.dataArr[u]||[],this.aa=u),y.push(1)}var g=this.rArray[u];return{x:Math.sin(this.PI*p)*g,y:Math.cos(this.PI*p)*g,r:g,angle:p,number:u}},r.prototype.startAnim=function(){},r.prototype.getAnimData=function(h,p){var u=(arguments.length>2&&arguments[2]!==void 0&&arguments[2],arguments.length>3&&arguments[3]!==void 0&&arguments[3],h.angle-p);return u=u<360?u+360:u,{x:Math.sin(this.PI*u)*h.r,y:Math.cos(this.PI*u)*h.r}},r.prototype.pointAnim=function(){var h=this,p=this.pointContainer.children;p.forEach(function(u){var y={r:0},d=u.positionData.r,w=h.rArray.indexOf(d),g=w>h.ringObj.listNumber-3,a=g?40*Math.random()+5*w+30:20*Math.random()+3*w+30;g&&(u.alpha=.5*Math.random()+.5);var s=new e.TimelineMax;s.to(u,.5,{alpha:.7*Math.random()+.2,delay:2*Math.random()+.5}).to(u,2*Math.random()+.5,{x:u.positionData.x,y:u.positionData.y,ease:e.Power3.easeInOut}).to(y,a,{r:360,onUpdate:function(){var v=h.getAnimData(u.positionData,y.r,g,w);u.x=v.x,u.y=v.y},repeat:-1,ease:e.Power0.easeNone})})},r}(t.default);Object.defineProperty(E,"__esModule",{value:!0}),E.default=i},function(B,E,c){"use strict";function O(f){return f&&f.__esModule?f:{default:f}}E.__esModule=!0;var x=c(266),_=O(x),b=c(265),m=O(b),l=typeof m.default=="function"&&typeof _.default=="symbol"?function(f){return typeof f}:function(f){return f&&typeof m.default=="function"&&f.constructor===m.default&&f!==m.default.prototype?"symbol":typeof f};E.default=typeof m.default=="function"&&l(_.default)==="symbol"?function(f){return typeof f=="undefined"?"undefined":l(f)}:function(f){return f&&typeof m.default=="function"&&f.constructor===m.default&&f!==m.default.prototype?"symbol":typeof f=="undefined"?"undefined":l(f)}},function(B,E,c){function O(){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}function x(T,C,M){if(T&&f(T)&&T instanceof O)return T;var R=new O;return R.parse(T,C,M),R}function _(T){return l(T)&&(T=x(T)),T instanceof O?T.format():O.prototype.format.call(T)}function b(T,C){return x(T,!1,!0).resolve(C)}function m(T,C){return T?x(T,!1,!0).resolveObject(C):C}function l(T){return typeof T=="string"}function f(T){return typeof T=="object"&&T!==null}function o(T){return T===null}function e(T){return T==null}var t=c(145);E.parse=x,E.resolve=b,E.resolveObject=m,E.format=_,E.Url=O;var i=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,r=["<",">",'"',"`"," ","\r",` `," "],h=["{","}","|","\\","^","`"].concat(r),p=["'"].concat(h),u=["%","/","?",";","#"].concat(p),y=["/","?","#"],d=255,w=/^[a-z0-9A-Z_-]{0,63}$/,g=/^([a-z0-9A-Z_-]{0,63})(.*)$/,a={javascript:!0,"javascript:":!0},s={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},P=c(135);O.prototype.parse=function(T,C,M){if(!l(T))throw new TypeError("Parameter 'url' must be a string, not "+typeof T);var R=T;R=R.trim();var S=i.exec(R);if(S){S=S[0];var L=S.toLowerCase();this.protocol=L,R=R.substr(S.length)}if(M||S||R.match(/^\/\/[^@\/]+@[^@\/]+/)){var A=R.substr(0,2)==="//";!A||S&&s[S]||(R=R.substr(2),this.slashes=!0)}if(!s[S]&&(A||S&&!v[S])){for(var D=-1,I=0;I127?"x":K[ut];if(!at.match(w)){var wt=tt.slice(0,I),Dt=tt.slice(I+1),yt=K.match(g);yt&&(wt.push(yt[1]),Dt.unshift(yt[2])),Dt.length&&(R="/"+Dt.join(".")+R),this.hostname=wt.join(".");break}}}if(this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),!H){for(var Tt=this.hostname.split("."),It=[],I=0;I0)&&M.host.split("@");H&&(M.auth=H.shift(),M.host=M.hostname=H.shift())}return M.search=T.search,M.query=T.query,o(M.pathname)&&o(M.search)||(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.href=M.format(),M}if(!U.length)return M.pathname=null,M.search?M.path="/"+M.search:M.path=null,M.href=M.format(),M;for(var tt=U.slice(-1)[0],it=(M.host||T.host)&&(tt==="."||tt==="..")||tt==="",K=0,at=U.length;at>=0;at--)tt=U[at],tt=="."?U.splice(at,1):tt===".."?(U.splice(at,1),K++):K&&(U.splice(at,1),K--);if(!D&&!I)for(;K--;K)U.unshift("..");!D||U[0]===""||U[0]&&U[0].charAt(0)==="/"||U.unshift(""),it&&U.join("/").substr(-1)!=="/"&&U.push("");var ut=U[0]===""||U[0]&&U[0].charAt(0)==="/";if(W){M.hostname=M.host=ut?"":U.length?U.shift():"";var H=!!(M.host&&M.host.indexOf("@")>0)&&M.host.split("@");H&&(M.auth=H.shift(),M.host=M.hostname=H.shift())}return D=D||M.host&&U.length,D&&!ut&&U.unshift(""),U.length?M.pathname=U.join("/"):(M.pathname=null,M.path=null),o(M.pathname)&&o(M.search)||(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.auth=T.auth||M.auth,M.slashes=M.slashes||T.slashes,M.href=M.format(),M},O.prototype.parseHost=function(){var T=this.host,C=n.exec(T);C&&(C=C[0],C!==":"&&(this.port=C.substr(1)),T=T.substr(0,T.length-C.length)),T&&(this.hostname=T)}},function(B,E){function c(){throw new Error("setTimeout has not been defined")}function O(){throw new Error("clearTimeout has not been defined")}function x(p){if(o===setTimeout)return setTimeout(p,0);if((o===c||!o)&&setTimeout)return o=setTimeout,setTimeout(p,0);try{return o(p,0)}catch(u){try{return o.call(null,p,0)}catch(y){return o.call(this,p,0)}}}function _(p){if(e===clearTimeout)return clearTimeout(p);if((e===O||!e)&&clearTimeout)return e=clearTimeout,clearTimeout(p);try{return e(p)}catch(u){try{return e.call(null,p)}catch(y){return e.call(this,p)}}}function b(){r&&i&&(r=!1,i.length?n=i.concat(n):h=-1,n.length&&m())}function m(){if(!r){var p=x(b);r=!0;for(var u=n.length;u;){for(i=n,n=[];++h1)for(var y=1;y0&&o>f&&(o=f);for(var e=0;e=0?(t=h.substr(0,p),i=h.substr(p+1)):(t=h,i=""),n=decodeURIComponent(t),r=decodeURIComponent(i),c(m,n)?Array.isArray(m[n])?m[n].push(r):m[n]=[m[n],r]:m[n]=r}return m}},function(B,E){"use strict";var c=function(O){switch(typeof O){case"string":return O;case"boolean":return O?"true":"false";case"number":return isFinite(O)?O:"";default:return""}};B.exports=function(O,x,_,b){return x=x||"&",_=_||"=",O===null&&(O=void 0),typeof O=="object"?Object.keys(O).map(function(m){var l=encodeURIComponent(c(m))+_;return Array.isArray(O[m])?O[m].map(function(f){return l+encodeURIComponent(c(f))}).join(x):l+encodeURIComponent(c(O[m]))}).join(x):b?encodeURIComponent(c(b))+_+encodeURIComponent(c(O)):""}},function(B,E,c){"use strict";E.decode=E.parse=c(133),E.encode=E.stringify=c(134)},function(B,E){},function(B,E){var c=new ArrayBuffer(0),O=function(x,_,b,m){this.gl=x,this.buffer=x.createBuffer(),this.type=_||x.ARRAY_BUFFER,this.drawType=m||x.STATIC_DRAW,this.data=c,b&&this.upload(b)};O.prototype.upload=function(x,_,b){b||this.bind();var m=this.gl;x=x||this.data,_=_||0,this.data.byteLength>=x.byteLength?m.bufferSubData(this.type,_,x):m.bufferData(this.type,x,this.drawType),this.data=x},O.prototype.bind=function(){var x=this.gl;x.bindBuffer(this.type,this.buffer)},O.createVertexBuffer=function(x,_,b){return new O(x,x.ARRAY_BUFFER,_,b)},O.createIndexBuffer=function(x,_,b){return new O(x,x.ELEMENT_ARRAY_BUFFER,_,b)},O.create=function(x,_,b,m){return new O(x,_,b,m)},O.prototype.destroy=function(){this.gl.deleteBuffer(this.buffer)},B.exports=O},function(B,E,c){var O=c(70),x=function(_,b,m){this.gl=_,this.framebuffer=_.createFramebuffer(),this.stencil=null,this.texture=null,this.width=b||100,this.height=m||100};x.prototype.enableTexture=function(_){var b=this.gl;this.texture=_||new O(b),this.texture.bind(),this.bind(),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.texture.texture,0)},x.prototype.enableStencil=function(){if(!this.stencil){var _=this.gl;this.stencil=_.createRenderbuffer(),_.bindRenderbuffer(_.RENDERBUFFER,this.stencil),_.framebufferRenderbuffer(_.FRAMEBUFFER,_.DEPTH_STENCIL_ATTACHMENT,_.RENDERBUFFER,this.stencil),_.renderbufferStorage(_.RENDERBUFFER,_.DEPTH_STENCIL,this.width,this.height)}},x.prototype.clear=function(_,b,m,l){this.bind();var f=this.gl;f.clearColor(_,b,m,l),f.clear(f.COLOR_BUFFER_BIT)},x.prototype.bind=function(){var _=this.gl;_.bindFramebuffer(_.FRAMEBUFFER,this.framebuffer)},x.prototype.unbind=function(){var _=this.gl;_.bindFramebuffer(_.FRAMEBUFFER,null)},x.prototype.resize=function(_,b){var m=this.gl;this.width=_,this.height=b,this.texture&&this.texture.uploadData(null,_,b),this.stencil&&(m.bindRenderbuffer(m.RENDERBUFFER,this.stencil),m.renderbufferStorage(m.RENDERBUFFER,m.DEPTH_STENCIL,_,b))},x.prototype.destroy=function(){var _=this.gl;this.texture&&this.texture.destroy(),_.deleteFramebuffer(this.framebuffer),this.gl=null,this.stencil=null,this.texture=null},x.createRGBA=function(_,b,m,l){var f=O.fromData(_,null,b,m);f.enableNearestScaling(),f.enableWrapClamp();var o=new x(_,b,m);return o.enableTexture(f),o.unbind(),o},x.createFloat32=function(_,b,m,l){var f=new O.fromData(_,l,b,m);f.enableNearestScaling(),f.enableWrapClamp();var o=new x(_,b,m);return o.enableTexture(f),o.unbind(),o},B.exports=x},function(B,E,c){var O=c(72),x=c(74),_=c(75),b=c(76),m=function(l,f,o){this.gl=l,this.program=O(l,f,o),this.attributes=x(l,this.program);var e=_(l,this.program);this.uniforms=b(l,e)};m.prototype.bind=function(){this.gl.useProgram(this.program)},m.prototype.destroy=function(){},B.exports=m},function(B,E,c){function O(_,b){if(this.nativeVaoExtension=null,O.FORCE_NATIVE||(this.nativeVaoExtension=_.getExtension("OES_vertex_array_object")||_.getExtension("MOZ_OES_vertex_array_object")||_.getExtension("WEBKIT_OES_vertex_array_object")),this.nativeState=b,this.nativeVaoExtension){this.nativeVao=this.nativeVaoExtension.createVertexArrayOES();var m=_.getParameter(_.MAX_VERTEX_ATTRIBS);this.nativeState={tempAttribState:new Array(m),attribState:new Array(m)}}this.gl=_,this.attributes=[],this.indexBuffer=null,this.dirty=!1}var x=c(71);O.prototype.constructor=O,B.exports=O,O.FORCE_NATIVE=!1,O.prototype.bind=function(){return this.nativeVao?(this.nativeVaoExtension.bindVertexArrayOES(this.nativeVao),this.dirty&&(this.dirty=!1,this.activate())):this.activate(),this},O.prototype.unbind=function(){return this.nativeVao&&this.nativeVaoExtension.bindVertexArrayOES(null),this},O.prototype.activate=function(){for(var _=this.gl,b=null,m=0;m1&&(tt=H[0]+"@",N=H[1]),N=N.replace(L,".");var it=N.split("."),K=l(it,W).join(".");return tt+K}function o(N){for(var W,H,tt=[],it=0,K=N.length;it=55296&&W<=56319&&it65535&&(W-=65536,H+=U(W>>>10&1023|55296),W=56320|1023&W),H+=U(W)}).join("")}function t(N){return N-48<10?N-22:N-65<26?N-65:N-97<26?N-97:g}function i(N,W){return N+22+75*(N<26)-((W!=0)<<5)}function n(N,W,H){var tt=0;for(N=H?I(N/P):N>>1,N+=I(N/W);N>D*s>>1;tt+=g)N=I(N/D);return I(tt+(D+1)*N/(N+v))}function r(N){var W,H,tt,it,K,at,ut,mt,wt,Dt,yt=[],Tt=N.length,It=0,bt=C,kt=T;for(H=N.lastIndexOf(M),H<0&&(H=0),tt=0;tt=128&&m("not-basic"),yt.push(N.charCodeAt(tt));for(it=H>0?H+1:0;it=Tt&&m("invalid-input"),mt=t(N.charCodeAt(it++)),(mt>=g||mt>I((w-It)/at))&&m("overflow"),It+=mt*at,wt=ut<=kt?a:ut>=kt+s?s:ut-kt,!(mtI(w/Dt)&&m("overflow"),at*=Dt;W=yt.length+1,kt=n(It-K,W,K==0),I(It/W)>w-bt&&m("overflow"),bt+=I(It/W),It%=W,yt.splice(It++,0,bt)}return e(yt)}function h(N){var W,H,tt,it,K,at,ut,mt,wt,Dt,yt,Tt,It,bt,kt,Bt=[];for(N=o(N),Tt=N.length,W=C,H=0,K=T,at=0;at=W&&ytI((w-H)/It)&&m("overflow"),H+=(ut-W)*It,W=ut,at=0;atw&&m("overflow"),yt==W){for(mt=H,wt=g;Dt=wt<=K?a:wt>=K+s?s:wt-K,!(mt= 0x80 (not a basic code point)","invalid-input":"Invalid input"},D=g-a,I=Math.floor,U=String.fromCharCode;d={version:"1.3.2",ucs2:{decode:o,encode:e},decode:r,encode:h,toASCII:u,toUnicode:p},O=function(){return d}.call(E,c,E,x),O!==void 0&&(x.exports=O)})(this)}).call(E,c(144)(B),function(){return this}())},function(B,E,c){"use strict";function O(u){if(u&&u.__esModule)return u;var y={};if(u!=null)for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(y[d]=u[d]);return y.default=u,y}function x(u){return u&&u.__esModule?u:{default:u}}function _(u,y){if(!(u instanceof y))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},m=c(78),l=x(m),f=c(69),o=x(f),e=c(79),t=O(e),i=c(43),n=x(i),r=100,h=/(#[\w\-]+)?$/,p=function(){function u(){var y=this,d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:10;_(this,u),this.baseUrl=d,this.progress=0,this.loading=!1,this.defaultQueryString="",this._beforeMiddleware=[],this._afterMiddleware=[],this._boundLoadResource=function(g,a){return y._loadResource(g,a)},this._queue=t.queue(this._boundLoadResource,w),this._queue.pause(),this.resources={},this.onProgress=new l.default,this.onError=new l.default,this.onLoad=new l.default,this.onStart=new l.default,this.onComplete=new l.default}return u.prototype.add=function(y,d,w,g){if(Array.isArray(y)){for(var a=0;ai;)if(o=e[i++],o!=o)return!0}else for(;t>i;i++)if((b||i in e)&&e[i]===l)return b||i||0;return!b&&-1}}},function(B,E,c){var O=c(31),x=c(89),_=c(49);B.exports=function(b){var m=O(b),l=x.f;if(l)for(var f,o=l(b),e=_.f,t=0;o.length>t;)e.call(b,f=o[t++])&&m.push(f);return m}},function(B,E,c){B.exports=c(11).document&&document.documentElement},function(B,E,c){var O=c(82);B.exports=Object("z").propertyIsEnumerable(0)?Object:function(x){return O(x)=="String"?x.split(""):Object(x)}},function(B,E,c){var O=c(82);B.exports=Array.isArray||function(x){return O(x)=="Array"}},function(B,E,c){"use strict";var O=c(48),x=c(32),_=c(50),b={};c(16)(b,c(18)("iterator"),function(){return this}),B.exports=function(m,l,f){m.prototype=O(b,{next:x(1,f)}),_(m,l+" Iterator")}},function(B,E){B.exports=function(c,O){return{value:O,done:!!c}}},function(B,E,c){var O=c(31),x=c(13);B.exports=function(_,b){for(var m,l=x(_),f=O(l),o=f.length,e=0;o>e;)if(l[m=f[e++]]===b)return m}},function(B,E,c){var O=c(33)("meta"),x=c(22),_=c(12),b=c(17).f,m=0,l=Object.isExtensible||function(){return!0},f=!c(30)(function(){return l(Object.preventExtensions({}))}),o=function(r){b(r,O,{value:{i:"O"+ ++m,w:{}}})},e=function(r,h){if(!x(r))return typeof r=="symbol"?r:(typeof r=="string"?"S":"P")+r;if(!_(r,O)){if(!l(r))return"F";if(!h)return"E";o(r)}return r[O].i},t=function(r,h){if(!_(r,O)){if(!l(r))return!0;if(!h)return!1;o(r)}return r[O].w},i=function(r){return f&&n.NEED&&l(r)&&!_(r,O)&&o(r),r},n=B.exports={KEY:O,NEED:!1,fastKey:e,getWeak:t,onFreeze:i}},function(B,E,c){var O=c(17),x=c(20),_=c(31);B.exports=c(15)?Object.defineProperties:function(b,m){x(b);for(var l,f=_(m),o=f.length,e=0;o>e;)O.f(b,l=f[e++],m[l]);return b}},function(B,E,c){var O=c(13),x=c(88).f,_={}.toString,b=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m=function(l){try{return x(l)}catch(f){return b.slice()}};B.exports.f=function(l){return b&&_.call(l)=="[object Window]"?m(l):x(O(l))}},function(B,E,c){var O=c(12),x=c(170),_=c(51)("IE_PROTO"),b=Object.prototype;B.exports=Object.getPrototypeOf||function(m){return m=x(m),O(m,_)?m[_]:typeof m.constructor=="function"&&m instanceof m.constructor?m.constructor.prototype:m instanceof Object?b:null}},function(B,E,c){var O=c(22),x=c(20),_=function(b,m){if(x(b),!O(m)&&m!==null)throw TypeError(m+": can't set as prototype!")};B.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(b,m,l){try{l=c(83)(Function.call,c(87).f(Object.prototype,"__proto__").set,2),l(b,[]),m=!(b instanceof Array)}catch(f){m=!0}return function(f,o){return _(f,o),m?f.__proto__=o:l(f,o),f}}({},!1):void 0),check:_}},function(B,E,c){var O=c(53),x=c(44);B.exports=function(_){return function(b,m){var l,f,o=String(x(b)),e=O(m),t=o.length;return e<0||e>=t?_?"":void 0:(l=o.charCodeAt(e),l<55296||l>56319||e+1===t||(f=o.charCodeAt(e+1))<56320||f>57343?_?o.charAt(e):l:_?o.slice(e,e+2):(l-55296<<10)+(f-56320)+65536)}}},function(B,E,c){var O=c(53),x=Math.max,_=Math.min;B.exports=function(b,m){return b=O(b),b<0?x(b+m,0):_(b,m)}},function(B,E,c){var O=c(53),x=Math.min;B.exports=function(_){return _>0?x(O(_),9007199254740991):0}},function(B,E,c){var O=c(44);B.exports=function(x){return Object(O(x))}},function(B,E,c){"use strict";var O=c(153),x=c(160),_=c(46),b=c(13);B.exports=c(86)(Array,"Array",function(m,l){this._t=b(m),this._i=0,this._k=l},function(){var m=this._t,l=this._k,f=this._i++;return!m||f>=m.length?(this._t=void 0,x(1)):l=="keys"?x(0,f):l=="values"?x(0,m[f]):x(0,[f,m[f]])},"values"),_.Arguments=_.Array,O("keys"),O("values"),O("entries")},function(B,E,c){var O=c(29);O(O.S,"Object",{create:c(48)})},function(B,E,c){var O=c(29);O(O.S,"Object",{setPrototypeOf:c(166).set})},function(B,E){},function(B,E,c){"use strict";var O=c(167)(!0);c(86)(String,"String",function(x){this._t=String(x),this._i=0},function(){var x,_=this._t,b=this._i;return b>=_.length?{value:void 0,done:!0}:(x=O(_,b),this._i+=x.length,{value:x,done:!1})})},function(B,E,c){"use strict";var O=c(11),x=c(12),_=c(15),b=c(29),m=c(91),l=c(162).KEY,f=c(30),o=c(52),e=c(50),t=c(33),i=c(18),n=c(56),r=c(55),h=c(161),p=c(155),u=c(158),y=c(20),d=c(13),w=c(54),g=c(32),a=c(48),s=c(164),v=c(87),P=c(17),T=c(31),C=v.f,M=P.f,R=s.f,S=O.Symbol,L=O.JSON,A=L&&L.stringify,D="prototype",I=i("_hidden"),U=i("toPrimitive"),N={}.propertyIsEnumerable,W=o("symbol-registry"),H=o("symbols"),tt=o("op-symbols"),it=Object[D],K=typeof S=="function",at=O.QObject,ut=!at||!at[D]||!at[D].findChild,mt=_&&f(function(){return a(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a!=7})?function(_t,Et,Ot){var zt=C(it,Et);zt&&delete it[Et],M(_t,Et,Ot),zt&&_t!==it&&M(it,Et,zt)}:M,wt=function(_t){var Et=H[_t]=a(S[D]);return Et._k=_t,Et},Dt=K&&typeof S.iterator=="symbol"?function(_t){return typeof _t=="symbol"}:function(_t){return _t instanceof S},yt=function(_t,Et,Ot){return _t===it&&yt(tt,Et,Ot),y(_t),Et=w(Et,!0),y(Ot),x(H,Et)?(Ot.enumerable?(x(_t,I)&&_t[I][Et]&&(_t[I][Et]=!1),Ot=a(Ot,{enumerable:g(0,!1)})):(x(_t,I)||M(_t,I,g(1,{})),_t[I][Et]=!0),mt(_t,Et,Ot)):M(_t,Et,Ot)},Tt=function(_t,Et){y(_t);for(var Ot,zt=p(Et=d(Et)),Zt=0,j=zt.length;j>Zt;)yt(_t,Ot=zt[Zt++],Et[Ot]);return _t},It=function(_t,Et){return Et===void 0?a(_t):Tt(a(_t),Et)},bt=function(_t){var Et=N.call(this,_t=w(_t,!0));return!(this===it&&x(H,_t)&&!x(tt,_t))&&(!(Et||!x(this,_t)||!x(H,_t)||x(this,I)&&this[I][_t])||Et)},kt=function(_t,Et){if(_t=d(_t),Et=w(Et,!0),_t!==it||!x(H,Et)||x(tt,Et)){var Ot=C(_t,Et);return!Ot||!x(H,Et)||x(_t,I)&&_t[I][Et]||(Ot.enumerable=!0),Ot}},Bt=function(_t){for(var Et,Ot=R(d(_t)),zt=[],Zt=0;Ot.length>Zt;)x(H,Et=Ot[Zt++])||Et==I||Et==l||zt.push(Et);return zt},Ut=function(_t){for(var Et,Ot=_t===it,zt=R(Ot?tt:d(_t)),Zt=[],j=0;zt.length>j;)!x(H,Et=zt[j++])||Ot&&!x(it,Et)||Zt.push(H[Et]);return Zt};K||(S=function(){if(this instanceof S)throw TypeError("Symbol is not a constructor!");var _t=t(arguments.length>0?arguments[0]:void 0),Et=function(Ot){this===it&&Et.call(tt,Ot),x(this,I)&&x(this[I],_t)&&(this[I][_t]=!1),mt(this,_t,g(1,Ot))};return _&&ut&&mt(it,_t,{configurable:!0,set:Et}),wt(_t)},m(S[D],"toString",function(){return this._k}),v.f=kt,P.f=yt,c(88).f=s.f=Bt,c(49).f=bt,c(89).f=Ut,_&&!c(47)&&m(it,"propertyIsEnumerable",bt,!0),n.f=function(_t){return wt(i(_t))}),b(b.G+b.W+b.F*!K,{Symbol:S});for(var Vt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),jt=0;Vt.length>jt;)i(Vt[jt++]);for(var Vt=T(i.store),jt=0;Vt.length>jt;)r(Vt[jt++]);b(b.S+b.F*!K,"Symbol",{for:function(_t){return x(W,_t+="")?W[_t]:W[_t]=S(_t)},keyFor:function(_t){if(Dt(_t))return h(W,_t);throw TypeError(_t+" is not a symbol!")},useSetter:function(){ut=!0},useSimple:function(){ut=!1}}),b(b.S+b.F*!K,"Object",{create:It,defineProperty:yt,defineProperties:Tt,getOwnPropertyDescriptor:kt,getOwnPropertyNames:Bt,getOwnPropertySymbols:Ut}),L&&b(b.S+b.F*(!K||f(function(){var _t=S();return A([_t])!="[null]"||A({a:_t})!="{}"||A(Object(_t))!="{}"})),"JSON",{stringify:function(_t){if(_t!==void 0&&!Dt(_t)){for(var Et,Ot,zt=[_t],Zt=1;arguments.length>Zt;)zt.push(arguments[Zt++]);return Et=zt[1],typeof Et=="function"&&(Ot=Et),!Ot&&u(Et)||(Et=function(j,V){if(Ot&&(V=Ot.call(this,j,V)),!Dt(V))return V}),zt[1]=Et,A.apply(L,zt)}}}),S[D][U]||c(16)(S[D],U,S[D].valueOf),e(S,"Symbol"),e(Math,"Math",!0),e(O.JSON,"JSON",!0)},function(B,E,c){c(55)("asyncIterator")},function(B,E,c){c(55)("observable")},function(B,E,c){c(171);for(var O=c(11),x=c(16),_=c(46),b=c(18)("toStringTag"),m=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],l=0;l<5;l++){var f=m[l],o=O[f],e=o&&o.prototype;e&&!e[b]&&x(e,b,f),_[f]=_.Array}},function(B,E){"use strict";function c(b){if(b==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(b)}function O(){try{if(!Object.assign)return!1;var b=new String("abc");if(b[5]="de",Object.getOwnPropertyNames(b)[0]==="5")return!1;for(var m={},l=0;l<10;l++)m["_"+String.fromCharCode(l)]=l;var f=Object.getOwnPropertyNames(m).map(function(e){return m[e]});if(f.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch(e){return!1}}var x=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;B.exports=O()?Object.assign:function(b,m){for(var l,f,o=c(b),e=1;e=0;v--)this.updateAccessibleObjects(s[v])}},g.prototype.update=function(){if(this.renderer.renderingToScreen){this.updateAccessibleObjects(this.renderer._lastObjectRendered);var a=this.renderer.view.getBoundingClientRect(),s=a.width/this.renderer.width,v=a.height/this.renderer.height,P=this.div;P.style.left=a.left+"px",P.style.top=a.top+"px",P.style.width=this.renderer.width+"px",P.style.height=this.renderer.height+"px";for(var T=0;Tthis.renderer.width&&(a.width=this.renderer.width-a.x),a.y+a.height>this.renderer.height&&(a.height=this.renderer.height-a.y)},g.prototype.addChild=function(a){var s=this.pool.pop();s||(s=document.createElement("button"),s.style.width=i+"px",s.style.height=i+"px",s.style.backgroundColor=this.debug?"rgba(255,0,0,0.5)":"transparent",s.style.position="absolute",s.style.zIndex=h,s.style.borderStyle="none",s.addEventListener("click",this._onClick.bind(this)),s.addEventListener("focus",this._onFocus.bind(this)),s.addEventListener("focusout",this._onFocusOut.bind(this))),a.accessibleTitle?s.title=a.accessibleTitle:a.accessibleTitle||a.accessibleHint||(s.title="displayObject "+this.tabIndex),a.accessibleHint&&s.setAttribute("aria-label",a.accessibleHint),a._accessibleActive=!0,a._accessibleDiv=s,s.displayObject=a,this.children.push(a),this.div.appendChild(a._accessibleDiv),a._accessibleDiv.tabIndex=a.tabIndex},g.prototype._onClick=function(a){var s=this.renderer.plugins.interaction;s.dispatchEvent(a.target.displayObject,"click",s.eventData)},g.prototype._onFocus=function(a){var s=this.renderer.plugins.interaction;s.dispatchEvent(a.target.displayObject,"mouseover",s.eventData)},g.prototype._onFocusOut=function(a){var s=this.renderer.plugins.interaction;s.dispatchEvent(a.target.displayObject,"mouseout",s.eventData)},g.prototype._onKeyDown=function(a){a.keyCode===t&&this.activate()},g.prototype._onMouseMove=function(){this.deactivate()},g.prototype.destroy=function(){this.div=null;for(var a=0;a0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;if(this.lineWidth=D,this.lineColor=I,this.lineAlpha=U,this.currentPath)if(this.currentPath.shape.points.length){var N=new p.Polygon(this.currentPath.shape.points.slice(-2));N.closed=!1,this.drawShape(N)}else this.currentPath.lineWidth=this.lineWidth,this.currentPath.lineColor=this.lineColor,this.currentPath.lineAlpha=this.lineAlpha;return this},A.prototype.moveTo=function(D,I){var U=new p.Polygon([D,I]);return U.closed=!1,this.drawShape(U),this},A.prototype.lineTo=function(D,I){return this.currentPath.shape.points.push(D,I),this.dirty++,this},A.prototype.quadraticCurveTo=function(D,I,U,N){this.currentPath?this.currentPath.shape.points.length===0&&(this.currentPath.shape.points=[0,0]):this.moveTo(0,0);var W=20,H=this.currentPath.shape.points,tt=0,it=0;H.length===0&&this.moveTo(0,0);for(var K=H[H.length-2],at=H[H.length-1],ut=1;ut<=W;++ut){var mt=ut/W;tt=K+(D-K)*mt,it=at+(I-at)*mt,H.push(tt+(D+(U-D)*mt-tt)*mt,it+(I+(N-I)*mt-it)*mt)}return this.dirty++,this},A.prototype.bezierCurveTo=function(D,I,U,N,W,H){this.currentPath?this.currentPath.shape.points.length===0&&(this.currentPath.shape.points=[0,0]):this.moveTo(0,0);var tt=this.currentPath.shape.points,it=tt[tt.length-2],K=tt[tt.length-1];return tt.length-=2,(0,a.default)(it,K,D,I,U,N,W,H,tt),this.dirty++,this},A.prototype.arcTo=function(D,I,U,N,W){this.currentPath?this.currentPath.shape.points.length===0&&this.currentPath.shape.points.push(D,I):this.moveTo(D,I);var H=this.currentPath.shape.points,tt=H[H.length-2],it=H[H.length-1],K=it-I,at=tt-D,ut=N-I,mt=U-D,wt=Math.abs(K*mt-at*ut);if(wt<1e-8||W===0)H[H.length-2]===D&&H[H.length-1]===I||H.push(D,I);else{var Dt=K*K+at*at,yt=ut*ut+mt*mt,Tt=K*ut+at*mt,It=W*Math.sqrt(Dt)/wt,bt=W*Math.sqrt(yt)/wt,kt=It*Tt/Dt,Bt=bt*Tt/yt,Ut=It*mt+bt*at,Vt=It*ut+bt*K,jt=at*(bt+kt),_t=K*(bt+kt),Et=mt*(It+Bt),Ot=ut*(It+Bt),zt=Math.atan2(_t-Vt,jt-Ut),Zt=Math.atan2(Ot-Vt,Et-Ut);this.arc(Ut+D,Vt+I,W,zt,Zt,at*ut>mt*K)}return this.dirty++,this},A.prototype.arc=function(D,I,U,N,W){var H=arguments.length>5&&arguments[5]!==void 0&&arguments[5];if(N===W)return this;!H&&W<=N?W+=2*Math.PI:H&&N<=W&&(N+=2*Math.PI);var tt=W-N,it=40*Math.ceil(Math.abs(tt)/(2*Math.PI));if(tt===0)return this;var K=D+Math.cos(N)*U,at=I+Math.sin(N)*U,ut=this.currentPath?this.currentPath.shape.points:null;ut?ut[ut.length-2]===K&&ut[ut.length-1]===at||ut.push(K,at):(this.moveTo(K,at),ut=this.currentPath.shape.points);for(var mt=tt/(2*it),wt=2*mt,Dt=Math.cos(mt),yt=Math.sin(mt),Tt=it-1,It=Tt%1/Tt,bt=0;bt<=Tt;++bt){var kt=bt+It*bt,Bt=mt+N+wt*kt,Ut=Math.cos(Bt),Vt=-Math.sin(Bt);ut.push((Dt*Ut+yt*Vt)*U+D,(Dt*-Vt+yt*Ut)*U+I)}return this.dirty++,this},A.prototype.beginFill=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return this.filling=!0,this.fillColor=D,this.fillAlpha=I,this.currentPath&&this.currentPath.shape.points.length<=2&&(this.currentPath.fill=this.filling,this.currentPath.fillColor=this.fillColor,this.currentPath.fillAlpha=this.fillAlpha),this},A.prototype.endFill=function(){return this.filling=!1,this.fillColor=null,this.fillAlpha=1,this},A.prototype.drawRect=function(D,I,U,N){return this.drawShape(new p.Rectangle(D,I,U,N)),this},A.prototype.drawRoundedRect=function(D,I,U,N,W){return this.drawShape(new p.RoundedRectangle(D,I,U,N,W)),this},A.prototype.drawCircle=function(D,I,U){return this.drawShape(new p.Circle(D,I,U)),this},A.prototype.drawEllipse=function(D,I,U,N){return this.drawShape(new p.Ellipse(D,I,U,N)),this},A.prototype.drawPolygon=function(D){var I=D,U=!0;if(I instanceof p.Polygon&&(U=I.closed,I=I.points),!Array.isArray(I)){I=new Array(arguments.length);for(var N=0;N0)&&(this.lineWidth=0,this.filling=!1,this.boundsDirty=-1,this.dirty++,this.clearDirty++,this.graphicsData.length=0),this.currentPath=null,this._spriteRect=null,this},A.prototype.isFastRect=function(){return this.graphicsData.length===1&&this.graphicsData[0].shape.type===y.SHAPES.RECT&&!this.graphicsData[0].lineWidth},A.prototype._renderWebGL=function(D){this.dirty!==this.fastRectDirty&&(this.fastRectDirty=this.dirty,this._fastRect=this.isFastRect()),this._fastRect?this._renderSpriteRect(D):(D.setObjectRenderer(D.plugins.graphics),D.plugins.graphics.render(this))},A.prototype._renderSpriteRect=function(D){var I=this.graphicsData[0].shape;if(!this._spriteRect){if(!A._SPRITE_TEXTURE){A._SPRITE_TEXTURE=o.default.create(10,10);var U=document.createElement("canvas");U.width=10,U.height=10;var N=U.getContext("2d");N.fillStyle="white",N.fillRect(0,0,10,10),A._SPRITE_TEXTURE=t.default.fromCanvas(U)}this._spriteRect=new h.default(A._SPRITE_TEXTURE)}if(this.tint===16777215)this._spriteRect.tint=this.graphicsData[0].fillColor;else{var W=M,H=R;(0,u.hex2rgb)(this.graphicsData[0].fillColor,W),(0,u.hex2rgb)(this.tint,H),W[0]*=H[0],W[1]*=H[1],W[2]*=H[2],this._spriteRect.tint=(0,u.rgb2hex)(W)}this._spriteRect.alpha=this.graphicsData[0].fillAlpha,this._spriteRect.worldAlpha=this.worldAlpha*this._spriteRect.alpha,A._SPRITE_TEXTURE._frame.width=I.width,A._SPRITE_TEXTURE._frame.height=I.height,this._spriteRect.transform.worldTransform=this.transform.worldTransform,this._spriteRect.anchor.set(-I.x/I.width,-I.y/I.height),this._spriteRect._onAnchorUpdate(),this._spriteRect._renderWebGL(D)},A.prototype._renderCanvas=function(D){this.isMask!==!0&&D.plugins.graphics.render(this)},A.prototype._calculateBounds=function(){this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.updateLocalBounds(),this.cachedSpriteDirty=!0);var D=this._localBounds;this._bounds.addFrame(this.transform,D.minX,D.minY,D.maxX,D.maxY)},A.prototype.containsPoint=function(D){this.worldTransform.applyInverse(D,C);for(var I=this.graphicsData,U=0;UI?H+it:I,U=ttN?tt+K:N;else if(mt===y.SHAPES.CIRC)H=W.x,tt=W.y,it=W.radius+wt/2,K=W.radius+wt/2,D=H-itI?H+it:I,U=tt-KN?tt+K:N;else if(mt===y.SHAPES.ELIP)H=W.x,tt=W.y,it=W.width+wt/2,K=W.height+wt/2,D=H-itI?H+it:I,U=tt-KN?tt+K:N;else for(var Dt=W.points,yt=0,Tt=0,It=0,bt=0,kt=0,Bt=0,Ut=0,Vt=0,jt=0;jt+2I?Ut+kt:I,U=Vt-BtN?Vt+Bt:N)}else D=0,I=0,U=0,N=0;var _t=this.boundsPadding;this._localBounds.minX=D-_t,this._localBounds.maxX=I+2*_t,this._localBounds.minY=U-_t,this._localBounds.maxY=N+2*_t},A.prototype.drawShape=function(D){this.currentPath&&this.currentPath.shape.points.length<=2&&this.graphicsData.pop(),this.currentPath=null;var I=new n.default(this.lineWidth,this.lineColor,this.lineAlpha,this.fillColor,this.fillAlpha,this.filling,D);return this.graphicsData.push(I),I.type===y.SHAPES.POLY&&(I.shape.closed=I.shape.closed||this.filling,this.currentPath=I),this.dirty++,I},A.prototype.generateCanvasTexture=function(D){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,U=this.getLocalBounds(),N=o.default.create(U.width,U.height,D,I);P||(P=new v.default),T.tx=-U.x,T.ty=-U.y,P.render(this,N,!1,T);var W=t.default.fromCanvas(N.baseTexture._canvasRenderTarget.canvas,D);return W.baseTexture.resolution=I,W.baseTexture.update(),W},A.prototype.closePath=function(){var D=this.currentPath;return D&&D.shape&&D.shape.close(),this},A.prototype.addHole=function(){var D=this.graphicsData.pop();return this.currentPath=this.graphicsData[this.graphicsData.length-1],this.currentPath.addHole(D.shape),this.currentPath=null,this},A.prototype.destroy=function(D){L.prototype.destroy.call(this,D);for(var I=0;IW?W:N,t.beginPath(),t.moveTo(A,D+N),t.lineTo(A,D+U-N),t.quadraticCurveTo(A,D+U,A+N,D+U),t.lineTo(A+I-N,D+U),t.quadraticCurveTo(A+I,D+U,A+I,D+U-N),t.lineTo(A+I,D+N),t.quadraticCurveTo(A+I,D,A+I-N,D),t.lineTo(A+N,D),t.quadraticCurveTo(A,D,A,D+N),t.closePath(),(p.fillColor||p.fillColor===0)&&(t.globalAlpha=p.fillAlpha*i,t.fillStyle="#"+("00000"+(0|y).toString(16)).substr(-6),t.fill()),p.lineWidth&&(t.globalAlpha=p.lineAlpha*i,t.strokeStyle="#"+("00000"+(0|d).toString(16)).substr(-6),t.stroke())}}},f.prototype.updateGraphicsTint=function(o){o._prevTint=o.tint;for(var e=(o.tint>>16&255)/255,t=(o.tint>>8&255)/255,i=(255&o.tint)/255,n=0;n>16&255)/255*e*255<<16)+((h>>8&255)/255*t*255<<8)+(255&h)/255*i*255,r._lineTint=((p>>16&255)/255*e*255<<16)+((p>>8&255)/255*t*255<<8)+(255&p)/255*i*255}},f.prototype.renderPolygon=function(o,e,t){t.moveTo(o[0],o[1]);for(var i=1;i8&&arguments[8]!==void 0?arguments[8]:[],t=20,i=0,n=0,r=0,h=0,p=0;e.push(O,x);for(var u=1,y=0;u<=t;++u)y=u/t,i=1-y,n=i*i,r=n*i,h=y*y,p=h*y,e.push(r*O+3*n*y*_+3*i*h*m+p*f,r*x+3*n*y*b+3*i*h*l+p*o);return e}E.__esModule=!0,E.default=c},function(B,E,c){"use strict";function O(P){return P&&P.__esModule?P:{default:P}}function x(P,T){if(!(P instanceof T))throw new TypeError("Cannot call a class as a function")}function _(P,T){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!T||typeof T!="object"&&typeof T!="function"?P:T}function b(P,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);P.prototype=Object.create(T&&T.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(P,T):P.__proto__=T)}E.__esModule=!0;var m=c(3),l=c(2),f=c(37),o=O(f),e=c(62),t=O(e),i=c(187),n=O(i),r=c(188),h=O(r),p=c(190),u=O(p),y=c(191),d=O(y),w=c(192),g=O(w),a=c(189),s=O(a),v=function(P){function T(C){x(this,T);var M=_(this,P.call(this,C));return M.graphicsDataPool=[],M.primitiveShader=null,M.gl=C.gl,M.CONTEXT_UID=0,M}return b(T,P),T.prototype.onContextChange=function(){this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.primitiveShader=new h.default(this.gl)},T.prototype.destroy=function(){o.default.prototype.destroy.call(this);for(var C=0;C32e4)&&(R=this.graphicsDataPool.pop()||new n.default(this.renderer.gl,this.primitiveShader,this.renderer.state.attribsState),R.reset(M),C.data.push(R)),R.dirty=!0,R},T}(o.default);E.default=v,t.default.registerPlugin("graphics",v)},function(B,E,c){"use strict";function O(l){return l&&l.__esModule?l:{default:l}}function x(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var _=c(6),b=O(_),m=function(){function l(f,o,e){x(this,l),this.gl=f,this.color=[0,0,0],this.points=[],this.indices=[],this.buffer=b.default.GLBuffer.createVertexBuffer(f),this.indexBuffer=b.default.GLBuffer.createIndexBuffer(f),this.dirty=!0,this.glPoints=null,this.glIndices=null,this.shader=o,this.vao=new b.default.VertexArrayObject(f,e).addIndex(this.indexBuffer).addAttribute(this.buffer,o.attributes.aVertexPosition,f.FLOAT,!1,24,0).addAttribute(this.buffer,o.attributes.aColor,f.FLOAT,!1,24,8)}return l.prototype.reset=function(){this.points.length=0,this.indices.length=0},l.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},l.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},l}();E.default=m},function(B,E,c){"use strict";function O(o){return o&&o.__esModule?o:{default:o}}function x(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function _(o,e){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||typeof e!="object"&&typeof e!="function"?o:e}function b(o,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}E.__esModule=!0;var m=c(23),l=O(m),f=function(o){function e(t){return x(this,e),_(this,o.call(this,t,["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(` `),["varying vec4 vColor;","void main(void){"," gl_FragColor = vColor;","}"].join(` `)))}return b(e,o),e}(l.default);E.default=f},function(B,E,c){"use strict";function O(f){return f&&f.__esModule?f:{default:f}}function x(f,o){var e=f.shape,t=e.x,i=e.y,n=void 0,r=void 0;f.type===m.SHAPES.CIRC?(n=e.radius,r=e.radius):(n=e.width,r=e.height);var h=Math.floor(30*Math.sqrt(e.radius))||Math.floor(15*Math.sqrt(e.width+e.height)),p=2*Math.PI/h;if(f.fill){var u=(0,l.hex2rgb)(f.fillColor),y=f.fillAlpha,d=u[0]*y,w=u[1]*y,g=u[2]*y,a=o.points,s=o.indices,v=a.length/6;s.push(v);for(var P=0;P=6){for(var i=[],n=o.holes,r=0;r0&&(0,b.default)(o,e)}E.__esModule=!0,E.default=x;var _=c(35),b=O(_),m=c(3),l=c(81),f=O(l)},function(B,E,c){"use strict";function O(l){return l&&l.__esModule?l:{default:l}}function x(l,f){var o=l.shape,e=o.x,t=o.y,i=o.width,n=o.height;if(l.fill){var r=(0,m.hex2rgb)(l.fillColor),h=l.fillAlpha,p=r[0]*h,u=r[1]*h,y=r[2]*h,d=f.points,w=f.indices,g=d.length/6;d.push(e,t),d.push(p,u,y,h),d.push(e+i,t),d.push(p,u,y,h),d.push(e,t+n),d.push(p,u,y,h),d.push(e+i,t+n),d.push(p,u,y,h),w.push(g,g,g+1,g+2,g+3,g+3)}if(l.lineWidth){var a=l.points;l.points=[e,t,e+i,t,e+i,t+n,e,t+n,e,t],(0,b.default)(l,f),l.points=a}}E.__esModule=!0,E.default=x;var _=c(35),b=O(_),m=c(3)},function(B,E,c){"use strict";function O(e){return e&&e.__esModule?e:{default:e}}function x(e,t){var i=e.shape,n=i.x,r=i.y,h=i.width,p=i.height,u=i.radius,y=[];if(y.push(n,r+u),_(n,r+p-u,n,r+p,n+u,r+p,y),_(n+h-u,r+p,n+h,r+p,n+h,r+p-u,y),_(n+h,r+u,n+h,r,n+h-u,r,y),_(n+u,r,n,r,n,r+u+1e-10,y),e.fill){for(var d=(0,o.hex2rgb)(e.fillColor),w=e.fillAlpha,g=d[0]*w,a=d[1]*w,s=d[2]*w,v=t.points,P=t.indices,T=v.length/6,C=(0,m.default)(y,null,2),M=0,R=C.length;M6&&arguments[6]!==void 0?arguments[6]:[],y=20,d=u,w=0,g=0,a=0,s=0,v=0,P=0,T=0,C=0;T<=y;++T)C=T/y,w=p(e,i,C),g=p(t,n,C),a=p(i,r,C),s=p(n,h,C),v=p(w,a,C),P=p(g,s,C),d.push(v,P);return d}E.__esModule=!0,E.default=x;var b=c(81),m=O(b),l=c(35),f=O(l),o=c(3)},function(B,E,c){"use strict";function O(f){return f&&f.__esModule?f:{default:f}}function x(f,o){if(!(f instanceof o))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var _=c(61),b=O(_),m=c(2),l=function(){function f(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;x(this,f),this.x=o,this.y=e,this.radius=t,this.type=m.SHAPES.CIRC}return f.prototype.clone=function(){return new f(this.x,this.y,this.radius)},f.prototype.contains=function(o,e){if(this.radius<=0)return!1;var t=this.radius*this.radius,i=this.x-o,n=this.y-e;return i*=i,n*=n,i+n<=t},f.prototype.getBounds=function(){return new b.default(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)},f}();E.default=l},function(B,E,c){"use strict";function O(f){return f&&f.__esModule?f:{default:f}}function x(f,o){if(!(f instanceof o))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var _=c(61),b=O(_),m=c(2),l=function(){function f(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;x(this,f),this.x=o,this.y=e,this.width=t,this.height=i,this.type=m.SHAPES.ELIP}return f.prototype.clone=function(){return new f(this.x,this.y,this.width,this.height)},f.prototype.contains=function(o,e){if(this.width<=0||this.height<=0)return!1;var t=(o-this.x)/this.width,i=(e-this.y)/this.height;return t*=t,i*=i,t+i<=1},f.prototype.getBounds=function(){return new b.default(this.x-this.width,this.y-this.height,this.width,this.height)},f}();E.default=l},function(B,E,c){"use strict";function O(f){return f&&f.__esModule?f:{default:f}}function x(f,o){if(!(f instanceof o))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var _=c(60),b=O(_),m=c(2),l=function(){function f(){for(var o=arguments.length,e=Array(o),t=0;te!=y>e&&o<(u-h)*((e-p)/(y-p))+h;d&&(t=!t)}return t},f}();E.default=l},function(B,E,c){"use strict";function O(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var x=c(2),_=function(){function b(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,e=arguments.length>4&&arguments[4]!==void 0?arguments[4]:20;O(this,b),this.x=m,this.y=l,this.width=f,this.height=o,this.radius=e,this.type=x.SHAPES.RREC}return b.prototype.clone=function(){return new b(this.x,this.y,this.width,this.height,this.radius)},b.prototype.contains=function(m,l){if(this.width<=0||this.height<=0)return!1;if(m>=this.x&&m<=this.x+this.width&&l>=this.y&&l<=this.y+this.height){if(l>=this.y+this.radius&&l<=this.y+this.height-this.radius||m>=this.x+this.radius&&m<=this.x+this.width-this.radius)return!0;var f=m-(this.x+this.radius),o=l-(this.y+this.radius),e=this.radius*this.radius;if(f*f+o*o<=e||(f=m-(this.x+this.width-this.radius),f*f+o*o<=e)||(o=l-(this.y+this.height-this.radius),f*f+o*o<=e)||(f=m-(this.x+this.radius),f*f+o*o<=e))return!0}return!1},b}();E.default=_},function(B,E,c){"use strict";function O(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var x=c(2),_=function(){function b(m){O(this,b),this.renderer=m}return b.prototype.pushMask=function(m){var l=this.renderer;l.context.save();var f=m.alpha,o=m.transform.worldTransform,e=l.resolution;l.context.setTransform(o.a*e,o.b*e,o.c*e,o.d*e,o.tx*e,o.ty*e),m._texture||(this.renderGraphicsShape(m),l.context.clip()),m.worldAlpha=f},b.prototype.renderGraphicsShape=function(m){var l=this.renderer.context,f=m.graphicsData.length;if(f!==0){l.beginPath();for(var o=0;oS?S:R,l.moveTo(P,T+R),l.lineTo(P,T+M-R),l.quadraticCurveTo(P,T+M,P+R,T+M),l.lineTo(P+C-R,T+M),l.quadraticCurveTo(P+C,T+M,P+C,T+M-R),l.lineTo(P+C,T+R),l.quadraticCurveTo(P+C,T,P+C-R,T),l.lineTo(P+R,T),l.quadraticCurveTo(P,T,P,T+R),l.closePath()}}}},b.prototype.popMask=function(m){m.context.restore()},b.prototype.destroy=function(){},b}();E.default=_},function(B,E,c){"use strict";function O(l){return l&&l.__esModule?l:{default:l}}function x(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return(0,m.default)()?(l[_.BLEND_MODES.NORMAL]="source-over",l[_.BLEND_MODES.ADD]="lighter",l[_.BLEND_MODES.MULTIPLY]="multiply",l[_.BLEND_MODES.SCREEN]="screen",l[_.BLEND_MODES.OVERLAY]="overlay",l[_.BLEND_MODES.DARKEN]="darken",l[_.BLEND_MODES.LIGHTEN]="lighten",l[_.BLEND_MODES.COLOR_DODGE]="color-dodge",l[_.BLEND_MODES.COLOR_BURN]="color-burn",l[_.BLEND_MODES.HARD_LIGHT]="hard-light",l[_.BLEND_MODES.SOFT_LIGHT]="soft-light",l[_.BLEND_MODES.DIFFERENCE]="difference",l[_.BLEND_MODES.EXCLUSION]="exclusion",l[_.BLEND_MODES.HUE]="hue",l[_.BLEND_MODES.SATURATION]="saturate",l[_.BLEND_MODES.COLOR]="color",l[_.BLEND_MODES.LUMINOSITY]="luminosity"):(l[_.BLEND_MODES.NORMAL]="source-over",l[_.BLEND_MODES.ADD]="lighter",l[_.BLEND_MODES.MULTIPLY]="source-over",l[_.BLEND_MODES.SCREEN]="source-over",l[_.BLEND_MODES.OVERLAY]="source-over",l[_.BLEND_MODES.DARKEN]="source-over",l[_.BLEND_MODES.LIGHTEN]="source-over",l[_.BLEND_MODES.COLOR_DODGE]="source-over",l[_.BLEND_MODES.COLOR_BURN]="source-over",l[_.BLEND_MODES.HARD_LIGHT]="source-over",l[_.BLEND_MODES.SOFT_LIGHT]="source-over",l[_.BLEND_MODES.DIFFERENCE]="source-over",l[_.BLEND_MODES.EXCLUSION]="source-over",l[_.BLEND_MODES.HUE]="source-over",l[_.BLEND_MODES.SATURATION]="source-over",l[_.BLEND_MODES.COLOR]="source-over",l[_.BLEND_MODES.LUMINOSITY]="source-over"),l}E.__esModule=!0,E.default=x;var _=c(2),b=c(101),m=O(b)},function(B,E,c){"use strict";function O(f){return f&&f.__esModule?f:{default:f}}function x(f,o){if(!(f instanceof o))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var _=c(2),b=c(5),m=O(b),l=function(){function f(o){x(this,f),this.renderer=o,this.count=0,this.checkCount=0,this.maxIdle=m.default.GC_MAX_IDLE,this.checkCountMax=m.default.GC_MAX_CHECK_COUNT,this.mode=m.default.GC_MODE}return f.prototype.update=function(){this.count++,this.mode!==_.GC_MODES.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run()))},f.prototype.run=function(){for(var o=this.renderer.textureManager,e=o._managedTextures,t=!1,i=0;ithis.maxIdle&&(o.destroyTexture(n,!0),e[i]=null,t=!0)}if(t){for(var r=0,h=0;h=0;t--)this.unload(o.children[t])},f}();E.default=l},function(B,E,c){"use strict";function O(e){return e&&e.__esModule?e:{default:e}}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var _=c(6),b=c(2),m=c(38),l=O(m),f=c(3),o=function(){function e(t){x(this,e),this.renderer=t,this.gl=t.gl,this._managedTextures=[]}return e.prototype.bindTexture=function(){},e.prototype.getTexture=function(){},e.prototype.updateTexture=function(t,i){var n=this.gl,r=!!t._glRenderTargets;if(!t.hasLoaded)return null;var h=this.renderer.boundTextures;if(i===void 0){i=0;for(var p=0;p-1){var h=r.split(" "),p=h[1],u=h[2],y=1;u.indexOf("[")>-1&&(t=u.split(/\[|]/),u=t[0],y*=Number(t[1])),u.match(o)||(e[u]={value:l(p,y),name:u,type:p})}}return e}E.__esModule=!0,E.default=x;var b=c(6),m=O(b),l=m.default.shader.defaultValue},function(B,E,c){"use strict";function O(m,l,f){var o=m.identity();return o.translate(l.x/f.width,l.y/f.height),o.scale(f.width,f.height),o}function x(m,l,f){var o=m.identity();o.translate(l.x/f.width,l.y/f.height);var e=f.width/l.width,t=f.height/l.height;return o.scale(e,t),o}function _(m,l,f,o){var e=o.worldTransform.copy(b.Matrix.TEMP_MATRIX),t=o._texture.baseTexture,i=m.identity(),n=f.height/f.width;i.translate(l.x/f.width,l.y/f.height),i.scale(1,n);var r=f.width/t.width,h=f.height/t.height;return e.tx/=t.width*r,e.ty/=t.width*r,e.invert(),i.prepend(e),i.scale(1,1/n),i.scale(r,h),i.translate(o.anchor.x,o.anchor.y),i}E.__esModule=!0,E.calculateScreenSpaceMatrix=O,E.calculateNormalizedScreenSpaceMatrix=x,E.calculateSpriteMatrix=_;var b=c(4)},function(B,E,c){"use strict";function O(a){if(a&&a.__esModule)return a;var s={};if(a!=null)for(var v in a)Object.prototype.hasOwnProperty.call(a,v)&&(s[v]=a[v]);return s.default=a,s}function x(a){return a&&a.__esModule?a:{default:a}}function _(a,s){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!s||typeof s!="object"&&typeof s!="function"?a:s}function b(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);a.prototype=Object.create(s&&s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(a,s):a.__proto__=s)}function m(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var l=c(24),f=x(l),o=c(38),e=x(o),t=c(104),i=x(t),n=c(4),r=c(23),h=x(r),p=c(203),u=O(p),y=c(41),d=x(y),w=function a(){m(this,a),this.renderTarget=null,this.sourceFrame=new n.Rectangle,this.destinationFrame=new n.Rectangle,this.filters=[],this.target=null,this.resolution=1},g=function(a){function s(v){m(this,s);var P=_(this,a.call(this,v));return P.gl=P.renderer.gl,P.quad=new i.default(P.gl,v.state.attribState),P.shaderCache={},P.pool={},P.filterData=null,P}return b(s,a),s.prototype.pushFilter=function(v,P){var T=this.renderer,C=this.filterData;if(!C){C=this.renderer._activeRenderTarget.filterStack;var M=new w;M.sourceFrame=M.destinationFrame=this.renderer._activeRenderTarget.size,M.renderTarget=T._activeRenderTarget,this.renderer._activeRenderTarget.filterData=C={index:0,stack:[M]},this.filterData=C}var R=C.stack[++C.index];R||(R=C.stack[C.index]=new w);var S=P[0].resolution,L=0|P[0].padding,A=v.filterArea||v.getBounds(!0),D=R.sourceFrame,I=R.destinationFrame;D.x=(A.x*S|0)/S,D.y=(A.y*S|0)/S,D.width=(A.width*S|0)/S,D.height=(A.height*S|0)/S,C.stack[0].renderTarget.transform||D.fit(C.stack[0].destinationFrame),D.pad(L),I.width=D.width,I.height=D.height;var U=this.getPotRenderTarget(T.gl,D.width,D.height,S);R.target=v,R.filters=P,R.resolution=S,R.renderTarget=U,U.setFrame(I,D),T.bindRenderTarget(U),U.clear()},s.prototype.popFilter=function(){var v=this.filterData,P=v.stack[v.index-1],T=v.stack[v.index];this.quad.map(T.renderTarget.size,T.sourceFrame).upload();var C=T.filters;if(C.length===1)C[0].apply(this,T.renderTarget,P.renderTarget,!1),this.freePotRenderTarget(T.renderTarget);else{var M=T.renderTarget,R=this.getPotRenderTarget(this.renderer.gl,T.sourceFrame.width,T.sourceFrame.height,T.resolution);R.setFrame(T.destinationFrame,T.sourceFrame),R.clear();var S=0;for(S=0;S0&&(o+=` else `),e1&&arguments[1]!==void 0?arguments[1]:[];return b[x.BLEND_MODES.NORMAL]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.ADD]=[_.ONE,_.DST_ALPHA],b[x.BLEND_MODES.MULTIPLY]=[_.DST_COLOR,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.SCREEN]=[_.ONE,_.ONE_MINUS_SRC_COLOR],b[x.BLEND_MODES.OVERLAY]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.DARKEN]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.LIGHTEN]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.COLOR_DODGE]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.COLOR_BURN]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.HARD_LIGHT]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.SOFT_LIGHT]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.DIFFERENCE]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.EXCLUSION]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.HUE]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.SATURATION]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.COLOR]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.LUMINOSITY]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b}E.__esModule=!0,E.default=O;var x=c(2)},function(B,E,c){"use strict";function O(_){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return b[x.DRAW_MODES.POINTS]=_.POINTS,b[x.DRAW_MODES.LINES]=_.LINES,b[x.DRAW_MODES.LINE_LOOP]=_.LINE_LOOP,b[x.DRAW_MODES.LINE_STRIP]=_.LINE_STRIP,b[x.DRAW_MODES.TRIANGLES]=_.TRIANGLES,b[x.DRAW_MODES.TRIANGLE_STRIP]=_.TRIANGLE_STRIP,b[x.DRAW_MODES.TRIANGLE_FAN]=_.TRIANGLE_FAN,b}E.__esModule=!0,E.default=O;var x=c(2)},function(B,E){"use strict";function c(O){var x=O.getContextAttributes();x.stencil||console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly")}E.__esModule=!0,E.default=c},function(B,E,c){"use strict";function O(i){return i&&i.__esModule?i:{default:i}}function x(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var _=c(36),b=O(_),m=c(2),l=c(4),f=c(64),o=O(f),e=new l.Matrix,t=function(){function i(n){x(this,i),this.renderer=n}return i.prototype.render=function(n){var r=n._texture,h=this.renderer,p=r._frame.width,u=r._frame.height,y=n.transform.worldTransform,d=0,w=0;if(!(r.orig.width<=0||r.orig.height<=0)&&r.baseTexture.source&&(h.setBlendMode(n.blendMode),r.valid)){h.context.globalAlpha=n.worldAlpha;var g=r.baseTexture.scaleMode===m.SCALE_MODES.LINEAR;h.smoothProperty&&h.context[h.smoothProperty]!==g&&(h.context[h.smoothProperty]=g),r.trim?(d=r.trim.width/2+r.trim.x-n.anchor.x*r.orig.width,w=r.trim.height/2+r.trim.y-n.anchor.y*r.orig.height):(d=(.5-n.anchor.x)*r.orig.width,w=(.5-n.anchor.y)*r.orig.height),r.rotate&&(y.copy(e),y=e,l.GroupD8.matrixAppendRotationInv(y,r.rotate,d,w),d=0,w=0),d-=p/2,w-=u/2,h.roundPixels?(h.context.setTransform(y.a,y.b,y.c,y.d,y.tx*h.resolution|0,y.ty*h.resolution|0),d=0|d,w=0|w):h.context.setTransform(y.a,y.b,y.c,y.d,y.tx*h.resolution,y.ty*h.resolution);var a=r.baseTexture.resolution;n.tint!==16777215?(n.cachedTint!==n.tint&&(n.cachedTint=n.tint,n.tintedTexture=o.default.getTintedTexture(n,n.tint)),h.context.drawImage(n.tintedTexture,0,0,p*a,u*a,d*h.resolution,w*h.resolution,p*h.resolution,u*h.resolution)):h.context.drawImage(r.baseTexture.source,r._frame.x*a,r._frame.y*a,p*a,u*a,d*h.resolution,w*h.resolution,p*h.resolution,u*h.resolution)}},i.prototype.destroy=function(){this.renderer=null},i}();E.default=t,b.default.registerPlugin("sprite",t)},function(B,E){"use strict";function c(x,_){if(!(x instanceof _))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var O=function(){function x(_){c(this,x),this.vertices=new ArrayBuffer(_),this.float32View=new Float32Array(this.vertices),this.uint32View=new Uint32Array(this.vertices)}return x.prototype.destroy=function(){this.vertices=null,this.positions=null,this.uvs=null,this.colors=null},x}();E.default=O},function(B,E,c){"use strict";function O(C){return C&&C.__esModule?C:{default:C}}function x(C,M){if(!(C instanceof M))throw new TypeError("Cannot call a class as a function")}function _(C,M){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!M||typeof M!="object"&&typeof M!="function"?C:M}function b(C,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);C.prototype=Object.create(M&&M.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(C,M):C.__proto__=M)}E.__esModule=!0;var m=c(37),l=O(m),f=c(62),o=O(f),e=c(66),t=O(e),i=c(214),n=O(i),r=c(207),h=O(r),p=c(212),u=O(p),y=c(5),d=O(y),w=c(6),g=O(w),a=c(41),s=O(a),v=0,P=0,T=function(C){function M(R){x(this,M);var S=_(this,C.call(this,R));S.vertSize=5,S.vertByteSize=4*S.vertSize,S.size=d.default.SPRITE_BATCH_SIZE,S.buffers=[];for(var L=1;L<=s.default.nextPow2(S.size);L*=2)S.buffers.push(new u.default(4*L*S.vertByteSize));S.indices=(0,t.default)(S.size),S.shader=null,S.currentIndex=0,v=0,S.groups=[];for(var A=0;A=this.size&&this.flush(),R._texture._uvs&&(this.sprites[this.currentIndex++]=R)},M.prototype.flush=function(){if(this.currentIndex!==0){var R=this.renderer.gl,S=this.MAX_TEXTURES,L=s.default.nextPow2(this.currentIndex),A=s.default.log2(L),D=this.buffers[A],I=this.sprites,U=this.groups,N=D.float32View,W=D.uint32View,H=this.boundTextures,tt=this.renderer.boundTextures,it=this.renderer.textureGC.count,K=0,at=void 0,ut=void 0,mt=1,wt=0,Dt=U[0],yt=void 0,Tt=void 0,It=I[0].blendMode;Dt.textureCount=0,Dt.start=0,Dt.blend=It,v++;var bt=void 0;for(bt=0;bt0&&(o+=` else `),e0?(this.context.shadowColor=s.dropShadowColor,this.context.shadowBlur=s.dropShadowBlur):this.context.fillStyle=s.dropShadowColor;for(var N=Math.cos(s.dropShadowAngle)*s.dropShadowDistance,W=Math.sin(s.dropShadowAngle)*s.dropShadowDistance,H=0;H3&&arguments[3]!==void 0&&arguments[3],T=this._style,C=T.letterSpacing;if(C===0)return void(P?this.context.strokeText(a,s,v):this.context.fillText(a,s,v));for(var M=String.prototype.split.call(a,""),R=s,S=0,L="";SP)for(var L=M[R].split(""),A=0;AC?(s+=` `+L[A],C=P-D):(A===0&&(s+=" "),s+=L[A],C-=D)}else{var I=S+this.context.measureText(" ").width;R===0||I>C?(R>0&&(s+=` `),s+=M[R],C=P-S):(C-=I,s+=" "+M[R])}}T=0;P--){var T=v[P].trim();/([\"\'])[^\'\"]+\1/.test(T)||(T='"'+T+'"'),v[P]=T}return a.fontStyle+" "+a.fontVariant+" "+a.fontWeight+" "+s+" "+v.join(",")},g.calculateFontProperties=function(a){if(g.fontPropertiesCache[a])return g.fontPropertiesCache[a];var s={},v=g.fontPropertiesCanvas,P=g.fontPropertiesContext;P.font=a;var T=Math.ceil(P.measureText("|M\xC9q").width),C=Math.ceil(P.measureText("M").width),M=2*C;C=1.4*C|0,v.width=T,v.height=M,P.fillStyle="#f00",P.fillRect(0,0,T,M),P.font=a,P.textBaseline="alphabetic",P.fillStyle="#000",P.fillText("|M\xC9q",0,C);var R=P.getImageData(0,0,T,M).data,S=R.length,L=4*T,A=0,D=0,I=!1;for(A=0;AC;--A){for(var N=0;N0&&arguments[0]!==void 0?arguments[0]:performance.now(),n=void 0;i>this.lastTime?(n=this.elapsedMS=i-this.lastTime,n>this._maxElapsedMS&&(n=this._maxElapsedMS),this.deltaTime=n*m.default.TARGET_FPMS*this.speed,this._emitter.emit(o,this.deltaTime)):this.deltaTime=this.elapsedMS=0,this.lastTime=i},_(t,[{key:"FPS",get:function(){return 1e3/this.elapsedMS}},{key:"minFPS",get:function(){return 1e3/this._maxElapsedMS},set:function(i){var n=Math.min(Math.max(0,i)/1e3,m.default.TARGET_FPMS);this._maxElapsedMS=1/n}}]),t}();E.default=e},function(B,E){"use strict";function c(){var O=!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform);return!O}E.__esModule=!0,E.default=c},function(B,E,c){"use strict";function O(l){return l&&l.__esModule?l:{default:l}}function x(l){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window.location;if(l.indexOf("data:")===0)return"";f=f||window.location,m||(m=document.createElement("a")),m.href=l,l=b.default.parse(m.href);var o=!l.port&&f.port===""||l.port===f.port;return l.hostname===f.hostname&&o&&l.protocol===f.protocol?"":"anonymous"}E.__esModule=!0,E.default=x;var _=c(131),b=O(_),m=void 0},function(B,E,c){"use strict";function O(m){return m&&m.__esModule?m:{default:m}}function x(m){return b.default.tablet||b.default.phone?4:m}E.__esModule=!0,E.default=x;var _=c(28),b=O(_)},function(B,E){"use strict";function c(O){O.__plugins={},O.registerPlugin=function(x,_){O.__plugins[x]=_},O.prototype.initPlugins=function(){this.plugins=this.plugins||{};for(var x in O.__plugins)this.plugins[x]=new O.__plugins[x](this)},O.prototype.destroyPlugins=function(){for(var x in this.plugins)this.plugins[x].destroy(),this.plugins[x]=null;this.plugins=null}}E.__esModule=!0,E.default={mixin:function(O){c(O)}}},function(B,E,c){"use strict";function O(a){if(a&&a.__esModule)return a;var s={};if(a!=null)for(var v in a)Object.prototype.hasOwnProperty.call(a,v)&&(s[v]=a[v]);return s.default=a,s}function x(a){var s=new Error().stack;typeof s=="undefined"?console.warn("Deprecation Warning: ",a):(s=s.split(` `).splice(3).join(` `),console.groupCollapsed?(console.groupCollapsed("%cDeprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",a),console.warn(s),console.groupEnd()):(console.warn("Deprecation Warning: ",a),console.warn(s)))}var _=c(1),b=O(_),m=c(124),l=O(m),f=c(125),o=O(f),e=c(67),t=O(e),i=c(116),n=O(i),r=c(126),h=O(r),p=c(120),u=O(p);b.SpriteBatch=function(){throw new ReferenceError("SpriteBatch does not exist any more, please use the new ParticleContainer instead.")},b.AssetLoader=function(){throw new ReferenceError("The loader system was overhauled in pixi v3, please see the new PIXI.loaders.Loader class.")},Object.defineProperties(b,{Stage:{enumerable:!0,get:function(){return x("You do not need to use a PIXI Stage any more, you can simply render any container."),b.Container}},DisplayObjectContainer:{enumerable:!0,get:function(){return x("DisplayObjectContainer has been shortened to Container, please use Container from now on."),b.Container}},Strip:{enumerable:!0,get:function(){return x("The Strip class has been renamed to Mesh and moved to mesh.Mesh, please use mesh.Mesh from now on."),l.Mesh}},Rope:{enumerable:!0,get:function(){return x("The Rope class has been moved to mesh.Rope, please use mesh.Rope from now on."),l.Rope}},ParticleContainer:{enumerable:!0,get:function(){return x("The ParticleContainer class has been moved to particles.ParticleContainer, please use particles.ParticleContainer from now on."),o.ParticleContainer}},MovieClip:{enumerable:!0,get:function(){return x("The MovieClip class has been moved to extras.AnimatedSprite, please use extras.AnimatedSprite."),t.AnimatedSprite}},TilingSprite:{enumerable:!0,get:function(){return x("The TilingSprite class has been moved to extras.TilingSprite, please use extras.TilingSprite from now on."),t.TilingSprite}},BitmapText:{enumerable:!0,get:function(){return x("The BitmapText class has been moved to extras.BitmapText, please use extras.BitmapText from now on."),t.BitmapText}},blendModes:{enumerable:!0,get:function(){return x("The blendModes has been moved to BLEND_MODES, please use BLEND_MODES from now on."),b.BLEND_MODES}},scaleModes:{enumerable:!0,get:function(){return x("The scaleModes has been moved to SCALE_MODES, please use SCALE_MODES from now on."),b.SCALE_MODES}},BaseTextureCache:{enumerable:!0,get:function(){return x("The BaseTextureCache class has been moved to utils.BaseTextureCache, please use utils.BaseTextureCache from now on."),b.utils.BaseTextureCache}},TextureCache:{enumerable:!0,get:function(){return x("The TextureCache class has been moved to utils.TextureCache, please use utils.TextureCache from now on."),b.utils.TextureCache}},math:{enumerable:!0,get:function(){return x("The math namespace is deprecated, please access members already accessible on PIXI."),b}},AbstractFilter:{enumerable:!0,get:function(){return x("AstractFilter has been renamed to Filter, please use PIXI.Filter"),b.Filter}},TransformManual:{enumerable:!0,get:function(){return x("TransformManual has been renamed to TransformBase, please update your pixi-spine"),b.TransformBase}},TARGET_FPMS:{enumerable:!0,get:function(){return x("PIXI.TARGET_FPMS has been deprecated, please use PIXI.settings.TARGET_FPMS"),b.settings.TARGET_FPMS},set:function(a){x("PIXI.TARGET_FPMS has been deprecated, please use PIXI.settings.TARGET_FPMS"),b.settings.TARGET_FPMS=a}},FILTER_RESOLUTION:{enumerable:!0,get:function(){return x("PIXI.FILTER_RESOLUTION has been deprecated, please use PIXI.settings.FILTER_RESOLUTION"),b.settings.FILTER_RESOLUTION},set:function(a){x("PIXI.FILTER_RESOLUTION has been deprecated, please use PIXI.settings.FILTER_RESOLUTION"),b.settings.FILTER_RESOLUTION=a}},RESOLUTION:{enumerable:!0,get:function(){return x("PIXI.RESOLUTION has been deprecated, please use PIXI.settings.RESOLUTION"),b.settings.RESOLUTION},set:function(a){x("PIXI.RESOLUTION has been deprecated, please use PIXI.settings.RESOLUTION"),b.settings.RESOLUTION=a}},MIPMAP_TEXTURES:{enumerable:!0,get:function(){return x("PIXI.MIPMAP_TEXTURES has been deprecated, please use PIXI.settings.MIPMAP_TEXTURES"),b.settings.MIPMAP_TEXTURES},set:function(a){x("PIXI.MIPMAP_TEXTURES has been deprecated, please use PIXI.settings.MIPMAP_TEXTURES"),b.settings.MIPMAP_TEXTURES=a}},SPRITE_BATCH_SIZE:{enumerable:!0,get:function(){return x("PIXI.SPRITE_BATCH_SIZE has been deprecated, please use PIXI.settings.SPRITE_BATCH_SIZE"),b.settings.SPRITE_BATCH_SIZE},set:function(a){x("PIXI.SPRITE_BATCH_SIZE has been deprecated, please use PIXI.settings.SPRITE_BATCH_SIZE"),b.settings.SPRITE_BATCH_SIZE=a}},SPRITE_MAX_TEXTURES:{enumerable:!0,get:function(){return x("PIXI.SPRITE_MAX_TEXTURES has been deprecated, please use PIXI.settings.SPRITE_MAX_TEXTURES"),b.settings.SPRITE_MAX_TEXTURES},set:function(a){x("PIXI.SPRITE_MAX_TEXTURES has been deprecated, please use PIXI.settings.SPRITE_MAX_TEXTURES"),b.settings.SPRITE_MAX_TEXTURES=a}},RETINA_PREFIX:{enumerable:!0,get:function(){return x("PIXI.RETINA_PREFIX has been deprecated, please use PIXI.settings.RETINA_PREFIX"),b.settings.RETINA_PREFIX},set:function(a){x("PIXI.RETINA_PREFIX has been deprecated, please use PIXI.settings.RETINA_PREFIX"),b.settings.RETINA_PREFIX=a}},DEFAULT_RENDER_OPTIONS:{enumerable:!0,get:function(){return x("PIXI.DEFAULT_RENDER_OPTIONS has been deprecated, please use PIXI.settings.DEFAULT_RENDER_OPTIONS"),b.settings.RENDER_OPTIONS}}});for(var y=[{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"}],d=function(a){var s=y[a];Object.defineProperty(b[s.parent],"DEFAULT",{enumerable:!0,get:function(){return x("PIXI."+s.parent+".DEFAULT has been deprecated, please use PIXI.settings."+s.target),b.settings[s.target]},set:function(v){x("PIXI."+s.parent+".DEFAULT has been deprecated, please use PIXI.settings."+s.target),b.settings[s.target]=v}})},w=0;w1?this._fontStyle="italic":a.indexOf("oblique")>-1?this._fontStyle="oblique":this._fontStyle="normal",a.indexOf("small-caps")>-1?this._fontVariant="small-caps":this._fontVariant="normal";var s=a.split(" "),v=-1;this._fontSize=26;for(var P=0;P-1&&v=this._durations[this.currentFrame];)h-=this._durations[this.currentFrame]*p,this._currentTime+=p;this._currentTime+=h/this._durations[this.currentFrame]}else this._currentTime+=n;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()):r!==this.currentFrame&&this.updateTexture()},t.prototype.updateTexture=function(){this._texture=this._textures[this.currentFrame],this._textureID=-1,this.onFrameChange&&this.onFrameChange(this.currentFrame)},t.prototype.destroy=function(){this.stop(),e.prototype.destroy.call(this)},t.fromFrames=function(i){for(var n=[],r=0;r1&&arguments[1]!==void 0?arguments[1]:{};_(this,r);var u=b(this,n.call(this));return u._textWidth=0,u._textHeight=0,u._glyphs=[],u._font={tint:p.tint!==void 0?p.tint:16777215,align:p.align||"left",name:null,size:0},u.font=p.font,u._text=h,u.maxWidth=0,u.maxLineHeight=0,u._anchor=new t.default(function(){u.dirty=!0},u,0,0),u.dirty=!1,u.updateText(),u}return m(r,n),r.prototype.updateText=function(){for(var h=r.fonts[this._font.name],p=this._font.size/h.size,u=new o.Point,y=[],d=[],w=null,g=0,a=0,s=0,v=-1,P=0,T=0,C=0;C0&&u.x*p>this.maxWidth)o.utils.removeItems(y,v,C-v),C=v,v=-1,d.push(P),a=Math.max(a,P),s++,u.x=0,u.y+=h.lineHeight,w=null;else{var R=h.chars[M];R&&(w&&R.kerning[w]&&(u.x+=R.kerning[w]),y.push({texture:R.texture,line:s,charCode:M,position:new o.Point(u.x+R.xOffset,u.y+R.yOffset)}),g=u.x+(R.texture.width+R.xOffset),u.x+=R.xAdvance,T=Math.max(T,R.yOffset+R.texture.height),w=M)}}d.push(g),a=Math.max(a,g);for(var S=[],L=0;L<=s;L++){var A=0;this._font.align==="right"?A=a-d[L]:this._font.align==="center"&&(A=(a-d[L])/2),S.push(A)}for(var D=y.length,I=this.tint,U=0;U=0?h:16777215,this.dirty=!0}},{key:"align",get:function(){return this._font.align},set:function(h){this._font.align=h||"left",this.dirty=!0}},{key:"anchor",get:function(){return this._anchor},set:function(h){typeof h=="number"?this._anchor.set(h):this._anchor.copy(h)}},{key:"font",get:function(){return this._font},set:function(h){h&&(typeof h=="string"?(h=h.split(" "),this._font.name=h.length===1?h[0]:h.slice(1).join(" "),this._font.size=h.length>=2?parseInt(h[0],10):r.fonts[this._font.name].size):(this._font.name=h.name,this._font.size=typeof h.size=="number"?h.size:parseInt(h.size,10)),this.dirty=!0)}},{key:"text",get:function(){return this._text},set:function(h){h=h.toString()||" ",this._text!==h&&(this._text=h,this.dirty=!0)}},{key:"textWidth",get:function(){return this.validate(),this._textWidth}},{key:"textHeight",get:function(){return this.validate(),this._textHeight}}]),r}(o.Container);E.default=i,i.fonts={}},function(B,E,c){"use strict";function O(p){return p&&p.__esModule?p:{default:p}}function x(p){if(p&&p.__esModule)return p;var u={};if(p!=null)for(var y in p)Object.prototype.hasOwnProperty.call(p,y)&&(u[y]=p[y]);return u.default=p,u}function _(p,u){if(!(p instanceof u))throw new TypeError("Cannot call a class as a function")}function b(p,u){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||typeof u!="object"&&typeof u!="function"?p:u}function m(p,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);p.prototype=Object.create(u&&u.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(p,u):p.__proto__=u)}E.__esModule=!0;var l=function(){function p(u,y){for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:100,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:100;_(this,u);var g=b(this,p.call(this,y));return g.tileTransform=new o.TransformStatic,g._width=d,g._height=w,g._canvasPattern=null,g.uvTransform=y.transform||new n.default(y),g.pluginName="tilingSprite",g}return m(u,p),u.prototype._onTextureUpdate=function(){this.uvTransform&&(this.uvTransform.texture=this._texture)},u.prototype._renderWebGL=function(y){var d=this._texture;d&&d.valid&&(this.tileTransform.updateLocalTransform(),this.uvTransform.update(),y.setObjectRenderer(y.plugins[this.pluginName]),y.plugins[this.pluginName].render(this))},u.prototype._renderCanvas=function(y){var d=this._texture;if(d.baseTexture.hasLoaded){var w=y.context,g=this.worldTransform,a=y.resolution,s=d.baseTexture,v=d.baseTexture.resolution,P=this.tilePosition.x/this.tileScale.x%d._frame.width,T=this.tilePosition.y/this.tileScale.y%d._frame.height;if(!this._canvasPattern){var C=new o.CanvasRenderTarget(d._frame.width,d._frame.height,v);this.tint!==16777215?(this.cachedTint!==this.tint&&(this.cachedTint=this.tint,this.tintedTexture=t.default.getTintedTexture(this,this.tint)),C.context.drawImage(this.tintedTexture,0,0)):C.context.drawImage(s.source,-d._frame.x,-d._frame.y),this._canvasPattern=C.context.createPattern(C.canvas,"repeat")}w.globalAlpha=this.worldAlpha,w.setTransform(g.a*a,g.b*a,g.c*a,g.d*a,g.tx*a,g.ty*a),w.scale(this.tileScale.x/v,this.tileScale.y/v),w.translate(P+this.anchor.x*-this._width,T+this.anchor.y*-this._height),y.setBlendMode(this.blendMode),w.fillStyle=this._canvasPattern,w.fillRect(-P,-T,this._width/this.tileScale.x*v,this._height/this.tileScale.y*v)}},u.prototype._calculateBounds=function(){var y=this._width*-this._anchor._x,d=this._height*-this._anchor._y,w=this._width*(1-this._anchor._x),g=this._height*(1-this._anchor._y);this._bounds.addFrame(this.transform,y,d,w,g)},u.prototype.getLocalBounds=function(y){return this.children.length===0?(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),y||(this._localBoundsRect||(this._localBoundsRect=new o.Rectangle),y=this._localBoundsRect),this._bounds.getRectangle(y)):p.prototype.getLocalBounds.call(this,y)},u.prototype.containsPoint=function(y){this.worldTransform.applyInverse(y,r);var d=this._width,w=this._height,g=-d*this.anchor._x;if(r.x>g&&r.xa&&r.y0&&arguments[0]!==void 0?arguments[0]:new _.Point,m=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.parent?this.parent.toGlobal(this.position,b,m):(b.x=this.position.x,b.y=this.position.y),b}},function(B,E,c){"use strict";function O(i){if(i&&i.__esModule)return i;var n={};if(i!=null)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r]);return n.default=i,n}function x(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function _(i,n){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||typeof n!="object"&&typeof n!="function"?i:n}function b(i,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);i.prototype=Object.create(n&&n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(i,n):i.__proto__=n)}E.__esModule=!0;var m=c(1),l=O(m),f=c(2),o=(c(7),new l.Matrix),e=new Float32Array(4),t=function(i){function n(r){x(this,n);var h=_(this,i.call(this,r));return h.shader=null,h.simpleShader=null,h.quad=null,h}return b(n,i),n.prototype.onContextChange=function(){var r=this.renderer.gl;this.shader=new l.Shader(r,`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; uniform mat3 translationMatrix; uniform mat3 uTransform; varying vec2 vTextureCoord; void main(void) { gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy; } `,`varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform vec4 uColor; uniform mat3 uMapCoord; uniform vec4 uClampFrame; uniform vec2 uClampOffset; void main(void) { vec2 coord = mod(vTextureCoord - uClampOffset, vec2(1.0, 1.0)) + uClampOffset; coord = (uMapCoord * vec3(coord, 1.0)).xy; coord = clamp(coord, uClampFrame.xy, uClampFrame.zw); vec4 sample = texture2D(uSampler, coord); vec4 color = vec4(uColor.rgb * uColor.a, uColor.a); gl_FragColor = sample * color ; } `),this.simpleShader=new l.Shader(r,`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; uniform mat3 translationMatrix; uniform mat3 uTransform; varying vec2 vTextureCoord; void main(void) { gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy; } `,`varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform vec4 uColor; void main(void) { vec4 sample = texture2D(uSampler, vTextureCoord); vec4 color = vec4(uColor.rgb * uColor.a, uColor.a); gl_FragColor = sample * color; } `),this.renderer.bindVao(null),this.quad=new l.Quad(r,this.renderer.state.attribState),this.quad.initVao(this.shader)},n.prototype.render=function(r){var h=this.renderer,p=this.quad;h.bindVao(p.vao);var u=p.vertices;u[0]=u[6]=r._width*-r.anchor.x,u[1]=u[3]=r._height*-r.anchor.y,u[2]=u[4]=r._width*(1-r.anchor.x),u[5]=u[7]=r._height*(1-r.anchor.y),u=p.uvs,u[0]=u[6]=-r.anchor.x,u[1]=u[3]=-r.anchor.y,u[2]=u[4]=1-r.anchor.x,u[5]=u[7]=1-r.anchor.y,p.upload();var y=r._texture,d=y.baseTexture,w=r.tileTransform.localTransform,g=r.uvTransform,a=d.isPowerOfTwo&&y.frame.width===d.width&&y.frame.height===d.height;a&&(d._glTextures[h.CONTEXT_UID]?a=d.wrapMode!==f.WRAP_MODES.CLAMP:d.wrapMode===f.WRAP_MODES.CLAMP&&(d.wrapMode=f.WRAP_MODES.REPEAT));var s=a?this.simpleShader:this.shader;h.bindShader(s);var v=y.width,P=y.height,T=r._width,C=r._height;o.set(w.a*v/T,w.b*v/C,w.c*P/T,w.d*P/C,w.tx/T,w.ty/C),o.invert(),a?o.append(g.mapCoord):(s.uniforms.uMapCoord=g.mapCoord.toArray(!0),s.uniforms.uClampFrame=g.uClampFrame,s.uniforms.uClampOffset=g.uClampOffset),s.uniforms.uTransform=o.toArray(!0);var M=e;l.utils.hex2rgb(r.tint,M),M[3]=r.worldAlpha,s.uniforms.uColor=M,s.uniforms.translationMatrix=r.transform.worldTransform.toArray(!0),s.uniforms.uSampler=h.bindTexture(y),h.setBlendMode(r.blendMode),p.vao.draw(this.renderer.gl.TRIANGLES,6,0)},n}(l.ObjectRenderer);E.default=t,l.WebGLRenderer.registerPlugin("tilingSprite",t)},function(B,E,c){"use strict";function O(h){return h&&h.__esModule?h:{default:h}}function x(h){if(h&&h.__esModule)return h;var p={};if(h!=null)for(var u in h)Object.prototype.hasOwnProperty.call(h,u)&&(p[u]=h[u]);return p.default=h,p}function _(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function b(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!p||typeof p!="object"&&typeof p!="function"?h:p}function m(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}E.__esModule=!0;var l=function(){function h(p,u){for(var y=0;y1&&arguments[1]!==void 0&&arguments[1],r=i;n&&(this._multiply(r,this.uniforms.m,i),r=this._colorMatrix(r)),this.uniforms.m=r},t.prototype._multiply=function(i,n,r){return i[0]=n[0]*r[0]+n[1]*r[5]+n[2]*r[10]+n[3]*r[15],i[1]=n[0]*r[1]+n[1]*r[6]+n[2]*r[11]+n[3]*r[16],i[2]=n[0]*r[2]+n[1]*r[7]+n[2]*r[12]+n[3]*r[17],i[3]=n[0]*r[3]+n[1]*r[8]+n[2]*r[13]+n[3]*r[18],i[4]=n[0]*r[4]+n[1]*r[9]+n[2]*r[14]+n[3]*r[19],i[5]=n[5]*r[0]+n[6]*r[5]+n[7]*r[10]+n[8]*r[15],i[6]=n[5]*r[1]+n[6]*r[6]+n[7]*r[11]+n[8]*r[16],i[7]=n[5]*r[2]+n[6]*r[7]+n[7]*r[12]+n[8]*r[17],i[8]=n[5]*r[3]+n[6]*r[8]+n[7]*r[13]+n[8]*r[18],i[9]=n[5]*r[4]+n[6]*r[9]+n[7]*r[14]+n[8]*r[19],i[10]=n[10]*r[0]+n[11]*r[5]+n[12]*r[10]+n[13]*r[15],i[11]=n[10]*r[1]+n[11]*r[6]+n[12]*r[11]+n[13]*r[16],i[12]=n[10]*r[2]+n[11]*r[7]+n[12]*r[12]+n[13]*r[17],i[13]=n[10]*r[3]+n[11]*r[8]+n[12]*r[13]+n[13]*r[18],i[14]=n[10]*r[4]+n[11]*r[9]+n[12]*r[14]+n[13]*r[19],i[15]=n[15]*r[0]+n[16]*r[5]+n[17]*r[10]+n[18]*r[15],i[16]=n[15]*r[1]+n[16]*r[6]+n[17]*r[11]+n[18]*r[16],i[17]=n[15]*r[2]+n[16]*r[7]+n[17]*r[12]+n[18]*r[17],i[18]=n[15]*r[3]+n[16]*r[8]+n[17]*r[13]+n[18]*r[18],i[19]=n[15]*r[4]+n[16]*r[9]+n[17]*r[14]+n[18]*r[19],i},t.prototype._colorMatrix=function(i){var n=new Float32Array(i);return n[4]/=255,n[9]/=255,n[14]/=255,n[19]/=255,n},t.prototype.brightness=function(i,n){var r=[i,0,0,0,0,0,i,0,0,0,0,0,i,0,0,0,0,0,1,0];this._loadMatrix(r,n)},t.prototype.greyscale=function(i,n){var r=[i,i,i,0,0,i,i,i,0,0,i,i,i,0,0,0,0,0,1,0];this._loadMatrix(r,n)},t.prototype.blackAndWhite=function(i){var n=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(n,i)},t.prototype.hue=function(i,n){i=(i||0)/180*Math.PI;var r=Math.cos(i),h=Math.sin(i),p=Math.sqrt,u=1/3,y=p(u),d=r+(1-r)*u,w=u*(1-r)-y*h,g=u*(1-r)+y*h,a=u*(1-r)+y*h,s=r+u*(1-r),v=u*(1-r)-y*h,P=u*(1-r)-y*h,T=u*(1-r)+y*h,C=r+u*(1-r),M=[d,w,g,0,0,a,s,v,0,0,P,T,C,0,0,0,0,0,1,0];this._loadMatrix(M,n)},t.prototype.contrast=function(i,n){var r=(i||0)+1,h=-128*(r-1),p=[r,0,0,0,h,0,r,0,0,h,0,0,r,0,h,0,0,0,1,0];this._loadMatrix(p,n)},t.prototype.saturate=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments[1],r=2*i/3+1,h=(r-1)*-.5,p=[r,h,h,0,0,h,r,h,0,0,h,h,r,0,0,0,0,0,1,0];this._loadMatrix(p,n)},t.prototype.desaturate=function(){this.saturate(-1)},t.prototype.negative=function(i){var n=[0,1,1,0,0,1,0,1,0,0,1,1,0,0,0,0,0,0,1,0];this._loadMatrix(n,i)},t.prototype.sepia=function(i){var n=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(n,i)},t.prototype.technicolor=function(i){var n=[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];this._loadMatrix(n,i)},t.prototype.polaroid=function(i){var n=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0];this._loadMatrix(n,i)},t.prototype.toBGR=function(i){var n=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(n,i)},t.prototype.kodachrome=function(i){var n=[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];this._loadMatrix(n,i)},t.prototype.browni=function(i){var n=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0];this._loadMatrix(n,i)},t.prototype.vintage=function(i){var n=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(n,i)},t.prototype.colorTone=function(i,n,r,h,p){i=i||.2,n=n||.15,r=r||16770432,h=h||3375104;var u=(r>>16&255)/255,y=(r>>8&255)/255,d=(255&r)/255,w=(h>>16&255)/255,g=(h>>8&255)/255,a=(255&h)/255,s=[.3,.59,.11,0,0,u,y,d,i,0,w,g,a,n,0,u-w,y-g,d-a,0,0];this._loadMatrix(s,p)},t.prototype.night=function(i,n){i=i||.1;var r=[i*-2,-i,0,0,0,-i,0,i,0,0,0,i,2*i,0,0,0,0,0,1,0];this._loadMatrix(r,n)},t.prototype.predator=function(i,n){var r=[11.224130630493164*i,-4.794486999511719*i,-2.8746118545532227*i,0*i,.40342438220977783*i,-3.6330697536468506*i,9.193157196044922*i,-2.951810836791992*i,0*i,-1.316135048866272*i,-3.2184197902679443*i,-4.2375030517578125*i,7.476448059082031*i,0*i,.8044459223747253*i,0,0,0,1,0];this._loadMatrix(r,n)},t.prototype.lsd=function(i){var n=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(n,i)},t.prototype.reset=function(){var i=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(i,!1)},m(t,[{key:"matrix",get:function(){return this.uniforms.m},set:function(i){this.uniforms.m=i}}]),t}(f.Filter));E.default=o,o.prototype.grayscale=o.prototype.greyscale},function(B,E,c){"use strict";function O(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||typeof t!="object"&&typeof t!="function"?e:t}function b(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}E.__esModule=!0;var m=function(){function e(t,i){for(var n=0;n lumaMax)) color = vec4(rgbA, texColor.a); else color = vec4(rgbB, texColor.a); return color; } void main() { vec2 fragCoord = vTextureCoord * filterArea.xy; vec4 color; color = fxaa(uSampler, fragCoord, filterArea.xy, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM); gl_FragColor = color; } `))}return b(e,o),e}(l.Filter));E.default=f},function(B,E,c){"use strict";function O(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||typeof t!="object"&&typeof t!="function"?e:t}function b(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}E.__esModule=!0;var m=function(){function e(t,i){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:1;this.removeEvents(),this.interactionDOMElement=a,this.resolution=s,this.addEvents()},g.prototype.addEvents=function(){this.interactionDOMElement&&(f.ticker.shared.add(this.update,this),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("pointerout",this.onPointerOut,!0),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,!0),window.addEventListener("pointerup",this.onPointerUp,!0)):(this.normalizeTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,!0),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,!0),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,!0)),this.normalizeMouseEvents&&(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))),window.document.addEventListener("mousemove",this.onMouseMove,!0),this.interactionDOMElement.addEventListener("mousedown",this.onMouseDown,!0),this.interactionDOMElement.addEventListener("mouseout",this.onMouseOut,!0),this.interactionDOMElement.addEventListener("mouseover",this.onMouseOver,!0),window.addEventListener("mouseup",this.onMouseUp,!0),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onTouchStart,!0),this.interactionDOMElement.addEventListener("touchend",this.onTouchEnd,!0),this.interactionDOMElement.addEventListener("touchmove",this.onTouchMove,!0)),this.eventsAdded=!0)},g.prototype.removeEvents=function(){this.interactionDOMElement&&(f.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("pointerout",this.onPointerOut,!0),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,!0),window.removeEventListener("pointerup",this.onPointerUp,!0)):(this.normalizeTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,!0),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,!0),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,!0)),this.normalizeMouseEvents&&(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))),window.document.removeEventListener("mousemove",this.onMouseMove,!0),this.interactionDOMElement.removeEventListener("mousedown",this.onMouseDown,!0),this.interactionDOMElement.removeEventListener("mouseout",this.onMouseOut,!0),this.interactionDOMElement.removeEventListener("mouseover",this.onMouseOver,!0),window.removeEventListener("mouseup",this.onMouseUp,!0),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onTouchStart,!0),this.interactionDOMElement.removeEventListener("touchend",this.onTouchEnd,!0),this.interactionDOMElement.removeEventListener("touchmove",this.onTouchMove,!0)),this.interactionDOMElement=null,this.eventsAdded=!1)},g.prototype.update=function(a){if(this._deltaTime+=a,!(this._deltaTime=0;S--){var L=R[S];if(this.processInteractive(a,L,v,P,M)){if(!L.parent)continue;C=!0,M=!1,P=!1}}return T&&(P&&!C&&(s.hitArea?(s.worldTransform.applyInverse(a,this._tempPoint),C=s.hitArea.contains(this._tempPoint.x,this._tempPoint.y)):s.containsPoint&&(C=s.containsPoint(a))),s.interactive&&(C&&!this.eventData.target&&(this.eventData.target=s,this.mouse.target=s,this.pointer.target=s),v(s,C))),C},g.prototype.onMouseDown=function(a){this.mouse.originalEvent=a,this.eventData.data=this.mouse,this.eventData._reset(),this.mapPositionToPoint(this.mouse.global,a.clientX,a.clientY),this.autoPreventDefault&&this.mouse.originalEvent.preventDefault(),this.processInteractive(this.mouse.global,this.renderer._lastObjectRendered,this.processMouseDown,!0);var s=a.button===2||a.which===3;this.emit(s?"rightdown":"mousedown",this.eventData)},g.prototype.processMouseDown=function(a,s){var v=this.mouse.originalEvent,P=v.button===2||v.which===3;s&&(a[P?"_isRightDown":"_isLeftDown"]=!0,this.dispatchEvent(a,P?"rightdown":"mousedown",this.eventData))},g.prototype.onMouseUp=function(a){this.mouse.originalEvent=a,this.eventData.data=this.mouse,this.eventData._reset(),this.mapPositionToPoint(this.mouse.global,a.clientX,a.clientY),this.processInteractive(this.mouse.global,this.renderer._lastObjectRendered,this.processMouseUp,!0);var s=a.button===2||a.which===3;this.emit(s?"rightup":"mouseup",this.eventData)},g.prototype.processMouseUp=function(a,s){var v=this.mouse.originalEvent,P=v.button===2||v.which===3,T=P?"_isRightDown":"_isLeftDown";s?(this.dispatchEvent(a,P?"rightup":"mouseup",this.eventData),a[T]&&(a[T]=!1,this.dispatchEvent(a,P?"rightclick":"click",this.eventData))):a[T]&&(a[T]=!1,this.dispatchEvent(a,P?"rightupoutside":"mouseupoutside",this.eventData))},g.prototype.onMouseMove=function(a){this.mouse.originalEvent=a,this.eventData.data=this.mouse,this.eventData._reset(),this.mapPositionToPoint(this.mouse.global,a.clientX,a.clientY),this.didMove=!0,this.cursor=this.defaultCursorStyle,this.processInteractive(this.mouse.global,this.renderer._lastObjectRendered,this.processMouseMove,!0),this.emit("mousemove",this.eventData),this.currentCursorStyle!==this.cursor&&(this.currentCursorStyle=this.cursor,this.interactionDOMElement.style.cursor=this.cursor)},g.prototype.processMouseMove=function(a,s){this.processMouseOverOut(a,s),this.moveWhenInside&&!s||this.dispatchEvent(a,"mousemove",this.eventData)},g.prototype.onMouseOut=function(a){this.mouseOverRenderer=!1,this.mouse.originalEvent=a,this.eventData.data=this.mouse,this.eventData._reset(),this.mapPositionToPoint(this.mouse.global,a.clientX,a.clientY),this.interactionDOMElement.style.cursor=this.defaultCursorStyle,this.mapPositionToPoint(this.mouse.global,a.clientX,a.clientY),this.processInteractive(this.mouse.global,this.renderer._lastObjectRendered,this.processMouseOverOut,!1),this.emit("mouseout",this.eventData)},g.prototype.processMouseOverOut=function(a,s){s&&this.mouseOverRenderer?(a._mouseOver||(a._mouseOver=!0,this.dispatchEvent(a,"mouseover",this.eventData)),a.buttonMode&&(this.cursor=a.defaultCursor)):a._mouseOver&&(a._mouseOver=!1,this.dispatchEvent(a,"mouseout",this.eventData))},g.prototype.onMouseOver=function(a){this.mouseOverRenderer=!0,this.mouse.originalEvent=a,this.eventData.data=this.mouse,this.eventData._reset(),this.emit("mouseover",this.eventData)},g.prototype.onPointerDown=function(a){this.normalizeToPointerData(a),this.pointer.originalEvent=a,this.eventData.data=this.pointer,this.eventData._reset(),this.mapPositionToPoint(this.pointer.global,a.clientX,a.clientY),this.autoPreventDefault&&(this.normalizeMouseEvents||this.normalizeTouchEvents)&&this.pointer.originalEvent.preventDefault(),this.processInteractive(this.pointer.global,this.renderer._lastObjectRendered,this.processPointerDown,!0),this.emit("pointerdown",this.eventData)},g.prototype.processPointerDown=function(a,s){s&&(a._pointerDown=!0,this.dispatchEvent(a,"pointerdown",this.eventData))},g.prototype.onPointerUp=function(a){this.normalizeToPointerData(a),this.pointer.originalEvent=a,this.eventData.data=this.pointer,this.eventData._reset(),this.mapPositionToPoint(this.pointer.global,a.clientX,a.clientY),this.processInteractive(this.pointer.global,this.renderer._lastObjectRendered,this.processPointerUp,!0),this.emit("pointerup",this.eventData)},g.prototype.processPointerUp=function(a,s){s?(this.dispatchEvent(a,"pointerup",this.eventData),a._pointerDown&&(a._pointerDown=!1,this.dispatchEvent(a,"pointertap",this.eventData))):a._pointerDown&&(a._pointerDown=!1,this.dispatchEvent(a,"pointerupoutside",this.eventData))},g.prototype.onPointerMove=function(a){this.normalizeToPointerData(a),this.pointer.originalEvent=a,this.eventData.data=this.pointer,this.eventData._reset(),this.mapPositionToPoint(this.pointer.global,a.clientX,a.clientY),this.processInteractive(this.pointer.global,this.renderer._lastObjectRendered,this.processPointerMove,!0),this.emit("pointermove",this.eventData)},g.prototype.processPointerMove=function(a,s){this.pointer.originalEvent.changedTouches||this.processPointerOverOut(a,s),this.moveWhenInside&&!s||this.dispatchEvent(a,"pointermove",this.eventData)},g.prototype.onPointerOut=function(a){this.normalizeToPointerData(a),this.pointer.originalEvent=a,this.eventData.data=this.pointer,this.eventData._reset(),this.mapPositionToPoint(this.pointer.global,a.clientX,a.clientY),this.processInteractive(this.pointer.global,this.renderer._lastObjectRendered,this.processPointerOverOut,!1),this.emit("pointerout",this.eventData)},g.prototype.processPointerOverOut=function(a,s){s&&this.mouseOverRenderer?a._pointerOver||(a._pointerOver=!0,this.dispatchEvent(a,"pointerover",this.eventData)):a._pointerOver&&(a._pointerOver=!1,this.dispatchEvent(a,"pointerout",this.eventData))},g.prototype.onPointerOver=function(a){this.pointer.originalEvent=a,this.eventData.data=this.pointer,this.eventData._reset(),this.emit("pointerover",this.eventData)},g.prototype.onTouchStart=function(a){this.autoPreventDefault&&a.preventDefault();for(var s=a.changedTouches,v=s.length,P=0;P1&&(v=1);var P=Math.sqrt(u*u+y*y),T=this._texture.height/2;u/=P,y/=P,u*=T,y*=T,d[s]=a.x+u,d[s+1]=a.y+y,d[s+2]=a.x-u,d[s+3]=a.y-y,h=a}this.containerUpdateTransform()}},n}(f.default);E.default=t},function(B,E,c){"use strict";function O(e){return e&&e.__esModule?e:{default:e}}function x(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var b=c(1),m=x(b),l=c(27),f=O(l),o=function(){function e(t){_(this,e),this.renderer=t}return e.prototype.render=function(t){var i=this.renderer,n=i.context,r=t.worldTransform,h=i.resolution;i.roundPixels?n.setTransform(r.a*h,r.b*h,r.c*h,r.d*h,r.tx*h|0,r.ty*h|0):n.setTransform(r.a*h,r.b*h,r.c*h,r.d*h,r.tx*h,r.ty*h),i.setBlendMode(t.blendMode),t.drawMode===f.default.DRAW_MODES.TRIANGLE_MESH?this._renderTriangleMesh(t):this._renderTriangles(t)},e.prototype._renderTriangleMesh=function(t){for(var i=t.vertices.length/2,n=0;n0){var U=t.canvasPadding/t.worldTransform.a,N=t.canvasPadding/t.worldTransform.d,W=(R+S+L)/3,H=(A+D+I)/3,tt=R-W,it=A-H,K=Math.sqrt(tt*tt+it*it);R=W+tt/K*(K+U),A=H+it/K*(K+N),tt=S-W,it=D-H,K=Math.sqrt(tt*tt+it*it),S=W+tt/K*(K+U),D=H+it/K*(K+N),tt=L-W,it=I-H,K=Math.sqrt(tt*tt+it*it),L=W+tt/K*(K+U),I=H+it/K*(K+N)}h.save(),h.beginPath(),h.moveTo(R,A),h.lineTo(S,D),h.lineTo(L,I),h.closePath(),h.clip();var at=s*C+T*P+v*M-C*P-T*v-s*M,ut=R*C+T*L+S*M-C*L-T*S-R*M,mt=s*S+R*P+v*L-S*P-R*v-s*L,wt=s*C*L+T*S*P+R*v*M-R*C*P-T*v*L-s*S*M,Dt=A*C+T*I+D*M-C*I-T*D-A*M,yt=s*D+A*P+v*I-D*P-A*v-s*I,Tt=s*C*I+T*D*P+A*v*M-A*C*P-T*v*I-s*D*M;h.transform(ut/at,Dt/at,mt/at,yt/at,wt/at,Tt/at),h.drawImage(w,0,0,g*d.resolution,a*d.resolution,0,0,g,a),h.restore()}},e.prototype.renderMeshFlat=function(t){var i=this.renderer.context,n=t.vertices,r=n.length/2;i.beginPath();for(var h=1;h0&&arguments[0]!==void 0?arguments[0]:1500,i=arguments[1],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:16384;x(this,e);var r=_(this,o.call(this)),h=16384;return n>h&&(n=h),n>t&&(n=t),r._properties=[!1,!0,!1,!1,!1],r._maxSize=t,r._batchSize=n,r._glBuffers={},r._bufferToUpdate=0,r.interactiveChildren=!1,r.blendMode=l.BLEND_MODES.NORMAL,r.roundPixels=!0,r.baseTexture=null,r.setProperties(i),r}return b(e,o),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 i=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 i.onChildrenChange(0)})),t.setObjectRenderer(t.plugins.particle),t.plugins.particle.render(this))},e.prototype.onChildrenChange=function(t){var i=Math.floor(t/this._batchSize);iy&&(g=y);var a=p._glBuffers[w.CONTEXT_UID];a||(a=p._glBuffers[w.CONTEXT_UID]=this.generateBuffers(p)),this.renderer.setBlendMode(p.blendMode);var s=w.gl,v=p.worldTransform.copy(this.tempMatrix);v.prepend(w._activeRenderTarget.projectionMatrix),this.shader.uniforms.projectionMatrix=v.toArray(!0),this.shader.uniforms.uAlpha=p.worldAlpha;var P=u[0]._texture.baseTexture;this.shader.uniforms.uSampler=w.bindTexture(P);for(var T=0,C=0;Td&&(M=d);var R=a[C];R.uploadDynamic(u,T,M),p._bufferToUpdate===C&&(R.uploadStatic(u,T,M),p._bufferToUpdate=C+1),w.bindVao(R.vao),R.vao.draw(s.TRIANGLES,6*M)}}},h.prototype.generateBuffers=function(p){for(var u=this.renderer.gl,y=[],d=p._maxSize,w=p._batchSize,g=p._properties,a=0;a0?1:-1})},function(B,E,c){"use strict";function O(b){return b&&b.__esModule?b:{default:b}}var x=c(180),_=O(x);Object.assign||(Object.assign=_.default)},function(B,E,c){"use strict";c(251),c(253),c(250),window.ArrayBuffer||(window.ArrayBuffer=Array),window.Float32Array||(window.Float32Array=Array),window.Uint32Array||(window.Uint32Array=Array),window.Uint16Array||(window.Uint16Array=Array)},function(B,E){(function(c){"use strict";var O=16;Date.now&&Date.prototype.getTime||(Date.now=function(){return new Date().getTime()}),c.performance&&c.performance.now||function(){var l=Date.now();c.performance||(c.performance={}),c.performance.now=function(){return Date.now()-l}}();for(var x=Date.now(),_=["ms","moz","webkit","o"],b=0;b<_.length&&!c.requestAnimationFrame;++b){var m=_[b];c.requestAnimationFrame=c[m+"RequestAnimationFrame"],c.cancelAnimationFrame=c[m+"CancelAnimationFrame"]||c[m+"CancelRequestAnimationFrame"]}c.requestAnimationFrame||(c.requestAnimationFrame=function(l){if(typeof l!="function")throw new TypeError(l+"is not a function");var f=Date.now(),o=O+x-f;return o<0&&(o=0),x=f,setTimeout(function(){x=Date.now(),l(performance.now())},o)}),c.cancelAnimationFrame||(c.cancelAnimationFrame=function(l){return clearTimeout(l)})}).call(E,function(){return this}())},function(B,E,c){"use strict";function O(h){return h&&h.__esModule?h:{default:h}}function x(h){if(h&&h.__esModule)return h;var p={};if(h!=null)for(var u in h)Object.prototype.hasOwnProperty.call(h,u)&&(p[u]=h[u]);return p.default=h,p}function _(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function b(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!p||typeof p!="object"&&typeof p!="function"?h:p}function m(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}function l(h,p){if(p instanceof e.BaseTexture){var u=p.source,y=u.width===0?h.canvas.width:Math.min(h.canvas.width,u.width),d=u.height===0?h.canvas.height:Math.min(h.canvas.height,u.height);return h.ctx.drawImage(u,0,0,y,d,0,0,h.canvas.width,h.canvas.height),!0}return!1}function f(h,p){if(h instanceof e.BaseTexture)return p.indexOf(h)===-1&&p.push(h),!0;if(h._texture&&h._texture instanceof e.Texture){var u=h._texture.baseTexture;return p.indexOf(u)===-1&&p.push(u),!0}return!1}E.__esModule=!0;var o=c(1),e=x(o),t=c(68),i=O(t),n=16,r=function(h){function p(u){_(this,p);var y=b(this,h.call(this,u));return y.uploadHookHelper=y,y.canvas=document.createElement("canvas"),y.canvas.width=n,y.canvas.height=n,y.ctx=y.canvas.getContext("2d"),y.register(f,l),y}return m(p,h),p.prototype.destroy=function(){h.prototype.destroy.call(this),this.ctx=null,this.canvas=null},p}(i.default);E.default=r,e.CanvasRenderer.registerPlugin("prepare",r)},function(B,E){"use strict";function c(x,_){if(!(x instanceof _))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var O=function(){function x(_){c(this,x),this.maxMilliseconds=_,this.frameStart=0}return x.prototype.beginFrame=function(){this.frameStart=Date.now()},x.prototype.allowedToUpload=function(){return Date.now()-this.frameStart.55*r?t.lineStyle(n,i.color,i.alpha*(r-u)/(.45*r)):t.lineStyle(n,i.color,i.alpha),t.lineTo(y,d)}},o.prototype.animate=function(){var e=this,t=1e4*Math.random()+8e4|0;this.lineChildren.forEach(function(i,n){var r=e.offset[n],h=new m.TimelineMax;h.from(i,.3,{alpha:0,delay:.2*Math.random()}),h.to(r,36e3,{phase:t,repeat:-1,onUpdate:function(){e.drawLine(e.attenuationArray[n],i,e.offset[n])},ease:m.Power0.easeNone}),l.to(r,5,{noise:50*Math.random()+30|0,delay:.5})})},o}();Object.defineProperty(E,"__esModule",{value:!0}),E.default=f},function(B,E,c){"use strict";function O(n){return n&&n.__esModule?n:{default:n}}var x=c(8),_=O(x),b=c(40),m=O(b),l=c(39),f=O(l),o=c(9),e=c(129),t=o.TweenMax,i=function(n){function r(){return(0,_.default)(this,r),(0,m.default)(this,n.apply(this,arguments))}return(0,f.default)(r,n),r.prototype.startAnim=function(){this.pointAnim(),t.to([this.bgContainer,this.lineContainer],.8,{alpha:1,delay:2}),t.from(this.bgContainer.scale,.8,{x:.8,y:.8,delay:2})},r}(e.default);Object.defineProperty(E,"__esModule",{value:!0}),E.default=i},function(B,E,c){"use strict";function O(n){return n&&n.__esModule?n:{default:n}}var x=c(8),_=O(x),b=c(40),m=O(b),l=c(39),f=O(l),o=c(14),e=c(9),t=c(128),i=(e.TweenMax,function(n){function r(){(0,_.default)(this,r);var h=(0,m.default)(this,n.call(this));return h.container=new o.Container,h.ringObj={inner:110,outside:125,listNumber:10,img:"https://zos.alipayobjects.com/rmsportal/JorDDgUVJljaIxDBpiBM.png"},h.number=300,h}return(0,f.default)(r,n),r.prototype.init=function(){this.container.y=this.center.y-5,this.container.x=this.center.x,this.setRArray(),this.createPointElement(),this.startAnim()},r.prototype.createPointElement=function(){for(var h=0;h180?Math.random()*-d-this.ringObj.outside:Math.random()*d+this.ringObj.outside,p.y=10*Math.random(),p.cacheAsBitmapboolean=!0,p.alpha=0,this.container.addChild(p)}var w=new o.filters.BlurFilter;w.blur=.5},r.prototype.startAnim=function(){var h=this.container.children;h.forEach(function(p){var u=new e.TimelineMax({repeat:-1});u.to(p,.3,{alpha:.5*Math.random()+.5,delay:2*Math.random()+.5}).to(p,2*Math.random()+.5,{x:p.positionData.x,y:p.positionData.y,ease:e.Power3.easeInOut}).to(p,.2,{alpha:0})})},r}(t.default));Object.defineProperty(E,"__esModule",{value:!0}),E.default=i},function(B,E,c){"use strict";function O(t){return t&&t.__esModule?t:{default:t}}var x=c(8),_=O(x),b=c(14),m=c(9),l=c(260),f=c(258),o=m.TweenMax,e=function(){function t(){(0,_.default)(this,t),this.container=new b.Container,this.outside=new l.default(800,{inner:105,outside:130,maxOutside:!0,listNumber:10,img:"https://zos.alipayobjects.com/rmsportal/JorDDgUVJljaIxDBpiBM.png"}),this.inner=new f.default(400,{inner:40,outside:85,listNumber:10,lineNumber:40,img:"https://zos.alipayobjects.com/rmsportal/uIbqAshSeUuRPrRXNOrN.png"},1205417,3678378)}return t.prototype.init=function(){this.outside.init(),this.inner.init(),this.container.addChild(this.outside.container),this.container.addChild(this.inner.container)},t.prototype.animate=function(){o.to(this.inner.container.scale,5,{x:.9,y:.9,yoyo:!0,repeat:-1,ease:m.Power1.easeInOut})},t}();Object.defineProperty(E,"__esModule",{value:!0}),E.default=e},function(B,E,c){B.exports={default:c(148),__esModule:!0}},function(B,E,c){B.exports={default:c(149),__esModule:!0}},function(B,E,c){B.exports={default:c(150),__esModule:!0}},function(B,E,c){B.exports={default:c(151),__esModule:!0}}]);