PageSourceSearch

https://brandon-fernandez-portfolio.vercel.app/_next/static/chunks/376a27b0e9e7e894.js

js brandon-fernandez-portfolio.vercel.app collected 2026-10-03 06:18:45 UTC 162,483 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,15850,t=>{"use strict";let e,i,r;var n,s=t.i(83854),o=t.i(1392),a=t.i(63804);let l="!@#$%^&*()_+-=<>?/\\[]{}Xx";function u({text:t,className:e,duration:i=.4,as:r="span",onClick:n}){let[u,c]=(0,o.useState)(t),h=(0,o.useRef)(!1),d=(0,o.useRef)(null),m=(0,o.useCallback)(()=>{var e;let r,n,s,o;h.current||(h.current=!0,d.current&&d.current.kill(),c(t.split("").map(()=>l[Math.floor(Math.random()*l.length)]).join("")),e=()=>{h.current=!1},r=new Set,s=(n=t.split("")).length,o={progress:0},d.current=a.default.to(o,{progress:1,duration:i,ease:"power2.out",onUpdate:()=>{let t=Math.floor(o.progress*s);for(let e=0;e<t;e++)r.add(e);c(n.map((t,e)=>r.has(e)?t:l[Math.floor(Math.random()*l.length)]).join(""))},onComplete:()=>{c(t),e?.()}}))},[t,i]);return(0,o.useEffect)(()=>{h.current||c(t)},[t]),(0,s.jsx)(r,{className:e,onMouseEnter:m,onClick:n,children:u})}let c=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],h=new Set(c),d=t=>180*t/Math.PI,m=t=>f(d(Math.atan2(t[1],t[0]))),p={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:m,rotateZ:m,skewX:t=>d(Math.atan(t[1])),skewY:t=>d(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},f=t=>((t%=360)<0&&(t+=360),t),g=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),y=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),v={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:g,scaleY:y,scale:t=>(g(t)+y(t))/2,rotateX:t=>f(d(Math.atan2(t[6],t[5]))),rotateY:t=>f(d(Math.atan2(-t[2],t[0]))),rotateZ:m,rotate:m,skewX:t=>d(Math.atan(t[4])),skewY:t=>d(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function x(t){return+!!t.includes("scale")}function b(t,e){let i,r;if(!t||"none"===t)return x(e);let n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=v,r=n;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=p,r=e}if(!r)return x(e);let s=i[e],o=r[1].split(",").map(w);return"function"==typeof s?s(o):o[s]}function w(t){return parseFloat(t.trim())}let k=t=>e=>"string"==typeof e&&e.startsWith(t),T=k("--"),P=k("var(--"),S=t=>!!P(t)&&j.test(t.split("/*")[0].trim()),j=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function A({top:t,left:e,right:i,bottom:r}){return{x:{min:e,max:i},y:{min:t,max:r}}}let M=(t,e,i)=>t+(e-t)*i;function C(t){return void 0===t||1===t}function E({scale:t,scaleX:e,scaleY:i}){return!C(t)||!C(e)||!C(i)}function V(t){return E(t)||R(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function R(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function D(t,e,i,r,n){return void 0!==n&&(t=r+n*(t-r)),r+i*(t-r)+e}function N(t,e=0,i=1,r,n){t.min=D(t.min,e,i,r,n),t.max=D(t.max,e,i,r,n)}function L(t,{x:e,y:i}){N(t.x,e.translate,e.scale,e.originPoint),N(t.y,i.translate,i.scale,i.originPoint)}function F(t,e){t.min=t.min+e,t.max=t.max+e}function B(t,e,i,r,n=.5){let s=M(t.min,t.max,n);N(t,e,i,s,r)}function O(t,e){B(t.x,e.x,e.scaleX,e.scale,e.originX),B(t.y,e.y,e.scaleY,e.scale,e.originY)}function I(t,e){return A(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}let z=new Set(["width","height","top","left","right","bottom",...c]),U=(t,e,i)=>i>e?e:i<t?t:i,$={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},W={...$,transform:t=>U(0,1,t)},H={...$,default:1},X=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Y=X("deg"),K=X("%"),q=X("px"),G=X("vh"),_=X("vw"),Z={...K,parse:t=>K.parse(t)/100,transform:t=>K.transform(100*t)},Q=t=>e=>e.test(t),J=[$,q,K,Y,_,G,{test:t=>"auto"===t,parse:t=>t}],tt=t=>J.find(Q(t));t.i(73566);let te=()=>{},ti=()=>{},tr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tn=t=>t===$||t===q,ts=new Set(["x","y","z"]),to=c.filter(t=>!ts.has(t)),ta={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:(t,{transform:e})=>b(e,"x"),y:(t,{transform:e})=>b(e,"y")};ta.translateX=ta.x,ta.translateY=ta.y;let tl=t=>t,tu={},tc=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function th(t,e){let i=!1,r=!0,n={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=tc.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,r=new Set,n=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(c.schedule(e),t()),l++,e(a)}let c={schedule:(t,e=!1,s=!1)=>{let a=s&&n?i:r;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{r.delete(t),o.delete(t)},process:t=>{if(a=t,n){s=!0;return}
1n=!0,[i,r]=[r,i],i.forEach(u),e,l=0,i.clear(),n=!1,s&&(s=!1,c.process(t))}};return c}(s,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:h,preRender:d,render:m,postRender:p}=o,f=()=>{let s=tu.useManualTiming?n.timestamp:performance.now();i=!1,tu.useManualTiming||(n.delta=r?1e3/60:Math.max(Math.min(s-n.timestamp,40),1)),n.timestamp=s,n.isProcessing=!0,a.process(n),l.process(n),u.process(n),c.process(n),h.process(n),d.process(n),m.process(n),p.process(n),n.isProcessing=!1,i&&e&&(r=!1,t(f))};return{schedule:tc.reduce((e,s)=>{let a=o[s];return e[s]=(e,s=!1,o=!1)=>(!i&&(i=!0,r=!0,n.isProcessing||t(f)),a.schedule(e,s,o)),e},{}),cancel:t=>{for(let e=0;e<tc.length;e++)o[tc[e]].cancel(t)},state:n,steps:o}}let{schedule:td,cancel:tm,state:tp,steps:tf}=th("u">typeof requestAnimationFrame?requestAnimationFrame:tl,!0),tg=new Set,ty=!1,tv=!1,tx=!1;function tb(){if(tv){let t=Array.from(tg).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,r=(e=[],to.forEach(i=>{let r=t.getValue(i);void 0!==r&&(e.push([i,r.get()]),r.set(+!!i.startsWith("scale")))}),e);r.length&&(i.set(t,r),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tv=!1,ty=!1,tg.forEach(t=>t.complete(tx)),tg.clear()}function tw(){tg.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tv=!0)})}class tk{constructor(t,e,i,r,n,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=r,this.element=n,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(tg.add(this),ty||(ty=!0,td.read(tw),td.resolveKeyframes(tb))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:r}=this;if(null===t[0]){let n=r?.get(),s=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let r=i.readValue(e,s);null!=r&&(t[0]=r)}void 0===t[0]&&(t[0]=s),r&&void 0===n&&r.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tg.delete(this)}cancel(){"scheduled"===this.state&&(tg.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tT=t=>Math.round(1e5*t)/1e5,tP=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tS=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tj=(t,e)=>i=>!!("string"==typeof i&&tS.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tA=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[n,s,o,a]=r.match(tP);return{[t]:parseFloat(n),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tM={...$,transform:t=>Math.round(U(0,255,t))},tC={test:tj("rgb","red"),parse:tA("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:r=1})=>"rgba("+tM.transform(t)+", "+tM.transform(e)+", "+tM.transform(i)+", "+tT(W.transform(r))+")"},tE={test:tj("#"),parse:function(t){let e="",i="",r="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),r=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),r=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,r+=r,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}},transform:tC.transform},tV={test:tj("hsl","hue"),parse:tA("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:r=1})=>"hsla("+Math.round(t)+", "+K.transform(tT(e))+", "+K.transform(tT(i))+", "+tT(W.transform(r))+")"},tR={test:t=>tC.test(t)||tE.test(t)||tV.test(t),parse:t=>tC.test(t)?tC.parse(t):tV.test(t)?tV.parse(t):tE.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tC.transform(t):tV.transform(t),getAnimatableNone:t=>{let e=tR.parse(t);return e.alpha=0,tR.transform(e)}},tD=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tN="number",tL="color",tF=/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 tB(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},n=[],s=0,o=e.replace(tF,t=>(tR.test(t)?(r.color.push(s),n.push(tL),i.push(tR.parse(t))):t.startsWith("var(")?(r.var.push(s),n.push("var"),i.push(t)):(r.number.push(s),n.push(tN),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:r,types:n}}function tO(t){return tB(t).values}function tI(t){let{split:e,types:i}=tB(t),r=e.length;return t=>{let n="";for(let s=0;s<r;s++)if(n+=e[s],void 0!==t[s]){let e=i[s];e===tN?n+=tT(t[s]):e===tL?n+=tR.transform(t[s]):n+=t[s]}return n}}let tz=t=>"number"==typeof t?0:tR.test(t)?tR.getAnimatableNone(t):t,tU={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(tP)?.length||0)+(t.match(tD)?.length||0)>0},parse:tO,createTransformer:tI,getAnimatableNone:function(t){let e=tO(t);return tI(t)(e.map(tz))}},t$=new Set(["brightness","contrast","saturate","opacity"]);function tW(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=i.match(tP)||[];if(!r)return t;let n=i.replace(r,""),s=+!!t$.has(e);return r!==i&&(s*=100),e+"("+s+n+")"}let tH=/\b([a-z-]*)\(.*?\)/gu,tX={...tU,getAnimatableNone:t=>{let e=t.match(tH);return e?e.map(tW).join(" "):t}},tY={...$,transform:Math.round},tK={borderWidth:q,borderTopWidth:q,borderRightWidth:q,borderBottomWidth:q,borderLeftWidth:q,borderRadius:q,radius:q,borderTopLeftRadius:q,borderTopRightRadius:q,borderBottomRightRadius:q,borderBottomLeftRadius:q,width:q,maxWidth:q,height:q,maxHeight:q,top:q,right:q,bottom:q,left:q,padding:q,paddingTop:q,paddingRight:q,paddingBottom:q,paddingLeft:q,margin:q,marginTop:q,marginRight:q,marginBottom:q,marginLeft:q,backgroundPositionX:q,backgroundPositionY:q,rotate:Y,rotateX:Y,rotateY:Y,rotateZ:Y,scale:H,scaleX:H,scaleY:H,scaleZ:H,skew:Y,skewX:Y,skewY:Y,distance:q,translateX:q,translateY:q,translateZ:q,x:q,y:q,z:q,perspective:q,transformPerspective:q,opacity:W,originX:Z,originY:Z,originZ:q,zIndex:tY,fillOpacity:W,strokeOpacity:W,numOctaves:tY},tq={...tK,color:tR,backgroundColor:tR,outlineColor:tR,fill:tR,stroke:tR,borderColor:tR,borderTopColor:tR,borderRightColor:tR,borderBottomColor:tR,borderLeftColor:tR,filter:tX,WebkitFilter:tX},tG=t=>tq[t];function t_(t,e){let i=tG(t);return i!==tX&&(i=tU),i.getAnimatableNone?i.getAnimatableNone(e):void 0}
1let tZ=new Set(["auto","none","0"]);class tQ extends tk{constructor(t,e,i,r,n){super(t,e,i,r,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let r=t[i];if("string"==typeof r&&S(r=r.trim())){let n=function t(e,i,r=1){ti(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,s]=function(t){let e=tr.exec(t);if(!e)return[,];let[,i,r,n]=e;return[`--${i??r}`,n]}(e);if(!n)return;let o=window.getComputedStyle(i).getPropertyValue(n);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return S(s)?t(s,i,r+1):s}(r,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!z.has(i)||2!==t.length)return;let[r,n]=t,s=tt(r),o=tt(n);if(s!==o)if(tn(s)&&tn(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else ta[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let r,n=0;for(;n<t.length&&!r;){let e=t[n];"string"==typeof e&&!tZ.has(e)&&tB(e).values.length&&(r=t[n]),n++}if(r&&i)for(let n of e)t[n]=t_(i,r)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ta[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let r=e[e.length-1];void 0!==r&&t.getValue(i,r).jump(r,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let r=t.getValue(e);r&&r.jump(this.measuredOrigin,!1);let n=i.length-1,s=i[n];i[n]=ta[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let tJ=t=>!!(t&&t.getVelocity);function t0(){e=void 0}let t1={now:()=>(void 0===e&&t1.set(tp.isProcessing||tu.useManualTiming?tp.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(t0)}};function t2(t,e){-1===t.indexOf(e)&&t.push(e)}function t5(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class t3{constructor(){this.subscriptions=[]}add(t){return t2(this.subscriptions,t),()=>t5(this.subscriptions,t)}notify(t,e,i){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,i);else for(let n=0;n<r;n++){let r=this.subscriptions[n];r&&r(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class t4{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=t1.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=t1.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new t3);let i=this.events[t].add(e);return"change"===t?()=>{i(),td.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return r&&r.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=t1.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function t6(t,e){return new t4(t,e)}let t8=[...J,tR,tU],{schedule:t9}=th(queueMicrotask,!1),t7={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"]},et={};for(let t in t7)et[t]={isEnabled:e=>t7[t].some(t=>!!e[t])};let ee=()=>({translate:0,scale:1,origin:0,originPoint:0}),ei=()=>({x:ee(),y:ee()}),er=()=>({min:0,max:0}),en=()=>({x:er(),y:er()}),es="u">typeof window,eo={current:null},ea={current:!1},el=new WeakMap;function eu(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function ec(t){return"string"==typeof t||Array.isArray(t)}let eh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ed=["initial",...eh];function em(t){return eu(t.animate)||ed.some(e=>ec(t[e]))}function ep(t){return!!(em(t)||t.variants)}function ef(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function eg(t,e,i,r){if("function"==typeof e){let[n,s]=ef(r);e=e(void 0!==i?i:t.custom,n,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,s]=ef(r);e=e(void 0!==i?i:t.custom,n,s)}return e}let ey=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ev{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:n,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tk,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=()=>{let t=t1.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,td.render(this.render,!1,!0))};const{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!n,this.isControllingVariants=em(e),this.isVariantNode=ep(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in c){const e=c[t];void 0!==a[t]&&tJ(e)&&e.set(a[t])}}mount(t){this.current=t,el.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),ea.current||function(){if(ea.current=!0,es)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>eo.current=t.matches;t.addEventListener("change",e),e()}else eo.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||eo.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),tm(this.notifyUpdate),tm(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=h.has(t);r&&this.onBindTransform&&this.onBindTransform();let n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&td.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in et){let e=et[t];if(!e)continue;let{isEnabled:i,Feature:r}=e;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):en()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ey.length;e++){let i=ey[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=t["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}
1this.prevMotionValues=function(t,e,i){for(let r in e){let n=e[r],s=i[r];if(tJ(n))t.addValue(r,n);else if(tJ(s))t.addValue(r,t6(n,{owner:t}));else if(s!==n)if(t.hasValue(r)){let e=t.getValue(r);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(r);t.addValue(r,t6(void 0!==e?e:n,{owner:t}))}}for(let r in i)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=t6(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let r,n;if("string"==typeof i&&(r=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(n=i,/^0[^.\s]+$/u.test(n))))i=parseFloat(i);else{let r;r=i,!t8.find(Q(r))&&tU.test(e)&&(i=t_(t,e))}this.setBaseTarget(t,tJ(i)?i.get():i)}return tJ(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let r=eg(this.props,i,this.presenceContext?.custom);r&&(e=r[t])}if(i&&void 0!==e)return e;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||tJ(r)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new t3),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){t9.render(this.render)}}class ex extends ev{constructor(){super(...arguments),this.KeyframeResolver=tQ}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;tJ(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}let eb=(t,e)=>e&&"number"==typeof t?e.transform(t):t,ew={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ek=c.length;function eT(t,e,i){let{style:r,vars:n,transformOrigin:s}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(h.has(t)){o=!0;continue}if(T(t)){n[t]=i;continue}{let e=eb(i,tK[t]);t.startsWith("origin")?(a=!0,s[t]=e):r[t]=e}}if(!e.transform&&(o||i?r.transform=function(t,e,i){let r="",n=!0;for(let s=0;s<ek;s++){let o=c[s],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!o.startsWith("scale"):0===parseFloat(a))||i){let t=eb(a,tK[o]);if(!l){n=!1;let e=ew[o]||o;r+=`${e}(${t}) `}i&&(e[o]=t)}}return r=r.trim(),i?r=i(e,n?"":r):n&&(r="none"),r}(e,t.transform,i):r.transform&&(r.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;r.transformOrigin=`${t} ${e} ${i}`}}function eP(t,{style:e,vars:i},r,n){let s,o=t.style;for(s in e)o[s]=e[s];for(s in n?.applyProjectionStyles(o,r),i)o.setProperty(s,i[s])}function eS(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let ej={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!q.test(t))return t;else t=parseFloat(t);let i=eS(t,e.target.x),r=eS(t,e.target.y);return`${i}% ${r}%`}},eA={borderRadius:{...ej,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ej,borderTopRightRadius:ej,borderBottomLeftRadius:ej,borderBottomRightRadius:ej,boxSh
1adow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let r=tU.parse(t);if(r.length>5)return t;let n=tU.createTransformer(t),s=+("number"!=typeof r[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;r[0+s]/=o,r[1+s]/=a;let l=M(o,a,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),n(r)}}};function eM(t,{layout:e,layoutId:i}){return h.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eA[t]||"opacity"===t)}function eC(t,e,i){let{style:r}=t,n={};for(let s in r)(tJ(r[s])||e.style&&tJ(e.style[s])||eM(s,t)||i?.getValue(s)?.liveStyle!==void 0)&&(n[s]=r[s]);return n}class eE extends ex{constructor(){super(...arguments),this.type="html",this.renderInstance=eP}readValueFromInstance(t,e){if(h.has(e))return this.projection?.isProjecting?x(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return b(i,e)})(t,e);{let i=window.getComputedStyle(t),r=(T(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return I(t,e)}build(t,e,i){eT(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return eC(t,e,i)}}let eV=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eR={offset:"stroke-dashoffset",array:"stroke-dasharray"},eD={offset:"strokeDashoffset",array:"strokeDasharray"};function eN(t,{attrX:e,attrY:i,attrScale:r,pathLength:n,pathSpacing:s=1,pathOffset:o=0,...a},l,u,c){if(eT(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:h,style:d}=t;h.transform&&(d.transform=h.transform,delete h.transform),(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=c?.transformBox??"fill-box",delete h.transformBox),void 0!==e&&(h.x=e),void 0!==i&&(h.y=i),void 0!==r&&(h.scale=r),void 0!==n&&function(t,e,i=1,r=0,n=!0){t.pathLength=1;let s=n?eR:eD;t[s.offset]=q.transform(-r);let o=q.transform(e),a=q.transform(i);t[s.array]=`${o} ${a}`}(h,n,s,o,!1)}let eL=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"]),eF=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eB(t,e,i){let r=eC(t,e,i);for(let i in t)(tJ(t[i])||tJ(e[i]))&&(r[-1!==c.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return r}class eO extends ex{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=en}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(h.has(e)){let t=tG(e);return t&&t.default||0}return e=eL.has(e)?e:eV(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eB(t,e,i)}build(t,e,i){eN(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,r){for(let i in eP(t,e,void 0,r),e.attrs)t.setAttribute(eL.has(i)?i:eV(i),e.attrs[i])}mount(t){this.isSVGTag=eF(t.tagName),super.mount(t)}}let eI=["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 ez(t){if("string"!=typeof t||t.includes("-"));else if(eI.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let eU=(0,o.createContext)({}),e$=(0,o.createContext)({strict:!1}),eW=(0,o.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),eH=(0,o.createContext)({});function eX(t){return Array.isArray(t)?t.join(" "):t}let eY=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eK(t,e,i){for(let r in e)tJ(e[r])||eM(r,i)||(t[r]=e[r])}let eq=()=>({...eY(),attrs:{}}),eG=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 e_(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||eG.has(t)}let eZ=t=>!e_(t);try{n=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof n&&(eZ=t=>t.startsWith("on")?!e_(t):n(t))}catch{}let eQ=(0,o.createContext)(null);function eJ(t){return tJ(t)?t.get():t}let e0=t=>(e,i)=>{let r,n=(0,o.useContext)(eH),s=(0,o.useContext)(eQ),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e}
1,i,r,n){return{latestValues:function(t,e,i,r){let n={},s=r(t,{});for(let t in s)n[t]=eJ(s[t]);let{initial:o,animate:a}=t,l=em(t),u=ep(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let c=!!i&&!1===i.initial,h=(c=c||!1===o)?a:o;if(h&&"boolean"!=typeof h&&!eu(h)){let e=Array.isArray(h)?h:[h];for(let i=0;i<e.length;i++){let r=eg(t,e[i]);if(r){let{transitionEnd:t,transition:e,...i}=r;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(n[t]=e)}for(let e in t)n[e]=t[e]}}}return n}(i,r,n,t),renderState:e()}})(t,e,n,s);return i?a():(null===(r=(0,o.useRef)(null)).current&&(r.current=a()),r.current)},e1=e0({scrapeMotionValuesFromProps:eC,createRenderState:eY}),e2=e0({scrapeMotionValuesFromProps:eB,createRenderState:eq}),e5=Symbol.for("motionComponentSymbol");function e3(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let e4="data-"+eV("framerAppearId"),e6=(0,o.createContext)({}),e8=es?o.useLayoutEffect:o.useEffect;function e9(t,{forwardMotionProps:e=!1}={},i,r){i&&function(t){for(let e in t)et[e]={...et[e],...t[e]}}(i);let n=ez(t)?e2:e1;function a(i,a){var l;let u,c={...(0,o.useContext)(eW),...i,layoutId:function({layoutId:t}){let e=(0,o.useContext)(eU).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:h}=c,d=function(t){let{initial:e,animate:i}=function(t,e){if(em(t)){let{initial:e,animate:i}=t;return{initial:!1===e||ec(e)?e:void 0,animate:ec(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,o.useContext)(eH));return(0,o.useMemo)(()=>({initial:e,animate:i}),[eX(e),eX(i)])}(i),m=n(i,h);if(!h&&es){(0,o.useContext)(e$).strict;let e=function(t){let{drag:e,layout:i}=et;if(!e&&!i)return{};let r={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(c);u=e.MeasureLayout,d.visualElement=function(t,e,i,r,n){let{visualElement:s}=(0,o.useContext)(eH),a=(0,o.useContext)(e$),l=(0,o.useContext)(eQ),u=(0,o.useContext)(eW).reducedMotion,c=(0,o.useRef)(null);r=r||a.renderer,!c.current&&r&&(c.current=r(t,{visualState:e,parent:s,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));let h=c.current,d=(0,o.useContext)(e6);h&&!h.projection&&n&&("html"===h.type||"svg"===h.type)&&function(t,e,i,r){let{layoutId:n,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:s,alwaysMeasureLayout:!!o||a&&e3(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}(c.current,i,n,d);let m=(0,o.useRef)(!1);(0,o.useInsertionEffect)(()=>{h&&m.current&&h.update(i,l)});let p=i[e4],f=(0,o.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return e8(()=>{h&&(m.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),f.current&&h.animationState&&h.animationState.animateChanges())}),(0,o.useEffect)(()=>{h&&(!f.current&&h.animationState&&h.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),f.current=!1),h.enteringChildren=void 0)}),h}(t,m,c,r,e.ProjectionNode)}return(0,s.jsxs)(eH.Provider,{value:d,children:[u&&d.visualElement?(0,s.jsx)(u,{visualElement:d.visualElement,...c}):null,function(t,e,i,{latestValues:r},n,s=!1){let a=(ez(t)?function(t,e,i,r){let n=(0,o.useMemo)(()=>{let i=eq();return eN(i,e,eF(r),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};eK(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i,r,n={},s=(i=t.style||{},eK(r={},i,t),Object.assign(r,function({transformTemplate:t},e){return(0,o.useMemo)(()=>{let i=eY();return eT(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),r);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}
1)(e,r,n,t),l=function(t,e,i){let r={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(eZ(n)||!0===i&&e_(n)||!e&&!e_(n)||t.draggable&&n.startsWith("onDrag"))&&(r[n]=t[n]);return r}(e,"string"==typeof t,s),u=t!==o.Fragment?{...l,...a,ref:i}:{},{children:c}=e,h=(0,o.useMemo)(()=>tJ(c)?c.get():c,[c]);return(0,o.createElement)(t,{...u,children:h})}(t,i,(l=d.visualElement,(0,o.useCallback)(t=>{t&&m.onMount&&m.onMount(t),l&&(t?l.mount(t):l.unmount()),a&&("function"==typeof a?a(t):e3(a)&&(a.current=t))},[l])),m,h,e)]})}a.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let l=(0,o.forwardRef)(a);return l[e5]=t,l}function e7(t,e,i){let r=t.getProps();return eg(r,e,void 0!==i?i:r.custom,t)}function it(t,e){return t?.[e]??t?.default??t}let ie=t=>Array.isArray(t);function ii(t,e){let i=t.getValue("willChange");if(tJ(i)&&i.add)return i.add(e);if(!i&&tu.WillChange){let i=new tu.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function ir(t){t.duration=0,t.type="keyframes"}let is=(t,e)=>i=>e(t(i)),io=(...t)=>t.reduce(is),ia=t=>1e3*t,il={layout:0,mainThread:0,waapi:0};function iu(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function ic(t,e){return i=>i>0?e:t}let ih=(t,e,i)=>{let r=t*t,n=i*(e*e-r)+r;return n<0?0:Math.sqrt(n)},id=[tE,tC,tV];function im(t){let e=id.find(e=>e.test(t));if(te(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===tV&&(i=function({hue:t,saturation:e,lightness:i,alpha:r}){t/=360,i/=100;let n=0,s=0,o=0;if(e/=100){let r=i<.5?i*(1+e):i+e-i*e,a=2*i-r;n=iu(a,r,t+1/3),s=iu(a,r,t),o=iu(a,r,t-1/3)}else n=s=o=i;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*o),alpha:r}}(i)),i}let ip=(t,e)=>{let i=im(t),r=im(e);if(!i||!r)return ic(t,e);let n={...i};return t=>(n.red=ih(i.red,r.red,t),n.green=ih(i.green,r.green,t),n.blue=ih(i.blue,r.blue,t),n.alpha=M(i.alpha,r.alpha,t),tC.transform(n))},ig=new Set(["none","hidden"]);function iy(t,e){return i=>M(t,e,i)}function iv(t){return"number"==typeof t?iy:"string"==typeof t?S(t)?ic:tR.test(t)?ip:iw:Array.isArray(t)?ix:"object"==typeof t?tR.test(t)?ip:ib:ic}function ix(t,e){let i=[...t],r=i.length,n=t.map((t,i)=>iv(t)(t,e[i]));return t=>{for(let e=0;e<r;e++)i[e]=n[e](t);return i}}function ib(t,e){let i={...t,...e},r={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(r[n]=iv(t[n])(t[n],e[n]));return t=>{for(let e in r)i[e]=r[e](t);return i}}let iw=(t,e)=>{let i=tU.createTransformer(e),r=tB(t),n=tB(e);if(!(r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length))return te(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),ic(t,e);if(ig.has(t)&&!n.values.length||ig.has(e)&&!r.values.length)return ig.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return io(ix(function(t,e){let i=[],r={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let s=e.types[n],o=t.indexes[s][r[s]],a=t.values[o]??0;i[n]=a,r[s]++}return i}(r,n),n.values),i)};function ik(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?M(t,e,i):iv(t)(t,e)}let iT=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>td.update(e,t),stop:()=>tm(e),now:()=>tp.isProcessing?tp.timestamp:t1.now()}},iP=(t,e,i=10)=>{let r="",n=Math.max(Math.round(e/i),2);for(let e=0;e<n;e++)r+=Math.round(1e4*t(e/(n-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`};function iS(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}function ij(t,e,i){var r,n;let s=Math.max(e-5,0);return r=i-t(s),(n=e-s)?1e3/n*r:0}let iA=.01,iM=2,iC=.005,iE=.5;function iV(t,e){return t*Math.sqrt(1-e*e)}let iR=["duration","bounce"],iD=["stiffness","damping","mass"];function iN(t,e){return e.some(e=>void 0!==t[e])}function iL(t=.3,e=.3){let i,r="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:n,restDelta:s}=r,o=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:c,mass:h,duration:d,velocity:m,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!iN(t,iD)&&iN(t,iR))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),r=i*i,n=2*U(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:1,stiffness:r,damping:n}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:r=1}){let n,s;te(t<=ia(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=U(.05,1,o),t=U(.01,10,t/1e3),o<1?(n=e=>{let r=e*o,n=r*t;return .001-(r-i)/iV(e,o)*Math.exp(-n)},s=e=>{let r=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-r),l=iV(Math.pow(e,2),o);return(r*i+i-s)*a*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));
1let a=function(t,e,i){let r=i;for(let i=1;i<12;i++)r-=t(r)/e(r);return r}(n,s,5/t);if(t=ia(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*r;return{stiffness:e,damping:2*o*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...r,velocity:-((r.velocity||0)/1e3)}),f=m||0,g=c/(2*Math.sqrt(u*h)),y=a-o,v=Math.sqrt(u/h)/1e3,x=5>Math.abs(y);if(n||(n=x?iA:iM),s||(s=x?iC:iE),g<1){let t=iV(v,g);i=e=>a-Math.exp(-g*v*e)*((f+g*v*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)i=t=>a-Math.exp(-v*t)*(y+(f+v*y)*t);else{let t=v*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*v*e),r=Math.min(t*e,300);return a-i*((f+g*v*y)*Math.sinh(r)+t*y*Math.cosh(r))/t}}let b={calculatedDuration:p&&d||null,next:t=>{let e=i(t);if(p)l.done=t>=d;else{let r=0===t?f:0;g<1&&(r=0===t?ia(f):ij(i,t,e));let o=Math.abs(a-e)<=s;l.done=Math.abs(r)<=n&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(iS(b),2e4),e=iP(e=>b.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return b}function iF({keyframes:t,velocity:e=0,power:i=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){let h,d,m=t[0],p={done:!1,value:m},f=i*e,g=m+f,y=void 0===o?g:o(g);y!==g&&(f=y-m);let v=t=>-f*Math.exp(-t/r),x=t=>y+v(t),b=t=>{let e=v(t),i=x(t);p.done=Math.abs(e)<=u,p.value=p.done?y:i},w=t=>{let e;if(e=p.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;h=t,d=iL({keyframes:[p.value,(i=p.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:ij(x,t,p.value),damping:n,stiffness:s,restDelta:u,restSpeed:c})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==h||(e=!0,b(t),w(t)),void 0!==h&&t>=h)?d.next(t-h):(e||b(t),p)}}}iL.applyToOptions=t=>{let e=function(t,e=100,i){let r=i({...t,keyframes:[0,e]}),n=Math.min(iS(r),2e4);return{type:"keyframes",ease:t=>r.next(n*t).value/e,duration:n/1e3}}(t,100,iL);return t.ease=e.ease,t.duration=ia(e.duration),t.type="keyframes",t};let iB=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function iO(t,e,i,r){return t===e&&i===r?tl:n=>0===n||1===n?n:iB(function(t,e,i,r,n){let s,o,a=0;do(s=iB(o=e+(i-e)/2,r,n)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12)return o}(n,0,1,t,i),e,r)}let iI=iO(.42,0,1,1),iz=iO(0,0,.58,1),iU=iO(.42,0,.58,1),i$=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,iW=t=>e=>1-t(1-e),iH=iO(.33,1.53,.69,.99),iX=iW(iH),iY=i$(iX),iK=t=>(t*=2)<1?.5*iX(t):.5*(2-Math.pow(2,-10*(t-1))),iq=t=>1-Math.sin(Math.acos(t)),iG=iW(iq),i_=i$(iq),iZ=t=>Array.isArray(t)&&"number"==typeof t[0],iQ={linear:tl,easeIn:iI,easeInOut:iU,easeOut:iz,circIn:iq,circInOut:i_,circOut:iG,backIn:iX,backInOut:iY,backOut:iH,anticipate:iK},iJ=t=>{if(iZ(t)){ti(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,r,n]=t;return iO(e,i,r,n)}return"string"==typeof t?(ti(void 0!==iQ[t],`Invalid easing type '${t}'`,"invalid-easing-type"),iQ[t]):t},i0=(t,e,i)=>{let r=e-t;return 0===r?1:(i-t)/r};function i1({duration:t=300,keyframes:e,times:i,ease:r="easeInOut"}){var n;let s,o=Array.isArray(r)&&"number"!=typeof r[0]?r.map(iJ):iJ(r),a={done:!1,value:e[0]},l=function(t,e,{clamp:i=!0,ease:r,mixer:n}={}){let s=t.length;if(ti(s===e.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let r=[],n=i||tu.mix||ik,s=t.length-1;for(let i=0;i<s;i++){let s=n(t[i],t[i+1]);e&&(s=io(Array.isArray(e)?e[i]||tl:e,s)),r.push(s)}return r}(e,r,n),l=a.length,u=i=>{if(o&&i<t[0])return e[0];let r=0;if(l>1)for(;r<t.length-2&&!(i<t[r+1]);r++);let n=i0(t[r],t[r+1],i);return a[r](n)};return i?e=>u(U(t[0],t[s-1],e)):u}((n=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let n=i0(0,e,r);t.push(M(i,1,n))}}(s=[0],e.length-1),s),n.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||iU).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}let i2=t=>null!==t;function i5(t,{repeat:e,repeatType:i="loop"},r,n=1){let s=t.filter(i2),o=n<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==r?r:s[o]}let i3={decay:iF,inertia:iF,tween:i1,keyframes:i1,spring:iL};function i4(t){"string"==typeof t.type&&(t.type=i3[t.type])}class i6{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let i8=t=>t/100;class i9 extends i6{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==t1.now()&&this.tick(t1.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},il.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;i4(t);let{type:e=i1,repeat:i=0,repeatDelay:r=0,repeatType:n,velocity:s=0}=t,{keyframes:o}=t,a=e||i1;a!==i1&&"number"!=typeof o[0]&&(this.mixKeyframes=io(i8,ik(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===n&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=iS(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(i+1)-r,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:r,mixKeyframes:n,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:c,repeatType:h,repeatDelay:d,type:m,onUpdate:p,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let v=this.currentTime,x=i;if(c){let t=Math.min(this.currentTime,r)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===h?(i=1-i,d&&(i-=d/
1o)):"mirror"===h&&(x=s)),v=U(0,1,i)*o}let b=y?{done:!1,value:u[0]}:x.next(v);n&&(b.value=n(b.value));let{done:w}=b;y||null===a||(w=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return k&&m!==iF&&(b.value=i5(u,this.options,f,this.speed)),p&&p(b.value),k&&this.finish(),b}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=ia(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(t1.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=iT,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(t1.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,il.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function i7(t){let e;return()=>(void 0===e&&(e=t()),e)}let rt=i7(()=>void 0!==window.ScrollTimeline),re={},ri=(i=i7(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>re.linearEasing??i()),rr=([t,e,i,r])=>`cubic-bezier(${t}, ${e}, ${i}, ${r})`,rn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:rr([0,.65,.55,1]),circOut:rr([.55,0,1,.45]),backIn:rr([.31,.01,.66,-.59]),backOut:rr([.33,1.53,.69,.99])};function rs(t){return"function"==typeof t&&"applyToOptions"in t}class ro extends i6{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:e,name:i,keyframes:r,pseudoElement:n,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!n,this.allowFlatten=s,this.options=t,ti("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return rs(t)&&ri()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:r=0,duration:n=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let c={[e]:i};l&&(c.offset=l);let h=function t(e,i){if(e)return"function"==typeof e?ri()?iP(e,i):"ease-out":iZ(e)?rr(e):Array.isArray(e)?e.map(e=>t(e,i)||rn.easeOut):rn[e]}(a,n);Array.isArray(h)&&(c.easing=h);let d={delay:r,duration:n,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};u&&(d.pseudoElement=u);let m=t.animate(c,d);return m}(e,i,r,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let t=i5(r,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):i.startsWith("--")?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){this.finishedTime=null,this.animation.currentTime=ia(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&rt())?(this.animation.timeline=t,tl):e(this)}}let ra={anticipate:iK,backInOut:iY,circInOut:i_};class rl extends ro{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in ra&&(t.ease=ra[t.ease])}(t),i4(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:r,element:n,...s}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new i9({...s,autoplay:!1}),a=ia(this.finishedTime??this.time);e.setWithVelocity(o.sample(a-10).value,o.sample(a).value,10),o.stop()}}let ru=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tU.test(t)||"0"===t)&&!t.startsWith("url(")),rc=new Set(["opacity","clipPath","filter","transform"]),rh=i7(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rd extends i6{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=t1.now();const h={autoplay:t,delay:e,type:i,repeat:r,repeatDelay:n,repeatType:s,name:a,motionValue:l,element:u,...c},d=u?.KeyframeResolver||tk;this.keyframeResolver=new d(o,(t,e,i)=>this.onKeyframesResolved(t,e,h,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,r){this.keyframeResolver=void 0;let{name:n,type:s,velocity:o,delay:a,isHandoff:l,onUpdate:u}=i;
1this.resolvedAt=t1.now(),!function(t,e,i,r){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=ru(n,e),a=ru(s,e);return te(o===a,`You are trying to animate ${e} from "${n}" to "${s}". "${o?s:n}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||rs(i))&&r)}(t,n,s,o)&&((tu.instantAnimations||!a)&&u?.(i5(t,i,e)),t[0]=t[t.length-1],ir(i),i.repeat=0);let c={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},h=!l&&function(t){let{motionValue:e,name:i,repeatDelay:r,repeatType:n,damping:s,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return rh()&&i&&rc.has(i)&&("transform"!==i||!l)&&!a&&!r&&"mirror"!==n&&0!==s&&"inertia"!==o}(c)?new rl({...c,element:c.motionValue.owner.current}):new i9(c);h.finished.then(()=>this.notifyFinished()).catch(tl),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tx=!0,tw(),tb(),tx=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let rm=t=>null!==t,rp={type:"spring",stiffness:500,damping:25,restSpeed:10},rf={type:"keyframes",duration:.8},rg={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ry=(t,e,i,r={},n,s)=>o=>{let a=it(r,t)||{},l=a.delay||r.delay||0,{elapsed:u=0}=r;u-=ia(l);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:n};!function({when:t,delay:e,delayChildren:i,staggerChildren:r,staggerDirection:n,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(a)&&Object.assign(c,((t,{keyframes:e})=>e.length>2?rf:h.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:rp:rg)(t,c)),c.duration&&(c.duration=ia(c.duration)),c.repeatDelay&&(c.repeatDelay=ia(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(ir(c),0===c.delay&&(d=!0)),(tu.instantAnimations||tu.skipAnimations)&&(d=!0,ir(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!s&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},r){let n=t.filter(rm),s=e&&"loop"!==i&&e%2==1?0:n.length-1;return n[s]}(c.keyframes,a);if(void 0!==t)return void td.update(()=>{c.onUpdate(t),c.onComplete()})}return a.isSync?new i9(c):new rd(c)};function rv(t,e,{delay:i=0,transitionOverride:r,type:n}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:o,...a}=e;r&&(s=r);let l=[],u=n&&t.animationState&&t.animationState.getState()[n];for(let e in a){let r=t.getValue(e,t.latestValues[e]??null),n=a[e];if(void 0===n||u&&function({protectedKeys:t,needsAnimating:e},i){let r=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,r}(u,e))continue;let o={delay:i,...it(s||{},e)},c=r.get();if(void 0!==c&&!r.isAnimating&&!Array.isArray(n)&&n===c&&!o.velocity)continue;let h=!1;if(window.MotionHandoffAnimation){let i=t.props[e4];if(i){let t=window.MotionHandoffAnimation(i,e,td);null!==t&&(o.startTime=t,h=!0)}}ii(t,e),r.start(ry(e,r,n,t.shouldReduceMotion&&z.has(e)?{type:!1}:o,t,h));let d=r.animation;d&&l.push(d)}return o&&Promise.all(l).then(()=>{td.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:r={},...n}=e7(t,e)||{};for(let e in n={...n,...i}){var s;let i=ie(s=n[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,t6(i))}}(t,o)})}),l}function rx(t,e,i,r=0,n=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*r;return"function"==typeof i?i(s,o):1===n?s*r:a-s*r}function rb(t,e,i={}){let r=e7(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(n=i.transitionOverride);let s=r?()=>Promise.all(rv(t,r,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=n;
1return function(t,e,i=0,r=0,n=0,s=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(rb(l,e,{...o,delay:i+("function"==typeof r?0:r)+rx(t.variantChildren,l,r,n,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,r,s,o,a,i)}:()=>Promise.resolve(),{when:a}=n;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}function rw(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let r=0;r<i;r++)if(e[r]!==t[r])return!1;return!0}let rk=ed.length,rT=[...eh].reverse(),rP=eh.length;function rS(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rj(){return{animate:rS(!0),whileInView:rS(),whileHover:rS(),whileTap:rS(),whileDrag:rS(),whileFocus:rS(),exit:rS()}}class rA{constructor(t){this.isMounted=!1,this.node=t}update(){}}let rM=0,rC={x:!1,y:!1};function rE(t,e,i,r={passive:!0}){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i)}let rV=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function rR(t){return{point:{x:t.pageX,y:t.pageY}}}function rD(t,e,i,r){return rE(t,e,t=>rV(t)&&i(t,rR(t)),r)}function rN(t){return t.max-t.min}function rL(t,e,i,r=.5){t.origin=r,t.originPoint=M(e.min,e.max,t.origin),t.scale=rN(i)/rN(e),t.translate=M(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function rF(t,e,i,r){rL(t.x,e.x,i.x,r?r.originX:void 0),rL(t.y,e.y,i.y,r?r.originY:void 0)}function rB(t,e,i){t.min=i.min+e.min,t.max=t.min+rN(e)}function rO(t,e,i){t.min=e.min-i.min,t.max=t.min+rN(e)}function rI(t,e,i){rO(t.x,e.x,i.x),rO(t.y,e.y,i.y)}function rz(t){return[t("x"),t("y")]}let rU=({current:t})=>t?t.ownerDocument.defaultView:null,r$=(t,e)=>Math.abs(t-e);class rW{constructor(t,e,{transformPagePoint:i,contextWindow:r=window,dragSnapToOrigin:n=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=rY(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(r$(t.x,e.x)**2+r$(t.y,e.y)**2)>=this.distanceThreshold);if(!r&&!n)return;let{point:s}=i,{timestamp:o}=tp;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=rH(e,this.transformPagePoint),td.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=rY("pointercancel"===t.type?this.lastMoveEventInfo:rH(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),r&&r(t,s)},!rV(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=r||window;const o=rH(rR(t),this.transformPagePoint),{point:a}=o,{timestamp:l}=tp;this.history=[{...a,timestamp:l}];const{onSessionStart:u}=e;u&&u(t,rY(o,this.history)),this.removeListeners=io(rD(this.contextWindow,"pointermove",this.handlePointerMove),rD(this.contextWindow,"pointerup",this.handlePointerUp),rD(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),tm(this.updatePoint)}}function rH(t,e){return e?{point:e(t.point)}:t}function rX(t,e){return{x:t.x-e.x,y:t.y-e.y}}function rY({point:t},e){return{point:t,delta:rX(t,rK(e)),offset:rX(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,r=null,n=rK(t);for(;i>=0&&(r=t[i],!(n.timestamp-r.timestamp>ia(.1)));)i--;if(!r)return{x:0,y:0};let s=(n.timestamp-r.timestamp)/1e3;if(0===s)return{x:0,y:0};let o={x:(n.x-r.x)/s,y:(n.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function rK(t){return t[t.length-1]}function rq(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function rG(t,e){let i=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,r]=[r,i]),{min:i,max:r}}function r_(t,e,i){return{min:rZ(t,e),max:rZ(t,i)}}function rZ(t,e){return"number"==typeof t?t:t[e]||0}let rQ=new WeakMap;class rJ{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=en(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let n=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(rR(t).point)},s=(t,e)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(rC[t])return null;else return rC[t]=!0,()=>{rC[t]=!1};return rC.x||rC.y?null:(rC.x=rC.y=!0,()=>{rC.x=rC.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rz(t=>{let e=this.getAxisMotionValue(t).get()||0;if(K.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[t];r&&(e=rN(r)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&td.postRender(()=>n(t,e)),ii(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>rz(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new rW(t,{onSessionStart:n,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:rU(this.visualElement)})}stop(t,e){let i=t||this.latestPointerEvent,r=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!r||!i)return;let{velocity:s}=r;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&td.postRender(()=>o(i,r))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:r}=this.getProps();if(!i||!r0(t,r,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},r){return void 0!==e&&t<e?t=r?M(e,t,r.min):Math.max(t,e):void 0!==i&&t>i&&(t=r?M(i,t,r.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),n.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&e3(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:r,right:n}){return{x:rq(t.x,i,n),y:rq(t.y,e,r)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:r_(t,"left","right"),y:r_(t,"top","bottom")}}(e),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rz(t=>{var e,r;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],r=this.constraints[t],n={},void 0!==r.min&&(n.min=r.min-e.min),void 0!==r.max&&(n.max=r.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!e3(e))return!1;let r=e.current;ti(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;
1let s=function(t,e,i){let r=I(t,i),{scroll:n}=e;return n&&(F(r.x,n.offset.x),F(r.y,n.offset.y)),r}(r,n.root,this.visualElement.getTransformPagePoint()),o=(t=n.layout.layoutBox,{x:rG(t.x,s.x),y:rG(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=A(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(rz(o=>{if(!r0(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return ii(this.visualElement,t),i.start(ry(t,i,0,e,this.visualElement,!1))}stopAnimation(){rz(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rz(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){rz(e=>{let{drag:i}=this.getProps();if(!r0(e,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(e);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[e];n.set(t[e]-M(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!e3(e)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rz(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let s,o,a,l=e.get();r[t]=(i={min:l,max:l},n=this.constraints[t],s=.5,o=rN(i),(a=rN(n))>o?s=i0(n.min,n.max-o,i.min):o>a&&(s=i0(i.min,i.max-a,n.min)),U(0,1,s))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),rz(e=>{if(!r0(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:s}=this.constraints[e];i.set(M(n,s,r[e]))})}addListeners(){if(!this.visualElement.current)return;rQ.set(this.visualElement,this);let t=rD(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();e3(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),td.read(e);let n=rE(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(rz(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),r(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:o}}}function r0(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let r1=t=>(e,i)=>{t&&td.postRender(()=>t(e,i))};var r2=o;let r5={hasAnimatedSinceResize:!0,hasEverUpdated:!1},r3=!1;class r4 extends r2.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=t;n&&(e.group&&e.group.add(n),i&&i.register&&r&&i.register(n),r3&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),r5.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:r,isPresent:n}=this.props,{projection:s}=i;return s&&(s.isPresent=n,r3=!0,r||t.layoutDependency!==e||void 0===e||t.isPresent!==n?s.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?s.promote():s.relegate()||td.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),t9.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:r}=t;r3=!0,r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function r6(t){let[e,i]=function(t=!0){let e=(0,o.useContext)(eQ);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:r,register:n}=e,s=(0,o.useId)();(0,o.useEffect)(()=>
1{if(t)return n(s)},[t]);let a=(0,o.useCallback)(()=>t&&r&&r(s),[s,r,t]);return!i&&r?[!1,a]:[!0]}(),r=(0,r2.useContext)(eU);return(0,s.jsx)(r4,{...t,layoutGroup:r,switchLayoutGroup:(0,r2.useContext)(e6),isPresent:e,safeToRemove:i})}function r8(t){return"object"==typeof t&&null!==t}function r9(t){return r8(t)&&"ownerSVGElement"in t}let r7=(t,e)=>t.depth-e.depth;class nt{constructor(){this.children=[],this.isDirty=!1}add(t){t2(this.children,t),this.isDirty=!0}remove(t){t5(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(r7),this.isDirty=!1,this.children.forEach(t)}}let ne=["TopLeft","TopRight","BottomLeft","BottomRight"],ni=ne.length,nr=t=>"string"==typeof t?parseFloat(t):t,nn=t=>"number"==typeof t||q.test(t);function ns(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let no=nl(0,.5,iG),na=nl(.5,.95,tl);function nl(t,e,i){return r=>r<t?0:r>e?1:i(i0(t,e,r))}function nu(t,e){t.min=e.min,t.max=e.max}function nc(t,e){nu(t.x,e.x),nu(t.y,e.y)}function nh(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nd(t,e,i,r,n){return t-=e,t=r+1/i*(t-r),void 0!==n&&(t=r+1/n*(t-r)),t}function nm(t,e,[i,r,n],s,o){!function(t,e=0,i=1,r=.5,n,s=t,o=t){if(K.test(e)&&(e=parseFloat(e),e=M(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=M(s.min,s.max,r);t===s&&(a-=e),t.min=nd(t.min,e,i,a,n),t.max=nd(t.max,e,i,a,n)}(t,e[i],e[r],e[n],e.scale,s,o)}let np=["x","scaleX","originX"],nf=["y","scaleY","originY"];function ng(t,e,i,r){nm(t.x,e,np,i?i.x:void 0,r?r.x:void 0),nm(t.y,e,nf,i?i.y:void 0,r?r.y:void 0)}function ny(t){return 0===t.translate&&1===t.scale}function nv(t){return ny(t.x)&&ny(t.y)}function nx(t,e){return t.min===e.min&&t.max===e.max}function nb(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nw(t,e){return nb(t.x,e.x)&&nb(t.y,e.y)}function nk(t){return rN(t.x)/rN(t.y)}function nT(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class nP{constructor(){this.members=[]}add(t){t2(this.members,t),t.scheduleRender()}remove(t){if(t5(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nS=["","X","Y","Z"],nj=0;function nA(t,e,i,r){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),r&&(r[t]=0))}function nM({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(t={},i=e?.()){this.id=nj++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
1{this.projectionUpdateScheduled=!1,this.nodes.forEach(nV),this.nodes.forEach(nO),this.nodes.forEach(nI),this.nodes.forEach(nR)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new nt)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new t3),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=r9(e)&&!(r9(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:r,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||i)&&(this.isLayoutDirty=!0),t){let i,r=0,n=()=>this.root.updateBlockedByResize=!1;td.read(()=>{r=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==r){let e,s;r=t,this.root.updateBlockedByResize=!0,i&&i(),e=t1.now(),s=({timestamp:t})=>{let i=t-e;i>=250&&(tm(s),n(i-250))},td.setup(s,!0),i=()=>tm(s),r5.hasAnimatedSinceResize&&(r5.hasAnimatedSinceResize=!1,this.nodes.forEach(nB))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||n.getDefaultTransition()||nX,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!nw(this.targetLayout,r),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...it(s,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||nB(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tm(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(nz),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let r=i.props[e4];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",td,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEac
1h(nN);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(nL);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(nF),this.nodes.forEach(nC),this.nodes.forEach(nE)):this.nodes.forEach(nL),this.clearAllSnapshots();let t=t1.now();tp.delta=U(0,1e3/60,t-tp.timestamp),tp.timestamp=t,tp.isProcessing=!0,tf.update.process(tp),tf.preRender.process(tp),tf.render.process(tp),tp.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,t9.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nD),this.sharedNodes.forEach(nU)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,td.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){td.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||rN(this.snapshot.measuredBox.x)||rN(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=en(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=r(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!nv(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;t&&this.instance&&(e||V(this.latestValues)||s)&&(n(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),r=this.removeElementScroll(i);return t&&(r=this.removeTransform(r)),nq((e=r).x),nq(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return en();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(n_))){let{scroll:t}=this.root;t&&(F(e.x,t.offset.x),F(e.y,t.offset.y))}return e}removeElementScroll(t){let e=en();if(nc(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let r=this.path[i],{scroll:n,options:s}=r;r!==this.root&&n&&s.layoutScroll&&(n.wasRoot&&nc(e,t),F(e.x,n.offset.x),F(e.y,n.offset.y))}return e}applyTransform(t,e=!1){let i=en();nc(i,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&O(i,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),V(r.latestValues)&&O(i,r.latestValues)}return V(this.latestValues)&&O(i,this.latestValues),i}removeTransform(t){let e=en();nc(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!V(i.latestValues))continue;E(i.latestValues)&&i.updateSnapshot();let r=en();nc(r,i.measurePageBox()),ng(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,r)}return V(this.latestValues)&&ng(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}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!==tp.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:n}=this.options;if(!this.layout||!(r||n))return;this.resolvedRelativeTargetAt=tp.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=en(),this.targetWithTransforms=en()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,rB(o.x,a.x,l.x),rB(o.y,a.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nc(this.target,this.layout.layoutBox),L(this.target,this.targetDelta)):nc(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||E(this.parent.latestValues)||R(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=en(),this.relativeTargetOrigin=en(),rI(this.relativeTargetOrigin,e,i),nc(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tp.timestamp&&(i=!1),i)return;let{layout:r,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||n))return;nc(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,r=!1){let n,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(n=i[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&O(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,L(t,s)),r&&V(n.latestValues)&&O(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=en());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nh(this.prevProjectionDelta.x,this.projectionDelta.x),nh(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rF(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&nT(this.projectionDelta.x,this.prevProjectionDelta.x)&&nT(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ei(),this.projectionDelta=ei(),this.projectionDeltaWithTransform=ei()}setAnimationOrigin(t,e=!1){let i,r=this.snapshot,n=r?r.latestValues:{},s={...this.latestValues},o=ei();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=en(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,h=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(nH));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(n$(o.x,t.x,r),n$(o.y,t.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,m,p,f,g;rI(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,f=a,g=r,nW(m.x,p.x,f.x,g),nW(m.y,p.y,f.y,g),i&&(u=this.relativeTarget,d=i,nx(u.x,d.x)&&nx(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=en()),nc(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,r,n,s){n?(t.opacity=M(0,i.opacity??1,no(r)),t.opacityExit=M(e.opacity??1,0,na(r))):s&&(t.opacity=M(e.opacity??1,i.opacity??1,r));for(let n=0;n<ni;n++){let s=`border${ne[n]}Radius`,o=ns(e,s),a=ns(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nn(o)===nn(a)?(t[s]=Math.max(M(nr(o),nr(a),r),0),(K.test(a)||K.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=M(e.rotate||0,i.rotate||0,r))}(s,n,this.latestValues,r,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tm(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=td.update(()=>{var e,i,r;let n;r5.hasAnimatedSinceResize=!0,il.layout++,this.motionValue||(this.motionValue=t6(0)),this.currentAnimation=(e=this.motionValue,i=[0,1e3],r={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{il.layout--},onComplete:()=>{il.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(n=tJ(e)?e:t6(e)).start(ry("",n,i,r)),n.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:r,latestValues:n}=t;if(e&&i&&r){if(this!==t&&this.layout&&r&&nG(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||en();let e=rN(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let r=rN(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+r}nc(e,i),O(e,n),rF(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nP),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let r={};i.z&&nA("z",t,r,this.animationValues);for(let e=0;e<nS.length;e++)nA(`rotate${nS[e]}`,t,r,this.animationValues),nA(`skew${nS[e]}`,t,r,this.animationValues);for(let e in t.render(),r)t.setStaticValue(e,r[e]),this.animationValues&&(this.animationValues[e]=r[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=eJ(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=eJ(e?.pointerEvents)||""),this.hasProjected&&!V(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let n=r.animationValues||r.latestValues;this.applyTransformsToTarget();let s=function(t,e,i){let r="",n=t.x.translate/e.x,s=t.y.translate/e.y,o=i?.z||0;if((n||s||o)&&(r=`translate3d(${n}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:s,skewX:o,skewY:a}=i;t&&(r=`perspective(${t}px) ${r}`),e&&(r+=`rotate(${e}deg) `),n&&(r+=`rotateX(${n}deg) `),s&&(r+=`rotateY(${s}deg) `),o&&(r+=`skewX(${o}deg) `),a&&(r+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(s=i(n,s)),t.transform=s;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,r.animationValues?t.opacity=r===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:t.opacity=r===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,eA){if(void 0===n[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=eA[e],l="none"===s?n[e]:i(n[e],r);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=r===this?eJ(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(nN),this.root.sharedNodes.clear()}}}function nC(t){t.updateLayout()}function nE(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:r}=t.layout,{animationType:n}=t.options,s=e.source!==t.layout.source;"size"===n?rz(t=>{let r=s?e.measuredBox[t]:e.layoutBox[t],n=rN(r);r.min=i[t].min,r.max=r.min+n}):nG(n,e.layoutBox,i)&&rz(r=>{let n=s?e.measuredBox[r]:e.layoutBox[r],o=rN(i[r]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+o)});let o=ei();rF(o,i,e.layoutBox);let a=ei();s?rF(a,t.applyTransform(r,!0),e.measuredBox):rF(a,i,e.layoutBox);let l=!nv(o),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let o=en();rI(o,e.layoutBox,n.layoutBox);let a=en();rI(a,i,s.layoutBox),nw(o,a)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function nV(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function nR(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function nD(t){t.clearSnapshot()}function nN(t){t.clearMeasurements()}function nL(t){t.isLayoutDirty=!1}function nF(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function nB(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function nO(t){t.resolveTargetDelta()}function nI(t){t.calcProjection()}function nz(t){t.resetSkewAndRotation()}function nU(t){t.removeLeadSnapshot()}function n$(t,e,i){t.translate=M(e.translate,0,i),t.scale=M(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function nW(t,e,i,r){t.min=M(e.min,i.min,r),t.max=M(e.max,i.max,r)}function nH(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let nX={duration:.45,ease:[.4,0,.1,1]},nY=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),nK=nY("applewebkit/")&&!nY("chrome/")?Math.round:tl;function nq(t){t.min=nK(t.min),t.max=nK(t.max)}function nG(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nk(e)-nk(i)))}function n_(t){return t!==t.root&&t.scroll?.wasRoot}let nZ=nM({attachResizeListener:(t,e)=>rE(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),nQ={current:void 0},nJ=nM({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!nQ.current){let t=new nZ({});t.mount(window),t.setOptions({layoutScroll:!0}),nQ.current=t}return nQ.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function n0(t,e){let i=function(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,i=(void 0)??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),r=new AbortController;return[i,{passive:!0,...e,signal:r.signal},()=>r.abort()]}function n1(t){return!("touch"===t.pointerType||rC.x||rC.y)}function n2(t,e,i){let{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=r["onHover"+i];n&&td.postRender(()=>n(e,rR(e)))}let n5=(t,e)=>!!e&&(t===e||n5(t,e.parentElement)),n3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),n4=new WeakSet;function n6(t){return e=>{"Enter"===e.key&&t(e)}}function n8(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function n9(t){return rV(t)&&!(rC.x||rC.y)}function n7(t,e,i){let{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=r["onTap"+("End"===i?"":i)];n&&td.postRender(()=>n(e,rR(e)))}
1let st=new WeakMap,se=new WeakMap,si=t=>{let e=st.get(t.target);e&&e(t)},sr=t=>{t.forEach(si)},sn={some:0,all:1},ss=function(t,e){if("u"<typeof Proxy)return e9;let i=new Map,r=(i,r)=>e9(i,r,t,e);return new Proxy((t,e)=>r(t,e),{get:(n,s)=>"create"===s?r:(i.has(s)||i.set(s,e9(s,void 0,t,e)),i.get(s))})}({animation:{Feature:class extends rA{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>rb(t,e,i)));else if("string"==typeof e)r=rb(t,e,i);else{let n="function"==typeof e?e7(t,e,i.custom):e;r=Promise.all(rv(t,n,i))}return r.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=rj(),r=!0,n=e=>(i,r)=>{let n=e7(t,r,"exit"===e?t.presenceContext?.custom:void 0);if(n){let{transition:t,transitionEnd:e,...r}=n;i={...i,...r,...e}}return i};function s(s){let{props:o}=t,a=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<rk;t++){let r=ed[t],n=e.props[r];(ec(n)||!1===n)&&(i[r]=n)}return i}(t.parent)||{},l=[],u=new Set,c={},h=1/0;for(let e=0;e<rP;e++){var d,m;let p=rT[e],f=i[p],g=void 0!==o[p]?o[p]:a[p],y=ec(g),v=p===s?f.isActive:null;!1===v&&(h=e);let x=g===a[p]&&g!==o[p]&&y;if(x&&r&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...c},!f.isActive&&null===v||!g&&!f.prevProp||eu(g)||"boolean"==typeof g)continue;let b=(d=f.prevProp,"string"==typeof(m=g)?m!==d:!!Array.isArray(m)&&!rw(m,d)),w=b||p===s&&f.isActive&&!x&&y||e>h&&y,k=!1,T=Array.isArray(g)?g:[g],P=T.reduce(n(p),{});!1===v&&(P={});let{prevResolvedValues:S={}}=f,j={...S,...P},A=e=>{w=!0,u.has(e)&&(k=!0,u.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in j){let e=P[t],i=S[t];if(!c.hasOwnProperty(t))(ie(e)&&ie(i)?rw(e,i):e===i)?void 0!==e&&u.has(t)?A(t):f.protectedKeys[t]=!0:null!=e?A(t):u.add(t)}f.prevProp=g,f.prevResolvedValues=P,f.isActive&&(c={...c,...P}),r&&t.blockInitialAnimation&&(w=!1);let M=x&&b,C=!M||k;w&&C&&l.push(...T.map(e=>{let i={type:p};if("string"==typeof e&&r&&!M&&t.manuallyAnimateOnMount&&t.parent){let{parent:r}=t,n=e7(r,e);if(r.enteringChildren&&n){let{delayChildren:e}=n.transition||{};i.delay=rx(r.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof o.initial){let i=e7(t,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let r=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=r??null}),l.push({animation:e})}let p=!!l.length;return r&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(p=!1),r=!1,p?e(l):Promise.resolve()}return{animateChanges:s,setActive:function(e,r){if(i[e].isActive===r)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,r)),i[e].isActive=r;let n=s(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=rj()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();eu(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends rA{constructor(){super(...arguments),this.id=rM++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends rA{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:o}=i,a={root:r?r.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:sn[s]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:r}=this.node.getProps(),n=e?i:r;n&&n(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;se.has(i)||se.set(i,{});let r=se.get(i),n=JSON.stringify(e);return r[n]||(r[n]=new IntersectionObserver(sr,{root:t,...e})),r[n]}(a),st.set(t,l),e.observe(t),()=>{st.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends rA{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[r,n,s]=n0(t,i),o=t=>{let r=t.currentTarget;if(!n9(t))return;n4.add(r);let s=e(r,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),n4.has(r)&&n4.delete(r),n9(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{o(t,r===window||r===document||i.useGlobalTarget||n5(r,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",l,n)};return r.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,n),r8(t)&&"offsetHeight"in t&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let r=n6(()=>{if(n4.has(i))return;n8(i,"down");let t=n6(()=>{n8(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>n8(i,"cancel"),e)});i.addEventListener("keydown",r,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),e)})(t,n)),n3.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(n7(this.node,e,"Start"),(t,{success:e})=>n7(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends rA{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&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=io(rE(this.node.current,"focus",()=>this.onFocus()),rE(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends rA{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[r,n,s]=n0(t,i),o=t=>{if(!n1(t))return;let{target:i}=t,r=e(i,t);if("function"!=typeof r||!i)return;let s=t=>{n1(t)&&(r(t),i.removeEventListener("pointerleave",s))};i.addEventListener("pointerleave",s,n)};return r.forEach(t=>{t.addEventListener("pointerenter",o,n)}),s}(t,(t,e)=>(n2(this.node,e,"Start"),t=>n2(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends rA{constructor(){super(...arguments),this.removePointerDownListener=tl}onPointerDown(t){this.session=new rW(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rU(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:r1(t),onStart:r1(e),onMove:i,onEnd:(t,e)=>{delete this.session,r&&td.postRender(()=>r(t,e))}}}mount(){this.removePointerDownListener=rD(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends rA{constructor(t){super(t),this.removeGroupControls=tl,this.removeListeners=tl,this.controls=new rJ(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tl}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:nJ,MeasureLayout:r6},layout:{ProjectionNode:nJ,MeasureLayout:r6}},(t,e)=>ez(t)?new eO(e):new eE(e,{allowProjection:t!==o.Fragment})),so=(...t)=>t.filter((t,e,i)=>!!t&&""!==t.trim()&&i.indexOf(t)===e).join(" ").trim();var sa={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let sl=(0,o.forwardRef)(({color:t="currentColor",size:e=24,strokeWidth:i=2,absoluteStrokeWidth:r,className:n="",children:s,iconNode:a,...l},u)=>(0,o.createElement)("svg",{ref:u,...sa,width:e,height:e,stroke:t,strokeWidth:r?24*Number(i)/Number(e):i,className:so("lucide",n),...l},[...a.map(([t,e])=>(0,o.createElement)(t,e)),...Array.isArray(s)?s:[s]])),su=(t,e)=>{let i=(0,o.forwardRef)(({className:i,...r},n)=>(0,o.createElement)(sl,{ref:n,iconNode:e,className:so(`lucide-${t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,i),...r}));return i.displayName=`${t}`,i},sc=su("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]),sh=su("VolumeX",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]),sd=(0,o.createContext)(null);function sm(){return(0,o.useContext)(sd)}function sp({children:t}){let[e,i]=(0,o.useState)(!0),r=(0,o.useRef)(null),n=(0,o.useCallback)(()=>
1{if(!r.current){let t=window.AudioContext||window.webkitAudioContext;t&&(r.current=new t)}return r.current},[]),a=(0,o.useCallback)(()=>{!e&&"u">typeof navigator&&"vibrate"in navigator&&navigator.vibrate(10)},[e]),l=(0,o.useCallback)(()=>{if(!e){a();try{let t=n();if(!t)return;"suspended"===t.state&&t.resume();let e=t.createOscillator(),i=t.createGain(),r=t.createBiquadFilter(),s=t.createBiquadFilter();e.type="square",e.frequency.setValueAtTime(800+400*Math.random(),t.currentTime),e.frequency.exponentialRampToValueAtTime(200,t.currentTime+.015),r.type="bandpass",r.frequency.setValueAtTime(1200,t.currentTime),r.Q.setValueAtTime(.8,t.currentTime),s.type="lowpass",s.frequency.value=2500,s.Q.value=.5,i.gain.setValueAtTime(.05,t.currentTime),i.gain.exponentialRampToValueAtTime(.001,t.currentTime+.02),e.connect(r),r.connect(i),i.connect(s),s.connect(t.destination),e.start(t.currentTime),e.stop(t.currentTime+.02)}catch{}}},[e,n,a]),u=(0,o.useCallback)(()=>{if(i(t=>!t),e)try{let t=n();t&&"suspended"===t.state&&t.resume()}catch{}},[e,n]),c=(0,o.useMemo)(()=>({isMuted:e,toggleMute:u,playClick:l}),[e,u,l]);return(0,s.jsx)(sd.Provider,{value:c,children:t})}function sf({className:t=""}){let e=sm();return e?(0,s.jsxs)("button",{onClick:e.toggleMute,className:`inline-flex items-center gap-2 font-mono text-[10px] uppercase tracking-widest text-muted-foreground hover:text-foreground transition-colors duration-200 ${t}`,"aria-label":e.isMuted?"Unmute sound effects":"Mute sound effects",children:[e.isMuted?(0,s.jsx)(sh,{className:"w-4 h-4"}):(0,s.jsx)(sc,{className:"w-4 h-4"}),(0,s.jsx)("span",{children:e.isMuted?"Sound Off":"Sound On"})]}):null}let sg="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".split("");function sy({text:t,className:e="",speed:i=50}){let r=(0,o.useMemo)(()=>t.split(""),[t]),[n,a]=(0,o.useState)(0),[l,u]=(0,o.useState)(!1),c=sm(),h=(0,o.useCallback)(()=>{a(t=>t+1)},[]);return(0,o.useEffect)(()=>{let t=setTimeout(()=>{u(!0)},1e3);return()=>clearTimeout(t)},[]),(0,s.jsx)("div",{className:`inline-flex gap-[0.08em] items-center cursor-pointer ${e}`,"aria-label":t,onMouseEnter:h,style:{perspective:"1000px"},children:r.map((t,e)=>(0,s.jsx)(sx,{char:t.toUpperCase(),index:e,animationKey:n,skipEntrance:l,speed:i,playClick:c?.playClick},e))})}function sv(t){return(0,s.jsx)(sy,{...t})}function sx({char:t,index:e,animationKey:i,skipEntrance:r,speed:n,playClick:a}){let l=sg.includes(t)?t:" ",u=" "===t,[c,h]=(0,o.useState)(r?l:" "),[d,m]=(0,o.useState)(r),p=(0,o.useRef)(null),f=(0,o.useRef)(null),g=.15*e,y=d?"hsl(0, 0%, 0%)":"rgba(240, 185, 11, 0.2)",v=d?"#ffffff":"#F0B90B";return((0,o.useEffect)(()=>{if(p.current&&clearInterval(p.current),f.current&&clearTimeout(f.current),u){h(" "),m(!0);return}m(!1),h(sg[Math.floor(Math.random()*sg.length)]);let t=0,i=!1;return f.current=setTimeout(()=>{p.current=setInterval(()=>{if(t>=8+3*e&&!i){i=!0,p.current&&clearInterval(p.current),h(l),m(!0),a&&a();return}h(sg[Math.floor(Math.random()*sg.length)]),t%2==0&&a&&a(),t++},n)},r?400*g:800*g),()=>{p.current&&clearInterval(p.current),f.current&&clearTimeout(f.current)}},[l,u,g,i,r,e,n,a]),u)?(0,s.jsx)("div",{style:{width:"0.3em",fontSize:"clamp(4rem, 15vw, 14rem)"}}):(0,s.jsxs)(ss.div,{initial:!r&&{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:g,duration:.3,ease:"easeOut"},className:"relative overflow-hidden flex items-center justify-center font-[family-name:var(--font-bebas)]",style:{fontSize:"clamp(4rem, 15vw, 14rem)",width:"0.65em",height:"1.05em",backgroundColor:y,transformStyle:"preserve-3d",transition:"background-color 0.15s ease"},children:[(0,s.jsx)("div",{className:"absolute inset-x-0 top-1/2 h-[1px] bg-black/20 pointer-events-none z-10"}),(0,s.jsx)("div",{className:"absolute inset-x-0 top-0 bottom-1/2 flex items-end justify-center overflow-hidden",children:(0,s.jsx)("span",{className:"block translate-y-[0.52em] leading-none transition-colors duration-150",style:{color:v},children:c})}),(0,s.jsx)("div",{className:"absolute inset-x-0 top-1/2 bottom-0 flex items-start justify-center overflow-hidden",children:(0,s.jsx)("span",{className:"-translate-y-[0.52em] leading-none transition-colors duration-150",style:{color:v},children:c})}),(0,s.jsx)(ss.div,{initial:{rotateX:-90},animate:{rotateX:0},transition:{delay:r?.5*g:g+.15,duration:.25,ease:[.22,.61,.36,1]},className:"absolute inset-x-0 top-0 bottom-1/2 origin-bottom overflow-hidden",style:{backgroundColor:y,transformStyle:"preserve-3d",backfaceVisibility:"hidden",transition:"background-color 0.15s ease"},children:(0,s.jsx)("div",{className:"flex h-full items-end justify-center",children:(0,s.jsx)("span",{className:"translate-y-[0.52em] leading-none transition-colors duration-150",style:{color:v},children:c})})},`${i}-${d}`)]})}
1function sb({opacity:t=.05,className:e}){let i=(0,o.useRef)(null);return(0,o.useEffect)(()=>{let t,e=i.current;if(!e)return;let r=e.getContext("2d");if(!r)return;let n=0,s=()=>{e.width=e.offsetWidth/2,e.height=e.offsetHeight/2},o=()=>{++n%2==0&&(()=>{let t=r.createImageData(e.width,e.height),i=t.data;for(let t=0;t<i.length;t+=4){let e=255*Math.random();i[t]=e,i[t+1]=e,i[t+2]=e,i[t+3]=255}r.putImageData(t,0,0)})(),t=requestAnimationFrame(o)};return s(),window.addEventListener("resize",s),o(),()=>{window.removeEventListener("resize",s),cancelAnimationFrame(t)}},[]),(0,s.jsx)("canvas",{ref:i,className:e,style:{position:"absolute",inset:0,width:"100%",height:"100%",pointerEvents:"none",opacity:t,mixBlendMode:"overlay"}})}function sw({className:t}){return(0,s.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,s.jsx)("path",{d:"M3.85715 3.85715H19.2857L23.0553 7.64066L17.5163 13.1595L22.8462 17.5055V23.1429H17.5055V13.1703L7.65696 22.9832L3.8874 19.2L13.9259 9.19781H3.85715V3.85715Z",fill:"currentColor"})})}var sk=t.i(61026);function sT(){let t=(0,o.useRef)(null),e=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(!t.current||!e.current)return;let i=a.default.context(()=>{a.default.to(e.current,{y:-100,opacity:0,scrollTrigger:{trigger:t.current,start:"top top",end:"bottom top",scrub:1}})},t);return()=>i.revert()},[]),(0,s.jsxs)("section",{ref:t,id:"hero",className:"relative min-h-screen flex items-center pl-6 md:pl-28 pr-6 md:pr-12",children:[(0,s.jsx)(sb,{opacity:.03}),(0,s.jsx)("div",{className:"absolute left-4 md:left-6 top-1/2 -translate-y-1/2",children:(0,s.jsx)("span",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-muted-foreground -rotate-90 origin-left block whitespace-nowrap",children:"PORTFOLIO"})}),(0,s.jsxs)("div",{ref:e,className:"flex-1 w-full",children:[(0,s.jsx)(sp,{children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(sv,{text:"BRANDON",speed:80}),(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(sf,{})})]})}),(0,s.jsx)("h2",{className:"font-[var(--font-bebas)] text-muted-foreground/60 text-[clamp(1rem,3vw,2rem)] mt-4 tracking-wide",children:"Full Stack Developer & Creative Technologist"}),(0,s.jsx)("p",{className:"mt-12 max-w-md font-mono text-sm text-muted-foreground leading-relaxed",children:"Building innovative applications with React, Next.js, and modern web technologies. Focused on creating user experiences that are both beautiful and functional."}),(0,s.jsxs)("div",{className:"mt-16 flex items-center gap-8",children:[(0,s.jsxs)("a",{href:"#projects",className:"group inline-flex items-center gap-3 border border-foreground
1/20 px-6 py-3 font-mono text-xs uppercase tracking-widest text-foreground hover:border-accent hover:text-accent transition-all duration-200",children:[(0,s.jsx)(u,{text:"View Projects",as:"span",duration:.6}),(0,s.jsx)(sw,{className:"transition-transform duration-[400ms] ease-in-out group-hover:rotate-45"})]}),(0,s.jsx)("a",{href:"#about",className:"font-mono text-xs uppercase tracking-widest text-muted-foreground hover:text-foreground transition-colors duration-200",children:"Learn More"})]})]}),(0,s.jsx)("div",{className:"absolute bottom-8 right-8 md:bottom-12 md:right-12",children:(0,s.jsx)("div",{className:"border border-border px-4 py-2 font-mono text-[10px] uppercase tracking-widest text-muted-foreground",children:"Portfolio / 2025"})})]})}a.default.registerPlugin(sk.ScrollTrigger),t.s(["HeroSection",()=>sT],15850)},3671,t=>{"use strict";var e=t.i(83854),i=t.i(1392),r=t.i(63804),n=t.i(61026);function s({children:t,className:n="",parallaxSpeed:s=.3}){let o=(0,i.useRef)(null),a=(0,i.useRef)(null),l=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(!o.current||!a.current||!l.current)return;let t=r.default.context(()=>{let t=r.default.timeline({scrollTrigger:{trigger:o.current,start:"top 80%",end:"top -20%",toggleActions:"play reverse play reverse"}});t.fromTo(a.current,{scaleX:0,transformOrigin:"left center"},{scaleX:1,duration:1.2,ease:"power3.out"}),t.fromTo(l.current,{color:"rgb(250, 250, 250)"},{color:"#000000",duration:.6,ease:"power2.out"},.5),r.default.to(a.current,{yPercent:-20*s,scrollTrigger:{trigger:o.current,start:"top bottom",end:"bottom top",scrub:1}})},o);return()=>t.revert()},[s]),(0,e.jsxs)("span",{ref:o,className:`relative inline-block ${n}`,children:[(0,e.jsx)("span",{ref:a,className:"absolute inset-0 bg-accent",style:{left:"-0.1em",right:"-0.1em",top:"0.15em",bottom:"0.1em",transform:"scaleX(0)",transformOrigin:"left center"}}),(0,e.jsx)("span",{ref:l,className:"relative z-10",children:t})]})}function o(){let t=(0,i.useRef)(null),n=(0,i.useRef)(null),o=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(!t.current||!n.current||!o.current)return;let e=r.default.context(()=>{r.default.from(n.current,{x:-60,opacity:0,duration:1,ease:"power3.out",scrollTrigger:{trigger:n.current,start:"top 85%",toggleActions:"play none none reverse"}}),r.default.from(o.current,{y:40,opacity:0,duration:.8,ease:"power3.out",scrollTrigger:{trigger:o.current,start:"top 85%",toggleActions:"play none none reverse"}})},t);return()=>e.revert()},[]),(0,e.jsxs)("section",{ref:t,id:"about",className:"relative py-32 pl-6 md:pl-28 pr-6 md:pr-12",children:[(0,e.jsxs)("div",{ref:n,className:"mb-24",children:[(0,e.jsx)("span",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:"01 / About"}),(0,e.jsx)("h2",{className:"mt-4 font-[var(--font-bebas)] text-5xl md:text-7xl tracking-tight",children:"WHO I AM"})]}),(0,e.jsxs)("div",{ref:o,className:"grid grid-cols-1 md:grid-cols-2 gap-12 md:gap-24",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{className:"font-mono text-sm text-muted-foreground leading-relaxed mb-6",children:"I'm a full stack developer passionate about creating seamless digital experiences. With expertise in modern web technologies, I build applications that blend technical excellence with thoughtful design."}),(0,e.jsx)("p",{className:"font-mono text-sm text-muted-foreground leading-relaxed",children:"My focus is on writing clean, maintainable code and designing systems that scale. I love collaborating on projects that push the boundaries of what's possible on the web."})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h3",{className:"font-[var(--font-bebas)] text-2xl md:text-3xl tracking-tight mb-6",children:(0,e.jsx)(s,{parallaxSpeed:.6,children:"SKILLS"})}),(0,e.jsx)("div",{className:"grid grid-cols-2 gap-4",children:["React","Next.js","TypeScript","Node.js","Tailwind CSS","PostgreSQL","API Design","Web Performance"].map(t=>(0,e.jsx)("div",{className:"border border-border/30 p-3 font-mono text-xs text-muted-foreground",children:t},t))})]})]})]})}r.default.registerPlugin(n.ScrollTrigger),r.default.registerPlugin(n.ScrollTrigger),t.s(["AboutSection",()=>o],3671)},77450,t=>{"use strict";let e=(t=new Map,e=null,i)=>({nextPart:t,validators:e,classGroupId:i}),i=[],r=(t,e,i)=>{if(0==t.length-e)return i.classGroupId;let n=t[e],s=i.nextPart.get(n);if(s){let i=r(t,e+1,s);if(i)return i}let o=i.validators;if(null===o)return;let a=0===e?t.join("-"):t.slice(e).join("-"),l=o.length;for(let t=0;t<l;t++){let e=o[t];
1if(e.validator(a))return e.classGroupId}},n=(t,i)=>{let r=e();for(let e in t)s(t[e],r,e,i);return r},s=(t,e,i,r)=>{let n=t.length;for(let s=0;s<n;s++)o(t[s],e,i,r)},o=(t,e,i,r)=>{"string"==typeof t?a(t,e,i):"function"==typeof t?l(t,e,i,r):u(t,e,i,r)},a=(t,e,i)=>{(""===t?e:c(e,t)).classGroupId=i},l=(t,e,i,r)=>{h(t)?s(t(r),e,i,r):(null===e.validators&&(e.validators=[]),e.validators.push({classGroupId:i,validator:t}))},u=(t,e,i,r)=>{let n=Object.entries(t),o=n.length;for(let t=0;t<o;t++){let[o,a]=n[t];s(a,c(e,o),i,r)}},c=(t,i)=>{let r=t,n=i.split("-"),s=n.length;for(let t=0;t<s;t++){let i=n[t],s=r.nextPart.get(i);s||(s=e(),r.nextPart.set(i,s)),r=s}return r},h=t=>"isThemeGetter"in t&&!0===t.isThemeGetter,d=[],m=(t,e,i,r,n)=>({modifiers:t,hasImportantModifier:e,baseClassName:i,maybePostfixModifierPosition:r,isExternal:n}),p=/\s+/,f=t=>{let e;if("string"==typeof t)return t;let i="";for(let r=0;r<t.length;r++)t[r]&&(e=f(t[r]))&&(i&&(i+=" "),i+=e);return i},g=[],y=t=>{let e=e=>e[t]||g;return e.isThemeGetter=!0,e},v=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,x=/^\((?:(\w[\w-]*):)?(.+)\)$/i,b=/^\d+\/\d+$/,w=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,k=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,T=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,P=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,S=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j=t=>b.test(t),A=t=>!!t&&!Number.isNaN(Number(t)),M=t=>!!t&&Number.isInteger(Number(t)),C=t=>t.endsWith("%")&&A(t.slice(0,-1)),E=t=>w.test(t),V=()=>!0,R=t=>k.test(t)&&!T.test(t),D=()=>!1,N=t=>P.test(t),L=t=>S.test(t),F=t=>!O(t)&&!H(t),B=t=>Z(t,te,D),O=t=>v.test(t),I=t=>Z(t,ti,R),z=t=>Z(t,tr,A),U=t=>Z(t,J,D),$=t=>Z(t,tt,L),W=t=>Z(t,ts,N),H=t=>x.test(t),X=t=>Q(t,ti),Y=t=>Q(t,tn),K=t=>Q(t,J),q=t=>Q(t,te),G=t=>Q(t,tt),_=t=>Q(t,ts,!0),Z=(t,e,i)=>{let r=v.exec(t);return!!r&&(r[1]?e(r[1]):i(r[2]))},Q=(t,e,i=!1)=>{let r=x.exec(t);return!!r&&(r[1]?e(r[1]):i)},J=t=>"position"===t||"percentage"===t,tt=t=>"image"===t||"url"===t,te=t=>"length"===t||"size"===t||"bg-size"===t,ti=t=>"length"===t,tr=t=>"number"===t,tn=t=>"family-name"===t,ts=t=>"shadow"===t,to=((t,...e)=>{let s,o,a,l,u=t=>{let e=o(t);if(e)return e;let i=((t,e)=>{let{parseClassName:i,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:s}=e,o=[],a=t.trim().split(p),l="";for(let t=a.length-1;t>=0;t-=1){let e=a[t],{isExternal:u,modifiers:c,hasImportantModifier:h,baseClassName:d,maybePostfixModifierPosition:m}=i(e);if(u){l=e+(l.length>0?" "+l:l);continue}let p=!!m,f=r(p?d.substring(0,m):d);if(!f){if(!p||!(f=r(d))){l=e+(l.length>0?" "+l:l);continue}p=!1}let g=0===c.length?"":1===c.length?c[0]:s(c).join(":"),y=h?g+"!":g,v=y+f;if(o.indexOf(v)>-1)continue;o.push(v);let x=n(f,p);for(let t=0;t<x.length;++t){let e=x[t];o.push(y+e)}l=e+(l.length>0?" "+l:l)}return l})(t,s);return a(t,i),i};return l=c=>{var h;let p;return o=(s={cache:(t=>{if(t<1)return{get:()=>void 0,set:()=>{}};let e=0,i=Object.create(null),r=Object.create(null),n=(n,s)=>{i[n]=s,++e>t&&(e=0,r=i,i=Object.create(null))};return{get(t){let e=i[t];return void 0!==e?e:void 0!==(e=r[t])?(n(t,e),e):void 0},set(t,e){t in i?i[t]=e:n(t,e)}}})((h=e.reduce((t,e)=>e(t),t())).cacheSize),parseClassName:(t=>{let{prefix:e,experimentalParseClassName:i}=t,r=t=>{let e,i=[],r=0,n=0,s=0,o=t.length;for(let a=0;a<o;a++){let o=t[a];if(0===r&&0===n){if(":"===o){i.push(t.slice(s,a)),s=a+1;continue}if("/"===o){e=a;continue}}"["===o?r++:"]"===o?r--:"("===o?n++:")"===o&&n--}let a=0===i.length?t:t.slice(s),l=a,u=!1;return a.endsWith("!")?(l=a.slice(0,-1),u=!0):a.startsWith("!")&&(l=a.slice(1),u=!0),m(i,u,l,e&&e>s?e-s:void 0)};if(e){let t=e+":",i=r;r=e=>e.startsWith(t)?i(e.slice(t.length)):m(d,!1,e,void 0,!0)}if(i){let t=r;r=e=>i({className:e,parseClassName:t})}return r})(h),sortModifiers:(p=new Map,h.orderSensitiveModifiers.forEach((t,e)=>{p.set(t,1e6+e)}),t=>{let e=[],i=[];for(let r=0;r<t.length;r++){let n=t[r],s="["===n[0],o=p.has(n);s||o?(i.length>0&&(i.sort(),e.push(...i),i=[]),e.push(n)):i.push(n)}return i.length>0&&(i.sort(),e.push(...i)),e}),...(t=>{let e=(t=>{let{theme:e,classGroups:i}=t;return n(i,e)})(t),{conflictingClassGroups:s,conflictingClassGroupModifiers:o}=t;return{getClassGroupId:t=>{if(t.startsWith("[")&&t.endsWith("]")){var i;let e,r,n;return -1===(i=t).slice(1,-1).indexOf(":")?void 0:(r=(e=i.slice(1,-1)).indexOf(":"),(n=e.slice(0,r))?"arbitrary.."+n:void 0)}let n=t.split("-"),s=+(""===n[0]&&n.length>1);return r(n,s,e)},getConflictingClassGroupIds:(t,e)=>{if(e){let e=o[t],r=s[t];if(e){if(r){let t=Array(r.length+e.length);for(let e=0;e<r.length;e++)t[e]=r[e];for(let i=0;i<e.length;i++)t[r.length+i]=e[i];return t}return e}return r||i}return s[t]||i}}})(h)}).cache.get,a=s.cache.set,l=u,u(c)},(...t)=>l(((...t)=>{let e,i,r=0,n="";for(;r<t.length;)(e=t[r++])&&(i=f(e))&&(n&&(n+=" "),n+=i);return n})(...t))})(()=>{let t=y("color"),e=y("font"),i=y("text"),r=y("font-weight"),n=y("tracking"),s=y("leading"),o=y("breakpoint"),a=y("container"),l=y("spacing"),u=y("radius"),c=y("shadow"),h=y("inset-shadow"),d=y("text-shadow"),m=y("drop-shadow"),p=y("blur"),f=y("perspective"),g=y("aspect"),v=y("ease"),x=y("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...w(),H,O],T=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],S=()=>[H,O,l],R=()=>[j,"full","auto",...S()],D=()=>[M,"none","subgrid",H,O],N=()=>["auto",{span:["full",M,H,O]}
vendor: 5,956 bytes, line 1
1,M,H,O],L=()=>[M,"auto",H,O],Z=()=>["auto","min","max","fr",H,O],Q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],tt=()=>["auto",...S()],te=()=>[j,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],ti=()=>[t,H,O],tr=()=>[...w(),K,U,{position:[H,O]}],tn=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ts=()=>["auto","cover","contain",q,B,{size:[H,O]}],to=()=>[C,X,I],ta=()=>["","none","full",u,H,O],tl=()=>["",A,X,I],tu=()=>["solid","dashed","dotted","double"],tc=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],th=()=>[A,C,K,U],td=()=>["","none",p,H,O],tm=()=>["none",A,H,O],tp=()=>["none",A,H,O],tf=()=>[A,H,O],tg=()=>[j,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[E],breakpoint:[E],color:[V],container:[E],"drop-shadow":[E],ease:["in","out","in-out"],font:[F],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[E],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[E],shadow:[E],spacing:["px",A],text:[E],"text-shadow":[E],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",j,O,H,g]}],container:["container"],columns:[{columns:[A,O,H,a]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{start:R()}],end:[{end:R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[M,"auto",H,O]}],basis:[{basis:[j,"full","auto",a,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[A,j,"auto","initial","none",O]}],grow:[{grow:["",A,H,O]}],shrink:[{shrink:["",A,H,O]}],order:[{order:[M,"first","last","none",H,O]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...Q(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...Q()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":Q()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:tt()}],mx:[{mx:tt()}],my:[{my:tt()}],ms:[{ms:tt()}],me:[{me:tt()}],mt:[{mt:tt()}],mr:[{mr:tt()}],mb:[{mb:tt()}],ml:[{ml:tt()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],w:[{w:[a,"screen",...te()]}],"min-w":[{"min-w":[a,"screen","none",...te()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...te()]}],h:[{h:["screen","lh",...te()]}],"min-h":[{"min-h":["screen","lh","none",...te()]}],"max-h":[{"max-h":["screen","lh",...te()]}],"font-size":[{text:["base",i,X,I]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,H,z]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",C,O]}],"font-family":[{font:[Y,O,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,H,O]}],"line-clamp":[{"line-clamp":[A,"none",H,z]}],leading:[{leading:[s,...S()]}],"list-image":[{"list-image":["none",H,O]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",H,O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ti()}],"text-color":[{text:ti()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...tu(),"w
1avy"]}],"text-decoration-thickness":[{decoration:[A,"from-font","auto",H,I]}],"text-decoration-color":[{decoration:ti()}],"underline-offset":[{"underline-offset":[A,"auto",H,O]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",H,O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",H,O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:tr()}],"bg-repeat":[{bg:tn()}],"bg-size":[{bg:ts()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},M,H,O],radial:["",H,O],conic:[M,H,O]},G,$]}],"bg-color":[{bg:ti()}],"gradient-from-pos":[{from:to()}],"gradient-via-pos":[{via:to()}],"gradient-to-pos":[{to:to()}],"gradient-from":[{from:ti()}],"gradient-via":[{via:ti()}],"gradient-to":[{to:ti()}],rounded:[{rounded:ta()}],"rounded-s":[{"rounded-s":ta()}],"rounded-e":[{"rounded-e":ta()}],"rounded-t":[{"rounded-t":ta()}],"rounded-r":[{"rounded-r":ta()}],"rounded-b":[{"rounded-b":ta()}],"rounded-l":[{"rounded-l":ta()}],"rounded-ss":[{"rounded-ss":ta()}],"rounded-se":[{"rounded-se":ta()}],"rounded-ee":[{"rounded-ee":ta()}],"rounded-es":[{"rounded-es":ta()}],"rounded-tl":[{"rounded-tl":ta()}],"rounded-tr":[{"rounded-tr":ta()}],"rounded-br":[{"rounded-br":ta()}],"rounded-bl":[{"rounded-bl":ta()}],"border-w":[{border:tl()}],"border-w-x":[{"border-x":tl()}],"border-w-y":[{"border-y":tl()}],"border-w-s":[{"border-s":tl()}],"border-w-e":[{"border-e":tl()}],"border-w-t":[{"border-t":tl()}],"border-w-r":[{"border-r":tl()}],"border-w-b":[{"border-b":tl()}],"border-w-l":[{"border-l":tl()}],"divide-x":[{"divide-x":tl()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":tl()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...tu(),"hidden","none"]}],"divide-style":[{divide:[...tu(),"hidden","none"]}],"border-color":[{border:ti()}],"border-color-x":[{"border-x":ti()}],"border-color-y":[{"border-y":ti()}],"border-color-s":[{"border-s":ti()}],"border-color-e":[{"border-e":ti()}],"border-color-t":[{"border-t":ti()}],"border-color-r":[{"border-r":ti()}],"border-color-b":[{"border-b":ti()}],"border-color-l":[{"border-l":ti()}],"divide-color":[{divide:ti()}],"outline-style":[{outline:[...tu(),"none","hidden"]}],"outline-offset":[{"outline-offset":[A,H,O]}],"outline-w":[{outline:["",A,X,I]}],"outline-color":[{outline:ti()}],shadow:[{shadow:["","none",c,_,W]}],"shadow-color":[{shadow:ti()}],"inset-shadow":[{"inset-shadow":["none",h,_,W]}],"inset-shadow-color":[{"inset-shadow":ti()}],"ring-w":[{ring:tl()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ti()}],"ring-offset-w":[{"ring-offset":[A,I]}],"ring-offset-color":[{"ring-offset":ti()}],"inset-ring-w":[{"inset-ring":tl()}],"inset-ring-color":[{"inset-ring":ti()}],"text-shadow":[{"text-shadow":["none",d,_,W]}],"text-shadow-color":[{"text-shadow":ti()}],opacity:[{opacity:[A,H,O]}],"mix-blend":[{"mix-blend":[...tc(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":tc()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[A]}],"mask-image-linear-from-pos":[{"mask-linear-from":th()}],"mask-image-linear-to-pos":[{"mask-linear-to":th()}],"mask-image-linear-from-color":[{"mask-linear-from":ti()}],"mask-image-linear-to-color":[{"mask-linear-to":ti()}],"mask-image-t-from-pos":[{"mask-t-from":th()}],"mask-image-t-to-pos":[{"mask-t-to":th()}],"mask-image-t-from-color":[{"mask-t-from":ti()}],"mask-image-t-to-color":[{"mask-t-to":ti()}],"mask-image-r-from-pos":[{"mask-r-from":th()}],"mask-image-r-to-pos":[{"mask-r-to":th()}],"mask-image-r-from-color":[{"mask-r-from":ti()}],"mask-image-r-to-color":[{"mask-r-to":ti()}],"mask-image-b-from-pos":[{"mask-b-from":th()}],"mask-image-b-to-pos":[{"mask-b-to":th()}],"mask-image-b-from-color":[{"mask-b-from":ti()}],"mask-image-b-to-color":[{"mask-b-to":ti()}],"mask-image-l-from-pos":[{"mask-l-from":th()}],"mask-image-l-to-pos":[{"mask-l-to":th()}],"mask-image-l-from-color":[{"mask-l-from":ti()}],"mask-image-l-to-color":[{"mask-l-to":ti()}],"mask-image-x-from-pos":[{"mask-x-from":th()}],"mask-image-x-to-pos":[{"mask-x-to":th()}],"mask-image-x-from-color":[{"mask-x-from":ti()}],"mask-image-x-to-color":[{"mask-x-to":ti()}],"mask-image-y-from-pos":[{"mask-y-from":th()}],"mask-image-y-to-pos":[{"mask-y-to":th()}],"mask-image-y-from-color":[{"mask-y-from":ti()}],"mask-image-y-to-color":[{"mask-y-to":ti()}],"mask-image-radial":[{"mask-radial":[H,O]}],"mask-image-radial-from-pos":[{"mask-radial-from":th()}],"mask-image-radial-to-pos":[{"mask-radial-to":th()}],"mask-image-radial-from-color":[{"mask-radial-from":ti()}],"mask-image-radial-to-color":[{"mask-radial-to":ti()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[A]}],"mask-image-conic-from-pos":[{"mask-conic-from":th()}],"mask-image-conic-to-pos":[{"mask-conic-to":th()}],"mask-image-conic-from-color":[{"mask-conic-from":ti()}],"mask-image-conic-to-color":[{"mask-conic-to":ti()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:tr()}],"mask-repeat":[{mask:tn()}],"mask-size":[{mask:ts()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",H,O]}],filter:[{filter:["","none",H,O]}],blur:[{blur:td()}],brightness:[{brightness:[A,H,O]}],contrast:[{contrast:[A,H,O]}],"drop-shadow":[{"drop-shadow":["","none",m,_,W]}],"drop-shadow-color":[{"drop-shadow":ti()}],grayscale:[{grayscale:["",A,H,O]}],"hue-rotate":[{"hue-rotate":[A,H,O]}],invert:[{invert:["",A,H,O]}],saturate:[{saturate:[A,H,O]}],sepia:[{sepia:["",A,H,O]}],"backdrop-filter":[{"backdrop-filter":["","none",H,O]}],"backdrop-blur":[{"backdrop-blur":td()}],"backdrop-brightness":[{"backdrop-brightness":[A,H,O]}],"backdrop-contrast":[{"backdrop-contrast":[A,H,O]}],"backdrop-grayscale":[{"backdrop-grayscale":["",A,H,O]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[A,H,O]}],"backdrop-invert":[{"backdrop-invert":["",A,H,O]}],"backdrop-opacity":[{"backdrop-opacity":[A,H,O]}],"backdrop-saturate":[{"backdrop-saturate":[A,H,O]}],"backdrop-sepia":[{"backdrop-sepia":["",A,H,O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",H,O]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[A,"initial",H,O]}],ease:[{ease:["linear","initial",v,H,O]}],delay:[{delay:[A,H,O]}],animate:[{animate:["none",x,H,O]}
1],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,H,O]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:tm()}],"rotate-x":[{"rotate-x":tm()}],"rotate-y":[{"rotate-y":tm()}],"rotate-z":[{"rotate-z":tm()}],scale:[{scale:tp()}],"scale-x":[{"scale-x":tp()}],"scale-y":[{"scale-y":tp()}],"scale-z":[{"scale-z":tp()}],"scale-3d":["scale-3d"],skew:[{skew:tf()}],"skew-x":[{"skew-x":tf()}],"skew-y":[{"skew-y":tf()}],transform:[{transform:[H,O,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:tg()}],"translate-x":[{"translate-x":tg()}],"translate-y":[{"translate-y":tg()}],"translate-z":[{"translate-z":tg()}],"translate-none":["translate-none"],accent:[{accent:ti()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ti()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",H,O]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",H,O]}],fill:[{fill:["none",...ti()]}],"stroke-w":[{stroke:[A,X,I,z]}],stroke:[{stroke:["none",...ti()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function ta(...t){return to(function(){for(var t,e,i=0,r="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=function t(e){var i,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(i=0;i<s;i++)e[i]&&(r=t(e[i]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}(t))&&(r&&(r+=" "),r+=e);return r}(t))}t.s(["cn",()=>ta],77450)},30084,t=>{"use strict";var e=t.i(83854),i=t.i(1392),r=t.i(77450),n=t.i(63804),s=t.i(61026);n.default.registerPlugin(s.ScrollTrigger);let o=[{id:1,name:"PACTO P2P",description:"Decentralized peer-to-peer network protocol for trustless transactions and collaboration",url:"https://github.com/PACTO-LAT/pacto-p2p",stars:0,language:"Rust"},{id:2,name:"KindFi",description:"DeFi protocol focused on charitable giving and community-driven finance",url:"https://github.com/kindfi-org/kindfi",stars:0,language:"Rust"},{id:3,name:"We Love Dogs",description:"Community platform for dog lovers to connect, share, and support animal welfare",url:"https://github.com/lober-
1org/welovedogs",stars:0,language:"TypeScript"},{id:4,name:"PolkaHub",description:"Substrate-based ecosystem hub for building and managing Polkadot parachains",url:"https://github.com/lober-org/polkahub",stars:0,language:"Solidity"},{id:5,name:"Arcadis",description:"Immersive gaming experience with blockchain integration and token economics",url:"https://github.com/Arcadelis/arcadis",stars:0,language:"TypeScript"},{id:6,name:"MasterBots",description:"AI-powered bot framework for autonomous agents and intelligent automation",url:"https://github.com/bitcashorg/masterbots",stars:0,language:"Next.js"},{id:7,name:"DBoard",description:"Real-time dashboard for monitoring and managing distributed systems",url:"https://github.com/bitcashorg/dboard",stars:0,language:"TypeScript"},{id:8,name:"SmartSale",description:"Secure smart contract platform for conducting trustless token sales and IDOs",url:"https://github.com/bitcashorg/smartsale",stars:0,language:"Solidity"},{id:9,name:"IKnowMusic",description:"Music discovery and collaboration platform with web3 integration",url:"https://www.iknowmusic.com/demo",stars:0,language:"TypeScript"}];async function a(t){let e=function(t){try{let e=t.match(/github\.com\/([^\/]+)\/([^\/]+)/);if(e)return{owner:e[1],repo:e[2]};return null}catch{return null}}(t);if(!e)return{stars:0,languages:[]};try{let i=await fetch(`https://api.github.com/repos/${e.owner}/${e.repo}`);if(!i.ok)return{stars:0,languages:[]};let r=await i.json(),n=[];try{let t=await fetch(`https://api.github.com/repos/${e.owner}/${e.repo}/languages`);if(t.ok){let e=await t.json();n=Object.entries(e).sort(([,t],[,e])=>e-t).slice(0,3).map(([t])=>t)}}catch(e){console.error(`Failed to fetch languages for ${t}:`,e),r.language&&(n=[r.language])}return{stars:r.stargazers_count||0,languages:n}}catch(e){return console.error(`Failed to fetch repo data for ${t}:`,e),{stars:0,languages:[]}}}function l(){let t=(0,i.useRef)(null),r=(0,i.useRef)(null),s=(0,i.useRef)(null),[l,c]=(0,i.useState)(!0),[h,d]=(0,i.useState)(null),[m,p]=(0,i.useState)(o);return(0,i.useEffect)(()=>{!async function(){c(!0),d(null);try{let t=await Promise.all(o.map(async t=>{if(t.url.includes("github.com")){let{stars:e,languages:i}=await a(t.url);return{...t,stars:e,languages:i.length>0?i:t.language?[t.language]:[],language:i.length>0?i[0]:t.language}}return t}));p(t)}catch(t){d("Failed to fetch repository data"),console.error("Error fetching repository data:",t)}finally{c(!1)}}()},[]),(0,i.useEffect)(()=>{if(!t.current||!r.current||!s.current)return;let e=n.default.context(()=>{n.default.fromTo(r.current,{x:-60,opacity:0},{x:0,opacity:1,duration:1,ease:"power3.out",scrollTrigger:{trigger:r.current,start:"top 90%",toggleActions:"play none none reverse"}});let t=s.current?.querySelectorAll("article");t&&t.length>0&&(n.default.set(t,{y:60,opacity:0}),n.default.to(t,{y:0,opacity:1,duration:.8,stagger:.1,ease:"power3.out",scrollTrigger:{trigger:s.current,start:"top 90%",toggleActions:"play none none reverse"}}))},t);return()=>e.revert()},[]),(0,e.jsxs)("section",{ref:t,id:"projects",className:"relative py-32 pl-6 md:pl-28 pr-6 md:pr-12",children:[(0,e.jsxs)("div",{ref:r,className:"mb-16 flex items-end justify-between",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("span",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:"02 / Projects"}),(0,e.jsx)("h2",{className:"mt-4 font-[var(--font-bebas)] text-5xl md:text-7xl tracking-tight",children:"FEATURED WORK"})]}),(0,e.jsx)("p",{className:"hidden md:block max-w-xs font-mono text-xs text-muted-foreground text-right leading-relaxed",children:"Open source projects and experiments. Check out more on GitHub."})]}),(0,e.jsx)("div",{ref:s,className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6",children:l?(0,e.jsx)("div",{className:"col-span-full py-12 text-center",children:(0,e.jsx)("p",{className:"font-mono text-sm text-muted-foreground",children:"Loading projects..."})}):h?(0,e.jsx)("div",{className:"col-span-full py-12 text-center",children:(0,e.jsx)("p",{className:"font-mono text-sm text-muted-foreground",children:h})}):0===m.length?(0,e.jsx)("div",{className:"col-span-full py-12 text-center",children:(0,e.jsx)("p",{className:"font-mono text-sm text-muted-foreground",children:"No projects found"})}):m.map(t=>(0,e.jsx)(u,{repo:t},t.id))}),(0,e.jsx)("div",{className:"mt-16 flex justify-center",children:(0,e.jsxs)("a",{href:"https://github.com/Bran18",target:"_blank",rel:"noopener noreferrer",className:"group inline-flex items-center gap-3 border border-foreground
1/20 px-6 py-3 font-mono text-xs uppercase tracking-widest text-foreground hover:border-accent hover:text-accent transition-all duration-200",children:["View All Projects",(0,e.jsx)("svg",{className:"w-4 h-4 transition-transform group-hover:translate-x-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,e.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})})]})}function u({repo:t}){let[n,s]=(0,i.useState)(!1),o=(0,i.useRef)(null);return(0,e.jsxs)("article",{ref:o,className:(0,r.cn)("group relative border border-border/40 p-6 flex flex-col justify-between transition-all duration-500 cursor-pointer overflow-hidden hover:border-accent/60"),onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[(0,e.jsx)("div",{className:(0,r.cn)("absolute inset-0 bg-accent/5 transition-opacity duration-500",n?"opacity-100":"opacity-0")}),(0,e.jsxs)("div",{className:"relative z-10",children:[t.languages&&t.languages.length>0?(0,e.jsx)("span",{className:"font-mono text-[10px] uppercase tracking-widest text-muted-foreground",children:t.languages.join(" / ")}):t.language?(0,e.jsx)("span",{className:"font-mono text-[10px] uppercase tracking-widest text-muted-foreground",children:t.language}):null,(0,e.jsx)("h3",{className:(0,r.cn)("mt-2 font-[var(--font-bebas)] text-2xl tracking-tight transition-colors duration-300 break-words",n?"text-accent":"text-foreground"),children:t.name}),(0,e.jsx)("p",{className:(0,r.cn)("mt-3 font-mono text-xs text-muted-foreground leading-relaxed transition-all duration-500 line-clamp-2",n?"opacity-100":"opacity-70"),children:t.description})]}),(0,e.jsxs)("div",{className:"relative z-10 mt-4 flex items-center justify-between pt-4 border-t border-border/30",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2 font-mono text-xs text-muted-foreground",children:[(0,e.jsx)("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 24 24",children:(0,e.jsx)("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2l-2.81 6.63L2 9.24l5.46 4.73L5.82 21 12 17.27z"})}),t.stars]}),(0,e.jsx)("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",className:(0,r.cn)("font-mono text-xs uppercase tracking-widest transition-colors duration-200",n?"text-accent":"text-muted-foreground hover:text-foreground"),children:"View →"})]}),(0,e.jsxs)("div",{className:(0,r.cn)("absolute top-0 right-0 w-12 h-12 transition-all duration-500",n?"opacity-100":"opacity-0"),children:[(0,e.jsx)("div",{className:"absolute top-0 right-0 w-full h-[1px] bg-accent"}),(0,e.jsx)("div",{className:"absolute top-0 right-0 w-[1px] h-full bg-accent"})]})]})}t.s(["GitHubProjects",()=>l])},11149,t=>{"use strict";var e=t.i(83854),i=t.i(1392),r=t.i(63804),n=t.i(61026);function s(){let t=(0,i.useRef)(null),n=(0,i.useRef)(null),s=(0,i.useRef)(null),o=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(!t.current)return;let e=r.default.context(()=>{n.current&&r.default.from(n.current,{x:-60,opacity:0,duration:1,ease:"power3.out",scrollTrigger:{trigger:n.current,start:"top 85%",toggleActions:"play none none reverse"}}),s.current&&r.default.from(s.current,{y:40,opacity:0,duration:.8,ease:"power3.out",scrollTrigger:{trigger:s.current,start:"top 85%",toggleActions:"play none none reverse"}}),o.current&&r.default.from(o.current,{y:20,opacity:0,duration:.8,ease:"power3.out",scrollTrigger:{trigger:o.current,start:"top 95%",toggleActions:"play none none reverse"}})},t);return()=>e.revert()},[]),(0,e.jsxs)("section",{ref:t,id:"contact",className:"relative py-32 pl-6 md:pl-28 pr-6 md:pr-12 border-t border-border/30",children:[(0,e.jsxs)("div",{ref:n,className:"mb-16",children:[(0,e.jsx)("span",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:"03 / Contact"}),(0,e.jsx)("h2",{className:"mt-4 font-[var(--font-bebas)] text-5xl md:text-7xl tracking-tight",children:"GET IN TOUCH"})]}),(0,e.jsxs)("div",{ref:s,className:"grid grid-cols-1 md:grid-cols-2 gap-16 md:gap-24 mb-24",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{className:"font-mono text-sm text-muted-foreground leading-relaxed mb-8",children:"I'm always interested in hearing about new projects and opportunities. Feel free to reach out if you'd like to collaborate or just say hello."}),(0,e.jsxs)("div",{className:"space-y-6",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("h4",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-muted-foreground mb-2",children:"Email"}),(0,e.jsx)("a",{href:"mailto:[email protected]",className:"font-mono text-sm text-foreground hover:text-accent transition-colors duration-200",children:"[email protected]"})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h4",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-muted-foreground mb-2",children:"X / Twitter"}),(0,e.jsx)("a",{href:"https://twitter.com/branfdez_18",target:"_blank",rel:"noopener noreferrer",className:"font-mono text-sm text-foreground hover:text-accent transition-colors duration-200",children:"@branfdez_18"})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h4",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-muted-foreground mb-2",children:"LinkedIn"}),(0,e.jsx)("a",{href:"https://linkedin.com/in/brandonfdez18",target:"_blank",rel:"noopener noreferrer",className:"font-mono text-sm text-foreground hover:text-accent transition-colors duration-200",children:"linkedin.com/in/brandonfdez18"})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h4",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-muted-foreground mb-2",children:"Open Source"}),(0,e.jsx)("a",{href:"https://app.onlydust.com/u/Bran18",target:"_blank",rel:"noopener noreferrer",className:"font-mono text-sm text-foreground hover:text-accent transition-colors duration-200",children:"OnlyDust Profile"})]})]})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h3",{className:"font-[var(--font-bebas)] text-3xl md:text-4xl tracking-tight mb-6",children:"Let's build something great together."}),(0,e.jsx)("p",{className:"font-mono text-sm text-muted-foreground leading-relaxed",children:"Whether you have a specific project in mind or just want to explore possibilities, I'd love to chat. Let's connect and create something meaningful."})]})]}),(0,e.jsxs)("div",{ref:o,className:"pt-8 border-t border-border/20 flex flex-col md:flex-row md:items-center md:justify-between gap-4",children:[(0,e.jsx)("p",{className:"font-mono text-[10px] text-muted-foreground uppercase tracking-widest",children:"© 2025 Brandon. All rights reserved."}),(0,e.jsx)("p",{className:"font-mono text-[10px] text-muted-foreground",children:"Designed with precision. Built with passion."})]})]})}r.default.registerPlugin(n.ScrollTrigger),t.s(["ContactSection",()=>s])},25735,t=>{"use strict";var e=t.i(83854),i=t.i(1392),r=t.i(77450);let n=[{id:"hero",label:"Home"},{id:"about",label:"About"},{id:"projects",label:"Projects"},{id:"contact",label:"Contact"}];function s(){let[t,s]=(0,i.useState)("hero");return(0,i.useEffect)(()=>{let t=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&s(t.target.id)})},{threshold:.3});
1return n.forEach(({id:e})=>{let i=document.getElementById(e);i&&t.observe(i)}),()=>t.disconnect()},[]),(0,e.jsx)("nav",{className:"fixed left-0 top-0 z-50 h-screen w-16 md:w-20 hidden md:flex flex-col justify-center border-r border-border/30 bg-background/80 backdrop-blur-sm",children:(0,e.jsx)("div",{className:"flex flex-col gap-6 px-4",children:n.map(({id:i,label:n})=>(0,e.jsxs)("button",{onClick:()=>{let t;(t=document.getElementById(i))&&t.scrollIntoView({behavior:"smooth"})},className:"group relative flex items-center gap-3",children:[(0,e.jsx)("span",{className:(0,r.cn)("h-1.5 w-1.5 rounded-full transition-all duration-300",t===i?"bg-accent scale-125":"bg-muted-foreground/40 group-hover:bg-foreground/60")}),(0,e.jsx)("span",{className:(0,r.cn)("absolute left-6 font-mono text-[10px] uppercase tracking-widest opacity-0 transition-all duration-200 group-hover:opacity-100 group-hover:left-8 whitespace-nowrap",t===i?"text-accent":"text-muted-foreground"),children:n})]},i))})})}t.s(["SideNav",()=>s])}]);

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