1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,89945,t=>{"use strict";var e,i,s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|download|draggable|encType|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|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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={},function(t){return void 0===i[t]&&(i[t]=e(t)),i[t]});t.s(["default",0,n],89945)},88584,t=>{"use strict";let e,i,s;var n,r=t.i(40636),o=t.i(16704),a=t.i(25068),l=t.i(92803),h=t.i(98622),u=t.i(76059),c=t.i(91303);let d=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],p=new Set(d),m=(t,e,i)=>i>e?e:i<t?t:i,f={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},y={...f,transform:t=>m(0,1,t)},g={...f,default:1},v=t=>Math.round(1e5*t)/1e5,x=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,b=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,w=(t,e)=>i=>!!("string"==typeof i&&b.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),T=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[n,r,o,a]=s.match(x);return{[t]:parseFloat(n),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},S={...f,transform:t=>Math.round(m(0,255,t))},P={test:w("rgb","red"),parse:T("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+S.transform(t)+", "+S.transform(e)+", "+S.transform(i)+", "+v(y.transform(s))+")"},k={test:w("#"),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),alph
1a:n?parseInt(n,16)/255:1}},transform:P.transform},j=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),A=j("deg"),E=j("%"),M=j("px"),C=j("vh"),V=j("vw"),O={...E,parse:t=>E.parse(t)/100,transform:t=>E.transform(100*t)},R={test:w("hsl","hue"),parse:T("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+E.transform(v(e))+", "+E.transform(v(i))+", "+v(y.transform(s))+")"},L={test:t=>P.test(t)||k.test(t)||R.test(t),parse:t=>P.test(t)?P.parse(t):R.test(t)?R.parse(t):k.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?P.transform(t):R.transform(t),getAnimatableNone:t=>{let e=L.parse(t);return e.alpha=0,L.transform(e)}},D=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,N="number",I="color",B=/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 F(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},n=[],r=0,o=e.replace(B,t=>(L.test(t)?(s.color.push(r),n.push(I),i.push(L.parse(t))):t.startsWith("var(")?(s.var.push(r),n.push("var"),i.push(t)):(s.number.push(r),n.push(N),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:s,types:n}}function U(t){return F(t).values}function $(t){let{split:e,types:i}=F(t),s=e.length;return t=>{let n="";for(let r=0;r<s;r++)if(n+=e[r],void 0!==t[r]){let e=i[r];e===N?n+=v(t[r]):e===I?n+=L.transform(t[r]):n+=t[r]}return n}}let z=t=>"number"==typeof t?0:L.test(t)?L.getAnimatableNone(t):t,_={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(x)?.length||0)+(t.match(D)?.length||0)>0},parse:U,createTransformer:$,getAnimatableNone:function(t){let e=U(t);return $(t)(e.map(z))}},W=new Set(["brightness","contrast","saturate","opacity"]);function H(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(x)||[];if(!s)return t;let n=i.replace(s,""),r=+!!W.has(e);return s!==i&&(r*=100),e+"("+r+n+")"}let Y=/\b([a-z-]*)\(.*?\)/gu,K={..._,getAnimatableNone:t=>{let e=t.match(Y);return e?e.map(H).join(" "):t}},X={...f,transform:Math.round},G={borderWidth:M,borderTopWidth:M,borderRightWidth:M,borderBottomWidth:M,borderLeftWidth:M,borderRadius:M,borderTopLeftRadius:M,borderTopRightRadius:M,borderBottomRightRadius:M,borderBottomLeftRadius:M,width:M,maxWidth:M,height:M,maxHeight:M,top:M,right:M,bottom:M,left:M,inset:M,insetBlock:M,insetBlockStart:M,insetBlockEnd:M,insetInline:M,insetInlineStart:M,insetInlineEnd:M,padding:M,paddingTop:M,paddingRight:M,paddingBottom:M,paddingLeft:M,paddingBlock:M,paddingBlockStart:M,paddingBlockEnd:M,paddingInline:M,paddingInlineStart:M,paddingInlineEnd:M,margin:M,marginTop:M,marginRight:M,marginBottom:M,marginLeft:M,marginBlock:M,marginBlockStart:M,marginBlockEnd:M,marginInline:M,marginInlineStart:M,marginInlineEnd:M,fontSize:M,backgroundPositionX:M,backgroundPositionY:M,rotate:A,rotateX:A,rotateY:A,rotateZ:A,scale:g,scaleX:g,scaleY:g,scaleZ:g,skew:A,skewX:A,skewY:A,distance:M,translateX:M,translateY:M,translateZ:M,x:M,y:M,z:M,perspective:M,transformPerspective:M,opacity:y,originX:O,originY:O,originZ:M,zIndex:X,fillOpacity:y,strokeOpacity:y,numOctaves:X},q={...G,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:K,WebkitFilter:K},Z=t=>q[t],J=()=>({translate:0,scale:1,origin:0,originPoint:0}),Q=()=>({x:J(),y:J()}),tt=()=>({min:0,max:0}),te=()=>({x:tt(),y:tt()}),ti=t=>!!(t&&t.getVelocity),ts=new Set(["width","height","top","left","right","bottom",...d]),tn=t=>e=>e.test(t),tr=[f,M,E,A,V,C,{test:t=>"auto"===t,parse:t=>t}],to=t=>tr.find(tn(t));var ta=t.i(21858);let tl=()=>{},th=()=>{};ta.default;let tu=t=>e=>"string"==typeof e&&e.startsWith(t),tc=tu("--"),td=tu("var(--"),tp=t=>!!td(t)&&tm.test(t.split("/*")[0].trim()),tm=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tf(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let ty=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tg=t=>180*t/Math.PI,tv=t=>tb(tg(Math.atan2(t[1],t[0]))),tx={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tv,rotateZ:tv,skewX:t=>tg(Math.atan(t[1])),skewY:t=>tg(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tb=t=>((t%=360)<0&&(t+=360),t),tw=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tT=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tS={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tw,scaleY:tT,scale:t=>(tw(t)+tT(t))/2,rotateX:t=>tb(tg(Math.atan2(t[6],t[5]))),rotateY:t=>tb(tg(Math.atan2(-t[2],t[0]))),rotateZ:tv,rotate:tv,skewX:t=>tg(Math.atan(t[4])),skewY:t=>tg(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tP(t){return+!!t.includes("scale")}function tk(t,e){let i,s;if(!t||"none"===t)return tP(e);let n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=tS,s=n;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tx,s=e}if(!s)return tP(e);let r=i[e],o=s[1].split(",").map(tj);return"function"==typeof r?r(o):o[r]}function tj(t){return parseFloat(t.trim())}let tA=t=>t===f||t===M,tE=new Set(["x","y","z"]),tM=d.filter(t=>!tE.has(t)),tC={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})=>tk(e,"x"),y:(t,{transform:e})=>tk(e,"y")};tC.translateX=tC.x,tC.translateY=tC.y;let tV=t=>t,tO={},tR=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tL(t,e){let i=!1,s=!0,n={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,o=tR.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 h(e){o.has(e)&&(u.schedule(e),t()),l++,e(a)}let u={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}
1n=!0,[i,s]=[s,i],i.forEach(h),e,l=0,i.clear(),n=!1,r&&(r=!1,u.process(t))}};return u}(r,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:h,preUpdate:u,update:c,preRender:d,render:p,postRender:m}=o,f=()=>{let r=tO.useManualTiming?n.timestamp:performance.now();i=!1,tO.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),h.process(n),u.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:tR.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<tR.length;e++)o[tR[e]].cancel(t)},state:n,steps:o}}let{schedule:tD,cancel:tN,state:tI,steps:tB}=tL("u">typeof requestAnimationFrame?requestAnimationFrame:tV,!0),tF=new Set,tU=!1,t$=!1,tz=!1;function t_(){if(t$){let t=Array.from(tF).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,s=(e=[],tM.forEach(i=>{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),e);s.length&&(i.set(t,s),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)})}t$=!1,tU=!1,tF.forEach(t=>t.complete(tz)),tF.clear()}function tW(){tF.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(t$=!0)})}class tH{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?(tF.add(this),tU||(tU=!0,tD.read(tW),tD.resolveKeyframes(t_))):(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),tF.delete(this)}cancel(){"scheduled"===this.state&&(tF.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}function tY(t,e){let i=Z(t);return i!==K&&(i=_),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tK=new Set(["auto","none","0"]);class tX extends tH{constructor(t,e,i,s,n){super(t,e,i,s,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let s=t[i];if("string"==typeof s&&tp(s=s.trim())){let n=function t(e,i,s=1){th(s<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,r]=function(t){let e=ty.exec(t);if(!e)return[,];let[,i,s,n]=e;return[`--${i??s}`,n]}(e);if(!n)return;let o=window.getComputedStyle(i).getPropertyValue(n);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return tp(r)?t(r,i,s+1):r}(s,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!ts.has(i)||2!==t.length)return;let[s,n]=t,r=to(s),o=to(n);if(tf(s)!==tf(n)&&tC[i]){this.needsMeasurement=!0;return}if(r!==o)if(tA(r)&&tA(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tC[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let s,n=0;for(;n<t.length&&!s;){let e=t[n];"string"==typeof e&&!tK.has(e)&&F(e).values.length&&(s=t[n]),n++}if(s&&i)for(let n of e)t[n]=tY(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=tC[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]=tC[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()}}function tG(t,e){-1===t.indexOf(e)&&t.push(e)}function tq(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class tZ{constructor(){this.subscriptions=[]}add(t){return tG(this.subscriptions,t),()=>tq(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}}let{schedule:tJ}=tL(queueMicrotask,!1);function tQ(){e=void 0}let t0={now:()=>(void 0===e&&t0.set(tI.isProcessing||tO.useManualTiming?tI.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(tQ)}};class t1{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=t0.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=t0.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new tZ);let i=this.events[t].add(e);return"change"===t?()=>{i(),tD.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return s&&s.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=t0.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function t2(t,e){return new t1(t,e)}let t3=[...tr,L,_],t5={current:null},t4={current:!1},t9="u">typeof window,t6=new WeakMap;function t8(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function t7(t){return"string"==typeof t||Array.isArray(t)}let et=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ee=["initial",...et];function ei(t){return t8(t.animate)||ee.some(e=>t7(t[e]))}function es(t){return!!(ei(t)||t.variants)}function en(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function er(t,e,i,s){if("function"==typeof e){let[n,r]=en(s);e=e(void 0!==i?i:t.custom,n,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,r]=en(s);e=e(void 0!==i?i:t.custom,n,r)}return e}let eo=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ea={};
1class el{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:n,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tH,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=t0.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tD.render(this.render,!1,!0))};const{latestValues:a,renderState:l}=r;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=o,this.blockInitialAnimation=!!n,this.isControllingVariants=ei(e),this.isVariantNode=es(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...u}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in u){const e=u[t];void 0!==a[t]&&ti(e)&&e.set(a[t])}}mount(t){this.current=t,t6.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(t4.current||function(){if(t4.current=!0,t9)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>t5.current=t.matches;t.addEventListener("change",e),e()}else t5.current=!1}(),this.shouldReduceMotion=t5.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),tN(this.notifyUpdate),tN(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let s=p.has(t);s&&this.onBindTransform&&this.onBindTransform();let n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tD.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ea){let e=ea[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):te()}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<eo.length;e++){let i=eo[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}
1this.prevMotionValues=function(t,e,i){for(let s in e){let n=e[s],r=i[s];if(ti(n))t.addValue(s,n);else if(ti(r))t.addValue(s,t2(n,{owner:t}));else if(r!==n)if(t.hasValue(s)){let e=t.getValue(s);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(s);t.addValue(s,t2(void 0!==e?e:n,{owner:t}))}}for(let s in i)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=t2(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let s,n;if("string"==typeof i&&(s=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(s)||(n=i,/^0[^.\s]+$/u.test(n))))i=parseFloat(i);else{let s;s=i,!t3.find(tn(s))&&_.test(e)&&(i=tY(t,e))}this.setBaseTarget(t,ti(i)?i.get():i)}return ti(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let s=er(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||ti(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 tZ),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){tJ.render(this.render)}}class eh extends el{constructor(){super(...arguments),this.KeyframeResolver=tX}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;ti(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eu(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let ec=(t,e)=>e&&"number"==typeof t?e.transform(t):t,ed={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ep=d.length;function em(t,e,i){let{style:s,vars:n,transformOrigin:r}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(p.has(t)){o=!0;continue}if(tc(t)){n[t]=i;continue}{let e=ec(i,G[t]);t.startsWith("origin")?(a=!0,r[t]=e):s[t]=e}}if(!e.transform&&(o||i?s.transform=function(t,e,i){let s="",n=!0;for(let r=0;r<ep;r++){let o=d[r],a=t[o];if(void 0===a)continue;let l=!0;if("number"==typeof a)l=a===+!!o.startsWith("scale");else{let t=parseFloat(a);l=o.startsWith("scale")?1===t:0===t}if(!l||i){let t=ec(a,G[o]);if(!l){n=!1;let e=ed[o]||o;s+=`${e}(${t}) `}i&&(e[o]=t)}}return s=s.trim(),i?s=i(e,n?"":s):n&&(s="none"),s}(e,t.transform,i):s.transform&&(s.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;s.transformOrigin=`${t} ${e} ${i}`}}let ef={offset:"stroke-dashoffset",array:"stroke-dasharray"},ey={offset:"strokeDashoffset",array:"strokeDasharray"},eg=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ev(t,{attrX:e,attrY:i,attrScale:s,pathLength:n,pathSpacing:r=1,pathOffset:o=0,...a}
1,l,h,u){if(em(t,a,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;for(let t of(c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete c.transformBox),eg))void 0!==c[t]&&(d[t]=c[t],delete c[t]);void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==s&&(c.scale=s),void 0!==n&&function(t,e,i=1,s=0,n=!0){t.pathLength=1;let r=n?ef:ey;t[r.offset]=`${-s}`,t[r.array]=`${e} ${i}`}(c,n,r,o,!1)}let ex=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"]),eb=t=>"string"==typeof t&&"svg"===t.toLowerCase();function ew(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])}function eT(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eS={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!M.test(t))return t;else t=parseFloat(t);let i=eT(t,e.target.x),s=eT(t,e.target.y);return`${i}% ${s}%`}},eP=(t,e,i)=>t+(e-t)*i,ek={borderRadius:{...eS,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eS,borderTopRightRadius:eS,borderBottomLeftRadius:eS,borderBottomRightRadius:eS,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=_.parse(t);if(s.length>5)return t;let n=_.createTransformer(t),r=+("number"!=typeof s[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;s[0+r]/=o,s[1+r]/=a;let l=eP(o,a,.5);return"number"==typeof s[2+r]&&(s[2+r]/=l),"number"==typeof s[3+r]&&(s[3+r]/=l),n(s)}}};function ej(t,{layout:e,layoutId:i}){return p.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!ek[t]||"opacity"===t)}function eA(t,e,i){let s=t.style,n=e?.style,r={};if(!s)return r;for(let e in s)(ti(s[e])||n&&ti(n[e])||ej(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(r[e]=s[e]);return r}function eE(t,e,i){let s=eA(t,e,i);for(let i in t)(ti(t[i])||ti(e[i]))&&(s[-1!==d.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}class eM extends eh{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=te}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(p.has(e)){let t=Z(e);return t&&t.default||0}return e=ex.has(e)?e:eu(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eE(t,e,i)}build(t,e,i){ev(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,s){for(let i in ew(t,e,void 0,s),e.attrs)t.setAttribute(ex.has(i)?i:eu(i),e.attrs[i])}mount(t){this.isSVGTag=eb(t.tagName),super.mount(t)}}function eC({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function eV(t){return void 0===t||1===t}function eO({scale:t,scaleX:e,scaleY:i}){return!eV(t)||!eV(e)||!eV(i)}function eR(t){return eO(t)||eL(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eL(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function eD(t,e,i,s,n){return void 0!==n&&(t=s+n*(t-s)),s+i*(t-s)+e}function eN(t,e=0,i=1,s,n){t.min=eD(t.min,e,i,s,n),t.max=eD(t.max,e,i,s,n)}function eI(t,{x:e,y:i}){eN(t.x,e.translate,e.scale,e.originPoint),eN(t.y,i.translate,i.scale,i.originPoint)}function eB(t,e){t.min=t.min+e,t.max=t.max+e}function eF(t,e,i,s,n=.5){let r=eP(t.min,t.max,n);eN(t,e,i,r,s)}function eU(t,e){eF(t.x,e.x,e.scaleX,e.scale,e.originX),eF(t.y,e.y,e.scaleY,e.scale,e.originY)}function e$(t,e){return eC(function(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.getBoundingClientRect(),e))}class ez extends eh{constructor(){super(...arguments),this.type="html",this.renderInstance=ew}readValueFromInstance(t,e){if(p.has(e))return this.projection?.isProjecting?tP(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tk(i,e)})(t,e);{let i=window.getComputedStyle(t),s=(tc(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return e$(t,e)}build(t,e,i){em(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return eA(t,e,i)}}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 eW(t){if("string"!=typeof t||t.includes("-"));else if(e_.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let eH=(0,h.createContext)({}),eY=(0,h.createContext)({strict:!1}),eK=(0,h.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),eX=(0,h.createContext)({});function eG(t){return Array.isArray(t)?t.join(" "):t}let eq=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eZ(t,e,i){for(let s in e)ti(e[s])||ej(s,i)||(t[s]=e[s])}let eJ=()=>({...eq(),attrs:{}}),eQ=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function e0(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||eQ.has(t)}let e1=t=>!e0(t);try{n=t.r(89945).default,"function"==typeof n&&(e1=t=>t.startsWith("on")?!e0(t):n(t))}catch{}function e2(t){return ti(t)?t.get():t}let e3=(0,h.createContext)(null);function e5(t){let e=(0,h.useRef)(null);return null===e.current&&(e.current=t()),e.current}let e4=t=>(e,i)=>{let s=(0,h.useContext)(eX),n=(0,h.useContext)(e3),r=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,s,n){return{latestValues:function(t,e,i,s){let n={},r=s(t,{});for(let t in r)n[t]=e2(r[t]);let{initial:o,animate:a}=t,l=ei(t),h=es(t);e&&h&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let u=!!i&&!1===i.initial,c=(u=u||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!t8(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let s=er(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=u?e.length-1:0;e=e[t]}null!==e&&(n[t]=e)}for(let e in t)n[e]=t[e]}}}return n}(i,s,n,t),renderState:e()}})(t,e,s,n);return i?r():e5(r)},e9=e4({scrapeMotionValuesFromProps:eA,createRenderState:eq}),e6=e4({scrapeMotionValuesFromProps:eE,createRenderState:eJ}),e8="u">typeof window,e7={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"]},it=!1;function ie(){return!function(){if(it)return;let t={};for(let e in e7)t[e]={isEnabled:t=>e7[e].some(e=>!!t[e])};ea=t,it=!0}(),ea}let ii=Symbol.for("motionComponentSymbol"),is="data-"+eu("framerAppearId"),ir=(0,h.createContext)({});function io(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let ia=e8?h.useLayoutEffect:h.useEffect;function il(t,{forwardMotionProps:e=!1,type:i}={},s,n){s&&function(t){let e=ie();for(let i in t)e[i]={...e[i],...t[i]};ea=e}(s);let o=i?"svg"===i:eW(t),a=o?e6:e9;function l(i,s){var l;let u,c,d,p={...(0,h.useContext)(eK),...i,layoutId:function({layoutId:t}){let e=(0,h.useContext)(eH).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:m}=p,f=function(t){let{initial:e,animate:i}=function(t,e){if(ei(t)){let{initial:e,animate:i}=t;return{initial:!1===e||t7(e)?e:void 0,animate:t7(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,h.useContext)(eX));return(0,h.useMemo)(()=>({initial:e,animate:i}),[eG(e),eG(i)])}(i),y=a(i,m);if(!m&&e8){(0,h.useContext)(eY).strict;let e=function(t){let{drag:e,layout:i}=ie();if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}
1(p);u=e.MeasureLayout,f.visualElement=function(t,e,i,s,n,r){let{visualElement:o}=(0,h.useContext)(eX),a=(0,h.useContext)(eY),l=(0,h.useContext)(e3),u=(0,h.useContext)(eK).reducedMotion,c=(0,h.useRef)(null),d=(0,h.useRef)(!1);s=s||a.renderer,!c.current&&s&&(c.current=s(t,{visualState:e,parent:o,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u,isSVG:r}),d.current&&c.current&&(c.current.manuallyAnimateOnMount=!0));let p=c.current,m=(0,h.useContext)(ir);p&&!p.projection&&n&&("html"===p.type||"svg"===p.type)&&function(t,e,i,s){let{layoutId:n,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutCrossfade:u}=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&&io(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:s,crossfade:u,layoutScroll:l,layoutRoot:h})}(c.current,i,n,m);let f=(0,h.useRef)(!1);(0,h.useInsertionEffect)(()=>{p&&f.current&&p.update(i,l)});let y=i[is],g=(0,h.useRef)(!!y&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return ia(()=>{d.current=!0,p&&(f.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),g.current&&p.animationState&&p.animationState.animateChanges())}),(0,h.useEffect)(()=>{p&&(!g.current&&p.animationState&&p.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),g.current=!1),p.enteringChildren=void 0)}),p}(t,y,p,n,e.ProjectionNode,o)}return(0,r.jsxs)(eX.Provider,{value:f,children:[u&&f.visualElement?(0,r.jsx)(u,{visualElement:f.visualElement,...p}):null,function(t,e,i,{latestValues:s},n,r=!1,o){let a=(o??eW(t)?function(t,e,i,s){let n=(0,h.useMemo)(()=>{let i=eJ();return ev(i,e,eb(s),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};eZ(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i,s,n={},r=(i=t.style||{},eZ(s={},i,t),Object.assign(s,function({transformTemplate:t},e){return(0,h.useMemo)(()=>{let i=eq();return em(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n})(e,s,n,t),l=function(t,e,i){let s={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(e1(n)||!0===i&&e0(n)||!e&&!e0(n)||t.draggable&&n.startsWith("onDrag"))&&(s[n]=t[n]);return s}(e,"string"==typeof t,r),u=t!==h.Fragment?{...l,...a,ref:i}
1:{},{children:c}=e,d=(0,h.useMemo)(()=>ti(c)?c.get():c,[c]);return(0,h.createElement)(t,{...u,children:d})}(t,i,(l=f.visualElement,c=(0,h.useRef)(s),(0,h.useInsertionEffect)(()=>{c.current=s}),d=(0,h.useRef)(null),(0,h.useCallback)(t=>{t&&y.onMount?.(t),l&&(t?l.mount(t):l.unmount());let e=c.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(d.current=i)}else d.current?(d.current(),d.current=null):e(t);else e&&(e.current=t)},[l])),y,m,e,o)]})}l.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let u=(0,h.forwardRef)(l);return u[ii]=t,u}class ih{constructor(t){this.isMounted=!1,this.node=t}update(){}}function iu(t,e,i){let s=t.getProps();return er(s,e,void 0!==i?i:s.custom,t)}function ic(t,e){return t?.[e]??t?.default??t}let id=t=>Array.isArray(t);function ip(t,e){let i=t.getValue("willChange");if(ti(i)&&i.add)return i.add(e);if(!i&&tO.WillChange){let i=new tO.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let im=t=>1e3*t,iy=(t,e)=>i=>e(t(i)),ig=(...t)=>t.reduce(iy),iv={layout:0,mainThread:0,waapi:0};function ix(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function ib(t,e){return i=>i>0?e:t}let iw=(t,e,i)=>{let s=t*t,n=i*(e*e-s)+s;return n<0?0:Math.sqrt(n)},iT=[k,P,R];function iS(t){let e=iT.find(e=>e.test(t));if(tl(!!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===R&&(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=ix(a,s,t+1/3),r=ix(a,s,t),o=ix(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 iP=(t,e)=>{let i=iS(t),s=iS(e);if(!i||!s)return ib(t,e);let n={...i};return t=>(n.red=iw(i.red,s.red,t),n.green=iw(i.green,s.green,t),n.blue=iw(i.blue,s.blue,t),n.alpha=eP(i.alpha,s.alpha,t),P.transform(n))},ik=new Set(["none","hidden"]);function ij(t,e){return i=>eP(t,e,i)}function iA(t){return"number"==typeof t?ij:"string"==typeof t?tp(t)?ib:L.test(t)?iP:iC:Array.isArray(t)?iE:"object"==typeof t?L.test(t)?iP:iM:ib}function iE(t,e){let i=[...t],s=i.length,n=t.map((t,i)=>iA(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=n[e](t);return i}}function iM(t,e){let i={...t,...e},s={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(s[n]=iA(t[n])(t[n],e[n]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let iC=(t,e)=>{let i=_.createTransformer(e),s=F(t),n=F(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 tl(!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"),ib(t,e);if(ik.has(t)&&!n.values.length||ik.has(e)&&!s.values.length)return ik.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return ig(iE(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 iV(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eP(t,e,i):iA(t)(t,e)}let iO=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tD.update(e,t),stop:()=>tN(e),now:()=>tI.isProcessing?tI.timestamp:t0.now()}},iR=(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)})`};function iL(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}function iD(t,e,i){var s,n;let r=Math.max(e-5,0);return s=i-t(r),(n=e-r)?1e3/n*s:0}let iN=.01,iI=2,iB=.005,iF=.5;function iU(t,e){return t*Math.sqrt(1-e*e)}let i$=["duration","bounce"],iz=["stiffness","damping","mass"];function i_(t,e){return e.some(e=>void 0!==t[e])}function iW(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:h,damping:u,mass:c,duration:d,velocity:p,isResolvedFromDuration:f}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!i_(t,iz)&&i_(t,i$))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,n=2*m(.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;tl(t<=im(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=m(.05,1,o),t=m(.01,10,t/1e3),o<1?(n=e=>{let s=e*o,n=s*t;return .001-(s-i)/iU(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=iU(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=im(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);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...s,velocity:-((s.velocity||0)/1e3)}),y=p||0,g=u/(2*Math.sqrt(h*c)),v=a-o,x=Math.sqrt(h/c)/1e3,b=5>Math.abs(v);if(n||(n=b?iN:iI),r||(r=b?iB:iF),g<1){let t=iU(x,g);i=e=>a-Math.exp(-g*x*e)*((y+g*x*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===g)i=t=>a-Math.exp(-x*t)*(v+(y+x*v)*t);else{let t=x*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*x*e),s=Math.min(t*e,300);return a-i*((y+g*x*v)*Math.sinh(s)+t*v*Math.cosh(s))/t}}let w={calculatedDuration:f&&d||null,next:t=>{let e=i(t);if(f)l.done=t>=d;else{let s=0===t?y:0;g<1&&(s=0===t?im(y):iD(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(iL(w),2e4),e=iR(e=>w.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return w}function iH({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,y=p+f,g=void 0===o?y:o(y);g!==y&&(f=g-p);let v=t=>-f*Math.exp(-t/s),x=t=>g+v(t),b=t=>{let e=v(t),i=x(t);m.done=Math.abs(e)<=h,m.value=m.done?g:i},w=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;c=t,d=iW({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:iD(x,t,m.value),damping:n,stiffness:r,restDelta:h,restSpeed:u})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,b(t),w(t)),void 0!==c&&t>=c)?d.next(t-c):(e||b(t),m)}}}iW.applyToOptions=t=>{let e=function(t,e=100,i){let s=i({...t,keyframes:[0,e]}),n=Math.min(iL(s),2e4);return{type:"keyframes",ease:t=>s.next(n*t).value/e,duration:n/1e3}}(t,100,iW);return t.ease=e.ease,t.duration=im(e.duration),t.type="keyframes",t};let iY=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function iK(t,e,i,s){return t===e&&i===s?tV:n=>0===n||1===n?n:iY(function(t,e,i,s,n){let r,o,a=0;do(r=iY(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 iX=iK(.42,0,1,1),iG=iK(0,0,.58,1),iq=iK(.42,0,.58,1),iZ=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,iJ=t=>e=>1-t(1-e),iQ=iK(.33,1.53,.69,.99),i0=iJ(iQ),i1=iZ(i0),i2=t=>(t*=2)<1?.5*i0(t):.5*(2-Math.pow(2,-10*(t-1))),i3=t=>1-Math.sin(Math.acos(t)),i5=iJ(i3),i4=iZ(i3),i9=t=>Array.isArray(t)&&"number"==typeof t[0],i6={linear:tV,easeIn:iX,easeInOut:iq,easeOut:iG,circIn:i3,circInOut:i4,circOut:i5,backIn:i0,backInOut:i1,backOut:iQ,anticipate:i2},i8=t=>{if(i9(t)){th(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,s,n]=t;return iK(e,i,s,n)}return"string"==typeof t?(th(void 0!==i6[t],`Invalid easing type '${t}'`,"invalid-easing-type"),i6[t]):t},i7=(t,e,i)=>{let s=e-t;return 0===s?1:(i-t)/s};function st({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){var n;let r,o=Array.isArray(s)&&"number"!=typeof s[0]?s.map(i8):i8(s),a={done:!1,value:e[0]},l=function(t,e,{clamp:i=!0,ease:s,mixer:n}={}){let r=t.length;if(th(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||tO.mix||iV,r=t.length-1;for(let i=0;i<r;i++){let r=n(t[i],t[i+1]);e&&(r=ig(Array.isArray(e)?e[i]||tV:e,r)),s.push(r)}return s}(e,s,n),l=a.length,h=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=i7(t[s],t[s+1],i);return a[s](n)};return i?e=>h(m(t[0],t[r-1],e)):h}((n=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let n=i7(0,e,s);t.push(eP(i,1,n))}}(r=[0],e.length-1),r),n.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||iq).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}let se=t=>null!==t;function si(t,{repeat:e,repeatType:i="loop"},s,n=1){let r=t.filter(se),o=n<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return o&&void 0!==s?s:r[o]}let ss={decay:iH,inertia:iH,tween:st,keyframes:st,spring:iW};function sn(t){"string"==typeof t.type&&(t.type=ss[t.type])}class sr{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let so=t=>t/100;class sa extends sr{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!==t0.now()&&this.tick(t0.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},iv.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;sn(t);let{type:e=st,repeat:i=0,repeatDelay:s=0,repeatType:n,velocity:r=0}=t,{keyframes:o}=t,a=e||st;a!==st&&"number"!=typeof o[0]&&(this.mixKeyframes=ig(so,iV(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=iL(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+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:h,repeat:u,repeatType:c,repeatDelay:d,type:p,onUpdate:f,finalKeyframe:y}=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 x=this.currentTime,b=i;if(u){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,u+1))%2&&("reverse"===c?(i=1-i,d&&(i-=d/
1o)):"mirror"===c&&(b=r)),x=m(0,1,i)*o}let w=v?{done:!1,value:h[0]}:b.next(x);n&&(w.value=n(w.value));let{done:T}=w;v||null===a||(T=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return S&&p!==iH&&(w.value=si(h,this.options,y,this.speed)),f&&f(w.value),S&&this.finish(),w}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=im(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(t0.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=iO,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(t0.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,iv.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function sl(t){let e;return()=>(void 0===e&&(e=t()),e)}let sh=sl(()=>void 0!==window.ScrollTimeline),su={},sc=(i=sl(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>su.linearEasing??i()),sd=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,sp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:sd([0,.65,.55,1]),circOut:sd([.55,0,1,.45]),backIn:sd([.31,.01,.66,-.59]),backOut:sd([.33,1.53,.69,.99])};function sm(t){return"function"==typeof t&&"applyToOptions"in t}class sf extends sr{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:s,pseudoElement:n,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!n,this.allowFlatten=r,this.options=t,th("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return sm(t)&&sc()?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}={},h){let u={[e]:i};l&&(u.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?sc()?iR(e,i):"ease-out":i9(e)?sd(e):Array.isArray(e)?e.map(e=>t(e,i)||sp.easeOut):sp[e]}(a,n);Array.isArray(c)&&(u.easing=c);let d={delay:s,duration:n,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};h&&(d.pseudoElement=h);let p=t.animate(u,d);return p}(e,i,s,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let t=si(s,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):i.startsWith("--")?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.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(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=im(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&&sh())?(this.animation.timeline=t,tV):e(this)}}let sy={anticipate:i2,backInOut:i1,circInOut:i4};class sg extends sf{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in sy&&(t.ease=sy[t.ease])}(t),sn(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 sa({...r,autoplay:!1}),a=Math.max(10,t0.now()-this.startTime),l=m(0,10,a-10);e.setWithVelocity(o.sample(Math.max(0,a-l)).value,o.sample(a).value,l),o.stop()}}let sv=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(_.test(t)||"0"===t)&&!t.startsWith("url("));function sx(t){t.duration=0,t.type="keyframes"}let sb=new Set(["opacity","clipPath","filter","transform"]),sw=sl(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class sT extends sr{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:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=t0.now();const c={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:n,repeatType:r,name:a,motionValue:l,element:h,...u},d=h?.KeyframeResolver||tH;this.keyframeResolver=new d(o,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),a,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,s){this.keyframeResolver=void 0;let{name:n,type:r,velocity:o,delay:a,isHandoff:l,onUpdate:h}=i;
1this.resolvedAt=t0.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=sv(n,e),a=sv(r,e);return tl(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||sm(i))&&s)}(t,n,r,o)&&((tO.instantAnimations||!a)&&h?.(si(t,i,e)),t[0]=t[t.length-1],sx(i),i.repeat=0);let u={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},c=!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 sw()&&i&&sb.has(i)&&("transform"!==i||!l)&&!a&&!s&&"mirror"!==n&&0!==r&&"inertia"!==o}(u),d=u.motionValue?.owner?.current,p=c?new sg({...u,element:d}):new sa(u);p.finished.then(()=>{this.notifyFinished()}).catch(tV),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}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(),tz=!0,tW(),t_(),tz=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let sS={type:"spring",stiffness:500,damping:25,restSpeed:10},sP={type:"keyframes",duration:.8},sk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sj=t=>null!==t,sA=(t,e,i,s={},n,r)=>o=>{let a=ic(s,t)||{},l=a.delay||s.delay||0,{elapsed:h=0}=s;h-=im(l);let u={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-h,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.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:h,...u}){return!!Object.keys(u).length}(a)&&Object.assign(u,((t,{keyframes:e})=>e.length>2?sP:p.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:sS:sk)(t,u)),u.duration&&(u.duration=im(u.duration)),u.repeatDelay&&(u.repeatDelay=im(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let c=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(sx(u),0===u.delay&&(c=!0)),(tO.instantAnimations||tO.skipAnimations)&&(c=!0,sx(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,c&&!r&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"}){let s=t.filter(sj),n=e&&"loop"!==i&&e%2==1?0:s.length-1;return s[n]}(u.keyframes,a);if(void 0!==t)return void tD.update(()=>{u.onUpdate(t),u.onComplete()})}return a.isSync?new sa(u):new sT(u)};function sE(t,e,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:o,...a}=e,l=r?.reduceMotion;s&&(r=s);let h=[],u=n&&t.animationState&&t.animationState.getState()[n];for(let e in a){let s=t.getValue(e,t.latestValues[e]??null),n=a[e];if(void 0===n||u&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(u,e))continue;let o={delay:i,...ic(r||{},e)},c=s.get();if(void 0!==c&&!s.isAnimating&&!Array.isArray(n)&&n===c&&!o.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let i=t.props[is];if(i){let t=window.MotionHandoffAnimation(i,e,tD);null!==t&&(o.startTime=t,d=!0)}}ip(t,e);let p=l??t.shouldReduceMotion;s.start(sA(e,s,n,p&&ts.has(e)?{type:!1}:o,t,d));let m=s.animation;m&&h.push(m)}return o&&Promise.all(h).then(()=>{tD.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:s={},...n}=iu(t,e)||{};for(let e in n={...n,...i}){var r;let i=id(r=n[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,t2(i))}}(t,o)})}),h}function sM(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 sC(t,e,i={}){let s=iu(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);let r=s?()=>Promise.all(sE(t,s,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=n;
1return 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(sC(l,e,{...o,delay:i+("function"==typeof s?0:s)+sM(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:a}=n;if(!a)return Promise.all([r(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[r,o]:[o,r];return t().then(()=>e())}}let sV=ee.length;function sO(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 sR=[...et].reverse(),sL=et.length;function sD(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sN(){return{animate:sD(!0),whileInView:sD(),whileHover:sD(),whileTap:sD(),whileDrag:sD(),whileFocus:sD(),exit:sD()}}let sI=0;function sB(t){return[t("x"),t("y")]}let sF=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function sU(t){return sF.has(t.tagName)||!0===t.isContentEditable}function s$(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}let sz={x:!1,y:!1};function s_(t){return t.max-t.min}function sW(t,e,i,s=.5){t.origin=s,t.originPoint=eP(e.min,e.max,t.origin),t.scale=s_(i)/s_(e),t.translate=eP(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 sH(t,e,i,s){sW(t.x,e.x,i.x,s?s.originX:void 0),sW(t.y,e.y,i.y,s?s.originY:void 0)}function sY(t,e,i){t.min=i.min+e.min,t.max=t.min+s_(e)}function sK(t,e,i){t.min=e.min-i.min,t.max=t.min+s_(e)}function sX(t,e,i){sK(t.x,e.x,i.x),sK(t.y,e.y,i.y)}let sG=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function sq(t){return{point:{x:t.pageX,y:t.pageY}}}function sZ(t,e,i,s){return s$(t,e,t=>sG(t)&&i(t,sq(t)),s)}let sJ=({current:t})=>t?t.ownerDocument.defaultView:null,sQ=(t,e)=>Math.abs(t-e),s0=new Set(["auto","scroll"]);class s1{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=s5(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(sQ(t.x,e.x)**2+sQ(t.y,e.y)**2)>=this.distanceThreshold);if(!s&&!n)return;let{point:r}=i,{timestamp:o}=tI;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=s2(e,this.transformPagePoint),tD.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=s5("pointercancel"===t.type?this.lastMoveEventInfo:s2(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),s&&s(t,r)},!sG(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;const a=s2(sq(t),this.transformPagePoint),{point:l}=a,{timestamp:h}=tI;this.history=[{...l,timestamp:h}];const{onSessionStart:u}=e;u&&u(t,s5(a,this.history)),this.removeListeners=ig(sZ(this.contextWindow,"pointermove",this.handlePointerMove),sZ(this.contextWindow,"pointerup",this.handlePointerUp),sZ(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(s0.has(t.overflowX)||s0.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,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),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),tD.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tN(this.updatePoint)}}function s2(t,e){return e?{point:e(t.point)}:t}function s3(t,e){return{x:t.x-e.x,y:t.y-e.y}}function s5({point:t},e){return{point:t,delta:s3(t,s4(e)),offset:s3(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,s=s4(t);for(;e>=0&&(i=t[e],!(s.timestamp-i.timestamp>im(.1)));)e--;if(!i)return{x:0,y:0};let n=(s.timestamp-i.timestamp)/1e3;if(0===n)return{x:0,y:0};let r={x:(s.x-i.x)/n,y:(s.y-i.y)/n};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e)}}function s4(t){return t[t.length-1]}function s9(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 s6(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 s8(t,e,i){return{min:s7(t,e),max:s7(t,i)}}function s7(t,e){return"number"==typeof t?t:t[e]||0}
1let nt=new WeakMap;class ne{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=te(),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.stopAnimation(),this.snapToCursor(sq(t).point)):this.pauseAnimation()},r=(t,e)=>{this.stopAnimation();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(sz[t])return null;else return sz[t]=!0,()=>{sz[t]=!1};return sz.x||sz.y?null:(sz.x=sz.y=!0,()=>{sz.x=sz.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),sB(t=>{let e=this.getAxisMotionValue(t).get()||0;if(E.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=s_(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&tD.postRender(()=>n(t,e)),ip(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&&r(t,e)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>sB(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:h}=this.getProps();this.panSession=new s1(t,{onSessionStart:n,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:sJ(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&&tD.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||!ni(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?eP(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?eP(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&&io(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:s9(t.x,i,n),y:s9(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:s8(t,"left","right"),y:s8(t,"top","bottom")}}(e),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&sB(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||!io(e))return!1;let s=e.current;th(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;
1let r=function(t,e,i){let s=e$(t,i),{scroll:n}=e;return n&&(eB(s.x,n.offset.x),eB(s.y,n.offset.y)),s}(s,n.root,this.visualElement.getTransformPagePoint()),o=(t=n.layout.layoutBox,{x:s6(t.x,r.x),y:s6(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=eC(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(sB(o=>{if(!ni(o,e,this.currentDirection))return;let l=a&&a[o]||{};r&&(l={min:0,max:0});let h={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,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return ip(this.visualElement,t),i.start(sA(t,i,0,e,this.visualElement,!1))}stopAnimation(){sB(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){sB(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){sB(e=>{let{drag:i}=this.getProps();if(!ni(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]-eP(i,r,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!io(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};sB(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=s_(i),(a=s_(n))>o?r=i7(n.min,n.max-o,i.min):o>a&&(r=i7(i.min,i.max-a,n.min)),m(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.resolveConstraints(),sB(e=>{if(!ni(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:r}=this.constraints[e];i.set(eP(n,r,s[e]))})}addListeners(){if(!this.visualElement.current)return;nt.set(this.visualElement,this);let t=this.visualElement.current,e=sZ(t,"pointerdown",e=>{let{drag:i,dragListener:s=!0}=this.getProps(),n=e.target,r=n!==t&&sU(n);i&&s&&!r&&this.start(e)}),i=()=>{let{dragConstraints:t}=this.getProps();io(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,n=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),tD.read(i);let r=s$(window,"resize",()=>this.scalePositionWithinConstraints()),o=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(sB(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),e(),n(),o&&o()}}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 ni(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let ns=t=>(e,i)=>{t&&tD.postRender(()=>t(e,i))},nn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var nr=h;function no(t=!0){let e=(0,h.useContext)(e3);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:n}=e,r=(0,h.useId)();(0,h.useEffect)(()=>{if(t)return n(r)},[t]);let o=(0,h.useCallback)(()=>t&&s&&s(r),[r,s,t]);return!i&&s?[!1,o]:[!0]}let na=!1;class nl extends nr.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),na&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),nn.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}),na=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==n?r.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?r.promote():r.relegate()||tD.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tJ.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;na=!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 nh(t){let[e,i]=no(),s=(0,nr.useContext)(eH);return(0,r.jsx)(nl,{...t,layoutGroup:s,switchLayoutGroup:(0,nr.useContext)(ir),isPresent:e,safeToRemove:i})}function nu(t){return"object"==typeof t&&null!==t}function nc(t){return nu(t)&&"ownerSVGElement"in t}let nd=["TopLeft","TopRight","BottomLeft","BottomRight"],np=nd.length,nm=t=>"string"==typeof t?parseFloat(t):t,nf=t=>"number"==typeof t||M.test(t);function ny(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let ng=nx(0,.5,i5),nv=nx(.5,.95,tV);function nx(t,e,i){return s=>s<t?0:s>e?1:i(i7(t,e,s))}function nb(t,e){t.min=e.min,t.max=e.max}function nw(t,e){nb(t.x,e.x),nb(t.y,e.y)}function nT(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nS(t,e,i,s,n){return t-=e,t=s+1/i*(t-s),void 0!==n&&(t=s+1/n*(t-s)),t}function nP(t,e,[i,s,n],r,o){!function(t,e=0,i=1,s=.5,n,r=t,o=t){if(E.test(e)&&(e=parseFloat(e),e=eP(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eP(r.min,r.max,s);t===r&&(a-=e),t.min=nS(t.min,e,i,a,n),t.max=nS(t.max,e,i,a,n)}(t,e[i],e[s],e[n],e.scale,r,o)}let nk=["x","scaleX","originX"],nj=["y","scaleY","originY"];function nA(t,e,i,s){nP(t.x,e,nk,i?i.x:void 0,s?s.x:void 0),nP(t.y,e,nj,i?i.y:void 0,s?s.y:void 0)}function nE(t){return 0===t.translate&&1===t.scale}function nM(t){return nE(t.x)&&nE(t.y)}function nC(t,e){return t.min===e.min&&t.max===e.max}function nV(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nO(t,e){return nV(t.x,e.x)&&nV(t.y,e.y)}function nR(t){return s_(t.x)/s_(t.y)}function nL(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class nD{constructor(){this.members=[]}add(t){tG(this.members,t),t.scheduleRender()}remove(t){if(tq(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){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender();let s=i.options.layoutDependency,n=t.options.layoutDependency;(void 0===s||void 0===n||s!==n)&&(t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0));let{crossfade:r}=t.options;!1===r&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nN=(t,e)=>t.depth-e.depth;class nI{constructor(){this.children=[],this.isDirty=!1}add(t){tG(this.children,t),this.isDirty=!0}remove(t){tq(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nN),this.isDirty=!1,this.children.forEach(t)}}let nB=["","X","Y","Z"],nF=0;function nU(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function n$({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(t={},i=e?.()){this.id=nF++,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,this.nodes.forEach(nW),this.nodes.forEach(nZ),this.nodes.forEach(nJ),this.nodes.forEach(nH)},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 nI)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tZ),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=nc(e)&&!(nc(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;tD.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=t0.now(),r=({timestamp:t})=>{let i=t-e;i>=250&&(tN(r),n(i-250))},tD.setup(r,!0),i=()=>tN(r),nn.hasAnimatedSinceResize&&(nn.hasAnimatedSinceResize=!1,this.nodes.forEach(nq))}})}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()||n5,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!nO(this.targetLayout,s),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...ic(r,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||nq(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(),tN(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(nQ),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=i.props[is];if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",tD,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let 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(nK);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(nX);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(nG),this.nodes.forEach(nz),this.nodes.forEach(n_)):this.nodes.forEach(nX),this.clearAllSnapshots();let t=t0.now();tI.delta=m(0,1e3/60,t-tI.timestamp),tI.timestamp=t,tI.isProcessing=!0,tB.update.process(tI),tB.preRender.process(tI),tB.render.process(tI),tI.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tJ.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nY),this.sharedNodes.forEach(n0)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tD.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tD.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||s_(this.snapshot.measuredBox.x)||s_(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=te(),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&&!nM(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,r=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||eR(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)),n6((e=s).x),n6(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return te();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(n7))){let{scroll:t}=this.root;t&&(eB(e.x,t.offset.x),eB(e.y,t.offset.y))}return e}removeElementScroll(t){let e=te();if(nw(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&&nw(e,t),eB(e.x,n.offset.x),eB(e.y,n.offset.y))}return e}applyTransform(t,e=!1){let i=te();nw(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&&eU(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),eR(s.latestValues)&&eU(i,s.latestValues)}return eR(this.latestValues)&&eU(i,this.latestValues),i}removeTransform(t){let e=te();nw(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!eR(i.latestValues))continue;eO(i.latestValues)&&i.updateSnapshot();let s=te();nw(s,i.measurePageBox()),nA(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return eR(this.latestValues)&&nA(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!==tI.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=tI.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=te(),this.targetWithTransforms=te()),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,sY(o.x,a.x,l.x),sY(o.y,a.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nw(this.target,this.layout.layoutBox),eI(this.target,this.targetDelta)):nw(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)}}getClosestProjectingParent(){if(!(!this.parent||eO(this.parent.latestValues)||eL(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=te(),this.relativeTargetOrigin=te(),sX(this.relativeTargetOrigin,e,i),nw(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===tI.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;nw(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,o=this.treeScale.y;!function(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&&eU(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,eI(t,r)),s&&eR(n.latestValues)&&eU(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=te());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nT(this.prevProjectionDelta.x,this.projectionDelta.x),nT(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),sH(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===r&&this.treeScale.y===o&&nL(this.projectionDelta.x,this.prevProjectionDelta.x)&&nL(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Q(),this.projectionDelta=Q(),this.projectionDeltaWithTransform=Q()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,n=s?s.latestValues:{},r={...this.latestValues},o=Q();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=te(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(n3));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(n1(o.x,t.x,s),n1(o.y,t.y,s),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,d,p,m,f,y;sX(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,y=s,n2(p.x,m.x,f.x,y),n2(p.y,m.y,f.y,y),i&&(h=this.relativeTarget,d=i,nC(h.x,d.x)&&nC(h.y,d.y))&&(this.isProjectionDirty=!1),i||(i=te()),nw(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,s,n,r){n?(t.opacity=eP(0,i.opacity??1,ng(s)),t.opacityExit=eP(e.opacity??1,0,nv(s))):r&&(t.opacity=eP(e.opacity??1,i.opacity??1,s));for(let n=0;n<np;n++){let r=`border${nd[n]}Radius`,o=ny(e,r),a=ny(i,r);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nf(o)===nf(a)?(t[r]=Math.max(eP(nm(o),nm(a),s),0),(E.test(a)||E.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&&(t.rotate=eP(e.rotate||0,i.rotate||0,s))}(r,n,this.latestValues,s,c,u)),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&&(tN(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tD.update(()=>{var e,i,s;let n;nn.hasAnimatedSinceResize=!0,iv.layout++,this.motionValue||(this.motionValue=t2(0)),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:()=>{iv.layout--},onComplete:()=>{iv.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(n=ti(e)?e:t2(e)).start(sA("",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&&n8(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||te();let e=s_(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=s_(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}nw(e,i),eU(e,n),sH(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nD),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&&nU("z",t,s,this.animationValues);for(let e=0;e<nB.length;e++)nU(`rotate${nB[e]}`,t,s,this.animationValues),nU(`skew${nB[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=e2(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=e2(e?.pointerEvents)||""),this.hasProjected&&!eR(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,ek){if(void 0===n[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=ek[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?e2(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(nK),this.root.sharedNodes.clear()}}}function nz(t){t.updateLayout()}function n_(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?sB(t=>{let s=r?e.measuredBox[t]:e.layoutBox[t],n=s_(s);s.min=i[t].min,s.max=s.min+n}):n8(n,e.layoutBox,i)&&sB(s=>{let n=r?e.measuredBox[s]:e.layoutBox[s],o=s_(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=Q();sH(o,i,e.layoutBox);let a=Q();r?sH(a,t.applyTransform(s,!0),e.measuredBox):sH(a,i,e.layoutBox);let l=!nM(o),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:r}=s;if(n&&r){let o=te();sX(o,e.layoutBox,n.layoutBox);let a=te();sX(a,i,r.layoutBox),nO(o,a)||(h=!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:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function nW(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function nH(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function nY(t){t.clearSnapshot()}function nK(t){t.clearMeasurements()}function nX(t){t.isLayoutDirty=!1}function nG(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function nq(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function nZ(t){t.resolveTargetDelta()}function nJ(t){t.calcProjection()}function nQ(t){t.resetSkewAndRotation()}function n0(t){t.removeLeadSnapshot()}function n1(t,e,i){t.translate=eP(e.translate,0,i),t.scale=eP(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function n2(t,e,i,s){t.min=eP(e.min,i.min,s),t.max=eP(e.max,i.max,s)}function n3(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let n5={duration:.45,ease:[.4,0,.1,1]},n4=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),n9=n4("applewebkit/")&&!n4("chrome/")?Math.round:tV;function n6(t){t.min=n9(t.min),t.max=n9(t.max)}function n8(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nR(e)-nR(i)))}function n7(t){return t!==t.root&&t.scroll?.wasRoot}let rt=n$({attachResizeListener:(t,e)=>s$(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),re={current:void 0},ri=n$({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!re.current){let t=new rt({});t.mount(window),t.setOptions({layoutScroll:!0}),re.current=t}return re.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function rs(t,e){let i=function(t){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,i=(void 0)??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(t=>null!=t)}(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}
1function rn(t){return!("touch"===t.pointerType||sz.x||sz.y)}function rr(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&tD.postRender(()=>n(e,sq(e)))}function ro(t){return nu(t)&&"offsetHeight"in t}let ra=(t,e)=>!!e&&(t===e||ra(t,e.parentElement)),rl=new WeakSet;function rh(t){return e=>{"Enter"===e.key&&t(e)}}function ru(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function rc(t){return sG(t)&&!(sz.x||sz.y)}function rd(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&&tD.postRender(()=>n(e,sq(e)))}let rp=new WeakMap,rm=new WeakMap,rf=t=>{let e=rp.get(t.target);e&&e(t)},ry=t=>{t.forEach(rf)},rg={some:0,all:1},rv=function(t,e){if("u"<typeof Proxy)return il;let i=new Map,s=(i,s)=>il(i,s,t,e);return new Proxy((t,e)=>s(t,e),{get:(n,r)=>"create"===r?s:(i.has(r)||i.set(r,il(r,void 0,t,e)),i.get(r))})}({animation:{Feature:class extends ih{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=>sC(t,e,i)));else if("string"==typeof e)s=sC(t,e,i);else{let n="function"==typeof e?iu(t,e,i.custom):e;s=Promise.all(sE(t,n,i))}return s.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=sN(),s=!0,n=e=>(i,s)=>{let n=iu(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 r(r){let{props:o}=t,a=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<sV;t++){let s=ee[t],n=e.props[s];(t7(n)||!1===n)&&(i[s]=n)}return i}(t.parent)||{},l=[],h=new Set,u={},c=1/0;for(let e=0;e<sL;e++){var d,p;let m=sR[e],f=i[m],y=void 0!==o[m]?o[m]:a[m],g=t7(y),v=m===r?f.isActive:null;!1===v&&(c=e);let x=y===a[m]&&y!==o[m]&&g;if(x&&s&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...u},!f.isActive&&null===v||!y&&!f.prevProp||t8(y)||"boolean"==typeof y)continue;let b=(d=f.prevProp,"string"==typeof(p=y)?p!==d:!!Array.isArray(p)&&!sO(p,d)),w=b||m===r&&f.isActive&&!x&&g||e>c&&g,T=!1,S=Array.isArray(y)?y:[y],P=S.reduce(n(m),{});!1===v&&(P={});let{prevResolvedValues:k={}}=f,j={...k,...P},A=e=>{w=!0,h.has(e)&&(T=!0,h.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in j){let e=P[t],i=k[t];if(!u.hasOwnProperty(t))(id(e)&&id(i)?sO(e,i):e===i)?void 0!==e&&h.has(t)?A(t):f.protectedKeys[t]=!0:null!=e?A(t):h.add(t)}f.prevProp=y,f.prevResolvedValues=P,f.isActive&&(u={...u,...P}),s&&t.blockInitialAnimation&&(w=!1);let E=x&&b,M=!E||T;w&&M&&l.push(...S.map(e=>{let i={type:m};if("string"==typeof e&&s&&!E&&t.manuallyAnimateOnMount&&t.parent){let{parent:s}=t,n=iu(s,e);if(s.enteringChildren&&n){let{delayChildren:e}=n.transition||{};i.delay=sM(s.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof o.initial){let i=iu(t,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=s??null}),l.push({animation:e})}let m=!!l.length;return s&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(m=!1),s=!1,m?e(l):Promise.resolve()}return{animateChanges:r,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=r(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=sN()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();t8(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 ih{constructor(){super(...arguments),this.id=sI++}
1update(){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(()=>{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 ih{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:rg[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;rm.has(i)||rm.set(i,{});let s=rm.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(ry,{root:t,...e})),s[n]}(a),rp.set(t,l),e.observe(t),()=>{rp.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends ih{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,n,r]=rs(t,i),o=t=>{let s=t.currentTarget;if(!rc(t))return;rl.add(s);let r=e(s,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),rl.has(s)&&rl.delete(s),rc(t)&&"function"==typeof r&&r(t,{success:e})},a=t=>{o(t,s===window||s===document||i.useGlobalTarget||ra(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),ro(t)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=rh(()=>{if(rl.has(i))return;ru(i,"down");let t=rh(()=>{ru(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>ru(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,n)),sU(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(rd(this.node,e,"Start"),(t,{success:e})=>rd(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends ih{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=ig(s$(this.node.current,"focus",()=>this.onFocus()),s$(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends ih{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,n,r]=rs(t,i),o=t=>{if(!rn(t))return;let{target:i}=t,s=e(i,t);if("function"!=typeof s||!i)return;let r=t=>{rn(t)&&(s(t),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,n)};return s.forEach(t=>{t.addEventListener("pointerenter",o,n)}),r}(t,(t,e)=>(rr(this.node,e,"Start"),t=>rr(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends ih{constructor(){super(...arguments),this.removePointerDownListener=tV}onPointerDown(t){this.session=new s1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sJ(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:ns(t),onStart:ns(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&tD.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=sZ(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 ih{constructor(t){super(t),this.removeGroupControls=tV,this.removeListeners=tV,this.controls=new ne(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tV}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:ri,MeasureLayout:nh},layout:{ProjectionNode:ri,MeasureLayout:nh}},(t,e)=>e.isSVG??eW(t)?new eM(e):new ez(e,{allowProjection:t!==h.Fragment}));var rx=h;function rb(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class rw extends rx.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;
1if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=ro(t)&&t.offsetWidth||0,s=ro(t)&&t.offsetHeight||0,n=this.props.sizeRef.current;n.height=e.offsetHeight||0,n.width=e.offsetWidth||0,n.top=e.offsetTop,n.left=e.offsetLeft,n.right=i-n.width-n.left,n.bottom=s-n.height-n.top}return null}componentDidUpdate(){}render(){return this.props.children}}function rT({children:t,isPresent:e,anchorX:i,anchorY:s,root:n}){let o=(0,rx.useId)(),a=(0,rx.useRef)(null),l=(0,rx.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:u}=(0,rx.useContext)(eK),c=function(...t){return h.useCallback(function(...t){return e=>{let i=!1,s=t.map(t=>{let s=rb(t,e);return i||"function"!=typeof s||(i=!0),s});if(i)return()=>{for(let e=0;e<s.length;e++){let i=s[e];"function"==typeof i?i():rb(t[e],null)}}}}(...t),t)}(a,t.props?.ref??t?.ref);return(0,rx.useInsertionEffect)(()=>{let{width:t,height:r,top:h,left:c,right:d,bottom:p}=l.current;if(e||!a.current||!t||!r)return;let m="left"===i?`left: ${c}`:`right: ${d}`,f="bottom"===s?`bottom: ${p}`:`top: ${h}`;a.current.dataset.motionPopId=o;let y=document.createElement("style");u&&(y.nonce=u);let g=n??document.head;return g.appendChild(y),y.sheet&&y.sheet.insertRule(` 2 [data-motion-pop-id="${o}"] { 3 position: absolute !important; 4 width: ${t}px !important; 5 height: ${r}px !important; 6 ${m}px !important; 7 ${f}px !important; 8 } 9 `),()=>{g.contains(y)&&g.removeChild(y)}},[e]),(0,r.jsx)(rw,{isPresent:e,childRef:a,sizeRef:l,children:rx.cloneElement(t,{ref:c})})}let rS=({children:t,initial:e,isPresent:i,onExitComplete:s,custom:n,presenceAffectsLayout:o,mode:a,anchorX:l,anchorY:u,root:c})=>{let d=e5(rP),p=(0,h.useId)(),m=!0,f=(0,h.useMemo)(()=>(m=!1,{id:p,initial:e,isPresent:i,custom:n,onExitComplete:t=>{for(let e of(d.set(t,!0),d.values()))if(!e)return;s&&s()},register:t=>(d.set(t,!1),()=>d.delete(t))}),[i,d,s]);return o&&m&&(f={...f}),(0,h.useMemo)(()=>{d.forEach((t,e)=>d.set(e,!1))},[i]),h.useEffect(()=>{i||d.size||!s||s()},[i]),"popLayout"===a&&(t=(0,r.jsx)(rT,{isPresent:i,anchorX:l,anchorY:u,root:c,children:t})),(0,r.jsx)(e3.Provider,{value:f,children:t})};function rP(){return new Map}let rk=t=>t.key||"";function rj(t){let e=[];return h.Children.forEach(t,t=>{(0,h.isValidElement)(t)&&e.push(t)}),e}let rA=({children:t,custom:e,initial:i=!0,onExitComplete:s,presenceAffectsLayout:n=!0,mode:o="sync",propagate:a=!1,anchorX:l="left",anchorY:u="top",root:c})=>{let[d,p]=no(a),m=(0,h.useMemo)(()=>rj(t),[t]),f=a&&!d?[]:m.map(rk),y=(0,h.useRef)(!0),g=(0,h.useRef)(m),v=e5(()=>new Map),x=(0,h.useRef)(new Set),[b,w]=(0,h.useState)(m),[T,S]=(0,h.useState)(m);ia(()=>{y.current=!1,g.current=m;for(let t=0;t<T.length;t++){let e=rk(T[t]);f.includes(e)?(v.delete(e),x.current.delete(e)):!0!==v.get(e)&&v.set(e,!1)}},[T,f.length,f.join("-")]);let P=[];if(m!==b){let t=[...m];for(let e=0;e<T.length;e++){let i=T[e],s=rk(i);f.includes(s)||(t.splice(e,0,i),P.push(i))}return"wait"===o&&P.length&&(t=P),S(rj(t)),w(m),null}let{forceRender:k}=(0,h.useContext)(eH);return(0,r.jsx)(r.Fragment,{children:T.map(t=>{let h=rk(t),b=(!a||!!d)&&(m===T||f.includes(h));return(0,r.jsx)(rS,{isPresent:b,initial:(!y.current||!!i)&&void 0,custom:e,presenceAffectsLayout:n,mode:o,root:c,onExitComplete:b?void 0:()=>{if(x.current.has(h)||(x.current.add(h),!v.has(h)))return;v.set(h,!0);let t=!0;v.forEach(e=>{e||(t=!1)}),t&&(k?.(),S(g.current),a&&p?.(),s&&s())},anchorX:l,anchorY:u,children:t},h)})})};var rE=t.i(10354),rM=t.i(65249);let rC=({setIsMobileMenuOpen:t})=>{let e=(0,rM.usePathname)();(0,h.useEffect)(()=>{t(!1)},[e,t])};function rV(){let t=(0,c.useIsJa)(),e=(0,c.useChangeLocale)();return(0,r.jsx)("div",{className:"flex space-x-2 font-bold",children:t?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"opacity-50",children:"JP"}),(0,r.jsx)("button",{type:"button",onClick:()=>e("en"),children:(0,r.jsx)("div",{className:"hover:opacity-50",children:"EN"})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",onClick:()=>e("ja"),children:(0,r.jsx)("div",{className:"hover:opacity-50",children:"JP"})}),(0,r.jsx)("div",{className:"opacity-50",children:"EN"})]})})}function rO({links:t}){let e=(0,c.useI18n)();return(0,r.jsx)(rv.nav,{className:"absolute -left-8 top-full mt-0.5 whitespace-nowrap",initial:{opacity:0}
9,animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},children:(0,r.jsx)("ul",{className:"border-b-2 border-toyokumo-lightgray bg-white px-8 py-4 shadow-md",children:t.map(({href:t,label:i},s)=>(0,r.jsx)("li",{className:"pt-2 text-sm font-normal leading-6",children:(0,r.jsx)(u.default,{href:t,children:"string"==typeof i?e(i):i})},s))})})}function rR({href:t,pathname:e,children:i,subLinks:s}){let n=(0,c.useI18n)(),[o,a]=(0,h.useState)(!1);return(0,r.jsxs)("div",{className:`group relative box-content flex h-full items-center ${t&&e?.endsWith(t)||s?.find(t=>e?.endsWith(t.href))?"border-b-2 border-toyokumo-blue":""}`,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[null==t?(0,r.jsx)("span",{children:i}):(0,r.jsx)(u.default,{href:t,children:"string"==typeof i?n(i):i}),(0,r.jsx)(rA,{children:s&&o&&(0,r.jsx)(rO,{links:s})})]})}function rL(){let t=(0,rM.usePathname)(),e=(0,c.useIsJa)(),i=(0,c.useI18n)();return(0,r.jsxs)("div",{className:"ml-auto hidden h-full items-center space-x-8 font-bold lg:flex",children:[(0,r.jsx)(rR,{href:"/aboutus",pathname:t,subLinks:e?[{href:"/aboutus/philosophy",label:"ç§ãã¡ã«ã¤ãã¦"},{href:"/aboutus/directors",label:"çµå¶é£ç´¹ä»"},{href:"/aboutus/origin",label:"社åã®ç±æ¥"},{href:"/aboutus/toyokumochan",label:"ãã¨ã¯ã¢ã¡ããã«ã¤ãã¦"},{href:"/aboutus/access",label:"ã¢ã¯ã»ã¹"}]:void 0,children:i("ä¼ç¤¾æ
å ±")}),(0,r.jsx)(rR,{href:"/product",pathname:t,children:i("製å")}),e&&(0,r.jsx)(rR,{pathname:t,subLinks:[{href:"/brand/with-tech",label:"with Tech"},{href:"/brand/design",label:"ãã¶ã¤ã³"},{href:"/brand/guideline",label:"ãã©ã³ãã¬ã¤ãã©ã¤ã³"}],children:"ãã©ã³ã"}),e&&(0,r.jsx)(rR,{href:"/careers",pathname:t,subLinks:[{href:"/careers/topmessage",label:"代表ã¡ãã»ã¼ã¸"},{href:"/careers/software-engineer",label:"ã½ããã¦ã§ã¢ã¨ã³ã¸ãã¢"},{href:"/careers/jobs",label:"ä¸éæ¡ç¨"},{href:"/careers/new-graduates",label:"æ°åæ¡ç¨"},{href:"https://careers.toyokumo.co.jp/",label:(0,r.jsxs)("span",{className:"flex items-center space-x-1",children:[(0,r.jsx)("span",{children:"Toyokumo inside (社å¡ã®å£°)"}),(0,r.jsx)(l.MdOpenInNew,{size:24})]})},{href:"https://www.youtube.com/channel/UCWSpzs4Qt8Cb-c3u6Mdnl0Q",label:(0,r.jsxs)("span",{className:"flex items-center space-x-1",children:[(0,r.jsx)("span",{children:"æ¡ç¨ãã£ã³ãã«(Youtube)"}),(0,r.jsx)(l.MdOpenInNew,{size:24})]})},{href:"/careers/recruitment-articles",label:"ã¡ãã£ã¢æ²è¼ï¼æ¡ç¨é¢é£ï¼"},{href:"/careers/faq",label:"æ¡ç¨ãããã質å"}],children:"æ¡ç¨"}),(0,r.jsx)(rR,{href:"/ir",pathname:t,subLinks:e?[{href:"/ir/message",label:"æ ªä¸»ã»æè³å®¶ã®çæ§ã¸"},{href:"/ir/strategy",label:"äºæ¥æ¦ç¥"},{href:"/ir/summary",label:"財åæ
å ±"},{href:"/ir/monthly-info",label:"ææ¬¡å ±å"},{href:"/ir/results",label:"æ±ºç®æ
å ±ã»åç»"},{href:"/ir/library",label:"IRã©ã¤ãã©ãªã¼"},{href:"/ir/calendar",label:"IRã«ã¬ã³ãã¼"},{href:"/ir/faq",label:"IRãããã質å"},{href:"https://www.youtube.com/channel/UCgiikxE9ul1bwh4g4lI46WA",label:(0,r.jsxs)("span",{className:"flex items-center space-x-1",children:[(0,r.jsx)("span",{children:"IRãã£ã³ãã«"}),(0,r.jsx)(l.MdOpenInNew,{size:24})]})},{href:"/ir/sustainability",label:"ãµã¹ããããªãã£"},{href:"/ir/contact",label:"IRãåãåãã"},{href:"/disclosure_policy",label:"ãã£ã¹ã¯ãã¼ã¸ã£ã¼ããªã·ã¼"},{href:"/ir/disclaimer",label:"å
責äºé
"},{href:"/ir/stock",label:"æ ªå¼æ
å ±"}]:[{href:"/ir/message",label:"æ ªä¸»ã»æè³å®¶ã®çæ§ã¸"},{href:"/ir/strategy",label:"äºæ¥æ¦ç¥"},{href:"/ir/summary",label:"財åæ
å ±"},{href:"/ir/monthly-info",label:"ææ¬¡å ±å"},{href:"/ir/library",label:"IRã©ã¤ãã©ãªã¼"},{href:"/ir/calendar",label:"IRã«ã¬ã³ãã¼"},{href:"/ir/sustainability",label:"ãµã¹ããããªãã£"},{href:"/ir/contact",label:"IRãåãåãã"}],children:i("IR")}),e&&(0,r.jsx)(rR,{href:"/news",pathname:t,subLinks:[{href:"/category/announcement",label:"ãã¬ã¹ãªãªã¼ã¹"},{href:"/category/articles",label:"ã¡ãã£ã¢æ²è¼"}],children:"ãã¥ã¼ã¹"}),e&&(0,r.jsx)(rR,{pathname:t,subLinks:[{href:rE.BCP_MANUAL.href,label:rE.BCP_MANUAL.label},{href:rE.NOTEPM_BLOG.href,label:rE.NOTEPM_BLOG.label},{href:rE.TOYOKUMO_APP_BLOG.href,label:rE.TOYOKUMO_APP_BLOG.label},{href:rE.KINTONEAPP_BLOG.href,label:rE.KINTONEAPP_BLOG.label}],children:"éå¶ã¡ãã£ã¢"}),e&&(0,r.jsx)(rR,{href:"/contact",pathname:t,children:"ãåãåãã"}),(0,r.jsx)(rV,{})]})}function rD({href:t,text:e,icon:i}){let s=(0,rM.usePathname)(),n=t.startsWith("https://"),o=(0,c.useI18n)();return(0,r.jsx)(a.default,{href:t,target:n?"_blank":void 0,referrerPolicy:n?"origin-when-cross-origin":void 0,children:(0,r.jsxs)("div",{className:"flex items-center space-x-2 border-b-2 border-b-white py-2 text-xs font-bold text-toyokumo-gray",children:[(0,r.jsx)("span",{className:`border-l-2 pl-2 ${s===t?"border-l-toyokumo-blue":"border-l-white"}`,children:o(e)}),i]})})}function rN(){let[t,e]=(0,h.useState)(!0),[i,s]=(0,h.useState)(!0),[n,o]=(0,h.useState)(!0),[u,d]=(0,h.useState)(!0),[p,m]=(0,h.useState)(!0),[f,y]=(0,h.useState)(!0),g=(0,c.useI18n)(),v=(0,c.useIsJa)();return(0,r.jsxs)("div",{className:"mx-auto max-w-[351px]",children:[v?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("button",{type:"button",className:"flex w-full items-center py-3 pl-2",onClick:i=>{i.stopPropagation(),e(!t)},children:[(0,r.jsx)("span",{className:"text-sm font-bold",children:g("ä¼ç¤¾æ
å ±")}),(0,r.jsx)("span",{className:"ml-auto",children:t?(0,r.jsx)(l.MdExpandLess,{size:24,className:"text-toyokumo-gray"}):(0,r.jsx)(l.MdExpandMore,{size:24,className:"text-toyokumo-gray"})})]}),t&&(0,r.jsxs)("div",{className:"pl-3",children:[(0,r.jsx)(rD,{href:"/aboutus",text:"ä¼ç¤¾æ
å ±ããã"}),(0,r.jsx)(rD,{href:"/aboutus/philosophy",text:"ç§ãã¡ã«ã¤ãã¦"}),(0,r.jsx)(rD,{href:"/aboutus/directors",text:"çµå¶é£ç´¹ä»"}),(0,r.jsx)(rD,{href:"/aboutus/origin",text:"社åã®ç±æ¥"}),(0,r.jsx)(rD,{href:"/aboutus/toyokumochan",text:"ãã¨ã¯ã¢ã¡ããã«ã¤ãã¦"}),(0,r.jsx)(rD,{href:"/aboutus/access",text:"ã¢ã¯ã»ã¹"})]})]}):(0,r.jsx)(a.default,{href:"/aboutus",children:(0,r.jsx)("div",{className:"py-3 pl-2",children:(0,r.jsx)("span",{className:"text-sm font-bold",children:g("ä¼ç¤¾æ
å ±")})})}),(0,r.jsx)(a.default,{href:"/product",children:(0,r.jsx)("div",{className:"border-t border-t-toyokumo-gray py-3 pl-2",children:(0,r.jsx)("span",{className:"text-sm font-bold",children:g("製å")})})}),v&&(0,r.jsxs)("button",{type:"button",className:"flex w-full items-center border-t border-t-toyokumo-gray py-3 pl-2",onClick:t=>{t.stopPropagation(),s(!i)},children:[(0,r.jsx)("span",{className:"text-sm font-bold",children:"ãã©ã³ã"}),(0,r.jsx)("span",{className:"ml-auto",children:i?(0,r.jsx)(l.MdExpandLess,{size:24,className:"text-toyokumo-gray"}):(0,r.jsx)(l.MdExpandMore,{size:24,className:"text-toyokumo-gray"})})]}),v&&i&&(0,r.jsxs)("div",{className:"pl-3",children:[(0,r.jsx)(rD,{href:"/brand/with-tech",text:"with Tech"}),(0,r.jsx)(rD,{href:"/brand/design",text:"ãã¶ã¤ã³"}),(0,r.jsx)(rD,{href:"/brand/guideline",text:"ãã¶ã¤ã³ã¬ã¤ãã©ã¤ã³"})]}),v&&(0,r.jsxs)("button",{type:"button",className:"flex w-full items-center border-t border-t-toyokumo-gray py-3 pl-2",onClick:t=>{t.stopPropagation(),o(!n)},children:[(0,r.jsx)("span",{className:"text-sm font-bold",children:"æ¡ç¨"}),(0,r.jsx)("span",{className:"ml-auto",children:n?(0,r.jsx)(l.MdExpandLess,{size:24,className:"text-toyokumo-gray"}):(0,r.jsx)(l.MdExpandMore,{size:24,className:"text-toyokumo-gray"})})]}),v&&n&&(0,r.jsxs)("div",{className:"pl-3",children:[(0,r.jsx)(rD,{href:"/careers",text:"æ¡ç¨ããã"}),(0,r.jsx)(rD,{href:"/careers/topmessage",text:"代表ã¡ãã»ã¼ã¸"}),(0,r.jsx)(rD,{href:"/careers/software-engineer",text:"ã½ããã¦ã§ã¢ã¨ã³ã¸ãã¢"}),(0,r.jsx)(rD,{href:"/careers/jobs",text:"ä¸éæ¡ç¨"}),(0,r.jsx)(rD,{href:"/careers/new-graduates",text:"æ°åæ¡ç¨"}),(0,r.jsx)(rD,{href:"https://careers.toyokumo.co.jp/",text:"Toyokumo inside (社å¡ã®å£°)",icon:(0,r.jsx)(l.MdOpenInNew,{size:24})}),(0,r.jsx)(rD,{href:"https://www.youtube.com/channel/UCWSpzs4Qt8Cb-c3u6Mdnl0Q",text:"æ¡ç¨ãã£ã³ãã«(Youtube)",icon:(0,r.jsx)(l.MdOpenInNew,{size:24})}),(0,r.jsx)(rD,{href:"/careers/recruitment-articles",text:"ã¡ãã£ã¢æ²è¼ï¼æ¡ç¨é¢é£ï¼"}),(0,r.jsx)(rD,{href:"/careers/faq",text:"æ¡ç¨ãããã質å"})]}),(0,r.jsxs)("button",{type:"button",className:"flex w-full items-center border-t border-t-toyokumo-gray py-3 pl-2",onClick:t=>{t.stopPropagation(),d(!u)},children:[(0,r.jsx)("span",{className:"text-sm font-bold",children:g("IR")}),(0,r.jsx)("span",{className:"ml-auto",children:u?(0,r.jsx)(l.MdExpandLess,{size:24,className:"text-toyokumo-gray"}):(0,r.jsx)(l.MdExpandMore,{size:24,className:"text-toyokumo-gray"})})]}),u&&(0,r.jsxs)("div",{className:"pl-3",children:[(0,r.jsx)(rD,{href:"/ir",text:"IRããã"}),(0,r.jsx)(rD,{href:"/ir/message",text:"æ ªä¸»ã»æè³å®¶ã®çæ§ã¸"}),(0,r.jsx)(rD,{href:"/ir/strategy",text:"äºæ¥æ¦ç¥"}),(0,r.jsx)(rD,{href:"/ir/summary",text:"財åæ
å ±"}),(0,r.jsx)(rD,{href:"/ir/monthly-info",text:"ææ¬¡å ±å"}),v&&(0,r.jsx)(rD,{href:"/ir/results",text:"æ±ºç®æ
å ±ã»åç»"}),(0,r.jsx)(rD,{href:"/ir/library",text:"IRã©ã¤ãã©ãªã¼"}),(0,r.jsx)(rD,{href:"/ir/calendar",text:"IRã«ã¬ã³ãã¼"}),!v&&(0,r.jsx)(rD,{href:"/ir/sustainability",text:"ãµã¹ããããªãã£"}),!v&&(0,r.jsx)(rD,{href:"/ir/contact",text:"IRãåãåãã"}),v&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(rD,{href:"/ir/faq",text:"IRãããã質å"}),(0,r.jsx)(rD,{href:"https://www.youtube.com/channel/UCgiikxE9ul1bwh4g4lI46WA",text:"IRãã£ã³ãã«",icon:(0,r.jsx)(l.MdOpenInNew,{size:24})}),(0,r.jsx)(rD,{href:"/ir/sustainability",text:"ãµã¹ããããªãã£"}),(0,r.jsx)(rD,{href:"/ir/contact",text:"IRãåãåãã"}),(0,r.jsx)(rD,{href:"/disclosure_policy",text:"ãã£ã¹ã¯ãã¼ã¸ã£ã¼ããªã·ã¼"}),(0,r.jsx)(rD,{href:"/ir/disclaimer",text:"å
責äºé
"}),(0,r.jsx)(rD,{href:"/ir/stock",text:"æ ªå¼æ
å ±"})]})]}),v&&(0,r.jsxs)("button",{type:"button",className:"flex w-full items-center border-t border-t-toyokumo-gray py-3 pl-2",onClick:t=>{t.stopPropagation(),m(!p)},children:[(0,r.jsx)("span",{className:"text-sm font-bold",children:"ãã¥ã¼ã¹"}),(0,r.jsx)("span",{className:"ml-auto",children:p?(0,r.jsx)(l.MdExpandLess,{size:24,className:"text-toyokumo-gray"}):(0,r.jsx)(l.MdExpandMore,{size:24,className:"text-toyokumo-gray"})})]}),v&&p&&(0,r.jsxs)("div",{className:"pl-3",children:[(0,r.jsx)(rD,{href:"/news",text:"ãã¥ã¼ã¹ããã"}),(0,r.jsx)(rD,{href:"/category/announcement",text:"ãã¬ã¹ãªãªã¼ã¹"}),(0,r.jsx)(rD,{href:"/category/articles",text:"ã¡ãã£ã¢æ²è¼"})]}),v&&(0,r.jsxs)("button",{type:"button",className:"flex w-full items-center border-t border-t-toyokumo-gray py-3 pl-2",onClick:t=>{t.stopPropagation(),y(!f)},children:[(0,r.jsx)("span",{className:"text-sm font-bold",children:"éå¶ã¡ãã£ã¢"}),(0,r.jsx)("span",{className:"ml-auto",children:f?(0,r.jsx)(l.MdExpandLess,{size:24,className:"text-toyokumo-gray"}):(0,r.jsx)(l.MdExpandMore,{size:24,className:"text-toyokumo-gray"})})]}),v&&f&&(0,r.jsxs)("div",{className:"pl-3",children:[(0,r.jsx)(rD,{href:rE.BCP_MANUAL.href,text:rE.BCP_MANUAL.label}),(0,r.jsx)(rD,{href:rE.NOTEPM_BLOG.href,text:rE.NOTEPM_BLOG.label}),(0,r.jsx)(rD,{href:rE.TOYOKUMO_APP_BLOG.href,text:rE.TOYOKUMO_APP_BLOG.label}),(0,r.jsx)(rD,{href:rE.KINTONEAPP_BLOG.href,text:rE.KINTONEAPP_BLOG.label})]}),v&&(0,r.jsx)(a.default,{href:"/contact",children:(0,r.jsx)("div",{className:"border-t border-t-toyokumo-gray py-3 pl-2",children:(0,r.jsx)("span",{className:"text-sm font-bold",children:"ãåãåãã"})})})]})}t.s(["default",0,function(){let t=(0,c.useIsJa)(),[e,i]=(0,h.useState)(!1);return rC({setIsMobileMenuOpen:i}),(0,r.jsxs)("header",{children:[(0,r.jsx)("div",{className:"fixed inset-x-0 top-0 z-40 h-[3.375rem] border-b-2 border-b-toyokumo-lightgray bg-white lg:h-[4.875rem]",children:(0,r.jsxs)("nav",{className:"flex h-full max-w-screen-xl items-center px-4 lg:mx-auto lg:px-12",children:[(0,r.jsx)(a.default,{href:"/",children:t?(0,r.jsx)(o.default,{width:129,height:30,src:"/logo.svg",alt:"logo"}):(0,r.jsx)(o.default,{width:184,height:30,src:"/logo-en.svg",alt:"logo"})}),(0,r.jsx)("button",{type:"button",className:"ml-auto lg:hidden",onClick:()=>i(!0),children:(0,r.jsx)(l.MdOutlineMenu,{size:28})}),(0,r.jsx)(rL,{})]})}),e&&(0,r.jsxs)("div",{className:"fixed inset-x-0 top-0 z-50 bg-white lg:hidden",children:[(0,r.jsxs)("nav",{className:"flex h-[3.375rem] items-center border-b-2 border-b-toyokumo-lightgray px-4 py-2",children:[(0,r.jsx)(a.default,{href:"/",children:t?(0,r.jsx)(o.default,{width:129,height:30,src:"/logo.svg",alt:"logo"}):(0,r.jsx)(o.default,{width:184,height:30,src:"/logo-en.svg",alt:"logo"})}),(0,r.jsxs)("div",{className:"ml-auto flex items-center space-x-6 lg:hidden",children:[(0,r.jsx)(rV,{}),(0,r.jsx)("button",{type:"button",className:"ml-auto",onClick:()=>i(!1),children:(0,r.jsx)(l.MdClose,{size:28})})]})]}),(0,r.jsx)("div",{className:"h-[calc(100dvh-3.375rem)] overflow-y-scroll overscroll-contain px-4 py-16",children:(0,r.jsx)(rN,{})})]})]})},"useCloseMobileMenu",0,rC],88584)},25930,t=>{"use strict";t.i(21858);var e,i,s,n,r=t.i(40636),o=t.i(98622),a={},l=function(){if(e)return a;e=1,a.parse=function(t,e){if("string"!=typeof t)throw TypeError("argument str must be a string");var s={},n=t.length;if(n<2)return s;var r=e&&e.decode||u,o=0,a=0,c=0;do{if(-1===(a=t.indexOf("=",o)))break;if(-1===(c=t.indexOf(";",o)))c=n;else if(a>c){o=t.lastIndexOf(";",a-1)+1;continue}var d=l(t,o,a),p=h(t,a,d),m=t.slice(d,p);if(!i.call(s,m)){var f=l(t,a+1,c),y=h(t,c,f);34===t.charCodeAt(f)&&34===t.charCodeAt(y-1)&&(f++,y--);var g=t.slice(f,y);s[m]=function(t,e){try{return e(t)}catch(e){return t}}(g,r)}o=c+1}while(o<n)return s},a.serialize=function(e,i,a){var l=a&&a.encode||encodeURIComponent;if("function"!=typeof l)throw TypeError("option encode is invali
9d");if(!s.test(e))throw TypeError("argument name is invalid");var h=l(i);if(!n.test(h))throw TypeError("argument val is invalid");var u=e+"="+h;if(!a)return u;if(null!=a.maxAge){var c=Math.floor(a.maxAge);if(!isFinite(c))throw TypeError("option maxAge is invalid");u+="; Max-Age="+c}if(a.domain){if(!r.test(a.domain))throw TypeError("option domain is invalid");u+="; Domain="+a.domain}if(a.path){if(!o.test(a.path))throw TypeError("option path is invalid");u+="; Path="+a.path}if(a.expires){var d,p=a.expires;if(d=p,"[object Date]"!==t.call(d)||isNaN(p.valueOf()))throw TypeError("option expires is invalid");u+="; Expires="+p.toUTCString()}if(a.httpOnly&&(u+="; HttpOnly"),a.secure&&(u+="; Secure"),a.partitioned&&(u+="; Partitioned"),a.priority)switch("string"==typeof a.priority?a.priority.toLowerCase():a.priority){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; Priority=High";break;default:throw TypeError("option priority is invalid")}if(a.sameSite)switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:case"strict":u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"none":u+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return u};var t=Object.prototype.toString,i=Object.prototype.hasOwnProperty,s=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,n=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/;function l(t,e,i){do{var s=t.charCodeAt(e);if(32!==s&&9!==s)return e}while(++e<i)return i}function h(t,e,i){for(;e>i;){var s=t.charCodeAt(--e);if(32!==s&&9!==s)return e+1}return i}
9function u(t){return -1!==t.indexOf("%")?decodeURIComponent(t):t}return a}();function h(t,e={}){var i;let s=(i=t)&&"j"===i[0]&&":"===i[1]?i.substr(2):i;if(!e.doNotParse)try{return JSON.parse(s)}catch(t){}return t}let u=o.createContext(new class e{constructor(e,i={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;let t=this.cookies;this.cookies=l.parse(document.cookie),this._checkChanges(t)};const s="u"<typeof document?"":document.cookie;this.cookies=function(t){return"string"==typeof t?l.parse(t):"object"==typeof t&&null!==t?t:{}}(e||s),this.defaultSetOptions=i,this.HAS_DOCUMENT_COOKIE=function(){let e=t.g.TEST_HAS_DOCUMENT_COOKIE;return"boolean"==typeof e?e:"object"==typeof document&&"string"==typeof document.cookie}()}_emitChange(t){for(let e=0;e<this.changeListeners.length;++e)this.changeListeners[e](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(e=>{t[e]!==this.cookies[e]&&this._emitChange({name:e,value:h(this.cookies[e])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,e={}){return e.doNotUpdate||this.update(),h(this.cookies[t],e)}getAll(t={}){t.doNotUpdate||this.update();let e={};for(let i in this.cookies)e[i]=h(this.cookies[i],t);return e}set(t,e,i){i=i?Object.assign(Object.assign({},this.defaultSetOptions),i):this.defaultSetOptions;let s="string"==typeof e?e:JSON.stringify(e);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:s}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=l.serialize(t,s,i)),this._emitChange({name:t,value:e,options:i})}remove(t,e){let i=e=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),e),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=l.serialize(t,"",i)),this._emitChange({name:t,value:void 0,options:e})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&1===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){let e=this.changeListeners.indexOf(t);e>=0&&this.changeListeners.splice(e,1),this.HAS_DOCUMENT_COOKIE&&0===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}),{Provider:c,Consumer:d}=u;o.Component,"function"==typeof SuppressedError&&SuppressedError;var p={exports:{}},m={};!function(){if(!n){n=1;var t=(s||(s=1,p.exports=function(){if(i)return m;i=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,s=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,r=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,h=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,c=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,f=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,x=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function w(t){if("object"==typeof t&&null!==t){var i=t.$$typeof;switch(i){case e:switch(t=t.type){case h:case u:case n:case o:case r:case d:return t;default:switch(t=t&&t.$$typeof){case l:case c:case y:case f:case a:return t;default:return i}}case s:return i}}}function T(t){return w(t)===u}return m.AsyncMode=h,m.ConcurrentMode=u,m.ContextConsumer=l,m.ContextProvider=a,m.Element=e,m.ForwardRef=c,m.Fragment=n,m.Lazy=y,m.Memo=f,m.Portal=s,m.Profiler=o,m.StrictMode=r,m.Suspense=d,m.isAsyncMode=function(t){return T(t)||w(t)===h},m.isConcurrentMode=T,m.isContextConsumer=function(t){return w(t)===l},m.isContextProvider=function(t){return w(t)===a},m.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},m.isForwardRef=function(t){return w(t)===c},m.isFragment=function(t){return w(t)===n},m.isLazy=function(t){return w(t)===y},m.isMemo=function(t){return w(t)===f},m.isPortal=function(t){return w(t)===s},m.isProfiler=function(t){return w(t)===o},m.isStrictMode=function(t){return w(t)===r},m.isSuspense=function(t){return w(t)===d},m.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===u||t===o||t===r||t===d||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===f||t.$$typeof===a||t.$$typeof===l||t.$$typeof===c||t.$$typeof===v||t.$$typeof===x||t.$$typeof===b||t.$$typeof===g)},m.typeOf=w,m}
9()),p.exports),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[t.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[t.Memo]=o;Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype}}();var f=t.i(94753),y=t.i(91303),g=t.i(54755),v=t.i(76059);t.s(["default",0,function(){let[t,e]=(0,o.useState)(!0),[i,s]=function(t){let e=(0,o.useContext)(u);if(!e)throw Error("Missing <CookiesProvider>");let i=Object.assign(Object.assign({},{doNotUpdate:!0}),void 0),[s,n]=(0,o.useState)(()=>e.getAll(i));return"u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement&&(0,o.useLayoutEffect)(()=>{function r(){let r=e.getAll(i);(function(t,e,i){if(!t)return!0;for(let s of t)if(e[s]!==i[s])return!0;return!1})(t||null,r,s)&&n(r)}return e.addChangeListener(r),()=>{e.removeChangeListener(r)}},[e,s]),[s,(0,o.useMemo)(()=>e.set.bind(e),[e]),(0,o.useMemo)(()=>e.remove.bind(e),[e]),(0,o.useMemo)(()=>e.update.bind(e),[e])]}([f.CONSENT_COOKIE_NAME]);(0,o.useEffect)(()=>{e(!!i[f.CONSENT_COOKIE_NAME])},[i]);let n=(0,y.useI18n)();return t?null:(0,r.jsx)("div",{className:"fixed inset-x-0 bottom-0 z-50 bg-white drop-shadow-[0_2px_16px_rgba(174,124,79,0.24)]",children:(0,r.jsxs)("div",{className:"px-4 py-6 lg:flex lg:items-center lg:justify-between lg:px-12",children:[(0,r.jsx)("div",{children:(0,r.jsx)(g.default,{children:n("å½ã¦ã§ããµã¤ãã§ã¯ãã¢ã¯ã»ã¹æ°ã®éè¨ãªã©ãç®çã¨ãã¦Cookieã使ç¨ãã¦ãã¾ããå¼ãç¶ãé²è¦§ããå ´åãCookieã®ä½¿ç¨ãæ¿è«¾ãããã®ã¨ã¿ãªããã¾ãã")})}),(0,r.jsxs)("div",{className:"flex items-center justify-end gap-x-4 lg:ml-20 lg:shrink-0",children:[(0,r.jsx)("div",{children:(0,r.jsx)(v.default,{href:"/policy",children:(0,r.jsx)("span",{className:"text-sm font-bold text-toyokumo-blue",children:n("ãã©ã¤ãã·ã¼ããªã·ã¼")})})}),(0,r.jsx)("div",{children:(0,r.jsx)("button",{type:"button",className:"rounded bg-toyokumo-blue px-6 py-2 text-white",onClick:()=>{e(!0),s(f.CONSENT_COOKIE_NAME,!0,{path:"/",sameSite:"strict",secure:!0,maxAge:31536e3})},children:n("ã¯ã")})})]})]})})}],25930)}]);
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.