reacthub-pixitweenjs 0.2.98 → 0.2.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -14156,7 +14156,7 @@ const Mf = /* @__PURE__ */ Zn(_M), FB = (e) => {
|
|
|
14156
14156
|
}, E = (A, O) => {
|
|
14157
14157
|
var R, C, P, M;
|
|
14158
14158
|
const L = A + ((R = o.current) == null ? void 0 : R.time());
|
|
14159
|
-
_.current && u.current ? (w(L, O), T(), i.current.isPlaying = !1) : n.current && !i.current.isPlaying && ((C = _.current) == null || C.refresh(), (P = _.current) == null || P.refreshPaused(), (M = _.current) == null || M.resume(), i.current.isPlaying = !0);
|
|
14159
|
+
_.current && u.current ? (w(L, O), T(), i.current.isPlaying = !1) : n.current && !i.current.isPlaying && _.current && ((C = _.current) == null || C.refresh(), (P = _.current) == null || P.refreshPaused(), (M = _.current) == null || M.resume(), i.current.isPlaying = !0);
|
|
14160
14160
|
}, I = () => {
|
|
14161
14161
|
};
|
|
14162
14162
|
return Yn(() => {
|
package/dist/index.umd.js
CHANGED
|
@@ -1931,7 +1931,7 @@ void main() {
|
|
|
1931
1931
|
*/(function(e,t){(function(r,n){e.exports=n()})(n2,function(){return function(n){for(var i={command:/\s*([achlmqstvz])/gi,number:/\s*([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/gi,comma:/\s*(?:(,)|\s)/g,flag:/\s*([01])/g},o={number:function(b){return+v("number",b)},"coordinate pair":function(b){var _=v("number",b);if(_===null&&!b)return null;v("comma");var m=v("number",!0);return{x:+_,y:+m}},"arc definition":function(b){var _=o["coordinate pair"](b);if(!_&&!b)return null;v("comma");var m=+v("number",!0);v("comma",!0);var w=!!+v("flag",!0);v("comma");var T=!!+v("flag",!0);v("comma");var x=o["coordinate pair"](!0);return{radii:_,rotation:m,large:w,clockwise:T,end:x}}},a=0,u=[];a<n.length;){var f=v("command"),h=f.toUpperCase(),d=f!==h,p;switch(h){case"M":p=y("coordinate pair").map(function(b,_){return _===1&&(f=d?"l":"L"),c({end:b})});break;case"L":case"T":p=y("coordinate pair").map(function(b){return c({end:b})});break;case"C":if(p=y("coordinate pair"),p.length%3)throw Error("Expected coordinate pair triplet at position "+a);p=p.reduce(function(b,_,m){var w=m%3;if(!w)b.push(c({cp1:_}));else{var T=b[b.length-1];T[w===1?"cp2":"end"]=_}return b},[]);break;case"Q":case"S":if(p=y("coordinate pair"),p.length&1)throw Error("Expected coordinate pair couple at position "+a);p=p.reduce(function(b,_,m){var w=m&1;if(!w)b.push(c({cp:_}));else{var T=b[b.length-1];T.end=_}return b},[]);break;case"H":case"V":p=y("number").map(function(b){return c({value:b})});break;case"A":p=y("arc definition").map(c);break;case"Z":p=[{code:"Z"}];break}u.push.apply(u,p)}return u;function c(b){return b.code=f,b.relative=d,b}function v(b,_){i[b].lastIndex=a;var m=i[b].exec(n);if(!m||m.index!==a){if(!_)return null;throw Error("Expected "+b+" at position "+a)}return a=i[b].lastIndex,m[1]}function y(b){for(var _=[],m,w=!0;m=o[b](w);)_.push(m),w=!!v("comma");return _}}})})(i2);const s2=/^\s+/,o2=/\s+$/;function Tt(e,t){if(e=e||"",t=t||{},e instanceof Tt)return e;if(!(this instanceof Tt))return new Tt(e,t);var r=a2(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}Tt.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),t,r,n,i,o,a;return t=e.r/255,r=e.g/255,n=e.b/255,t<=.03928?i=t/12.92:i=Math.pow((t+.055)/1.055,2.4),r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),.2126*i+.7152*o+.0722*a},setAlpha:function(e){return this._a=Ip(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=Ap(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=Ap(this._r,this._g,this._b),t=Math.round(e.h*360),r=Math.round(e.s*100),n=Math.round(e.v*100);return this._a==1?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=Sp(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Sp(this._r,this._g,this._b),t=Math.round(e.h*360),r=Math.round(e.s*100),n=Math.round(e.l*100);return this._a==1?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return Op(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return c2(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(ce(this._r,255)*100)+"%",g:Math.round(ce(this._g,255)*100)+"%",b:Math.round(ce(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ce(this._r,255)*100)+"%, "+Math.round(ce(this._g,255)*100)+"%, "+Math.round(ce(this._b,255)*100)+"%)":"rgba("+Math.round(ce(this._r,255)*100)+"%, "+Math.round(ce(this._g,255)*100)+"%, "+Math.round(ce(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:T2[Op(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t="#"+Cp(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var i=Tt(e);r="#"+Cp(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0,i=!t&&n&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return i?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return Tt(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(v2,arguments)},brighten:function(){return this._applyModification(g2,arguments)},darken:function(){return this._applyModification(m2,arguments)},desaturate:function(){return this._applyModification(h2,arguments)},saturate:function(){return this._applyModification(d2,arguments)},greyscale:function(){return this._applyModification(p2,arguments)},spin:function(){return this._applyModification(y2,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(x2,arguments)},complement:function(){return this._applyCombination(_2,arguments)},monochromatic:function(){return this._applyCombination(w2,arguments)},splitcomplement:function(){return this._applyCombination(b2,arguments)},triad:function(){return this._applyCombination(Rp,[3])},tetrad:function(){return this._applyCombination(Rp,[4])}},Tt.fromRatio=function(e,t){if(typeof e=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=_s(e[n]));e=r}return Tt(e,t)};function a2(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,o=null,a=!1,u=!1;return typeof e=="string"&&(e=O2(e)),typeof e=="object"&&(Kr(e.r)&&Kr(e.g)&&Kr(e.b)?(t=l2(e.r,e.g,e.b),a=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Kr(e.h)&&Kr(e.s)&&Kr(e.v)?(n=_s(e.s),i=_s(e.v),t=f2(e.h,n,i),a=!0,u="hsv"):Kr(e.h)&&Kr(e.s)&&Kr(e.l)&&(n=_s(e.s),o=_s(e.l),t=u2(e.h,n,o),a=!0,u="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=Ip(r),{ok:a,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function l2(e,t,r){return{r:ce(e,255)*255,g:ce(t,255)*255,b:ce(r,255)*255}}function Sp(e,t,r){e=ce(e,255),t=ce(t,255),r=ce(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o,a,u=(n+i)/2;if(n==i)o=a=0;else{var f=n-i;switch(a=u>.5?f/(2-n-i):f/(n+i),n){case e:o=(t-r)/f+(t<r?6:0);break;case t:o=(r-e)/f+2;break;case r:o=(e-t)/f+4;break}o/=6}return{h:o,s:a,l:u}}function u2(e,t,r){var n,i,o;e=ce(e,360),t=ce(t,100),r=ce(r,100);function a(h,d,p){return p<0&&(p+=1),p>1&&(p-=1),p<1/6?h+(d-h)*6*p:p<1/2?d:p<2/3?h+(d-h)*(2/3-p)*6:h}if(t===0)n=i=o=r;else{var u=r<.5?r*(1+t):r+t-r*t,f=2*r-u;n=a(f,u,e+1/3),i=a(f,u,e),o=a(f,u,e-1/3)}return{r:n*255,g:i*255,b:o*255}}function Ap(e,t,r){e=ce(e,255),t=ce(t,255),r=ce(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o,a,u=n,f=n-i;if(a=n===0?0:f/n,n==i)o=0;else{switch(n){case e:o=(t-r)/f+(t<r?6:0);break;case t:o=(r-e)/f+2;break;case r:o=(e-t)/f+4;break}o/=6}return{h:o,s:a,v:u}}function f2(e,t,r){e=ce(e,360)*6,t=ce(t,100),r=ce(r,100);var n=Math.floor(e),i=e-n,o=r*(1-t),a=r*(1-i*t),u=r*(1-(1-i)*t),f=n%6,h=[r,a,o,o,u,r][f],d=[u,r,r,a,o,o][f],p=[o,o,u,r,r,a][f];return{r:h*255,g:d*255,b:p*255}}function Op(e,t,r,n){var i=[Ar(Math.round(e).toString(16)),Ar(Math.round(t).toString(16)),Ar(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function c2(e,t,r,n,i){var o=[Ar(Math.round(e).toString(16)),Ar(Math.round(t).toString(16)),Ar(Math.round(r).toString(16)),Ar(Pp(n))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Cp(e,t,r,n){var i=[Ar(Pp(n)),Ar(Math.round(e).toString(16)),Ar(Math.round(t).toString(16)),Ar(Math.round(r).toString(16))];return i.join("")}Tt.equals=function(e,t){return!e||!t?!1:Tt(e).toRgbString()==Tt(t).toRgbString()},Tt.random=function(){return Tt.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function h2(e,t){t=t===0?0:t||10;var r=Tt(e).toHsl();return r.s-=t/100,r.s=$o(r.s),Tt(r)}function d2(e,t){t=t===0?0:t||10;var r=Tt(e).toHsl();return r.s+=t/100,r.s=$o(r.s),Tt(r)}function p2(e){return Tt(e).desaturate(100)}function v2(e,t){t=t===0?0:t||10;var r=Tt(e).toHsl();return r.l+=t/100,r.l=$o(r.l),Tt(r)}function g2(e,t){t=t===0?0:t||10;var r=Tt(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),Tt(r)}function m2(e,t){t=t===0?0:t||10;var r=Tt(e).toHsl();return r.l-=t/100,r.l=$o(r.l),Tt(r)}function y2(e,t){var r=Tt(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,Tt(r)}function _2(e){var t=Tt(e).toHsl();return t.h=(t.h+180)%360,Tt(t)}function Rp(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=Tt(e).toHsl(),n=[Tt(e)],i=360/t,o=1;o<t;o++)n.push(Tt({h:(r.h+o*i)%360,s:r.s,l:r.l}));return n}function b2(e){var t=Tt(e).toHsl(),r=t.h;return[Tt(e),Tt({h:(r+72)%360,s:t.s,l:t.l}),Tt({h:(r+216)%360,s:t.s,l:t.l})]}function x2(e,t,r){t=t||6,r=r||30;var n=Tt(e).toHsl(),i=360/r,o=[Tt(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,o.push(Tt(n));return o}function w2(e,t){t=t||6;for(var r=Tt(e).toHsv(),n=r.h,i=r.s,o=r.v,a=[],u=1/t;t--;)a.push(Tt({h:n,s:i,v:o})),o=(o+u)%1;return a}Tt.mix=function(e,t,r){r=r===0?0:r||50;var n=Tt(e).toRgb(),i=Tt(t).toRgb(),o=r/100,a={r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a};return Tt(a)},Tt.readability=function(e,t){var r=Tt(e),n=Tt(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},Tt.isReadable=function(e,t,r){var n=Tt.readability(e,t),i,o;switch(o=!1,i=C2(r),i.level+i.size){case"AAsmall":case"AAAlarge":o=n>=4.5;break;case"AAlarge":o=n>=3;break;case"AAAsmall":o=n>=7;break}return o},Tt.mostReadable=function(e,t,r){var n=null,i=0,o,a,u,f;r=r||{},a=r.includeFallbackColors,u=r.level,f=r.size;for(var h=0;h<t.length;h++)o=Tt.readability(e,t[h]),o>i&&(i=o,n=Tt(t[h]));return Tt.isReadable(e,n,{level:u,size:f})||!a?n:(r.includeFallbackColors=!1,Tt.mostReadable(e,["#fff","#000"],r))};var Mu=Tt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},T2=Tt.hexNames=E2(Mu);function E2(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function Ip(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ce(e,t){S2(e)&&(e="100%");var r=A2(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function $o(e){return Math.min(1,Math.max(0,e))}function tr(e){return parseInt(e,16)}function S2(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function A2(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Ar(e){return e.length==1?"0"+e:""+e}function _s(e){return e<=1&&(e=e*100+"%"),e}function Pp(e){return Math.round(parseFloat(e)*255).toString(16)}function Np(e){return tr(e)/255}var Or=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Kr(e){return!!Or.CSS_UNIT.exec(e)}function O2(e){e=e.replace(s2,"").replace(o2,"").toLowerCase();var t=!1;if(Mu[e])e=Mu[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Or.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=Or.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Or.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=Or.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Or.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=Or.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Or.hex8.exec(e))?{r:tr(r[1]),g:tr(r[2]),b:tr(r[3]),a:Np(r[4]),format:t?"name":"hex8"}:(r=Or.hex6.exec(e))?{r:tr(r[1]),g:tr(r[2]),b:tr(r[3]),format:t?"name":"hex"}:(r=Or.hex4.exec(e))?{r:tr(r[1]+""+r[1]),g:tr(r[2]+""+r[2]),b:tr(r[3]+""+r[3]),a:Np(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=Or.hex3.exec(e))?{r:tr(r[1]+""+r[1]),g:tr(r[2]+""+r[2]),b:tr(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function C2(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var R2=function(){function e(t,r){var n=[],i=!0,o=!1,a=void 0;try{for(var u=t[Symbol.iterator](),f;!(i=(f=u.next()).done)&&(n.push(f.value),!(r&&n.length===r));i=!0);}catch(h){o=!0,a=h}finally{try{!i&&u.return&&u.return()}finally{if(o)throw a}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),bs=Math.PI*2,ku=function(t,r,n,i,o,a,u){var f=t.x,h=t.y;f*=r,h*=n;var d=i*f-o*h,p=o*f+i*h;return{x:d+a,y:p+u}},I2=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),o=Math.sin(t),a=Math.cos(t+r),u=Math.sin(t+r);return[{x:i-o*n,y:o+i*n},{x:a+u*n,y:u-a*n},{x:a,y:u}]},Mp=function(t,r,n,i){var o=t*i-r*n<0?-1:1,a=t*n+r*i;return a>1&&(a=1),a<-1&&(a=-1),o*Math.acos(a)},P2=function(t,r,n,i,o,a,u,f,h,d,p,c){var v=Math.pow(o,2),y=Math.pow(a,2),b=Math.pow(p,2),_=Math.pow(c,2),m=v*y-v*_-y*b;m<0&&(m=0),m/=v*_+y*b,m=Math.sqrt(m)*(u===f?-1:1);var w=m*o/a*c,T=m*-a/o*p,x=d*w-h*T+(t+n)/2,E=h*w+d*T+(r+i)/2,I=(p-w)/o,A=(c-T)/a,O=(-p-w)/o,L=(-c-T)/a,R=Mp(1,0,I,A),C=Mp(I,A,O,L);return f===0&&C>0&&(C-=bs),f===1&&C<0&&(C+=bs),[x,E,R,C]},kp=function(t){var r=t.px,n=t.py,i=t.cx,o=t.cy,a=t.rx,u=t.ry,f=t.xAxisRotation,h=f===void 0?0:f,d=t.largeArcFlag,p=d===void 0?0:d,c=t.sweepFlag,v=c===void 0?0:c,y=[];if(a===0||u===0)return[];var b=Math.sin(h*bs/360),_=Math.cos(h*bs/360),m=_*(r-i)/2+b*(n-o)/2,w=-b*(r-i)/2+_*(n-o)/2;if(m===0&&w===0)return[];a=Math.abs(a),u=Math.abs(u);var T=Math.pow(m,2)/Math.pow(a,2)+Math.pow(w,2)/Math.pow(u,2);T>1&&(a*=Math.sqrt(T),u*=Math.sqrt(T));var x=P2(r,n,i,o,a,u,p,v,b,_,m,w),E=R2(x,4),I=E[0],A=E[1],O=E[2],L=E[3],R=Math.abs(L)/(bs/4);Math.abs(1-R)<1e-7&&(R=1);var C=Math.max(Math.ceil(R),1);L/=C;for(var P=0;P<C;P++)y.push(I2(O,L)),O+=L;return y.map(function(M){var F=ku(M[0],a,u,_,b,I,A),q=F.x,Z=F.y,z=ku(M[1],a,u,_,b,I,A),nt=z.x,V=z.y,U=ku(M[2],a,u,_,b,I,A),k=U.x,j=U.y;return{x1:q,y1:Z,x2:nt,y2:V,x:k,y:j}})};class N2 extends Pu{constructor(t){super(),this.lineColor=null,t&&this.drawSVG(t)}drawSVG(t){if(typeof t=="string"){const r=document.createElement("div");r.innerHTML=t.trim(),t=r.querySelector("svg")}if(!t)throw new Error("Missing <svg> element in SVG constructor");return this._svgFill(t),this._svgChildren(t.children),this}_svgChildren(t,r=!1){for(let n=0;n<t.length;n++){const i=t[n];switch(this._svgFill(i,r),i.nodeName.toLowerCase()){case"path":{this._svgPath(i);break}case"circle":case"ellipse":{this._svgCircle(i);break}case"rect":{this._svgRect(i);break}case"polygon":{this._svgPoly(i,!0);break}case"polyline":{this._svgPoly(i);break}case"g":break;default:{console.info(`[PIXI.SVG] <${i.nodeName}> elements unsupported`);break}}this._svgChildren(i.children,!0)}}_hexToUint(t){if(t[0]==="#")return t=t.substr(1),t.length===3&&(t=t.replace(/([a-f0-9])/ig,"$1$1")),parseInt(t,16);const{r,g:n,b:i}=Tt(t).toRgb();return(r<<16)+(n<<8)+i}_svgCircle(t){let r="r",n="r";const i=t.nodeName==="elipse";i&&(r+="x",n+="y");const o=parseFloat(t.getAttribute(n)),a=parseFloat(t.getAttribute(r)),u=t.getAttribute("cx"),f=t.getAttribute("cy");let h=0,d=0;u!==null&&(h=parseFloat(u)),f!==null&&(d=parseFloat(f)),i?this.drawEllipse(h,d,o,a):this.drawCircle(h,d,o)}_svgRect(t){const r=parseFloat(t.getAttribute("x")),n=parseFloat(t.getAttribute("y")),i=parseFloat(t.getAttribute("width")),o=parseFloat(t.getAttribute("height")),a=parseFloat(t.getAttribute("rx"));a?this.drawRoundedRect(r,n,i,o,a):this.drawRect(r,n,i,o)}_convertStyleName(t){return t.trim().replace("-width","Width").replace(/.*-(line)?/,"")}_svgStyle(t){const r=t.getAttribute("style"),n=t.getAttribute("opacity"),i={fill:t.getAttribute("fill"),opacity:n||t.getAttribute("fill-opacity"),stroke:t.getAttribute("stroke"),strokeOpacity:n||t.getAttribute("stroke-opacity"),strokeWidth:t.getAttribute("stroke-width"),cap:t.getAttribute("stroke-linecap"),join:t.getAttribute("stroke-linejoin"),miterLimit:t.getAttribute("stroke-miterlimit")};return r!==null&&r.split(";").forEach(o=>{const[a,u]=o.split(":");if(a){const f=this._convertStyleName(a);i[f]||(i[f]=u.trim())}}),i}_svgPoly(t,r){const n=t.getAttribute("points").split(/[ ,]/g).map(i=>parseInt(i,10));this.drawPolygon(n),r&&this.closePath()}_svgFill(t,r){const{fill:n,opacity:i,stroke:o,strokeOpacity:a,strokeWidth:u,cap:f,join:h,miterLimit:d}=this._svgStyle(t),c=u!==null?parseFloat(u):o!==null?1:0,v=o!==null?this._hexToUint(o):this.lineColor;n?n==="none"?this.beginFill(0,0):this.beginFill(this._hexToUint(n),i!==null?parseFloat(i):1):r||this.beginFill(0),this.lineStyle({width:o===null&&u===null&&r?this.line.width:c,alpha:a===null?this.line.alpha:parseFloat(a),color:o===null&&r?this.line.color:v,cap:f===null&&r?this.line.cap:f,join:h===null&&r?this.line.join:h,miterLimit:d===null&&r?this.line.miterLimit:parseFloat(d)}),t.getAttribute("fill-rule")&&console.info('[PIXI.SVG] "fill-rule" attribute is not supported')}_svgPath(t){const r=t.getAttribute("d");let n=0,i=0;const o=Nu(r.trim());for(let a=0;a<o.length;a++){const u=o[a];switch(u.code){case"m":{this.moveTo(n+=u.end.x,i+=u.end.y);break}case"M":{this.moveTo(n=u.end.x,i=u.end.y);break}case"H":{this.lineTo(n=u.value,i);break}case"h":{this.lineTo(n+=u.value,i);break}case"V":{this.lineTo(n,i=u.value);break}case"v":{this.lineTo(n,i+=u.value);break}case"Z":{this.closePath();break}case"L":{this.lineTo(n=u.end.x,i=u.end.y);break}case"l":{this.lineTo(n+=u.end.x,i+=u.end.y);break}case"C":{this.bezierCurveTo(u.cp1.x,u.cp1.y,u.cp2.x,u.cp2.y,n=u.end.x,i=u.end.y);break}case"c":{const f=n,h=i;this.bezierCurveTo(f+u.cp1.x,h+u.cp1.y,f+u.cp2.x,h+u.cp2.y,n+=u.end.x,i+=u.end.y);break}case"s":case"q":{const f=n,h=i;this.quadraticCurveTo(f+u.cp.x,h+u.cp.y,n+=u.end.x,i+=u.end.y);break}case"S":case"Q":{this.quadraticCurveTo(u.cp.x,u.cp.y,n=u.end.x,i=u.end.y);break}case"a":{kp({px:n,py:i,cx:n+=u.end.x,cy:i+=u.end.y,rx:u.radii.x,ry:u.radii.y,xAxisRotation:u.rotation,largeArcFlag:u.large?1:0,sweepFlag:u.clockwise?1:0}).forEach(({x1:f,y1:h,x2:d,y2:p,x:c,y:v})=>this.bezierCurveTo(f,h,d,p,c,v));break}case"A":{kp({px:n,py:i,cx:n=u.end.x,cy:i=u.end.y,rx:u.radii.x,ry:u.radii.y,xAxisRotation:u.rotation,largeArcFlag:u.large?1:0,sweepFlag:u.clockwise?1:0}).forEach(({x1:f,y1:h,x2:d,y2:p,x:c,y:v})=>this.bezierCurveTo(f,h,d,p,c,v));break}default:{console.info("[PIXI.SVG] Draw command not supported:",u.code,u);break}}}}}var Go={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},M2=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function k2(e){return e===10||e===13||e===8232||e===8233||e===32||e===9||e===11||e===12||e===160||e>=5760&&M2.indexOf(e)>=0}function L2(e){switch(e|32){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:case 114:return!0}return!1}function F2(e){return(e|32)===97}function Ri(e){return e>=48&&e<=57}function B2(e){return e>=48&&e<=57||e===43||e===45||e===46}function D2(e){this.index=0,this.path=e,this.max=e.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function jo(e){for(;e.index<e.max&&k2(e.path.charCodeAt(e.index));)e.index++}function U2(e){var t=e.path.charCodeAt(e.index);if(t===48){e.param=0,e.index++;return}if(t===49){e.param=1,e.index++;return}e.err="SvgPath: arc flag can be 0 or 1 only (at pos "+e.index+")"}function $2(e){var t=e.index,r=t,n=e.max,i=!1,o=!1,a=!1,u=!1,f;if(r>=n){e.err="SvgPath: missed param (at pos "+r+")";return}if(f=e.path.charCodeAt(r),(f===43||f===45)&&(r++,f=r<n?e.path.charCodeAt(r):0),!Ri(f)&&f!==46){e.err="SvgPath: param should start with 0..9 or `.` (at pos "+r+")";return}if(f!==46){if(i=f===48,r++,f=r<n?e.path.charCodeAt(r):0,i&&r<n&&f&&Ri(f)){e.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+t+")";return}for(;r<n&&Ri(e.path.charCodeAt(r));)r++,o=!0;f=r<n?e.path.charCodeAt(r):0}if(f===46){for(u=!0,r++;Ri(e.path.charCodeAt(r));)r++,a=!0;f=r<n?e.path.charCodeAt(r):0}if(f===101||f===69){if(u&&!o&&!a){e.err="SvgPath: invalid float exponent (at pos "+r+")";return}if(r++,f=r<n?e.path.charCodeAt(r):0,(f===43||f===45)&&r++,r<n&&Ri(e.path.charCodeAt(r)))for(;r<n&&Ri(e.path.charCodeAt(r));)r++;else{e.err="SvgPath: invalid float exponent (at pos "+r+")";return}}e.index=r,e.param=parseFloat(e.path.slice(t,r))+0}function Lu(e){var t,r;t=e.path[e.segmentStart],r=t.toLowerCase();var n=e.data;if(r==="m"&&n.length>2&&(e.result.push([t,n[0],n[1]]),n=n.slice(2),r="l",t=t==="m"?"l":"L"),r==="r")e.result.push([t].concat(n));else for(;n.length>=Go[r]&&(e.result.push([t].concat(n.splice(0,Go[r]))),!!Go[r]););}function G2(e){var t=e.max,r,n,i,o,a;if(e.segmentStart=e.index,r=e.path.charCodeAt(e.index),n=F2(r),!L2(r)){e.err="SvgPath: bad command "+e.path[e.index]+" (at pos "+e.index+")";return}if(o=Go[e.path[e.index].toLowerCase()],e.index++,jo(e),e.data=[],!o){Lu(e);return}for(i=!1;;){for(a=o;a>0;a--){if(n&&(a===3||a===4)?U2(e):$2(e),e.err.length){Lu(e);return}e.data.push(e.param),jo(e),i=!1,e.index<t&&e.path.charCodeAt(e.index)===44&&(e.index++,jo(e),i=!0)}if(!i&&(e.index>=e.max||!B2(e.path.charCodeAt(e.index))))break}Lu(e)}var j2=function(t){var r=new D2(t),n=r.max;for(jo(r);r.index<n&&!r.err.length;)G2(r);return r.result.length&&("mM".indexOf(r.result[0][0])<0?(r.err="SvgPath: string should start with `M` or `m`",r.result=[]):r.result[0][0]="M"),{err:r.err,segments:r.result}};function q2(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}function Cr(){if(!(this instanceof Cr))return new Cr;this.queue=[],this.cache=null}Cr.prototype.matrix=function(e){return e[0]===1&&e[1]===0&&e[2]===0&&e[3]===1&&e[4]===0&&e[5]===0?this:(this.cache=null,this.queue.push(e),this)},Cr.prototype.translate=function(e,t){return(e!==0||t!==0)&&(this.cache=null,this.queue.push([1,0,0,1,e,t])),this},Cr.prototype.scale=function(e,t){return(e!==1||t!==1)&&(this.cache=null,this.queue.push([e,0,0,t,0,0])),this},Cr.prototype.rotate=function(e,t,r){var n,i,o;return e!==0&&(this.translate(t,r),n=e*Math.PI/180,i=Math.cos(n),o=Math.sin(n),this.queue.push([i,o,-o,i,0,0]),this.cache=null,this.translate(-t,-r)),this},Cr.prototype.skewX=function(e){return e!==0&&(this.cache=null,this.queue.push([1,0,Math.tan(e*Math.PI/180),1,0,0])),this},Cr.prototype.skewY=function(e){return e!==0&&(this.cache=null,this.queue.push([1,Math.tan(e*Math.PI/180),0,1,0,0])),this},Cr.prototype.toArray=function(){if(this.cache)return this.cache;if(!this.queue.length)return this.cache=[1,0,0,1,0,0],this.cache;if(this.cache=this.queue[0],this.queue.length===1)return this.cache;for(var e=1;e<this.queue.length;e++)this.cache=q2(this.cache,this.queue[e]);return this.cache},Cr.prototype.calc=function(e,t,r){var n;return this.queue.length?(this.cache||(this.cache=this.toArray()),n=this.cache,[e*n[0]+t*n[2]+(r?0:n[4]),e*n[1]+t*n[3]+(r?0:n[5])]):[e,t]};var Lp=Cr,z2=Lp,H2={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},V2=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,W2=/[\s,]+/,X2=function(t){var r=new z2,n,i;return t.split(V2).forEach(function(o){if(o.length){if(typeof H2[o]<"u"){n=o;return}switch(i=o.split(W2).map(function(a){return+a||0}),n){case"matrix":i.length===6&&r.matrix(i);return;case"scale":i.length===1?r.scale(i[0],i[0]):i.length===2&&r.scale(i[0],i[1]);return;case"rotate":i.length===1?r.rotate(i[0],0,0):i.length===3&&r.rotate(i[0],i[1],i[2]);return;case"translate":i.length===1?r.translate(i[0],0):i.length===2&&r.translate(i[0],i[1]);return;case"skewX":i.length===1&&r.skewX(i[0]);return;case"skewY":i.length===1&&r.skewY(i[0]);return}}}),r},xs=Math.PI*2;function Fp(e,t,r,n){var i=e*n-t*r<0?-1:1,o=e*r+t*n;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)}function K2(e,t,r,n,i,o,a,u,f,h){var d=h*(e-r)/2+f*(t-n)/2,p=-f*(e-r)/2+h*(t-n)/2,c=a*a,v=u*u,y=d*d,b=p*p,_=c*v-c*b-v*y;_<0&&(_=0),_/=c*b+v*y,_=Math.sqrt(_)*(i===o?-1:1);var m=_*a/u*p,w=_*-u/a*d,T=h*m-f*w+(e+r)/2,x=f*m+h*w+(t+n)/2,E=(d-m)/a,I=(p-w)/u,A=(-d-m)/a,O=(-p-w)/u,L=Fp(1,0,E,I),R=Fp(E,I,A,O);return o===0&&R>0&&(R-=xs),o===1&&R<0&&(R+=xs),[T,x,L,R]}function Y2(e,t){var r=1.3333333333333333*Math.tan(t/4),n=Math.cos(e),i=Math.sin(e),o=Math.cos(e+t),a=Math.sin(e+t);return[n,i,n-i*r,i+n*r,o+a*r,a-o*r,o,a]}var Z2=function(t,r,n,i,o,a,u,f,h){var d=Math.sin(h*xs/360),p=Math.cos(h*xs/360),c=p*(t-n)/2+d*(r-i)/2,v=-d*(t-n)/2+p*(r-i)/2;if(c===0&&v===0)return[];if(u===0||f===0)return[];u=Math.abs(u),f=Math.abs(f);var y=c*c/(u*u)+v*v/(f*f);y>1&&(u*=Math.sqrt(y),f*=Math.sqrt(y));var b=K2(t,r,n,i,o,a,u,f,d,p),_=[],m=b[2],w=b[3],T=Math.max(Math.ceil(Math.abs(w)/(xs/4)),1);w/=T;for(var x=0;x<T;x++)_.push(Y2(m,w)),m+=w;return _.map(function(E){for(var I=0;I<E.length;I+=2){var A=E[I+0],O=E[I+1];A*=u,O*=f;var L=p*A-d*O,R=d*A+p*O;E[I+0]=L+b[0],E[I+1]=R+b[1]}return E})},ws=1e-10,Bp=Math.PI/180;function Ts(e,t,r){if(!(this instanceof Ts))return new Ts(e,t,r);this.rx=e,this.ry=t,this.ax=r}Ts.prototype.transform=function(e){var t=Math.cos(this.ax*Bp),r=Math.sin(this.ax*Bp),n=[this.rx*(e[0]*t+e[2]*r),this.rx*(e[1]*t+e[3]*r),this.ry*(-e[0]*r+e[2]*t),this.ry*(-e[1]*r+e[3]*t)],i=n[0]*n[0]+n[2]*n[2],o=n[1]*n[1]+n[3]*n[3],a=((n[0]-n[3])*(n[0]-n[3])+(n[2]+n[1])*(n[2]+n[1]))*((n[0]+n[3])*(n[0]+n[3])+(n[2]-n[1])*(n[2]-n[1])),u=(i+o)/2;if(a<ws*u)return this.rx=this.ry=Math.sqrt(u),this.ax=0,this;var f=n[0]*n[1]+n[2]*n[3];a=Math.sqrt(a);var h=u+a/2,d=u-a/2;return this.ax=Math.abs(f)<ws&&Math.abs(h-o)<ws?90:Math.atan(Math.abs(f)>Math.abs(h-o)?(h-i)/f:f/(h-o))*180/Math.PI,this.ax>=0?(this.rx=Math.sqrt(h),this.ry=Math.sqrt(d)):(this.ax+=90,this.rx=Math.sqrt(d),this.ry=Math.sqrt(h)),this},Ts.prototype.isDegenerate=function(){return this.rx<ws*this.ry||this.ry<ws*this.rx};var Q2=Ts,J2=j2,tS=X2,pn=Lp,eS=Z2,rS=Q2;function ge(e){if(!(this instanceof ge))return new ge(e);var t=J2(e);this.segments=t.segments,this.err=t.err,this.__stack=[]}ge.from=function(e){if(typeof e=="string")return new ge(e);if(e instanceof ge){var t=new ge("");return t.err=e.err,t.segments=e.segments.map(function(r){return r.slice()}),t.__stack=e.__stack.map(function(r){return pn().matrix(r.toArray())}),t}throw new Error("SvgPath.from: invalid param type "+e)},ge.prototype.__matrix=function(e){var t=this,r;e.queue.length&&this.iterate(function(n,i,o,a){var u,f,h,d;switch(n[0]){case"v":u=e.calc(0,n[1],!0),f=u[0]===0?["v",u[1]]:["l",u[0],u[1]];break;case"V":u=e.calc(o,n[1],!1),f=u[0]===e.calc(o,a,!1)[0]?["V",u[1]]:["L",u[0],u[1]];break;case"h":u=e.calc(n[1],0,!0),f=u[1]===0?["h",u[0]]:["l",u[0],u[1]];break;case"H":u=e.calc(n[1],a,!1),f=u[1]===e.calc(o,a,!1)[1]?["H",u[0]]:["L",u[0],u[1]];break;case"a":case"A":var p=e.toArray(),c=rS(n[1],n[2],n[3]).transform(p);if(p[0]*p[3]-p[1]*p[2]<0&&(n[5]=n[5]?"0":"1"),u=e.calc(n[6],n[7],n[0]==="a"),n[0]==="A"&&n[6]===o&&n[7]===a||n[0]==="a"&&n[6]===0&&n[7]===0){f=[n[0]==="a"?"l":"L",u[0],u[1]];break}c.isDegenerate()?f=[n[0]==="a"?"l":"L",u[0],u[1]]:f=[n[0],c.rx,c.ry,c.ax,n[4],n[5],u[0],u[1]];break;case"m":d=i>0,u=e.calc(n[1],n[2],d),f=["m",u[0],u[1]];break;default:for(h=n[0],f=[h],d=h.toLowerCase()===h,r=1;r<n.length;r+=2)u=e.calc(n[r],n[r+1],d),f.push(u[0],u[1])}t.segments[i]=f},!0)},ge.prototype.__evaluateStack=function(){var e,t;if(this.__stack.length){if(this.__stack.length===1){this.__matrix(this.__stack[0]),this.__stack=[];return}for(e=pn(),t=this.__stack.length;--t>=0;)e.matrix(this.__stack[t].toArray());this.__matrix(e),this.__stack=[]}},ge.prototype.toString=function(){var e="",t="",r=!1;this.__evaluateStack();for(var n=0,i=this.segments.length;n<i;n++){var o=this.segments[n],a=o[0];a!==t||a==="m"||a==="M"?(a==="m"&&t==="z"&&(e+=" "),e+=a,r=!1):r=!0;for(var u=1;u<o.length;u++){var f=o[u];u===1?r&&f>=0&&(e+=" "):f>=0&&(e+=" "),e+=f}t=a}return e},ge.prototype.translate=function(e,t){return this.__stack.push(pn().translate(e,t||0)),this},ge.prototype.scale=function(e,t){return this.__stack.push(pn().scale(e,!t&&t!==0?e:t)),this},ge.prototype.rotate=function(e,t,r){return this.__stack.push(pn().rotate(e,t||0,r||0)),this},ge.prototype.skewX=function(e){return this.__stack.push(pn().skewX(e)),this},ge.prototype.skewY=function(e){return this.__stack.push(pn().skewY(e)),this},ge.prototype.matrix=function(e){return this.__stack.push(pn().matrix(e)),this},ge.prototype.transform=function(e){return e.trim()?(this.__stack.push(tS(e)),this):this},ge.prototype.round=function(e){var t=0,r=0,n=0,i=0,o;return e=e||0,this.__evaluateStack(),this.segments.forEach(function(a){var u=a[0].toLowerCase()===a[0];switch(a[0]){case"H":case"h":u&&(a[1]+=n),n=a[1]-a[1].toFixed(e),a[1]=+a[1].toFixed(e);return;case"V":case"v":u&&(a[1]+=i),i=a[1]-a[1].toFixed(e),a[1]=+a[1].toFixed(e);return;case"Z":case"z":n=t,i=r;return;case"M":case"m":u&&(a[1]+=n,a[2]+=i),n=a[1]-a[1].toFixed(e),i=a[2]-a[2].toFixed(e),t=n,r=i,a[1]=+a[1].toFixed(e),a[2]=+a[2].toFixed(e);return;case"A":case"a":u&&(a[6]+=n,a[7]+=i),n=a[6]-a[6].toFixed(e),i=a[7]-a[7].toFixed(e),a[1]=+a[1].toFixed(e),a[2]=+a[2].toFixed(e),a[3]=+a[3].toFixed(e+2),a[6]=+a[6].toFixed(e),a[7]=+a[7].toFixed(e);return;default:o=a.length,u&&(a[o-2]+=n,a[o-1]+=i),n=a[o-2]-a[o-2].toFixed(e),i=a[o-1]-a[o-1].toFixed(e),a.forEach(function(f,h){h&&(a[h]=+a[h].toFixed(e))});return}}),this},ge.prototype.iterate=function(e,t){var r=this.segments,n={},i=!1,o=0,a=0,u=0,f=0,h,d,p;if(t||this.__evaluateStack(),r.forEach(function(c,v){var y=e(c,v,o,a);Array.isArray(y)&&(n[v]=y,i=!0);var b=c[0]===c[0].toLowerCase();switch(c[0]){case"m":case"M":o=c[1]+(b?o:0),a=c[2]+(b?a:0),u=o,f=a;return;case"h":case"H":o=c[1]+(b?o:0);return;case"v":case"V":a=c[1]+(b?a:0);return;case"z":case"Z":o=u,a=f;return;default:o=c[c.length-2]+(b?o:0),a=c[c.length-1]+(b?a:0)}}),!i)return this;for(p=[],h=0;h<r.length;h++)if(typeof n[h]<"u")for(d=0;d<n[h].length;d++)p.push(n[h][d]);else p.push(r[h]);return this.segments=p,this},ge.prototype.abs=function(){return this.iterate(function(e,t,r,n){var i=e[0],o=i.toUpperCase(),a;if(i!==o)switch(e[0]=o,i){case"v":e[1]+=n;return;case"a":e[6]+=r,e[7]+=n;return;default:for(a=1;a<e.length;a++)e[a]+=a%2?r:n}},!0),this},ge.prototype.rel=function(){return this.iterate(function(e,t,r,n){var i=e[0],o=i.toLowerCase(),a;if(i!==o&&!(t===0&&i==="M"))switch(e[0]=o,i){case"V":e[1]-=n;return;case"A":e[6]-=r,e[7]-=n;return;default:for(a=1;a<e.length;a++)e[a]-=a%2?r:n}},!0),this},ge.prototype.unarc=function(){return this.iterate(function(e,t,r,n){var i,o,a,u=[],f=e[0];return f!=="A"&&f!=="a"?null:(f==="a"?(o=r+e[6],a=n+e[7]):(o=e[6],a=e[7]),i=eS(r,n,o,a,e[4],e[5],e[1],e[2],e[3]),i.length===0?[[e[0]==="a"?"l":"L",e[6],e[7]]]:(i.forEach(function(h){u.push(["C",h[2],h[3],h[4],h[5],h[6],h[7]])}),u))}),this},ge.prototype.unshort=function(){var e=this.segments,t,r,n,i,o;return this.iterate(function(a,u,f,h){var d=a[0],p=d.toUpperCase(),c;u&&(p==="T"?(c=d==="t",n=e[u-1],n[0]==="Q"?(t=n[1]-f,r=n[2]-h):n[0]==="q"?(t=n[1]-n[3],r=n[2]-n[4]):(t=0,r=0),i=-t,o=-r,c||(i+=f,o+=h),e[u]=[c?"q":"Q",i,o,a[1],a[2]]):p==="S"&&(c=d==="s",n=e[u-1],n[0]==="C"?(t=n[3]-f,r=n[4]-h):n[0]==="c"?(t=n[3]-n[5],r=n[4]-n[6]):(t=0,r=0),i=-t,o=-r,c||(i+=f,o+=h),e[u]=[c?"c":"C",i,o,a[1],a[2],a[3],a[4]]))}),this};var nS=ge,iS=nS;const sS=En(iS),oS=Et.forwardRef((e,t)=>{const[r,n]=Et.useState(null),i=mt.useRef(null),o=mt.useRef(null),a=mt.useRef(null),{path:u,transformation:{x:f,y:h,width:d,height:p,anchor:c,hexColor:v,fill:y,stroke:b="none",strokeWidth:_=0,colorCorrection:m={}},pointerdown:w,pointerup:T}=e,x=le.useApp(),{temperatureFilter:E,sharpnessFilter:I,hueFilter:A,blurFilter:O,adjustmentFilter:L}=ys(m),{blurRadius:R=0}=m;return Et.useEffect(()=>{const C=sS(u).scale(5).translate(0,0).toString(),P=`<svg xmlns="http://www.w3.org/2000/svg" width="${d}" height="${p}">
|
|
1932
1932
|
<path stroke="${b}" stroke-width="${_}" fill="${v||y}" d="${C}">
|
|
1933
1933
|
</path>
|
|
1934
|
-
</svg>`,M=new N2(P),F=x.renderer.generateTexture(M);return n(F),()=>{}},[x,u,b,_,v,y]),Vt.jsx(ni,{...e,ref:t,children:Vt.jsx(le.Container,{ref:o,children:Vt.jsx(le.Container,{ref:a,children:r&&Vt.jsx(le.Sprite,{texture:r,width:d,height:p,anchor:c,ref:i,x:f,y:h,interactive:!0,pointerdown:w,pointerup:T,filters:[E,I,A,L,...R>0?[O]:[]]})})})})});var aS=Mr,lS=function(){return aS.Date.now()},uS=lS,fS=/\s/;function cS(e){for(var t=e.length;t--&&fS.test(e.charAt(t)););return t}var hS=cS,dS=hS,pS=/^\s+/;function vS(e){return e&&e.slice(0,dS(e)+1).replace(pS,"")}var gS=vS,mS=Ki,yS=Zi,_S="[object Symbol]";function bS(e){return typeof e=="symbol"||yS(e)&&mS(e)==_S}var qo=bS,xS=gS,Dp=Yi,wS=qo,Up=0/0,TS=/^[-+]0x[0-9a-f]+$/i,ES=/^0b[01]+$/i,SS=/^0o[0-7]+$/i,AS=parseInt;function OS(e){if(typeof e=="number")return e;if(wS(e))return Up;if(Dp(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Dp(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=xS(e);var r=ES.test(e);return r||SS.test(e)?AS(e.slice(2),r?2:8):TS.test(e)?Up:+e}var CS=OS,RS=Yi,Fu=uS,$p=CS,IS="Expected a function",PS=Math.max,NS=Math.min;function MS(e,t,r){var n,i,o,a,u,f,h=0,d=!1,p=!1,c=!0;if(typeof e!="function")throw new TypeError(IS);t=$p(t)||0,RS(r)&&(d=!!r.leading,p="maxWait"in r,o=p?PS($p(r.maxWait)||0,t):o,c="trailing"in r?!!r.trailing:c);function v(I){var A=n,O=i;return n=i=void 0,h=I,a=e.apply(O,A),a}function y(I){return h=I,u=setTimeout(m,t),d?v(I):a}function b(I){var A=I-f,O=I-h,L=t-A;return p?NS(L,o-O):L}function _(I){var A=I-f,O=I-h;return f===void 0||A>=t||A<0||p&&O>=o}function m(){var I=Fu();if(_(I))return w(I);u=setTimeout(m,b(I))}function w(I){return u=void 0,c&&n?v(I):(n=i=void 0,a)}function T(){u!==void 0&&clearTimeout(u),h=0,n=f=i=u=void 0}function x(){return u===void 0?a:w(Fu())}function E(){var I=Fu(),A=_(I);if(n=arguments,i=this,f=I,A){if(u===void 0)return y(f);if(p)return clearTimeout(u),u=setTimeout(m,t),v(f)}return u===void 0&&(u=setTimeout(m,t)),a}return E.cancel=T,E.flush=x,E}var kS=MS;const Bu=En(kS),LS=e=>{const t={isPlaying:!1,progress:0,speed:1,mute:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1},[,r]=Et.useState(!1),n=mt.useRef(null),i=mt.useRef(t),o=mt.useRef(null),{tl:a,dragModeRef:u}=mt.useContext(An),{uniqueId:f,src:h,startAt:d,endAt:p,mute:c,speed:v}=e,y=e.audioStartAt||d,b=e.audioEndAt||p,_=Et.useRef(null);Ze(Oe.PAUSE,()=>{var A;n.current&&_.current&&((A=_.current)==null||A.pause(),i.current.isPlaying=!1)}),Et.useEffect(()=>{_.current&&(u.current?(_.current.pause(),i.current.isPlaying=!1,i.current.isDragging=!0):i.current.isDragging=!1)},[u]);const m=A=>{var O,L;n.current&&((O=_.current)==null||O.play({volume:c?0:1,start:A,end:p,speed:v||1}),u.current?((L=_.current)==null||L.pause(),i.current.isPlaying=!1,i.current.completed=!1):(i.current.isPlaying=!0,i.current.completed=!1))},w=Bu((A,O)=>{var L;_.current&&((L=_.current)==null||L.play({volume:c?0:1,start:A,end:O,speed:v||1}),i.current.isPlaying=!0)},100),T=Bu(()=>{_.current&&(_.current.pause(),i.current.isPlaying=!1)},300),x=()=>{var A;n.current&&((A=_.current)==null||A.stop(),i.current.isPlaying=!1,i.current.completed=!0)},E=(A,O)=>{var R,C,P,M;const L=A+((R=o.current)==null?void 0:R.time());_.current&&u.current?(w(L,O),T(),i.current.isPlaying=!1):n.current&&!i.current.isPlaying&&((C=_.current)==null||C.refresh(),(P=_.current)==null||P.refreshPaused(),(M=_.current)==null||M.resume(),i.current.isPlaying=!0)},I=()=>{};return mt.useEffect(()=>{let A=_e.context(()=>{});if(n.current&&a.current){const O={duration:Number(b)-Number(y),onStart:m,onComplete:x,onStartParams:[y,b],onCompleteParams:[],onInterrupt:I,onUpdate:E,onUpdateParams:[y,b]};o.current&&o.current.kill(),A=_e.context(()=>{o.current=_e.from(n.current,O,y),a.current.to(n.current,{alpha:1,duration:.01},d).to(n.current,{alpha:0,duration:.1},Number(p)-.09),a.current.add(o.current,d)})}return()=>{o.current&&(o.current.kill(),_e.killTweensOf(o.current)),A.revert()}},[d,p,y,b]),Et.useEffect(()=>{n.current&&r(!0)},[]),Et.useEffect(()=>{n.current&&_.current&&(i.current.mute=c,i.current.speed=v,_.current.volume=c?0:1)},[c,v]),Et.useEffect(()=>(el(h)||(_.current=ly.Sound.from({url:h,preload:!0,singleInstance:!0,loaded:()=>{i.current.loaded=!0}})),()=>{_.current&&(_.current.pause&&_.current.pause(),_.current.destroy&&_.current.destroy())}),[f,h]),Vt.jsx(le.Container,{ref:n})};function FS(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Gp=FS;function BS(){this.__data__=[],this.size=0}var DS=BS;function US(e,t){return e===t||e!==e&&t!==t}var jp=US,$S=jp;function GS(e,t){for(var r=e.length;r--;)if($S(e[r][0],t))return r;return-1}var zo=GS,jS=zo,qS=Array.prototype,zS=qS.splice;function HS(e){var t=this.__data__,r=jS(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():zS.call(t,r,1),--this.size,!0}var VS=HS,WS=zo;function XS(e){var t=this.__data__,r=WS(t,e);return r<0?void 0:t[r][1]}var KS=XS,YS=zo;function ZS(e){return YS(this.__data__,e)>-1}var QS=ZS,JS=zo;function tA(e,t){var r=this.__data__,n=JS(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var eA=tA,rA=DS,nA=VS,iA=KS,sA=QS,oA=eA;function Ii(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ii.prototype.clear=rA,Ii.prototype.delete=nA,Ii.prototype.get=iA,Ii.prototype.has=sA,Ii.prototype.set=oA;var Ho=Ii,aA=Ho;function lA(){this.__data__=new aA,this.size=0}var uA=lA;function fA(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var cA=fA;function hA(e){return this.__data__.get(e)}var dA=hA;function pA(e){return this.__data__.has(e)}var vA=pA,gA=ei,mA=gA(Object,"create"),Vo=mA,qp=Vo;function yA(){this.__data__=qp?qp(null):{},this.size=0}var _A=yA;function bA(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var xA=bA,wA=Vo,TA="__lodash_hash_undefined__",EA=Object.prototype,SA=EA.hasOwnProperty;function AA(e){var t=this.__data__;if(wA){var r=t[e];return r===TA?void 0:r}return SA.call(t,e)?t[e]:void 0}var OA=AA,CA=Vo,RA=Object.prototype,IA=RA.hasOwnProperty;function PA(e){var t=this.__data__;return CA?t[e]!==void 0:IA.call(t,e)}var NA=PA,MA=Vo,kA="__lodash_hash_undefined__";function LA(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=MA&&t===void 0?kA:t,this}var FA=LA,BA=_A,DA=xA,UA=OA,$A=NA,GA=FA;function Pi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Pi.prototype.clear=BA,Pi.prototype.delete=DA,Pi.prototype.get=UA,Pi.prototype.has=$A,Pi.prototype.set=GA;var jA=Pi,zp=jA,qA=Ho,zA=Ha;function HA(){this.size=0,this.__data__={hash:new zp,map:new(zA||qA),string:new zp}}var VA=HA;function WA(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var XA=WA,KA=XA;function YA(e,t){var r=e.__data__;return KA(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Wo=YA,ZA=Wo;function QA(e){var t=ZA(this,e).delete(e);return this.size-=t?1:0,t}var JA=QA,tO=Wo;function eO(e){return tO(this,e).get(e)}var rO=eO,nO=Wo;function iO(e){return nO(this,e).has(e)}var sO=iO,oO=Wo;function aO(e,t){var r=oO(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var lO=aO,uO=VA,fO=JA,cO=rO,hO=sO,dO=lO;function Ni(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ni.prototype.clear=uO,Ni.prototype.delete=fO,Ni.prototype.get=cO,Ni.prototype.has=hO,Ni.prototype.set=dO;var Du=Ni,pO=Ho,vO=Ha,gO=Du,mO=200;function yO(e,t){var r=this.__data__;if(r instanceof pO){var n=r.__data__;if(!vO||n.length<mO-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new gO(n)}return r.set(e,t),this.size=r.size,this}var _O=yO,bO=Ho,xO=uA,wO=cA,TO=dA,EO=vA,SO=_O;function Mi(e){var t=this.__data__=new bO(e);this.size=t.size}Mi.prototype.clear=xO,Mi.prototype.delete=wO,Mi.prototype.get=TO,Mi.prototype.has=EO,Mi.prototype.set=SO;var Hp=Mi,AO="__lodash_hash_undefined__";function OO(e){return this.__data__.set(e,AO),this}var CO=OO;function RO(e){return this.__data__.has(e)}var IO=RO,PO=Du,NO=CO,MO=IO;function Xo(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new PO;++t<r;)this.add(e[t])}Xo.prototype.add=Xo.prototype.push=NO,Xo.prototype.has=MO;var kO=Xo;function LO(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var FO=LO;function BO(e,t){return e.has(t)}var DO=BO,UO=kO,$O=FO,GO=DO,jO=1,qO=2;function zO(e,t,r,n,i,o){var a=r&jO,u=e.length,f=t.length;if(u!=f&&!(a&&f>u))return!1;var h=o.get(e),d=o.get(t);if(h&&d)return h==t&&d==e;var p=-1,c=!0,v=r&qO?new UO:void 0;for(o.set(e,t),o.set(t,e);++p<u;){var y=e[p],b=t[p];if(n)var _=a?n(b,y,p,t,e,o):n(y,b,p,e,t,o);if(_!==void 0){if(_)continue;c=!1;break}if(v){if(!$O(t,function(m,w){if(!GO(v,w)&&(y===m||i(y,m,r,n,o)))return v.push(w)})){c=!1;break}}else if(!(y===b||i(y,b,r,n,o))){c=!1;break}}return o.delete(e),o.delete(t),c}var Vp=zO,HO=Mr,VO=HO.Uint8Array,WO=VO;function XO(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var KO=XO;function YO(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var ZO=YO,Wp=Gs,Xp=WO,QO=jp,JO=Vp,tC=KO,eC=ZO,rC=1,nC=2,iC="[object Boolean]",sC="[object Date]",oC="[object Error]",aC="[object Map]",lC="[object Number]",uC="[object RegExp]",fC="[object Set]",cC="[object String]",hC="[object Symbol]",dC="[object ArrayBuffer]",pC="[object DataView]",Kp=Wp?Wp.prototype:void 0,Uu=Kp?Kp.valueOf:void 0;function vC(e,t,r,n,i,o,a){switch(r){case pC:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case dC:return!(e.byteLength!=t.byteLength||!o(new Xp(e),new Xp(t)));case iC:case sC:case lC:return QO(+e,+t);case oC:return e.name==t.name&&e.message==t.message;case uC:case cC:return e==t+"";case aC:var u=tC;case fC:var f=n&rC;if(u||(u=eC),e.size!=t.size&&!f)return!1;var h=a.get(e);if(h)return h==t;n|=nC,a.set(e,t);var d=JO(u(e),u(t),n,i,o,a);return a.delete(e),d;case hC:if(Uu)return Uu.call(e)==Uu.call(t)}return!1}var gC=vC;function mC(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var yC=mC,_C=yC,bC=kr;function xC(e,t,r){var n=t(e);return bC(e)?n:_C(n,r(e))}var wC=xC;function TC(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}var EC=TC;function SC(){return[]}var AC=SC,OC=EC,CC=AC,RC=Object.prototype,IC=RC.propertyIsEnumerable,Yp=Object.getOwnPropertySymbols,PC=Yp?function(e){return e==null?[]:(e=Object(e),OC(Yp(e),function(t){return IC.call(e,t)}))}:CC,NC=PC;function MC(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var kC=MC,LC=9007199254740991,FC=/^(?:0|[1-9]\d*)$/;function BC(e,t){var r=typeof e;return t=t??LC,!!t&&(r=="number"||r!="symbol"&&FC.test(e))&&e>-1&&e%1==0&&e<t}var Zp=BC,DC=kC,UC=Za,$C=kr,GC=Ja,jC=Zp,qC=tl,zC=Object.prototype,HC=zC.hasOwnProperty;function VC(e,t){var r=$C(e),n=!r&&UC(e),i=!r&&!n&&GC(e),o=!r&&!n&&!i&&qC(e),a=r||n||i||o,u=a?DC(e.length,String):[],f=u.length;for(var h in e)(t||HC.call(e,h))&&!(a&&(h=="length"||i&&(h=="offset"||h=="parent")||o&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||jC(h,f)))&&u.push(h);return u}var WC=VC,XC=WC,KC=vc,YC=js;function ZC(e){return YC(e)?XC(e):KC(e)}var $u=ZC,QC=wC,JC=NC,tR=$u;function eR(e){return QC(e,tR,JC)}var rR=eR,Qp=rR,nR=1,iR=Object.prototype,sR=iR.hasOwnProperty;function oR(e,t,r,n,i,o){var a=r&nR,u=Qp(e),f=u.length,h=Qp(t),d=h.length;if(f!=d&&!a)return!1;for(var p=f;p--;){var c=u[p];if(!(a?c in t:sR.call(t,c)))return!1}var v=o.get(e),y=o.get(t);if(v&&y)return v==t&&y==e;var b=!0;o.set(e,t),o.set(t,e);for(var _=a;++p<f;){c=u[p];var m=e[c],w=t[c];if(n)var T=a?n(w,m,c,t,e,o):n(m,w,c,e,t,o);if(!(T===void 0?m===w||i(m,w,r,n,o):T)){b=!1;break}_||(_=c=="constructor")}if(b&&!_){var x=e.constructor,E=t.constructor;x!=E&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof E=="function"&&E instanceof E)&&(b=!1)}return o.delete(e),o.delete(t),b}var aR=oR,Gu=Hp,lR=Vp,uR=gC,fR=aR,Jp=Ic,tv=kr,ev=Ja,cR=tl,hR=1,rv="[object Arguments]",nv="[object Array]",Ko="[object Object]",dR=Object.prototype,iv=dR.hasOwnProperty;function pR(e,t,r,n,i,o){var a=tv(e),u=tv(t),f=a?nv:Jp(e),h=u?nv:Jp(t);f=f==rv?Ko:f,h=h==rv?Ko:h;var d=f==Ko,p=h==Ko,c=f==h;if(c&&ev(e)){if(!ev(t))return!1;a=!0,d=!1}if(c&&!d)return o||(o=new Gu),a||cR(e)?lR(e,t,r,n,i,o):uR(e,t,f,r,n,i,o);if(!(r&hR)){var v=d&&iv.call(e,"__wrapped__"),y=p&&iv.call(t,"__wrapped__");if(v||y){var b=v?e.value():e,_=y?t.value():t;return o||(o=new Gu),i(b,_,r,n,o)}}return c?(o||(o=new Gu),fR(e,t,r,n,i,o)):!1}var vR=pR,gR=vR,sv=Zi;function ov(e,t,r,n,i){return e===t?!0:e==null||t==null||!sv(e)&&!sv(t)?e!==e&&t!==t:gR(e,t,r,n,ov,i)}var av=ov,mR=Hp,yR=av,_R=1,bR=2;function xR(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return!o;for(e=Object(e);i--;){var u=r[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<o;){u=r[i];var f=u[0],h=e[f],d=u[1];if(a&&u[2]){if(h===void 0&&!(f in e))return!1}else{var p=new mR;if(n)var c=n(h,d,f,e,t,p);if(!(c===void 0?yR(d,h,_R|bR,n,p):c))return!1}}return!0}var wR=xR,TR=Yi;function ER(e){return e===e&&!TR(e)}var lv=ER,SR=lv,AR=$u;function OR(e){for(var t=AR(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,SR(i)]}return t}var CR=OR;function RR(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var uv=RR,IR=wR,PR=CR,NR=uv;function MR(e){var t=PR(e);return t.length==1&&t[0][2]?NR(t[0][0],t[0][1]):function(r){return r===e||IR(r,e,t)}}var kR=MR,LR=kr,FR=qo,BR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,DR=/^\w*$/;function UR(e,t){if(LR(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||FR(e)?!0:DR.test(e)||!BR.test(e)||t!=null&&e in Object(t)}var ju=UR,fv=Du,$R="Expected a function";function qu(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError($R);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(qu.Cache||fv),r}qu.Cache=fv;var GR=qu,jR=GR,qR=500;function zR(e){var t=jR(e,function(n){return r.size===qR&&r.clear(),n}),r=t.cache;return t}var HR=zR,VR=HR,WR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,XR=/\\(\\)?/g,KR=VR(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(WR,function(r,n,i,o){t.push(i?o.replace(XR,"$1"):n||r)}),t}),YR=KR,cv=Gs,ZR=Gp,QR=kr,JR=qo,tI=1/0,hv=cv?cv.prototype:void 0,dv=hv?hv.toString:void 0;function pv(e){if(typeof e=="string")return e;if(QR(e))return ZR(e,pv)+"";if(JR(e))return dv?dv.call(e):"";var t=e+"";return t=="0"&&1/e==-tI?"-0":t}var eI=pv,rI=eI;function nI(e){return e==null?"":rI(e)}var iI=nI,sI=kr,oI=ju,aI=YR,lI=iI;function uI(e,t){return sI(e)?e:oI(e,t)?[e]:aI(lI(e))}var vv=uI,fI=qo,cI=1/0;function hI(e){if(typeof e=="string"||fI(e))return e;var t=e+"";return t=="0"&&1/e==-cI?"-0":t}var Yo=hI,dI=vv,pI=Yo;function vI(e,t){t=dI(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[pI(t[r++])];return r&&r==n?e:void 0}var gv=vI,gI=gv;function mI(e,t,r){var n=e==null?void 0:gI(e,t);return n===void 0?r:n}var yI=mI;function _I(e,t){return e!=null&&t in Object(e)}var bI=_I,xI=vv,wI=Za,TI=kr,EI=Zp,SI=Qa,AI=Yo;function OI(e,t,r){t=xI(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=AI(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&SI(i)&&EI(a,i)&&(TI(e)||wI(e)))}var CI=OI,RI=bI,II=CI;function PI(e,t){return e!=null&&II(e,t,RI)}var NI=PI,MI=av,kI=yI,LI=NI,FI=ju,BI=lv,DI=uv,UI=Yo,$I=1,GI=2;function jI(e,t){return FI(e)&&BI(t)?DI(UI(e),t):function(r){var n=kI(r,e);return n===void 0&&n===t?LI(r,e):MI(t,n,$I|GI)}}var qI=jI;function zI(e){return e}var HI=zI;function VI(e){return function(t){return t==null?void 0:t[e]}}var WI=VI,XI=gv;function KI(e){return function(t){return XI(t,e)}}var YI=KI,ZI=WI,QI=YI,JI=ju,tP=Yo;function eP(e){return JI(e)?ZI(tP(e)):QI(e)}var rP=eP,nP=kR,iP=qI,sP=HI,oP=kr,aP=rP;function lP(e){return typeof e=="function"?e:e==null?sP:typeof e=="object"?oP(e)?iP(e[0],e[1]):nP(e):aP(e)}var uP=lP;function fP(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),u=a.length;u--;){var f=a[e?u:++i];if(r(o[f],f,o)===!1)break}return t}}var cP=fP,hP=cP,dP=hP(),pP=dP,vP=pP,gP=$u;function mP(e,t){return e&&vP(e,t,gP)}var yP=mP,_P=js;function bP(e,t){return function(r,n){if(r==null)return r;if(!_P(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++o<i)&&n(a[o],o,a)!==!1;);return r}}var xP=bP,wP=yP,TP=xP,EP=TP(wP),SP=EP,AP=SP,OP=js;function CP(e,t){var r=-1,n=OP(e)?Array(e.length):[];return AP(e,function(i,o,a){n[++r]=t(i,o,a)}),n}var RP=CP,IP=Gp,PP=uP,NP=RP,MP=kr;function kP(e,t){var r=MP(e)?IP:NP;return r(e,PP(t))}var LP=kP;const FP=En(LP);var zn={},mv={},Yr={};Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.loop=Yr.conditional=Yr.parse=void 0;var BP=function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:n;if(Array.isArray(r))r.forEach(function(a){return e(t,a,n,i)});else if(typeof r=="function")r(t,n,i,e);else{var o=Object.keys(r)[0];Array.isArray(r[o])?(i[o]={},e(t,r[o],n,i[o])):i[o]=r[o](t,n,i,e)}return n};Yr.parse=BP;var DP=function(t,r){return function(n,i,o,a){r(n,i,o)&&a(n,t,i,o)}};Yr.conditional=DP;var UP=function(t,r){return function(n,i,o,a){for(var u=[],f=n.pos;r(n,i,o);){var h={};if(a(n,t,i,h),n.pos===f)break;f=n.pos,u.push(h)}return u}};Yr.loop=UP;var be={};Object.defineProperty(be,"__esModule",{value:!0}),be.readBits=be.readArray=be.readUnsigned=be.readString=be.peekBytes=be.readBytes=be.peekByte=be.readByte=be.buildStream=void 0;var $P=function(t){return{data:t,pos:0}};be.buildStream=$P;var yv=function(){return function(t){return t.data[t.pos++]}};be.readByte=yv;var GP=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(r){return r.data[r.pos+t]}};be.peekByte=GP;var Zo=function(t){return function(r){return r.data.subarray(r.pos,r.pos+=t)}};be.readBytes=Zo;var jP=function(t){return function(r){return r.data.subarray(r.pos,r.pos+t)}};be.peekBytes=jP;var qP=function(t){return function(r){return Array.from(Zo(t)(r)).map(function(n){return String.fromCharCode(n)}).join("")}};be.readString=qP;var zP=function(t){return function(r){var n=Zo(2)(r);return t?(n[1]<<8)+n[0]:(n[0]<<8)+n[1]}};be.readUnsigned=zP;var HP=function(t,r){return function(n,i,o){for(var a=typeof r=="function"?r(n,i,o):r,u=Zo(t),f=new Array(a),h=0;h<a;h++)f[h]=u(n);return f}};be.readArray=HP;var VP=function(t,r,n){for(var i=0,o=0;o<n;o++)i+=t[r+o]&&Math.pow(2,n-o-1);return i},WP=function(t){return function(r){for(var n=yv()(r),i=new Array(8),o=0;o<8;o++)i[7-o]=!!(n&1<<o);return Object.keys(t).reduce(function(a,u){var f=t[u];return f.length?a[u]=VP(i,f.index,f.length):a[u]=i[f.index],a},{})}};be.readBits=WP,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=Yr,r=be,n={blocks:function(c){for(var v=0,y=[],b=c.data.length,_=0,m=(0,r.readByte)()(c);m!==v&&m;m=(0,r.readByte)()(c)){if(c.pos+m>=b){var w=b-c.pos;y.push((0,r.readBytes)(w)(c)),_+=w;break}y.push((0,r.readBytes)(m)(c)),_+=m}for(var T=new Uint8Array(_),x=0,E=0;E<y.length;E++)T.set(y[E],x),x+=y[E].length;return T}},i=(0,t.conditional)({gce:[{codes:(0,r.readBytes)(2)},{byteSize:(0,r.readByte)()},{extras:(0,r.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,r.readUnsigned)(!0)},{transparentColorIndex:(0,r.readByte)()},{terminator:(0,r.readByte)()}]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===249}),o=(0,t.conditional)({image:[{code:(0,r.readByte)()},{descriptor:[{left:(0,r.readUnsigned)(!0)},{top:(0,r.readUnsigned)(!0)},{width:(0,r.readUnsigned)(!0)},{height:(0,r.readUnsigned)(!0)},{lct:(0,r.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,t.conditional)({lct:(0,r.readArray)(3,function(p,c,v){return Math.pow(2,v.descriptor.lct.size+1)})},function(p,c,v){return v.descriptor.lct.exists}),{data:[{minCodeSize:(0,r.readByte)()},n]}]},function(p){return(0,r.peekByte)()(p)===44}),a=(0,t.conditional)({text:[{codes:(0,r.readBytes)(2)},{blockSize:(0,r.readByte)()},{preData:function(c,v,y){return(0,r.readBytes)(y.text.blockSize)(c)}},n]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===1}),u=(0,t.conditional)({application:[{codes:(0,r.readBytes)(2)},{blockSize:(0,r.readByte)()},{id:function(c,v,y){return(0,r.readString)(y.blockSize)(c)}},n]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===255}),f=(0,t.conditional)({comment:[{codes:(0,r.readBytes)(2)},n]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===254}),h=[{header:[{signature:(0,r.readString)(3)},{version:(0,r.readString)(3)}]},{lsd:[{width:(0,r.readUnsigned)(!0)},{height:(0,r.readUnsigned)(!0)},{gct:(0,r.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,r.readByte)()},{pixelAspectRatio:(0,r.readByte)()}]},(0,t.conditional)({gct:(0,r.readArray)(3,function(p,c){return Math.pow(2,c.lsd.gct.size+1)})},function(p,c){return c.lsd.gct.exists}),{frames:(0,t.loop)([i,u,f,o,a],function(p){var c=(0,r.peekByte)()(p);return c===33||c===44})}],d=h;e.default=d}(mv);var Qo={};Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.deinterlace=void 0;var XP=function(t,r){for(var n=new Array(t.length),i=t.length/r,o=function(c,v){var y=t.slice(v*r,(v+1)*r);n.splice.apply(n,[c*r,r].concat(y))},a=[0,4,2,1],u=[8,8,4,2],f=0,h=0;h<4;h++)for(var d=a[h];d<i;d+=u[h])o(d,f),f++;return n};Qo.deinterlace=XP;var Jo={};Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.lzw=void 0;var KP=function(t,r,n){var i=4096,o=-1,a=n,u,f,h,d,p,c,v,I,y,b,E,_,A,O,R,L,m=new Array(n),w=new Array(i),T=new Array(i),x=new Array(i+1);for(_=t,f=1<<_,p=f+1,u=f+2,v=o,d=_+1,h=(1<<d)-1,y=0;y<f;y++)w[y]=0,T[y]=y;var E,I,A,O,L,R;for(E=I=A=O=L=R=0,b=0;b<a;){if(O===0){if(I<d){E+=r[R]<<I,I+=8,R++;continue}if(y=E&h,E>>=d,I-=d,y>u||y==p)break;if(y==f){d=_+1,h=(1<<d)-1,u=f+2,v=o;continue}if(v==o){x[O++]=T[y],v=y,A=y;continue}for(c=y,y==u&&(x[O++]=A,y=v);y>f;)x[O++]=T[y],y=w[y];A=T[y]&255,x[O++]=A,u<i&&(w[u]=v,T[u]=A,u++,!(u&h)&&u<i&&(d++,h+=u)),v=c}O--,m[L++]=x[O],b++}for(b=L;b<a;b++)m[b]=0;return m};Jo.lzw=KP,Object.defineProperty(zn,"__esModule",{value:!0}),zn.decompressFrames=zn.decompressFrame=zn.parseGIF=void 0;var YP=eN(mv),ZP=Yr,QP=be,JP=Qo,tN=Jo;function eN(e){return e&&e.__esModule?e:{default:e}}var rN=function(t){var r=new Uint8Array(t);return(0,ZP.parse)((0,QP.buildStream)(r),YP.default)};zn.parseGIF=rN;var nN=function(t){for(var r=t.pixels.length,n=new Uint8ClampedArray(r*4),i=0;i<r;i++){var o=i*4,a=t.pixels[i],u=t.colorTable[a]||[0,0,0];n[o]=u[0],n[o+1]=u[1],n[o+2]=u[2],n[o+3]=a!==t.transparentIndex?255:0}return n},_v=function(t,r,n){if(!t.image){console.warn("gif frame does not have associated image.");return}var i=t.image,o=i.descriptor.width*i.descriptor.height,a=(0,tN.lzw)(i.data.minCodeSize,i.data.blocks,o);i.descriptor.lct.interlaced&&(a=(0,JP.deinterlace)(a,i.descriptor.width));var u={pixels:a,dims:{top:t.image.descriptor.top,left:t.image.descriptor.left,width:t.image.descriptor.width,height:t.image.descriptor.height}};return i.descriptor.lct&&i.descriptor.lct.exists?u.colorTable=i.lct:u.colorTable=r,t.gce&&(u.delay=(t.gce.delay||10)*10,u.disposalType=t.gce.extras.disposal,t.gce.extras.transparentColorGiven&&(u.transparentIndex=t.gce.transparentColorIndex)),n&&(u.patch=nN(u)),u};zn.decompressFrame=_v;var iN=function(t,r){return t.frames.filter(function(n){return n.image}).map(function(n){return _v(n,t.gct,r)})};zn.decompressFrames=iN;const bv=(e,t={})=>{typeof t=="function"&&(t=t(e));const r=t.loaded&&e.loaded!==t.loaded,{playing:n,...i}=t,o={...e,...i};return r&&Object.assign(o,{playing:o.autoPlay&&o.loaded}),(t.delays!=null||t.frames!=null)&&Object.assign(o,{length:o.frames.length}),(t.index!=null||t.frames!=null)&&Object.assign(o,{index:o.length===0?0:(o.length+o.index)%o.length}),t.playing!=null&&Object.assign(o,o.loaded?{playing:n}:{autoPlay:n}),o},sN=e=>bv({autoPlay:!0,playing:!1,frames:[],delays:[],index:0,length:0,loaded:!1},e),oN=e=>mt.useReducer(bv,e,sN);var aN='function e(e){var r={exports:{}};return e(r,r.exports),r.exports}var r=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.loop=r.conditional=r.parse=void 0;r.parse=function e(r,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;if(Array.isArray(t))t.forEach((function(t){return e(r,t,n,a)}));else if("function"==typeof t)t(r,n,a,e);else{var i=Object.keys(t)[0];Array.isArray(t[i])?(a[i]={},e(r,t[i],n,a[i])):a[i]=t[i](r,n,a,e)}return n};r.conditional=function(e,r){return function(t,n,a,i){r(t,n,a)&&i(t,e,n,a)}};r.loop=function(e,r){return function(t,n,a,i){for(var o=[];r(t,n,a);){var s={};i(t,e,n,s),o.push(s)}return o}}})),t=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.readBits=r.readArray=r.readUnsigned=r.readString=r.peekBytes=r.readBytes=r.peekByte=r.readByte=r.buildStream=void 0;r.buildStream=function(e){return{data:e,pos:0}};var t=function(){return function(e){return e.data[e.pos++]}};r.readByte=t;r.peekByte=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(r){return r.data[r.pos+e]}};var n=function(e){return function(r){return r.data.subarray(r.pos,r.pos+=e)}};r.readBytes=n;r.peekBytes=function(e){return function(r){return r.data.subarray(r.pos,r.pos+e)}};r.readString=function(e){return function(r){return Array.from(n(e)(r)).map((function(e){return String.fromCharCode(e)})).join("")}};r.readUnsigned=function(e){return function(r){var t=n(2)(r);return e?(t[1]<<8)+t[0]:(t[0]<<8)+t[1]}};r.readArray=function(e,r){return function(t,a,i){for(var o="function"==typeof r?r(t,a,i):r,s=n(e),d=new Array(o),c=0;c<o;c++)d[c]=s(t);return d}};r.readBits=function(e){return function(r){for(var t=function(e){return e.data[e.pos++]}(r),n=new Array(8),a=0;a<8;a++)n[7-a]=!!(t&1<<a);return Object.keys(e).reduce((function(r,t){var a=e[t];return a.length?r[t]=function(e,r,t){for(var n=0,a=0;a<t;a++)n+=e[r+a]&&Math.pow(2,t-a-1);return n}(n,a.index,a.length):r[t]=n[a.index],r}),{})}}})),n=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={blocks:function(e){for(var r=[],n=e.data.length,a=0,i=(0,t.readByte)()(e);0!==i;i=(0,t.readByte)()(e)){if(e.pos+i>=n){var o=n-e.pos;r.push((0,t.readBytes)(o)(e)),a+=o;break}r.push((0,t.readBytes)(i)(e)),a+=i}for(var s=new Uint8Array(a),d=0,c=0;c<r.length;c++)s.set(r[c],d),d+=r[c].length;return s}},i=(0,r.conditional)({gce:[{codes:(0,t.readBytes)(2)},{byteSize:(0,t.readByte)()},{extras:(0,t.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,t.readUnsigned)(!0)},{transparentColorIndex:(0,t.readByte)()},{terminator:(0,t.readByte)()}]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&249===r[1]})),o=(0,r.conditional)({image:[{code:(0,t.readByte)()},{descriptor:[{left:(0,t.readUnsigned)(!0)},{top:(0,t.readUnsigned)(!0)},{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{lct:(0,t.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,r.conditional)({lct:(0,t.readArray)(3,(function(e,r,t){return Math.pow(2,t.descriptor.lct.size+1)}))},(function(e,r,t){return t.descriptor.lct.exists})),{data:[{minCodeSize:(0,t.readByte)()},a]}]},(function(e){return 44===(0,t.peekByte)()(e)})),s=(0,r.conditional)({text:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{preData:function(e,r,n){return(0,t.readBytes)(n.text.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&1===r[1]})),d=(0,r.conditional)({application:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{id:function(e,r,n){return(0,t.readString)(n.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&255===r[1]})),c=(0,r.conditional)({comment:[{codes:(0,t.readBytes)(2)},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&254===r[1]})),u=[{header:[{signature:(0,t.readString)(3)},{version:(0,t.readString)(3)}]},{lsd:[{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{gct:(0,t.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,t.readByte)()},{pixelAspectRatio:(0,t.readByte)()}]},(0,r.conditional)({gct:(0,t.readArray)(3,(function(e,r){return Math.pow(2,r.lsd.gct.size+1)}))},(function(e,r){return r.lsd.gct.exists})),{frames:(0,r.loop)([i,d,c,o,s],(function(e){var r=(0,t.peekByte)()(e);return 33===r||44===r}))}];n.default=u})),a=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.deinterlace=void 0;r.deinterlace=function(e,r){for(var t=new Array(e.length),n=e.length/r,a=function(n,a){var i=e.slice(a*r,(a+1)*r);t.splice.apply(t,[n*r,r].concat(i))},i=[0,4,2,1],o=[8,8,4,2],s=0,d=0;d<4;d++)for(var c=i[d];c<n;c+=o[d])a(c,s),s++;return t}})),i=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.lzw=void 0;r.lzw=function(e,r,t){var n,a,i,o,s,d,c,u,l,f,p,g,y,h,v,m,x=4096,B=t,w=new Array(t),b=new Array(x),k=new Array(x),A=new Array(4097);for(s=(a=1<<(f=e))+1,n=a+2,c=-1,i=(1<<(o=f+1))-1,u=0;u<a;u++)b[u]=0,k[u]=u;for(p=g=y=h=v=m=0,l=0;l<B;){if(0===h){if(g<o){p+=r[m]<<g,g+=8,m++;continue}if(u=p&i,p>>=o,g-=o,u>n||u==s)break;if(u==a){i=(1<<(o=f+1))-1,n=a+2,c=-1;continue}if(-1==c){A[h++]=k[u],c=u,y=u;continue}for(d=u,u==n&&(A[h++]=y,u=c);u>a;)A[h++]=k[u],u=b[u];y=255&k[u],A[h++]=y,n<x&&(b[n]=c,k[n]=y,0==(++n&i)&&n<x&&(o++,i+=n)),c=d}h--,w[v++]=A[h],l++}for(l=v;l<B;l++)w[l]=0;return w}})),o=e((function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.decompressFrames=o.decompressFrame=o.parseGIF=void 0;var s,d=(s=n)&&s.__esModule?s:{default:s};o.parseGIF=function(e){var n=new Uint8Array(e);return(0,r.parse)((0,t.buildStream)(n),d.default)};var c=function(e,r,t){if(e.image){var n=e.image,o=n.descriptor.width*n.descriptor.height,s=(0,i.lzw)(n.data.minCodeSize,n.data.blocks,o);n.descriptor.lct.interlaced&&(s=(0,a.deinterlace)(s,n.descriptor.width));var d={pixels:s,dims:{top:e.image.descriptor.top,left:e.image.descriptor.left,width:e.image.descriptor.width,height:e.image.descriptor.height}};return n.descriptor.lct&&n.descriptor.lct.exists?d.colorTable=n.lct:d.colorTable=r,e.gce&&(d.delay=10*(e.gce.delay||10),d.disposalType=e.gce.extras.disposal,e.gce.extras.transparentColorGiven&&(d.transparentIndex=e.gce.transparentColorIndex)),t&&(d.patch=function(e){for(var r=e.pixels.length,t=new Uint8ClampedArray(4*r),n=0;n<r;n++){var a=4*n,i=e.pixels[n],o=e.colorTable[i]||[0,0,0];t[a]=o[0],t[a+1]=o[1],t[a+2]=o[2],t[a+3]=i!==e.transparentIndex?255:0}return t}(d)),d}console.warn("gif frame does not have associated image.")};o.decompressFrame=c;o.decompressFrames=function(e,r){return e.frames.filter((function(e){return e.image})).map((function(t){return c(t,e.gct,r)}))}}));const s=(e,r,t)=>{const{width:n,height:a,top:i,left:o}=r.dims,s=i*t.width+o;for(let i=0;i<a;i++)for(let a=0;a<n;a++){const o=i*n+a,d=r.pixels[o];if(d!==r.transparentIndex){const n=s+i*t.width+a,o=r.colorTable[d]||[0,0,0];e[4*n]=o[0],e[4*n+1]=o[1],e[4*n+2]=o[2],e[4*n+3]=255}}return e},d=new Map;self.addEventListener("message",(e=>{const{type:r,src:t}=e.data||e;switch(r){case"parse":if(!d.has(t)){const e=new AbortController,r={signal:e.signal};d.set(t,e),((e,{signal:r})=>fetch(e,{signal:r}).then((e=>{if(!e.headers.get("Content-Type").includes("image/gif"))throw Error(`Wrong content type: "${e.headers.get("Content-Type")}"`);return e.arrayBuffer()})).then((e=>o.parseGIF(e))).then((e=>((e=>{let r=null;for(const t of e.frames)r=t.gce?t.gce:r,"image"in t&&!("gce"in t)&&(t.gce=r)})(e),e))).then((e=>Promise.all([o.decompressFrames(e,!1),{width:e.lsd.width,height:e.lsd.height}]))).then((([e,r])=>{const t=[],n=r.width*r.height*4;for(let a=0;a<e.length;++a){const i=e[a],o=0===a||2===e[a-1].disposalType?new Uint8ClampedArray(n):t[a-1].slice();t.push(s(o,i,r))}return{...r,loaded:!0,delays:e.map((e=>e.delay)),frames:t}})))(t,r).then((e=>{self.postMessage(Object.assign(e,{src:t}),e.frames.map((e=>e.buffer)))})).catch((e=>{self.postMessage({src:t,error:e,loaded:!0})})).finally((()=>{d.delete(t)}))}break;case"cancel":if(d.has(t)){d.get(t).abort(),d.delete(t)}}}));\n';function lN(e){const t=new Blob([aN],{type:"application/javascript"}),r=URL.createObjectURL(t),n=new Worker(r,e);return URL.revokeObjectURL(r),n}const uN=e=>({...e,frames:e.frames.map(t=>{const r=new ImageData(e.width,e.height);return r.data.set(new Uint8ClampedArray(t)),r})}),fN=(e,t)=>{const r={};return()=>(r.instance||(r.instance=e()),mt.useLayoutEffect(()=>(r.timeout?(clearTimeout(r.timeout),delete r.timeout):r.usageCount=(r.usageCount||0)+1,()=>{r.timeout=setTimeout(()=>{r.usageCount=r.usageCount-1,r.usageCount===0&&(t&&t(r.instance),delete r.instance,delete r.timeout)})}),[r,t]),r.instance)},cN=e=>{const t=mt.useRef(e);return mt.useEffect(()=>{t.current=e},[e]),t},hN=e=>{const t=cN(e);return mt.useCallback(r=>t.current&&t.current(r),[])},dN=fN(()=>new lN,e=>e.terminate()),pN=(e,t)=>{const r=hN(t),n=dN();mt.useEffect(()=>{if(typeof e=="string"){const i=o=>{const a=o.data||o;if(a.src===e){const u=a.error?a:uN(a);r(u)}};return n.addEventListener("message",i),n.postMessage({src:e,type:"parse"}),()=>{n.postMessage({src:e,type:"cancel"}),n.removeEventListener("message",i)}}},[n,e])},vN=({isPlaying:e,forwardRef:t,...r})=>{const n=Et.useRef(null);return Et.useImperativeHandle(t,()=>n.current,[n]),Et.useEffect(()=>{if(n.current===null)return;const i=n.current;i[e?"gotoAndPlay":"gotoAndStop"](i.currentFrame)},[e]),Vt.jsx(le.AnimatedSprite,{ref:n,...r,isPlaying:e})},xv=Et.memo(vN);var ta={exports:{}};/**
|
|
1934
|
+
</svg>`,M=new N2(P),F=x.renderer.generateTexture(M);return n(F),()=>{}},[x,u,b,_,v,y]),Vt.jsx(ni,{...e,ref:t,children:Vt.jsx(le.Container,{ref:o,children:Vt.jsx(le.Container,{ref:a,children:r&&Vt.jsx(le.Sprite,{texture:r,width:d,height:p,anchor:c,ref:i,x:f,y:h,interactive:!0,pointerdown:w,pointerup:T,filters:[E,I,A,L,...R>0?[O]:[]]})})})})});var aS=Mr,lS=function(){return aS.Date.now()},uS=lS,fS=/\s/;function cS(e){for(var t=e.length;t--&&fS.test(e.charAt(t)););return t}var hS=cS,dS=hS,pS=/^\s+/;function vS(e){return e&&e.slice(0,dS(e)+1).replace(pS,"")}var gS=vS,mS=Ki,yS=Zi,_S="[object Symbol]";function bS(e){return typeof e=="symbol"||yS(e)&&mS(e)==_S}var qo=bS,xS=gS,Dp=Yi,wS=qo,Up=0/0,TS=/^[-+]0x[0-9a-f]+$/i,ES=/^0b[01]+$/i,SS=/^0o[0-7]+$/i,AS=parseInt;function OS(e){if(typeof e=="number")return e;if(wS(e))return Up;if(Dp(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Dp(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=xS(e);var r=ES.test(e);return r||SS.test(e)?AS(e.slice(2),r?2:8):TS.test(e)?Up:+e}var CS=OS,RS=Yi,Fu=uS,$p=CS,IS="Expected a function",PS=Math.max,NS=Math.min;function MS(e,t,r){var n,i,o,a,u,f,h=0,d=!1,p=!1,c=!0;if(typeof e!="function")throw new TypeError(IS);t=$p(t)||0,RS(r)&&(d=!!r.leading,p="maxWait"in r,o=p?PS($p(r.maxWait)||0,t):o,c="trailing"in r?!!r.trailing:c);function v(I){var A=n,O=i;return n=i=void 0,h=I,a=e.apply(O,A),a}function y(I){return h=I,u=setTimeout(m,t),d?v(I):a}function b(I){var A=I-f,O=I-h,L=t-A;return p?NS(L,o-O):L}function _(I){var A=I-f,O=I-h;return f===void 0||A>=t||A<0||p&&O>=o}function m(){var I=Fu();if(_(I))return w(I);u=setTimeout(m,b(I))}function w(I){return u=void 0,c&&n?v(I):(n=i=void 0,a)}function T(){u!==void 0&&clearTimeout(u),h=0,n=f=i=u=void 0}function x(){return u===void 0?a:w(Fu())}function E(){var I=Fu(),A=_(I);if(n=arguments,i=this,f=I,A){if(u===void 0)return y(f);if(p)return clearTimeout(u),u=setTimeout(m,t),v(f)}return u===void 0&&(u=setTimeout(m,t)),a}return E.cancel=T,E.flush=x,E}var kS=MS;const Bu=En(kS),LS=e=>{const t={isPlaying:!1,progress:0,speed:1,mute:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1},[,r]=Et.useState(!1),n=mt.useRef(null),i=mt.useRef(t),o=mt.useRef(null),{tl:a,dragModeRef:u}=mt.useContext(An),{uniqueId:f,src:h,startAt:d,endAt:p,mute:c,speed:v}=e,y=e.audioStartAt||d,b=e.audioEndAt||p,_=Et.useRef(null);Ze(Oe.PAUSE,()=>{var A;n.current&&_.current&&((A=_.current)==null||A.pause(),i.current.isPlaying=!1)}),Et.useEffect(()=>{_.current&&(u.current?(_.current.pause(),i.current.isPlaying=!1,i.current.isDragging=!0):i.current.isDragging=!1)},[u]);const m=A=>{var O,L;n.current&&((O=_.current)==null||O.play({volume:c?0:1,start:A,end:p,speed:v||1}),u.current?((L=_.current)==null||L.pause(),i.current.isPlaying=!1,i.current.completed=!1):(i.current.isPlaying=!0,i.current.completed=!1))},w=Bu((A,O)=>{var L;_.current&&((L=_.current)==null||L.play({volume:c?0:1,start:A,end:O,speed:v||1}),i.current.isPlaying=!0)},100),T=Bu(()=>{_.current&&(_.current.pause(),i.current.isPlaying=!1)},300),x=()=>{var A;n.current&&((A=_.current)==null||A.stop(),i.current.isPlaying=!1,i.current.completed=!0)},E=(A,O)=>{var R,C,P,M;const L=A+((R=o.current)==null?void 0:R.time());_.current&&u.current?(w(L,O),T(),i.current.isPlaying=!1):n.current&&!i.current.isPlaying&&_.current&&((C=_.current)==null||C.refresh(),(P=_.current)==null||P.refreshPaused(),(M=_.current)==null||M.resume(),i.current.isPlaying=!0)},I=()=>{};return mt.useEffect(()=>{let A=_e.context(()=>{});if(n.current&&a.current){const O={duration:Number(b)-Number(y),onStart:m,onComplete:x,onStartParams:[y,b],onCompleteParams:[],onInterrupt:I,onUpdate:E,onUpdateParams:[y,b]};o.current&&o.current.kill(),A=_e.context(()=>{o.current=_e.from(n.current,O,y),a.current.to(n.current,{alpha:1,duration:.01},d).to(n.current,{alpha:0,duration:.1},Number(p)-.09),a.current.add(o.current,d)})}return()=>{o.current&&(o.current.kill(),_e.killTweensOf(o.current)),A.revert()}},[d,p,y,b]),Et.useEffect(()=>{n.current&&r(!0)},[]),Et.useEffect(()=>{n.current&&_.current&&(i.current.mute=c,i.current.speed=v,_.current.volume=c?0:1)},[c,v]),Et.useEffect(()=>(el(h)||(_.current=ly.Sound.from({url:h,preload:!0,singleInstance:!0,loaded:()=>{i.current.loaded=!0}})),()=>{_.current&&(_.current.pause&&_.current.pause(),_.current.destroy&&_.current.destroy())}),[f,h]),Vt.jsx(le.Container,{ref:n})};function FS(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Gp=FS;function BS(){this.__data__=[],this.size=0}var DS=BS;function US(e,t){return e===t||e!==e&&t!==t}var jp=US,$S=jp;function GS(e,t){for(var r=e.length;r--;)if($S(e[r][0],t))return r;return-1}var zo=GS,jS=zo,qS=Array.prototype,zS=qS.splice;function HS(e){var t=this.__data__,r=jS(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():zS.call(t,r,1),--this.size,!0}var VS=HS,WS=zo;function XS(e){var t=this.__data__,r=WS(t,e);return r<0?void 0:t[r][1]}var KS=XS,YS=zo;function ZS(e){return YS(this.__data__,e)>-1}var QS=ZS,JS=zo;function tA(e,t){var r=this.__data__,n=JS(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var eA=tA,rA=DS,nA=VS,iA=KS,sA=QS,oA=eA;function Ii(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ii.prototype.clear=rA,Ii.prototype.delete=nA,Ii.prototype.get=iA,Ii.prototype.has=sA,Ii.prototype.set=oA;var Ho=Ii,aA=Ho;function lA(){this.__data__=new aA,this.size=0}var uA=lA;function fA(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var cA=fA;function hA(e){return this.__data__.get(e)}var dA=hA;function pA(e){return this.__data__.has(e)}var vA=pA,gA=ei,mA=gA(Object,"create"),Vo=mA,qp=Vo;function yA(){this.__data__=qp?qp(null):{},this.size=0}var _A=yA;function bA(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var xA=bA,wA=Vo,TA="__lodash_hash_undefined__",EA=Object.prototype,SA=EA.hasOwnProperty;function AA(e){var t=this.__data__;if(wA){var r=t[e];return r===TA?void 0:r}return SA.call(t,e)?t[e]:void 0}var OA=AA,CA=Vo,RA=Object.prototype,IA=RA.hasOwnProperty;function PA(e){var t=this.__data__;return CA?t[e]!==void 0:IA.call(t,e)}var NA=PA,MA=Vo,kA="__lodash_hash_undefined__";function LA(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=MA&&t===void 0?kA:t,this}var FA=LA,BA=_A,DA=xA,UA=OA,$A=NA,GA=FA;function Pi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Pi.prototype.clear=BA,Pi.prototype.delete=DA,Pi.prototype.get=UA,Pi.prototype.has=$A,Pi.prototype.set=GA;var jA=Pi,zp=jA,qA=Ho,zA=Ha;function HA(){this.size=0,this.__data__={hash:new zp,map:new(zA||qA),string:new zp}}var VA=HA;function WA(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var XA=WA,KA=XA;function YA(e,t){var r=e.__data__;return KA(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Wo=YA,ZA=Wo;function QA(e){var t=ZA(this,e).delete(e);return this.size-=t?1:0,t}var JA=QA,tO=Wo;function eO(e){return tO(this,e).get(e)}var rO=eO,nO=Wo;function iO(e){return nO(this,e).has(e)}var sO=iO,oO=Wo;function aO(e,t){var r=oO(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var lO=aO,uO=VA,fO=JA,cO=rO,hO=sO,dO=lO;function Ni(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ni.prototype.clear=uO,Ni.prototype.delete=fO,Ni.prototype.get=cO,Ni.prototype.has=hO,Ni.prototype.set=dO;var Du=Ni,pO=Ho,vO=Ha,gO=Du,mO=200;function yO(e,t){var r=this.__data__;if(r instanceof pO){var n=r.__data__;if(!vO||n.length<mO-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new gO(n)}return r.set(e,t),this.size=r.size,this}var _O=yO,bO=Ho,xO=uA,wO=cA,TO=dA,EO=vA,SO=_O;function Mi(e){var t=this.__data__=new bO(e);this.size=t.size}Mi.prototype.clear=xO,Mi.prototype.delete=wO,Mi.prototype.get=TO,Mi.prototype.has=EO,Mi.prototype.set=SO;var Hp=Mi,AO="__lodash_hash_undefined__";function OO(e){return this.__data__.set(e,AO),this}var CO=OO;function RO(e){return this.__data__.has(e)}var IO=RO,PO=Du,NO=CO,MO=IO;function Xo(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new PO;++t<r;)this.add(e[t])}Xo.prototype.add=Xo.prototype.push=NO,Xo.prototype.has=MO;var kO=Xo;function LO(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var FO=LO;function BO(e,t){return e.has(t)}var DO=BO,UO=kO,$O=FO,GO=DO,jO=1,qO=2;function zO(e,t,r,n,i,o){var a=r&jO,u=e.length,f=t.length;if(u!=f&&!(a&&f>u))return!1;var h=o.get(e),d=o.get(t);if(h&&d)return h==t&&d==e;var p=-1,c=!0,v=r&qO?new UO:void 0;for(o.set(e,t),o.set(t,e);++p<u;){var y=e[p],b=t[p];if(n)var _=a?n(b,y,p,t,e,o):n(y,b,p,e,t,o);if(_!==void 0){if(_)continue;c=!1;break}if(v){if(!$O(t,function(m,w){if(!GO(v,w)&&(y===m||i(y,m,r,n,o)))return v.push(w)})){c=!1;break}}else if(!(y===b||i(y,b,r,n,o))){c=!1;break}}return o.delete(e),o.delete(t),c}var Vp=zO,HO=Mr,VO=HO.Uint8Array,WO=VO;function XO(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var KO=XO;function YO(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var ZO=YO,Wp=Gs,Xp=WO,QO=jp,JO=Vp,tC=KO,eC=ZO,rC=1,nC=2,iC="[object Boolean]",sC="[object Date]",oC="[object Error]",aC="[object Map]",lC="[object Number]",uC="[object RegExp]",fC="[object Set]",cC="[object String]",hC="[object Symbol]",dC="[object ArrayBuffer]",pC="[object DataView]",Kp=Wp?Wp.prototype:void 0,Uu=Kp?Kp.valueOf:void 0;function vC(e,t,r,n,i,o,a){switch(r){case pC:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case dC:return!(e.byteLength!=t.byteLength||!o(new Xp(e),new Xp(t)));case iC:case sC:case lC:return QO(+e,+t);case oC:return e.name==t.name&&e.message==t.message;case uC:case cC:return e==t+"";case aC:var u=tC;case fC:var f=n&rC;if(u||(u=eC),e.size!=t.size&&!f)return!1;var h=a.get(e);if(h)return h==t;n|=nC,a.set(e,t);var d=JO(u(e),u(t),n,i,o,a);return a.delete(e),d;case hC:if(Uu)return Uu.call(e)==Uu.call(t)}return!1}var gC=vC;function mC(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var yC=mC,_C=yC,bC=kr;function xC(e,t,r){var n=t(e);return bC(e)?n:_C(n,r(e))}var wC=xC;function TC(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}var EC=TC;function SC(){return[]}var AC=SC,OC=EC,CC=AC,RC=Object.prototype,IC=RC.propertyIsEnumerable,Yp=Object.getOwnPropertySymbols,PC=Yp?function(e){return e==null?[]:(e=Object(e),OC(Yp(e),function(t){return IC.call(e,t)}))}:CC,NC=PC;function MC(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var kC=MC,LC=9007199254740991,FC=/^(?:0|[1-9]\d*)$/;function BC(e,t){var r=typeof e;return t=t??LC,!!t&&(r=="number"||r!="symbol"&&FC.test(e))&&e>-1&&e%1==0&&e<t}var Zp=BC,DC=kC,UC=Za,$C=kr,GC=Ja,jC=Zp,qC=tl,zC=Object.prototype,HC=zC.hasOwnProperty;function VC(e,t){var r=$C(e),n=!r&&UC(e),i=!r&&!n&&GC(e),o=!r&&!n&&!i&&qC(e),a=r||n||i||o,u=a?DC(e.length,String):[],f=u.length;for(var h in e)(t||HC.call(e,h))&&!(a&&(h=="length"||i&&(h=="offset"||h=="parent")||o&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||jC(h,f)))&&u.push(h);return u}var WC=VC,XC=WC,KC=vc,YC=js;function ZC(e){return YC(e)?XC(e):KC(e)}var $u=ZC,QC=wC,JC=NC,tR=$u;function eR(e){return QC(e,tR,JC)}var rR=eR,Qp=rR,nR=1,iR=Object.prototype,sR=iR.hasOwnProperty;function oR(e,t,r,n,i,o){var a=r&nR,u=Qp(e),f=u.length,h=Qp(t),d=h.length;if(f!=d&&!a)return!1;for(var p=f;p--;){var c=u[p];if(!(a?c in t:sR.call(t,c)))return!1}var v=o.get(e),y=o.get(t);if(v&&y)return v==t&&y==e;var b=!0;o.set(e,t),o.set(t,e);for(var _=a;++p<f;){c=u[p];var m=e[c],w=t[c];if(n)var T=a?n(w,m,c,t,e,o):n(m,w,c,e,t,o);if(!(T===void 0?m===w||i(m,w,r,n,o):T)){b=!1;break}_||(_=c=="constructor")}if(b&&!_){var x=e.constructor,E=t.constructor;x!=E&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof E=="function"&&E instanceof E)&&(b=!1)}return o.delete(e),o.delete(t),b}var aR=oR,Gu=Hp,lR=Vp,uR=gC,fR=aR,Jp=Ic,tv=kr,ev=Ja,cR=tl,hR=1,rv="[object Arguments]",nv="[object Array]",Ko="[object Object]",dR=Object.prototype,iv=dR.hasOwnProperty;function pR(e,t,r,n,i,o){var a=tv(e),u=tv(t),f=a?nv:Jp(e),h=u?nv:Jp(t);f=f==rv?Ko:f,h=h==rv?Ko:h;var d=f==Ko,p=h==Ko,c=f==h;if(c&&ev(e)){if(!ev(t))return!1;a=!0,d=!1}if(c&&!d)return o||(o=new Gu),a||cR(e)?lR(e,t,r,n,i,o):uR(e,t,f,r,n,i,o);if(!(r&hR)){var v=d&&iv.call(e,"__wrapped__"),y=p&&iv.call(t,"__wrapped__");if(v||y){var b=v?e.value():e,_=y?t.value():t;return o||(o=new Gu),i(b,_,r,n,o)}}return c?(o||(o=new Gu),fR(e,t,r,n,i,o)):!1}var vR=pR,gR=vR,sv=Zi;function ov(e,t,r,n,i){return e===t?!0:e==null||t==null||!sv(e)&&!sv(t)?e!==e&&t!==t:gR(e,t,r,n,ov,i)}var av=ov,mR=Hp,yR=av,_R=1,bR=2;function xR(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return!o;for(e=Object(e);i--;){var u=r[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<o;){u=r[i];var f=u[0],h=e[f],d=u[1];if(a&&u[2]){if(h===void 0&&!(f in e))return!1}else{var p=new mR;if(n)var c=n(h,d,f,e,t,p);if(!(c===void 0?yR(d,h,_R|bR,n,p):c))return!1}}return!0}var wR=xR,TR=Yi;function ER(e){return e===e&&!TR(e)}var lv=ER,SR=lv,AR=$u;function OR(e){for(var t=AR(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,SR(i)]}return t}var CR=OR;function RR(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var uv=RR,IR=wR,PR=CR,NR=uv;function MR(e){var t=PR(e);return t.length==1&&t[0][2]?NR(t[0][0],t[0][1]):function(r){return r===e||IR(r,e,t)}}var kR=MR,LR=kr,FR=qo,BR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,DR=/^\w*$/;function UR(e,t){if(LR(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||FR(e)?!0:DR.test(e)||!BR.test(e)||t!=null&&e in Object(t)}var ju=UR,fv=Du,$R="Expected a function";function qu(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError($R);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(qu.Cache||fv),r}qu.Cache=fv;var GR=qu,jR=GR,qR=500;function zR(e){var t=jR(e,function(n){return r.size===qR&&r.clear(),n}),r=t.cache;return t}var HR=zR,VR=HR,WR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,XR=/\\(\\)?/g,KR=VR(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(WR,function(r,n,i,o){t.push(i?o.replace(XR,"$1"):n||r)}),t}),YR=KR,cv=Gs,ZR=Gp,QR=kr,JR=qo,tI=1/0,hv=cv?cv.prototype:void 0,dv=hv?hv.toString:void 0;function pv(e){if(typeof e=="string")return e;if(QR(e))return ZR(e,pv)+"";if(JR(e))return dv?dv.call(e):"";var t=e+"";return t=="0"&&1/e==-tI?"-0":t}var eI=pv,rI=eI;function nI(e){return e==null?"":rI(e)}var iI=nI,sI=kr,oI=ju,aI=YR,lI=iI;function uI(e,t){return sI(e)?e:oI(e,t)?[e]:aI(lI(e))}var vv=uI,fI=qo,cI=1/0;function hI(e){if(typeof e=="string"||fI(e))return e;var t=e+"";return t=="0"&&1/e==-cI?"-0":t}var Yo=hI,dI=vv,pI=Yo;function vI(e,t){t=dI(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[pI(t[r++])];return r&&r==n?e:void 0}var gv=vI,gI=gv;function mI(e,t,r){var n=e==null?void 0:gI(e,t);return n===void 0?r:n}var yI=mI;function _I(e,t){return e!=null&&t in Object(e)}var bI=_I,xI=vv,wI=Za,TI=kr,EI=Zp,SI=Qa,AI=Yo;function OI(e,t,r){t=xI(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=AI(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&SI(i)&&EI(a,i)&&(TI(e)||wI(e)))}var CI=OI,RI=bI,II=CI;function PI(e,t){return e!=null&&II(e,t,RI)}var NI=PI,MI=av,kI=yI,LI=NI,FI=ju,BI=lv,DI=uv,UI=Yo,$I=1,GI=2;function jI(e,t){return FI(e)&&BI(t)?DI(UI(e),t):function(r){var n=kI(r,e);return n===void 0&&n===t?LI(r,e):MI(t,n,$I|GI)}}var qI=jI;function zI(e){return e}var HI=zI;function VI(e){return function(t){return t==null?void 0:t[e]}}var WI=VI,XI=gv;function KI(e){return function(t){return XI(t,e)}}var YI=KI,ZI=WI,QI=YI,JI=ju,tP=Yo;function eP(e){return JI(e)?ZI(tP(e)):QI(e)}var rP=eP,nP=kR,iP=qI,sP=HI,oP=kr,aP=rP;function lP(e){return typeof e=="function"?e:e==null?sP:typeof e=="object"?oP(e)?iP(e[0],e[1]):nP(e):aP(e)}var uP=lP;function fP(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),u=a.length;u--;){var f=a[e?u:++i];if(r(o[f],f,o)===!1)break}return t}}var cP=fP,hP=cP,dP=hP(),pP=dP,vP=pP,gP=$u;function mP(e,t){return e&&vP(e,t,gP)}var yP=mP,_P=js;function bP(e,t){return function(r,n){if(r==null)return r;if(!_P(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++o<i)&&n(a[o],o,a)!==!1;);return r}}var xP=bP,wP=yP,TP=xP,EP=TP(wP),SP=EP,AP=SP,OP=js;function CP(e,t){var r=-1,n=OP(e)?Array(e.length):[];return AP(e,function(i,o,a){n[++r]=t(i,o,a)}),n}var RP=CP,IP=Gp,PP=uP,NP=RP,MP=kr;function kP(e,t){var r=MP(e)?IP:NP;return r(e,PP(t))}var LP=kP;const FP=En(LP);var zn={},mv={},Yr={};Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.loop=Yr.conditional=Yr.parse=void 0;var BP=function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:n;if(Array.isArray(r))r.forEach(function(a){return e(t,a,n,i)});else if(typeof r=="function")r(t,n,i,e);else{var o=Object.keys(r)[0];Array.isArray(r[o])?(i[o]={},e(t,r[o],n,i[o])):i[o]=r[o](t,n,i,e)}return n};Yr.parse=BP;var DP=function(t,r){return function(n,i,o,a){r(n,i,o)&&a(n,t,i,o)}};Yr.conditional=DP;var UP=function(t,r){return function(n,i,o,a){for(var u=[],f=n.pos;r(n,i,o);){var h={};if(a(n,t,i,h),n.pos===f)break;f=n.pos,u.push(h)}return u}};Yr.loop=UP;var be={};Object.defineProperty(be,"__esModule",{value:!0}),be.readBits=be.readArray=be.readUnsigned=be.readString=be.peekBytes=be.readBytes=be.peekByte=be.readByte=be.buildStream=void 0;var $P=function(t){return{data:t,pos:0}};be.buildStream=$P;var yv=function(){return function(t){return t.data[t.pos++]}};be.readByte=yv;var GP=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(r){return r.data[r.pos+t]}};be.peekByte=GP;var Zo=function(t){return function(r){return r.data.subarray(r.pos,r.pos+=t)}};be.readBytes=Zo;var jP=function(t){return function(r){return r.data.subarray(r.pos,r.pos+t)}};be.peekBytes=jP;var qP=function(t){return function(r){return Array.from(Zo(t)(r)).map(function(n){return String.fromCharCode(n)}).join("")}};be.readString=qP;var zP=function(t){return function(r){var n=Zo(2)(r);return t?(n[1]<<8)+n[0]:(n[0]<<8)+n[1]}};be.readUnsigned=zP;var HP=function(t,r){return function(n,i,o){for(var a=typeof r=="function"?r(n,i,o):r,u=Zo(t),f=new Array(a),h=0;h<a;h++)f[h]=u(n);return f}};be.readArray=HP;var VP=function(t,r,n){for(var i=0,o=0;o<n;o++)i+=t[r+o]&&Math.pow(2,n-o-1);return i},WP=function(t){return function(r){for(var n=yv()(r),i=new Array(8),o=0;o<8;o++)i[7-o]=!!(n&1<<o);return Object.keys(t).reduce(function(a,u){var f=t[u];return f.length?a[u]=VP(i,f.index,f.length):a[u]=i[f.index],a},{})}};be.readBits=WP,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=Yr,r=be,n={blocks:function(c){for(var v=0,y=[],b=c.data.length,_=0,m=(0,r.readByte)()(c);m!==v&&m;m=(0,r.readByte)()(c)){if(c.pos+m>=b){var w=b-c.pos;y.push((0,r.readBytes)(w)(c)),_+=w;break}y.push((0,r.readBytes)(m)(c)),_+=m}for(var T=new Uint8Array(_),x=0,E=0;E<y.length;E++)T.set(y[E],x),x+=y[E].length;return T}},i=(0,t.conditional)({gce:[{codes:(0,r.readBytes)(2)},{byteSize:(0,r.readByte)()},{extras:(0,r.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,r.readUnsigned)(!0)},{transparentColorIndex:(0,r.readByte)()},{terminator:(0,r.readByte)()}]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===249}),o=(0,t.conditional)({image:[{code:(0,r.readByte)()},{descriptor:[{left:(0,r.readUnsigned)(!0)},{top:(0,r.readUnsigned)(!0)},{width:(0,r.readUnsigned)(!0)},{height:(0,r.readUnsigned)(!0)},{lct:(0,r.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,t.conditional)({lct:(0,r.readArray)(3,function(p,c,v){return Math.pow(2,v.descriptor.lct.size+1)})},function(p,c,v){return v.descriptor.lct.exists}),{data:[{minCodeSize:(0,r.readByte)()},n]}]},function(p){return(0,r.peekByte)()(p)===44}),a=(0,t.conditional)({text:[{codes:(0,r.readBytes)(2)},{blockSize:(0,r.readByte)()},{preData:function(c,v,y){return(0,r.readBytes)(y.text.blockSize)(c)}},n]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===1}),u=(0,t.conditional)({application:[{codes:(0,r.readBytes)(2)},{blockSize:(0,r.readByte)()},{id:function(c,v,y){return(0,r.readString)(y.blockSize)(c)}},n]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===255}),f=(0,t.conditional)({comment:[{codes:(0,r.readBytes)(2)},n]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===254}),h=[{header:[{signature:(0,r.readString)(3)},{version:(0,r.readString)(3)}]},{lsd:[{width:(0,r.readUnsigned)(!0)},{height:(0,r.readUnsigned)(!0)},{gct:(0,r.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,r.readByte)()},{pixelAspectRatio:(0,r.readByte)()}]},(0,t.conditional)({gct:(0,r.readArray)(3,function(p,c){return Math.pow(2,c.lsd.gct.size+1)})},function(p,c){return c.lsd.gct.exists}),{frames:(0,t.loop)([i,u,f,o,a],function(p){var c=(0,r.peekByte)()(p);return c===33||c===44})}],d=h;e.default=d}(mv);var Qo={};Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.deinterlace=void 0;var XP=function(t,r){for(var n=new Array(t.length),i=t.length/r,o=function(c,v){var y=t.slice(v*r,(v+1)*r);n.splice.apply(n,[c*r,r].concat(y))},a=[0,4,2,1],u=[8,8,4,2],f=0,h=0;h<4;h++)for(var d=a[h];d<i;d+=u[h])o(d,f),f++;return n};Qo.deinterlace=XP;var Jo={};Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.lzw=void 0;var KP=function(t,r,n){var i=4096,o=-1,a=n,u,f,h,d,p,c,v,I,y,b,E,_,A,O,R,L,m=new Array(n),w=new Array(i),T=new Array(i),x=new Array(i+1);for(_=t,f=1<<_,p=f+1,u=f+2,v=o,d=_+1,h=(1<<d)-1,y=0;y<f;y++)w[y]=0,T[y]=y;var E,I,A,O,L,R;for(E=I=A=O=L=R=0,b=0;b<a;){if(O===0){if(I<d){E+=r[R]<<I,I+=8,R++;continue}if(y=E&h,E>>=d,I-=d,y>u||y==p)break;if(y==f){d=_+1,h=(1<<d)-1,u=f+2,v=o;continue}if(v==o){x[O++]=T[y],v=y,A=y;continue}for(c=y,y==u&&(x[O++]=A,y=v);y>f;)x[O++]=T[y],y=w[y];A=T[y]&255,x[O++]=A,u<i&&(w[u]=v,T[u]=A,u++,!(u&h)&&u<i&&(d++,h+=u)),v=c}O--,m[L++]=x[O],b++}for(b=L;b<a;b++)m[b]=0;return m};Jo.lzw=KP,Object.defineProperty(zn,"__esModule",{value:!0}),zn.decompressFrames=zn.decompressFrame=zn.parseGIF=void 0;var YP=eN(mv),ZP=Yr,QP=be,JP=Qo,tN=Jo;function eN(e){return e&&e.__esModule?e:{default:e}}var rN=function(t){var r=new Uint8Array(t);return(0,ZP.parse)((0,QP.buildStream)(r),YP.default)};zn.parseGIF=rN;var nN=function(t){for(var r=t.pixels.length,n=new Uint8ClampedArray(r*4),i=0;i<r;i++){var o=i*4,a=t.pixels[i],u=t.colorTable[a]||[0,0,0];n[o]=u[0],n[o+1]=u[1],n[o+2]=u[2],n[o+3]=a!==t.transparentIndex?255:0}return n},_v=function(t,r,n){if(!t.image){console.warn("gif frame does not have associated image.");return}var i=t.image,o=i.descriptor.width*i.descriptor.height,a=(0,tN.lzw)(i.data.minCodeSize,i.data.blocks,o);i.descriptor.lct.interlaced&&(a=(0,JP.deinterlace)(a,i.descriptor.width));var u={pixels:a,dims:{top:t.image.descriptor.top,left:t.image.descriptor.left,width:t.image.descriptor.width,height:t.image.descriptor.height}};return i.descriptor.lct&&i.descriptor.lct.exists?u.colorTable=i.lct:u.colorTable=r,t.gce&&(u.delay=(t.gce.delay||10)*10,u.disposalType=t.gce.extras.disposal,t.gce.extras.transparentColorGiven&&(u.transparentIndex=t.gce.transparentColorIndex)),n&&(u.patch=nN(u)),u};zn.decompressFrame=_v;var iN=function(t,r){return t.frames.filter(function(n){return n.image}).map(function(n){return _v(n,t.gct,r)})};zn.decompressFrames=iN;const bv=(e,t={})=>{typeof t=="function"&&(t=t(e));const r=t.loaded&&e.loaded!==t.loaded,{playing:n,...i}=t,o={...e,...i};return r&&Object.assign(o,{playing:o.autoPlay&&o.loaded}),(t.delays!=null||t.frames!=null)&&Object.assign(o,{length:o.frames.length}),(t.index!=null||t.frames!=null)&&Object.assign(o,{index:o.length===0?0:(o.length+o.index)%o.length}),t.playing!=null&&Object.assign(o,o.loaded?{playing:n}:{autoPlay:n}),o},sN=e=>bv({autoPlay:!0,playing:!1,frames:[],delays:[],index:0,length:0,loaded:!1},e),oN=e=>mt.useReducer(bv,e,sN);var aN='function e(e){var r={exports:{}};return e(r,r.exports),r.exports}var r=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.loop=r.conditional=r.parse=void 0;r.parse=function e(r,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;if(Array.isArray(t))t.forEach((function(t){return e(r,t,n,a)}));else if("function"==typeof t)t(r,n,a,e);else{var i=Object.keys(t)[0];Array.isArray(t[i])?(a[i]={},e(r,t[i],n,a[i])):a[i]=t[i](r,n,a,e)}return n};r.conditional=function(e,r){return function(t,n,a,i){r(t,n,a)&&i(t,e,n,a)}};r.loop=function(e,r){return function(t,n,a,i){for(var o=[];r(t,n,a);){var s={};i(t,e,n,s),o.push(s)}return o}}})),t=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.readBits=r.readArray=r.readUnsigned=r.readString=r.peekBytes=r.readBytes=r.peekByte=r.readByte=r.buildStream=void 0;r.buildStream=function(e){return{data:e,pos:0}};var t=function(){return function(e){return e.data[e.pos++]}};r.readByte=t;r.peekByte=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(r){return r.data[r.pos+e]}};var n=function(e){return function(r){return r.data.subarray(r.pos,r.pos+=e)}};r.readBytes=n;r.peekBytes=function(e){return function(r){return r.data.subarray(r.pos,r.pos+e)}};r.readString=function(e){return function(r){return Array.from(n(e)(r)).map((function(e){return String.fromCharCode(e)})).join("")}};r.readUnsigned=function(e){return function(r){var t=n(2)(r);return e?(t[1]<<8)+t[0]:(t[0]<<8)+t[1]}};r.readArray=function(e,r){return function(t,a,i){for(var o="function"==typeof r?r(t,a,i):r,s=n(e),d=new Array(o),c=0;c<o;c++)d[c]=s(t);return d}};r.readBits=function(e){return function(r){for(var t=function(e){return e.data[e.pos++]}(r),n=new Array(8),a=0;a<8;a++)n[7-a]=!!(t&1<<a);return Object.keys(e).reduce((function(r,t){var a=e[t];return a.length?r[t]=function(e,r,t){for(var n=0,a=0;a<t;a++)n+=e[r+a]&&Math.pow(2,t-a-1);return n}(n,a.index,a.length):r[t]=n[a.index],r}),{})}}})),n=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={blocks:function(e){for(var r=[],n=e.data.length,a=0,i=(0,t.readByte)()(e);0!==i;i=(0,t.readByte)()(e)){if(e.pos+i>=n){var o=n-e.pos;r.push((0,t.readBytes)(o)(e)),a+=o;break}r.push((0,t.readBytes)(i)(e)),a+=i}for(var s=new Uint8Array(a),d=0,c=0;c<r.length;c++)s.set(r[c],d),d+=r[c].length;return s}},i=(0,r.conditional)({gce:[{codes:(0,t.readBytes)(2)},{byteSize:(0,t.readByte)()},{extras:(0,t.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,t.readUnsigned)(!0)},{transparentColorIndex:(0,t.readByte)()},{terminator:(0,t.readByte)()}]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&249===r[1]})),o=(0,r.conditional)({image:[{code:(0,t.readByte)()},{descriptor:[{left:(0,t.readUnsigned)(!0)},{top:(0,t.readUnsigned)(!0)},{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{lct:(0,t.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,r.conditional)({lct:(0,t.readArray)(3,(function(e,r,t){return Math.pow(2,t.descriptor.lct.size+1)}))},(function(e,r,t){return t.descriptor.lct.exists})),{data:[{minCodeSize:(0,t.readByte)()},a]}]},(function(e){return 44===(0,t.peekByte)()(e)})),s=(0,r.conditional)({text:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{preData:function(e,r,n){return(0,t.readBytes)(n.text.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&1===r[1]})),d=(0,r.conditional)({application:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{id:function(e,r,n){return(0,t.readString)(n.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&255===r[1]})),c=(0,r.conditional)({comment:[{codes:(0,t.readBytes)(2)},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&254===r[1]})),u=[{header:[{signature:(0,t.readString)(3)},{version:(0,t.readString)(3)}]},{lsd:[{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{gct:(0,t.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,t.readByte)()},{pixelAspectRatio:(0,t.readByte)()}]},(0,r.conditional)({gct:(0,t.readArray)(3,(function(e,r){return Math.pow(2,r.lsd.gct.size+1)}))},(function(e,r){return r.lsd.gct.exists})),{frames:(0,r.loop)([i,d,c,o,s],(function(e){var r=(0,t.peekByte)()(e);return 33===r||44===r}))}];n.default=u})),a=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.deinterlace=void 0;r.deinterlace=function(e,r){for(var t=new Array(e.length),n=e.length/r,a=function(n,a){var i=e.slice(a*r,(a+1)*r);t.splice.apply(t,[n*r,r].concat(i))},i=[0,4,2,1],o=[8,8,4,2],s=0,d=0;d<4;d++)for(var c=i[d];c<n;c+=o[d])a(c,s),s++;return t}})),i=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.lzw=void 0;r.lzw=function(e,r,t){var n,a,i,o,s,d,c,u,l,f,p,g,y,h,v,m,x=4096,B=t,w=new Array(t),b=new Array(x),k=new Array(x),A=new Array(4097);for(s=(a=1<<(f=e))+1,n=a+2,c=-1,i=(1<<(o=f+1))-1,u=0;u<a;u++)b[u]=0,k[u]=u;for(p=g=y=h=v=m=0,l=0;l<B;){if(0===h){if(g<o){p+=r[m]<<g,g+=8,m++;continue}if(u=p&i,p>>=o,g-=o,u>n||u==s)break;if(u==a){i=(1<<(o=f+1))-1,n=a+2,c=-1;continue}if(-1==c){A[h++]=k[u],c=u,y=u;continue}for(d=u,u==n&&(A[h++]=y,u=c);u>a;)A[h++]=k[u],u=b[u];y=255&k[u],A[h++]=y,n<x&&(b[n]=c,k[n]=y,0==(++n&i)&&n<x&&(o++,i+=n)),c=d}h--,w[v++]=A[h],l++}for(l=v;l<B;l++)w[l]=0;return w}})),o=e((function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.decompressFrames=o.decompressFrame=o.parseGIF=void 0;var s,d=(s=n)&&s.__esModule?s:{default:s};o.parseGIF=function(e){var n=new Uint8Array(e);return(0,r.parse)((0,t.buildStream)(n),d.default)};var c=function(e,r,t){if(e.image){var n=e.image,o=n.descriptor.width*n.descriptor.height,s=(0,i.lzw)(n.data.minCodeSize,n.data.blocks,o);n.descriptor.lct.interlaced&&(s=(0,a.deinterlace)(s,n.descriptor.width));var d={pixels:s,dims:{top:e.image.descriptor.top,left:e.image.descriptor.left,width:e.image.descriptor.width,height:e.image.descriptor.height}};return n.descriptor.lct&&n.descriptor.lct.exists?d.colorTable=n.lct:d.colorTable=r,e.gce&&(d.delay=10*(e.gce.delay||10),d.disposalType=e.gce.extras.disposal,e.gce.extras.transparentColorGiven&&(d.transparentIndex=e.gce.transparentColorIndex)),t&&(d.patch=function(e){for(var r=e.pixels.length,t=new Uint8ClampedArray(4*r),n=0;n<r;n++){var a=4*n,i=e.pixels[n],o=e.colorTable[i]||[0,0,0];t[a]=o[0],t[a+1]=o[1],t[a+2]=o[2],t[a+3]=i!==e.transparentIndex?255:0}return t}(d)),d}console.warn("gif frame does not have associated image.")};o.decompressFrame=c;o.decompressFrames=function(e,r){return e.frames.filter((function(e){return e.image})).map((function(t){return c(t,e.gct,r)}))}}));const s=(e,r,t)=>{const{width:n,height:a,top:i,left:o}=r.dims,s=i*t.width+o;for(let i=0;i<a;i++)for(let a=0;a<n;a++){const o=i*n+a,d=r.pixels[o];if(d!==r.transparentIndex){const n=s+i*t.width+a,o=r.colorTable[d]||[0,0,0];e[4*n]=o[0],e[4*n+1]=o[1],e[4*n+2]=o[2],e[4*n+3]=255}}return e},d=new Map;self.addEventListener("message",(e=>{const{type:r,src:t}=e.data||e;switch(r){case"parse":if(!d.has(t)){const e=new AbortController,r={signal:e.signal};d.set(t,e),((e,{signal:r})=>fetch(e,{signal:r}).then((e=>{if(!e.headers.get("Content-Type").includes("image/gif"))throw Error(`Wrong content type: "${e.headers.get("Content-Type")}"`);return e.arrayBuffer()})).then((e=>o.parseGIF(e))).then((e=>((e=>{let r=null;for(const t of e.frames)r=t.gce?t.gce:r,"image"in t&&!("gce"in t)&&(t.gce=r)})(e),e))).then((e=>Promise.all([o.decompressFrames(e,!1),{width:e.lsd.width,height:e.lsd.height}]))).then((([e,r])=>{const t=[],n=r.width*r.height*4;for(let a=0;a<e.length;++a){const i=e[a],o=0===a||2===e[a-1].disposalType?new Uint8ClampedArray(n):t[a-1].slice();t.push(s(o,i,r))}return{...r,loaded:!0,delays:e.map((e=>e.delay)),frames:t}})))(t,r).then((e=>{self.postMessage(Object.assign(e,{src:t}),e.frames.map((e=>e.buffer)))})).catch((e=>{self.postMessage({src:t,error:e,loaded:!0})})).finally((()=>{d.delete(t)}))}break;case"cancel":if(d.has(t)){d.get(t).abort(),d.delete(t)}}}));\n';function lN(e){const t=new Blob([aN],{type:"application/javascript"}),r=URL.createObjectURL(t),n=new Worker(r,e);return URL.revokeObjectURL(r),n}const uN=e=>({...e,frames:e.frames.map(t=>{const r=new ImageData(e.width,e.height);return r.data.set(new Uint8ClampedArray(t)),r})}),fN=(e,t)=>{const r={};return()=>(r.instance||(r.instance=e()),mt.useLayoutEffect(()=>(r.timeout?(clearTimeout(r.timeout),delete r.timeout):r.usageCount=(r.usageCount||0)+1,()=>{r.timeout=setTimeout(()=>{r.usageCount=r.usageCount-1,r.usageCount===0&&(t&&t(r.instance),delete r.instance,delete r.timeout)})}),[r,t]),r.instance)},cN=e=>{const t=mt.useRef(e);return mt.useEffect(()=>{t.current=e},[e]),t},hN=e=>{const t=cN(e);return mt.useCallback(r=>t.current&&t.current(r),[])},dN=fN(()=>new lN,e=>e.terminate()),pN=(e,t)=>{const r=hN(t),n=dN();mt.useEffect(()=>{if(typeof e=="string"){const i=o=>{const a=o.data||o;if(a.src===e){const u=a.error?a:uN(a);r(u)}};return n.addEventListener("message",i),n.postMessage({src:e,type:"parse"}),()=>{n.postMessage({src:e,type:"cancel"}),n.removeEventListener("message",i)}}},[n,e])},vN=({isPlaying:e,forwardRef:t,...r})=>{const n=Et.useRef(null);return Et.useImperativeHandle(t,()=>n.current,[n]),Et.useEffect(()=>{if(n.current===null)return;const i=n.current;i[e?"gotoAndPlay":"gotoAndStop"](i.currentFrame)},[e]),Vt.jsx(le.AnimatedSprite,{ref:n,...r,isPlaying:e})},xv=Et.memo(vN);var ta={exports:{}};/**
|
|
1935
1935
|
* @license
|
|
1936
1936
|
* Lodash <https://lodash.com/>
|
|
1937
1937
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reacthub-pixitweenjs",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.99",
|
|
4
4
|
"description": "reacthub-pixitweenjs is a library that provides a powerful combination of React, PixiJS, GSAP, and image manipulation capabilities in a timeline sequence. With this library, you can easily create stunning animations and interactive graphics for your React applications",
|
|
5
5
|
"author": "khanzzirfan <reacthub.ai@gmail.com>",
|
|
6
6
|
"main": "dist/index.es.js",
|