PageSourceSearch

https://www.sretks.com/_next/static/chunks/818-f27b57e20c6f7954.js

js sretks.com collected 2026-10-04 05:48:03 UTC 423,756 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[818],{1680:function(t,e,r){"use strict";var i,n,o,s,a,h,u,l,c,p,f,d,_,g,v,m,y,T,E;r.d(e,{iw:function(){return _},T$:function(){return s},V0:function(){return o},mr:function(){return E},yl:function(){return g},lg:function(){return a},Vi:function(){return i},I2:function(){return h},UN:function(){return v},A7:function(){return y},WB:function(){return d},G5:function(){return T},cB:function(){return m},N3:function(){return n},oT:function(){return c},aH:function(){return p},sp:function(){return u},vK:function(){return l},Nt:function(){return f}}),function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"}(i||(i={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"}(n||(n={})),function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"}(o||(o={})),function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"}(s||(s={})),function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(a||(a={})),function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"}(h||(h={})),function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"}(u||(u={})),function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"}(l||(l={})),function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"}(c||(c={})),function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"}(p||(p={})),function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(f||(f={})),function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"}(d||(d={})),function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"}(_||(_={})),function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT"}(g||(g={})),function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"}(v||(v={})),function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"}(m||(m={})),function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE"}(y||(y={})),function(t){t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH"}(T||(T={})),function(t){t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"}(E||(E={}))},9658:function(t,e,r){"use strict";r.d(e,{Cd:function(){return l},ZX:function(){return s},Pj:function(){return c},y3:function(){return _},AB:function(){return d},_b:function(){return n},E9:function(){return a},mg:function(){return p},jl:function(){return o},Ae:function(){return u},c9:function(){return f},HS:function(){return i},wx:function(){return R},Lv:function(){return x}});var i,n=2*Math.PI,o=180/Math.PI,s=Math.PI/180;
1!function(t){t[t.POLY=0]="POLY",t[t.RECT=1]="RECT",t[t.CIRC=2]="CIRC",t[t.ELIP=3]="ELIP",t[t.RREC=4]="RREC"}(i||(i={}));var a=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=0,this.y=0,this.x=t,this.y=e}return t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.copyFrom=function(t){return this.set(t.x,t.y),this},t.prototype.copyTo=function(t){return t.set(this.x,this.y),t},t.prototype.equals=function(t){return t.x===this.x&&t.y===this.y},t.prototype.set=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x=t,this.y=e,this},t.prototype.toString=function(){return"[@pixi/math:Point x="+this.x+" y="+this.y+"]"},t}(),h=[new a,new a,new a,new a],u=function(){function t(t,e,r,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===r&&(r=0),void 0===n&&(n=0),this.x=Number(t),this.y=Number(e),this.width=Number(r),this.height=Number(n),this.type=i.RECT}return Object.defineProperty(t.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t,"EMPTY",{get:function(){return new t(0,0,0,0)},enumerable:!1,configurable:!0}),t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copyFrom=function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this},t.prototype.copyTo=function(t){return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t},t.prototype.contains=function(t,e){return!(this.width<=0||this.height<=0)&&(t>=this.x&&t<this.x+this.width&&e>=this.y&&e<this.y+this.height)},t.prototype.intersects=function(t,e){if(!e){var r=this.x<t.x?t.x:this.x;if((this.right>t.right?t.right:this.right)<=r)return!1;var i=this.y<t.y?t.y:this.y;return(this.bottom>t.bottom?t.bottom:this.bottom)>i}var n=this.left,o=this.right,s=this.top,a=this.bottom;if(o<=n||a<=s)return!1;var u=h[0].set(t.left,t.top),l=h[1].set(t.left,t.bottom),c=h[2].set(t.right,t.top),p=h[3].set(t.right,t.bottom);if(c.x<=u.x||l.y<=u.y)return!1;var f=Math.sign(e.a*e.d-e.b*e.c);if(0===f)return!1;if(e.apply(u,u),e.apply(l,l),e.apply(c,c),e.apply(p,p),Math.max(u.x,l.x,c.x,p.x)<=n||Math.min(u.x,l.x,c.x,p.x)>=o||Math.max(u.y,l.y,c.y,p.y)<=s||Math.min(u.y,l.y,c.y,p.y)>=a)return!1;var d=f*(l.y-u.y),_=f*(u.x-l.x),g=d*n+_*s,v=d*o+_*s,m=d*n+_*a,y=d*o+_*a;if(Math.max(g,v,m,y)<=d*u.x+_*u.y||Math.min(g,v,m,y)>=d*p.x+_*p.y)return!1;var T=f*(u.y-c.y),E=f*(c.x-u.x),b=T*n+E*s,x=T*o+E*s,R=T*n+E*a,A=T*o+E*a;return!(Math.max(b,x,R,A)<=T*u.x+E*u.y||Math.min(b,x,R,A)>=T*p.x+E*p.y)},t.prototype.pad=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e,this},t.prototype.fit=function(t){var e=Math.max(this.x,t.x),r=Math.min(this.x+this.width,t.x+t.width),i=Math.max(this.y,t.y),n=Math.min(this.y+this.height,t.y+t.height);return this.x=e,this.width=Math.max(r-e,0),this.y=i,this.height=Math.max(n-i,0),this},t.prototype.ceil=function(t,e){void 0===t&&(t=1),void 0===e&&(e=.001);var r=Math.ceil((this.x+this.width-e)*t)/t,i=Math.ceil((this.y+this.height-e)*t)/t;return this.x=Math.floor((this.x+e)*t)/t,this.y=Math.floor((this.y+e)*t)/t,this.width=r-this.x,this.height=i-this.y,this},t.prototype.enlarge=function(t){var e=Math.min(this.x,t.x),r=Math.max(this.x+this.width,t.x+t.width),i=Math.min(this.y,t.y),n=Math.max(this.y+this.height,t.y+t.height);return this.x=e,this.width=r-e,this.y=i,this.height=n-i,this},t.prototype.toString=function(){return"[@pixi/math:Rectangle x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},t}(),l=function(){function t(t,e,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===r&&(r=0),this.x=t,this.y=e,this.radius=r,this.type=i.CIRC}return t.prototype.clone=function(){return new t(this.x,this.y,this.radius)},t.prototype.contains=function(t,e){if(this.radius<=0)return!1;var r=this.radius*this.radius,i=this.x-t,n=this.y-e;return(i*=i)+(n*=n)<=r},t.prototype.getBounds=function(){return new u(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)},t.prototype.toString=function(){return"[@pixi/math:Circle x="+this.x+" y="+this.y+" radius="+this.radius+"]"},t}(),c=function(){function t(t,e,r,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===r&&(r=0),void 0===n&&(n=0),this.x=t,this.y=e,this.width=r,this.height=n,this.type=i.ELIP}return t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.contains=function(t,e){if(this.width<=0||this.height<=0)return!1;var r=(t-this.x)/this.width,i=(e-this.y)/this.height;return(r*=r)+(i*=i)<=1},t.prototype.getBounds=function(){return new u(this.x-this.width,this.y-this.height,this.width,this.height)},t.prototype.toString=function(){return"[@pixi/math:Ellipse x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},t}(),p=function(){function t(){for(var t=arguments,e=[],r=0;r<arguments.length;r++)e[r]=t[r];var n=Array.isArray(e[0])?e[0]:e;if("number"!==typeof n[0]){for(var o=[],s=0,a=n.length;s<a;s++)o.push(n[s].x,n[s].y);n=o}this.points=n,this.type=i.POLY,this.closeStroke=!0}return t.prototype.clone=function(){var e=new t(this.points.slice());return e.closeStroke=this.closeStroke,e},t.prototype.contains=function(t,e){for(var r=!1,i=this.points.length/2,n=0,o=i-1;n<i;o=n++){var s=this.points[2*n],a=this.points[2*n+1],h=this.points[2*o],u=this.points[2*o+1];a>e!==u>e&&t<(e-a)/(u-a)*(h-s)+s&&(r=!r)}return r},t.prototype.toString=function(){return"[@pixi/math:PolygoncloseStroke="+this.closeStroke+"points="+this.points.reduce((function(t,e){return t+", "+e}),"")+"]"},t}(),f=function(){function t(t,e,r,n,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===r&&(r=0),void 0===n&&(n=0),void 0===o&&(o=20),this.x=t,this.y=e,this.width=r,this.height=n,this.radius=o,this.type=i.RREC}return t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height,this.radius)},t.prototype.contains=function(t,e){if(this.width<=0||this.height<=0)return!1;if(t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height){var r=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(e>=this.y+r&&e<=this.y+this.height-r||t>=this.x+r&&t<=this.x+this.width-r)return!0;var i=t-(this.x+r),n=e-(this.y+r),o=r*r;if(i*i+n*n<=o)return!0;
1if((i=t-(this.x+this.width-r))*i+n*n<=o)return!0;if(i*i+(n=e-(this.y+this.height-r))*n<=o)return!0;if((i=t-(this.x+r))*i+n*n<=o)return!0}return!1},t.prototype.toString=function(){return"[@pixi/math:RoundedRectangle x="+this.x+" y="+this.y+"width="+this.width+" height="+this.height+" radius="+this.radius+"]"},t}(),d=function(){function t(t,e,r,i){void 0===r&&(r=0),void 0===i&&(i=0),this._x=r,this._y=i,this.cb=t,this.scope=e}return t.prototype.clone=function(e,r){return void 0===e&&(e=this.cb),void 0===r&&(r=this.scope),new t(e,r,this._x,this._y)},t.prototype.set=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this._x===t&&this._y===e||(this._x=t,this._y=e,this.cb.call(this.scope)),this},t.prototype.copyFrom=function(t){return this._x===t.x&&this._y===t.y||(this._x=t.x,this._y=t.y,this.cb.call(this.scope)),this},t.prototype.copyTo=function(t){return t.set(this._x,this._y),t},t.prototype.equals=function(t){return t.x===this._x&&t.y===this._y},t.prototype.toString=function(){return"[@pixi/math:ObservablePoint x=0 y=0 scope="+this.scope+"]"},Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),t}(),_=function(){function t(t,e,r,i,n,o){void 0===t&&(t=1),void 0===e&&(e=0),void 0===r&&(r=0),void 0===i&&(i=1),void 0===n&&(n=0),void 0===o&&(o=0),this.array=null,this.a=t,this.b=e,this.c=r,this.d=i,this.tx=n,this.ty=o}return t.prototype.fromArray=function(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]},t.prototype.set=function(t,e,r,i,n,o){return this.a=t,this.b=e,this.c=r,this.d=i,this.tx=n,this.ty=o,this},t.prototype.toArray=function(t,e){this.array||(this.array=new Float32Array(9));var r=e||this.array;return t?(r[0]=this.a,r[1]=this.b,r[2]=0,r[3]=this.c,r[4]=this.d,r[5]=0,r[6]=this.tx,r[7]=this.ty,r[8]=1):(r[0]=this.a,r[1]=this.c,r[2]=this.tx,r[3]=this.b,r[4]=this.d,r[5]=this.ty,r[6]=0,r[7]=0,r[8]=1),r},t.prototype.apply=function(t,e){e=e||new a;var r=t.x,i=t.y;return e.x=this.a*r+this.c*i+this.tx,e.y=this.b*r+this.d*i+this.ty,e},t.prototype.applyInverse=function(t,e){e=e||new a;var r=1/(this.a*this.d+this.c*-this.b),i=t.x,n=t.y;return e.x=this.d*r*i+-this.c*r*n+(this.ty*this.c-this.tx*this.d)*r,e.y=this.a*r*n+-this.b*r*i+(-this.ty*this.a+this.tx*this.b)*r,e},t.prototype.translate=function(t,e){return this.tx+=t,this.ty+=e,this},t.prototype.scale=function(t,e){return this.a*=t,this.d*=e,this.c*=t,this.b*=e,this.tx*=t,this.ty*=e,this},t.prototype.rotate=function(t){var e=Math.cos(t),r=Math.sin(t),i=this.a,n=this.c,o=this.tx;return this.a=i*e-this.b*r,this.b=i*r+this.b*e,this.c=n*e-this.d*r,this.d=n*r+this.d*e,this.tx=o*e-this.ty*r,this.ty=o*r+this.ty*e,this},t.prototype.append=function(t){var e=this.a,r=this.b,i=this.c,n=this.d;return this.a=t.a*e+t.b*i,this.b=t.a*r+t.b*n,this.c=t.c*e+t.d*i,this.d=t.c*r+t.d*n,this.tx=t.tx*e+t.ty*i+this.tx,this.ty=t.tx*r+t.ty*n+this.ty,this},t.prototype.setTransform=function(t,e,r,i,n,o,s,a,h){return this.a=Math.cos(s+h)*n,this.b=Math.sin(s+h)*n,this.c=-Math.sin(s-a)*o,this.d=Math.cos(s-a)*o,this.tx=t-(r*this.a+i*this.c),this.ty=e-(r*this.b+i*this.d),this},t.prototype.prepend=function(t){var e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){var r=this.a,i=this.c;this.a=r*t.a+this.b*t.c,this.b=r*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}return this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty,this},t.prototype.decompose=function(t){var e=this.a,r=this.b,i=this.c,o=this.d,s=t.pivot,a=-Math.atan2(-i,o),h=Math.atan2(r,e),u=Math.abs(a+h);return u<1e-5||Math.abs(n-u)<1e-5?(t.rotation=h,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=a,t.skew.y=h),t.scale.x=Math.sqrt(e*e+r*r),t.scale.y=Math.sqrt(i*i+o*o),t.position.x=this.tx+(s.x*e+s.y*i),t.position.y=this.ty+(s.x*r+s.y*o),t},t.prototype.invert=function(){var t=this.a,e=this.b,r=this.c,i=this.d,n=this.tx,o=t*i-e*r;return this.a=i/o,this.b=-e/o,this.c=-r/o,this.d=t/o,this.tx=(r*this.ty-i*n)/o,this.ty=-(t*this.ty-e*n)/o,this},t.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},t.prototype.clone=function(){var e=new t;return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e},t.prototype.copyTo=function(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},t.prototype.copyFrom=function(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this},t.prototype.toString=function(){return"[@pixi/math:Matrix a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.t
1y+"]"},Object.defineProperty(t,"IDENTITY",{get:function(){return new t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"TEMP_MATRIX",{get:function(){return new t},enumerable:!1,configurable:!0}),t}(),g=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],v=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],m=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],y=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],T=[],E=[],b=Math.sign;!function(){for(var t=0;t<16;t++){var e=[];T.push(e);for(var r=0;r<16;r++)for(var i=b(g[t]*g[r]+m[t]*v[r]),n=b(v[t]*g[r]+y[t]*v[r]),o=b(g[t]*m[r]+m[t]*y[r]),s=b(v[t]*m[r]+y[t]*y[r]),a=0;a<16;a++)if(g[a]===i&&v[a]===n&&m[a]===o&&y[a]===s){e.push(a);break}}for(t=0;t<16;t++){var h=new _;h.set(g[t],v[t],m[t],y[t],0,0),E.push(h)}}();var x={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:function(t){return g[t]},uY:function(t){return v[t]},vX:function(t){return m[t]},vY:function(t){return y[t]},inv:function(t){return 8&t?15&t:7&-t},add:function(t,e){return T[t][e]},sub:function(t,e){return T[t][x.inv(e)]},rotate180:function(t){return 4^t},isVertical:function(t){return 2===(3&t)},byDirection:function(t,e){return 2*Math.abs(t)<=Math.abs(e)?e>=0?x.S:x.N:2*Math.abs(e)<=Math.abs(t)?t>0?x.E:x.W:e>0?t>0?x.SE:x.SW:t>0?x.NE:x.NW},matrixAppendRotationInv:function(t,e,r,i){void 0===r&&(r=0),void 0===i&&(i=0);var n=E[x.inv(e)];n.tx=r,n.ty=i,t.append(n)}},R=function(){function t(){this.worldTransform=new _,this.localTransform=new _,this.position=new d(this.onChange,this,0,0),this.scale=new d(this.onChange,this,1,1),this.pivot=new d(this.onChange,this,0,0),this.skew=new d(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}return t.prototype.onChange=function(){this._localID++},t.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++},t.prototype.toString=function(){return"[@pixi/math:Transform position=("+this.position.x+", "+this.position.y+") rotation="+this.rotation+" scale=("+this.scale.x+", "+this.scale.y+") skew=("+this.skew.x+", "+this.skew.y+") ]"},t.prototype.updateLocalTransform=function(){var t=this.localTransform;this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1)},t.prototype.updateTransform=function(t){var e=this.localTransform;if(this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==t._worldID){var r=t.worldTransform,i=this.worldTransform;i.a=e.a*r.a+e.b*r.c,i.b=e.a*r.b+e.b*r.d,i.c=e.c*r.a+e.d*r.c,i.d=e.c*r.b+e.d*r.d,i.tx=e.tx*r.a+e.ty*r.c+r.tx,i.ty=e.tx*r.b+e.ty*r.d+r.ty,this._parentID=t._worldID,this._worldID++}},t.prototype.setFromMatrix=function(t){t.decompose(this),this._localID++},Object.defineProperty(t.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation!==t&&(this._rotation=t,this.updateSkew())},enumerable:!1,configurable:!0}),t.IDENTITY=new t,t}()},1034:function(t,e,r){"use strict";r.d(e,{R:function(){return i}});var i=function(){function t(t){this.items=[],this._name=t,this._aliasCount=0}return t.prototype.emit=function(t,e,r,i,n,o,s,a){if(arguments.length>8)throw new Error("max arguments reached");var h=this,u=h.name,l=h.items;this._aliasCount++;for(var c=0,p=l.length;c<p;c++)l[c][u](t,e,r,i,n,o,s,a);return l===this.items&&this._aliasCount--,this},t.prototype.ensureNonAliasedItems=function(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},t.prototype.add=function(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this},t.prototype.remove=function(t){var e=this.items.indexOf(t);return-1!==e&&(this.ensureNonAliasedItems(),this.items.splice(e,1)),this},t.prototype.contains=function(t){return-1!==this.items.indexOf(t)},t.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},t.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(t.prototype,"empty",{get:function(){return 0===this.items.length}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),t}();Object.defineProperties(i.prototype,{dispatch:{value:i.prototype.emit},run:{value:i.prototype.emit}})},1576:function(t,e,r){"use strict";r.d(e,{t:function(){return F},X:function(){return B}});var i=/iPhone/i,n=/iPod/i,o=/iPad/i,s=/\biOS-universal(?:.+)Mac\b/i,a=/\bAndroid(?:.+)Mobile\b/i,h=/Android/i,u=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,l=/Silk/i,c=/Windows Phone/i,p=/\bWindows(?:.+)ARM\b/i,f=/BlackBerry/i,d=/BB10/i,_=/Opera Mini/i,g=/\b(CriOS|Chrome)(?:.+)Mobile/i,v=/Mobile(?:.+)Firefox\b/i,m=function(t){return"undefined"!==typeof t&&"MacIntel"===t.platform&&"number"===typeof t.maxTouchPoints&&t.maxTouchPoints>1&&"undefined"===typeof MSStream};var y,T,E,b,x,R,A,O,S,I,P,M,D,N,w,C,L,U,G,F=function(t){var e={userAgent:"",platform:"",maxTouchPoints:0};t||"undefined"===typeof navigator?"string"===typeof t?e.userAgent=t:t&&t.userAgent&&(e={userAgent:t.userAgent,platform:t.platform,maxTouchPoints:t.maxTouchPoints||0}):e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var r=e.userAgent,y=r.split("[FBAN");"undefined"!==typeof y[1]&&(r=y[0]),"undefined"!==typeof(y=r.split("Twitter"))[1]&&(r=y[0]);var T=function(t){return function(e){return e.test(t)}}(r),E={apple:{phone:T(i)&&!T(c),ipod:T(n),tablet:!T(i)&&(T(o)||m(e))&&!T(c),universal:T(s),device:(T(i)||T(n)||T(o)||T(s)||m(e))&&!T(c)},amazon:{phone:T(u),tablet:!T(u)&&T(l),device:T(u)||T(l)},android:{phone:!T(c)&&T(u)||!T(c)&&T(a),tablet:!T(c)&&!T(u)&&!T(a)&&(T(l)||T(h)),device:!T(c)&&(T(u)||T(l)||T(a)||T(h))||T(/\bokhttp\b/i)},windows:{phone:T(c),tablet:T(p),device:T(c)||T(p)},other:{blackberry:T(f),blackberry10:T(d),opera:T(_),firefox:T(v),chrome:T(g),device:T(f)||T(d)||T(_)||T(v)||T(g)},any:!1,phone:!1,tablet:!1};return E.any=E.apple.device||E.android.device||E.windows.device||E.other.device,E.phone=E.apple.phone||E.android.phone||E.windows.phone,E.tablet=E.apple.tablet||E.android.tablet||E.windows.tablet,E}(globalThis.navigator);!function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"}(y||(y={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"}(T||(T={})),function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"}(E||(E={})),function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"}(b||(b={})),function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(x||(x={})),function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"}(R||(R={})),function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"}(A||(A={})),function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"}(O||(O={})),function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"}(S||(S={})),function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"}(I||(I={})),function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(P||(P={})),function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"}(M||(M={})),function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"}(D||(D={})),function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT"}(N||(N={})),function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"}(w||(w={})),function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"}(C||(C={})),function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE"}(L||(L={})),function(t){t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH"}(U||(U={})),function(t){t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"}(G||(G={}));var B={MIPMAP_TEXTURES:M.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:U.NONE,SPRITE_MAX_TEXTURES:function(t){var e=!0;if(F.tablet||F.phone){var r;if(F.apple.device)if(r=navigator.userAgent.match(/OS (\d+)_(\d+)?/))parseInt(r[1],10)<11&&(e=!1);if(F.android.device)if(r=navigator.userAgent.match(/Android\s([0-9.]*)/))parseInt(r[1],10)<7&&(e=!1)}return e?t:4}(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,antialias:!1,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlp
1ha:!0,clearBeforeRender:!0,preserveDrawingBuffer:!1,width:800,height:600,legacy:!1},GC_MODE:w.AUTO,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:P.CLAMP,SCALE_MODE:I.LINEAR,PRECISION_VERTEX:C.HIGH,PRECISION_FRAGMENT:F.apple.device?C.HIGH:C.MEDIUM,CAN_UPLOAD_SAME_BUFFER:!F.apple.device,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1}},6679:function(t,e,r){"use strict";r.d(e,{vB:function(){return s},Sb:function(){return a},uF:function(){return i}});var i,n=r(1576);n.X.TARGET_FPMS=.06,function(t){t[t.INTERACTION=50]="INTERACTION",t[t.HIGH=25]="HIGH",t[t.NORMAL=0]="NORMAL",t[t.LOW=-25]="LOW",t[t.UTILITY=-50]="UTILITY"}(i||(i={}));var o=function(){function t(t,e,r,i){void 0===e&&(e=null),void 0===r&&(r=0),void 0===i&&(i=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=t,this.context=e,this.priority=r,this.once=i}return t.prototype.match=function(t,e){return void 0===e&&(e=null),this.fn===t&&this.context===e},t.prototype.emit=function(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));var e=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),e},t.prototype.connect=function(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this},t.prototype.destroy=function(t){void 0===t&&(t=!1),this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var e=this.next;return this.next=t?null:e,this.previous=null,e},t}(),s=function(){function t(){var t=this;this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new o(null,null,1/0),this.deltaMS=1/n.X.TARGET_FPMS,this.elapsedMS=1/n.X.TARGET_FPMS,this._tick=function(e){t._requestId=null,t.started&&(t.update(e),t.started&&null===t._requestId&&t._head.next&&(t._requestId=requestAnimationFrame(t._tick)))}}return t.prototype._requestIfNeeded=function(){null===this._requestId&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},t.prototype._cancelIfNeeded=function(){null!==this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=null)},t.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},t.prototype.add=function(t,e,r){return void 0===r&&(r=i.NORMAL),this._addListener(new o(t,e,r))},t.prototype.addOnce=function(t,e,r){return void 0===r&&(r=i.NORMAL),this._addListener(new o(t,e,r,!0))},t.prototype._addListener=function(t){var e=this._head.next,r=this._head;if(e){for(;e;){if(t.priority>e.priority){t.connect(r);break}r=e,e=e.next}t.previous||t.connect(r)}else t.connect(r);return this._startIfPossible(),this},t.prototype.remove=function(t,e){for(var r=this._head.next;r;)r=r.match(t,e)?r.destroy():r.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(t.prototype,"count",{get:function(){if(!this._head)return 0;for(var t=0,e=this._head;e=e.next;)t++;return t},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},t.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},t.prototype.destroy=function(){if(!this._protected){this.stop();for(var t=this._head.next;t;)t=t.destroy(!0);this._head.destroy(),this._head=null}},t.prototype.update=function(t){var e;if(void 0===t&&(t=performance.now()),t>this.lastTime){if((e=this.elapsedMS=t-this.lastTime)>this._maxElapsedMS&&(e=this._maxElapsedMS),e*=this.speed,this._minElapsedMS){var r=t-this._lastFrame|0;if(r<this._minElapsedMS)return;this._lastFrame=t-r%this._minElapsedMS}this.deltaMS=e,this.deltaTime=this.deltaMS*n.X.TARGET_FPMS;for(var i=this._head,o=i.next;o;)o=o.emit(this.deltaTime);i.next||this._cancelIfNeeded()}else this.deltaTime=this.deltaMS=this.elapsedMS=0;this.lastTime=t},Object.defineProperty(t.prototype,"FPS",{get:function(){return 1e3/this.elapsedMS},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minFPS",{get:function(){return 1e3/this._maxElapsedMS},set:function(t){var e=Math.min(this.maxFPS,t),r=Math.min(Math.max(0,e)/1e3,n.X.TARGET_FPMS);this._maxElapsedMS=1/r}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxFPS",{get:function(){return this._minElapsedMS?Math.round(1e3/this._minElapsedMS):0},set:function(t){if(0===t)this._minElapsedMS=0;else{var e=Math.max(this.minFPS,t);this._minElapsedMS=1/(e/1e3)}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"shared",{get:function(){if(!t._shared){var e=t._shared=new t;e.autoStart=!0,e._protected=!0}return t._shared},enumerable:!1,configurable:!0}),Object.defineProperty(t,"system",{get:function(){if(!t._system){var e=t._system=new t;e.autoStart=!0,e._protected=!0}return t._system},enumerable:!1,configurable:!0}),t}(),a=function(){function t(){}return t.init=function(t){var e=this;t=Object.assign({autoStart:!0,sharedTicker:!1},t),Object.defineProperty(this,"ticker",{set:function(t){this._ticker&&this._ticker.remove(this.render,this),this._ticker=t,t&&t.add(this.render,this,i.LOW)},get:function(){return this._ticker}}),this.stop=function(){e._ticker.stop()},this.start=function(){e._ticker.start()},this._ticker=null,this.ticker=t.sharedTicker?s.shared:new s,t.autoStart&&this.start()},t.destroy=function(){if(this._ticker){var t=this._ticker;this.ticker=null,t.destroy()}},t}()},8942:function(t,e,r){"use strict";r.r(e),r.d(e,{isMobile:function(){return i.t},EventEmitter:function(){return o.a},earcut:function(){return a.a},BaseTextureCache:function(){return k},CanvasRenderTarget:function(){return j},DATA_URI:function(){return z},ProgramCache:function(){return B},TextureCache:function(){return X},clearTextureCache:function(){return Y},correctBlendMode:function(){return b},createIndicesForQuads:function(){return O},decomposeDataUri:function(){return q},deprecation:function(){return F},destroyTextureCache:function(){return H},determineCrossOrigin:function(){return K},getBufferType:function(){return S},getResolutionOfUrl:function(){return Z},hex2rgb:function(){return v},hex2string:function(){return m},interleaveTypedArrays:function(){return P},isPow2:function(){return D},isWebGLSupported:function(){return _},log2:function(){return N},nextPow2:function(){return M},premultiplyBlendMode:function(){return E},premultiplyRgba:function(){return x},premultiplyTint:function(){return R},premultiplyTintToRgba:function(){return A},removeItems:function(){return w},rgb2hex:function(){return T},sayHello:function(){return d},sign:function(){return C},skipHello:function(){return f},string2hex:function(){return y},trimCanvas:function(){return V},uid:function(){return U},url:function(){return l}});var i=r(1576),n=r(6729),o=r.n(n),s=r(9187),a=r.n(s),h=r(1987),u=r(1680),l={parse:h.parse,format:h.format,resolve:h.resolve};i.X.RETINA_PREFIX=/@([0-9\.]+)x/,i.X.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var c,p=!1;function f(){p=!0}function d(t){var e;if(!p){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var r=["\n %c %c %c PixiJS 6.3.2 - \u2730 "+t+" \u2730  %c  %c  http://www.pixijs.com/  %c %c \u2665%c\u2665%c\u2665 \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(e=globalThis.console).log.apply(e,r)}else globalThis.console&&globalThis.console.log("PixiJS 6.3.2 - "+t+" - http://www.pixijs.com/");p=!0}}function _(){return"undefined"===typeof c&&(c=function(){var t={stencil:!0,failIfMajorPerformanceCaveat:i.X.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!globalThis.WebGLRenderingContext)return!1;var e=document.createElement("canvas"),r=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),n=!(!r||!r.getContextAttributes().stencil);if(r){var o=r.getExtension("WEBGL_lose_context");o&&o.loseContext()}return r=null,n}catch(s){return!1}}()),c}var g={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",s
1almon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function v(t,e){return void 0===e&&(e=[]),e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255,e}function m(t){var e=t.toString(16);return"#"+(e="000000".substring(0,6-e.length)+e)}function y(t){return"string"===typeof t&&"#"===(t=g[t.toLowerCase()]||t)[0]&&(t=t.slice(1)),parseInt(t,16)}function T(t){return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)}var E=function(){for(var t=[],e=[],r=0;r<32;r++)t[r]=r,e[r]=r;t[u.T$.NORMAL_NPM]=u.T$.NORMAL,t[u.T$.ADD_NPM]=u.T$.ADD,t[u.T$.SCREEN_NPM]=u.T$.SCREEN,e[u.T$.NORMAL]=u.T$.NORMAL_NPM,e[u.T$.ADD]=u.T$.ADD_NPM,e[u.T$.SCREEN]=u.T$.SCREEN_NPM;var i=[];return i.push(e),i.push(t),i}();function b(t,e){return E[e?1:0][t]}function x(t,e,r,i){return r=r||new Float32Array(4),i||void 0===i?(r[0]=t[0]*e,r[1]=t[1]*e,r[2]=t[2]*e):(r[0]=t[0],r[1]=t[1],r[2]=t[2]),r[3]=e,r}function R(t,e){if(1===e)return(255*e<<24)+t;if(0===e)return 0;var r=t>>16&255,i=t>>8&255,n=255&t;return(255*e<<24)+((r=r*e+.5|0)<<16)+((i=i*e+.5|0)<<8)+(n=n*e+.5|0)}function A(t,e,r,i){return(r=r||new Float32Array(4))[0]=(t>>16&255)/255,r[1]=(t>>8&255)/255,r[2]=(255&t)/255,(i||void 0===i)&&(r[0]*=e,r[1]*=e,r[2]*=e),r[3]=e,r}function O(t,e){void 0===e&&(e=null);var r=6*t;if((e=e||new Uint16Array(r)).length!==r)throw new Error("Out buffer length is incorrect, got "+e.length+" and expected "+r);for(var i=0,n=0;i<r;i+=6,n+=4)e[i+0]=n+0,e[i+1]=n+1,e[i+2]=n+2,e[i+3]=n+0,e[i+4]=n+2,e[i+5]=n+3;return e}function S(t){if(4===t.BYTES_PER_ELEMENT)return t instanceof Float32Array?"Float32Array":t instanceof Uint32Array?"Uint32Array":"Int32Array";if(2===t.BYTES_PER_ELEMENT){if(t instanceof Uint16Array)return"Uint16Array"}else if(1===t.BYTES_PER_ELEMENT&&t instanceof Uint8Array)return"Uint8Array";return null}var I={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array};function P(t,e){for(var r=0,i=0,n={},o=0;o<t.length;o++)i+=e[o],r+=t[o].length;var s=new ArrayBuffer(4*r),a=null,h=0;for(o=0;o<t.length;o++){var u=e[o],l=t[o],c=S(l);n[c]||(n[c]=new I[c](s)),a=n[c];for(var p=0;p<l.length;p++){a[(p/u|0)*i+h+p%u]=l[p]}h+=u}return new Float32Array(s)}function M(t){return t+=0===t?1:0,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)+1}function D(t){return!(t&t-1)&&!!t}function N(t){var e=(t>65535?1:0)<<4,r=((t>>>=e)>255?1:0)<<3;return e|=r,e|=r=((t>>>=r)>15?1:0)<<2,(e|=r=((t>>>=r)>3?1:0)<<1)|(t>>>=r)>>1}function w(t,e,r){var i,n=t.length;if(!(e>=n||0===r)){var o=n-(r=e+r>n?n-e:r);for(i=e;i<o;++i)t[i]=t[i+r];t.length=o}}function C(t){return 0===t?0:t<0?-1:1}var L=0;function U(){return++L}var G={};function F(t,e,r){if(void 0===r&&(r=3),!G[e]){var i=(new Error).stack;"undefined"===typeof i?console.warn("PixiJS Deprecation Warning: ",e+"\nDeprecated since v"+t):(i=i.split("\n").splice(r).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",e+"\nDeprecated since v"+t),console.warn(i),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",e+"\nDeprecated since v"+t),console.warn(i))),G[e]=!0}}var B={},X=Object.create(null),k=Object.create(null);function H(){var t;for(t in X)X[t].destroy();for(t in k)k[t].destroy()}function Y(){var t;for(t in X)delete X[t];for(t in k)delete k[t]}var j=function(){function t(t,e,r){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.resolution=r||i.X.RESOLUTION,this.resize(t,e)}return t.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},t.prototype.resize=function(t,e){this.canvas.width=Math.round(t*this.resolution),this.canvas.height=Math.round(e*this.resolution)},t.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(t.prototype,"width",{get:function(){return this.canvas.width}
1,set:function(t){this.canvas.width=Math.round(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.canvas.height},set:function(t){this.canvas.height=Math.round(t)},enumerable:!1,configurable:!0}),t}();function V(t){var e,r,i,n=t.width,o=t.height,s=t.getContext("2d"),a=s.getImageData(0,0,n,o).data,h=a.length,u={top:null,left:null,right:null,bottom:null},l=null;for(e=0;e<h;e+=4)0!==a[e+3]&&(r=e/4%n,i=~~(e/4/n),null===u.top&&(u.top=i),(null===u.left||r<u.left)&&(u.left=r),(null===u.right||u.right<r)&&(u.right=r+1),(null===u.bottom||u.bottom<i)&&(u.bottom=i));return null!==u.top&&(n=u.right-u.left,o=u.bottom-u.top+1,l=s.getImageData(u.left,u.top,n,o)),{height:o,width:n,data:l}}var W,z=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;function q(t){var e=z.exec(t);if(e)return{mediaType:e[1]?e[1].toLowerCase():void 0,subType:e[2]?e[2].toLowerCase():void 0,charset:e[3]?e[3].toLowerCase():void 0,encoding:e[4]?e[4].toLowerCase():void 0,data:e[5]}}function K(t,e){if(void 0===e&&(e=globalThis.location),0===t.indexOf("data:"))return"";e=e||globalThis.location,W||(W=document.createElement("a")),W.href=t;var r=l.parse(W.href),i=!r.port&&""===e.port||r.port===e.port;return r.hostname===e.hostname&&i&&r.protocol===e.protocol?"":"anonymous"}function Z(t,e){var r=i.X.RETINA_PREFIX.exec(t);return r?parseFloat(r[1]):void 0!==e?e:1}},9187:function(t){"use strict";function e(t,e,o){o=o||2;var s,a,h,c,p,d,_,g=e&&e.length,v=g?e[0]*o:t.length,m=r(t,0,v,o,!0),y=[];if(!m||m.next===m.prev)return y;if(g&&(m=function(t,e,n,o){var s,a,h,c=[];for(s=0,a=e.length;s<a;s++)(h=r(t,e[s]*o,s<a-1?e[s+1]*o:t.length,o,!1))===h.next&&(h.steiner=!0),c.push(f(h));for(c.sort(u),s=0;s<c.length;s++)n=i(n=l(c[s],n),n.next);return n}(t,e,m,o)),t.length>80*o){s=h=t[0],a=c=t[1];for(var T=o;T<v;T+=o)(p=t[T])<s&&(s=p),(d=t[T+1])<a&&(a=d),p>h&&(h=p),d>c&&(c=d);_=0!==(_=Math.max(h-s,c-a))?1/_:0}return n(m,y,o,s,a,_),y}function r(t,e,r,i,n){var o,s;if(n===O(t,e,r,i)>0)for(o=e;o<r;o+=i)s=x(o,t[o],t[o+1],s);else for(o=r-i;o>=e;o-=i)s=x(o,t[o],t[o+1],s);return s&&v(s,s.next)&&(R(s),s=s.next),s}function i(t,e){if(!t)return t;e||(e=t);var r,i=t;do{if(r=!1,i.steiner||!v(i,i.next)&&0!==g(i.prev,i,i.next))i=i.next;else{if(R(i),(i=e=i.prev)===i.next)break;r=!0}}while(r||i!==e);return e}function n(t,e,r,u,l,c,f){if(t){!f&&c&&function(t,e,r,i){var n=t;do{null===n.z&&(n.z=p(n.x,n.y,e,r,i)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next}while(n!==t);n.prevZ.nextZ=null,n.prevZ=null,function(t){var e,r,i,n,o,s,a,h,u=1;do{for(r=t,t=null,o=null,s=0;r;){for(s++,i=r,a=0,e=0;e<u&&(a++,i=i.nextZ);e++);for(h=u;a>0||h>0&&i;)0!==a&&(0===h||!i||r.z<=i.z)?(n=r,r=r.nextZ,a--):(n=i,i=i.nextZ,h--),o?o.nextZ=n:t=n,n.prevZ=o,o=n;r=i}o.nextZ=null,u*=2}while(s>1)}(n)}(t,u,l,c);for(var d,_,g=t;t.prev!==t.next;)if(d=t.prev,_=t.next,c?s(t,u,l,c):o(t))e.push(d.i/r),e.push(t.i/r),e.push(_.i/r),R(t),t=_.next,g=_.next;else if((t=_)===g){f?1===f?n(t=a(i(t),e,r),e,r,u,l,c,2):2===f&&h(t,e,r,u,l,c):n(i(t),e,r,u,l,c,1);break}}}function o(t){var e=t.prev,r=t,i=t.next;if(g(e,r,i)>=0)return!1;for(var n=t.next.next;n!==t.prev;){if(d(e.x,e.y,r.x,r.y,i.x,i.y,n.x,n.y)&&g(n.prev,n,n.next)>=0)return!1;n=n.next}return!0}function s(t,e,r,i){var n=t.prev,o=t,s=t.next;if(g(n,o,s)>=0)return!1;for(var a=n.x<o.x?n.x<s.x?n.x:s.x:o.x<s.x?o.x:s.x,h=n.y<o.y?n.y<s.y?n.y:s.y:o.y<s.y?o.y:s.y,u=n.x>o.x?n.x>s.x?n.x:s.x:o.x>s.x?o.x:s.x,l=n.y>o.y?n.y>s.y?n.y:s.y:o.y>s.y?o.y:s.y,c=p(a,h,e,r,i),f=p(u,l,e,r,i),_=t.prevZ,v=t.nextZ;_&&_.z>=c&&v&&v.z<=f;){if(_!==t.prev&&_!==t.next&&d(n.x,n.y,o.x,o.y,s.x,s.y,_.x,_.y)&&g(_.prev,_,_.next)>=0)return!1;if(_=_.prevZ,v!==t.prev&&v!==t.next&&d(n.x,n.y,o.x,o.y,s.x,s.y,v.x,v.y)&&g(v.prev,v,v.next)>=0)return!1;v=v.nextZ}for(;_&&_.z>=c;){if(_!==t.prev&&_!==t.next&&d(n.x,n.y,o.x,o.y,s.x,s.y,_.x,_.y)&&g(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;v&&v.z<=f;){if(v!==t.prev&&v!==t.next&&d(n.x,n.y,o.x,o.y,s.x,s.y,v.x,v.y)&&g(v.prev,v,v.next)>=0)return!1;v=v.nextZ}return!0}function a(t,e,r){var n=t;do{var o=n.prev,s=n.next.next;!v(o,s)&&m(o,n,n.next,s)&&E(o,s)&&E(s,o)&&(e.push(o.i/r),e.push(n.i/r),e.push(s.i/r),R(n),R(n.next),n=t=s),n=n.next}while(n!==t);return i(n)}function h(t,e,r,o,s,a){var h=t;do{for(var u=h.next.next;u!==h.prev;){if(h.i!==u.i&&_(h,u)){var l=b(h,u);return h=i(h,h.next),l=i(l,l.next),n(h,e,r,o,s,a),void n(l,e,r,o,s,a)}u=u.next}h=h.next}while(h!==t)}function u(t,e){return t.x-e.x}function l(t,e){var r=function(t,e){var r,i=e,n=t.x,o=t.y,s=-1/0;do{if(o<=i.y&&o>=i.next.y&&i.next.y!==i.y){var a=i.x+(o-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(a<=n&&a>
vendor: 1,252 bytes, line 1
1s){if(s=a,a===n){if(o===i.y)return i;if(o===i.next.y)return i.next}r=i.x<i.next.x?i:i.next}}i=i.next}while(i!==e);if(!r)return null;if(n===s)return r;var h,u=r,l=r.x,p=r.y,f=1/0;i=r;do{n>=i.x&&i.x>=l&&n!==i.x&&d(o<p?n:s,o,l,p,o<p?s:n,o,i.x,i.y)&&(h=Math.abs(o-i.y)/(n-i.x),E(i,t)&&(h<f||h===f&&(i.x>r.x||i.x===r.x&&c(r,i)))&&(r=i,f=h)),i=i.next}while(i!==u);return r}(t,e);if(!r)return e;var n=b(r,t),o=i(r,r.next);return i(n,n.next),e===r?o:e}function c(t,e){return g(t.prev,t,e.prev)<0&&g(e.next,t,t.next)<0}function p(t,e,r,i,n){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*n)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-i)*n)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function f(t){var e=t,r=t;do{(e.x<r.x||e.x===r.x&&e.y<r.y)&&(r=e),e=e.next}while(e!==t);return r}function d(t,e,r,i,n,o,s,a){return(n-s)*(e-a)-(t-s)*(o-a)>=0&&(t-s)*(i-a)-(r-s)*(e-a)>=0&&(r-s)*(o-a)-(n-s)*(i-a)>=0}function _(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&m(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&&(E(t,e)&&E(e,t)&&function(t,e){var r=t,i=!1,n=(t.x+e.x)/2,o=(t.y+e.y)/2;do{r.y>o!==r.next.y>
vendor: 4,145 bytes, line 1
1o&&r.next.y!==r.y&&n<(r.next.x-r.x)*(o-r.y)/(r.next.y-r.y)+r.x&&(i=!i),r=r.next}while(r!==t);return i}(t,e)&&(g(t.prev,t,e.prev)||g(t,e.prev,e))||v(t,e)&&g(t.prev,t,t.next)>0&&g(e.prev,e,e.next)>0)}function g(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function v(t,e){return t.x===e.x&&t.y===e.y}function m(t,e,r,i){var n=T(g(t,e,r)),o=T(g(t,e,i)),s=T(g(r,i,t)),a=T(g(r,i,e));return n!==o&&s!==a||(!(0!==n||!y(t,r,e))||(!(0!==o||!y(t,i,e))||(!(0!==s||!y(r,t,i))||!(0!==a||!y(r,e,i)))))}function y(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function T(t){return t>0?1:t<0?-1:0}function E(t,e){return g(t.prev,t,t.next)<0?g(t,e,t.next)>=0&&g(t,t.prev,e)>=0:g(t,e,t.prev)<0||g(t,t.next,e)<0}function b(t,e){var r=new A(t.i,t.x,t.y),i=new A(e.i,e.x,e.y),n=t.next,o=e.prev;return t.next=e,e.prev=t,r.next=n,n.prev=r,i.next=r,r.prev=i,o.next=i,i.prev=o,i}function x(t,e,r,i){var n=new A(t,e,r);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function R(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function A(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function O(t,e,r,i){for(var n=0,o=e,s=r-i;o<r;o+=i)n+=(t[s]-t[o])*(t[o+1]+t[s+1]),s=o;return n}t.exports=e,t.exports.default=e,e.deviation=function(t,e,r,i){var n=e&&e.length,o=n?e[0]*r:t.length,s=Math.abs(O(t,0,o,r));if(n)for(var a=0,h=e.length;a<h;a++){var u=e[a]*r,l=a<h-1?e[a+1]*r:t.length;s-=Math.abs(O(t,u,l,r))}var c=0;for(a=0;a<i.length;a+=3){var p=i[a]*r,f=i[a+1]*r,d=i[a+2]*r;c+=Math.abs((t[p]-t[d])*(t[f+1]-t[p+1])-(t[p]-t[f])*(t[d+1]-t[p+1]))}return 0===s&&0===c?0:Math.abs((c-s)/s)},e.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},i=0,n=0;n<t.length;n++){for(var o=0;o<t[n].length;o++)for(var s=0;s<e;s++)r.vertices.push(t[n][o][s]);n>0&&(i+=t[n-1].length,r.holes.push(i))}return r}},6729:function(t){"use strict";var e=Object.prototype.hasOwnProperty,r="~";function i(){}function n(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,i,o,s){if("function"!==typeof i)throw new TypeError("The listener must be a function");var a=new n(i,o||t,s),h=r?r+e:e;return t._events[h]?t._events[h].fn?t._events[h]=[t._events[h],a]:t._events[h].push(a):(t._events[h]=a,t._eventsCount++),t}function s(t,e){0===--t._eventsCount?t._events=new i:delete t._events[e]}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),a.prototype.eventNames=function(){var t,i,n=[];if(0===this._eventsCount)return n;for(i in t=this._events)e.call(t,i)&&n.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},a.prototype.listeners=function(t){var e=r?r+t:t,i=this._events[e];if(!i)return[];if(i.fn)return[i.fn];for(var n=0,o=i.length,s=new Array(o);n<o;n++)s[n]=i[n].fn;return s},a.prototype.listenerCount=function(t){var e=r?r+t:t,i=this._events[e];return i?i.fn?1:i.length:0},a.prototype.emit=function(t,e,i,n,o,s){var a=r?r+t:t;if(!this._events[a])return!1;var h,u,l=this._events[a],c=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),c){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,i),!0;case 4:return l.fn.call(l.context,e,i,n),!0;case 5:return l.fn.call(l.context,e,i,n,o),!0;case 6:return l.fn.call(l.context,e,i,n,o,s),!0}for(u=1,h=new Array(c-1);u<c;u++)h[u-1]=arguments[u];l.fn.apply(l.context,h)}else{var p,f=l.length;for(u=0;u<f;u++)switch(l[u].once&&this.removeListener(t,l[u].fn,void 0,!0),c){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,e);break;case 3:l[u].fn.call(l[u].context,e,i);break;case 4:l[u].fn.call(l[u].context,e,i,n);break;default:if(!h)for(p=1,h=new Array(c-1);p<c;p++)h[p-1]=arguments[p];l[u].fn.apply(l[u].context,h)}}return!0},a.prototype.on=function(t,e,r){return o(this,t,e,r,!1)},a.prototype.once=function(t,e,r){return o(this,t,e,r,!0)}
1,a.prototype.removeListener=function(t,e,i,n){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return s(this,o),this;var a=this._events[o];if(a.fn)a.fn!==e||n&&!a.once||i&&a.context!==i||s(this,o);else{for(var h=0,u=[],l=a.length;h<l;h++)(a[h].fn!==e||n&&!a[h].once||i&&a[h].context!==i)&&u.push(a[h]);u.length?this._events[o]=1===u.length?u[0]:u:s(this,o)}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&s(this,e)):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,t.exports=a},6546:function(t,e){!function(t){"use strict";function e(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function r(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}var i,n,o,s,a,h,u,l,c,p,f,d,_=function(){return i||"undefined"!==typeof window&&(i=window.gsap)&&i.registerPlugin&&i},g=1,v=[],m=[],y=[],T=Date.now,E=function(t,e){return e},b=function(){var t=c.core,e=t.bridge||{},r=t._scrollers,i=t._proxies;r.push.apply(r,m),i.push.apply(i,y),m=r,y=i,E=function(t,r){return e[t](r)}},x=function(t,e){return~y.indexOf(t)&&y[y.indexOf(t)+1][e]},R=function(t){return!!~p.indexOf(t)},A=function(t,e,r,i,n){return t.addEventListener(e,r,{passive:!i,capture:!!n})},O=function(t,e,r,i){return t.removeEventListener(e,r,!!i)},S="scrollLeft",I="scrollTop",P=function(){return f&&f.isPressed||m.cache++},M=function(t,e){var r=function r(i){if(i||0===i){g&&(o.history.scrollRestoration="manual");var n=f&&f.isPressed;i=r.v=Math.round(i)||(f&&f.iOS?1:0),t(i),r.cacheID=m.cache,n&&E("ss",i)}else(e||m.cache!==r.cacheID||E("ref"))&&(r.cacheID=m.cache,r.v=t());return r.v+r.offset};return r.offset=0,t&&r},D={s:S,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:M((function(t){return arguments.length?o.scrollTo(t,N.sc()):o.pageXOffset||s[S]||a[S]||h[S]||0}))},N={s:I,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:D,sc:M((function(t){return arguments.length?o.scrollTo(D.sc(),t):o.pageYOffset||s[I]||a[I]||h[I]||0}))},w=function(t){return i.utils.toArray(t)[0]||("string"===typeof t&&!1!==i.config().nullTargetWarn?console.warn("Element not found:",t):null)},C=function(t,e){var r=e.s,i=e.sc,n=m.indexOf(t),o=i===N.sc?1:2;return!~n&&(n=m.push(t)-1),m[n+o]||(m[n+o]=M(x(t,r),!0)||(R(t)?i:M((function(e){return arguments.length?t[r]=e:t[r]}))))},L=function(t,e,r){var i=t,n=t,o=T(),s=o,a=e||50,h=Math.max(500,3*a),u=function(t,e){var h=T();e||h-o>a?(n=i,i=t,s=o,o=h):r?i+=t:i=n+(t-n)/(h-s)*(o-s)},l=function(t){var e=s,a=n,l=T();return(t||0===t)&&t!==i&&u(t),o===s||l-s>h?0:(i+(r?a:-a))/((r?l:o)-e)*1e3};return{update:u,reset:function(){n=i=r?0:i,s=o=0},getVelocity:l}},U=function(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},G=function(t){var e=Math.max.apply(Math,t),r=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(r)?e:r},F=function(){(c=i.core.globals().ScrollTrigger)&&c.core&&b()},B=function(t){return(i=t||_())&&"undefined"!==typeof document&&document.body&&(o=window,s=document,a=s.documentElement,h=s.body,p=[o,s,a,h],i.utils.clamp,l="onpointerenter"in h?"pointer":"mouse",u=X.isTouch=o.matchMedia&&o.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in o||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,d=X.eventTypes=("ontouchstart"in a?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in a?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout((function(){return g=0}),500),F(),n=1),n};D.op=N,m.cache=0;var X=function(){function t(t){this.init(t)}return t.prototype.init=function(t){n||B(i)||console.warn("Please gsap.registerPlugin(Observer)"),c||F();var e=t.tolerance,r=t.dragMinimum,p=t.type,_=t.target,g=t.lineHeight,m=t.debounce,y=t.preventDefault,E=t.onStop,b=t.onStopDelay,x=t.ignore,S=t.wheelSpeed,I=t.event,M=t.onDragStart,X=t.onDragEnd,k=t.onDrag,H=t.onPress,Y=t.onRelease,j=t.onRight,V=t.onLeft,W=t.onUp,z=t.onDown,q=t.onChangeX,K=t.onChangeY,Z=t.onChange,$=t.onToggleX,J=t.onToggleY,Q=t.onHover,tt=t.onHoverEnd,et=t.onMove,rt=t.ignoreCheck,it=t.isNormalizer,nt=t.onGestureStart,ot=t.onGestureEnd,st=t.onWheel,at=t.onEnable,ht=t.onDisable,ut=t.onClick,lt=t.scrollSpeed,ct=t.capture,pt=t.allowClicks,ft=t.lockAxis,dt=t.onLockAxis;this.target=_=w(_)||a,this.vars=t,x&&(x=i.utils.toArray(x)),e=e||0,r=r||0,S=S||1,lt=lt||1,p=p||"wheel,touch,pointer",m=!1!==m,g||(g=parseFloat(o.getComputedStyle(h).lineHeight)||22);var _t,gt,vt,mt,yt,Tt,Et,bt=this,xt=0,Rt=0,At=C(_,D),Ot=C(_,N),St=At(),It=Ot(),Pt=~p.indexOf("touch")&&!~p.indexOf("pointer")&&"pointerdown"===d[0],Mt=R(_),Dt=_.ownerDocument||s,Nt=[0,0,0],wt=[0,0,0],Ct=0,Lt=function(){return Ct=T()},Ut=function(t,e){return(bt.event=t)&&x&&~x.indexOf(t.target)||e&&Pt&&"touch"!==t.pointerType||rt&&rt(t,e)},Gt=function(){bt._vx.reset(),bt._vy.reset(),gt.pause(),E&&E(bt)},Ft=function(){var t=bt.deltaX=G(Nt),r=bt.deltaY=G(wt),i=Math.abs(t)>=e,n=Math.abs(r)>=e;Z&&(i||n)&&Z(bt,t,r,Nt,wt),i&&(j&&bt.deltaX>0&&j(bt),V&&bt.deltaX<0&&V(bt),q&&q(bt),$&&bt.deltaX<0!==xt<0&&$(bt),xt=bt.deltaX,Nt[0]=Nt[1]=Nt[2]=0),n&&(z&&bt.deltaY>0&&z(bt),W&&bt.deltaY<0&&W(bt),K&&K(bt),J&&bt.deltaY<0!==Rt<0&&J(bt),Rt=bt.deltaY,wt[0]=wt[1]=wt[2]=0),(mt||vt)&&(et&&et(bt),dt&&Tt&&dt(bt),vt&&(k(bt),vt=!1),mt=Tt
1=!1),yt&&(st(bt),yt=!1),_t=0},Bt=function(t,e,r){Nt[r]+=t,wt[r]+=e,bt._vx.update(t),bt._vy.update(e),m?_t||(_t=requestAnimationFrame(Ft)):Ft()},Xt=function(t,e){"y"!==Et&&(Nt[2]+=t,bt._vx.update(t,!0)),"x"!==Et&&(wt[2]+=e,bt._vy.update(e,!0)),ft&&!Et&&(bt.axis=Et=Math.abs(t)>Math.abs(e)?"x":"y",Tt=!0),m?_t||(_t=requestAnimationFrame(Ft)):Ft()},kt=function(t){if(!Ut(t,1)){var e=(t=U(t,y)).clientX,i=t.clientY,n=e-bt.x,o=i-bt.y,s=bt.isDragging;bt.x=e,bt.y=i,(s||Math.abs(bt.startX-e)>=r||Math.abs(bt.startY-i)>=r)&&(k&&(vt=!0),s||(bt.isDragging=!0),Xt(n,o),s||M&&M(bt))}},Ht=bt.onPress=function(t){Ut(t,1)||(bt.axis=Et=null,gt.pause(),bt.isPressed=!0,t=U(t),xt=Rt=0,bt.startX=bt.x=t.clientX,bt.startY=bt.y=t.clientY,bt._vx.reset(),bt._vy.reset(),A(it?_:Dt,d[1],kt,y,!0),bt.deltaX=bt.deltaY=0,H&&H(bt))},Yt=function(t){if(!Ut(t,1)){O(it?_:Dt,d[1],kt,!0);var e=bt.isDragging&&(Math.abs(bt.x-bt.startX)>3||Math.abs(bt.y-bt.startY)>3),r=U(t);e||(bt._vx.reset(),bt._vy.reset(),y&&pt&&i.delayedCall(.08,(function(){if(T()-Ct>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(Dt.createEvent){var e=Dt.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,o,1,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}}))),bt.isDragging=bt.isGesturing=bt.isPressed=!1,E&&!it&&gt.restart(!0),X&&e&&X(bt),Y&&Y(bt,e)}},jt=function(t){return t.touches&&t.touches.length>1&&(bt.isGesturing=!0)&&nt(t,bt.isDragging)},Vt=function(){return(bt.isGesturing=!1)||ot(bt)},Wt=function(t){if(!Ut(t)){var e=At(),r=Ot();Bt((e-St)*lt,(r-It)*lt,1),St=e,It=r,E&&gt.restart(!0)}},zt=function(t){if(!Ut(t)){t=U(t,y),st&&(yt=!0);var e=(1===t.deltaMode?g:2===t.deltaMode?o.innerHeight:1)*S;Bt(t.deltaX*e,t.deltaY*e,0),E&&!it&&gt.restart(!0)}},qt=function(t){if(!Ut(t)){var e=t.clientX,r=t.clientY,i=e-bt.x,n=r-bt.y;bt.x=e,bt.y=r,mt=!0,(i||n)&&Xt(i,n)}},Kt=function(t){bt.event=t,Q(bt)},Zt=function(t){bt.event=t,tt(bt)},$t=function(t){return Ut(t)||U(t,y)&&ut(bt)};gt=bt._dc=i.delayedCall(b||.25,Gt).pause(),bt.deltaX=bt.deltaY=0,bt._vx=L(0,50,!0),bt._vy=L(0,50,!0),bt.scrollX=At,bt.scrollY=Ot,bt.isDragging=bt.isGesturing=bt.isPressed=!1,bt.enable=function(t){return bt.isEnabled||(A(Mt?Dt:_,"scroll",P),p.indexOf("scroll")>=0&&A(Mt?Dt:_,"scroll",Wt,y,ct),p.indexOf("wheel")>=0&&A(_,"wheel",zt,y,ct),(p.indexOf("touch")>=0&&u||p.indexOf("pointer")>=0)&&(A(_,d[0],Ht,y,ct),A(Dt,d[2],Yt),A(Dt,d[3],Yt),pt&&A(_,"click",Lt,!1,!0),ut&&A(_,"click",$t),nt&&A(Dt,"gesturestart",jt),ot&&A(Dt,"gestureend",Vt),Q&&A(_,l+"enter",Kt),tt&&A(_,l+"leave",Zt),et&&A(_,l+"move",qt)),bt.isEnabled=!0,t&&t.type&&Ht(t),at&&at(bt)),bt},bt.disable=function(){bt.isEnabled&&(v.filter((function(t){return t!==bt&&R(t.target)})).length||O(Mt?Dt:_,"scroll",P),bt.isPressed&&(bt._vx.reset(),bt._vy.reset(),O(it?_:Dt,d[1],kt,!0)),O(Mt?Dt:_,"scroll",Wt,ct),O(_,"wheel",zt,ct),O(_,d[0],Ht,ct),O(Dt,d[2],Yt),O(Dt,d[3],Yt),O(_,"click",Lt,!0),O(_,"click",$t),O(Dt,"gesturestart",jt),O(Dt,"gestureend",Vt),O(_,l+"enter",Kt),O(_,l+"leave",Zt),O(_,l+"move",qt),bt.isEnabled=bt.isPressed=bt.isDragging=!1,ht&&ht(bt))},bt.kill=function(){bt.disable();var t=v.indexOf(bt);t>=0&&v.splice(t,1),f===bt&&(f=0)},v.push(bt),it&&R(_)&&(f=bt),bt.enable(I)},r(t,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),t}();X.version="3.10.4",X.create=function(t){return new X(t)},X.register=B,X.getAll=function(){return v.slice()},X.getById=function(t){return v.filter((function(e){return e.vars.id===t}))[0]},_()&&i.registerPlugin(X);var k,H,Y,j,V,W,z,q,K,Z,$,J,Q,tt,et,rt,it,nt,ot,st,at,ht,ut,lt,ct,pt,ft,dt,_t,gt,vt,mt,yt,Tt=1,Et=Date.now,bt=Et(),xt=0,Rt=0,At=function(){return tt=1},Ot=function(){return tt=0},St=function(t){return t},It=function(t){return Math.round(1e5*t)/1e5||0},Pt=function(){return"undefined"!==typeof window},Mt=function(){return k||Pt()&&(k=window.gsap)&&k.registerPlugin&&k},Dt=function(t){return!!~z.indexOf(t)},Nt=function(t){return x(t,"getBoundingClientRect")||(Dt(t)?function(){return er.width=Y.innerWidth,er.height=Y.innerHe
1ight,er}:function(){return le(t)})},wt=function(t,e,r){var i=r.d,n=r.d2,o=r.a;return(o=x(t,"getBoundingClientRect"))?function(){return o()[i]}:function(){return(e?Y["inner"+n]:t["client"+n])||0}},Ct=function(t,e){return!e||~y.indexOf(t)?Nt(t):function(){return er}},Lt=function(t,e){var r=e.s,i=e.d2,n=e.d,o=e.a;return(r="scroll"+i)&&(o=x(t,r))?o()-Nt(t)()[n]:Dt(t)?(V[r]||W[r])-(Y["inner"+i]||V["client"+i]||W["client"+i]):t[r]-t["offset"+i]},Ut=function(t,e){for(var r=0;r<ot.length;r+=3)(!e||~e.indexOf(ot[r+1]))&&t(ot[r],ot[r+1],ot[r+2])},Gt=function(t){return"string"===typeof t},Ft=function(t){return"function"===typeof t},Bt=function(t){return"number"===typeof t},Xt=function(t){return"object"===typeof t},kt=function(t){return Ft(t)&&t()},Ht=function(t,e){return function(){var r=kt(t),i=kt(e);return function(){kt(r),kt(i)}}},Yt=function(t,e,r){return t&&t.progress(e?0:1)&&r&&t.pause()},jt=function(t,e){if(t.enabled){var r=e(t);r&&r.totalTime&&(t.callbackAnimation=r)}},Vt=Math.abs,Wt="left",zt="top",qt="right",Kt="bottom",Zt="width",$t="height",Jt="Right",Qt="Left",te="Top",ee="Bottom",re="padding",ie="margin",ne="Width",oe="Height",se="px",ae=function(t){return Y.getComputedStyle(t)},he=function(t){var e=ae(t).position;t.style.position="absolute"===e||"fixed"===e?e:"relative"},ue=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},le=function(t,e){var r=e&&"matrix(1, 0, 0, 1, 0, 0)"!==ae(t)[et]&&k.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=t.getBoundingClientRect();return r&&r.progress(0).kill(),i},ce=function(t,e){var r=e.d2;return t["offset"+r]||t["client"+r]||0},pe=function(t){var e,r=[],i=t.labels,n=t.duration();for(e in i)r.push(i[e]/n);return r},fe=function(t){return function(e){return k.utils.snap(pe(t),e)}},de=function(t){var e=k.utils.snap(t),r=Array.isArray(t)&&t.slice(0).sort((function(t,e){return t-e}));return r?function(t,i,n){var o;if(void 0===n&&(n=.001),!i)return e(t);if(i>0){for(t-=n,o=0;o<r.length;o++)if(r[o]>=t)return r[o];return r[o-1]}for(o=r.length,t+=n;o--;)if(r[o]<=t)return r[o];return r[0]}:function(r,i,n){void 0===n&&(n=.001);var o=e(r);return!i||Math.abs(o-r)<n||o-r<0===i<0?o:e(i<0?r-t:r+t)}},_e=function(t){return function(e,r){return de(pe(t))(e,r.direction)}},ge=function(t,e,r,i){return r.split(",").forEach((function(r){return t(e,r,i)}))},ve=function(t,e,r,i,n){return t.addEventListener(e,r,{passive:!i,capture:!!n})},me=function(t,e,r,i){return t.removeEventListener(e,r,!!i)},ye=function(t,e,r){return r&&r.wheelHandler&&t(e,"wheel",r)},Te={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Ee={toggleActions:"play",anticipatePin:0},be={top:0,left:0,center:.5,bottom:1,right:1},xe=function(t,e){if(Gt(t)){var r=t.indexOf("="),i=~r?+(t.charAt(r-1)+1)*parseFloat(t.substr(r+1)):0;~r&&(t.indexOf("%")>r&&(i*=e/100),t=t.substr(0,r-1)),t=i+(t in be?be[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},Re=function(t,e,r,i,n,o,s,a){var h=n.startColor,u=n.endColor,l=n.fontSize,c=n.indent,p=n.fontWeight,f=j.createElement("div"),d=Dt(r)||"fixed"===x(r,"pinType"),_=-1!==t.indexOf("scroller"),g=d?W:r,v=-1!==t.indexOf("start"),m=v?h:u,y="border-color:"+m+";font-size:"+l+";color:"+m+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((_||a)&&d?"fixed;":"absolute;"),(_||a||!d)&&(y+=(i===N?qt:Kt)+":"+(o+parseFloat(c))+"px;"),s&&(y+="box-sizing:border-box;text-align:left;width:"+s.offsetWidth+"px;"),f._isStart=v,f.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),f.style.cssText=y,f.innerText=e||0===e?t+"-"+e:t,g.children[0]?g.insertBefore(f,g.children[0]):g.appendChild(f),f._offset=f["offset"+i.op.d2],Ae(f,0,i,v),f},Ae=function(t,e,r,i){var n={display:"block"},o=r[i?"os2":"p2"],s=r[i?"p2":"os2"];t._isFlipped=i,n[r.a+"Percent"]=i?-100:0,n[r.a]=i?"1px":0,n["border"+o+ne]=1,n["border"+s+ne]=0,n[r.p]=e+"px",k.set(t,n)},Oe=[],Se={},Ie=function(){return Et()-xt>34&&We()},Pe=function(){(!ut||!ut.isPressed||ut.startX>W.clientWidth)&&(m.cache++,_t||(_t=requestAnimationFrame(We)),xt||Ge("scrollStart"),xt=Et())}
1,Me=function(){pt=Y.innerWidth,ct=Y.innerHeight},De=function(){m.cache++,!Q&&!ht&&!j.fullscreenElement&&!j.webkitFullscreenElement&&(!lt||pt!==Y.innerWidth||Math.abs(Y.innerHeight-ct)>.25*Y.innerHeight)&&q.restart(!0)},Ne={},we=[],Ce=[],Le=function(t){var e,r=k.ticker.frame,i=[],n=0;if(vt!==r||Tt){for(Xe();n<Ce.length;n+=4)(e=Y.matchMedia(Ce[n]).matches)!==Ce[n+3]&&(Ce[n+3]=e,e?i.push(n):Xe(1,Ce[n])||Ft(Ce[n+2])&&Ce[n+2]());for(Be(),n=0;n<i.length;n++)e=i[n],gt=Ce[e],Ce[e+2]=Ce[e+1](t);gt=0,H&&Ye(0,1),vt=r,Ge("matchMedia")}},Ue=function t(){return me(sr,"scrollEnd",t)||Ye(!0)},Ge=function(t){return Ne[t]&&Ne[t].map((function(t){return t()}))||we},Fe=[],Be=function(t){for(var e=0;e<Fe.length;e+=5)t&&Fe[e+4]!==t||(Fe[e].style.cssText=Fe[e+1],Fe[e].getBBox&&Fe[e].setAttribute("transform",Fe[e+2]||""),Fe[e+3].uncache=1)},Xe=function(t,e){var r;for(rt=0;rt<Oe.length;rt++)r=Oe[rt],e&&r.media!==e||(t?r.kill(1):r.revert());e&&Be(e),e||Ge("revert")},ke=function(){return m.cache++&&m.forEach((function(t){return"function"===typeof t&&(t.rec=0)}))},He=0,Ye=function(t,e){if(!xt||t){mt=!0;var r=Ge("refreshInit");st&&sr.sort(),e||Xe(),Oe.slice(0).forEach((function(t){return t.refresh()})),Oe.forEach((function(t){return"max"===t.vars.end&&t.setPositions(t.start,Lt(t.scroller,t._dir))})),r.forEach((function(t){return t&&t.render&&t.render(-1)})),ke(),q.pause(),He++,mt=!1,Ge("refresh")}else ve(sr,"scrollEnd",Ue)},je=0,Ve=1,We=function(){if(!mt){sr.isUpdating=!0,yt&&yt.update(0);var t=Oe.length,e=Et(),r=e-bt>=50,i=t&&Oe[0].scroll();if(Ve=je>i?-1:1,je=i,r&&(xt&&!tt&&e-xt>200&&(xt=0,Ge("scrollEnd")),$=bt,bt=e),Ve<0){for(rt=t;rt-- >0;)Oe[rt]&&Oe[rt].update(0,r);Ve=1}else for(rt=0;rt<t;rt++)Oe[rt]&&Oe[rt].update(0,r);sr.isUpdating=!1}_t=0},ze=[Wt,zt,Kt,qt,ie+ee,ie+Jt,ie+te,ie+Qt,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],qe=ze.concat([Zt,$t,"boxSizing","max"+ne,"max"+oe,"position",ie,re,re+te,re+Jt,re+ee,re+Qt]),Ke=function(t,e,r){Je(r);var i=t._gsap;if(i.spacerIsNative)Je(i.spacerState);else if(t.parentNode===e){var n=e.parentNode;n&&(n.insertBefore(t,e),n.removeChild(e))}},Ze=function(t,e,r,i){if(t.parentNode!==e){for(var n,o=ze.length,s=e.style,a=t.style;o--;)s[n=ze[o]]=r[n];s.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(s.display="inline-block"),a[Kt]=a[qt]=s.flexBasis="auto",s.overflow="visible",s.boxSizing="border-box",s[Zt]=ce(t,D)+se,s[$t]=ce(t,N)+se,s[re]=a[ie]=a[zt]=a[Wt]="0",Je(i),a[Zt]=a["max"+ne]=r[Zt],a[$t]=a["max"+oe]=r[$t],a[re]=r[re],t.parentNode.insertBefore(e,t),e.appendChild(t)}},$e=/([A-Z])/g,Je=function(t){if(t){var e,r,i=t.t.style,n=t.length,o=0;for((t.t._gsap||k.core.getCache(t.t)).uncache=1;o<n;o+=2)r=t[o+1],e=t[o],r?i[e]=r:i[e]&&i.removeProperty(e.replace($e,"-$1").toLowerCase())}},Qe=function(t){for(var e=qe.length,r=t.style,i=[],n=0;n<e;n++)i.push(qe[n],r[qe[n]]);return i.t=t,i},tr=function(t,e,r){for(var i,n=[],o=t.length,s=r?8:0;s<o;s+=2)i=t[s],n.push(i,i in e?e[i]:t[s+1]);return n.t=t.t,n},er={left:0,top:0},rr=function(t,e,r,i,n,o,s,a,h,u,l,c,p){Ft(t)&&(t=t(a)),Gt(t)&&"max"===t.substr(0,3)&&(t=c+("="===t.charAt(4)?xe("0"+t.substr(3),r):0));var f,d,_,g=p?p.time():0;if(p&&p.seek(0),Bt(t))s&&Ae(s,r,i,!0);else{Ft(e)&&(e=e(a));var v,m,y,T,E=t.split(" ");_=w(e)||W,(v=le(_)||{})&&(v.left||v.top)||"none"!==ae(_).display||(T=_.style.display,_.style.display="block",v=le(_),T?_.style.display=T:_.style.removeProperty("display")),m=xe(E[0],v[i.d]),y=xe(E[1]||"0",r),t=v[i.p]-h[i.p]-u+m+n-y,s&&Ae(s,y,i,r-y<20||s._isStart&&y>20),r-=r-y}if(o){var b=t+r,x=o._isStart;f="scroll"+i.d2,Ae(o,b,i,x&&b>20||!x&&(l?Math.max(W[f],V[f]):o.parentNode[f])<=b+1),l&&(h=le(s),l&&(o.style[i.op.p]=h[i.op.p]-i.op.m-o._offset+se))}return p&&_&&(f=le(_),p.seek(c),d=le(_),p._caScrollDist=f[i.p]-d[i.p],t=t/p._caScrollDist*c),p&&p.seek(g),p?t:Math.round(t)},ir=/(webkit|moz|length|cssText|inset)/i,nr=function(t,e,r,i){if(t.parentNode!==e){var n,o,s=t.style;if(e===W){for(n in t._stOrig=s.cssText,o=ae(t))+n||ir.test(n)||!o[n]||"string"!==typeof s[n]||"0"===n||(s[n]=o[n]);s.top=r,s.left=i}else s.cssText=t._stOrig;k.core.getCache(t).uncache=1,e.appendChild(t)}},or=function(t,e){var r,i,n=C(t,e),o="_scroll"+e.p2,s=function e(s,a,h,u,l){var c=e.tween,p=a.onComplete,f={};return h=h||n(),l=u&&l||0,u=u||s-h,c&&c.kill(),r=Math.round(h),a[o]=s,a.modifiers=f,f[o]=function(t){return(t=It(n()))!==r&&t!==i&&Math.abs(t-r)>2&&Math.abs(t-i)>2?(c.kill(),e.tween=0):t=h+u*c.ratio+l*c.ratio*c.ratio,i=r,r=It(t)},a.onComplete=function(){e.tween=0,p&&p.call(c)},c=e.tween=k.to(t,a)};return t[o]=n,n.wheelHandler=function(){return s.tween&&s.tween.kill()&&(s.tween=0)},ve(t,"wheel",n.wheelHandler),s},sr=function(){function t(e,r){H||t.register(k)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),this.init(e,r)}return t.prototype.init=function(e,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Rt){var i,n,o,s,a,h,u,l,c,p,f,d,_,g,v,m,T,E,b,R,A,O,S,I,P,M,L,U,G,F,B,X,H,z,q,J,et,it,nt=e=ue(Gt(e)||Bt(e)||e.nodeType?{trigger:e}:e,Ee),ot=nt.onUpdate,ht=nt.toggleClass,ut=nt.id,lt=nt.onToggle,ct=nt.onRefresh,pt=nt.scrub,ft=nt.trigger,_t=nt.pin,vt=nt.pinSpacing,bt=nt.invali
1dateOnRefresh,At=nt.anticipatePin,Ot=nt.onScrubComplete,Pt=nt.onSnapComplete,Mt=nt.once,Nt=nt.snap,Ut=nt.pinReparent,kt=nt.pinSpacer,Ht=nt.containerAnimation,Wt=nt.fastScrollEnd,zt=nt.preventOverlaps,qt=e.horizontal||e.containerAnimation&&!1!==e.horizontal?D:N,Kt=!pt&&0!==pt,pe=w(e.scroller||Y),ge=k.core.getCache(pe),ye=Dt(pe),be="fixed"===("pinType"in e?e.pinType:x(pe,"pinType")||ye&&"fixed"),Ae=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],Ie=Kt&&e.toggleActions.split(" "),Me="markers"in e?e.markers:Ee.markers,Ne=ye?0:parseFloat(ae(pe)["border"+qt.p2+ne])||0,we=this,Ce=e.onRefreshInit&&function(){return e.onRefreshInit(we)},Le=wt(pe,ye,qt),Ge=Ct(pe,ye),Fe=0,Be=0,Xe=C(pe,qt);if(we.media=gt,we._dir=qt,At*=45,we.scroller=pe,we.scroll=Ht?Ht.time.bind(Ht):Xe,s=Xe(),we.vars=e,r=r||e.animation,"refreshPriority"in e&&(st=1,-9999===e.refreshPriority&&(yt=we)),ge.tweenScroll=ge.tweenScroll||{top:or(pe,N),left:or(pe,D)},we.tweenTo=i=ge.tweenScroll[qt.p],we.scrubDuration=function(t){(B=Bt(t)&&t)?F?F.duration(t):F=k.to(r,{ease:"expo",totalProgress:"+=0.001",duration:B,paused:!0,onComplete:function(){return Ot&&Ot(we)}}):(F&&F.progress(1).kill(),F=0)},r&&(r.vars.lazy=!1,r._initted||!1!==r.vars.immediateRender&&!1!==e.immediateRender&&r.render(0,!0,!0),we.animation=r.pause(),r.scrollTrigger=we,we.scrubDuration(pt),U=0,ut||(ut=r.vars.id)),Oe.push(we),Nt&&(Xt(Nt)&&!Nt.push||(Nt={snapTo:Nt}),"scrollBehavior"in W.style&&k.set(ye?[W,V]:pe,{scrollBehavior:"auto"}),o=Ft(Nt.snapTo)?Nt.snapTo:"labels"===Nt.snapTo?fe(r):"labelsDirectional"===Nt.snapTo?_e(r):!1!==Nt.directional?function(t,e){return de(Nt.snapTo)(t,Et()-Be<500?0:e.direction)}:k.utils.snap(Nt.snapTo),X=Nt.duration||{min:.1,max:2},X=Xt(X)?Z(X.min,X.max):Z(X,X),H=k.delayedCall(Nt.delay||B/2||.1,(function(){var t=Xe(),e=Et()-Be<500,n=i.tween;if(!(e||Math.abs(we.getVelocity())<10)||n||tt||Fe===t)we.isActive&&Fe!==t&&H.restart(!0);else{var s=(t-h)/_,a=r&&!Kt?r.totalProgress():s,l=e?0:(a-G)/(Et()-$)*1e3||0,c=k.utils.clamp(-s,1-s,Vt(l/2)*l/.185),p=s+(!1===Nt.inertia?0:c),f=Z(0,1,o(p,we)),d=Math.round(h+f*_),g=Nt,v=g.onStart,m=g.onInterrupt,y=g.onComplete;if(t<=u&&t>=h&&d!==t){if(n&&!n._initted&&n.data<=Vt(d-t))return;!1===Nt.inertia&&(c=f-s),i(d,{duration:X(Vt(.185*Math.max(Vt(p-a),Vt(f-a))/l/.05||0)),ease:Nt.ease||"power3",data:Vt(d-t),onInterrupt:function(){return H.restart(!0)&&m&&m(we)},onComplete:function(){we.update(),Fe=Xe(),U=G=r&&!Kt?r.totalProgress():we.progress,Pt&&Pt(we),y&&y(we)}},t,c*_,d-t-c*_),v&&v(we,i.tween)}}})).pause()),ut&&(Se[ut]=we),(it=(ft=we.trigger=w(ft||_t))&&ft._gsap&&ft._gsap.stRevert)&&(it=it(we)),_t=!0===_t?ft:w(_t),Gt(ht)&&(ht={targets:ft,className:ht}),_t&&(!1===vt||vt===ie||(vt=!(!vt&&"flex"===ae(_t.parentNode).display)&&re),we.pin=_t,!1!==e.force3D&&k.set(_t,{force3D:!0}),(n=k.core.getCache(_t)).spacer?g=n.pinState:(kt&&((kt=w(kt))&&!kt.nodeType&&(kt=kt.current||kt.nativeElement),n.spacerIsNative=!!kt,kt&&(n.spacerState=Qe(kt))),n.spacer=T=kt||j.createElement("div"),T.classList.add("pin-spacer"),ut&&T.classList.add("pin-spacer-"+ut),n.pinState=g=Qe(_t)),we.spacer=T=n.spacer,L=ae(_t),S=L[vt+qt.os2],b=k.getProperty(_t),R=k.quickSetter(_t,qt.a,se),Ze(_t,T,L),m=Qe(_t)),Me){d=Xt(Me)?ue(Me,Te):Te,p=Re("scroller-start",ut,pe,qt,d,0),f=Re("scroller-end",ut,pe,qt,d,0,p),E=p["offset"+qt.op.d2];var ke=w(x(pe,"content")||pe);l=this.markerStart=Re("start",ut,ke,qt,d,E,0,Ht),c=this.markerEnd=Re("end",ut,ke,qt,d,E,0,Ht),Ht&&(et=k.quickSetter([l,c],qt.a,se)),be||y.length&&!0===x(pe,"fixedMarkers")||(he(ye?W:pe),k.set([p,f],{force3D:!0}),P=k.quickSetter(p,qt.a,se),M=k.quickSetter(f,qt.a,se))}if(Ht){var He=Ht.vars.onUpdate,Ye=Ht.vars.onUpdateParams;Ht.eventCallback("onUpdate",(function(){we.update(0,0,1),He&&He.apply(Ye||[])}))}we.previous=function(){return Oe[Oe.indexOf(we)-1]},we.next=function(){return Oe[Oe.indexOf(we)+1]},we.revert=function(t){var e=!1!==t||!we.enabled,i=Q;e!==we.isReverted&&(e&&(we.scroll.rec||!Q||!mt||(we.scroll.rec=Xe()),q=Math.max(Xe(),we.scroll.rec||0),z=we.progress,J=r&&r.progress()),l&&[l,c,p,f].forEach((function(t){return t.style.display=e?"none":"block"})),e&&(Q=1),we.update(e),Q=i,_t&&(e?Ke(_t,T,g):(!Ut||!we.isActive)&&Ze(_t,T,ae(_t),I)),we.isReverted=e)},we.refresh=function(n,o){if(!Q&&we.enabled||o)if(_t&&n&&xt)ve(t,"scrollEnd",Ue);else{!mt&&Ce&&Ce(we),Q=1,Be=Et(),i.tween&&(i.tween.kill(),i.tween=0),F&&F.pause(),bt&&r&&r.time(-.01,!0).invalidate(),we.isReverted||we.revert();for(var d,y,E,x,R,S,P,M,L,U,G=Le(),B=Ge(),X=Ht?Ht.duration():Lt(pe,qt),Y=0,j=0,V=e.end,K=e.endTrigger||ft,Z=e.start||(0!==e.start&&ft?_t?"0 0":"0 100%":0),$=we.pinnedContainer=e.pinnedContainer&&w(e.pinnedContainer),tt=ft&&Math.max(0,Oe.indexOf(we))||0,et=tt;et--;)(S=Oe[et]).end||S.refresh(0,1)||(Q=1),!(P=S.pin)||P!==ft&&P!==_t||S.isReverted||(U||(U=[]),U.unshift(S),S.revert()),S!==Oe[et]&&(tt--,et--);for(Ft(Z)&&(Z=Z(we)),h=rr(Z,ft,G,qt,Xe(),l,p,we,B,Ne,be,X,Ht)||(_t?-.001:0),Ft(V)&&(V=V(we)),Gt(V)&&!V.indexOf("+=")&&(~V.indexOf(" ")?V=(Gt(Z)?Z.split(" ")[0]:"")+V:(Y=xe(V.substr(2),G),V=Gt(Z)?Z:h+Y,K=ft)),u=Math.max(h,rr(V||(K?"100% 0":X),K,G,qt,Xe()+Y,c,f,we,B,Ne,be,X,Ht))||-.001,_=u-h||(h-=.01)&&.001,Y=0,et=tt;et--;)(P=(S=Oe[et]).pin)&&S.start-S._pinPush<h&&!Ht&&S.end>
10&&(d=S.end-S.start,P!==ft&&P!==$||Bt(Z)||(Y+=d*(1-S.progress)),P===_t&&(j+=d));if(h+=Y,u+=Y,we._pinPush=j,l&&Y&&((d={})[qt.a]="+="+Y,$&&(d[qt.p]="-="+Xe()),k.set([l,c],d)),_t)d=ae(_t),x=qt===N,E=Xe(),A=parseFloat(b(qt.a))+j,!X&&u>1&&((ye?W:pe).style["overflow-"+qt.a]="scroll"),Ze(_t,T,d),m=Qe(_t),y=le(_t,!0),M=be&&C(pe,x?D:N)(),vt&&((I=[vt+qt.os2,_+j+se]).t=T,(et=vt===re?ce(_t,qt)+_+j:0)&&I.push(qt.d,et+se),Je(I),be&&Xe(q)),be&&((R={top:y.top+(x?E-h:M)+se,left:y.left+(x?M:E-h)+se,boxSizing:"border-box",position:"fixed"})[Zt]=R["max"+ne]=Math.ceil(y.width)+se,R[$t]=R["max"+oe]=Math.ceil(y.height)+se,R[ie]=R[ie+te]=R[ie+Jt]=R[ie+ee]=R[ie+Qt]="0",R[re]=d[re],R[re+te]=d[re+te],R[re+Jt]=d[re+Jt],R[re+ee]=d[re+ee],R[re+Qt]=d[re+Qt],v=tr(g,R,Ut)),r?(L=r._initted,at(1),r.render(r.duration(),!0,!0),O=b(qt.a)-A+_+j,_!==O&&be&&v.splice(v.length-2,2),r.render(0,!0,!0),L||r.invalidate(),at(0)):O=_;else if(ft&&Xe()&&!Ht)for(y=ft.parentNode;y&&y!==W;)y._pinOffset&&(h-=y._pinOffset,u-=y._pinOffset),y=y.parentNode;U&&U.forEach((function(t){return t.revert(!1)})),we.start=h,we.end=u,s=a=Xe(),Ht||(s<q&&Xe(q),we.scroll.rec=0),we.revert(!1),H&&(Fe=-1,we.isActive&&Xe(h+_*z),H.restart(!0)),Q=0,r&&Kt&&(r._initted||J)&&r.progress()!==J&&r.progress(J,!0).render(r.time(),!0,!0),(z!==we.progress||Ht)&&(r&&!Kt&&r.totalProgress(z,!0),we.progress=z,we.update(0,0,1)),_t&&vt&&(T._pinOffset=Math.round(we.progress*O)),ct&&ct(we)}},we.getVelocity=function(){return(Xe()-a)/(Et()-$)*1e3||0},we.endAnimation=function(){Yt(we.callbackAnimation),r&&(F?F.progress(1):r.paused()?Kt||Yt(r,we.direction<0,1):Yt(r,r.reversed()))},we.labelToScroll=function(t){return r&&r.labels&&(h||we.refresh()||h)+r.labels[t]/r.duration()*_||0},we.getTrailing=function(t){var e=Oe.indexOf(we),r=we.direction>0?Oe.slice(0,e).reverse():Oe.slice(e+1);return(Gt(t)?r.filter((function(e){return e.vars.preventOverlaps===t})):r).filter((function(t){return we.direction>0?t.end<=h:t.start>=u}))},we.update=function(t,e,n){if(!Ht||n||t){var o,l,c,f,d,g,y,E=we.scroll(),b=t?0:(E-h)/_,x=b<0?0:b>1?1:b||0,I=we.progress;if(e&&(a=s,s=Ht?Xe():E,Nt&&(G=U,U=r&&!Kt?r.totalProgress():x)),At&&!x&&_t&&!Q&&!Tt&&xt&&h<E+(E-a)/(Et()-$)*At&&(x=1e-4),x!==I&&we.enabled){if(f=(d=(o=we.isActive=!!x&&x<1)!==(!!I&&I<1))||!!x!==!!I,we.direction=x>I?1:-1,we.progress=x,f&&!Q&&(l=x&&!I?0:1===x?1:1===I?2:3,Kt&&(c=!d&&"none"!==Ie[l+1]&&Ie[l+1]||Ie[l],y=r&&("complete"===c||"reset"===c||c in r))),zt&&(d||y)&&(y||pt||!r)&&(Ft(zt)?zt(we):we.getTrailing(zt).forEach((function(t){return t.endAnimation()}))),Kt||(!F||Q||Tt?r&&r.totalProgress(x,!!Q):((Ht||yt&&yt!==we)&&F.render(F._dp._time-F._start),F.resetTo?F.resetTo("totalProgress",x,r._tTime/r._tDur):(F.vars.totalProgress=x,F.invalidate().restart()))),_t)if(t&&vt&&(T.style[vt+qt.os2]=S),be){if(f){if(g=!t&&x>I&&u+1>E&&E+1>=Lt(pe,qt),Ut)if(t||!o&&!g)nr(_t,T);else{var D=le(_t,!0),w=E-h;nr(_t,W,D.top+(qt===N?w:0)+se,D.left+(qt===N?0:w)+se)}Je(o||g?v:m),O!==_&&x<1&&o||R(A+(1!==x||g?0:O))}}else R(It(A+O*x));Nt&&!i.tween&&!Q&&!Tt&&H.restart(!0),ht&&(d||Mt&&x&&(x<1||!dt))&&K(ht.targets).forEach((function(t){return t.classList[o||Mt?"add":"remove"](ht.className)})),ot&&!Kt&&!t&&ot(we),f&&!Q?(Kt&&(y&&("complete"===c?r.pause().totalProgress(1):"reset"===c?r.restart(!0).pause():"restart"===c?r.restart(!0):r[c]()),ot&&ot(we)),!d&&dt||(lt&&d&&jt(we,lt),Ae[l]&&jt(we,Ae[l]),Mt&&(1===x?we.kill(!1,1):Ae[l]=0),d||Ae[l=1===x?1:3]&&jt(we,Ae[l])),Wt&&!o&&Math.abs(we.getVelocity())>(Bt(Wt)?Wt:2500)&&(Yt(we.callbackAnimation),F?F.progress(1):Yt(r,!x,1))):Kt&&ot&&!Q&&ot(we)}if(M){var C=Ht?E/Ht.duration()*(Ht._caScrollDist||0):E;P(C+(p._isFlipped?1:0)),M(C)}et&&et(-E/Ht.duration()*(Ht._caScrollDist||0))}},we.enable=function(e,r){we.enabled||(we.enabled=!0,ve(pe,"resize",De),ve(ye?j:pe,"scroll",Pe),Ce&&ve(t,"refreshInit",Ce),!1!==e&&(we.progress=z=0,s=a=Fe=Xe()),!1!==r&&we.refresh())},we.getTween=function(t){return t&&i?i.tween:F},we.setPositions=function(t,e){_t&&(A+=t-h,O+=e-t-_),we.start=h=t,we.end=u=e,_=e-t,we.update()},we.disable=function(e,r){if(we.enabled&&(!1!==e&&we.revert(),we.enabled=we.isActive=!1,r||F&&F.pause(),q=0,n&&(n.uncache=1),Ce&&me(t,"refreshInit",Ce),H&&(H.pause(),i.tween&&i.tween.kill()&&(i.tween=0)),!ye)){for(var o=Oe.length;o--;)if(Oe[o].scroller===pe&&Oe[o]!==we)return;me(pe,"resize",De),me(pe,"scroll",Pe)}},we.kill=function(t,i){we.disable(t,i),F&&!i&&F.kill(),ut&&delete Se[ut];var o=Oe.indexOf(we);o>
1=0&&Oe.splice(o,1),o===rt&&Ve>0&&rt--,o=0,Oe.forEach((function(t){return t.scroller===we.scroller&&(o=1)})),o||(we.scroll.rec=0),r&&(r.scrollTrigger=null,t&&r.render(-1),i||r.kill()),l&&[l,c,p,f].forEach((function(t){return t.parentNode&&t.parentNode.removeChild(t)})),yt===we&&(yt=0),_t&&(n&&(n.uncache=1),o=0,Oe.forEach((function(t){return t.pin===_t&&o++})),o||(n.spacer=0)),e.onKill&&e.onKill(we)},we.enable(!1,!1),it&&it(we),r&&r.add&&!_?k.delayedCall(.01,(function(){return h||u||we.refresh()}))&&(_=.01)&&(h=u=0):we.refresh()}else this.update=this.refresh=this.kill=St},t.register=function(e){return H||(k=e||Mt(),Pt()&&window.document&&t.enable(),H=Rt),H},t.defaults=function(t){if(t)for(var e in t)Ee[e]=t[e];return Ee},t.disable=function(t,e){Rt=0,Oe.forEach((function(r){return r[e?"kill":"disable"](t)})),me(Y,"wheel",Pe),me(j,"scroll",Pe),clearInterval(J),me(j,"touchcancel",St),me(W,"touchstart",St),ge(me,j,"pointerdown,touchstart,mousedown",At),ge(me,j,"pointerup,touchend,mouseup",Ot),q.kill(),Ut(me);for(var r=0;r<m.length;r+=3)ye(me,m[r],m[r+1]),ye(me,m[r],m[r+2])},t.enable=function(){if(Y=window,j=document,V=j.documentElement,W=j.body,k&&(K=k.utils.toArray,Z=k.utils.clamp,at=k.core.suppressOverwrites||St,k.core.globals("ScrollTrigger",t),W)){Rt=1,X.register(k),t.isTouch=X.isTouch,ft=X.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),ve(Y,"wheel",Pe),z=[Y,j,V,W],t.matchMedia({"(orientation: portrait)":function(){return Me(),Me}}),ve(j,"scroll",Pe);var e,r,i=W.style,n=i.borderTopStyle;for(i.borderTopStyle="solid",e=le(W),N.m=Math.round(e.top+N.sc())||0,D.m=Math.round(e.left+D.sc())||0,n?i.borderTopStyle=n:i.removeProperty("border-top-style"),J=setInterval(Ie,250),k.delayedCall(.5,(function(){return Tt=0})),ve(j,"touchcancel",St),ve(W,"touchstart",St),ge(ve,j,"pointerdown,touchstart,mousedown",At),ge(ve,j,"pointerup,touchend,mouseup",Ot),et=k.utils.checkPrefix("transform"),qe.push(et),H=Et(),q=k.delayedCall(.2,Ye).pause(),ot=[j,"visibilitychange",function(){var t=Y.innerWidth,e=Y.innerHeight;j.hidden?(it=t,nt=e):it===t&&nt===e||De()},j,"DOMContentLoaded",Ye,Y,"load",Ye,Y,"resize",De],Ut(ve),Oe.forEach((function(t){return t.enable(0,1)})),r=0;r<m.length;r+=3)ye(me,m[r],m[r+1]),ye(me,m[r],m[r+2])}},t.config=function(e){"limitCallbacks"in e&&(dt=!!e.limitCallbacks);var r=e.syncInterval;r&&clearInterval(J)||(J=r)&&setInterval(Ie,r),"ignoreMobileResize"in e&&(lt=1===t.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Ut(me)||Ut(ve,e.autoRefreshEvents||"none"),ht=-1===(e.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var r=w(t),i=m.indexOf(r),n=Dt(r);~i&&m.splice(i,n?6:2),e&&(n?y.unshift(Y,e,W,e,V,e):y.unshift(r,e))},t.matchMedia=function(t){var e,r,i,n,o;for(r in t)i=Ce.indexOf(r),n=t[r],gt=r,"all"===r?n():(e=Y.matchMedia(r))&&(e.matches&&(o=n()),~i?(Ce[i+1]=Ht(Ce[i+1],n),Ce[i+2]=Ht(Ce[i+2],o)):(i=Ce.length,Ce.push(r,n,o),e.addListener?e.addListener(Le):e.addEventListener("change",Le)),Ce[i+3]=e.matches),gt=0;return Ce},t.clearMatchMedia=function(t){t||(Ce.length=0),(t=Ce.indexOf(t))>=0&&Ce.splice(t,4)},t.isInViewport=function(t,e,r){var i=(Gt(t)?w(t):t).getBoundingClientRect(),n=i[r?Zt:$t]*e||0;return r?i.right-n>0&&i.left+n<Y.innerWidth:i.bottom-n>0&&i.top+n<Y.innerHeight},t.positionInViewport=function(t,e,r){Gt(t)&&(t=w(t));var i=t.getBoundingClientRect(),n=i[r?Zt:$t],o=null==e?n/2:e in be?be[e]*n:~e.indexOf("%")?parseFloat(e)*n/100:parseFloat(e)||0;return r?(i.left+o)/Y.innerWidth:(i.top+o)/Y.innerHeight},t}();sr.version="3.10.4",sr.saveStyles=function(t){return t?K(t).forEach((function(t){if(t&&t.style){var e=Fe.indexOf(t);e>=0&&Fe.splice(e,5),Fe.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),k.core.getCache(t),gt)}})):Fe},sr.revert=function(t,e){return Xe(!t,e)},sr.create=function(t,e){return new sr(t,e)},sr.refresh=function(t){return t?De():(H||sr.register())&&Ye(!0)},sr.update=We,sr.clearScrollMemory=ke,sr.maxScroll=function(t,e){return Lt(t,e?D:N)},sr.getScrollFunc=function(t,e){return C(w(t),e?D:N)},sr.getById=function(t){return Se[t]},sr.getAll=function(){return Oe.filter((function(t){return"ScrollSmoother"!==t.vars.id}))},sr.isScrolling=function(){return!!xt},sr.snapDirectional=de,sr.addEventListener=function(t,e){var r=Ne[t]||(Ne[t]=[]);~r.indexOf(e)||r.push(e)},sr.removeEventListener=function(t,e){var r=Ne[t],i=r&&r.indexOf(e);i>=0&&r.splice(i,1)},sr.batch=function(t,e){var r,i=[],n={},o=e.interval||.016,s=e.batchMax||1e9,a=function(t,e){var r=[],i=[],n=k.delayedCall(o,(function(){e(r,i),r=[],i=[]})).pause();return function(t){r.length||n.restart(!0),r.push(t.trigger),i.push(t),s<=r.length&&n.progress(1)}};for(r in e)n[r]="on"===r.substr(0,2)&&Ft(e[r])&&"onRefreshInit"!==r?a(r,e[r]):e[r];return Ft(s)&&(s=s(),ve(sr,"refresh",(function(){return s=e.batchMax()}))),K(t).forEach((function(t){var e={};for(r in n)e[r]=n[r];e.trigger=t,i.push(sr.create(e))})),i};var ar,hr=function(t,e,r,i){return e>i?t(i):e<0&&t(0),r>i?(i-e)/(r-e):r<0?e/(e-r):1},ur=function t(e,r){!0===r?e.style.removeProperty("touch-action"):e.style.touchAction=!0===r?"auto":r?"pan-"
1+r+(X.isTouch?" pinch-zoom":""):"none",e===V&&t(W,r)},lr={auto:1,scroll:1},cr=function(t){var e,r=t.event,i=t.target,n=t.axis,o=(r.changedTouches?r.changedTouches[0]:r).target,s=o._gsap||k.core.getCache(o),a=Et();if(!s._isScrollT||a-s._isScrollT>2e3){for(;o&&o.scrollHeight<=o.clientHeight;)o=o.parentNode;s._isScroll=o&&!Dt(o)&&o!==i&&(lr[(e=ae(o)).overflowY]||lr[e.overflowX]),s._isScrollT=a}(s._isScroll||"x"===n)&&(r._gsapAllow=!0)},pr=function(t,e,r,i){return X.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:i=i&&cr,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return r&&ve(j,X.eventTypes[0],dr,!1,!0)},onDisable:function(){return me(j,X.eventTypes[0],dr,!0)}})},fr=/(input|label|select|textarea)/i,dr=function(t){var e=fr.test(t.target.tagName);(e||ar)&&(t._gsapAllow=!0,ar=e)},_r=function(t){Xt(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var e,r,i,n,o,s,a,h,u=t,l=u.normalizeScrollX,c=u.momentum,p=u.allowNestedScroll,f=w(t.target)||V,d=k.core.globals().ScrollSmoother,_=ft&&(t.content&&w(t.content)||d&&d.get()&&d.get().content()),g=C(f,N),v=C(f,D),y=1,T=(X.isTouch&&Y.visualViewport?Y.visualViewport.scale*Y.visualViewport.width:Y.outerWidth)/Y.innerWidth,E=0,b=Ft(c)?function(){return c(e)}:function(){return c||2.8},x=pr(f,t.type,!0,p),R=function(){return i=!1},A=St,O=St,S=function(){r=Lt(f,N),O=Z(ft?1:0,r),l&&(A=Z(0,Lt(f,D))),n=He},I=function(){if(i){requestAnimationFrame(R);var t=It(e.deltaY/2),r=O(g.v-t);return _&&r!==g.v+g.offset&&(g.offset=r-g.v,_.style.transform="translateY("+-g.offset+"px)",_._gsap&&(_._gsap.y=-g.offset+"px"),g.cacheID=m.cache,We()),!0}_&&(_.style.transform="translateY(0px)",g.offset=g.cacheID=0,_._gsap&&(_._gsap.y="0px")),i=!0},P=function(){S(),o.isActive()&&o.vars.scrollY>r&&(g()>r?o.progress(1)&&g(r):o.resetTo("scrollY",r))};return t.ignoreCheck=function(t){return ft&&"touchmove"===t.type&&I()||y>1.05&&"touchstart"!==t.type||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){var t=y;y=It((Y.visualViewport&&Y.visualViewport.scale||1)/T),o.pause(),t!==y&&ur(f,y>1.01||!l&&"x"),i=!1,s=v(),a=g(),S(),n=He},t.onRelease=t.onGestureStart=function(t,e){if(_&&(_.style.transform="translateY(0px)",g.offset=g.cacheID=0,_._gsap&&(_._gsap.y="0px")),e){m.cache++;var i,n,s=b();l&&(n=(i=v())+.05*s*-t.velocityX/.227,s*=hr(v,i,n,Lt(f,D)),o.vars.scrollX=A(n)),n=(i=g())+.05*s*-t.velocityY/.227,s*=hr(g,i,n,Lt(f,N)),o.vars.scrollY=O(n),o.invalidate().duration(s).play(.01),(ft&&o.vars.scrollY>=r||i>=r-1)&&k.to({},{onUpdate:P,duration:s})}else h.restart(!0)},t.onWheel=function(){o._ts&&o.pause(),Et()-E>1e3&&(n=0,E=Et())},t.onChange=function(t,e,r,i,o){He!==n&&S(),e&&l&&v(A(i[2]===e?s+(t.startX-t.x):v()+e-i[1])),r&&g(O(o[2]===r?a+(t.startY-t.y):g()+r-o[1])),We()},t.onEnable=function(){ur(f,!l&&"x"),ve(Y,"resize",P),x.enable()},t.onDisable=function(){ur(f,!0),me(Y,"resize",P),x.kill()},(e=new X(t)).iOS=ft,ft&&!g()&&g(1),h=e._dc,o=k.to(e,{ease:"power4",paused:!0,scrollX:l?"+=0.1":"+=0",scrollY:"+=0.1",onComplete:h.vars.onComplete}),e};sr.sort=function(t){return Oe.sort(t||function(t,e){return-1e6*(t.vars.refreshPriority||0)+t.start-(e.start+-1e6*(e.vars.refreshPriority||0))})},sr.observe=function(t){return new X(t)},sr.normalizeScroll=function(t){if("undefined"===typeof t)return ut;if(!0===t&&ut)return ut.enable();if(!1===t)return ut&&ut.kill();var e=t instanceof X?t:_r(t);return ut&&ut.target===e.target&&ut.kill(),Dt(e.target)&&(ut=e),e},sr.core={_getVelocityProp:L,_inputObserver:pr,_scrollers:m,_proxies:y,bridge:{ss:function(){xt||Ge("scrollStart"),xt=Et()},ref:function(){return Q}}},Mt()&&k.registerPlugin(sr),t.ScrollTrigger=sr,t.default=sr,"undefined"===typeof window||window!==t?Object.defineProperty(t,"__esModule",{value:!0}):delete window.default}(e)},6038:function(t,e,r){"use strict";function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}r.d(e,{ZP:function(){return yi}});var o,s,a,h,u,l,c,p,f,d={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},_={duration:.5,overwrite:!1,delay:0},g=1e8,v=1e-8,m=2*Math.PI,y=m/4,T=0,E=Math.sqrt,b=Math.cos,x=Math.sin,R=function(t){return"string"===typeof t},A=function(t){return"function"===typeof t},O=function(t){return"number"===typeof t},S=function(t){return"undefined"===typeof t},I=function(t){return"object"===typeof t},P=function(t){return!1!==t},M=function(){return"undefined"!==typeof window},D=function(t){return A(t)||R(t)},N="function"===typeof ArrayBuffer&&ArrayBuffer.isView||function(){},w=Array.isArray,C=/(?:-?\.?\d|\.)+/gi,L=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,U=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,G=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,F=/[+-]=-?[.\d]+/,B=/[^,'"\[\]\s]+/gi,X=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,k={},H={},Y=function(t){return(H=_t(t,k))&&or},j=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},V=function(t,e){return!e&&console.warn(t)},W=function(t,e){return t&&(k[t]=e)&&H&&(H[t]=e)||k},z=function(){return 0},q={},K=[],Z={},$={},J={},Q=30,tt=[],et="",rt=function(t){var e,r,i=t[0];if(I(i)||A(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=tt.length;r--&&!tt[r].targetTest(i););e=tt[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Ie(t[r],e)))||t.splice(r,1);return t},it=function(t){return t._gsap||rt(zt(t))[0]._gsap},nt=function(t,e,r){return(r=t[e])&&A(r)?t[e]():S(r)&&t.getAttribute&&t.getAttribute(e)||r}
vendor: 32,361 bytes, line 1
1,ot=function(t,e){return(t=t.split(",")).forEach(e)||t},st=function(t){return Math.round(1e5*t)/1e5||0},at=function(t){return Math.round(1e7*t)/1e7||0},ht=function(t,e){var r=e.charAt(0),i=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+i:"-"===r?t-i:"*"===r?t*i:t/i},ut=function(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i<r;);return i<r},lt=function(){var t,e,r=K.length,i=K.slice(0);for(Z={},K.length=0,t=0;t<r;t++)(e=i[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},ct=function(t,e,r,i){K.length&&lt(),t.render(e,r,i),K.length&&lt()},pt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(B).length<2?e:R(t)?t.trim():t},ft=function(t){return t},dt=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},_t=function(t,e){for(var r in e)t[r]=e[r];return t},gt=function t(e,r){for(var i in r)"__proto__"!==i&&"constructor"!==i&&"prototype"!==i&&(e[i]=I(r[i])?t(e[i]||(e[i]={}),r[i]):r[i]);return e},vt=function(t,e){var r,i={};for(r in t)r in e||(i[r]=t[r]);return i},mt=function(t){var e,r=t.parent||s,i=t.keyframes?(e=w(t.keyframes),function(t,r){for(var i in r)i in t||"duration"===i&&e||"ease"===i||(t[i]=r[i])}):dt;if(P(t.inherit))for(;r;)i(t,r.vars.defaults),r=r.parent||r._dp;return t},yt=function(t,e,r,i,n){void 0===r&&(r="_first"),void 0===i&&(i="_last");var o,s=t[i];if(n)for(o=e[n];s&&s[n]>o;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=s,e.parent=e._dp=t,e},Tt=function(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,o=e._next;n?n._next=o:t[r]===e&&(t[r]=o),o?o._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null},Et=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove(t),t._act=0},bt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t},xt=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},Rt=function t(e){return!e||e._ts&&t(e.parent)},At=function(t){return t._repeat?Ot(t._tTime,t=t.duration()+t._rDelay)*t:0},Ot=function(t,e){var r=Math.floor(t/=e);return t&&r===t?r-1:r},St=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},It=function(t){return t._end=at(t._start+(t._tDur/Math.abs(t._ts||t._rts||v)||0))},Pt=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=at(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),It(t),r._dirty||bt(r,t)),t},Mt=function(t,e){var r;if((e._time||e._initted&&!e._dur)&&(r=St(t.rawTime(),e),(!e._dur||Ht(0,e.totalDuration(),r)-e._tTime>v)&&e.render(r,!0)),bt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-1e-8}},Dt=function(t,e,r,i){return e.parent&&Et(e),e._start=at((O(r)?r:r||t!==s?Bt(t,r,e):t._time)+e._delay),e._end=at(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),yt(t,e,"_first","_last",t._sort?"_start":0),Lt(e)||(t._recent=e),i||Mt(t,e),t},Nt=function(t,e){return(k.ScrollTrigger||j("scrollTrigger",e))&&k.ScrollTrigger.create(e,t)},wt=function(t,e,r,i){return Ue(t,e),t._initted?!r&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&c!==_e.frame?(K.push(t),t._lazy=[e,i],1):void 0:1},Ct=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},Lt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Ut=function(t,e,r,i){var n=t._repeat,o=at(e)||0,s=t._tTime/t._tDur;return s&&!i&&(t._time*=o/t._dur),t._dur=o,t._tDur=n?n<0?1e10:at(o*(n+1)+t._rDelay*n):o,s>0&&!i?Pt(t,t._tTime=t._tDur*s):t.parent&&It(t),r||bt(t.parent,t),t},Gt=function(t){return t instanceof Me?bt(t):Ut(t,t._dur)},Ft={_start:0,endTime:z,totalDuration:z},Bt=function t(e,r,i){var n,o,s,a=e.labels,h=e._recent||Ft,u=e.duration()>=g?h.endTime(!1):e._dur;return R(r)&&(isNaN(r)||r in a)?(o=r.charAt(0),s="%"===r.substr(-1),n=r.indexOf("="),"<"===o||">"===o?(n>=0&&(r=r.replace(/=/,"")),("<"===o?h._start:h.endTime(h._repeat>=0))+(parseFloat(r.substr(1))||0)*(s?(n<0?h:i).totalDuration()/100:1)):n<0?(r in a||(a[r]=u),a[r]):(o=parseFloat(r.charAt(n-1)+r.substr(n+1)),s&&i&&(o=o/100*(w(i)?i[0]:i).totalDuration()),n>1?t(e,r.substr(0,n-1),i)+o:u+o)):null==r?u:+r},Xt=function(t,e,r){var i,n,o=O(e[1]),s=(o?2:1)+(t<2?0:1),a=e[s];if(o&&(a.duration=e[1]),a.parent=r,t){for(i=a,n=r;n&&!("immediateRender"in i);)i=n.vars.defaults||{},n=P(n.vars.inherit)&&n.parent;a.immediateRender=P(i.immediateRender),t<2?a.runBackwards=1:a.startAt=e[s-1]}return new ke(e[0],a,e[s+1])},kt=function(t,e){return t||0===t?e(t):e},Ht=function(t,e,r){return r<t?t:r>e?e:r},Yt=function(t,e){return R(t)&&(e=X.exec(t))?e[1]:""},jt=[].slice,Vt=function(t,e){return t&&I(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&I(t[0]))&&!t.nodeType&&t!==a},Wt=function(t,e,r){return void 0===r&&(r=[]),t.forEach((function(t){var i;return R(t)&&!e||Vt(t,1)?(i=r).push.apply(i,zt(t)):r.push(t)}))||r},zt=function(t,e,r){return!R(t)||r||!h&&ge()?w(t)?Wt(t,r):Vt(t)?jt.call(t,0):t?[t]:[]:jt.call((e||u).querySelectorAll(t),0)},qt=function(t){return t.sort((function(){return.5-Math.random()}))},Kt=function(t){if(A(t))return t;var e=I(t)?t:{each:t},r=xe(e.ease),i=e.from||0,n=parseFloat(e.base)||0,o={},s=i>0&&i<1,a=isNaN(i)||s,h=e.axis,u=i,l=i;return R(i)?u=l={center:.5,edges:.5,end:1}[i]||0:!s&&a&&(u=i[0],l=i[1]),function(t,s,c){var p,f,d,_,v,m,y,T,b,x=(c||e).length,R=o[x];if(!R){if(!(b="auto"===e.grid?0:(e.grid||[1,g])[1])){for(y=-g;y<(y=c[b++].getBoundingClientRect().left)&&b<x;);b--}for(R=o[x]=[],p=a?Math.min(b,x)*u-.5:i%b,f=b===g?0:a?x*l/b-.5:i/b|0,y=0,T=g,m=0;m<x;m++)d=m%b-p,_=f-(m/b|0),R[m]=v=h?Math.abs("y"===h?_:d):E(d*d+_*_),v>y&&(y=v),v<T&&(T=v);"random"===i&&qt(R),R.max=y-T,R.min=T,R.v=x=(parseFloat(e.amount)||parseFloat(e.each)*(b>x?x-1:h?"y"===h?x/b:b:Math.max(b,x/b))||0)*("edges"===i?-1:1),R.b=x<0?n-x:n,R.u=Yt(e.amount||e.each)||0,r=r&&x<0?Ee(r):r}return x=(R[t]-R.min)/R.max||0,at(R.b+(r?r(x):x)*R.v)+R.u}},Zt=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var i=Math.round(parseFloat(r)/t)*t*e;return(i-i%1)/e+(O(r)?0:Yt(r))}},$t=function(t,e){var r,i,n=w(t);return!n&&I(t)&&(r=n=t.radius||g,t.values?(t=zt(t.values),(i=!O(t[0]))&&(r*=r)):t=Zt(t.increment)),kt(e,n?A(t)?function(e){return i=t(e),Math.abs(i-e)<=r?i:e}:function(e){for(var n,o,s=parseFloat(i?e.x:e),a=parseFloat(i?e.y:0),h=g,u=0,l=t.length;l--;)(n=i?(n=t[l].x-s)*n+(o=t[l].y-a)*o:Math.abs(t[l]-s))<h&&(h=n,u=l);return u=!r||h<=r?t[u]:e,i||u===e||O(e)?u:u+Yt(e)}:Zt(t))},Jt=function(t,e,r,i){return kt(w(t)?!e:!0===r?!!(r=0):!i,(function(){return w(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+.99*r))/r)*r*i)/i}))},Qt=function(t,e,r){return kt(r,(function(r){return t[~~e(r)]}))},te=function(t){for(var e,r,i,n,o=0,s="";~(e=t.indexOf("random(",o));)i=t.indexOf(")",e),n="["===t.charAt(e+7),r=t.substr(e+7,i-e-7).match(n?B:C),s+=t.substr(o,e-o)+Jt(n?r:+r[0],n?0:+r[1],+r[2]||1e-5),o=i+1;return s+t.substr(o,t.length-o)},ee=function(t,e,r,i,n){var o=e-t,s=i-r;return kt(n,(function(e){return r+((e-t)/o*s||0)}))},re=function(t,e,r){var i,n,o,s=t.labels,a=g;for(i in s)(n=s[i]-e)<0===!!r&&n&&a>(n=Math.abs(n))&&(o=i,a=n);return o},ie=function(t,e,r){var i,n,o=t.vars,s=o[e];if(s)return i=o[e+"Params"],n=o.callbackScope||t,r&&K.length&&lt(),i?s.apply(n,i):s.call(n)},ne=function(t){return Et(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&ie(t,"onInterrupt"),t},oe=function(t){var e=(t=!t.name&&t.default||t).name,r=A(t),i=e&&!r&&t.init?function(){this._props=[]}:t,n={init:z,render:Ze,add:Ce,kill:Je,modifier:$e,rawVars:0},o={targetTest:0,get:0,getSetter:We,aliases:{},register:0};if(ge(),t!==i){if($[e])return;dt(i,dt(vt(t,n),o)),_t(i.prototype,_t(n,vt(t,o))),$[i.prop=e]=i,t.targetTest&&(tt.push(i),q[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}W(e,i),t.register&&t.register(or,i,er)},se=255,ae={aqua:[0,se,se],lime:[0,se,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,se],navy:[0,0,128],white:[se,se,se],olive:[128,128,0],yellow:[se,se,0],orange:[se,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[se,0,0],pink:[se,192,203],cyan:[0,se,se],transparent:[se,se,se,0]},he=function(t,e,r){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*se+.5|0},ue=function(t,e,r){var i,n,o,s,a,h,u,l,c,p,f=t?O(t)?[t>>16,t>>8&se,t&se]:0:ae.black;if(!f){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),ae[t])f=ae[t];else if("#"===t.charAt(0)){if(t.length<6&&(i=t.charAt(1),n=t.charAt(2),o=t.charAt(3),t="#"+i+i+n+n+o+o+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(f=parseInt(t.substr(1,6),16))>>16,f>>8&se,f&se,parseInt(t.substr(7),16)/255];f=[(t=parseInt(t.substr(1),16))>>16,t>>8&se,t&se]}else if("hsl"===t.substr(0,3))if(f=p=t.match(C),e){if(~t.indexOf("="))return f=t.match(L),r&&f.length<4&&(f[3]=1),f}else s=+f[0]%360/360,a=+f[1]/100,i=2*(h=+f[2]/100)-(n=h<=.5?h*(a+1):h+a-h*a),f.length>3&&(f[3]*=1),f[0]=he(s+1/3,i,n),f[1]=he(s,i,n),f[2]=he(s-1/3,i,n);else f=t.match(C)||ae.transparent;f=f.map(Number)}return e&&!p&&(i=f[0]/se,n=f[1]/se,o=f[2]/se,h=((u=Math.max(i,n,o))+(l=Math.min(i,n,o)))/2,u===l?s=a=0:(c=u-l,a=h>.5?c/(2-u-l):c/(u+l),s=u===i?(n-o)/c+(n<o?6:0):u===n?(o-i)/c+2:(i-n)/c+4,s*=60),f[0]=~~(s+.5),f[1]=~~(100*a+.5),f[2]=~~(100*h+.5)),r&&f.length<4&&(f[3]=1),f},le=function(t){var e=[],r=[],i=-1;return t.split(pe).forEach((function(t){var n=t.match(U)||[];e.push.apply(e,n),r.push(i+=n.length+1)})),e.c=r,e},ce=function(t,e,r){var i,n,o,s,a="",h=(t+a).match(pe),u=e?"hsla(":"rgba(",l=0;if(!h)return t;if(h=h.map((function(t){return(t=ue(t,e,1))&&u+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),r&&(o=le(t),(i=r.c).join(a)!==o.c.join(a)))for(s=(n=t.replace(pe,"1").split(U)).length-1;l<s;l++)a+=n[l]+(~i.indexOf(l)?h.shift()||u+"0,0,0,0)":(o.length?o:h.length?h:r).shift());if(!n)for(s=(n=t.split(pe)).length-1;l<s;l++)a+=n[l]+h[l];return a+n[s]},pe=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in ae)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),fe=/hsl[a]?\(/,de=function(t){var e,r=t.join(" ");if(pe.lastIndex=0,pe.test(r))return e=fe.test(r),t[1]=ce(t[1],e),t[0]=ce(t[0],e,le(t[1])),!0},_e=function(){var t,e,r,i,n,o,s=Date.now,c=500,p=33,d=s(),_=d,g=1e3/240,v=g,m=[],y=function r(a){var h,u,l,f,y=s()-_,T=!0===a;if(y>c&&(d+=y-p),((h=(l=(_+=y)-d)-v)>0||T)&&(f=++i.frame,n=l-1e3*i.time,i.time=l/=1e3,v+=h+(h>=g?4:g-h),u=1),T||(t=e(r)),u)for(o=0;o<m.length;o++)m[o](l,n,f,a)};return i={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(t){return n/(1e3/(t||60))},wake:function(){l&&(!h&&M()&&(a=h=window,u=a.document||{},k.gsap=or,(a.gsapVersions||(a.gsapVersions=[])).push(or.version),Y(H||a.GreenSockGlobals||!a.gsap&&a||{}),r=a.requestAnimationFrame),t&&i.sleep(),e=r||function(t){return setTimeout(t,v-1e3*i.time+1|0)},f=1,y(2))},sleep:function(){(r?a.cancelAnimationFrame:clearTimeout)(t),f=0,e=z},lagSmoothing:function(t,e){c=t||1e8,p=Math.min(e,c,0)},fps:function(t){g=1e3/(t||240),v=1e3*i.time+g},add:function(t,e,r){var n=e?function(e,r,o,s){t(e,r,o,s),i.remove(n)}:t;return i.remove(t),m[r?"unshift":"push"](n),ge(),n},remove:function(t,e){~(e=m.indexOf(t))&&m.splice(e,1)&&o>=e&&o--},_listeners:m}}(),ge=function(){return!f&&_e.wake()},ve={},me=/^[\d.\-M][\d.\-,\s]/,ye=/["']/g,Te=function(t){for(var e,r,i,n={},o=t.substr(1,t.length-3).split(":"),s=o[0],a=1,h=o.length;a<h;a++)r=o[a],e=a!==h-1?r.lastIndexOf(","):r.length,i=r.substr(0,e),n[s]=isNaN(i)?i.replace(ye,"").trim():+i,s=r.substr(e+1).trim();return n},Ee=function(t){return function(e){return 1-t(1-e)}},be=function t(e,r){for(var i,n=e._first;n;)n instanceof Me?t(n,r):!n.vars.yoyoEase||n._yoyo&&n._repeat||n._yoyo===r||(n.timeline?t(n.timeline,r):(i=n._ease,n._ease=n._yEase,n._yEase=i,n._yoyo=r)),n=n._next},xe=function(t,e){return t&&(A(t)?t:ve[t]||function(t){var e=(t+"").split("("),r=ve[e[0]];return r&&e.length>1&&r.config?r.config.apply(null,~t.indexOf("{")?[Te(e[1])]:function(t){var e=t.indexOf("(")+1,r=t.indexOf(")"),i=t.indexOf("(",e);return t.substring(e,~i&&i<r?t.indexOf(")",r+1):r)}(t).split(",").map(pt)):ve._CE&&me.test(t)?ve._CE("",t):r}(t))||e},Re=function(t,e,r,i){void 0===r&&(r=function(t){return 1-e(1-t)}),void 0===i&&(i=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var n,o={easeIn:e,easeOut:r,easeInOut:i};return ot(t,(function(t){for(var e in ve[t]=k[t]=o,ve[n=t.toLowerCase()]=r,o)ve[n+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=ve[t+"."+e]=o[e]})),o},Ae=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Oe=function t(e,r,i){var n=r>=1?r:1,o=(i||(e?.3:.45))/(r<1?r:1),s=o/m*(Math.asin(1/n)||0),a=function(t){return 1===t?1:n*Math.pow(2,-10*t)*x((t-s)*o)+1},h="out"===e?a:"in"===e?function(t){return 1-a(1-t)}:Ae(a);return o=m/o,h.config=function(r,i){return t(e,r,i)},h},Se=function t(e,r){void 0===r&&(r=1.70158);var i=function(t){return t?--t*t*((r+1)*t+r)+1:0},n="out"===e?i:"in"===e?function(t){return 1-i(1-t)}:Ae(i);return n.config=function(r){return t(e,r)},n};ot("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var r=e<5?e+1:e;Re(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},(function(t){return 1-Math.pow(1-t,r)}),(function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2}))})),ve.Linear.easeNone=ve.none=ve.Linear.easeIn,Re("Elastic",Oe("in"),Oe("out"),Oe()),function(t,e){var r=1/e,i=function(i){return i<r?t*i*i:i<.7272727272727273?t*Math.pow(i-1.5/e,2)+.75:i<.9090909090909092?t*(i-=2.25/e)*i+.9375:t*Math.pow(i-2.625/e,2)+.984375};Re("Bounce",(function(t){return 1-i(1-t)}),i)}(7.5625,2.75),Re("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),Re("Circ",(function(t){return-(E(1-t*t)-1)})),Re("Sine",(function(t){return 1===t?1:1-b(t*y)})),Re("Back",Se("in"),Se("out"),Se()),ve.SteppedEase=ve.steps=k.SteppedEase={config:function(t,e){void 0===t&&(t=1);var r=1/t,i=t+(e?0:1),n=e?1:0;return function(t){return((i*Ht(0,.99999999,t)|0)+n)*r}}},_.ease=ve["quad.out"],ot("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return et+=t+","+t+"Params,"}));var Ie=function(t,e){this.id=T++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:nt,this.set=e?e.getSetter:We},Pe=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,Ut(this,+t.duration,1,1),this.data=t.data,f||_e.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Ut(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(ge(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Pt(this,t),!r._dp||r.parent||Mt(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&Dt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===v||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),ct(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+At(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+At(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?Ot(this._tTime,r)+1:1},e.timeScale=function(t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?St(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(Ht(-this._delay,this._tDur,e),!0),It(this),xt(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(ge(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==v&&(this._tTime-=v)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Dt(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(P(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?St(e.rawTime(t),this):this._tTime:this._tTime},e.globalTime=function(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(e._ts||1),e=e._dp;return r},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,Gt(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Gt(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(Bt(this,t),P(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,P(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,r=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=r&&t<this.endTime(!0)-v))},e.eventCallback=function(t,e,r){var i=this.vars;return arguments.length>1?(e?(i[t]=e,r&&(i[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete i[t],this):i[t]},e.then=function(t){var e=this;return new Promise((function(r){var i=A(t)?t:ft,n=function(){var t=e.then;e.then=null,A(i)&&(i=i(e))&&(i.then||i===e)&&(e.then=t),r(i),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?n():e._prom=n}))},e.kill=function(){ne(this)},t}();dt(Pe.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Me=function(t){function e(e,r){var n;return void 0===e&&(e={}),(n=t.call(this,e)||this).labels={},n.smoothChildTiming=!!e.smoothChildTiming,n.autoRemoveChildren=!!e.autoRemoveChildren,n._sort=P(e.sortChildren),s&&Dt(e.parent||s,i(n),r),e.reversed&&n.reverse(),e.paused&&n.paused(!0),e.scrollTrigger&&Nt(i(n),e.scrollTrigger),n}n(e,t);var r=e.prototype;return r.to=function(t,e,r){return Xt(0,arguments,this),this},r.from=function(t,e,r){return Xt(1,arguments,this),this},r.fromTo=function(t,e,r,i){return Xt(2,arguments,this),this},r.set=function(t,e,r){return e.duration=0,e.parent=this,mt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new ke(t,e,Bt(this,r),1),this},r.call=function(t,e,r){return Dt(this,ke.delayedCall(0,t,e),r)},r.staggerTo=function(t,e,r,i,n,o,s){return r.duration=e,r.stagger=r.stagger||i,r.onComplete=o,r.onCompleteParams=s,r.parent=this,new ke(t,r,Bt(this,n)),this},r.staggerFrom=function(t,e,r,i,n,o,s){return r.runBackwards=1,mt(r).immediateRender=P(r.immediateRender),this.staggerTo(t,e,r,i,n,o,s)},r.staggerFromTo=function(t,e,r,i,n,o,s,a){return i.startAt=r,mt(i).immediateRender=P(i.immediateRender),this.staggerTo(t,e,i,n,o,s,a)},r.render=function(t,e,r){var i,n,o,a,h,u,l,c,p,f,d,_,g=this._time,m=this._dirty?this.totalDuration():this._tDur,y=this._dur,T=t<=0?0:at(t),E=this._zTime<0!==t<0&&(this._initted||!y);if(this!==s&&T>m&&t>=0&&(T=m),T!==this._tTime||r||E){if(g!==this._time&&y&&(T+=this._time-g,t+=this._time-g),i=T,p=this._start,u=!(c=this._ts),E&&(y||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(d=this._yoyo,h=y+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*h+t,e,r);if(i=at(T%h),T===m?(a=this._repeat,i=y):((a=~~(T/h))&&a===T/h&&(i=y,a--),i>y&&(i=y)),f=Ot(this._tTime,h),!g&&this._tTime&&f!==a&&(f=a),d&&1&a&&(i=y-i,_=1),a!==f&&!this._lock){var b=d&&1&f,x=b===(d&&1&a);if(a<f&&(b=!b),g=b?0:y,this._lock=1,this.render(g||(_?0:at(a*h)),e,!y)._lock=0,this._tTime=T,!e&&this.parent&&ie(this,"onRepeat"),this.vars.repeatRefresh&&!_&&(this.invalidate()._lock=1),g&&g!==this._time||u!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(y=this._dur,m=this._tDur,x&&(this._lock=2,g=b?y:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!_&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;be(this,_)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(l=function(t,e,r){var i;if(r>e)for(i=t._first;i&&i._start<=r;){if("isPause"===i.data&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if("isPause"===i.data&&i._start<e)return i;i=i._prev}}(this,at(g),at(i)),l&&(T-=i-(i=l._start))),this._tTime=T,this._time=i,this._act=!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,g=0),!g&&i&&!e&&(ie(this,"onStart"),this._tTime!==T))return this;if(i>=g&&t>=0)for(n=this._first;n;){if(o=n._next,(n._act||i>=n._start)&&n._ts&&l!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(n._ts>0?(i-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(i-n._start)*n._ts,e,r),i!==this._time||!this._ts&&!u){l=0,o&&(T+=this._zTime=-1e-8);break}}n=o}else{n=this._last;for(var R=t<0?t:i;n;){if(o=n._prev,(n._act||R<=n._end)&&n._ts&&l!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(n._ts>0?(R-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(R-n._start)*n._ts,e,r),i!==this._time||!this._ts&&!u){l=0,o&&(T+=this._zTime=R?-1e-8:v);break}}n=o}}if(l&&!e&&(this.pause(),l.render(i>=g?0:-1e-8)._zTime=i>=g?1:-1,this._ts))return this._start=p,It(this),this.render(t,e,r);this._onUpdate&&!e&&ie(this,"onUpdate",!0),(T===m&&this._tTime>=this.totalDuration()||!T&&g)&&(p!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!y)&&(T===m&&this._ts>0||!T&&this._ts<0)&&Et(this,1),e||t<0&&!g||!T&&!g&&m||(ie(this,T===m&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(T<m&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(t,e){var r=this;if(O(e)||(e=Bt(this,e,t)),!(t instanceof Pe)){if(w(t))return t.forEach((function(t){return r.add(t,e)})),this;if(R(t))return this.addLabel(t,e);if(!A(t))return this;t=ke.delayedCall(0,t)}return this!==t?Dt(this,t,e):this},r.getChildren=function(t,e,r,i){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===i&&(i=-g);for(var n=[],o=this._first;o;)o._start>=i&&(o instanceof ke?e&&n.push(o):(r&&n.push(o),t&&n.push.apply(n,o.getChildren(!0,e,r)))),o=o._next;return n},r.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},r.remove=function(t){return R(t)?this.removeLabel(t):A(t)?this.killTweensOf(t):(Tt(this,t),t===this._recent&&(this._recent=this._last),bt(this))},r.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=at(_e.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,r),this._forcing=0,this):this._tTime},r.addLabel=function(t,e){return this.labels[t]=Bt(this,e),this},r.removeLabel=function(t){return delete this.labels[t],this},r.addPause=function(t,e,r){var i=ke.delayedCall(0,e||z,r);return i.data="isPause",this._hasPause=1,Dt(this,i,Bt(this,t))},r.removePause=function(t){var e=this._first;for(t=Bt(this,t);e;)e._start===t&&"isPause"===e.data&&Et(e),e=e._next},r.killTweensOf=function(t,e,r){for(var i=this.getTweensOf(t,r),n=i.length;n--;)De!==i[n]&&i[n].kill(t,e);return this},r.getTweensOf=function(t,e){for(var r,i=[],n=zt(t),o=this._first,s=O(e);o;)o instanceof ke?ut(o._targets,n)&&(s?(!De||o._initted&&o._ts)&&o.globalTime(0)<=e&&o.globalTime(o.totalDuration())>e:!e||o.isActive())&&i.push(o):(r=o.getTweensOf(n,e)).length&&i.push.apply(i,r),o=o._next;return i},r.tweenTo=function(t,e){e=e||{};var r,i=this,n=Bt(i,t),o=e,s=o.startAt,a=o.onStart,h=o.onStartParams,u=o.immediateRender,l=ke.to(i,dt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(s&&"time"in s?s.time:i._time))/i.timeScale())||v,onStart:function(){if(i.pause(),!r){var t=e.duration||Math.abs((n-(s&&"time"in s?s.time:i._time))/i.timeScale());l._dur!==t&&Ut(l,t,0,1).render(l._time,!0,!0),r=1}a&&a.apply(l,h||[])}},e));return u?l.render(0):l},r.tweenFromTo=function(t,e,r){return this.tweenTo(e,dt({startAt:{time:Bt(this,t)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(t){return void 0===t&&(t=this._time),re(this,Bt(this,t))},r.previousLabel=function(t){return void 0===t&&(t=this._time),re(this,Bt(this,t),1)},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+v)},r.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,o=this.labels;n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(i in o)o[i]>=r&&(o[i]+=t);return bt(this)},r.invalidate=function(){var e=this._first;for(this._lock=0;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},r.clear=function(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),bt(this)},r.totalDuration=function(t){var e,r,i,n=0,o=this,a=o._last,h=g;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-t:t));if(o._dirty){for(i=o.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),(r=a._start)>h&&o._sort&&a._ts&&!o._lock?(o._lock=1,Dt(o,a,r-a._delay,1)._lock=0):h=r,r<0&&a._ts&&(n-=r,(!i&&!o._dp||i&&i.smoothChildTiming)&&(o._start+=r/o._ts,o._time-=r,o._tTime-=r),o.shiftChildren(-r,!1,-Infinity),h=0),a._end>n&&a._ts&&(n=a._end),a=e;Ut(o,o===s&&o._time>n?o._time:n,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(t){if(s._ts&&(ct(s,St(t,s)),c=_e.frame),_e.frame>=Q){Q+=d.autoSleep||120;var e=s._first;if((!e||!e._ts)&&d.autoSleep&&_e._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||_e.sleep()}}},e}(Pe);dt(Me.prototype,{_lock:0,_hasPause:0,_forcing:0});var De,Ne,we=function(t,e,r,i,n,o,s){var a,h,u,l,c,p,f,d,_=new er(this._pt,t,e,0,1,Ke,null,n),g=0,v=0;for(_.b=r,_.e=i,r+="",(f=~(i+="").indexOf("random("))&&(i=te(i)),o&&(o(d=[r,i],t,e),r=d[0],i=d[1]),h=r.match(G)||[];a=G.exec(i);)l=a[0],c=i.substring(g,a.index),u?u=(u+1)%5:"rgba("===c.substr(-5)&&(u=1),l!==h[v++]&&(p=parseFloat(h[v-1])||0,_._pt={_next:_._pt,p:c||1===v?c:",",s:p,c:"="===l.charAt(1)?ht(p,l)-p:parseFloat(l)-p,m:u&&u<4?Math.round:0},g=G.lastIndex);return _.c=g<i.length?i.substring(g,i.length):"",_.fp=s,(F.test(i)||f)&&(_.e=0),this._pt=_,_},Ce=function(t,e,r,i,n,o,s,a,h){A(i)&&(i=i(n||0,t,o));var u,l=t[e],c="get"!==r?r:A(l)?h?t[e.indexOf("set")||!A(t["get"+e.substr(3)])?e:"get"+e.substr(3)](h):t[e]():l,p=A(l)?h?je:Ye:He;if(R(i)&&(~i.indexOf("random(")&&(i=te(i)),"="===i.charAt(1)&&((u=ht(c,i)+(Yt(c)||0))||0===u)&&(i=u)),c!==i||Ne)return isNaN(c*i)||""===i?(!l&&!(e in t)&&j(e,i),we.call(this,t,e,c,i,p,a||d.stringFilter,h)):(u=new er(this._pt,t,e,+c||0,i-(c||0),"boolean"===typeof l?qe:ze,0,p),h&&(u.fp=h),s&&u.modifier(s,this,t),this._pt=u)},Le=function(t,e,r,i,n,o){var s,a,h,u;if($[t]&&!1!==(s=new $[t]).init(n,s.rawVars?e[t]:function(t,e,r,i,n){if(A(t)&&(t=Fe(t,n,e,r,i)),!I(t)||t.style&&t.nodeType||w(t)||N(t))return R(t)?Fe(t,n,e,r,i):t;var o,s={};for(o in t)s[o]=Fe(t[o],n,e,r,i);return s}(e[t],i,n,o,r),r,i,o)&&(r._pt=a=new er(r._pt,n,t,0,1,s.render,s,0,s.priority),r!==p))for(h=r._ptLookup[r._targets.indexOf(n)],u=s._props.length;u--;)h[s._props[u]]=a;return s},Ue=function t(e,r){var i,n,a,h,u,l,c,p,f,d,m,y,T,E=e.vars,b=E.ease,x=E.startAt,R=E.immediateRender,A=E.lazy,O=E.onUpdate,S=E.onUpdateParams,I=E.callbackScope,M=E.runBackwards,D=E.yoyoEase,N=E.keyframes,w=E.autoRevert,C=e._dur,L=e._startAt,U=e._targets,G=e.parent,F=G&&"nested"===G.data?G.parent._targets:U,B="auto"===e._overwrite&&!o,X=e.timeline;if(X&&(!N||!b)&&(b="none"),e._ease=xe(b,_.ease),e._yEase=D?Ee(xe(!0===D?b:D,_.ease)):0,D&&e._yoyo&&!e._repeat&&(D=e._yEase,e._yEase=e._ease,e._ease=D),e._from=!X&&!!E.runBackwards,!X||N&&!E.stagger){if(y=(p=U[0]?it(U[0]).harness:0)&&E[p.prop],i=vt(E,q),L&&(Et(L.render(-1,!0)),L._lazy=0),x)if(Et(e._startAt=ke.set(U,dt({data:"isStart",overwrite:!1,parent:G,immediateRender:!0,lazy:P(A),startAt:null,delay:0,onUpdate:O,onUpdateParams:S,callbackScope:I,stagger:0},x))),r<0&&!R&&!w&&e._startAt.render(-1,!0),R){if(r>0&&!w&&(e._startAt=0),C&&r<=0)return void(r&&(e._zTime=r))}else!1===w&&(e._startAt=0);else if(M&&C)if(L)!w&&(e._startAt=0);else if(r&&(R=!1),a=dt({overwrite:!1,data:"isFromStart",lazy:R&&P(A),immediateRender:R,stagger:0,parent:G},i),y&&(a[p.prop]=y),Et(e._startAt=ke.set(U,a)),r<0&&e._startAt.render(-1,!0),e._zTime=r,R){if(!r)return}else t(e._startAt,v);for(e._pt=e._ptCache=0,A=C&&P(A)||A&&!C,n=0;n<U.length;n++){if(c=(u=U[n])._gsap||rt(U)[n]._gsap,e._ptLookup[n]=d={},Z[c.id]&&K.length&&lt(),m=F===U?n:F.indexOf(u),p&&!1!==(f=new p).init(u,y||i,e,m,F)&&(e._pt=h=new er(e._pt,u,f.name,0,1,f.render,f,0,f.priority),f._props.forEach((function(t){d[t]=h})),f.priority&&(l=1)),!p||y)for(a in i)$[a]&&(f=Le(a,i,e,m,u,F))?f.priority&&(l=1):d[a]=h=Ce.call(e,u,a,"get",i[a],m,F,0,E.stringFilter);e._op&&e._op[n]&&e.kill(u,e._op[n]),B&&e._pt&&(De=e,s.killTweensOf(u,d,e.globalTime(r)),T=!e.parent,De=0),e._pt&&A&&(Z[c.id]=1)}l&&tr(e),e._onInit&&e._onInit(e)}e._onUpdate=O,e._initted=(!e._op||e._pt)&&!T,N&&r<=0&&X.render(g,!0,!0)},Ge=function(t,e,r,i){var n,o,s=e.ease||i||"power1.inOut";if(w(e))o=r[t]||(r[t]=[]),e.forEach((function(t,r){return o.push({t:r/(e.length-1)*100,v:t,e:s})}));else for(n in e)o=r[n]||(r[n]=[]),"ease"===n||o.push({t:parseFloat(t),v:e[n],e:s})},Fe=function(t,e,r,i,n){return A(t)?t.call(e,r,i,n):R(t)&&~t.indexOf("random(")?te(t):t},Be=et+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Xe={};ot(Be+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return Xe[t]=1}));var ke=function(t){function e(e,r,n,a){var h;"number"===typeof r&&(n.duration=r,r=n,n=null);var u,l,c,p,f,_,g,v,m=(h=t.call(this,a?r:mt(r))||this).vars,y=m.duration,T=m.delay,E=m.immediateRender,b=m.stagger,x=m.overwrite,R=m.keyframes,A=m.defaults,S=m.scrollTrigger,M=m.yoyoEase,C=r.parent||s,L=(w(e)||N(e)?O(e[0]):"length"in r)?[e]:zt(e);if(h._targets=L.length?rt(L):V("GSAP target "+e+" not found. https://greensock.com",!d.nullTargetWarn)||[],h._ptLookup=[],h._overwrite=x,R||b||D(y)||D(T)){if(r=h.vars,(u=h.timeline=new Me({data:"nested",defaults:A||{}})).kill(),u.parent=u._dp=i(h),u._start=0,b||D(y)||D(T)){if(p=L.length,g=b&&Kt(b),I(b))for(f in b)~Be.indexOf(f)&&(v||(v={}),v[f]=b[f]);for(l=0;l<p;l++)(c=vt(r,Xe)).stagger=0,M&&(c.yoyoEase=M),v&&_t(c,v),_=L[l],c.duration=+Fe(y,i(h),l,_,L),c.delay=(+Fe(T,i(h),l,_,L)||0)-h._delay,!b&&1===p&&c.delay&&(h._delay=T=c.delay,h._start+=T,c.delay=0),u.to(_,c,g?g(l,_,L):0),u._ease=ve.none;u.duration()?y=T=0:h.timeline=0}else if(R){mt(dt(u.vars.defaults,{ease:"none"})),u._ease=xe(R.ease||r.ease||"none");var U,G,F,B=0;
1if(w(R))R.forEach((function(t){return u.to(L,t,">")}));else{for(f in c={},R)"ease"===f||"easeEach"===f||Ge(f,R[f],c,R.easeEach);for(f in c)for(U=c[f].sort((function(t,e){return t.t-e.t})),B=0,l=0;l<U.length;l++)(F={ease:(G=U[l]).e,duration:(G.t-(l?U[l-1].t:0))/100*y})[f]=G.v,u.to(L,F,B),B+=F.duration;u.duration()<y&&u.to({},{duration:y-u.duration()})}}y||h.duration(y=u.duration())}else h.timeline=0;return!0!==x||o||(De=i(h),s.killTweensOf(L),De=0),Dt(C,i(h),n),r.reversed&&h.reverse(),r.paused&&h.paused(!0),(E||!y&&!R&&h._start===at(C._time)&&P(E)&&Rt(i(h))&&"nested"!==C.data)&&(h._tTime=-1e-8,h.render(Math.max(0,-T))),S&&Nt(i(h),S),h}n(e,t);var r=e.prototype;return r.render=function(t,e,r){var i,n,o,s,a,h,u,l,c,p=this._time,f=this._tDur,d=this._dur,_=t>f-v&&t>=0?f:t<v?0:t;if(d){if(_!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==t<0){if(i=_,l=this.timeline,this._repeat){if(s=d+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*s+t,e,r);if(i=at(_%s),_===f?(o=this._repeat,i=d):((o=~~(_/s))&&o===_/s&&(i=d,o--),i>d&&(i=d)),(h=this._yoyo&&1&o)&&(c=this._yEase,i=d-i),a=Ot(this._tTime,s),i===p&&!r&&this._initted)return this._tTime=_,this;o!==a&&(l&&this._yEase&&be(l,h),!this.vars.repeatRefresh||h||this._lock||(this._lock=r=1,this.render(at(s*o),!0).invalidate()._lock=0))}if(!this._initted){if(wt(this,t<0?t:i,r,e))return this._tTime=0,this;if(p!==this._time)return this;if(d!==this._dur)return this.render(t,e,r)}if(this._tTime=_,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=u=(c||this._ease)(i/d),this._from&&(this.ratio=u=1-u),i&&!p&&!e&&(ie(this,"onStart"),this._tTime!==_))return this;for(n=this._pt;n;)n.r(u,n.d),n=n._next;l&&l.render(t<0?t:!i&&h?-1e-8:l._dur*l._ease(i/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,r),ie(this,"onUpdate")),this._repeat&&o!==a&&this.vars.onRepeat&&!e&&this.parent&&ie(this,"onRepeat"),_!==this._tDur&&_||this._tTime!==_||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,!0),(t||!d)&&(_===this._tDur&&this._ts>0||!_&&this._ts<0)&&Et(this,1),e||t<0&&!p||!_&&!p||(ie(this,_===f?"onComplete":"onReverseComplete",!0),this._prom&&!(_<f&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,i){var n,o,s,a=t.ratio,h=e<0||!e&&(!t._start&&Ct(t)&&(t._initted||!Lt(t))||(t._ts<0||t._dp._ts<0)&&!Lt(t))?0:1,u=t._rDelay,l=0;if(u&&t._repeat&&(l=Ht(0,t._tDur,e),o=Ot(l,u),t._yoyo&&1&o&&(h=1-h),o!==Ot(t._tTime,u)&&(a=1-h,t.vars.repeatRefresh&&t._initted&&t.invalidate())),h!==a||i||t._zTime===v||!e&&t._zTime){if(!t._initted&&wt(t,e,i,r))return;for(s=t._zTime,t._zTime=e||(r?v:0),r||(r=e&&!s),t.ratio=h,t._from&&(h=1-h),t._time=0,t._tTime=l,n=t._pt;n;)n.r(h,n.d),n=n._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!r&&ie(t,"onUpdate"),l&&t._repeat&&!r&&t.parent&&ie(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===h&&(h&&Et(t,1),r||(ie(t,h?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},r.targets=function(){return this._targets},r.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},r.resetTo=function(t,e,r,i){f||_e.wake(),this._ts||this.play();var n=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Ue(this,n),function(t,e,r,i,n,o,s){var a,h,u,l=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!l)for(l=t._ptCache[e]=[],h=t._ptLookup,u=t._targets.length;u--;){if((a=h[u][e])&&a.d&&a.d._pt)for(a=a.d._pt;a&&a.p!==e;)a=a._next;if(!a)return Ne=1,t.vars[e]="+=0",Ue(t,s),Ne=0,1;l.push(a)}for(u=l.length;u--;)(a=l[u]).s=!i&&0!==i||n?a.s+(i||0)+o*a.c:i,a.c=r-a.s,a.e&&(a.e=st(r)+Yt(a.e)),a.b&&(a.b=a.s+Yt(a.b))}(this,t,e,r,i,this._ease(n/this._dur),n)?this.resetTo(t,e,r,i):(Pt(this,0),this.parent||yt(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(t,e){if(void 0===e&&(e="all"),!t&&(!e||"all"===e))return this._lazy=this._pt=0,this.parent?ne(this):this;if(this.timeline){var r=this.timeline.totalDuration();
vendor: 4,770 bytes, line 1
1return this.timeline.killTweensOf(t,e,De&&!0!==De.vars.overwrite)._first||ne(this),this.parent&&r!==this.timeline.totalDuration()&&Ut(this,this._dur*this.timeline._tDur/r,0,1),this}var i,n,o,s,a,h,u,l=this._targets,c=t?zt(t):l,p=this._ptLookup,f=this._pt;if((!e||"all"===e)&&function(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(l,c))return"all"===e&&(this._pt=0),ne(this);for(i=this._op=this._op||[],"all"!==e&&(R(e)&&(a={},ot(e,(function(t){return a[t]=1})),e=a),e=function(t,e){var r,i,n,o,s=t[0]?it(t[0]).harness:0,a=s&&s.aliases;if(!a)return e;for(i in r=_t({},e),a)if(i in r)for(n=(o=a[i].split(",")).length;n--;)r[o[n]]=r[i];return r}(l,e)),u=l.length;u--;)if(~c.indexOf(l[u]))for(a in n=p[u],"all"===e?(i[u]=e,s=n,o={}):(o=i[u]=i[u]||{},s=e),s)(h=n&&n[a])&&("kill"in h.d&&!0!==h.d.kill(a)||Tt(this,h,"_pt"),delete n[a]),"all"!==o&&(o[a]=1);return this._initted&&!this._pt&&f&&ne(this),this},e.to=function(t,r){return new e(t,r,arguments[2])},e.from=function(t,e){return Xt(1,arguments)},e.delayedCall=function(t,r,i,n){return new e(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:r,onReverseComplete:r,onCompleteParams:i,onReverseCompleteParams:i,callbackScope:n})},e.fromTo=function(t,e,r){return Xt(2,arguments)},e.set=function(t,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new e(t,r)},e.killTweensOf=function(t,e,r){return s.killTweensOf(t,e,r)},e}(Pe);dt(ke.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),ot("staggerTo,staggerFrom,staggerFromTo",(function(t){ke[t]=function(){var e=new Me,r=jt.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}}));var He=function(t,e,r){return t[e]=r},Ye=function(t,e,r){return t[e](r)},je=function(t,e,r,i){return t[e](i.fp,r)},Ve=function(t,e,r){return t.setAttribute(e,r)},We=function(t,e){return A(t[e])?Ye:S(t[e])&&t.setAttribute?Ve:He},ze=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},qe=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Ke=function(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},Ze=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},$e=function(t,e,r,i){for(var n,o=this._pt;o;)n=o._next,o.p===i&&o.modifier(t,e,r),o=n},Je=function(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?Tt(this,i,"_pt"):i.dep||(e=1),i=r;return!e},Qe=function(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)},tr=function(t){for(var e,r,i,n,o=t._pt;o;){for(e=o._next,r=i;r&&r.pr>o.pr;)r=r._next;(o._prev=r?r._prev:n)?o._prev._next=o:i=o,(o._next=r)?r._prev=o:n=o,o=e}t._pt=i},er=function(){function t(t,e,r,i,n,o,s,a,h){this.t=e,this.s=i,this.c=n,this.p=r,this.r=o||ze,this.d=s||this,this.set=a||He,this.pr=h||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=Qe,this.m=t,this.mt=r,this.tween=e},t}();ot(et+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return q[t]=1})),k.TweenMax=k.TweenLite=ke,k.TimelineLite=k.TimelineMax=Me,s=new Me({sortChildren:!1,defaults:_,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),d.stringFilter=de;var rr={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach((function(t){return oe(t)}))},timeline:function(t){return new Me(t)},getTweensOf:function(t,e){return s.getTweensOf(t,e)},getProperty:function(t,e,r,i){R(t)&&(t=zt(t)[0]);var n=it(t||{}).get,o=r?ft:pt;return"native"===r&&(r=""),t?e?o(($[e]&&$[e].get||n)(t,e,r,i)):function(e,r,i){return o(($[e]&&$[e].get||n)(t,e,r,i))}:t},quickSetter:function(t,e,r){if((t=zt(t)).length>1){var i=t.map((function(t){return or.quickSetter(t,e,r)})),n=i.length;return function(t){for(var e=n;e--;)i[e](t)}}t=t[0]||{};var o=$[e],s=it(t),a=s.harness&&(s.harness.aliases||{})[e]||e,h=o?function(e){var i=new o;p._pt=0,i.init(t,r?e+r:e,p,0,[t]),i.render(1,i),p._pt&&Ze(1,p)}:s.set(t,a);return o?h:function(e){return h(t,a,r?e+r:e,s,1)}},quickTo:function(t,e,r){var i,n=or.to(t,_t(((i={})[e]="+=0.1",i.paused=!0,i),r||{})),o=function(t,r,i){return n.resetTo(e,t,r,i)};return o.tween=n,o},isTweening:function(t){return s.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=xe(t.ease,_.ease)),gt(_,t||{})},config:function(t){return gt(d,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,i=t.plugins,n=t.defaults,o=t.extendTimeline;(i||"").split(",").forEach((function(t){return t&&!$[t]&&!k[t]&&V(e+" effect requires "+t+" plugin.")}
vendor: 13,859 bytes, line 1
1)),J[e]=function(t,e,i){return r(zt(t),dt(e||{},n),i)},o&&(Me.prototype[e]=function(t,r,i){return this.add(J[e](t,I(r)?r:(i=r)&&{},this),i)})},registerEase:function(t,e){ve[t]=xe(e)},parseEase:function(t,e){return arguments.length?xe(t,e):ve},getById:function(t){return s.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,i,n=new Me(t);for(n.smoothChildTiming=P(t.smoothChildTiming),s.remove(n),n._dp=0,n._time=n._tTime=s._time,r=s._first;r;)i=r._next,!e&&!r._dur&&r instanceof ke&&r.vars.onComplete===r._targets[0]||Dt(n,r,r._start-r._delay),r=i;return Dt(s,n,0),n},utils:{wrap:function t(e,r,i){var n=r-e;return w(e)?Qt(e,t(0,e.length),r):kt(i,(function(t){return(n+(t-e)%n)%n+e}))},wrapYoyo:function t(e,r,i){var n=r-e,o=2*n;return w(e)?Qt(e,t(0,e.length-1),r):kt(i,(function(t){return e+((t=(o+(t-e)%o)%o||0)>n?o-t:t)}))},distribute:Kt,random:Jt,snap:$t,normalize:function(t,e,r){return ee(t,e,0,1,r)},getUnit:Yt,clamp:function(t,e,r){return kt(r,(function(r){return Ht(t,e,r)}))},splitColor:ue,toArray:zt,selector:function(t){return t=zt(t)[0]||V("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return zt(e,r.querySelectorAll?r:r===t?V("Invalid scope")||u.createElement("div"):t)}},mapRange:ee,pipe:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(r){return t(parseFloat(r))+(e||Yt(r))}},interpolate:function t(e,r,i,n){var o=isNaN(e+r)?0:function(t){return(1-t)*e+t*r};if(!o){var s,a,h,u,l,c=R(e),p={};if(!0===i&&(n=1)&&(i=null),c)e={p:e},r={p:r};else if(w(e)&&!w(r)){for(h=[],u=e.length,l=u-2,a=1;a<u;a++)h.push(t(e[a-1],e[a]));u--,o=function(t){t*=u;var e=Math.min(l,~~t);return h[e](t-e)},i=r}else n||(e=_t(w(e)?[]:{},e));if(!h){for(s in r)Ce.call(p,e,s,"get",r[s]);o=function(t){return Ze(t,p)||(c?e.p:e)}}}return kt(i,o)},shuffle:qt},install:Y,effects:J,ticker:_e,updateRoot:Me.updateRoot,plugins:$,globalTimeline:s,core:{PropTween:er,globals:W,Tween:ke,Timeline:Me,Animation:Pe,getCache:it,_removeLinkedListItem:Tt,suppressOverwrites:function(t){return o=t}}};ot("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return rr[t]=ke[t]})),_e.add(Me.updateRoot),p=rr.to({},{duration:0});var ir=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},nr=function(t,e){return{name:t,rawVars:1,init:function(t,r,i){i._onInit=function(t){var i,n;if(R(r)&&(i={},ot(r,(function(t){return i[t]=1})),r=i),e){for(n in i={},r)i[n]=e(r[n]);r=i}!function(t,e){var r,i,n,o=t._targets;for(r in e)for(i=o.length;i--;)(n=t._ptLookup[i][r])&&(n=n.d)&&(n._pt&&(n=ir(n,r)),n&&n.modifier&&n.modifier(e[r],t,o[i],r))}(t,r)}}}},or=rr.registerPlugin({name:"attr",init:function(t,e,r,i,n){var o,s;for(o in e)(s=this.add(t,"setAttribute",(t.getAttribute(o)||0)+"",e[o],i,n,0,0,o))&&(s.op=o),this._props.push(o)}},{name:"endArray",init:function(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r])}},nr("roundProps",Zt),nr("modifiers"),nr("snap",$t))||rr;ke.version=Me.version=or.version="3.10.4",l=1,M()&&ge();ve.Power0,ve.Power1,ve.Power2,ve.Power3,ve.Power4,ve.Linear,ve.Quad,ve.Cubic,ve.Quart,ve.Quint,ve.Strong,ve.Elastic,ve.Back,ve.SteppedEase,ve.Bounce,ve.Sine,ve.Expo,ve.Circ;var sr,ar,hr,ur,lr,cr,pr,fr={},dr=180/Math.PI,_r=Math.PI/180,gr=Math.atan2,vr=/([A-Z])/g,mr=/(left|right|width|margin|padding|x)/i,yr=/[\s,\(]\S/,Tr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Er=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},br=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},xr=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},Rr=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},Ar=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Or=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},Sr=function(t,e,r){return t.style[e]=r},Ir=function(t,e,r){return t.style.setProperty(e,r)},Pr=function(t,e,r){return t._gsap[e]=r},Mr=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},Dr=function(t,e,r,i,n){var o=t._gsap;o.scaleX=o.scaleY=r,o.renderTransform(n,o)},Nr=function(t,e,r,i,n){var o=t._gsap;o[e]=r,o.renderTransform(n,o)},wr="transform",Cr=wr+"Origin",Lr=function(t,e){var r=ar.createElementNS?ar.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):ar.createElement(t);return r.style?r:ar.createElement(t)},Ur=function t(e,r,i){var n=getComputedStyle(e);return n[r]||n.getPropertyValue(r.replace(vr,"-$1").toLowerCase())||n.getPropertyValue(r)||!i&&t(e,Fr(r)||r,1)||""},Gr="O,Moz,ms,Ms,Webkit".split(","),Fr=function(t,e,r){var i=(e||lr).style,n=5;if(t in i&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);n--&&!(Gr[n]+t in i););return n<0?null:(3===n?"ms":n>=0?Gr[n]:"")+t},Br=function(){"undefined"!==typeof window&&window.document&&(sr=window,ar=sr.document,hr=ar.documentElement,lr=Lr("div")||{style:{}},Lr("div"),wr=Fr(wr),Cr=wr+"Origin",lr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",pr=!!Fr("perspective"),ur=1)},Xr=function t(e){var r,i=Lr("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,o=this.nextSibling,s=this.style.cssText;if(hr.appendChild(i),i.appendChild(this),this.style.display="block",e)try{r=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(a){}else this._gsapBBox&&(r=this._gsapBBox());return n&&(o?n.insertBefore(this,o):n.appendChild(this)),hr.removeChild(i),this.style.cssText=s,r},kr=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},Hr=function(t){var e;try{e=t.getBBox()}catch(r){e=Xr.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Xr||(e=Xr.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+kr(t,["x","cx","x1"])||0,y:+kr(t,["y","cy","y1"])||0,width:0,height:0}},Yr=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Hr(t))},jr=function(t,e){if(e){var r=t.style;e in fr&&e!==Cr&&(e=wr),r.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty(e.replace(vr,"-$1").toLowerCase())):r.removeAttribute(e)}},Vr=function(t,e,r,i,n,o){var s=new er(t._pt,e,r,0,1,o?Or:Ar);return t._pt=s,s.b=i,s.e=n,t._props.push(r),s},Wr={deg:1,rad:1,turn:1},zr=function t(e,r,i,n){var o,s,a,h,u=parseFloat(i)||0,l=(i+"").trim().substr((u+"").length)||"px",c=lr.style,p=mr.test(r),f="svg"===e.tagName.toLowerCase(),d=(f?"client":"offset")+(p?"Width":"Height"),_=100,g="px"===n,v="%"===n;return n===l||!u||Wr[n]||Wr[l]?u:("px"!==l&&!g&&(u=t(e,r,i,"px")),h=e.getCTM&&Yr(e),!v&&"%"!==l||!fr[r]&&!~r.indexOf("adius")?(c[p?"width":"height"]=_+(g?l:n),s=~r.indexOf("adius")||"em"===n&&e.appendChild&&!f?e:e.parentNode,h&&(s=(e.ownerSVGElement||{}).parentNode),s&&s!==ar&&s.appendChild||(s=ar.body),(a=s._gsap)&&v&&a.width&&p&&a.time===_e.time?st(u/a.width*_):((v||"%"===l)&&(c.position=Ur(e,"position")),s===e&&(c.position="static"),s.appendChild(lr),o=lr[d],s.removeChild(lr),c.position="absolute",p&&v&&((a=it(s)).time=_e.time,a.width=s[d]),st(g?o*u/_:o&&u?_/o*u:0))):(o=h?e.getBBox()[p?"width":"height"]:e[d],st(v?u/o*_:u/100*o)))},qr=function(t,e,r,i){var n;return ur||Br(),e in Tr&&"transform"!==e&&~(e=Tr[e]).indexOf(",")&&(e=e.split(",")[0]),fr[e]&&"transform"!==e?(n=si(t,i),n="transformOrigin"!==e?n[e]:n.svg?n.origin:ai(Ur(t,Cr))+" "+n.zOrigin+"px"):(!(n=t.style[e])||"auto"===n||i||~(n+"").indexOf("calc("))&&(n=Qr[e]&&Qr[e](t,e,r)||Ur(t,e)||nt(t,e)||("opacity"===e?1:0)),r&&!~(n+"").trim().indexOf(" ")?zr(t,e,n,r)+r:n},Kr=function(t,e,r,i){if(!r||"none"===r){var n=Fr(e,t,1),o=n&&Ur(t,n,1);o&&o!==r?(e=n,r=o):"borderColor"===e&&(r=Ur(t,"borderTopColor"))}var s,a,h,u,l,c,p,f,_,g,v,m=new er(this._pt,t.style,e,0,1,Ke),y=0,T=0;if(m.b=r,m.e=i,r+="","auto"===(i+="")&&(t.style[e]=i,i=Ur(t,e)||i,t.style[e]=r),de(s=[r,i]),i=s[1],h=(r=s[0]).match(U)||[],(i.match(U)||[]).length){for(;a=U.exec(i);)p=a[0],_=i.substring(y,a.index),l?l=(l+1)%5:"rgba("!==_.substr(-5)&&"hsla("!==_.substr(-5)||(l=1),p!==(c=h[T++]||"")&&(u=parseFloat(c)||0,v=c.substr((u+"").length),"="===p.charAt(1)&&(p=ht(u,p)+v),f=parseFloat(p),g=p.substr((f+"").length),y=U.lastIndex-g.length,g||(g=g||d.units[e]||v,y===i.length&&(i+=g,m.e+=g)),v!==g&&(u=zr(t,e,c,g)||0),m._pt={_next:m._pt,p:_||1===T?_:",",s:u,c:f-u,m:l&&l<4||"zIndex"===e?Math.round:0});m.c=y<i.length?i.substring(y,i.length):""}else m.r="display"===e&&"none"===i?Or:Ar;return F.test(i)&&(m.e=0),this._pt=m,m},Zr={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},$r=function(t){var e=t.split(" "),r=e[0],i=e[1]||"50%";return"top"!==r&&"bottom"!==r&&"left"!==i&&"right"!==i||(t=r,r=i,i=t),e[0]=Zr[r]||r,e[1]=Zr[i]||i,e.join(" ")},Jr=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,i,n,o=e.t,s=o.style,a=e.u,h=o._gsap;if("all"===a||!0===a)s.cssText="",i=1;else for(n=(a=a.split(",")).length;--n>-1;)r=a[n],fr[r]&&(i=1,r="transformOrigin"===r?Cr:wr),jr(o,r);i&&(jr(o,wr),h&&(h.svg&&o.removeAttribute("transform"),si(o,1),h.uncache=1))}},Qr={clearProps:function(t,e,r,i,n){if("isFromStart"!==n.data){var o=t._pt=new er(t._pt,e,r,0,0,Jr);return o.u=i,o.pr=-10,o.tween=n,t._props.push(r),1}}},ti=[1,0,0,1,0,0],ei={},ri=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},ii=function(t){var e=Ur(t,wr);return ri(e)?ti:e.substr(7).match(L).map(st)},ni=function(t,e){var r,i,n,o,s=t._gsap||it(t),a=t.style,h=ii(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(h=[(n=t.transform.baseVal.consolidate().matrix).a,n.b,n.c,n.d,n.e,n.f]).join(",")?ti:h:(h!==ti||t.offsetParent||t===hr||s.svg||(n=a.display,a.display="block",(r=t.parentNode)&&t.offsetParent||(o=1,i=t.nextSibling,hr.appendChild(t)),h=ii(t),n?a.display=n:jr(t,"display"),o&&(i?r.insertBefore(t,i):r?r.appendChild(t):hr.removeChild(t))),e&&h.length>6?[h[0],h[1],h[4],h[5],h[12],h[13]]:h)},oi=function(t,e,r,i,n,o){var s,a,h,u=t._gsap,l=n||ni(t,!0),c=u.xOrigin||0,p=u.yOrigin||0,f=u.xOffset||0,d=u.yOffset||0,_=l[0],g=l[1],v=l[2],m=l[3],y=l[4],T=l[5],E=e.split(" "),b=parseFloat(E[0])||0,x=parseFloat(E[1])||0;r?l!==ti&&(a=_*m-g*v)&&(h=b*(-g/a)+x*(_/a)-(_*T-g*y)/a,b=b*(m/a)+x*(-v/a)+(v*T-m*y)/a,x=h):(b=(s=Hr(t)).x+(~E[0].indexOf("%")?b/100*s.width:b),x=s.y+(~(E[1]||E[0]).indexOf("%")?x/100*s.height:x)),i||!1!==i&&u.smooth?(y=b-c,T=x-p,u.xOffset=f+(y*_+T*v)-y,u.yOffset=d+(y*g+T*m)-T):u.xOffset=u.yOffset=0,u.xOrigin=b,u.yOrigin=x,u.smooth=!!i,u.origin=e,u.originIsAbsolute=!!r,t.style[Cr]="0px 0px",o&&(Vr(o,u,"xOrigin",c,b),Vr(o,u,"yOrigin",p,x),Vr(o,u,"xOffset",f,u.xOffset),Vr(o,u,"yOffset",d,u.yOffset)),t.setAttribute("data-svg-origin",b+" "+x)},si=function(t,e){var r=t._gsap||new Ie(t);if("x"in r&&!e&&!r.uncache)return r;var i,n,o,s,a,h,u,l,c,p,f,_,g,v,m,y,T,E,b,x,R,A,O,S,I,P,M,D,N,w,C,L,U=t.style,G=r.scaleX<0,F="px",B="deg",X=Ur(t,Cr)||"0";return i=n=o=h=u=l=c=p=f=0,s=a=1,r.svg=!(!t.getCTM||!Yr(t)),v=ni(t,r.svg),r.svg&&(S=(!r.uncache||"0px 0px"===X)&&!e&&t.getAttribute("data-svg-origin"),oi(t,S||X,!!S||r.originIsAbsolute,!1!==r.smooth,v)),_=r.xOrigin||0,g=r.yOrigin||0,v!==ti&&(E=v[0],b=v[1],x=v[2],R=v[3],i=A=v[4],n=O=v[5],6===v.length?(s=Math.sqrt(E*E+b*b),a=Math.sqrt(R*R+x*x),h=E||b?gr(b,E)*dr:0,(c=x||R?gr(x,R)*dr+h:0)&&(a*=Math.abs(Math.cos(c*_r))),r.svg&&(i-=_-(_*E+g*x),n-=g-(_*b+g*R))):(L=v[6],w=v[7],M=v[8],D=v[9],N=v[10],C=v[11],i=v[12],n=v[13],o=v[14],u=(m=gr(L,N))*dr,m&&(S=A*(y=Math.cos(-m))+M*(T=Math.sin(-m)),I=O*y+D*T,P=L*y+N*T,M=A*-T+M*y,D=O*-T+D*y,N=L*-T+N*y,C=w*-T+C*y,A=S,O=I,L=P),l=(m=gr(-x,N))*dr,m&&(y=Math.cos(-m),C=R*(T=Math.sin(-m))+C*y,E=S=E*y-M*T,b=I=b*y-D*T,x=P=x*y-N*T),h=(m=gr(b,E))*dr,m&&(S=E*(y=Math.cos(m))+b*(T=Math.sin(m)),I=A*y+O*T,b=b*y-E*T,O=O*y-A*T,E=S,A=I),u&&Math.abs(u)+Math.abs(h)>359.9&&(u=h=0,l=180-l),s=st(Math.sqrt(E*E+b*b+x*x)),a=st(Math.sqrt(O*O+L*L)),m=gr(A,O),c=Math.abs(m)>2e-4?m*dr:0,f=C?1/(C<0?-C:C):0),r.svg&&(S=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!ri(Ur(t,wr)),S&&t.setAttribute("transform",S))),Math.abs(c)>90&&Math.abs(c)<270&&(G?(s*=-1,c+=h<=0?180:-180,h+=h<=0?180:-180):(a*=-1,c+=c<=0?180:-180)),e=e||r.uncache,r.x=i-((r.xPercent=i&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-i)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+F,r.y=n-((r.yPercent=n&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-n)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+F,r.z=o+F,r.scaleX=st(s),r.scaleY=st(a),r.rotation=st(h)+B,r.rotationX=st(u)+B,r.rotationY=st(l)+B,r.skewX=c+B,r.skewY=p+B,r.transformPerspective=f+F,(r.zOrigin=parseFloat(X.split(" ")[2])||0)&&(U[Cr]=ai(X)),r.xOffset=r.yOffset=0,r.force3D=d.force3D,r.renderTransform=r.svg?di:pr?fi:ui,r.uncache=0,r},ai=function(t){return(t=t.split(" "))[0]+" "+t[1]},hi=function(t,e,r){var i=Yt(e);return st(parseFloat(e)+parseFloat(zr(t,"x",r+"px",i)))+i},ui=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,fi(t,e)},li="0deg",ci="0px",pi=") ",fi=function(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,o=r.x,s=r.y,a=r.z,h=r.rotation,u=r.rotationY,l=r.rotationX,c=r.skewX,p=r.skewY,f=r.scaleX,d=r.scaleY,_=r.transformPerspective,g=r.force3D,v=r.target,m=r.zOrigin,y="",T="auto"===g&&t&&1!==t||!0===g;if(m&&(l!==li||u!==li)){var E,b=parseFloat(u)*_r,x=Math.sin(b),R=Math.cos(b);b=parseFloat(l)*_r,E=Math.cos(b),o=hi(v,o,x*E*-m),s=hi(v,s,-Math.sin(b)*-m),a=hi(v,a,R*E*-m+m)}_!==ci&&(y+="perspective("+_+pi),(i||n)&&(y+="translate("+i+"%, "+n+"%) "),(T||o!==ci||s!==ci||a!==ci)&&(y+=a!==ci||T?"translate3d("+o+", "+s+", "+a+") ":"translate("+o+", "+s+pi),h!==li&&(y+="rotate("+h+pi),u!==li&&(y+="rotateY("+u+pi),l!==li&&(y+="rotateX("+l+pi),c===li&&p===li||(y+="skew("+c+", "+p+pi),1===f&&1===d||(y+="scale("+f+", "+d+pi),v.style[wr]=y||"translate(0, 0)"},di=function(t,e){var r,i,n,o,s,a=e||this,h=a.xPercent,u=a.yPercent,l=a.x,c=a.y,p=a.rotation,f=
vendor: 5,444 bytes, line 1
1a.skewX,d=a.skewY,_=a.scaleX,g=a.scaleY,v=a.target,m=a.xOrigin,y=a.yOrigin,T=a.xOffset,E=a.yOffset,b=a.forceCSS,x=parseFloat(l),R=parseFloat(c);p=parseFloat(p),f=parseFloat(f),(d=parseFloat(d))&&(f+=d=parseFloat(d),p+=d),p||f?(p*=_r,f*=_r,r=Math.cos(p)*_,i=Math.sin(p)*_,n=Math.sin(p-f)*-g,o=Math.cos(p-f)*g,f&&(d*=_r,s=Math.tan(f-d),n*=s=Math.sqrt(1+s*s),o*=s,d&&(s=Math.tan(d),r*=s=Math.sqrt(1+s*s),i*=s)),r=st(r),i=st(i),n=st(n),o=st(o)):(r=_,o=g,i=n=0),(x&&!~(l+"").indexOf("px")||R&&!~(c+"").indexOf("px"))&&(x=zr(v,"x",l,"px"),R=zr(v,"y",c,"px")),(m||y||T||E)&&(x=st(x+m-(m*r+y*n)+T),R=st(R+y-(m*i+y*o)+E)),(h||u)&&(s=v.getBBox(),x=st(x+h/100*s.width),R=st(R+u/100*s.height)),s="matrix("+r+","+i+","+n+","+o+","+x+","+R+")",v.setAttribute("transform",s),b&&(v.style[wr]=s)},_i=function(t,e,r,i,n){var o,s,a=360,h=R(n),u=parseFloat(n)*(h&&~n.indexOf("rad")?dr:1)-i,l=i+u+"deg";return h&&("short"===(o=n.split("_")[1])&&(u%=a)!==u%180&&(u+=u<0?a:-360),"cw"===o&&u<0?u=(u+36e9)%a-~~(u/a)*a:"ccw"===o&&u>0&&(u=(u-36e9)%a-~~(u/a)*a)),t._pt=s=new er(t._pt,e,r,i,u,br),s.e=l,s.u="deg",t._props.push(r),s},gi=function(t,e){for(var r in e)t[r]=e[r];return t},vi=function(t,e,r){var i,n,o,s,a,h,u,l=gi({},r._gsap),c=r.style;for(n in l.svg?(o=r.getAttribute("transform"),r.setAttribute("transform",""),c[wr]=e,i=si(r,1),jr(r,wr),r.setAttribute("transform",o)):(o=getComputedStyle(r)[wr],c[wr]=e,i=si(r,1),c[wr]=o),fr)(o=l[n])!==(s=i[n])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(n)<0&&(a=Yt(o)!==(u=Yt(s))?zr(r,n,o,u):parseFloat(o),h=parseFloat(s),t._pt=new er(t._pt,i,n,a,h-a,Er),t._pt.u=u||0,t._props.push(n));gi(i,l)};ot("padding,margin,Width,Radius",(function(t,e){var r="Top",i="Right",n="Bottom",o="Left",s=(e<3?[r,i,n,o]:[r+o,r+i,n+i,n+o]).map((function(r){return e<2?t+r:"border"+r+t}));Qr[e>1?"border"+t:t]=function(t,e,r,i,n){var o,a;if(arguments.length<4)return o=s.map((function(e){return qr(t,e,r)})),5===(a=o.join(" ")).split(o[0]).length?o[0]:a;o=(i+"").split(" "),a={},s.forEach((function(t,e){return a[t]=o[e]=o[e]||o[(e-1)/2|0]})),t.init(e,a,n)}}));var mi={name:"css",register:Br,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,i,n){var o,s,a,h,u,l,c,p,f,_,g,v,m,y,T,E=this._props,b=t.style,x=r.vars.startAt;for(c in ur||Br(),e)if("autoRound"!==c&&(s=e[c],!$[c]||!Le(c,e,r,i,t,n)))if(u=typeof s,l=Qr[c],"function"===u&&(u=typeof(s=s.call(r,i,t,n))),"string"===u&&~s.indexOf("random(")&&(s=te(s)),l)l(this,t,c,s,r)&&(T=1);else if("--"===c.substr(0,2))o=(getComputedStyle(t).getPropertyValue(c)+"").trim(),s+="",pe.lastIndex=0,pe.test(o)||(p=Yt(o),f=Yt(s)),f?p!==f&&(o=zr(t,c,o,f)+f):p&&(s+=p),this.add(b,"setProperty",o,s,i,n,0,0,c),E.push(c);else if("undefined"!==u){if(x&&c in x?(o="function"===typeof x[c]?x[c].call(r,i,t,n):x[c],R(o)&&~o.indexOf("random(")&&(o=te(o)),Yt(o+"")||(o+=d.units[c]||Yt(qr(t,c))||""),"="===(o+"").charAt(1)&&(o=qr(t,c))):o=qr(t,c),h=parseFloat(o),(_="string"===u&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),a=parseFloat(s),c in Tr&&("autoAlpha"===c&&(1===h&&"hidden"===qr(t,"visibility")&&a&&(h=0),Vr(this,b,"visibility",h?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==c&&"transform"!==c&&~(c=Tr[c]).indexOf(",")&&(c=c.split(",")[0])),g=c in fr)if(v||((m=t._gsap).renderTransform&&!e.parseTransform||si(t,e.parseTransform),y=!1!==e.smoothOrigin&&m.smooth,(v=this._pt=new er(this._pt,b,wr,0,1,m.renderTransform,m,0,-1)).dep=1),"scale"===c)this._pt=new er(this._pt,m,"scaleY",m.scaleY,(_?ht(m.scaleY,_+a):a)-m.scaleY||0),E.push("scaleY",c),c+="X";else{if("transformOrigin"===c){s=$r(s),m.svg?oi(t,s,0,y,0,this):((f=parseFloat(s.split(" ")[2])||0)!==m.zOrigin&&Vr(this,m,"zOrigin",m.zOrigin,f),Vr(this,b,c,ai(o),ai(s)));continue}if("svgOrigin"===c){oi(t,s,1,y,0,this);continue}if(c in ei){_i(this,m,c,h,_?ht(h,_+s):s);continue}if("smoothOrigin"===c){Vr(this,m,"smooth",m.smooth,s);continue}if("force3D"===c){m[c]=s;continue}if("transform"===c){vi(this,s,t);continue}}else c in b||(c=Fr(c)||c);if(g||(a||0===a)&&(h||0===h)&&!yr.test(s)&&c in b)a||(a=0),(p=(o+"").substr((h+"").length))!==(f=Yt(s)||(c in d.units?d.units[c]:p))&&(h=zr(t,c,o,f)),this._pt=new er(this._pt,g?m:b,c,h,(_?ht(h,_+a):a)-h,g||"px"!==f&&"zIndex"!==c||!1===e.autoRound?Er:Rr),this._pt.u=f||0,p!==f&&"%"!==f&&(this._pt.b=o,this._pt.r=xr);else if(c in b)Kr.call(this,t,c,o,_?_+s:s);else{if(!(c in t)){j(c,s);continue}this.add(t,c,o||t[c],_?_+s:s,i,n)}E.push(c)}T&&tr(this)},get:qr,aliases:Tr,getSetter:function(t,e,r){var i=Tr[e];return i&&i.indexOf(",")<0&&(e=i),e in fr&&e!==Cr&&(t._gsap.x||qr(t,"x"))?r&&cr===r?"scale"===e?Mr:Pr:(cr=r||{})&&("scale"===e?Dr:Nr):t.style&&!S(t.style[e])?Sr:~e.indexOf("-")?Ir:We(t,e)},core:{_removeProperty:jr,_getMatrix:ni}};or.utils.checkPrefix=Fr,function(t,e,r,i){var n=ot(t+","+e+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){fr[t]=1}));ot(e,(function(t){d.units[t]="deg",ei[t]=1})),Tr[n[13]]=t+","+e,ot("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");Tr[e[1]]=n[e[0]]}))}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY"),ot("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){d.units[t]="px"})),or.registerPlugin(mi);var yi=or.registerPlugin(mi)||or;yi.core.Tween},1987:function(t,e,r){!function(){var e={477:function(t){"use strict";
1t.exports=r(7673)}},i={};function n(t){var r=i[t];if(void 0!==r)return r.exports;var o=i[t]={exports:{}},s=!0;try{e[t](o,o.exports,n),s=!1}finally{s&&delete i[t]}return o.exports}n.ab="//";var o={};!function(){var t,e=o,r=(t=n(477))&&"object"==typeof t&&"default"in t?t.default:t,i=/https?|ftp|gopher|file/;function s(t){"string"==typeof t&&(t=y(t));var e=function(t,e,r){var i=t.auth,n=t.hostname,o=t.protocol||"",s=t.pathname||"",a=t.hash||"",h=t.query||"",u=!1;i=i?encodeURIComponent(i).replace(/%3A/i,":")+"@":"",t.host?u=i+t.host:n&&(u=i+(~n.indexOf(":")?"["+n+"]":n),t.port&&(u+=":"+t.port)),h&&"object"==typeof h&&(h=e.encode(h));var l=t.search||h&&"?"+h||"";return o&&":"!==o.substr(-1)&&(o+=":"),t.slashes||(!o||r.test(o))&&!1!==u?(u="//"+(u||""),s&&"/"!==s[0]&&(s="/"+s)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),l&&"?"!==l[0]&&(l="?"+l),{protocol:o,host:u,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:l=l.replace("#","%23"),hash:a}}(t,r,i);return""+e.protocol+e.host+e.pathname+e.search+e.hash}var a="http://",h="w.w",u=a+h,l=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,c=/https?|ftp|gopher|file/;function p(t,e){var r="string"==typeof t?y(t):t;t="object"==typeof t?s(t):t;var i=y(e),n="";r.protocol&&!r.slashes&&(n=r.protocol,t=t.replace(r.protocol,""),n+="/"===e[0]||"/"===t[0]?"/":""),n&&i.protocol&&(n="",i.slashes||(n=i.protocol,e=e.replace(i.protocol,"")));var o=t.match(l);o&&!i.protocol&&(t=t.substr((n=o[1]+(o[2]||"")).length),/^\/\/[^/]/.test(e)&&(n=n.slice(0,-1)));var h=new URL(t,u+"/"),p=new URL(e,h).toString().replace(u,""),f=i.protocol||r.protocol;return f+=r.slashes||i.slashes?"//":"",!n&&f?p=p.replace(a,f):n&&(p=p.replace(a,"")),c.test(p)||~e.indexOf(".")||"/"===t.slice(-1)||"/"===e.slice(-1)||"/"!==p.slice(-1)||(p=p.slice(0,-1)),n&&(p=n+("/"===p[0]?p.substr(1):p)),p}function f(){}f.prototype.parse=y,f.prototype.format=s,f.prototype.resolve=p,f.prototype.resolveObject=p;var d=/^https?|ftp|gopher|file/,_=/^(.*?)([#?].*)/,g=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,v=/^([a-z0-9.+-]*:)?\/\/\/*/i,m=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function y(t,e,i){if(void 0===e&&(e=!1),void 0===i&&(i=!1),t&&"object"==typeof t&&t instanceof f)return t;var n=(t=t.trim()).match(_);t=n?n[1].replace(/\\/g,"/")+n[2]:t.replace(/\\/g,"/"),m.test(t)&&"/"!==t.slice(-1)&&(t+="/");var o=!/(^javascript)/.test(t)&&t.match(g),a=v.test(t),l="";o&&(d.test(o[1])||(l=o[1].toLowerCase(),t=""+o[2]+o[3]),o[2]||(a=!1,d.test(o[1])?(l=o[1],t=""+o[3]):t="//"+o[3]),3!==o[2].length&&1!==o[2].length||(l=o[1],t="/"+o[3]));var c,p=(n?n[1]:t).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),y=p&&p[1],T=new f,E="",b="";try{c=new URL(t)}catch(e){E=e,l||i||!/^\/\//.test(t)||/^\/\/.+[@.]/.test(t)||(b="/",t=t.substr(1));try{c=new URL(t,u)}catch(t){return T.protocol=l,T.href=l,T}}T.slashes=a&&!b,T.host=c.host===h?"":c.host,T.hostname=c.hostname===h?"":c.hostname.replace(/(\[|\])/g,""),T.protocol=E?l||null:c.protocol,T.search=c.search.replace(/\\/g,"%5C"),T.hash=c.hash.replace(/\\/g,"%5C");var x=t.split("#");!T.search&&~x[0].indexOf("?")&&(T.search="?"),T.hash||""!==x[1]||(T.hash="#"),T.query=e?r.decode(c.search.substr(1)):T.search.substr(1),T.pathname=b+(o?function(t){return t.replace(/['^|`]/g,(function(t){return"%"+t.charCodeAt().toString(16).toUpperCase()})).replace(/((?:%[0-9A-F]{2})+)/g,(function(t,e){try{return decodeURIComponent(e).split("").map((function(t){var e=t.charCodeAt();return e>256||/^[a-z0-9]$/i.test(t)?t:"%"+e.toString(16).toUpperCase()})).join("")}catch(t){return e}}))}(c.pathname):c.pathname),"about:"===T.protocol&&"blank"===T.pathname&&(T.protocol="",T.pathname=""),E&&"/"!==t[0]&&(T.pathname=T.pathname.substr(1)),l&&!d.test(l)&&"/"!==t.slice(-1)&&"/"===T.pathname&&(T.pathname=""),T.path=T.pathname+T.search,T.auth=[c.username,c.password].map(decodeURIComponent).filter(Boolean).join(":"),T.port=c.port,y&&!T.host.endsWith(y)&&(T.host+=y,T.port=y.slice(1)),T.href=b?""+T.pathname+T.search+T.hash:s(T);var R=/^(file)/.test(T.href)?["host","hostname"]:[];return Object.keys(T).forEach((function(t){~R.indexOf(t)||(T[t]=T[t]||null)})),T}e.parse=y,e.format=s,e.resolve=p,e.resolveObject=function(t,e){return y(p(t,e))},e.Url=f}(),t.exports=o}()},1163:function(t,e,r){t.exports=r(387)},4298:function(t,e,r){t.exports=r(699)},8866:function(t,e,r){"use strict";r.d(e,{MxU:function(){return ut},W20:function(){return $},wn$:function(){return ht.wn}
1,TCu:function(){return or},aNw:function(){return It},jyi:function(){return lr},P6Y:function(){return x}});var i=function(t){var e=this.constructor;return this.then((function(r){return e.resolve(t()).then((function(){return r}))}),(function(r){return e.resolve(t()).then((function(){return e.reject(r)}))}))};var n=function(t){return new this((function(e,r){if(!t||"undefined"===typeof t.length)return r(new TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var i=Array.prototype.slice.call(t);if(0===i.length)return e([]);var n=i.length;function o(t,r){if(r&&("object"===typeof r||"function"===typeof r)){var s=r.then;if("function"===typeof s)return void s.call(r,(function(e){o(t,e)}),(function(r){i[t]={status:"rejected",reason:r},0===--n&&e(i)}))}i[t]={status:"fulfilled",value:r},0===--n&&e(i)}for(var s=0;s<i.length;s++)o(s,i[s])}))},o=setTimeout;function s(t){return Boolean(t&&"undefined"!==typeof t.length)}function a(){}function h(t){if(!(this instanceof h))throw new TypeError("Promises must be constructed via new");if("function"!==typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(t,this)}function u(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,h._immediateFn((function(){var r=1===t._state?e.onFulfilled:e.onRejected;if(null!==r){var i;try{i=r(t._value)}catch(n){return void c(e.promise,n)}l(e.promise,i)}else(1===t._state?l:c)(e.promise,t._value)}))):t._deferreds.push(e)}function l(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===typeof e||"function"===typeof e)){var r=e.then;if(e instanceof h)return t._state=3,t._value=e,void p(t);if("function"===typeof r)return void d((i=r,n=e,function(){i.apply(n,arguments)}),t)}t._state=1,t._value=e,p(t)}catch(o){c(t,o)}var i,n}function c(t,e){t._state=2,t._value=e,p(t)}function p(t){2===t._state&&0===t._deferreds.length&&h._immediateFn((function(){t._handled||h._unhandledRejectionFn(t._value)}));for(var e=0,r=t._deferreds.length;e<r;e++)u(t,t._deferreds[e]);t._deferreds=null}function f(t,e,r){this.onFulfilled="function"===typeof t?t:null,this.onRejected="function"===typeof e?e:null,this.promise=r}function d(t,e){var r=!1;try{t((function(t){r||(r=!0,l(e,t))}),(function(t){r||(r=!0,c(e,t))}))}catch(i){if(r)return;r=!0,c(e,i)}}h.prototype.catch=function(t){return this.then(null,t)},h.prototype.then=function(t,e){var r=new this.constructor(a);return u(this,new f(t,e,r)),r},h.prototype.finally=i,h.all=function(t){return new h((function(e,r){if(!s(t))return r(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(t);if(0===i.length)return e([]);var n=i.length;function o(t,s){try{if(s&&("object"===typeof s||"function"===typeof s)){var a=s.then;if("function"===typeof a)return void a.call(s,(function(e){o(t,e)}),r)}i[t]=s,0===--n&&e(i)}catch(h){r(h)}}for(var a=0;a<i.length;a++)o(a,i[a])}))},h.allSettled=n,h.resolve=function(t){return t&&"object"===typeof t&&t.constructor===h?t:new h((function(e){e(t)}))},h.reject=function(t){return new h((function(e,r){r(t)}))},h.race=function(t){return new h((function(e,r){if(!s(t))return r(new TypeError("Promise.race accepts an array"));for(var i=0,n=t.length;i<n;i++)h.resolve(t[i]).then(e,r)}))},h._immediateFn="function"===typeof setImmediate&&function(t){setImmediate(t)}||function(t){o(t,0)},h._unhandledRejectionFn=function(t){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var _=h,g=r(6086),v=r.n(g);"undefined"===typeof globalThis&&("undefined"!==typeof self?self.globalThis=self:"undefined"!==typeof r.g&&(r.g.globalThis=r.g)),globalThis.Promise||(globalThis.Promise=_),Object.assign||(Object.assign=v());if(Date.now&&Date.prototype.getTime||(Date.now=function(){return(new Date).getTime()}),!globalThis.performance||!globalThis.performance.now){var m=Date.now();globalThis.performance||(globalThis.performance={}),globalThis.performance.now=function(){return Date.now()-m}}for(var y=Date.now(),T=["ms","moz","webkit","o"],E=0;E<T.length&&!globalThis.requestAnimationFrame;++E){var b=T[E];globalThis.requestAnimationFrame=globalThis[b+"RequestAnimationFrame"],globalThis.cancelAnimationFrame=globalThis[b+"CancelAnimationFrame"]||globalThis[b+"CancelRequestAnimationFrame"]}globalThis.requestAnimationFrame||(globalThis.requestAnimationFrame=function(t){if("function"!==typeof t)throw new TypeError(t+"is not a function");var e=Date.now(),r=16+y-e;return r<0&&(r=0),y=e,globalThis.self.setTimeout((function(){y=Date.now(),t(performance.now())}),r)}),globalThis.cancelAnimationFrame||(globalThis.cancelAnimationFrame=function(t){return clearTimeout(t)}),Math.sign||(Math.sign=function(t){return 0===(t=Number(t))||isNaN(t)?t:t>0?1:-1}),Number.isInteger||(Number.isInteger=function(t){return"number"===typeof t&&isFinite(t)&&Math.floor(t)===t}),globalThis.ArrayBuffer||(globalThis.ArrayBuffer=Array),globalThis.Float32Array||(globalThis.Float32Array=Array),globalThis.Uint32Array||(globalThis.Uint32Array=Array),globalThis.Uint16Array||(globalThis.Uint16Array=Array),globalThis.Uint8Array||(globalThis.Uint8Array=Array),globalThis.Int32Array||(globalThis.Int32Array=Array);var x=r(8942),R=r(1576),A=r(9658);R.X.SORTABLE_CHILDREN=!1;var O=function(){function t(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}return t.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},t.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},t.prototype.getRectangle=function(t){return this.minX>this.maxX||this.minY>this.maxY?A.Ae.EMPTY:((t=t||new A.Ae(0,0,1,1)).x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)},t.prototype.addPoint=function(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)},t.prototype.addPointMatrix=function(t,e){var r=t.a,i=t.b,n=t.c,o=t.d,s=t.tx,a=t.ty,h=r*e.x+n*e.y+s,u=i*e.x+o*e.y+a;this.minX=Math.min(this.minX,h),this.maxX=Math.max(this.maxX,h),this.minY=Math.min(this.minY,u),this.maxY=Math.max(this.maxY,u)},t.prototype.addQuad=function(t){var e=this.minX,r=this.minY,i=this.maxX,n=this.maxY,o=t[0],s=t[1];e=o<e?o:e,r=s<r?s:r,i=o>i?o:i,n=s>n?s:n,e=(o=t[2])<e?o:e,r=(s=t[3])<r?s:r,i=o>i?o:i,n=s>n?s:n,e=(o=t[4])<e?o:e,r=(s=t[5])<r?s:r,i=o>i?o:i,n=s>n?s:n,e=(o=t[6])<e?o:e,r=(s=t[7])<r?s:r,i=o>i?o:i,n=s>n?s:n,this.minX=e,this.minY=r,this.maxX=i,this.maxY=n},t.prototype.addFrame=function(t,e,r,i,n){this.addFrameMatrix(t.worldTransform,e,r,i,n)},t.prototype.addFrameMatrix=function(t,e,r,i,n){var o=t.a,s=t.b,a=t.c,h=t.d,u=t.tx,l=t.ty,c=this.minX,p=this.minY,f=this.maxX,d=this.maxY,_=o*e+a*r+u,g=s*e+h*r+l;c=_<c?_:c,p=g<p?g:p,f=_>f?_:f,d=g>d?g:d,c=(_=o*i+a*r+u)<c?_:c,p=(g=s*i+h*r+l)<p?g:p,f=_>f?_:f,d=g>d?g:d,c=(_=o*e+a*n+u)<c?_:c,p=(g=s*e+h*n+l)<p?g:p,f=_>f?_:f,d=g>d?g:d,c=(_=o*i+a*n+u)<c?_:c,p=(g=s*i+h*n+l)<p?g:p,f=_>f?_:f,d=g>d?g:d,this.minX=c,this.minY=p,this.maxX=f,this.maxY=d},t.prototype.addVertexData=function(t,e,r){for(var i=this.minX,n=this.minY,o=this.maxX,s=this.maxY,a=e;a<r;a+=2){var h=t[a],u=t[a+1];i=h<i?h:i,n=u<n?u:n,o=h>o?h:o,s=u>s?u:s}this.minX=i,this.minY=n,this.maxX=o,this.maxY=s},t.prototype.addVertices=function(t,e,r,i){this.addVerticesMatrix(t.worldTransform,e,r,i)},t.prototype.addVerticesMatrix=function(t,e,r,i,n,o){void 0===n&&(n=0),void 0===o&&(o=n);for(var s=t.a,a=t.b,h=t.c,u=t.d,l=t.tx,c=t.ty,p=this.minX,f=this.minY,d=this.maxX,_=this.maxY,g=r;g<i;g+=2){var v=e[g],m=e[g+1],y=s*v+h*m+l,T=u*m+a*v+c;
1p=Math.min(p,y-n),d=Math.max(d,y+n),f=Math.min(f,T-o),_=Math.max(_,T+o)}this.minX=p,this.minY=f,this.maxX=d,this.maxY=_},t.prototype.addBounds=function(t){var e=this.minX,r=this.minY,i=this.maxX,n=this.maxY;this.minX=t.minX<e?t.minX:e,this.minY=t.minY<r?t.minY:r,this.maxX=t.maxX>i?t.maxX:i,this.maxY=t.maxY>n?t.maxY:n},t.prototype.addBoundsMask=function(t,e){var r=t.minX>e.minX?t.minX:e.minX,i=t.minY>e.minY?t.minY:e.minY,n=t.maxX<e.maxX?t.maxX:e.maxX,o=t.maxY<e.maxY?t.maxY:e.maxY;if(r<=n&&i<=o){var s=this.minX,a=this.minY,h=this.maxX,u=this.maxY;this.minX=r<s?r:s,this.minY=i<a?i:a,this.maxX=n>h?n:h,this.maxY=o>u?o:u}},t.prototype.addBoundsMatrix=function(t,e){this.addFrameMatrix(e,t.minX,t.minY,t.maxX,t.maxY)},t.prototype.addBoundsArea=function(t,e){var r=t.minX>e.x?t.minX:e.x,i=t.minY>e.y?t.minY:e.y,n=t.maxX<e.x+e.width?t.maxX:e.x+e.width,o=t.maxY<e.y+e.height?t.maxY:e.y+e.height;if(r<=n&&i<=o){var s=this.minX,a=this.minY,h=this.maxX,u=this.maxY;this.minX=r<s?r:s,this.minY=i<a?i:a,this.maxX=n>h?n:h,this.maxY=o>u?o:u}},t.prototype.pad=function(t,e){void 0===t&&(t=0),void 0===e&&(e=t),this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=e,this.maxY+=e)},t.prototype.addFramePad=function(t,e,r,i,n,o){t-=n,e-=o,r+=n,i+=o,this.minX=this.minX<t?this.minX:t,this.maxX=this.maxX>r?this.maxX:r,this.minY=this.minY<e?this.minY:e,this.maxY=this.maxY>i?this.maxY:i},t}(),S=function(t,e){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},S(t,e)};function I(t,e){function r(){this.constructor=t}S(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var P,M,D,N,w,C,L,U,G,F,B,X,k,H,Y,j,V,W,z,q=function(t){function e(){var e=t.call(this)||this;return e.tempDisplayObjectParent=null,e.transform=new A.wx,e.alpha=1,e.visible=!0,e.renderable=!0,e.cullable=!1,e.cullArea=null,e.parent=null,e.worldAlpha=1,e._lastSortedIndex=0,e._zIndex=0,e.filterArea=null,e.filters=null,e._enabledFilters=null,e._bounds=new O,e._localBounds=null,e._boundsID=0,e._boundsRect=null,e._localBoundsRect=null,e._mask=null,e._maskRefCount=0,e._destroyed=!1,e.isSprite=!1,e.isMask=!1,e}return I(e,t),e.mixin=function(t){for(var r=Object.keys(t),i=0;i<r.length;++i){var n=r[i];Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(t,n))}},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!1,configurable:!0}),e.prototype._recursivePostUpdateTransform=function(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)},e.prototype.updateTransform=function(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha},e.prototype.getBounds=function(t,e){return t||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),e||(this._boundsRect||(this._boundsRect=new A.Ae),e=this._boundsRect),this._bounds.getRectangle(e)},e.prototype.getLocalBounds=function(t){t||(this._localBoundsRect||(this._localBoundsRect=new A.Ae),t=this._localBoundsRect),this._localBounds||(this._localBounds=new O);var e=this.transform,r=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform;var i=this._bounds,n=this._boundsID;this._bounds=this._localBounds;var o=this.getBounds(!1,t);return this.parent=r,this.transform=e,this._bounds=i,this._bounds.updateID+=this._boundsID-n,o},e.prototype.toGlobal=function(t,e,r){return void 0===r&&(r=!1),r||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(t,e)},e.prototype.toLocal=function(t,e,r,i){return e&&(t=e.toGlobal(t,r,i)),i||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(t,r)},e.prototype.setParent=function(t){if(!t||!t.addChild)throw new Error("setParent: Argument must be a Container");return t.addChild(this),t},e.prototype.setTransform=function(t,e,r,i,n,o,s,a,h){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===r&&(r=1),void 0===i&&(i=1),void 0===n&&(n=0),void 0===o&&(o=0),void 0===s&&(s=0),void 0===a&&(a=0),void 0===h&&(h=0),this.position.x=t,this.position.y=e,this.scale.x=r||1,this.scale.y=i||1,this.rotation=n,this.skew.x=o,this.skew.y=s,this.pivot.x=a,this.pivot.y=h,this},e.prototype.destroy=function(t){this.parent&&this.parent.removeChild(this),this.emit
1("destroyed"),this.removeAllListeners(),this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.interactive=!1,this.interactiveChildren=!1,this._destroyed=!0},Object.defineProperty(e.prototype,"_tempDisplayObjectParent",{get:function(){return null===this.tempDisplayObjectParent&&(this.tempDisplayObjectParent=new K),this.tempDisplayObjectParent},enumerable:!1,configurable:!0}),e.prototype.enableTempParent=function(){var t=this.parent;return this.parent=this._tempDisplayObjectParent,t},e.prototype.disableTempParent=function(t){this.parent=t},Object.defineProperty(e.prototype,"x",{get:function(){return this.position.x},set:function(t){this.transform.position.x=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.position.y},set:function(t){this.transform.position.y=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.transform.worldTransform},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localTransform",{get:function(){return this.transform.localTransform},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.transform.position},set:function(t){this.transform.position.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this.transform.scale},set:function(t){this.transform.scale.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pivot",{get:function(){return this.transform.pivot},set:function(t){this.transform.pivot.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"skew",{get:function(){return this.transform.skew},set:function(t){this.transform.skew.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this.transform.rotation},set:function(t){this.transform.rotation=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.transform.rotation*A.jl},set:function(t){this.transform.rotation=t*A.ZX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zIndex",{get:function(){return this._zIndex},set:function(t){this._zIndex=t,this.parent&&(this.parent.sortDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"worldVisible",{get:function(){var t=this;do{if(!t.visible)return!1;t=t.parent}while(t);return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mask",{get:function(){return this._mask},set:function(t){if(this._mask!==t){var e;if(this._mask)(e=this._mask.maskObject||this._mask)._maskRefCount--,0===e._maskRefCount&&(e.renderable=!0,e.isMask=!1);if(this._mask=t,this._mask)0===(e=this._mask.maskObject||this._mask)._maskRefCount&&(e.renderable=!1,e.isMask=!0),e._maskRefCount++}},enumerable:!1,configurable:!0}),e}(x.EventEmitter),K=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.sortDirty=null,e}return I(e,t),e}(q);function Z(t,e){return t.zIndex===e.zIndex?t._lastSortedIndex-e._lastSortedIndex:t.zIndex-e.zIndex}q.prototype.displayObjectUpdateTransform=q.prototype.updateTransform,function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"}(P||(P={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"}(M||(M={})),function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"}(D||(D={})),function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERA
1SE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"}(N||(N={})),function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(w||(w={})),function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"}(C||(C={})),function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"}(L||(L={})),function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"}(U||(U={})),function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"}(G||(G={})),function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"}(F||(F={})),function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(B||(B={})),function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"}(X||(X={})),function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"}(k||(k={})),function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT"}(H||(H={})),function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"}(Y||(Y={})),function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"}(j||(j={})),function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE"}(V||(V={})),function(t){t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH"}(W||(W={})),function(t){t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"}(z||(z={}));var $=function(t){function e(){var e=t.call(this)||this;return e.children=[],e.sortableChildren=R.X.SORTABLE_CHILDREN,e.sortDirty=!1,e}return I(e,t),e.prototype.onChildrenChange=function(t){},e.prototype.addChild=function(){for(var t=arguments,e=[],r=0;r<arguments.length;r++)e[r]=t[r];if(e.length>1)for(var i=0;i<e.length;i++)this.addChild(e[i]);else{var n=e[0];n.parent&&n.parent.removeChild(n),n.parent=this,this.sortDirty=!0,n.transform._parentID=-1,this.children.push(n),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",n,this,this.children.length-1),n.emit("added",this)}return e[0]},e.prototype.addChildAt=function(t,e){if(e<0||e>this.children.length)throw new Error(t+"addChildAt: The index "+e+" supplied is out of bounds "+this.children.length);return t.parent&&t.parent.removeChild(t),t.parent=this,this.sortDirty=!0,t.transform._parentID=-1,this.children.splice(e,0,t),this._boundsID++,this.onChildrenChange(e),t.emit("added",this),this.emit
1("childAdded",t,this,e),t},e.prototype.swapChildren=function(t,e){if(t!==e){var r=this.getChildIndex(t),i=this.getChildIndex(e);this.children[r]=e,this.children[i]=t,this.onChildrenChange(r<i?r:i)}},e.prototype.getChildIndex=function(t){var e=this.children.indexOf(t);if(-1===e)throw new Error("The supplied DisplayObject must be a child of the caller");return e},e.prototype.setChildIndex=function(t,e){if(e<0||e>=this.children.length)throw new Error("The index "+e+" supplied is out of bounds "+this.children.length);var r=this.getChildIndex(t);(0,x.removeItems)(this.children,r,1),this.children.splice(e,0,t),this.onChildrenChange(e)},e.prototype.getChildAt=function(t){if(t<0||t>=this.children.length)throw new Error("getChildAt: Index ("+t+") does not exist.");return this.children[t]},e.prototype.removeChild=function(){for(var t=arguments,e=[],r=0;r<arguments.length;r++)e[r]=t[r];if(e.length>1)for(var i=0;i<e.length;i++)this.removeChild(e[i]);else{var n=e[0],o=this.children.indexOf(n);if(-1===o)return null;n.parent=null,n.transform._parentID=-1,(0,x.removeItems)(this.children,o,1),this._boundsID++,this.onChildrenChange(o),n.emit("removed",this),this.emit("childRemoved",n,this,o)}return e[0]},e.prototype.removeChildAt=function(t){var e=this.getChildAt(t);return e.parent=null,e.transform._parentID=-1,(0,x.removeItems)(this.children,t,1),this._boundsID++,this.onChildrenChange(t),e.emit("removed",this),this.emit("childRemoved",e,this,t),e},e.prototype.removeChildren=function(t,e){void 0===t&&(t=0),void 0===e&&(e=this.children.length);var r,i=t,n=e-i;if(n>0&&n<=e){r=this.children.splice(i,n);for(var o=0;o<r.length;++o)r[o].parent=null,r[o].transform&&(r[o].transform._parentID=-1);this._boundsID++,this.onChildrenChange(t);for(o=0;o<r.length;++o)r[o].emit("removed",this),this.emit("childRemoved",r[o],this,o);return r}if(0===n&&0===this.children.length)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},e.prototype.sortChildren=function(){for(var t=!1,e=0,r=this.children.length;e<r;++e){var i=this.children[e];i._lastSortedIndex=e,t||0===i.zIndex||(t=!0)}t&&this.children.length>1&&this.children.sort(Z),this.sortDirty=!1},e.prototype.updateTransform=function(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var t=0,e=this.children.length;t<e;++t){var r=this.children[t];r.visible&&r.updateTransform()}},e.prototype.calculateBounds=function(){this._bounds.clear(),this._calculateBounds();for(var t=0;t<this.children.length;t++){var e=this.children[t];if(e.visible&&e.renderable)if(e.calculateBounds(),e._mask){var r=e._mask.maskObject||e._mask;r.calculateBounds(),this._bounds.addBoundsMask(e._bounds,r._bounds)}else e.filterArea?this._bounds.addBoundsArea(e._bounds,e.filterArea):this._bounds.addBounds(e._bounds)}this._bounds.updateID=this._boundsID},e.prototype.getLocalBounds=function(e,r){void 0===r&&(r=!1);var i=t.prototype.getLocalBounds.call(this,e);if(!r)for(var n=0,o=this.children.length;n<o;++n){var s=this.children[n];s.visible&&s.updateTransform()}return i},e.prototype._calculateBounds=function(){},e.prototype._renderWithCulling=function(t){var r=t.renderTexture.sourceFrame;if(r.width>0&&r.height>0){var i,n;if(this.cullArea?(i=this.cullArea,n=this.worldTransform):this._render!==e.prototype._render&&(i=this.getBounds(!0)),i&&r.intersects(i,n))this._render(t);else if(this.cullArea)return;for(var o=0,s=this.children.length;o<s;++o){var a=this.children[o],h=a.cullable;a.cullable=h||!this.cullArea,a.render(t),a.cullable=h}}},e.prototype.render=function(t){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable)if(this._mask||this.filters&&this.filters.length)this.renderAdvanced(t);else if(this.cullable)this._renderWithCulling(t);else{this._render(t);for(var e=0,r=this.children.length;e<r;++e)this.children[e].render(t)}},e.prototype.renderAdvanced=function(t){var e=this.filters,r=this._mask;if(e){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(var i=0;i<e.length;i++)e[i].enabled&&this._enabledFilters.push(e[i])}var n=e&&this._enabledFilters&&this._enabledFilters.length||r&&(!r.isMaskData||r.enabled&&(r.autoDetect||r.type!==V.NONE));if(n&&t.batch.flush(),e&&this._enabledFilters&&this._enabledFilters.length&&t.filter.push(this,this._enabledFilters),r&&t.mask.push(this,this._mask),this.cullable)this._renderWithCulling(t);else{this._render(t);i=0;for(var o=this.children.length;i<o;++i)this.children[i].render(t)}n&&t.batch.flush(),r&&t.mask.pop(this),e&&this._enabledFilters&&this._enabledFilters.length&&t.filter.pop()},e.prototype._render=function(t){},e.prototype.destroy=function(e){t.prototype.destroy.call(this),this.sortDirty=!1;var r="boolean"===typeof e?e:e&&e.children,i=this.removeChildren(0,this.children.length);if(r)for(var n=0;n<i.length;++n)i[n].destroy(e)},Object.defineProperty(e.prototype,"width",{get:function(){return this.scale.x*this.getLocalBounds().width}
1,set:function(t){var e=this.getLocalBounds().width;this.scale.x=0!==e?t/e:1,this._width=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.scale.y*this.getLocalBounds().height},set:function(t){var e=this.getLocalBounds().height;this.scale.y=0!==e?t/e:1,this._height=t},enumerable:!1,configurable:!0}),e}(q);$.prototype.containerUpdateTransform=$.prototype.updateTransform;q.mixin({accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:null,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0,renderId:-1});var J=function(){function t(t){this.debug=!1,this._isActive=!1,this._isMobileAccessibility=!1,this.pool=[],this.renderId=0,this.children=[],this.androidUpdateCount=0,this.androidUpdateFrequency=500,this._hookDiv=null,(x.isMobile.tablet||x.isMobile.phone)&&this.createTouchHook();var e=document.createElement("div");e.style.width="100px",e.style.height="100px",e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.zIndex=2..toString(),this.div=e,this.renderer=t,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),globalThis.addEventListener("keydown",this._onKeyDown,!1)}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this._isActive},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMobileAccessibility",{get:function(){return this._isMobileAccessibility},enumerable:!1,configurable:!0}),t.prototype.createTouchHook=function(){var t=this,e=document.createElement("button");e.style.width="1px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.left="-1000px",e.style.zIndex=2..toString(),e.style.backgroundColor="#FF0000",e.title="select to enable accessibility for this content",e.addEventListener("focus",(function(){t._isMobileAccessibility=!0,t.activate(),t.destroyTouchHook()})),document.body.appendChild(e),this._hookDiv=e},t.prototype.destroyTouchHook=function(){this._hookDiv&&(document.body.removeChild(this._hookDiv),this._hookDiv=null)},t.prototype.activate=function(){var t;this._isActive||(this._isActive=!0,globalThis.document.addEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),null===(t=this.renderer.view.parentNode)||void 0===t||t.appendChild(this.div))},t.prototype.deactivate=function(){var t;this._isActive&&!this._isMobileAccessibility&&(this._isActive=!1,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),null===(t=this.div.parentNode)||void 0===t||t.removeChild(this.div))},t.prototype.updateAccessibleObjects=function(t){if(t.visible&&t.accessibleChildren){t.accessible&&t.interactive&&(t._accessibleActive||this.addChild(t),t.renderId=this.renderId);var e=t.children;if(e)for(var r=0;r<e.length;r++)this.updateAccessibleObjects(e[r])}},t.prototype.update=function(){var t=performance.now();if(!(x.isMobile.android.device&&t<this.androidUpdateCount)&&(this.androidUpdateCount=t+this.androidUpdateFrequency,this.renderer.renderingToScreen)){this.renderer._lastObjectRendered&&this.updateAccessibleObjects(this.renderer._lastObjectRendered);var e=this.renderer.view.getBoundingClientRect(),r=e.left,i=e.top,n=e.width,o=e.height,s=this.renderer,a=s.width,h=s.height,u=s.resolution,l=n/a*u,c=o/h*u,p=this.div;p.style.left=r+"px",p.style.top=i+"px",p.style.width=a+"px",p.style.height=h+"px";for(var f=0;f<this.children.length;f++){var d=this.children[f];if(d.renderId!==this.renderId)d._accessibleActive=!1,(0,x.removeItems)(this.children,f,1),this.div.removeChild(d._accessibleDiv),this.pool.push(d._accessibleDiv),d._accessibleDiv=null,f--;else{p=d._accessibleDiv;var _=d.hitArea,g=d.worldTransform;d.hitArea?(p.style.left=(g.tx+_.x*g.a)*l+"px",p.style.top=(g.ty+_.y*g.d)*c+"px",p.style.width=_.width*g.a*l+"px",p.style.height=_.height*g.d*c+"px"):(_=d.getBounds(),this.capHitArea(_),p.style.left=_.x*l+"px",p.style.top=_.y*c+"px",p.style.width=_.width*l+"px",p.style.height=_.height*c+"px",p.title!==d.accessibleTitle&&null!==d.accessibleTitle&&(p.title=d.accessibleTitle),p.getAttribute("aria-label")!==d.accessibleHint&&null!==d.accessibleHint&&p.setAttribute("aria-label",d.accessibleHint)),d.accessibleTitle===p.title&&d.tabIndex===p.tabIndex||(p.title=d.accessibleTitle,p.tabIndex=d.tabIndex,this.debug&&this.updateDebugHTML(p))}}this.renderId++}},t.prototype.updateDebugHTML=function(t){t.innerHTML="type: "+t.type+"</br> title : "+t.title+"</br> tabIndex: "+t.tabIndex},t.prototype.capHitArea=function(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0);
1var e=this.renderer,r=e.width,i=e.height;t.x+t.width>r&&(t.width=r-t.x),t.y+t.height>i&&(t.height=i-t.y)},t.prototype.addChild=function(t){var e=this.pool.pop();e||((e=document.createElement("button")).style.width="100px",e.style.height="100px",e.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",e.style.position="absolute",e.style.zIndex=2..toString(),e.style.borderStyle="none",navigator.userAgent.toLowerCase().indexOf("chrome")>-1?e.setAttribute("aria-live","off"):e.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?e.setAttribute("aria-relevant","additions"):e.setAttribute("aria-relevant","text"),e.addEventListener("click",this._onClick.bind(this)),e.addEventListener("focus",this._onFocus.bind(this)),e.addEventListener("focusout",this._onFocusOut.bind(this))),e.style.pointerEvents=t.accessiblePointerEvents,e.type=t.accessibleType,t.accessibleTitle&&null!==t.accessibleTitle?e.title=t.accessibleTitle:t.accessibleHint&&null!==t.accessibleHint||(e.title="displayObject "+t.tabIndex),t.accessibleHint&&null!==t.accessibleHint&&e.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(e),t._accessibleActive=!0,t._accessibleDiv=e,e.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex},t.prototype._onClick=function(t){var e=this.renderer.plugins.interaction,r=t.target.displayObject,i=e.eventData;e.dispatchEvent(r,"click",i),e.dispatchEvent(r,"pointertap",i),e.dispatchEvent(r,"tap",i)},t.prototype._onFocus=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive");var e=this.renderer.plugins.interaction,r=t.target.displayObject,i=e.eventData;e.dispatchEvent(r,"mouseover",i)},t.prototype._onFocusOut=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite");var e=this.renderer.plugins.interaction,r=t.target.displayObject,i=e.eventData;e.dispatchEvent(r,"mouseout",i)},t.prototype._onKeyDown=function(t){9===t.keyCode&&this.activate()},t.prototype._onMouseMove=function(t){0===t.movementX&&0===t.movementY||this.deactivate()},t.prototype.destroy=function(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},t}(),Q=r(6679),tt=function(){function t(){this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0,this.global=new A.E9,this.target=null,this.originalEvent=null,this.identifier=null,this.isPrimary=!1,this.button=0,this.buttons=0,this.width=0,this.height=0,this.tiltX=0,this.tiltY=0,this.pointerType=null,this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0}return Object.defineProperty(t.prototype,"pointerId",{get:function(){return this.identifier},enumerable:!1,configurable:!0}),t.prototype.getLocalPosition=function(t,e,r){return t.worldTransform.applyInverse(r||this.global,e)},t.prototype.copyEvent=function(t){"isPrimary"in t&&t.isPrimary&&(this.isPrimary=!0),this.button="button"in t&&t.button;var e="buttons"in t&&t.buttons;this.buttons=Number.isInteger(e)?e:"which"in t&&t.which,this.width="width"in t&&t.width,this.height="height"in t&&t.height,this.tiltX="tiltX"in t&&t.tiltX,this.tiltY="tiltY"in t&&t.tiltY,this.pointerType="pointerType"in t&&t.pointerType,this.pressure="pressure"in t&&t.pressure,this.rotationAngle="rotationAngle"in t&&t.rotationAngle,this.twist="twist"in t&&t.twist||0,this.tangentialPressure="tangentialPressure"in t&&t.tangentialPressure||0},t.prototype.reset=function(){this.isPrimary=!1},t}(),et=function(t,e){return et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},et(t,e)};var rt=function(){function t(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return t.prototype.stopPropagation=function(){this.stopped=!0,this.stopPropagationHint=!0,this.stopsPropagatingAt=this.currentTarget},t.prototype.reset=function(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.currentTarget=null,this.target=null},t}(),it=function(){function t(e){this._pointerId=e,this._flags=t.FLAGS.NONE}return t.prototype._doSet=function(t,e){this._flags=e?this._flags|t:this._flags&~t},Object.defineProperty(t.prototype,"pointerId",{get:function(){return this._pointerId}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"flags",{get:function(){return this._flags},set:function(t){this._flags=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"none",{get:function(){return this._flags===t.FLAGS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"over",{get:function(){return 0!==(this._flags&t.FLAGS.OVER)},set:function(e){this._doSet(t.FLAGS.OVER,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightDown",{get:function(){return 0!==(this._flags&t.FLAGS.RIGHT_DOWN)},set:function(e){this._doSet(t.FLAGS.RIGHT_DOWN,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftDown",{get:function(){return 0!==(this._flags&t.FLAGS.LEFT_DOWN)},set:function(e){this._doSet(t.FLAGS.LEFT_DOWN,e)},enumerable:!1,configurable:!0}),t.FLAGS=Object.freeze({NONE:0,OVER:1,LEFT_DOWN:2,RIGHT_DOWN:4}),t}(),nt=function(){function t(){this._tempPoint=new A.E9}return t.prototype.recursiveFindHit=function(t,e,r,i,n){if(!e||!e.visible)return!1;var o=t.data.global,s=!1,a=n=e.interactive||n,h=!0;if(e.hitArea?(i&&(e.worldTransform.applyInverse(o,this._tempPoint),e.hitArea.contains(this._tempPoint.x,this._tempPoint.y)?s=!0:(i=!1,h=!1)),a=!1):e._mask&&i&&(e._mask.containsPoint&&e._mask.containsPoint(o)||(i=!1)),h&&e.interactiveChildren&&e.children)for(var u=e.children,l=u.length-1;l>=0;l--){var c=u[l],p=this.recursiveFindHit(t,c,r,i,a);if(p){if(!c.parent)continue;a=!1,p&&(t.target&&(i=!1),s=!0)}}return n&&(i&&!t.target&&!e.hitArea&&e.containsPoint&&e.containsPoint(o)&&(s=!0),e.interactive&&(s&&!t.target&&(t.target=e),r&&r(t,e,!!s))),s},t.prototype.findHit=function(t,e,r,i){this.recursiveFindHit(t,e,r,i,!1)},t}(),ot={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return"pointer"===this.cursor},set buttonMode(t){t?this.cursor="pointer":"pointer"===this.cursor&&(this.cursor=null)},cursor:null,get trackedPointers(){return void 0===this._trackedPointers&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0};q.mixin(ot);var st={target:null,data:{global:null}},at=function(t){function e(e,r){var i=t.call(this)||this;return r=r||{},i.renderer=e,i.autoPreventDefault=void 0===r.autoPreventDefault||r.autoPreventDefault,i.interactionFrequency=r.interactionFrequency||10,i.mouse=new tt,i.mouse.identifier=1,i.mouse.global.set(-999999),i.activeInteractionData={},i.activeInteractionData[1]=i.mouse,i.interactionDataPool=[],i.eventData=new rt,i.interactionDOMElement=null,i.moveWhenInside=!1,i.eventsAdded=!1,i.tickerAdded=!1,i.mouseOverRenderer=!("PointerEvent"in globalThis),i.supportsTouchEvents="ontouchstart"in globalThis,i.supportsPointerEvents=!!globalThis.PointerEvent,i.onPointerUp=i.onPointerUp.bind(i),i.processPointerUp=i.processPointerUp.bind(i),i.onPointerCancel=i.onPointerCancel.bind(i),i.processPointerCancel=i.processPointerCancel.bind(i),i.onPointerDown=i.onPointerDown.bind(i),i.processPointerDown=i.processPointerDown.bind(i),i.onPointerMove=i.onPointerMove.bind(i),i.processPointerMove=i.processPointerMove.bind(i),i.onPointerOut=i.onPointerOut.bind(i),i.processPointerOverOut=i.processPointerOverOut.bind(i),i.onPointerOver=i.onPointerOver.bind(i),i.cursorStyles={default:"inherit",pointer:"pointer"},i.currentCursorMode=null,i.cursor=null,i.resolution=1,i.delayedEvents=[],i.search=new nt,i._tempDisplayObject=new K,i._eventListenerOptions={capture:!0,passive:!1},i._useSystemTicker=void 0===r.useSystemTicker||r.useSystemTicker,i.setTargetElement(i.renderer.view,i.renderer.resolution),i}return function(t,e){function r(){this.constructor=t}et(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),Object.defineProperty(e.prototype,"useSystemTicker",{get:function(){return this._useSystemTicker},set:function(t){this._useSystemTicker=t,t?this.addTickerListener():this.removeTickerListener()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastObjectRendered",{get:function(){return this.renderer._lastObjectRendered||this._tempDisplayObject},enumerable:!1,configurable:!0}),e.prototype.hitTest=function(t,e){return st.target=null,st.data.global=t,e||(e=this.lastObjectRendered),this.processInteractive(st,e,null,!0),st.target},e.prototype.setTargetElement=function(t,e){void 0===e&&(e=1),this.removeTickerListener(),this.removeEvents(),this.interactionDOMElement=t,this.resolution=e,this.addEvents(),this.addTickerListener()},e.prototype.addTickerListener=function(){!this.tickerAdded&&this.interactionDOMElement&&this._useSystemTicker&&(Q.vB.system.add(this.tickerUpdate,this,Q.uF.INTERACTION),this.tickerAdded=!0)},e.prototype.removeTickerListener=function(){this.tickerAdded&&(Q.vB.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)},e.prototype.addEvents=function(){if(!this.eventsAdded&&this.interactionDOMElement){var t=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(t.msContentZooming="none",t.msTouchAction="none"):this.supportsPointerEvents&&(t.touchAction="none"),this.supportsPointerEvents?(globalThis.document.addEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.addEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.addEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.eventsAdded=!0}},e.prototype.removeEvents=function(){if(this.eventsAdded&&this.interactionDOMElement){var t=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(t.msContentZooming="",t.msTouchAction=""):this.supportsPointerEvents&&(t.touchAction=""),this.supportsPointerEvents?(globalThis.document.removeEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.removeEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.removeEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.interactionDOMElement=null,this.eventsAdded=!1}}
1,e.prototype.tickerUpdate=function(t){this._deltaTime+=t,this._deltaTime<this.interactionFrequency||(this._deltaTime=0,this.update())},e.prototype.update=function(){if(this.interactionDOMElement)if(this._didMove)this._didMove=!1;else{for(var t in this.cursor=null,this.activeInteractionData)if(this.activeInteractionData.hasOwnProperty(t)){var e=this.activeInteractionData[t];if(e.originalEvent&&"touch"!==e.pointerType){var r=this.configureInteractionEventForDOMEvent(this.eventData,e.originalEvent,e);this.processInteractive(r,this.lastObjectRendered,this.processPointerOverOut,!0)}}this.setCursorMode(this.cursor)}},e.prototype.setCursorMode=function(t){t=t||"default";var e=!0;if(globalThis.OffscreenCanvas&&this.interactionDOMElement instanceof OffscreenCanvas&&(e=!1),this.currentCursorMode!==t){this.currentCursorMode=t;var r=this.cursorStyles[t];if(r)switch(typeof r){case"string":e&&(this.interactionDOMElement.style.cursor=r);break;case"function":r(t);break;case"object":e&&Object.assign(this.interactionDOMElement.style,r)}else e&&"string"===typeof t&&!Object.prototype.hasOwnProperty.call(this.cursorStyles,t)&&(this.interactionDOMElement.style.cursor=t)}},e.prototype.dispatchEvent=function(t,e,r){r.stopPropagationHint&&t!==r.stopsPropagatingAt||(r.currentTarget=t,r.type=e,t.emit(e,r),t[e]&&t[e](r))},e.prototype.delayDispatchEvent=function(t,e,r){this.delayedEvents.push({displayObject:t,eventString:e,eventData:r})},e.prototype.mapPositionToPoint=function(t,e,r){var i;i=this.interactionDOMElement.parentElement?this.interactionDOMElement.getBoundingClientRect():{x:0,y:0,width:this.interactionDOMElement.width,height:this.interactionDOMElement.height,left:0,top:0};var n=1/this.resolution;t.x=(e-i.left)*(this.interactionDOMElement.width/i.width)*n,t.y=(r-i.top)*(this.interactionDOMElement.height/i.height)*n},e.prototype.processInteractive=function(t,e,r,i){var n=this.search.findHit(t,e,r,i),o=this.delayedEvents;if(!o.length)return n;t.stopPropagationHint=!1;var s=o.length;this.delayedEvents=[];for(var a=0;a<s;a++){var h=o[a],u=h.displayObject,l=h.eventString,c=h.eventData;c.stopsPropagatingAt===u&&(c.stopPropagationHint=!0),this.dispatchEvent(u,l,c)}return n},e.prototype.onPointerDown=function(t){if(!this.supportsTouchEvents||"touch"!==t.pointerType){var e=this.normalizeToPointerData(t);
1if(this.autoPreventDefault&&e[0].isNormalized)(t.cancelable||!("cancelable"in t))&&t.preventDefault();for(var r=e.length,i=0;i<r;i++){var n=e[i],o=this.getInteractionDataForPointerId(n),s=this.configureInteractionEventForDOMEvent(this.eventData,n,o);if(s.data.originalEvent=t,this.processInteractive(s,this.lastObjectRendered,this.processPointerDown,!0),this.emit("pointerdown",s),"touch"===n.pointerType)this.emit("touchstart",s);else if("mouse"===n.pointerType||"pen"===n.pointerType){var a=2===n.button;this.emit(a?"rightdown":"mousedown",this.eventData)}}}},e.prototype.processPointerDown=function(t,e,r){var i=t.data,n=t.data.identifier;if(r)if(e.trackedPointers[n]||(e.trackedPointers[n]=new it(n)),this.dispatchEvent(e,"pointerdown",t),"touch"===i.pointerType)this.dispatchEvent(e,"touchstart",t);else if("mouse"===i.pointerType||"pen"===i.pointerType){var o=2===i.button;o?e.trackedPointers[n].rightDown=!0:e.trackedPointers[n].leftDown=!0,this.dispatchEvent(e,o?"rightdown":"mousedown",t)}},e.prototype.onPointerComplete=function(t,e,r){for(var i=this.normalizeToPointerData(t),n=i.length,o=t.target!==this.interactionDOMElement?"outside":"",s=0;s<n;s++){var a=i[s],h=this.getInteractionDataForPointerId(a),u=this.configureInteractionEventForDOMEvent(this.eventData,a,h);if(u.data.originalEvent=t,this.processInteractive(u,this.lastObjectRendered,r,e||!o),this.emit(e?"pointercancel":"pointerup"+o,u),"mouse"===a.pointerType||"pen"===a.pointerType){var l=2===a.button;this.emit(l?"rightup"+o:"mouseup"+o,u)}
1else"touch"===a.pointerType&&(this.emit(e?"touchcancel":"touchend"+o,u),this.releaseInteractionDataForPointerId(a.pointerId))}},e.prototype.onPointerCancel=function(t){this.supportsTouchEvents&&"touch"===t.pointerType||this.onPointerComplete(t,!0,this.processPointerCancel)},e.prototype.processPointerCancel=function(t,e){var r=t.data,i=t.data.identifier;void 0!==e.trackedPointers[i]&&(delete e.trackedPointers[i],this.dispatchEvent(e,"pointercancel",t),"touch"===r.pointerType&&this.dispatchEvent(e,"touchcancel",t))},e.prototype.onPointerUp=function(t){this.supportsTouchEvents&&"touch"===t.pointerType||this.onPointerComplete(t,!1,this.processPointerUp)},e.prototype.processPointerUp=function(t,e,r){var i=t.data,n=t.data.identifier,o=e.trackedPointers[n],s="touch"===i.pointerType,a="mouse"===i.pointerType||"pen"===i.pointerType,h=!1;if(a){var u=2===i.button,l=it.FLAGS,c=u?l.RIGHT_DOWN:l.LEFT_DOWN,p=void 0!==o&&o.flags&c;r?(this.dispatchEvent(e,u?"rightup":"mouseup",t),p&&(this.dispatchEvent(e,u?"rightclick":"click",t),h=!0)):p&&this.dispatchEvent(e,u?"rightupoutside":"mouseupoutside",t),o&&(u?o.rightDown=!1:o.leftDown=!1)}r?(this.dispatchEvent(e,"pointerup",t),s&&this.dispatchEvent(e,"touchend",t),o&&(a&&!h||this.dispatchEvent(e,"pointertap",t),s&&(this.dispatchEvent(e,"tap",t),o.over=!1))):o&&(this.dispatchEvent(e,"pointerupoutside",t),s&&this.dispatchEvent(e,"touchendoutside",t)),o&&o.none&&delete e.trackedPointers[n]},e.prototype.onPointerMove=function(t){if(!this.supportsTouchEvents||"touch"!==t.pointerType){var e=this.normalizeToPointerData(t);"mouse"!==e[0].pointerType&&"pen"!==e[0].pointerType||(this._didMove=!0,this.cursor=null);for(var r=e.length,i=0;i<r;i++){var n=e[i],o=this.getInteractionDataForPointerId(n),s=this.configureInteractionEventForDOMEvent(this.eventData,n,o);s.data.originalEvent=t,this.processInteractive(s,this.lastObjectRendered,this.processPointerMove,!0),this.emit("pointermove",s),"touch"===n.pointerType&&this.emit("touchmove",s),"mouse"!==n.pointerType&&"pen"!==n.pointerType||this.emit("mousemove",s)}"mouse"===e[0].pointerType&&this.setCursorMode(this.cursor)}},e.prototype.processPointerMove=function(t,e,r){var i=t.data,n="touch"===i.pointerType,o="mouse"===i.pointerType||"pen"===i.pointerType;o&&this.processPointerOverOut(t,e,r),this.moveWhenInside&&!r||(this.dispatchEvent(e,"pointermove",t),n&&this.dispatchEvent(e,"touchmove",t),o&&this.dispatchEvent(e,"mousemove",t))},e.prototype.onPointerOut=function(t){if(!this.supportsTouchEvents||"touch"!==t.pointerType){var e=this.normalizeToPointerData(t)[0];"mouse"===e.pointerType&&(this.mouseOverRenderer=!1,this.setCursorMode(null));var r=this.getInteractionDataForPointerId(e),i=this.configureInteractionEventForDOMEvent(this.eventData,e,r);i.data.originalEvent=e,this.processInteractive(i,this.lastObjectRendered,this.processPointerOverOut,!1),this.emit("pointerout",i),"mouse"===e.pointerType||"pen"===e.pointerType?this.emit("mouseout",i):this.releaseInteractionDataForPointerId(r.identifier)}},e.prototype.processPointerOverOut=function(t,e,r){var i=t.data,n=t.data.identifier,o="mouse"===i.pointerType||"pen"===i.pointerType,s=e.trackedPointers[n];r&&!s&&(s=e.trackedPointers[n]=new it(n)),void 0!==s&&(r&&this.mouseOverRenderer?(s.over||(s.over=!0,this.delayDispatchEvent(e,"pointerover",t),o&&this.delayDispatchEvent(e,"mouseover",t)),o&&null===this.cursor&&(this.cursor=e.cursor)):s.over&&(s.over=!1,this.dispatchEvent(e,"pointerout",this.eventData),o&&this.dispatchEvent(e,"mouseout",t),s.none&&delete e.trackedPointers[n]))},e.prototype.onPointerOver=function(t){var e=this.normalizeToPointerData(t)[0],r=this.getInteractionDataForPointerId(e),i=this.configureInteractionEventForDOMEvent(this.eventData,e,r);i.data.originalEvent=e,"mouse"===e.pointerType&&(this.mouseOverRenderer=!0),this.emit("pointerover",i),"mouse"!==e.pointerType&&"pen"!==e.pointerType||this.emit("mouseover",i)},e.prototype.getInteractionDataForPointerId=function(t){var e,r=t.pointerId;return 1===r||"mouse"===t.pointerType?e=this.mouse:this.activeInteractionData[r]?e=this.activeInteractionData[r]:((e=this.interactionDataPool.pop()||new tt).identifier=r,this.activeInteractionData[r]=e),e.copyEvent(t),e},e.prototype.releaseInteractionDataForPointerId=function(t){var e=this.activeInteractionData[t];e&&(delete this.activeInteractionData[t],e.reset(),this.interactionDataPool.push(e))},e.prototype.configureInteractionEventForDOMEvent=function(t,e,r){return t.data=r,this.mapPositionToPoint(r.global,e.clientX,e.clientY),"touch"===e.pointerType&&(e.globalX=r.global.x,e.globalY=r.global.y),r.originalEvent=e,t.reset(),t},e.prototype.normalizeToPointerData=function(t){var e=[];
1if(this.supportsTouchEvents&&t instanceof TouchEvent)for(var r=0,i=t.changedTouches.length;r<i;r++){var n=t.changedTouches[r];"undefined"===typeof n.button&&(n.button=t.touches.length?1:0),"undefined"===typeof n.buttons&&(n.buttons=t.touches.length?1:0),"undefined"===typeof n.isPrimary&&(n.isPrimary=1===t.touches.length&&"touchstart"===t.type),"undefined"===typeof n.width&&(n.width=n.radiusX||1),"undefined"===typeof n.height&&(n.height=n.radiusY||1),"undefined"===typeof n.tiltX&&(n.tiltX=0),"undefined"===typeof n.tiltY&&(n.tiltY=0),"undefined"===typeof n.pointerType&&(n.pointerType="touch"),"undefined"===typeof n.pointerId&&(n.pointerId=n.identifier||0),"undefined"===typeof n.pressure&&(n.pressure=n.force||.5),"undefined"===typeof n.twist&&(n.twist=0),"undefined"===typeof n.tangentialPressure&&(n.tangentialPressure=0),"undefined"===typeof n.layerX&&(n.layerX=n.offsetX=n.clientX),"undefined"===typeof n.layerY&&(n.layerY=n.offsetY=n.clientY),n.isNormalized=!0,e.push(n)}else if(globalThis.MouseEvent&&(!(t instanceof MouseEvent)||this.supportsPointerEvents&&t instanceof globalThis.PointerEvent))e.push(t);else{var o=t;"undefined"===typeof o.isPrimary&&(o.isPrimary=!0),"undefined"===typeof o.width&&(o.width=1),"undefined"===typeof o.height&&(o.height=1),"undefined"===typeof o.tiltX&&(o.tiltX=0),"undefined"===typeof o.tiltY&&(o.tiltY=0),"undefined"===typeof o.pointerType&&(o.pointerType="mouse"),"undefined"===typeof o.pointerId&&(o.pointerId=1),"undefined"===typeof o.pressure&&(o.pressure=.5),"undefined"===typeof o.twist&&(o.twist=0),"undefined"===typeof o.tangentialPressure&&(o.tangentialPressure=0),o.isNormalized=!0,e.push(o)}return e},e.prototype.destroy=function(){this.removeEvents(),this.removeTickerListener(),this.removeAllListeners(),this.renderer=null,this.mouse=null,this.eventData=null,this.interactionDOMElement=null,this.onPointerDown=null,this.processPointerDown=null,this.onPointerUp=null,this.processPointerUp=null,this.onPointerCancel=null,this.processPointerCancel=null,this.onPointerMove=null,this.processPointerMove=null,this.onPointerOut=null,this.processPointerOverOut=null,this.onPointerOver=null,this.search=null},e}(x.EventEmitter),ht=r(2038),ut=function(){function t(e){var r=this;this.stage=new $,e=Object.assign({forceCanvas:!1},e),this.renderer=(0,ht.e6)(e),t._plugins.forEach((function(t){t.init.call(r,e)}))}return t.registerPlugin=function(e){t._plugins.push(e)},t.prototype.render=function(){this.renderer.render(this.stage)},Object.defineProperty(t.prototype,"view",{get:function(){return this.renderer.view},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"screen",{get:function(){return this.renderer.screen},enumerable:!1,configurable:!0}),t.prototype.destroy=function(e,r){var i=this,n=t._plugins.slice(0);n.reverse(),n.forEach((function(t){t.destroy.call(i)})),this.stage.destroy(r),this.stage=null,this.renderer.destroy(e),this.renderer=null},t._plugins=[],t}(),lt=function(){function t(){}return t.init=function(t){var e=this;Object.defineProperty(this,"resizeTo",{set:function(t){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=t,t&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get:function(){return this._resizeTo}}),this.queueResize=function(){e._resizeTo&&(e.cancelResize(),e._resizeId=requestAnimationFrame((function(){return e.resize()})))},this.cancelResize=function(){e._resizeId&&(cancelAnimationFrame(e._resizeId),e._resizeId=null)},this.resize=function(){if(e._resizeTo){var t,r;if(e.cancelResize(),e._resizeTo===globalThis.window)t=globalThis.innerWidth,r=globalThis.innerHeight;else{var i=e._resizeTo;t=i.clientWidth,r=i.clientHeight}e.renderer.resize(t,r)}},this._resizeId=null,this._resizeTo=null,this.resizeTo=t.resizeTo||null},t.destroy=function(){globalThis.removeEventListener("resize",this.queueResize),this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null},t}();ut.registerPlugin(lt);var ct=new A.Ae,pt=function(){function t(t){this.renderer=t}return t.prototype.image=function(t,e,r){var i=new Image;return i.src=this.base64(t,e,r),i},t.prototype.base64=function(t,e,r){return this.canvas(t).toDataURL(e,r)},t.prototype.canvas=function(e){var r,i,n,o=this.renderer,s=!1,a=!1;e&&(e instanceof ht.TI?n=e:(n=this.renderer.generateTexture(e),a=!0)),n?(r=n.baseTexture.resolution,i=n.frame,s=!1,o.renderTexture.bind(n)):(r=this.renderer.resolution,s=!0,(i=ct).width=this.renderer.width,i.height=this.renderer.height,o.renderTexture.bind(null));var h=Math.floor(i.width*r+1e-4),u=Math.floor(i.height*r+1e-4),l=new x.CanvasRenderTarget(h,u,1),c=new Uint8Array(4*h*u),p=o.gl;
1p.readPixels(i.x*r,i.y*r,h,u,p.RGBA,p.UNSIGNED_BYTE,c);var f=l.context.getImageData(0,0,h,u);if(t.arrayPostDivide(c,f.data),l.context.putImageData(f,0,0),s){var d=new x.CanvasRenderTarget(l.width,l.height,1);d.context.scale(1,-1),d.context.drawImage(l.canvas,0,-u),l.destroy(),l=d}return a&&n.destroy(!0),l.canvas},t.prototype.pixels=function(e){var r,i,n,o=this.renderer,s=!1;e&&(e instanceof ht.TI?n=e:(n=this.renderer.generateTexture(e),s=!0)),n?(r=n.baseTexture.resolution,i=n.frame,o.renderTexture.bind(n)):(r=o.resolution,(i=ct).width=o.width,i.height=o.height,o.renderTexture.bind(null));var a=i.width*r,h=i.height*r,u=new Uint8Array(4*a*h),l=o.gl;return l.readPixels(i.x*r,i.y*r,a,h,l.RGBA,l.UNSIGNED_BYTE,u),s&&n.destroy(!0),t.arrayPostDivide(u,u),u},t.prototype.destroy=function(){this.renderer=null},t.arrayPostDivide=function(t,e){for(var r=0;r<t.length;r+=4){var i=e[r+3]=t[r+3];0!==i?(e[r]=Math.round(Math.min(255*t[r]/i,255)),e[r+1]=Math.round(Math.min(255*t[r+1]/i,255)),e[r+2]=Math.round(Math.min(255*t[r+2]/i,255))):(e[r]=t[r],e[r+1]=t[r+1],e[r+2]=t[r+2])}},t}(),ft=function(){function t(t,e,r){void 0===e&&(e=!1),this._fn=t,this._once=e,this._thisArg=r,this._next=this._prev=this._owner=null}return t.prototype.detach=function(){return null!==this._owner&&(this._owner.detach(this),!0)},t}();function dt(t,e){return t._head?(t._tail._next=e,e._prev=t._tail,t._tail=e):(t._head=e,t._tail=e),e._owner=t,e}var _t,gt=function(){function t(){this._head=this._tail=void 0}return t.prototype.handlers=function(t){void 0===t&&(t=!1);var e=this._head;if(t)return!!e;for(var r=[];e;)r.push(e),e=e._next;return r},t.prototype.has=function(t){if(!(t instanceof ft))throw new Error("MiniSignal#has(): First arg must be a SignalBinding object.");return t._owner===this},t.prototype.dispatch=function(){for(var t=arguments,e=[],r=0;r<arguments.length;r++)e[r]=t[r];var i=this._head;if(!i)return!1;for(;i;)i._once&&this.detach(i),i._fn.apply(i._thisArg,e),i=i._next;return!0},t.prototype.add=function(t,e){if(void 0===e&&(e=null),"function"!==typeof t)throw new Error("MiniSignal#add(): First arg must be a Function.");return dt(this,new ft(t,!1,e))},t.prototype.once=function(t,e){if(void 0===e&&(e=null),"function"!==typeof t)throw new Error("MiniSignal#once(): First arg must be a Function.");return dt(this,new ft(t,!0,e))},t.prototype.detach=function(t){if(!(t instanceof ft))throw new Error("MiniSignal#detach(): First arg must be a SignalBinding object.");return t._owner!==this||(t._prev&&(t._prev._next=t._next),t._next&&(t._next._prev=t._prev),t===this._head?(this._head=t._next,null===t._next&&(this._tail=null)):t===this._tail&&(this._tail=t._prev,this._tail._next=null),t._owner=null),this},t.prototype.detachAll=function(){var t=this._head;if(!t)return this;for(this._head=this._tail=null;t;)t._owner=null,t=t._next;return this},t}();function vt(t,e){e=e||{};for(var r={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*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},i=r.parser[e.strictMode?"strict":"loose"].exec(t),n={},o=14;o--;)n[r.key[o]]=i[o]||"";return n[r.q.name]={},n[r.key[12]].replace(r.q.parser,(function(t,e,i){e&&(n[r.q.name][e]=i)})),n}var mt=null;function yt(){}function Tt(t,e,r){e&&0===e.indexOf(".")&&(e=e.substring(1)),e&&(t[e]=r)}function Et(t){return t.toString().replace("object ","")}var bt=function(){function t(e,r,i){if(this._dequeue=yt,this._onLoadBinding=null,this._elementTimer=0,this._boundComplete=null,this._boundOnError=null,this._boundOnProgress=null,this._boundOnTimeout=null,this._boundXhrOnError=null,this._boundXhrOnTimeout=null,this._boundXhrOnAbort=null,this._boundXhrOnLoad=null,"
1string"!==typeof e||"string"!==typeof r)throw new Error("Both name and url are required for constructing a resource.");i=i||{},this._flags=0,this._setFlag(t.STATUS_FLAGS.DATA_URL,0===r.indexOf("data:")),this.name=e,this.url=r,this.extension=this._getExtension(),this.data=null,this.crossOrigin=!0===i.crossOrigin?"anonymous":i.crossOrigin,this.timeout=i.timeout||0,this.loadType=i.loadType||this._determineLoadType(),this.xhrType=i.xhrType,this.metadata=i.metadata||{},this.error=null,this.xhr=null,this.children=[],this.type=t.TYPE.UNKNOWN,this.progressChunk=0,this._dequeue=yt,this._onLoadBinding=null,this._elementTimer=0,this._boundComplete=this.complete.bind(this),this._boundOnError=this._onError.bind(this),this._boundOnProgress=this._onProgress.bind(this),this._boundOnTimeout=this._onTimeout.bind(this),this._boundXhrOnError=this._xhrOnError.bind(this),this._boundXhrOnTimeout=this._xhrOnTimeout.bind(this),this._boundXhrOnAbort=this._xhrOnAbort.bind(this),this._boundXhrOnLoad=this._xhrOnLoad.bind(this),this.onStart=new gt,this.onProgress=new gt,this.onComplete=new gt,this.onAfterMiddleware=new gt}return t.setExtensionLoadType=function(e,r){Tt(t._loadTypeMap,e,r)},t.setExtensionXhrType=function(e,r){Tt(t._xhrTypeMap,e,r)},Object.defineProperty(t.prototype,"isDataUrl",{get:function(){return this._hasFlag(t.STATUS_FLAGS.DATA_URL)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isComplete",{get:function(){return this._hasFlag(t.STATUS_FLAGS.COMPLETE)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLoading",{get:function(){return this._hasFlag(t.STATUS_FLAGS.LOADING)},enumerable:!1,configurable:!0}),t.prototype.complete=function(){this._clearEvents(),this._finish()},t.prototype.abort=function(e){if(!this.error){if(this.error=new Error(e),this._clearEvents(),this.xhr)this.xhr.abort();else if(this.xdr)this.xdr.abort();else if(this.data)if(this.data.src)this.data.src=t.EMPTY_GIF;else for(;this.data.firstChild;)this.data.removeChild(this.data.firstChild);this._finish()}},t.prototype.load=function(e){var r=this;if(!this.isLoading)if(this.isComplete)e&&setTimeout((function(){return e(r)}),1);else switch(e&&this.onComplete.once(e),this._setFlag(t.STATUS_FLAGS.LOADING,!0),this.onStart.dispatch(this),!1!==this.crossOrigin&&"string"===typeof this.crossOrigin||(this.crossOrigin=this._determineCrossOrigin(this.url)),this.loadType){case t.LOAD_TYPE.IMAGE:this.type=t.TYPE.IMAGE,this._loadElement("image");break;case t.LOAD_TYPE.AUDIO:this.type=t.TYPE.AUDIO,this._loadSourceElement("audio");break;case t.LOAD_TYPE.VIDEO:this.type=t.TYPE.VIDEO,this._loadSourceElement("video");break;case t.LOAD_TYPE.XHR:default:"undefined"===typeof _t&&(_t=!(!globalThis.XDomainRequest||"withCredentials"in new XMLHttpRequest)),_t&&this.crossOrigin?this._loadXdr():this._loadXhr()}},t.prototype._hasFlag=function(t){return 0!==(this._flags&t)},t.prototype._setFlag=function(t,e){this._flags=e?this._flags|t:this._flags&~t},t.prototype._clearEvents=function(){clearTimeout(this._elementTimer),this.data&&this.data.removeEventListener&&(this.data.removeEventListener("error",this._boundOnError,!1),this.data.removeEventListener("load",this._boundComplete,!1),this.data.removeEventListener("progress",this._boundOnProgress,!1),this.data.removeEventListener("canplaythrough",this._boundComplete,!1)),this.xhr&&(this.xhr.removeEventListener?(this.xhr.removeEventListener("error",this._boundXhrOnError,!1),this.xhr.removeEventListener("timeout",this._boundXhrOnTimeout,!1),this.xhr.removeEventListener("abort",this._boundXhrOnAbort,!1),this.xhr.removeEventListener("progress",this._boundOnProgress,!1),this.xhr.removeEventListener("load",this._boundXhrOnLoad,!1)):(this.xhr.onerror=null,this.xhr.ontimeout=null,this.xhr.onprogress=null,this.xhr.onload=null))},t.prototype._finish=function(){if(this.isComplete)throw new Error("Complete called again for an already completed resource.");this._setFlag(t.STATUS_FLAGS.COMPLETE,!0),this._setFlag(t.STATUS_FLAGS.LOADING,!1),this.onComplete.dispatch(this)},t.prototype._loadElement=function(t){this.metadata.loadElement?this.data=this.metadata.loadElement:"image"===t&&"undefined"!==typeof globalThis.Image?this.data=new Image:this.data=document.createElement(t),this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.metadata.skipSource||(this.data.src=this.url),this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))},t.prototype._loadSourceElement=function(t){if(this.metadata.loadElement?this.data=this.metadata.loadElement:"audio"===t&&"undefined"!==typeof globalThis.Audio?this.data=new Audio:this.data=document.createElement(t),null!==this.data){if(this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),!this.metadata.skipSource)if(navigator.isCocoonJS)this.data.src=Array.isArray(this.url)?this.url[0]:this.url;else if(Array.isArray(this.url))for(var e=this.metadata.mimeType,r=0;r<this.url.length;++r)this.data.appendChild(this._createSource(t,this.url[r],Array.isArray(e)?e[r]:e));else{e=this.metadata.mimeType;this.data.appendChild(this._createSource(t,this.url,Array.isArray(e)?e[0]:e))}this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.data.addEventListener("canplaythrough",this._boundComplete,!1),this.data.load(),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))}else this.abort("Unsupported element: "+t)},t.prototype._loadXhr=function(){"string"!==typeof this.xhrType&&(this.xhrType=this._determineXhrType());var e=this.xhr=new XMLHttpRequest;"use-credentials"===this.crossOrigin&&(e.withCredentials=!0),e.open("GET",this.url,!0),e.timeout=this.timeout,this.xhrType===t.XHR_RESPONSE_TYPE.JSON||this.xhrType===t.XHR_RESPONSE_TYPE.DOCUMENT?e.responseType=t.XHR_RESPONSE_TYPE.TEXT:e.responseType=this.xhrType,e.addEventListener("error",this._boundXhrOnError,!1),e.addEventListener("timeout",this._boundXhrOnTimeout,!1),e.addEventListener("abort",this._boundXhrOnAbort,!1),e.addEventListener("progress",this._boundOnProgress,!1),e.addEventListener("load",this._boundXhrOnLoad,!1),e.send()},t.prototype._loadXdr=function(){"string"!==typeof this.xhrType&&(this.xhrType=this._determineXhrType());var t=this.xhr=new globalThis.XDomainRequest;t.timeout=this.timeout||5e3,t.onerror=this._boundXhrOnError,t.ontimeout=this._boundXhrOnTimeout,t.onprogress=this._boundOnProgress,t.onload=this._boundXhrOnLoad,t.open("GET",this.url,!0),setTimeout((function(){return t.send()}),1)},t.prototype._createSource=function(t,e,r){r||(r=t+"/"+this._getExtension(e));var i=document.createElement("source");return i.src=e,i.type=r,i},t.prototype._onError=function(t){this.abort("Failed to load element using: "+t.target.nodeName)},t.prototype._onProgress=function(t){t&&t.lengthComputable&&this.onProgress.dispatch(this,t.loaded/t.total)}
1,t.prototype._onTimeout=function(){this.abort("Load timed out.")},t.prototype._xhrOnError=function(){var t=this.xhr;this.abort(Et(t)+" Request failed. Status: "+t.status+', text: "'+t.statusText+'"')},t.prototype._xhrOnTimeout=function(){var t=this.xhr;this.abort(Et(t)+" Request timed out.")},t.prototype._xhrOnAbort=function(){var t=this.xhr;this.abort(Et(t)+" Request was aborted by the user.")},t.prototype._xhrOnLoad=function(){var e=this.xhr,r="",i="undefined"===typeof e.status?200:e.status;if(""!==e.responseType&&"text"!==e.responseType&&"undefined"!==typeof e.responseType||(r=e.responseText),0===i&&(r.length>0||e.responseType===t.XHR_RESPONSE_TYPE.BUFFER)?i=200:1223===i&&(i=204),2===(i/100|0)){if(this.xhrType===t.XHR_RESPONSE_TYPE.TEXT)this.data=r,this.type=t.TYPE.TEXT;else if(this.xhrType===t.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(r),this.type=t.TYPE.JSON}catch(s){return void this.abort("Error trying to parse loaded json: "+s)}else if(this.xhrType===t.XHR_RESPONSE_TYPE.DOCUMENT)try{if(globalThis.DOMParser){var n=new DOMParser;this.data=n.parseFromString(r,"text/xml")}else{var o=document.createElement("div");o.innerHTML=r,this.data=o}this.type=t.TYPE.XML}catch(a){return void this.abort("Error trying to parse loaded xml: "+a)}else this.data=e.response||r;this.complete()}else this.abort("["+e.status+"] "+e.statusText+": "+e.responseURL)},t.prototype._determineCrossOrigin=function(t,e){if(0===t.indexOf("data:"))return"";if(globalThis.origin!==globalThis.location.origin)return"anonymous";e=e||globalThis.location,mt||(mt=document.createElement("a")),mt.href=t;var r=vt(mt.href,{strictMode:!0}),i=!r.port&&""===e.port||r.port===e.port,n=r.protocol?r.protocol+":":"";return r.host===e.hostname&&i&&n===e.protocol?"":"anonymous"},t.prototype._determineXhrType=function(){return t._xhrTypeMap[this.extension]||t.XHR_RESPONSE_TYPE.TEXT},t.prototype._determineLoadType=function(){return t._loadTypeMap[this.extension]||t.LOAD_TYPE.XHR},t.prototype._getExtension=function(t){void 0===t&&(t=this.url);var e="";if(this.isDataUrl){var r=t.indexOf("/");e=t.substring(r+1,t.indexOf(";",r))}else{var i=t.indexOf("?"),n=t.indexOf("#"),o=Math.min(i>-1?i:t.length,n>-1?n:t.length);e=(t=t.substring(0,o)).substring(t.lastIndexOf(".")+1)}return e.toLowerCase()},t.prototype._getMimeFromXhrType=function(e){switch(e){case t.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case t.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case t.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case t.XHR_RESPONSE_TYPE.JSON:return"application/json";case t.XHR_RESPONSE_TYPE.DEFAULT:case t.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},t}();function xt(){}function Rt(t){return function(){for(var e=arguments,r=[],i=0;i<arguments.length;i++)r[i]=e[i];if(null===t)throw new Error("Callback was already called.");var n=t;t=null,n.apply(this,r)}}!function(t){var e,r,i,n;(e=t.STATUS_FLAGS||(t.STATUS_FLAGS={}))[e.NONE=0]="NONE",e[e.DATA_URL=1]="DATA_URL",e[e.COMPLETE=2]="COMPLETE",e[e.LOADING=4]="LOADING",(r=t.TYPE||(t.TYPE={}))[r.UNKNOWN=0]="UNKNOWN",r[r.JSON=1]="JSON",r[r.XML=2]="XML",r[r.IMAGE=3]="IMAGE",r[r.AUDIO=4]="AUDIO",r[r.VIDEO=5]="VIDEO",r[r.TEXT=6]="TEXT",(i=t.LOAD_TYPE||(t.LOAD_TYPE={}))[i.XHR=1]="XHR",i[i.IMAGE=2]="IMAGE",i[i.AUDIO=3]="AUDIO",i[i.VIDEO=4]="VIDEO",(n=t.XHR_RESPONSE_TYPE||(t.XHR_RESPONSE_TYPE={})).DEFAULT="text",n.BUFFER="arraybuffer",n.BLOB="blob",n.DOCUMENT="document",n.JSON="json",n.TEXT="text",t._loadTypeMap={gif:t.LOAD_TYPE.IMAGE,png:t.LOAD_TYPE.IMAGE,bmp:t.LOAD_TYPE.IMAGE,jpg:t.LOAD_TYPE.IMAGE,jpeg:t.LOAD_TYPE.IMAGE,tif:t.LOAD_TYPE.IMAGE,tiff:t.LOAD_TYPE.IMAGE,webp:t.LOAD_TYPE.IMAGE,tga:t.LOAD_TYPE.IMAGE,svg:t.LOAD_TYPE.IMAGE,"svg+xml":t.LOAD_TYPE.IMAGE,mp3:t.LOAD_TYPE.AUDIO,ogg:t.LOAD_TYPE.AUDIO,wav:t.LOAD_TYPE.AUDIO,mp4:t.LOAD_TYPE.VIDEO,webm:t.LOAD_TYPE.VIDEO},t._xhrTypeMap={xhtml:t.XHR_RESPONSE_TYPE.DOCUMENT,html:t.XHR_RESPONSE_TYPE.DOCUMENT,htm:t.XHR_RESPONSE_TYPE.DOCUMENT,xml:t.XHR_RESPONSE_TYPE.DOCUMENT,tmx:t.XHR_RESPONSE_TYPE.DOCUMENT,svg:t.XHR_RESPONSE_TYPE.DOCUMENT,tsx:t.XHR_RESPONSE_TYPE.DOCUMENT,gif:t.XHR_RESPONSE_TYPE.BLOB,png:t.XHR_RESPONSE_TYPE.BLOB,bmp:t.XHR_RESPONSE_TYPE.BLOB,jpg:t.XHR_RESPONSE_TYPE.BLOB,jpeg:t.XHR_RESPONSE_TYPE.BLOB,tif:t.XHR_RESPONSE_TYPE.BLOB,tiff:t.XHR_RESPONSE_TYPE.BLOB,webp:t.XHR_RESPONSE_TYPE.BLOB,tga:t.XHR_RESPONSE_TYPE.BLOB,json:t.XHR_RESPONSE_TYPE.JSON,text:t.XHR_RESPONSE_TYPE.TEXT,txt:t.XHR_RESPONSE_TYPE.TEXT,ttf:t.XHR_RESPONSE_TYPE.BUFFER,otf:t.XHR_RESPONSE_TYPE.BUFFER},t.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="}(bt||(bt={}));var At=function(t,e){this.data=t,this.callback=e},Ot=function(){function t(t,e){var r=this;if(void 0===e&&(e=1),this.workers=0,this.saturated=xt,this.unsaturated=xt,this.empty=xt,this.drain=xt,this.error=xt,this.started=!1,this.paused=!1,this._tasks=[],this._insert=function(t,e,
1i){if(i&&"function"!==typeof i)throw new Error("task callback must be a function");if(r.started=!0,null==t&&r.idle())setTimeout((function(){return r.drain()}),1);else{var n=new At(t,"function"===typeof i?i:xt);e?r._tasks.unshift(n):r._tasks.push(n),setTimeout(r.process,1)}},this.process=function(){for(;!r.paused&&r.workers<r.concurrency&&r._tasks.length;){var t=r._tasks.shift();0===r._tasks.length&&r.empty(),r.workers+=1,r.workers===r.concurrency&&r.saturated(),r._worker(t.data,Rt(r._next(t)))}},this._worker=t,0===e)throw new Error("Concurrency must not be zero");this.concurrency=e,this.buffer=e/4}return t.prototype._next=function(t){var e=this;return function(){for(var r=arguments,i=[],n=0;n<arguments.length;n++)i[n]=r[n];e.workers-=1,t.callback.apply(t,i),null!=i[0]&&e.error(i[0],t.data),e.workers<=e.concurrency-e.buffer&&e.unsaturated(),e.idle()&&e.drain(),e.process()}},t.prototype.push=function(t,e){this._insert(t,!1,e)},t.prototype.kill=function(){this.workers=0,this.drain=xt,this.started=!1,this._tasks=[]},t.prototype.unshift=function(t,e){this._insert(t,!0,e)},t.prototype.length=function(){return this._tasks.length},t.prototype.running=function(){return this.workers},t.prototype.idle=function(){return this._tasks.length+this.workers===0},t.prototype.pause=function(){!0!==this.paused&&(this.paused=!0)},t.prototype.resume=function(){if(!1!==this.paused){this.paused=!1;for(var t=1;t<=this.concurrency;t++)this.process()}},t.eachSeries=function(t,e,r,i){var n=0,o=t.length;!function s(a){a||n===o?r&&r(a):i?setTimeout((function(){e(t[n++],s)}),1):e(t[n++],s)}()},t.queue=function(e,r){return new t(e,r)},t}(),St=/(#[\w-]+)?$/,It=function(){function t(e,r){var i=this;void 0===e&&(e=""),void 0===r&&(r=10),this.progress=0,this.loading=!1,this.defaultQueryString="",this._beforeMiddleware=[],this._afterMiddleware=[],this._resourcesParsing=[],this._boundLoadResource=function(t,e){return i._loadResource(t,e)},this.resources={},this.baseUrl=e,this._beforeMiddleware=[],this._afterMiddleware=[],this._resourcesParsing=[],this._boundLoadResource=function(t,e){return i._loadResource(t,e)},this._queue=Ot.queue(this._boundLoadResource,r),this._queue.pause(),this.resources={},this.onProgress=new gt,this.onError=new gt,this.onLoad=new gt,this.onStart=new gt,this.onComplete=new gt;for(var n=0;n<t._plugins.length;++n){var o=t._plugins[n],s=o.pre,a=o.use;s&&this.pre(s),a&&this.use(a)}this._protected=!1}return t.prototype._add=function(t,e,r,i){if(this.loading&&(!r||!r.parentResource))throw new Error("Cannot add resources while the loader is running.");if(this.resources[t])throw new Error('Resource named "'+t+'" already exists.');if(e=this._prepareUrl(e),this.resources[t]=new bt(t,e,r),"function"===typeof i&&this.resources[t].onAfterMiddleware.once(i),this.loading){for(var n=r.parentResource,o=[],s=0;s<n.children.length;++s)n.children[s].isComplete||o.push(n.children[s]);var a=n.progressChunk*(o.length+1)/(o.length+2);n.children.push(this.resources[t]),n.progressChunk=a;for(s=0;s<o.length;++s)o[s].progressChunk=a;this.resources[t].progressChunk=a}return this._queue.push(this.resources[t]),this},t.prototype.pre=function(t){return this._beforeMiddleware.push(t),this},t.prototype.use=function(t){return this._afterMiddleware.push(t),this},t.prototype.reset=function(){for(var t in this.progress=0,this.loading=!1,this._queue.kill(),this._queue.pause(),this.resources){var e=this.resources[t];e._onLoadBinding&&e._onLoadBinding.detach(),e.isLoading&&e.abort("loader reset")}return this.resources={},this},t.prototype.load=function(t){if("function"===typeof t&&this.onComplete.once(t),this.loading)return this;if(this._queue.idle())this._onStart(),this._onComplete();else{for(var e=100/this._queue._tasks.length,r=0;r<this._queue._tasks.length;++r)this._queue._tasks[r].data.progressChunk=e;this._onStart(),this._queue.resume()}return this},Object.defineProperty(t.prototype,"concurrency",{get:function(){return this._queue.concurrency}
1,set:function(t){this._queue.concurrency=t},enumerable:!1,configurable:!0}),t.prototype._prepareUrl=function(t){var e,r=vt(t,{strictMode:!0});if(e=r.protocol||!r.path||0===t.indexOf("//")?t:this.baseUrl.length&&this.baseUrl.lastIndexOf("/")!==this.baseUrl.length-1&&"/"!==t.charAt(0)?this.baseUrl+"/"+t:this.baseUrl+t,this.defaultQueryString){var i=St.exec(e)[0];-1!==(e=e.slice(0,e.length-i.length)).indexOf("?")?e+="&"+this.defaultQueryString:e+="?"+this.defaultQueryString,e+=i}return e},t.prototype._loadResource=function(t,e){var r=this;t._dequeue=e,Ot.eachSeries(this._beforeMiddleware,(function(e,i){e.call(r,t,(function(){i(t.isComplete?{}:null)}))}),(function(){t.isComplete?r._onLoad(t):(t._onLoadBinding=t.onComplete.once(r._onLoad,r),t.load())}),!0)},t.prototype._onStart=function(){this.progress=0,this.loading=!0,this.onStart.dispatch(this)},t.prototype._onComplete=function(){this.progress=100,this.loading=!1,this.onComplete.dispatch(this,this.resources)},t.prototype._onLoad=function(t){var e=this;t._onLoadBinding=null,this._resourcesParsing.push(t),t._dequeue(),Ot.eachSeries(this._afterMiddleware,(function(r,i){r.call(e,t,i)}),(function(){t.onAfterMiddleware.dispatch(t),e.progress=Math.min(100,e.progress+t.progressChunk),e.onProgress.dispatch(e,t),t.error?e.onError.dispatch(t.error,e,t):e.onLoad.dispatch(e,t),e._resourcesParsing.splice(e._resourcesParsing.indexOf(t),1),e._queue.idle()&&0===e._resourcesParsing.length&&e._onComplete()}),!0)},t.prototype.destroy=function(){this._protected||this.reset()},Object.defineProperty(t,"shared",{get:function(){var e=t._shared;return e||((e=new t)._protected=!0,t._shared=e),e},enumerable:!1,configurable:!0}),t.registerPlugin=function(e){return t._plugins.push(e),e.add&&e.add(),t},t._plugins=[],t}();It.prototype.add=function(t,e,r,i){if(Array.isArray(t)){for(var n=0;n<t.length;++n)this.add(t[n]);return this}if("object"===typeof t&&(r=t,i=e||r.callback||r.onComplete,e=r.url,t=r.name||r.key||r.url),"string"!==typeof e&&(i=r,r=e,e=t),"string"!==typeof e)throw new Error("No url passed to add resource to loader.");return"function"===typeof r&&(i=r,r=null),this._add(t,e,r,i)};var Pt=function(){function t(){}return t.init=function(t){t=Object.assign({sharedLoader:!1},t),this.loader=t.sharedLoader?It.shared:new It},t.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},t}(),Mt=function(){function t(){}return t.add=function(){bt.setExtensionLoadType("svg",bt.LOAD_TYPE.XHR),bt.setExtensionXhrType("svg",bt.XHR_RESPONSE_TYPE.TEXT)},t.use=function(t,e){if(!t.data||t.type!==bt.TYPE.IMAGE&&"svg"!==t.extension)e();else{var r=t.data,i=t.url,n=t.name,o=t.metadata;ht.xE.fromLoader(r,i,n,o).then((function(r){t.texture=r,e()})).catch(e)}},t}();It.registerPlugin({use:function(t,e){if(t.data){if(t.xhr&&t.xhrType===bt.XHR_RESPONSE_TYPE.BLOB)if(self.Blob&&"string"!==typeof t.data){if(0===t.data.type.indexOf("image")){var r=globalThis.URL||globalThis.webkitURL,i=r.createObjectURL(t.data);return t.blob=t.data,t.data=new Image,t.data.src=i,t.type=bt.TYPE.IMAGE,void(t.data.onload=function(){r.revokeObjectURL(i),t.data.onload=null,e()})}}else{var n=t.xhr.getResponseHeader("content-type");if(n&&0===n.indexOf("image"))return t.data=new Image,t.data.src="data:"+n+";base64,"+function(t){for(var e="",r=0;r<t.length;){for(var i=[0,0,0],n=[0,0,0,0],o=0;o<i.length;++o)r<t.length?i[o]=255&t.charCodeAt(r++):i[o]=0;switch(n[0]=i[0]>>2,n[1]=(3&i[0])<<4|i[1]>>4,n[2]=(15&i[1])<<2|i[2]>>6,n[3]=63&i[2],r-(t.length-1)){case 2:n[3]=64,n[2]=64;break;case 1:n[3]=64}for(o=0;o<n.length;++o)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(n[o])}return e}(t.xhr.responseText),t.type=bt.TYPE.IMAGE,void(t.data.onload=function(){t.data.onload=null,e()})}e()}else e()}}),It.registerPlugin(Mt);var Dt,Nt,wt=r(1680);!function(t){t[t.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT=35917]="COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT=35918]="COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT=35919]="COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT",t[t.COMPRESSED_SRGB_S3TC_DXT1_EXT=35916]="COMPRESSED_SRGB_S3TC_DXT1_EXT",t[t.COMPRESSED_R11_
1EAC=37488]="COMPRESSED_R11_EAC",t[t.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",t[t.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",t[t.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",t[t.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",t[t.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",t[t.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",t[t.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",t[t.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",t[t.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",t[t.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",t[t.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",t[t.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",t[t.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",t[t.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",t[t.COMPRESSED_RGB_ATC_WEBGL=35986]="COMPRESSED_RGB_ATC_WEBGL",t[t.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=35986]="COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",t[t.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=34798]="COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL"}(Nt||(Nt={}));var Ct=((Dt={})[Nt.COMPRESSED_RGB_S3TC_DXT1_EXT]=.5,Dt[Nt.COMPRESSED_RGBA_S3TC_DXT1_EXT]=.5,Dt[Nt.COMPRESSED_RGBA_S3TC_DXT3_EXT]=1,Dt[Nt.COMPRESSED_RGBA_S3TC_DXT5_EXT]=1,Dt[Nt.COMPRESSED_SRGB_S3TC_DXT1_EXT]=.5,Dt[Nt.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT]=.5,Dt[Nt.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT]=1,Dt[Nt.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT]=1,Dt[Nt.COMPRESSED_R11_EAC]=.5,Dt[Nt.COMPRESSED_SIGNED_R11_EAC]=.5,Dt[Nt.COMPRESSED_RG11_EAC]=1,Dt[Nt.COMPRESSED_SIGNED_RG11_EAC]=1,Dt[Nt.COMPRESSED_RGB8_ETC2]=.5,Dt[Nt.COMPRESSED_RGBA8_ETC2_EAC]=1,Dt[Nt.COMPRESSED_SRGB8_ETC2]=.5,Dt[Nt.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC]=1,Dt[Nt.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2]=.5,Dt[Nt.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2]=.5,Dt[Nt.COMPRESSED_RGB_PVRTC_4BPPV1_IMG]=.5,Dt[Nt.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG]=.5,Dt[Nt.COMPRESSED_RGB_PVRTC_2BPPV1_IMG]=.25,Dt[Nt.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG]=.25,Dt[Nt.COMPRESSED_RGB_ETC1_WEBGL]=.5,Dt[Nt.COMPRESSED_RGB_ATC_WEBGL]=.5,Dt[Nt.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL]=1,Dt[Nt.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL]=1,Dt),Lt=function(t,e){return Lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Lt(t,e)};function Ut(t,e){function r(){this.constructor=t}Lt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Gt(t,e){var r,i,n,o,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,i&&(n=2&o[0]?i.return:o[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;switch(i=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(n=(n=s.trys).length>0&&n[n.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]<n[3])){s.label=o[1];break}if(6===o[0]&&s.label<n[1]){s.label=n[1],n=o;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(o);break}n[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],i=0}finally{r=n=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}var Ft,Bt,Xt=function(t){function e(e,r){void 0===r&&(r={width:1,height:1,autoLoad:!0});var i,n,o=this;return"string"===typeof e?(i=e,n=new Uint8Array):(i=null,n=e),(o=t.call(this,n,r)||this).origin=i,o.buffer=n?new ht.Rv(n):null,o.origin&&!1!==r.autoLoad&&o.load(),n&&n.length&&(o.loaded=!0,o.onBlobLoaded(o.buffer.rawBinaryData)),o}return Ut(e,t),e.prototype.onBlobLoaded=function(t){},e.prototype.load=function(){return t=this,e=void 0,i=function(){var t;return Gt(this,(function(e){switch(e.label){case 0:return[4,fetch(this.origin)];case 1:return[4,e.sent().blob()];case 2:return[4,e.sent().arrayBuffer()];case 3:return t=e.sent(),this.data=new Uint32Array(t),this.buffer=new ht.Rv(t),this.loaded=!0,this.onBlobLoaded(t),this.update(),[2,this]}}))},new((r=Promise)||(r=Promise))((function(n,o){function s(t){try{h(i.next(t))}catch(e){o(e)}}function a(t){try{h(i.throw(t))}catch(e){o(e)}}function h(t){t.done?n(t.value):new r((function(e){e(t.value)})).then(s,a)}h((i=i.apply(t,e||[])).next())}));var t,e,r,i},e}(ht.qm),kt=function(t){function e(r,i){var n=t.call(this,r,i)||this;return n.format=i.format,n.levels=i.levels||1,n._width=i.width,n._height=i.height,n._extension=e._formatToExtension(n.format),(i.levelBuffers||n.buffer)&&(n._levelBuffers=i.levelBuffers||e._createLevelBuffers(r instanceof Uint8Array?r:n.buffer.uint8View,n.format,n.levels,4,4,n.width,n.height)),n}return Ut(e,t),e.prototype.upload=function(t,e,r){var i=t.gl;if(!t.context.extensions[this._extension])throw new Error(this._extension+" textures are not supported on the current machine");if(!this._levelBuffers)return!1;for(var n=0,o=this.levels;n<o;n++){var s=this._levelBuffers[n],a=s.levelID,h=s.levelWidth,u=s.levelHeight,l=s.levelBuffer;i.compressedTexImage2D(i.TEXTURE_2D,a,this.format,h,u,0,l)}return!0},e.prototype.onBlobLoaded=function(){this._levelBuffers=e._createLevelBuffers(this.buffer.uint8View,this.format,this.levels,4,4,this.width,this.height)},e._formatToExtension=function(t){if(t>=33776&&t<=33779)return"s3tc";if(t>=37488&&t<=37497)return"etc";if(t>=35840&&t<=35843)return"pvrtc";if(t>=36196)return"etc1";if(t>=35986&&t<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")},e._createLevelBuffers=function(t,e,r,i,n,o,s){for(var a=new Array(r),h=t.byteOffset,u=o,l=s,c=u+i-1&~(i-1),p=l+n-1&~(n-1),f=c*p*Ct[e],d=0;d<r;d++)a[d]={levelID:d,levelWidth:r>1?u:c,levelHeight:r>1?l:p,levelBuffer:new Uint8Array(t.buffer,h,f)},h+=f,f=(c=(u=u>>1||1)+i-1&~(i-1))*(p=(l=l>>1||1)+n-1&~(n-1))*Ct[e];return a},e}(Xt),Ht=function(){function t(){}return t.use=function(e,r){var i=e.data;if(e.type===bt.TYPE.JSON&&i&&i.cacheID&&i.textures){for(var n=i.textures,o=void 0,s=void 0,a=0,h=n.length;a<h;a++){var u=n[a],l=u.src,c=u.format;if(c||(s=l),t.textureFormats[c]){o=l;break}}if(!(o=o||s))return void r(new Error("Cannot load compressed-textures in "+e.url+", make sure you provide a fallback"));if(o===e.url)return void r(new Error("URL of compressed texture cannot be the same as the manifest's URL"));var p={crossOrigin:e.crossOrigin,metadata:e.metadata.imageMetadata,parentResource:e},f=x.url.resolve(e.url.replace(this.baseUrl,""),o),d=i.cacheID;this.add(d,f,p,(function(t){if(t.error)r(t.error);else{var i=t.texture,n=void 0===i?null:i,o=t.textures,s=void 0===o?{}:o;Object.assign(e,{texture:n,textures:s}),r()}}))}else r()},Object.defineProperty(t,"textureExtensions",{get:function(){if(!t._textureExtensions){var e=document.createElement("canvas").getContext("webgl");
1if(!e)return console.warn("WebGL not available for compressed textures. Silently failing."),{};var r={s3tc:e.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:e.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:e.getExtension("WEBGL_compressed_texture_etc"),etc1:e.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:e.getExtension("WEBGL_compressed_texture_atc"),astc:e.getExtension("WEBGL_compressed_texture_astc")};t._textureExtensions=r}return t._textureExtensions},enumerable:!1,configurable:!0}),Object.defineProperty(t,"textureFormats",{get:function(){if(!t._textureFormats){var e=t.textureExtensions;for(var r in t._textureFormats={},e){var i=e[r];i&&Object.assign(t._textureFormats,Object.getPrototypeOf(i))}}return t._textureFormats},enumerable:!1,configurable:!0}),t}();function Yt(t,e,r){var i={textures:{},texture:null};return e?(e.map((function(t){return new ht.xE(new ht.VL(t,Object.assign({mipmap:wt.WB.OFF,alphaMode:wt.iw.NO_PREMULTIPLIED_ALPHA},r)))})).forEach((function(e,r){var n=e.baseTexture,o=t+"-"+(r+1);ht.VL.addToCache(n,o),ht.xE.addToCache(e,o),0===r&&(ht.VL.addToCache(n,t),ht.xE.addToCache(e,t),i.texture=e),i.textures[o]=e})),i):i}bt.setExtensionXhrType("dds",bt.XHR_RESPONSE_TYPE.BUFFER);var jt,Vt,Wt=124,zt=3,qt=4,Kt=7,Zt=19,$t=2,Jt=0,Qt=1,te=2,ee=3;!function(t){t[t.DXGI_FORMAT_UNKNOWN=0]="DXGI_FORMAT_UNKNOWN",t[t.DXGI_FORMAT_R32G32B32A32_TYPELESS=1]="DXGI_FORMAT_R32G32B32A32_TYPELESS",t[t.DXGI_FORMAT_R32G32B32A32_FLOAT=2]="DXGI_FORMAT_R32G32B32A32_FLOAT",t[t.DXGI_FORMAT_R32G32B32A32_UINT=3]="DXGI_FORMAT_R32G32B32A32_UINT",t[t.DXGI_FORMAT_R32G32B32A32_SINT=4]="DXGI_FORMAT_R32G32B32A32_SINT",t[t.DXGI_FORMAT_R32G32B32_TYPELESS=5]="DXGI_FORMAT_R32G32B32_TYPELESS",t[t.DXGI_FORMAT_R32G32B32_FLOAT=6]="DXGI_FORMAT_R32G32B32_FLOAT",t[t.DXGI_FORMAT_R32G32B32_UINT=7]="DXGI_FORMAT_R32G32B32_UINT",t[t.DXGI_FORMAT_R32G32B32_SINT=8]="DXGI_FORMAT_R32G32B32_SINT",t[t.DXGI_FORMAT_R16G16B16A16_TYPELESS=9]="DXGI_FORMAT_R16G16B16A16_TYPELESS",t[t.DXGI_FORMAT_R16G16B16A16_FLOAT=10]="DXGI_FORMAT_R16G16B16A16_FLOAT",t[t.DXGI_FORMAT_R16G16B16A16_UNORM=11]="DXGI_FORMAT_R16G16B16A16_UNORM",t[t.DXGI_FORMAT_R16G16B16A16_UINT=12]="DXGI_FORMAT_R16G16B16A16_UINT",t[t.DXGI_FORMAT_R16G16B16A16_SNORM=13]="DXGI_FORMAT_R16G16B16A16_SNORM",t[t.DXGI_FORMAT_R16G16B16A16_SINT=14]="DXGI_FORMAT_R16G16B16A16_SINT",t[t.DXGI_FORMAT_R32G32_TYPELESS=15]="DXGI_FORMAT_R32G32_TYPELESS",t[t.DXGI_FORMAT_R32G32_FLOAT=16]="DXGI_FORMAT_R32G32_FLOAT",t[t.DXGI_FORMAT_R32G32_UINT=17]="DXGI_FORMAT_R32G32_UINT",t[t.DXGI_FORMAT_R32G32_SINT=18]="DXGI_FORMAT_R32G32_SINT",t[t.DXGI_FORMAT_R32G8X24_TYPELESS=19]="DXGI_FORMAT_R32G8X24_TYPELESS",t[t.DXGI_FORMAT_D32_FLOAT_S8X24_UINT=20]="DXGI_FORMAT_D32_FLOAT_S8X24_UINT",t[t.DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS=21]="DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS",t[t.DXGI_FORMAT_X32_TYPELESS_G8X24_UINT=22]="DXGI_FORMAT_X32_TYPELESS_G8X24_UINT",t[t.DXGI_FORMAT_R10G10B10A2_TYPELESS=23]="DXGI_FORMAT_R10G10B10A2_TYPELESS",t[t.DXGI_FORMAT_R10G10B10A2_UNORM=24]="DXGI_FORMAT_R10G10B10A2_UNORM",t[t.DXGI_FORMAT_R10G10B10A2_UINT=25]="DXGI_FORMAT_R10G10B10A2_UINT",t[t.DXGI_FORMAT_R11G11B10_FLOAT=26]="DXGI_FORMAT_R11G11B10_FLOAT",t[t.DXGI_FORMAT_R8G8B8A8_TYPELESS=27]="DXGI_FORMAT_R8G8B8A8_TYPELESS",t[t.DXGI_FORMAT_R8G8B8A8_UNORM=28]="DXGI_FORMAT_R8G8B8A8_UNORM",t[t.DXGI_FORMAT_R8G8B8A8_UNORM_SRGB=29]="DXGI_FORMAT_R8G8B8A8_UNORM_SRGB",t[t.DXGI_FORMAT_R8G8B8A8_UINT=30]="DXGI_FORMAT_R8G8B8A8_UINT",t[t.DXGI_FORMAT_R8G8B8A8_SNORM=31]="DXGI_FORMAT_R8G8B8A8_SNORM",t[t.DXGI_FORMAT_R8G8B8A8_SINT=32]="DXGI_FORMAT_R8G8B8A8_SINT",t[t.DXGI_FORMAT_R16G16_TYPELESS=33]="DXGI_FORMAT_R16G16_TYPELESS",t[t.DXGI_FORMAT_R16G16_FLOAT=34]="DXGI_FORMAT_R16G16_FLOAT",t[t.DXGI_FORMAT_R16G16_UNORM=35]="DXGI_FORMAT_R16G16_UNORM",t[t.DXGI_FORMAT_R16G16_UINT=36]="DXGI_FORMAT_R16G16_UINT",t[t.DXGI_FORMAT_R16G16_SNORM=37]="DXGI_FORMAT_R16G16_SNORM",t[t.DXGI_FORMAT_R16G16_SINT=38]="DXGI_FORMAT_R16G16_SINT",t[t.DXGI_FORMAT_R32_TYPELESS=39]="DXGI_FORMAT_R32_TYPELESS",t[t.DXGI_FORMAT_D32_FLOAT=40]="DXGI_FORMAT_D32_FLOAT",t[t.DXGI_FORMAT_R32_FLOAT=41]="DXGI_FORMAT_R32_FLOAT",t[t.DXGI_FORMAT_R32_UINT=42]="DXGI_FORMAT_R32_UINT",t[t.DXGI_FORMAT_R32_SINT=43]="DXGI_FORMAT_R32_SINT",t[t.DXGI_FORMAT_R24G8_TYPELESS=44]="DXGI_FORMAT_R24G8_TYPELESS",t[t.DXGI_FORMAT_D24_UNORM_S8_UINT=45]="DXGI_FORMAT_D24_UNORM_S8_UINT",t[t.DXGI_FORMAT_R24_UNORM_X8_TYPELESS=46]="DXGI_FORMAT_R24_UNORM_X8_TYPELESS",t[t.DXGI_FORMAT_X24_TYPELESS_G8_UINT=47]="DXGI_FORMAT_X24_TYPELESS_G8_UINT",t[t.DXGI_FORMAT_R8G8_TYPELESS=48]="DXGI_FORMAT_R8G8_TYPELESS",t[t.DXGI_FORMAT_R8G8_UNORM=49]="DXGI_FORMAT_R8G8_UNORM",t[t.DXGI_FORMAT_R8G8_UINT=50]="DXGI_FORMAT_R8G8_UINT",t[t.DXGI_FORMAT_R8G8_SNORM=51]="DXGI_FORMAT_R8G8_SNORM",t[t.DXGI_FORMAT_R8G8_SINT=52]="DXGI_FORMAT_R8G8_SINT",t[t.DXGI_FORMAT_R16_TYPELESS=53]="DXGI_FORMAT_R16_TYPELESS",t[t.DXGI_FORMAT_R16_FLOAT=54]="DXGI_FORMAT_R16_FLOAT",t[t.DXGI_FORMAT_D16_UNORM=55]="DXGI_FORMAT_D16_UNORM",t[t.DXGI_FORMAT_R16_UNORM=56]="DXGI_FORMAT_R16_UNORM",t[t.DXGI_FORMAT_R16_UINT=57]="DXGI_FORMAT_R16_UINT",t[t.DXGI_FORMAT_R16_SNORM=58]="DXGI_FORMAT_R16_SNORM",t[t.DXGI_FORMAT_R16_SINT=59]="DXGI_FORMAT_R16_SINT",t[t.DXGI_FORMAT_R8_TYPELESS=60]="DXGI_FORMAT_R8_TYPELESS",t[t.DXGI_FORMAT_R8_UNORM=61]="DXGI_FORMAT_R8_UNORM",t[t.DXGI_FORMAT_R8_UINT=62]="DXGI_FORMAT_R8_UINT",t[t.DXGI_FORMAT_R8_SNORM=63]="DXGI_FORMAT_R8_SNORM",t[t.DXGI_FORMAT_R8_SINT=64]="DXGI_FORMAT_R8_SINT",t[t.DXGI_FORMAT_A8_UNORM=65]="DXGI_FORMAT_A8_UNORM",t[t.DXGI_FORMAT_R1_UNORM=66]="DXGI_FORMAT_R1_UNORM",t[t.DXGI_FORMAT_R9G9B9E5_SHAREDEXP=67]="DXGI_FORMAT_R9G9B9E5_SHAREDEXP",t[t.DXGI_FORMAT_R8G8_B8G8_UNORM=68]="DXGI_FORMAT_R8G8_B8G8_UNORM",t[t.DXGI_FORMAT_G8R8_G8B8_UNORM=69]="DXGI_FORMAT_G8R8_G8B8_UNORM",t[t.DXGI_FORMAT_BC1_TYPELESS=70]="DXGI_FORMAT_BC1_TYPELESS",t[t.DXGI_FORMAT_BC1_UNORM=71]="DXGI_FORMAT_BC1_UNORM",t[t.DXGI_FORMAT_BC1_UNORM_SRGB=72]="DXGI_FORMAT_BC1_UNORM_SRGB",t[t.DXGI_FORMAT_BC2_TYPELESS=73]="DXGI_FORMAT_BC2_TYPELESS",t[t.DXGI_FORMAT_BC2_UNORM=74]="DXGI_FORMAT_BC2_UNORM",t[t.DXGI_FORMAT_BC2_UNORM_SRGB=75]="DXGI_FORMAT_BC2_UNORM_SRGB",t[t.DXGI_FORMAT_BC3_TYPELESS=76]="DXGI_FORMAT_BC3_TYPELESS",t[t.DXGI_FORMAT_BC3_UNORM=77]="DXGI_FORMAT_BC3_UNORM",t[t.DXGI_FORMAT_BC3_UNORM_SRGB=78]="DXGI_FORMAT_BC3_UNORM_SRGB",t[t.DXGI_FORMAT_BC4_TYPELESS=79]="DXGI_FORMAT_BC4_TYPELESS",t[t.DXGI_FORMAT_BC4_UNORM=80]="DXGI_FORMAT_BC4_UNORM",t[t.DXGI_FORMAT_BC4_SNORM=81]="DXGI_FORMAT_BC4_SNORM",t[t.DXGI_FORMAT_BC5_TYPELESS=82]="DXGI_FORMAT_BC5_TYPELESS",t[t.DXGI_FORMAT_BC5_UNORM=83]="DXGI_FORMAT_BC5_UNORM",t[t.DXGI_FORMAT_BC5_SNORM=84]="DXGI_FORMAT_BC5_SNORM",t[t.DXGI_FORMAT_B5G6R5_UNORM=85]="DXGI_FORMAT_B5G6R5_UNORM",t[t.DXGI_FORMAT_B5G5R5A1_UNORM=86]="DXGI_FORMAT_B5G5R5A1_UNORM",t[t.DXGI_FORMAT_B8G8R8A8_UNORM=87]="DXGI_FORMAT_B8G8R8A8_UNORM",t[t.DXGI_FORMAT_B8G8R8X8_UNORM=88]="DXGI_FORMAT_B8G8R8X8_UNORM",t[t.DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM=89]="DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM",t[t.DXGI_FORMAT_B8G8R8A8_TYPELESS=90]="DXGI_FORMAT_B8G8R8A8_TYPELESS",t[t.DXGI_FORMAT_B8G8R8A8_UNORM_SRGB=91]="DXGI_FORMAT_B8G8R8A8_UNORM_SRGB",t[t.DXGI_FORMAT_B8G8R8X8_TYPELESS=92]="DXGI_FORMAT_B8G8R8X8_TYPELESS",t[t.DXGI_FORMAT_B8G8R8X8_UNORM_SRGB=93]="DXGI_FORMAT_B8G8R8X8_UNORM_SRGB",t[t.DXGI_FORMAT_BC6H_TYPELESS=94]="DXGI_FORMAT_BC6H_TYPELESS",t[t.DXGI_FORMAT_BC6H_UF16=95]="DXGI_FORMAT_BC6H_UF16",t[t.DXGI_FORMAT_BC6H_SF16=96]="DXGI_FORMAT_BC6H_SF16",t[t.DXGI_FORMAT_BC7_TYPELESS=97]="DXGI_FORMAT_BC7_TYPELESS",t[t.DXGI_FORMAT_BC7_UNORM=98]="DXGI_FORMAT_BC7_UNORM",t[t.DXGI_FORMAT_BC7_UNORM_
1SRGB=99]="DXGI_FORMAT_BC7_UNORM_SRGB",t[t.DXGI_FORMAT_AYUV=100]="DXGI_FORMAT_AYUV",t[t.DXGI_FORMAT_Y410=101]="DXGI_FORMAT_Y410",t[t.DXGI_FORMAT_Y416=102]="DXGI_FORMAT_Y416",t[t.DXGI_FORMAT_NV12=103]="DXGI_FORMAT_NV12",t[t.DXGI_FORMAT_P010=104]="DXGI_FORMAT_P010",t[t.DXGI_FORMAT_P016=105]="DXGI_FORMAT_P016",t[t.DXGI_FORMAT_420_OPAQUE=106]="DXGI_FORMAT_420_OPAQUE",t[t.DXGI_FORMAT_YUY2=107]="DXGI_FORMAT_YUY2",t[t.DXGI_FORMAT_Y210=108]="DXGI_FORMAT_Y210",t[t.DXGI_FORMAT_Y216=109]="DXGI_FORMAT_Y216",t[t.DXGI_FORMAT_NV11=110]="DXGI_FORMAT_NV11",t[t.DXGI_FORMAT_AI44=111]="DXGI_FORMAT_AI44",t[t.DXGI_FORMAT_IA44=112]="DXGI_FORMAT_IA44",t[t.DXGI_FORMAT_P8=113]="DXGI_FORMAT_P8",t[t.DXGI_FORMAT_A8P8=114]="DXGI_FORMAT_A8P8",t[t.DXGI_FORMAT_B4G4R4A4_UNORM=115]="DXGI_FORMAT_B4G4R4A4_UNORM",t[t.DXGI_FORMAT_P208=116]="DXGI_FORMAT_P208",t[t.DXGI_FORMAT_V208=117]="DXGI_FORMAT_V208",t[t.DXGI_FORMAT_V408=118]="DXGI_FORMAT_V408",t[t.DXGI_FORMAT_SAMPLER_FEEDBACK_MIN_MIP_OPAQUE=119]="DXGI_FORMAT_SAMPLER_FEEDBACK_MIN_MIP_OPAQUE",t[t.DXGI_FORMAT_SAMPLER_FEEDBACK_MIP_REGION_USED_OPAQUE=120]="DXGI_FORMAT_SAMPLER_FEEDBACK_MIP_REGION_USED_OPAQUE",t[t.DXGI_FORMAT_FORCE_UINT=121]="DXGI_FORMAT_FORCE_UINT"}(jt||(jt={})),function(t){t[t.DDS_DIMENSION_TEXTURE1D=2]="DDS_DIMENSION_TEXTURE1D",t[t.DDS_DIMENSION_TEXTURE2D=3]="DDS_DIMENSION_TEXTURE2D",t[t.DDS_DIMENSION_TEXTURE3D=6]="DDS_DIMENSION_TEXTURE3D"}(Vt||(Vt={}));var re,ie,ne,oe=((Ft={})[827611204]=Nt.COMPRESSED_RGBA_S3TC_DXT1_EXT,Ft[861165636]=Nt.COMPRESSED_RGBA_S3TC_DXT3_EXT,Ft[894720068]=Nt.COMPRESSED_RGBA_S3TC_DXT5_EXT,Ft),se=((Bt={})[jt.DXGI_FORMAT_BC1_TYPELESS]=Nt.COMPRESSED_RGBA_S3TC_DXT1_EXT,Bt[jt.DXGI_FORMAT_BC1_UNORM]=Nt.COMPRESSED_RGBA_S3TC_DXT1_EXT,Bt[jt.DXGI_FORMAT_BC2_TYPELESS]=Nt.COMPRESSED_RGBA_S3TC_DXT3_EXT,Bt[jt.DXGI_FORMAT_BC2_UNORM]=Nt.COMPRESSED_RGBA_S3TC_DXT3_EXT,Bt[jt.DXGI_FORMAT_BC3_TYPELESS]=Nt.COMPRESSED_RGBA_S3TC_DXT5_EXT,Bt[jt.DXGI_FORMAT_BC3_UNORM]=Nt.COMPRESSED_RGBA_S3TC_DXT5_EXT,Bt[jt.DXGI_FORMAT_BC1_UNORM_SRGB]=Nt.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT,Bt[jt.DXGI_FORMAT_BC2_UNORM_SRGB]=Nt.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT,Bt[jt.DXGI_FORMAT_BC3_UNORM_SRGB]=Nt.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT,Bt),ae=function(){function t(){}return t.use=function(e,r){if("dds"===e.extension&&e.data)try{Object.assign(e,Yt(e.name||e.url,t.parse(e.data),e.metadata))}catch(i){return void r(i)}r()},t.parse=function(t){var e=new Uint32Array(t);if(542327876!==e[0])throw new Error("Invalid DDS file magic word");var r=new Uint32Array(t,0,Wt/Uint32Array.BYTES_PER_ELEMENT),i=r[zt],n=r[qt],o=r[Kt],s=new Uint32Array(t,Zt*Uint32Array.BYTES_PER_ELEMENT,32/Uint32Array.BYTES_PER_ELEMENT),a=s[1];if(4&a){var h=s[$t];if(808540228!==h){var u=oe[h],l=new Uint8Array(t,128);return[new kt(l,{format:u,width:n,height:i,levels:o})]}var c=new Uint32Array(e.buffer,128,20/Uint32Array.BYTES_PER_ELEMENT),p=c[Jt],f=c[Qt],d=c[te],_=c[ee],g=se[p];if(void 0===g)throw new Error("DDSLoader cannot parse texture data with DXGI format "+p);if(4===d)throw new Error("DDSLoader does not support cubemap textures");if(f===Vt.DDS_DIMENSION_TEXTURE3D)throw new Error("DDSLoader does not supported 3D texture data");var v=new Array;if(1===_)v.push(new Uint8Array(t,148));else{for(var m=Ct[g],y=0,T=n,E=i,b=0;b<o;b++){y+=Math.max(1,T+3&-4)*Math.max(1,E+3&-4)*m,T>>>=1,E>>>=1}var x=148;for(b=0;b<_;b++)v.push(new Uint8Array(t,x,y)),x+=y}return v.map((function(t){return new kt(t,{format:g,width:n,height:i,levels:o})}))}if(64&a)throw new Error("DDSLoader does not support uncompressed texture data.");if(512&a)throw new Error("DDSLoader does not supported YUV uncompressed texture data.");if(131072&a)throw new Error("DDSLoader does not support single-channel (lumninance) texture data!");if(2&a)throw new Error("DDSLoader does not support single-channel (alpha) texture data!");throw new Error("DDSLoader failed to load a texture file due to an unknown reason!")},t}();bt.setExtensionXhrType("ktx",bt.XHR_RESPONSE_TYPE.BUFFER);var he=[171,75,84,88,32,49,49,187,13,10,26,10],ue=12,le=16,ce=24,pe=28,fe=36,de=40,_e=44,ge=48,ve=52,me=56,ye=60,Te=((re={})[wt.vK.UNSIGNED_BYTE]=1,re[wt.vK.UNSIGNED_SHORT]=2,re[wt.vK.INT]=4,re[wt.vK.UNSIGNED_INT]=4,re[wt.vK.FLOAT]=4,re[wt.vK.HALF_FLOAT]=8,re),Ee=((ie={})[wt.I2.RGBA]=4,ie[wt.I2.RGB]=3,ie[wt.I2.RG]=2,ie[wt.I2.RED]=1,ie[wt.I2.LUMINANCE]=1,ie[wt.I2.LUMINANCE_ALPHA]=2,ie[wt.I2.ALPHA]=1,ie),be=((ne={})[wt.vK.UNSIGNED_SHORT_4_4_4_4]=2,ne[wt.vK.UNSIGNED_SHORT_5_5_5_1]=2,ne[wt.vK.UNSIGNED_SHORT_5_6_5]=2,ne),xe=function(){function t(){}return t.use=function(e,r){if("ktx"===e.extension&&e.data)try{var i=e.name||e.url,n=t.parse(i,e.data),o=n.compressed,s=n.uncompressed;if(o)Object.assign(e,Yt(i,o,e.metadata));else if(s){var a={};
1s.forEach((function(t,e){var r=new ht.xE(new ht.VL(t.resource,{mipmap:wt.WB.OFF,alphaMode:wt.iw.NO_PREMULTIPLIED_ALPHA,type:t.type,format:t.format})),n=i+"-"+(e+1);ht.VL.addToCache(r.baseTexture,n),ht.xE.addToCache(r,n),0===e&&(a[i]=r,ht.VL.addToCache(r.baseTexture,i),ht.xE.addToCache(r,i)),a[n]=r})),Object.assign(e,{textures:a})}}catch(h){return void r(h)}r()},t.parse=function(e,r){var i=new DataView(r);if(!t.validate(e,i))return null;var n=67305985===i.getUint32(ue,!0),o=i.getUint32(le,n),s=i.getUint32(ce,n),a=i.getUint32(pe,n),h=i.getUint32(fe,n),u=i.getUint32(de,n)||1,l=i.getUint32(_e,n)||1,c=i.getUint32(ge,n)||1,p=i.getUint32(ve,n),f=i.getUint32(me,n),d=i.getUint32(ye,n);if(0===u||1!==l)throw new Error("Only 2D textures are supported");if(1!==p)throw new Error("CubeTextures are not supported by KTXLoader yet!");if(1!==c)throw new Error("WebGL does not support array textures");var _,g=h+3&-4,v=u+3&-4,m=new Array(c),y=h*u;if(0===o&&(y=g*v),void 0===(_=0!==o?Te[o]?Te[o]*Ee[s]:be[o]:Ct[a]))throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");for(var T=y*_,E=h,b=u,x=g,R=v,A=64+d,O=0;O<f;O++){for(var S=i.getUint32(A,n),I=A+4,P=0;P<c;P++){var M=m[P];M||(M=m[P]=new Array(f)),M[O]={levelID:O,levelWidth:f>1||0!==o?E:x,levelHeight:f>1||0!==o?b:R,levelBuffer:new Uint8Array(r,I,T)},I+=T}A=(A+=S+4)%4!==0?A+4-A%4:A,T=(x=(E=E>>1||1)+4-1&-4)*(R=(b=b>>1||1)+4-1&-4)*_}return 0!==o?{uncompressed:m.map((function(e){var r=e[0].levelBuffer,i=!1;return o===wt.vK.FLOAT?r=new Float32Array(e[0].levelBuffer.buffer,e[0].levelBuffer.byteOffset,e[0].levelBuffer.byteLength/4):o===wt.vK.UNSIGNED_INT?(i=!0,r=new Uint32Array(e[0].levelBuffer.buffer,e[0].levelBuffer.byteOffset,e[0].levelBuffer.byteLength/4)):o===wt.vK.INT&&(i=!0,r=new Int32Array(e[0].levelBuffer.buffer,e[0].levelBuffer.byteOffset,e[0].levelBuffer.byteLength/4)),{resource:new ht.qm(r,{width:e[0].levelWidth,height:e[0].levelHeight}),type:o,format:i?t.convertFormatToInteger(s):s}}))}:{compressed:m.map((function(t){return new kt(null,{format:a,width:h,height:u,levels:f,levelBuffers:t})}))}},t.validate=function(t,e){for(var r=0;r<he.length;r++)if(e.getUint8(r)!==he[r])return console.error(t+" is not a valid *.ktx file!"),!1;return!0},t.convertFormatToInteger=function(t){switch(t){case wt.I2.RGBA:return wt.I2.RGBA_INTEGER;case wt.I2.RGB:return wt.I2.RGB_INTEGER;case wt.I2.RG:return wt.I2.RG_INTEGER;case wt.I2.RED:return wt.I2.RED_INTEGER;default:return t}},t}(),Re=function(t,e){return Re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Re(t,e)};function Ae(t,e){function r(){this.constructor=t}Re(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}!function(t){function e(e,r,i,n){void 0===e&&(e=1500),void 0===i&&(i=16384),void 0===n&&(n=!1);var o=t.call(this)||this;return i>16384&&(i=16384),o._properties=[!1,!0,!1,!1,!1],o._maxSize=e,o._batchSize=i,o._buffers=null,o._bufferUpdateIDs=[],o._updateID=0,o.interactiveChildren=!1,o.blendMode=wt.T$.NORMAL,o.autoResize=n,o.roundPixels=!0,o.baseTexture=null,o.setProperties(r),o._tint=0,o.tintRgb=new Float32Array(4),o.tint=16777215,o}Ae(e,t),e.prototype.setProperties=function(t){t&&(this._properties[0]="vertices"in t||"scale"in t?!!t.vertices||!!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]="tint"in t||"alpha"in t?!!t.tint||!!t.alpha:this._properties[4])},e.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},Object.defineProperty(e.prototype,"tint",{get:function(){return this._tint},set:function(t){this._tint=t,(0,x.hex2rgb)(t,this.tintRgb)},enumerable:!1,configurable:!0}),e.prototype.render=function(t){var e=this;this.visible&&!(this.worldAlpha<=0)&&this.children.length&&this.renderable&&(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.valid||this.baseTexture.once("update",(function(){return e.onChildrenChange(0)}))),t.batch.setObjectRenderer(t.plugins.particle),t.plugins.particle.render(this))},e.prototype.onChildrenChange=function(t){for(var e=Math.floor(t/this._batchSize);this._bufferUpdateIDs.length<e;)this._bufferUpdateIDs.push(0);this._bufferUpdateIDs[e]=++this._updateID},e.prototype.dispose=function(){if(this._buffers){for(var t=0;t<this._buffers.length;++t)this._buffers[t].destroy();this._buffers=null}},e.prototype.destroy=function(e){t.prototype.destroy.call(this,e),this.dispose(),this._properties=null,this._buffers=null,this._bufferUpdateIDs=null}}($);var Oe,Se,Ie=function(){function t(t,e,r){this.geometry=new ht.ZX,this.indexBuffer=null,this.size=r,this.dynamicProperties=[],this.staticProperties=[];for(var i=0;i<t.length;++i){var n=t[i];n={attributeName:n.attributeName,size:n.size,uploadFunction:n.uploadFunction,type:n.type||wt.vK.FLOAT,offset:n.offset},e[i]?this.dynamicProperties.push(n):this.staticProperties.push(n)}
1this.staticStride=0,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.dynamicStride=0,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this._updateID=0,this.initBuffers()}return t.prototype.initBuffers=function(){var t=this.geometry,e=0;this.indexBuffer=new ht.lW((0,x.createIndicesForQuads)(this.size),!0,!0),t.addIndex(this.indexBuffer),this.dynamicStride=0;for(var r=0;r<this.dynamicProperties.length;++r){(s=this.dynamicProperties[r]).offset=e,e+=s.size,this.dynamicStride+=s.size}var i=new ArrayBuffer(this.size*this.dynamicStride*4*4);this.dynamicData=new Float32Array(i),this.dynamicDataUint32=new Uint32Array(i),this.dynamicBuffer=new ht.lW(this.dynamicData,!1,!1);var n=0;this.staticStride=0;for(r=0;r<this.staticProperties.length;++r){(s=this.staticProperties[r]).offset=n,n+=s.size,this.staticStride+=s.size}var o=new ArrayBuffer(this.size*this.staticStride*4*4);this.staticData=new Float32Array(o),this.staticDataUint32=new Uint32Array(o),this.staticBuffer=new ht.lW(this.staticData,!0,!1);for(r=0;r<this.dynamicProperties.length;++r){var s=this.dynamicProperties[r];t.addAttribute(s.attributeName,this.dynamicBuffer,0,s.type===wt.vK.UNSIGNED_BYTE,s.type,4*this.dynamicStride,4*s.offset)}for(r=0;r<this.staticProperties.length;++r){s=this.staticProperties[r];t.addAttribute(s.attributeName,this.staticBuffer,0,s.type===wt.vK.UNSIGNED_BYTE,s.type,4*this.staticStride,4*s.offset)}},t.prototype.uploadDynamic=function(t,e,r){for(var i=0;i<this.dynamicProperties.length;i++){var n=this.dynamicProperties[i];n.uploadFunction(t,e,r,n.type===wt.vK.UNSIGNED_BYTE?this.dynamicDataUint32:this.dynamicData,this.dynamicStride,n.offset)}this.dynamicBuffer._updateID++},t.prototype.uploadStatic=function(t,e,r){for(var i=0;i<this.staticProperties.length;i++){var n=this.staticProperties[i];n.uploadFunction(t,e,r,n.type===wt.vK.UNSIGNED_BYTE?this.staticDataUint32:this.staticData,this.staticStride,n.offset)}this.staticBuffer._updateID++},t.prototype.destroy=function(){this.indexBuffer=null,this.dynamicProperties=null,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this.staticProperties=null,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.geometry.destroy()},t}(),Pe=function(t){function e(e){var r=t.call(this,e)||this;return r.shader=null,r.properties=null,r.tempMatrix=new A.y3,r.properties=[{attributeName:"aVertexPosition",size:2,uploadFunction:r.uploadVertices,offset:0},{attributeName:"aPositionCoord",size:2,uploadFunction:r.uploadPosition,offset:0},{attributeName:"aRotation",size:1,uploadFunction:r.uploadRotation,offset:0},{attributeName:"aTextureCoord",size:2,uploadFunction:r.uploadUvs,offset:0},{attributeName:"aColor",size:1,type:wt.vK.UNSIGNED_BYTE,uploadFunction:r.uploadTint,offset:0}],r.shader=ht.ex.from("attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\n\nattribute vec2 aPositionCoord;\nattribute float aRotation;\n\nuniform mat3 translationMatrix;\nuniform vec4 uColor;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nvoid main(void){\n    float x = (aVertexPosition.x) * cos(aRotation) - (aVertexPosition.y) * sin(aRotation);\n    float y = (aVertexPosition.x) * sin(aRotation) + (aVertexPosition.y) * cos(aRotation);\n\n    vec2 v = vec2(x, y);\n    v = v + aPositionCoord;\n\n    gl_Position = vec4((translationMatrix * vec3(v, 1.0)).xy, 0.0, 1.0);\n\n    vTextureCoord = aTextureCoord;\n    vColor = aColor * uColor;\n}\n","varying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void){\n    vec4 color = texture2D(uSampler, vTextureCoord) * vColor;\n    gl_FragColor = color;\n}",{}),r.state=ht.ZM.for2d(),r}return Ae(e,t),e.prototype.render=function(t){var e=t.children,r=t._maxSize,i=t._batchSize,n=this.renderer,o=e.length;if(0!==o){o>r&&!t.autoResize&&(o=r);var s=t._buffers;s||(s=t._buffers=this.generateBuffers(t));var a=e[0]._texture.baseTexture;this.state.blendMode=(0,x.correctBlendMode)(t.blendMode,a.alphaMode),n.state.set(this.state);var h=n.gl,u=t.worldTransform.copyTo(this.tempMatrix);
1u.prepend(n.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=u.toArray(!0),this.shader.uniforms.uColor=(0,x.premultiplyRgba)(t.tintRgb,t.worldAlpha,this.shader.uniforms.uColor,a.alphaMode),this.shader.uniforms.uSampler=a,this.renderer.shader.bind(this.shader);for(var l=!1,c=0,p=0;c<o;c+=i,p+=1){var f=o-c;f>i&&(f=i),p>=s.length&&s.push(this._generateOneMoreBuffer(t));var d=s[p];d.uploadDynamic(e,c,f);var _=t._bufferUpdateIDs[p]||0;(l=l||d._updateID<_)&&(d._updateID=t._updateID,d.uploadStatic(e,c,f)),n.geometry.bind(d.geometry),h.drawElements(h.TRIANGLES,6*f,h.UNSIGNED_SHORT,0)}}},e.prototype.generateBuffers=function(t){for(var e=[],r=t._maxSize,i=t._batchSize,n=t._properties,o=0;o<r;o+=i)e.push(new Ie(this.properties,n,i));return e},e.prototype._generateOneMoreBuffer=function(t){var e=t._batchSize,r=t._properties;return new Ie(this.properties,r,e)},e.prototype.uploadVertices=function(t,e,r,i,n,o){for(var s=0,a=0,h=0,u=0,l=0;l<r;++l){var c=t[e+l],p=c._texture,f=c.scale.x,d=c.scale.y,_=p.trim,g=p.orig;_?(s=(a=_.x-c.anchor.x*g.width)+_.width,h=(u=_.y-c.anchor.y*g.height)+_.height):(s=g.width*(1-c.anchor.x),a=g.width*-c.anchor.x,h=g.height*(1-c.anchor.y),u=g.height*-c.anchor.y),i[o]=a*f,i[o+1]=u*d,i[o+n]=s*f,i[o+n+1]=u*d,i[o+2*n]=s*f,i[o+2*n+1]=h*d,i[o+3*n]=a*f,i[o+3*n+1]=h*d,o+=4*n}},e.prototype.uploadPosition=function(t,e,r,i,n,o){for(var s=0;s<r;s++){var a=t[e+s].position;i[o]=a.x,i[o+1]=a.y,i[o+n]=a.x,i[o+n+1]=a.y,i[o+2*n]=a.x,i[o+2*n+1]=a.y,i[o+3*n]=a.x,i[o+3*n+1]=a.y,o+=4*n}},e.prototype.uploadRotation=function(t,e,r,i,n,o){for(var s=0;s<r;s++){var a=t[e+s].rotation;i[o]=a,i[o+n]=a,i[o+2*n]=a,i[o+3*n]=a,o+=4*n}},e.prototype.uploadUvs=function(t,e,r,i,n,o){for(var s=0;s<r;++s){var a=t[e+s]._texture._uvs;a?(i[o]=a.x0,i[o+1]=a.y0,i[o+n]=a.x1,i[o+n+1]=a.y1,i[o+2*n]=a.x2,i[o+2*n+1]=a.y2,i[o+3*n]=a.x3,i[o+3*n+1]=a.y3,o+=4*n):(i[o]=0,i[o+1]=0,i[o+n]=0,i[o+n+1]=0,i[o+2*n]=0,i[o+2*n+1]=0,i[o+3*n]=0,i[o+3*n+1]=0,o+=4*n)}},e.prototype.uploadTint=function(t,e,r,i,n,o){for(var s=0;s<r;++s){var a=t[e+s],h=a._texture.baseTexture.alphaMode>0,u=a.alpha,l=u<1&&h?(0,x.premultiplyTint)(a._tintRGB,u):a._tintRGB+(255*u<<24);i[o]=l,i[o+n]=l,i[o+2*n]=l,i[o+3*n]=l,o+=4*n}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null},e}(ht.bO);!function(t){t.MITER="miter",t.BEVEL="bevel",t.ROUND="round"}(Oe||(Oe={})),function(t){t.BUTT="butt",t.ROUND="round",t.SQUARE="square"}(Se||(Se={}));var Me={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(t,e){if(void 0===e&&(e=20),!this.adaptive||!t||isNaN(t))return e;var r=Math.ceil(t/this.maxLength);return r<this.minSegments?r=this.minSegments:r>this.maxSegments&&(r=this.maxSegments),r}},De=function(){function t(){this.color=16777215,this.alpha=1,this.texture=ht.xE.WHITE,this.matrix=null,this.visible=!1,this.reset()}return t.prototype.clone=function(){var e=new t;return e.color=this.color,e.alpha=this.alpha,e.texture=this.texture,e.matrix=this.matrix,e.visible=this.visible,e},t.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=ht.xE.WHITE,this.matrix=null,this.visible=!1},t.prototype.destroy=function(){this.texture=null,this.matrix=null},t}(),Ne=function(t,e){return Ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Ne(t,e)};function we(t,e){function r(){this.constructor=t}Ne(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Ce(t,e){var r,i;void 0===e&&(e=!1);var n=t.length;if(!(n<6)){for(var o=0,s=0,a=t[n-2],h=t[n-1];s<n;s+=2){var u=t[s],l=t[s+1];o+=(u-a)*(l+h),a=u,h=l}if(!e&&o>0||e&&o<=0){var c=n/2;for(s=c+c%2;s<n;s+=2){var p=n-s-2,f=n-s-1,d=s,_=s+1;r=[t[d],t[p]],t[p]=r[0],t[d]=r[1],i=[t[_],t[f]],t[f]=i[0],t[_]=i[1]}}}}var Le={build:function(t){t.points=t.shape.points.slice()},triangulate:function(t,e){var r=t.points,i=t.holes,n=e.points,o=e.indices;if(r.length>=6){Ce(r,!1);for(var s=[],a=0;a<i.length;a++){var h=i[a];Ce(h.points,!0),s.push(r.length/2),r=r.concat(h.points)}
1var u=(0,x.earcut)(r,s,2);if(!u)return;var l=n.length/2;for(a=0;a<u.length;a+=3)o.push(u[a]+l),o.push(u[a+1]+l),o.push(u[a+2]+l);for(a=0;a<r.length;a++)n.push(r[a])}}},Ue={build:function(t){var e,r,i,n,o,s,a=t.points;if(t.type===A.HS.CIRC){var h=t.shape;e=h.x,r=h.y,o=s=h.radius,i=n=0}else if(t.type===A.HS.ELIP){var u=t.shape;e=u.x,r=u.y,o=u.width,s=u.height,i=n=0}else{var l=t.shape,c=l.width/2,p=l.height/2;e=l.x+c,r=l.y+p,i=c-(o=s=Math.max(0,Math.min(l.radius,Math.min(c,p)))),n=p-s}var f=Math.ceil(2.3*Math.sqrt(o+s)),d=8*f+(i?4:0)+(n?4:0);if(a.length=d,0!==d){if(0===f)return a.length=8,a[0]=a[6]=e+i,a[1]=a[3]=r+n,a[2]=a[4]=e-i,void(a[5]=a[7]=r-n);var _=0,g=4*f+(i?2:0)+2,v=g,m=d,y=e+(O=i+o),T=e-O,E=r+(S=n);if(a[_++]=y,a[_++]=E,a[--g]=E,a[--g]=T,n){var b=r-S;a[v++]=T,a[v++]=b,a[--m]=b,a[--m]=y}for(var x=1;x<f;x++){var R=Math.PI/2*(x/f);y=e+(O=i+Math.cos(R)*o),T=e-O,E=r+(S=n+Math.sin(R)*s),b=r-S;a[_++]=y,a[_++]=E,a[--g]=E,a[--g]=T,a[v++]=T,a[v++]=b,a[--m]=b,a[--m]=y}var O,S;y=e+(O=i),T=e-O,E=r+(S=n+s),b=r-S;a[_++]=y,a[_++]=E,a[--m]=b,a[--m]=y,i&&(a[_++]=T,a[_++]=E,a[--m]=b,a[--m]=T)}},triangulate:function(t,e){var r,i,n=t.points,o=e.points,s=e.indices,a=o.length/2,h=a;if(t.type!==A.HS.RREC){var u=t.shape;r=u.x,i=u.y}else{var l=t.shape;r=l.x+l.width/2,i=l.y+l.height/2}var c=t.matrix;o.push(t.matrix?c.a*r+c.c*i+c.tx:r,t.matrix?c.b*r+c.d*i+c.ty:i),a++,o.push(n[0],n[1]);for(var p=2;p<n.length;p+=2)o.push(n[p],n[p+1]),s.push(a++,h,a);s.push(h+1,h,a)}},Ge={build:function(t){var e=t.shape,r=e.x,i=e.y,n=e.width,o=e.height,s=t.points;s.length=0,s.push(r,i,r+n,i,r+n,i+o,r,i+o)},triangulate:function(t,e){var r=t.points,i=e.points,n=i.length/2;i.push(r[0],r[1],r[2],r[3],r[6],r[7],r[4],r[5]),e.indices.push(n,n+1,n+2,n+1,n+2,n+3)}};function Fe(t,e,r){return t+(e-t)*r}function Be(t,e,r,i,n,o,s){void 0===s&&(s=[]);for(var a=s,h=0,u=0,l=0,c=0,p=0,f=0,d=0,_=0;d<=20;++d)h=Fe(t,r,_=d/20),u=Fe(e,i,_),l=Fe(r,n,_),c=Fe(i,o,_),p=Fe(h,l,_),f=Fe(u,c,_),0===d&&a[a.length-2]===p&&a[a.length-1]===f||a.push(p,f);return a}var Xe={build:function(t){if(or.nextRoundedRectBehavior)Ue.build(t);else{var e=t.shape,r=t.points,i=e.x,n=e.y,o=e.width,s=e.height,a=Math.max(0,Math.min(e.radius,Math.min(o,s)/2));r.length=0,a?(Be(i,n+a,i,n,i+a,n,r),Be(i+o-a,n,i+o,n,i+o,n+a,r),Be(i+o,n+s-a,i+o,n+s,i+o-a,n+s,r),Be(i+a,n+s,i,n+s,i,n+s-a,r)):r.push(i,n,i+o,n,i+o,n+s,i,n+s)}},triangulate:function(t,e){if(or.nextRoundedRectBehavior)Ue.triangulate(t,e);else{for(var r=t.points,i=e.points,n=e.indices,o=i.length/2,s=(0,x.earcut)(r,null,2),a=0,h=s.length;a<h;a+=3)n.push(s[a]+o),n.push(s[a+1]+o),n.push(s[a+2]+o);for(a=0,h=r.length;a<h;a++)i.push(r[a],r[++a])}}};function ke(t,e,r,i,n,o,s,a){var h,u;s?(h=i,u=-r):(h=-i,u=r);var l=t-r*n+h,c=e-i*n+u,p=t+r*o+h,f=e+i*o+u;return a.push(l,c),a.push(p,f),2}function He(t,e,r,i,n,o,s,a){var h=r-t,u=i-e,l=Math.atan2(h,u),c=Math.atan2(n-t,o-e);a&&l<c?l+=2*Math.PI:!a&&l>c&&(c+=2*Math.PI);var p=l,f=c-l,d=Math.abs(f),_=Math.sqrt(h*h+u*u),g=1+(15*d*Math.sqrt(_)/Math.PI>>0),v=f/g;if(p+=v,a){s.push(t,e),s.push(r,i);for(var m=1,y=p;m<g;m++,y+=v)s.push(t,e),s.push(t+Math.sin(y)*_,e+Math.cos(y)*_);s.push(t,e),s.push(n,o)}else{s.push(r,i),s.push(t,e);for(m=1,y=p;m<g;m++,y+=v)s.push(t+Math.sin(y)*_,e+Math.cos(y)*_),s.push(t,e);s.push(n,o),s.push(t,e)}return 2*g}function Ye(t,e){t.lineStyle.native?function(t,e){var r=0,i=t.shape,n=t.points||i.points,o=i.type!==A.HS.POLY||i.closeStroke;if(0!==n.length){var s=e.points,a=e.indices,h=n.length/2,u=s.length/2,l=u;for(s.push(n[0],n[1]),r=1;r<h;r++)s.push(n[2*r],n[2*r+1]),a.push(l,l+1),l++;o&&a.push(l,u)}}(t,e):function(t,e){var r=t.shape,i=t.points||r.points.slice(),n=e.closePointEps;if(0!==i.length){var o=t.lineStyle,s=new A.E9(i[0],i[1]),a=new A.E9(i[i.length-2],i[i.length-1]),h=r.type!==A.HS.POLY||r.closeStroke,u=Math.abs(s.x-a.x)<n&&Math.abs(s.y-a.y)<n;if(h){i=i.slice(),u&&(i.pop(),i.pop(),a.set(i[i.length-2],i[i.length-1]));var l=.5*(s.x+a.x),c=.5*(a.y+s.y);i.unshift(l,c),i.push(l,c)}var p=e.points,f=i.length/2,d=i.length,_=p.length/2,g=o.width/2,v=g*g,m=o.miterLimit*o.miterLimit,y=i[0],T=i[1],E=i[2],b=i[3],x=0,R=0,O=-(T-b),S=y-E,I=0,P=0,M=Math.sqrt(O*O+S*S);O/=M,S/=M,O*=g,S*=g;var D=o.alignment,N=2*(1-D),w=2*D;h||(o.cap===Se.ROUND?d+=He(y-O*(N-w)*.5,T-S*(N-w)*.5,y-O*N,T-S*N,y+O*w,T+S*w,p,!0)+2:o.cap===Se.SQUARE&&(d+=ke(y,T,O,S,N,w,!0,p))),p.push(y-O*N,T-S*N),p.push(y+O*w,T+S*w);for(var C=1;C<f-1;++C){y=i[2*(C-1)],T=i[2*(C-1)+1],E=i[2*C],b=i[2*C+1],x=i[2*(C+1)],R=i[2*(C+1)+1],O=-(T-b),S=y-E,O/=M=Math.sqrt(O*O+S*S),S/=M,O*=g,S*=g,I=-(b-R),P=E-x,I/=M=Math.sqrt(I*I+P*P),P/=M,I*=g,P*=g;var L=E-y,U=T-b,G=E-x,F=R-b,B=U*G-F*L,X=B<0;if(Math.abs(B)<.1)p.push(E-O*N,b-S*N),p.push(E+O*w,b+S*w);else{var k=(-O+y)*(-S+b)-(-O+E)*(-S+T),H=(-I+x)*(-P+b)-(-I+E)*(-P+R),Y=(L*H-G*k)/B,j=(F*k-U*H)/B,V=(Y-E)*(Y-E)+(j-b)*(j-b),W=E+(Y-E)*N,z=b+(j-b)*N,q=E-(Y-E)*w,K=b-(j-b)*w,Z=X?N:w;V<=Math.min(L*L+U*U,G*G+F*F)+Z*Z*v?o.join===Oe.BEVEL||V/v>m?(X?(p.push(W,z),p.push(E+O*w,b+S*w),p.push(W,z),p.push(E+I*w,b+P*w)):(p.push(E-O*N,b-S*N),p.push(q,K),p.push(E-I*N,b-P*N),p.push(q,K)),d+=2):o.join===Oe.ROUND?X?(p.push(W,z),p.push(E+O*w,b+S*w),d+=He(E,b,E+O*w,b+S*w,E+I*w,b+P*w,p,!0)+4,p.push(W,z),p.push(E+I*w,b+P*w)):(p.push(E-O*N,b-S*N),p.push(q,K),d+=He(E,b,E-O*N,b-S*N,E-I*N,b-P*N,p,!1)+4,p.push(E-I*N,b-P*N),p.push(q,K)):(p.push(W,z),p.push(q,K)):(p.push(E-O*N,b-S*N),p.push(E+O*w,b+S*w),o.join===Oe.BEVEL||V/v>m||(o.join===Oe.ROUND?d+=X?He(E,b,E+O*w,b+S*w,E+I*w,b+P*w,p,!0)+2:He(E,b,E-O*N,b-S*N,E-I*N,b-P*N,p,!1)+2:(X?(p.push(q,K),p.push(q,K)):(p.push(W,z),p.push(W,z)),d+=2)),p.push(E-I*N,b-P*N),p.push(E+I*w,b+P*w),d+=2)}}y=i[2*(f-2)],T=i[2*(f-2)+1],E=i[2*(f-1)],O=-(T-(b=i[2*(f-1)+1])),S=y-E,O/=M=Math.sqrt(O*O+S*S),S/=M,O*=g,S*=g,p.push(E-O*N,b-S*N),p.push(E+O*w,b+S*w),h||(o.cap===Se.ROUND?d+=He(E-O*(N-w)*.5,b-S*(N-w)*.5,E-O*N,b-S*N,E+O*w,b+S*w,p,!1)+2:o.cap===Se.SQUARE&&(d+=ke(E,b,O,S,N,w,!1,p)));var $=e.indices,J=Me.epsilon*Me.epsilon;for(C=_;C<d+_-2;++C)y=p[2*C],T=p[2*C+1],E=p[2*(C+1)],b=p[2*(C+1)+1],x=p[2*(C+2)],R=p[2*(C+2)+1],Math.abs(y*(b-R)+E*(R-T)+x*(T-b))<J||$.push(C,C+1,C+2)}}(t,e)}var je,Ve=function(){function t(){}return t.curveTo=function(t,e,r,i,n,o){var s=o[o.length-2],a=o[o.length-1]-e,h=s-t,u=i-e,l=r-t,c=Math.abs(a*l-h*u);if(c<1e-8||0===n)return o[o.length-2]===t&&o[o.length-1]===e||o.push(t,e),null;var p=a*a+h*h,f=u*u+l*l,d=a*u+h*l,_=n*Math.sqrt(p)/c,g=n*Math.sqrt(f)/c,v=_*d/p,m=g*d/f,y=_*l+g*h,T=_*u+g*a,E=h*(g
1+v),b=a*(g+v),x=l*(_+m),R=u*(_+m);return{cx:y+t,cy:T+e,radius:n,startAngle:Math.atan2(b-T,E-y),endAngle:Math.atan2(R-T,x-y),anticlockwise:h*u>l*a}},t.arc=function(t,e,r,i,n,o,s,a,h){for(var u=s-o,l=Me._segmentsCount(Math.abs(u)*n,40*Math.ceil(Math.abs(u)/A._b)),c=u/(2*l),p=2*c,f=Math.cos(c),d=Math.sin(c),_=l-1,g=_%1/_,v=0;v<=_;++v){var m=c+o+p*(v+g*v),y=Math.cos(m),T=-Math.sin(m);h.push((f*y+d*T)*n+r,(f*-T+d*y)*n+i)}},t}(),We=function(){function t(){}return t.curveLength=function(t,e,r,i,n,o,s,a){for(var h=0,u=0,l=0,c=0,p=0,f=0,d=0,_=0,g=0,v=0,m=0,y=t,T=e,E=1;E<=10;++E)v=y-(_=(d=(f=(p=1-(u=E/10))*p)*p)*t+3*f*u*r+3*p*(l=u*u)*n+(c=l*u)*s),m=T-(g=d*e+3*f*u*i+3*p*l*o+c*a),y=_,T=g,h+=Math.sqrt(v*v+m*m);return h},t.curveTo=function(e,r,i,n,o,s,a){var h=a[a.length-2],u=a[a.length-1];a.length-=2;var l=Me._segmentsCount(t.curveLength(h,u,e,r,i,n,o,s)),c=0,p=0,f=0,d=0,_=0;a.push(h,u);for(var g=1,v=0;g<=l;++g)f=(p=(c=1-(v=g/l))*c)*c,_=(d=v*v)*v,a.push(f*h+3*p*v*e+3*c*d*i+_*o,f*u+3*p*v*r+3*c*d*n+_*s)},t}(),ze=function(){function t(){}return t.curveLength=function(t,e,r,i,n,o){var s=t-2*r+n,a=e-2*i+o,h=2*r-2*t,u=2*i-2*e,l=4*(s*s+a*a),c=4*(s*h+a*u),p=h*h+u*u,f=2*Math.sqrt(l+c+p),d=Math.sqrt(l),_=2*l*d,g=2*Math.sqrt(p),v=c/d;return(_*f+d*c*(f-g)+(4*p*l-c*c)*Math.log((2*d+v+f)/(v+g)))/(4*_)},t.curveTo=function(e,r,i,n,o){for(var s=o[o.length-2],a=o[o.length-1],h=Me._segmentsCount(t.curveLength(s,a,e,r,i,n)),u=0,l=0,c=1;c<=h;++c){var p=c/h;u=s+(e-s)*p,l=a+(r-a)*p,o.push(u+(e+(i-e)*p-u)*p,l+(r+(n-r)*p-l)*p)}},t}(),qe=function(){function t(){this.reset()}return t.prototype.begin=function(t,e,r){this.reset(),this.style=t,this.start=e,this.attribStart=r},t.prototype.end=function(t,e){this.attribSize=e-this.attribStart,this.size=t-this.start},t.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0},t}(),Ke=((je={})[A.HS.POLY]=Le,je[A.HS.CIRC]=Ue,je[A.HS.ELIP]=Ue,je[A.HS.RECT]=Ge,je[A.HS.RREC]=Xe,je),Ze=[],$e=[],Je=function(){function t(t,e,r,i){void 0===e&&(e=null),void 0===r&&(r=null),void 0===i&&(i=null),this.points=[],this.holes=[],this.shape=t,this.lineStyle=r,this.fillStyle=e,this.matrix=i,this.type=t.type}return t.prototype.clone=function(){return new t(this.shape,this.fillStyle,this.lineStyle,this.matrix)},t.prototype.destroy=function(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null},t}(),Qe=new A.E9,tr=new O,er=function(t){function e(){var e=t.call(this)||this;return e.closePointEps=1e-4,e.boundsPadding=0,e.uvsFloat32=null,e.indicesUint16=null,e.batchable=!1,e.points=[],e.colors=[],e.uvs=[],e.indices=[],e.textureIds=[],e.graphicsData=[],e.drawCalls=[],e.batchDirty=-1,e.batches=[],e.dirty=0,e.cacheDirty=-1,e.clearDirty=0,e.shapeIndex=0,e._bounds=new O,e.boundsDirty=-1,e}return we(e,t),Object.defineProperty(e.prototype,"bounds",{get:function(){return this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},enumerable:!1,configurable:!0}),e.prototype.invalidate=function(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(var t=0;t<this.drawCalls.length;t++)this.drawCalls[t].texArray.clear(),$e.push(this.drawCalls[t]);this.drawCalls.length=0;for(t=0;t<this.batches.length;t++){var e=this.batches[t];e.reset(),Ze.push(e)}this.batches.length=0},e.prototype.clear=function(){return this.graphicsData.length>0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},e.prototype.drawShape=function(t,e,r,i){void 0===e&&(e=null),void 0===r&&(r=null),void 0===i&&(i=null);var n=new Je(t,e,r,i);return this.graphicsData.push(n),this.dirty++,this},e.prototype.drawHole=function(t,e){if(void 0===e&&(e=null),!this.graphicsData.length)return null;var r=new Je(t,null,null,e),i=this.graphicsData[this.graphicsData.length-1];return r.lineStyle=i.lineStyle,i.holes.push(r),this.dirty++,this},e.prototype.destroy=function(){t.prototype.destroy.call(this);for(var e=0;e<this.graphicsData.length;++e)this.graphicsData[e].destroy();this.points.length=0,this.points=null,this.colors.length=0,this.colors=null,this.uvs.length=0,this.uvs=null,this.indices.length=0,this.indices=null,this.indexBuffer.destroy(),this.indexBuffer=null,this.graphicsData.length=0,this.graphicsData=null,this.drawCalls.length=0,this.drawCalls=null,this.batches.length=0,this.batches=null,this._bounds=null},e.prototype.containsPoint=function(t){for(var e=this.graphicsData,r=0;r<e.length;++r){var i=e[r];if(i.fillStyle.visible&&(i.shape&&(i.matrix?i.matrix.applyInverse(t,Qe):Qe.copyFrom(t),i.shape.contains(Qe.x,Qe.y)))){var n=!1;if(i.holes)for(var o=0;o<i.holes.length;o++){if(i.holes[o].shape.contains(Qe.x,Qe.y)){n=!0;break}}if(!n)return!0}}return!1},e.prototype.updateBatches=function(t){if(this.graphicsData.length){if(this.validateBatching()){this.cacheDirty=this.dirty;var e=this.uvs,r=this.graphicsData,i=null,n=null;this.batches.length>0&&(n=(i=this.batches[this.batches.length-1]).style);for(var o=this.shapeIndex;o<r.length;o++){this.shapeIndex++;var s=r[o],a=s.fillStyle,h=s.lineStyle;Ke[s.type].build(s),s.matrix&&this.transformPoints(s.points,s.matrix),(a.visible||h.visible)&&this.processHoles(s.holes);for(var u=0;u<2;u++){var l=0===u?a:h;if(l.visible){var c=l.texture.baseTexture,p=this.indices.length,f=this.points.length/2;c.wrapMode=wt.Nt.REPEAT,0===u?this.processFill(s):this.processLine(s);var d=this.points.length/2-f;0!==d&&(i&&!this._compareStyles(n,l)&&(i.end(p,f),i=null),i||((i=Ze.pop()||new qe).begin(l,p,f),this.batches.push(i),n=l),this.addUvs(this.points,e,l.texture,f,d,l.matrix))}}}var _=this.indices.length,g=this.points.length/2;if(i&&i.end(_,g),0!==this.batches.length){if(this.indicesUint16&&this.indices.length===this.indicesUint16.length)this.indicesUint16.set(this.indices);else{var v=g>65535&&t;this.indicesUint16=v?new Uint32Array(this.indices):new Uint16Array(this.indices)}this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}else this.batchable=!0}}else this.batchable=!0},e.prototype._compareStyles=function(t,e){return!(!t||!e)&&(t.texture.baseTexture===e.texture.baseTexture&&(t.color+t.alpha===e.color+e.alpha&&!!t.native===!!e.native))},e.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var t=0,e=this.graphicsData.length;t<e;t++){var r=this.graphicsData[t],i=r.fillStyle,n=r.lineStyle;if(i&&!i.texture.baseTexture.valid)return!1;if(n&&!n.texture.baseTexture.valid)return!1}return!0},e.prototype.packBatches=function(){this.batchDirty++,this.uvsFloat32=new Float32Array(this.uvs);for(var t=this.batches,e=0,r=t.length;e<r;e++)for(var i=t[e],n=0;n<i.size;n++){var o=i.start+n;this.indicesUint16[o]=this.indicesUint16[o]-i.attribStart}},e.prototype.isBatchable=function(){if(this.points.length>131070)return!1;
1for(var t=this.batches,r=0;r<t.length;r++)if(t[r].style.native)return!1;return this.points.length<2*e.BATCHABLE_SIZE},e.prototype.buildDrawCalls=function(){for(var t=++ht.VL._globalBatch,e=0;e<this.drawCalls.length;e++)this.drawCalls[e].texArray.clear(),$e.push(this.drawCalls[e]);this.drawCalls.length=0;var r=this.colors,i=this.textureIds,n=$e.pop();n||((n=new ht.a$).texArray=new ht.Ie),n.texArray.count=0,n.start=0,n.size=0,n.type=wt.lg.TRIANGLES;var o=0,s=null,a=0,h=!1,u=wt.lg.TRIANGLES,l=0;this.drawCalls.push(n);for(e=0;e<this.batches.length;e++){var c=this.batches[e],p=c.style,f=p.texture.baseTexture;h!==!!p.native&&(u=(h=!!p.native)?wt.lg.LINES:wt.lg.TRIANGLES,s=null,o=8,t++),s!==f&&(s=f,f._batchEnabled!==t&&(8===o&&(t++,o=0,n.size>0&&((n=$e.pop())||((n=new ht.a$).texArray=new ht.Ie),this.drawCalls.push(n)),n.start=l,n.size=0,n.texArray.count=0,n.type=u),f.touched=1,f._batchEnabled=t,f._batchLocation=o,f.wrapMode=wt.Nt.REPEAT,n.texArray.elements[n.texArray.count++]=f,o++)),n.size+=c.size,l+=c.size,a=f._batchLocation,this.addColors(r,p.color,p.alpha,c.attribSize,c.attribStart),this.addTextureIds(i,a,c.attribSize,c.attribStart)}ht.VL._globalBatch=t,this.packAttributes()},e.prototype.packAttributes=function(){for(var t=this.points,e=this.uvs,r=this.colors,i=this.textureIds,n=new ArrayBuffer(3*t.length*4),o=new Float32Array(n),s=new Uint32Array(n),a=0,h=0;h<t.length/2;h++)o[a++]=t[2*h],o[a++]=t[2*h+1],o[a++]=e[2*h],o[a++]=e[2*h+1],s[a++]=r[h],o[a++]=i[h];this._buffer.update(n),this._indexBuffer.update(this.indicesUint16)},e.prototype.processFill=function(t){t.holes.length?Le.triangulate(t,this):Ke[t.type].triangulate(t,this)}
1,e.prototype.processLine=function(t){Ye(t,this);for(var e=0;e<t.holes.length;e++)Ye(t.holes[e],this)},e.prototype.processHoles=function(t){for(var e=0;e<t.length;e++){var r=t[e];Ke[r.type].build(r),r.matrix&&this.transformPoints(r.points,r.matrix)}},e.prototype.calculateBounds=function(){var t=this._bounds,e=tr,r=A.y3.IDENTITY;this._bounds.clear(),e.clear();for(var i=0;i<this.graphicsData.length;i++){var n=this.graphicsData[i],o=n.shape,s=n.type,a=n.lineStyle,h=n.matrix||A.y3.IDENTITY,u=0;if(a&&a.visible&&(u=a.width,s!==A.HS.POLY||n.fillStyle.visible?u*=Math.max(0,a.alignment):u*=Math.max(a.alignment,1-a.alignment)),r!==h&&(e.isEmpty()||(t.addBoundsMatrix(e,r),e.clear()),r=h),s===A.HS.RECT||s===A.HS.RREC){var l=o;e.addFramePad(l.x,l.y,l.x+l.width,l.y+l.height,u,u)}else if(s===A.HS.CIRC){var c=o;e.addFramePad(c.x,c.y,c.x,c.y,c.radius+u,c.radius+u)}else if(s===A.HS.ELIP){var p=o;e.addFramePad(p.x,p.y,p.x,p.y,p.width+u,p.height+u)}else{var f=o;t.addVerticesMatrix(r,f.points,0,f.points.length,u,u)}}e.isEmpty()||t.addBoundsMatrix(e,r),t.pad(this.boundsPadding,this.boundsPadding)},e.prototype.transformPoints=function(t,e){for(var r=0;r<t.length/2;r++){var i=t[2*r],n=t[2*r+1];t[2*r]=e.a*i+e.c*n+e.tx,t[2*r+1]=e.b*i+e.d*n+e.ty}},e.prototype.addColors=function(t,e,r,i,n){void 0===n&&(n=0);var o=(e>>16)+(65280&e)+((255&e)<<16),s=(0,x.premultiplyTint)(o,r);t.length=Math.max(t.length,n+i);for(var a=0;a<i;a++)t[n+a]=s},e.prototype.addTextureIds=function(t,e,r,i){void 0===i&&(i=0),t.length=Math.max(t.length,i+r);for(var n=0;n<r;n++)t[i+n]=e},e.prototype.addUvs=function(t,e,r,i,n,o){void 0===o&&(o=null);for(var s=0,a=e.length,h=r.frame;s<n;){var u=t[2*(i+s)],l=t[2*(i+s)+1];if(o){var c=o.a*u+o.c*l+o.tx;l=o.b*u+o.d*l+o.ty,u=c}s++,e.push(u/h.width,l/h.height)}var p=r.baseTexture;(h.width<p.width||h.height<p.height)&&this.adjustUvs(e,r,a,n)},e.prototype.adjustUvs=function(t,e,r,i){for(var n=e.baseTexture,o=1e-6,s=r+2*i,a=e.frame,h=a.width/n.width,u=a.height/n.height,l=a.x/a.width,c=a.y/a.height,p=Math.floor(t[r]+o),f=Math.floor(t[r+1]+o),d=r+2;d<s;d+=2)p=Math.min(p,Math.floor(t[d]+o)),f=Math.min(f,Math.floor(t[d+1]+o));l-=p,c-=f;for(d=r;d<s;d+=2)t[d]=(t[d]+l)*h,t[d+1]=(t[d+1]+c)*u},e.BATCHABLE_SIZE=100,e}(ht.JZ),rr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.width=0,e.alignment=.5,e.native=!1,e.cap=Se.BUTT,e.join=Oe.MITER,e.miterLimit=10,e}return we(e,t),e.prototype.clone=function(){var t=new e;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t.width=this.width,t.alignment=this.alignment,t.native=this.native,t.cap=this.cap,t.join=this.join,t.miterLimit=this.miterLimit,t},e.prototype.reset=function(){t.prototype.reset.call(this),this.color=0,this.alignment=.5,this.width=0,this.native=!1},e}(De),ir=new Float32Array(3),nr={},or=function(t){function e(e){void 0===e&&(e=null);var r=t.call(this)||this;return r.shader=null,r.pluginName="batch",r.currentPath=null,r.batches=[],r.batchTint=-1,r.batchDirty=-1,r.vertexData=null,r._fillStyle=new De,r._lineStyle=new rr,r._matrix=null,r._holeMode=!1,r.state=ht.ZM.for2d(),r._geometry=e||new er,r._geometry.refCount++,r._transformID=-1,r.tint=16777215,r.blendMode=wt.T$.NORMAL,r}return we(e,t),Object.defineProperty(e.prototype,"geometry",{get:function(){return this._geometry},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return this.finishPoly(),new e(this._geometry)},Object.defineProperty(e.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(t){this.state.blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tint",{get:function(){return this._tint},set:function(t){this._tint=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fill",{get:function(){return this._fillStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"line",{get:function(){return this._lineStyle},enumerable:!1,configurable:!0}),e.prototype.lineStyle=function(t,e,r,i,n){return void 0===t&&(t=null),void 0===e&&(e=0),void 0===r&&(r=1),void 0===i&&(i=.5),void 0===n&&(n=!1),"number"===typeof t&&(t={width:t,color:e,alpha:r,alignment:i,native:n}),this.lineTextureStyle(t)},e.prototype.lineTextureStyle=function(t){t=Object.assign({width:0,texture:ht.xE.WHITE,color:t&&t.texture?16777215:0,alpha:1,matrix:null,alignment:.5,native:!1,cap:Se.BUTT,join:Oe.MITER,miterLimit:10},t),this.currentPath&&this.startPoly();var e=t.width>0&&t.alpha>0;return e?(t.matrix&&(t.matrix=t.matrix.clone(),t.matrix.invert()),Object.assign(this._lineStyle,{visible:e},t)):this._lineStyle.reset(),this},e.prototype.startPoly=function(){if(this.currentPath){var t=this.currentPath.points,e=this.currentPath.points.length;e>2&&(this.drawShape(this.currentPath),this.currentPath=new A.mg,this.currentPath.closeStroke=!1,this.currentPath.points.push(t[e-2],t[e-1]))}else this.currentPath=new A.mg,this.currentPath.closeStroke=!1},e.prototype.finishPoly=function(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},e.prototype.moveTo=function(t,e){return this.startPoly(),this.currentPath.points[0]=t,this.currentPath.points[1]=e,this},e.prototype.lineTo=function(t,e){this.currentPath||this.moveTo(0,0);var r=this.currentPath.points,i=r[r.length-2],n=r[r.length-1];return i===t&&n===e||r.push(t,e),this},e.prototype._initCurve=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.currentPath?0===this.currentPath.points.length&&(this.currentPath.points=[t,e]):this.moveTo(t,e)},e.prototype.quadraticCurveTo=function(t,e,r,i){this._initCurve();var n=this.currentPath.points;return 0===n.length&&this.moveTo(0,0),ze.curveTo(t,e,r,i,n),this},e.prototype.bezierCurveTo=function(t,e,r,i,n,o){return this._initCurve(),We.curveTo(t,e,r,i,n,o,this.currentPath.points),this},e.prototype.arcTo=function(t,e,r,i,n){this._initCurve(t,e);var o=this.currentPath.points,s=Ve.curveTo(t,e,r,i,n,o);if(s){var a=s.cx,h=s.cy,u=s.radius,l=s.startAngle,c=s.endAngle,p=s.anticlockwise;this.arc(a,h,u,l,c,p)}return this},e.prototype.arc=function(t,e,r,i,n,o){if(void 0===o&&(o=!1),i===n)return this;if(!o&&n<=i?n+=A._b:o&&i<=n&&(i+=A._b),0===n-i)return this;var s=t+Math.cos(i)*r,a=e+Math.sin(i)*r,h=this._geometry.closePointEps,u=this.currentPath?this.currentPath.points:null;if(u){var l=Math.abs(u[u.length-2]-s),c=Math.abs(u[u.length-1]-a);l<h&&c<h||u.push(s,a)}else this.moveTo(s,a),u=this.currentPath.points;return Ve.arc(s,a,t,e,r,i,n,o,u),this},e.prototype.beginFill=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=1),this.beginTextureFill({texture:ht.xE.WHITE,color:t,alpha:e})},e.prototype.beginTextureFill=function(t){t=Object.assign({texture:ht.xE.WHITE,color:16777215,alph
1a:1,matrix:null},t),this.currentPath&&this.startPoly();var e=t.alpha>0;return e?(t.matrix&&(t.matrix=t.matrix.clone(),t.matrix.invert()),Object.assign(this._fillStyle,{visible:e},t)):this._fillStyle.reset(),this},e.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},e.prototype.drawRect=function(t,e,r,i){return this.drawShape(new A.Ae(t,e,r,i))},e.prototype.drawRoundedRect=function(t,e,r,i,n){return this.drawShape(new A.c9(t,e,r,i,n))},e.prototype.drawCircle=function(t,e,r){return this.drawShape(new A.Cd(t,e,r))},e.prototype.drawEllipse=function(t,e,r,i){return this.drawShape(new A.Pj(t,e,r,i))},e.prototype.drawPolygon=function(){for(var t,e=arguments,r=[],i=0;i<arguments.length;i++)r[i]=e[i];var n=!0,o=r[0];o.points?(n=o.closeStroke,t=o.points):t=Array.isArray(r[0])?r[0]:r;var s=new A.mg(t);return s.closeStroke=n,this.drawShape(s),this},e.prototype.drawShape=function(t){return this._holeMode?this._geometry.drawHole(t,this._matrix):this._geometry.drawShape(t,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this},e.prototype.clear=function(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this},e.prototype.isFastRect=function(){var t=this._geometry.graphicsData;return 1===t.length&&t[0].shape.type===A.HS.RECT&&!t[0].matrix&&!t[0].holes.length&&!(t[0].lineStyle.visible&&t[0].lineStyle.width)},e.prototype._render=function(t){this.finishPoly();var e=this._geometry,r=t.context.supports.uint32Indices;e.updateBatches(r),e.batchable?(this.batchDirty!==e.batchDirty&&this._populateBatches(),this._renderBatched(t)):(t.batch.flush(),this._renderDirect(t))},e.prototype._populateBatches=function(){var t=this._geometry,e=this.blendMode,r=t.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=t.batchDirty,this.batches.length=r,this.vertexData=new Float32Array(t.points);for(var i=0;i<r;i++){var n=t.batches[i],o=n.style.color,s=new Float32Array(this.vertexData.buffer,4*n.attribStart*2,2*n.attribSize),a=new Float32Array(t.uvsFloat32.buffer,4*n.attribStart*2,2*n.attribSize),h={vertexData:s,blendMode:e,indices:new Uint16Array(t.indicesUint16.buffer,2*n.start,n.size),uvs:a,_batchRGB:(0,x.hex2rgb)(o),_tintRGB:o,_texture:n.style.texture,alpha:n.style.alpha,worldAlpha:1};this.batches[i]=h}},e.prototype._renderBatched=function(t){if(this.batches.length){t.batch.setObjectRenderer(t.plugins[this.pluginName]),this.calculateVertices(),this.calculateTints();for(var e=0,r=this.batches.length;e<r;e++){var i=this.batches[e];i.worldAlpha=this.worldAlpha*i.alpha,t.plugins[this.pluginName].render(i)}}},e.prototype._renderDirect=function(t){var e=this._resolveDirectShader(t),r=this._geometry,i=this.tint,n=this.worldAlpha,o=e.uniforms,s=r.drawCalls;o.translationMatrix=this.transform.worldTransform,o.tint[0]=(i>>16&255)/255*n,o.tint[1]=(i>>8&255)/255*n,o.tint[2]=(255&i)/255*n,o.tint[3]=n,t.shader.bind(e),t.geometry.bind(r,e),t.state.set(this.state);for(var a=0,h=s.length;a<h;a++)this._renderDrawCallDirect(t,r.drawCalls[a])},e.prototype._renderDrawCallDirect=function(t,e){for(var r=e.texArray,i=e.type,n=e.size,o=e.start,s=r.count,a=0;a<s;a++)t.texture.bind(r.elements[a],a);t.geometry.draw(i,n,o)},e.prototype._resolveDirectShader=function(t){var e=this.shader,r=this.pluginName;if(!e){if(!nr[r]){for(var i=t.plugins[r].MAX_TEXTURES,n=new Int32Array(i),o=0;o<i;o++)n[o]=o;var s={tint:new Float32Array([1,1,1,1]),translationMatrix:new A.y3,default:ht.oo.from({uSamplers:n},!0)},a=t.plugins[r]._shader.program;nr[r]=new ht.ex(a,s)}e=nr[r]}return e},e.prototype._calculateBounds=function(){this.finishPoly();var t=this._geometry;if(t.graphicsData.length){var e=t.bounds,r=e.minX,i=e.minY,n=e.maxX,o=e.maxY;this._bounds.addFrame(this.transform,r,i,n,o)}},e.prototype.containsPoint=function(t){return this.worldTransform.applyInverse(t,e._TEMP_POINT),this._geometry.containsPoint(e._TEMP_POINT)},e.prototype.calculateTints=function(){if(this.batchTint!==this.tint){this.batchTint=this.tint;for(var t=(0,x.hex2rgb)(this.tint,ir),e=0;e<this.batches.length;e++){var r=this.batches[e],i=r._batchRGB,n=(t[0]*i[0]*255<<16)+(t[1]*i[1]*255<<8)+(0|t[2]*i[2]*255
1);r._tintRGB=(n>>16)+(65280&n)+((255&n)<<16)}}},e.prototype.calculateVertices=function(){var t=this.transform._worldID;if(this._transformID!==t){this._transformID=t;for(var e=this.transform.worldTransform,r=e.a,i=e.b,n=e.c,o=e.d,s=e.tx,a=e.ty,h=this._geometry.points,u=this.vertexData,l=0,c=0;c<h.length;c+=2){var p=h[c],f=h[c+1];u[l++]=r*p+n*f+s,u[l++]=o*f+i*p+a}}},e.prototype.closePath=function(){var t=this.currentPath;return t&&(t.closeStroke=!0,this.finishPoly()),this},e.prototype.setMatrix=function(t){return this._matrix=t,this},e.prototype.beginHole=function(){return this.finishPoly(),this._holeMode=!0,this},e.prototype.endHole=function(){return this.finishPoly(),this._holeMode=!1,this},e.prototype.destroy=function(e){this._geometry.refCount--,0===this._geometry.refCount&&this._geometry.dispose(),this._matrix=null,this.currentPath=null,this._lineStyle.destroy(),this._lineStyle=null,this._fillStyle.destroy(),this._fillStyle=null,this._geometry=null,this.shader=null,this.vertexData=null,this.batches.length=0,this.batches=null,t.prototype.destroy.call(this,e)},e.nextRoundedRectBehavior=!1,e._TEMP_POINT=new A.E9,e}($),sr=function(t,e){return sr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},sr(t,e)};var ar,hr=new A.E9,ur=new Uint16Array([0,1,2,0,2,3]),lr=function(t){function e(e){var r=t.call(this)||this;return r._anchor=new A.AB(r._onAnchorUpdate,r,e?e.defaultAnchor.x:0,e?e.defaultAnchor.y:0),r._texture=null,r._width=0,r._height=0,r._tint=null,r._tintRGB=null,r.tint=16777215,r.blendMode=wt.T$.NORMAL,r._cachedTint=16777215,r.uvs=null,r.texture=e||ht.xE.EMPTY,r.vertexData=new Float32Array(8),r.vertexTrimmedData=null,r._transformID=-1,r._textureID=-1,r._transformTrimmedID=-1,r._textureTrimmedID=-1,r.indices=ur,r.pluginName="batch",r.isSprite=!0,r._roundPixels=R.X.ROUND_PIXELS,r}return function(t,e){function r(){this.constructor=t}sr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=(0,x.sign)(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=(0,x.sign)(this.scale.y)*this._height/this._texture.orig.height)},e.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},e.prototype.calculateVertices=function(){var t=this._texture;if(this._transformID!==this.transform._worldID||this._textureID!==t._updateID){this._textureID!==t._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=t._updateID;var e=this.transform.worldTransform,r=e.a,i=e.b,n=e.c,o=e.d,s=e.tx,a=e.ty,h=this.vertexData,u=t.trim,l=t.orig,c=this._anchor,p=0,f=0,d=0,_=0;if(u?(p=(f=u.x-c._x*l.width)+u.width,d=(_=u.y-c._y*l.height)+u.height):(p=(f=-c._x*l.width)+l.width,d=(_=-c._y*l.height)+l.height),h[0]=r*f+n*_+s,h[1]=o*_+i*f+a,h[2]=r*p+n*_+s,h[3]=o*_+i*p+a,h[4]=r*p+n*d+s,h[5]=o*d+i*p+a,h[6]=r*f+n*d+s,h[7]=o*d+i*f+a,this._roundPixels)for(var g=R.X.RESOLUTION,v=0;v<h.length;++v)h[v]=Math.round((h[v]*g|0)/g)}},e.prototype.calculateTrimmedVertices=function(){if(this.vertexTrimmedData){if(this._transformTrimmedID===this.transform._worldID&&this._textureTrimmedID===this._texture._updateID)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=this.transform._worldID,this._textureTrimmedID=this._texture._updateID;var t=this._texture,e=this.vertexTrimmedData,r=t.orig,i=this._anchor,n=this.transform.worldTransform,o=n.a,s=n.b,a=n.c,h=n.d,u=n.tx,l=n.ty,c=-i._x*r.width,p=c+r.width,f=-i._y*r.height,d=f+r.height;e[0]=o*c+a*f+u,e[1]=h*f+s*c+l,e[2]=o*p+a*f+u,e[3]=h*f+s*p+l,e[4]=o*p+a*d+u,e[5]=h*d+s*p+l,e[6]=o*c+a*d+u,e[7]=h*d+s*c+l},e.prototype._render=function(t){this.calculateVertices(),t.batch.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this)},e.prototype._calculateBounds=function(){var t=this._texture.trim,e=this._texture.orig;!t||t.width===e.width&&t.height===e.height?(this.calculateVertices(),this._bounds.addQuad(this.vertexData)):(this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData))},e.prototype.getLocalBounds=function(e){return 0===this.children.length?(this._localBounds||(this._localBounds=new O),this._localBounds.minX=this._texture.orig.width*-this._anchor._x,this._localBounds.minY=this._texture.orig.height*-this._anchor._y,this._localBounds.maxX=this._texture.orig.width*(1-this._anchor._x),this._localBounds.maxY=this._texture.orig.height*(1-this._anchor._y),e||(this._localBoundsRect||(this._localBoundsRect=new A.Ae),e=this._localBoundsRect),this._localBounds.getRectangle(e)):t.prototype.getLocalBounds.call(this,e)},e.prototype.containsPoint=function(t){this.worldTransform.applyInverse(t,hr);var e=this._texture.orig.width,r=this._texture.orig.height,i=-e*this.anchor.x,n=0;return hr.x>=i&&hr.x<i+e&&(n=-r*this.anchor.y,hr.y>=n&&hr.y<n+r)}
1,e.prototype.destroy=function(e){if(t.prototype.destroy.call(this,e),this._texture.off("update",this._onTextureUpdate,this),this._anchor=null,"boolean"===typeof e?e:e&&e.texture){var r="boolean"===typeof e?e:e&&e.baseTexture;this._texture.destroy(!!r)}this._texture=null},e.from=function(t,r){return new e(t instanceof ht.xE?t:ht.xE.from(t,r))},Object.defineProperty(e.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(t){this._roundPixels!==t&&(this._transformID=-1),this._roundPixels=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return Math.abs(this.scale.x)*this._texture.orig.width},set:function(t){var e=(0,x.sign)(this.scale.x)||1;this.scale.x=e*t/this._texture.orig.width,this._width=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return Math.abs(this.scale.y)*this._texture.orig.height},set:function(t){var e=(0,x.sign)(this.scale.y)||1;this.scale.y=e*t/this._texture.orig.height,this._height=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"anchor",{get:function(){return this._anchor},set:function(t){this._anchor.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tint",{get:function(){return this._tint},set:function(t){this._tint=t,this._tintRGB=(t>>16)+(65280&t)+((255&t)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture!==t&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=t||ht.xE.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,t&&(t.baseTexture.valid?this._onTextureUpdate():t.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),e}($),cr=function(t,e){return cr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},cr(t,e)};!function(t){t[t.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",t[t.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL"}(ar||(ar={}));var pr={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:ar.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100,leading:0},fr=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],dr=function(){function t(t){this.styleID=0,this.reset(),vr(this,t,t)}return t.prototype.clone=function(){var e={};return vr(e,this,pr),new t(e)},t.prototype.reset=function(){vr(this,pr,pr)},Object.defineProperty(t.prototype,"align",{get:function(){return this._align},set:function(t){this._align!==t&&(this._align=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"breakWords",{get:function(){return this._breakWords},set:function(t){this._breakWords!==t&&(this._breakWords=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadow",{get:function(){return this._dropShadow},set:function(t){this._dropShadow!==t&&(this._dropShadow=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowAlpha",{get:function(){return this._dropShadowAlpha},set:function(t){this._dropShadowAlpha!==t&&(this._dropShadowAlpha=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowAngle",{get:function(){return this._dropShadowAngle},set:function(t){this._dropShadowAngle!==t&&(this._dropShadowAngle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowBlur",{get:function(){return this._dropShadowBlur},set:function(t){this._dropShadowBlur!==t&&(this._dropShadowBlur=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowColor",{get:function(){return this._dropShadowColor},set:function(t){var e=gr(t);this._dropShadowColor!==e&&(this._dropShadowColor=e,this.styleID++)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowDistance",{get:function(){return this._dropShadowDistance},set:function(t){this._dropShadowDistance!==t&&(this._dropShadowDistance=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fill",{get:function(){return this._fill},set:function(t){var e=gr(t);this._fill!==e&&(this._fill=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fillGradientType",{get:function(){return this._fillGradientType},set:function(t){this._fillGradientType!==t&&(this._fillGradientType=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fillGradientStops",{get:function(){return this._fillGradientStops},set:function(t){(function(t,e){if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(t[r]!==e[r])return!1;return!0})(this._fillGradientStops,t)||(this._fillGradientStops=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(t){this.fontFamily!==t&&(this._fontFamily=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontSize",{get:function(){return this._fontSize},set:function(t){this._fontSize!==t&&(this._fontSize=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(t){this._fontStyle!==t&&(this._fontStyle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontVariant",{get:function(){return this._fontVariant},set:function(t){this._fontVariant!==t&&(this._fontVariant=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(t){this._fontWeight!==t&&(this._fontWeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(t){this._lineHeight!==t&&(this._lineHeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leading",{get:function(){return this._leading},set:function(t){this._leading!==t&&(this._leading=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineJoin",{get:function(){return this._lineJoin},set:function(t){this._lineJoin!==t&&(this._lineJoin=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"miterLimit",{get:function(){return this._miterLimit},set:function(t){this._miterLimit!==t&&(this._miterLimit=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"padding",{get:function(){return this._padding},set:function(t){this._padding!==t&&(this._padding=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stroke",{get:function(){return this._stroke},set:function(t){var e=gr(t);this._stroke!==e&&(this._stroke=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"strokeThickness",{get:function(){return this._strokeThickness},set:function(t){this._strokeThickness!==t&&(this._strokeThickness=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textBaseline",{get:function(){return this._textBaseline},set:function(t){this._textBaseline!==t&&(this._textBaseline=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trim",{get:function(){return this._trim},set:function(t){this._trim!==t&&(this._trim=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"whiteSpace",{get:function(){return this._whiteSpace},set:function(t){this._whiteSpace!==t&&(this._whiteSpace=t,this.styleID++)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wordWrap",{get:function(){return this._wordWrap},set:function(t){this._wordWrap!==t&&(this._wordWrap=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wordWrapWidth",{get:function(){return this._wordWrapWidth},set:function(t){this._wordWrapWidth!==t&&(this._wordWrapWidth=t,this.styleID++)},enumerable:!1,configurable:!0}),t.prototype.toFontString=function(){var t="number"===typeof this.fontSize?this.fontSize+"px":this.fontSize,e=this.fontFamily;Array.isArray(this.fontFamily)||(e=this.fontFamily.split(","));for(var r=e.length-1;r>=0;r--){var i=e[r].trim();!/([\"\'])[^\'\"]+\1/.test(i)&&fr.indexOf(i)<0&&(i='"'+i+'"'),e[r]=i}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+t+" "+e.join(",")},t}();function _r(t){return"number"===typeof t?(0,x.hex2string)(t):("string"===typeof t&&0===t.indexOf("0x")&&(t=t.replace("0x","#")),t)}function gr(t){if(Array.isArray(t)){for(var e=0;e<t.length;++e)t[e]=_r(t[e]);return t}return _r(t)}function vr(t,e,r){for(var i in r)Array.isArray(e[i])?t[i]=e[i].slice():t[i]=e[i]}var mr=function(){function t(t,e,r,i,n,o,s,a,h){this.text=t,this.style=e,this.width=r,this.height=i,this.lines=n,this.lineWidths=o,this.lineHeight=s,this.maxLineWidth=a,this.fontProperties=h}return t.measureText=function(e,r,i,n){void 0===n&&(n=t._canvas),i=void 0===i||null===i?r.wordWrap:i;var o=r.toFontString(),s=t.measureFont(o);0===s.fontSize&&(s.fontSize=r.fontSize,s.ascent=r.fontSize);var a=n.getContext("2d");a.font=o;for(var h=(i?t.wordWrap(e,r,n):e).split(/(?:\r\n|\r|\n)/),u=new Array(h.length),l=0,c=0;c<h.length;c++){var p=a.measureText(h[c]).width+(h[c].length-1)*r.letterSpacing;u[c]=p,l=Math.max(l,p)}var f=l+r.strokeThickness;r.dropShadow&&(f+=r.dropShadowDistance);var d=r.lineHeight||s.fontSize+r.strokeThickness,_=Math.max(d,s.fontSize+r.strokeThickness)+(h.length-1)*(d+r.leading);return r.dropShadow&&(_+=r.dropShadowDistance),new t(e,r,f,_,h,u,d+r.leading,l,s)},t.wordWrap=function(e,r,i){void 0===i&&(i=t._canvas);for(var n=i.getContext("2d"),o=0,s="",a="",h=Object.create(null),u=r.letterSpacing,l=r.
1whiteSpace,c=t.collapseSpaces(l),p=t.collapseNewlines(l),f=!c,d=r.wordWrapWidth+u,_=t.tokenize(e),g=0;g<_.length;g++){var v=_[g];if(t.isNewline(v)){if(!p){a+=t.addLine(s),f=!c,s="",o=0;continue}v=" "}if(c){var m=t.isBreakingSpace(v),y=t.isBreakingSpace(s[s.length-1]);if(m&&y)continue}var T=t.getFromCache(v,u,h,n);if(T>d)if(""!==s&&(a+=t.addLine(s),s="",o=0),t.canBreakWords(v,r.breakWords))for(var E=t.wordWrapSplit(v),b=0;b<E.length;b++){for(var x=E[b],R=1;E[b+R];){var A=E[b+R],O=x[x.length-1];if(t.canBreakChars(O,A,v,b,r.breakWords))break;x+=A,R++}b+=x.length-1;var S=t.getFromCache(x,u,h,n);S+o>d&&(a+=t.addLine(s),f=!1,s="",o=0),s+=x,o+=S}else{s.length>0&&(a+=t.addLine(s),s="",o=0);var I=g===_.length-1;a+=t.addLine(v,!I),f=!1,s="",o=0}else T+o>d&&(f=!1,a+=t.addLine(s),s="",o=0),(s.length>0||!t.isBreakingSpace(v)||f)&&(s+=v,o+=T)}return a+=t.addLine(s,!1)},t.addLine=function(e,r){return void 0===r&&(r=!0),e=t.trimRight(e),e=r?e+"\n":e},t.getFromCache=function(t,e,r,i){var n=r[t];if("number"!==typeof n){var o=t.length*e;n=i.measureText(t).width+o,r[t]=n}return n},t.collapseSpaces=function(t){return"normal"===t||"pre-line"===t},t.collapseNewlines=function(t){return"normal"===t},t.trimRight=function(e){if("string"!==typeof e)return"";for(var r=e.length-1;r>=0;r--){var i=e[r];if(!t.isBreakingSpace(i))break;e=e.slice(0,-1)}return e},t.isNewline=function(e){return"string"===typeof e&&t._newlines.indexOf(e.charCodeAt(0))>=0},t.isBreakingSpace=function(e,r){return"string"===typeof e&&t._breakingSpaces.indexOf(e.charCodeAt(0))>=0},t.tokenize=function(e){var r=[],i="";if("string"!==typeof e)return r;for(var n=0;n<e.length;n++){var o=e[n],s=e[n+1];t.isBreakingSpace(o,s)||t.isNewline(o)?(""!==i&&(r.push(i),i=""),r.push(o)):i+=o}return""!==i&&r.push(i),r},t.canBreakWords=function(t,e){return e},t.canBreakChars=function(t,e,r,i,n){return!0},t.wordWrapSplit=function(t){return t.split("")},t.measureFont=function(e){if(t._fonts[e])return t._fonts[e];var r={ascent:0,descent:0,fontSize:0},i=t._canvas,n=t._context;n.font=e;var o=t.METRICS_STRING+t.BASELINE_SYMBOL,s=Math.ceil(n.measureText(o).width),a=Math.ceil(n.measureText(t.BASELINE_SYMBOL).width),h=Math.ceil(t.HEIGHT_MULTIPLIER*a);a=a*t.BASELINE_MULTIPLIER|0,i.width=s,i.height=h,n.fillStyle="#f00",n.fillRect(0,0,s,h),n.font=e,n.textBaseline="alphabetic",n.fillStyle="#000",n.fillText(o,0,a);var u=n.getImageData(0,0,s,h).data,l=u.length,c=4*s,p=0,f=0,d=!1;for(p=0;p<a;++p){for(var _=0;_<c;_+=4)if(255!==u[f+_]){d=!0;break}if(d)break;f+=c}for(r.ascent=a-p,f=l-c,d=!1,p=h;p>a;--p){for(_=0;_<c;_+=4)if(255!==u[f+_]){d=!0;break}if(d)break;f-=c}return r.descent=p-a,r.fontSize=r.ascent+r.descent,t._fonts[e]=r,r},t.clearMetrics=function(e){void 0===e&&(e=""),e?delete t._fonts[e]:t._fonts={}},Object.defineProperty(t,"_canvas",{get:function(){if(!t.__canvas){var e=void 0;try{var r=new OffscreenCanvas(0,0),i=r.getContext("2d");if(i&&i.measureText)return t.__canvas=r,r;e=document.createElement("canvas")}catch(n){e=document.createElement("canvas")}e.width=e.height=10,t.__canvas=e}return t.__canvas},enumerable:!1,configurable:!0}),Object.defineProperty(t,"_context",{get:function(){return t.__context||(t.__context=t._canvas.getContext("2d")),t.__context},enumerable:!1,configurable:!0}),t}();mr._fonts={},mr.METRICS_STRING="|\xc9q\xc5",mr.BASELINE_SYMBOL="M",mr.BASELINE_MULTIPLIER=1.4,mr.HEIGHT_MULTIPLIER=2,mr._newlines=[10,13],mr._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];var yr={texture:!0,children:!1,baseTexture:!0},Tr=function(t){function e(e,r,i){var n=this,o=!1;i||(i=document.createElement("canvas"),o=!0),i.width=3,i.height=3;var s=ht.xE.from(i);return s.orig=new A.Ae,s.trim=new A.Ae,(n=t.call(this,s)||this)._ownCanvas=o,n.canvas=i,n.context=n.canvas.getContext("2d"),n._resolution=R.X.RESOLUTION,n._autoResolution=!0,n._text=null,n._style=null,n._styleListener=null,n._font="",n.text=e,n.style=r,n.localStyleID=-1,n}return function(t,e){function r(){this.constructor=t}cr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype.updateText=function(t){var r=this._style;if(this.localStyleID!==r.styleID&&(this.dirty=!0,this.localStyleID=r.styleID),this.dirty||!t){this._font=this._style.toFontString();var i,n,o=this.context,s=mr.measureText(this._text||" ",this._style,this._style.wordWrap,this.canvas),a=s.width,h=s.height,u=s.lines,l=s.lineHeight,c=s.lineWidths,p=s.maxLineWidth,f=s.fontProperties;this.canvas.width=Math.ceil(Math.ceil(Math.max(1,a)+2*r.padding)*this._resolution),this.canvas.height=Math.ceil(Math.ceil(Math.max(1,h)+2*r.padding)*this._resolution),o.scale(this._resolution,this._resolution),o.clearRect(0,0,this.canvas.width,this.canvas.height),o.font=this._font,o.lineWidth=r.strokeThickness,o.textBaseline=r.textBaseline,o.lineJoin=r.lineJoin,o.miterLimit=r.miterLimit;for(var d=r.dropShadow?2:1,_=0;_<d;++_){var g=r.dropShadow&&0===_,v=g?Math.ceil(Math.max(1,h)+2*r.padding):0,m=v*this._resolution;if(g){o.fillStyle="black",o.strokeStyle="black";var y=r.dropShadowColor,T=(0,x.hex2rgb)("number"===typeof y?y:(0,x.string2hex)(y)),E=r.dropShadowBlur*this._resolution,b=r.dropShadowDistance*this._resolution;o.shadowColor="rgba("+255*T[0]+","+255*T[1]+","+255*T[2]+","+r.dropShadowAlpha+")",o.shadowBlur=E,o.shadowOffsetX=Math.cos(r.dropShadowAngle)*b,o.shadowOffsetY=Math.sin(r.dropShadowAngle)*b+m}else o.fillStyle=this._generateFillStyle(r,u,s),o.strokeStyle=r.stroke,o.shadowColor="black",o.shadowBlur=0,o.shadowOffsetX=0,o.shadowOffsetY=0;var R=(l-f.fontSize)/2;(!e.nextLineHeightBehavior||l-f.fontSize<0)&&(R=0);for(var A=0;A<u.length;A++)i=r.strokeThickness/2,n=r.strokeThickness/2+A*l+f.ascent+R,"right"===r.align?i+=p-c[A]:"center"===r.align&&(i+=(p-c[A])/2),r.stroke&&r.strokeThickness&&this.drawLetterSpacing(u[A],i+r.padding,n+r.padding-v,!0),r.fill&&this.drawLetterSpacing(u[A],i+r.padding,n+r.padding-v)}this.updateTexture()}},e.prototype.drawLetterSpacing=function(t,r,i,n){void 0===n&&(n=!1);var o=this._style.letterSpacing,s=e.experimentalLetterSpacing&&("letterSpacing"in CanvasRenderingContext2D.prototype||"textLetterSpacing"in CanvasRenderingContext2D.prototype);if(0===o||s)return s&&(this.context.letterSpacing=o,this.context.textLetterSpacing=o),void(n?this.context.strokeText(t,r,i):this.context.fillText(t,r,i));for(var a=r,h=Array.from?Array.from(t):t.split(""),u=this.context.measureText(t).width,l=0,c=0;c<h.length;++c){var p=h[c];n?this.context.strokeText(p,a,i):this.context.fillText(p,a,i);for(var f="",d=c+1;d<h.length;++d)f+=h[d];a+=u-(l=this.context.measureText(f).width)+o,u=l}},e.prototype.updateTexture=function(){var t=this.canvas;if(this._style.trim){var e=(0,x.trimCanvas)(t);e.data&&(t.width=e.width,t.height=e.height,this.context.putImageData(e.data,0,0))}var r=this._texture,i=this._style,n=i.trim?0:i.padding,o=r.baseTexture;r.trim.width=r._frame.width=t.width/this._resolution,r.trim.height=r._frame.height=t.height/this._resolution,r.trim.x=-n,r.trim.y=-n,r.orig.width=r._frame.width-2*n,r.orig.height=r._frame.height-2*n,this._onTextureUpdate(),o.setRealSize(t.width,t.height,this._resolution),r.updateUvs(),this._recursivePostUpdateTransform(),this.dirty=!1},e.prototype._render=function(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0),this.updateText(!0),t.prototype._render.call(this,e)},e.prototype.getLocalBounds=function(e){return this.updateText(!0),t.prototype.getLocalBounds.call(this,e)},e.prototype._calculateBounds=function(){this.updateText(!0),this.calculateVertices(),this._bounds.addQuad(this.vertexData)},e.prototype._generateFillStyle=function(t,e,r){var i,n=t.fill;if(!Array.isArray(n))return n;if(1===n.length)return n[0];var o=t.dropShadow?t.dropShadowDistance:0,s=t.padding||0,a=this.canvas.width/this._resolution-o-2*s,h=this.canvas.height/this._resolution-o-2*s,u=n.slice(),l=t.fillGradientStops.slice();if(!l.length)for(var c=u.length+1,p=1;p<c;++p)l.push(p/c);if(u.unshift(n[0]),l.unshift(0),u.push(n[n.length-1]),l.push(1),t.fillGradientType===ar.LINEAR_VERTICAL){i=this.context.createLinearGradient(a/2,s,a/2,h+s);var f=r.fontProperties.fontSize+t.strokeThickness;for(p=0;p<e.length;p++){var d=r.lineHeight*(p-1)+f,_=r.lineHeight*p,g=_;p>0&&d>_&&(g=(_+d)/2);var v=_+f,m=r.lineHeight*(p+1),y=v;p+1<e.length&&m<v&&(y=(v+m)/2);for(var T=(y-g)/h,E=0;E<u.length;E++){var b=0;b="number"===typeof l[E]?l[E]:E/u.length;var x=Math.min(1,Math.max(0,g/h+b*T));x=Number(x.toFixed(5)),i.addColorStop(x,u[E])}}}else{i=this.context.createLinearGradient(s,h/2,a+s,h/2);var R=u.length+1,A=1;for(p=0;p<u.length;p++){var O=void 0;O="number"===typeof l[p]?l[p]:A/R,i.addColorStop(O,u[p]),A++}}return i},e.prototype.destroy=function(e){"boolean"===typeof e&&(e={children:e}),e=Object.assign({},yr,e),t.prototype.destroy.call(this,e),this._ownCanvas&&(this.canvas.height=this.canvas.width=0),this.context=null,this.canvas=null,this._style=null},Object.defineProperty(e.prototype,"width",{get:function(){return this.updateText(!0),Math.abs(this.scale.x)*this._texture.orig.width}
1,set:function(t){this.updateText(!0);var e=(0,x.sign)(this.scale.x)||1;this.scale.x=e*t/this._texture.orig.width,this._width=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.updateText(!0),Math.abs(this.scale.y)*this._texture.orig.height},set:function(t){this.updateText(!0);var e=(0,x.sign)(this.scale.y)||1;this.scale.y=e*t/this._texture.orig.height,this._height=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this._style},set:function(t){t=t||{},this._style=t instanceof dr?t:new dr(t),this.localStyleID=-1,this.dirty=!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){t=String(null===t||void 0===t?"":t),this._text!==t&&(this._text=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resolution",{get:function(){return this._resolution},set:function(t){this._autoResolution=!1,this._resolution!==t&&(this._resolution=t,this.dirty=!0)},enumerable:!1,configurable:!0}),e.nextLineHeightBehavior=!1,e.experimentalLetterSpacing=!1,e}(lr);R.X.UPLOADS_PER_FRAME=4;var Er=function(t,e){return Er=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Er(t,e)};var br=function(){function t(t){this.maxItemsPerFrame=t,this.itemsLeft=0}return t.prototype.beginFrame=function(){this.itemsLeft=this.maxItemsPerFrame},t.prototype.allowedToUpload=function(){return this.itemsLeft-- >0},t}();function xr(t,e){var r=!1;if(t&&t._textures&&t._textures.length)for(var i=0;i<t._textures.length;i++)if(t._textures[i]instanceof ht.xE){var n=t._textures[i].baseTexture;-1===e.indexOf(n)&&(e.push(n),r=!0)}return r}function Rr(t,e){if(t.baseTexture instanceof ht.VL){var r=t.baseTexture;return-1===e.indexOf(r)&&e.push(r),!0}return!1}function Ar(t,e){if(t._texture&&t._texture instanceof ht.xE){var r=t._texture.baseTexture;return-1===e.indexOf(r)&&e.push(r),!0}return!1}function Or(t,e){return e instanceof Tr&&(e.updateText(!0),!0)}function Sr(t,e){if(e instanceof dr){var r=e.toFontString();return mr.measureFont(r),!0}return!1}function Ir(t,e){if(t instanceof Tr){-1===e.indexOf(t.style)&&e.push(t.style),-1===e.indexOf(t)&&e.push(t);var r=t._texture.baseTexture;return-1===e.indexOf(r)&&e.push(r),!0}return!1}function Pr(t,e){return t instanceof dr&&(-1===e.indexOf(t)&&e.push(t),!0)}function Mr(t,e){return e instanceof ht.VL&&(e._glTextures[t.CONTEXT_UID]||t.texture.bind(e),!0)}function Dr(t,e){if(!(e instanceof or))return!1;var r=e.geometry;e.finishPoly(),r.updateBatches();for(var i=r.batches,n=0;n<i.length;n++){var o=i[n].style.texture;o&&Mr(t,o.baseTexture)}return r.batchable||t.geometry.bind(r,e._resolveDirectShader(t)),!0}function Nr(t,e){return t instanceof or&&(e.push(t),!0)}var wr=function(t){function e(e){var r=t.call(this,e)||this;return r.uploadHookHelper=r.renderer,r.registerFindHook(Nr),r.registerUploadHook(Mr),r.registerUploadHook(Dr),r}return function(t,e){function r(){this.constructor=t}Er(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e}(function(){function t(t){var e=this;this.limiter=new br(R.X.UPLOADS_PER_FRAME),this.renderer=t,this.uploadHookHelper=null,this.queue=[],this.addHooks=[],this.uploadHooks=[],this.completes=[],this.ticking=!1,this.delayedTick=function(){e.queue&&e.prepareItems()},this.registerFindHook(Ir),this.registerFindHook(Pr),this.registerFindHook(xr),this.registerFindHook(Rr),this.registerFindHook(Ar),this.registerUploadHook(Or),this.registerUploadHook(Sr)}return t.prototype.upload=function(t,e){"function"===typeof t&&(e=t,t=null),t&&this.add(t),this.queue.length?(e&&this.completes.push(e),this.ticking||(this.ticking=!0,Q.vB.system.addOnce(this.tick,this,Q.uF.UTILITY))):e&&e()},t.prototype.tick=function(){setTimeout(this.delayedTick,0)},t.prototype.prepareItems=function(){for(this.limiter.beginFrame();this.queue.length&&this.limiter.allowedToUpload();){var t=this.queue[0],e=!1;if(t&&!t._destroyed)for(var r=0,i=this.uploadHooks.length;r<i;r++)if(this.uploadHooks[r](this.uploadHookHelper,t)){this.queue.shift(),e=!0;break}e||this.queue.shift()}if(this.queue.length)Q.vB.system.addOnce(this.tick,this,Q.uF.UTILITY);else{this.ticking=!1;var n=this.completes.slice(0);this.completes.length=0;for(r=0,i=n.length;r<i;r++)n[r]()}},t.prototype.registerFindHook=function(t){return t&&this.addHooks.push(t),this},t.prototype.registerUploadHook=function(t){return t&&this.uploadHooks.push(t),this},t.prototype.add=function(t){for(var e=0,r=this.addHooks.length;e<r&&!this.addHooks[e](t,this.queue);e++);if(t instanceof $)for(e=t.children.length-1;e>=0;e--)this.add(t.children[e]);return this},t.prototype.destroy=function(){this.ticking&&Q.vB.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},t}()),Cr=(function(){function t(t){this.maxMilliseconds=t,this.frameStart=0}t.prototype.beginFrame=function(){this.frameStart=Date.now()},t.prototype.allowedToUpload=function(){return Date.now()-this.frameStart<this.maxMilliseconds}}(),function(){function t(t,e,r){void 0===r&&(r=null),this._texture=t instanceof ht.xE?t:null,this.baseTexture=t instanceof ht.VL?t:this._texture.baseTexture,this.textures={},this.animations={},this.data=e;var i=this.baseTexture.resource;this.resolution=this._updateResolution(r||(i?i.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}return t.prototype._updateResolution=function(t){void 0===t&&(t=null);var e=this.data.meta.scale,r=(0,x.getResolutionOfUrl)(t,null);return null===r&&(r=void 0!==e?parseFloat(e):1),1!==r&&this.baseTexture.setRe
1solution(r),r},t.prototype.parse=function(e){this._batchIndex=0,this._callback=e,this._frameKeys.length<=t.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()},t.prototype._processFrames=function(e){for(var r=e,i=t.BATCH_SIZE;r-e<i&&r<this._frameKeys.length;){var n=this._frameKeys[r],o=this._frames[n],s=o.frame;if(s){var a=null,h=null,u=!1!==o.trimmed&&o.sourceSize?o.sourceSize:o.frame,l=new A.Ae(0,0,Math.floor(u.w)/this.resolution,Math.floor(u.h)/this.resolution);a=o.rotated?new A.Ae(Math.floor(s.x)/this.resolution,Math.floor(s.y)/this.resolution,Math.floor(s.h)/this.resolution,Math.floor(s.w)/this.resolution):new A.Ae(Math.floor(s.x)/this.resolution,Math.floor(s.y)/this.resolution,Math.floor(s.w)/this.resolution,Math.floor(s.h)/this.resolution),!1!==o.trimmed&&o.spriteSourceSize&&(h=new A.Ae(Math.floor(o.spriteSourceSize.x)/this.resolution,Math.floor(o.spriteSourceSize.y)/this.resolution,Math.floor(s.w)/this.resolution,Math.floor(s.h)/this.resolution)),this.textures[n]=new ht.xE(this.baseTexture,a,l,h,o.rotated?2:0,o.anchor),ht.xE.addToCache(this.textures[n],n)}r++}},t.prototype._processAnimations=function(){var t=this.data.animations||{};for(var e in t){this.animations[e]=[];for(var r=0;r<t[e].length;r++){var i=t[e][r];this.animations[e].push(this.textures[i])}}},t.prototype._parseComplete=function(){var t=this._callback;this._callback=null,this._batchIndex=0,t.call(this,this.textures)},t.prototype._nextBatch=function(){var e=this;this._processFrames(this._batchIndex*t.BATCH_SIZE),this._batchIndex++,setTimeout((function(){e._batchIndex*t.BATCH_SIZE<e._frameKeys.length?e._nextBatch():(e._processAnimations(),e._parseComplete())}),0)},t.prototype.destroy=function(t){var e;for(var r in void 0===t&&(t=!1),this.textures)this.textures[r].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,t&&(null===(e=this._texture)||void 0===e||e.destroy(),this.baseTexture.destroy()),this._texture=null,this.baseTexture=null},t.BATCH_SIZE=1e3,t}()),Lr=function(){function t(){}return t.use=function(e,r){var i,n,o=this,s=e.name+"_image";if(e.data&&e.type===bt.TYPE.JSON&&e.data.frames&&!o.resources[s]){var a=null===(n=null===(i=e.data)||void 0===i?void 0:i.meta)||void 0===n?void 0:n.related_multi_packs;if(Array.isArray(a))for(var h=function(t){if("string"!==typeof t)return"continue";var r=t.replace(".json",""),i=x.url.resolve(e.url.replace(o.baseUrl,""),t);if(o.resources[r]||Object.values(o.resources).some((function(t){return x.url.format(x.url.parse(t.url))===i})))return"continue";var n={crossOrigin:e.crossOrigin,loadType:bt.LOAD_TYPE.XHR,xhrType:bt.XHR_RESPONSE_TYPE.JSON,parentResource:e,metadata:e.metadata};o.add(r,i,n)},u=0,l=a;u<l.length;u++){h(l[u])}var c={crossOrigin:e.crossOrigin,metadata:e.metadata.imageMetadata,parentResource:e},p=t.getResourcePath(e,o.baseUrl);o.add(s,p,c,(function(t){if(t.error)r(t.error);else{var i=new Cr(t.texture,e.data,e.url);i.parse((function(){e.spritesheet=i,e.textures=i.textures,r()}))}}))}else r()},t.getResourcePath=function(t,e){return t.isDataUrl?t.data.meta.image:x.url.resolve(t.url.replace(e,""),t.data.meta.image)},t}(),Ur=function(t,e){return Ur=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Ur(t,e)};function Gr(t,e){function r(){this.constructor=t}Ur(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var Fr=new A.E9,Br=(function(t){function e(e,r,i){void 0===r&&(r=100),void 0===i&&(i=100);var n=t.call(this,e)||this;return n.tileTransform=new A.wx,n._width=r,n._height=i,n.uvMatrix=n.texture.uvMatrix||new ht.UX(e),n.pluginName="tilingSprite",n.uvRespectAnchor=!1,n}Gr(e,t),Object.defineProperty(e.prototype,"clampMargin",{get:function(){return this.uvMatrix.clampMargin},set:function(t){this.uvMatrix.clampMargin=t,this.uvMatrix.update(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tileScale",{get:function(){return this.tileTransform.scale},set:function(t){this.tileTransform.scale.copyFrom(t)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tilePosition",{get:function(){return this.tileTransform.position},set:function(t){this.tileTransform.position.copyFrom(t)},enumerable:!1,configurable:!0}),e.prototype._onTextureUpdate=function(){this.uvMatrix&&(this.uvMatrix.texture=this._texture),this._cachedTint=16777215},e.prototype._render=function(t){var e=this._texture;e&&e.valid&&(this.tileTransform.updateLocalTransform(),this.uvMatrix.update(),t.batch.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this))},e.prototype._calculateBounds=function(){var t=this._width*-this._anchor._x,e=this._height*-this._anchor._y,r=this._width*(1-this._anchor._x),i=this._height*(1-this._anchor._y);this._bounds.addFrame(this.transform,t,e,r,i)},e.prototype.getLocalBounds=function(e){return 0===this.children.length?(this._bounds.minX=this._width*-this._anchor._x,this._bounds.minY=this._height*-this._anchor._y,this._bounds.maxX=this._width*(1-this._anchor._x),this._bounds.maxY=this._height*(1-this._anchor._y),e||(this._localBoundsRect||(this._localBoundsRect=new A.Ae),e=this._localBoundsRect),this._bounds.getRectangle(e)):t.prototype.getLocalBounds.call(this,e)},e.prototype.containsPoint=function(t){this.worldTransform.applyInverse(t,Fr);var e=this._width,r=this._height,i=-e*this.anchor._x;if(Fr.x>=i&&Fr.x<i+e){var n=-r*this.anchor._y;if(Fr.y>=n&&Fr.y<n+r)return!0}return!1},e.prototype.destroy=function(e){t.prototype.destroy.call(this,e),this.tileTransform=null,this.uvMatrix=null},e.from=function(t,r){return new e(t instanceof ht.xE?t:ht.xE.from(t,r),r.width,r.height)},Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){this._width=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t},enumerable:!1,configurable:!0})}(lr),"#version 100\n#define SHADER_NAME Tiling-Sprite-100\n\nprecision lowp float;\n\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0
1)).xy, 0.0, 1.0);\n\n    vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n"),Xr=new A.y3,kr=function(t){function e(e){var r=t.call(this,e)||this;return e.runners.contextChange.add(r),r.quad=new ht.ud,r.state=ht.ZM.for2d(),r}return Gr(e,t),e.prototype.contextChange=function(){var t=this.renderer,e={globals:t.globalUniforms};this.simpleShader=ht.ex.from(Br,"#version 100\n#define SHADER_NAME Tiling-Sprite-Simple-100\n\nprecision lowp float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\n\nvoid main(void)\n{\n    vec4 texSample = texture2D(uSampler, vTextureCoord);\n    gl_FragColor = texSample * uColor;\n}\n",e),this.shader=t.context.webGLVersion>1?ht.ex.from("#version 300 es\n#define SHADER_NAME Tiling-Sprite-300\n\nprecision lowp float;\n\nin vec2 aVertexPosition;\nin vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nout vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0
1)).xy, 0.0, 1.0);\n\n    vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n","#version 300 es\n#define SHADER_NAME Tiling-Sprite-100\n\nprecision lowp float;\n\nin vec2 vTextureCoord;\n\nout vec4 fragmentColor;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\n    vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);\n    coord = (uMapCoord * vec3(coord, 1.0)).xy;\n    vec2 unclamped = coord;\n    coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n    vec4 texSample = texture(uSampler, coord, unclamped == coord ? 0.0f : -32.0f);// lod-bias very negative to force lod 0\n\n    fragmentColor = texSample * uColor;\n}\n",e):ht.ex.from(Br,"#version 100\n#ifdef GL_EXT_shader_texture_lod\n    #extension GL_EXT_shader_texture_lod : enable\n#endif\n#define SHADER_NAME Tiling-Sprite-100\n\nprecision lowp float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\n    vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);\n    coord = (uMapCoord * vec3(coord, 1.0)).xy;\n    vec2 unclamped = coord;\n    coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n    #ifdef GL_EXT_shader_texture_lod\n        vec4 texSample = unclamped == coord\n            ? texture2D(uSampler, coord) \n            : texture2DLodEXT(uSampler, coord, 0);\n    #else\n        vec4 texSample = texture2D(uSampler, coord);\n    #endif\n\n    gl_FragColor = texSample * uColor;\n}\n",e)},e.prototype.render=function(t){var e=this.renderer,r=this.quad,i=r.vertices;i[0]=i[6]=t._width*-t.anchor.x,i[1]=i[3]=t._height*-t.anchor.y,i[2]=i[4]=t._width*(1-t.anchor.x),i[5]=i[7]=t._height*(1-t.anchor.y);var n=t.uvRespectAnchor?t.anchor.x:0,o=t.uvRespectAnchor?t.anchor.y:0;(i=r.uvs)[0]=i[6]=-n,i[1]=i[3]=-o,i[2]=i[4]=1-n,i[5]=i[7]=1-o,r.invalidate();var s=t._texture,a=s.baseTexture,h=t.tileTransform.localTransform,u=t.uvMatrix,l=a.isPowerOfTwo&&s.frame.width===a.width&&s.frame.height===a.height;l&&(a._glTextures[e.CONTEXT_UID]?l=a.wrapMode!==wt.Nt.CLAMP:a.wrapMode===wt.Nt.CLAMP&&(a.wrapMode=wt.Nt.REPEAT));var c=l?this.simpleShader:this.shader,p=s.width,f=s.height,d=t._width,_=t._height;Xr.set(h.a*p/d,h.b*p/_,h.c*f/d,h.d*f/_,h.tx/d,h.ty/_),Xr.invert(),l?Xr.prepend(u.mapCoord):(c.uniforms.uMapCoord=u.mapCoord.toArray(!0),c.uniforms.uClampFrame=u.uClampFrame,c.uniforms.uClampOffset=u.uClampOffset),c.uniforms.uTransform=Xr.toArray(!0),c.uniforms.uColor=(0,x.premultiplyTintToRgba)(t.tint,t.worldAlpha,c.uniforms.uColor,a.alphaMode),c.uniforms.translationMatrix=t.transform.worldTransform.toArray(!0),c.uniforms.uSampler=s,e.shader.bind(c),e.geometry.bind(r),this.state.blendMode=(0,x.correctBlendMode)(t.blendMode,a.alphaMode),e.state.set(this.state),e.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},e}(ht.bO),Hr=function(t,e){return Hr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Hr(t,e)};function Yr(t,e){function r(){this.constructor=t}Hr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var jr=function(){function t(t,e){this.uvBuffer=t,this.uvMatrix=e,this.data=null,this._bufferUpdateId=-1,this._textureUpdateId=-1,this._updateID=0}return t.prototype.update=function(t){if(t||this._bufferUpdateId!==this.uvBuffer._updateID||this._textureUpdateId!==this.uvMatrix._updateID){this._bufferUpdateId=this.uvBuffer._updateID,this._textureUpdateId=this.uvMatrix._updateID;var e=this.uvBuffer.data;this.data&&this.data.length===e.length||(this.data=new Float32Array(e.length)),this.uvMatrix.multiplyUvs(e,this.data),this._updateID++}},t}(),Vr=new A.E9,Wr=new A.mg,zr=function(t){function e(e,r,i,n){void 0===n&&(n=wt.lg.TRIANGLES);var o=t.call(this)||this;return o.geometry=e,o.shader=r,o.state=i||ht.ZM.for2d(),o.drawMode=n,o.start=0,o.size=0,o.uvs=null,o.indices=null,o.vertexData=new Float32Array(1),o.vertexDirty=-1,o._transformID=-1,o._roun
1dPixels=R.X.ROUND_PIXELS,o.batchUvs=null,o}return Yr(e,t),Object.defineProperty(e.prototype,"geometry",{get:function(){return this._geometry},set:function(t){this._geometry!==t&&(this._geometry&&(this._geometry.refCount--,0===this._geometry.refCount&&this._geometry.dispose()),this._geometry=t,this._geometry&&this._geometry.refCount++,this.vertexDirty=-1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uvBuffer",{get:function(){return this.geometry.buffers[1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"verticesBuffer",{get:function(){return this.geometry.buffers[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"material",{get:function(){return this.shader},set:function(t){this.shader=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(t){this.state.blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(t){this._roundPixels!==t&&(this._transformID=-1),this._roundPixels=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tint",{get:function(){return"tint"in this.shader?this.shader.tint:null},set:function(t){this.shader.tint=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"texture",{get:function(){return"texture"in this.shader?this.shader.texture:null},set:function(t){this.shader.texture=t},enumerable:!1,configurable:!0}),e.prototype._render=function(t){var r=this.geometry.buffers[0].data;this.shader.batchable&&this.drawMode===wt.lg.TRIANGLES&&r.length<2*e.BATCHABLE_SIZE?this._renderToBatch(t):this._renderDefault(t)},e.prototype._renderDefault=function(t){var e=this.shader;e.alpha=this.worldAlpha,e.update&&e.update(),t.batch.flush(),e.uniforms.translationMatrix=this.transform.worldTransform.toArray(!0),t.shader.bind(e),t.state.set(this.state),t.geometry.bind(this.geometry,e),t.geometry.draw(this.drawMode,this.size,this.start,this.geometry.instanceCount)},e.prototype._renderToBatch=function(t){var e=this.geometry,r=this.shader;r.uvMatrix&&(r.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=e.indexBuffer.data,this._tintRGB=r._tintRGB,this._texture=r.texture;var i=this.material.pluginName;t.batch.setObjectRenderer(t.plugins[i]),t.plugins[i].render(this)},e.prototype.calculateVertices=function(){var t=this.geometry.buffers[0],e=t.data,r=t._updateID;if(r!==this.vertexDirty||this._transformID!==this.transform._worldID){this._transformID=this.transform._worldID,this.vertexData.length!==e.length&&(this.vertexData=new Float32Array(e.length));for(var i=this.transform.worldTransform,n=i.a,o=i.b,s=i.c,a=i.d,h=i.tx,u=i.ty,l=this.vertexData,c=0;c<l.length/2;c++){var p=e[2*c],f=e[2*c+1];l[2*c]=n*p+s*f+h,l[2*c+1]=o*p+a*f+u}if(this._roundPixels){var d=R.X.RESOLUTION;for(c=0;c<l.length;++c)l[c]=Math.round((l[c]*d|0)/d)}this.vertexDirty=r}},e.prototype.calculateUvs=function(){var t=this.geometry.buffers[1],e=this.shader;e.uvMatrix.isSimple?this.uvs=t.data:(this.batchUvs||(this.batchUvs=new jr(t,e.uvMatrix)),this.batchUvs.update(),this.uvs=this.batchUvs.data)},e.prototype._calculateBounds=function(){this.calculateVertices(),this._bounds.addVertexData(this.vertexData,0,this.vertexData.length)},e.prototype.containsPoint=function(t){if(!this.getBounds().contains(t.x,t.y))return!1;this.worldTransform.applyInverse(t,Vr);for(var e=this.geometry.getBuffer("aVertexPosition").data,r=Wr.points,i=this.geometry.getIndex().data,n=i.length,o=4===this.drawMode?3:1,s=0;s+2<n;s+=o){var a=2*i[s],h=2*i[s+1],u=2*i[s+2];if(r[0]=e[a],r[1]=e[a+1],r[2]=e[h],r[3]=e[h+1],r[4]=e[u],r[5]=e[u+1],Wr.contains(Vr.x,Vr.y))return!0}return!1},e.prototype.destroy=function(e){t.prototype.destroy.call(this,e),this._cachedTexture&&(this._cachedTexture.destroy(),this._cachedTexture=null),this.geometry=null,this.shader=null,this.state=null,this.uvs=null,this.indices=null,this.vertexData=null},e.BATCHABLE_SIZE=100,e}($),qr=function(t){function e(e,r){var i=this,n={uSampler:e,alpha:1,uTextureMatrix:A.y3.IDENTITY,uColor:new Float32Array([1,1,1,1])};
1return(r=Object.assign({tint:16777215,alpha:1,pluginName:"batch"},r)).uniforms&&Object.assign(n,r.uniforms),(i=t.call(this,r.program||ht.$r.from("attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTextureMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n    vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\n}\n","varying vec2 vTextureCoord;\nuniform vec4 uColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n    gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;\n}\n"),n)||this)._colorDirty=!1,i.uvMatrix=new ht.UX(e),i.batchable=void 0===r.program,i.pluginName=r.pluginName,i.tint=r.tint,i.alpha=r.alpha,i}return Yr(e,t),Object.defineProperty(e.prototype,"texture",{get:function(){return this.uniforms.uSampler},set:function(t){this.uniforms.uSampler!==t&&(this.uniforms.uSampler=t,this.uvMatrix.texture=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this._alpha},set:function(t){t!==this._alpha&&(this._alpha=t,this._colorDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tint",{get:function(){return this._tint},set:function(t){t!==this._tint&&(this._tint=t,this._tintRGB=(t>>16)+(65280&t)+((255&t)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),e.prototype.update=function(){if(this._colorDirty){this._colorDirty=!1;var t=this.texture.baseTexture;(0,x.premultiplyTintToRgba)(this._tint,this._alpha,this.uniforms.uColor,t.alphaMode)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)},e}(ht.ex),Kr=function(t){function e(e,r,i){var n=t.call(this)||this,o=new ht.lW(e),s=new ht.lW(r,!0),a=new ht.lW(i,!0,!0);return n.addAttribute("aVertexPosition",o,2,!1,wt.vK.FLOAT).addAttribute("aTextureCoord",s,2,!1,wt.vK.FLOAT).addIndex(a),n._updateId=-1,n}return Yr(e,t),Object.defineProperty(e.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0}),e}(ht.ZX),Zr=function(t,e){return Zr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Zr(t,e)};var $r=function(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]},Jr=function(){function t(){}return t.test=function(t){return"string"===typeof t&&0===t.indexOf("info face=")},t.parse=function(t){var e=t.match(/^[a-z]+\s+.+$/gm),r={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(var i in e){var n=e[i].match(/^[a-z]+/gm)[0],o=e[i].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),s={};for(var a in o){var h=o[a].split("="),u=h[0],l=h[1].replace(/"/gm,""),c=parseFloat(l),p=isNaN(c)?l:c;s[u]=p}r[n].push(s)}var f=new $r;return r.info.forEach((function(t){return f.info.push({face:t.face,size:parseInt(t.size,10)})})),r.common.forEach((function(t){return f.common.push({lineHeight:parseInt(t.lineHeight,10)})})),r.page.forEach((function(t){return f.page.push({id:parseInt(t.id,10),file:t.file})})),r.char.forEach((function(t){return f.char.push({id:parseInt(t.id,10),page:parseInt(t.page,10),x:parseInt(t.x,10),y:parseInt(t.y,10),width:parseInt(t.width,10),height:parseInt(t.height,10),xoffset:parseInt(t.xoffset,10),yoffset:parseInt(t.yoffset,10),xadvance:parseInt(t.xadvance,10)})})),r.kerning.forEach((function(t){return f.kerning.push({first:parseInt(t.first,10),second:parseInt(t.second,10),amount:parseInt(t.amount,10)})})),r.distanceField.forEach((function(t){return f.distanceField.push({distanceRange:parseInt(t.distanceRange,10),fieldType:t.fieldType})})),f},t}(),Qr=function(){function t(){}return t.test=function(t){return t instanceof XMLDocument&&t.getElementsByTagName("page").length&&null!==t.getElementsByTagName("info")[0].getAttribute("face")},t.parse=function(t){for(var e=new $r,r=t.getElementsByTagName("info"),i=t.getElementsByTagName("common"),n=t.getElementsByTagName("page"),o=t.getElementsByTagName("char"),s=t.getElementsByTagName("kerning"),a=t.getElementsByTagName("distanceField"),h=0;h<r.length;h++)e.info.push({face:r[h].getAttribute("face"),size:parseInt(r[h].getAttribute("size"),10)});for(h=0;h<i.length;h++)e.common.push({lineHeight:parseInt(i[h].getAttribute("lineHeight"),10)});for(h=0;h<n.length;h++)e.page.push({id:parseInt(n[h].getAttribute("id"),10)||0,file:n[h].getAttribute("file")});for(h=0;h<o.length;h++){var u=o[h];e.char.push({id:parseInt(u.getAttribute("id"),10),page:parseInt(u.getAttribute("page"),10)||0,x:parseInt(u.getAttribute("x"),10),y:parseInt(u.getAttribute("y"),10),width:parseInt(u.getAttribute("width"),10),height:parseInt(u.getAttribute("height"),10),xoffset:parseInt(u.getAttribute("xoffset"),10),yoffset:parseInt(u.getAttribute("yoffset"),10),xadvance:parseInt(u.getAttribute("xadvance"),10)})}for(h=0;h<s.length;h++)e.kerning.push({first:parseInt(s[h].getAttribute("first"),10),second:parseInt(s[h].getAttribute("second"),10),amount:parseInt(s[h].getAttribute("amount"),10)});for(h=0;h<a.length;
1h++)e.distanceField.push({fieldType:a[h].getAttribute("fieldType"),distanceRange:parseInt(a[h].getAttribute("distanceRange"),10)});return e},t}(),ti=function(){function t(){}return t.test=function(t){if("string"===typeof t&&t.indexOf("<font>")>-1){var e=(new globalThis.DOMParser).parseFromString(t,"text/xml");return Qr.test(e)}return!1},t.parse=function(t){var e=(new globalThis.DOMParser).parseFromString(t,"text/xml");return Qr.parse(e)},t}(),ei=[Jr,Qr,ti];function ri(t){for(var e=0;e<ei.length;e++)if(ei[e].test(t))return ei[e];return null}function ii(t,e,r,i,n,o,s){var a=r.text,h=r.fontProperties;e.translate(i,n),e.scale(o,o);var u=s.strokeThickness/2,l=-s.strokeThickness/2;if(e.font=s.toFontString(),e.lineWidth=s.strokeThickness,e.textBaseline=s.textBaseline,e.lineJoin=s.lineJoin,e.miterLimit=s.miterLimit,e.fillStyle=function(t,e,r,i,n,o){var s,a=r.fill;if(!Array.isArray(a))return a;if(1===a.length)return a[0];var h=r.dropShadow?r.dropShadowDistance:0,u=r.padding||0,l=t.width/i-h-2*u,c=t.height/i-h-2*u,p=a.slice(),f=r.fillGradientStops.slice();if(!f.length)for(var d=p.length+1,_=1;_<d;++_)f.push(_/d);if(p.unshift(a[0]),f.unshift(0),p.push(a[a.length-1]),f.push(1),r.fillGradientType===ar.LINEAR_VERTICAL){s=e.createLinearGradient(l/2,u,l/2,c+u);var g=0,v=(o.fontProperties.fontSize+r.strokeThickness)/c;for(_=0;_<n.length;_++)for(var m=o.lineHeight*_,y=0;y<p.length;y++){var T=m/c+("number"===typeof f[y]?f[y]:y/p.length)*v,E=Math.max(g,T);E=Math.min(E,1),s.addColorStop(E,p[y]),g=E}}else{s=e.createLinearGradient(u,c/2,l+u,c/2);var b=p.length+1,x=1;for(_=0;_<p.length;_++){var R=void 0;R="number"===typeof f[_]?f[_]:x/b,s.addColorStop(R,p[_]),x++}}return s}(t,e,s,o,[a],r),e.strokeStyle=s.stroke,s.dropShadow){var c=s.dropShadowColor,p=(0,x.hex2rgb)("number"===typeof c?c:(0,x.string2hex)(c)),f=s.dropShadowBlur*o,d=s.dropShadowDistance*o;e.shadowColor="rgba("+255*p[0]+","+255*p[1]+","+255*p[2]+","+s.dropShadowAlpha+")",e.shadowBlur=f,e.shadowOffsetX=Math.cos(s.dropShadowAngle)*d,e.shadowOffsetY=Math.sin(s.dropShadowAngle)*d}else e.shadowColor="black",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0;s.stroke&&s.strokeThickness&&e.strokeText(a,u,l+r.lineHeight-h.descent),s.fill&&e.fillText(a,u,l+r.lineHeight-h.descent),e.setTransform(1,0,0,1,0,0),e.fillStyle="rgba(0, 0, 0, 0)"}function ni(t){return Array.from?Array.from(t):t.split("")}function oi(t){return t.codePointAt?t.codePointAt(0):t.charCodeAt(0)}var si=function(){function t(t,e,r){var i,n,o=t.info[0],s=t.common[0],a=t.page[0],h=t.distanceField[0],u=(0,x.getResolutionOfUrl)(a.file),l={};this._ownsTextures=r,this.font=o.face,this.size=o.size,this.lineHeight=s.lineHeight/u,this.chars={},this.pageTextures=l;for(var c=0;c<t.page.length;c++){var p=t.page[c],f=p.id,d=p.file;l[f]=e instanceof Array?e[c]:e[d],(null===h||void 0===h?void 0:h.fieldType)&&"none"!==h.fieldType&&(l[f].baseTexture.alphaMode=wt.iw.NO_PREMULTIPLIED_ALPHA)}for(c=0;c<t.char.length;c++){var _=t.char[c],g=(f=_.id,_.page),v=t.char[c],m=v.x,y=v.y,T=v.width,E=v.height,b=v.xoffset,R=v.yoffset,O=v.xadvance;m/=u,y/=u,T/=u,E/=u,b/=u,R/=u,O/=u;var S=new A.Ae(m+l[g].frame.x/u,y+l[g].frame.y/u,T,E);this.chars[f]={xOffset:b,yOffset:R,xAdvance:O,kerning:{},texture:new ht.xE(l[g].baseTexture,S),page:g}}for(c=0;c<t.kerning.length;c++){var I=t.kerning[c],P=I.first,M=I.second,D=I.amount;P/=u,M/=u,D/=u,this.chars[M]&&(this.chars[M].kerning[P]=D)}this.distanceFieldRange=null===h||void 0===h?void 0:h.distanceRange,this.distanceFieldType=null!==(n=null===(i=null===h||void 0===h?void 0:h.fieldType)||void 0===i?void 0:i.toLowerCase())&&void 0!==n?n:"none"}return t.prototype.destroy=function(){for(var t in this.chars)this.chars[t].texture.destroy(),this.chars[t].texture=null;for(var t in this.pageTextures)this._ownsTextures&&this.pageTextures[t].destroy(!0),this.pageTextures[t]=null;this.chars=null,this.pageTextures=null},t.install=function(e,r,i){var n;if(e instanceof $r)n=e;else{var o=ri(e);if(!o)throw new Error("Unrecognized data format for font.");n=o.parse(e)}r instanceof ht.xE&&(r=[r]);var s=new t(n,r,i);return t.available[s.font]=s,s},t.uninstall=function(e){var r=t.available[e];if(!r)throw new Error("No font found named '"+e+"'");r.destroy(),delete t.available[e]},t.from=function(e,r,i){if(!e)throw new Error("[BitmapFont] Property `name` is required.");var n=Object.assign({},t.defaultOptions,i),o=n.chars,s=n.padding,a=n.resolution,h=n.textureWidth,u=n.textureHeight,l=function(t){"string"===typeof t&&(t=[t]);for(var e=[],r=0,i=t.length;r<i;r++){var n=t[r];
1if(Array.isArray(n)){if(2!==n.length)throw new Error("[BitmapFont]: Invalid character range length, expecting 2 got "+n.length+".");var o=n[0].charCodeAt(0),s=n[1].charCodeAt(0);if(s<o)throw new Error("[BitmapFont]: Invalid character range.");for(var a=o,h=s;a<=h;a++)e.push(String.fromCharCode(a))}else e.push.apply(e,ni(n))}if(0===e.length)throw new Error("[BitmapFont]: Empty set when resolving characters.");return e}(o),c=r instanceof dr?r:new dr(r),p=h,f=new $r;f.info[0]={face:c.fontFamily,size:c.fontSize},f.common[0]={lineHeight:c.fontSize};for(var d,_,g,v=0,m=0,y=0,T=[],E=0;E<l.length;E++){d||((d=document.createElement("canvas")).width=h,d.height=u,_=d.getContext("2d"),g=new ht.VL(d,{resolution:a}),T.push(new ht.xE(g)),f.page.push({id:T.length-1,file:""}));var b=mr.measureText(l[E],c,!1,d),x=b.width,R=Math.ceil(b.height),A=Math.ceil(("italic"===c.fontStyle?2:1)*x);if(m>=u-R*a){if(0===m)throw new Error("[BitmapFont] textureHeight "+u+"px is too small for "+c.fontSize+"px fonts");--E,d=null,_=null,g=null,m=0,v=0,y=0}else if(y=Math.max(R+b.fontProperties.descent,y),A*a+v>=p)--E,m+=y*a,m=Math.ceil(m),v=0,y=0;else{ii(d,_,b,v,m,a,c);var O=oi(b.text);f.char.push({id:O,page:T.length-1,x:v/a,y:m/a,width:A,height:R,xoffset:0,yoffset:0,xadvance:Math.ceil(x-(c.dropShadow?c.dropShadowDistance:0)-(c.stroke?c.strokeThickness:0))}),v+=(A+2*s)*a,v=Math.ceil(v)}}E=0;for(var S=l.length;E<S;E++)for(var I=l[E],P=0;P<S;P++){var M=l[P],D=_.measureText(I).width,N=_.measureText(M).width,w=_.measureText(I+M).width-(D+N);w&&f.kerning.push({first:oi(I),second:oi(M),amount:w})}var C=new t(f,T,!0);return void 0!==t.available[e]&&t.uninstall(e),t.available[e]=C,C},t.ALPHA=[["a","z"],["A","Z"]," "],t.NUMERIC=[["0","9"]],t.ALPHANUMERIC=[["a","z"],["A","Z"],["0","9"]," "],t.ASCII=[[" ","~"]],t.defaultOptions={resolution:1,textureWidth:512,textureHeight:512,padding:4,chars:t.ALPHANUMERIC},t.available={},t}(),ai=[],hi=[],ui=[],li=(function(t){function e(r,i){void 0===i&&(i={});var n=t.call(this)||this;n._tint=16777215;var o=Object.assign({},e.styleDefaults,i),s=o.align,a=o.tint,h=o.maxWidth,u=o.letterSpacing,l=o.fontName,c=o.fontSize;if(!si.available[l])throw new Error('Missing BitmapFont "'+l+'"');return n._activePagesMeshData=[],n._textWidth=0,n._textHeight=0,n._align=s,n._tint=a,n._fontName=l,n._fontSize=c||si.available[l].size,n.text=r,n._maxWidth=h,n._maxLineHeight=0,n._letterSpacing=u,n._anchor=new A.AB((function(){n.dirty=!0}),n,0,0),n._roundPixels=R.X.ROUND_PIXELS,n.dirty=!0,n._textureCache={},n}(function(t,e){function r(){this.constructor=t}Zr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,t),e.prototype.updateText=function(){for(var t,e=si.available[this._fontName],r=this._fontSize/e.size,i=new A.E9,n=[],o=[],s=[],a=ni(this._text.replace(/(?:\r\n|\r)/g,"\n")||" "),h=this._maxWidth*e.size/this._fontSize,u="none"===e.distanceFieldType?ai:hi,l=null,c=0,p=0,f=0,d=-1,_=0,g=0,v=0,m=0,y=0;y<a.length;y++){var T=oi(H=a[y]);if(/(?:\s)/.test(H)&&(d=y,_=c,m++),"\r"!==H&&"\n"!==H){var E=e.chars[T];if(E){l&&E.kerning[l]&&(i.x+=E.kerning[l]);var b=ui.pop()||{texture:ht.xE.EMPTY,line:0,charCode:0,prevSpaces:0,position:new A.E9};b.texture=E.texture,b.line=f,b.charCode=T,b.position.x=i.x+E.xOffset+this._letterSpacing/2,b.position.y=i.y+E.yOffset,b.prevSpaces=m,n.push(b),c=b.position.x+Math.max(E.xAdvance,E.texture.orig.width),i.x+=E.xAdvance+this._letterSpacing,v=Math.max(v,E.yOffset+E.texture.height),l=T,-1!==d&&h>0&&i.x>h&&(++g,(0,x.removeItems)(n,1+d-g,1+y-d),y=d,d=-1,o.push(_),s.push(n.length>0?n[n.length-1].prevSpaces:0),p=Math.max(p,_),f++,i.x=0,i.y+=e.lineHeight,l=null,m=0)}}else o.push(c),s.push(-1),p=Math.max(p,c),++f,++g,i.x=0,i.y+=e.lineHeight,l=null,m=0}var R=a[a.length-1];"\r"!==R&&"\n"!==R&&(/(?:\s)/.test(R)&&(c=_),o.push(c),p=Math.max(p,c),s.push(-1));var O=[];for(y=0;y<=f;y++){var S=0;"right"===this._align?S=p-o[y]:"center"===this._align?S=(p-o[y])/2:"justify"===this._align&&(S=s[y]<0?0:(p-o[y])/s[y]),O.push(S)}var I=n.length,P={},M=[],D=this._activePagesMeshData;for(y=0;y<D.length;y++)u.push(D[y]);for(y=0;y<I;y++){var N=(j=n[y].texture).baseTexture.uid;
1if(!P[N]){if(!($=u.pop())){var w=new Kr,C=void 0,L=void 0;"none"===e.distanceFieldType?(C=new qr(ht.xE.EMPTY),L=wt.T$.NORMAL):(C=new qr(ht.xE.EMPTY,{program:ht.$r.from("// Mesh material default fragment\r\nattribute vec2 aVertexPosition;\r\nattribute vec2 aTextureCoord;\r\n\r\nuniform mat3 projectionMatrix;\r\nuniform mat3 translationMatrix;\r\nuniform mat3 uTextureMatrix;\r\n\r\nvarying vec2 vTextureCoord;\r\n\r\nvoid main(void)\r\n{\r\n    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\r\n\r\n    vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\r\n}\r\n","// Pixi texture info\r\nvarying vec2 vTextureCoord;\r\nuniform sampler2D uSampler;\r\n\r\n// Tint\r\nuniform vec4 uColor;\r\n\r\n// on 2D applications fwidth is screenScale / glyphAtlasScale * distanceFieldRange\r\nuniform float uFWidth;\r\n\r\nvoid main(void) {\r\n\r\n  // To stack MSDF and SDF we need a non-pre-multiplied-alpha texture.\r\n  vec4 texColor = texture2D(uSampler, vTextureCoord);\r\n\r\n  // MSDF\r\n  float median = texColor.r + texColor.g + texColor.b -\r\n                  min(texColor.r, min(texColor.g, texColor.b)) -\r\n                  max(texColor.r, max(texColor.g, texColor.b));\r\n  // SDF\r\n  median = min(median, texColor.a);\r\n\r\n  float screenPxDistance = uFWidth * (median - 0.5);\r\n  float alpha = clamp(screenPxDistance + 0.5, 0.0, 1.0);\r\n\r\n  // NPM Textures, NPM outputs\r\n  gl_FragColor = vec4(uColor.rgb, uColor.a * alpha);\r\n\r\n}\r\n"),uniforms:{uFWidth:0}}),L=wt.T$.NORMAL_NPM);var U=new zr(w,C);U.blendMode=L,$={index:0,indexCount:0,vertexCount:0,uvsCount:0,total:0,mesh:U,vertices:null,uvs:null,indices:null}}$.index=0,$.indexCount=0,$.vertexCount=0,$.uvsCount=0,$.total=0;var G=this._textureCache;G[N]=G[N]||new ht.xE(j.baseTexture),$.mesh.texture=G[N],$.mesh.tint=this._tint,M.push($),P[N]=$}P[N].total++}for(y=0;y<D.length;y++)-1===M.indexOf(D[y])&&this.removeChild(D[y].mesh);for(y=0;y<M.length;y++)M[y].mesh.parent!==this&&this.addChild(M[y].mesh);for(var y in this._activePagesMeshData=M,P){var F=($=P[y]).total;if(!((null===(t=$.indices)||void 0===t?void 0:t.length)>6*F)||$.vertices.length<2*zr.BATCHABLE_SIZE)$.vertices=new Float32Array(8*F),$.uvs=new Float32Array(8*F),$.indices=new Uint16Array(6*F);else for(var B=$.total,X=$.vertices,k=4*B*2;k<X.length;k++)X[k]=0;$.mesh.size=6*F}for(y=0;y<I;y++){var H,Y=(H=n[y]).position.x+O[H.line]*("justify"===this._align?H.prevSpaces:1);this._roundPixels&&(Y=Math.round(Y));var j,V=Y*r,W=H.position.y*r,z=P[(j=H.texture).baseTexture.uid],q=j.frame,K=j._uvs,Z=z.index++;z.indices[6*Z+0]=0+4*Z,z.indices[6*Z+1]=1+4*Z,z.indices[6*Z+2]=2+4*Z,z.indices[6*Z+3]=0+4*Z,z.indices[6*Z+4]=2+4*Z,z.indices[6*Z+5]=3+4*Z,z.vertices[8*Z+0]=V,z.vertices[8*Z+1]=W,z.vertices[8*Z+2]=V+q.width*r,z.vertices[8*Z+3]=W,z.vertices[8*Z+4]=V+q.width*r,z.vertices[8*Z+5]=W+q.height*r,z.vertices[8*Z+6]=V,z.vertices[8*Z+7]=W+q.height*r,z.uvs[8*Z+0]=K.x0,z.uvs[8*Z+1]=K.y0,z.uvs[8*Z+2]=K.x1,z.uvs[8*Z+3]=K.y1,z.uvs[8*Z+4]=K.x2,z.uvs[8*Z+5]=K.y2,z.uvs[8*Z+6]=K.x3,z.uvs[8*Z+7]=K.y3}for(var y in this._textWidth=p*r,this._textHeight=(i.y+e.lineHeight)*r,P){var $=P[y];if(0!==this.anchor.x||0!==this.anchor.y)for(var J=0,Q=this._textWidth*this.anchor.x,tt=this._textHeight*this.anchor.y,et=0;et<$.total;et++)$.vertices[J++]-=Q,$.vertices[J++]-=tt,$.vertices[J++]-=Q,$.vertices[J++]-=tt,$.vertices[J++]-=Q,$.vertices[J++]-=tt,$.vertices[J++]-=Q,$.vertices[J++]-=tt;this._maxLineHeight=v*r;var rt=$.mesh.geometry.getBuffer("aVertexPosition"),it=$.mesh.geometry.getBuffer("aTextureCoord"),nt=$.mesh.geometry.getIndex();
1rt.data=$.vertices,it.data=$.uvs,nt.data=$.indices,rt.update(),it.update(),nt.update()}for(y=0;y<n.length;y++)ui.push(n[y])},e.prototype.updateTransform=function(){this.validate(),this.containerUpdateTransform()},e.prototype._render=function(e){var r=si.available[this._fontName],i=r.distanceFieldRange,n=r.distanceFieldType,o=r.size;if("none"!==n)for(var s=this.worldTransform,a=s.a,h=s.b,u=s.c,l=s.d,c=Math.sqrt(a*a+h*h),p=Math.sqrt(u*u+l*l),f=(Math.abs(c)+Math.abs(p))/2,d=this._fontSize/o,_=0,g=this._activePagesMeshData;_<g.length;_++){g[_].mesh.shader.uniforms.uFWidth=f*i*d*e.resolution}t.prototype._render.call(this,e)},e.prototype.getLocalBounds=function(){return this.validate(),t.prototype.getLocalBounds.call(this)},e.prototype.validate=function(){this.dirty&&(this.updateText(),this.dirty=!1)},Object.defineProperty(e.prototype,"tint",{get:function(){return this._tint},set:function(t){if(this._tint!==t){this._tint=t;for(var e=0;e<this._activePagesMeshData.length;e++)this._activePagesMeshData[e].mesh.tint=t}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this._align},set:function(t){this._align!==t&&(this._align=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontName",{get:function(){return this._fontName},set:function(t){if(!si.available[t])throw new Error('Missing BitmapFont "'+t+'"');this._fontName!==t&&(this._fontName=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this._fontSize},set:function(t){this._fontSize!==t&&(this._fontSize=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"anchor",{get:function(){return this._anchor},set:function(t){"number"===typeof t?this._anchor.set(t):this._anchor.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){t=String(null===t||void 0===t?"":t),this._text!==t&&(this._text=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxWidth",{get:function(){return this._maxWidth},set:function(t){this._maxWidth!==t&&(this._maxWidth=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxLineHeight",{get:function(){return this.validate(),this._maxLineHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textWidth",{get:function(){return this.validate(),this._textWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(t){t!==this._roundPixels&&(this._roundPixels=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textHeight",{get:function(){return this.validate(),this._textHeight},enumerable:!1,configurable:!0}),e.prototype.destroy=function(e){var r=this._textureCache;for(var i in r){r[i].destroy(),delete r[i]}this._textureCache=null,t.prototype.destroy.call(this,e)},e.styleDefaults={align:"left",tint:16777215,maxWidth:0,letterSpacing:0}}($),function(){function t(){}return t.add=function(){bt.setExtensionXhrType("fnt",bt.XHR_RESPONSE_TYPE.TEXT)},t.use=function(e,r){var i=ri(e.data);if(i)for(var n=t.getBaseUrl(this,e),o=i.parse(e.data),s={},a=function(t){s[t.metadata.pageFile]=t.texture,Object.keys(s).length===o.page.length&&(e.bitmapFont=si.install(o,s,!0),r())},h=0;h<o.page.length;++h){var u=o.page[h].file,l=n+u,c=!1;for(var p in this.resources){var f=this.resources[p];if(f.url===l){f.metadata.pageFile=u,f.texture?a(f):f.onAfterMiddleware.add(a),c=!0;break}}if(!c){var d={crossOrigin:e.crossOrigin,loadType:bt.LOAD_TYPE.IMAGE,metadata:Object.assign({pageFile:u},e.metadata.imageMetadata),parentResource:e};this.add(l,d,a)}}else r()},t.getBaseUrl=function(e,r){var i=r.isDataUrl?"":t.dirname(r.url);return r.isDataUrl&&("."===i&&(i=""),e.baseUrl&&i&&"/"===e.baseUrl.charAt(e.baseUrl.length-1)&&(i+="/")),(i=i.replace(e.baseUrl,""))&&"/"!==i.charAt(i.length-1)&&(i+="/"),i},t.dirname=function(t){var e=t.replace(/\\/g,"/").replace(/\/$/,"").replace(/\/[^\/]*$/,"");return e===t?".":""===e?"/":e},t}
1()),ci=function(t,e){return ci=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},ci(t,e)};!function(t){function e(e){void 0===e&&(e=1);var r=t.call(this,ht.kP,"varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float uAlpha;\n\nvoid main(void)\n{\n   gl_FragColor = texture2D(uSampler, vTextureCoord) * uAlpha;\n}\n",{uAlpha:1})||this;return r.alpha=e,r}(function(t,e){function r(){this.constructor=t}ci(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,t),Object.defineProperty(e.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(t){this.uniforms.uAlpha=t},enumerable:!1,configurable:!0})}(ht.wn);var pi=function(t,e){return pi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},pi(t,e)};function fi(t,e){function r(){this.constructor=t}pi(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var di,_i,gi,vi,mi,yi,Ti,Ei,bi,xi,Ri,Ai,Oi,Si,Ii,Pi,Mi,Di,Ni,wi={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]},Ci=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{","    gl_FragColor = vec4(0.0);","    %blur%","}"].join("\n");!function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"}(di||(di={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"}(_i||(_i={})),function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"}(gi||(gi={})),function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"}(vi||(vi={})),function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(mi||(mi={})),function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"}(yi||(yi={})),function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"}(Ti||(Ti={})),function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"}(Ei||(Ei={})),function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"}(bi||(bi={})),function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"}(xi||(xi={})),function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(Ri||(Ri={})),function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"}(Ai||(Ai={})),function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"}(Oi||(Oi={})),function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT"}(Si||(Si={})),function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"}(Ii||(Ii={})),function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"}(Pi||(Pi={})),function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE"}(Mi||(Mi={})),function(t){t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH"}(Di||(Di={})),function(t){t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"}(Ni||(Ni={}));var Li=function(t){function e(e,r,i,n,o){void 0===r&&(r=8),void 0===i&&(i=4),void 0===n&&(n=R.X.FILTER_RESOLUTION),void 0===o&&(o=5);var s=this,a=function(t,e){var r,i=Math.ceil(t/2),n="\n    attribute vec2 aVertexPosition;\n\n    uniform mat3 projectionMatrix;\n\n    uniform float strength;\n\n    varying vec2 vBlurTexCoords[%size%];\n\n    uniform vec4 inputSize;\n    uniform vec4 outputFrame;\n\n    vec4 filterVertexPosition( void )\n    {\n        vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;
1\n\n        return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n    }\n\n    vec2 filterTextureCoord( void )\n    {\n        return aVertexPosition * (outputFrame.zw * inputSize.zw);\n    }\n\n    void main(void)\n    {\n        gl_Position = filterVertexPosition();\n\n        vec2 textureCoord = filterTextureCoord();\n        %blur%\n    }",o="";r=e?"vBlurTexCoords[%index%] =  textureCoord + vec2(%sampleIndex% * strength, 0.0);":"vBlurTexCoords[%index%] =  textureCoord + vec2(0.0, %sampleIndex% * strength);";for(var s=0;s<t;s++){var a=r.replace("%index%",s.toString());o+=a=a.replace("%sampleIndex%",s-(i-1)+".0"),o+="\n"}return(n=n.replace("%blur%",o)).replace("%size%",t.toString())}(o,e),h=function(t){for(var e,r=wi[t],i=r.length,n=Ci,o="",s=0;s<t;s++){var a="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;".replace("%index%",s.toString());e=s,s>=i&&(e=t-s-1),o+=a=a.replace("%value%",r[e].toString()),o+="\n"}return(n=n.replace("%blur%",o)).replace("%size%",t.toString())}(o);return(s=t.call(this,a,h)||this).horizontal=e,s.resolution=n,s._quality=0,s.quality=i,s.blur=r,s}return fi(e,t),e.prototype.apply=function(t,e,r,i){if(r?this.horizontal?this.uniforms.strength=1/r.width*(r.width/e.width):this.uniforms.strength=1/r.height*(r.height/e.height):this.horizontal?this.uniforms.strength=1/t.renderer.width*(t.renderer.width/e.width):this.uniforms.strength=1/t.renderer.height*(t.renderer.height/e.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,1===this.passes)t.applyFilter(this,e,r,i);else{var n=t.getFilterTexture(),o=t.renderer,s=e,a=n;this.state.blend=!1,t.applyFilter(this,s,a,Si.CLEAR);for(var h=1;h<this.passes-1;h++){t.bindAndClear(s,Si.BLIT),this.uniforms.uSampler=a;var u=a;a=s,s=u,o.shader.bind(this),o.geometry.draw(5)}this.state.blend=!0,t.applyFilter(this,a,r,i),t.returnFilterTexture(n)}},Object.defineProperty(e.prototype,"blur",{get:function(){return this.strength},set:function(t){this.padding=1+2*Math.abs(t),this.strength=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quality",{get:function(){return this._quality},set:function(t){this._quality=t,this.passes=t},enumerable:!1,configurable:!0}),e}(ht.wn),Ui=(function(t){function e(e,r,i,n){void 0===e&&(e=8),void 0===r&&(r=4),void 0===i&&(i=R.X.FILTER_RESOLUTION),void 0===n&&(n=5);var o=t.call(this)||this;return o.blurXFilter=new Li(!0,e,r,i,n),o.blurYFilter=new Li(!1,e,r,i,n),o.resolution=i,o.quality=r,o.blur=e,o.repeatEdgePixels=!1,o}fi(e,t),e.prototype.apply=function(t,e,r,i){var n=Math.abs(this.blurXFilter.strength),o=Math.abs(this.blurYFilter.strength);if(n&&o){var s=t.getFilterTexture();this.blurXFilter.apply(t,e,s,Si.CLEAR),this.blurYFilter.apply(t,s,r,i),t.returnFilterTexture(s)}else o?this.blurYFilter.apply(t,e,r,i):this.blurXFilter.apply(t,e,r,i)},e.prototype.updatePadding=function(){this._repeatEdgePixels?this.padding=0:this.padding=2*Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))},Object.defineProperty(e.prototype,"blur",{get:function(){return this.blurXFilter.blur},set:function(t){this.blurXFilter.blur=this.blurYFilter.blur=t,this.updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quality",{get:function(){return this.blurXFilter.quality},set:function(t){this.blurXFilter.quality=this.blurYFilter.quality=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurX",{get:function(){return this.blurXFilter.blur},set:function(t){this.blurXFilter.blur=t,this.updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurY",{get:function(){return this.blurYFilter.blur},set:function(t){this.blurYFilter.blur=t,this.updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blendMode",{get:function(){return this.blurYFilter.blendMode},set:function(t){this.blurYFilter.blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"repeatEdgePixels",{get:function(){return this._repeatEdgePixels},set:function(t){this._repeatEdgePixels=t,this.updatePadding()}
1,enumerable:!1,configurable:!0})}(ht.wn),function(t,e){return Ui=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Ui(t,e)});var Gi=function(t){function e(){var e=this,r={m:new Float32Array([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]),uAlpha:1};return(e=t.call(this,ht.Y9,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform float m[20];\nuniform float uAlpha;\n\nvoid main(void)\n{\n    vec4 c = texture2D(uSampler, vTextureCoord);\n\n    if (uAlpha == 0.0) {\n        gl_FragColor = c;\n        return;\n    }\n\n    // Un-premultiply alpha before applying the color matrix. See issue #3539.\n    if (c.a > 0.0) {\n      c.rgb /= c.a;\n    }\n\n    vec4 result;\n\n    result.r = (m[0] * c.r);\n        result.r += (m[1] * c.g);\n        result.r += (m[2] * c.b);\n        result.r += (m[3] * c.a);\n        result.r += m[4];\n\n    result.g = (m[5] * c.r);\n        result.g += (m[6] * c.g);\n        result.g += (m[7] * c.b);\n        result.g += (m[8] * c.a);\n        result.g += m[9];\n\n    result.b = (m[10] * c.r);\n       result.b += (m[11] * c.g);\n       result.b += (m[12] * c.b);\n       result.b += (m[13] * c.a);\n       result.b += m[14];\n\n    result.a = (m[15] * c.r);\n       result.a += (m[16] * c.g);\n       result.a += (m[17] * c.b);\n       result.a += (m[18] * c.a);\n       result.a += m[19];\n\n    vec3 rgb = mix(c.rgb, result.rgb, uAlpha);\n\n    // Premultiply alpha again.\n    rgb *= result.a;\n\n    gl_FragColor = vec4(rgb, result.a);\n}\n",r)||this).alpha=1,e}return function(t,e){function r(){this.constructor=t}Ui(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype._loadMatrix=function(t,e){void 0===e&&(e=!1);var r=t;e&&(this._multiply(r,this.uniforms.m,t),r=this._colorMatrix(r)),this.uniforms.m=r},e.prototype._multiply=function(t,e,r){return t[0]=e[0]*r[0]+e[1]*r[5]+e[2]*r[10]+e[3]*r[15],t[1]=e[0]*r[1]+e[1]*r[6]+e[2]*r[11]+e[3]*r[16],t[2]=e[0]*r[2]+e[1]*r[7]+e[2]*r[12]+e[3]*r[17],t[3]=e[0]*r[3]+e[1]*r[8]+e[2]*r[13]+e[3]*r[18],t[4]=e[0]*r[4]+e[1]*r[9]+e[2]*r[14]+e[3]*r[19]+e[4],t[5]=e[5]*r[0]+e[6]*r[5]+e[7]*r[10]+e[8]*r[15],t[6]=e[5]*r[1]+e[6]*r[6]+e[7]*r[11]+e[8]*r[16],t[7]=e[5]*r[2]+e[6]*r[7]+e[7]*r[12]+e[8]*r[17],t[8]=e[5]*r[3]+e[6]*r[8]+e[7]*r[13]+e[8]*r[18],t[9]=e[5]*r[4]+e[6]*r[9]+e[7]*r[14]+e[8]*r[19]+e[9],t[10]=e[10]*r[0]+e[11]*r[5]+e[12]*r[10]+e[13]*r[15],t[11]=e[10]*r[1]+e[11]*r[6]+e[12]*r[11]+e[13]*r[16],t[12]=e[10]*r[2]+e[11]*r[7]+e[12]*r[12]+e[13]*r[17],t[13]=e[10]*r[3]+e[11]*r[8]+e[12]*r[13]+e[13]*r[18],t[14]=e[10]*r[4]+e[11]*r[9]+e[12]*r[14]+e[13]*r[19]+e[14],t[15]=e[15]*r[0]+e[16]*r[5]+e[17]*r[10]+e[18]*r[15],t[16]=e[15]*r[1]+e[16]*r[6]+e[17]*r[11]+e[18]*r[16],t[17]=e[15]*r[2]+e[16]*r[7]+e[17]*r[12]+e[18]*r[17],t[18]=e[15]*r[3]+e[16]*r[8]+e[17]*r[13]+e[18]*r[18],t[19]=e[15]*r[4]+e[16]*r[9]+e[17]*r[14]+e[18]*r[19]+e[19],t},e.prototype._colorMatrix=function(t){var e=new Float32Array(t);return e[4]/=255,e[9]/=255,e[14]/=255,e[19]/=255,e},e.prototype.brightness=function(t,e){var r=[t,0,0,0,0,0,t,0,0,0,0,0,t,0,0,0,0,0,1,0];this._loadMatrix(r,e)},e.prototype.tint=function(t,e){var r=[(t>>16&255)/255,0,0,0,0,0,(t>>8&255)/255,0,0,0,0,0,(255&t)/255,0,0,0,0,0,1,0];this._loadMatrix(r,e)},e.prototype.greyscale=function(t,e){var r=[t,t,t,0,0,t,t,t,0,0,t,t,t,0,0,0,0,0,1,0];this._loadMatrix(r,e)},e.prototype.blackAndWhite=function(t){this._loadMatrix([.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],t)},e.prototype.hue=function(t,e){t=(t||0)/180*Math.PI;var r=Math.cos(t),i=Math.sin(t),n=1/3,o=(0,Math.sqrt)(n),s=[r+(1-r)*n,n*(1-r)-o*i,n*(1-r)+o*i,0,0,n*(1-r)+o*i,r+n*(1-r),n*(1-r)-o*i,0,0,n*(1-r)-o*i,n*(1-r)+o*i,r+n*(1-r),0,0,0,0,0,1,0];this._loadMatrix(s,e)},e.prototype.contrast=function(t,e){var r=(t||0)+1,i=-.5*(r-1),n=[r,0,0,0,i,0,r,0,0,i,0,0,r,0,i,0,0,0,1,0];this._loadMatrix(n,e)},e.prototype.saturate=function(t,e){void 0===t&&(t=0);var r=2*t/3+1,i=-.5*(r-1),n=[r,i,i,0,0,i,r,i,0,0,i,i,r,0,0,0,0,0,1,0];this._loadMatrix(n,e)},e.prototype.desaturate=function(){this.saturate(-1)},e.prototype.negative=function(t){this._loadMatrix([-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0],t)},e.prototype.sepia=function(t){this._loadMatrix([.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],t)},e.prototype.technicolor=function(t){this._loadMatrix([1.9125277891456083,-.8545344976951645,-.091555084827
155585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0],t)},e.prototype.polaroid=function(t){this._loadMatrix([1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],t)},e.prototype.toBGR=function(t){this._loadMatrix([0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],t)},e.prototype.kodachrome=function(t){this._loadMatrix([1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0],t)},e.prototype.browni=function(t){this._loadMatrix([.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0],t)},e.prototype.vintage=function(t){this._loadMatrix([.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0],t)},e.prototype.colorTone=function(t,e,r,i,n){var o=((r=r||16770432)>>16&255)/255,s=(r>>8&255)/255,a=(255&r)/255,h=((i=i||3375104)>>16&255)/255,u=(i>>8&255)/255,l=(255&i)/255,c=[.3,.59,.11,0,0,o,s,a,t=t||.2,0,h,u,l,e=e||.15,0,o-h,s-u,a-l,0,0];this._loadMatrix(c,n)},e.prototype.night=function(t,e){var r=[-2*(t=t||.1),-t,0,0,0,-t,0,t,0,0,0,t,2*t,0,0,0,0,0,1,0];this._loadMatrix(r,e)},e.prototype.predator=function(t,e){var r=[11.224130630493164*t,-4.794486999511719*t,-2.8746118545532227*t,0*t,.40342438220977783*t,-3.6330697536468506*t,9.193157196044922*t,-2.951810836791992*t,0*t,-1.316135048866272*t,-3.2184197902679443*t,-4.2375030517578125*t,7.476448059082031*t,0*t,.8044459223747253*t,0,0,0,1,0];this._loadMatrix(r,e)},e.prototype.lsd=function(t){this._loadMatrix([2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],t)},e.prototype.reset=function(){this._loadMatrix([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],!1)},Object.defineProperty(e.prototype,"matrix",{get:function(){return this.uniforms.m},set:function(t){this.uniforms.m=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(t){this.uniforms.uAlpha=t},enumerable:!1,configurable:!0}),e}(ht.wn);Gi.prototype.grayscale=Gi.prototype.greyscale;var Fi=function(t,e){return Fi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Fi(t,e)};!function(t){function e(e,r){var i=this,n=new A.y3;return e.renderable=!1,(i=t.call(this,"attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\nuniform mat3 filterMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vFilterCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n    vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n    return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n    return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n\tgl_Position = filterVertexPosition();\n\tvTextureCoord = filterTextureCoord();\n\tvFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0)  ).xy;\n}\n","varying vec2 vFilterCoord;\nvarying vec2 vTextureCoord;\n\nuniform vec2 scale;\nuniform mat2 rotation;\nuniform sampler2D uSampler;\nuniform sampler2D mapSampler;\n\nuniform highp vec4 inputSize;\nuniform vec4 inputClamp;\n\nvoid main(void)\n{\n  vec4 map =  texture2D(mapSampler, vFilterCoord);\n\n  map -= 0.5;\n  map.xy = scale * inputSize.zw * (rotation * map.xy);\n\n  gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw));\n}\n",{mapSampler:e._texture,filterMatrix:n,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])})||this).maskSprite=e,i.maskMatrix=n,null!==r&&void 0!==r||(r=20),i.scale=new A.E9(r,r),i}(function(t,e){function r(){this.constructor=t}Fi(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,t),e.prototype.apply=function(t,e,r,i){this.uniforms.filterMatrix=t.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var n=this.maskSprite.worldTransform,o=Math.sqrt(n.a*n.a+n.b*n.b),s=Math.sqrt(n.c*n.c+n.d*n.d);0!==o&&0!==s&&(this.uniforms.rotation[0]=n.a/o,this.uniforms.rotation[1]=n.b/o,this.uniforms.rotation[2]=n.c/s,this.uniforms.rotation[3]=n.d/s),t.applyFilter(this,e,r,i)},Object.defineProperty(e.prototype,"map",{get:function(){return this.uniforms.mapSampler},set:function(t){this.uniforms.mapSampler=t}
1,enumerable:!1,configurable:!0})}(ht.wn);var Bi=function(t,e){return Bi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Bi(t,e)};!function(t){function e(){return t.call(this,"\nattribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vFragCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n    vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n    return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvoid texcoords(vec2 fragCoord, vec2 inverseVP,\n               out vec2 v_rgbNW, out vec2 v_rgbNE,\n               out vec2 v_rgbSW, out vec2 v_rgbSE,\n               out vec2 v_rgbM) {\n    v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP;\n    v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP;\n    v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP;\n    v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP;\n    v_rgbM = vec2(fragCoord * inverseVP);\n}\n\nvoid main(void) {\n\n   gl_Position = filterVertexPosition();\n\n   vFragCoord = aVertexPosition * outputFrame.zw;\n\n   texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n}\n",'varying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vFragCoord;\nuniform sampler2D uSampler;\nuniform highp vec4 inputSize;\n\n\n/**\n Basic FXAA implementation based on the code on geeks3d.com with the\n modification that the texture2DLod stuff was removed since it\'s\n unsupported by WebGL.\n\n --\n\n From:\n https://github.com/mitsuhiko/webgl-meincraft\n\n Copyright (c) 2011 by Armin Ronacher.\n\n Some rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are\n met:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following\n disclaimer in the documentation and/or other materials provided\n with the distribution.\n\n * The names of the contributors may not be used to endorse or\n promote products derived from this software without specific\n prior written permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#ifndef FXAA_REDUCE_MIN\n#define FXAA_REDUCE_MIN   (1.0/ 128.0)\n#endif\n#ifndef FXAA_REDUCE_MUL\n#define FXAA_REDUCE_MUL   (1.0 / 8.0)\n#endif\n#ifndef FXAA_SPAN_MAX\n#define FXAA_SPAN_MAX     8.0\n#endif\n\n//optimized version for mobile, where dependent\n//texture reads can be a bottleneck\nvec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 inverseVP,\n          vec2 v_rgbNW, vec2 v_rgbNE,\n          vec2 v_rgbSW, vec2 v_rgbSE,\n          vec2 v_rgbM) {\n    vec4 color;\n    vec3 rgbNW = texture2D(tex, v_rgbNW).xyz;\n    vec3 rgbNE = texture2D(tex, v_rgbNE).xyz;\n    vec3 rgbSW = texture2D(tex, v_rgbSW).xyz;\n    vec3 rgbSE = texture2D(tex, v_rgbSE).xyz;\n    vec4 texColor = texture2D(tex, v_rgbM);\n    vec3 rgbM  = texColor.xyz;\n    vec3 luma = vec3(0.299, 0.587, 0.114);\n    float lumaNW = dot(rgbNW, luma);\n    float lumaNE = dot(rgbNE, luma);\n    float lumaSW = dot(rgbSW, luma);\n    float lumaSE = dot(rgbSE, luma);\n    float lumaM  = dot(rgbM,  luma);\n    float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE)));\n    float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE)));\n\n    mediump vec2 dir;\n    dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));\n    dir.y =  ((lumaNW + lumaSW) - (lumaNE + lumaSE));
1\n\n    float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) *\n                          (0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN);\n\n    float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce);\n    dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX),\n              max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),\n                  dir * rcpDirMin)) * inverseVP;\n\n    vec3 rgbA = 0.5 * (\n                       texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +\n                       texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);\n    vec3 rgbB = rgbA * 0.5 + 0.25 * (\n                                     texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz +\n                                     texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz);\n\n    float lumaB = dot(rgbB, luma);\n    if ((lumaB < lumaMin) || (lumaB > lumaMax))\n        color = vec4(rgbA, texColor.a);\n    else\n        color = vec4(rgbB, texColor.a);\n    return color;\n}\n\nvoid main() {\n\n      vec4 color;\n\n      color = fxaa(uSampler, vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n\n      gl_FragColor = color;\n}\n')||this}(function(t,e){function r(){this.constructor=t}Bi(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,t)}(ht.wn);var Xi=function(t,e){return Xi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Xi(t,e)};var ki,Hi,Yi,ji,Vi,Wi,zi,qi,Ki,Zi,$i,Ji,Qi,tn,en,rn,nn,on,sn;!function(t){function e(e,r){void 0===e&&(e=.5),void 0===r&&(r=Math.random());var i=t.call(this,ht.Y9,"precision highp float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform float uNoise;\nuniform float uSeed;\nuniform sampler2D uSampler;\n\nfloat rand(vec2 co)\n{\n    return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main()\n{\n    vec4 color = texture2D(uSampler, vTextureCoord);\n    float randomValue = rand(gl_FragCoord.xy * uSeed);\n    float diff = (randomValue - 0.5) * uNoise;\n\n    // Un-premultiply alpha before applying the color matrix. See issue #3539.\n    if (color.a > 0.0) {\n        color.rgb /= color.a;\n    }\n\n    color.r += diff;\n    color.g += diff;\n    color.b += diff;\n\n    // Premultiply alpha again.\n    color.rgb *= color.a;\n\n    gl_FragColor = color;\n}\n",{uNoise:0,uSeed:0})||this;return i.noise=e,i.seed=r,i}(function(t,e){function r(){this.constructor=t}Xi(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,t),Object.defineProperty(e.prototype,"noise",{get:function(){return this.uniforms.uNoise},set:function(t){this.uniforms.uNoise=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"seed",{get:function(){return this.uniforms.uSeed},set:function(t){this.uniforms.uSeed=t},enumerable:!1,configurable:!0})}(ht.wn);!function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"}(ki||(ki={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"}(Hi||(Hi={})),function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"}(Yi||(Yi={})),function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"}(ji||(ji={})),function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(Vi||(Vi={})),function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"}(Wi||(Wi={})),function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"}(zi||(zi={})),function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"}
1(qi||(qi={})),function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"}(Ki||(Ki={})),function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"}(Zi||(Zi={})),function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}($i||($i={})),function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"}(Ji||(Ji={})),function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"}(Qi||(Qi={})),function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT"}(tn||(tn={})),function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"}(en||(en={})),function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"}(rn||(rn={})),function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE"}(nn||(nn={})),function(t){t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH"}(on||(on={})),function(t){t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"}(sn||(sn={}));var an=new A.y3;q.prototype._cacheAsBitmap=!1,q.prototype._cacheData=null,q.prototype._cacheAsBitmapResolution=null,q.prototype._cacheAsBitmapMultisample=on.NONE;var hn=function(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.originalContainsPoint=null,this.sprite=null};Object.defineProperties(q.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(t){t!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=t,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(t){t!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=t,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(t){var e;this._cacheAsBitmap!==t&&(this._cacheAsBitmap=t,t?(this._cacheData||(this._cacheData=new hn),(e=this._cacheData).originalRender=this.render,e.originalRenderCanvas=this.renderCanvas,e.originalUpdateTransform=this.updateTransform,e.originalCalculateBounds=this.calculateBounds,e.originalGetLocalBounds=this.getLocalBounds,e.originalDestroy=this.destroy,e.originalContainsPoint=this.containsPoint,e.originalMask=this._mask,e.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):((e=this._cacheData).sprite&&this._destroyCachedDisplayObject(),this.render=e.originalRender,this.renderCanvas=e.originalRenderCanvas,this.calculateBounds=e.originalCalculateBounds,this.getLocalBounds=e.originalGetLocalBounds,this.destroy=e.originalDestroy,this.updateTransform=e.originalUpdateTransform,this.containsPoint=e.originalContainsPoint,this._mask=e.originalMask,this.filterArea=e.originalFilterArea))}}}),q.prototype._renderCached=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(t),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(t))},q.prototype._initCachedDisplayObject=function(t){var e;if(!this._cacheData||!this._cacheData.sprite){var r=this.alpha;this.alpha=1,t.batch.flush();var i=this.getLocalBounds(null,!0).clone();if(this.filters&&this.filters.length){var n=this.filters[0].padding;i.pad(n)}i.ceil(R.X.RESOLUTION);var o=t.renderTexture.current,s=t.renderTexture.sourceFrame.clone(),a=t.renderTexture.destinationFrame.clone(),h=t.projection.transform,u=ht.TI.create({width:i.width,height:i.height,resolution:this.cacheAsBitmapResolution||t.resolution,multisample:null!==(e=this.cacheAsBitmapMultisample)&&void 0!==e?e:t.multisample}),l="cacheAsBitmap_"+(0,x.uid)();this._cacheData.textureCacheId=l,ht.VL.addToCache(u.baseTexture,l),ht.xE.addToCache(u,l);var c=this.transform.localTransform.copyTo(an).invert().translate(-i.x,-i.y);this.render=this._cacheData.originalRender,t.render(this,{renderTexture:u,clear:!0,transform:c,skipUpdateTransform:!1}),t.framebuffer.blit(),t.projection.transform=h,t.renderTexture.bind(o,s,a),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=r;var p=new lr(u);p.transform.worldTransform=this.transform.worldTransform,p.anchor.x=-i.x/i.width,p.anchor.y=-i.y/i.height,p.alpha=r,p._bounds=this._bounds,this._cacheData.sprite=p,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=p.containsPoint.bind(p)}},q.prototype._renderCachedCanvas=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(t),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(t))},q.prototype._initCachedDisplayObjectCanvas=function(t){if(!this._cacheData||!this._cacheData.sprite){var e=this.getLocalBounds(null,!0),r=this.alpha;this.alpha=1;var i=t.context,n=t._projTransform;e.ceil(R.X.RESOLUTION);var o=ht.TI.create({width:e.width,height:e.height}),s="cacheAsBitmap_"+(0,x.uid)();this._cacheData.textureCacheId=s,ht.VL.addToCache(o.baseTexture,s),ht.xE.addToCache(o,s);var a=an;this.transform.localTransform.copyTo(a),a.invert(),a.tx-=e.x,a.ty-=e.y,this.renderCanvas=this._cacheData.originalRenderCanvas,t.render(this,{renderTexture:o,clear:!0,transform:a,skipUpdateTransform:!1}),t.context=i,t._projTransform=n,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=r;var h=new lr(o);h.transform.worldTransform=this.transform.worldTransform,h.anchor.x=-e.x/e.width,h.anchor.y=-e.y
1/e.height,h.alpha=r,h._bounds=this._bounds,this._cacheData.sprite=h,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=t._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=h.containsPoint.bind(h)}},q.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID},q.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)},q.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,ht.VL.removeFromCache(this._cacheData.textureCacheId),ht.xE.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null},q.prototype._cacheAsBitmapDestroy=function(t){this.cacheAsBitmap=!1,this.destroy(t)},q.prototype.name=null,$.prototype.getChildByName=function(t,e){for(var r=0,i=this.children.length;r<i;r++)if(this.children[r].name===t)return this.children[r];if(e)for(r=0,i=this.children.length;r<i;r++){if(this.children[r].getChildByName){var n=this.children[r].getChildByName(t,!0);if(n)return n}}return null},q.prototype.getGlobalPosition=function(t,e){return void 0===t&&(t=new A.E9),void 0===e&&(e=!1),this.parent?this.parent.toGlobal(this.position,t,e):(t.x=this.position.x,t.y=this.position.y),t};var un=function(t,e){return un=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},un(t,e)};function ln(t,e){function r(){this.constructor=t}un(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var cn=function(t){function e(e,r,i,n){void 0===e&&(e=100),void 0===r&&(r=100),void 0===i&&(i=10),void 0===n&&(n=10);var o=t.call(this)||this;return o.segWidth=i,o.segHeight=n,o.width=e,o.height=r,o.build(),o}return ln(e,t),e.prototype.build=function(){for(var t=this.segWidth*this.segHeight,e=[],r=[],i=[],n=this.segWidth-1,o=this.segHeight-1,s=this.width/n,a=this.height/o,h=0;h<t;h++){var u=h%this.segWidth,l=h/this.segWidth|0;e.push(u*s,l*a),r.push(u/n,l/o)}var c=n*o;for(h=0;h<c;h++){var p=h%n,f=h/n|0,d=f*this.segWidth+p,_=f*this.segWidth+p+1,g=(f+1)*this.segWidth+p,v=(f+1)*this.segWidth+p+1;i.push(d,_,g,_,v,g)}this.buffers[0].data=new Float32Array(e),this.buffers[1].data=new Float32Array(r),this.indexBuffer.data=new Uint16Array(i),this.buffers[0].update(),this.buffers[1].update(),this.indexBuffer.update()},e}(Kr),pn=function(t){function e(e,r,i){void 0===e&&(e=200),void 0===i&&(i=0);var n=t.call(this,new Float32Array(4*r.length),new Float32Array(4*r.length),new Uint16Array(6*(r.length-1)))||this;return n.points=r,n._width=e,n.textureScale=i,n.build(),n}return ln(e,t),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},enumerable:!1,configurable:!0}),e.prototype.build=function(){var t=this.points;if(t){var e=this.getBuffer("aVertexPosition"),r=this.getBuffer("aTextureCoord"),i=this.getIndex();if(!(t.length<1)){e.data.length/4!==t.length&&(e.data=new Float32Array(4*t.length),r.data=new Float32Array(4*t.length),i.data=new Uint16Array(6*(t.length-1)));var n=r.data,o=i.data;n[0]=0,n[1]=0,n[2]=0,n[3]=1;for(var s=0,a=t[0],h=this._width*this.textureScale,u=t.length,l=0;l<u;l++){var c=4*l;if(this.textureScale>0){var p=a.x-t[l].x,f=a.y-t[l].y,d=Math.sqrt(p*p+f*f);a=t[l],s+=d/h}else s=l/(u-1);n[c]=s,n[c+1]=0,n[c+2]=s,n[c+3]=1}var _=0;for(l=0;l<u-1;l++){c=2*l;o[_++]=c,o[_++]=c+1,o[_++]=c+2,o[_++]=c+2,o[_++]=c+1,o[_++]=c+3}r.update(),i.update(),this.updateVertices()}}},e.prototype.updateVertices=function(){var t=this.points;if(!(t.length<1)){for(var e,r=t[0],i=0,n=0,o=this.buffers[0].data,s=t.length,a=0;a<s;a++){var h=t[a],u=4*a;n=-((e=a<t.length-1?t[a+1]:h).x-r.x),i=e.y-r.y;var l=Math.sqrt(i*i+n*n),c=this.textureScale>0?this.textureScale*this._width/2:this._width/2;i/=l,n/=l,i*=c,n*=c,o[u]=h.x+i,o[u+1]=h.y+n,o[u+2]=h.x-i,o[u+3]=h.y-n,r=h}this.buffers[0].update()}},e.prototype.update=function(){this.textureScale>0?this.build():this.updateVertices()},e}(Kr),fn=(function(t){function e(e,r,i){void 0===i&&(i=0);
1var n=this,o=new pn(e.height,r,i),s=new qr(e);return i>0&&(e.baseTexture.wrapMode=wt.Nt.REPEAT),(n=t.call(this,o,s)||this).autoUpdate=!0,n}ln(e,t),e.prototype._render=function(e){var r=this.geometry;(this.autoUpdate||r._width!==this.shader.texture.height)&&(r._width=this.shader.texture.height,r.update()),t.prototype._render.call(this,e)}}(zr),function(t){function e(e,r,i){var n=this,o=new cn(e.width,e.height,r,i),s=new qr(ht.xE.WHITE);return(n=t.call(this,o,s)||this).texture=e,n.autoResize=!0,n}return ln(e,t),e.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID;var t=this.geometry,e=this.shader.texture,r=e.width,i=e.height;!this.autoResize||t.width===r&&t.height===i||(t.width=this.shader.texture.width,t.height=this.shader.texture.height,t.build())},Object.defineProperty(e.prototype,"texture",{get:function(){return this.shader.texture},set:function(t){this.shader.texture!==t&&(this.shader.texture=t,this._textureID=-1,t.baseTexture.valid?this.textureUpdated():t.once("update",this.textureUpdated,this))},enumerable:!1,configurable:!0}),e.prototype._render=function(e){this._textureID!==this.shader.texture._updateID&&this.textureUpdated(),t.prototype._render.call(this,e)},e.prototype.destroy=function(e){this.shader.texture.off("update",this.textureUpdated,this),t.prototype.destroy.call(this,e)},e}(zr)),dn=(function(t){function e(e,r,i,n,o){void 0===e&&(e=ht.xE.EMPTY);var s=this,a=new Kr(r,i,n);a.getBuffer("aVertexPosition").static=!1;var h=new qr(e);return(s=t.call(this,a,h,null,o)||this).autoUpdate=!0,s}ln(e,t),Object.defineProperty(e.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(t){this.geometry.getBuffer("aVertexPosition").data=t},enumerable:!1,configurable:!0}),e.prototype._render=function(e){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),t.prototype._render.call(this,e)}}(zr),function(t){function e(e,r,i,n,o){void 0===r&&(r=10),void 0===i&&(i=10),void 0===n&&(n=10),void 0===o&&(o=10);var s=t.call(this,ht.xE.WHITE,4,4)||this;return s._origWidth=e.orig.width,s._origHeight=e.orig.height,s._width=s._origWidth,s._height=s._origHeight,s._leftWidth=r,s._rightWidth=n,s._topHeight=i,s._bottomHeight=o,s.texture=e,s}ln(e,t),e.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID,this._refresh()},Object.defineProperty(e.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(t){this.geometry.getBuffer("aVertexPosition").data=t},enumerable:!1,configurable:!0}),e.prototype.updateHorizontalVertices=function(){var t=this.vertices,e=this._getMinScale();t[9]=t[11]=t[13]=t[15]=this._topHeight*e,t[17]=t[19]=t[21]=t[23]=this._height-this._bottomHeight*e,t[25]=t[27]=t[29]=t[31]=this._height},e.prototype.updateVerticalVertices=function(){var t=this.vertices,e=this._getMinScale();t[2]=t[10]=t[18]=t[26]=this._leftWidth*e,t[4]=t[12]=t[20]=t[28]=this._width-this._rightWidth*e,t[6]=t[14]=t[22]=t[30]=this._width},e.prototype._getMinScale=function(){var t=this._leftWidth+this._rightWidth,e=this._width>t?1:this._width/t,r=this._topHeight+this._bottomHeight,i=this._height>r?1:this._height/r;return Math.min(e,i)},Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){this._width=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leftWidth",{get:function(){return this._leftWidth},set:function(t){this._leftWidth=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightWidth",{get:function(){return this._rightWidth},set:function(t){this._rightWidth=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"topHeight",{get:function(){return this._topHeight},set:function(t){this._topHeight=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottomHeight",{get:function(){return this._bottomHeight},set:function(t){this._bottomHeight=t,this._refresh()}
1,enumerable:!1,configurable:!0}),e.prototype._refresh=function(){var t=this.texture,e=this.geometry.buffers[1].data;this._origWidth=t.orig.width,this._origHeight=t.orig.height;var r=1/this._origWidth,i=1/this._origHeight;e[0]=e[8]=e[16]=e[24]=0,e[1]=e[3]=e[5]=e[7]=0,e[6]=e[14]=e[22]=e[30]=1,e[25]=e[27]=e[29]=e[31]=1,e[2]=e[10]=e[18]=e[26]=r*this._leftWidth,e[4]=e[12]=e[20]=e[28]=1-r*this._rightWidth,e[9]=e[11]=e[13]=e[15]=i*this._topHeight,e[17]=e[19]=e[21]=e[23]=1-i*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.geometry.buffers[0].update(),this.geometry.buffers[1].update()}}(fn),r(1034),function(t,e){return dn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},dn(t,e)});!function(t){function e(e,r){void 0===r&&(r=!0);var i=t.call(this,e[0]instanceof ht.xE?e[0]:e[0].texture)||this;return i._textures=null,i._durations=null,i._autoUpdate=r,i._isConnectedToTicker=!1,i.animationSpeed=1,i.loop=!0,i.updateAnchor=!1,i.onComplete=null,i.onFrameChange=null,i.onLoop=null,i._currentTime=0,i._playing=!1,i._previousFrame=null,i.textures=e,i}(function(t,e){function r(){this.constructor=t}dn(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,t),e.prototype.stop=function(){this._playing&&(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(Q.vB.shared.remove(this.update,this),this._isConnectedToTicker=!1))},e.prototype.play=function(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(Q.vB.shared.add(this.update,this,Q.uF.HIGH),this._isConnectedToTicker=!0))},e.prototype.gotoAndStop=function(t){this.stop();var e=this.currentFrame;this._currentTime=t,e!==this.currentFrame&&this.updateTexture()},e.prototype.gotoAndPlay=function(t){var e=this.currentFrame;this._currentTime=t,e!==this.currentFrame&&this.updateTexture(),this.play()},e.prototype.update=function(t){if(this._playing){var e=this.animationSpeed*t,r=this.currentFrame;if(null!==this._durations){var i=this._currentTime%1*this._durations[this.currentFrame];for(i+=e/60*1e3;i<0;)this._currentTime--,i+=this._durations[this.currentFrame];var n=Math.sign(this.animationSpeed*t);for(this._currentTime=Math.floor(this._currentTime);i>=this._durations[this.currentFrame];)i-=this._durations[this.currentFrame]*n,this._currentTime+=n;this._currentTime+=i/this._durations[this.currentFrame]}else this._currentTime+=e;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):r!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFrame<r||this.animationSpeed<0&&this.currentFrame>r)&&this.onLoop(),this.updateTexture())}},e.prototype.updateTexture=function(){var t=this.currentFrame;this._previousFrame!==t&&(this._previousFrame=t,this._texture=this._textures[t],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))},e.prototype.destroy=function(e){this.stop(),t.prototype.destroy.call(this,e),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},e.fromFrames=function(t){for(var r=[],i=0;i<t.length;++i)r.push(ht.xE.from(t[i]));return new e(r)},e.fromImages=function(t){for(var r=[],i=0;i<t.length;++i)r.push(ht.xE.from(t[i]));return new e(r)},Object.defineProperty(e.prototype,"totalFrames",{get:function(){return this._textures.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textures",{get:function(){return this._textures},set:function(t){if(t[0]instanceof ht.xE)this._textures=t,this._durations=null;else{this._textures=[],this._durations=[];for(var e=0;e<t.length;e++)this._textures.push(t[e].texture),this._durations.push(t[e].time)}this._previousFrame=null,this.gotoAndStop(0),this.updateTexture()}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentFrame",{get:function(){var t=Math.floor(this._currentTime)%this._textures.length;return t<0&&(t+=this._textures.length),t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"playing",{get:function(){return this._playing},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(t){t!==this._autoUpdate&&(this._autoUpdate=t,!this._autoUpdate&&this._isConnectedToTicker?(Q.vB.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._playing&&(Q.vB.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0})}(lr);ht.Th.registerPlugin("accessibility",J),ht.Th.registerPlugin("extract",pt),ht.Th.registerPlugin("interaction",at),ht.Th.registerPlugin("particle",Pe),ht.Th.registerPlugin("prepare",wr),ht.Th.registerPlugin("batch",ht.Bv),ht.Th.registerPlugin("tilingSprite",kr),It.registerPlugin(li),It.registerPlugin(Ht),It.registerPlugin(ae),It.registerPlugin(xe),It.registerPlugin(Lr),ut.registerPlugin(Q.Sb),ut.registerPlugin(Pt)},2587:function(t){"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,r,i,n){r=r||"&",i=i||"=";var o={};if("string"!==typeof t||0===t.length)return o;var s=/\+/g;t=t.split(r);var a=1e3;n&&"number"===typeof n.maxKeys&&(a=n.maxKeys);var h=t.length;a>0&&h>a&&(h=a);for(var u=0;u<h;++u){var l,c,p,f,d=t[u].replace(s,"%20"),_=d.indexOf(i);_>=0?(l=d.substr(0,_),c=d.substr(_+1)):(l=d,c=""),p=decodeURIComponent(l),f=decodeURIComponent(c),e(o,p)?Array.isArray(o[p])?o[p].push(f):o[p]=[o[p],f]:o[p]=f}return o}},2361:function(t){"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,r,i,n){return r=r||"&",i=i||"=",null===t&&(t=void 0),"object"===typeof t?Object.keys(t).map((function(n){var o=encodeURIComponent(e(n))+i;return Array.isArray(t[n])?t[n].map((function(t){return o+encodeURIComponent(e(t))})).join(r):o+encodeURIComponent(e(t[n]))})).join(r):n?encodeURIComponent(e(n))+i+encodeURIComponent(e(t)):""}},7673:function(t,e,r){"use strict";e.decode=e.parse=r(2587),e.encode=e.stringify=r(2361)},523:function(t){!function(){"use strict";t.exports={polyfill:function(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style)||!0===t.__forceSmoothScrollPolyfill__){var r,i=t.HTMLElement||t.Element,n={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:i.prototype.scroll||a,scrollIntoView:i.prototype.scrollIntoView},o=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,s=(r=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(r)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==h(arguments[0])?d.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):n.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!==typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(h(arguments[0])?n.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!==typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):d.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},i.prototype.scroll=i.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==h(arguments[0])){var t=arguments[0].left,e=arguments[0].top;d.call(this,this,"undefined"===typeof t?this.scrollLeft:~~t,"undefined"===typeof e?this.scrollTop:~~e)}else{if("number"===typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");n.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!==typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},i.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==h(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):n.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},i.prototype.scrollIntoView=function(){if(!0!==h(arguments[0])){var r=p(this),i=r.getBoundingClientRect(),o=this.getBoundingClientRect();r!==e.body?(d.call(this,r,r.scrollLeft+o.left-i.left,r.scrollTop+o.top-i.top),"fixed"!==t.getComputedStyle(r).position&&t.scrollBy({left:i.left,top:i.top,behavior:"smooth"})):t.scrollBy({left:o.left,top:o.top,behavior:"smooth"})}else n.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function a(t,e){this.scrollLeft=t,this.scrollTop=e}function h(t){if(null===t||"object"!==typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;
vendor: 992 bytes, line 1
1if("object"===typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function u(t,e){return"Y"===e?t.clientHeight+s<t.scrollHeight:"X"===e?t.clientWidth+s<t.scrollWidth:void 0}function l(e,r){var i=t.getComputedStyle(e,null)["overflow"+r];return"auto"===i||"scroll"===i}function c(t){var e=u(t,"Y")&&l(t,"Y"),r=u(t,"X")&&l(t,"X");return e||r}function p(t){for(;t!==e.body&&!1===c(t);)t=t.parentNode||t.host;return t}function f(e){var r,i,n,s,a=(o()-e.startTime)/468;s=a=a>1?1:a,r=.5*(1-Math.cos(Math.PI*s)),i=e.startX+(e.x-e.startX)*r,n=e.startY+(e.y-e.startY)*r,e.method.call(e.scrollable,i,n),i===e.x&&n===e.y||t.requestAnimationFrame(f.bind(t,e))}function d(r,i,s){var h,u,l,c,p=o();r===e.body?(h=t,u=t.scrollX||t.pageXOffset,l=t.scrollY||t.pageYOffset,c=n.scroll):(h=r,u=r.scrollLeft,l=r.scrollTop,c=a),f({scrollable:h,method:c,startTime:p,startX:u,startY:l,x:i,y:s})}}}}()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.