function Y(){return Y=Object.assign||function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}const ae={arr:Array.isArray,obj:e=>Object.prototype.toString.call(e)==="[object Object]",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0,nul:e=>e===null,set:e=>e instanceof Set,map:e=>e instanceof Map,equ(e,t){if(typeof e!=typeof t)return!1;if(ae.str(e)||ae.num(e))return e===t;if(ae.obj(e)&&ae.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;let n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return ae.und(n)?e===t:!0}};function wv(e,t){return t===void 0&&(t=!0),n=>(ae.arr(n)?n:Object.keys(n)).reduce((r,i)=>{const o=t?i[0].toLowerCase()+i.substring(1):i;return r[o]=e(o),r},e)}function Bh(){const e=C.exports.useState(!1),t=e[1];return C.exports.useCallback(()=>t(r=>!r),[])}function Rn(e,t){return ae.und(e)||ae.nul(e)?t:e}function gr(e){return ae.und(e)?[]:ae.arr(e)?e:[e]}function yt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rae.und(t[i])?Y({},r,{[i]:e[i]}):r,{});return Y({to:t},n)}function kv(e,t){return t&&(ae.fun(t)?t(e):ae.obj(t)&&(t.current=e)),e}class zt{constructor(){this.payload=void 0,this.children=[]}getAnimatedValue(){return this.getValue()}getPayload(){return this.payload||this}attach(){}detach(){}getChildren(){return this.children}addChild(t){this.children.length===0&&this.attach(),this.children.push(t)}removeChild(t){const n=this.children.indexOf(t);this.children.splice(n,1),this.children.length===0&&this.detach()}}class $s extends zt{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach(t=>t instanceof zt&&t.addChild(this)),this.detach=()=>this.payload.forEach(t=>t instanceof zt&&t.removeChild(this))}}class jh extends zt{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach(t=>t instanceof zt&&t.addChild(this)),this.detach=()=>Object.values(this.payload).forEach(t=>t instanceof zt&&t.removeChild(this))}getValue(t){t===void 0&&(t=!1);const n={};for(const r in this.payload){const i=this.payload[r];t&&!(i instanceof zt)||(n[r]=i instanceof zt?i[t?"getAnimatedValue":"getValue"]():i)}return n}getAnimatedValue(){return this.getValue(!0)}}let Xu;function Cv(e,t){Xu={fn:e,transform:t}}let Hh;function bv(e){Hh=e}let Uh=e=>typeof window!="undefined"?window.requestAnimationFrame(e):-1,la;function Ev(e){la=e}let Wh=()=>Date.now(),Ov=e=>e.current,Gh;function Pv(e){Gh=e}class Av extends jh{constructor(t,n){super(),this.update=void 0,this.payload=t.style?Y({},t,{style:Gh(t.style)}):t,this.update=n,this.attach()}}const Fv=e=>ae.fun(e)&&!(e.prototype instanceof We.Component),Vv=e=>C.exports.forwardRef((n,r)=>{const i=Bh(),o=C.exports.useRef(!0),a=C.exports.useRef(null),l=C.exports.useRef(null),s=C.exports.useCallback(h=>{const v=a.current,g=()=>{let w=!1;l.current&&(w=Xu.fn(l.current,a.current.getAnimatedValue())),(!l.current||w===!1)&&i()};a.current=new Av(h,g),v&&v.detach()},[]);C.exports.useEffect(()=>()=>{o.current=!1,a.current&&a.current.detach()},[]),C.exports.useImperativeHandle(r,()=>Ov(l)),s(n);const u=a.current.getValue();u.scrollTop,u.scrollLeft;const c=Ht(u,["scrollTop","scrollLeft"]),d=Fv(e)?void 0:h=>l.current=kv(h,r);return y(e,R(T({},c),{ref:d}))});let ci=!1;const jn=new Set,Qh=()=>{if(!ci)return!1;let e=Wh();for(let t of jn){let n=!1;for(let r=0;r=s.startTime+i.duration;else if(i.decay)d=u+v/(1-.998)*(1-Math.exp(-(1-.998)*(e-s.startTime))),o=Math.abs(s.lastPosition-d)<.1,o&&(c=d);else{a=s.lastTime!==void 0?s.lastTime:e,v=s.lastVelocity!==void 0?s.lastVelocity:i.initialVelocity,e>a+64&&(a=e);let g=Math.floor(e-a);for(let f=0;fc:d{jn.has(e)||jn.add(e),ci||(ci=!0,Uh(Qh))},Tv=e=>{jn.has(e)&&jn.delete(e)};function sa(e,t,n){if(typeof e=="function")return e;if(Array.isArray(e))return sa({range:e,output:t,extrapolate:n});if(la&&typeof e.output[0]=="string")return la(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",s=r.easing||(u=>u);return u=>{const c=Mv(u,o);return Iv(u,o[c],o[c+1],i[c],i[c+1],s,a,l,r.map)}}function Iv(e,t,n,r,i,o,a,l,s){let u=s?s(e):e;if(un){if(l==="identity")return u;l==="clamp"&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u=u+r:u=u*(i-r)+r,u)}function Mv(e,t){for(var n=1;n=e);++n);return n-1}class Fi extends $s{constructor(t,n,r,i){super(),this.calc=void 0,this.payload=t instanceof $s&&!(t instanceof Fi)?t.getPayload():Array.isArray(t)?t:[t],this.calc=sa(n,r,i)}getValue(){return this.calc(...this.payload.map(t=>t.getValue()))}updateConfig(t,n,r){this.calc=sa(t,n,r)}interpolate(t,n,r){return new Fi(this,t,n,r)}}function Yh(e,t){"update"in e?t.add(e):e.getChildren().forEach(n=>Yh(n,t))}class zs extends zt{constructor(t){var n;super(),n=this,this.animatedStyles=new Set,this.value=void 0,this.startPosition=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.startTime=void 0,this.lastTime=void 0,this.done=!1,this.setValue=function(r,i){i===void 0&&(i=!0),n.value=r,i&&n.flush()},this.value=t,this.startPosition=t,this.lastPosition=t}flush(){this.animatedStyles.size===0&&Yh(this,this.animatedStyles),this.animatedStyles.forEach(t=>t.update())}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(t,n,r){return new Fi(this,t,n,r)}}class Rv extends $s{constructor(t){super(),this.payload=t.map(n=>new zs(n))}setValue(t,n){n===void 0&&(n=!0),Array.isArray(t)?t.length===this.payload.length&&t.forEach((r,i)=>this.payload[i].setValue(r,n)):this.payload.forEach(r=>r.setValue(t,n))}getValue(){return this.payload.map(t=>t.getValue())}interpolate(t,n){return new Fi(this,t,n)}}let Lv=0;class Kh{constructor(){this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=()=>this.interpolations,this.id=Lv++}update(t){if(!t)return this;const n=Ol(t),r=n.delay,i=r===void 0?0:r,o=n.to,a=Ht(n,["delay","to"]);if(ae.arr(o)||ae.fun(o))this.queue.push(Y({},a,{delay:i,to:o}));else if(o){let l={};Object.entries(o).forEach(s=>{let u=s[0],c=s[1];const d=Y({to:{[u]:c},delay:yt(i,u)},a),h=l[d.delay]&&l[d.delay].to;l[d.delay]=Y({},l[d.delay],d,{to:Y({},h,d.to)})}),this.queue=Object.values(l)}return this.queue=this.queue.sort((l,s)=>l.delay-s.delay),this.diff(a),this}start(t){if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach(i=>{let o=i.from,a=o===void 0?{}:o,l=i.to,s=l===void 0?{}:l;ae.obj(a)&&(this.merged=Y({},a,this.merged)),ae.obj(s)&&(this.merged=Y({},this.merged,s))});const n=this.local=++this.guid,r=this.localQueue=this.queue;this.queue=[],r.forEach((i,o)=>{let a=i.delay,l=Ht(i,["delay"]);const s=c=>{o===r.length-1&&n===this.guid&&c&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),t&&t()};let u=ae.arr(l.to)||ae.fun(l.to);a?setTimeout(()=>{n===this.guid&&(u?this.runAsync(l,s):this.diff(l).start(s))},a):u?this.runAsync(l,s):this.diff(l).start(s)})}else ae.fun(t)&&this.listeners.push(t),this.props.onStart&&this.props.onStart(),_v(this);return this}stop(t){return this.listeners.forEach(n=>n(t)),this.listeners=[],this}pause(t){return this.stop(!0),t&&Tv(this),this}runAsync(t,n){var r=this;t.delay;let i=Ht(t,["delay"]);const o=this.local;let a=Promise.resolve(void 0);if(ae.arr(i.to))for(let l=0;l{if(o===this.guid)return new Promise(c=>this.diff(u).start(c))})}else if(ae.fun(i.to)){let l=0,s;a=a.then(()=>i.to(u=>{const c=Y({},i,Ol(u));if(ae.arr(c.config)&&(c.config=c.config[l]),l++,o===this.guid)return s=new Promise(d=>this.diff(c).start(d))},function(u){return u===void 0&&(u=!0),r.stop(u)}).then(()=>s))}a.then(n)}diff(t){this.props=Y({},this.props,t);let n=this.props,r=n.from,i=r===void 0?{}:r,o=n.to,a=o===void 0?{}:o,l=n.config,s=l===void 0?{}:l,u=n.reverse,c=n.attach,d=n.reset,h=n.immediate;if(u){var v=[a,i];i=v[0],a=v[1]}this.merged=Y({},i,this.merged,a),this.hasChanged=!1;let g=c&&c(this);if(this.animations=Object.entries(this.merged).reduce((w,S)=>{let p=S[0],f=S[1],m=w[p]||{};const k=ae.num(f),x=ae.str(f)&&!f.startsWith("#")&&!/\d/.test(f)&&!Hh[f],P=ae.arr(f),E=!k&&!P&&!x;let F=ae.und(i[p])?f:i[p],D=k||P||x?f:1,$=yt(s,p);g&&(D=g.animations[p].parent);let H=m.parent,G=m.interpolation,oe=gr(g?D.getPayload():D),ce,ie=f;E&&(ie=la({range:[0,1],output:[f,f]})(1));let ne=G&&G.getValue();const V=!ae.und(H)&&m.animatedValues.some(O=>!O.done),N=!ae.equ(ie,ne),j=!ae.equ(ie,m.previous),le=!ae.equ($,m.config);if(d||j&&N||le){if(k||x)H=G=m.parent||new zs(F);else if(P)H=G=m.parent||new Rv(F);else if(E){let O=m.interpolation&&m.interpolation.calc(m.parent.value);O=O!==void 0&&!d?O:F,m.parent?(H=m.parent,H.setValue(0,!1)):H=new zs(0);const I={output:[O,f]};m.interpolation?(G=m.interpolation,m.interpolation.updateConfig(I)):G=H.interpolate(I)}return oe=gr(g?D.getPayload():D),ce=gr(H.getPayload()),d&&!E&&H.setValue(F,!1),this.hasChanged=!0,ce.forEach(O=>{O.startPosition=O.value,O.lastPosition=O.value,O.lastVelocity=V?O.lastVelocity:void 0,O.lastTime=V?O.lastTime:void 0,O.startTime=Wh(),O.done=!1,O.animatedStyles.clear()}),yt(h,p)&&H.setValue(E?D:f,!1),Y({},w,{[p]:Y({},m,{name:p,parent:H,interpolation:G,animatedValues:ce,toValues:oe,previous:ie,config:$,fromValues:gr(H.getValue()),immediate:yt(h,p),initialVelocity:Rn($.velocity,0),clamp:Rn($.clamp,!1),precision:Rn($.precision,.01),tension:Rn($.tension,170),friction:Rn($.friction,26),mass:Rn($.mass,1),duration:$.duration,easing:Rn($.easing,O=>O),decay:$.decay})})}else return N?w:(E&&(H.setValue(1,!1),G.updateConfig({output:[ie,ie]})),H.done=!0,this.hasChanged=!0,Y({},w,{[p]:Y({},w[p],{previous:ie})}))},this.animations),this.hasChanged){this.configs=Object.values(this.animations),this.values={},this.interpolations={};for(let w in this.animations)this.interpolations[w]=this.animations[w].interpolation,this.values[w]=this.animations[w].interpolation.getValue()}return this}destroy(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}}const $v=(e,t)=>{const n=C.exports.useRef(!1),r=C.exports.useRef(),i=ae.fun(t),o=C.exports.useMemo(()=>{r.current&&(r.current.map(d=>d.destroy()),r.current=void 0);let c;return[new Array(e).fill().map((d,h)=>{const v=new Kh,g=i?yt(t,h,v):t[h];return h===0&&(c=g.ref),v.update(g),c||v.start(),v}),c]},[e]),a=o[0],l=o[1];r.current=a,C.exports.useImperativeHandle(l,()=>({start:()=>Promise.all(r.current.map(c=>new Promise(d=>c.start(d)))),stop:c=>r.current.forEach(d=>d.stop(c)),get controllers(){return r.current}}));const s=C.exports.useMemo(()=>c=>r.current.map((d,h)=>{d.update(i?yt(c,h,d):c[h]),l||d.start()}),[e]);C.exports.useEffect(()=>{n.current?i||s(t):l||r.current.forEach(c=>c.start())}),C.exports.useEffect(()=>(n.current=!0,()=>r.current.forEach(c=>c.destroy())),[]);const u=r.current.map(c=>c.getValues());return i?[u,s,c=>r.current.forEach(d=>d.pause(c))]:u},zv=e=>{const t=ae.fun(e),n=$v(1,t?e:[e]),r=n[0],i=n[1],o=n[2];return t?[r[0],i,o]:r};let Nv=0;const Oo="enter",Pl="leave",Al="update",Dv=(e,t)=>(typeof t=="function"?e.map(t):gr(t)).map(String),Ns=e=>{let t=e.items,n=e.keys,r=n===void 0?o=>o:n,i=Ht(e,["items","keys"]);return t=gr(t!==void 0?t:null),Y({items:t,keys:Dv(t,r)},i)};function Fl(e,t,n){const r=Y({items:e,keys:t||(f=>f)},n),i=Ns(r),o=i.lazy,a=o===void 0?!1:o;i.unique;const l=i.reset,s=l===void 0?!1:l;i.enter,i.leave,i.update;const u=i.onDestroyed;i.keys,i.items;const c=i.onFrame,d=i.onRest,h=i.onStart,v=i.ref,g=Ht(i,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),w=Bh(),S=C.exports.useRef(!1),p=C.exports.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!S.current&&new Map,forceUpdate:w});return C.exports.useImperativeHandle(r.ref,()=>({start:()=>Promise.all(Array.from(p.current.instances).map(f=>{let m=f[1];return new Promise(k=>m.start(k))})),stop:f=>Array.from(p.current.instances).forEach(m=>m[1].stop(f)),get controllers(){return Array.from(p.current.instances).map(f=>f[1])}})),p.current=Bv(p.current,r),p.current.changed&&p.current.transitions.forEach(f=>{const m=f.slot,k=f.from,x=f.to,P=f.config,E=f.trail,F=f.key,D=f.item;p.current.instances.has(F)||p.current.instances.set(F,new Kh);const $=p.current.instances.get(F),H=Y({},g,{to:x,from:k,config:P,ref:v,onRest:G=>{p.current.mounted&&(f.destroyed&&(!v&&!a&&Tf(p,F),u&&u(D)),!Array.from(p.current.instances).some(ie=>!ie[1].idle)&&(v||a)&&p.current.deleted.length>0&&Tf(p),d&&d(D,m,G))},onStart:h&&(()=>h(D,m)),onFrame:c&&(G=>c(D,m,G)),delay:E,reset:s&&m===Oo});$.update(H),p.current.paused||$.start()}),C.exports.useEffect(()=>(p.current.mounted=S.current=!0,()=>{p.current.mounted=S.current=!1,Array.from(p.current.instances).map(f=>f[1].destroy()),p.current.instances.clear()}),[]),p.current.transitions.map(f=>{let m=f.item,k=f.slot,x=f.key;return{item:m,key:x,state:k,props:p.current.instances.get(x).getValues()}})}function Tf(e,t){const n=e.current.deleted;for(let r of n){let i=r.key;const o=a=>a.key!==i;(ae.und(t)||t===i)&&(e.current.instances.delete(i),e.current.transitions=e.current.transitions.filter(o),e.current.deleted=e.current.deleted.filter(o))}e.current.forceUpdate()}function Bv(e,t){let n=e.first,r=e.prevProps,i=Ht(e,["first","prevProps"]),o=Ns(t),a=o.items,l=o.keys,s=o.initial,u=o.from,c=o.enter,d=o.leave,h=o.update,v=o.trail,g=v===void 0?0:v,w=o.unique,S=o.config,p=o.order,f=p===void 0?[Oo,Pl,Al]:p,m=Ns(r),k=m.keys,x=m.items,P=Y({},i.current),E=[...i.deleted],F=Object.keys(P),D=new Set(F),$=new Set(l),H=l.filter(ne=>!D.has(ne)),G=i.transitions.filter(ne=>!ne.destroyed&&!$.has(ne.originalKey)).map(ne=>ne.originalKey),oe=l.filter(ne=>D.has(ne)),ce=-g;for(;f.length;)switch(f.shift()){case Oo:{H.forEach((J,V)=>{w&&E.find(O=>O.originalKey===J)&&(E=E.filter(O=>O.originalKey!==J));const N=l.indexOf(J),j=a[N],le=n&&s!==void 0?"initial":Oo;P[J]={slot:le,originalKey:J,key:w?String(J):Nv++,item:j,trail:ce=ce+g,config:yt(S,j,le),from:yt(n&&s!==void 0?s||{}:u,j),to:yt(c,j)}});break}case Pl:{G.forEach(J=>{const V=k.indexOf(J),N=x[V],j=Pl;E.unshift(Y({},P[J],{slot:j,destroyed:!0,left:k[Math.max(0,V-1)],right:k[Math.min(k.length,V+1)],trail:ce=ce+g,config:yt(S,N,j),to:yt(d,N)})),delete P[J]});break}case Al:{oe.forEach(J=>{const V=l.indexOf(J),N=a[V],j=Al;P[J]=Y({},P[J],{item:N,slot:j,trail:ce=ce+g,config:yt(S,N,j),to:yt(h,N)})});break}}let ie=l.map(ne=>P[ne]);return E.forEach(ne=>{let J=ne.left;ne.right;let V=Ht(ne,["left","right"]),N;(N=ie.findIndex(j=>j.originalKey===J))!==-1&&(N+=1),N=Math.max(0,N),ie=[...ie.slice(0,N),V,...ie.slice(N)]}),Y({},i,{changed:H.length||G.length||oe.length,first:n&&H.length===0,transitions:ie,current:P,deleted:E,prevProps:t})}class jv extends jh{constructor(t){t===void 0&&(t={}),super(),t.transform&&!(t.transform instanceof zt)&&(t=Xu.transform(t)),this.payload=t}}const ua={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Bt="[-+]?\\d*\\.?\\d+",ca=Bt+"%";function Wa(){for(var e=arguments.length,t=new Array(e),n=0;n>>0===e&&e>=0&&e<=4294967295?e:null:(t=Kv.exec(e))?parseInt(t[1]+"ff",16)>>>0:ua.hasOwnProperty(e)?ua[e]:(t=Hv.exec(e))?(tr(t[1])<<24|tr(t[2])<<16|tr(t[3])<<8|255)>>>0:(t=Uv.exec(e))?(tr(t[1])<<24|tr(t[2])<<16|tr(t[3])<<8|Rf(t[4]))>>>0:(t=Qv.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Xv.exec(e))?parseInt(t[1],16)>>>0:(t=Yv.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Wv.exec(e))?(If(Mf(t[1]),ao(t[2]),ao(t[3]))|255)>>>0:(t=Gv.exec(e))?(If(Mf(t[1]),ao(t[2]),ao(t[3]))|Rf(t[4]))>>>0:null}function Vl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function If(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Vl(i,r,e+1/3),a=Vl(i,r,e),l=Vl(i,r,e-1/3);return Math.round(o*255)<<24|Math.round(a*255)<<16|Math.round(l*255)<<8}function tr(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Mf(e){return(parseFloat(e)%360+360)%360/360}function Rf(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function ao(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Lf(e){let t=Zv(e);if(t===null)return e;t=t||0;let n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,o=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${o})`}const lo=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,qv=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Jv=new RegExp(`(${Object.keys(ua).join("|")})`,"g"),ey=e=>{const t=e.output.map(i=>i.replace(qv,Lf)).map(i=>i.replace(Jv,Lf)),n=t[0].match(lo).map(()=>[]);t.forEach(i=>{i.match(lo).forEach((o,a)=>n[a].push(+o))});const r=t[0].match(lo).map((i,o)=>sa(Y({},e,{output:n[o]})));return i=>{let o=0;return t[0].replace(lo,()=>r[o++](i)).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(a,l,s,u,c)=>`rgba(${Math.round(l)}, ${Math.round(s)}, ${Math.round(u)}, ${c})`)}};let fi={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const ty=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),ny=["Webkit","Ms","Moz","O"];fi=Object.keys(fi).reduce((e,t)=>(ny.forEach(n=>e[ty(n,t)]=e[t]),e),fi);function ry(e,t,n){return t==null||typeof t=="boolean"||t===""?"":!n&&typeof t=="number"&&t!==0&&!(fi.hasOwnProperty(e)&&fi[e])?t+"px":(""+t).trim()}const $f={};Pv(e=>new jv(e));Ev(ey);bv(ua);Cv((e,t)=>{if(e.nodeType&&e.setAttribute!==void 0){const i=t.style,o=t.children,a=t.scrollTop,l=t.scrollLeft,s=Ht(t,["style","children","scrollTop","scrollLeft"]),u=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter";a!==void 0&&(e.scrollTop=a),l!==void 0&&(e.scrollLeft=l),o!==void 0&&(e.textContent=o);for(let c in i)if(!!i.hasOwnProperty(c)){var n=c.indexOf("--")===0,r=ry(c,i[c],n);c==="float"&&(c="cssFloat"),n?e.style.setProperty(c,r):e.style[c]=r}for(let c in s){const d=u?c:$f[c]||($f[c]=c.replace(/([A-Z])/g,h=>"-"+h.toLowerCase()));typeof e.getAttribute(d)!="undefined"&&e.setAttribute(d,s[c])}return}else return!1},e=>e);const iy=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],oy=wv(Vv,!1),Po=oy(iy),fa={};async function ay(e,t={}){const{timeout:n=15e3}=t,r=new AbortController,i=setTimeout(()=>r.abort(),n),o=await fetch(e,R(T({},t),{signal:r.signal}));return clearTimeout(i),o}async function Xh(e,t={},n=1){try{return await ay(e,t)}catch(r){if(r.name==="AbortError"&&n>0)return console.log(`Request Failed due to timeout: ${e}`),Xh(e,t,n-1)}return new Response(null,{status:408,statusText:"Request Timeout",headers:{"Content-Length":"0"}})}async function ly(e,t={}){const n=`https://${GetParentResourceName()}/${e}`;return(await Xh(n,{method:"post",headers:{"Content-type":"application/json; charset=UTF-8"},body:JSON.stringify(t)},5)).json()}function sy(e,t){if(fa[e]){console.log(`[Nui] Event ${e} is already declared.`);return}fa[e]=t}function uy(e,t){window.dispatchEvent(new MessageEvent("message",{data:{type:e,payload:t}}))}const he={post:ly,onEvent:sy,emitEvent:uy},cy=()=>(window.addEventListener("message",e=>{!fa[e.data.type]||fa[e.data.type](e.data.payload)}),window.addEventListener("keydown",e=>{e.key==="d"?he.post("rotate_right"):e.key==="a"&&he.post("rotate_left")}),null),zf={model:"mp_m_freemode_01",tattoos:{},components:[{component_id:0,drawable:15,texture:0},{component_id:1,drawable:15,texture:0},{component_id:2,drawable:15,texture:0},{component_id:3,drawable:15,texture:0},{component_id:4,drawable:15,texture:0},{component_id:5,drawable:15,texture:0},{component_id:6,drawable:15,texture:0},{component_id:7,drawable:15,texture:0},{component_id:8,drawable:15,texture:0},{component_id:9,drawable:15,texture:0},{component_id:10,drawable:15,texture:0},{component_id:11,drawable:15,texture:0}],props:[{prop_id:0,drawable:-1,texture:0},{prop_id:1,drawable:-1,texture:0},{prop_id:2,drawable:-1,texture:0},{prop_id:6,drawable:-1,texture:0},{prop_id:7,drawable:-1,texture:0}],headBlend:{shapeFirst:0,shapeSecond:0,shapeThird:0,shapeMix:0,skinFirst:0,skinSecond:0,skinThird:0,skinMix:0,thirdMix:0},faceFeatures:{noseWidth:0,nosePeakHigh:0,nosePeakSize:0,noseBoneHigh:0,nosePeakLowering:0,noseBoneTwist:0,eyeBrownHigh:0,eyeBrownForward:0,cheeksBoneHigh:0,cheeksBoneWidth:0,cheeksWidth:0,eyesOpening:0,lipsThickness:0,jawBoneWidth:0,jawBoneBackSize:0,chinBoneLowering:0,chinBoneLenght:0,chinBoneSize:0,chinHole:0,neckThickness:0},headOverlays:{blemishes:{style:0,opacity:0},beard:{style:0,opacity:0,color:0},eyebrows:{style:0,opacity:0,color:0},ageing:{style:0,opacity:0},makeUp:{style:0,opacity:0,color:0,secondColor:0},blush:{style:0,opacity:0,color:0},complexion:{style:0,opacity:0},sunDamage:{style:0,opacity:0},lipstick:{style:0,opacity:0,color:0},moleAndFreckles:{style:0,opacity:0},chestHair:{style:0,opacity:0,color:0},bodyBlemishes:{style:0,opacity:0}},hair:{style:0,color:0,highlight:0,texture:0},eyeColor:0},fy={ped:{model:{items:["mp_m_freemode_01","mp_f_freemode_01","player_zero"]}},tattoos:{items:{}},components:[{component_id:0,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:1,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:2,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:3,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:4,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:5,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:6,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:7,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:8,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:9,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:10,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:11,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}}],props:[{prop_id:0,drawable:{min:-1,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{prop_id:1,drawable:{min:-1,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{prop_id:2,drawable:{min:-1,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{prop_id:6,drawable:{min:-1,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{prop_id:7,drawable:{min:-1,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}}],headBlend:{shapeFirst:{min:0,max:45},shapeSecond:{min:0,max:45},shapeThird:{min:0,max:45},skinFirst:{min:0,max:45},skinSecond:{min:0,max:45},skinThird:{min:0,max:45},shapeMix:{min:0,max:10,factor:.1},skinMix:{min:0,max:10,factor:.1},thirdMix:{min:0,max:10,factor:.1}},faceFeatures:{noseWidth:{min:-10,max:10,factor:.1},nosePeakHigh:{min:-10,max:10,factor:.1},nosePeakSize:{min:-10,max:10,factor:.1},noseBoneHigh:{min:-10,max:10,factor:.1},nosePeakLowering:{min:-10,max:10,factor:.1},noseBoneTwist:{min:-10,max:10,factor:.1},eyeBrownHigh:{min:-10,max:10,factor:.1},eyeBrownForward:{min:-10,max:10,factor:.1},cheeksBoneHigh:{min:-10,max:10,factor:.1},cheeksBoneWidth:{min:-10,max:10,factor:.1},cheeksWidth:{min:-10,max:10,factor:.1},eyesOpening:{min:-10,max:10,factor:.1},lipsThickness:{min:-10,max:10,factor:.1},jawBoneWidth:{min:-10,max:10,factor:.1},jawBoneBackSize:{min:-10,max:10,factor:.1},chinBoneLowering:{min:-10,max:10,factor:.1},chinBoneLenght:{min:-10,max:10,factor:.1},chinBoneSize:{min:-10,max:10,factor:.1},chinHole:{min:-10,max:10,factor:.1},neckThickness:{min:-10,max:10,factor:.1}},headOverlays:{blemishes:{style:{min:0,max:23},opacity:{min:0,max:10,factor:.1}},beard:{style:{min:0,max:28},opacity:{min:0,max:10,factor:.1},color:{items:[[255,0,0],[0,255,0],[0,0,255]]}},eyebrows:{style:{min:0,max:33},opacity:{min:0,max:10,factor:.1},color:{items:[[255,0,0],[0,255,0],[0,0,255]]}},ageing:{style:{min:0,max:14},opacity:{min:0,max:10,factor:.1}},makeUp:{style:{min:0,max:74},opacity:{min:0,max:10,factor:.1},color:{items:[[255,0,0],[0,255,0],[0,0,255]]}},blush:{style:{min:0,max:6},opacity:{min:0,max:10,factor:.1},color:{items:[[255,0,0],[0,255,0],[0,0,255]]}},complexion:{style:{min:0,max:11},opacity:{min:0,max:10,factor:.1}},sunDamage:{style:{min:0,max:10},opacity:{min:0,max:10,factor:.1}},lipstick:{style:{min:0,max:9},opacity:{min:0,max:10,factor:.1},color:{items:[[255,0,0],[0,255,0],[0,0,255]]}},moleAndFreckles:{style:{min:0,max:17},opacity:{min:0,max:10,factor:.1}},chestHair:{style:{min:0,max:16},opacity:{min:0,max:10,factor:.1},color:{items:[[255,0,0],[0,255,0],[0,0,255]]}},bodyBlemishes:{style:{min:0,max:11},opacity:{min:0,max:10,factor:.1}}},hair:{style:{min:0,max:255},color:{items:[[255,0,0],[0,255,0],[0,0,255]]},highlight:{items:[[255,0,0],[0,255,0],[0,0,255]]},texture:{min:0,max:255}},eyeColor:{min:0,max:30}},_l={head:!1,body:!1,bottom:!1},Tl={left:!1,right:!1},dy={head:!1,body:!1,bottom:!1};var Zh={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Nf=We.createContext&&We.createContext(Zh),An=globalThis&&globalThis.__assign||function(){return An=Object.assign||function(e){for(var t,n=1,r=arguments.length;n