1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,75760,t=>{"use strict";var e=t.i(71645);function i(){let t=(0,e.useRef)(null),[i,s]=(0,e.useState)(null),n=(0,e.useCallback)(()=>{let e=t.current;if(!e)return;let{width:i,height:n}=e.getBoundingClientRect();s({width:i,height:n})},[]);return(0,e.useEffect)(()=>{let e=t.current;if(!e)return;n();let i=new ResizeObserver(n);return i.observe(e),()=>i.disconnect()},[n]),{ref:t,width:i?.width??null,height:i?.height??null}}t.s(["useMeasure",()=>i])},49972,t=>{"use strict";let e=null,i=null;async function s(){return e||(i||(i=t.A(44985).then(t=>e=t.default)),i)}function n(){return e}t.s(["ensurePostHog",()=>s,"getPostHogInstance",()=>n])},40314,t=>{"use strict";var e=t.i(71645),i=t.i(49972);let s={variant:null,isLoaded:!1};function n(t){let[n,r]=(0,e.useState)(s);return(0,e.useEffect)(()=>{let e,s=!1;return(0,i.ensurePostHog)().then(n=>{if(s)return;let o=()=>{let e=n.getFeatureFlag(t);r({variant:"string"==typeof e?e:null,isLoaded:!0})};e=n.onFeatureFlags(()=>{s||o()});let a=(0,i.getPostHogInstance)();a?.__loaded&&o()}),()=>{s=!0,e?.()}},[t]),n}t.s(["useExperiment",()=>n])},94909,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s={default:function(){return h},getImageProps:function(){return u}};for(var n in s)Object.defineProperty(i,n,{enumerable:!0,get:s[n]});let r=t.r(55682),o=t.r(8927),a=t.r(85437),l=r._(t.r(1948));function u(t){let{props:e}=(0,o.getImgProps)(t,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1280,1920,2048,2560],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let h=a.Image},57688,(t,e,i)=>{e.exports=t.r(94909)},31178,48070,37806,88291,t=>{"use strict";var e=t.i(71645);let i=(0,e.createContext)({});t.s(["LayoutGroupContext",()=>i],31178);let s=(0,e.createContext)({strict:!1});t.s(["LazyContext",()=>s],48070);let n=(0,e.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",()=>n],37806);let r=(0,e.createContext)({});t.s(["MotionContext",()=>r],88291)},87576,85983,32525,6840,t=>{"use strict";function e(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function i(t){return"string"==typeof t||Array.isArray(t)}t.s(["isAnimationControls",()=>e],85983),t.s(["isVariantLabel",()=>i],32525);let s=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],n=["initial",...s];function r(t){return e(t.animate)||n.some(e=>i(t[e]))}function o(t){return!!(r(t)||t.variants)}t.s(["variantPriorityOrder",()=>s,"variantProps",()=>n],6840),t.s(["isControllingVariants",()=>r,"isVariantNode",()=>o],87576)},82474,t=>{"use strict";var e=t.i(71645),i=t.i(88291),s=t.i(87576),n=t.i(32525);function r(t){let{initial:r,animate:a}=function(t,e){if((0,s.isControllingVariants)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,n.isVariantLabel)(e)?e:void 0,animate:(0,n.isVariantLabel)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,e.useContext)(i.MotionContext));return(0,e.useMemo)(()=>({initial:r,animate:a}),[o(r),o(a)])}function o(t){return Array.isArray(t)?t.join(" "):t}t.s(["useCreateMotionContext",()=>r],82474)},83411,t=>{"use strict";let e=t=>!!(t&&t.getVelocity);t.s(["isMotionValue",()=>e])},57788,t=>{"use strict";let e=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],i=new Set(e);t.s(["transformPropOrder",()=>e,"transformProps",()=>i])},19928,t=>{"use strict";let e=t=>e=>"string"==typeof e&&e.startsWith(t),i=e("--"),s=e("var(--"),n=t=>!!s(t)&&r.test(t.split("/*")[0].trim()),r=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function o(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}t.s(["containsCSSVariable",()=>o,"isCSSVariableName",()=>i,"isCSSVariableToken",()=>n])},65091,t=>{"use strict";let e=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),i=e("deg"),s=e("%"),n=e("px"),r=e("vh"),o=e("vw"),a={...s,parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)};t.s(["degrees",()=>i,"percent",()=>s,"progressPercentage",()=>a,"px",()=>n,"vh",()=>r,"vw",()=>o])},91018,t=>{"use strict";var e=t.i(65091);function i(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let s={correct:(t,s)=>{if(!s.target)return t;if("string"==typeof t)if(!e.px.test(t))return t;else t=parseFloat(t);let n=i(t,s.target.x),r=i(t,s.target.y);return`${n}% ${r}%`}};t.s(["correctBorderRadius",()=>s])}
1,63011,76959,76307,60720,30677,98106,66820,t=>{"use strict";let e=(t,e,i)=>i>e?e:i<t?t:i;t.s(["clamp",()=>e],76959);let i={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...i,transform:t=>e(0,1,t)},n={...i,default:1};t.s(["alpha",()=>s,"number",()=>i,"scale",()=>n],76307);let r=t=>Math.round(1e5*t)/1e5;t.s(["sanitize",()=>r],60720);let o=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;t.s(["floatRegex",()=>o],30677);let a=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,l=(t,e)=>i=>!!("string"==typeof i&&a.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),u=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[n,r,a,l]=s.match(o);return{[t]:parseFloat(n),[e]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}};t.s(["isColorString",()=>l,"splitColor",()=>u],98106);let h={...i,transform:t=>Math.round(e(0,255,t))},c={test:l("rgb","red"),parse:u("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+h.transform(t)+", "+h.transform(e)+", "+h.transform(i)+", "+r(s.transform(n))+")"};t.s(["rgba",()=>c],66820);let d={test:l("#"),parse:function(t){let e="",i="",s="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,s+=s,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:n?parseInt(n,16)/255:1}},transform:c.transform};t.s(["hex",()=>d],63011)},69577,22660,79444,t=>{"use strict";var e=t.i(63011),i=t.i(76307),s=t.i(65091),n=t.i(60720),r=t.i(98106);let o={test:(0,r.isColorString)("hsl","hue"),parse:(0,r.splitColor)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:o=1})=>"hsla("+Math.round(t)+", "+s.percent.transform((0,n.sanitize)(e))+", "+s.percent.transform((0,n.sanitize)(r))+", "+(0,n.sanitize)(i.alpha.transform(o))+")"};t.s(["hsla",()=>o],22660);var a=t.i(66820);let l={test:t=>a.rgba.test(t)||e.hex.test(t)||o.test(t),parse:t=>a.rgba.test(t)?a.rgba.parse(t):o.test(t)?o.parse(t):e.hex.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?a.rgba.transform(t):o.transform(t),getAnimatableNone:t=>{let e=l.parse(t);return e.alpha=0,l.transform(e)}};t.s(["color",()=>l],79444);let u=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var h=t.i(30677);let c="number",d="color",p=/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 m(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},n=[],r=0,o=e.replace(p,t=>(l.test(t)?(s.color.push(r),n.push(d),i.push(l.parse(t))):t.startsWith("var(")?(s.var.push(r),n.push("var"),i.push(t)):(s.number.push(r),n.push(c),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:s,types:n}}function f(t){return m(t).values}function g(t){let{split:e,types:i}=m(t),s=e.length;return t=>{let r="";for(let o=0;o<s;o++)if(r+=e[o],void 0!==t[o]){let e=i[o];e===c?r+=(0,n.sanitize)(t[o]):e===d?r+=l.transform(t[o]):r+=t[o]}return r}}let v=t=>"number"==typeof t?0:l.test(t)?l.getAnimatableNone(t):t,y={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(h.floatRegex)?.length||0)+(t.match(u)?.length||0)>0},parse:f,createTransformer:g,getAnimatableNone:function(t){let e=f(t);return g(t)(e.map(v))}};t.s(["analyseComplexValue",()=>m,"complex",()=>y],69577)},30789,706,24463,t=>{"use strict";var e=t.i(57788);t.i(19928);var i=t.i(91018),s=t.i(69577);let n=(t,e,i)=>t+(e-t)*i;t.s(["mixNumber",()=>n],706);let r={borderRadius:{...i.correctBorderRadius,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:i.correctBorderRadius,borderTopRightRadius:i.correctBorderRadius,borderBottomLeftRadius:i.correctBorderRadius,borderBottomRightRadius:i.correctBorderRadius,boxSh
1adow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let r=s.complex.parse(t);if(r.length>5)return t;let o=s.complex.createTransformer(t),a=+("number"!=typeof r[0]),l=i.x.scale*e.x,u=i.y.scale*e.y;r[0+a]/=l,r[1+a]/=u;let h=n(l,u,.5);return"number"==typeof r[2+a]&&(r[2+a]/=h),"number"==typeof r[3+a]&&(r[3+a]/=h),o(r)}}};function o(t,{layout:i,layoutId:s}){return e.transformProps.has(t)||t.startsWith("origin")||(i||void 0!==s)&&(!!r[t]||"opacity"===t)}t.s(["scaleCorrectors",()=>r],24463),t.s(["isForcedMotionValue",()=>o],30789)},46124,t=>{"use strict";let e=(t,e)=>e&&"number"==typeof t?e.transform(t):t;t.s(["getValueAsType",()=>e])},34929,t=>{"use strict";var e=t.i(76307);let i={...e.number,transform:Math.round};var s=t.i(65091);let n={rotate:s.degrees,rotateX:s.degrees,rotateY:s.degrees,rotateZ:s.degrees,scale:e.scale,scaleX:e.scale,scaleY:e.scale,scaleZ:e.scale,skew:s.degrees,skewX:s.degrees,skewY:s.degrees,distance:s.px,translateX:s.px,translateY:s.px,translateZ:s.px,x:s.px,y:s.px,z:s.px,perspective:s.px,transformPerspective:s.px,opacity:e.alpha,originX:s.progressPercentage,originY:s.progressPercentage,originZ:s.px},r={borderWidth:s.px,borderTopWidth:s.px,borderRightWidth:s.px,borderBottomWidth:s.px,borderLeftWidth:s.px,borderRadius:s.px,borderTopLeftRadius:s.px,borderTopRightRadius:s.px,borderBottomRightRadius:s.px,borderBottomLeftRadius:s.px,width:s.px,maxWidth:s.px,height:s.px,maxHeight:s.px,top:s.px,right:s.px,bottom:s.px,left:s.px,inset:s.px,insetBlock:s.px,insetBlockStart:s.px,insetBlockEnd:s.px,insetInline:s.px,insetInlineStart:s.px,insetInlineEnd:s.px,padding:s.px,paddingTop:s.px,paddingRight:s.px,paddingBottom:s.px,paddingLeft:s.px,paddingBlock:s.px,paddingBlockStart:s.px,paddingBlockEnd:s.px,paddingInline:s.px,paddingInlineStart:s.px,paddingInlineEnd:s.px,margin:s.px,marginTop:s.px,marginRight:s.px,marginBottom:s.px,marginLeft:s.px,marginBlock:s.px,marginBlockStart:s.px,marginBlockEnd:s.px,marginInline:s.px,marginInlineStart:s.px,marginInlineEnd:s.px,fontSize:s.px,backgroundPositionX:s.px,backgroundPositionY:s.px,...n,zIndex:i,fillOpacity:e.alpha,strokeOpacity:e.alpha,numOctaves:i};t.s(["numberValueTypes",()=>r],34929)},44947,t=>{"use strict";var e=t.i(46124),i=t.i(34929),s=t.i(57788),n=t.i(19928);let r={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},o=s.transformPropOrder.length;function a(t,a,l){let{style:u,vars:h,transformOrigin:c}=t,d=!1,p=!1;for(let t in a){let r=a[t];if(s.transformProps.has(t)){d=!0;continue}if((0,n.isCSSVariableName)(t)){h[t]=r;continue}{let s=(0,e.getValueAsType)(r,i.numberValueTypes[t]);t.startsWith("origin")?(p=!0,c[t]=s):u[t]=s}}if(!a.transform&&(d||l?u.transform=function(t,n,a){let l="",u=!0;for(let h=0;h<o;h++){let o=s.transformPropOrder[h],c=t[o];if(void 0===c)continue;let d=!0;if("number"==typeof c)d=c===+!!o.startsWith("scale");else{let t=parseFloat(c);d=o.startsWith("scale")?1===t:0===t}if(!d||a){let t=(0,e.getValueAsType)(c,i.numberValueTypes[o]);if(!d){u=!1;let e=r[o]||o;l+=`${e}(${t}) `}a&&(n[o]=t)}}return l=l.trim(),a?l=a(n,u?"":l):u&&(l="none"),l}(a,t.transform,l):u.transform&&(u.transform="none")),p){let{originX:t="50%",originY:e="50%",originZ:i=0}=c;u.transformOrigin=`${t} ${e} ${i}`}}t.s(["buildHTMLStyles",()=>a],44947)},34774,86549,t=>{"use strict";var e=t.i(83411),i=t.i(30789),s=t.i(44947),n=t.i(71645);let r=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function o(t,s,n){for(let r in s)(0,e.isMotionValue)(s[r])||(0,i.isForcedMotionValue)(r,n)||(t[r]=s[r])}function a(t,e){let i,a,l={},u=(i=t.style||{},o(a={},i,t),Object.assign(a,function({transformTemplate:t},e){return(0,n.useMemo)(()=>{let i=r();return(0,s.buildHTMLStyles)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),a);return t.drag&&!1!==t.dragListener&&(l.draggable=!1,u.userSelect=u.WebkitUserSelect=u.WebkitTouchCallout="none",u.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(l.tabIndex=0),l.style=u,l}t.s(["createHtmlRenderState",()=>r],86549),t.s(["copyRawValuesOnly",()=>o,"useHTMLProps",()=>a],34774)},81261,t=>{"use strict";var e=t.i(44947);let i={offset:"stroke-dashoffset",array:"stroke-dasharray"},s={offset:"strokeDashoffset",array:"strokeDasharray"},n=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function r(t,{attrX:r,attrY:o,attrScale:a,pathLength:l,pathSpacing:u=1,pathOffset:h=0,...c},d,p,m){if((0,e.buildHTMLStyles)(t,c,p),d){t.style.viewBox&&(t.attrs.viewB
1ox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:f,style:g}=t;for(let t of(f.transform&&(g.transform=f.transform,delete f.transform),(g.transform||f.transformOrigin)&&(g.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),g.transform&&(g.transformBox=m?.transformBox??"fill-box",delete f.transformBox),n))void 0!==f[t]&&(g[t]=f[t],delete f[t]);void 0!==r&&(f.x=r),void 0!==o&&(f.y=o),void 0!==a&&(f.scale=a),void 0!==l&&function(t,e,n=1,r=0,o=!0){t.pathLength=1;let a=o?i:s;t[a.offset]=`${-r}`,t[a.array]=`${e} ${n}`}(f,l,u,h,!1)}t.s(["buildSVGAttrs",()=>r],81261)},99951,t=>{"use strict";let e=t=>"string"==typeof t&&"svg"===t.toLowerCase();t.s(["isSVGTag",()=>e])},34537,t=>{"use strict";var e,i,s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,n=(e=function(t){return s.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&91>t.charCodeAt(2)},i=Object.create(null),function(t){return void 0===i[t]&&(i[t]=e(t)),i[t]});t.s(["default",()=>n],34537)},35878,11587,98125,t=>{"use strict";var e,i=t.i(81261),s=t.i(99951),n=t.i(71645),r=t.i(34774),o=t.i(86549);let a=()=>({...(0,o.createHtmlRenderState)(),attrs:{}});function l(t,e,o,l){let u=(0,n.useMemo)(()=>{let n=a();return(0,i.buildSVGAttrs)(n,e,(0,s.isSVGTag)(l),t.transformTemplate,t.style),{...n.attrs,style:{...n.style}}},[e]);if(t.style){let e={};(0,r.copyRawValuesOnly)(e,t.style,t),u.style={...e,...u.style}}return u}t.s(["createSvgRenderState",()=>a],11587),t.s(["useSVGProps",()=>l],35878);let u=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","propagate","ignoreStrict","viewport"]);function h(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||u.has(t)}let c=t=>!h(t);try{e=t.r(34537).default,"function"==typeof e&&(c=t=>t.startsWith("on")?!h(t):e(t))}catch{}function d(t,e,i){let s={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(c(n)||!0===i&&h(n)||
1!e&&!h(n)||t.draggable&&n.startsWith("onDrag"))&&(s[n]=t[n]);return s}t.s(["filterProps",()=>d],98125)},44966,t=>{"use strict";let e=["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 i(t){if("string"!=typeof t||t.includes("-"));else if(e.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}t.s(["isSVGComponent",()=>i],44966)},8576,t=>{"use strict";var e=t.i(83411),i=t.i(71645),s=t.i(34774),n=t.i(35878),r=t.i(98125),o=t.i(44966);function a(t,l,u,{latestValues:h},c,d=!1,p){let m=(p??(0,o.isSVGComponent)(t)?n.useSVGProps:s.useHTMLProps)(l,h,c,t),f=(0,r.filterProps)(l,"string"==typeof t,d),g=t!==i.Fragment?{...f,...m,ref:u}:{},{children:v}=l,y=(0,i.useMemo)(()=>(0,e.isMotionValue)(v)?v.get():v,[v]);return(0,i.createElement)(t,{...g,children:y})}t.s(["useRender",()=>a])},84049,t=>{"use strict";var e=t.i(83411),i=t.i(30789);function s(t,s,n){let r=t.style,o=s?.style,a={};if(!r)return a;for(let s in r)((0,e.isMotionValue)(r[s])||o&&(0,e.isMotionValue)(o[s])||(0,i.isForcedMotionValue)(s,t)||n?.getValue(s)?.liveStyle!==void 0)&&(a[s]=r[s]);return a}t.s(["scrapeMotionValuesFromProps",()=>s])},30665,33871,t=>{"use strict";var e=t.i(84049);t.s(["scrapeHTMLMotionValuesFromProps",()=>e.scrapeMotionValuesFromProps],30665);var i=t.i(83411);function s(t){return(0,i.isMotionValue)(t)?t.get():t}t.s(["resolveMotionValue",()=>s],33871)},86579,t=>{"use strict";function e(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function i(t,i,s,n){if("function"==typeof i){let[r,o]=e(n);i=i(void 0!==s?s:t.custom,r,o)}if("string"==typeof i&&(i=t.variants&&t.variants[i]),"function"==typeof i){let[r,o]=e(n);i=i(void 0!==s?s:t.custom,r,o)}return i}t.s(["resolveVariantFromProps",()=>i])},72679,21476,47414,97044,t=>{"use strict";var e=t.i(30665),i=t.i(33871),s=t.i(87576),n=t.i(85983),r=t.i(86579),o=t.i(71645),a=t.i(88291);let l=(0,o.createContext)(null);function u(t){let e=(0,o.useRef)(null);return null===e.current&&(e.current=t()),e.current}t.s(["PresenceContext",()=>l],21476),t.s(["useConstant",()=>u],47414);let h=t=>(e,h)=>{let c=(0,o.useContext)(a.MotionContext),d=(0,o.useContext)(l),p=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},o,a,l){return{latestValues:function(t,e,o,a){let l={},u=a(t,{});for(let t in u)l[t]=(0,i.resolveMotionValue)(u[t]);let{initial:h,animate:c}=t,d=(0,s.isControllingVariants)(t),p=(0,s.isVariantNode)(t);e&&p&&!d&&!1!==t.inherit&&(void 0===h&&(h=e.initial),void 0===c&&(c=e.animate));let m=!!o&&!1===o.initial,f=(m=m||!1===h)?c:h;if(f&&"boolean"!=typeof f&&!(0,n.isAnimationControls)(f)){let e=Array.isArray(f)?f:[f];for(let i=0;i<e.length;i++){let s=(0,r.resolveVariantFromProps)(t,e[i]);if(s){let{transitionEnd:t,transition:e,...i}=s;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=m?e.length-1:0;e=e[t]}null!==e&&(l[t]=e)}for(let e in t)l[e]=t[e]}}}return l}(o,a,l,t),renderState:e()}})(t,e,c,d);return h?p():u(p)};t.s(["makeUseVisualState",()=>h],97044);var c=t.i(86549);let d=h({scrapeMotionValuesFromProps:e.scrapeHTMLMotionValuesFromProps,createRenderState:c.createHtmlRenderState});t.s(["useHTMLVisualState",()=>d],72679)},67926,t=>{"use strict";var e=t.i(83411),i=t.i(57788),s=t.i(84049);function n(t,n,r){let o=(0,s.scrapeMotionValuesFromProps)(t,n,r);for(let s in t)((0,e.isMotionValue)(t[s])||(0,e.isMotionValue)(n[s]))&&(o[-1!==i.transformPropOrder.indexOf(s)?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s]=t[s]);return o}t.s(["scrapeMotionValuesFromProps",()=>n])},1664,t=>{"use strict";var e=t.i(67926),e=e,i=t.i(97044),s=t.i(11587);let n=(0,i.makeUseVisualState)({scrapeMotionValuesFromProps:e.scrapeMotionValuesFromProps,createRenderState:s.createSvgRenderState});t.s(["useSVGVisualState",()=>n],1664)},63074,t=>{"use strict";let e=t=>1e3*t,i=t=>t/1e3;t.s(["millisecondsToSeconds",()=>i,"secondsToMilliseconds",()=>e])},72590,t=>{"use strict";let e=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);t.s(["isNumericalString",()=>e])},47507,t=>{"use strict";let e=t=>/^0[^.\s]+$/u.test(t);t.s(["isZeroValueString",()=>e])},70596,33887,t=>{"use strict";function e(t,e){-1===t.indexOf(e)&&t.push(e)}function i(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}t.s(["addUniqueItem",()=>e,"removeItem",()=>i],33887);class s{constructor(){this.subscriptions=[]}add(t){return e(this.subscriptions,t),()=>i(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,i);else for(let n=0;n<s;n++){let s=this.subscriptions[n];s&&s(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}t.s(["SubscriptionManager",()=>s],70596)},21012,81296,44493,60830,46791,80248,51571,87022,t=>{"use strict";let e=t=>180*t/Math.PI,i=t=>
1n(e(Math.atan2(t[1],t[0]))),s={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:i,rotateZ:i,skewX:t=>e(Math.atan(t[1])),skewY:t=>e(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},n=t=>((t%=360)<0&&(t+=360),t),r=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),o=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),a={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:r,scaleY:o,scale:t=>(r(t)+o(t))/2,rotateX:t=>n(e(Math.atan2(t[6],t[5]))),rotateY:t=>n(e(Math.atan2(-t[2],t[0]))),rotateZ:i,rotate:i,skewX:t=>e(Math.atan(t[4])),skewY:t=>e(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function l(t){return+!!t.includes("scale")}function u(t,e){let i,n;if(!t||"none"===t)return l(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=a,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=s,n=e}if(!n)return l(e);let o=i[e],u=n[1].split(",").map(c);return"function"==typeof o?o(u):u[o]}let h=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return u(i,e)};function c(t){return parseFloat(t.trim())}t.s(["defaultTransformValue",()=>l,"parseValueFromTransform",()=>u,"readTransformValue",()=>h],81296);var d=t.i(57788),p=t.i(76307),m=t.i(65091);let f=t=>t===p.number||t===m.px,g=new Set(["x","y","z"]),v=d.transformPropOrder.filter(t=>!g.has(t));function y(t){let e=[];return v.forEach(i=>{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),e}let x={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})=>u(e,"x"),y:(t,{transform:e})=>u(e,"y")};x.translateX=x.x,x.translateY=x.y,t.s(["isNumOrPxType",()=>f,"positionalValues",()=>x,"removeNonTranslationalTransform",()=>y],44493);let T=t=>t;t.s(["noop",()=>T],60830);let b={};t.s(["MotionGlobalConfig",()=>b],46791);let S=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],w={value:null,addProjectionMetrics:null};function P(t,e){let i=!1,s=!0,n={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,o=S.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,s=new Set,n=!1,r=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,r=!1)=>{let a=r&&n?i:s;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{s.delete(t),o.delete(t)},process:t=>{if(a=t,n){r=!0;return}n=!0,[i,s]=[s,i],i.forEach(u),e&&w.value&&w.value.frameloop[e].push(l),l=0,i.clear(),n=!1,r&&(r=!1,h.process(t))}};return h}(r,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:p,postRender:m}=o,f=()=>{let r=b.useManualTiming?n.timestamp:performance.now();i=!1,b.useManualTiming||(n.delta=s?1e3/60:Math.max(Math.min(r-n.timestamp,40),1)),n.timestamp=r,n.isProcessing=!0,a.process(n),l.process(n),u.process(n),h.process(n),c.process(n),d.process(n),p.process(n),m.process(n),n.isProcessing=!1,i&&e&&(s=!1,t(f))};return{schedule:S.reduce((e,r)=>{let a=o[r];return e[r]=(e,r=!1,o=!1)=>(!i&&(i=!0,s=!0,n.isProcessing||t(f)),a.schedule(e,r,o)),e},{}),cancel:t=>{for(let e=0;e<S.length;e++)o[S[e]].cancel(t)},state:n,steps:o}}t.s(["statsBuffer",()=>w],80248),t.s(["createRenderBatcher",()=>P],51571);let{schedule:V,cancel:M,state:A,steps:C}=P("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:T,!0);t.s(["cancelFrame",()=>M,"frame",()=>V,"frameData",()=>A,"frameSteps",()=>C],87022);let E=new Set,k=!1,D=!1,R=!1;function L(){if(D){let t=Array.from(E).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=y(t);e.length&&(i.set(t,e),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)})}
1D=!1,k=!1,E.forEach(t=>t.complete(R)),E.clear()}function B(){E.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(D=!0)})}function F(){R=!0,B(),L(),R=!1}class j{constructor(t,e,i,s,n,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=n,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(E.add(this),k||(k=!0,V.read(B),V.resolveKeyframes(L))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;if(null===t[0]){let n=s?.get(),r=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let s=i.readValue(e,r);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=r),s&&void 0===n&&s.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),E.delete(this)}cancel(){"scheduled"===this.state&&(E.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}t.s(["KeyframeResolver",()=>j,"flushKeyframeResolvers",()=>F],21012)},65566,t=>{"use strict";var e=t.i(47167);let i=()=>{},s=()=>{};e.default,t.s(["invariant",()=>s,"warning",()=>i],65566)},68e3,60900,30551,14229,79294,4169,60855,56512,97307,62118,60140,96173,t=>{"use strict";let e;var i=t.i(65566),s=t.i(63074),n=t.i(60830);function r(t){let e;return()=>(void 0===e&&(e=t()),e)}t.s(["memo",()=>r],60900);let o={};function a(t,e){let i=r(t);return()=>o[e]??i()}let l=a(()=>void 0!==window.ScrollTimeline,"scrollTimeline");t.s(["supportsScrollTimeline",()=>l],30551);let u=t=>null!==t;function h(t,{repeat:e,repeatType:i="loop"},s,n=1){let r=t.filter(u),o=n<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return o&&void 0!==s?s:r[o]}t.s(["getFinalKeyframe",()=>h],14229);class c{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)}}t.s(["WithPromise",()=>c],79294);let d={layout:0,mainThread:0,waapi:0};t.s(["activeAnimations",()=>d],4169);var p=t.i(80248);let m=t=>Array.isArray(t)&&"number"==typeof t[0];t.s(["isBezierDefinition",()=>m],60855);let f=a(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),g=(t,e,i=10)=>{let s="",n=Math.max(Math.round(e/i),2);for(let e=0;e<n;e++)s+=Math.round(1e4*t(e/(n-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`};t.s(["generateLinearEasing",()=>g],56512);let v=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,y={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:v([0,.65,.55,1]),circOut:v([.55,0,1,.45]),backIn:v([.31,.01,.66,-.59]),backOut:v([.33,1.53,.69,.99])};function x(t){return"function"==typeof t&&"applyToOptions"in t}t.s(["isGenerator",()=>x],97307);class T extends c{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:s,keyframes:n,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=t,(0,i.invariant)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const u=function({type:t,...e}){return x(t)&&f()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:s=0,duration:n=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?f()?g(e,i):"ease-out":m(e)?v(e):Array.isArray(e)?e.map(e=>t(e,i)||y.easeOut):y[e]}(a,n);Array.isArray(c)&&(h.easing=c),p.statsBuffer.value&&d.waapi++;let x={delay:s,duration:n,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};u&&(x.pseudoElement=u);let T=t.animate(h,x);return p.statsBuffer.value&&T.finished.finally(()=>{d.waapi--}),T}(e,s,n,u,r),!1===u.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=h(n,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(t);s.startsWith("--")?e.style.setProperty(s,t):e.style[s]=t,this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,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(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return(0,s.millisecondsToSeconds)(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,s.millisecondsToSeconds)(t)}get time(){return(0,s.millisecondsToSeconds)(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=(0,s.secondsToMilliseconds)(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 this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&l())?(this.animation.timeline=t,n.noop):e(this)}}t.s(["NativeAnimation",()=>T],68e3);let b=new Set(["opacity","clipPath","filter","transform"]);t.s(["acceleratedValues",()=>b],62118);let{schedule:S}=(0,t.i(51571).createRenderBatcher)(queueMicrotask,!1);t.s(["microtask",()=>S],60140);var w=t.i(46791),P=t.i(87022);function V(){e=void 0}let M={now:()=>(void 0===e&&M.set(P.frameData.isProcessing||w.MotionGlobalConfig.useManualTiming?P.frameData.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(V)}};t.s(["time",()=>M],96173)},30162,t=>{"use strict";let e=()=>({translate:0,scale:1,origin:0,originPoint:0}),i=()=>({x:e(),y:e()}),s=()=>({min:0,max:0}),n=()=>({x:s(),y:s()});t.s(["createBox",()=>n,"createDelta",()=>i])},86427,25791,t=>{"use strict";t.i(47167);var e=t.i(70596);function i(t,e){return e?1e3/e*t:0}t.s(["velocityPerSecond",()=>i],25791);var s=t.i(96173),n=t.i(87022);let r={current:void 0};class o{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=s.time.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=s.time.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,i){this.events[t]||(this.events[t]=new e.SubscriptionManager);let s=this.events[t].add(i);return"change"===t?()=>{s(),n.frame.read(()=>{this.events.change.getSize()||this.stop()})}:s}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.current&&r.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=s.time.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return i(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}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 a(t,e){return new o(t,e)}t.s(["collectMotionValues",()=>r,"motionValue",()=>a],86427)},8792,19991,t=>{"use strict";var e=t.i(69577),i=t.i(30677);let s=new Set(["brightness","contrast","saturate","opacity"]);function n(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=n.match(i.floatRegex)||[];
1if(!r)return t;let o=n.replace(r,""),a=+!!s.has(e);return r!==n&&(a*=100),e+"("+a+o+")"}let r=/\b([a-z-]*)\(.*?\)/gu,o={...e.complex,getAnimatableNone:t=>{let e=t.match(r);return e?e.map(n).join(" "):t}};t.s(["filter",()=>o],8792);let a={...e.complex,getAnimatableNone:t=>{let i=e.complex.parse(t);return e.complex.createTransformer(t)(i.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}};t.s(["mask",()=>a],19991)},3973,t=>{"use strict";var e=t.i(79444),i=t.i(8792),s=t.i(19991);let n={...t.i(34929).numberValueTypes,color:e.color,backgroundColor:e.color,outlineColor:e.color,fill:e.color,stroke:e.color,borderColor:e.color,borderTopColor:e.color,borderRightColor:e.color,borderBottomColor:e.color,borderLeftColor:e.color,filter:i.filter,WebkitFilter:i.filter,mask:s.mask,WebkitMask:s.mask},r=t=>n[t];t.s(["getDefaultValueType",()=>r])},75554,t=>{"use strict";var e=t.i(69577),i=t.i(8792),s=t.i(19991),n=t.i(3973);let r=new Set([i.filter,s.mask]);function o(t,i){let s=(0,n.getDefaultValueType)(t);return r.has(s)||(s=e.complex),s.getAnimatableNone?s.getAnimatableNone(i):void 0}t.s(["getAnimatableNone",()=>o])},77942,84061,t=>{"use strict";var e=t.i(76307),i=t.i(65091);let s=t=>e=>e.test(t);t.s(["testValueType",()=>s],84061);let n=[e.number,i.px,i.percent,i.degrees,i.vw,i.vh,{test:t=>"auto"===t,parse:t=>t}],r=t=>n.find(s(t));t.s(["dimensionValueTypes",()=>n,"findDimensionValueType",()=>r],77942)},66538,72094,t=>{"use strict";var e=t.i(79444),i=t.i(69577),s=t.i(77942),n=t.i(84061);let r=[...s.dimensionValueTypes,e.color,i.complex],o=t=>r.find((0,n.testValueType)(t));t.s(["findValueType",()=>o],66538);let a=new WeakMap;t.s(["visualElementStore",()=>a],72094)},58163,71164,38544,t=>{"use strict";var e=t.i(86427),i=t.i(83411);function s(t,s,n){for(let r in s){let o=s[r],a=n[r];if((0,i.isMotionValue)(o))t.addValue(r,o);else if((0,i.isMotionValue)(a))t.addValue(r,(0,e.motionValue)(o,{owner:t}));else if(a!==o)if(t.hasValue(r)){let e=t.getValue(r);!0===e.liveStyle?e.jump(o):e.hasAnimated||e.set(o)}else{let i=t.getStaticValue(r);t.addValue(r,(0,e.motionValue)(void 0!==i?i:o,{owner:t}))}}for(let e in n)void 0===s[e]&&t.removeValue(e);return s}t.s(["updateMotionValuesFromProps",()=>s],58163);let n={current:null},r={current:!1};t.s(["hasReducedMotionListener",()=>r,"prefersReducedMotion",()=>n],71164);let o="undefined"!=typeof window;function a(){if(r.current=!0,o)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>n.current=t.matches;t.addEventListener("change",e),e()}else n.current=!1}t.s(["initPrefersReducedMotion",()=>a],38544)},17218,t=>{"use strict";var e=t.i(63074),i=t.i(72590),s=t.i(47507),n=t.i(70596),r=t.i(21012),o=t.i(68e3),a=t.i(62118),l=t.i(60140),u=t.i(96173),h=t.i(30162),c=t.i(86427),d=t.i(69577),p=t.i(75554),m=t.i(66538),f=t.i(83411),g=t.i(72094),v=t.i(87576),y=t.i(57788),x=t.i(58163),T=t.i(38544),b=t.i(86579),S=t.i(71164),w=t.i(87022);let P=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],V={};function M(t){V=t}function A(){return V}class C{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,skipAnimations:n,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=r.KeyframeResolver,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=u.time.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,w.frame.render(this.render,!1,!0))};const{latestValues:h,renderState:c}=a;this.latestValues=h,this.baseTarget={...h},this.initialValues=e.initial?{...h}:{},this.renderState=c,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=n,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=(0,v.isControllingVariants)(e),this.isVariantNode=(0,v.isVariantNode)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...p}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in p){const e=p[t];void 0!==h[t]&&(0,f.isMotionValue)(e)&&e.set(h[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,g.visualElementStore.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.forEac
1h((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(S.hasReducedMotionListener.current||(0,T.initPrefersReducedMotion)(),this.shouldReduceMotion=S.prefersReducedMotion.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,w.cancelFrame)(this.notifyUpdate),(0,w.cancelFrame)(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,i){let s;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),i.accelerate&&a.acceleratedValues.has(t)&&this.current instanceof HTMLElement){let{factory:s,keyframes:n,times:r,ease:a,duration:l}=i.accelerate,u=new o.NativeAnimation({element:this.current,name:t,keyframes:n,times:r,ease:a,duration:(0,e.secondsToMilliseconds)(l)}),h=s(u);this.valueSubscriptions.set(t,()=>{h(),u.cancel()});return}let n=y.transformProps.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=i.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&w.frame.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,i)),this.valueSubscriptions.set(t,()=>{r(),s&&s(),i.owner&&i.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 V){let e=V[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(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):(0,h.createBox)()}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<P.length;e++){let i=P[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=(0,x.updateMotionValuesFromProps)(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=(0,c.motionValue)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let n=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&((0,i.isNumericalString)(n)||(0,s.isZeroValueString)(n))?n=p
1arseFloat(n):!(0,m.findValueType)(n)&&d.complex.test(e)&&(n=(0,p.getAnimatableNone)(t,e)),this.setBaseTarget(t,(0,f.isMotionValue)(n)?n.get():n)),(0,f.isMotionValue)(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let s=(0,b.resolveVariantFromProps)(this.props,i,this.presenceContext?.custom);s&&(e=s[t])}if(i&&void 0!==e)return e;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||(0,f.isMotionValue)(s)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new n.SubscriptionManager),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){l.microtask.render(this.render)}}t.s(["VisualElement",()=>C,"getFeatureDefinitions",()=>A,"setFeatureDefinitions",()=>M])},76948,13565,21967,83640,t=>{"use strict";var e=t.i(17218);let i={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"]},s=!1;function n(){return!function(){if(s)return;let t={};for(let e in i)t[e]={isEnabled:t=>i[e].some(e=>!!t[e])};(0,e.setFeatureDefinitions)(t),s=!0}(),(0,e.getFeatureDefinitions)()}function r(t){let i=n();for(let e in t)i[e]={...i[e],...t[e]};(0,e.setFeatureDefinitions)(i)}t.s(["getInitializedFeatureDefinitions",()=>n],76948),t.s(["loadFeatures",()=>r],13565);let o=Symbol.for("motionComponentSymbol");t.s(["motionComponentSymbol",()=>o],21967);var a=t.i(71645);function l(t,e,i){let s=(0,a.useRef)(i);(0,a.useInsertionEffect)(()=>{s.current=i});let n=(0,a.useRef)(null);return(0,a.useCallback)(i=>{i&&t.onMount?.(i),e&&(i?e.mount(i):e.unmount());let r=s.current;if("function"==typeof r)if(i){let t=r(i);"function"==typeof t&&(n.current=t)}else n.current?(n.current(),n.current=null):r(i);else r&&(r.current=i)},[e])}t.s(["useMotionRef",()=>l],83640)},93787,t=>{"use strict";function e(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}t.s(["camelToDash",()=>e])},36091,35043,4035,25522,74008,t=>{"use strict";t.i(47167);var e=t.i(43476),i=t.i(71645),s=t.i(31178),n=t.i(48070),r=t.i(37806),o=t.i(88291),a=t.i(82474),l=t.i(8576),u=t.i(44966),h=t.i(72679),c=t.i(1664),d=t.i(76948),p=t.i(13565),m=t.i(21967),f=t.i(83640);let g="data-"+(0,t.i(93787).camelToDash)("framerAppearId");t.s(["optimizedAppearDataAttribute",()=>g],35043);var v=t.i(21476);let y=(0,i.createContext)({});function x(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}t.s(["SwitchLayoutGroupContext",()=>y],4035),t.s(["isRefObject",()=>x],25522);let T="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function b(t,{forwardMotionProps:S=!1,type:w}={},P,V){P&&(0,p.loadFeatures)(P);let M=w?"svg"===w:(0,u.isSVGComponent)(t),A=M?c.useSVGVisualState:h.useHTMLVisualState;function C(u,h){let c,p={...(0,i.useContext)(r.MotionConfigContext),...u,layoutId:function({layoutId:t}){let e=(0,i.useContext)(s.LayoutGroupContext).id;return e&&void 0!==t?e+"-"+t:t}(u)},{isStatic:m}=p,b=(0,a.useCreateMotionContext)(u),w=A(u,m);if(!m&&"undefined"!=typeof window){(0,i.useContext)(n.LazyContext).strict;let e=function(t){let{drag:e,layout:i}=(0,d.getInitializedFeatureDefinitions)();if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(p);c=e.MeasureLayout,b.visualElement=function(t,e,s,a,l,u){let{visualElement:h}=(0,i.useContext)(o.MotionContext),c=(0,i.useContext)(n.LazyContext),d=(0,i.useContext)(v.PresenceContext),p=(0,i.useContext)(r.MotionConfigContext),m=p.reducedMotion,f=p.skipAnimations,b=(0,i.useRef)(null),S=(0,i.useRef)(!1);a=a||c.renderer,!b.current&&a&&(b.current=a(t,{visualState:e,parent:h,props:s,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:m,skipAnimations:f,isSVG:u}),S.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));let w=b.current,P=(0,i.useContext)(y);w&&!w.projection&&l&&("html"===w.type||"svg"===w.type)&&function(t,e,
1i,s){let{layoutId:n,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=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:r,alwaysMeasureLayout:!!o||a&&x(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:s,crossfade:h,layoutScroll:l,layoutRoot:u})}(b.current,s,l,P);let V=(0,i.useRef)(!1);(0,i.useInsertionEffect)(()=>{w&&V.current&&w.update(s,d)});let M=s[g],A=(0,i.useRef)(!!M&&"undefined"!=typeof window&&!window.MotionHandoffIsComplete?.(M)&&window.MotionHasOptimisedAnimation?.(M));return T(()=>{S.current=!0,w&&(V.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),w.scheduleRenderMicrotask(),A.current&&w.animationState&&w.animationState.animateChanges())}),(0,i.useEffect)(()=>{w&&(!A.current&&w.animationState&&w.animationState.animateChanges(),A.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(M)}),A.current=!1),w.enteringChildren=void 0)}),w}(t,w,p,V,e.ProjectionNode,M)}return(0,e.jsxs)(o.MotionContext.Provider,{value:b,children:[c&&b.visualElement?(0,e.jsx)(c,{visualElement:b.visualElement,...p}):null,(0,l.useRender)(t,u,(0,f.useMotionRef)(w,b.visualElement,h),w,m,S,M)]})}C.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let E=(0,i.forwardRef)(C);return E[m.motionComponentSymbol]=t,E}t.s(["useIsomorphicLayoutEffect",()=>T],74008),t.s(["createMotionComponent",()=>b],36091)},64440,t=>{"use strict";let e=new Set(["width","height","top","left","right","bottom",...t.i(57788).transformPropOrder]);t.s(["positionalKeys",()=>e])},84015,t=>{"use strict";var e=t.i(65566),i=t.i(72590),s=t.i(19928);let n=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;t.s(["getVariableValue",()=>function t(r,o,a=1){(0,e.invariant)(a<=4,`Max CSS variable fallback depth detected in property "${r}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[l,u]=function(t){let e=n.exec(t);if(!e)return[,];let[,i,s,r]=e;return[`--${i??s}`,r]}(r);if(!l)return;let h=window.getComputedStyle(o).getPropertyValue(l);if(h){let t=h.trim();return(0,i.isNumericalString)(t)?parseFloat(t):t}return(0,s.isCSSVariableToken)(u)?t(u,o,a+1):u}])},86871,t=>{"use strict";var e=t.i(47507);function i(t){return"number"==typeof t?0===t:null===t||"none"===t||"0"===t||(0,e.isZeroValueString)(t)}t.s(["isNone",()=>i])},46436,t=>{"use strict";var e=t.i(64440),i=t.i(77942),s=t.i(84015),n=t.i(19928),r=t.i(21012),o=t.i(86871),a=t.i(69577),l=t.i(75554);let u=new Set(["auto","none","0"]);var h=t.i(44493);class c extends r.KeyframeResolver{constructor(t,e,i,s,n){super(t,e,i,s,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:r,name:o}=this;if(!r||!r.current)return;super.readKeyframes();for(let e=0;e<t.length;e++){let i=t[e];if("string"==typeof i&&(i=i.trim(),(0,n.isCSSVariableToken)(i))){let n=(0,s.getVariableValue)(i,r.current);void 0!==n&&(t[e]=n),e===t.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!e.positionalKeys.has(o)||2!==t.length)return;let[a,l]=t,u=(0,i.findDimensionValueType)(a),c=(0,i.findDimensionValueType)(l);if((0,n.containsCSSVariable)(a)!==(0,n.containsCSSVariable)(l)&&h.positionalValues[o]){this.needsMeasurement=!0;return}if(u!==c)if((0,h.isNumOrPxType)(u)&&(0,h.isNumOrPxType)(c))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else h.positionalValues[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||(0,o.isNone)(t[e]))&&i.push(e);i.length&&function(t,e,i){let s,n=0;for(;n<t.length&&!s;){let e=t[n];"string"==typeof e&&!u.has(e)&&(0,a.analyseComplexValue)(e).values.length&&(s=t[n]),n++}if(s&&i)for(let n of e)t[n]=(0,l.getAnimatableNone)(i,s)}(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=h.positionalValues[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&t.getValue(i,s).jump(s,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let s=t.getValue(e);s&&s.jump(this.measuredOrigin,!1);let n=i.length-1,r=i[n];i[n]=h.positionalValues[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}t.s(["DOMKeyframesResolver",()=>c],46436)},94978,t=>{"use strict";var e=t.i(83411),i=t.i(46436),s=t.i(17218);class n extends s.VisualElement{constructor(){super(...arguments),this.KeyframeResolver=i.DOMKeyframesResolver}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[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;(0,e.isMotionValue)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}t.s(["DOMVisualElement",()=>n])},38698,t=>{"use strict";let e=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"]);t.s(["camelCaseAttributes",()=>e])},88826,49095,t=>{"use strict";var e=t.i(93787);function i(t,{style:e,vars:i},s,n){let r,o=t.style;for(r in e)o[r]=e[r];for(r in n?.applyProjectionStyles(o,s),i)o.setProperty(r,i[r])}t.s(["renderHTML",()=>i],49095);var s=t.i(38698);function n(t,n,r,o){for(let r in i(t,n,void 0,o),n.attrs)t.setAttribute(s.camelCaseAttributes.has(r)?r:(0,e.camelToDash)(r),n.attrs[r])}t.s(["renderSVG",()=>n],88826)},75737,27677,77777,35636,53689,86783,t=>{"use strict";var e=t.i(57788),i=t.i(3973),s=t.i(30162),n=t.i(94978),r=t.i(93787),o=t.i(81261),a=t.i(38698),l=t.i(99951),u=t.i(88826),h=t.i(67926);class c extends n.DOMVisualElement{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=s.createBox}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,s){if(e.transformProps.has(s)){let t=(0,i.getDefaultValueType)(s);return t&&t.default||0}
1return s=a.camelCaseAttributes.has(s)?s:(0,r.camelToDash)(s),t.getAttribute(s)}scrapeMotionValuesFromProps(t,e,i){return(0,h.scrapeMotionValuesFromProps)(t,e,i)}build(t,e,i){(0,o.buildSVGAttrs)(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,s){(0,u.renderSVG)(t,e,i,s)}mount(t){this.isSVGTag=(0,l.isSVGTag)(t.tagName),super.mount(t)}}t.s(["SVGVisualElement",()=>c],75737);var d=t.i(19928),p=t.i(81296);function m({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function f({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function g(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}t.s(["convertBoundingBoxToBox",()=>m,"convertBoxToBoundingBox",()=>f,"transformBoxPoints",()=>g],27677);var v=t.i(706);function y(t){return void 0===t||1===t}function x({scale:t,scaleX:e,scaleY:i}){return!y(t)||!y(e)||!y(i)}function T(t){return x(t)||b(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function b(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function S(t,e,i){return i+e*(t-i)}function w(t,e,i,s,n){return void 0!==n&&(t=s+n*(t-s)),s+i*(t-s)+e}function P(t,e=0,i=1,s,n){t.min=w(t.min,e,i,s,n),t.max=w(t.max,e,i,s,n)}function V(t,{x:e,y:i}){P(t.x,e.translate,e.scale,e.originPoint),P(t.y,i.translate,i.scale,i.originPoint)}function M(t,e,i,s=!1){let n,r,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){r=(n=i[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&E(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,V(t,r)),s&&T(n.latestValues)&&E(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function A(t,e){t.min=t.min+e,t.max=t.max+e}function C(t,e,i,s,n=.5){let r=(0,v.mixNumber)(t.min,t.max,n);P(t,e,i,r,s)}function E(t,e){C(t.x,e.x,e.scaleX,e.scale,e.originX),C(t.y,e.y,e.scaleY,e.scale,e.originY)}function k(t,e){return m(g(t.getBoundingClientRect(),e))}function D(t,e,i){let s=k(t,i),{scroll:n}=e;return n&&(A(s.x,n.offset.x),A(s.y,n.offset.y)),s}t.s(["has2DTranslate",()=>b,"hasScale",()=>x,"hasTransform",()=>T],77777),t.s(["applyBoxDelta",()=>V,"applyTreeDeltas",()=>M,"scalePoint",()=>S,"transformBox",()=>E,"translateAxis",()=>A],35636),t.s(["measurePageBox",()=>D,"measureViewportBox",()=>k],53689);var R=n,L=t.i(44947),B=t.i(49095),F=t.i(84049);class j extends R.DOMVisualElement{constructor(){super(...arguments),this.type="html",this.renderInstance=B.renderHTML}readValueFromInstance(t,i){if(e.transformProps.has(i))return this.projection?.isProjecting?(0,p.defaultTransformValue)(i):(0,p.readTransformValue)(t,i);{let e=window.getComputedStyle(t),s=((0,d.isCSSVariableName)(i)?e.getPropertyValue(i):e[i])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return k(t,e)}build(t,e,i){(0,L.buildHTMLStyles)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,F.scrapeMotionValuesFromProps)(t,e,i)}}t.s(["HTMLVisualElement",()=>j],86783)},54505,t=>{"use strict";var e=t.i(75737),i=t.i(86783),s=t.i(71645),n=t.i(44966);let r=(t,r)=>r.isSVG??(0,n.isSVGComponent)(t)?new e.SVGVisualElement(r):new i.HTMLVisualElement(r,{allowProjection:t!==s.Fragment});t.s(["createDomVisualElement",()=>r])},2120,83920,44230,15923,83352,49652,61327,72846,t=>{"use strict";let e,i;class s{constructor(t){this.isMounted=!1,this.node=t}update(){}}var n=t.i(86579);function r(t,e,i){let s=t.getProps();return(0,n.resolveVariantFromProps)(s,e,void 0!==i?i:s.custom,t)}function o(t,e){if(t?.inherit&&e){let{inherit:i,...s}=t;return{...e,...s}}return t}function a(t,e){let i=t?.[e]??t?.default??t;return i!==t?o(i,t):i}var l=t.i(64440),u=t.i(86427);let h=t=>Array.isArray(t);var c=t.i(46791),d=t.i(83411);function p(t,e){let i=t.getValue("willChange");if((0,d.isMotionValue)(i)&&i.add)return i.add(e);if(!i&&c.MotionGlobalConfig.WillChange){let i=new c.MotionGlobalConfig.WillChange("auto");
1t.addValue("willChange",i),i.add(e)}}var m=t.i(35043);function f(t){return t.props[m.optimizedAppearDataAttribute]}var g=t.i(63074),v=t.i(60830),y=t.i(96173);t.i(47167);let x=(t,e)=>i=>e(t(i)),T=(...t)=>t.reduce(x);var b=t.i(76959),S=t.i(4169),w=t.i(65566),P=t.i(19928),V=t.i(79444),M=t.i(69577),A=t.i(63011),C=t.i(22660);function E(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}var k=t.i(66820);function D(t,e){return i=>i>0?e:t}var R=t.i(706);let L=(t,e,i)=>{let s=t*t,n=i*(e*e-s)+s;return n<0?0:Math.sqrt(n)},B=[A.hex,k.rgba,C.hsla];function F(t){let e=B.find(e=>e.test(t));if((0,w.warning)(!!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===C.hsla&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let n=0,r=0,o=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,a=2*i-s;n=E(a,s,t+1/3),r=E(a,s,t),o=E(a,s,t-1/3)}else n=r=o=i;return{red:Math.round(255*n),green:Math.round(255*r),blue:Math.round(255*o),alpha:s}}(i)),i}let j=(t,e)=>{let i=F(t),s=F(e);if(!i||!s)return D(t,e);let n={...i};return t=>(n.red=L(i.red,s.red,t),n.green=L(i.green,s.green,t),n.blue=L(i.blue,s.blue,t),n.alpha=(0,R.mixNumber)(i.alpha,s.alpha,t),k.rgba.transform(n))},O=new Set(["none","hidden"]);function I(t,e){return i=>(0,R.mixNumber)(t,e,i)}function N(t){return"number"==typeof t?I:"string"==typeof t?(0,P.isCSSVariableToken)(t)?D:V.color.test(t)?j:z:Array.isArray(t)?U:"object"==typeof t?V.color.test(t)?j:W:D}function U(t,e){let i=[...t],s=i.length,n=t.map((t,i)=>N(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=n[e](t);return i}}function W(t,e){let i={...t,...e},s={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(s[n]=N(t[n])(t[n],e[n]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let z=(t,e)=>{let i=M.complex.createTransformer(e),s=(0,M.analyseComplexValue)(t),n=(0,M.analyseComplexValue)(e);if(!(s.indexes.var.length===n.indexes.var.length&&s.indexes.color.length===n.indexes.color.length&&s.indexes.number.length>=n.indexes.number.length))return(0,w.warning)(!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"),D(t,e);if(O.has(t)&&!n.values.length||O.has(e)&&!s.values.length)return O.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return T(U(function(t,e){let i=[],s={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let r=e.types[n],o=t.indexes[r][s[r]],a=t.values[o]??0;i[n]=a,s[r]++}return i}(s,n),n.values),i)};function H(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,R.mixNumber)(t,e,i):N(t)(t,e)}var $=t.i(87022);let G=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>$.frame.update(e,t),stop:()=>(0,$.cancelFrame)(e),now:()=>$.frameData.isProcessing?$.frameData.timestamp:y.time.now()}};var Y=t.i(56512);function K(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}var X=t.i(25791);function q(t,e,i){let s=Math.max(e-5,0);return(0,X.velocityPerSecond)(i-t(s),e-s)}let _=.01,Z=2,J=.005,Q=.5;function tt(t,e){return t*Math.sqrt(1-e*e)}let te=["duration","bounce"],ti=["stiffness","damping","mass"];function ts(t,e){return e.some(e=>void 0!==t[e])}function tn(t=.3,e=.3){let i,s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:n,restDelta:r}=s,o=s.keyframes[0],a=s.keyframes[s.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:c,duration:d,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ts(t,ti)&&ts(t,te))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,n=2*(0,b.clamp)(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:1,stiffness:s,damping:n}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:s=1}){let n,r;(0,w.warning)(t<=(0,g.secondsToMilliseconds)(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=(0,b.clamp)(.05,1,o),t=(0,b.clamp)(.01,10,(0,g.millisecondsToSeconds)(t)),o<1?(n=e=>{let s=e*o,n=s*t;return .001-(s-i)/tt(e,o)*Math.exp(-n)},r=e=>{let s=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-s),l=tt(Math.pow(e,2),o);return(s*i+i-r)*a*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));
1let a=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(n,r,5/t);if(t=(0,g.secondsToMilliseconds)(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*s;return{stiffness:e,damping:2*o*Math.sqrt(s*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...s,velocity:-(0,g.millisecondsToSeconds)(s.velocity||0)}),f=p||0,v=h/(2*Math.sqrt(u*c)),y=a-o,x=(0,g.millisecondsToSeconds)(Math.sqrt(u/c)),T=5>Math.abs(y);if(n||(n=T?_:Z),r||(r=T?J:Q),v<1){let t=tt(x,v);i=e=>a-Math.exp(-v*x*e)*((f+v*x*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===v)i=t=>a-Math.exp(-x*t)*(y+(f+x*y)*t);else{let t=x*Math.sqrt(v*v-1);i=e=>{let i=Math.exp(-v*x*e),s=Math.min(t*e,300);return a-i*((f+v*x*y)*Math.sinh(s)+t*y*Math.cosh(s))/t}}let S={calculatedDuration:m&&d||null,next:t=>{let e=i(t);if(m)l.done=t>=d;else{let s=0===t?f:0;v<1&&(s=0===t?(0,g.secondsToMilliseconds)(f):q(i,t,e));let o=Math.abs(a-e)<=r;l.done=Math.abs(s)<=n&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(K(S),2e4),e=(0,Y.generateLinearEasing)(e=>S.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return S}function tr({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,v=void 0===o?g:o(g);v!==g&&(f=v-p);let y=t=>-f*Math.exp(-t/s),x=t=>v+y(t),T=t=>{let e=y(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?v:i},b=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;c=t,d=tn({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:q(x,t,m.value),damping:n,stiffness:r,restDelta:u,restSpeed:h})}};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,T(t),b(t)),void 0!==c&&t>=c)?d.next(t-c):(e||T(t),m)}}}tn.applyToOptions=t=>{let e=function(t,e=100,i){let s=i({...t,keyframes:[0,e]}),n=Math.min(K(s),2e4);return{type:"keyframes",ease:t=>s.next(n*t).value/e,duration:(0,g.millisecondsToSeconds)(n)}}(t,100,tn);return t.ease=e.ease,t.duration=(0,g.secondsToMilliseconds)(e.duration),t.type="keyframes",t};let to=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function ta(t,e,i,s){return t===e&&i===s?v.noop:n=>0===n||1===n?n:to(function(t,e,i,s,n){let r,o,a=0;do(r=to(o=e+(i-e)/2,s,n)-t)>0?i=o:e=o;while(Math.abs(r)>1e-7&&++a<12)return o}(n,0,1,t,i),e,s)}let tl=ta(.42,0,1,1),tu=ta(0,0,.58,1),th=ta(.42,0,.58,1),tc=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,td=t=>e=>1-t(1-e),tp=ta(.33,1.53,.69,.99),tm=td(tp),tf=tc(tm),tg=t=>(t*=2)<1?.5*tm(t):.5*(2-Math.pow(2,-10*(t-1))),tv=t=>1-Math.sin(Math.acos(t)),ty=td(tv),tx=tc(tv);var tT=t.i(60855);let tb={linear:v.noop,easeIn:tl,easeInOut:th,easeOut:tu,circIn:tv,circInOut:tx,circOut:ty,backIn:tm,backInOut:tf,backOut:tp,anticipate:tg},tS=t=>{if((0,tT.isBezierDefinition)(t)){(0,w.invariant)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,s,n]=t;return ta(e,i,s,n)}return"string"==typeof t?((0,w.invariant)(void 0!==tb[t],`Invalid easing type '${t}'`,"invalid-easing-type"),tb[t]):t},tw=(t,e,i)=>{let s=e-t;return 0===s?1:(i-t)/s};function tP(t,e,{clamp:i=!0,ease:s,mixer:n}={}){let r=t.length;if((0,w.invariant)(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let s=[],n=i||c.MotionGlobalConfig.mix||H,r=t.length-1;for(let i=0;i<r;i++){let r=n(t[i],t[i+1]);e&&(r=T(Array.isArray(e)?e[i]||v.noop:e,r)),s.push(r)}return s}(e,s,n),l=a.length,u=i=>{if(o&&i<t[0])return e[0];let s=0;if(l>1)for(;s<t.length-2&&!(i<t[s+1]);s++);let n=tw(t[s],t[s+1],i);return a[s](n)};return i?e=>u((0,b.clamp)(t[0],t[r-1],e)):u}function tV(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let n=tw(0,e,s);t.push((0,R.mixNumber)(i,1,n))}}(e,t.length-1),e}function tM({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){var n;let r=Array.isArray(s)&&"number"!=typeof s[0]?s.map(tS):tS(s),o={done:!1,value:e[0]}
1,a=tP((n=i&&i.length===e.length?i:tV(e),n.map(e=>e*t)),e,{ease:Array.isArray(r)?r:e.map(()=>r||th).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}t.s(["progress",()=>tw],83920),t.s(["interpolate",()=>tP],44230),t.s(["defaultOffset",()=>tV],15923);var tA=t.i(14229);let tC={decay:tr,inertia:tr,tween:tM,keyframes:tM,spring:tn};function tE(t){"string"==typeof t.type&&(t.type=tC[t.type])}var tk=t.i(79294);let tD=t=>t/100;class tR extends tk.WithPromise{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!==y.time.now()&&this.tick(y.time.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},S.activeAnimations.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;tE(t);let{type:e=tM,repeat:i=0,repeatDelay:s=0,repeatType:n,velocity:r=0}=t,{keyframes:o}=t,a=e||tM;a!==tM&&"number"!=typeof o[0]&&(this.mixKeyframes=T(tD,H(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===n&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=K(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+s,this.totalDuration=this.resolvedDuration*(i+1)-s,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:s,mixKeyframes:n,mirroredGenerator:r,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:h,repeatType:c,repeatDelay:d,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>s;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let y=this.currentTime,x=i;if(h){let t=Math.min(this.currentTime,s)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,h+1))%2&&("reverse"===c?(i=1-i,d&&(i-=d/o)):"mirror"===c&&(x=r)),y=(0,b.clamp)(0,1,i)*o}let T=v?{done:!1,value:u[0]}:x.next(y);n&&(T.value=n(T.value));let{done:S}=T;v||null===a||(S=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return w&&p!==tr&&(T.value=(0,tA.getFinalKeyframe)(u,this.options,f,this.speed)),m&&m(T.value),w&&this.finish(),T}then(t,e){return this.finished.then(t,e)}get duration(){return(0,g.millisecondsToSeconds)(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,g.millisecondsToSeconds)(t)}get time(){return(0,g.millisecondsToSeconds)(this.currentTime)}set time(t){t=(0,g.secondsToMilliseconds)(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(y.time.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,g.millisecondsToSeconds)(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=G,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(y.time.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,S.activeAnimations.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)}}t.s(["JSAnimation",()=>tR],83352);var tL=t.i(21012),tB=t.i(68e3);let tF={anticipate:tg,backInOut:tf,circInOut:tx};class tj extends tB.NativeAnimation{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in tF&&(t.ease=tF[t.ease])}(t),tE(t),super(t),void 0!==t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:s,element:n,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new tR({...r,autoplay:!1}),a=Math.max(10,y.time.now()-this.startTime),l=(0,b.clamp)(0,10,a-10);e.setWithVelocity(o.sample(Math.max(0,a-l)).value,o.sample(a).value,l),o.stop()}}var tO=t.i(97307);let tI=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(M.complex.test(t)||"0"===t)&&!t.startsWith("url("));function tN(t){t.duration=0,t.type="keyframes"}var tU=tk,tW=t.i(60900);let tz=new Set(["opacity","clipPath","filter","transform"]),tH=(0,tW.memo)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class t$ extends tU.WithPromise{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:n=0,repeatType:r="loop",keyframes:o,name:a,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=y.time.now();const c={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:n,repeatType:r,name:a,motionValue:l,element:u,...h},d=u?.KeyframeResolver||tL.KeyframeResolver;this.keyframeResolver=new d(o,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,s){this.keyframeResolver=void 0;let{name:n,type:r,velocity:o,delay:a,isHandoff:l,onUpdate:u}=i;
1this.resolvedAt=y.time.now(),!function(t,e,i,s){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=tI(n,e),a=tI(r,e);return(0,w.warning)(o===a,`You are trying to animate ${e} from "${n}" to "${r}". "${o?r: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||(0,tO.isGenerator)(i))&&s)}(t,n,r,o)&&((c.MotionGlobalConfig.instantAnimations||!a)&&u?.((0,tA.getFinalKeyframe)(t,i,e)),t[0]=t[t.length-1],tN(i),i.repeat=0);let h={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},d=!l&&function(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:n,damping:r,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return tH()&&i&&tz.has(i)&&("transform"!==i||!l)&&!a&&!s&&"mirror"!==n&&0!==r&&"inertia"!==o}(h),p=h.motionValue?.owner?.current,m=d?new tj({...h,element:p}):new tR(h);m.finished.then(()=>{this.notifyFinished()}).catch(v.noop),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}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(),(0,tL.flushKeyframeResolvers)()),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()}}var tG=t.i(57788);let tY={type:"spring",stiffness:500,damping:25,restSpeed:10},tK={type:"keyframes",duration:.8},tX={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tq=t=>null!==t,t_=(t,e,i,s={},n,r)=>o=>{let l=a(s,t)||{},u=l.delay||s.delay||0,{elapsed:h=0}=s;h-=(0,g.secondsToMilliseconds)(u);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-h,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:r?void 0:n};!function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:n,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(l)&&Object.assign(d,((t,{keyframes:e})=>e.length>2?tK:tG.transformProps.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:tY:tX)(t,d)),d.duration&&(d.duration=(0,g.secondsToMilliseconds)(d.duration)),d.repeatDelay&&(d.repeatDelay=(0,g.secondsToMilliseconds)(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let p=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(tN(d),0===d.delay&&(p=!0)),(c.MotionGlobalConfig.instantAnimations||c.MotionGlobalConfig.skipAnimations||n?.shouldSkipAnimations)&&(p=!0,tN(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,p&&!r&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},s){let n=t.filter(tq),r=e&&"loop"!==i&&e%2==1?0:n.length-1;return n[r]}(d.keyframes,l);if(void 0!==t)return void $.frame.update(()=>{d.onUpdate(t),d.onComplete()})}return l.isSync?new tR(d):new t$(d)};function tZ(t,e,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:c,transitionEnd:d,...m}=e,g=t.getDefaultTransition();c=c?o(c,g):g;let v=c?.reduceMotion;s&&(c=s);let y=[],x=n&&t.animationState&&t.animationState.getState()[n];for(let e in m){let s=t.getValue(e,t.latestValues[e]??null),n=m[e];
1if(void 0===n||x&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(x,e))continue;let r={delay:i,...a(c||{},e)},o=s.get();if(void 0!==o&&!s.isAnimating&&!Array.isArray(n)&&n===o&&!r.velocity)continue;let u=!1;if(window.MotionHandoffAnimation){let i=f(t);if(i){let t=window.MotionHandoffAnimation(i,e,$.frame);null!==t&&(r.startTime=t,u=!0)}}p(t,e);let h=v??t.shouldReduceMotion;s.start(t_(e,s,n,h&&l.positionalKeys.has(e)?{type:!1}:r,t,u));let d=s.animation;d&&y.push(d)}if(d){let e=()=>$.frame.update(()=>{d&&function(t,e){let{transitionEnd:i={},transition:s={},...n}=r(t,e)||{};for(let e in n={...n,...i}){var o;let i=h(o=n[e])?o[o.length-1]||0:o;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,u.motionValue)(i))}}(t,d)});y.length?Promise.all(y).then(e):e()}return y}function tJ(t,e,i,s=0,n=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*s;return"function"==typeof i?i(r,o):1===n?r*s:a-r*s}function tQ(t,e,i={}){let s=r(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);let o=s?()=>Promise.all(tZ(t,s,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=n;return function(t,e,i=0,s=0,n=0,r=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(tQ(l,e,{...o,delay:i+("function"==typeof s?0:s)+tJ(t.variantChildren,l,s,n,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,s,r,o,a,i)}:()=>Promise.resolve(),{when:l}=n;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}var t0=t.i(32525),t1=t.i(6840);let t7=t1.variantProps.length;var t6=t.i(85983);function t4(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}let t5=[...t1.variantPriorityOrder].reverse(),t2=t1.variantPriorityOrder.length;function t9(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function t8(){return{animate:t9(!0),whileInView:t9(),whileHover:t9(),whileTap:t9(),whileDrag:t9(),whileFocus:t9(),exit:t9()}}let t3=0;var et=t.i(30162);function ee(t){return[t("x"),t("y")]}var ei=t.i(53689),es=t.i(27677);function en(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}let er={x:!1,y:!1};var eo=t.i(65091);function ea(t){return t.max-t.min}function el(t,e,i,s=.5){t.origin=s,t.originPoint=(0,R.mixNumber)(e.min,e.max,t.origin),t.scale=ea(i)/ea(e),t.translate=(0,R.mixNumber)(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 eu(t,e,i,s){el(t.x,e.x,i.x,s?s.originX:void 0),el(t.y,e.y,i.y,s?s.originY:void 0)}function eh(t,e,i){t.min=i.min+e.min,t.max=t.min+ea(e)}function ec(t,e,i){t.min=e.min-i.min,t.max=t.min+ea(e)}function ed(t,e,i){ec(t.x,e.x,i.x),ec(t.y,e.y,i.y)}function ep(t){return"object"==typeof t&&null!==t}function em(t){return ep(t)&&"ownerSVGElement"in t}function ef(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let s=document;e&&(s=e.current);let n=i?.[t]??s.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t).filter(t=>null!=t)}t.s(["resolveElements",()=>ef],49652);let eg=new WeakMap,ev=(t,e,i)=>(s,n)=>n&&n[0]?n[0][t+"Size"]:em(s)&&"getBBox"in s?s.getBBox()[e]:s[i],ey=ev("inline","width","offsetWidth"),ex=ev("block","height","offsetHeight");function eT({target:t,borderBoxSize:e}){eg.get(t)?.forEach(i=>{i(t,{get width(){return ey(t,e)},get height(){return ex(t,e)}})})}function eb(t){t.forEach(eT)}let eS=new Set;function ew(t,s){let n;return"function"==typeof t?(eS.add(t),i||(i=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};
1eS.forEach(e=>e(t))},window.addEventListener("resize",i)),()=>{eS.delete(t),eS.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):(e||"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(eb)),(n=ef(t)).forEach(t=>{let i=eg.get(t);i||(i=new Set,eg.set(t,i)),i.add(s),e?.observe(t)}),()=>{n.forEach(t=>{let i=eg.get(t);i?.delete(s),i?.size||e?.unobserve(t)})})}t.s(["resize",()=>ew],61327);let eP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),eV=new Set(["INPUT","SELECT","TEXTAREA"]),eM=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function eA(t){return{point:{x:t.pageX,y:t.pageY}}}function eC(t,e,i,s){return en(t,e,t=>eM(t)&&i(t,eA(t)),s)}let eE=({current:t})=>t?t.ownerDocument.defaultView:null;var ek=t.i(25522);let eD=(t,e)=>Math.abs(t-e),eR=new Set(["auto","scroll"]);class eL{constructor(t,e,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:n=!1,distanceThreshold:r=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=ej(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(eD(t.x,e.x)**2+eD(t.y,e.y)**2)>=this.distanceThreshold);if(!s&&!n)return;let{point:r}=i,{timestamp:o}=$.frameData;this.history.push({...r,timestamp:o});let{onStart:a,onMove:l}=this.handlers;s||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=eB(e,this.transformPagePoint),$.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=ej("pointercancel"===t.type?this.lastMoveEventInfo:eB(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),s&&s(t,r)},!eM(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;const a=eB(eA(t),this.transformPagePoint),{point:l}=a,{timestamp:u}=$.frameData;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=e;h&&h(t,ej(a,this.history)),this.removeListeners=T(eC(this.contextWindow,"pointermove",this.handlePointerMove),eC(this.contextWindow,"pointerup",this.handlePointerUp),eC(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(eR.has(t.overflowX)||eR.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},n={x:s.x-e.x,y:s.y-e.y};(0!==n.x||0!==n.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(t,s),$.frame.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,$.cancelFrame)(this.updatePoint)}}function eB(t,e){return e?{point:e(t.point)}:t}function eF(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ej({point:t},e){return{point:t,delta:eF(t,eO(e)),offset:eF(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,n=eO(t);for(;i>=0&&(s=t[i],!(n.timestamp-s.timestamp>(0,g.secondsToMilliseconds)(.1)));)i--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&n.timestamp-s.timestamp>
12*(0,g.secondsToMilliseconds)(.1)&&(s=t[1]);let r=(0,g.millisecondsToSeconds)(n.timestamp-s.timestamp);if(0===r)return{x:0,y:0};let o={x:(n.x-s.x)/r,y:(n.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function eO(t){return t[t.length-1]}function eI(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 eN(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function eU(t,e,i){return{min:eW(t,e),max:eW(t,i)}}function eW(t,e){return"number"==typeof t?t:t[e]||0}let ez=new WeakMap;class eH{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=(0,et.createBox)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let n=t=>{e&&this.snapToCursor(eA(t).point),this.stopAnimation()},r=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(er[t])return null;else return er[t]=!0,()=>{er[t]=!1};return er.x||er.y?null:(er.x=er.y=!0,()=>{er.x=er.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),ee(t=>{let e=this.getAxisMotionValue(t).get()||0;if(eo.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=ea(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&$.frame.update(()=>n(t,e),!1,!0),p(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(s&&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(),r&&$.frame.update(()=>r(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new eL(t,{onSessionStart:n,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:eE(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,s=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!s||!i)return;let{velocity:r}=s;this.startAnimation(r);let{onDragEnd:o}=this.getProps();o&&$.frame.postRender(()=>o(i,s))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!eG(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?(0,R.mixNumber)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,R.mixNumber)(i,t,s.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),n.set(r)}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,s=this.constraints;t&&(0,ek.isRefObject)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:eI(t.x,i,n),y:eI(t.y,e,s)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:eU(t,"left","right"),y:eU(t,"top","bottom")}}(e),s!==this.constraints&&!(0,ek.isRefObject)(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&ee(t=>{var e,s;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],s=this.constraints[t],n={},void 0!==s.min&&(n.min=s.min-e.min),void 0!==s.max&&(n.max=s.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,ek.isRefObject)(e))return!1;let s=e.current;(0,w.invariant)(null!==s,"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;let r=(0,ei.measurePageBox)(s,n.root,this.visualElement.getTransformPagePoint()),o=(t=n.layout.layoutBox,{x:eN(t.x,r.x),y:eN(t.y,r.y)});if(i){let t=i((0,es.convertBoxToBoundingBox)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,es.convertBoundingBoxToBox)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(ee(o=>{if(!eG(o,e,this.currentDirection))return;let l=a&&a[o]||{};r&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:s?200:1e6,bounceDamping:s?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 p(this.visualElement,t),i.start(t_(t,i,0,e,this.visualElement,!1))}stopAnimation(){ee(t=>this.getAxisMotionValue(t).stop())}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){ee(e=>{let{drag:i}=this.getProps();if(!eG(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:r}=s.layout.layoutBox[e],o=n.get()||0;n.set(t[e]-(0,R.mixNumber)(i,r,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,ek.isRefObject)(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};ee(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let r,o,a,l=e.get();s[t]=(i={min:l,max:l},n=this.constraints[t],r=.5,o=ea(i),(a=ea(n))>o?r=tw(n.min,n.max-o,i.min):o>a&&(r=tw(i.min,i.max-a,n.min)),(0,b.clamp)(0,1,r))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),ee(e=>{if(!eG(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:r}=this.constraints[e];i.set((0,R.mixNumber)(n,r,s[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;ez.set(this.visualElement,this);let e=this.visualElement.current,i=eC(e,"pointerdown",t=>{let{drag:i,dragListener:s=!0}
1=this.getProps(),n=t.target,r=n!==e&&(eV.has(n.tagName)||!0===n.isContentEditable);i&&s&&!r&&this.start(t)}),s=()=>{var i,s,n;let r,o,{dragConstraints:a}=this.getProps();(0,ek.isRefObject)(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,s=a.current,r=ew(i,e$(n=()=>this.scalePositionWithinConstraints())),o=ew(s,e$(n)),t=()=>{r(),o()}))},{projection:n}=this.visualElement,r=n.addEventListener("measure",s);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),$.frame.read(s);let o=en(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(ee(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),i(),r(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:r,dragMomentum:o}}}function e$(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function eG(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let eY=t=>(e,i)=>{t&&$.frame.update(()=>t(e,i),!1,!0)};var eK=t.i(43476);let eX={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var eq=t.i(60140),e_=t.i(71645),eZ=t.i(21476),eJ=t.i(31178),eQ=t.i(4035);let e0=!1;class e1 extends e_.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;n&&(e.group&&e.group.add(n),i&&i.register&&s&&i.register(n),e0&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),eX.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,{projection:r}=i;return r&&(r.isPresent=n,t.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),e0=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==n?r.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?r.promote():r.relegate()||$.frame.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),eq.microtask.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;e0=!0,s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function e7(t){let[e,i]=function(t=!0){let e=(0,e_.useContext)(eZ.PresenceContext);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:n}=e,r=(0,e_.useId)();(0,e_.useEffect)(()=>{if(t)return n(r)},[t]);let o=(0,e_.useCallback)(()=>t&&s&&s(r),[r,s,t]);return!i&&s?[!1,o]:[!0]}(),s=(0,e_.useContext)(eJ.LayoutGroupContext);return(0,eK.jsx)(e1,{...t,layoutGroup:s,switchLayoutGroup:(0,e_.useContext)(eQ.SwitchLayoutGroupContext),isPresent:e,safeToRemove:i})}var e6=t.i(70596),e4=t.i(24463),e5=t.i(80248),e2=t.i(33871);let e9=["TopLeft","TopRight","BottomLeft","BottomRight"],e8=e9.length,e3=t=>"string"==typeof t?parseFloat(t):t,it=t=>"number"==typeof t||eo.px.test(t);function ie(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let ii=ir(0,.5,ty),is=ir(.5,.95,v.noop);function ir(t,e,i){return s=>s<t?0:s>e?1:i(tw(t,e,s))}function io(t,e){t.min=e.min,t.max=e.max}function ia(t,e){io(t.x,e.x),io(t.y,e.y)}function il(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var iu=t.i(35636);function ih(t,e,i,s,n){return t-=e,t=(0,iu.scalePoint)(t,1/i,s),void 0!==n&&(t=(0,iu.scalePoint)(t,1/n,s)),t}function ic(t,e,[i,s,n],r,o){!function(t,e=0,i=1,s=.5,n,r=t,o=t){if(eo.percent.test(e)&&(e=parseFloat(e),e=(0,R.mixNumber)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,R.mixNumber)(r.min,r.max,s);t===r&&(a-=e),t.min=ih(t.min,e,i,a,n),t.max=ih(t.max,e,i,a,n)}(t,e[i],e[s],e[n],e.scale,r,o)}let id=["x","scaleX","originX"],ip=["y","scaleY","originY"];function im(t,e,i,s){ic(t.x,e,id,i?i.x:void 0,s?s.x:void 0),ic(t.y,e,ip,i?i.y:void 0,s?s.y:void 0)}function ig(t){return 0===t.translate&&1===t.scale}function iv(t){return ig(t.x)&&ig(t.y)}function iy(t,e){return t.min===e.min&&t.max===e.max}function ix(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function iT(t,e){return ix(t.x,e.x)&&ix(t.y,e.y)}function ib(t){return ea(t.x)/ea(t.y)}function iS(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var iw=t.i(33887);class iP{constructor(){this.members=[]}add(t){(0,iw.addUniqueItem)(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let s=i.instance;s&&!1!==s.isConnected||i.snapshot||((0,iw.removeItem)(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if((0,iw.removeItem)(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)}
1}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:s}=i.options,{layoutDependency:n}=t.options;(void 0===s||s!==n)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let iV=(t,e)=>t.depth-e.depth;class iM{constructor(){this.children=[],this.isDirty=!1}add(t){(0,iw.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,iw.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(iV),this.isDirty=!1,this.children.forEach(t)}}var iA=t.i(77777);let iC={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},iE=["","X","Y","Z"],ik=0;function iD(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function iR({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(t={},i=e?.()){this.id=ik++,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=()=>{this.projectionUpdateScheduled=!1,e5.statsBuffer.value&&(iC.nodes=iC.calculatedTargetDeltas=iC.calculatedProjections=0),this.nodes.forEach(iF),this.nodes.forEach(iz),this.nodes.forEach(iH),this.nodes.forEach(ij),e5.statsBuffer.addProjectionMetrics&&e5.statsBuffer.addProjectionMetrics(iC)},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 iM)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new e6.SubscriptionManager),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=em(e)&&!(em(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:s,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&&(s||i)&&(this.isLayoutDirty=!0),t){let i,s=0,n=()=>this.root.updateBlockedByResize=!1;$.frame.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==s){let e,r;s=t,this.root.updateBlockedByResize=!0,i&&i(),e=y.time.now(),r=({timestamp:t})=>{let i=t-e;i>=250&&((0,$.cancelFrame)(r),n(i-250))},$.frame.setup(r,!0),i=()=>(0,$.cancelFrame)(r),eX.hasAnimatedSinceResize&&(eX.hasAnimatedSinceResize=!1,this.nodes.forEach(iW))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||iq,{onLayoutAnimationStart:o,onLayoutAnimationComplete:l}=n.getProps(),u=!this.targetLayout||!iT(this.targetLayout,s),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...a(r,"layout"),onPlay:o,onComplete:l};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||iW(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}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(),(0,$.cancelFrame)(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.forEac
1h(i$),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 s=f(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",$.frame,!(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 s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(iI);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(iN);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(iU),this.nodes.forEach(iL),this.nodes.forEach(iB)):this.nodes.forEach(iN),this.clearAllSnapshots();let t=y.time.now();$.frameData.delta=(0,b.clamp)(0,1e3/60,t-$.frameData.timestamp),$.frameData.timestamp=t,$.frameData.isProcessing=!0,$.frameSteps.update.process($.frameData),$.frameSteps.preRender.process($.frameData),$.frameSteps.render.process($.frameData),$.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,eq.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iO),this.sharedNodes.forEach(iG)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,$.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){$.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||ea(this.snapshot.measuredBox.x)||ea(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=(0,et.createBox)(),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=s(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&&!iv(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,r=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,iA.hasTransform)(this.latestValues)||r)&&(n(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),iJ((e=s).x),iJ(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,et.createBox)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(i0))){let{scroll:t}=this.root;t&&((0,iu.translateAxis)(e.x,t.offset.x),(0,iu.translateAxis)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,et.createBox)();if(ia(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:n,options:r}=s;s!==this.root&&n&&r.layoutScroll&&(n.wasRoot&&ia(e,t),(0,iu.translateAxis)(e.x,n.offset.x),(0,iu.translateAxis)(e.y,n.offset.y))}return e}applyTransform(t,e=!1){let i=(0,et.createBox)();ia(i,t);for(let t=0;t<this.path.length;t++){let s=this.path[t];!e&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(0,iu.transformBox)(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),(0,iA.hasTransform)(s.latestValues)&&(0,iu.transformBox)(i,s.latestValues)}return(0,iA.hasTransform)(this.latestValues)&&(0,iu.transformBox)(i,this.latestValues),i}removeTransform(t){let e=(0,et.createBox)();ia(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,iA.hasTransform)(i.latestValues))continue;(0,iA.hasScale)(i.latestValues)&&i.updateSnapshot();let s=(0,et.createBox)();ia(s,i.measurePageBox()),im(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return(0,iA.hasTransform)(this.latestValues)&&im(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!==$.frameData.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:s,layoutId:n}=this.options;if(!this.layout||!(s||n))return;this.resolvedRelativeTargetAt=$.frameData.timestamp;let r=this.getClosestProjectingParent();if(r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,et.createBox)(),this.targetWithTransforms=(0,et.createBox)()),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,eh(o.x,a.x,l.x),eh(o.y,a.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ia(this.target,this.layout.layoutBox),(0,iu.applyBoxDelta)(this.target,this.targetDelta)):ia(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0),e5.statsBuffer.value&&iC.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||(0,iA.hasScale)(this.parent.latestValues)||(0,iA.has2DTranslate)(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=(0,et.createBox)(),this.relativeTargetOrigin=(0,et.createBox)(),ed(this.relativeTargetOrigin,e,i),ia(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===$.frameData.timestamp&&(i=!1),i)return;let{layout:s,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||!(s||n))return;ia(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,o=this.treeScale.y;(0,iu.applyTreeDeltas)(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=(0,et.createBox)());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(il(this.prevProjectionDelta.x,this.projectionDelta.x),il(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),eu(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===r&&this.treeScale.y===o&&iS(this.projectionDelta.x,this.prevProjectionDelta.x)&&iS(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),e5.statsBuffer.value&&iC.calculatedProjections++}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=(0,et.createDelta)(),this.projectionDelta=(0,et.createDelta)(),this.projectionDeltaWithTransform=(0,et.createDelta)()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,n=s?s.latestValues:{},r={...this.latestValues},o=(0,et.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,et.createBox)(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(iX));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(iY(o.x,t.x,s),iY(o.y,t.y,s),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,m,f,g;ed(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=s,iK(p.x,m.x,f.x,g),iK(p.y,m.y,f.y,g),i&&(u=this.relativeTarget,d=i,iy(u.x,d.x)&&iy(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,et.createBox)()),ia(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,s,n,r){n?(t.opacity=(0,R.mixNumber)(0,i.opacity??1,ii(s)),t.opacityExit=(0,R.mixNumber)(e.opacity??1,0,is(s))):r&&(t.opacity=(0,R.mixNumber)(e.opacity??1,i.opacity??1,s));for(let n=0;n<e8;n++){let r=`border${e9[n]}Radius`,o=ie(e,r),a=ie(i,r);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||it(o)===it(a)?(t[r]=Math.max((0,R.mixNumber)(e3(o),e3(a),s),0),(eo.percent.test(a)||eo.percent.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,R.mixNumber)(e.rotate||0,i.rotate||0,s))}(r,n,this.latestValues,s,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,$.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=$.frame.update(()=>{var e,i,s;let n;eX.hasAnimatedSinceResize=!0,S.activeAnimations.layout++,this.motionValue||(this.motionValue=(0,u.motionValue)(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],s={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{S.activeAnimations.layout--},onComplete:()=>{S.activeAnimations.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(n=(0,d.isMotionValue)(e)?e:(0,u.motionValue)(e)).start(t_("",n,i,s)),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:s,latestValues:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&iQ(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,et.createBox)();let e=ea(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=ea(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}ia(e,i),(0,iu.transformBox)(e,n),eu(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new iP),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 s=this.getStack();s&&s.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 s={};i.z&&iD("z",t,s,this.animationValues);for(let e=0;e<iE.length;e++)iD(`rotate${iE[e]}`,t,s,this.animationValues),iD(`skew${iE[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[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=(0,e2.resolveMotionValue)(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=(0,e2.resolveMotionValue)(e?.pointerEvents)||""),this.hasProjected&&!(0,iA.hasTransform)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let n=s.animationValues||s.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let s="",n=t.x.translate/e.x,r=t.y.translate/e.y,o=i?.z||0;if((n||r||o)&&(s=`translate3d(${n}px, ${r}px, ${o}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:r,skewX:o,skewY:a}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),n&&(s+=`rotateX(${n}deg) `),r&&(s+=`rotateY(${r}deg) `),o&&(s+=`skewX(${o}deg) `),a&&(s+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(s+=`scale(${a}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(r=i(n,r)),t.transform=r;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,s.animationValues?t.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:t.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,e4.scaleCorrectors){if
1(void 0===n[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=e4.scaleCorrectors[e],l="none"===r?n[e]:i(n[e],s);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=s===this?(0,e2.resolveMotionValue)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(iI),this.root.sharedNodes.clear()}}}function iL(t){t.updateLayout()}function iB(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,r=e.source!==t.layout.source;"size"===n?ee(t=>{let s=r?e.measuredBox[t]:e.layoutBox[t],n=ea(s);s.min=i[t].min,s.max=s.min+n}):iQ(n,e.layoutBox,i)&&ee(s=>{let n=r?e.measuredBox[s]:e.layoutBox[s],o=ea(i[s]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+o)});let o=(0,et.createDelta)();eu(o,i,e.layoutBox);let a=(0,et.createDelta)();r?eu(a,t.applyTransform(s,!0),e.measuredBox):eu(a,i,e.layoutBox);let l=!iv(o),u=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:r}=s;if(n&&r){let o=(0,et.createBox)();ed(o,e.layoutBox,n.layoutBox);let a=(0,et.createBox)();ed(a,i,r.layoutBox),iT(o,a)||(u=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=s)}}}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 iF(t){e5.statsBuffer.value&&iC.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ij(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function iO(t){t.clearSnapshot()}function iI(t){t.clearMeasurements()}function iN(t){t.isLayoutDirty=!1}function iU(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function iW(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function iz(t){t.resolveTargetDelta()}function iH(t){t.calcProjection()}function i$(t){t.resetSkewAndRotation()}function iG(t){t.removeLeadSnapshot()}function iY(t,e,i){t.translate=(0,R.mixNumber)(e.translate,0,i),t.scale=(0,R.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function iK(t,e,i,s){t.min=(0,R.mixNumber)(e.min,i.min,s),t.max=(0,R.mixNumber)(e.max,i.max,s)}function iX(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let iq={duration:.45,ease:[.4,0,.1,1]},i_=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),iZ=i_("applewebkit/")&&!i_("chrome/")?Math.round:v.noop;function iJ(t){t.min=iZ(t.min),t.max=iZ(t.max)}function iQ(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(ib(e)-ib(i)))}function i0(t){return t!==t.root&&t.scroll?.wasRoot}let i1=iR({attachResizeListener:(t,e)=>en(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),i7={current:void 0},i6=iR({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!i7.current){let t=new i1({});t.mount(window),t.setOptions({layoutScroll:!0}),i7.current=t}return i7.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function i4(t,e){let i=ef(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function i5(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&$.frame.postRender(()=>n(e,eA(e)))}function i2(t){return ep(t)&&"offsetHeight"in t}t.s(["isHTMLElement",()=>i2],72846);let i9=(t,e)=>!!e&&(t===e||i9(t,e.parentElement)),i8=new WeakSet;function i3(t){return e=>{"Enter"===e.key&&t(e)}}function st(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function se(t){return eM(t)&&!(er.x||er.y)}let si=new WeakSet;
1function ss(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&$.frame.postRender(()=>n(e,eA(e)))}let sn=new WeakMap,sr=new WeakMap,so=t=>{let e=sn.get(t.target);e&&e(t)},sa=t=>{t.forEach(so)},sl={some:0,all:1},su={animation:{Feature:class extends s{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 s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>tQ(t,e,i)));else if("string"==typeof e)s=tQ(t,e,i);else{let n="function"==typeof e?r(t,e,i.custom):e;s=Promise.all(tZ(t,n,i))}return s.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=t8(),s=!0,n=!1,o=e=>(i,s)=>{let n=r(t,s,"exit"===e?t.presenceContext?.custom:void 0);if(n){let{transition:t,transitionEnd:e,...s}=n;i={...i,...s,...e}}return i};function a(a){let{props:l}=t,u=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<t7;t++){let s=t1.variantProps[t],n=e.props[s];((0,t0.isVariantLabel)(n)||!1===n)&&(i[s]=n)}return i}(t.parent)||{},c=[],d=new Set,p={},m=1/0;for(let e=0;e<t2;e++){var f,g;let v=t5[e],y=i[v],x=void 0!==l[v]?l[v]:u[v],T=(0,t0.isVariantLabel)(x),b=v===a?y.isActive:null;!1===b&&(m=e);let S=x===u[v]&&x!==l[v]&&T;if(S&&(s||n)&&t.manuallyAnimateOnMount&&(S=!1),y.protectedKeys={...p},!y.isActive&&null===b||!x&&!y.prevProp||(0,t6.isAnimationControls)(x)||"boolean"==typeof x)continue;if("exit"===v&&y.isActive&&!0!==b){y.prevResolvedValues&&(p={...p,...y.prevResolvedValues});continue}let w=(f=y.prevProp,"string"==typeof(g=x)?g!==f:!!Array.isArray(g)&&!t4(g,f)),P=w||v===a&&y.isActive&&!S&&T||e>m&&T,V=!1,M=Array.isArray(x)?x:[x],A=M.reduce(o(v),{});!1===b&&(A={});let{prevResolvedValues:C={}}=y,E={...C,...A},k=e=>{P=!0,d.has(e)&&(V=!0,d.delete(e)),y.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in E){let e=A[t],i=C[t];if(!p.hasOwnProperty(t))(h(e)&&h(i)?t4(e,i):e===i)?void 0!==e&&d.has(t)?k(t):y.protectedKeys[t]=!0:null!=e?k(t):d.add(t)}y.prevProp=x,y.prevResolvedValues=A,y.isActive&&(p={...p,...A}),(s||n)&&t.blockInitialAnimation&&(P=!1);let D=S&&w,R=!D||V;P&&R&&c.push(...M.map(e=>{let i={type:v};if("string"==typeof e&&(s||n)&&!D&&t.manuallyAnimateOnMount&&t.parent){let{parent:s}=t,n=r(s,e);if(s.enteringChildren&&n){let{delayChildren:e}=n.transition||{};i.delay=tJ(s.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(d.size){let e={};if("boolean"!=typeof l.initial){let i=r(t,Array.isArray(l.initial)?l.initial[0]:l.initial);i&&i.transition&&(e.transition=i.transition)}d.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=s??null}),c.push({animation:e})}let v=!!c.length;return s&&(!1===l.initial||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(v=!1),s=!1,n=!1,v?e(c):Promise.resolve()}return{animateChanges:a,setActive:function(e,s){if(i[e].isActive===s)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,s)),i[e].isActive=s;let n=a(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=t8(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,t6.isAnimationControls)(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 s{constructor(){super(...arguments),this.id=t3++}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 s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>
1{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends s{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:s,margin:n,amount:r="some",once:o}=i,a={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:sl[r]},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:s}=this.node.getProps(),n=e?i:s;n&&n(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;sr.has(i)||sr.set(i,{});let s=sr.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(sa,{root:t,...e})),s[n]}(a),sn.set(t,l),e.observe(t),()=>{sn.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("undefined"==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 s{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[s,n,r]=i4(t,i),o=t=>{let s=t.currentTarget;if(!se(t)||si.has(t))return;i8.add(s),i.stopPropagation&&si.add(t);let r=e(s,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),i8.has(s)&&i8.delete(s),se(t)&&"function"==typeof r&&r(t,{success:e})},a=t=>{o(t,s===window||s===document||i.useGlobalTarget||i9(s,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",l,n)};return s.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,n),i2(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=i3(()=>{if(i8.has(i))return;st(i,"down");let t=i3(()=>{st(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>st(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,n)),eP.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(ss(this.node,e,"Start"),(t,{success:e})=>ss(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends s{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=T(en(this.node.current,"focus",()=>this.onFocus()),en(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends s{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,n,r]=i4(t,i);return s.forEach(t=>{let i,s=!1,r=!1,o=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{s=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),r&&(r=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(s){r=!0;return}o(t)}};t.addEventListener("pointerenter",s=>{if("touch"===s.pointerType||er.x||er.y)return;r=!1;let o=e(t,s);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,n))},n),t.addEventListener("pointerdown",()=>{s=!0,window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",a,n)},n)}),r}(t,(t,e)=>(i5(this.node,e,"Start"),t=>i5(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends s{constructor(){super(...arguments),this.removePointerDownListener=v.noop}onPointerDown(t){this.session=new eL(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eE(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:eY(t),onStart:eY(e),onMove:eY(i),onEnd:(t,e)=>{delete this.session,s&&$.frame.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=eC(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 s{constructor(t){super(t),this.removeGroupControls=v.noop,this.removeListeners=v.noop,this.controls=new eH(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||v.noop}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:i6,MeasureLayout:e7},layout:{ProjectionNode:i6,MeasureLayout:e7}};t.s(["featureBundle",()=>su],2120)},52664,t=>{"use strict";t.i(75760),t.i(40314),t.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.