PageSourceSearch

https://app.amandaai.com/assets/sparkles-pNMupdzr.js

js amandaai.com collected 2026-09-25 21:06:16 UTC 265,462 bytes, 1 lines download raw bytes

vendor: 10,129 bytes, line 1
1import{j as Vt,r as _}from"./jsx-runtime-Dt5Dsy05.js";import{c as Zs}from"./utils-CRAusXjz.js";const ot="generated",Al="pointerdown",El="pointerup",Vn="pointerleave",Ol="pointerout",ft="pointermove",Vl="touchstart",Qs="touchend",Ll="touchmove",zl="touchcancel",Il="resize",Fl="visibilitychange",ge="tsParticles - Error",$e=100,q=.5,X=1e3,K={x:0,y:0,z:0},mi={a:1,b:0,c:0,d:1},Lt="random",_i="mid",Y=2,Bl=Math.PI*Y,nn=60,ga="true",Js="false",sn="canvas",eo=0,Ve=2,to=4,jl=1,io=1,no=1,Ul=4,ya=1,Mi=255,rt=360,Ln=100,zn=100,so=0,In=0,$l=60,ql=0,Oi=.25,oo=q+Oi,ro=0,Nl=1,Wl=0,Hl=0,Gl=1,cs=1,Kl=1,ao=1,Vi=0,va=1,Xl=0,Yl=120,Zl=0,Ql=0,Jl=1e4,eu=0,tu=1,Li=0,ba=1,iu=1,nu=0,co=1,su=0,ou=0,lo=-Oi,uo=1.5,ho=0,ru=1,au=0,Fn=0,xa=1,cu=1,zi=1,lu=500,fo=50,uu=0,Bn=1,wa=0,po=1,hu=0,Ye=255,on=3,rn=6,fu=1,du=1,pu=0,mu=0,gu=0,yu=0;var H;(function(t){t.bottom="bottom",t.bottomLeft="bottom-left",t.bottomRight="bottom-right",t.left="left",t.none="none",t.right="right",t.top="top",t.topLeft="top-left",t.topRight="top-right",t.outside="outside",t.inside="inside"})(H||(H={}));function Pa(t){return typeof t=="boolean"}function We(t){return typeof t=="string"}function He(t){return typeof t=="number"}function wt(t){return typeof t=="object"&&t!==null}function Re(t){return Array.isArray(t)}function P(t){return t==null}class ae{constructor(e,i,n){if(this._updateFromAngle=(s,o)=>{this.x=Math.cos(s)*o,this.y=Math.sin(s)*o},!He(e)&&e){this.x=e.x,this.y=e.y;const s=e;this.z=s.z?s.z:K.z}else if(e!==void 0&&i!==void 0)this.x=e,this.y=i,this.z=n??K.z;else throw new Error(`${ge} Vector3d not initialized correctly`)}static get origin(){return ae.create(K.x,K.y,K.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(e){this._updateFromAngle(e,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(e){this._updateFromAngle(this.angle,e)}static clone(e){return ae.create(e.x,e.y,e.z)}static create(e,i,n){return new ae(e,i,n)}add(e){return ae.create(this.x+e.x,this.y+e.y,this.z+e.z)}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=e.z}copy(){return ae.clone(this)}distanceTo(e){return this.sub(e).length}distanceToSq(e){return this.sub(e).getLengthSq()}div(e){return ae.create(this.x/e,this.y/e,this.z/e)}divTo(e){this.x/=e,this.y/=e,this.z/=e}getLengthSq(){return this.x**Ve+this.y**Ve}mult(e){return ae.create(this.x*e,this.y*e,this.z*e)}multTo(e){this.x*=e,this.y*=e,this.z*=e}normalize(){const e=this.length;e!=Li&&this.multTo(ya/e)}rotate(e){return ae.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e),K.z)}setTo(e){this.x=e.x,this.y=e.y;const i=e;this.z=i.z?i.z:K.z}sub(e){return ae.create(this.x-e.x,this.y-e.y,this.z-e.z)}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=e.z}}class N extends ae{constructor(e,i){super(e,i,K.z)}static get origin(){return N.create(K.x,K.y)}static clone(e){return N.create(e.x,e.y)}static create(e,i){return new N(e,i)}}let vu=Math.random;const Sa={nextFrame:t=>requestAnimationFrame(t),cancel:t=>cancelAnimationFrame(t)};function A(){return ye(vu(),0,1-Number.EPSILON)}function bu(t){return Sa.nextFrame(t)}function xu(t){Sa.cancel(t)}function ye(t,e,i){return Math.min(Math.max(t,e),i)}function an(t,e,i,n){return Math.floor((t*i+e*n)/(i+n))}function ce(t){const e=_e(t),i=0;let n=Hi(t);return e===n&&(n=i),A()*(e-n)+n}function S(t){return He(t)?t:ce(t)}function Hi(t){return He(t)?t:t.min}function _e(t){return He(t)?t:t.max}function D(t,e){if(t===e||e===void 0&&He(t))return t;const i=Hi(t),n=_e(t);return e!==void 0?{min:Math.min(i,e),max:Math.max(n,e)}:D(i,n)}function ne(t,e){const i=t.x-e.x,n=t.y-e.y,s=2;return{dx:i,dy:n,distance:Math.sqrt(i**s+n**s)}}function le(t,e){return ne(t,e).distance}function Ne(t){return t*Math.PI/180}function wu(t,e,i){if(He(t))return Ne(t);switch(t){case H.top:return-Math.PI*q;case H.topRight:return-Math.PI*Oi;case H.right:return ql;case H.bottomRight:return Math.PI*Oi;case H.bottom:return Math.PI*q;case H.bottomLeft:return Math.PI*oo;case H.left:return Math.PI;case H.topLeft:return-Math.PI*oo;case H.inside:return Math.atan2(i.y-e.y,i.x-e.x);case H.outside:return Math.atan2(e.y-i.y,e.x-i.x);default:return A()*Bl}}function Pu(t){const e=N.origin;return e.length=1,e.angle=t,e}function mo(t,e,i,n){return N.create(t.x*(i-n)/(i+n)+e.x*Y*n/(i+n),t.y)}function Su(t){var e,i;return{x:((e=t.position)==null?void 0:e.x)??A()*t.size.width,y:((i=t.position)==null?void 0:i.y)??A()*t.size.height}}function Ta(t){return t?t.endsWith("%")?parseFloat(t)/$e:parseFloat(t):1}var at;(function(t){t.auto="auto",t.increase="increase",t.decrease="decrease",t.random="random"})(at||(at={}));var U;(function(t){t.increasing="increasing",t.decreasing="decreasing"})(U||(U={}));var dt;(function(t){t.none="none",t.max="max",t.min="min"})(dt||(dt={}));var M;(function(t){t.bottom="bottom",t.left="left",t.right="right",t.top="top"})(M||(M={}));var zt;(function(t){t.precise="precise",t.percent="percent"})(zt||(zt={}));var Dt;(function(t){t.max="max",t.min="min",t.random="random"})(Dt||(Dt={}));const Tu={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function pt(){return Tu}function Cu(t){const e=new Map;return(...i)=>{const n=JSON.stringify(i);if(e.has(n))return e.get(n);const s=t(...i);return e.set(n,s),s}}function go(t){const e={bounced:!1},{pSide:i,pOtherSide:n,rectSide:s,rectOtherSide:o,velocity:r,factor:a}=t;return n.min<o.min||n.min>o.max||n.max<o.min||n.max>o.max||(i.max>=s.min&&i.max<=(s.max+s.min)*q&&r>ro||i.min<=s.max&&i.min>(s.max+s.min)*q&&r<ro)&&(e.velocity=r*-a,e.bounced=!0),e}function ku(t,e){const i=he(e,n=>t.matches(n));return Re(i)?i.some(n=>n):i}function mt(){return typeof window>"u"||!window||typeof window.document>"u"||!window.document}function _u(){return!mt()&&typeof matchMedia<"u"}function Ca(t){if(_u())return matchMedia(t)}function Mu(t){if(!(mt()||typeof IntersectionObserver>"u"))return new IntersectionObserver(t)}function Du(t){if(!(mt()||typeof MutationObserver>"u"))return new MutationObserver(t)}function j(t,e){return t===e||Re(e)&&e.indexOf(t)>-1}async function yo(t,e){try{await document.fonts.load(`${e??"400"} 36px '${t??"Verdana"}'`)}catch{}}function Ru(t){return Math.floor(A()*t.length)}function Gi(t,e,i=!0){return t[e!==void 0&&i?e%t.length:Ru(t)]}function ls(t,e,i,n,s){return Au(ui(t,n??0),e,i,s)}function Au(t,e,i,n){let s=!0;return(!n||n===M.bottom)&&(s=t.top<e.height+i.x),s&&(!n||n===M.left)&&(s=t.right>i.x),s&&(!n||n===M.right)&&(s=t.left<e.width+i.y),s&&(!n||n===M.top)&&(s=t.bottom>i.y),s}function ui(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function J(t,...e){for(const i of e){if(i==null)continue;if(!wt(i)){t=i;continue}const n=Array.isArray(i);n&&(wt(t)||!t||!Array.isArray(t))?t=[]:!n&&(wt(t)||!t||Array.isArray(t))&&(t={});for(const s in i){if(s==="__proto__")continue;const o=i,r=o[s],a=t;a[s]=wt(r)&&Array.isArray(r)?r.map(c=>J(a[s],c)):J(a[s],r)}}return t}function us(t,e){return!!Ma(e,i=>i.enable&&j(t,i.mode))}function hs(t,e,i){he(e,n=>{const s=n.mode;n.enable&&j(t,s)&&Eu(n,i)})}function Eu(t,e){const i=t.selectors;he(i,n=>{e(n,t)})}function ka(t,e){if(!(!e||!t))return Ma(t,i=>ku(e,i.selectors))}function jn(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:N.create(S(t.options.bounce.horizontal.value),S(t.options.bounce.vertical.value))}}function _a(t,e){const{x:i,y:n}=t.velocity.sub(e.velocity),[s,o]=[t.position,e.position],{dx:r,dy:a}=ne(o,s);if(i*r+n*a<0)return;const l=-Math.atan2(a,r),u=t.mass,h=e.mass,f=t.velocity.rotate(l),d=e.velocity.rotate(l),p=mo(f,d,u,h),m=mo(d,f,u,h),g=p.rotate(-l),y=m.rotate(-l);t.velocity.x=g.x*t.factor.x,t.velocity.y=g.y*t.factor.y,e.velocity.x=y.x*e.factor.x,e.velocity.y=y.y*e.factor.y}function Ou(t,e){const i=t.getPosition(),n=t.getRadius(),s=ui(i,n),o=t.options.bounce,r=go({pSide:{min:s.left,max:s.right},pOtherSide:{min:s.top,max:s.bottom},rectSide:{min:e.left,max:e.right},rectOtherSide:{min:e.top,max:e.bottom},velocity:t.velocity.x,factor:S(o.horizontal.value)});r.bounced&&(r.velocity!==void 0&&(t.velocity.x=r.velocity),r.position!==void 0&&(t.position.x=r.position));const a=go({pSide:{min:s.top,max:s.bottom},pOtherSide:{min:s.left,max:s.right},rectSide:{min:e.top,max:e.bottom},rectOtherSide:{min:e.left,max:e.right},velocity:t.velocity.y,factor:S(o.vertical.value)});a.bounced&&(a.velocity!==void 0&&(t.velocity.y=a.velocity),a.position!==void 0&&(t.position.y=a.position))}function he(t,e){return Re(t)?t.map((n,s)=>e(n,s)):e(t,0)}function me(t,e,i){return Re(t)?Gi(t,e,i):t}function Ma(t,e){return Re(t)?t.find((n,s)=>e(n,s)):e(t,0)?t:void 0}function Da(t,e){const i=t.value,n=t.animation,s={delayTime:S(n.delay)*X,enable:n.enable,value:S(t.value)*e,max:_e(i)*e,min:Hi(i)*e,loops:0,maxLoops:S(n.count),time:0},o=1;if(n.enable){switch(s.decay=o-S(n.decay),n.mode){case at.increase:s.status=U.increasing;break;case at.decrease:s.status=U.decreasing;break;case at.random:s.status=A()>=q?U.increasing:U.decreasing;break}const r=n.mode===at.auto;switch(n.startValue){case Dt.min:s.value=s.min,r&&(s.status=U.increasing);break;case Dt.max:s.value=s.max,r&&(s.status=U.decreasing);break;case Dt.random:default:s.value=ce(s),r&&(s.status=A()>=q?U.increasing:U.decreasing);break}}return s.initialValue=s.value,s}function Vu(t,e){if(!(t.mode===zt.percent)){const{mode:s,...o}=t;return o}return"x"in t?{x:t.x/$e*e.width,y:t.y/$e*e.height}:{width:t.width/$e*e.width,height:t.height/$e*e.height}}function Ra(t,e){return Vu(t,e)}function Lu(t,e,i,n,s){switch(e){case dt.max:i>=s&&t.destroy();break;case dt.min:i<=n&&t.destroy();break}}function fs(t,e,i,n,s){if(t.destroyed||!e||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;const u=(e.velocity??0)*s.factor,h=e.min,f=e.max,d=e.decay??1;if(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=s.value),!((e.delayTime??0)>0&&e.time<(e.delayTime??0))){switch(e.status){case U.increasing:e.value>=f?(i?e.status=U.decreasing:e.value-=f,e.loops||(e.loops=0),e.loops++):e.value+=u;break;case U.decreasing:e.value<=h?(i?e.status=U.increasing:e.value+=f,e.loops||(e.loops=0),e.loops++):e.value-=u}
1e.velocity&&d!==1&&(e.velocity*=d),Lu(t,n,e.value,h,f),t.destroyed||(e.value=ye(e.value,h,f))}}function zu(t){var i,n,s,o;const e=document.createElement("div").style;if(!t)return e;for(const r in t){const a=t[r];if(!Object.prototype.hasOwnProperty.call(t,r)||P(a))continue;const c=(i=t.getPropertyValue)==null?void 0:i.call(t,a);if(!c)continue;const l=(n=t.getPropertyPriority)==null?void 0:n.call(t,a);l?(o=e.setProperty)==null||o.call(e,a,c,l):(s=e.setProperty)==null||s.call(e,a,c)}return e}function Iu(t){const e=document.createElement("div").style,i=10,n={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:t.toString(i),"z-index":t.toString(i),top:"0",left:"0"};for(const s in n){const o=n[s];e.setProperty(s,o)}return e}const Fu=Cu(Iu);var Un;(function(t){t.darken="darken",t.enlighten="enlighten"})(Un||(Un={}));function Bu(t,e){if(e){for(const i of t.colorManagers.values())if(e.startsWith(i.stringPrefix))return i.parseString(e)}}function Pe(t,e,i,n=!0){if(!e)return;const s=We(e)?{value:e}:e;if(We(s.value))return Aa(t,s.value,i,n);if(Re(s.value))return Pe(t,{value:Gi(s.value,i,n)});for(const o of t.colorManagers.values()){const r=o.handleRangeColor(s);if(r)return r}}
vendor: 8,122 bytes, line 1
1function Aa(t,e,i,n=!0){if(!e)return;const s=We(e)?{value:e}:e;if(We(s.value))return s.value===Lt?Oa():ju(t,s.value);if(Re(s.value))return Aa(t,{value:Gi(s.value,i,n)});for(const o of t.colorManagers.values()){const r=o.handleColor(s);if(r)return r}}function ti(t,e,i,n=!0){const s=Pe(t,e,i,n);return s?Ea(s):void 0}function Ea(t){const e=t.r/Mi,i=t.g/Mi,n=t.b/Mi,s=Math.max(e,i,n),o=Math.min(e,i,n),r={h:so,l:(s+o)*q,s:In};return s!==o&&(r.s=r.l<q?(s-o)/(s+o):(s-o)/(Y-s-o),r.h=e===s?(i-n)/(s-o):r.h=i===s?Y+(n-e)/(s-o):Y*Y+(e-i)/(s-o)),r.l*=zn,r.s*=Ln,r.h*=$l,r.h<so&&(r.h+=rt),r.h>=rt&&(r.h-=rt),r}function ju(t,e){return Bu(t,e)}function It(t){const e=(t.h%rt+rt)%rt,i=Math.max(In,Math.min(Ln,t.s)),n=Math.max(hu,Math.min(zn,t.l)),s=e/rt,o=i/Ln,r=n/zn;if(i===In){const p=Math.round(r*Ye);return{r:p,g:p,b:p}}const a=(p,m,g)=>{if(g<0&&g++,g>1&&g--,g*rn<1)return p+(m-p)*rn*g;if(g*Y<1)return m;if(g*on<1*Y){const b=Y/on;return p+(m-p)*(b-g)*rn}return p},c=r<q?r*(fu+o):r+o-r*o,l=Y*r-c,u=du/on,h=Math.min(Ye,Ye*a(l,c,s+u)),f=Math.min(Ye,Ye*a(l,c,s)),d=Math.min(Ye,Ye*a(l,c,s-u));return{r:Math.round(h),g:Math.round(f),b:Math.round(d)}}function Uu(t){const e=It(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function Oa(t){const e=pu,i=Mi+Bn;return{b:Math.floor(ce(D(e,i))),g:Math.floor(ce(D(e,i))),r:Math.floor(ce(D(e,i)))}}function ze(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${e??cs})`}function ii(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${e??cs})`}function ds(t,e,i,n){let s=t,o=e;return s.r===void 0&&(s=It(t)),o.r===void 0&&(o=It(e)),{b:an(s.b,o.b,i,n),g:an(s.g,o.g,i,n),r:an(s.r,o.r,i,n)}}function $n(t,e,i){if(i===Lt)return Oa();if(i===_i){const n=t.getFillColor()??t.getStrokeColor(),s=(e==null?void 0:e.getFillColor())??(e==null?void 0:e.getStrokeColor());if(n&&s&&e)return ds(n,s,t.getRadius(),e.getRadius());{const o=n??s;if(o)return It(o)}}else return i}function Va(t,e,i,n){const s=We(e)?e:e.value;return s===Lt?n?Pe(t,{value:s}):i?Lt:_i:s===_i?_i:Pe(t,{value:s})}function vo(t){return t!==void 0?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function La(t,e,i){const n={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(cn(n.h,e.h,i),cn(n.s,e.s,i),cn(n.l,e.l,i)),n}function cn(t,e,i){t.enable=e.enable,t.enable?(t.velocity=S(e.speed)/$e*i,t.decay=ba-S(e.decay),t.status=U.increasing,t.loops=gu,t.maxLoops=S(e.count),t.time=yu,t.delayTime=S(e.delay)*X,e.sync||(t.velocity*=A(),t.value*=A()),t.initialValue=t.value,t.offset=D(e.offset)):t.velocity=mu}function ln(t,e,i,n){if(!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0)||(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=n.value),(t.delayTime??0)>0&&t.time<(t.delayTime??0)))return;const u=t.offset?ce(t.offset):0,h=(t.velocity??0)*n.factor+u*3.6,f=t.decay??1,d=_e(e),p=Hi(e);!i||t.status===U.increasing?(t.value+=h,t.value>d&&(t.loops||(t.loops=0),t.loops++,i?t.status=U.decreasing:t.value-=d)):(t.value-=h,t.value<0&&(t.loops||(t.loops=0),t.loops++,t.status=U.increasing)),t.velocity&&f!==1&&(t.velocity*=f),t.value=ye(t.value,p,d)}function za(t,e){if(!t)return;const{h:i,s:n,l:s}=t,o={h:{min:0,max:360},s:{min:0,max:100},l:{min:0,max:100}};i&&ln(i,o.h,!1,e),n&&ln(n,o.s,!0,e),s&&ln(s,o.l,!0,e)}function Yt(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function $u(t,e,i){t.fillStyle=i??"rgba(0,0,0,0)",t.fillRect(K.x,K.y,e.width,e.height)}function qu(t,e,i,n){i&&(t.globalAlpha=n,t.drawImage(i,K.x,K.y,e.width,e.height),t.globalAlpha=1)}function un(t,e){t.clearRect(K.x,K.y,e.width,e.height)}function Nu(t){const{container:e,context:i,particle:n,delta:s,colorStyles:o,backgroundMask:r,composite:a,radius:c,opacity:l,shadow:u,transform:h}=t,f=n.getPosition(),d=n.rotation+(n.pathRotation?n.velocity.angle:uu),p={sin:Math.sin(d),cos:Math.cos(d)},m=!!d,g={a:p.cos*(h.a??mi.a),b:m?p.sin*(h.b??Bn):h.b??mi.b,c:m?-p.sin*(h.c??Bn):h.c??mi.c,d:p.cos*(h.d??mi.d)};i.setTransform(g.a,g.b,g.c,g.d,f.x,f.y),r&&(i.globalCompositeOperation=a);const y=n.shadowColor;u.enable&&y&&(i.shadowBlur=u.blur,i.shadowColor=ze(y),i.shadowOffsetX=u.offset.x,i.shadowOffsetY=u.offset.y),o.fill&&(i.fillStyle=o.fill);const v=n.strokeWidth??wa;i.lineWidth=v,o.stroke&&(i.strokeStyle=o.stroke);const b={container:e,context:i,particle:n,radius:c,opacity:l,delta:s,transformData:g,strokeWidth:v};Hu(b),Gu(b),Wu(b),i.globalCompositeOperation="source-over",i.resetTransform()}function Wu(t){const{container:e,context:i,particle:n,radius:s,opacity:o,delta:r,transformData:a}=t;if(!n.effect)return;const c=e.effectDrawers.get(n.effect);c&&c.draw({context:i,particle:n,radius:s,opacity:o,delta:r,pixelRatio:e.retina.pixelRatio,transformData:{...a}})}function Hu(t){const{container:e,context:i,particle:n,radius:s,opacity:o,delta:r,strokeWidth:a,transformData:c}=t;if(!n.shape)return;const l=e.shapeDrawers.get(n.shape);l&&(i.beginPath(),l.draw({context:i,particle:n,radius:s,opacity:o,delta:r,pixelRatio:e.retina.pixelRatio,transformData:{...c}}),n.shapeClose&&i.closePath(),a>wa&&i.stroke(),n.shapeFill&&i.fill())}function Gu(t){const{container:e,context:i,particle:n,radius:s,opacity:o,delta:r,transformData:a}=t;if(!n.shape)return;const c=e.shapeDrawers.get(n.shape);c!=null&&c.afterDraw&&c.afterDraw({context:i,particle:n,radius:s,opacity:o,delta:r,pixelRatio:e.retina.pixelRatio,transformData:{...a}})}function Ku(t,e,i){e.draw&&e.draw(t,i)}function Xu(t,e,i,n){e.drawParticle&&e.drawParticle(t,i,n)}function Yu(t,e,i){return{h:t.h,s:t.s,l:t.l+(e===Un.darken?-po:po)*i}}function Zu(t,e,i){const n=e[i];n!==void 0&&(t[i]=(t[i]??Nl)*n)}function bo(t,e,i=!1){if(!e)return;const n=t;if(!n)return;const s=n.style;if(!s)return;const o=new Set;for(const r in s)Object.prototype.hasOwnProperty.call(s,r)&&o.add(s[r]);for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&o.add(e[r]);for(const r of o){const a=e.getPropertyValue(r);a?s.setProperty(r,a,i?"important":""):s.removeProperty(r)}}class Qu{constructor(e,i){this.container=e,this._applyPostDrawUpdaters=o=>{var r;for(const a of this._postDrawUpdaters)(r=a.afterDraw)==null||r.call(a,o)},this._applyPreDrawUpdaters=(o,r,a,c,l,u)=>{var h;for(const f of this._preDrawUpdaters){if(f.getColorStyles){const{fill:d,stroke:p}=f.getColorStyles(r,o,a,c);d&&(l.fill=d),p&&(l.stroke=p)}if(f.getTransformValues){const d=f.getTransformValues(r);for(const p in d)Zu(u,d,p)}(h=f.beforeDraw)==null||h.call(f,r)}},this._applyResizePlugins=()=>{var o;for(const r of this._resizePlugins)(o=r.resize)==null||o.call(r)},this._getPluginParticleColors=o=>{let r,a;for(const c of this._colorPlugins)if(!r&&c.particleFillColor&&(r=ti(this._engine,c.particleFillColor(o))),!a&&c.particleStrokeColor&&(a=ti(this._engine,c.particleStrokeColor(o))),r&&a)break;return[r,a]},this._initCover=async()=>{const o=this.container.actualOptions,r=o.backgroundMask.cover,a=r.color;if(a){const c=Pe(this._engine,a);if(c){const l={...c,a:r.opacity};this._coverColorStyle=ze(l,l.a)}}else await new Promise((c,l)=>{if(!r.image)return;const u=document.createElement("img");u.addEventListener("load",()=>{this._coverImage={image:u,opacity:r.opacity},c()}),u.addEventListener("error",h=>{l(h.error)}),u.src=r.image})},this._initStyle=()=>{const o=this.element,r=this.container.actualOptions;if(o){this._fullScreen?this._setFullScreenStyle():this._resetOriginalStyle();for(const a in r.style){if(!a||!r.style||!Object.prototype.hasOwnProperty.call(r.style,a))continue;const c=r.style[a];c&&o.style.setProperty(a,c,"important")}}},this._initTrail=async()=>{const o=this.container.actualOptions,r=o.particles.move.trail,a=r.fill;if(!r.enable)return;const c=ya/r.length;if(a.color){const l=Pe(this._engine,a.color);if(!l)return;this._trailFill={color:{...l},opacity:c}}else await new Promise((l,u)=>{if(!a.image)return;const h=document.createElement("img");h.addEventListener("load",()=>{this._trailFill={image:h,opacity:c},l()}),h.addEventListener("error",f=>{u(f.error)}),h.src=a.image})},this._paintBase=o=>{this.draw(r=>$u(r,this.size,o))},this._paintImage=(o,r)=>{this.draw(a=>qu(a,this.size,o,r))},this._repairStyle=()=>{const o=this.element;if(!o)return;this._safeMutationObserver(a=>
1a.disconnect()),this._initStyle(),this.initBackground();const r=this._pointerEvents;o.style.pointerEvents=r,o.setAttribute("pointer-events",r),this._safeMutationObserver(a=>{!o||!(o instanceof Node)||a.observe(o,{attributes:!0})})},this._resetOriginalStyle=()=>{const o=this.element,r=this._originalStyle;!o||!r||bo(o,r,!0)},this._safeMutationObserver=o=>{this._mutationObserver&&o(this._mutationObserver)},this._setFullScreenStyle=()=>{const o=this.element;o&&bo(o,Fu(this.container.actualOptions.fullScreen.zIndex),!0)},this._engine=i,this._standardSize={height:0,width:0};const n=e.retina.pixelRatio,s=this._standardSize;this.size={height:s.height*n,width:s.width*n},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[],this._pointerEvents="none"}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){const e=this.container.actualOptions,i=e.particles.move.trail,n=this._trailFill;e.backgroundMask.enable?this.paint():i.enable&&i.length>Hl&&n?n.color?this._paintBase(ze(n.color,n.opacity)):n.image&&this._paintImage(n.image,n.opacity):e.clear&&this.draw(s=>{un(s,this.size)})}destroy(){if(this.stop(),this._generated){const e=this.element;e==null||e.remove(),this.element=void 0}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(e){const i=this._context;if(i)return e(i)}drawAsync(e){const i=this._context;if(i)return e(i)}drawParticle(e,i){if(e.spawning||e.destroyed)return;const n=e.getRadius();if(n<=Wl)return;const s=e.getFillColor(),o=e.getStrokeColor()??s;let[r,a]=this._getPluginParticleColors(e);r||(r=s),a||(a=o),!(!r&&!a)&&this.draw(c=>{var x;const l=this.container,u=l.actualOptions,h=e.options.zIndex,f=Gl-e.zIndexFactor,d=f**h.opacityRate,p=e.bubble.opacity??((x=e.opacity)==null?void 0:x.value)??cs,m=e.strokeOpacity??p,g=p*d,y=m*d,v={},b={fill:r?ii(r,g):void 0};b.stroke=a?ii(a,y):b.fill,this._applyPreDrawUpdaters(c,e,n,g,b,v),Nu({container:l,context:c,particle:e,delta:i,colorStyles:b,backgroundMask:u.backgroundMask.enable,composite:u.backgroundMask.composite,radius:n*f**h.sizeRate,opacity:g,shadow:e.options.shadow,transform:v}),this._applyPostDrawUpdaters(e)})}drawParticlePlugin(e,i,n){this.draw(s=>Xu(s,e,i,n))}drawPlugin(e,i){this.draw(n=>Ku(n,e,i))}
vendor: 25,989 bytes, line 1
1async init(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=Du(e=>{for(const i of e)i.type==="attributes"&&i.attributeName==="style"&&this._repairStyle()}),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(e){pt().error(e)}this.initBackground(),this._safeMutationObserver(e=>{!this.element||!(this.element instanceof Node)||e.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const e=this.container.actualOptions,i=e.background,n=this.element;if(!n)return;const s=n.style;if(s){if(i.color){const o=Pe(this._engine,i.color);s.backgroundColor=o?ze(o,i.opacity):""}else s.backgroundColor="";s.backgroundImage=i.image||"",s.backgroundPosition=i.position||"",s.backgroundRepeat=i.repeat||"",s.backgroundSize=i.size||""}}initPlugins(){this._resizePlugins=[];for(const e of this.container.plugins.values())e.resize&&this._resizePlugins.push(e),(e.particleFillColor??e.particleStrokeColor)&&this._colorPlugins.push(e)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const e of this.container.particles.updaters)e.afterDraw&&this._postDrawUpdaters.push(e),(e.getColorStyles??e.getTransformValues??e.beforeDraw)&&this._preDrawUpdaters.push(e)}loadCanvas(e){this._generated&&this.element&&this.element.remove(),this._generated=e.dataset&&ot in e.dataset?e.dataset[ot]==="true":this._generated,this.element=e,this.element.ariaHidden="true",this._originalStyle=zu(this.element.style);const i=this._standardSize;i.height=e.offsetHeight,i.width=e.offsetWidth;const n=this.container.retina.pixelRatio,s=this.size;e.height=s.height=i.height*n,e.width=s.width=i.width*n,this._context=this.element.getContext("2d"),this._safeMutationObserver(o=>o.disconnect()),this.container.retina.init(),this.initBackground(),this._safeMutationObserver(o=>{!this.element||!(this.element instanceof Node)||o.observe(this.element,{attributes:!0})})}paint(){const e=this.container.actualOptions;this.draw(i=>{e.backgroundMask.enable&&e.backgroundMask.cover?(un(i,this.size),this._coverImage?this._paintImage(this._coverImage.image,this._coverImage.opacity):this._coverColorStyle?this._paintBase(this._coverColorStyle):this._paintBase()):this._paintBase()})}resize(){if(!this.element)return!1;const e=this.container,i=e.canvas._standardSize,n={width:this.element.offsetWidth,height:this.element.offsetHeight},s=e.retina.pixelRatio,o={width:n.width*s,height:n.height*s};if(n.height===i.height&&n.width===i.width&&o.height===this.element.height&&o.width===this.element.width)return!1;const r={...i};i.height=n.height,i.width=n.width;const a=this.size;return this.element.width=a.width=o.width,this.element.height=a.height=o.height,this.container.started&&e.particles.setResizeFactor({width:i.width/r.width,height:i.height/r.height}),!0}setPointerEvents(e){this.element&&(this._pointerEvents=e,this._repairStyle())}stop(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=void 0,this.draw(e=>un(e,this.size))}async windowResize(){if(!this.element||!this.resize())return;const e=this.container,i=e.updateActualOptions();e.particles.setDensity(),this._applyResizePlugins(),i&&await e.refresh()}}var Rt;(function(t){t.canvas="canvas",t.parent="parent",t.window="window"})(Rt||(Rt={}));function fe(t,e,i,n,s){if(n){let o={passive:!0};Pa(s)?o.capture=s:s!==void 0&&(o=s),t.addEventListener(e,i,o)}else{const o=s;t.removeEventListener(e,i,o)}}class Ju{constructor(e){this.container=e,this._doMouseTouchClick=i=>{const n=this.container,s=n.actualOptions;if(this._canPush){const o=n.interactivity.mouse,r=o.position;if(!r)return;o.clickPosition={...r},o.clickTime=new Date().getTime();const a=s.interactivity.events.onClick;he(a.mode,c=>this.container.handleClickMode(c))}i.type==="touchend"&&setTimeout(()=>this._mouseTouchFinish(),lu)},this._handleThemeChange=i=>{const n=i,s=this.container,o=s.options,r=o.defaultThemes,a=n.matches?r.dark:r.light,c=o.themes.find(l=>l.name===a);c!=null&&c.default.auto&&s.loadTheme(a)},this._handleVisibilityChange=()=>{const i=this.container,n=i.actualOptions;this._mouseTouchFinish(),n.pauseOnBlur&&(document!=null&&document.hidden?(i.pageHidden=!0,i.pause()):(i.pageHidden=!1,i.animationStatus?i.play(!0):i.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);const i=async()=>{const n=this.container.canvas;await(n==null?void 0:n.windowResize())};this._resizeTimeout=setTimeout(()=>void i(),this.container.actualOptions.interactivity.events.resize.delay*X)},this._manageInteractivityListeners=(i,n)=>{const s=this._handlers,o=this.container,r=o.actualOptions,a=o.interactivity.element;if(!a)return;const c=a,l=o.canvas;l.setPointerEvents(c===l.element?"initial":"none"),(r.interactivity.events.onHover.enable||r.interactivity.events.onClick.enable)&&(fe(a,ft,s.mouseMove,n),fe(a,Vl,s.touchStart,n),fe(a,Ll,s.touchMove,n),r.interactivity.events.onClick.enable?(fe(a,Qs,s.touchEndClick,n),fe(a,El,s.mouseUp,n),fe(a,Al,s.mouseDown,n)):fe(a,Qs,s.touchEnd,n),fe(a,i,s.mouseLeave,n),fe(a,zl,s.touchCancel,n))},this._manageListeners=i=>{const n=this._handlers,s=this.container,o=s.actualOptions,r=o.interactivity.detectsOn,a=s.canvas.element;let c=Vn;r===Rt.window?(s.interactivity.element=window,c=Ol):r===Rt.parent&&a?s.interactivity.element=a.parentElement??a.parentNode:s.interactivity.element=a,this._manageMediaMatch(i),this._manageResize(i),this._manageInteractivityListeners(c,i),document&&fe(document,Fl,n.visibilityChange,i,!1)},this._manageMediaMatch=i=>{const n=this._handlers,s=Ca("(prefers-color-scheme: dark)");if(s){if(s.addEventListener!==void 0){fe(s,"change",n.themeChange,i);return}s.addListener!==void 0&&(i?s.addListener(n.oldThemeChange):s.removeListener(n.oldThemeChange))}},this._manageResize=i=>{const n=this._handlers,s=this.container;if(!s.actualOptions.interactivity.events.resize)return;if(typeof ResizeObserver>"u"){fe(window,Il,n.resize,i);return}const r=s.canvas.element;this._resizeObserver&&!i?(r&&this._resizeObserver.unobserve(r),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&i&&r&&(this._resizeObserver=new ResizeObserver(a=>{a.find(l=>l.target===r)&&this._handleWindowResize()}),this._resizeObserver.observe(r))},this._mouseDown=()=>{const{interactivity:i}=this.container;if(!i)return;const{mouse:n}=i;n.clicking=!0,n.downPosition=n.position},this._mouseTouchClick=i=>{const n=this.container,s=n.actualOptions,{mouse:o}=n.interactivity;o.inside=!0;let r=!1;const a=o.position;if(!(!a||!s.interactivity.events.onClick.enable)){for(const c of n.plugins.values())if(c.clickPositionValid&&(r=c.clickPositionValid(a),r))break;r||this._doMouseTouchClick(i),o.clicking=!1}},this._mouseTouchFinish=()=>{const i=this.container.interactivity;if(!i)return;const n=i.mouse;delete n.position,delete n.clickPosition,delete n.downPosition,i.status=Vn,n.inside=!1,n.clicking=!1},this._mouseTouchMove=i=>{const n=this.container,s=n.actualOptions,o=n.interactivity,r=n.canvas.element;if(!(o!=null&&o.element))return;o.mouse.inside=!0;let a;if(i.type.startsWith("pointer")){this._canPush=!0;const l=i;if(o.element===window){if(r){const u=r.getBoundingClientRect();a={x:l.clientX-u.left,y:l.clientY-u.top}}}else if(s.interactivity.detectsOn===Rt.parent){const u=l.target,h=l.currentTarget;if(u&&h&&r){const f=u.getBoundingClientRect(),d=h.getBoundingClientRect(),p=r.getBoundingClientRect();a={x:l.offsetX+Y*f.left-(d.left+p.left),y:l.offsetY+Y*f.top-(d.top+p.top)}}else a={x:l.offsetX??l.clientX,y:l.offsetY??l.clientY}}else l.target===r&&(a={x:l.offsetX??l.clientX,y:l.offsetY??l.clientY})}else if(this._canPush=i.type!=="touchmove",r){const l=i,u=l.touches[l.touches.length-xa],h=r.getBoundingClientRect();a={x:u.clientX-(h.left??Vi),y:u.clientY-(h.top??Vi)}}const c=n.retina.pixelRatio;a&&(a.x*=c,a.y*=c),o.mouse.position=a,o.status=ft},this._touchEnd=i=>{const n=i,s=Array.from(n.changedTouches);for(const o of s)this._touches.delete(o.identifier);this._mouseTouchFinish()},this._touchEndClick=i=>{const n=i,s=Array.from(n.changedTouches);for(const o of s)this._touches.delete(o.identifier);this._mouseTouchClick(i)},this._touchStart=i=>{const n=i,s=Array.from(n.changedTouches);for(const o of s)this._touches.set(o.identifier,performance.now());this._mouseTouchMove(i)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:i=>this._mouseTouchMove(i),mouseUp:i=>this._mouseTouchClick(i),touchStart:i=>this._touchStart(i),touchMove:i=>this._mouseTouchMove(i),touchEnd:i=>this._touchEnd(i),touchCancel:i=>this._touchEnd(i),touchEndClick:i=>this._touchEndClick(i),visibilityChange:()=>this._handleVisibilityChange(),themeChange:i=>this._handleThemeChange(i),oldThemeChange:i=>this._handleThemeChange(i),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}var ie;(function(t){t.configAdded="configAdded",t.containerInit="containerInit",t.particlesSetup="particlesSetup",t.containerStarted="containerStarted",t.containerStopped="containerStopped",t.containerDestroyed="containerDestroyed",t.containerPaused="containerPaused",t.containerPlay="containerPlay",t.containerBuilt="containerBuilt",t.particleAdded="particleAdded",t.particleDestroyed="particleDestroyed",t.particleRemoved="particleRemoved"})(ie||(ie={}));class ee{constructor(){this.value=""}static create(e,i){const n=new ee;return n.load(e),i!==void 0&&(We(i)||Re(i)?n.load({value:i}):n.load(i)),n}load(e){P(e)||P(e.value)||(this.value=e.value)}}class eh{constructor(){this.color=new ee,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){P(e)||(e.color!==void 0&&(this.color=ee.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image),e.position!==void 0&&(this.position=e.position),e.repeat!==void 0&&(this.repeat=e.repeat),e.size!==void 0&&(this.size=e.size),e.opacity!==void 0&&(this.opacity=e.opacity))}}class th{constructor(){this.opacity=1}load(e){P(e)||(e.color!==void 0&&(this.color=ee.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image),e.opacity!==void 0&&(this.opacity=e.opacity))}}class ih{constructor(){this.composite="destination-out",this.cover=new th,this.enable=!1}load(e){if(!P(e)){if(e.composite!==void 0&&(this.composite=e.composite),e.cover!==void 0){const i=e.cover,n=We(e.cover)?{color:e.cover}:e.cover;this.cover.load(i.color!==void 0||i.image!==void 0?i:{color:n})}e.enable!==void 0&&(this.enable=e.enable)}}}class nh{constructor(){this.enable=!0,this.zIndex=0}load(e){P(e)||(e.enable!==void 0&&(this.enable=e.enable),e.zIndex!==void 0&&(this.zIndex=e.zIndex))}}class sh{constructor(){this.enable=!1,this.mode=[]}load(e){P(e)||(e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode))}}var Ft;(function(t){t.circle="circle",t.rectangle="rectangle"})(Ft||(Ft={}));class xo{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=Ft.circle}load(e){P(e)||(e.selectors!==void 0&&(this.selectors=e.selectors),e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode),e.type!==void 0&&(this.type=e.type))}}class oh{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(e){P(e)||(e.enable!==void 0&&(this.enable=e.enable),e.force!==void 0&&(this.force=e.force),e.smooth!==void 0&&(this.smooth=e.smooth))}}class rh{constructor(){this.enable=!1,this.mode=[],this.parallax=new oh}load(e){P(e)||(e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode),this.parallax.load(e.parallax))}}class ah{constructor(){this.delay=.5,this.enable=!0}load(e){P(e)||(e.delay!==void 0&&(this.delay=e.delay),e.enable!==void 0&&(this.enable=e.enable))}}class ch{constructor(){this.onClick=new sh,this.onDiv=new xo,this.onHover=new rh,this.resize=new ah}load(e){if(P(e))return;this.onClick.load(e.onClick);const i=e.onDiv;i!==void 0&&(this.onDiv=he(i,n=>{const s=new xo;return s.load(n),s})),this.onHover.load(e.onHover),this.resize.load(e.resize)}}class lh{constructor(e,i){this._engine=e,this._container=i}load(e){if(P(e)||!this._container)return;const i=this._engine.interactors.get(this._container);if(i)for(const n of i)n.loadModeOptions&&n.loadModeOptions(this,e)}}class Ia{constructor(e,i){this.detectsOn=Rt.window,this.events=new ch,this.modes=new lh(e,i)}load(e){if(P(e))return;const i=e.detectsOn;i!==void 0&&(this.detectsOn=i),this.events.load(e.events),this.modes.load(e.modes)}}class uh{load(e){P(e)||(e.position&&(this.position={x:e.position.x??fo,y:e.position.y??fo,mode:e.position.mode??zt.percent}),e.options&&(this.options=J({},e.options)))}}var ct;(function(t){t.screen="screen",t.canvas="canvas"})(ct||(ct={}));class hh{constructor(){this.maxWidth=1/0,this.options={},this.mode=ct.canvas}load(e){P(e)||(P(e.maxWidth)||(this.maxWidth=e.maxWidth),P(e.mode)||(e.mode===ct.screen?this.mode=ct.screen:this.mode=ct.canvas),P(e.options)||(this.options=J({},e.options)))}}var Ue;(function(t){t.any="any",t.dark="dark",t.light="light"})(Ue||(Ue={}));class fh{constructor(){this.auto=!1,this.mode=Ue.any,this.value=!1}load(e){P(e)||(e.auto!==void 0&&(this.auto=e.auto),e.mode!==void 0&&(this.mode=e.mode),e.value!==void 0&&(this.value=e.value))}}class dh{constructor(){this.name="",this.default=new fh}load(e){P(e)||(e.name!==void 0&&(this.name=e.name),this.default.load(e.default),e.options!==void 0&&(this.options=J({},e.options)))}}class ps{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){P(e)||(e.count!==void 0&&(this.count=D(e.count)),e.enable!==void 0&&(this.enable=e.enable),e.speed!==void 0&&(this.speed=D(e.speed)),e.decay!==void 0&&(this.decay=D(e.decay)),e.delay!==void 0&&(this.delay=D(e.delay)),e.sync!==void 0&&(this.sync=e.sync))}}class ms extends ps{constructor(){super(),this.mode=at.auto,this.startValue=Dt.random}load(e){super.load(e),!P(e)&&(e.mode!==void 0&&(this.mode=e.mode),e.startValue!==void 0&&(this.startValue=e.startValue))}}class hn extends ps{constructor(){super(),this.offset=0,this.sync=!0}load(e){super.load(e),!P(e)&&e.offset!==void 0&&(this.offset=D(e.offset))}}class ph{constructor(){this.h=new hn,this.s=new hn,this.l=new hn}load(e){P(e)||(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}class ni extends ee{constructor(){super(),this.animation=new ph}static create(e,i){const n=new ni;return n.load(e),i!==void 0&&(We(i)||Re(i)?n.load({value:i}):n.load(i)),n}load(e){if(super.load(e),P(e))return;const i=e.animation;i!==void 0&&(i.enable!==void 0?this.animation.h.load(i):this.animation.load(e.animation))}}var At;(function(t){t.absorb="absorb",t.bounce="bounce",t.destroy="destroy"})(At||(At={}));class mh{constructor(){this.speed=2}load(e){P(e)||e.speed!==void 0&&(this.speed=e.speed)}}class gh{constructor(){this.enable=!0,this.retries=0}load(e){P(e)||(e.enable!==void 0&&(this.enable=e.enable),e.retries!==void 0&&(this.retries=e.retries))}}class gt{constructor(){this.value=0}load(e){P(e)||P(e.value)||(this.value=D(e.value))}}class yh extends gt{constructor(){super(),this.animation=new ps}load(e){if(super.load(e),P(e))return;const i=e.animation;i!==void 0&&this.animation.load(i)}}class Fa extends yh{constructor(){super(),this.animation=new ms}load(e){super.load(e)}}class wo extends gt{constructor(){super(),this.value=1}}class Ba{constructor(){this.horizontal=new wo,this.vertical=new wo}load(e){P(e)||(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}class vh{constructor(){this.absorb=new mh,this.bounce=new Ba,this.enable=!1,this.maxSpeed=50,this.mode=At.bounce,this.overlap=new gh}load(e){P(e)||(this.absorb.load(e.absorb),this.bounce.load(e.bounce),e.enable!==void 0&&(this.enable=e.enable),e.maxSpeed!==void 0&&(this.maxSpeed=D(e.maxSpeed)),e.mode!==void 0&&(this.mode=e.mode),this.overlap.load(e.overlap))}}class bh{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(e){if(P(e))return;const i=e.options;if(i!==void 0)for(const n in i){const s=i[n];s&&(this.options[n]=J(this.options[n]??{},s))}e.close!==void 0&&(this.close=e.close),e.fill!==void 0&&(this.fill=e.fill),e.type!==void 0&&(this.type=e.type)}}class xh{constructor(){this.offset=0,this.value=90}load(e){P(e)||(e.offset!==void 0&&(this.offset=D(e.offset)),e.value!==void 0&&(this.value=D(e.value)))}}class wh{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(e){if(!P(e)&&(e.distance!==void 0&&(this.distance=D(e.distance)),e.enable!==void 0&&(this.enable=e.enable),e.rotate)){const i=e.rotate.x;i!==void 0&&(this.rotate.x=i);const n=e.rotate.y;n!==void 0&&(this.rotate.y=n)}}}class Ph{constructor(){this.x=50,this.y=50,this.mode=zt.percent,this.radius=0}load(e){P(e)||(e.x!==void 0&&(this.x=e.x),e.y!==void 0&&(this.y=e.y),e.mode!==void 0&&(this.mode=e.mode),e.radius!==void 0&&(this.radius=e.radius))}}class Sh{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){P(e)||(e.acceleration!==void 0&&(this.acceleration=D(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.inverse!==void 0&&(this.inverse=e.inverse),e.maxSpeed!==void 0&&(this.maxSpeed=D(e.maxSpeed)))}}class Th{constructor(){this.clamp=!0,this.delay=new gt,this.enable=!1,this.options={}}load(e){P(e)||(e.clamp!==void 0&&(this.clamp=e.clamp),this.delay.load(e.delay),e.enable!==void 0&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=J(this.options,e.options)))}}class Ch{load(e){P(e)||(e.color!==void 0&&(this.color=ee.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image))}}class kh{constructor(){this.enable=!1,this.length=10,this.fill=new Ch}load(e){P(e)||(e.enable!==void 0&&(this.enable=e.enable),e.fill!==void 0&&this.fill.load(e.fill),e.length!==void 0&&(this.length=e.length))}}var $;(function(t){t.bounce="bounce",t.none="none",t.out="out",t.destroy="destroy",t.split="split"})($||($={}));class _h{constructor(){this.default=$.out}load(e){P(e)||(e.default!==void 0&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default)}}class Mh{constructor(){this.acceleration=0,this.enable=!1}load(e){P(e)||(e.acceleration!==void 0&&(this.acceleration=D(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.position&&(this.position=J({},e.position)))}}class Dh{constructor(){this.angle=new xh,this.attract=new wh,this.center=new Ph,this.decay=0,this.distance={},this.direction=H.none,this.drift=0,this.enable=!1,this.gravity=new Sh,this.path=new Th,this.outModes=new _h,this.random=!1,this.size=!1,this.speed=2,this.spin=new Mh,this.straight=!1,this.trail=new kh,this.vibrate=!1,this.warp=!1}load(e){if(P(e))return;this.angle.load(He(e.angle)?{value:e.angle}:e.angle),this.attract.load(e.attract),this.center.load(e.center),e.decay!==void 0&&(this.decay=D(e.decay)),e.direction!==void 0&&(this.direction=e.direction),e.distance!==void 0&&(this.distance=He(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),e.drift!==void 0&&(this.drift=D(e.drift)),e.enable!==void 0&&(this.enable=e.enable),this.gravity.load(e.gravity);const i=e.outModes;i!==void 0&&(wt(i)?this.outModes.load(i):this.outModes.load({default:i})),this.path.load(e.path),e.random!==void 0&&(this.random=e.random),e.size!==void 0&&(this.size=e.size),e.speed!==void 0&&(this.speed=D(e.speed)),this.spin.load(e.spin),e.straight!==void 0&&(this.straight=e.straight),this.trail.load(e.trail),e.vibrate!==void 0&&(this.vibrate=e.vibrate),e.warp!==void 0&&(this.warp=e.warp)}}class Rh extends ms{constructor(){super(),this.destroy=dt.none,this.speed=2}load(e){super.load(e),!P(e)&&e.destroy!==void 0&&(this.destroy=e.destroy)}}class Ah extends Fa{constructor(){super(),this.animation=new Rh,this.value=1}load(e){if(P(e))return;super.load(e);const i=e.animation;i!==void 0&&this.animation.load(i)}}class Eh{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(e){if(P(e))return;e.enable!==void 0&&(this.enable=e.enable);const i=e.width;i!==void 0&&(this.width=i);const n=e.height;n!==void 0&&(this.height=n)}}var si;(function(t){t.delete="delete",t.wait="wait"})(si||(si={}));class Oh{constructor(){this.mode=si.delete,this.value=0}load(e){P(e)||(e.mode!==void 0&&(this.mode=e.mode),e.value!==void 0&&(this.value=e.value))}}class Vh{constructor(){this.density=new Eh,this.limit=new Oh,this.value=0}load(e){P(e)||(this.density.load(e.density),this.limit.load(e.limit),e.value!==void 0&&(this.value=e.value))}}class Lh{constructor(){this.blur=0,this.color=new ee,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(e){P(e)||(e.blur!==void 0&&(this.blur=e.blur),this.color=ee.create(this.color,e.color),e.enable!==void 0&&(this.enable=e.enable),e.offset!==void 0&&(e.offset.x!==void 0&&(this.offset.x=e.offset.x),e.offset.y!==void 0&&(this.offset.y=e.offset.y)))}}class zh{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(e){if(P(e))return;const i=e.options;if(i!==void 0)for(const n in i){const s=i[n];s&&(this.options[n]=J(this.options[n]??{},s))}e.close!==void 0&&(this.close=e.close),e.fill!==void 0&&(this.fill=e.fill),e.type!==void 0&&(this.type=e.type)}}class Ih extends ms{constructor(){super(),this.destroy=dt.none,this.speed=5}load(e){super.load(e),!P(e)&&e.destroy!==void 0&&(this.destroy=e.destroy)}}class Fh extends Fa{constructor(){super(),this.animation=new Ih,this.value=3}load(e){if(super.load(e),P(e))return;const i=e.animation;i!==void 0&&this.animation.load(i)}}class Po{constructor(){this.width=0}load(e){P(e)||(e.color!==void 0&&(this.color=ni.create(this.color,e.color)),e.width!==void 0&&(this.width=D(e.width)),e.opacity!==void 0&&(this.opacity=D(e.opacity)))}}class Bh extends gt{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),!P(e)&&(e.opacityRate!==void 0&&(this.opacityRate=e.opacityRate),e.sizeRate!==void 0&&(this.sizeRate=e.sizeRate),e.velocityRate!==void 0&&(this.velocityRate=e.velocityRate))}}class jh{constructor(e,i){this._engine=e,this._container=i,this.bounce=new Ba,this.collisions=new vh,this.color=new ni,this.color.value="#fff",this.effect=new bh,this.groups={},this.move=new Dh,this.number=new Vh,this.opacity=new Ah,this.reduceDuplicates=!1,this.shadow=new Lh,this.shape=new zh,this.size=new Fh,this.stroke=new Po,this.zIndex=new Bh}load(e){if(P(e))return;if(e.groups!==void 0)for(const n of Object.keys(e.groups)){if(!Object.hasOwn(e.groups,n))continue;const s=e.groups[n];s!==void 0&&(this.groups[n]=J(this.groups[n]??{},s))}e.reduceDuplicates!==void 0&&(this.reduceDuplicates=e.reduceDuplicates),this.bounce.load(e.bounce),this.color.load(ni.create(this.color,e.color)),this.effect.load(e.effect),this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity),this.shape.load(e.shape),this.size.load(e.size),this.shadow.load(e.shadow),this.zIndex.load(e.zIndex),this.collisions.load(e.collisions),e.interactivity!==void 0&&(this.interactivity=J({},e.interactivity));const i=e.stroke;if(i&&(this.stroke=he(i,n=>{const s=new Po;return s.load(n),s})),this._container){const n=this._engine.updaters.get(this._container);if(n)for(const o of n)o.loadOptions&&o.loadOptions(this,e);const s=this._engine.interactors.get(this._container);if(s)for(const o of s)o.loadParticlesOptions&&o.loadParticlesOptions(this,e)}}}function ja(t,...e){for(const i of e)t.load(i)}function Ua(t,e,...i){const n=new jh(t,e);return ja(n,...i),n}class Uh{constructor(e,i){this._findDefaultTheme=n=>this.themes.find(s=>s.default.value&&s.default.mode===n)??this.themes.find(s=>s.default.value&&s.default.mode===Ue.any),this._importPreset=n=>{this.load(this._engine.getPreset(n))},this._engine=e,this._container=i,this.autoPlay=!0,this.background=new eh,this.backgroundMask=new ih,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new nh,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new Ia(e,i),this.manualParticles=[],this.particles=Ua(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(e){var r,a;if(P(e))return;e.preset!==void 0&&he(e.preset,c=>this._importPreset(c)),e.autoPlay!==void 0&&(this.autoPlay=e.autoPlay),e.clear!==void 0&&(this.clear=e.clear),e.key!==void 0&&(this.key=e.key),e.name!==void 0&&(this.name=e.name),e.delay!==void 0&&(this.delay=D(e.delay));const i=e.detectRetina;i!==void 0&&(this.detectRetina=i),e.duration!==void 0&&(this.duration=D(e.duration));const n=e.fpsLimit;n!==void 0&&(this.fpsLimit=n),e.pauseOnBlur!==void 0&&(this.pauseOnBlur=e.pauseOnBlur),e.pauseOnOutsideViewport!==void 0&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),e.zLayers!==void 0&&(this.zLayers=e.zLayers),this.background.load(e.background);const s=e.fullScreen;Pa(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.backgroundMask.load(e.backgroundMask),this.interactivity.load(e.interactivity),e.manualParticles&&(this.manualParticles=e.manualParticles.map(c=>{const l=new uh;return l.load(c),l})),this.particles.load(e.particles),this.style=J(this.style,e.style),this._engine.loadOptions(this,e),e.smooth!==void 0&&(this.smooth=e.smooth);const o=this._engine.interactors.get(this._container);if(o)for(const c of o)c.loadOptions&&c.loadOptions(this,e);if(e.responsive!==void 0)for(const c of e.responsive){const l=new hh;l.load(c),this.responsive.push(l)}if(this.responsive.sort((c,l)=>c.maxWidth-l.maxWidth),e.themes!==void 0)for(const c of e.themes){const l=this.themes.find(u=>u.name===c.name);if(l)l.load(c);else{const u=new dh;u.load(c),this.themes.push(u)}}this.defaultThemes.dark=(r=this._findDefaultTheme(Ue.dark))==null?void 0:r.name,this.defaultThemes.light=(a=this._findDefaultTheme(Ue.light))==null?void 0:a.name}setResponsive(e,i,n){this.load(n);const s=this.responsive.find(o=>o.mode===ct.screen&&screen?o.maxWidth>
1screen.availWidth:o.maxWidth*i>e);return this.load(s==null?void 0:s.options),s==null?void 0:s.maxWidth}setTheme(e){if(e){const i=this.themes.find(n=>n.name===e);i&&this.load(i.options)}else{const i=Ca("(prefers-color-scheme: dark)"),n=i==null?void 0:i.matches,s=this._findDefaultTheme(n?Ue.dark:Ue.light);s&&this.load(s.options)}}}var Bt;(function(t){t.external="external",t.particles="particles"})(Bt||(Bt={}));class $h{constructor(e,i){this.container=i,this._engine=e,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(e){for(const i of this._externalInteractors)i.isEnabled()&&i.interact(e)}handleClickMode(e){var i;for(const n of this._externalInteractors)(i=n.handleClickMode)==null||i.call(n,e)}async init(){this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[];for(const e of this._interactors){switch(e.type){case Bt.external:this._externalInteractors.push(e);break;case Bt.particles:this._particleInteractors.push(e);break}e.init()}}particlesInteract(e,i){for(const n of this._externalInteractors)n.clear(e,i);for(const n of this._particleInteractors)n.isEnabled(e)&&n.interact(e,i)}reset(e){for(const i of this._externalInteractors)i.isEnabled()&&i.reset(e);for(const i of this._particleInteractors)i.isEnabled(e)&&i.reset(e)}}var Se;(function(t){t.normal="normal",t.inside="inside",t.outside="outside"})(Se||(Se={}));function qh(t,e,i,n){const s=e.options[t];if(s)return J({close:e.close,fill:e.fill},me(s,i,n))}function Nh(t,e,i,n){const s=e.options[t];if(s)return J({close:e.close,fill:e.fill},me(s,i,n))}function So(t){if(!j(t.outMode,t.checkModes))return;const e=t.radius*Y;t.coord>t.maxCoord-e?t.setCb(-t.radius):t.coord<e&&t.setCb(t.radius)}class Wh{constructor(e,i){this.container=i,this._calcPosition=(n,s,o,r=eo)=>{for(const p of n.plugins.values()){const m=p.particlePosition!==void 0?p.particlePosition(s,this):void 0;if(m)return ae.create(m.x,m.y,o)}const a=n.canvas.size,c=Su({size:a,position:s}),l=ae.create(c.x,c.y,o),u=this.getRadius(),h=this.options.move.outModes,f=p=>{So({outMode:p,checkModes:[$.bounce],coord:l.x,maxCoord:n.canvas.size.width,setCb:m=>
vendor: 1,874 bytes, line 1
1l.x+=m,radius:u})},d=p=>{So({outMode:p,checkModes:[$.bounce],coord:l.y,maxCoord:n.canvas.size.height,setCb:m=>l.y+=m,radius:u})};return f(h.left??h.default),f(h.right??h.default),d(h.top??h.default),d(h.bottom??h.default),this._checkOverlap(l,r)?this._calcPosition(n,void 0,o,r+iu):l},this._calculateVelocity=()=>{const n=Pu(this.direction),s=n.copy(),o=this.options.move;if(o.direction===H.inside||o.direction===H.outside)return s;const r=Ne(S(o.angle.value)),a=Ne(S(o.angle.offset)),c={left:a-r*q,right:a+r*q};return o.straight||(s.angle+=ce(D(c.left,c.right))),o.random&&typeof o.speed=="number"&&(s.length*=A()),s},this._checkOverlap=(n,s=eo)=>{const o=this.options.collisions,r=this.getRadius();if(!o.enable)return!1;const a=o.overlap;if(a.enable)return!1;const c=a.retries;if(c>=nu&&s>c)throw new Error(`${ge} particle is overlapping and can't be placed`);return!!this.container.particles.find(l=>le(n,l.position)<r+l.getRadius())},this._getRollColor=n=>{if(!n||!this.roll||!this.backColor&&!this.roll.alter)return n;const s=this.roll.horizontal&&this.roll.vertical?Y*co:co,o=this.roll.horizontal?Math.PI*q:Li;return Math.floor(((this.roll.angle??Li)+o)/(Math.PI/s))%Y?this.backColor?this.backColor:this.roll.alter?Yu(n,this.roll.alter.type,this.roll.alter.value):n:n},this._initPosition=n=>{const s=this.container,o=S(this.options.zIndex.value);this.position=this._calcPosition(s,n,ye(o,su,s.zLayers)),this.initialPosition=this.position.copy();const r=s.canvas.size;switch(this.moveCenter={...Ra(this.options.move.center,r),radius:this.options.move.center.radius??ou,mode:this.options.move.center.mode??zt.percent},this.direction=wu(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case H.inside:this.outType=Se.inside;break;case H.outside:this.outType=Se.outside;break}this.offset=N.origin},this._engine=e}destroy(e){var o,r,a;
1if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const i=this.container,n=this.pathGenerator,s=i.shapeDrawers.get(this.shape);(o=s==null?void 0:s.particleDestroy)==null||o.call(s,this);for(const c of i.plugins.values())(r=c.particleDestroyed)==null||r.call(c,this,e);for(const c of i.particles.updaters)(a=c.particleDestroyed)==null||a.call(c,this,e);n==null||n.reset(this),this._engine.dispatchEvent(ie.particleDestroyed,{container:this.container,data:{particle:this}})}draw(e){const i=this.container,n=i.canvas;for(const s of i.plugins.values())n.drawParticlePlugin(s,this,e);n.drawParticle(this,e)}getFillColor(){return this._getRollColor(this.bubble.color??vo(this.color))}getMass(){return this.getRadius()**Ve*Math.PI*q}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){return this.bubble.radius??this.size.value}getStrokeColor(){return this._getRollColor(this.bubble.color??vo(this.strokeColor))}init(e,i,n,s){var R,T,V,E,re,Ee;const o=this.container,r=this._engine;this.id=e,this.group=s,this.effectClose=!0,this.effectFill=!0,this.shapeClose=!0,this.shapeFill=!0,this.pathRotation=!1,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.isRotating=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType=Se.normal,this.ignoresResizeRatio=!0;const a=o.retina.pixelRatio,c=o.actualOptions,l=Ua(this._engine,o,c.particles),{reduceDuplicates:u}=l,h=l.effect.type,f=l.shape.type;this.effect=me(h,this.id,u),this.shape=me(f,this.id,u);const d=l.effect,p=l.shape;if(n){if((R=n.effect)!=null&&R.type){const L=n.effect.type,Ce=me(L,this.id,u);Ce&&(this.effect=Ce,d.load(n.effect))}if((T=n.shape)!=null&&T.type){const L=n.shape.type,Ce=me(L,this.id,u);Ce&&(this.shape=Ce,p.load(n.shape))}}if(this.effect===Lt){const L=[...this.container.effectDrawers.keys()];this.effect=L[Math.floor(A()*L.length)]}if(this.shape===Lt){const L=[...this.container.shapeDrawers.keys()];this.shape=L[Math.floor(A()*L.length)]}this.effectData=qh(this.effect,d,this.id,u),this.shapeData=Nh(this.shape,p,this.id,u),l.load(n);const m=this.effectData;m&&l.load(m.particles);const g=this.shapeData;g&&l.load(g.particles);const y=new Ia(r,o);y.load(o.actualOptions.interactivity),y.load(l.interactivity),this.interactivity=y,this.effectFill=(m==null?void 0:m.fill)??l.effect.fill,this.effectClose=(m==null?void 0:m.close)??l.effect.close,this.shapeFill=(g==null?void 0:g.fill)??l.shape.fill,this.shapeClose=(g==null?void 0:g.close)??l.shape.close,this.options=l;const v=this.options.move.path;this.pathDelay=S(v.delay.value)*X,v.generator&&(this.pathGenerator=this._engine.getPathGenerator(v.generator),this.pathGenerator&&o.addPath(v.generator,this.pathGenerator)&&this.pathGenerator.init(o)),o.retina.initParticle(this),this.size=Da(this.options.size,a),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(i),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=ba-S(this.options.move.decay);const b=o.particles;b.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/o.zLayers,this.sides=24;let x=o.effectDrawers.get(this.effect);x||(x=this._engine.getEffectDrawer(this.effect),x&&o.effectDrawers.set(this.effect,x)),x!=null&&x.loadEffect&&x.loadEffect(this);let w=o.shapeDrawers.get(this.shape);w||(w=this._engine.getShapeDrawer(this.shape),w&&o.shapeDrawers.set(this.shape,w)),w!=null&&w.loadShape&&w.loadShape(this);const k=w==null?void 0:w.getSidesCount;k&&(this.sides=k(this)),this.spawning=!1,this.shadowColor=Pe(this._engine,this.options.shadow.color);for(const L of b.updaters)L.init(this);for(const L of b.movers)(V=L.init)==null||V.call(L,this);(E=x==null?void 0:x.particleInit)==null||E.call(x,o,this),(re=w==null?void 0:w.particleInit)==null||re.call(w,o,this);for(const L of o.plugins.values())(Ee=L.particleCreated)==null||Ee.call(L,this)}isInsideCanvas(){const e=this.getRadius(),i=this.container.canvas.size,n=this.position;return n.x>=-e&&n.y>=-e&&n.y<=i.height+e&&n.x<=i.width+e}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){var e;
vendor: 5,167 bytes, line 1
1for(const i of this.container.particles.updaters)(e=i.reset)==null||e.call(i,this)}}class Hh{constructor(e,i){this.position=e,this.particle=i}}var Et;(function(t){t.circle="circle",t.rectangle="rectangle"})(Et||(Et={}));class $a{constructor(e,i,n){this.position={x:e,y:i},this.type=n}}class Q extends $a{constructor(e,i,n){super(e,i,Et.circle),this.radius=n}contains(e){return le(e,this.position)<=this.radius}intersects(e){const i=this.position,n=e.position,s={x:Math.abs(n.x-i.x),y:Math.abs(n.y-i.y)},o=this.radius;if(e instanceof Q||e.type===Et.circle){const r=e,a=o+r.radius,c=Math.sqrt(s.x**Ve+s.y**Ve);return a>c}else if(e instanceof Te||e.type===Et.rectangle){const r=e,{width:a,height:c}=r.size;return Math.pow(s.x-a,Ve)+Math.pow(s.y-c,Ve)<=o**Ve||s.x<=o+a&&s.y<=o+c||s.x<=a||s.y<=c}return!1}}class Te extends $a{constructor(e,i,n,s){super(e,i,Et.rectangle),this.size={height:s,width:n}}contains(e){const i=this.size.width,n=this.size.height,s=this.position;return e.x>=s.x&&e.x<=s.x+i&&e.y>=s.y&&e.y<=s.y+n}intersects(e){if(e instanceof Q)return e.intersects(this);const i=this.size.width,n=this.size.height,s=this.position,o=e.position,r=e instanceof Te?e.size:{width:0,height:0},a=r.width,c=r.height;return o.x<s.x+i&&o.x+a>s.x&&o.y<s.y+n&&o.y+c>s.y}}class Ii{constructor(e,i){this.rectangle=e,this.capacity=i,this._subdivide=()=>{const{x:n,y:s}=this.rectangle.position,{width:o,height:r}=this.rectangle.size,{capacity:a}=this;for(let c=0;c<Ul;c++){const l=c%Y;this._subs.push(new Ii(new Te(n+o*q*l,s+r*q*(Math.round(c*q)-l),o*q,r*q),a))}this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(e){return this.rectangle.contains(e.position)?this._points.length<this.capacity?(this._points.push(e),!0):(this._divided||this._subdivide(),this._subs.some(i=>i.insert(e))):!1}query(e,i){const n=[];if(!e.intersects(this.rectangle))return[];for(const s of this._points)!e.contains(s.position)&&le(e.position,s.position)>s.particle.getRadius()&&(!i||i(s.particle))||n.push(s.particle);if(this._divided)for(const s of this._subs)n.push(...s.query(e,i));return n}queryCircle(e,i,n){return this.query(new Q(e.x,e.y,i),n)}queryRectangle(e,i,n){return this.query(new Te(e.x,e.y,i.width,i.height),n)}}const To=t=>{const{height:e,width:i}=t;return new Te(lo*i,lo*e,uo*i,uo*e)};class Gh{constructor(e,i){this._addToPool=(...s)=>{this._pool.push(...s)},this._applyDensity=(s,o,r,a)=>{var p,m,g;const c=s.number;if(!((p=s.number.density)!=null&&p.enable)){r===void 0?this._limit=c.limit.value:(((m=a==null?void 0:a.number.limit)==null?void 0:m.value)??c.limit.value)&&this._groupLimits.set(r,((g=a==null?void 0:a.number.limit)==null?void 0:g.value)??c.limit.value);return}const l=this._initDensityFactor(c.density),u=c.value,h=c.limit.value>ho?c.limit.value:u,f=Math.min(u,h)*l+o,d=Math.min(this.count,this.filter(y=>y.group===r).length);r===void 0?this._limit=c.limit.value*l:this._groupLimits.set(r,c.limit.value*l),d<f?this.push(Math.abs(f-d),void 0,s,r):d>f&&this.removeQuantity(d-f,r)},this._initDensityFactor=s=>{const o=this._container;if(!o.canvas.element||!s.enable)return cu;const r=o.canvas.element,a=o.retina.pixelRatio;return r.width*r.height/(s.height*s.width*a**Ve)},this._pushParticle=(s,o,r,a)=>{try{let c=this._pool.pop();c||(c=new Wh(this._engine,this._container)),c.init(this._nextId,s,o,r);let l=!0;return a&&(l=a(c)),l?(this._array.push(c),this._zArray.push(c),this._nextId++,this._engine.dispatchEvent(ie.particleAdded,{container:this._container,data:{particle:c}}),c):void 0}catch(c){pt().warning(`${ge} adding particle: ${c}`)}},this._removeParticle=(s,o,r)=>{const a=this._array[s];if(!a||a.group!==o)return!1;const c=this._zArray.indexOf(a);return this._array.splice(s,zi),this._zArray.splice(c,zi),a.destroy(r),this._engine.dispatchEvent(ie.particleRemoved,{container:this._container,data:{particle:a}}),this._addToPool(a),!0},this._engine=e,this._container=i,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._interactionManager=new $h(e,i),this._pluginsInitialized=!1;const n=i.canvas.size;this.quadTree=new Ii(To(n),to),this.movers=[],this.updaters=[]}get count(){return this._array.length}addManualParticles(){const e=this._container;e.actualOptions.manualParticles.forEach(n=>this.addParticle(n.position?Ra(n.position,e.canvas.size):void 0,n.options))}addParticle(e,i,n,s){const o=this._container.actualOptions.particles.number.limit.mode,r=n===void 0?this._limit:this._groupLimits.get(n)??this._limit,a=this.count;if(r>ho)switch(o){case si.delete:{const c=a+ru-r;c>au&&this.removeQuantity(c);break}case si.wait:if(a>=r)return;break}return this._pushParticle(e,i,n,s)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(e){const i=this._container,n=i.canvas;n.clear(),this.update(e);for(const s of i.plugins.values())n.drawPlugin(s,e);for(const s of this._zArray)s.draw(e)}filter(e){return this._array.filter(e)}find(e){return this._array.find(e)}get(e){return this._array[e]}handleClickMode(e){this._interactionManager.handleClickMode(e)}
1async init(){var s,o;const e=this._container,i=e.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let n=!1;for(const r of e.plugins.values())if(n=((s=r.particlesInitialization)==null?void 0:s.call(r))??n,n)break;if(this.addManualParticles(),!n){const r=i.particles,a=r.groups;for(const c in a){const l=a[c];for(let u=this.count,h=0;h<((o=l.number)==null?void 0:o.value)&&u<r.number.value;u++,h++)this.addParticle(void 0,l,c)}for(let c=this.count;c<r.number.value;c++)this.addParticle()}}async initPlugins(){if(this._pluginsInitialized)return;const e=this._container;this.movers=await this._engine.getMovers(e,!0),this.updaters=await this._engine.getUpdaters(e,!0),await this._interactionManager.init();for(const i of e.pathGenerators.values())i.init(e)}push(e,i,n,s){for(let o=0;o<e;o++)this.addParticle(i==null?void 0:i.position,n,s)}async redraw(){this.clear(),await this.init(),this.draw({value:0,factor:0})}remove(e,i,n){this.removeAt(this._array.indexOf(e),void 0,i,n)}removeAt(e,i=jl,n,s){if(e<Fn||e>this.count)return;let o=0;for(let r=e;o<i&&r<this.count;
vendor: 5,050 bytes, line 1
1r++)this._removeParticle(r,n,s)&&(r--,o++)}removeQuantity(e,i){this.removeAt(Fn,e,i)}setDensity(){const e=this._container.actualOptions,i=e.particles.groups,n=e.manualParticles.length;for(const s in i)this._applyDensity(i[s],n,s);this._applyDensity(e.particles,n)}setLastZIndex(e){this._lastZIndex=e,this._needsSort=this._needsSort||this._lastZIndex<e}setResizeFactor(e){this._resizeFactor=e}update(e){var o,r;const i=this._container,n=new Set;this.quadTree=new Ii(To(i.canvas.size),to);for(const a of i.pathGenerators.values())a.update();for(const a of i.plugins.values())(o=a.update)==null||o.call(a,e);const s=this._resizeFactor;for(const a of this._array){s&&!a.ignoresResizeRatio&&(a.position.x*=s.width,a.position.y*=s.height,a.initialPosition.x*=s.width,a.initialPosition.y*=s.height),a.ignoresResizeRatio=!1,this._interactionManager.reset(a);for(const c of this._container.plugins.values()){if(a.destroyed)break;(r=c.particleUpdate)==null||r.call(c,a,e)}for(const c of this.movers)c.isEnabled(a)&&c.move(a,e);if(a.destroyed){n.add(a);continue}this.quadTree.insert(new Hh(a.getPosition(),a))}if(n.size){const a=c=>!n.has(c);this._array=this.filter(a),this._zArray=this._zArray.filter(a);for(const c of n)this._engine.dispatchEvent(ie.particleRemoved,{container:this._container,data:{particle:c}});this._addToPool(...n)}this._interactionManager.externalInteract(e);for(const a of this._array){for(const c of this.updaters)c.update(a,e);!a.destroyed&&!a.spawning&&this._interactionManager.particlesInteract(a,e)}if(delete this._resizeFactor,this._needsSort){const a=this._zArray;a.sort((c,l)=>l.position.z-c.position.z||c.id-l.id),this._lastZIndex=a[a.length-xa].position.z,this._needsSort=!1}}}class Kh{constructor(e){this.container=e,this.pixelRatio=io,this.reduceFactor=no}init(){const e=this.container,i=e.actualOptions;this.pixelRatio=!i.detectRetina||mt()?io:devicePixelRatio,this.reduceFactor=no;const n=this.pixelRatio,s=e.canvas;if(s.element){const a=s.element;s.size.width=a.offsetWidth*n,s.size.height=a.offsetHeight*n}const o=i.particles,r=o.move;this.maxSpeed=S(r.gravity.maxSpeed)*n,this.sizeAnimationSpeed=S(o.size.animation.speed)*n}initParticle(e){const i=e.options,n=this.pixelRatio,s=i.move,o=s.distance,r=e.retina;r.moveDrift=S(s.drift)*n,r.moveSpeed=S(s.speed)*n,r.sizeAnimationSpeed=S(i.size.animation.speed)*n;const a=r.maxDistance;a.horizontal=o.horizontal!==void 0?o.horizontal*n:void 0,a.vertical=o.vertical!==void 0?o.vertical*n:void 0,r.maxSpeed=S(s.gravity.maxSpeed)*n}}function I(t){return t&&!t.destroyed}function Xh(t,e=nn,i=!1){return{value:t,factor:i?nn/e:nn*t/X}}function vt(t,e,...i){const n=new Uh(t,e);return ja(n,...i),n}class Yh{constructor(e,i,n){this._intersectionManager=s=>{if(!(!I(this)||!this.actualOptions.pauseOnOutsideViewport))for(const o of s)o.target===this.interactivity.element&&(o.isIntersecting?this.play():this.pause())},this._nextFrame=s=>{try{if(!this._smooth&&this._lastFrameTime!==void 0&&s<this._lastFrameTime+X/this.fpsLimit){this.draw(!1);return}this._lastFrameTime??(this._lastFrameTime=s);const o=Xh(s-this._lastFrameTime,this.fpsLimit,this._smooth);if(this.addLifeTime(o.value),this._lastFrameTime=s,o.value>X){this.draw(!1);return}if(this.particles.draw(o),!this.alive()){this.destroy();return}this.animationStatus&&this.draw(!1)}catch(o){pt().error(`${ge} in animation loop`,o)}},this._engine=e,this.id=Symbol(i),this.fpsLimit=120,this._smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this._lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._clickHandlers=new Map,this._sourceOptions=n,this._initialSourceOptions=n,this.retina=new Kh(this),this.canvas=new Qu(this,this._engine),this.particles=new Gh(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this._options=vt(this._engine,this),this.actualOptions=vt(this._engine,this),this._eventListeners=new Ju(this),this._intersectionObserver=Mu(s=>this._intersectionManager(s)),this._engine.dispatchEvent(ie.containerBuilt,{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&I(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(e){if(!I(this))return;const i=this.interactivity.element;if(!i)return;const n=(h,f,d)=>{if(!I(this))return;const p=this.retina.pixelRatio,m={x:f.x*p,y:f.y*p},g=this.particles.quadTree.queryCircle(m,d*p);e(h,g)},s=h=>{if(!I(this))return;const f=h,d={x:f.offsetX||f.clientX,y:f.offsetY||f.clientY};n(h,d,Kl)},o=()=>{I(this)&&(l=!0,u=!1)},r=()=>{I(this)&&(u=!0)},a=h=>{if(I(this)){if(l&&!u){const f=h;let d=f.touches[f.touches.length-ao];if(!d&&(d=f.changedTouches[f.changedTouches.length-ao],!d))return;const p=this.canvas.element,m=p?p.getBoundingClientRect():void 0,g={x:d.clientX-(m?m.left:Vi),y:d.clientY-(m?m.top:Vi)};n(h,g,Math.max(d.radiusX,d.radiusY))}l=!1,u=!1}},c=()=>{I(this)&&(l=!1,u=!1)};let l=!1,u=!1;
1this._clickHandlers.set("click",s),this._clickHandlers.set("touchstart",o),this._clickHandlers.set("touchmove",r),this._clickHandlers.set("touchend",a),this._clickHandlers.set("touchcancel",c);for(const[h,f]of this._clickHandlers)i.addEventListener(h,f)}addLifeTime(e){this._lifeTime+=e}addPath(e,i,n=!1){return!I(this)||!n&&this.pathGenerators.has(e)?!1:(this.pathGenerators.set(e,i),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}clearClickHandlers(){var e;if(I(this)){for(const[i,n]of this._clickHandlers)(e=this.interactivity.element)==null||e.removeEventListener(i,n);this._clickHandlers.clear()}}destroy(e=!0){var i,n;if(I(this)){this.stop(),this.clearClickHandlers(),this.particles.destroy(),this.canvas.destroy();for(const s of this.effectDrawers.values())(i=s.destroy)==null||i.call(s,this);for(const s of this.shapeDrawers.values())(n=s.destroy)==null||n.call(s,this);for(const s of this.effectDrawers.keys())this.effectDrawers.delete(s);for(const s of this.shapeDrawers.keys())this.shapeDrawers.delete(s);if(this._engine.clearPlugins(this),this.destroyed=!0,e){const s=this._engine.items,o=s.findIndex(r=>r===this);o>=Xl&&s.splice(o,va)}this._engine.dispatchEvent(ie.containerDestroyed,{container:this})}}draw(e){if(!I(this))return;let i=e;const n=s=>{i&&(this._lastFrameTime=void 0,i=!1),this._nextFrame(s)};this._drawAnimationFrame=bu(s=>n(s))}async export(e,i={}){for(const n of this.plugins.values()){if(!n.export)continue;const s=await n.export(e,i);if(s.supported)return s.blob}pt().error(`${ge} - Export plugin with type ${e} not found`)}handleClickMode(e){var i;if(I(this)){this.particles.handleClickMode(e);for(const n of this.plugins.values())(i=n.handleClickMode)==null||i.call(n,e)}}
1async init(){var l,u,h,f;if(!I(this))return;const e=this._engine.getSupportedEffects();for(const d of e){const p=this._engine.getEffectDrawer(d);p&&this.effectDrawers.set(d,p)}const i=this._engine.getSupportedShapes();for(const d of i){const p=this._engine.getShapeDrawer(d);p&&this.shapeDrawers.set(d,p)}await this.particles.initPlugins(),this._options=vt(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=vt(this._engine,this,this._options);const n=await this._engine.getAvailablePlugins(this);for(const[d,p]of n)this.plugins.set(d,p);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{zLayers:s,duration:o,delay:r,fpsLimit:a,smooth:c}=this.actualOptions;this.zLayers=s,this._duration=S(o)*X,this._delay=S(r)*X,this._lifeTime=0,this.fpsLimit=a>Zl?a:Yl,this._smooth=c;for(const d of this.effectDrawers.values())await((l=d.init)==null?void 0:l.call(d,this));for(const d of this.shapeDrawers.values())await((u=d.init)==null?void 0:u.call(d,this));for(const d of this.plugins.values())await((h=d.init)==null?void 0:h.call(d));this._engine.dispatchEvent(ie.containerInit,{container:this}),await this.particles.init(),this.particles.setDensity();for(const d of this.plugins.values())(f=d.particlesSetup)==null||f.call(d);this._engine.dispatchEvent(ie.particlesSetup,{container:this})}async loadTheme(e){I(this)&&(this._currentTheme=e,await this.refresh())}pause(){var e;if(I(this)&&(this._drawAnimationFrame!==void 0&&(xu(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const i of this.plugins.values())(e=i.pause)==null||e.call(i);this.pageHidden||(this._paused=!0),this._engine.dispatchEvent(ie.containerPaused,{container:this})}}play(e){if(!I(this))return;const i=this._paused||e;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),i)for(const n of this.plugins.values())n.play&&n.play();this._engine.dispatchEvent(ie.containerPlay,{container:this}),this.draw(i??!1)}async refresh(){if(I(this))return this.stop(),this.start()}async reset(e){if(I(this))return this._initialSourceOptions=e,this._sourceOptions=e,this._options=vt(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=vt(this._engine,this,this._options),this.refresh()}async start(){!I(this)||this.started||(await this.init(),this.started=!0,await new Promise(e=>{const i=async()=>{var n;this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(const s of this.plugins.values())await((n=s.start)==null?void 0:n.call(s));this._engine.dispatchEvent(ie.containerStarted,{container:this}),this.play(),e()};this._delayTimeout=setTimeout(()=>void i(),this._delay)}))}stop(){var e;if(!(!I(this)||!this.started)){this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(this.interactivity.element);
vendor: 4,328 bytes, line 1
1for(const i of this.plugins.values())(e=i.stop)==null||e.call(i);for(const i of this.plugins.keys())this.plugins.delete(i);this._sourceOptions=this._options,this._engine.dispatchEvent(ie.containerStopped,{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];const e=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth===e?!1:(this._responsiveMaxWidth=e,!0)}}class Zh{constructor(){this._listeners=new Map}addEventListener(e,i){this.removeEventListener(e,i);let n=this._listeners.get(e);n||(n=[],this._listeners.set(e,n)),n.push(i)}dispatchEvent(e,i){const n=this._listeners.get(e);n==null||n.forEach(s=>s(i))}hasEventListener(e){return!!this._listeners.get(e)}removeAllEventListeners(e){e?this._listeners.delete(e):this._listeners=new Map}removeEventListener(e,i){const n=this._listeners.get(e);if(!n)return;const s=n.length,o=n.indexOf(i);o<Fn||(s===zi?this._listeners.delete(e):n.splice(o,zi))}}async function fn(t,e,i,n=!1){let s=e.get(t);return(!s||n)&&(s=await Promise.all([...i.values()].map(o=>o(t))),e.set(t,s)),s}async function Qh(t){const e=me(t.url,t.index);if(!e)return t.fallback;const i=await fetch(e);return i.ok?await i.json():(pt().error(`${ge} ${i.status} while retrieving config file`),t.fallback)}const Jh=t=>{let e;if(t instanceof HTMLCanvasElement||t.tagName.toLowerCase()===sn)e=t,e.dataset[ot]||(e.dataset[ot]=Js);else{const n=t.getElementsByTagName(sn);n.length?(e=n[Ql],e.dataset[ot]=Js):(e=document.createElement(sn),e.dataset[ot]=ga,t.appendChild(e))}const i="100%";return e.style.width||(e.style.width=i),e.style.height||(e.style.height=i),e},ef=(t,e)=>{let i=e??document.getElementById(t);return i||(i=document.createElement("div"),i.id=t,i.dataset[ot]=ga,document.body.append(i),i)};class tf{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new Zh,this._initialized=!1,this.plugins=[],this.colorManagers=new Map,this.easingFunctions=new Map,this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const e={};for(const[i,n]of this._configs)e[i]=n;return e}get items(){return this._domArray}get version(){return"3.9.1"}async addColorManager(e,i=!0){this.colorManagers.set(e.key,e),await this.refresh(i)}addConfig(e){const i=e.key??e.name??"default";this._configs.set(i,e),this._eventDispatcher.dispatchEvent(ie.configAdded,{data:{name:i,config:e}})}async addEasing(e,i,n=!0){this.getEasing(e)||(this.easingFunctions.set(e,i),await this.refresh(n))}async addEffect(e,i,n=!0){he(e,s=>{this.getEffectDrawer(s)||this.effectDrawers.set(s,i)}),await this.refresh(n)}addEventListener(e,i){this._eventDispatcher.addEventListener(e,i)}async addInteractor(e,i,n=!0){this._initializers.interactors.set(e,i),await this.refresh(n)}async addMover(e,i,n=!0){this._initializers.movers.set(e,i),await this.refresh(n)}async addParticleUpdater(e,i,n=!0){this._initializers.updaters.set(e,i),await this.refresh(n)}async addPathGenerator(e,i,n=!0){this.getPathGenerator(e)||this.pathGenerators.set(e,i),await this.refresh(n)}async addPlugin(e,i=!0){this.getPlugin(e.id)||this.plugins.push(e),await this.refresh(i)}async addPreset(e,i,n=!1,s=!0){(n||!this.getPreset(e))&&this.presets.set(e,i),await this.refresh(s)}async addShape(e,i=!0){for(const n of e.validTypes)this.getShapeDrawer(n)||this.shapeDrawers.set(n,e);await this.refresh(i)}checkVersion(e){if(this.version!==e)throw new Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${e}`)}clearPlugins(e){this.updaters.delete(e),this.movers.delete(e),this.interactors.delete(e)}dispatchEvent(e,i){this._eventDispatcher.dispatchEvent(e,i)}dom(){return this.items}domItem(e){return this.item(e)}async getAvailablePlugins(e){const i=new Map;for(const n of this.plugins)n.needsPlugin(e.actualOptions)&&i.set(n.id,await n.getPlugin(e));return i}getEasing(e){return this.easingFunctions.get(e)??(i=>i)}getEffectDrawer(e){return this.effectDrawers.get(e)}async getInteractors(e,i=!1){return fn(e,this.interactors,this._initializer
1s.interactors,i)}async getMovers(e,i=!1){return fn(e,this.movers,this._initializers.movers,i)}getPathGenerator(e){return this.pathGenerators.get(e)}getPlugin(e){return this.plugins.find(i=>i.id===e)}getPreset(e){return this.presets.get(e)}getShapeDrawer(e){return this.shapeDrawers.get(e)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(e,i=!1){return fn(e,this.updaters,this._initializers.updaters,i)}init(){this._initialized||(this._initialized=!0)}item(e){const{items:i}=this,n=i[e];if(!n||n.destroyed){i.splice(e,va);return}return n}async load(e){var f;const i=e.id??((f=e.element)==null?void 0:f.id)??`tsparticles${Math.floor(A()*Jl)}`,{index:n,url:s}=e,o=s?await Qh({fallback:e.options,url:s,index:n}):e.options,r=me(o,n),{items:a}=this,c=a.findIndex(d=>d.id.description===i),l=new Yh(this,i,r);if(c>=eu){const d=this.item(c),p=d?tu:Li;d&&!d.destroyed&&d.destroy(!1),a.splice(c,p,l)}else a.push(l);const u=ef(i,e.element),h=Jh(u);return l.canvas.loadCanvas(h),await l.start(),l}loadOptions(e,i){this.plugins.forEach(n=>{var s;return(s=n.loadOptions)==null?void 0:s.call(n,e,i)})}loadParticlesOptions(e,i,...n){const s=this.updaters.get(e);s&&s.forEach(o=>{var r;return(r=o.loadOptions)==null?void 0:r.call(o,i,...n)})}async refresh(e=!0){e&&await Promise.all(this.items.map(i=>i.refresh()))}removeEventListener(e,i){this._eventDispatcher.removeEventListener(e,i)}setOnClickHandler(e){const{items:i}=this;if(!i.length)throw new Error(`${ge} can only set click handlers after calling tsParticles.load()`);i.forEach(n=>n.addClickHandler(e))}}function nf(){const t=new tf;return t.init(),t}class Ae{constructor(e){this.type=Bt.external,this.container=e}}class gs{constructor(e){this.type=Bt.particles,this.container=e}}var xe;(function(t){t.clockwise="clockwise",t.counterClockwise="counter-clockwise",t.random="random"})(xe||(xe={}));var Co;(function(t){t.linear="linear",t.radial="radial",t.random="random"})(Co||(Co={}));var ut;(function(t){t.easeInBack="ease-in-back",t.easeInCirc="ease-in-circ",t.easeInCubic="ease-in-cubic",t.easeInLinear="ease-in-linear",t.easeInQuad="ease-in-quad",t.easeInQuart="ease-in-quart",t.easeInQuint="ease-in-quint",t.easeInExpo="ease-in-expo",t.easeInSine="ease-in-sine",t.easeOutBack="ease-out-back",t.easeOutCirc="ease-out-circ",t.easeOutCubic="ease-out-cubic",t.easeOutLinear="ease-out-linear",t.easeOutQuad="ease-out-quad",t.easeOutQuart="ease-out-quart",t.easeOutQuint="ease-out-quint",t.easeOutExpo="ease-out-expo",t.easeOutSine="ease-out-sine",t.easeInOutBack="ease-in-out-back",t.easeInOutCirc="ease-in-out-circ",t.easeInOutCubic="ease-in-out-cubic",t.easeInOutLinear="ease-in-out-linear",t.easeInOutQuad="ease-in-out-quad",t.easeInOutQuart="ease-in-out-quart",t.easeInOutQuint="ease-in-out-quint",t.easeInOutExpo="ease-in-out-expo",t.easeInOutSine="ease-in-out-sine"})(ut||(ut={}));const ys=nf();mt()||(window.tsParticles=ys);const sf=t=>{const e=t.id??"tsparticles";return _.useEffect(()=>{let i;return ys.load({id:e,url:t.url,options:t.options}).then(n=>{var s;i=n,(s=t.particlesLoaded)==null||s.call(t,n)}),()=>{i==null||i.destroy()}},[e,t,t.url,t.options]),Vt.jsx("div",{id:e,className:t.className})};async function of(t){await t(ys)}const qn=.5,rf=2,qe=0,we=1,ko=60,_o=0,af=.01,cf=Math.PI*rf;function lf(t){const e=t.initialPosition,{dx:i,dy:n}=ne(e,t.position),s=Math.abs(i),o=Math.abs(n),{maxDistance:r}=t.retina,a=r.horizontal,c=r.vertical;if(!a&&!c)return;const l=(a&&s>=a)??!1,u=(c&&o>=c)??!1;if((l||u)&&!t.misplaced)t.misplaced=!!a&&s>a||!!c&&o>c,a&&(t.velocity.x=t.velocity.y*qn-t.velocity.x),c&&(t.velocity.y=t.velocity.x*qn-t.velocity.y);else if((!a||s<a)&&(!c||o<c)&&t.misplaced)t.misplaced=!1;else if(t.misplaced){const h=t.position,f=t.velocity;a&&(h.x<e.x&&f.x<qe||h.x>e.x&&f.x>qe)&&(f.x*=-A()),c&&(h.y<e.y&&f.y<qe||h.y>e.y&&f.y>qe)&&(f.y*=-A())}}function uf(t,e,i,n,s,o,r){ff(t,r);const a=t.gravity,c=a!=null&&a.enable&&a.inverse?-we:we;s&&i&&(t.velocity.x+=s*r.factor/(ko*i)),a!=null&&a.enable&&i&&(t.velocity.y+=c*(a.acceleration*r.factor)/(ko*i));const l=t.moveDecay;t.velocity.multTo(l);const u=t.velocity.mult(i);a!=null&&a.enable&&n>qe&&(!a.inverse&&u.y>=qe&&u.y>
vendor: 58,699 bytes, line 1
1=n||a.inverse&&u.y<=qe&&u.y<=-n)&&(u.y=c*n,i&&(t.velocity.y=u.y/i));const h=t.options.zIndex,f=(we-t.zIndexFactor)**h.velocityRate;u.multTo(f),u.multTo(o);const{position:d}=t;d.addTo(u),e.vibrate&&(d.x+=Math.sin(d.x*Math.cos(d.y))*o,d.y+=Math.cos(d.y*Math.sin(d.x))*o)}function hf(t,e,i){const n=t.container;if(!t.spin)return;const s=t.spin.direction===xe.clockwise,o={x:s?Math.cos:Math.sin,y:s?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*o.x(t.spin.angle)*i,t.position.y=t.spin.center.y+t.spin.radius*o.y(t.spin.angle)*i,t.spin.radius+=t.spin.acceleration*i;const r=Math.max(n.canvas.size.width,n.canvas.size.height),a=r*qn;t.spin.radius>a?(t.spin.radius=a,t.spin.acceleration*=-we):t.spin.radius<_o&&(t.spin.radius=_o,t.spin.acceleration*=-we),t.spin.angle+=e*af*(we-t.spin.radius/r)}function ff(t,e){var r;const i=t.options,n=i.move.path;if(!n.enable)return;if(t.lastPathTime<=t.pathDelay){t.lastPathTime+=e.value;return}const o=(r=t.pathGenerator)==null?void 0:r.generate(t,e);o&&t.velocity.addTo(o),n.clamp&&(t.velocity.x=ye(t.velocity.x,-we,we),t.velocity.y=ye(t.velocity.y,-we,we)),t.lastPathTime-=t.pathDelay}function df(t){return t.slow.inRange?t.slow.factor:we}function pf(t){const e=t.container,i=t.options,n=i.move.spin;if(!n.enable)return;const s=n.position??{x:50,y:50},o=.01,r={x:s.x*o*e.canvas.size.width,y:s.y*o*e.canvas.size.height},a=t.getPosition(),c=le(a,r),l=S(n.acceleration);t.retina.spinAcceleration=l*e.retina.pixelRatio,t.spin={center:r,direction:t.velocity.x>=qe?xe.clockwise:xe.counterClockwise,angle:A()*cf,radius:c,acceleration:t.retina.spinAcceleration}}const mf=2,gf=1,yf=1;class vf{init(e){const i=e.options,n=i.move.gravity;e.gravity={enable:n.enable,acceleration:S(n.acceleration),inverse:n.inverse},pf(e)}isEnabled(e){return!e.destroyed&&e.options.move.enable}move(e,i){var g,y;const n=e.options,s=n.move;if(!s.enable)return;const o=e.container,r=o.retina.pixelRatio;(g=e.retina).moveSpeed??(g.moveSpeed=S(s.speed)*r),(y=e.retina).moveDrift??(y.moveDrift=S(e.options.move.drift)*r);const a=df(e),c=o.retina.reduceFactor,l=e.retina.moveSpeed,u=e.retina.moveDrift,h=_e(n.size.value)*r,f=s.size?e.getRadius()/h:gf,d=i.factor||yf,p=l*f*a*d/mf,m=e.retina.maxSpeed??o.retina.maxSpeed;s.spin.enable?hf(e,p,c):uf(e,s,p,m,u,c,i),lf(e)}}async function bf(t,e=!0){t.checkVersion("3.9.1"),await t.addMover("base",()=>Promise.resolve(new vf),e)}const xf=2,wf=Math.PI*xf,Pf=0,Mo={x:0,y:0};function Sf(t){const{context:e,particle:i,radius:n}=t;i.circleRange||(i.circleRange={min:Pf,max:wf});const s=i.circleRange;e.arc(Mo.x,Mo.y,n,s.min,s.max,!1)}const Tf=12,Cf=360,Do=0;class kf{constructor(){this.validTypes=["circle"]}draw(e){Sf(e)}getSidesCount(){return Tf}particleInit(e,i){const n=i.shapeData,s=(n==null?void 0:n.angle)??{max:Cf,min:Do};i.circleRange=wt(s)?{min:Ne(s.min),max:Ne(s.max)}:{min:Do,max:Ne(s)}}}async function _f(t,e=!0){t.checkVersion("3.9.1"),await t.addShape(new kf,e)}class Mf{constructor(e,i){this._container=e,this._engine=i}init(e){const i=ti(this._engine,e.options.color,e.id,e.options.reduceDuplicates);i&&(e.color=La(i,e.options.color.animation,this._container.retina.reduceFactor))}isEnabled(e){const{h:i,s:n,l:s}=e.options.color.animation,{color:o}=e;return!e.destroyed&&!e.spawning&&((o==null?void 0:o.h.value)!==void 0&&i.enable||(o==null?void 0:o.s.value)!==void 0&&n.enable||(o==null?void 0:o.l.value)!==void 0&&s.enable)}update(e,i){za(e.color,i)}}async function Df(t,e=!0){t.checkVersion("3.9.1"),await t.addParticleUpdater("color",i=>Promise.resolve(new Mf(i,t)),e)}var st;(function(t){t[t.r=1]="r",t[t.g=2]="g",t[t.b=3]="b",t[t.a=4]="a"})(st||(st={}));const Rf=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Af=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,gi=16,Ef=1,Of=255;class Vf{constructor(){this.key="hex",this.stringPrefix="#"}handleColor(e){return this._parseString(e.value)}handleRangeColor(e){return this._parseString(e.value)}parseString(e){return this._parseString(e)}_parseString(e){if(typeof e!="string"||!(e!=null&&e.startsWith(this.stringPrefix)))return;const i=e.replace(Rf,(s,o,r,a,c)=>o+o+r+r+a+a+(c!==void 0?c+c:"")),n=Af.exec(i);return n?{a:n[st.a]!==void 0?parseInt(n[st.a],gi)/Of:Ef,b:parseInt(n[st.b],gi),g:parseInt(n[st.g],gi),r:parseInt(n[st.r],gi)}:void 0}}async function Lf(t,e=!0){t.checkVersion("3.9.1"),await t.addColorManager(new Vf,e)}var Pt;(function(t){t[t.h=1]="h",t[t.s=2]="s",t[t.l=3]="l",t[t.a=5]="a"})(Pt||(Pt={}));class zf{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(e){const i=e.value,n=i.hsl??e.value;if(n.h!==void 0&&n.s!==void 0&&n.l!==void 0)return It(n)}handleRangeColor(e){const i=e.value,n=i.hsl??e.value;if(n.h!==void 0&&n.l!==void 0)return It({h:S(n.h),l:S(n.l),s:S(n.s)})}parseString(e){if(!e.startsWith("hsl"))return;const i=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i,n=i.exec(e),s=4,o=1,r=10;return n?Uu({a:n.length>s?Ta(n[Pt.a]):o,h:parseInt(n[Pt.h],r),l:parseInt(n[Pt.l],r),s:parseInt(n[Pt.s],r)}):void 0}}async function If(t,e=!0){t.checkVersion("3.9.1"),await t.addColorManager(new zf,e)}class Ff{constructor(e){this.container=e}init(e){const i=e.options.opacity,n=1;e.opacity=Da(i,n);const s=i.animation;s.enable&&(e.opacity.velocity=S(s.speed)/$e*this.container.retina.reduceFactor,s.sync||(e.opacity.velocity*=A()))}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.opacity&&e.opacity.enable&&((e.opacity.maxLoops??0)<=0||(e.opacity.maxLoops??0)>0&&(e.opacity.loops??0)<(e.opacity.maxLoops??0))}reset(e){e.opacity&&(e.opacity.time=0,e.opacity.loops=0)}update(e,i){!this.isEnabled(e)||!e.opacity||fs(e,e.opacity,!0,e.options.opacity.animation.destroy,i)}}async function Bf(t,e=!0){t.checkVersion("3.9.1"),await t.addParticleUpdater("opacity",i=>Promise.resolve(new Ff(i)),e)}const Fi=0,Ot=0;function jf(t){if(t.outMode!==$.bounce&&t.outMode!==$.split||t.direction!==M.left&&t.direction!==M.right)return;t.bounds.right<Ot&&t.direction===M.left?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&t.direction===M.right&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);const e=t.particle.velocity.x;let i=!1;if(t.direction===M.right&&t.bounds.right>=t.canvasSize.width&&e>Fi||t.direction===M.left&&t.bounds.left<=Ot&&e<Fi){const s=S(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-s,i=!0}if(!i)return;const n=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width&&t.direction===M.right?t.particle.position.x=t.canvasSize.width-n:t.bounds.left<=Ot&&t.direction===M.left&&(t.particle.position.x=n),t.outMode===$.split&&t.particle.destroy()}function Uf(t){if(t.outMode!==$.bounce&&t.outMode!==$.split||t.direction!==M.bottom&&t.direction!==M.top)return;t.bounds.bottom<Ot&&t.direction===M.top?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&t.direction===M.bottom&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);const e=t.particle.velocity.y;let i=!1;if(t.direction===M.bottom&&t.bounds.bottom>=t.canvasSize.height&&e>Fi||t.direction===M.top&&t.bounds.top<=Ot&&e<Fi){const s=S(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-s,i=!0}if(!i)return;const n=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height&&t.direction===M.bottom?t.particle.position.y=t.canvasSize.height-n:t.bounds.top<=Ot&&t.direction===M.top&&(t.particle.position.y=n),t.outMode===$.split&&t.particle.destroy()}class $f{constructor(e){this.container=e,this.modes=[$.bounce,$.split]}update(e,i,n,s){if(!this.modes.includes(s))return;const o=this.container;let r=!1;for(const f of o.plugins.values())if(f.particleBounce!==void 0&&(r=f.particleBounce(e,n,i)),r)break;if(r)return;const a=e.getPosition(),c=e.offset,l=e.getRadius(),u=ui(a,l),h=o.canvas.size;jf({particle:e,outMode:s,direction:i,bounds:u,canvasSize:h,offset:c,size:l}),Uf({particle:e,outMode:s,direction:i,bounds:u,canvasSize:h,offset:c,size:l})}}const yi=0;class qf{constructor(e){this.container=e,this.modes=[$.destroy]}update(e,i,n,s){if(!this.modes.includes(s))return;const o=this.container;switch(e.outType){case Se.normal:case Se.outside:if(ls(e.position,o.canvas.size,N.origin,e.getRadius(),i))return;break;case Se.inside:{const{dx:r,dy:a}=ne(e.position,e.moveCenter),{x:c,y:l}=e.velocity;if(c<yi&&r>e.moveCenter.radius||l<yi&&a>e.moveCenter.radius||c>=yi&&r<-e.moveCenter.radius||l>=yi&&a<-e.moveCenter.radius)return;break}}o.particles.remove(e,e.group,!0)}}const vi=0;class Nf{constructor(e){this.container=e,this.modes=[$.none]}update(e,i,n,s){if(!this.modes.includes(s)||((e.options.move.distance.horizontal&&(i===M.left||i===M.right))??(e.options.move.distance.vertical&&(i===M.top||i===M.bottom))))return;const o=e.options.move.gravity,r=this.container,a=r.canvas.size,c=e.getRadius();if(o.enable){const l=e.position;(!o.inverse&&l.y>a.height+c&&i===M.bottom||o.inverse&&l.y<-c&&i===M.top)&&r.particles.remove(e)}else{if(e.velocity.y>vi&&e.position.y<=a.height+c||e.velocity.y<vi&&e.position.y>=-c||e.velocity.x>vi&&e.position.x<=a.width+c||e.velocity.x<vi&&e.position.x>=-c)return;ls(e.position,r.canvas.size,N.origin,c,i)||r.particles.remove(e)}}}const bi=0,xi=0;class Wf{constructor(e){this.container=e,this.modes=[$.out]}update(e,i,n,s){if(!this.modes.includes(s))return;const o=this.container;switch(e.outType){case Se.inside:{const{x:r,y:a}=e.velocity,c=N.origin;c.length=e.moveCenter.radius,c.angle=e.velocity.angle+Math.PI,c.addTo(N.create(e.moveCenter));const{dx:l,dy:u}=ne(e.position,c);if(r<=bi&&l>=xi||a<=bi&&u>=xi||r>=bi&&l<=xi||a>=bi&&u<=xi)return;e.position.x=Math.floor(ce({min:0,max:o.canvas.size.width})),e.position.y=Math.floor(ce({min:0,max:o.canvas.size.height}));const{dx:h,dy:f}=ne(e.position,e.moveCenter);e.direction=Math.atan2(-f,-h),e.velocity.angle=e.direction;break}default:{if(ls(e.position,o.canvas.size,N.origin,e.getRadius(),i))return;switch(e.outType){case Se.outside:{e.position.x=Math.floor(ce({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.x,e.position.y=Math.floor(ce({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.y;const{dx:r,dy:a}=ne(e.position,e.moveCenter);e.moveCenter.radius&&(e.direction=Math.atan2(a,r),e.velocity.angle=e.direction);break}case Se.normal:{const r=e.options.move.warp,a=o.canvas.size,c={bottom:a.height+e.getRadius()+e.offset.y,left:-e.getRadius()-e.offset.x,right:a.width+e.getRadius()+e.offset.x,top:-e.getRadius()-e.offset.y},l=e.getRadius(),u=ui(e.position,l);i===M.right&&u.left>a.width+e.offset.x?(e.position.x=c.left,e.initialPosition.x=e.position.x,r||(e.position.y=A()*a.height,e.initialPosition.y=e.position.y)):i===M.left&&u.right<-e.offset.x&&(e.position.x=c.right,e.initialPosition.x=e.position.x,r||(e.position.y=A()*a.height,e.initialPosition.y=e.position.y)),i===M.bottom&&u.top>a.height+e.offset.y?(r||(e.position.x=A()*a.width,e.initialPosition.x=e.position.x),e.position.y=c.top,e.initialPosition.y=e.position.y):i===M.top&&u.bottom<-e.offset.y&&(r||(e.position.x=A()*a.width,e.initialPosition.x=e.position.x),e.position.y=c.bottom,e.initialPosition.y=e.position.y);break}}break}}}}const Hf=(t,e)=>t.default===e||t.bottom===e||t.left===e||t.right===e||t.top===e;class Gf{constructor(e){this._addUpdaterIfMissing=(i,n,s)=>{const o=i.options.move.outModes;!this.updaters.has(n)&&Hf(o,n)&&this.updaters.set(n,s(this.container))},this._updateOutMode=(i,n,s,o)=>{for(const r of this.updaters.values())r.update(i,o,n,s)},this.container=e,this.updaters=new Map}init(e){this._addUpdaterIfMissing(e,$.bounce,i=>new $f(i)),this._addUpdaterIfMissing(e,$.out,i=>new Wf(i)),this._addUpdaterIfMissing(e,$.destroy,i=>new qf(i)),this._addUpdaterIfMissing(e,$.none,i=>new Nf(i))}isEnabled(e){return!e.destroyed&&!e.spawning}update(e,i){const n=e.options.move.outModes;this._updateOutMode(e,i,n.bottom??n.default,M.bottom),this._updateOutMode(e,i,n.left??n.default,M.left),this._updateOutMode(e,i,n.right??n.default,M.right),this._updateOutMode(e,i,n.top??n.default,M.top)}}async function Kf(t,e=!0){t.checkVersion("3.9.1"),await t.addParticleUpdater("outModes",i=>Promise.resolve(new Gf(i)),e)}var St;(function(t){t[t.r=1]="r",t[t.g=2]="g",t[t.b=3]="b",t[t.a=5]="a"})(St||(St={}));class Xf{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(e){const i=e.value,n=i.rgb??e.value;if(n.r!==void 0)return n}handleRangeColor(e){const i=e.value,n=i.rgb??e.value;if(n.r!==void 0)return{r:S(n.r),g:S(n.g),b:S(n.b)}}parseString(e){if(!e.startsWith(this.stringPrefix))return;const i=/rgba?\(\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i,n=i.exec(e),s=10;return n?{a:n.length>4?Ta(n[St.a]):1,b:parseInt(n[St.b],s),g:parseInt(n[St.g],s),r:parseInt(n[St.r],s)}:void 0}}async function Yf(t,e=!0){t.checkVersion("3.9.1"),await t.addColorManager(new Xf,e)}const Ze=0;class Zf{init(e){const i=e.container,n=e.options.size,s=n.animation;s.enable&&(e.size.velocity=(e.retina.sizeAnimationSpeed??i.retina.sizeAnimationSpeed)/$e*i.retina.reduceFactor,s.sync||(e.size.velocity*=A()))}isEnabled(e){return!e.destroyed&&!e.spawning&&e.size.enable&&((e.size.maxLoops??Ze)<=Ze||(e.size.maxLoops??Ze)>Ze&&(e.size.loops??Ze)<(e.size.maxLoops??Ze))}reset(e){e.size.loops=Ze}update(e,i){this.isEnabled(e)&&fs(e,e.size,!0,e.options.size.animation.destroy,i)}}async function Qf(t,e=!0){t.checkVersion("3.9.1"),await t.addParticleUpdater("size",()=>Promise.resolve(new Zf),e)}async function Jf(t,e=!0){t.checkVersion("3.9.1"),await Lf(t,!1),await If(t,!1),await Yf(t,!1),await bf(t,!1),await _f(t,!1),await Df(t,!1),await Bf(t,!1),await Kf(t,!1),await Qf(t,!1),await t.refresh(e)}async function ed(t,e=!0){t.checkVersion("3.9.1"),await t.addEasing(ut.easeInQuad,i=>i**2,!1),await t.addEasing(ut.easeOutQuad,i=>1-(1-i)**2,!1),await t.addEasing(ut.easeInOutQuad,i=>i<.5?2*i**2:1-(-2*i+2)**2/2,!1),await t.refresh(e)}function td(t,e){const{context:i,opacity:n}=t,s=.5,o=i.globalAlpha;if(!e)return;const r=e.width,a=r*s;i.globalAlpha=n,i.drawImage(e,-a,-a,r,r),i.globalAlpha=o}const dn='"Twemoji Mozilla", Apple Color Emoji, "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color"',Ro=0;class id{constructor(){this.validTypes=["emoji"],this._emojiShapeDict=new Map}destroy(){for(const[e,i]of this._emojiShapeDict)i instanceof ImageBitmap&&(i==null||i.close()),this._emojiShapeDict.delete(e)}draw(e){const i=e.particle.emojiDataKey;if(!i)return;const n=this._emojiShapeDict.get(i);n&&td(e,n)}async init(e){const i=e.actualOptions,{validTypes:n}=this;if(!n.find(r=>j(r,i.particles.shape.type)))return;const s=[yo(dn)],o=n.map(r=>i.particles.shape.options[r]).find(r=>!!r);o&&he(o,r=>{r.font&&s.push(yo(r.font))}),await Promise.all(s)}particleDestroy(e){e.emojiDataKey=void 0}particleInit(e,i){const s=i.shapeData;if(!(s!=null&&s.value))return;const o=me(s.value,i.randomIndexData);if(!o)return;const r=typeof o=="string"?{font:s.font??dn,padding:s.padding??Ro,value:o}:{font:dn,padding:Ro,...s,...o},a=r.font,c=r.value,l=`${c}_${a}`;if(this._emojiShapeDict.has(l)){i.emojiDataKey=l;return}const u=r.padding*2,h=_e(i.size.value),f=h+u,d=f*2;let p;if(typeof OffscreenCanvas<"u"){const m=new OffscreenCanvas(d,d),g=m.getContext("2d");if(!g)return;g.font=`400 ${h*2}px ${a}`,g.textBaseline="middle",g.textAlign="center",g.fillText(c,f,f),p=m.transferToImageBitmap()}else{const m=document.createElement("canvas");m.width=d,m.height=d;const g=m.getContext("2d");if(!g)return;g.font=`400 ${h*2}px ${a}`,g.textBaseline="middle",g.textAlign="center",g.fillText(c,f,f),p=m}this._emojiShapeDict.set(l,p),i.emojiDataKey=l}}async function nd(t,e=!0){t.checkVersion("3.9.1"),await t.addShape(new id,e)}const sd=1,od=1,qa=0;function Na(t,e,i,n,s,o){const r=e.actualOptions.interactivity.modes.attract;if(!r)return;const a=e.particles.quadTree.query(s,o);for(const c of a){const{dx:l,dy:u,distance:h}=ne(c.position,i),f=r.speed*r.factor,d=ye(t.getEasing(r.easing)(od-h/n)*f,sd,r.maxSpeed),p=N.create(h?l/h*d:f,h?u/h*d:f);c.position.subFrom(p)}}function rd(t,e,i){e.attract||(e.attract={particles:[]});const{attract:n}=e;if(n.finish||(n.count||(n.count=0),n.count++,n.count===e.particles.count&&(n.finish=!0)),n.clicking){const s=e.interactivity.mouse.clickPosition,o=e.retina.attractModeDistance;if(!o||o<qa||!s)return;Na(t,e,s,o,new Q(s.x,s.y,o),r=>i(r))}else n.clicking===!1&&(n.particles=[])}function ad(t,e,i){const n=e.interactivity.mouse.position,s=e.retina.attractModeDistance;!s||s<qa||!n||Na(t,e,n,s,new Q(n.x,n.y,s),o=>i(o))}class cd{constructor(){this.distance=200,this.duration=.4,this.easing=ut.easeOutQuad,this.factor=1,this.maxSpeed=50,this.speed=1}load(e){P(e)||(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed),e.speed!==void 0&&(this.speed=e.speed))}}const Wt="attract";let ld=class extends Ae{constructor(e,i){super(i),this._engine=e,i.attract||(i.attract={particles:[]}),this.handleClickMode=n=>{const s=this.container.actualOptions,o=s.interactivity.modes.attract;if(!(!o||n!==Wt)){i.attract||(i.attract={particles:[]}),i.attract.clicking=!0,i.attract.count=0;for(const r of i.attract.particles)this.isEnabled(r)&&r.velocity.setTo(r.initialVelocity);i.attract.particles=[],i.attract.finish=!1,setTimeout(()=>{i.destroyed||(i.attract||(i.attract={particles:[]}),i.attract.clicking=!1)},o.duration*X)}}}clear(){}init(){const e=this.container,i=e.actualOptions.interactivity.modes.attract;i&&(e.retina.attractModeDistance=i.distance*e.retina.pixelRatio)}interact(){const e=this.container,i=e.actualOptions,n=e.interactivity.status===ft,s=i.interactivity.events,{enable:o,mode:r}=s.onHover,{enable:a,mode:c}=s.onClick;n&&o&&j(Wt,r)?ad(this._engine,this.container,l=>this.isEnabled(l)):a&&j(Wt,c)&&rd(this._engine,this.container,l=>this.isEnabled(l))}isEnabled(e){const i=this.container,n=i.actualOptions,s=i.interactivity.mouse,o=((e==null?void 0:e.interactivity)??n.interactivity).events;if((!s.position||!o.onHover.enable)&&(!s.clickPosition||!o.onClick.enable))return!1;const r=o.onHover.mode,a=o.onClick.mode;return j(Wt,r)||j(Wt,a)}loadModeOptions(e,...i){e.attract||(e.attract=new cd);for(const n of i)e.attract.load(n==null?void 0:n.attract)}reset(){}};async function ud(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalAttract",i=>Promise.resolve(new ld(t,i)),e)}const hd=2,Di=.5,fd=Math.PI*Di,Ao=2,Wa=10,dd=0;function Ha(t,e,i,n,s){const o=t.particles.quadTree.query(n,s);for(const r of o)n instanceof Q?_a(jn(r),{position:e,mass:i**hd*fd,velocity:N.origin,factor:N.origin}):n instanceof Te&&Ou(r,ui(e,i))}function pd(t,e,i,n){const s=document.querySelectorAll(e);s.length&&s.forEach(o=>{const r=o,a=t.retina.pixelRatio,c={x:(r.offsetLeft+r.offsetWidth*Di)*a,y:(r.offsetTop+r.offsetHeight*Di)*a},l=r.offsetWidth*Di*a,u=Wa*a,h=i.type===Ft.circle?new Q(c.x,c.y,l+u):new Te(r.offsetLeft*a-u,r.offsetTop*a-u,r.offsetWidth*a+u*Ao,r.offsetHeight*a+u*Ao);n(c,l,h)})}function md(t,e,i,n){hs(i,e,(s,o)=>pd(t,s,o,(r,a,c)=>Ha(t,r,a,c,n)))}function gd(t,e){const i=t.retina.pixelRatio,n=Wa*i,s=t.interactivity.mouse.position,o=t.retina.bounceModeDistance;!o||o<dd||!s||Ha(t,s,o,new Q(s.x,s.y,o+n),e)}class yd{constructor(){this.distance=200}load(e){P(e)||e.distance!==void 0&&(this.distance=e.distance)}}const wi="bounce";class vd extends Ae{constructor(e){super(e)}clear(){}init(){const e=this.container,i=e.actualOptions.interactivity.modes.bounce;i&&(e.retina.bounceModeDistance=i.distance*e.retina.pixelRatio)}interact(){const e=this.container,i=e.actualOptions,n=i.interactivity.events,s=e.interactivity.status===ft,o=n.onHover.enable,r=n.onHover.mode,a=n.onDiv;s&&o&&j(wi,r)?gd(this.container,c=>this.isEnabled(c)):md(this.container,a,wi,c=>this.isEnabled(c))}isEnabled(e){const i=this.container,n=i.actualOptions,s=i.interactivity.mouse,o=((e==null?void 0:e.interactivity)??n.interactivity).events,r=o.onDiv;return!!s.position&&o.onHover.enable&&j(wi,o.onHover.mode)||us(wi,r)}loadModeOptions(e,...i){e.bounce||(e.bounce=new yd);for(const n of i)e.bounce.load(n==null?void 0:n.bounce)}reset(){}}async function bd(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalBounce",i=>Promise.resolve(new vd(i)),e)}class Ga{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(e){if(!P(e)){if(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.mix!==void 0&&(this.mix=e.mix),e.opacity!==void 0&&(this.opacity=e.opacity),e.color!==void 0){const i=Re(this.color)?void 0:this.color;this.color=he(e.color,n=>ee.create(i,n))}e.size!==void 0&&(this.size=e.size)}}}class xd extends Ga{constructor(){super(),this.selectors=[]}load(e){super.load(e),!P(e)&&e.selectors!==void 0&&(this.selectors=e.selectors)}}class wd extends Ga{load(e){super.load(e),!P(e)&&(this.divs=he(e.divs,i=>{const n=new xd;return n.load(i),n}))}}var ke;(function(t){t.color="color",t.opacity="opacity",t.size="size"})(ke||(ke={}));function Eo(t,e,i,n){if(e>=i){const s=t+(e-i)*n;return ye(s,t,e)}else if(e<i){const s=t-(i-e)*n;return ye(s,e,t)}}const Qe="bubble",pn=0,Pd=0,Sd=2,Oo=1,Vo=1,Td=0,Cd=0,mn=.5,gn=1;class kd extends Ae{constructor(e,i){super(e),this._clickBubble=()=>{var u;const n=this.container,s=n.actualOptions,o=n.interactivity.mouse.clickPosition,r=s.interactivity.modes.bubble;if(!r||!o)return;n.bubble||(n.bubble={});const a=n.retina.bubbleModeDistance;if(!a||a<pn)return;const c=n.particles.quadTree.queryCircle(o,a,h=>this.isEnabled(h)),{bubble:l}=n;for(const h of c){if(!l.clicking)continue;h.bubble.inRange=!l.durationEnd;const f=h.getPosition(),d=le(f,o),p=(new Date().getTime()-(n.interactivity.mouse.clickTime??Pd))/X;p>r.duration&&(l.durationEnd=!0),p>r.duration*Sd&&(l.clicking=!1,l.durationEnd=!1);const m={bubbleObj:{optValue:n.retina.bubbleModeSize,value:h.bubble.radius},particlesObj:{optValue:_e(h.options.size.value)*n.retina.pixelRatio,value:h.size.value},type:ke.size};this._process(h,d,p,m);const g={bubbleObj:{optValue:r.opacity,value:h.bubble.opacity},particlesObj:{optValue:_e(h.options.opacity.value),value:((u=h.opacity)==null?void 0:u.value)??Oo},type:ke.opacity};this._process(h,d,p,g),!l.durationEnd&&d<=a?this._hoverBubbleColor(h,d):delete h.bubble.color}},this._hoverBubble=()=>{const n=this.container,s=n.interactivity.mouse.position,o=n.retina.bubbleModeDistance;if(!o||o<pn||!s)return;const r=n.particles.quadTree.queryCircle(s,o,a=>this.isEnabled(a));for(const a of r){a.bubble.inRange=!0;const c=a.getPosition(),l=le(c,s),u=Vo-l/o;l<=o?u>=Cd&&n.interactivity.status===ft&&(this._hoverBubbleSize(a,u),this._hoverBubbleOpacity(a,u),this._hoverBubbleColor(a,u)):this.reset(a),n.interactivity.status===Vn&&this.reset(a)}},this._hoverBubbleColor=(n,s,o)=>{const r=this.container.actualOptions,a=o??r.interactivity.modes.bubble;if(a){if(!n.bubble.finalColor){const c=a.color;if(!c)return;const l=me(c);n.bubble.finalColor=ti(this._engine,l)}if(n.bubble.finalColor)if(a.mix){n.bubble.color=void 0;const c=n.getFillColor();n.bubble.color=c?Ea(ds(c,n.bubble.finalColor,Vo-s,s)):n.bubble.finalColor}else n.bubble.color=n.bubble.finalColor}},this._hoverBubbleOpacity=(n,s,o)=>{var f,d;const r=this.container,a=r.actualOptions,c=(o==null?void 0:o.opacity)??((f=a.interactivity.modes.bubble)==null?void 0:f.opacity);if(!c)return;const l=n.options.opacity.value,u=((d=n.opacity)==null?void 0:d.value)??Oo,h=Eo(u,c,_e(l),s);h!==void 0&&(n.bubble.opacity=h)},this._hoverBubbleSize=(n,s,o)=>{const r=this.container,a=o!=null&&o.size?o.size*r.retina.pixelRatio:r.retina.bubbleModeSize;if(a===void 0)return;const c=_e(n.options.size.value)*r.retina.pixelRatio,l=n.size.value,u=Eo(l,a,c,s);u!==void 0&&(n.bubble.radius=u)},this._process=(n,s,o,r)=>{const a=this.container,c=r.bubbleObj.optValue,l=a.actualOptions,u=l.interactivity.modes.bubble;if(!u||c===void 0)return;const h=u.duration,f=a.retina.bubbleModeDistance,d=r.particlesObj.optValue,p=r.bubbleObj.value,m=r.particlesObj.value??Td,g=r.type;if(!(!f||f<pn||c===d))if(a.bubble||(a.bubble={}),a.bubble.durationEnd)p&&(g===ke.size&&delete n.bubble.radius,g===ke.opacity&&delete n.bubble.opacity);else if(s<=f){if((p??m)!==c){const v=m-o*(m-c)/h;g===ke.size&&(n.bubble.radius=v),g===ke.opacity&&(n.bubble.opacity=v)}}else g===ke.size&&delete n.bubble.radius,g===ke.opacity&&delete n.bubble.opacity},this._singleSelectorHover=(n,s,o)=>{const r=this.container,a=document.querySelectorAll(s),c=r.actualOptions.interactivity.modes.bubble;!c||!a.length||a.forEach(l=>{const u=l,h=r.retina.pixelRatio,f={x:(u.offsetLeft+u.offsetWidth*mn)*h,y:(u.offsetTop+u.offsetHeight*mn)*h},d=u.offsetWidth*mn*h,p=o.type===Ft.circle?new Q(f.x,f.y,d):new Te(u.offsetLeft*h,u.offsetTop*h,u.offsetWidth*h,u.offsetHeight*h),m=r.particles.quadTree.query(p,g=>this.isEnabled(g));for(const g of m){if(!p.contains(g.getPosition()))continue;g.bubble.inRange=!0;const y=c.divs,v=ka(y,u);(!g.bubble.div||g.bubble.div!==u)&&(this.clear(g,n,!0),g.bubble.div=u),this._hoverBubbleSize(g,gn,v),this._hoverBubbleOpacity(g,gn,v),this._hoverBubbleColor(g,gn,v)}})},this._engine=i,e.bubble||(e.bubble={}),this.handleClickMode=n=>{n===Qe&&(e.bubble||(e.bubble={}),e.bubble.clicking=!0)}}clear(e,i,n){e.bubble.inRange&&!n||(delete e.bubble.div,delete e.bubble.opacity,delete e.bubble.radius,delete e.bubble.color)}init(){const e=this.container,i=e.actualOptions.interactivity.modes.bubble;i&&(e.retina.bubbleModeDistance=i.distance*e.retina.pixelRatio,i.size!==void 0&&(e.retina.bubbleModeSize=i.size*e.retina.pixelRatio))}interact(e){const i=this.container.actualOptions,n=i.interactivity.events,s=n.onHover,o=n.onClick,r=s.enable,a=s.mode,c=o.enable,l=o.mode,u=n.onDiv;r&&j(Qe,a)?this._hoverBubble():c&&j(Qe,l)?this._clickBubble():hs(Qe,u,(h,f)=>this._singleSelectorHover(e,h,f))}isEnabled(e){const i=this.container,n=i.actualOptions,s=i.interactivity.mouse,o=((e==null?void 0:e.interactivity)??n.interactivity).events,{onClick:r,onDiv:a,onHover:c}=o,l=us(Qe,a);return l||c.enable&&s.position||r.enable&&s.clickPosition?j(Qe,c.mode)||j(Qe,r.mode)||l:!1}loadModeOptions(e,...i){e.bubble||(e.bubble=new wd);for(const n of i)e.bubble.load(n==null?void 0:n.bubble)}reset(e){e.bubble.inRange=!1}}async function _d(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalBubble",i=>Promise.resolve(new kd(i,t)),e)}class Md{constructor(){this.opacity=.5}load(e){P(e)||e.opacity!==void 0&&(this.opacity=e.opacity)}}class Dd{constructor(){this.distance=80,this.links=new Md,this.radius=60}load(e){P(e)||(e.distance!==void 0&&(this.distance=e.distance),this.links.load(e.links),e.radius!==void 0&&(this.radius=e.radius))}}const Lo=0,zo=1,Rd=0;function Ad(t,e,i,n){const s=Math.floor(i.getRadius()/e.getRadius()),o=e.getFillColor(),r=i.getFillColor();if(!o||!r)return;const a=e.getPosition(),c=i.getPosition(),l=ds(o,r,e.getRadius(),i.getRadius()),u=t.createLinearGradient(a.x,a.y,c.x,c.y);return u.addColorStop(Lo,ii(o,n)),u.addColorStop(ye(s,Lo,zo),ze(l,n)),u.addColorStop(zo,ii(r,n)),u}function Ed(t,e,i,n,s){Yt(t,n,s),t.lineWidth=e,t.strokeStyle=i,t.stroke()}function Od(t,e,i,n){const s=t.actualOptions,o=s.interactivity.modes.connect;if(o)return Ad(e,i,n,o.links.opacity)}function Vd(t,e,i){t.canvas.draw(n=>{const s=Od(t,n,e,i);if(!s)return;const o=e.getPosition(),r=i.getPosition();Ed(n,e.retina.linksWidth??Rd,s,o,r)})}const Ld="connect",Io=0;class zd extends Ae{constructor(e){super(e)}clear(){}init(){const e=this.container,i=e.actualOptions.interactivity.modes.connect;i&&(e.retina.connectModeDistance=i.distance*e.retina.pixelRatio,e.retina.connectModeRadius=i.radius*e.retina.pixelRatio)}interact(){const e=this.container;if(e.actualOptions.interactivity.events.onHover.enable&&e.interactivity.status==="pointermove"){const n=e.interactivity.mouse.position,{connectModeDistance:s,connectModeRadius:o}=e.retina;if(!s||s<Io||!o||o<Io||!n)return;const r=Math.abs(o),a=e.particles.quadTree.queryCircle(n,r,c=>this.isEnabled(c));a.forEach((c,l)=>{const u=c.getPosition(),h=1;for(const f of a.slice(l+h)){const d=f.getPosition(),p=Math.abs(s),m=Math.abs(u.x-d.x),g=Math.abs(u.y-d.y);m<p&&g<p&&Vd(e,c,f)}})}}isEnabled(e){const i=this.container,n=i.interactivity.mouse,s=((e==null?void 0:e.interactivity)??i.actualOptions.interactivity).events;return s.onHover.enable&&n.position?j(Ld,s.onHover.mode):!1}loadModeOptions(e,...i){e.connect||(e.connect=new Dd);for(const n of i)e.connect.load(n==null?void 0:n.connect)}reset(){}}async function Id(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalConnect",i=>Promise.resolve(new zd(i)),e)}class Fd{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(e){P(e)||(e.blink!==void 0&&(this.blink=e.blink),e.color!==void 0&&(this.color=ee.create(this.color,e.color)),e.consent!==void 0&&(this.consent=e.consent),e.opacity!==void 0&&(this.opacity=e.opacity))}}class Bd{constructor(){this.distance=100,this.links=new Fd}load(e){P(e)||(e.distance!==void 0&&(this.distance=e.distance),this.links.load(e.links))}}const jd=0;function Ud(t,e,i,n,s,o){Yt(t,i,n),t.strokeStyle=ze(s,o),t.lineWidth=e,t.stroke()}function $d(t,e,i,n,s){t.canvas.draw(o=>{const r=e.getPosition();Ud(o,e.retina.linksWidth??jd,r,s,i,n)})}const qd="grab",Nd=0,Wd=0;class Hd extends Ae{constructor(e,i){super(e),this._engine=i}clear(){}init(){const e=this.container,i=e.actualOptions.interactivity.modes.grab;i&&(e.retina.grabModeDistance=i.distance*e.retina.pixelRatio)}interact(){var a;const e=this.container,i=e.actualOptions,n=i.interactivity;if(!n.modes.grab||!n.events.onHover.enable||e.interactivity.status!==ft)return;const s=e.interactivity.mouse.position;if(!s)return;const o=e.retina.grabModeDistance;if(!o||o<Nd)return;const r=e.particles.quadTree.queryCircle(s,o,c=>this.isEnabled(c));for(const c of r){const l=c.getPosition(),u=le(l,s);if(u>o)continue;const h=n.modes.grab.links,f=h.opacity,d=f-u*f/o;if(d<=Wd)continue;const p=h.color??((a=c.options.links)==null?void 0:a.color);if(!e.particles.grabLineColor&&p){const g=n.modes.grab.links;e.particles.grabLineColor=Va(this._engine,p,g.blink,g.consent)}const m=$n(c,void 0,e.particles.grabLineColor);m&&$d(e,c,m,d,s)}}isEnabled(e){const i=this.container,n=i.interactivity.mouse,s=((e==null?void 0:e.interactivity)??i.actualOptions.interactivity).events;return s.onHover.enable&&!!n.position&&j(qd,s.onHover.mode)}loadModeOptions(e,...i){e.grab||(e.grab=new Bd);for(const n of i)e.grab.load(n==null?void 0:n.grab)}reset(){}}async function Gd(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalGrab",i=>Promise.resolve(new Hd(i,t)),e)}const Kd="pause";class Xd extends Ae{constructor(e){super(e),this.handleClickMode=i=>{if(i!==Kd)return;const n=this.container;n.animationStatus?n.pause():n.play()}}clear(){}init(){}interact(){}isEnabled(){return!0}reset(){}}async function Yd(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalPause",i=>Promise.resolve(new Xd(i)),e)}class Zd{constructor(){this.default=!0,this.groups=[],this.quantity=4}load(e){if(P(e))return;e.default!==void 0&&(this.default=e.default),e.groups!==void 0&&(this.groups=e.groups.map(n=>n)),this.groups.length||(this.default=!0);const i=e.quantity;i!==void 0&&(this.quantity=D(i)),this.particles=he(e.particles,n=>J({},n))}}const Qd="push",Jd=0;class ep extends Ae{constructor(e){super(e),this.handleClickMode=i=>{if(i!==Qd)return;const n=this.container,s=n.actualOptions,o=s.interactivity.modes.push;if(!o)return;const r=S(o.quantity);if(r<=Jd)return;const a=Gi([void 0,...o.groups]),c=a!==void 0?n.actualOptions.particles.groups[a]:void 0,l=me(o.particles),u=J(c,l);n.particles.push(r,n.interactivity.mouse,u,a)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(e,...i){e.push||(e.push=new Zd);for(const n of i)e.push.load(n==null?void 0:n.push)}reset(){}}async function tp(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalPush",i=>Promise.resolve(new ep(i)),e)}class ip{constructor(){this.quantity=2}load(e){if(P(e))return;const i=e.quantity;i!==void 0&&(this.quantity=D(i))}}const np="remove";class sp extends Ae{constructor(e){super(e),this.handleClickMode=i=>{const n=this.container,s=n.actualOptions;if(!s.interactivity.modes.remove||i!==np)return;const o=S(s.interactivity.modes.remove.quantity);n.particles.removeQuantity(o)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(e,...i){e.remove||(e.remove=new ip);for(const n of i)e.remove.load(n==null?void 0:n.remove)}reset(){}}async function op(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalRemove",i=>Promise.resolve(new sp(i)),e)}class Ka{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing=ut.easeOutQuad}load(e){P(e)||(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.speed!==void 0&&(this.speed=e.speed),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed))}}class rp extends Ka{constructor(){super(),this.selectors=[]}load(e){super.load(e),!P(e)&&e.selectors!==void 0&&(this.selectors=e.selectors)}}class ap extends Ka{load(e){super.load(e),!P(e)&&(this.divs=he(e.divs,i=>{const n=new rp;return n.load(i),n}))}}const Je="repulse",cp=0,lp=6,up=3,hp=2,fp=0,dp=0,pp=1,yn=.5;class mp extends Ae{constructor(e,i){super(i),this._clickRepulse=()=>{const n=this.container,s=n.actualOptions.interactivity.modes.repulse;if(!s)return;const o=n.repulse??{particles:[]};if(o.finish||(o.count||(o.count=0),o.count++,o.count===n.particles.count&&(o.finish=!0)),o.clicking){const r=n.retina.repulseModeDistance;if(!r||r<cp)return;const a=Math.pow(r/lp,up),c=n.interactivity.mouse.clickPosition;if(c===void 0)return;const l=new Q(c.x,c.y,a),u=n.particles.quadTree.query(l,h=>this.isEnabled(h));for(const h of u){const{dx:f,dy:d,distance:p}=ne(c,h.position),m=p**hp,g=s.speed,y=-a*g/m;if(m<=a){o.particles.push(h);const v=N.create(f,d);v.length=y,h.velocity.setTo(v)}}}else if(o.clicking===!1){for(const r of o.particles)r.velocity.setTo(r.initialVelocity);o.particles=[]}},this._hoverRepulse=()=>{const n=this.container,s=n.interactivity.mouse.position,o=n.retina.repulseModeDistance;!o||o<fp||!s||this._processRepulse(s,o,new Q(s.x,s.y,o))},this._processRepulse=(n,s,o,r)=>{const a=this.container,c=a.particles.quadTree.query(o,g=>this.isEnabled(g)),l=a.actualOptions.interactivity.modes.repulse;if(!l)return;const{easing:u,speed:h,factor:f,maxSpeed:d}=l,p=this._engine.getEasing(u),m=((r==null?void 0:r.speed)??h)*f;for(const g of c){const{dx:y,dy:v,distance:b}=ne(g.position,n),x=ye(p(pp-b/s)*m,dp,d),w=N.create(b?y/b*x:m,b?v/b*x:m);g.position.addTo(w)}},this._singleSelectorRepulse=(n,s)=>{const o=this.container,r=o.actualOptions.interactivity.modes.repulse;if(!r)return;const a=document.querySelectorAll(n);a.length&&a.forEach(c=>{const l=c,u=o.retina.pixelRatio,h={x:(l.offsetLeft+l.offsetWidth*yn)*u,y:(l.offsetTop+l.offsetHeight*yn)*u},f=l.offsetWidth*yn*u,d=s.type===Ft.circle?new Q(h.x,h.y,f):new Te(l.offsetLeft*u,l.offsetTop*u,l.offsetWidth*u,l.offsetHeight*u),p=r.divs,m=ka(p,l);this._processRepulse(h,f,d,m)})},this._engine=e,i.repulse||(i.repulse={particles:[]}),this.handleClickMode=n=>{const s=this.container.actualOptions,o=s.interactivity.modes.repulse;if(!o||n!==Je)return;i.repulse||(i.repulse={particles:[]});const r=i.repulse;r.clicking=!0,r.count=0;for(const a of i.repulse.particles)this.isEnabled(a)&&a.velocity.setTo(a.initialVelocity);r.particles=[],r.finish=!1,setTimeout(()=>{i.destroyed||(r.clicking=!1)},o.duration*X)}}clear(){}init(){const e=this.container,i=e.actualOptions.interactivity.modes.repulse;i&&(e.retina.repulseModeDistance=i.distance*e.retina.pixelRatio)}interact(){const e=this.container,i=e.actualOptions,n=e.interactivity.status===ft,s=i.interactivity.events,o=s.onHover,r=o.enable,a=o.mode,c=s.onClick,l=c.enable,u=c.mode,h=s.onDiv;n&&r&&j(Je,a)?this._hoverRepulse():l&&j(Je,u)?this._clickRepulse():hs(Je,h,(f,d)=>this._singleSelectorRepulse(f,d))}isEnabled(e){const i=this.container,n=i.actualOptions,s=i.interactivity.mouse,o=((e==null?void 0:e.interactivity)??n.interactivity).events,r=o.onDiv,a=o.onHover,c=o.onClick,l=us(Je,r);if(!(l||a.enable&&s.position||c.enable&&s.clickPosition))return!1;const u=a.mode,h=c.mode;return j(Je,u)||j(Je,h)||l}loadModeOptions(e,...i){e.repulse||(e.repulse=new ap);for(const n of i)e.repulse.load(n==null?void 0:n.repulse)}reset(){}}async function gp(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalRepulse",i=>Promise.resolve(new mp(t,i)),e)}class yp{constructor(){this.factor=3,this.radius=200}load(e){P(e)||(e.factor!==void 0&&(this.factor=e.factor),e.radius!==void 0&&(this.radius=e.radius))}}const vp="slow",bp=0;class xp extends Ae{constructor(e){super(e)}clear(e,i,n){e.slow.inRange&&!n||(e.slow.factor=1)}init(){const e=this.container,i=e.actualOptions.interactivity.modes.slow;i&&(e.retina.slowModeRadius=i.radius*e.retina.pixelRatio)}interact(){}isEnabled(e){const i=this.container,n=i.interactivity.mouse,s=((e==null?void 0:e.interactivity)??i.actualOptions.interactivity).events;return s.onHover.enable&&!!n.position&&j(vp,s.onHover.mode)}loadModeOptions(e,...i){e.slow||(e.slow=new yp);for(const n of i)e.slow.load(n==null?void 0:n.slow)}reset(e){e.slow.inRange=!1;const i=this.container,n=i.actualOptions,s=i.interactivity.mouse.position,o=i.retina.slowModeRadius,r=n.interactivity.modes.slow;if(!r||!o||o<bp||!s)return;const a=e.getPosition(),c=le(s,a),l=c/o,u=r.factor,{slow:h}=e;c>o||(h.inRange=!0,h.factor=l/u)}}async function wp(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("externalSlow",i=>Promise.resolve(new xp(i)),e)}const Pp=0,Sp=1,Tp=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;function Cp(t,e,i){const{svgData:n}=t;if(!n)return"";const s=ii(e,i);if(n.includes("fill"))return n.replace(Tp,()=>s);const o=n.indexOf(">");return`${n.substring(Pp,o)} fill="${s}"${n.substring(o)}`}async function Ki(t){return new Promise(e=>{t.loading=!0;const i=new Image;t.element=i,i.addEventListener("load",()=>{t.loading=!1,e()}),i.addEventListener("error",()=>{t.element=void 0,t.error=!0,t.loading=!1,pt().error(`${ge} loading image: ${t.source}`),e()}),i.src=t.source})}async function kp(t){if(t.type!=="svg"){await Ki(t);return}t.loading=!0;const e=await fetch(t.source);e.ok?t.svgData=await e.text():(pt().error(`${ge} Image not found`),t.error=!0),t.loading=!1}function _p(t,e,i,n){var r;const s=Cp(t,i,((r=n.opacity)==null?void 0:r.value)??Sp),o={color:i,gif:e.gif,data:{...t,svgData:s},loaded:!1,ratio:e.width/e.height,replaceColor:e.replaceColor,source:e.src};return new Promise(a=>{const c=new Blob([s],{type:"image/svg+xml"}),l=URL||window.URL||window.webkitURL||window,u=l.createObjectURL(c),h=new Image;h.addEventListener("load",()=>{o.loaded=!0,o.element=h,a(o),l.revokeObjectURL(u)});const f=async()=>{l.revokeObjectURL(u);const d={...t,error:!1,loading:!0};await Ki(d),o.loaded=!0,o.element=d.element,a(o)};h.addEventListener("error",()=>void f()),h.src=u})}const vn=[0,4,2,1],Fo=[8,8,4,2];class Mp{constructor(e){this.pos=0,this.data=new Uint8ClampedArray(e)}getString(e){const i=this.data.slice(this.pos,this.pos+e);return this.pos+=i.length,i.reduce((n,s)=>n+String.fromCharCode(s),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let e="",i=0;const n=0,s=0;do{i=this.data[this.pos++];for(let o=i;--o>=n;e+=String.fromCharCode(this.data[this.pos++]));}while(i!==s);return e}readSubBlocksBin(){let e=this.data[this.pos],i=0;const n=0,s=1;for(let r=0;e!==n;r+=e+s,e=this.data[this.pos+r])i+=e;const o=new Uint8Array(i);e=this.data[this.pos++];for(let r=0;e!==n;e=this.data[this.pos++])for(let a=e;--a>=n;o[r++]=this.data[this.pos++]);return o}skipSubBlocks(){for(const e=1,i=0;this.data[this.pos]!==i;this.pos+=this.data[this.pos]+e);this.pos++}}var be;(function(t){t[t.Replace=0]="Replace",t[t.Combine=1]="Combine",t[t.RestoreBackground=2]="RestoreBackground",t[t.RestorePrevious=3]="RestorePrevious",t[t.UndefinedA=4]="UndefinedA",t[t.UndefinedB=5]="UndefinedB",t[t.UndefinedC=6]="UndefinedC",t[t.UndefinedD=7]="UndefinedD"})(be||(be={}));var Le;(function(t){t[t.Extension=33]="Extension",t[t.ApplicationExtension=255]="ApplicationExtension",t[t.GraphicsControlExtension=249]="GraphicsControlExtension",t[t.PlainTextExtension=1]="PlainTextExtension",t[t.CommentExtension=254]="CommentExtension",t[t.Image=44]="Image",t[t.EndOfFile=59]="EndOfFile"})(Le||(Le={}));const se={x:0,y:0},Dp=0,Bo=.5,Rp=0,jo=0,Nn=0;function Xa(t,e){const i=[];for(let n=0;n<e;n++)i.push({r:t.data[t.pos],g:t.data[t.pos+1],b:t.data[t.pos+2]}),t.pos+=3;return i}function Ap(t,e,i,n){switch(t.nextByte()){case Le.GraphicsControlExtension:{const s=e.frames[i(!1)];t.pos++;const o=t.nextByte();s.GCreserved=(o&224)>>>5,s.disposalMethod=(o&28)>>>2,s.userInputDelayFlag=(o&2)===2;const r=(o&1)===1;s.delayTime=t.nextTwoBytes()*10;const a=t.nextByte();r&&n(a),t.pos++;break}case Le.ApplicationExtension:{t.pos++;const s={identifier:t.getString(8),authenticationCode:t.getString(3),data:t.readSubBlocksBin()};e.applicationExtensions.push(s);break}case Le.CommentExtension:{e.comments.push([i(!1),t.readSubBlocks()]);break}case Le.PlainTextExtension:{if(e.globalColorTable.length===0)throw new EvalError("plain text extension without global color table");t.pos++,e.frames[i(!1)].plainTextData={left:t.nextTwoBytes(),top:t.nextTwoBytes(),width:t.nextTwoBytes(),height:t.nextTwoBytes(),charSize:{width:t.nextTwoBytes(),height:t.nextTwoBytes()},foregroundColor:t.nextByte(),backgroundColor:t.nextByte(),text:t.readSubBlocks()};break}default:t.skipSubBlocks();break}}async function Ep(t,e,i,n,s,o){const r=e.frames[n(!0)];r.left=t.nextTwoBytes(),r.top=t.nextTwoBytes(),r.width=t.nextTwoBytes(),r.height=t.nextTwoBytes();const a=t.nextByte(),c=(a&128)===128,l=(a&64)===64;r.sortFlag=(a&32)===32,r.reserved=(a&24)>>>3;const u=1<<(a&7)+1;c&&(r.localColorTable=Xa(t,u));const h=y=>{const{r:v,g:b,b:x}=(c?r.localColorTable:e.globalColorTable)[y];return y!==s(null)?{r:v,g:b,b:x,a:255}:{r:v,g:b,b:x,a:i?~~((v+b+x)/3):0}},f=(()=>{try{return new ImageData(r.width,r.height,{colorSpace:"srgb"})}catch(y){if(y instanceof DOMException&&y.name==="IndexSizeError")return null;throw y}})();if(f==null)throw new EvalError("GIF frame size is to large");const d=t.nextByte(),p=t.readSubBlocksBin(),m=1<<d,g=(y,v)=>{const b=y>>>3,x=y&7;return(p[b]+(p[b+1]<<8)+(p[b+2]<<16)&(1<<v)-1<<x)>>>x};if(l){for(let y=0,v=d+1,b=0,x=[[0]],w=0;w<4;w++)if(vn[w]<r.height){let k=0,R=0,T=!1;for(;!T;){const V=y;if(y=g(b,v),b+=v+1,y===m){v=d+1,x.length=m+2;for(let E=0;E<x.length;E++)x[E]=E<m?[E]:[]}else{y>=x.length?x.push(x[V].concat(x[V][0])):V!==m&&x.push(x[V].concat(x[y][0]));for(const E of x[y]){const{r:re,g:Ee,b:L,a:Ce}=h(E);f.data.set([re,Ee,L,Ce],vn[w]*r.width+Fo[w]*R+k%(r.width*4)),k+=4}x.length===1<<v&&v<12&&v++}k===r.width*4*(R+1)&&(R++,vn[w]+Fo[w]*R>=r.height&&(T=!0))}}r.image=f,r.bitmap=await createImageBitmap(f)}else{let y=0,v=d+1,b=0,x=-4,w=!1;const k=[[0]];for(;!w;){const R=y;if(y=g(b,v),b+=v,y===m){v=d+1,k.length=m+2;for(let T=0;T<k.length;T++)k[T]=T<m?[T]:[]}else{if(y===m+1){w=!0;break}y>=k.length?k.push(k[R].concat(k[R][0])):R!==m&&k.push(k[R].concat(k[y][0]));for(const T of k[y]){const{r:V,g:E,b:re,a:Ee}=h(T);f.data.set([V,E,re,Ee],x+=4)}k.length>=1<<v&&v<12&&v++}}r.image=f,r.bitmap=await createImageBitmap(f)}}async function Op(t,e,i,n,s,o){switch(t.nextByte()){case Le.EndOfFile:return!0;case Le.Image:await Ep(t,e,i,n,s);break;case Le.Extension:Ap(t,e,n,s);break;default:throw new EvalError("undefined block found")}return!1}function Vp(t){for(const e of t.applicationExtensions)if(e.identifier+e.authenticationCode==="NETSCAPE2.0")return e.data[1]+(e.data[2]<<8);return NaN}async function Lp(t,e,i){i||(i=!1);const n=await fetch(t);if(!n.ok&&n.status===404)throw new EvalError("file not found");const s=await n.arrayBuffer(),o={width:0,height:0,totalTime:0,colorRes:0,pixelAspectRatio:0,frames:[],sortFlag:!1,globalColorTable:[],backgroundImage:new ImageData(1,1,{colorSpace:"srgb"}),comments:[],applicationExtensions:[]},r=new Mp(new Uint8ClampedArray(s));if(r.getString(6)!=="GIF89a")throw new Error("not a supported GIF file");o.width=r.nextTwoBytes(),o.height=r.nextTwoBytes();const a=r.nextByte(),c=(a&128)===128;o.colorRes=(a&112)>>>4,o.sortFlag=(a&8)===8;const l=1<<(a&7)+1,u=r.nextByte();o.pixelAspectRatio=r.nextByte(),o.pixelAspectRatio!==0&&(o.pixelAspectRatio=(o.pixelAspectRatio+15)/64),c&&(o.globalColorTable=Xa(r,l));const h=(()=>{try{return new ImageData(o.width,o.height,{colorSpace:"srgb"})}catch(x){if(x instanceof DOMException&&x.name==="IndexSizeError")return null;throw x}})();if(h==null)throw new Error("GIF frame size is to large");const{r:f,g:d,b:p}=o.globalColorTable[u];h.data.set(c?[f,d,p,255]:[0,0,0,0]);for(let x=4;x<h.data.length;x*=2)h.data.copyWithin(x,0,x);o.backgroundImage=h;let m=-1,g=!0,y=-1;const v=x=>(x&&(g=!0),m),b=x=>(x!=null&&(y=x),y);try{do g&&(o.frames.push({left:0,top:0,width:0,height:0,disposalMethod:be.Replace,image:new ImageData(1,1,{colorSpace:"srgb"}),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),m++,y=-1,g=!1);while(!await Op(r,o,i,v,b,e));o.frames.length--;for(const x of o.frames){if(x.userInputDelayFlag&&x.delayTime===0){o.totalTime=1/0;break}o.totalTime+=x.delayTime}return o}catch(x){throw x instanceof EvalError?new Error(`error while parsing frame ${m} "${x.message}"`):x}}function zp(t){const{context:e,radius:i,particle:n,delta:s}=t,o=n.image;if(!(o!=null&&o.gifData)||!o.gif)return;const r=new OffscreenCanvas(o.gifData.width,o.gifData.height),a=r.getContext("2d");if(!a)throw new Error("could not create offscreen canvas context");a.imageSmoothingQuality="low",a.imageSmoothingEnabled=!1,a.clearRect(se.x,se.y,r.width,r.height),n.gifLoopCount===void 0&&(n.gifLoopCount=o.gifLoopCount??Nn);let c=n.gifFrame??Dp;const l={x:-o.gifData.width*Bo,y:-o.gifData.height*Bo},u=o.gifData.frames[c];if(n.gifTime===void 0&&(n.gifTime=Rp),!!u.bitmap){switch(e.scale(i/o.gifData.width,i/o.gifData.height),u.disposalMethod){case be.UndefinedA:case be.UndefinedB:case be.UndefinedC:case be.UndefinedD:case be.Replace:a.drawImage(u.bitmap,u.left,u.top),e.drawImage(r,l.x,l.y),a.clearRect(se.x,se.y,r.width,r.height);break;case be.Combine:a.drawImage(u.bitmap,u.left,u.top),e.drawImage(r,l.x,l.y);break;case be.RestoreBackground:a.drawImage(u.bitmap,u.left,u.top),e.drawImage(r,l.x,l.y),a.clearRect(se.x,se.y,r.width,r.height),o.gifData.globalColorTable.length?a.putImageData(o.gifData.backgroundImage,l.x,l.y):a.putImageData(o.gifData.frames[jo].image,l.x+u.left,l.y+u.top);break;case be.RestorePrevious:{const h=a.getImageData(se.x,se.y,r.width,r.height);a.drawImage(u.bitmap,u.left,u.top),e.drawImage(r,l.x,l.y),a.clearRect(se.x,se.y,r.width,r.height),a.putImageData(h,se.x,se.y)}break}if(n.gifTime+=s.value,n.gifTime>u.delayTime){if(n.gifTime-=u.delayTime,++c>=o.gifData.frames.length){if(--n.gifLoopCount<=Nn)return;c=jo,a.clearRect(se.x,se.y,r.width,r.height)}n.gifFrame=c}e.scale(o.gifData.width/i,o.gifData.height/i)}}async function Ip(t){if(t.type!=="gif"){await Ki(t);return}t.loading=!0;try{t.gifData=await Lp(t.source),t.gifLoopCount=Vp(t.gifData)??Nn,t.gifLoopCount||(t.gifLoopCount=1/0)}catch{t.error=!0}t.loading=!1}const Fp=2,Bp=1,jp=12,Up=1;class $p{constructor(e){this.validTypes=["image","images"],this.loadImageShape=async i=>{if(!this._engine.loadImage)throw new Error(`${ge} image shape not initialized`);await this._engine.loadImage({gif:i.gif,name:i.name,replaceColor:i.replaceColor??!1,src:i.src})},this._engine=e}addImage(e){this._engine.images||(this._engine.images=[]),this._engine.images.push(e)}draw(e){const{context:i,radius:n,particle:s,opacity:o}=e,r=s.image,a=r==null?void 0:r.element;if(r){if(i.globalAlpha=o,r.gif&&r.gifData)zp(e);else if(a){const c=r.ratio,l={x:-n,y:-n},u=n*Fp;i.drawImage(a,l.x,l.y,u,u/c)}i.globalAlpha=Bp}}getSidesCount(){return jp}async init(e){const i=e.actualOptions;if(!(!i.preload||!this._engine.loadImage))for(const n of i.preload)await this._engine.loadImage(n)}loadShape(e){if(e.shape!=="image"&&e.shape!=="images")return;this._engine.images||(this._engine.images=[]);const i=e.shapeData;if(!i)return;this._engine.images.find(s=>s.name===i.name||s.source===i.src)||this.loadImageShape(i).then(()=>{this.loadShape(e)})}particleInit(e,i){if(i.shape!=="image"&&i.shape!=="images")return;this._engine.images||(this._engine.images=[]);const n=this._engine.images,s=i.shapeData;if(!s)return;const o=i.getFillColor(),r=n.find(c=>c.name===s.name||c.source===s.src);if(!r)return;const a=s.replaceColor??r.replaceColor;if(r.loading){setTimeout(()=>{this.particleInit(e,i)});return}(async()=>{let c;r.svgData&&o?c=await _p(r,s,o,i):c={color:o,data:r,element:r.element,gif:r.gif,gifData:r.gifData,gifLoopCount:r.gifLoopCount,loaded:!0,ratio:s.width&&s.height?s.width/s.height:r.ratio??Up,replaceColor:a,source:s.src},c.ratio||(c.ratio=1);const l=s.fill??i.shapeFill,u=s.close??i.shapeClose,h={image:c,fill:l,close:u};i.image=h.image,i.shapeFill=h.fill,i.shapeClose=h.close})()}}class qp{constructor(){this.src="",this.gif=!1}load(e){P(e)||(e.gif!==void 0&&(this.gif=e.gif),e.height!==void 0&&(this.height=e.height),e.name!==void 0&&(this.name=e.name),e.replaceColor!==void 0&&(this.replaceColor=e.replaceColor),e.src!==void 0&&(this.src=e.src),e.width!==void 0&&(this.width=e.width))}}class Np{constructor(e){this.id="imagePreloader",this._engine=e}async getPlugin(){return await Promise.resolve(),{}}loadOptions(e,i){if(!(i!=null&&i.preload))return;e.preload||(e.preload=[]);const n=e.preload;for(const s of i.preload){const o=n.find(r=>r.name===s.name||r.src===s.src);if(o)o.load(s);else{const r=new qp;r.load(s),n.push(r)}}}needsPlugin(){return!0}}const Wp=3;function Hp(t){t.loadImage||(t.loadImage=async e=>{if(!e.name&&!e.src)throw new Error(`${ge} no image source provided`);if(t.images||(t.images=[]),!t.images.find(i=>i.name===e.name||i.source===e.src))try{const i={gif:e.gif??!1,name:e.name??e.src,source:e.src,type:e.src.substring(e.src.length-Wp),error:!1,loading:!0,replaceColor:e.replaceColor,ratio:e.width&&e.height?e.width/e.height:void 0};t.images.push(i);let n;e.gif?n=Ip:n=e.replaceColor?kp:Ki,await n(i)}catch{throw new Error(`${ge} ${e.name??e.src} not found`)}})}async function Gp(t,e=!0){t.checkVersion("3.9.1"),Hp(t);const i=new Np(t);await t.addPlugin(i,e),await t.addShape(new $p(t),e)}class Kp extends gt{constructor(){super(),this.sync=!1}load(e){P(e)||(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}class Xp extends gt{constructor(){super(),this.sync=!1}load(e){P(e)||(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}class Yp{constructor(){this.count=0,this.delay=new Kp,this.duration=new Xp}load(e){P(e)||(e.count!==void 0&&(this.count=e.count),this.delay.load(e.delay),this.duration.load(e.duration))}}const bt=0,Zp=-1,Uo=0,$o=0;function Qp(t,e,i){if(!t.life)return;const n=t.life;let s=!1;if(t.spawning)if(n.delayTime+=e.value,n.delayTime>=t.life.delay)s=!0,t.spawning=!1,n.delayTime=bt,n.time=bt;else return;if(n.duration===Zp||t.spawning||(s?n.time=bt:n.time+=e.value,n.time<n.duration))return;if(n.time=bt,t.life.count>Uo&&t.life.count--,t.life.count===Uo){t.destroy();return}const o=D($o,i.width),r=D($o,i.width);t.position.x=ce(o),t.position.y=ce(r),t.spawning=!0,n.delayTime=bt,n.time=bt,t.reset();const a=t.options.life;a&&(n.delay=S(a.delay.value)*X,n.duration=S(a.duration.value)*X)}const et=0,qo=1,No=-1;class Jp{constructor(e){this.container=e}init(e){const i=this.container,n=e.options,s=n.life;s&&(e.life={delay:i.retina.reduceFactor?S(s.delay.value)*(s.delay.sync?qo:A())/i.retina.reduceFactor*X:et,delayTime:et,duration:i.retina.reduceFactor?S(s.duration.value)*(s.duration.sync?qo:A())/i.retina.reduceFactor*X:et,time:et,count:s.count},e.life.duration<=et&&(e.life.duration=No),e.life.count<=et&&(e.life.count=No),e.life&&(e.spawning=e.life.delay>et))}isEnabled(e){return!e.destroyed}loadOptions(e,...i){e.life||(e.life=new Yp);for(const n of i)e.life.load(n==null?void 0:n.life)}update(e,i){!this.isEnabled(e)||!e.life||Qp(e,i,this.container.canvas.size)}}async function em(t,e=!0){t.checkVersion("3.9.1"),await t.addParticleUpdater("life",async i=>Promise.resolve(new Jp(i)),e)}function tm(t){const{context:e,particle:i,radius:n}=t,s=i.shapeData,o=0;e.moveTo(-n,o),e.lineTo(n,o),e.lineCap=(s==null?void 0:s.cap)??"butt"}const im=1;class nm{constructor(){this.validTypes=["line"]}draw(e){tm(e)}getSidesCount(){return im}}async function sm(t,e=!0){t.checkVersion("3.9.1"),await t.addShape(new nm,e)}const Wo=.5;class om{init(){}isEnabled(e){return!mt()&&!e.destroyed&&e.container.actualOptions.interactivity.events.onHover.parallax.enable}move(e){const i=e.container,n=i.actualOptions,s=n.interactivity.events.onHover.parallax;if(mt()||!s.enable)return;const o=s.force,r=i.interactivity.mouse.position;if(!r)return;const a=i.canvas.size,c={x:a.width*Wo,y:a.height*Wo},l=s.smooth,u=e.getRadius()/o,h={x:(r.x-c.x)*u,y:(r.y-c.y)*u},{offset:f}=e;f.x+=(h.x-f.x)/l,f.y+=(h.y-f.y)/l}}async function rm(t,e=!0){t.checkVersion("3.9.1"),await t.addMover("parallax",()=>Promise.resolve(new om),e)}const Ho=1e3,am=1;class cm extends gs{constructor(e){super(e)}clear(){}init(){}interact(e){const i=this.container;e.attractDistance===void 0&&(e.attractDistance=S(e.options.move.attract.distance)*i.retina.pixelRatio);const n=e.attractDistance,s=e.getPosition(),o=i.particles.quadTree.queryCircle(s,n);for(const r of o){if(e===r||!r.options.move.attract.enable||r.destroyed||r.spawning)continue;const a=r.getPosition(),{dx:c,dy:l}=ne(s,a),u=e.options.move.attract.rotate,h=c/(u.x*Ho),f=l/(u.y*Ho),d=r.size.value/e.size.value,p=am/d;e.velocity.x-=h*d,e.velocity.y-=f*d,r.velocity.x+=h*p,r.velocity.y+=f*p}}isEnabled(e){return e.options.move.attract.enable}reset(){}}async function lm(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("particlesAttract",i=>Promise.resolve(new cm(i)),e)}const um=.5,hm=10,fm=0;function Go(t,e,i,n,s,o){const r=ye(t.options.collisions.absorb.speed*s.factor/hm,fm,n);t.size.value+=r*um,i.size.value-=r,n<=o&&(i.size.value=0,i.destroy())}function dm(t,e,i,n){const s=t.getRadius(),o=e.getRadius();s===void 0&&o!==void 0?t.destroy():s!==void 0&&o===void 0?e.destroy():s!==void 0&&o!==void 0&&(s>=o?Go(t,s,e,o,i,n):Go(e,o,t,s,i,n))}const Ko=t=>{t.collisionMaxSpeed===void 0&&(t.collisionMaxSpeed=S(t.options.collisions.maxSpeed)),t.velocity.length>t.collisionMaxSpeed&&(t.velocity.length=t.collisionMaxSpeed)};function Ya(t,e){_a(jn(t),jn(e)),Ko(t),Ko(e)}function pm(t,e){!t.unbreakable&&!e.unbreakable&&Ya(t,e),t.getRadius()===void 0&&e.getRadius()!==void 0?t.destroy():t.getRadius()!==void 0&&e.getRadius()===void 0?e.destroy():t.getRadius()!==void 0&&e.getRadius()!==void 0&&(t.getRadius()>=e.getRadius()?e:t).destroy()}function mm(t,e,i,n){switch(t.options.collisions.mode){case At.absorb:{dm(t,e,i,n);break}case At.bounce:{Ya(t,e);break}case At.destroy:{pm(t,e);break}}}const gm=2;class ym extends gs{constructor(e){super(e)}clear(){}init(){}interact(e,i){if(e.destroyed||e.spawning)return;const n=this.container,s=e.getPosition(),o=e.getRadius(),r=n.particles.quadTree.queryCircle(s,o*gm);for(const a of r){if(e===a||!a.options.collisions.enable||e.options.collisions.mode!==a.options.collisions.mode||a.destroyed||a.spawning)continue;const c=a.getPosition(),l=a.getRadius();if(Math.abs(Math.round(s.z)-Math.round(c.z))>o+l)continue;const u=le(s,c),h=o+l;u>h||mm(e,a,i,n.retina.pixelRatio)}}isEnabled(e){return e.options.collisions.enable}reset(){}}async function vm(t,e=!0){t.checkVersion("3.9.1"),await t.addInteractor("particlesCollisions",i=>Promise.resolve(new ym(i)),e)}const bn=2;class bm extends Q{constructor(e,i,n,s){super(e,i,n),this.canvasSize=s,this.canvasSize={...s}}contains(e){const{width:i,height:n}=this.canvasSize,{x:s,y:o}=e;return super.contains(e)||super.contains({x:s-i,y:o})||super.contains({x:s-i,y:o-n})||super.contains({x:s,y:o-n})}intersects(e){if(super.intersects(e))return!0;const i=e,n=e,s={x:e.position.x-this.canvasSize.width,y:e.position.y-this.canvasSize.height};if(n.radius!==void 0){const o=new Q(s.x,s.y,n.radius*bn);return super.intersects(o)}else if(i.size!==void 0){const o=new Te(s.x,s.y,i.size.width*bn,i.size.height*bn);return super.intersects(o)}return!1}}class xm{constructor(){this.blur=5,this.color=new ee,this.color.value="#000",this.enable=!1}load(e){P(e)||(e.blur!==void 0&&(this.blur=e.blur),this.color=ee.create(this.color,e.color),e.enable!==void 0&&(this.enable=e.enable))}}class wm{constructor(){this.enable=!1,this.frequency=1}load(e){P(e)||(e.color!==void 0&&(this.color=ee.create(this.color,e.color)),e.enable!==void 0&&(this.enable=e.enable),e.frequency!==void 0&&(this.frequency=e.frequency),e.opacity!==void 0&&(this.opacity=e.opacity))}}class Pm{constructor(){this.blink=!1,this.color=new ee,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new xm,this.triangles=new wm,this.width=1,this.warp=!1}load(e){P(e)||(e.id!==void 0&&(this.id=e.id),e.blink!==void 0&&(this.blink=e.blink),this.color=ee.create(this.color,e.color),e.consent!==void 0&&(this.consent=e.consent),e.distance!==void 0&&(this.distance=e.distance),e.enable!==void 0&&(this.enable=e.enable),e.frequency!==void 0&&(this.frequency=e.frequency),e.opacity!==void 0&&(this.opacity=e.opacity),this.shadow.load(e.shadow),this.triangles.load(e.triangles),e.width!==void 0&&(this.width=e.width),e.warp!==void 0&&(this.warp=e.warp))}}const Xo=2,Sm=1,Pi={x:0,y:0},Tm=0;function Cm(t,e,i,n,s){const{dx:o,dy:r,distance:a}=ne(t,e);if(!s||a<=i)return a;const c={x:Math.abs(o),y:Math.abs(r)},l={x:Math.min(c.x,n.width-c.x),y:Math.min(c.y,n.height-c.y)};return Math.sqrt(l.x**Xo+l.y**Xo)}class km extends gs{constructor(e,i){super(e),this._setColor=n=>{if(!n.options.links)return;const s=this._linkContainer,o=n.options.links;let r=o.id===void 0?s.particles.linksColor:s.particles.linksColors.get(o.id);if(r)return;const a=o.color;r=Va(this._engine,a,o.blink,o.consent),o.id===void 0?s.particles.linksColor=r:s.particles.linksColors.set(o.id,r)},this._linkContainer=e,this._engine=i}clear(){}init(){this._linkContainer.particles.linksColor=void 0,this._linkContainer.particles.linksColors=new Map}interact(e){if(!e.options.links)return;e.links=[];const i=e.getPosition(),n=this.container,s=n.canvas.size;if(i.x<Pi.x||i.y<Pi.y||i.x>s.width||i.y>s.height)return;const o=e.options.links,r=o.opacity,a=e.retina.linksDistance??Tm,c=o.warp;let l;c?l=new bm(i.x,i.y,a,s):l=new Q(i.x,i.y,a);const u=n.particles.quadTree.query(l);for(const h of u){const f=h.options.links;
1if(e===h||!(f!=null&&f.enable)||o.id!==f.id||h.spawning||h.destroyed||!h.links||e.links.some(g=>g.destination===h)||h.links.some(g=>g.destination===e))continue;const d=h.getPosition();if(d.x<Pi.x||d.y<Pi.y||d.x>s.width||d.y>s.height)continue;const p=Cm(i,d,a,s,c&&f.warp);if(p>a)continue;const m=(Sm-p/a)*r;this._setColor(e),e.links.push({destination:h,opacity:m})}}isEnabled(e){var i;return!!((i=e.options.links)!=null&&i.enable)}loadParticlesOptions(e,...i){e.links||(e.links=new Pm);for(const n of i)e.links.load(n==null?void 0:n.links)}reset(){}}async function _m(t,e=!0){await t.addInteractor("particlesLinks",async i=>Promise.resolve(new km(i,t)),e)}function Mm(t,e,i,n){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.lineTo(n.x,n.y),t.closePath()}function Dm(t){let e=!1;const{begin:i,end:n,engine:s,maxDistance:o,context:r,canvasSize:a,width:c,backgroundMask:l,colorLine:u,opacity:h,links:f}=t;if(le(i,n)<=o)Yt(r,i,n),e=!0;else if(f.warp){let p,m;const g={x:n.x-a.width,y:n.y},y=ne(i,g);if(y.distance<=o){const v=i.y-y.dy/y.dx*i.x;p={x:0,y:v},m={x:a.width,y:v}}else{const v={x:n.x,y:n.y-a.height},b=ne(i,v);if(b.distance<=o){const w=-(i.y-b.dy/b.dx*i.x)/(b.dy/b.dx);p={x:w,y:0},m={x:w,y:a.height}}else{const x={x:n.x-a.width,y:n.y-a.height},w=ne(i,x);if(w.distance<=o){const k=i.y-w.dy/w.dx*i.x;p={x:-k/(w.dy/w.dx),y:k},m={x:p.x+a.width,y:p.y+a.height}}}}p&&m&&(Yt(r,i,p),Yt(r,n,m),e=!0)}if(!e)return;r.lineWidth=c,l.enable&&(r.globalCompositeOperation=l.composite),r.strokeStyle=ze(u,h);const{shadow:d}=f;if(d.enable){const p=Pe(s,d.color);p&&(r.shadowBlur=d.blur,r.shadowColor=ze(p))}r.stroke()}function Rm(t){const{context:e,pos1:i,pos2:n,pos3:s,backgroundMask:o,colorTriangle:r,opacityTriangle:a}=t;Mm(e,i,n,s),o.enable&&(e.globalCompositeOperation=o.composite),e.fillStyle=ze(r,a),e.fill()}function Am(t){return t.sort((e,i)=>e-i),t.join("_")}function Yo(t,e){const i=Am(t.map(s=>s.id));let n=e.get(i);return n===void 0&&(n=A(),e.set(i,n)),n}const Zo=0,xn=0,Qo=0,Em=.5,Om=1;class Vm{constructor(e,i){this._drawLinkLine=(n,s)=>{const o=n.options.links;if(!(o!=null&&o.enable))return;const r=this._container,a=r.actualOptions,c=s.destination,l=n.getPosition(),u=c.getPosition();let h=s.opacity;r.canvas.draw(f=>{var v;let d;const p=(v=n.options.twinkle)==null?void 0:v.lines;if(p!=null&&p.enable){const b=p.frequency,x=Pe(this._engine,p.color);A()<b&&x&&(d=x,h=S(p.opacity))}if(!d){const b=o.id!==void 0?r.particles.linksColors.get(o.id):r.particles.linksColor;d=$n(n,c,b)}if(!d)return;const m=n.retina.linksWidth??xn,g=n.retina.linksDistance??Qo,{backgroundMask:y}=a;Dm({context:f,width:m,begin:l,end:u,engine:this._engine,maxDistance:g,canvasSize:r.canvas.size,links:o,backgroundMask:y,colorLine:d,opacity:h})})},this._drawLinkTriangle=(n,s,o)=>{const r=n.options.links;if(!(r!=null&&r.enable))return;const a=r.triangles;if(!a.enable)return;const c=this._container,l=c.actualOptions,u=s.destination,h=o.destination,f=a.opacity??(s.opacity+o.opacity)*Em;f<=Zo||c.canvas.draw(d=>{const p=n.getPosition(),m=u.getPosition(),g=h.getPosition(),y=n.retina.linksDistance??Qo;if(le(p,m)>y||le(g,m)>y||le(g,p)>y)return;let v=Pe(this._engine,a.color);if(!v){const b=r.id!==void 0?c.particles.linksColors.get(r.id):c.particles.linksColor;v=$n(n,u,b)}v&&Rm({context:d,pos1:p,pos2:m,pos3:g,backgroundMask:l.backgroundMask,colorTriangle:v,opacityTriangle:f})})},this._drawTriangles=(n,s,o,r)=>{var l,u,h;const a=o.destination;if(!((l=n.links)!=null&&l.triangles.enable&&((u=a.options.links)!=null&&u.triangles.enable)))return;const c=(h=a.links)==null?void 0:h.filter(f=>{const d=this._getLinkFrequency(a,f.destination);return a.options.links&&d<=a.options.links.frequency&&r.findIndex(m=>m.destination===f.destination)>=0});if(c!=null&&c.length)for(const f of c){const d=f.destination;this._getTriangleFrequency(s,a,d)>n.links.triangles.frequency||this._drawLinkTriangle(s,o,f)}},this._getLinkFrequency=(n,s)=>Yo([n,s],this._freqs.links),this._getTriangleFrequency=(n,s,o)=>Yo([n,s,o],this._freqs.triangles),this._container=e,this._engine=i,this._freqs={links:new Map,triangles:new Map}}
vendor: 4,107 bytes, line 1
1drawParticle(e,i){const{links:n,options:s}=i;if(!(n!=null&&n.length))return;const o=n.filter(r=>s.links&&(s.links.frequency>=Om||this._getLinkFrequency(i,r.destination)<=s.links.frequency));for(const r of o)this._drawTriangles(s,i,r,o),r.opacity>Zo&&(i.retina.linksWidth??xn)>xn&&this._drawLinkLine(i,r)}async init(){this._freqs.links=new Map,this._freqs.triangles=new Map,await Promise.resolve()}particleCreated(e){if(e.links=[],!e.options.links)return;const i=this._container.retina.pixelRatio,{retina:n}=e,{distance:s,width:o}=e.options.links;n.linksDistance=s*i,n.linksWidth=o*i}particleDestroyed(e){e.links=[]}}class Lm{constructor(e){this.id="links",this._engine=e}getPlugin(e){return Promise.resolve(new Vm(e,this._engine))}loadOptions(){}needsPlugin(){return!0}}async function zm(t,e=!0){const i=new Lm(t);await t.addPlugin(i,e)}async function Im(t,e=!0){t.checkVersion("3.9.1"),await _m(t,e),await zm(t,e)}const Fm=180,Si={x:0,y:0},Bm=2;function jm(t,e,i){const{context:n}=t,s=i.count.numerator*i.count.denominator,o=i.count.numerator/i.count.denominator,r=Fm*(o-Bm)/o,a=Math.PI-Ne(r);if(n){n.beginPath(),n.translate(e.x,e.y),n.moveTo(Si.x,Si.y);for(let c=0;c<s;c++)n.lineTo(i.length,Si.y),n.translate(i.length,Si.y),n.rotate(a)}}const Um=5;class Za{draw(e){const{particle:i,radius:n}=e,s=this.getCenter(i,n),o=this.getSidesData(i,n);jm(e,s,o)}getSidesCount(e){const i=e.shapeData;return Math.round(S((i==null?void 0:i.sides)??Um))}}const Jo=3.5,er=2.66,$m=3;class qm extends Za{constructor(){super(...arguments),this.validTypes=["polygon"]}getCenter(e,i){return{x:-i/(e.sides/Jo),y:-i/(er/Jo)}}getSidesData(e,i){const n=e.sides;return{count:{denominator:1,numerator:n},length:i*er/(n/$m)}}}const Nm=1.66,Wm=3,Hm=2;class Gm extends Za{constructor(){super(...arguments),this.validTypes=["triangle"]}getCenter(e,i){return{x:-i,y:i/Nm}}getSidesCount(){return Wm}getSidesData(e,i){const n=i*Hm;return{count:{denominator:2,numerator:3},length:n}}}async function Km(t,e=!0){t.checkVersion("3.9.1"),await t.addShape(new qm,e)}async function Xm(t,e=!0){t.checkVersion("3.9.1"),await t.addShape(new Gm,e)}async function Ym(t,e=!0){t.checkVersion("3.9.1"),await Km(t,e),await Xm(t,e)}class Zm{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(e){P(e)||(e.enable!==void 0&&(this.enable=e.enable),e.speed!==void 0&&(this.speed=D(e.speed)),e.decay!==void 0&&(this.decay=D(e.decay)),e.sync!==void 0&&(this.sync=e.sync))}}class Qm extends gt{constructor(){super(),this.animation=new Zm,this.direction=xe.clockwise,this.path=!1,this.value=0}load(e){P(e)||(super.load(e),e.direction!==void 0&&(this.direction=e.direction),this.animation.load(e.animation),e.path!==void 0&&(this.path=e.path))}}const Qa=2,Jm=Math.PI*Qa,eg=1,tg=360;class ig{constructor(e){this.container=e}init(e){const i=e.options.rotate;if(!i)return;e.rotate={enable:i.animation.enable,value:Ne(S(i.value)),min:0,max:Jm},e.pathRotation=i.path;let n=i.direction;switch(n===xe.random&&(n=Math.floor(A()*Qa)>0?xe.counterClockwise:xe.clockwise),n){case xe.counterClockwise:case"counterClockwise":e.rotate.status=U.decreasing;break;case xe.clockwise:e.rotate.status=U.increasing;break}const s=i.animation;s.enable&&(e.rotate.decay=eg-S(s.decay),e.rotate.velocity=S(s.speed)/tg*this.container.retina.reduceFactor,s.sync||(e.rotate.velocity*=A())),e.rotation=e.rotate.value}isEnabled(e){const i=e.options.rotate;return i?!e.destroyed&&!e.spawning&&(!!i.value||i.animation.enable||i.path):!1}loadOptions(e,...i){e.rotate||(e.rotate=new Qm);for(const n of i)e.rotate.load(n==null?void 0:n.rotate)}update(e,i){this.isEnabled(e)&&(e.isRotating=!!e.rotate,e.rotate&&(fs(e,e.rotate,!1,dt.none,i),e.rotation=e.rotate.value))}}async function ng(t,e=!0){t.checkVersion("3.9.1"),await t.addParticleUpdater("rotate",i=>Promise.resolve(new ig(i)),e)}const sg=2,og=Math.sqrt(sg),rg=2;function ag(t){const{context:e,radius:i}=t,n=i/og,s=n*rg;e.rect(-n,-n,s,s)}const cg=4;class lg{constructor(){this.validTypes=["edge","square"]}draw(e){ag(e)}getSidesCount(){return cg}}async function ug(t,e=!0){t.checkVersion("3.9.1"),await t.addShape(new lg,e)}
1const hg=2,xt={x:0,y:0};function fg(t){const{context:e,particle:i,radius:n}=t,s=i.sides,o=i.starInset??hg;e.moveTo(xt.x,xt.y-n);for(let r=0;r<s;r++)e.rotate(Math.PI/s),e.lineTo(xt.x,xt.y-n*o),e.rotate(Math.PI/s),e.lineTo(xt.x,xt.y-n)}const dg=2,pg=5;class mg{constructor(){this.validTypes=["star"]}draw(e){fg(e)}getSidesCount(e){const i=e.shapeData;return Math.round(S((i==null?void 0:i.sides)??pg))}particleInit(e,i){const n=i.shapeData;i.starInset=S((n==null?void 0:n.inset)??dg)}}async function gg(t,e=!0){t.checkVersion("3.9.1"),await t.addShape(new mg,e)}const yg=1;class vg{constructor(e,i){this._container=e,this._engine=i}init(e){var r;const i=this._container,n=e.options,s=me(n.stroke,e.id,n.reduceDuplicates);e.strokeWidth=S(s.width)*i.retina.pixelRatio,e.strokeOpacity=S(s.opacity??yg),e.strokeAnimation=(r=s.color)==null?void 0:r.animation;const o=ti(this._engine,s.color)??e.getFillColor();o&&(e.strokeColor=La(o,e.strokeAnimation,i.retina.reduceFactor))}isEnabled(e){const i=e.strokeAnimation,{strokeColor:n}=e;return!e.destroyed&&!e.spawning&&!!i&&((n==null?void 0:n.h.value)!==void 0&&n.h.enable||(n==null?void 0:n.s.value)!==void 0&&n.s.enable||(n==null?void 0:n.l.value)!==void 0&&n.l.enable)}update(e,i){this.isEnabled(e)&&za(e.strokeColor,i)}}async function bg(t,e=!0){t.checkVersion("3.9.1"),await t.addParticleUpdater("strokeColor",i=>Promise.resolve(new vg(i,t)),e)}async function xg(t,e=!0){t.checkVersion("3.9.1"),await rm(t,!1),await ud(t,!1),await bd(t,!1),await _d(t,!1),await Id(t,!1),await Gd(t,!1),await Yd(t,!1),await tp(t,!1),await op(t,!1),await gp(t,!1),await wp(t,!1),await lm(t,!1),await vm(t,!1),await Im(t,!1),await ed(t,!1),await nd(t,!1),await Gp(t,!1),await sm(t,!1),await Ym(t,!1),await ug(t,!1),await gg(t,!1),await em(t,!1),await ng(t,!1),await bg(t,!1),await Jf(t,e)}const Ja=_.createContext({});function ec(t){const e=_.useRef(null);return e.current===null&&(e.current=t()),e.current}const vs=_.createContext(null),tc=_.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function wg(t=!0){const e=_.useContext(vs);if(e===null)return[!0,null];const{isPresent:i,onExitComplete:n,register:s}=e,o=_.useId();_.useEffect(()=>{t&&s(o)},[t]);const r=_.useCallback(()=>t&&n&&n(o),[o,n,t]);return!i&&n?[!1,r]:[!0]}const bs=typeof window<"u",ic=bs?_.useLayoutEffect:_.useEffect,oe=t=>t;let Jx=oe,nc=oe;function xs(t){let e;return()=>(e===void 0&&(e=t()),e)}const jt=(t,e,i)=>{const n=e-t;return n===0?1:(i-t)/n},Ie=t=>t*1e3,Fe=t=>t/1e3,Pg={useManualTiming:!1};function Sg(t){let e=new Set,i=new Set,n=!1,s=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(l){o.has(l)&&(c.schedule(l),t()),l(r)}const c={schedule:(l,u=!1,h=!1)=>{const d=h&&n?e:i;return u&&o.add(l),d.has(l)||d.add(l),l},cancel:l=>{i.delete(l),o.delete(l)},process:l=>{if(r=l,n){s=!0;return}n=!0,[e,i]=[i,e],e.forEach(a),e.clear(),n=!1,s&&(s=!1,c.process(l))}};return c}const Ti=["read","resolveKeyframes","update","preRender","render","postRender"],Tg=40;function sc(t,e){let i=!1,n=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>i=!0,r=Ti.reduce((y,v)=>(y[v]=Sg(o),y),{}),{read:a,resolveKeyframes:c,update:l,preRender:u,render:h,postRender:f}=r,d=()=>{const y=performance.now();i=!1,s.delta=n?1e3/60:Math.max(Math.min(y-s.timestamp,Tg),1),s.timestamp=y,s.isProcessing=!0,a.process(s),c.process(s),l.process(s),u.process(s),h.process(s),f.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(d))},p=()=>{i=!0,n=!0,s.isProcessing||t(d)};return{schedule:Ti.reduce((y,v)=>{const b=r[v];return y[v]=(x,w=!1,k=!1)=>(i||p(),b.schedule(x,w,k)),y},{}),cancel:y=>{for(let v=0;v<Ti.length;v++)r[Ti[v]].cancel(y)},state:s,steps:r}}const{schedule:O,cancel:Ge,state:W,steps:wn}=sc(typeof requestAnimationFrame<"u"?requestAnimationFrame:oe,!0),oc=_.createContext({strict:!1}),tr={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ut={};for(const t in tr)Ut[t]={isEnabled:e=>tr[t].some(i=>!!e[i])};function Cg(t){for(const e in t)Ut[e]={...Ut[e],...t[e]}}const kg=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Bi(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||kg.has(t)}let rc=t=>!Bi(t);function _g(t){t&&(rc=e=>e.startsWith("on")?!Bi(e):t(e))}try{_g(require("@emotion/is-prop-valid").default)}catch{}function Mg(t,e,i){const n={};for(const s in t)s==="values"&&typeof t.values=="object"||(rc(s)||i===!0&&Bi(s)||
vendor: 29,460 bytes, line 1
1!e&&!Bi(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}function Dg(t){if(typeof Proxy>"u")return t;const e=new Map,i=(...n)=>t(...n);return new Proxy(i,{get:(n,s)=>s==="create"?t:(e.has(s)||e.set(s,t(s)),e.get(s))})}const Xi=_.createContext({});function oi(t){return typeof t=="string"||Array.isArray(t)}function Yi(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const ws=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ps=["initial",...ws];function Zi(t){return Yi(t.animate)||Ps.some(e=>oi(t[e]))}function ac(t){return!!(Zi(t)||t.variants)}function Rg(t,e){if(Zi(t)){const{initial:i,animate:n}=t;return{initial:i===!1||oi(i)?i:void 0,animate:oi(n)?n:void 0}}return t.inherit!==!1?e:{}}function Ag(t){const{initial:e,animate:i}=Rg(t,_.useContext(Xi));return _.useMemo(()=>({initial:e,animate:i}),[ir(e),ir(i)])}function ir(t){return Array.isArray(t)?t.join(" "):t}const Eg=Symbol.for("motionComponentSymbol");function Tt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Og(t,e,i){return _.useCallback(n=>{n&&t.onMount&&t.onMount(n),e&&(n?e.mount(n):e.unmount()),i&&(typeof i=="function"?i(n):Tt(i)&&(i.current=n))},[e])}const Ss=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Vg="framerAppearId",cc="data-"+Ss(Vg),{schedule:Ts}=sc(queueMicrotask,!1),lc=_.createContext({});function Lg(t,e,i,n,s){var o,r;const{visualElement:a}=_.useContext(Xi),c=_.useContext(oc),l=_.useContext(vs),u=_.useContext(tc).reducedMotion,h=_.useRef(null);n=n||c.renderer,!h.current&&n&&(h.current=n(t,{visualState:e,parent:a,props:i,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const f=h.current,d=_.useContext(lc);f&&!f.projection&&s&&(f.type==="html"||f.type==="svg")&&zg(h.current,i,s,d);const p=_.useRef(!1);_.useInsertionEffect(()=>{f&&p.current&&f.update(i,l)});const m=i[cc],g=_.useRef(!!m&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,m))&&((r=window.MotionHasOptimisedAnimation)===null||r===void 0?void 0:r.call(window,m)));return ic(()=>{f&&(p.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Ts.render(f.render),g.current&&f.animationState&&f.animationState.animateChanges())}),_.useEffect(()=>{f&&(!g.current&&f.animationState&&f.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,m)}),g.current=!1))}),f}function zg(t,e,i,n){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:c,layoutRoot:l}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:uc(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!r||a&&Tt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:n,layoutScroll:c,layoutRoot:l})}function uc(t){if(t)return t.options.allowProjection!==!1?t.projection:uc(t.parent)}function Ig({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:n,Component:s}){var o,r;t&&Cg(t);function a(l,u){let h;const f={..._.useContext(tc),...l,layoutId:Fg(l)},{isStatic:d}=f,p=Ag(l),m=n(l,d);if(!d&&bs){Bg();const g=jg(f);h=g.MeasureLayout,p.visualElement=Lg(s,m,f,e,g.ProjectionNode)}return Vt.jsxs(Xi.Provider,{value:p,children:[h&&p.visualElement?Vt.jsx(h,{visualElement:p.visualElement,...f}):null,i(s,l,Og(m,p.visualElement,u),m,d,p.visualElement)]})}a.displayName=`motion.${typeof s=="string"?s:`create(${(r=(o=s.displayName)!==null&&o!==void 0?o:s.name)!==null&&r!==void 0?r:""})`}`;const c=_.forwardRef(a);return c[Eg]=s,c}function Fg({layoutId:t}){const e=_.useContext(Ja).id;return e&&t!==void 0?e+"-"+t:t}function Bg(t,e){_.useContext(oc).strict}function jg(t){const{drag:e,layout:i}=Ut;if(!e&&!i)return{};const n={...e,...i};return{MeasureLayout:e!=null&&e.isEnabled(t)||i!=null&&i.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}const Ug=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Cs(t){return typeof t!="string"||t.includes("-")?!1:!!(Ug.indexOf(t)>-1||/[A-Z]/u.test(t))}function nr(t){const e=[{},{}];return t==null||t.values.forEach((i,n)=>{e[0][n]=i.get(),e[1][n]=i.getVelocity()}),e}function ks(t,e,i,n){if(typeof e=="function"){const[s,o]=nr(n);e=e(i!==void 0?i:t.custom,s,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[s,o]=nr(n);e=e(i!==void 0?i:t.custom,s,o)}return e}const Wn=t=>Array.isArray(t),$g=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),qg=t=>Wn(t)?t[t.length-1]||0:t,Z=t=>!!(t&&t.getVelocity);function Ri(t){const e=Z(t)?t.get():t;return $g(e)?e.toValue():e}function Ng({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},n,s,o){const r={latestValues:Wg(n,s,o,t),renderState:e()};return i&&(r.onMount=a=>i({props:n,current:a,...r}),r.onUpdate=a=>i(a)),r}const hc=t=>(e,i)=>{const n=_.useContext(Xi),s=_.useContext(vs),o=()=>Ng(t,e,n,s);return i?o():ec(o)};function Wg(t,e,i,n){const s={},o=n(t,{});for(const f in o)s[f]=Ri(o[f]);let{initial:r,animate:a}=t;const c=Zi(t),l=ac(t);e&&l&&!c&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let u=i?i.initial===!1:!1;u=u||r===!1;const h=u?a:r;if(h&&typeof h!="boolean"&&!Yi(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const p=ks(t,f[d]);if(p){const{transitionEnd:m,transition:g,...y}=p;for(const v in y){let b=y[v];if(Array.isArray(b)){const x=u?b.length-1:0;b=b[x]}b!==null&&(s[v]=b)}for(const v in m)s[v]=m[v]}}}return s}const qt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],yt=new Set(qt),fc=t=>e=>typeof e=="string"&&e.startsWith(t),dc=fc("--"),Hg=fc("var(--"),_s=t=>Hg(t)?Gg.test(t.split("/*")[0].trim()):!1,Gg=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,pc=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Be=(t,e,i)=>i>e?e:i<t?t:i,Nt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ri={...Nt,transform:t=>Be(0,1,t)},Ci={...Nt,default:1},hi=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),je=hi("deg"),Me=hi("%"),C=hi("px"),Kg=hi("vh"),Xg=hi("vw"),sr={...Me,parse:t=>Me.parse(t)/100,transform:t=>Me.transform(t*100)},Yg={borderWidth:C,borderTopWidth:C,borderRightWidth:C,borderBottomWidth:C,borderLeftWidth:C,borderRadius:C,radius:C,borderTopLeftRadius:C,borderTopRightRadius:C,borderBottomRightRadius:C,borderBottomLeftRadius:C,width:C,maxWidth:C,height:C,maxHeight:C,top:C,right:C,bottom:C,left:C,padding:C,paddingTop:C,paddingRight:C,paddingBottom:C,paddingLeft:C,margin:C,marginTop:C,marginRight:C,marginBottom:C,marginLeft:C,backgroundPositionX:C,backgroundPositionY:C},Zg={rotate:je,rotateX:je,rotateY:je,rotateZ:je,scale:Ci,scaleX:Ci,scaleY:Ci,scaleZ:Ci,skew:je,skewX:je,skewY:je,distance:C,translateX:C,translateY:C,translateZ:C,x:C,y:C,z:C,perspective:C,transformPerspective:C,opacity:ri,originX:sr,originY:sr,originZ:C},or={...Nt,transform:Math.round},Ms={...Yg,...Zg,zIndex:or,size:C,fillOpacity:ri,strokeOpacity:ri,numOctaves:or},Qg={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Jg=qt.length;function ey(t,e,i){let n="",s=!0;for(let o=0;o<Jg;o++){const r=qt[o],a=t[r];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(r.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||i){const l=pc(a,Ms[r]);if(!c){s=!1;const u=Qg[r]||r;n+=`${u}(${l}) `}i&&(e[r]=l)}}return n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}function Ds(t,e,i){const{style:n,vars:s,transformOrigin:o}=t;let r=!1,a=!1;for(const c in e){const l=e[c];if(yt.has(c)){r=!0;continue}else if(dc(c)){s[c]=l;continue}else{const u=pc(l,Ms[c]);c.startsWith("origin")?(a=!0,o[c]=u):n[c]=u}}if(e.transform||(r||i?n.transform=ey(e,t.transform,i):n.transform&&(n.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=o;n.transformOrigin=`${c} ${l} ${u}`}}const ty={offset:"stroke-dashoffset",array:"stroke-dasharray"},iy={offset:"strokeDashoffset",array:"strokeDasharray"};function ny(t,e,i=1,n=0,s=!0){t.pathLength=1;const o=s?ty:iy;t[o.offset]=C.transform(-n);const r=C.transform(e),a=C.transform(i);t[o.array]=`${r} ${a}`}function rr(t,e,i){return typeof t=="string"?t:C.transform(e+i*t)}function sy(t,e,i){const n=rr(e,t.x,t.width),s=rr(i,t.y,t.height);return`${n} ${s}`}function Rs(t,{attrX:e,attrY:i,attrScale:n,originX:s,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:c=0,...l},u,h){if(Ds(t,l,h),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:d,dimensions:p}=t;f.transform&&(p&&(d.transform=f.transform),delete f.transform),p&&(s!==void 0||o!==void 0||d.transform)&&(d.transformOrigin=sy(p,s!==void 0?s:.5,o!==void 0?o:.5)),e!==void 0&&(f.x=e),i!==void 0&&(f.y=i),n!==void 0&&(f.scale=n),r!==void 0&&ny(f,r,a,c,!1)}const As=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),mc=()=>({...As(),attrs:{}}),Es=t=>typeof t=="string"&&t.toLowerCase()==="svg";function gc(t,{style:e,vars:i},n,s){Object.assign(t.style,e,s&&s.getProjectionStyles(n));for(const o in i)t.style.setProperty(o,i[o])}const yc=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function vc(t,e,i,n){gc(t,e,void 0,n);for(const s in e.attrs)t.setAttribute(yc.has(s)?s:Ss(s),e.attrs[s])}const ji={};function oy(t){Object.assign(ji,t)}function bc(t,{layout:e,layoutId:i}){return yt.has(t)||t.startsWith("origin")||(e||i!==void 0)&&(!!ji[t]||t==="opacity")}function Os(t,e,i){var n;const{style:s}=t,o={};for(const r in s)(Z(s[r])||e.style&&Z(e.style[r])||bc(r,t)||((n=i==null?void 0:i.getValue(r))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(o[r]=s[r]);return o}function xc(t,e,i){const n=Os(t,e,i);for(const s in t)if(Z(t[s])||Z(e[s])){const o=qt.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;n[o]=t[s]}return n}function ry(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const ar=["x","y","width","height","cx","cy","r"],ay={useVisualState:hc({scrapeMotionValuesFromProps:xc,createRenderState:mc,onUpdate:({props:t,prevProps:e,current:i,renderState:n,latestValues:s})=>{if(!i)return;let o=!!t.drag;if(!o){for(const a in s)if(yt.has(a)){o=!0;break}}if(!o)return;let r=!e;if(e)for(let a=0;a<ar.length;a++){const c=ar[a];t[c]!==e[c]&&(r=!0)}r&&O.read(()=>{ry(i,n),O.render(()=>{Rs(n,s,Es(i.tagName),t.transformTemplate),vc(i,n)})})}})},cy={useVisualState:hc({scrapeMotionValuesFromProps:Os,createRenderState:As})};function wc(t,e,i){for(const n in e)!Z(e[n])&&!bc(n,i)&&(t[n]=e[n])}function ly({transformTemplate:t},e){return _.useMemo(()=>{const i=As();return Ds(i,e,t),Object.assign({},i.vars,i.style)},[e])}function uy(t,e){const i=t.style||{},n={};return wc(n,i,t),Object.assign(n,ly(t,e)),n}function hy(t,e){const i={},n=uy(t,e);return t.drag&&t.dragListener!==!1&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i}function fy(t,e,i,n){const s=_.useMemo(()=>{const o=mc();return Rs(o,e,Es(n),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};wc(o,t.style,t),s.style={...o,...s.style}}return s}function dy(t=!1){return(i,n,s,{latestValues:o},r)=>{const c=(Cs(i)?fy:hy)(n,o,r,i),l=Mg(n,typeof i=="string",t),u=i!==_.Fragment?{...l,...c,ref:s}:{},{children:h}=n,f=_.useMemo(()=>Z(h)?h.get():h,[h]);return _.createElement(i,{...u,children:f})}}function py(t,e){return function(n,{forwardMotionProps:s}={forwardMotionProps:!1}){const r={...Cs(n)?ay:cy,preloadedFeatures:t,useRender:dy(s),createVisualElement:e,Component:n};return Ig(r)}}function Pc(t,e){if(!Array.isArray(e))return!1;const i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function Qi(t,e,i){const n=t.getProps();return ks(n,e,i!==void 0?i:n.custom,t)}const my=xs(()=>window.ScrollTimeline!==void 0);class gy{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,i){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=i}attachTimeline(e,i){const n=this.animations.map(s=>{if(my()&&s.attachTimeline)return s.attachTimeline(e);if(typeof i=="function")return i(s)});return()=>{n.forEach((s,o)=>{s&&s(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let i=0;i<this.animations.length;i++)e=Math.max(e,this.animations[i].duration);return e}runAll(e){this.animations.forEach(i=>i[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class yy extends gy{then(e,i){return Promise.all(this.animations).then(e).catch(i)}}function Vs(t,e){return t?t[e]||t.default||t:void 0}const Hn=2e4;function Sc(t){let e=0;const i=50;let n=t.next(e);for(;!n.done&&e<Hn;)e+=i,n=t.next(e);return e>=Hn?1/0:e}function Ls(t){return typeof t=="function"}function cr(t,e){t.timeline=e,t.onfinish=null}const zs=t=>Array.isArray(t)&&typeof t[0]=="number",vy={linearEasing:void 0};function by(t,e){const i=xs(t);return()=>{var n;return(n=vy[e])!==null&&n!==void 0?n:i()}}const Ui=by(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Tc=(t,e,i=10)=>{let n="";const s=Math.max(Math.round(e/i),2);for(let o=0;o<s;o++)n+=t(jt(0,s-1,o))+", ";return`linear(${n.substring(0,n.length-2)})`};function Cc(t){return!!(typeof t=="function"&&Ui()||!t||typeof t=="string"&&(t in Gn||Ui())||zs(t)||Array.isArray(t)&&t.every(Cc))}const Gt=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,Gn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gt([0,.65,.55,1]),circOut:Gt([.55,0,1,.45]),backIn:Gt([.31,.01,.66,-.59]),backOut:Gt([.33,1.53,.69,.99])};function kc(t,e){if(t)return typeof t=="function"&&Ui()?Tc(t,e):zs(t)?Gt(t):Array.isArray(t)?t.map(i=>kc(i,e)||Gn.easeOut):Gn[t]}const ve={x:!1,y:!1};function _c(){return ve.x||ve.y}function xy(t,e,i){var n;if(t instanceof Element)return[t];if(typeof t=="string"){let s=document;const o=(n=void 0)!==null&&n!==void 0?n:s.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function Mc(t,e){const i=xy(t),n=new AbortController,s={passive:!0,...e,signal:n.signal};return[i,s,()=>n.abort()]}function lr(t){return e=>{e.pointerType==="touch"||_c()||t(e)}}function wy(t,e,i={}){const[n,s,o]=Mc(t,i),r=lr(a=>{const{target:c}=a,l=e(a);if(typeof l!="function"||!c)return;const u=lr(h=>{l(h),c.removeEventListener("pointerleave",u)});c.addEventListener("pointerleave",u,s)});return n.forEach(a=>{a.addEventListener("pointerenter",r,s)}),o}const Dc=(t,e)=>e?t===e?!0:Dc(t,e.parentElement):!1,Is=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Py=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Sy(t){return Py.has(t.tagName)||t.tabIndex!==-1}const Kt=new WeakSet;function ur(t){return e=>{e.key==="Enter"&&t(e)}}function Pn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Ty=(t,e)=>{const i=t.currentTarget;if(!i)return;const n=ur(()=>{if(Kt.has(i))return;Pn(i,"down");const s=ur(()=>{Pn(i,"up")}),o=()=>Pn(i,"cancel");i.addEventListener("keyup",s,e),i.addEventListener("blur",o,e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function hr(t){return Is(t)&&!_c()}function Cy(t,e,i={}){const[n,s,o]=Mc(t,i),r=a=>{const c=a.currentTarget;if(!hr(a)||Kt.has(c))return;Kt.add(c);const l=e(a),u=(d,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),!(!hr(d)||!Kt.has(c))&&(Kt.delete(c),typeof l=="function"&&l(d,{success:p}))},h=d=>{u(d,i.useGlobalTarget||Dc(c,d.target))},f=d=>{u(d,!1)};window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",f,s)};return n.forEach(a=>{!Sy(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(i.useGlobalTarget?window:a).addEventListener("pointerdown",r,s),a.addEventListener("focus",l=>Ty(l,s),s)}),o}function ky(t){return t==="x"||t==="y"?ve[t]?null:(ve[t]=!0,()=>{ve[t]=!1}):ve.x||ve.y?null:(ve.x=ve.y=!0,()=>{ve.x=ve.y=!1})}const Rc=new Set(["width","height","top","left","right","bottom",...qt]);let Ai;function _y(){Ai=void 0}const De={now:()=>(Ai===void 0&&De.set(W.isProcessing||Pg.useManualTiming?W.timestamp:performance.now()),Ai),set:t=>{Ai=t,queueMicrotask(_y)}};function Fs(t,e){t.indexOf(e)===-1&&t.push(e)}function Bs(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class js{constructor(){this.subscriptions=[]}add(e){return Fs(this.subscriptions,e),()=>Bs(this.subscriptions,e)}notify(e,i,n){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,i,n);else for(let o=0;o<s;o++){const r=this.subscriptions[o];r&&r(e,i,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Ac(t,e){return e?t*(1e3/e):0}const fr=30,My=t=>!isNaN(parseFloat(t)),dr={current:void 0};class Dy{constructor(e,i={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,s=!0)=>{const o=De.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=i.owner}setCurrent(e){this.current=e,this.updatedAt=De.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=My(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,i){this.events[e]||(this.events[e]=new js);const n=this.events[e].add(i);return e==="change"?()=>{n(),O.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,i){this.passiveEffect=e,this.stopPassiveEffect=i}set(e,i=!0){!i||!this.passiveEffect?this.updateAndNotify(e,i):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,i,n){this.set(i),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,i=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return dr.current&&dr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=De.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>fr)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,fr);return Ac(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(e){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=e(i),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ai(t,e){return new Dy(t,e)}function Ry(t,e,i){t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,ai(i))}function Us(t,e){const i=Qi(t,e);let{transitionEnd:n={},transition:s={},...o}=i||{};o={...o,...n};for(const r in o){const a=qg(o[r]);Ry(t,r,a)}}function Ay(t){return!!(Z(t)&&t.add)}function Kn(t,e){const i=t.getValue("willChange");if(Ay(i))return i.add(e)}function Ec(t){return t.props[cc]}const Oc=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t,Ey=1e-7,Oy=12;function Vy(t,e,i,n,s){let o,r,a=0;do r=e+(i-e)/2,o=Oc(r,n,s)-t,o>0?i=r:e=r;while(Math.abs(o)>Ey&&++a<Oy);return r}function fi(t,e,i,n){if(t===e&&i===n)return oe;const s=o=>Vy(o,0,1,t,i);return o=>o===0||o===1?o:Oc(s(o),e,n)}const Vc=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Lc=t=>e=>1-t(1-e),zc=fi(.33,1.53,.69,.99),$s=Lc(zc),Ic=Vc($s),Fc=t=>(t*=2)<1?.5*$s(t):.5*(2-Math.pow(2,-10*(t-1))),qs=t=>1-Math.sin(Math.acos(t)),Bc=Lc(qs),jc=Vc(qs),Uc=t=>/^0[^.\s]+$/u.test(t);function Ly(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Uc(t):!0}const Zt=t=>Math.round(t*1e5)/1e5,Ns=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function zy(t){return t==null}const Iy=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ws=(t,e)=>i=>!!(typeof i=="string"&&Iy.test(i)&&i.startsWith(t)||e&&!zy(i)&&Object.prototype.hasOwnProperty.call(i,e)),$c=(t,e,i)=>n=>{if(typeof n!="string")return n;const[s,o,r,a]=n.match(Ns);return{[t]:parseFloat(s),[e]:parseFloat(o),[i]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},Fy=t=>Be(0,255,t),Sn={...Nt,transform:t=>Math.round(Fy(t))},lt={test:Ws("rgb","red"),parse:$c("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+Sn.transform(t)+", "+Sn.transform(e)+", "+Sn.transform(i)+", "+Zt(ri.transform(n))+")"};function By(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}}const Xn={test:Ws("#"),parse:By,transform:lt.transform},Ct={test:Ws("hsl","hue"),parse:$c("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+Me.transform(Zt(e))+", "+Me.transform(Zt(i))+", "+Zt(ri.transform(n))+")"},G={test:t=>lt.test(t)||Xn.test(t)||Ct.test(t),parse:t=>lt.test(t)?lt.parse(t):Ct.test(t)?Ct.parse(t):Xn.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?lt.transform(t):Ct.transform(t)},jy=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Uy(t){var e,i;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Ns))===null||e===void 0?void 0:e.length)||0)+(((i=t.match(jy))===null||i===void 0?void 0:i.length)||0)>0}const qc="number",Nc="color",$y="var",qy="var(",pr="${}",Ny=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ci(t){const e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[];let o=0;const a=e.replace(Ny,c=>(G.test(c)?(n.color.push(o),s.push(Nc),i.push(G.parse(c))):c.startsWith(qy)?(n.var.push(o),s.push($y),i.push(c)):(n.number.push(o),s.push(qc),i.push(parseFloat(c))),++o,pr)).split(pr);return{values:i,split:a,indexes:n,types:s}}function Wc(t){return ci(t).values}function Hc(t){const{split:e,types:i}=ci(t),n=e.length;return s=>{let o="";for(let r=0;r<n;r++)if(o+=e[r],s[r]!==void 0){const a=i[r];a===qc?o+=Zt(s[r]):a===Nc?o+=G.transform(s[r]):o+=s[r]}return o}}const Wy=t=>typeof t=="number"?0:t;function Hy(t){const e=Wc(t);return Hc(t)(e.map(Wy))}const Ke={test:Uy,parse:Wc,createTransformer:Hc,getAnimatableNone:Hy},Gy=new Set(["brightness","contrast","saturate","opacity"]);function Ky(t){const[e,i]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=i.match(Ns)||[];if(!n)return t;const s=i.replace(n,"");let o=Gy.has(e)?1:0;return n!==i&&(o*=100),e+"("+o+s+")"}const Xy=/\b([a-z-]*)\(.*?\)/gu,Yn={...Ke,getAnimatableNone:t=>{const e=t.match(Xy);return e?e.map(Ky).join(" "):t}},Yy={...Ms,color:G,backgroundColor:G,outlineColor:G,fill:G,stroke:G,borderColor:G,borderTopColor:G,borderRightColor:G,borderBottomColor:G,borderLeftColor:G,filter:Yn,WebkitFilter:Yn},Hs=t=>Yy[t];function Gc(t,e){let i=Hs(t);return i!==Yn&&(i=Ke),i.getAnimatableNone?i.getAnimatableNone(e):void 0}const Zy=new Set(["auto","none","0"]);function Qy(t,e,i){let n=0,s;for(;n<t.length&&!s;){const o=t[n];typeof o=="string"&&!Zy.has(o)&&ci(o).values.length&&(s=t[n]),n++}if(s&&i)for(const o of e)t[o]=Gc(i,s)}const mr=t=>t===Nt||t===C,gr=(t,e)=>parseFloat(t.split(", ")[e]),yr=(t,e)=>(i,{transform:n})=>{if(n==="none"||!n)return 0;const s=n.match(/^matrix3d\((.+)\)$/u);if(s)return gr(s[1],e);{const o=n.match(/^matrix\((.+)\)$/u);return o?gr(o[1],t):0}},Jy=new Set(["x","y","z"]),ev=qt.filter(t=>!Jy.has(t));function tv(t){const e=[];return ev.forEach(i=>{const n=t.getValue(i);n!==void 0&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}const $t={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:yr(4,13),y:yr(5,14)};$t.translateX=$t.x;$t.translateY=$t.y;const ht=new Set;let Zn=!1,Qn=!1;function Kc(){if(Qn){const t=Array.from(ht).filter(n=>n.needsMeasurement),e=new Set(t.map(n=>n.element)),i=new Map;e.forEach(n=>{const s=tv(n);s.length&&(i.set(n,s),n.render())}),t.forEach(n=>n.measureInitialState()),e.forEach(n=>{n.render();const s=i.get(n);s&&s.forEach(([o,r])=>{var a;(a=n.getValue(o))===null||a===void 0||a.set(r)})}),t.forEach(n=>n.measureEndState()),t.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Qn=!1,Zn=!1,ht.forEach(t=>t.complete()),ht.clear()}function Xc(){ht.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Qn=!0)})}function iv(){Xc(),Kc()}class Gs{constructor(e,i,n,s,o,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=i,this.name=n,this.motionValue=s,this.element=o,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ht.add(this),Zn||(Zn=!0,O.read(Xc),O.resolveKeyframes(Kc))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:i,element:n,motionValue:s}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const r=s==null?void 0:s.get(),a=e[e.length-1];if(r!==void 0)e[0]=r;else if(n&&i){const c=n.readValue(i,a);c!=null&&(e[0]=c)}e[0]===void 0&&(e[0]=a),s&&r===void 0&&s.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ht.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ht.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Yc=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),nv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sv(t){const e=nv.exec(t);if(!e)return[,];const[,i,n,s]=e;return[`--${i??n}`,s]}function Zc(t,e,i=1){const[n,s]=sv(t);if(!n)return;const o=window.getComputedStyle(e).getPropertyValue(n);if(o){const r=o.trim();return Yc(r)?parseFloat(r):r}return _s(s)?Zc(s,e,i+1):s}const Qc=t=>e=>e.test(t),ov={test:t=>t==="auto",parse:t=>t},Jc=[Nt,C,Me,je,Xg,Kg,ov],vr=t=>Jc.find(Qc(t));class el extends Gs{constructor(e,i,n,s,o){super(e,i,n,s,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:i,name:n}=this;if(!i||!i.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let l=e[c];if(typeof l=="string"&&(l=l.trim(),_s(l))){const u=Zc(l,i.current);u!==void 0&&(e[c]=u),c===e.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Rc.has(n)||e.length!==2)return;const[s,o]=e,r=vr(s),a=vr(o);if(r!==a)if(mr(r)&&mr(a))for(let c=0;c<e.length;c++){const l=e[c];typeof l=="string"&&(e[c]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:i}=this,n=[];for(let s=0;s<e.length;s++)Ly(e[s])&&n.push(s);n.length&&Qy(e,n,i)}measureInitialState(){const{element:e,unresolvedKeyframes:i,name:n}=this;if(!e||!e.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=$t[n](e.measureViewportBox(),window.getComputedStyle(e.current)),i[0]=this.measuredOrigin;const s=i[i.length-1];s!==void 0&&e.getValue(n,s).jump(s,!1)}measureEndState(){var e;const{element:i,name:n,unresolvedKeyframes:s}=this;if(!i||!i.current)return;const o=i.getValue(n);o&&o.jump(this.measuredOrigin,!1);const r=s.length-1,a=s[r];s[r]=$t[n](i.measureViewportBox(),window.getComputedStyle(i.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEac
vendor: 10,671 bytes, line 1
1h(([c,l])=>{i.getValue(c).set(l)}),this.resolveNoneKeyframes()}}const br=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ke.test(t)||t==="0")&&!t.startsWith("url("));function rv(t){const e=t[0];if(t.length===1)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}function av(t,e,i,n){const s=t[0];if(s===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=br(s,e),a=br(o,e);return!r||!a?!1:rv(t)||(i==="spring"||Ls(i))&&n}const cv=t=>t!==null;function Ji(t,{repeat:e,repeatType:i="loop"},n){const s=t.filter(cv),o=e&&i!=="loop"&&e%2===1?0:s.length-1;return!o||n===void 0?s[o]:n}const lv=40;class tl{constructor({autoplay:e=!0,delay:i=0,type:n="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:r="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=De.now(),this.options={autoplay:e,delay:i,type:n,repeat:s,repeatDelay:o,repeatType:r,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>lv?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&iv(),this._resolved}onKeyframesResolved(e,i){this.resolvedAt=De.now(),this.hasAttemptedResolve=!0;const{name:n,type:s,velocity:o,delay:r,onComplete:a,onUpdate:c,isGenerator:l}=this.options;if(!l&&!av(e,n,s,o))if(r)this.options.duration=0;else{c&&c(Ji(e,this.options,i)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(e,i);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:i,...u},this.onPostResolved())}onPostResolved(){}then(e,i){return this.currentFinishedPromise.then(e,i)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const z=(t,e,i)=>t+(e-t)*i;function Tn(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function uv({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,e/=100,i/=100;let s=0,o=0,r=0;if(!e)s=o=r=i;else{const a=i<.5?i*(1+e):i+e-i*e,c=2*i-a;s=Tn(c,a,t+1/3),o=Tn(c,a,t),r=Tn(c,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:n}}function $i(t,e){return i=>i>0?e:t}const Cn=(t,e,i)=>{const n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},hv=[Xn,lt,Ct],fv=t=>hv.find(e=>e.test(t));function xr(t){const e=fv(t);if(!e)return!1;let i=e.parse(t);return e===Ct&&(i=uv(i)),i}const wr=(t,e)=>{const i=xr(t),n=xr(e);if(!i||!n)return $i(t,e);const s={...i};return o=>(s.red=Cn(i.red,n.red,o),s.green=Cn(i.green,n.green,o),s.blue=Cn(i.blue,n.blue,o),s.alpha=z(i.alpha,n.alpha,o),lt.transform(s))},dv=(t,e)=>i=>e(t(i)),di=(...t)=>t.reduce(dv),Jn=new Set(["none","hidden"]);function pv(t,e){return Jn.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}function mv(t,e){return i=>z(t,e,i)}function Ks(t){return typeof t=="number"?mv:typeof t=="string"?_s(t)?$i:G.test(t)?wr:vv:Array.isArray(t)?il:typeof t=="object"?G.test(t)?wr:gv:$i}function il(t,e){const i=[...t],n=i.length,s=t.map((o,r)=>Ks(o)(o,e[r]));return o=>{for(let r=0;r<n;r++)i[r]=s[r](o);return i}}function gv(t,e){const i={...t,...e},n={};for(const s in i)t[s]!==void 0&&e[s]!==void 0&&(n[s]=Ks(t[s])(t[s],e[s]));return s=>{for(const o in n)i[o]=n[o](s);return i}}function yv(t,e){var i;const n=[],s={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const r=e.types[o],a=t.indexes[r][s[r]],c=(i=t.values[a])!==null&&i!==void 0?i:0;n[o]=c,s[r]++}return n}const vv=(t,e)=>{const i=Ke.createTransformer(e),n=ci(t),s=ci(e);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?Jn.has(t)&&!s.values.length||Jn.has(e)&&!n.values.length?pv(t,e):di(il(yv(n,s),s.values),i):$i(t,e)};function nl(t,e,i){return typeof t=="number"&&typeof e=="number"&&typeof i=="number"?z(t,e,i):Ks(t)(t,e)}const bv=5;function sl(t,e,i){const n=Math.max(e-bv,0);return Ac(i-t(n),e-n)}const F={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},kn=.001;function xv({duration:t=F.duration,bounce:e=F.bounce,velocity:i=F.velocity,mass:n=F.mass}){let s,o,r=1-e;r=Be(F.minDamping,F.maxDamping,r),t=Be(F.minDuration,F.maxDuration,Fe(t)),r<1?(s=l=>{const u=l*r,h=u*t,f=u-i,d=es(l,r),p=Math.exp(-h);return kn-f/d*p},o=l=>{const h=l*r*t,f=h*i+i,d=Math.pow(r,2)*Math.pow(l,2)*t,p=Math.exp(-h),m=es(Math.pow(l,2),r);return(-s(l)+kn>0?-1:1)*((f-d)*p)/m}):(s=l=>{const u=Math.exp(-l*t),h=(l-i)*t+1;return-kn+u*h},o=l=>{const u=Math.exp(-l*t),h=(i-l)*(t*t);return u*h});const a=5/t,c=Pv(s,o,a);if(t=Ie(t),isNaN(c))return{stiffness:F.stiffness,damping:F.damping,duration:t};{const l=Math.pow(c,2)*n;return{stiffness:l,damping:r*2*Math.sqrt(n*l),duration:t}}}const wv=12;function Pv(t,e,i){let n=i;for(let s=1;s<wv;s++)n=n-t(n)/e(n);return n}function es(t,e){return t*Math.sqrt(1-e*e)}const Sv=["duration","bounce"],Tv=["stiffness","damping","mass"];function Pr(t,e){return e.some(i=>t[i]!==void 0)}function Cv(t){let e={velocity:F.velocity,stiffness:F.stiffness,damping:F.damping,mass:F.mass,isResolvedFromDuration:!1,...t};if(!Pr(t,Tv)&&Pr(t,Sv))if(t.visualDuration){const i=t.visualDuration,n=2*Math.PI/(i*1.2),s=n*n,o=2*Be(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:F.mass,stiffness:s,damping:o}}else{const i=xv(t);e={...e,...i,mass:F.mass},e.isResolvedFromDuration=!0}return e}function ol(t=F.visualDuration,e=F.bounce){const i=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:n,restDelta:s}=i;const o=i.keyframes[0],r=i.keyframes[i.keyframes.length-1],a={done:!1,value:o},{stiffness:c,damping:l,mass:u,duration:h,velocity:f,isResolvedFromDuration:d}=Cv({...i,velocity:-Fe(i.velocity||0)}),p=f||0,m=l/(2*Math.sqrt(c*u)),g=r-o,y=Fe(Math.sqrt(c/u)),v=Math.abs(g)<5;n||(n=v?F.restSpeed.granular:F.restSpeed.default),s||(s=v?F.restDelta.granular:F.restDelta.default);let b;if(m<1){const w=es(y,m);b=k=>{const R=Math.exp(-m*y*k);return r-R*((p+m*y*g)/w*Math.sin(w*k)+g*Math.cos(w*k))}}else if(m===1)b=w=>r-Math.exp(-y*w)*(g+(p+y*g)*w);else{const w=y*Math.sqrt(m*m-1);b=k=>{const R=Math.exp(-m*y*k),T=Math.min(w*k,300);return r-R*((p+m*y*g)*Math.sinh(T)+w*g*Math.cosh(T))/w}}const x={calculatedDuration:d&&h||null,next:w=>{const k=b(w);if(d)a.done=w>=h;else{let R=0;m<1&&(R=w===0?Ie(p):sl(b,w,k));const T=Math.abs(R)<=n,V=Math.abs(r-k)<=s;a.done=T&&V}return a.value=a.done?r:k,a},toString:()=>{const w=Math.min(Sc(x),Hn),k=Tc(R=>x.next(w*R).value,w,30);return w+"ms "+k}};return x}function Sr({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:c,restDelta:l=.5,restSpeed:u}){const h=t[0],f={done:!1,value:h},d=T=>a!==void 0&&T<a||c!==void 0&&T>c,p=T=>a===void 0?c:c===void 0||Math.abs(a-T)<Math.abs(c-T)?a:c;let m=i*e;const g=h+m,y=r===void 0?g:r(g);y!==g&&(m=y-h);const v=T=>-m*Math.exp(-T/n),b=T=>y+v(T),x=T=>{const V=v(T),E=b(T);f.done=Math.abs(V)<=l,f.value=f.done?y:E};let w,k;const R=T=>{d(f.value)&&(w=T,k=ol({keyframes:[f.value,p(f.value)],velocity:sl(b,T,f.value),damping:s,stiffness:o,restDelta:l,restSpeed:u}))};return R(0),{calculatedDuration:null,next:T=>{let V=!1;return!k&&w===void 0&&(V=!0,x(T),R(T)),w!==void 0&&T>=w?k.next(T-w):(!V&&x(T),f)}}}const kv=fi(.42,0,1,1),_v=fi(0,0,.58,1),rl=fi(.42,0,.58,1),Mv=t=>Array.isArray(t)&&typeof t[0]!="number",Dv={linear:oe,easeIn:kv,easeInOut:rl,easeOut:_v,circIn:qs,circInOut:jc,circOut:Bc,backIn:$s,backInOut:Ic,backOut:zc,anticipate:Fc},Tr=t=>{if(zs(t)){nc(t.length===4);const[e,i,n,s]=t;return fi(e,i,n,s)}else if(typeof t=="string")return Dv[t];return t};function Rv(t,e,i){const n=[],s=i||nl,o=t.length-1;for(let r=0;r<o;r++){let a=s(t[r],t[r+1]);if(e){const c=Array.isArray(e)?e[r]||oe:e;a=di(c,a)}n.push(a)}return n}function Av(t,e,{clamp:i=!0,ease:n,mixer:s}={}){const o=t.length;if(nc(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Rv(e,n,s),c=a.length,l=u=>{if(r&&u<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(u<t[h+1]);h++);const f=jt(t[h],t[h+1],u);return a[h](f)};return i?u=>l(Be(t[0],t[o-1],u)):l}function Ev(t,e){const i=t[t.length-1];for(let n=1;n<=e;n++){const s=jt(0,e,n);t.push(z(i,1,s))}}function Ov(t){const e=[0];return Ev(e,t.length-1),e}function Vv(t,e){return t.map(i=>i*e)}function Lv(t,e){return t.map(()=>e||rl).splice(0,t.length-1)}function qi({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){const s=Mv(n)?n.map(Tr):Tr(n),o={done:!1,value:e[0]},r=Vv(i&&i.length===e.length?i:Ov(e),t),a=Av(r,e,{ease:Array.isArray(s)?s:Lv(e,s)});return{calculatedDuration:t,next:c=>(o.value=a(c),o.done=c>=t,o)}}const zv=t=>{const e=({timestamp:i})=>t(i);return{start:()=>O.update(e,!0),stop:()=>Ge(e),now:()=>W.isProcessing?W.timestamp:De.now()}},Iv={decay:Sr,inertia:Sr,tween:qi,keyframes:qi,spring:ol},Fv=t=>t/100;class Xs extends tl{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:i,motionValue:n,element:s,keyframes:o}=this.options,r=(s==null?void 0:s.KeyframeResolver)||Gs,a=(c,l)=>this.onKeyframesResolved(c,l);this.resolver=new r(o,a,i,n,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:o,velocity:r=0}=this.options,a=Ls(i)?i:Iv[i]||qi;let c,l;a!==qi&&typeof e[0]!="number"&&(c=di(Fv,nl(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});o==="mirror"&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=Sc(u));const{calculatedDuration:h}=u,f=h+s,d=f*(n+1)-s;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:f,totalDuration:d}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,i=!1){const{resolved:n}=this;if(!n){const{keyframes:T}=this.options;return{done:!0,value:T[T.length-1]}}const{finalKeyframe:s,generator:o,mirroredGenerator:r,mapPercentToKeyframes:a,keyframes:c,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=n;
vendor: 67,894 bytes, line 1
1if(this.startTime===null)return o.next(0);const{delay:f,repeat:d,repeatType:p,repeatDelay:m,onUpdate:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),i?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const y=this.currentTime-f*(this.speed>=0?1:-1),v=this.speed>=0?y<0:y>u;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let b=this.currentTime,x=o;if(d){const T=Math.min(this.currentTime,u)/h;let V=Math.floor(T),E=T%1;!E&&T>=1&&(E=1),E===1&&V--,V=Math.min(V,d+1),!!(V%2)&&(p==="reverse"?(E=1-E,m&&(E-=m/h)):p==="mirror"&&(x=r)),b=Be(0,1,E)*h}const w=v?{done:!1,value:c[0]}:x.next(b);a&&(w.value=a(w.value));let{done:k}=w;!v&&l!==null&&(k=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return R&&s!==void 0&&(w.value=Ji(c,this.options,s)),g&&g(w.value),R&&this.finish(),w}get duration(){const{resolved:e}=this;return e?Fe(e.calculatedDuration):0}get time(){return Fe(this.currentTime)}set time(e){e=Ie(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const i=this.playbackSpeed!==e;this.playbackSpeed=e,i&&(this.time=Fe(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=zv,onPlay:i,startTime:n}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),i&&i();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=n??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Bv=new Set(["opacity","clipPath","filter","transform"]);function jv(t,e,i,{delay:n=0,duration:s=300,repeat:o=0,repeatType:r="loop",ease:a="easeInOut",times:c}={}){const l={[e]:i};c&&(l.offset=c);const u=kc(a,s);return Array.isArray(u)&&(l.easing=u),t.animate(l,{delay:n,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"})}const Uv=xs(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ni=10,$v=2e4;function qv(t){return Ls(t.type)||t.type==="spring"||!Cc(t.ease)}function Nv(t,e){const i=new Xs({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let n={done:!1,value:t[0]};const s=[];let o=0;for(;!n.done&&o<$v;)n=i.sample(o),s.push(n.value),o+=Ni;return{times:void 0,keyframes:s,duration:o-Ni,ease:"linear"}}const al={anticipate:Fc,backInOut:Ic,circInOut:jc};function Wv(t){return t in al}class Cr extends tl{constructor(e){super(e);const{name:i,motionValue:n,element:s,keyframes:o}=this.options;this.resolver=new el(o,(r,a)=>this.onKeyframesResolved(r,a),i,n,s),this.resolver.scheduleResolve()}initPlayback(e,i){let{duration:n=300,times:s,ease:o,type:r,motionValue:a,name:c,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof o=="string"&&Ui()&&Wv(o)&&(o=al[o]),qv(this.options)){const{onComplete:h,onUpdate:f,motionValue:d,element:p,...m}=this.options,g=Nv(e,m);e=g.keyframes,e.length===1&&(e[1]=e[0]),n=g.duration,s=g.times,o=g.ease,r="keyframes"}const u=jv(a.owner.current,c,e,{...this.options,duration:n,times:s,ease:o});return u.startTime=l??this.calcStartTime(),this.pendingTimeline?(cr(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:h}=this.options;a.set(Ji(e,this.options,i)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:n,times:s,type:r,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:i}=e;return Fe(i)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:i}=e;return Fe(i.currentTime||0)}set time(e){const{resolved:i}=this;if(!i)return;const{animation:n}=i;n.currentTime=Ie(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:i}=e;return i.playbackRate}set speed(e){const{resolved:i}=this;if(!i)return;const{animation:n}=i;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:i}=e;return i.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:i}=e;return i.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:i}=this;if(!i)return oe;const{animation:n}=i;cr(n,e)}return oe}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:i}=e;i.playState==="finished"&&this.updateFinishedPromise(),i.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:i}=e;i.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:i,keyframes:n,duration:s,type:o,ease:r,times:a}=e;if(i.playState==="idle"||i.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:u,onComplete:h,element:f,...d}=this.options,p=new Xs({...d,keyframes:n,duration:s,type:o,ease:r,times:a,isGenerator:!0}),m=Ie(this.time);l.setWithVelocity(p.sample(m-Ni).value,p.sample(m).value,Ni)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:i,name:n,repeatDelay:s,repeatType:o,damping:r,type:a}=e;if(!i||!i.owner||!(i.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=i.owner.getProps();return Uv()&&n&&Bv.has(n)&&!c&&!l&&!s&&o!=="mirror"&&r!==0&&a!=="inertia"}}const Hv={type:"spring",stiffness:500,damping:25,restSpeed:10},Gv=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Kv={type:"keyframes",duration:.8},Xv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Yv=(t,{keyframes:e})=>e.length>2?Kv:yt.has(t)?t.startsWith("scale")?Gv(e[1]):Hv:Xv;function Zv({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const Ys=(t,e,i,n={},s,o)=>r=>{const a=Vs(n,t)||{},c=a.delay||n.delay||0;let{elapsed:l=0}=n;l=l-Ie(c);let u={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-l,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:s};Zv(a)||(u={...u,...Yv(t,u)}),u.duration&&(u.duration=Ie(u.duration)),u.repeatDelay&&(u.repeatDelay=Ie(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(h=!0)),h&&!o&&e.get()!==void 0){const f=Ji(u.keyframes,a);if(f!==void 0)return O.update(()=>{u.onUpdate(f),u.onComplete()}),new yy([])}return!o&&Cr.supports(u)?new Cr(u):new Xs(u)};function Qv({protectedKeys:t,needsAnimating:e},i){const n=t.hasOwnProperty(i)&&e[i]!==!0;return e[i]=!1,n}function cl(t,e,{delay:i=0,transitionOverride:n,type:s}={}){var o;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...c}=e;n&&(r=n);const l=[],u=s&&t.animationState&&t.animationState.getState()[s];for(const h in c){const f=t.getValue(h,(o=t.latestValues[h])!==null&&o!==void 0?o:null),d=c[h];if(d===void 0||u&&Qv(u,h))continue;const p={delay:i,...Vs(r||{},h)};let m=!1;if(window.MotionHandoffAnimation){const y=Ec(t);if(y){const v=window.MotionHandoffAnimation(y,h,O);v!==null&&(p.startTime=v,m=!0)}}Kn(t,h),f.start(Ys(h,f,d,t.shouldReduceMotion&&Rc.has(h)?{type:!1}:p,t,m));const g=f.animation;g&&l.push(g)}return a&&Promise.all(l).then(()=>{O.update(()=>{a&&Us(t,a)})}),l}function ts(t,e,i={}){var n;const s=Qi(t,e,i.type==="exit"?(n=t.presenceContext)===null||n===void 0?void 0:n.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(o=i.transitionOverride);const r=s?()=>Promise.all(cl(t,s,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:h,staggerDirection:f}=o;return Jv(t,e,u+l,h,f,i)}:()=>Promise.resolve(),{when:c}=o;if(c){const[l,u]=c==="beforeChildren"?[r,a]:[a,r];return l().then(()=>u())}else return Promise.all([r(),a(i.delay)])}function Jv(t,e,i=0,n=0,s=1,o){const r=[],a=(t.variantChildren.size-1)*n,c=s===1?(l=0)=>l*n:(l=0)=>a-l*n;return Array.from(t.variantChildren).sort(eb).forEach((l,u)=>{l.notify("AnimationStart",e),r.push(ts(l,e,{...o,delay:i+c(u)}).then(()=>l.notify("AnimationComplete",e)))}),Promise.all(r)}function eb(t,e){return t.sortNodePosition(e)}function ll(t,e,i={}){t.notify("AnimationStart",e);let n;if(Array.isArray(e)){const s=e.map(o=>ts(t,o,i));n=Promise.all(s)}else if(typeof e=="string")n=ts(t,e,i);else{const s=typeof e=="function"?Qi(t,e,i.custom):e;n=Promise.all(cl(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})}const tb=Ps.length;function ul(t){if(!t)return;if(!t.isControllingVariants){const i=t.parent?ul(t.parent)||{}:{};return t.props.initial!==void 0&&(i.initial=t.props.initial),i}const e={};for(let i=0;i<tb;i++){const n=Ps[i],s=t.props[n];(oi(s)||s===!1)&&(e[n]=s)}return e}const ib=[...ws].reverse(),nb=ws.length;function sb(t){return e=>Promise.all(e.map(({animation:i,options:n})=>ll(t,i,n)))}function ob(t){let e=sb(t),i=kr(),n=!0;const s=c=>(l,u)=>{var h;const f=Qi(t,u,c==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:d,transitionEnd:p,...m}=f;l={...l,...m,...p}}return l};function o(c){e=c(t)}function r(c){const{props:l}=t,u=ul(t.parent)||{},h=[],f=new Set;let d={},p=1/0;for(let g=0;g<nb;g++){const y=ib[g],v=i[y],b=l[y]!==void 0?l[y]:u[y],x=oi(b),w=y===c?v.isActive:null;w===!1&&(p=g);let k=b===u[y]&&b!==l[y]&&x;if(k&&n&&t.manuallyAnimateOnMount&&(k=!1),v.protectedKeys={...d},!v.isActive&&w===null||!b&&!v.prevProp||Yi(b)||typeof b=="boolean")continue;const R=rb(v.prevProp,b);let T=R||y===c&&v.isActive&&!k&&x||g>p&&x,V=!1;const E=Array.isArray(b)?b:[b];let re=E.reduce(s(y),{});w===!1&&(re={});const{prevResolvedValues:Ee={}}=v,L={...Ee,...re},Ce=te=>{T=!0,f.has(te)&&(V=!0,f.delete(te)),v.needsAnimating[te]=!0;const Oe=t.getValue(te);Oe&&(Oe.liveStyle=!1)};for(const te in L){const Oe=re[te],en=Ee[te];if(d.hasOwnProperty(te))continue;let tn=!1;Wn(Oe)&&Wn(en)?tn=!Pc(Oe,en):tn=Oe!==en,tn?Oe!=null?Ce(te):f.add(te):Oe!==void 0&&f.has(te)?Ce(te):v.protectedKeys[te]=!0}v.prevProp=b,v.prevResolvedValues=re,v.isActive&&(d={...d,...re}),n&&t.blockInitialAnimation&&(T=!1),T&&(!(k&&R)||V)&&h.push(...E.map(te=>({animation:te,options:{type:y}})))}if(f.size){const g={};f.forEach(y=>{const v=t.getBaseTarget(y),b=t.getValue(y);b&&(b.liveStyle=!0),g[y]=v??null}),h.push({animation:g})}let m=!!h.length;return n&&(l.initial===!1||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,m?e(h):Promise.resolve()}function a(c,l){var u;if(i[c].isActive===l)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(f=>{var d;return(d=f.animationState)===null||d===void 0?void 0:d.setActive(c,l)}),i[c].isActive=l;const h=r(c);for(const f in i)i[f].protectedKeys={};return h}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>i,reset:()=>{i=kr(),n=!0}}}function rb(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Pc(e,t):!1}function tt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function kr(){return{animate:tt(!0),whileInView:tt(),whileHover:tt(),whileTap:tt(),whileDrag:tt(),whileFocus:tt(),exit:tt()}}class Xe{constructor(e){this.isMounted=!1,this.node=e}update(){}}class ab extends Xe{constructor(e){super(e),e.animationState||(e.animationState=ob(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Yi(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:i}=this.node.prevProps||{};e!==i&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let cb=0;class lb extends Xe{constructor(){super(...arguments),this.id=cb++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:i}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const s=this.node.animationState.setActive("exit",!e);i&&!e&&s.then(()=>i(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const ub={animation:{Feature:ab},exit:{Feature:lb}};function li(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function pi(t){return{point:{x:t.pageX,y:t.pageY}}}const hb=t=>e=>Is(e)&&t(e,pi(e));function Qt(t,e,i,n){return li(t,e,hb(i),n)}const _r=(t,e)=>Math.abs(t-e);function fb(t,e){const i=_r(t.x,e.x),n=_r(t.y,e.y);return Math.sqrt(i**2+n**2)}class hl{constructor(e,i,{transformPagePoint:n,contextWindow:s,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Mn(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=fb(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:p}=h,{timestamp:m}=W;this.history.push({...p,timestamp:m});const{onStart:g,onMove:y}=this.handlers;f||(g&&g(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=_n(f,this.transformPagePoint),O.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:p,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Mn(h.type==="pointercancel"?this.lastMoveEventInfo:_n(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,g),p&&p(h,g)},!Is(e))return;this.dragSnapToOrigin=o,this.handlers=i,this.transformPagePoint=n,this.contextWindow=s||window;const r=pi(e),a=_n(r,this.transformPagePoint),{point:c}=a,{timestamp:l}=W;this.history=[{...c,timestamp:l}];const{onSessionStart:u}=i;u&&u(e,Mn(a,this.history)),this.removeListeners=di(Qt(this.contextWindow,"pointermove",this.handlePointerMove),Qt(this.contextWindow,"pointerup",this.handlePointerUp),Qt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Ge(this.updatePoint)}}function _n(t,e){return e?{point:e(t.point)}:t}function Mr(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Mn({point:t},e){return{point:t,delta:Mr(t,fl(e)),offset:Mr(t,db(e)),velocity:pb(e,.1)}}function db(t){return t[0]}function fl(t){return t[t.length-1]}function pb(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null;const s=fl(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>Ie(e)));)i--;if(!n)return{x:0,y:0};const o=Fe(s.timestamp-n.timestamp);if(o===0)return{x:0,y:0};const r={x:(s.x-n.x)/o,y:(s.y-n.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}const dl=1e-4,mb=1-dl,gb=1+dl,pl=.01,yb=0-pl,vb=0+pl;function ue(t){return t.max-t.min}function bb(t,e,i){return Math.abs(t-e)<=i}function Dr(t,e,i,n=.5){t.origin=n,t.originPoint=z(e.min,e.max,t.origin),t.scale=ue(i)/ue(e),t.translate=z(i.min,i.max,t.origin)-t.originPoint,(t.scale>=mb&&t.scale<=gb||isNaN(t.scale))&&(t.scale=1),(t.translate>=yb&&t.translate<=vb||isNaN(t.translate))&&(t.translate=0)}function Jt(t,e,i,n){Dr(t.x,e.x,i.x,n?n.originX:void 0),Dr(t.y,e.y,i.y,n?n.originY:void 0)}function Rr(t,e,i){t.min=i.min+e.min,t.max=t.min+ue(e)}function xb(t,e,i){Rr(t.x,e.x,i.x),Rr(t.y,e.y,i.y)}function Ar(t,e,i){t.min=e.min-i.min,t.max=t.min+ue(e)}function ei(t,e,i){Ar(t.x,e.x,i.x),Ar(t.y,e.y,i.y)}function wb(t,{min:e,max:i},n){return e!==void 0&&t<e?t=n?z(e,t,n.min):Math.max(t,e):i!==void 0&&t>i&&(t=n?z(i,t,n.max):Math.min(t,i)),t}function Er(t,e,i){return{min:e!==void 0?t.min+e:void 0,max:i!==void 0?t.max+i-(t.max-t.min):void 0}}function Pb(t,{top:e,left:i,bottom:n,right:s}){return{x:Er(t.x,i,s),y:Er(t.y,e,n)}}function Or(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function Sb(t,e){return{x:Or(t.x,e.x),y:Or(t.y,e.y)}}function Tb(t,e){let i=.5;const n=ue(t),s=ue(e);return s>n?i=jt(e.min,e.max-n,t.min):n>s&&(i=jt(t.min,t.max-s,e.min)),Be(0,1,i)}function Cb(t,e){const i={};return e.min!==void 0&&(i.min=e.min-t.min),e.max!==void 0&&(i.max=e.max-t.min),i}const is=.35;function kb(t=is){return t===!1?t=0:t===!0&&(t=is),{x:Vr(t,"left","right"),y:Vr(t,"top","bottom")}}function Vr(t,e,i){return{min:Lr(t,e),max:Lr(t,i)}}function Lr(t,e){return typeof t=="number"?t:t[e]||0}const zr=()=>({translate:0,scale:1,origin:0,originPoint:0}),kt=()=>({x:zr(),y:zr()}),Ir=()=>({min:0,max:0}),B=()=>({x:Ir(),y:Ir()});function pe(t){return[t("x"),t("y")]}function ml({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function _b({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Mb(t,e){if(!e)return t;const i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}function Dn(t){return t===void 0||t===1}function ns({scale:t,scaleX:e,scaleY:i}){return!Dn(t)||!Dn(e)||!Dn(i)}function it(t){return ns(t)||gl(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function gl(t){return Fr(t.x)||Fr(t.y)}function Fr(t){return t&&t!=="0%"}function Wi(t,e,i){const n=t-i,s=e*n;return i+s}function Br(t,e,i,n,s){return s!==void 0&&(t=Wi(t,s,n)),Wi(t,i,n)+e}function ss(t,e=0,i=1,n,s){t.min=Br(t.min,e,i,n,s),t.max=Br(t.max,e,i,n,s)}function yl(t,{x:e,y:i}){ss(t.x,e.translate,e.scale,e.originPoint),ss(t.y,i.translate,i.scale,i.originPoint)}const jr=.999999999999,Ur=1.0000000000001;function Db(t,e,i,n=!1){const s=i.length;if(!s)return;e.x=e.y=1;let o,r;for(let a=0;a<s;a++){o=i[a],r=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(n&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Mt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,yl(t,r)),n&&it(o.latestValues)&&Mt(t,o.latestValues))}e.x<Ur&&e.x>jr&&(e.x=1),e.y<Ur&&e.y>jr&&(e.y=1)}function _t(t,e){t.min=t.min+e,t.max=t.max+e}function $r(t,e,i,n,s=.5){const o=z(t.min,t.max,s);ss(t,e,i,o,n)}function Mt(t,e){$r(t.x,e.x,e.scaleX,e.scale,e.originX),$r(t.y,e.y,e.scaleY,e.scale,e.originY)}function vl(t,e){return ml(Mb(t.getBoundingClientRect(),e))}function Rb(t,e,i){const n=vl(t,i),{scroll:s}=e;return s&&(_t(n.x,s.offset.x),_t(n.y,s.offset.y)),n}const bl=({current:t})=>t?t.ownerDocument.defaultView:null,Ab=new WeakMap;class Eb{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=B(),this.visualElement=e}start(e,{snapToCursor:i=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const s=u=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),i&&this.snapToCursor(pi(u).point)},o=(u,h)=>{const{drag:f,dragPropagation:d,onDragStart:p}=this.getProps();if(f&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ky(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),pe(g=>{let y=this.getAxisMotionValue(g).get()||0;if(Me.test(y)){const{projection:v}=this.visualElement;if(v&&v.layout){const b=v.layout.layoutBox[g];b&&(y=ue(b)*(parseFloat(y)/100))}}this.originPoint[g]=y}),p&&O.postRender(()=>p(u,h)),Kn(this.visualElement,"transform");const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},r=(u,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:p,onDrag:m}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:g}=h;if(d&&this.currentDirection===null){this.currentDirection=Ob(g),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,g),this.updateAxis("y",h.point,g),this.visualElement.render(),m&&m(u,h)},a=(u,h)=>this.stop(u,h),c=()=>pe(u=>{var h;return this.getAnimationState(u)==="paused"&&((h=this.getAxisMotionValue(u).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new hl(e,{onSessionStart:s,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:bl(this.visualElement)})}stop(e,i){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&O.postRender(()=>o(e,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:i}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}updateAxis(e,i,n){const{drag:s}=this.getProps();if(!n||!ki(e,s,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(r=wb(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var e;const{dragConstraints:i,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;i&&Tt(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&s?this.constraints=Pb(s.layoutBox,i):this.constraints=!1,this.elastic=kb(n),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&pe(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=Cb(s.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!Tt(e))return!1;const n=e.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=Rb(n,s.root,this.visualElement.getTransformPagePoint());let r=Sb(s.layout.layoutBox,o);if(i){const a=i(_b(r));this.hasMutatedConstraints=!!a,a&&(r=ml(a))}return r}startAnimation(e){const{drag:i,dragMomentum:n,dragElastic:s,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=pe(u=>{if(!ki(u,i,this.currentDirection))return;let h=c&&c[u]||{};r&&(h={min:0,max:0});const f=s?200:1e6,d=s?40:1e7,p={type:"inertia",velocity:n?e[u]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(u,p)});return Promise.all(l).then(a)}startAxisValueAnimation(e,i){const n=this.getAxisMotionValue(e);return Kn(this.visualElement,e),n.start(Ys(e,n,0,i,this.visualElement,!1))}stopAnimation(){pe(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){pe(e=>{var i;return(i=this.getAxisMotionValue(e).animation)===null||i===void 0?void 0:i.pause()})}getAnimationState(e){var i;return(i=this.getAxisMotionValue(e).animation)===null||i===void 0?void 0:i.state}getAxisMotionValue(e){const i=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),s=n[i];return s||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){pe(i=>{const{drag:n}=this.getProps();if(!ki(i,n,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(i);if(s&&s.layout){const{min:r,max:a}=s.layout.layoutBox[i];o.set(e[i]-z(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:i}=this.getProps(),{projection:n}=this.visualElement;if(!Tt(i)||!n||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};pe(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const c=a.get();s[r]=Tb({min:c,max:c},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),pe(r=>{if(!ki(r,e,null))return;const a=this.getAxisMotionValue(r),{min:c,max:l}=this.constraints[r];a.set(z(c,l,s[r]))})}addListeners(){if(!this.visualElement.current)return;Ab.set(this.visualElement,this);const e=this.visualElement.current,i=Qt(e,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),n=()=>{const{dragConstraints:c}=this.getProps();Tt(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),O.read(n);const r=li(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(pe(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=c[u].translate,h.set(h.get()+c[u].translate))}),this.visualElement.render())});return()=>{r(),i(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:n=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:r=is,dragMomentum:a=!0}=e;return{...e,drag:i,dragDirectionLock:n,dragPropagation:s,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function ki(t,e,i){return(e===!0||e===t)&&(i===null||i===t)}function Ob(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}class Vb extends Xe{constructor(e){super(e),this.removeGroupControls=oe,this.removeListeners=oe,this.controls=new Eb(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||oe}unmount(){this.removeGroupControls(),this.removeListeners()}}const qr=t=>(e,i)=>{t&&O.postRender(()=>t(e,i))};class Lb extends Xe{constructor(){super(...arguments),this.removePointerDownListener=oe}onPointerDown(e){this.session=new hl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:bl(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:i,onPan:n,onPanEnd:s}=this.node.getProps();return{onSessionStart:qr(e),onStart:qr(i),onMove:n,onEnd:(o,r)=>{delete this.session,s&&O.postRender(()=>s(o,r))}}}mount(){this.removePointerDownListener=Qt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ei={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Nr(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ht={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(C.test(t))t=parseFloat(t);else return t;const i=Nr(t,e.target.x),n=Nr(t,e.target.y);return`${i}% ${n}%`}},zb={correct:(t,{treeScale:e,projectionDelta:i})=>{const n=t,s=Ke.parse(t);if(s.length>5)return n;const o=Ke.createTransformer(t),r=typeof s[0]!="number"?1:0,a=i.x.scale*e.x,c=i.y.scale*e.y;s[0+r]/=a,s[1+r]/=c;const l=z(a,c,.5);return typeof s[2+r]=="number"&&(s[2+r]/=l),typeof s[3+r]=="number"&&(s[3+r]/=l),o(s)}};class Ib extends _.Component{componentDidMount(){const{visualElement:e,layoutGroup:i,switchLayoutGroup:n,layoutId:s}=this.props,{projection:o}=e;oy(Fb),o&&(i.group&&i.group.add(o),n&&n.register&&s&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ei.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:i,visualElement:n,drag:s,isPresent:o}=this.props,r=n.projection;return r&&(r.isPresent=o,s||e.layoutDependency!==i||i===void 0?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||O.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Ts.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:i,switchLayoutGroup:n}=this.props,{projection:s}=e;s&&(s.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(s),n&&n.deregister&&n.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function xl(t){const[e,i]=wg(),n=_.useContext(Ja);return Vt.jsx(Ib,{...t,layoutGroup:n,switchLayoutGroup:_.useContext(lc),isPresent:e,safeToRemove:i})}const Fb={borderRadius:{...Ht,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ht,borderTopRightRadius:Ht,borderBottomLeftRadius:Ht,borderBottomRightRadius:Ht,boxShadow:zb};function Bb(t,e,i){const n=Z(t)?t:ai(t);return n.start(Ys("",n,e,i)),n.animation}function jb(t){return t instanceof SVGElement&&t.tagName!=="svg"}const Ub=(t,e)=>t.depth-e.depth;class $b{constructor(){this.children=[],this.isDirty=!1}add(e){Fs(this.children,e),this.isDirty=!0}remove(e){Bs(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ub),this.isDirty=!1,this.children.forEach(e)}}function qb(t,e){const i=De.now(),n=({timestamp:s})=>{const o=s-i;o>=e&&(Ge(n),t(o-e))};return O.read(n,!0),()=>Ge(n)}const wl=["TopLeft","TopRight","BottomLeft","BottomRight"],Nb=wl.length,Wr=t=>typeof t=="string"?parseFloat(t):t,Hr=t=>typeof t=="number"||C.test(t);function Wb(t,e,i,n,s,o){s?(t.opacity=z(0,i.opacity!==void 0?i.opacity:1,Hb(n)),t.opacityExit=z(e.opacity!==void 0?e.opacity:1,0,Gb(n))):o&&(t.opacity=z(e.opacity!==void 0?e.opacity:1,i.opacity!==void 0?i.opacity:1,n));for(let r=0;r<Nb;r++){const a=`border${wl[r]}Radius`;let c=Gr(e,a),l=Gr(i,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||Hr(c)===Hr(l)?(t[a]=Math.max(z(Wr(c),Wr(l),n),0),(Me.test(l)||Me.test(c))&&(t[a]+="%")):t[a]=l}(e.rotate||i.rotate)&&(t.rotate=z(e.rotate||0,i.rotate||0,n))}function Gr(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Hb=Pl(0,.5,Bc),Gb=Pl(.5,.95,oe);function Pl(t,e,i){return n=>n<t?0:n>e?1:i(jt(t,e,n))}function Kr(t,e){t.min=e.min,t.max=e.max}function de(t,e){Kr(t.x,e.x),Kr(t.y,e.y)}function Xr(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Yr(t,e,i,n,s){return t-=e,t=Wi(t,1/i,n),s!==void 0&&(t=Wi(t,1/s,n)),t}function Kb(t,e=0,i=1,n=.5,s,o=t,r=t){if(Me.test(e)&&(e=parseFloat(e),e=z(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=z(o.min,o.max,n);t===o&&(a-=e),t.min=Yr(t.min,e,i,a,s),t.max=Yr(t.max,e,i,a,s)}function Zr(t,e,[i,n,s],o,r){Kb(t,e[i],e[n],e[s],e.scale,o,r)}const Xb=["x","scaleX","originX"],Yb=["y","scaleY","originY"];function Qr(t,e,i,n){Zr(t.x,e,Xb,i?i.x:void 0,n?n.x:void 0),Zr(t.y,e,Yb,i?i.y:void 0,n?n.y:void 0)}function Jr(t){return t.translate===0&&t.scale===1}function Sl(t){return Jr(t.x)&&Jr(t.y)}function ea(t,e){return t.min===e.min&&t.max===e.max}function Zb(t,e){return ea(t.x,e.x)&&ea(t.y,e.y)}function ta(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Tl(t,e){return ta(t.x,e.x)&&ta(t.y,e.y)}function ia(t){return ue(t.x)/ue(t.y)}function na(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Qb{constructor(){this.members=[]}add(e){Fs(this.members,e),e.scheduleRender()}remove(e){if(Bs(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(e){const i=this.members.findIndex(s=>e===s);if(i===0)return!1;let n;for(let s=i;s>=0;s--){const o=this.members[s];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(e,i){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,i&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:s}=e.options;s===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:i,resumingFrom:n}=e;i.onExitComplete&&i.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Jb(t,e,i){let n="";const s=t.x.translate/e.x,o=t.y.translate/e.y,r=(i==null?void 0:i.z)||0;if((s||o||r)&&(n=`translate3d(${s}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){const{transformPerspective:l,rotate:u,rotateX:h,rotateY:f,skewX:d,skewY:p}=i;l&&(n=`perspective(${l}px) ${n}`),u&&(n+=`rotate(${u}deg) `),h&&(n+=`rotateX(${h}deg) `),f&&(n+=`rotateY(${f}deg) `),d&&(n+=`skewX(${d}deg) `),p&&(n+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(n+=`scale(${a}, ${c})`),n||"none"}const nt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Xt=typeof window<"u"&&window.MotionDebug!==void 0,Rn=["","X","Y","Z"],ex={visibility:"hidden"},sa=1e3;let tx=0;function An(t,e,i,n){const{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function Cl(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const i=Ec(e);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:s,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",O,!(s||o))}const{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&Cl(n)}function kl({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(r={},a=e==null?void 0:e()){this.id=tx++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Xt&&(nt.totalNodes=nt.resolvedTargetDeltas=nt.recalculatedProjection=0),this.nodes.forEach(sx),this.nodes.forEach(lx),this.nodes.forEach(ux),this.nodes.forEach(ox),Xt&&window.MotionDebug.record(nt)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new $b)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new js),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const c=this.eventHandlers.get(r);c&&c.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=jb(r),this.instance=r;const{layoutId:c,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(l||c)&&(this.isLayoutDirty=!0),t){let h;const f=()=>this.root.updateBlockedByResize=!1;t(r,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=qb(f,250),Ei.hasAnimatedSinceResize&&(Ei.hasAnimatedSinceResize=!1,this.nodes.forEach(ra))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||l)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||mx,{onLayoutAnimationStart:g,onLayoutAnimationComplete:y}=u.getProps(),v=!this.targetLayout||!Tl(this.targetLayout,p)||d,b=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||b||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,b);const x={...Vs(m,"layout"),onPlay:g,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else f||ra(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ge(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(hx),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Cl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(oa);return}this.isUpdating||this.nodes.forEach(ax),this.isUpdating=!1,this.nodes.forEach(cx),this.nodes.forEach(ix),this.nodes.forEach(nx),this.clearAllSnapshots();const a=De.now();W.delta=Be(0,1e3/60,a-W.timestamp),W.timestamp=a,W.isProcessing=!0,wn.update.process(W),wn.preRender.process(W),wn.render.process(W),W.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ts.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rx),this.sharedNodes.forEach(fx)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,O.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){O.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=B(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a){const c=n(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:c,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!s)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Sl(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;r&&(a||it(this.latestValues)||u)&&(s(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return r&&(c=this.removeTransform(c)),gx(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var r;const{visualElement:a}=this.options;if(!a)return B();const c=a.measureViewportBox();if(!(((r=this.scroll)===null||r===void 0?void 0:r.wasRoot)||this.path.some(yx))){const{scroll:u}=this.root;u&&(_t(c.x,u.offset.x),_t(c.y,u.offset.y))}return c}removeElementScroll(r){var a;const c=B();if(de(c,r),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return c;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:h,options:f}=u;u!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&de(c,r),_t(c.x,h.offset.x),_t(c.y,h.offset.y))}return c}applyTransform(r,a=!1){const c=B();de(c,r);for(let l=0;l<this.path.length;l++){const u=this.path[l];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Mt(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),it(u.latestValues)&&Mt(c,u.latestValues)}return it(this.latestValues)&&Mt(c,this.latestValues),c}removeTransform(r){const a=B();de(a,r);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!it(l.latestValues))continue;ns(l.latestValues)&&l.updateSnapshot();const u=B(),h=l.measurePageBox();de(u,h),Qr(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return it(this.latestValues)&&Qr(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==W.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var a;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==c;if(!(r||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:f}=this.options;if(!(!this.layout||!(h||f))){if(this.resolvedRelativeTargetAt=W.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=B(),this.relativeTargetOrigin=B(),ei(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),de(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=B(),this.targetWithTransforms=B()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),xb(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):de(this.target,this.layout.layoutBox),yl(this.target,this.targetDelta)):de(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=B(),this.relativeTargetOrigin=B(),ei(this.relativeTargetOrigin,this.target,d.target),de(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Xt&&nt.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||ns(this.parent.latestValues)||gl(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var r;const a=this.getLead(),c=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||!((r=this.parent)===null||r===void 0)&&r.isProjectionDirty)&&(l=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===W.timestamp&&(l=!1),l)return;const{layout:u,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||h))return;de(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;Db(this.layoutCorrected,this.treeScale,this.path,c),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=B());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Xr(this.prevProjectionDelta.x,this.projectionDelta.x),Xr(this.prevProjectionDelta.y,this.projectionDelta.y)),Jt(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!na(this.projectionDelta.x,this.prevProjectionDelta.x)||!na(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),Xt&&nt.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),r){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=kt(),this.projectionDelta=kt(),this.projectionDeltaWithTransform=kt()}setAnimationOrigin(r,a=!1){const c=this.snapshot,l=c?c.latestValues:{},u={...this.latestValues},h=kt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=B(),d=c?c.source:void 0,p=this.layout?this.layout.source:void 0,m=d!==p,g=this.getStack(),y=!g||g.members.length<=1,v=!!(m&&!y&&this.options.crossfade===!0&&!this.path.some(px));this.animationProgress=0;let b;this.mixTargetDelta=x=>{const w=x/1e3;aa(h.x,r.x,w),aa(h.y,r.y,w),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ei(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dx(this.relativeTarget,this.relativeTargetOrigin,f,w),b&&Zb(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=B()),de(b,this.relativeTarget)),m&&(this.animationValues=u,Wb(u,l,this.latestValues,w,v,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ge(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=O.update(()=>{Ei.hasAnimatedSinceResize=!0,this.currentAnimation=Bb(0,sa,{...r,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(sa),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=r;if(!(!a||!c||!l)){if(this!==r&&this.layout&&l&&_l(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||B();const h=ue(this.layout.layoutBox.x);c.x.min=r.target.x.min,c.x.max=c.x.min+h;const f=ue(this.layout.layoutBox.y);c.y.min=r.target.y.min,c.y.max=c.y.min+f}de(a,c),Mt(a,u),Jt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Qb),this.sharedNodes.get(r).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var r;const{layoutId:a}=this.options;return a?((r=this.getStack())===null||r===void 0?void 0:r.lead)||this:this}getPrevLead(){var r;const{layoutId:a}=this.options;return a?(r=this.getStack())===null||r===void 0?void 0:r.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:c}=r;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&An("z",r,l,this.animationValues);for(let u=0;u<Rn.length;u++)An(`rotate${Rn[u]}`,r,l,this.animationValues),An(`skew${Rn[u]}`,r,l,this.animationValues);r.render();for(const u in l)r.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);r.scheduleRender()}getProjectionStyles(r){var a,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ex;const l={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Ri(r==null?void 0:r.pointerEvents)||"",l.transform=u?u(this.latestValues,""):"none",l;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=Ri(r==null?void 0:r.pointerEvents)||""),this.hasProjected&&!it(this.latestValues)&&(m.transform=u?u({},""):"none",this.hasProjected=!1),m}const f=h.animationValues||h.latestValues;this.applyTransformsToTarget(),l.transform=Jb(this.projectionDeltaWithTransform,this.treeScale,f),u&&(l.transform=u(f,l.transform));const{x:d,y:p}=this.projectionDelta;l.transformOrigin=`${d.origin*100}% ${p.origin*100}% 0`,h.animationValues?l.opacity=h===this?(c=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:l.opacity=h===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const m in ji){if(f[m]===void 0)continue;const{correct:g,applyTo:y}=ji[m],v=l.transform==="none"?f[m]:g(f[m],h);if(y){const b=y.length;for(let x=0;x<b;x++)l[y[x]]=v}else l[m]=v}return this.options.layoutId&&(l.pointerEvents=h===this?Ri(r==null?void 0:r.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var a;return(a=r.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(oa),this.root.sharedNodes.clear()}}}function ix(t){t.updateLayout()}function nx(t){var e;const i=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:o}=t.options,r=i.source!==t.layout.source;o==="size"?pe(h=>{const f=r?i.measuredBox[h]:i.layoutBox[h],d=ue(f);f.min=n[h].min,f.max=f.min+d}):_l(o,i.layoutBox,n)&&pe(h=>{const f=r?i.measuredBox[h]:i.layoutBox[h],d=ue(n[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=kt();Jt(a,n,i.layoutBox);const c=kt();r?Jt(c,t.applyTransform(s,!0),i.measuredBox):Jt(c,n,i.layoutBox);const l=!Sl(a);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const p=B();ei(p,i.layoutBox,f.layoutBox);const m=B();ei(m,n,d.layoutBox),Tl(p,m)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:i,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function sx(t){Xt&&nt.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ox(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rx(t){t.clearSnapshot()}function oa(t){t.clearMeasurements()}function ax(t){t.isLayoutDirty=!1}function cx(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ra(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function lx(t){t.resolveTargetDelta()}function ux(t){t.calcProjection()}function hx(t){t.resetSkewAndRotation()}function fx(t){t.removeLeadSnapshot()}function aa(t,e,i){t.translate=z(e.translate,0,i),t.scale=z(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function ca(t,e,i,n){t.min=z(e.min,i.min,n),t.max=z(e.max,i.max,n)}function dx(t,e,i,n){ca(t.x,e.x,i.x,n),ca(t.y,e.y,i.y,n)}function px(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const mx={duration:.45,ease:[.4,0,.1,1]},la=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ua=la("applewebkit/")&&!la("chrome/")?Math.round:oe;function ha(t){t.min=ua(t.min),t.max=ua(t.max)}function gx(t){ha(t.x),ha(t.y)}function _l(t,e,i){return t==="position"||t==="preserve-aspect"&&!bb(ia(e),ia(i),.2)}function yx(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const vx=kl({attachResizeListener:(t,e)=>li(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),En={current:void 0},Ml=kl({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!En.current){const t=new vx({});t.mount(window),t.setOptions({layoutScroll:!0}),En.current=t}return En.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),bx={pan:{Feature:Lb},drag:{Feature:Vb,ProjectionNode:Ml,MeasureLayout:xl}};function fa(t,e,i){const{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover",i==="Start");const s="onHover"+i,o=n[s];o&&O.postRender(()=>o(e,pi(e)))}class xx extends Xe{mount(){const{current:e}=this.node;e&&(this.unmount=wy(e,i=>(fa(this.node,i,"Start"),n=>fa(this.node,n,"End"))))}unmount(){}}class wx extends Xe{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=di(li(this.node.current,"focus",()=>this.onFocus()),li(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function da(t,e,i){const{props:n}=t;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap",i==="Start");const s="onTap"+(i==="End"?"":i),o=n[s];o&&O.postRender(()=>o(e,pi(e)))}class Px extends Xe{mount(){const{current:e}=this.node;e&&(this.unmount=Cy(e,i=>(da(this.node,i,"Start"),(n,{success:s})=>da(this.node,n,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const os=new WeakMap,On=new WeakMap,Sx=t=>{const e=os.get(t.target);e&&e(t)},Tx=t=>{t.forEach(Sx)};function Cx({root:t,...e}){const i=t||document;On.has(i)||On.set(i,{});const n=On.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(Tx,{root:t,...e})),n[s]}function kx(t,e,i){const n=Cx(e);return os.set(t,i),n.observe(t),()=>{os.delete(t),n.unobserve(t)}}const _x={some:0,all:1};class Mx extends Xe{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:i,margin:n,amount:s="some",once:o}=e,r={root:i?i.current:void 0,rootMargin:n,threshold:typeof s=="number"?s:_x[s]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,o&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),f=l?u:h;f&&f(c)};return kx(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:i}=this.node;["amount","margin","root"].some(Dx(e,i))&&this.startObserver()}unmount(){}}function Dx({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}const Rx={inView:{Feature:Mx},tap:{Feature:Px},focus:{Feature:wx},hover:{Feature:xx}},Ax={layout:{ProjectionNode:Ml,MeasureLayout:xl}},rs={current:null},Dl={current:!1};function Ex(){if(Dl.current=!0,!!bs)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>rs.current=t.matches;t.addListener(e),e()}else rs.current=!1}const Ox=[...Jc,G,Ke],Vx=t=>Ox.find(Qc(t)),pa=new WeakMap;function Lx(t,e,i){for(const n in e){const s=e[n],o=i[n];if(Z(s))t.addValue(n,s);else if(Z(o))t.addValue(n,ai(s,{owner:t}));else if(o!==s)if(t.hasValue(n)){const r=t.getValue(n);r.liveStyle===!0?r.jump(s):r.hasAnimated||r.set(s)}else{const r=t.getStaticValue(n);t.addValue(n,ai(r!==void 0?r:s,{owner:t}))}}for(const n in i)e[n]===void 0&&t.removeValue(n);return e}const ma=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class zx{scrapeMotionValuesFromProps(e,i,n){return{}}constructor({parent:e,props:i,presenceContext:n,reducedMotionConfig:s,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Gs,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=De.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,O.render(this.render,!1,!0))};const{latestValues:c,renderState:l,onUpdate:u}=r;this.onUpdate=u,this.latestValues=c,this.baseTarget={...c},this.initialValues=i.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=i,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Zi(i),this.isVariantNode=ac(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(i,{},this);for(const d in f){const p=f[d];c[d]!==void 0&&Z(p)&&p.set(c[d],!1)}}mount(e){this.current=e,pa.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,n)=>this.bindToMotionValue(n,i)),Dl.current||Ex(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:rs.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){pa.delete(this.current),this.projection&&this.projection.unmount(),Ge(this.notifyUpdate),Ge(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const i=this.features[e];i&&(i.unmount(),i.isMounted=!1)}this.current=null}bindToMotionValue(e,i){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=yt.has(e),s=i.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&O.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=i.on("renderRequest",this.scheduleRender);let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,i)),this.valueSubscriptions.set(e,()=>{s(),o(),r&&r(),i.owner&&i.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Ut){const i=Ut[e];if(!i)continue;const{isEnabled:n,Feature:s}=i;if(!this.features[e]&&s&&n(this.props)&&(this.features[e]=new s(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):B()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,i){this.latestValues[e]=i}update(e,i){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let n=0;n<ma.length;n++){const s=ma[n];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o="on"+s,r=e[o];r&&(this.propEventSubscriptions[s]=this.on(s,r))}this.prevMotionValues=Lx(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(e),()=>i.variantChildren.delete(e)}addValue(e,i){const n=this.values.get(e);i!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,i),this.values.set(e,i),this.latestValues[e]=i.get())}removeValue(e){this.values.delete(e);const i=this.valueSubscriptions.get(e);i&&(i(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,i){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&i!==void 0&&(n=ai(i===null?void 0:i,{owner:this}),this.addValue(e,n)),n}readValue(e,i){var n;let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(Yc(s)||Uc(s))?s=parseFloat(s):!Vx(s)&&Ke.test(i)&&(s=Gc(e,i)),this.setBaseTarget(e,Z(s)?s.get():s)),Z(s)?s.get():s}setBaseTarget(e,i){this.baseTarget[e]=i}getBaseTarget(e){var i;const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=ks(this.props,n,(i=this.presenceContext)===null||i===void 0?void 0:i.custom);r&&(s=r[e])}if(n&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!Z(o)?o:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,i){return this.events[e]||(this.events[e]=new js),this.events[e].add(i)}notify(e,...i){this.events[e]&&this.events[e].notify(...i)}}class Rl extends zx{constructor(){super(...arguments),this.KeyframeResolver=el}sortInstanceNodePosition(e,i){return e.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(e,i){return e.style?e.style[i]:void 0}removeValueFromRenderState(e,{vars:i,style:n}){delete i[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Z(e)&&(this.childSubscription=e.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}function Ix(t){return window.getComputedStyle(t)}class Fx extends Rl{constructor(){super(...arguments),this.type="html",this.renderInstance=gc}readValueFromInstance(e,i){if(yt.has(i)){const n=Hs(i);return n&&n.default||0}else{const n=Ix(e),s=(dc(i)?n.getPropertyValue(i):n[i])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:i}){return vl(e,i)}build(e,i,n){Ds(e,i,n.transformTemplate)}scrapeMotionValuesFromProps(e,i,n){return Os(e,i,n)}}class Bx extends Rl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=B}getBaseTargetFromProps(e,i){return e[i]}readValueFromInstance(e,i){if(yt.has(i)){const n=Hs(i);return n&&n.default||0}return i=yc.has(i)?i:Ss(i),e.getAttribute(i)}scrapeMotionValuesFromProps(e,i,n){return xc(e,i,n)}
1build(e,i,n){Rs(e,i,this.isSVGTag,n.transformTemplate)}renderInstance(e,i,n,s){vc(e,i,n,s)}mount(e){this.isSVGTag=Es(e.tagName),super.mount(e)}}const jx=(t,e)=>Cs(t)?new Bx(e):new Fx(e,{allowProjection:t!==_.Fragment}),Ux=py({...ub,...Rx,...bx,...Ax},jx),$x=Dg(Ux);function qx(t){t.values.forEach(e=>e.stop())}function as(t,e){[...e].reverse().forEach(n=>{const s=t.getVariant(n);s&&Us(t,s),t.variantChildren&&t.variantChildren.forEach(o=>{as(o,e)})})}function Nx(t,e){if(Array.isArray(e))return as(t,e);if(typeof e=="string")return as(t,[e]);Us(t,e)}function Wx(){const t=new Set,e={subscribe(i){return t.add(i),()=>void t.delete(i)},start(i,n){const s=[];return t.forEach(o=>{s.push(ll(o,i,{transitionOverride:n}))}),Promise.all(s)},set(i){return t.forEach(n=>{Nx(n,i)})},stop(){t.forEach(i=>{qx(i)})},mount(){return()=>{e.stop()}}};return e}function Hx(){const t=ec(Wx);return ic(t.mount,[]),t}const Gx=Hx,tw=t=>{const{id:e,className:i,background:n,minSize:s,maxSize:o,speed:r,particleColor:a,particleDensity:c,fullscreen:l}=t,[u,h]=_.useState(!1);_.useEffect(()=>{of(async p=>{await xg(p)}).then(()=>{h(!0)})},[]);const f=Gx(),d=async p=>{p&&f.start({opacity:1,transition:{duration:1}})};return Vt.jsx($x.div,{animate:f,className:Zs("opacity-0",i),children:u?Vt.jsx(sf,{id:e||"tsparticles",className:Zs("h-full w-full"),particlesLoaded:d,options:{background:{color:{value:n||"#0d47a1"}},fullScreen:{enable:l||!1,zIndex:1},fpsLimit:120,interactivity:{events:{onClick:{enable:!0,mode:"push"},onHover:{enable:!1,mode:"repulse"},resize:{enable:!0}},modes:{push:{quantity:4},repulse:{distance:200,duration:.4}}},particles:{bounce:{horizontal:{value:1},vertical:{value:1}},collisions:{absorb:{speed:2},bounce:{horizontal:{value:1},vertical:{value:1}},enable:!1,maxSpeed:50,mode:"absorb",overlap:{enable:!0,retries:0}},color:{value:a||"random",animation:{h:{count:0,enable:!1,speed:1,decay:0,delay:0,sync:!0,offset:0},s:{count:0,enable:!1,speed:1,decay:0,delay:0,sync:!0,offset:0},l:{count:0,enable:!1,speed:1,decay:0,delay:0,sync:!0,offset:0}}},effect:{close:!0,fill:!0,options:{},type:"circle"},groups:{},move:{angle:{offset:0,value:90},attract:{distance:200,enable:!1,rotate:{x:3e3,y:3e3}},center:{x:50,y:50,mode:"percent",radius:0},decay:0,distance:{},direction:"none",drift:0,enable:r!==void 0&&r>0,gravity:{acceleration:9.81,enable:!1,inverse:!1,maxSpeed:50},path:{clamp:!0,delay:{value:0},enable:!1,options:{}},outModes:{default:"out"},random:!1,size:!1,speed:{min:.1,max:1},spin:{acceleration:0,enable:!1},straight:!1,trail:{enable:!1,length:10,fill:{}},vibrate:!1,warp:!1},number:{density:{enable:!0,width:400,height:400},limit:{mode:"delete",value:0},value:c||120},opacity:{value:{min:.1,max:.6},animation:{count:0,enable:r!==void 0&&r>0,speed:r||1,decay:0,delay:0,sync:!1,mode:"auto",startValue:"random",destroy:"none"}},reduceDuplicates:!1,shadow:{blur:0,color:{value:"#000"},enable:!1,offset:{x:0,y:0}},shape:{close:!0,fill:!0,options:{},type:"circle"},size:{value:{min:s||1,max:o||3},animation:{count:0,enable:!0,speed:r||1,decay:0,delay:0,sync:!1,mode:"auto",startValue:"random",destroy:"none"}},stroke:{width:0},zIndex:{value:0,opacityRate:1,sizeRate:1,velocityRate:1},destroy:{bounds:{},mode:"none",split:{count:1,factor:{value:3},rate:{value:{min:4,max:9}},sizeOffset:!0}}
1,roll:{darken:{enable:!1,value:0},enable:!1,enlighten:{enable:!1,value:0},mode:"vertical",speed:25},tilt:{value:0,animation:{enable:!1,speed:0,decay:0,sync:!1},direction:"clockwise",enable:!1},twinkle:{lines:{enable:!1,frequency:.05,opacity:1},particles:{enable:!1,frequency:.05,opacity:1}},wobble:{distance:5,enable:!1,speed:{angle:50,move:10}},life:{count:0,delay:{value:0,sync:!1},duration:{value:0,sync:!1}},rotate:{value:0,animation:{enable:!1,speed:0,decay:0,sync:!1},direction:"clockwise",path:!1},orbit:{animation:{count:0,enable:!1,speed:r,decay:0,delay:0,sync:!1},enable:!1,opacity:1,rotation:{value:45},width:1},links:{blink:!1,color:{value:"#fff"},consent:!1,distance:100,enable:!1,frequency:1,opacity:1,shadow:{blur:5,color:{value:"#000"},enable:!1},triangles:{enable:!1,frequency:1},width:1,warp:!1},repulse:{value:0,enabled:!1,distance:1,duration:1,factor:1,speed:1}},detectRetina:!0}}):null})};export{tc as M,tw as S,Be as a,W as b,Ge as c,Ov as d,ic as e,O as f,dr as g,$x as h,Av as i,ai as m,oe as n,jt as p,xy as r,my as s,ec as u,Ac as v,Jx as w};

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