(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,98183,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={assign:function(){return l},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return a}};for(var s in r)Object.defineProperty(i,s,{enumerable:!0,get:r[s]});function n(e){let t={};for(let[i,r]of e.entries()){let e=t[i];void 0===e?t[i]=r:Array.isArray(e)?e.push(r):t[i]=[e,r]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;for(let[i,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(i,o(e));else t.set(i,o(r));return t}function l(e,...t){for(let i of t){for(let t of i.keys())e.delete(t);for(let[t,r]of i.entries())e.append(t,r)}return e}},95057,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={formatUrl:function(){return a},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var s in r)Object.defineProperty(i,s,{enumerable:!0,get:r[s]});let n=e.r(90809)._(e.r(98183)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:i}=e,r=e.protocol||"",s=e.pathname||"",a=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:i&&(c=t+(~i.indexOf(":")?`[${i}]`:i),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let u=e.search||l&&`?${l}`||"";return r&&!r.endsWith(":")&&(r+=":"),e.slashes||(!r||o.test(r))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),a&&"#"!==a[0]&&(a="#"+a),u&&"?"!==u[0]&&(u="?"+u),s=s.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${r}${c}${s}${u}${a}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return a(e)}},18581,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"useMergedRef",{enumerable:!0,get:function(){return s}});let r=e.r(71645);function s(e,t){let i=(0,r.useRef)(null),s=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=i.current;e&&(i.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(i.current=n(e,r)),t&&(s.current=n(t,r))},[e,t])}function n(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let i=e(t);return"function"==typeof i?i:()=>e(null)}}("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},18967,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return b},NormalizeError:function(){return v},PageNotFoundError:function(){return x},SP:function(){return f},ST:function(){return g},WEB_VITALS:function(){return n},execOnce:function(){return o},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return l},isResSent:function(){return h},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return m},stringifyError:function(){return k}};for(var s in r)Object.defineProperty(i,s,{enumerable:!0,get:r[s]});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,i=!1;return(...r)=>(i||(i=!0,t=e(...r)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>a.test(e);function c(){let{protocol:e,hostname:t,port:i}=window.location;return`${e}//${t}${i?":"+i:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function h(e){return e.finished||e.headersSent}function m(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let i=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(i&&h(i))return r;if(!r)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${r}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return r}let f="undefined"!=typeof performance,g=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class v extends Error{}class x extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class b extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function k(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"isLocalURL",{enumerable:!0,get:function(){return n}});let r=e.r(18967),s=e.r(52817);function n(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),i=new URL(e,t);return i.origin===t&&(0,s.hasBasePath)(i.pathname)}catch(e){return!1}}},84508,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},22016,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={default:function(){return y},useLinkStatus:function(){return x}};for(var s in r)Object.defineProperty(i,s,{enumerable:!0,get:r[s]});let n=e.r(90809),o=e.r(43476),a=n._(e.r(71645)),l=e.r(95057),c=e.r(8372),u=e.r(18581),d=e.r(18967),h=e.r(5550);e.r(33525);let m=e.r(91949),p=e.r(73668),f=e.r(9396);function g(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}function y(t){var i;let r,s,n,[l,y]=(0,a.useOptimistic)(m.IDLE_LINK_STATUS),x=(0,a.useRef)(null),{href:b,as:w,children:k,prefetch:j=null,passHref:T,replace:S,shallow:P,scroll:A,onClick:N,onMouseEnter:C,onTouchStart:E,legacyBehavior:M=!1,onNavigate:V,ref:R,unstable_dynamicOnHover:D,...L}=t;r=k,M&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let O=a.default.useContext(c.AppRouterContext),F=!1!==j,I=!1!==j?null===(i=j)||"auto"===i?f.FetchStrategy.PPR:f.FetchStrategy.Full:f.FetchStrategy.PPR,{href:B,as:z}=a.default.useMemo(()=>{let e=g(b);return{href:e,as:w?g(w):e}},[b,w]);if(M){if(r?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=a.default.Children.only(r)}let $=M?s&&"object"==typeof s&&s.ref:R,U=a.default.useCallback(e=>(null!==O&&(x.current=(0,m.mountLinkInstance)(e,B,O,I,F,y)),()=>{x.current&&((0,m.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,m.unmountPrefetchableInstance)(e)}),[F,B,O,I,y]),W={ref:(0,u.useMergedRef)(U,$),onClick(t){M||"function"!=typeof N||N(t),M&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!O||t.defaultPrevented||function(t,i,r,s,n,o,l){if("undefined"!=typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,p.isLocalURL)(i)){n&&(t.preventDefault(),location.replace(i));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);a.default.startTransition(()=>{d(r||i,n?"replace":"push",o??!0,s.current)})}}(t,B,z,x,S,A,V)},onMouseEnter(e){M||"function"!=typeof C||C(e),M&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),O&&F&&(0,m.onNavigationIntent)(e.currentTarget,!0===D)},onTouchStart:function(e){M||"function"!=typeof E||E(e),M&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),O&&F&&(0,m.onNavigationIntent)(e.currentTarget,!0===D)}};return(0,d.isAbsoluteUrl)(z)?W.href=z:M&&!T&&("a"!==s.type||"href"in s.props)||(W.href=(0,h.addBasePath)(z)),n=M?a.default.cloneElement(s,W):(0,o.jsx)("a",{...L,...W,children:r}),(0,o.jsx)(v.Provider,{value:l,children:n})}e.r(84508);let v=(0,a.createContext)(m.IDLE_LINK_STATUS),x=()=>(0,a.useContext)(v);("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},75157,e=>{"use strict";let t=(e=new Map,t=null,i)=>({nextPart:e,validators:t,classGroupId:i}),i=[],r=(e,t,i)=>{if(0==e.length-t)return i.classGroupId;let s=e[t],n=i.nextPart.get(s);if(n){let i=r(e,t+1,n);if(i)return i}let o=i.validators;if(null===o)return;let a=0===t?e.join("-"):e.slice(t).join("-"),l=o.length;for(let e=0;e{let r=t();for(let t in e)n(e[t],r,t,i);return r},n=(e,t,i,r)=>{let s=e.length;for(let n=0;n{"string"==typeof e?a(e,t,i):"function"==typeof e?l(e,t,i,r):c(e,t,i,r)},a=(e,t,i)=>{(""===e?t:u(t,e)).classGroupId=i},l=(e,t,i,r)=>{d(e)?n(e(r),t,i,r):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:i,validator:e}))},c=(e,t,i,r)=>{let s=Object.entries(e),o=s.length;for(let e=0;e{let r=e,s=i.split("-"),n=s.length;for(let e=0;e"isThemeGetter"in e&&!0===e.isThemeGetter,h=[],m=(e,t,i,r,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:i,maybePostfixModifierPosition:r,isExternal:s}),p=/\s+/,f=e=>{let t;if("string"==typeof e)return e;let i="";for(let r=0;r{let t=t=>t[e]||g;return t.isThemeGetter=!0,t},v=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,x=/^\((?:(\w[\w-]*):)?(.+)\)$/i,b=/^\d+\/\d+$/,w=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,k=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,j=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,T=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,S=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,P=e=>b.test(e),A=e=>!!e&&!Number.isNaN(Number(e)),N=e=>!!e&&Number.isInteger(Number(e)),C=e=>e.endsWith("%")&&A(e.slice(0,-1)),E=e=>w.test(e),M=()=>!0,V=e=>k.test(e)&&!j.test(e),R=()=>!1,D=e=>T.test(e),L=e=>S.test(e),O=e=>!I(e)&&!_(e),F=e=>Z(e,et,R),I=e=>v.test(e),B=e=>Z(e,ei,V),z=e=>Z(e,er,A),$=e=>Z(e,Q,R),U=e=>Z(e,ee,L),W=e=>Z(e,en,D),_=e=>x.test(e),X=e=>J(e,ei),Y=e=>J(e,es),H=e=>J(e,Q),q=e=>J(e,et),K=e=>J(e,ee),G=e=>J(e,en,!0),Z=(e,t,i)=>{let r=v.exec(e);return!!r&&(r[1]?t(r[1]):i(r[2]))},J=(e,t,i=!1)=>{let r=x.exec(e);return!!r&&(r[1]?t(r[1]):i)},Q=e=>"position"===e||"percentage"===e,ee=e=>"image"===e||"url"===e,et=e=>"length"===e||"size"===e||"bg-size"===e,ei=e=>"length"===e,er=e=>"number"===e,es=e=>"family-name"===e,en=e=>"shadow"===e,eo=((e,...t)=>{let n,o,a,l,c=e=>{let t=o(e);if(t)return t;let i=((e,t)=>{let{parseClassName:i,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:n}=t,o=[],a=e.trim().split(p),l="";for(let e=a.length-1;e>=0;e-=1){let t=a[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:m}=i(t);if(c){l=t+(l.length>0?" "+l:l);continue}let p=!!m,f=r(p?h.substring(0,m):h);if(!f){if(!p||!(f=r(h))){l=t+(l.length>0?" "+l:l);continue}p=!1}let g=0===u.length?"":1===u.length?u[0]:n(u).join(":"),y=d?g+"!":g,v=y+f;if(o.indexOf(v)>-1)continue;o.push(v);let x=s(f,p);for(let e=0;e0?" "+l:l)}return l})(e,n);return a(e,i),i};return l=u=>{var d;let p;return o=(n={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,i=Object.create(null),r=Object.create(null),s=(s,n)=>{i[s]=n,++t>e&&(t=0,r=i,i=Object.create(null))};return{get(e){let t=i[e];return void 0!==t?t:void 0!==(t=r[e])?(s(e,t),t):void 0},set(e,t){e in i?i[e]=t:s(e,t)}}})((d=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:i}=e,r=e=>{let t,i=[],r=0,s=0,n=0,o=e.length;for(let a=0;an?t-n:void 0)};if(t){let e=t+":",i=r;r=t=>t.startsWith(e)?i(t.slice(e.length)):m(h,!1,t,void 0,!0)}if(i){let e=r;r=t=>i({className:t,parseClassName:e})}return r})(d),sortModifiers:(p=new Map,d.orderSensitiveModifiers.forEach((e,t)=>{p.set(e,1e6+t)}),e=>{let t=[],i=[];for(let r=0;r0&&(i.sort(),t.push(...i),i=[]),t.push(s)):i.push(s)}return i.length>0&&(i.sort(),t.push(...i)),t}),...(e=>{let t=(e=>{let{theme:t,classGroups:i}=e;return s(i,t)})(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var i;let t,r,s;return -1===(i=e).slice(1,-1).indexOf(":")?void 0:(r=(t=i.slice(1,-1)).indexOf(":"),(s=t.slice(0,r))?"arbitrary.."+s:void 0)}let s=e.split("-"),n=+(""===s[0]&&s.length>1);return r(s,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=o[e],r=n[e];if(t){if(r){let e=Array(r.length+t.length);for(let t=0;tl(((...e)=>{let t,i,r=0,s="";for(;r{let e=y("color"),t=y("font"),i=y("text"),r=y("font-weight"),s=y("tracking"),n=y("leading"),o=y("breakpoint"),a=y("container"),l=y("spacing"),c=y("radius"),u=y("shadow"),d=y("inset-shadow"),h=y("text-shadow"),m=y("drop-shadow"),p=y("blur"),f=y("perspective"),g=y("aspect"),v=y("ease"),x=y("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...w(),_,I],j=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],S=()=>[_,I,l],V=()=>[P,"full","auto",...S()],R=()=>[N,"none","subgrid",_,I],D=()=>["auto",{span:["full",N,_,I]},N,_,I],L=()=>[N,"auto",_,I],Z=()=>["auto","min","max","fr",_,I],J=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],ee=()=>["auto",...S()],et=()=>[P,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],ei=()=>[e,_,I],er=()=>[...w(),H,$,{position:[_,I]}],es=()=>["no-repeat",{repeat:["","x","y","space","round"]}],en=()=>["auto","cover","contain",q,F,{size:[_,I]}],eo=()=>[C,X,B],ea=()=>["","none","full",c,_,I],el=()=>["",A,X,B],ec=()=>["solid","dashed","dotted","double"],eu=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ed=()=>[A,C,H,$],eh=()=>["","none",p,_,I],em=()=>["none",A,_,I],ep=()=>["none",A,_,I],ef=()=>[A,_,I],eg=()=>[P,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[E],breakpoint:[E],color:[M],container:[E],"drop-shadow":[E],ease:["in","out","in-out"],font:[O],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[E],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[E],shadow:[E],spacing:["px",A],text:[E],"text-shadow":[E],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",P,I,_,g]}],container:["container"],columns:[{columns:[A,I,_,a]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[N,"auto",_,I]}],basis:[{basis:[P,"full","auto",a,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[A,P,"auto","initial","none",I]}],grow:[{grow:["",A,_,I]}],shrink:[{shrink:["",A,_,I]}],order:[{order:[N,"first","last","none",_,I]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:ee()}],mx:[{mx:ee()}],my:[{my:ee()}],ms:[{ms:ee()}],me:[{me:ee()}],mt:[{mt:ee()}],mr:[{mr:ee()}],mb:[{mb:ee()}],ml:[{ml:ee()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:et()}],w:[{w:[a,"screen",...et()]}],"min-w":[{"min-w":[a,"screen","none",...et()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...et()]}],h:[{h:["screen","lh",...et()]}],"min-h":[{"min-h":["screen","lh","none",...et()]}],"max-h":[{"max-h":["screen","lh",...et()]}],"font-size":[{text:["base",i,X,B]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,_,z]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",C,I]}],"font-family":[{font:[Y,I,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,_,I]}],"line-clamp":[{"line-clamp":[A,"none",_,z]}],leading:[{leading:[n,...S()]}],"list-image":[{"list-image":["none",_,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ei()}],"text-color":[{text:ei()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ec(),"wavy"]}],"text-decoration-thickness":[{decoration:[A,"from-font","auto",_,B]}],"text-decoration-color":[{decoration:ei()}],"underline-offset":[{"underline-offset":[A,"auto",_,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_,I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:er()}],"bg-repeat":[{bg:es()}],"bg-size":[{bg:en()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},N,_,I],radial:["",_,I],conic:[N,_,I]},K,U]}],"bg-color":[{bg:ei()}],"gradient-from-pos":[{from:eo()}],"gradient-via-pos":[{via:eo()}],"gradient-to-pos":[{to:eo()}],"gradient-from":[{from:ei()}],"gradient-via":[{via:ei()}],"gradient-to":[{to:ei()}],rounded:[{rounded:ea()}],"rounded-s":[{"rounded-s":ea()}],"rounded-e":[{"rounded-e":ea()}],"rounded-t":[{"rounded-t":ea()}],"rounded-r":[{"rounded-r":ea()}],"rounded-b":[{"rounded-b":ea()}],"rounded-l":[{"rounded-l":ea()}],"rounded-ss":[{"rounded-ss":ea()}],"rounded-se":[{"rounded-se":ea()}],"rounded-ee":[{"rounded-ee":ea()}],"rounded-es":[{"rounded-es":ea()}],"rounded-tl":[{"rounded-tl":ea()}],"rounded-tr":[{"rounded-tr":ea()}],"rounded-br":[{"rounded-br":ea()}],"rounded-bl":[{"rounded-bl":ea()}],"border-w":[{border:el()}],"border-w-x":[{"border-x":el()}],"border-w-y":[{"border-y":el()}],"border-w-s":[{"border-s":el()}],"border-w-e":[{"border-e":el()}],"border-w-t":[{"border-t":el()}],"border-w-r":[{"border-r":el()}],"border-w-b":[{"border-b":el()}],"border-w-l":[{"border-l":el()}],"divide-x":[{"divide-x":el()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":el()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ec(),"hidden","none"]}],"divide-style":[{divide:[...ec(),"hidden","none"]}],"border-color":[{border:ei()}],"border-color-x":[{"border-x":ei()}],"border-color-y":[{"border-y":ei()}],"border-color-s":[{"border-s":ei()}],"border-color-e":[{"border-e":ei()}],"border-color-t":[{"border-t":ei()}],"border-color-r":[{"border-r":ei()}],"border-color-b":[{"border-b":ei()}],"border-color-l":[{"border-l":ei()}],"divide-color":[{divide:ei()}],"outline-style":[{outline:[...ec(),"none","hidden"]}],"outline-offset":[{"outline-offset":[A,_,I]}],"outline-w":[{outline:["",A,X,B]}],"outline-color":[{outline:ei()}],shadow:[{shadow:["","none",u,G,W]}],"shadow-color":[{shadow:ei()}],"inset-shadow":[{"inset-shadow":["none",d,G,W]}],"inset-shadow-color":[{"inset-shadow":ei()}],"ring-w":[{ring:el()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ei()}],"ring-offset-w":[{"ring-offset":[A,B]}],"ring-offset-color":[{"ring-offset":ei()}],"inset-ring-w":[{"inset-ring":el()}],"inset-ring-color":[{"inset-ring":ei()}],"text-shadow":[{"text-shadow":["none",h,G,W]}],"text-shadow-color":[{"text-shadow":ei()}],opacity:[{opacity:[A,_,I]}],"mix-blend":[{"mix-blend":[...eu(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":eu()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[A]}],"mask-image-linear-from-pos":[{"mask-linear-from":ed()}],"mask-image-linear-to-pos":[{"mask-linear-to":ed()}],"mask-image-linear-from-color":[{"mask-linear-from":ei()}],"mask-image-linear-to-color":[{"mask-linear-to":ei()}],"mask-image-t-from-pos":[{"mask-t-from":ed()}],"mask-image-t-to-pos":[{"mask-t-to":ed()}],"mask-image-t-from-color":[{"mask-t-from":ei()}],"mask-image-t-to-color":[{"mask-t-to":ei()}],"mask-image-r-from-pos":[{"mask-r-from":ed()}],"mask-image-r-to-pos":[{"mask-r-to":ed()}],"mask-image-r-from-color":[{"mask-r-from":ei()}],"mask-image-r-to-color":[{"mask-r-to":ei()}],"mask-image-b-from-pos":[{"mask-b-from":ed()}],"mask-image-b-to-pos":[{"mask-b-to":ed()}],"mask-image-b-from-color":[{"mask-b-from":ei()}],"mask-image-b-to-color":[{"mask-b-to":ei()}],"mask-image-l-from-pos":[{"mask-l-from":ed()}],"mask-image-l-to-pos":[{"mask-l-to":ed()}],"mask-image-l-from-color":[{"mask-l-from":ei()}],"mask-image-l-to-color":[{"mask-l-to":ei()}],"mask-image-x-from-pos":[{"mask-x-from":ed()}],"mask-image-x-to-pos":[{"mask-x-to":ed()}],"mask-image-x-from-color":[{"mask-x-from":ei()}],"mask-image-x-to-color":[{"mask-x-to":ei()}],"mask-image-y-from-pos":[{"mask-y-from":ed()}],"mask-image-y-to-pos":[{"mask-y-to":ed()}],"mask-image-y-from-color":[{"mask-y-from":ei()}],"mask-image-y-to-color":[{"mask-y-to":ei()}],"mask-image-radial":[{"mask-radial":[_,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":ed()}],"mask-image-radial-to-pos":[{"mask-radial-to":ed()}],"mask-image-radial-from-color":[{"mask-radial-from":ei()}],"mask-image-radial-to-color":[{"mask-radial-to":ei()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[A]}],"mask-image-conic-from-pos":[{"mask-conic-from":ed()}],"mask-image-conic-to-pos":[{"mask-conic-to":ed()}],"mask-image-conic-from-color":[{"mask-conic-from":ei()}],"mask-image-conic-to-color":[{"mask-conic-to":ei()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:er()}],"mask-repeat":[{mask:es()}],"mask-size":[{mask:en()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_,I]}],filter:[{filter:["","none",_,I]}],blur:[{blur:eh()}],brightness:[{brightness:[A,_,I]}],contrast:[{contrast:[A,_,I]}],"drop-shadow":[{"drop-shadow":["","none",m,G,W]}],"drop-shadow-color":[{"drop-shadow":ei()}],grayscale:[{grayscale:["",A,_,I]}],"hue-rotate":[{"hue-rotate":[A,_,I]}],invert:[{invert:["",A,_,I]}],saturate:[{saturate:[A,_,I]}],sepia:[{sepia:["",A,_,I]}],"backdrop-filter":[{"backdrop-filter":["","none",_,I]}],"backdrop-blur":[{"backdrop-blur":eh()}],"backdrop-brightness":[{"backdrop-brightness":[A,_,I]}],"backdrop-contrast":[{"backdrop-contrast":[A,_,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",A,_,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[A,_,I]}],"backdrop-invert":[{"backdrop-invert":["",A,_,I]}],"backdrop-opacity":[{"backdrop-opacity":[A,_,I]}],"backdrop-saturate":[{"backdrop-saturate":[A,_,I]}],"backdrop-sepia":[{"backdrop-sepia":["",A,_,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[A,"initial",_,I]}],ease:[{ease:["linear","initial",v,_,I]}],delay:[{delay:[A,_,I]}],animate:[{animate:["none",x,_,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,_,I]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:em()}],"rotate-x":[{"rotate-x":em()}],"rotate-y":[{"rotate-y":em()}],"rotate-z":[{"rotate-z":em()}],scale:[{scale:ep()}],"scale-x":[{"scale-x":ep()}],"scale-y":[{"scale-y":ep()}],"scale-z":[{"scale-z":ep()}],"scale-3d":["scale-3d"],skew:[{skew:ef()}],"skew-x":[{"skew-x":ef()}],"skew-y":[{"skew-y":ef()}],transform:[{transform:[_,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:eg()}],"translate-x":[{"translate-x":eg()}],"translate-y":[{"translate-y":eg()}],"translate-z":[{"translate-z":eg()}],"translate-none":["translate-none"],accent:[{accent:ei()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ei()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",_,I]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",_,I]}],fill:[{fill:["none",...ei()]}],"stroke-w":[{stroke:[A,X,B,z]}],stroke:[{stroke:["none",...ei()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function ea(...e){return eo(function(){for(var e,t,i=0,r="",s=arguments.length;iea],75157)},75254,e=>{"use strict";var t=e.i(71645);let i=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,i)=>i?i.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},r=(...e)=>e.filter((e,t,i)=>!!e&&""!==e.trim()&&i.indexOf(e)===t).join(" ").trim();var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let n=(0,t.forwardRef)(({color:e="currentColor",size:i=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:a="",children:l,iconNode:c,...u},d)=>(0,t.createElement)("svg",{ref:d,...s,width:i,height:i,stroke:e,strokeWidth:o?24*Number(n)/Number(i):n,className:r("lucide",a),...!l&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(u)&&{"aria-hidden":"true"},...u},[...c.map(([e,i])=>(0,t.createElement)(e,i)),...Array.isArray(l)?l:[l]])),o=(e,s)=>{let o=(0,t.forwardRef)(({className:o,...a},l)=>(0,t.createElement)(n,{ref:l,iconNode:s,className:r(`lucide-${i(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,o),...a}));return o.displayName=i(e),o};e.s(["default",()=>o],75254)},37727,e=>{"use strict";let t=(0,e.i(75254).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",()=>t],37727)},3374,e=>{"use strict";var t=e.i(43476),i=e.i(22016),r=e.i(71645),s=e.i(75157);let n=(0,e.i(75254).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);var o=e.i(37727);let a=[{name:"회사 소개",href:"#about"},{name:"운영 원칙",href:"#philosophy"},{name:"서비스",href:"#services"}];function l(){let[e,l]=(0,r.useState)(!1),[c,u]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=()=>{l(window.scrollY>50)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,t.jsx)("header",{className:(0,s.cn)("main-header fixed top-0 left-0 right-0 z-50 transition-all duration-300",e?"bg-white/80 backdrop-blur-md border-b border-gray-100 py-4":"bg-transparent py-6"),children:(0,t.jsxs)("div",{className:"header-container container mx-auto px-6 flex items-center justify-between",children:[(0,t.jsx)(i.default,{href:"/",className:(0,s.cn)("header-logo text-2xl font-bold tracking-tighter transition-colors",e?"text-primary":"text-white"),children:"STAYMORE"}),(0,t.jsxs)("nav",{className:"desktop-nav hidden md:flex items-center space-x-8",children:[a.map(r=>(0,t.jsx)(i.default,{href:r.href,className:(0,s.cn)("nav-link text-sm font-medium transition-colors hover:text-secondary",e?"text-primary/80":"text-white/90"),children:r.name},r.name)),(0,t.jsx)(i.default,{href:"#contact",className:(0,s.cn)("nav-cta-btn px-5 py-2.5 text-sm font-medium rounded-full transition-all duration-300",e?"bg-primary text-white hover:bg-primary/90":"bg-white text-primary hover:bg-white/90"),children:"사업문의"})]}),(0,t.jsx)("button",{className:"mobile-menu-btn md:hidden p-2",onClick:()=>u(!c),children:c?(0,t.jsx)(o.X,{className:(0,s.cn)("mobile-menu-icon-close",e?"text-primary":"text-white")}):(0,t.jsx)(n,{className:(0,s.cn)("mobile-menu-icon-open",e?"text-primary":"text-white")})}),c&&(0,t.jsxs)("div",{className:"mobile-menu-overlay absolute top-full left-0 right-0 bg-white border-b border-gray-100 p-6 flex flex-col space-y-4 md:hidden shadow-xl animate-in fade-in slide-in-from-top-5",children:[a.map(e=>(0,t.jsx)(i.default,{href:e.href,className:"mobile-nav-link text-lg font-medium text-primary hover:text-secondary",onClick:()=>u(!1),children:e.name},e.name)),(0,t.jsx)(i.default,{href:"#contact",className:"mobile-nav-cta-btn px-5 py-3 text-center text-sm font-medium bg-primary text-white rounded-lg hover:bg-primary/90",onClick:()=>u(!1),children:"Partnership · 사업문의"})]})]})})}e.s(["Header",()=>l],3374)},88653,e=>{"use strict";e.i(47167);var t=e.i(43476),i=e.i(71645),r=e.i(31178),s=e.i(47414),n=e.i(74008),o=e.i(21476),a=e.i(72846),l=i,c=e.i(37806);function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class d extends l.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,i=(0,a.isHTMLElement)(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=i-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function h({children:e,isPresent:r,anchorX:s,root:n}){let o=(0,l.useId)(),a=(0,l.useRef)(null),h=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:m}=(0,l.useContext)(c.MotionConfigContext),p=function(...e){return i.useCallback(function(...e){return t=>{let i=!1,r=e.map(e=>{let r=u(e,t);return i||"function"!=typeof r||(i=!0),r});if(i)return()=>{for(let t=0;t{let{width:e,height:t,top:i,left:l,right:c}=h.current;if(r||!a.current||!e||!t)return;let u="left"===s?`left: ${l}`:`right: ${c}`;a.current.dataset.motionPopId=o;let d=document.createElement("style");m&&(d.nonce=m);let p=n??document.head;return p.appendChild(d),d.sheet&&d.sheet.insertRule(` [data-motion-pop-id="${o}"] { position: absolute !important; width: ${e}px !important; height: ${t}px !important; ${u}px !important; top: ${i}px !important; } `),()=>{p.contains(d)&&p.removeChild(d)}},[r]),(0,t.jsx)(d,{isPresent:r,childRef:a,sizeRef:h,children:l.cloneElement(e,{ref:p})})}let m=({children:e,initial:r,isPresent:n,onExitComplete:a,custom:l,presenceAffectsLayout:c,mode:u,anchorX:d,root:m})=>{let f=(0,s.useConstant)(p),g=(0,i.useId)(),y=!0,v=(0,i.useMemo)(()=>(y=!1,{id:g,initial:r,isPresent:n,custom:l,onExitComplete:e=>{for(let t of(f.set(e,!0),f.values()))if(!t)return;a&&a()},register:e=>(f.set(e,!1),()=>f.delete(e))}),[n,f,a]);return c&&y&&(v={...v}),(0,i.useMemo)(()=>{f.forEach((e,t)=>f.set(t,!1))},[n]),i.useEffect(()=>{n||f.size||!a||a()},[n]),"popLayout"===u&&(e=(0,t.jsx)(h,{isPresent:n,anchorX:d,root:m,children:e})),(0,t.jsx)(o.PresenceContext.Provider,{value:v,children:e})};function p(){return new Map}var f=e.i(64978);let g=e=>e.key||"";function y(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let v=({children:e,custom:o,initial:a=!0,onExitComplete:l,presenceAffectsLayout:c=!0,mode:u="sync",propagate:d=!1,anchorX:h="left",root:p})=>{let[v,x]=(0,f.usePresence)(d),b=(0,i.useMemo)(()=>y(e),[e]),w=d&&!v?[]:b.map(g),k=(0,i.useRef)(!0),j=(0,i.useRef)(b),T=(0,s.useConstant)(()=>new Map),[S,P]=(0,i.useState)(b),[A,N]=(0,i.useState)(b);(0,n.useIsomorphicLayoutEffect)(()=>{k.current=!1,j.current=b;for(let e=0;e{let i=g(e),r=(!d||!!v)&&(b===A||w.includes(i));return(0,t.jsx)(m,{isPresent:r,initial:(!k.current||!!a)&&void 0,custom:o,presenceAffectsLayout:c,mode:u,root:p,onExitComplete:r?void 0:()=>{if(!T.has(i))return;T.set(i,!0);let e=!0;T.forEach(t=>{t||(e=!1)}),e&&(E?.(),N(j.current),d&&x?.(),l&&l())},anchorX:h,children:e},i)})})};e.s(["AnimatePresence",()=>v],88653)},59544,e=>{"use strict";let t,i,r;var s=e.i(43476),n=e.i(71645);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var a=Symbol.for("react.lazy"),l=n[" use ".trim().toString()];function c(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===a&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var u=((r=n.forwardRef((e,t)=>{let{children:i,...r}=e;if(c(i)&&"function"==typeof l&&(i=l(i._payload)),n.isValidElement(i)){var s;let e,a,l=(s=i,(a=(e=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.ref:(a=(e=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.props.ref:s.props.ref||s.ref),c=function(e,t){let i={...t};for(let r in t){let s=e[r],n=t[r];/^on[A-Z]/.test(r)?s&&n?i[r]=(...e)=>{let t=n(...e);return s(...e),t}:s&&(i[r]=s):"style"===r?i[r]={...s,...n}:"className"===r&&(i[r]=[s,n].filter(Boolean).join(" "))}return{...e,...i}}(r,i.props);return i.type!==n.Fragment&&(c.ref=t?function(...e){return t=>{let i=!1,r=e.map(e=>{let r=o(e,t);return i||"function"!=typeof r||(i=!0),r});if(i)return()=>{for(let t=0;t1?n.Children.only(null):null})).displayName="Slot.SlotClone",t=r,(i=n.forwardRef((e,i)=>{let{children:r,...o}=e;c(r)&&"function"==typeof l&&(r=l(r._payload));let a=n.Children.toArray(r),u=a.find(h);if(u){let e=u.props.children,r=a.map(t=>t!==u?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,s.jsx)(t,{...o,ref:i,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,s.jsx)(t,{...o,ref:i,children:r})})).displayName="Slot.Slot",i),d=Symbol("radix.slottable");function h(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===d}var m=e.i(75157);let p=n.forwardRef(({className:e,variant:t="default",size:i="default",asChild:r=!1,...n},o)=>(0,s.jsx)(r?u:"button",{className:(0,m.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{"bg-primary text-primary-foreground hover:bg-primary/90":"default"===t,"border border-input bg-background hover:bg-accent hover:text-accent-foreground":"outline"===t,"hover:bg-accent hover:text-accent-foreground":"ghost"===t,"text-primary underline-offset-4 hover:underline":"link"===t,"h-10 px-4 py-2":"default"===i,"h-9 rounded-md px-3":"sm"===i,"h-11 rounded-md px-8":"lg"===i,"h-10 w-10":"icon"===i},e),ref:o,...n}));p.displayName="Button",e.s(["Button",()=>p],59544)},46932,31178,37806,21476,47414,74008,64978,72846,23605,e=>{"use strict";let t,i,r;var s,n=e.i(71645);let o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],a=new Set(o),l=e=>180*e/Math.PI,c=e=>d(l(Math.atan2(e[1],e[0]))),u={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:c,rotateZ:c,skewX:e=>l(Math.atan(e[1])),skewY:e=>l(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},d=e=>((e%=360)<0&&(e+=360),e),h=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),m=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),p={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:h,scaleY:m,scale:e=>(h(e)+m(e))/2,rotateX:e=>d(l(Math.atan2(e[6],e[5]))),rotateY:e=>d(l(Math.atan2(-e[2],e[0]))),rotateZ:c,rotate:c,skewX:e=>l(Math.atan(e[4])),skewY:e=>l(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function f(e){return+!!e.includes("scale")}function g(e,t){let i,r;if(!e||"none"===e)return f(t);let s=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=p,r=s;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=u,r=t}if(!r)return f(t);let n=i[t],o=r[1].split(",").map(y);return"function"==typeof n?n(o):o[n]}function y(e){return parseFloat(e.trim())}let v=e=>t=>"string"==typeof t&&t.startsWith(e),x=v("--"),b=v("var(--"),w=e=>!!b(e)&&k.test(e.split("/*")[0].trim()),k=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function j({top:e,left:t,right:i,bottom:r}){return{x:{min:t,max:i},y:{min:e,max:r}}}let T=(e,t,i)=>e+(t-e)*i;function S(e){return void 0===e||1===e}function P({scale:e,scaleX:t,scaleY:i}){return!S(e)||!S(t)||!S(i)}function A(e){return P(e)||N(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function N(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function C(e,t,i,r,s){return void 0!==s&&(e=r+s*(e-r)),r+i*(e-r)+t}function E(e,t=0,i=1,r,s){e.min=C(e.min,t,i,r,s),e.max=C(e.max,t,i,r,s)}function M(e,{x:t,y:i}){E(e.x,t.translate,t.scale,t.originPoint),E(e.y,i.translate,i.scale,i.originPoint)}function V(e,t){e.min=e.min+t,e.max=e.max+t}function R(e,t,i,r,s=.5){let n=T(e.min,e.max,s);E(e,t,i,n,r)}function D(e,t){R(e.x,t.x,t.scaleX,t.scale,t.originX),R(e.y,t.y,t.scaleY,t.scale,t.originY)}function L(e,t){return j(function(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let O=new Set(["width","height","top","left","right","bottom",...o]),F=(e,t,i)=>i>t?t:i"number"==typeof e,parse:parseFloat,transform:e=>e},B={...I,transform:e=>F(0,1,e)},z={...I,default:1},$=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),U=$("deg"),W=$("%"),_=$("px"),X=$("vh"),Y=$("vw"),H={...W,parse:e=>W.parse(e)/100,transform:e=>W.transform(100*e)},q=e=>t=>t.test(e),K=[I,_,W,U,Y,X,{test:e=>"auto"===e,parse:e=>e}],G=e=>K.find(q(e));e.i(47167);let Z=()=>{},J=()=>{},Q=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ee=e=>e===I||e===_,et=new Set(["x","y","z"]),ei=o.filter(e=>!et.has(e)),er={width:({x:e},{paddingLeft:t="0",paddingRight:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),height:({y:e},{paddingTop:t="0",paddingBottom:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>g(t,"x"),y:(e,{transform:t})=>g(t,"y")};er.translateX=er.x,er.translateY=er.y;let es=e=>e,en={},eo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ea(e,t){let i=!1,r=!0,s={delta:0,timestamp:0,isProcessing:!1},n=()=>i=!0,o=eo.reduce((e,i)=>(e[i]=function(e,t){let i=new Set,r=new Set,s=!1,n=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function c(t){o.has(t)&&(u.schedule(t),e()),l++,t(a)}let u={schedule:(e,t=!1,n=!1)=>{let a=n&&s?i:r;return t&&o.add(e),a.has(e)||a.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(a=e,s){n=!0;return}s=!0,[i,r]=[r,i],i.forEach(c),t,l=0,i.clear(),s=!1,n&&(n=!1,u.process(e))}};return u}(n,t?i:void 0),e),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:h,render:m,postRender:p}=o,f=()=>{let n=en.useManualTiming?s.timestamp:performance.now();i=!1,en.useManualTiming||(s.delta=r?1e3/60:Math.max(Math.min(n-s.timestamp,40),1)),s.timestamp=n,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),d.process(s),h.process(s),m.process(s),p.process(s),s.isProcessing=!1,i&&t&&(r=!1,e(f))};return{schedule:eo.reduce((t,n)=>{let a=o[n];return t[n]=(t,n=!1,o=!1)=>(!i&&(i=!0,r=!0,s.isProcessing||e(f)),a.schedule(t,n,o)),t},{}),cancel:e=>{for(let t=0;te.needsMeasurement),t=new Set(e.map(e=>e.element)),i=new Map;t.forEach(e=>{let t,r=(t=[],ei.forEach(i=>{let r=e.getValue(i);void 0!==r&&(t.push([i,r.get()]),r.set(+!!i.startsWith("scale")))}),t);r.length&&(i.set(e,r),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=i.get(e);t&&t.forEach(([t,i])=>{e.getValue(t)?.set(i)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}ep=!1,em=!1,eh.forEach(e=>e.complete(ef)),eh.clear()}function ey(){eh.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ep=!0)})}class ev{constructor(e,t,i,r,s,n=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=r,this.element=s,this.isAsync=n}scheduleResolve(){this.state="scheduled",this.isAsync?(eh.add(this),em||(em=!0,el.read(ey),el.resolveKeyframes(eg))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:i,motionValue:r}=this;if(null===e[0]){let s=r?.get(),n=e[e.length-1];if(void 0!==s)e[0]=s;else if(i&&t){let r=i.readValue(t,n);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=n),r&&void 0===s&&r.set(e[0])}for(let t=1;tMath.round(1e5*e)/1e5,eb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,ew=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ek=(e,t)=>i=>!!("string"==typeof i&&ew.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),ej=(e,t,i)=>r=>{if("string"!=typeof r)return r;let[s,n,o,a]=r.match(eb);return{[e]:parseFloat(s),[t]:parseFloat(n),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},eT={...I,transform:e=>Math.round(F(0,255,e))},eS={test:ek("rgb","red"),parse:ej("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:r=1})=>"rgba("+eT.transform(e)+", "+eT.transform(t)+", "+eT.transform(i)+", "+ex(B.transform(r))+")"},eP={test:ek("#"),parse:function(e){let t="",i="",r="",s="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,i+=i,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}},transform:eS.transform},eA={test:ek("hsl","hue"),parse:ej("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:r=1})=>"hsla("+Math.round(e)+", "+W.transform(ex(t))+", "+W.transform(ex(i))+", "+ex(B.transform(r))+")"},eN={test:e=>eS.test(e)||eP.test(e)||eA.test(e),parse:e=>eS.test(e)?eS.parse(e):eA.test(e)?eA.parse(e):eP.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?eS.transform(e):eA.transform(e),getAnimatableNone:e=>{let t=eN.parse(e);return t.alpha=0,eN.transform(t)}},eC=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,eE="number",eM="color",eV=/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 eR(e){let t=e.toString(),i=[],r={color:[],number:[],var:[]},s=[],n=0,o=t.replace(eV,e=>(eN.test(e)?(r.color.push(n),s.push(eM),i.push(eN.parse(e))):e.startsWith("var(")?(r.var.push(n),s.push("var"),i.push(e)):(r.number.push(n),s.push(eE),i.push(parseFloat(e))),++n,"${}")).split("${}");return{values:i,split:o,indexes:r,types:s}}function eD(e){return eR(e).values}function eL(e){let{split:t,types:i}=eR(e),r=t.length;return e=>{let s="";for(let n=0;n"number"==typeof e?0:eN.test(e)?eN.getAnimatableNone(e):e,eF={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(eb)?.length||0)+(e.match(eC)?.length||0)>0},parse:eD,createTransformer:eL,getAnimatableNone:function(e){let t=eD(e);return eL(e)(t.map(eO))}},eI=new Set(["brightness","contrast","saturate","opacity"]);function eB(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=i.match(eb)||[];if(!r)return e;let s=i.replace(r,""),n=+!!eI.has(t);return r!==i&&(n*=100),t+"("+n+s+")"}let ez=/\b([a-z-]*)\(.*?\)/gu,e$={...eF,getAnimatableNone:e=>{let t=e.match(ez);return t?t.map(eB).join(" "):e}},eU={...I,transform:Math.round},eW={borderWidth:_,borderTopWidth:_,borderRightWidth:_,borderBottomWidth:_,borderLeftWidth:_,borderRadius:_,radius:_,borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,width:_,maxWidth:_,height:_,maxHeight:_,top:_,right:_,bottom:_,left:_,padding:_,paddingTop:_,paddingRight:_,paddingBottom:_,paddingLeft:_,margin:_,marginTop:_,marginRight:_,marginBottom:_,marginLeft:_,backgroundPositionX:_,backgroundPositionY:_,rotate:U,rotateX:U,rotateY:U,rotateZ:U,scale:z,scaleX:z,scaleY:z,scaleZ:z,skew:U,skewX:U,skewY:U,distance:_,translateX:_,translateY:_,translateZ:_,x:_,y:_,z:_,perspective:_,transformPerspective:_,opacity:B,originX:H,originY:H,originZ:_,zIndex:eU,fillOpacity:B,strokeOpacity:B,numOctaves:eU},e_={...eW,color:eN,backgroundColor:eN,outlineColor:eN,fill:eN,stroke:eN,borderColor:eN,borderTopColor:eN,borderRightColor:eN,borderBottomColor:eN,borderLeftColor:eN,filter:e$,WebkitFilter:e$},eX=e=>e_[e];function eY(e,t){let i=eX(e);return i!==e$&&(i=eF),i.getAnimatableNone?i.getAnimatableNone(t):void 0}let eH=new Set(["auto","none","0"]);class eq extends ev{constructor(e,t,i,r,s){super(e,t,i,r,s,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let eK=e=>!!(e&&e.getVelocity);function eG(){t=void 0}let eZ={now:()=>(void 0===t&&eZ.set(eu.isProcessing||en.useManualTiming?eu.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(eG)}};function eJ(e,t){-1===e.indexOf(t)&&e.push(t)}function eQ(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}class e0{constructor(){this.subscriptions=[]}add(e){return eJ(this.subscriptions,e),()=>eQ(this.subscriptions,e)}notify(e,t,i){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,i);else for(let s=0;s{let t=eZ.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=eZ.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new e0);let i=this.events[e].add(t);return"change"===e?()=>{i(),el.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return r&&r.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=eZ.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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 e2(e,t){return new e1(e,t)}let e5=[...K,eN,eF],{schedule:e3}=ea(queueMicrotask,!1),e4={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"]},e6={};for(let e in e4)e6[e]={isEnabled:t=>e4[e].some(e=>!!t[e])};let e7=()=>({translate:0,scale:1,origin:0,originPoint:0}),e9=()=>({x:e7(),y:e7()}),e8=()=>({min:0,max:0}),te=()=>({x:e8(),y:e8()}),tt="undefined"!=typeof window,ti={current:null},tr={current:!1},ts=new WeakMap;function tn(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function to(e){return"string"==typeof e||Array.isArray(e)}let ta=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tl=["initial",...ta];function tc(e){return tn(e.animate)||tl.some(t=>to(e[t]))}function tu(e){return!!(tc(e)||e.variants)}function td(e){let t=[{},{}];return e?.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function th(e,t,i,r){if("function"==typeof t){let[s,n]=td(r);t=t(void 0!==i?i:e.custom,s,n)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[s,n]=td(r);t=t(void 0!==i?i:e.custom,s,n)}return t}let tm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class tp{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:s,visualState:n},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ev,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 e=eZ.now();this.renderScheduledAtthis.bindToMotionValue(t,e)),tr.current||function(){if(tr.current=!0,tt)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ti.current=e.matches;e.addEventListener("change",t),t()}else ti.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ti.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),ec(this.notifyUpdate),ec(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let i;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let r=a.has(e);r&&this.onBindTransform&&this.onBindTransform();let s=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&el.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{s(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in e6){let t=e6[e];if(!t)continue;let{isEnabled:i,Feature:r}=t;if(!this.features[e]&&r&&i(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):te()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;tt.variantChildren.delete(e)}addValue(e,t){let i=this.values.get(e);t!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return void 0===i&&void 0!==t&&(i=e2(null===t?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){let i=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=i){let r,s;if("string"==typeof i&&(r=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(s=i,/^0[^.\s]+$/u.test(s))))i=parseFloat(i);else{let r;r=i,!e5.find(q(r))&&eF.test(t)&&(i=eY(e,t))}this.setBaseTarget(e,eK(i)?i.get():i)}return eK(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let r=th(this.props,i,this.presenceContext?.custom);r&&(t=r[e])}if(i&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||eK(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new e0),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){e3.render(this.render)}}class tf extends tp{constructor(){super(...arguments),this.KeyframeResolver=eq}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;eK(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}let tg=(e,t)=>t&&"number"==typeof e?t.transform(e):e,ty={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tv=o.length;function tx(e,t,i){let{style:r,vars:s,transformOrigin:n}=e,l=!1,c=!1;for(let e in t){let i=t[e];if(a.has(e)){l=!0;continue}if(x(e)){s[e]=i;continue}{let t=tg(i,eW[e]);e.startsWith("origin")?(c=!0,n[e]=t):r[e]=t}}if(!t.transform&&(l||i?r.transform=function(e,t,i){let r="",s=!0;for(let n=0;n{if(!t.target)return e;if("string"==typeof e)if(!_.test(e))return e;else e=parseFloat(e);let i=tw(e,t.target.x),r=tw(e,t.target.y);return`${i}% ${r}%`}},tj={borderRadius:{...tk,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tk,borderTopRightRadius:tk,borderBottomLeftRadius:tk,borderBottomRightRadius:tk,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let r=eF.parse(e);if(r.length>5)return e;let s=eF.createTransformer(e),n=+("number"!=typeof r[0]),o=i.x.scale*t.x,a=i.y.scale*t.y;r[0+n]/=o,r[1+n]/=a;let l=T(o,a,.5);return"number"==typeof r[2+n]&&(r[2+n]/=l),"number"==typeof r[3+n]&&(r[3+n]/=l),s(r)}}};function tT(e,{layout:t,layoutId:i}){return a.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!tj[e]||"opacity"===e)}function tS(e,t,i){let{style:r}=e,s={};for(let n in r)(eK(r[n])||t.style&&eK(t.style[n])||tT(n,e)||i?.getValue(n)?.liveStyle!==void 0)&&(s[n]=r[n]);return s}class tP extends tf{constructor(){super(...arguments),this.type="html",this.renderInstance=tb}readValueFromInstance(e,t){if(a.has(t))return this.projection?.isProjecting?f(t):((e,t)=>{let{transform:i="none"}=getComputedStyle(e);return g(i,t)})(e,t);{let i=window.getComputedStyle(e),r=(x(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return L(e,t)}build(e,t,i){tx(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return tS(e,t,i)}}let tA=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tN={offset:"stroke-dashoffset",array:"stroke-dasharray"},tC={offset:"strokeDashoffset",array:"strokeDasharray"};function tE(e,{attrX:t,attrY:i,attrScale:r,pathLength:s,pathSpacing:n=1,pathOffset:o=0,...a},l,c,u){if(tx(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==i&&(d.y=i),void 0!==r&&(d.scale=r),void 0!==s&&function(e,t,i=1,r=0,s=!0){e.pathLength=1;let n=s?tN:tC;e[n.offset]=_.transform(-r);let o=_.transform(t),a=_.transform(i);e[n.array]=`${o} ${a}`}(d,s,n,o,!1)}let tM=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"]),tV=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tR(e,t,i){let r=tS(e,t,i);for(let i in e)(eK(e[i])||eK(t[i]))&&(r[-1!==o.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return r}class tD extends tf{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=te}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(a.has(t)){let e=eX(t);return e&&e.default||0}return t=tM.has(t)?t:tA(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return tR(e,t,i)}build(e,t,i){tE(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,r){for(let i in tb(e,t,void 0,r),t.attrs)e.setAttribute(tM.has(i)?i:tA(i),t.attrs[i])}mount(e){this.isSVGTag=tV(e.tagName),super.mount(e)}}let tL=["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 tO(e){if("string"!=typeof e||e.includes("-"));else if(tL.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var tF=e.i(43476);let tI=(0,n.createContext)({});e.s(["LayoutGroupContext",()=>tI],31178);let tB=(0,n.createContext)({strict:!1}),tz=(0,n.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});e.s(["MotionConfigContext",()=>tz],37806);let t$=(0,n.createContext)({});function tU(e){return Array.isArray(e)?e.join(" "):e}let tW=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function t_(e,t,i){for(let r in t)eK(t[r])||tT(r,i)||(e[r]=t[r])}let tX=()=>({...tW(),attrs:{}}),tY=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 tH(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||tY.has(e)}let tq=e=>!tH(e);try{s=(()=>{let e=Error("Cannot find module '@emotion/is-prop-valid'");throw e.code="MODULE_NOT_FOUND",e})().default,"function"==typeof s&&(tq=e=>e.startsWith("on")?!tH(e):s(e))}catch{}let tK=(0,n.createContext)(null);function tG(e){let t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}function tZ(e){return eK(e)?e.get():e}e.s(["PresenceContext",()=>tK],21476),e.s(["useConstant",()=>tG],47414);let tJ=e=>(t,i)=>{let r=(0,n.useContext)(t$),s=(0,n.useContext)(tK),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},i,r,s){return{latestValues:function(e,t,i,r){let s={},n=r(e,{});for(let e in n)s[e]=tZ(n[e]);let{initial:o,animate:a}=e,l=tc(e),c=tu(e);t&&c&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===a&&(a=t.animate));let u=!!i&&!1===i.initial,d=(u=u||!1===o)?a:o;if(d&&"boolean"!=typeof d&&!tn(d)){let t=Array.isArray(d)?d:[d];for(let i=0;i({initial:t,animate:i}),[tU(t),tU(i)])}(i),h=s(i,u);if(!u&&tt){(0,n.useContext)(tB).strict;let t=function(e){let{drag:t,layout:i}=e6;if(!t&&!i)return{};let r={...t,...i};return{MeasureLayout:t?.isEnabled(e)||i?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(c);l=t.MeasureLayout,d.visualElement=function(e,t,i,r,s){let{visualElement:o}=(0,n.useContext)(t$),a=(0,n.useContext)(tB),l=(0,n.useContext)(tK),c=(0,n.useContext)(tz).reducedMotion,u=(0,n.useRef)(null);r=r||a.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:o,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c}));let d=u.current,h=(0,n.useContext)(t3);d&&!d.projection&&s&&("html"===d.type||"svg"===d.type)&&function(e,t,i,r){let{layoutId:s,layout:n,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:s,layout:n,alwaysMeasureLayout:!!o||a&&t2(a),visualElement:e,animationType:"string"==typeof n?n:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c})}(u.current,i,s,h);let m=(0,n.useRef)(!1);(0,n.useInsertionEffect)(()=>{d&&m.current&&d.update(i,l)});let p=i[t5],f=(0,n.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return t4(()=>{d&&(m.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),f.current&&d.animationState&&d.animationState.animateChanges())}),(0,n.useEffect)(()=>{d&&(!f.current&&d.animationState&&d.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),f.current=!1),d.enteringChildren=void 0)}),d}(e,h,c,r,t.ProjectionNode)}return(0,tF.jsxs)(t$.Provider,{value:d,children:[l&&d.visualElement?(0,tF.jsx)(l,{visualElement:d.visualElement,...c}):null,function(e,t,i,{latestValues:r},s,o=!1){let a=(tO(e)?function(e,t,i,r){let s=(0,n.useMemo)(()=>{let i=tX();return tE(i,t,tV(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};t_(t,e.style,e),s.style={...t,...s.style}}return s}:function(e,t){let i,r,s={},o=(i=e.style||{},t_(r={},i,e),Object.assign(r,function({transformTemplate:e},t){return(0,n.useMemo)(()=>{let i=tW();return tx(i,t,e),Object.assign({},i.vars,i.style)},[t])}(e,t)),r);return e.drag&&!1!==e.dragListener&&(s.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(s.tabIndex=0),s.style=o,s})(t,r,s,e),l=function(e,t,i){let r={};for(let s in e)("values"!==s||"object"!=typeof e.values)&&(tq(s)||!0===i&&tH(s)||!t&&!tH(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}(t,"string"==typeof e,o),c=e!==n.Fragment?{...l,...a,ref:i}:{},{children:u}=t,d=(0,n.useMemo)(()=>eK(u)?u.get():u,[u]);return(0,n.createElement)(e,{...c,children:d})}(e,i,(a=d.visualElement,(0,n.useCallback)(e=>{e&&h.onMount&&h.onMount(e),a&&(e?a.mount(e):a.unmount()),o&&("function"==typeof o?o(e):t2(o)&&(o.current=e))},[a])),h,u,t)]})}o.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let a=(0,n.forwardRef)(o);return a[t1]=e,a}function t7(e,t,i){let r=e.getProps();return th(r,t,void 0!==i?i:r.custom,e)}function t9(e,t){return e?.[t]??e?.default??e}e.s(["useIsomorphicLayoutEffect",()=>t4],74008);let t8=e=>Array.isArray(e);function ie(e,t){let i=e.getValue("willChange");if(eK(i)&&i.add)return i.add(t);if(!i&&en.WillChange){let i=new en.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function it(e){e.duration=0,e.type="keyframes"}let ii=(e,t)=>i=>t(e(i)),ir=(...e)=>e.reduce(ii),is=e=>1e3*e,io={layout:0,mainThread:0,waapi:0};function ia(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function il(e,t){return i=>i>0?t:e}let ic=(e,t,i)=>{let r=e*e,s=i*(t*t-r)+r;return s<0?0:Math.sqrt(s)},iu=[eP,eS,eA];function id(e){let t=iu.find(t=>t.test(e));if(Z(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let i=t.parse(e);return t===eA&&(i=function({hue:e,saturation:t,lightness:i,alpha:r}){e/=360,i/=100;let s=0,n=0,o=0;if(t/=100){let r=i<.5?i*(1+t):i+t-i*t,a=2*i-r;s=ia(a,r,e+1/3),n=ia(a,r,e),o=ia(a,r,e-1/3)}else s=n=o=i;return{red:Math.round(255*s),green:Math.round(255*n),blue:Math.round(255*o),alpha:r}}(i)),i}let ih=(e,t)=>{let i=id(e),r=id(t);if(!i||!r)return il(e,t);let s={...i};return e=>(s.red=ic(i.red,r.red,e),s.green=ic(i.green,r.green,e),s.blue=ic(i.blue,r.blue,e),s.alpha=T(i.alpha,r.alpha,e),eS.transform(s))},im=new Set(["none","hidden"]);function ip(e,t){return i=>T(e,t,i)}function ig(e){return"number"==typeof e?ip:"string"==typeof e?w(e)?il:eN.test(e)?ih:ix:Array.isArray(e)?iy:"object"==typeof e?eN.test(e)?ih:iv:il}function iy(e,t){let i=[...e],r=i.length,s=e.map((e,i)=>ig(e)(e,t[i]));return e=>{for(let t=0;t{for(let t in r)i[t]=r[t](e);return i}}let ix=(e,t)=>{let i=eF.createTransformer(t),r=eR(e),s=eR(t);if(!(r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length))return Z(!0,`Complex values '${e}' and '${t}' 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"),il(e,t);if(im.has(e)&&!s.values.length||im.has(t)&&!r.values.length)return im.has(e)?i=>i<=0?e:t:i=>i>=1?t:e;return ir(iy(function(e,t){let i=[],r={color:0,var:0,number:0};for(let s=0;s{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>el.update(t,e),stop:()=>ec(t),now:()=>eu.isProcessing?eu.timestamp:eZ.now()}},ik=(e,t,i=10)=>{let r="",s=Math.max(Math.round(t/i),2);for(let t=0;t=2e4?1/0:t}function iT(e,t,i){var r,s;let n=Math.max(t-5,0);return r=i-e(n),(s=t-n)?1e3/s*r:0}let iS=.01,iP=2,iA=.005,iN=.5;function iC(e,t){return e*Math.sqrt(1-t*t)}let iE=["duration","bounce"],iM=["stiffness","damping","mass"];function iV(e,t){return t.some(t=>void 0!==e[t])}function iR(e=.3,t=.3){let i,r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:s,restDelta:n}=r,o=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],l={done:!1,value:o},{stiffness:c,damping:u,mass:d,duration:h,velocity:m,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!iV(e,iM)&&iV(e,iE))if(e.visualDuration){let i=2*Math.PI/(1.2*e.visualDuration),r=i*i,s=2*F(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:1,stiffness:r,damping:s}}else{let i=function({duration:e=800,bounce:t=.3,velocity:i=0,mass:r=1}){let s,n;Z(e<=is(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=F(.05,1,o),e=F(.01,10,e/1e3),o<1?(s=t=>{let r=t*o,s=r*e;return .001-(r-i)/iC(t,o)*Math.exp(-s)},n=t=>{let r=t*o*e,n=Math.pow(o,2)*Math.pow(t,2)*e,a=Math.exp(-r),l=iC(Math.pow(t,2),o);return(r*i+i-n)*a*(-s(t)+.001>0?-1:1)/l}):(s=t=>-.001+Math.exp(-t*e)*((t-i)*e+1),n=t=>e*e*(i-t)*Math.exp(-t*e));let a=function(e,t,i){let r=i;for(let i=1;i<12;i++)r-=e(r)/t(r);return r}(s,n,5/e);if(e=is(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(a,2)*r;return{stiffness:t,damping:2*o*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...i,mass:1}).isResolvedFromDuration=!0}return t}({...r,velocity:-((r.velocity||0)/1e3)}),f=m||0,g=u/(2*Math.sqrt(c*d)),y=a-o,v=Math.sqrt(c/d)/1e3,x=5>Math.abs(y);if(s||(s=x?iS:iP),n||(n=x?iA:iN),g<1){let e=iC(v,g);i=t=>a-Math.exp(-g*v*t)*((f+g*v*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}else if(1===g)i=e=>a-Math.exp(-v*e)*(y+(f+v*y)*e);else{let e=v*Math.sqrt(g*g-1);i=t=>{let i=Math.exp(-g*v*t),r=Math.min(e*t,300);return a-i*((f+g*v*y)*Math.sinh(r)+e*y*Math.cosh(r))/e}}let b={calculatedDuration:p&&h||null,next:e=>{let t=i(e);if(p)l.done=e>=h;else{let r=0===e?f:0;g<1&&(r=0===e?is(f):iT(i,e,t));let o=Math.abs(a-t)<=n;l.done=Math.abs(r)<=s&&o}return l.value=l.done?a:t,l},toString:()=>{let e=Math.min(ij(b),2e4),t=ik(t=>b.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return b}function iD({keyframes:e,velocity:t=0,power:i=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:n=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){let d,h,m=e[0],p={done:!1,value:m},f=i*t,g=m+f,y=void 0===o?g:o(g);y!==g&&(f=y-m);let v=e=>-f*Math.exp(-e/r),x=e=>y+v(e),b=e=>{let t=v(e),i=x(e);p.done=Math.abs(t)<=c,p.value=p.done?y:i},w=e=>{let t;if(t=p.value,void 0!==a&&tl){var i;d=e,h=iR({keyframes:[p.value,(i=p.value,void 0===a?l:void 0===l||Math.abs(a-i){let t=!1;return(h||void 0!==d||(t=!0,b(e),w(e)),void 0!==d&&e>=d)?h.next(e-d):(t||b(e),p)}}}iR.applyToOptions=e=>{let t=function(e,t=100,i){let r=i({...e,keyframes:[0,t]}),s=Math.min(ij(r),2e4);return{type:"keyframes",ease:e=>r.next(s*e).value/t,duration:s/1e3}}(e,100,iR);return e.ease=t.ease,e.duration=is(t.duration),e.type="keyframes",e};let iL=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function iO(e,t,i,r){return e===t&&i===r?es:s=>0===s||1===s?s:iL(function(e,t,i,r,s){let n,o,a=0;do(n=iL(o=t+(i-t)/2,r,s)-e)>0?i=o:t=o;while(Math.abs(n)>1e-7&&++a<12)return o}(s,0,1,e,i),t,r)}let iF=iO(.42,0,1,1),iI=iO(0,0,.58,1),iB=iO(.42,0,.58,1),iz=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,i$=e=>t=>1-e(1-t),iU=iO(.33,1.53,.69,.99),iW=i$(iU),i_=iz(iW),iX=e=>(e*=2)<1?.5*iW(e):.5*(2-Math.pow(2,-10*(e-1))),iY=e=>1-Math.sin(Math.acos(e)),iH=i$(iY),iq=iz(iY),iK=e=>Array.isArray(e)&&"number"==typeof e[0],iG={linear:es,easeIn:iF,easeInOut:iB,easeOut:iI,circIn:iY,circInOut:iq,circOut:iH,backIn:iW,backInOut:i_,backOut:iU,anticipate:iX},iZ=e=>{if(iK(e)){J(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,i,r,s]=e;return iO(t,i,r,s)}return"string"==typeof e?(J(void 0!==iG[e],`Invalid easing type '${e}'`,"invalid-easing-type"),iG[e]):e},iJ=(e,t,i)=>{let r=t-e;return 0===r?1:(i-e)/r};function iQ({duration:e=300,keyframes:t,times:i,ease:r="easeInOut"}){var s;let n,o=Array.isArray(r)&&"number"!=typeof r[0]?r.map(iZ):iZ(r),a={done:!1,value:t[0]},l=function(e,t,{clamp:i=!0,ease:r,mixer:s}={}){let n=e.length;if(J(n===t.length,"Both input and output ranges must be the same length","range-length"),1===n)return()=>t[0];if(2===n&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[n-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,i){let r=[],s=i||en.mix||ib,n=e.length-1;for(let i=0;i{if(o&&i1)for(;rc(F(e[0],e[n-1],t)):c}((s=i&&i.length===t.length?i:(!function(e,t){let i=e[e.length-1];for(let r=1;r<=t;r++){let s=iJ(0,t,r);e.push(T(i,1,s))}}(n=[0],t.length-1),n),s.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||iB).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=l(t),a.done=t>=e,a)}}let i0=e=>null!==e;function i1(e,{repeat:t,repeatType:i="loop"},r,s=1){let n=e.filter(i0),o=s<0||t&&"loop"!==i&&t%2==1?0:n.length-1;return o&&void 0!==r?r:n[o]}let i2={decay:iD,inertia:iD,tween:iQ,keyframes:iQ,spring:iR};function i5(e){"string"==typeof e.type&&(e.type=i2[e.type])}class i3{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let i4=e=>e/100;class i6 extends i3{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==eZ.now()&&this.tick(eZ.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},io.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;i5(e);let{type:t=iQ,repeat:i=0,repeatDelay:r=0,repeatType:s,velocity:n=0}=e,{keyframes:o}=e,a=t||iQ;a!==iQ&&"number"!=typeof o[0]&&(this.mixKeyframes=ir(i4,ib(o[0],o[1])),o=[0,100]);let l=a({...e,keyframes:o});"mirror"===s&&(this.mirroredGenerator=a({...e,keyframes:[...o].reverse(),velocity:-n})),null===l.calculatedDuration&&(l.calculatedDuration=ij(l));let{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(i+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:i,totalDuration:r,mixKeyframes:s,mirroredGenerator:n,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:c,repeat:u,repeatType:d,repeatDelay:h,type:m,onUpdate:p,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let v=this.currentTime,x=i;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,u+1))%2&&("reverse"===d?(i=1-i,h&&(i-=h/o)):"mirror"===d&&(x=n)),v=F(0,1,i)*o}let b=y?{done:!1,value:c[0]}:x.next(v);s&&(b.value=s(b.value));let{done:w}=b;y||null===a||(w=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return k&&m!==iD&&(b.value=i1(c,this.options,f,this.speed)),p&&p(b.value),k&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=is(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(eZ.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=iw,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),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=t??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(eZ.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,io.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function i7(e){let t;return()=>(void 0===t&&(t=e()),t)}let i9=i7(()=>void 0!==window.ScrollTimeline),i8={},re=(i=i7(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),()=>i8.linearEasing??i()),rt=([e,t,i,r])=>`cubic-bezier(${e}, ${t}, ${i}, ${r})`,ri={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:rt([0,.65,.55,1]),circOut:rt([.55,0,1,.45]),backIn:rt([.31,.01,.66,-.59]),backOut:rt([.33,1.53,.69,.99])};function rr(e){return"function"==typeof e&&"applyToOptions"in e}class rs extends i3{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:i,keyframes:r,pseudoElement:s,allowFlatten:n=!1,finalKeyframe:o,onComplete:a}=e;this.isPseudoElement=!!s,this.allowFlatten=n,this.options=e,J("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return rr(e)&&re()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,i,{delay:r=0,duration:s=300,repeat:n=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c){let u={[t]:i};l&&(u.offset=l);let d=function e(t,i){if(t)return"function"==typeof t?re()?ik(t,i):"ease-out":iK(t)?rt(t):Array.isArray(t)?t.map(t=>e(t,i)||ri.easeOut):ri[t]}(a,s);Array.isArray(d)&&(u.easing=d);let h={delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:n+1,direction:"reverse"===o?"alternate":"normal"};c&&(h.pseudoElement=c);let m=e.animate(u,h);return m}(t,i,r,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let e=i1(r,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(e):i.startsWith("--")?t.style.setProperty(i,e):t.style[i]=e,this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(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:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){this.finishedTime=null,this.animation.currentTime=is(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&i9())?(this.animation.timeline=e,es):t(this)}}let rn={anticipate:iX,backInOut:i_,circInOut:iq};class ro extends rs{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in rn&&(e.ease=rn[e.ease])}(e),i5(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:i,onComplete:r,element:s,...n}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let o=new i6({...n,autoplay:!1}),a=is(this.finishedTime??this.time);t.setWithVelocity(o.sample(a-10).value,o.sample(a).value,10),o.stop()}}let ra=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eF.test(e)||"0"===e)&&!e.startsWith("url(")),rl=new Set(["opacity","clipPath","filter","transform"]),rc=i7(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class ru extends i3{constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:n="loop",keyframes:o,name:a,motionValue:l,element:c,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=eZ.now();const d={autoplay:e,delay:t,type:i,repeat:r,repeatDelay:s,repeatType:n,name:a,motionValue:l,element:c,...u},h=c?.KeyframeResolver||ev;this.keyframeResolver=new h(o,(e,t,i)=>this.onKeyframesResolved(e,t,d,!i),a,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,i,r){this.keyframeResolver=void 0;let{name:s,type:n,velocity:o,delay:a,isHandoff:l,onUpdate:c}=i;this.resolvedAt=eZ.now(),!function(e,t,i,r){let s=e[0];if(null===s)return!1;if("display"===t||"visibility"===t)return!0;let n=e[e.length-1],o=ra(s,t),a=ra(n,t);return Z(o===a,`You are trying to animate ${t} from "${s}" to "${n}". "${o?n:s}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...i,keyframes:e},d=!l&&function(e){let{motionValue:t,name:i,repeatDelay:r,repeatType:s,damping:n,type:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=t.owner.getProps();return rc()&&i&&rl.has(i)&&("transform"!==i||!l)&&!a&&!r&&"mirror"!==s&&0!==n&&"inertia"!==o}(u)?new ro({...u,element:u.motionValue.owner.current}):new i6(u);d.finished.then(()=>this.notifyFinished()).catch(es),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ef=!0,ey(),eg(),ef=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let rd=e=>null!==e,rh={type:"spring",stiffness:500,damping:25,restSpeed:10},rm={type:"keyframes",duration:.8},rp={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rf=(e,t,i,r={},s,n)=>o=>{let l=t9(r,e)||{},c=l.delay||r.delay||0,{elapsed:u=0}=r;u-=is(c);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:n?void 0:s};!function({when:e,delay:t,delayChildren:i,staggerChildren:r,staggerDirection:s,repeat:n,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(l)&&Object.assign(d,((e,{keyframes:t})=>t.length>2?rm:a.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:rh:rp)(e,d)),d.duration&&(d.duration=is(d.duration)),d.repeatDelay&&(d.repeatDelay=is(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let h=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(it(d),0===d.delay&&(h=!0)),(en.instantAnimations||en.skipAnimations)&&(h=!0,it(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,h&&!n&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:i="loop"},r){let s=e.filter(rd),n=t&&"loop"!==i&&t%2==1?0:s.length-1;return s[n]}(d.keyframes,l);if(void 0!==e)return void el.update(()=>{d.onUpdate(e),d.onComplete()})}return l.isSync?new i6(d):new ru(d)};function rg(e,t,{delay:i=0,transitionOverride:r,type:s}={}){let{transition:n=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(n=r);let l=[],c=s&&e.animationState&&e.animationState.getState()[s];for(let t in a){let r=e.getValue(t,e.latestValues[t]??null),s=a[t];if(void 0===s||c&&function({protectedKeys:e,needsAnimating:t},i){let r=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,r}(c,t))continue;let o={delay:i,...t9(n||{},t)},u=r.get();if(void 0!==u&&!r.isAnimating&&!Array.isArray(s)&&s===u&&!o.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let i=e.props[t5];if(i){let e=window.MotionHandoffAnimation(i,t,el);null!==e&&(o.startTime=e,d=!0)}}ie(e,t),r.start(rf(t,r,s,e.shouldReduceMotion&&O.has(t)?{type:!1}:o,e,d));let h=r.animation;h&&l.push(h)}return o&&Promise.all(l).then(()=>{el.update(()=>{o&&function(e,t){let{transitionEnd:i={},transition:r={},...s}=t7(e,t)||{};for(let t in s={...s,...i}){var n;let i=t8(n=s[t])?n[n.length-1]||0:n;e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,e2(i))}}(e,o)})}),l}function ry(e,t,i,r=0,s=1){let n=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,a=(o-1)*r;return"function"==typeof i?i(n,o):1===s?n*r:a-n*r}function rv(e,t,i={}){let r=t7(e,t,"exit"===i.type?e.presenceContext?.custom:void 0),{transition:s=e.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(s=i.transitionOverride);let n=r?()=>Promise.all(rg(e,r,i)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:n=0,staggerChildren:o,staggerDirection:a}=s;return function(e,t,i=0,r=0,s=0,n=1,o){let a=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),a.push(rv(l,t,{...o,delay:i+("function"==typeof r?0:r)+ry(e.variantChildren,l,r,s,n)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}(e,t,r,n,o,a,i)}:()=>Promise.resolve(),{when:a}=s;if(!a)return Promise.all([n(),o(i.delay)]);{let[e,t]="beforeChildren"===a?[n,o]:[o,n];return e().then(()=>t())}}function rx(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let r=0;re.removeEventListener(t,i)}let rC=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function rE(e){return{point:{x:e.pageX,y:e.pageY}}}function rM(e,t,i,r){return rN(e,t,e=>rC(e)&&i(e,rE(e)),r)}function rV(e){return e.max-e.min}function rR(e,t,i,r=.5){e.origin=r,e.originPoint=T(t.min,t.max,e.origin),e.scale=rV(i)/rV(t),e.translate=T(i.min,i.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rD(e,t,i,r){rR(e.x,t.x,i.x,r?r.originX:void 0),rR(e.y,t.y,i.y,r?r.originY:void 0)}function rL(e,t,i){e.min=i.min+t.min,e.max=e.min+rV(t)}function rO(e,t,i){e.min=t.min-i.min,e.max=e.min+rV(t)}function rF(e,t,i){rO(e.x,t.x,i.x),rO(e.y,t.y,i.y)}function rI(e){return[e("x"),e("y")]}let rB=({current:e})=>e?e.ownerDocument.defaultView:null,rz=(e,t)=>Math.abs(e-t);class r${constructor(e,t,{transformPagePoint:i,contextWindow:r=window,dragSnapToOrigin:s=!1,distanceThreshold:n=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=r_(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,s=(e=i.offset,t={x:0,y:0},Math.sqrt(rz(e.x,t.x)**2+rz(e.y,t.y)**2)>=this.distanceThreshold);if(!r&&!s)return;let{point:n}=i,{timestamp:o}=eu;this.history.push({...n,timestamp:o});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=rU(t,this.transformPagePoint),el.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=r_("pointercancel"===e.type?this.lastMoveEventInfo:rU(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,n),r&&r(e,n)},!rC(e))return;this.dragSnapToOrigin=s,this.handlers=t,this.transformPagePoint=i,this.distanceThreshold=n,this.contextWindow=r||window;const o=rU(rE(e),this.transformPagePoint),{point:a}=o,{timestamp:l}=eu;this.history=[{...a,timestamp:l}];const{onSessionStart:c}=t;c&&c(e,r_(o,this.history)),this.removeListeners=ir(rM(this.contextWindow,"pointermove",this.handlePointerMove),rM(this.contextWindow,"pointerup",this.handlePointerUp),rM(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ec(this.updatePoint)}}function rU(e,t){return t?{point:t(e.point)}:e}function rW(e,t){return{x:e.x-t.x,y:e.y-t.y}}function r_({point:e},t){return{point:e,delta:rW(e,rX(t)),offset:rW(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let i=e.length-1,r=null,s=rX(e);for(;i>=0&&(r=e[i],!(s.timestamp-r.timestamp>is(.1)));)i--;if(!r)return{x:0,y:0};let n=(s.timestamp-r.timestamp)/1e3;if(0===n)return{x:0,y:0};let o={x:(s.x-r.x)/n,y:(s.y-r.y)/n};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t,.1)}}function rX(e){return e[e.length-1]}function rY(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function rH(e,t){let i=t.min-e.min,r=t.max-e.max;return t.max-t.min{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(rE(e).point)},n=(e,t)=>{let{drag:i,dragPropagation:r,onDragStart:s}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(rA[e])return null;else return rA[e]=!0,()=>{rA[e]=!1};return rA.x||rA.y?null:(rA.x=rA.y=!0,()=>{rA.x=rA.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rI(e=>{let t=this.getAxisMotionValue(e).get()||0;if(W.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[e];r&&(t=rV(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),s&&el.postRender(()=>s(e,t)),ie(this.visualElement,"transform");let{animationState:n}=this.visualElement;n&&n.setActive("whileDrag",!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:s,onDrag:n}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(o),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),n&&n(e,t)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>rI(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new r$(e,{onSessionStart:s,onStart:n,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:i,contextWindow:rB(this.visualElement)})}stop(e,t){let i=e||this.latestPointerEvent,r=t||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!r||!i)return;let{velocity:n}=r;this.startAnimation(n);let{onDragEnd:o}=this.getProps();o&&el.postRender(()=>o(i,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,i){let{drag:r}=this.getProps();if(!i||!rJ(e,r,this.currentDirection))return;let s=this.getAxisMotionValue(e),n=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(n=function(e,{min:t,max:i},r){return void 0!==t&&ei&&(e=r?T(i,e,r.max):Math.min(e,i)),e}(n,this.constraints[e],this.elastic[e])),s.set(n)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&t2(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(e,{top:t,left:i,bottom:r,right:s}){return{x:rY(e.x,i,s),y:rY(e.y,t,r)}}(i.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:rq(e,"left","right"),y:rq(e,"top","bottom")}}(t),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rI(e=>{var t,r;let s;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=i.layoutBox[e],r=this.constraints[e],s={},void 0!==r.min&&(s.min=r.min-t.min),void 0!==r.max&&(s.max=r.max-t.min),s))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!t2(t))return!1;let r=t.current;J(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let n=function(e,t,i){let r=L(e,i),{scroll:s}=t;return s&&(V(r.x,s.offset.x),V(r.y,s.offset.y)),r}(r,s.root,this.visualElement.getTransformPagePoint()),o=(e=s.layout.layoutBox,{x:rH(e.x,n.x),y:rH(e.y,n.y)});if(i){let e=i(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=j(e))}return o}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:r,dragTransition:s,dragSnapToOrigin:n,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(rI(o=>{if(!rJ(o,t,this.currentDirection))return;let l=a&&a[o]||{};n&&(l={min:0,max:0});let c={type:"inertia",velocity:i?e[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(o,c)})).then(o)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return ie(this.visualElement,e),i.start(rf(e,i,0,t,this.visualElement,!1))}stopAnimation(){rI(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){rI(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps();return i[t]||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){rI(t=>{let{drag:i}=this.getProps();if(!rJ(t,i,this.currentDirection))return;let{projection:r}=this.visualElement,s=this.getAxisMotionValue(t);if(r&&r.layout){let{min:i,max:n}=r.layout.layoutBox[t];s.set(e[t]-T(i,n,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!t2(t)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rI(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var i,s;let n,o,a,l=t.get();r[e]=(i={min:l,max:l},s=this.constraints[e],n=.5,o=rV(i),(a=rV(s))>o?n=iJ(s.min,s.max-o,i.min):o>a&&(n=iJ(i.min,i.max-a,s.min)),F(0,1,n))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),rI(t=>{if(!rJ(t,e,null))return;let i=this.getAxisMotionValue(t),{min:s,max:n}=this.constraints[t];i.set(T(s,n,r[t]))})}addListeners(){if(!this.visualElement.current)return;rG.set(this.visualElement,this);let e=rM(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:i=!0}=this.getProps();t&&i&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();t2(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",t);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),el.read(t);let s=rN(window,"resize",()=>this.scalePositionWithinConstraints()),n=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rI(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),e(),r(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:n=.35,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:r,dragConstraints:s,dragElastic:n,dragMomentum:o}}}function rJ(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}let rQ=e=>(t,i)=>{e&&el.postRender(()=>e(t,i))};var r0=n;function r1(e=!0){let t=(0,n.useContext)(tK);if(null===t)return[!0,null];let{isPresent:i,onExitComplete:r,register:s}=t,o=(0,n.useId)();(0,n.useEffect)(()=>{if(e)return s(o)},[e]);let a=(0,n.useCallback)(()=>e&&r&&r(o),[o,r,e]);return!i&&r?[!1,a]:[!0]}e.s(["usePresence",()=>r1],64978);let r2={hasAnimatedSinceResize:!0,hasEverUpdated:!1},r5=!1;class r3 extends r0.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:r}=this.props,{projection:s}=e;s&&(t.group&&t.group.add(s),i&&i.register&&r&&i.register(s),r5&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),r2.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:r,isPresent:s}=this.props,{projection:n}=i;return n&&(n.isPresent=s,r5=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==s?n.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?n.promote():n.relegate()||el.postRender(()=>{let e=n.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),e3.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:r}=e;r5=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function r4(e){let[t,i]=r1(),r=(0,r0.useContext)(tI);return(0,tF.jsx)(r3,{...e,layoutGroup:r,switchLayoutGroup:(0,r0.useContext)(t3),isPresent:t,safeToRemove:i})}function r6(e){return"object"==typeof e&&null!==e}function r7(e){return r6(e)&&"ownerSVGElement"in e}let r9=(e,t)=>e.depth-t.depth;class r8{constructor(){this.children=[],this.isDirty=!1}add(e){eJ(this.children,e),this.isDirty=!0}remove(e){eQ(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(r9),this.isDirty=!1,this.children.forEach(e)}}let se=["TopLeft","TopRight","BottomLeft","BottomRight"],st=se.length,si=e=>"string"==typeof e?parseFloat(e):e,sr=e=>"number"==typeof e||_.test(e);function ss(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let sn=sa(0,.5,iH),so=sa(.5,.95,es);function sa(e,t,i){return r=>rt?1:i(iJ(e,t,r))}function sl(e,t){e.min=t.min,e.max=t.max}function sc(e,t){sl(e.x,t.x),sl(e.y,t.y)}function su(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function sd(e,t,i,r,s){return e-=t,e=r+1/i*(e-r),void 0!==s&&(e=r+1/s*(e-r)),e}function sh(e,t,[i,r,s],n,o){!function(e,t=0,i=1,r=.5,s,n=e,o=e){if(W.test(t)&&(t=parseFloat(t),t=T(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let a=T(n.min,n.max,r);e===n&&(a-=t),e.min=sd(e.min,t,i,a,s),e.max=sd(e.max,t,i,a,s)}(e,t[i],t[r],t[s],t.scale,n,o)}let sm=["x","scaleX","originX"],sp=["y","scaleY","originY"];function sf(e,t,i,r){sh(e.x,t,sm,i?i.x:void 0,r?r.x:void 0),sh(e.y,t,sp,i?i.y:void 0,r?r.y:void 0)}function sg(e){return 0===e.translate&&1===e.scale}function sy(e){return sg(e.x)&&sg(e.y)}function sv(e,t){return e.min===t.min&&e.max===t.max}function sx(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function sb(e,t){return sx(e.x,t.x)&&sx(e.y,t.y)}function sw(e){return rV(e.x)/rV(e.y)}function sk(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class sj{constructor(){this.members=[]}add(e){eJ(this.members,e),e.scheduleRender()}remove(e){if(eQ(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,i=this.members.findIndex(t=>e===t);if(0===i)return!1;for(let e=i;e>=0;e--){let i=this.members[e];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,t&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:i}=e;t.onExitComplete&&t.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let sT=["","X","Y","Z"],sS=0;function sP(e,t,i,r){let{latestValues:s}=t;s[e]&&(i[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function sA({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(e={},i=t?.()){this.id=sS++,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(sE),this.nodes.forEach(sF),this.nodes.forEach(sI),this.nodes.forEach(sM)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,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 e=0;ethis.root.updateBlockedByResize=!1;el.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==r){let t,n;r=e,this.root.updateBlockedByResize=!0,i&&i(),t=eZ.now(),n=({timestamp:e})=>{let i=e-t;i>=250&&(ec(n),s(i-250))},el.setup(n,!0),i=()=>ec(n),r2.hasAnimatedSinceResize&&(r2.hasAnimatedSinceResize=!1,this.nodes.forEach(sO))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||s.getDefaultTransition()||s_,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!sb(this.targetLayout,r),c=!t&&i;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...t9(n,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c)}else t||sO(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ec(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(sB),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:i}=t.options;if(!i)return;let r=i.props[t5];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",el,!(e||i))}let{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&e(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||rV(this.snapshot.measuredBox.x)||rV(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 e=0;e.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=te());let{target:a}=e;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(su(this.prevProjectionDelta.x,this.projectionDelta.x),su(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rD(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===n&&this.treeScale.y===o&&sk(this.projectionDelta.x,this.prevProjectionDelta.x)&&sk(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=e9(),this.projectionDelta=e9(),this.projectionDeltaWithTransform=e9()}setAnimationOrigin(e,t=!1){let i,r=this.snapshot,s=r?r.latestValues:{},n={...this.latestValues},o=e9();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let a=te(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),u=!c||c.members.length<=1,d=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(sW));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(s$(o.x,e.x,r),s$(o.y,e.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,h,m,p,f,g;rF(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,f=a,g=r,sU(m.x,p.x,f.x,g),sU(m.y,p.y,f.y,g),i&&(c=this.relativeTarget,h=i,sv(c.x,h.x)&&sv(c.y,h.y))&&(this.isProjectionDirty=!1),i||(i=te()),sc(i,this.relativeTarget)}l&&(this.animationValues=n,function(e,t,i,r,s,n){s?(e.opacity=T(0,i.opacity??1,sn(r)),e.opacityExit=T(t.opacity??1,0,so(r))):n&&(e.opacity=T(t.opacity??1,i.opacity??1,r));for(let s=0;s{var t,i,r;let s;r2.hasAnimatedSinceResize=!0,io.layout++,this.motionValue||(this.motionValue=e2(0)),this.currentAnimation=(t=this.motionValue,i=[0,1e3],r={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{io.layout--},onComplete:()=>{io.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}},(s=eK(t)?t:e2(t)).start(rf("",s,i,r)),s.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 e=this.getStack();e&&e.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 e=this.getLead(),{targetWithTransforms:t,target:i,layout:r,latestValues:s}=e;if(t&&i&&r){if(this!==e&&this.layout&&r&&sq(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||te();let t=rV(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let r=rV(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+r}sc(t,i),D(t,s),rD(this.projectionDeltaWithTransform,this.layoutCorrected,t,s)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new sj),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let r={};i.z&&sP("z",e,r,this.animationValues);for(let t=0;te.currentAnimation?.stop()),this.root.nodes.forEach(sR),this.root.sharedNodes.clear()}}}function sN(e){e.updateLayout()}function sC(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:r}=e.layout,{animationType:s}=e.options,n=t.source!==e.layout.source;"size"===s?rI(e=>{let r=n?t.measuredBox[e]:t.layoutBox[e],s=rV(r);r.min=i[e].min,r.max=r.min+s}):sq(s,t.layoutBox,i)&&rI(r=>{let s=n?t.measuredBox[r]:t.layoutBox[r],o=rV(i[r]);s.max=s.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=e9();rD(o,i,t.layoutBox);let a=e9();n?rD(a,e.applyTransform(r,!0),t.measuredBox):rD(a,i,t.layoutBox);let l=!sy(o),c=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:s,layout:n}=r;if(s&&n){let o=te();rF(o,t.layoutBox,s.layoutBox);let a=te();rF(a,i,n.layoutBox),sb(o,a)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function sE(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function sM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sV(e){e.clearSnapshot()}function sR(e){e.clearMeasurements()}function sD(e){e.isLayoutDirty=!1}function sL(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sO(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function sF(e){e.resolveTargetDelta()}function sI(e){e.calcProjection()}function sB(e){e.resetSkewAndRotation()}function sz(e){e.removeLeadSnapshot()}function s$(e,t,i){e.translate=T(t.translate,0,i),e.scale=T(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function sU(e,t,i,r){e.min=T(t.min,i.min,r),e.max=T(t.max,i.max,r)}function sW(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let s_={duration:.45,ease:[.4,0,.1,1]},sX=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sY=sX("applewebkit/")&&!sX("chrome/")?Math.round:es;function sH(e){e.min=sY(e.min),e.max=sY(e.max)}function sq(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(sw(t)-sw(i)))}function sK(e){return e!==e.root&&e.scroll?.wasRoot}let sG=sA({attachResizeListener:(e,t)=>rN(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sZ={current:void 0},sJ=sA({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sZ.current){let e=new sG({});e.mount(window),e.setOptions({layoutScroll:!0}),sZ.current=e}return sZ.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function sQ(e,t){let i=function(e,t,i){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document,i=(void 0)??t.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}(e),r=new AbortController;return[i,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function s0(e){return!("touch"===e.pointerType||rA.x||rA.y)}function s1(e,t,i){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===i);let s=r["onHover"+i];s&&el.postRender(()=>s(t,rE(t)))}function s2(e){return r6(e)&&"offsetHeight"in e}e.s(["isHTMLElement",()=>s2],72846);let s5=(e,t)=>!!t&&(e===t||s5(e,t.parentElement)),s3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),s4=new WeakSet;function s6(e){return t=>{"Enter"===t.key&&e(t)}}function s7(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function s9(e){return rC(e)&&!(rA.x||rA.y)}function s8(e,t,i){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===i);let s=r["onTap"+("End"===i?"":i)];s&&el.postRender(()=>s(t,rE(t)))}let ne=new WeakMap,nt=new WeakMap,ni=e=>{let t=ne.get(e.target);t&&t(e)},nr=e=>{e.forEach(ni)},ns={some:0,all:1},nn=function(e,t){if("undefined"==typeof Proxy)return t6;let i=new Map,r=(i,r)=>t6(i,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(s,n)=>"create"===n?r:(i.has(n)||i.set(n,t6(n,void 0,e,t)),i.get(n))})}({animation:{Feature:class extends rS{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>rv(e,t,i)));else if("string"==typeof t)r=rv(e,t,i);else{let s="function"==typeof t?t7(e,t,i.custom):t;r=Promise.all(rg(e,s,i))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,i))),i=rT(),r=!0,s=t=>(i,r)=>{let s=t7(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(s){let{transition:e,transitionEnd:t,...r}=s;i={...i,...r,...t}}return i};function n(n){let{props:o}=e,a=function e(t){if(!t)return;if(!t.isControllingVariants){let i=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(i.initial=t.props.initial),i}let i={};for(let e=0;ed&&y,k=!1,j=Array.isArray(g)?g:[g],T=j.reduce(s(p),{});!1===v&&(T={});let{prevResolvedValues:S={}}=f,P={...S,...T},A=t=>{w=!0,c.has(t)&&(k=!0,c.delete(t)),f.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in P){let t=T[e],i=S[e];if(!u.hasOwnProperty(e))(t8(t)&&t8(i)?rx(t,i):t===i)?void 0!==t&&c.has(e)?A(e):f.protectedKeys[e]=!0:null!=t?A(e):c.add(e)}f.prevProp=g,f.prevResolvedValues=T,f.isActive&&(u={...u,...T}),r&&e.blockInitialAnimation&&(w=!1);let N=x&&b,C=!N||k;w&&C&&l.push(...j.map(t=>{let i={type:p};if("string"==typeof t&&r&&!N&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,s=t7(r,t);if(r.enteringChildren&&s){let{delayChildren:t}=s.transition||{};i.delay=ry(r.enteringChildren,e,t)}}return{animation:t,options:i}}))}if(c.size){let t={};if("boolean"!=typeof o.initial){let i=t7(e,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(t.transition=i.transition)}c.forEach(i=>{let r=e.getBaseTarget(i),s=e.getValue(i);s&&(s.liveStyle=!0),t[i]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(!1===o.initial||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:n,setActive:function(t,r){if(i[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),i[t].isActive=r;let s=n(t);for(let e in i)i[e].protectedKeys={};return s},setAnimateFunction:function(i){t=i(e)},getState:()=>i,reset:()=>{i=rT()}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tn(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends rS{constructor(){super(...arguments),this.id=rP++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends rS{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:r,margin:s,amount:n="some",once:o}=i,a={root:r?r.current:void 0,rootMargin:s,threshold:"number"==typeof n?n:ns[n]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,o&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:i,onViewportLeave:r}=this.node.getProps(),s=t?i:r;s&&s(e)};return e=this.node.current,t=function({root:e,...t}){let i=e||document;nt.has(i)||nt.set(i,{});let r=nt.get(i),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(nr,{root:e,...t})),r[s]}(a),ne.set(e,l),t.observe(e),()=>{ne.delete(e),t.unobserve(e)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends rS{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[r,s,n]=sQ(e,i),o=e=>{let r=e.currentTarget;if(!s9(e))return;s4.add(r);let n=t(r,e),o=(e,t)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),s4.has(r)&&s4.delete(r),s9(e)&&"function"==typeof n&&n(e,{success:t})},a=e=>{o(e,r===window||r===document||i.useGlobalTarget||s5(r,e.target))},l=e=>{o(e,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return r.forEach(e=>{((i.useGlobalTarget?window:e).addEventListener("pointerdown",o,s),s2(e))&&(e.addEventListener("focus",e=>((e,t)=>{let i=e.currentTarget;if(!i)return;let r=s6(()=>{if(s4.has(i))return;s7(i,"down");let e=s6(()=>{s7(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>s7(i,"cancel"),t)});i.addEventListener("keydown",r,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),t)})(e,s)),s3.has(e.tagName)||-1!==e.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),n}(e,(e,t)=>(s8(this.node,t,"Start"),(e,{success:t})=>s8(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends rS{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ir(rN(this.node.current,"focus",()=>this.onFocus()),rN(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends rS{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[r,s,n]=sQ(e,i),o=e=>{if(!s0(e))return;let{target:i}=e,r=t(i,e);if("function"!=typeof r||!i)return;let n=e=>{s0(e)&&(r(e),i.removeEventListener("pointerleave",n))};i.addEventListener("pointerleave",n,s)};return r.forEach(e=>{e.addEventListener("pointerenter",o,s)}),n}(e,(e,t)=>(s1(this.node,t,"Start"),e=>s1(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends rS{constructor(){super(...arguments),this.removePointerDownListener=es}onPointerDown(e){this.session=new r$(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rB(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:rQ(e),onStart:rQ(t),onMove:i,onEnd:(e,t)=>{delete this.session,r&&el.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=rM(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends rS{constructor(e){super(e),this.removeGroupControls=es,this.removeListeners=es,this.controls=new rZ(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||es}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:sJ,MeasureLayout:r4},layout:{ProjectionNode:sJ,MeasureLayout:r4}},(e,t)=>tO(e)?new tD(t):new tP(t,{allowProjection:e!==n.Fragment}));e.s(["motion",()=>nn],46932);var no=e.i(75157);function na({className:e,children:t,tag:i="h2"}){return(0,tF.jsx)(i,{className:(0,no.cn)({h1:"text-5xl md:text-7xl font-bold tracking-tight mb-6 leading-tight drop-shadow-lg",h2:"text-4xl font-bold mb-8 leading-tight text-primary",h3:"text-2xl font-bold text-primary transition-colors mb-4"}[i],e),children:t})}e.s(["SectionTitle",()=>na],23605)},19136,e=>{"use strict";var t=e.i(43476),i=e.i(75157);function r({className:e,children:r}){return(0,t.jsx)("p",{className:(0,i.cn)("text-gray-500 leading-relaxed",e),children:r})}e.s(["SectionDescription",()=>r])},77258,e=>{"use strict";var t=e.i(43476),i=e.i(46932),r=e.i(88653),s=e.i(59544),n=e.i(71645),o=e.i(23605),a=e.i(19136),l=e.i(22016);let c=["/photo/hero-1.jpg","/photo/hero-2.jpg","/photo/hero-3.jpg","/photo/hero-4.jpg","/photo/hero-5.jpg"];function u(){let[e,u]=(0,n.useState)(0);return(0,n.useEffect)(()=>{let e=setInterval(()=>{u(e=>(e+1)%c.length)},5e3);return()=>clearInterval(e)},[]),(0,t.jsxs)("section",{className:"hero-section relative h-screen min-h-[800px] flex items-center justify-center overflow-hidden",children:[(0,t.jsx)(r.AnimatePresence,{mode:"popLayout",children:(0,t.jsx)(i.motion.div,{className:"hero-carousel-item absolute inset-0 z-0 bg-cover bg-center",style:{backgroundImage:`url('${c[e]}')`},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:1.5,ease:"easeInOut"},children:(0,t.jsx)("div",{className:"hero-overlay absolute inset-0 bg-black/40"})},e)}),(0,t.jsx)("div",{className:"hero-container container relative z-10 px-6 text-center text-white",children:(0,t.jsxs)(i.motion.div,{className:"hero-content-wrapper",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2},children:[(0,t.jsx)("span",{className:"hero-badge inline-block py-1 px-3 mb-6 border border-white/30 rounded-full bg-white/10 backdrop-blur-sm text-sm tracking-wider uppercase",children:"Start Your Premium Life"}),(0,t.jsxs)(o.SectionTitle,{tag:"h1",className:"hero-title text-white drop-shadow-lg",children:["Defining the Future ",(0,t.jsx)("br",{})," of ",(0,t.jsx)("span",{className:"text-secondary italic",children:"Stays"})]}),(0,t.jsxs)(a.SectionDescription,{className:"hero-description text-lg md:text-xl text-white max-w-2xl mx-auto mb-10 font-medium drop-shadow-md",children:["Staymore는 공간의 가치를 높이고, ",(0,t.jsx)("br",{className:"hidden md:block"}),"고객의 삶에 품격을 더하는 프리미엄 공간 관리 서비스를 제공합니다."]}),(0,t.jsxs)("div",{className:"hero-actions flex flex-col sm:flex-row gap-4 justify-center",children:[(0,t.jsx)(s.Button,{asChild:!0,size:"lg",className:"hero-btn-primary bg-white text-black hover:bg-white/90 font-medium px-8 text-base",children:(0,t.jsx)(l.default,{href:"#services",children:"Explore Services"})}),(0,t.jsx)(s.Button,{asChild:!0,size:"lg",variant:"outline",className:"hero-btn-secondary border-white text-white hover:bg-white/20 hover:text-white font-medium px-8 text-base bg-transparent",children:(0,t.jsx)(l.default,{href:"#contact",children:"Contact Us"})})]})]})}),(0,t.jsx)(i.motion.div,{className:"hero-scroll-indicator absolute bottom-10 left-1/2 transform -translate-x-1/2",initial:{opacity:0},animate:{opacity:1,y:[0,10,0]},transition:{duration:2,repeat:1/0,delay:1},children:(0,t.jsx)("div",{className:"w-6 h-10 border-2 border-white/30 rounded-full flex justify-center p-1",children:(0,t.jsx)("div",{className:"hero-scroll-dot w-1 h-2 bg-white rounded-full"})})})]})}e.s(["Hero",()=>u])},33334,1648,e=>{"use strict";var t=e.i(43476),i=e.i(75157);function r({id:e,className:r,children:s,containerClassName:n}){return(0,t.jsx)("section",{id:e,className:(0,i.cn)("py-24",r),children:(0,t.jsx)("div",{className:(0,i.cn)("container mx-auto px-6",n),children:s})})}function s({className:e,children:r}){return(0,t.jsx)("span",{className:(0,i.cn)("text-secondary font-medium tracking-wider uppercase mb-4 block",e),children:r})}e.s(["Section",()=>r],33334),e.s(["SectionBadge",()=>s],1648)},95116,e=>{"use strict";var t=e.i(43476),i=e.i(46932),r=e.i(33334),s=e.i(1648),n=e.i(23605),o=e.i(19136);function a(){return(0,t.jsx)(r.Section,{id:"about",className:"about-section bg-white",children:(0,t.jsxs)("div",{className:"about-container flex flex-col md:flex-row items-center gap-16",children:[(0,t.jsxs)(i.motion.div,{className:"about-text-content w-full md:w-1/2",initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},children:[(0,t.jsx)(s.SectionBadge,{className:"about-badge",children:"1. About Staymore"}),(0,t.jsxs)(n.SectionTitle,{className:"about-title",children:["우리의 공간은 ",(0,t.jsx)("br",{}),(0,t.jsx)("span",{className:"about-title-highlight text-gray-400",children:"머무름 그 이상의 가치를 만듭니다."})]}),(0,t.jsxs)("div",{className:"about-description-wrapper space-y-3 text-gray-600 leading-relaxed",children:[(0,t.jsx)("p",{className:"about-description-1",children:"우리는 공간의 가치는 설계로 시작되지만, 운영과 관리로 완성된다고 믿습니다."}),(0,t.jsx)("p",{className:"about-description-2",children:"모든 공간은 사람에게 영향을 줍니다. Staymore는 그 영향이 편안함을 넘어 안정과 신뢰로 이어지도록 보이지 않는 디테일까지 관리합니다."}),(0,t.jsx)("p",{className:"about-description-3",children:"그래서 Staymore의 공간은 머무는 시간이 아닌, 경험으로 남습니다."}),(0,t.jsx)("div",{className:"about-stats-wrapper pt-4",children:(0,t.jsxs)("div",{className:"about-stats-grid grid grid-cols-2 gap-8",children:[(0,t.jsxs)("div",{className:"about-stat-item",children:[(0,t.jsx)("h4",{className:"about-stat-value text-3xl font-bold text-primary mb-1",children:"500+"}),(0,t.jsx)(o.SectionDescription,{className:"about-stat-label text-sm",children:"Managed Properties"})]}),(0,t.jsxs)("div",{className:"about-stat-item",children:[(0,t.jsx)("h4",{className:"about-stat-value text-3xl font-bold text-primary mb-1",children:"98%"}),(0,t.jsx)(o.SectionDescription,{className:"about-stat-label text-sm",children:"Customer Satisfaction"})]})]})})]})]}),(0,t.jsx)(i.motion.div,{className:"about-image-wrapper w-full md:w-1/2 relative h-[600px]",initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},children:(0,t.jsx)("div",{className:"about-image-container absolute inset-0 bg-gray-200 rounded-lg overflow-hidden",children:(0,t.jsx)("div",{className:"about-image w-full h-full bg-cover bg-center",style:{backgroundImage:"url('/photo/about-bg.jpg')"}})})})]})})}e.s(["About",()=>a])},1689,e=>{"use strict";var t=e.i(43476),i=e.i(46932),r=e.i(75254);let s=(0,r.default)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]),n=(0,r.default)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),o=(0,r.default)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);var a=e.i(33334),l=e.i(75157);function c({className:e,children:i,align:r="left"}){return(0,t.jsx)("div",{className:(0,l.cn)("mb-16 max-w-2xl",{left:"text-left",center:"text-center mx-auto",right:"text-right ml-auto"}[r],e),children:i})}var u=e.i(1648),d=e.i(23605),h=e.i(19136);let m=[{icon:o,title:"Trust",subtitle:"신뢰는 운영의 기본입니다",description:"Staymore는 약속보다 결과를 중시합니다.
투명한 기준과 일관된 관리로
모두가 안심할 수 있는 운영을 만듭니다."},{icon:n,title:"Operation",subtitle:"가치는 운영에서 완성됩니다",description:"Staymore는 공간의 잠재력을 이해하고
운영과 관리로 그 가치를 완성합니다.
수익성과 안정이 함께 유지되도록 설계합니다."},{icon:s,title:"Experience",subtitle:"경험은 불편없는 운영입니다",description:"Staymore가 말하는 경험은 감동이 아니라
불편이 발생하지 않는 상태입니다.
문제 없는 관리와 빠른 대응을 기준으로 합니다."}];function p(){return(0,t.jsxs)(a.Section,{id:"philosophy",className:"philosophy-section bg-gray-50",children:[(0,t.jsx)(c,{align:"center",className:"philosophy-header",children:(0,t.jsxs)(i.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[(0,t.jsx)(u.SectionBadge,{className:"philosophy-badge",children:"2. Our Philosophy"}),(0,t.jsxs)(d.SectionTitle,{className:"philosophy-title",children:["우리의 철학은 ",(0,t.jsx)("br",{})," 공간의 가치를 완성합니다"]}),(0,t.jsxs)(h.SectionDescription,{className:"philosophy-description",children:["Staymore는 공간의 겉모습보다, ",(0,t.jsx)("br",{}),"그 공간이 만들어내는 가치를 운영합니다."]})]})}),(0,t.jsx)("div",{className:"philosophy-grid grid md:grid-cols-3 gap-8",children:m.map((e,r)=>(0,t.jsxs)(i.motion.div,{className:"philosophy-card bg-white p-10 rounded-2xl shadow-sm hover:shadow-md transition-shadow duration-300 border border-gray-100 text-center",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1*r},children:[(0,t.jsx)("div",{className:"philosophy-icon-wrapper mb-6 flex justify-center",children:(0,t.jsx)(e.icon,{className:"philosophy-icon w-12 h-12 text-gray-300 stroke-[1.5]"})}),(0,t.jsxs)("div",{className:"philosophy-text-wrapper mb-6",children:[(0,t.jsx)("span",{className:"philosophy-item-title block font-serif text-secondary text-lg italic mb-2",children:e.title}),(0,t.jsx)(d.SectionTitle,{tag:"h3",className:"philosophy-item-subtitle",children:e.subtitle})]}),(0,t.jsx)(h.SectionDescription,{className:"philosophy-item-description break-keep",children:e.description.split("
").map((e,i,r)=>(0,t.jsxs)("span",{className:"inline-block sm:inline",children:[e,ip],1689)},76588,e=>{"use strict";var t=e.i(43476),i=e.i(46932);let r=(0,e.i(75254).default)("quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);var s=e.i(33334),n=e.i(1648),o=e.i(23605);function a(){return(0,t.jsxs)(s.Section,{className:"ceo-section bg-primary text-white relative overflow-hidden caret-transparent",children:[(0,t.jsx)("div",{className:"ceo-decor-1 absolute top-0 right-0 w-64 h-64 bg-secondary/10 rounded-full blur-3xl -translate-y-1/2 translate-x-1/2"}),(0,t.jsx)("div",{className:"ceo-decor-2 absolute bottom-0 left-0 w-96 h-96 bg-secondary/5 rounded-full blur-3xl translate-y-1/2 -translate-x-1/2"}),(0,t.jsx)("div",{className:"ceo-container max-w-6xl mx-auto px-4",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-12 items-center",children:[(0,t.jsx)("div",{className:"ceo-image-container lg:col-span-5 flex justify-center order-2 lg:order-1",children:(0,t.jsxs)("div",{className:"relative w-full max-w-[340px] aspect-[4/5] md:aspect-[3/4]",children:[(0,t.jsx)(i.motion.div,{className:"absolute inset-0 border-2 border-secondary/20 translate-x-2 -translate-y-2 md:translate-x-4 md:-translate-y-4 rounded-3xl",initial:{opacity:0,x:12,y:-12},whileInView:{opacity:1,x:0,y:0},viewport:{once:!0},transition:{duration:.6,delay:.55}}),(0,t.jsx)(i.motion.div,{className:"absolute inset-0 bg-secondary/5 translate-x-4 -translate-y-4 md:translate-x-8 md:-translate-y-8 rounded-3xl -z-10",initial:{opacity:0,x:18,y:-18},whileInView:{opacity:1,x:0,y:0},viewport:{once:!0},transition:{duration:.6,delay:.45}}),(0,t.jsx)(i.motion.img,{src:"/profile/ceo_choi.png",alt:"최윤미 CEO",className:"relative w-full h-full object-cover rounded-3xl shadow-2xl",initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8,delay:0}})]})}),(0,t.jsxs)(i.motion.div,{className:"ceo-content-wrapper lg:col-span-7 text-center lg:text-left order-1 lg:order-2",initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8,delay:.2},children:[(0,t.jsx)("div",{className:"ceo-quote-decoration mb-6 hidden lg:block",children:(0,t.jsx)(r,{className:"ceo-quote-icon w-10 h-10 text-secondary opacity-30 rot-180"})}),(0,t.jsx)(n.SectionBadge,{className:"ceo-badge mb-6 text-sm text-secondary/80 border-secondary/30",children:"3. CEO Message"}),(0,t.jsxs)(o.SectionTitle,{className:"ceo-title text-2xl md:text-3xl lg:text-3xl xl:text-4xl font-medium leading-tight mb-8 font-serif text-white",children:['"Staymore는 공간의 가능성에 대한 ',(0,t.jsx)("br",{className:"hidden md:block"}),'믿음에서 시작되었습니다."']}),(0,t.jsxs)("div",{className:"ceo-message-text text-base md:text-lg text-white/80 leading-relaxed font-light space-y-6",children:[(0,t.jsx)("p",{className:"ceo-p-1",children:"공간은 단순한 물리적 장소가 아니라, 사람의 하루를 바꾸고 삶의 흐름에 영향을 주는 힘을 지니고 있다고 믿습니다."}),(0,t.jsx)("p",{className:"ceo-p-2",children:"그래서 우리는 공간을 꾸미는 데서 멈추지 않고, 공간이 가장 잘 작동하도록 설계하고 끝까지 책임집니다."}),(0,t.jsx)("p",{className:"ceo-p-3",children:"고객의 자산에는 안정적인 성과를, 머무는 이들에게는 편안한 경험을, 공간 자체에는 오래 지속되는 생명력을 더하는 것. 이것이 Staymore가 공간을 대하는 기준입니다."}),(0,t.jsx)("p",{className:"ceo-p-4",children:"보이지 않는 디테일 하나까지 놓치지 않는 운영으로 신뢰할 수 있는 파트너가 되겠습니다. Staymore는 앞으로도 공간의 가능성을 현실의 가치로 완성해 나가는 운영 중심의 브랜드로 나아가겠습니다."})]}),(0,t.jsxs)("div",{className:"ceo-signature mt-10 pt-8 border-t border-white/10 flex flex-col items-center lg:items-start",children:[(0,t.jsx)("p",{className:"ceo-name text-2xl font-serif text-secondary mb-1",children:"최윤미"}),(0,t.jsx)("p",{className:"ceo-position text-sm text-white/50 uppercase tracking-widest",children:"CEO, STAYMORE"})]})]})]})})]})}e.s(["CeoMessage",()=>a],76588)},95468,e=>{"use strict";let t=(0,e.i(75254).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",()=>t],95468)},83650,e=>{"use strict";var t=e.i(43476),i=e.i(46932);let r=(0,e.i(75254).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);var s=e.i(95468),n=e.i(59544),o=e.i(33334),a=e.i(1648),l=e.i(23605),c=e.i(19136);let u=[{id:"01",title:"위탁 운영 (Managed Services)",desc:(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"text-lg font-bold text-gray-700 leading-tight",children:["호스트의 마음까지 살피는",(0,t.jsx)("br",{}),(0,t.jsx)("span",{children:"정성 어린 공간 관리"})]}),(0,t.jsxs)("div",{className:"text-gray-500 text-sm md:text-base leading-relaxed font-medium",children:["우리는 단순히 건물을 관리하는 것을 넘어, ",(0,t.jsx)("br",{className:"hidden sm:block"}),"호스트가 느끼는 운영의 무게를 함께 나눕니다."]}),(0,t.jsxs)("div",{className:"text-gray-500 text-sm md:text-base leading-relaxed",children:["예약 관리부터 전문 클리닝, 시설 유지보수까지. ",(0,t.jsx)("br",{className:"hidden sm:block"}),"보이지 않는 곳까지 세심하게 관리해 호스트에게는 일상의 여유를, ",(0,t.jsx)("br",{className:"hidden lg:block"}),"고객에게는 쾌적한 머무름을 선물합니다."]})]}),features:["예약 및 채널 관리","전문 클리닝 & 시설 관리","24/7 고객 응대","정기 시설 점검"],imageLayout:"vertical",images:[{src:"/managed/1_홍대.png",caption:"홍대입구역 인근 운영 자산"},{src:"/managed/2_서울대벤처타운.png",caption:"서울대벤처센터역 인근 운영 자산"},{src:"/managed/3_부평.png",caption:"부평역 인근 운영 자산"}]},{id:"02",title:"인테리어 리뉴얼 & 스타일링 (Interior Renewal)",desc:(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"text-lg font-bold text-gray-700 leading-tight",children:["평범한 일상을",(0,t.jsx)("br",{}),(0,t.jsx)("span",{children:"특별한 머무름으로 바꾸는 마법"})]}),(0,t.jsxs)("div",{className:"text-gray-500 text-sm md:text-base leading-relaxed font-medium",children:["같은 구조의 방이라도 어떤 온기를 채우느냐에 따라 ",(0,t.jsx)("br",{className:"hidden sm:block"}),"공간은 전혀 다른 이야기를 시작합니다."]}),(0,t.jsxs)("div",{className:"text-gray-500 text-sm md:text-base leading-relaxed",children:["우리는 숙박 운영에 대한 깊은 이해를 바탕으로 한정된 공간의 가치를 극대화해, ",(0,t.jsx)("br",{className:"hidden lg:block"}),"고객의 기억에 오래 남는 공간의 페르소나를 디자인하는 ",(0,t.jsx)("br",{className:"hidden lg:block"}),"맞춤형 컨셉 스타일링을 제안합니다."]})]}),features:["공간 기획 및 디자인","리뉴얼 시공 관리","FF&E 큐레이션","운영 효율화 동선 설계"],imageLayout:"vertical",images:[{src:"/interior/work_rest.jpg",caption:"Work & Rest: 몰입과 여유가 공존하는 워크 라운지"},{src:"/interior/sleep_relax.png",caption:"Sleep & Relax: 아늑함과 효율을 담은 침실 스타일링"},{src:"/interior/eat_design.jpg",caption:"Eat & Design: 좁은 공간을 넓게 쓰는 최적의 키친 동선"}]},{id:"03",title:"공간·운영 전략 컨설팅 (Strategy & Consulting)",desc:(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"text-lg font-bold text-gray-700 leading-tight",children:["데이터로 설계하는",(0,t.jsx)("br",{}),(0,t.jsx)("span",{children:"공간의 지속 가능한 수익 방정식"})]}),(0,t.jsxs)("div",{className:"text-gray-500 text-sm md:text-base leading-relaxed font-medium",children:["우리는 감각적인 공간 제안을 넘어, ",(0,t.jsx)("br",{className:"hidden sm:block"}),"비즈니스의 본질인 안정적인 수익 구조와 ",(0,t.jsx)("br",{className:"hidden sm:block"}),"운영 전략을 설계합니다."]}),(0,t.jsxs)("div",{className:"text-gray-500 text-sm md:text-base leading-relaxed",children:["숙박 운영 데이터 기반의 정밀 진단부터 브랜드 경쟁력 강화까지. ",(0,t.jsx)("br",{className:"hidden lg:block"}),"실행 가능한 전략과 시장 분석을 통해 자산의 가치를 높이고, ",(0,t.jsx)("br",{className:"hidden lg:block"}),"투자자의 명확한 의사결정을 돕는 전략적 파트너가 되어 드립니다."]})]}),features:["수익성 분석 및 진단","운영 프로세스 최적화","브랜드 경쟁력 강화","시장 분석 및 타겟팅 전략"],imageLayout:"horizontal",images:[{src:"/consulting/streamlined.jpg",caption:"효율을 극대화하는 스마트 운영 프로세스"},{src:"/consulting/data-driven-performance.jpg",caption:"데이터로 설계하는 공간의 지속 가능한 수익 방정식"}]}];function d(){return(0,t.jsxs)(o.Section,{id:"services",className:"services-section bg-white",children:[(0,t.jsxs)("div",{className:"services-header mb-20 flex flex-col md:flex-row items-end justify-between",children:[(0,t.jsxs)(i.motion.div,{className:"services-title-wrapper",initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[(0,t.jsx)(a.SectionBadge,{className:"services-badge",children:"4. Our Services"}),(0,t.jsxs)(l.SectionTitle,{className:"services-title mb-0",children:["Staymore는 성과를 만드는 ",(0,t.jsx)("br",{}),"운영의 전 과정을 설계합니다"]})]}),(0,t.jsx)(i.motion.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"services-description-wrapper hidden md:block",children:(0,t.jsxs)(c.SectionDescription,{className:"services-description max-w-sm text-right",children:["모든 단계에서 전문적인 서비스를 제공하여 ",(0,t.jsx)("br",{}),"최상의 가치를 만들어냅니다."]})})]}),(0,t.jsx)("div",{className:"service-list space-y-4",children:u.map((e,o)=>(0,t.jsx)(i.motion.div,{className:"service-item group border-b border-gray-100 py-16 hover:bg-gray-50 transition-colors duration-300 px-6 rounded-2xl",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1*o},children:(0,t.jsxs)("div",{className:"service-item-grid grid md:grid-cols-12 gap-12 items-start",children:[(0,t.jsx)("div",{className:"service-item-id-col md:col-span-1",children:(0,t.jsx)("span",{className:"service-item-id text-3xl font-light text-gray-200 group-hover:text-secondary transition-colors font-serif whitespace-nowrap",children:e.id})}),(0,t.jsxs)("div",{className:"service-item-content-col md:col-span-11 lg:col-span-5",children:[(0,t.jsx)(l.SectionTitle,{tag:"h3",className:"service-item-title group-hover:text-secondary",children:e.title}),"string"==typeof e.desc?(0,t.jsx)(c.SectionDescription,{className:"service-item-description mb-6",children:e.desc}):(0,t.jsx)("div",{className:"service-item-description mb-10",children:e.desc}),(0,t.jsx)("ul",{className:"service-item-features grid grid-cols-1 gap-3 mb-8",children:e.features.map(e=>(0,t.jsxs)("li",{className:"service-feature-item flex items-center space-x-2 text-sm text-gray-600",children:[(0,t.jsx)(s.CheckCircle2,{className:"service-feature-icon w-4 h-4 text-secondary/70"}),(0,t.jsx)("span",{className:"service-feature-text",children:e})]},e))}),(0,t.jsxs)(n.Button,{variant:"ghost",className:"service-detail-btn group-hover:translate-x-2 transition-transform hidden md:inline-flex pl-0 hover:bg-transparent hover:text-secondary opacity-40",children:["Detail ",(0,t.jsx)(r,{className:"ml-2 w-4 h-4"})]})]}),(0,t.jsx)("div",{className:"service-item-image-col md:col-span-12 lg:col-span-6 lg:col-start-7 lg:mt-10",children:(0,t.jsx)("div",{className:`service-image-grid grid gap-4 ${"vertical"===e.imageLayout?"grid-cols-3":"grid-cols-2"}`,children:e.images.map((i,r)=>(0,t.jsxs)("div",{className:"service-image-container flex flex-col gap-3",children:[(0,t.jsx)("div",{className:"service-image-wrapper rounded-xl overflow-hidden shadow-sm relative group/image bg-gray-100",children:(0,t.jsx)("img",{src:i.src,alt:i.caption,className:`service-image w-full object-cover transition-transform duration-700 group-hover/image:scale-105 ${"vertical"===e.imageLayout?"aspect-[3/5]":"aspect-[4/3]"}`})}),(0,t.jsx)("p",{className:"service-image-caption text-xs md:text-[13px] text-gray-500 text-center font-medium tracking-tight leading-snug",children:i.caption.includes(":")?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"block text-gray-700 font-bold mb-0.5",children:i.caption.split(":")[0]}),(0,t.jsx)("span",{className:"block",children:i.caption.split(":")[1]})]}):(0,t.jsx)("span",{className:"text-gray-600 font-semibold",children:i.caption})})]},r))})})]})},e.id))})]})}e.s(["Services",()=>d],83650)},47710,e=>{"use strict";var t=e.i(43476),i=e.i(46932),r=e.i(59544),s=e.i(33334),n=e.i(1648),o=e.i(23605),a=e.i(19136),l=e.i(71645),c=e.i(88653),u=e.i(95468);let d=(0,e.i(75254).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);var h=e.i(37727),m=e.i(75157);function p({isOpen:e,onClose:r,message:s,type:n="success",duration:o=5e3}){return(0,l.useEffect)(()=>{if(e&&o>0){let e=setTimeout(()=>{r()},o);return()=>clearTimeout(e)}},[e,o,r]),(0,t.jsx)(c.AnimatePresence,{children:e&&(0,t.jsx)("div",{className:"fixed inset-0 z-[100] flex items-end sm:items-top justify-center p-4 sm:p-6 pointer-events-none",children:(0,t.jsxs)(i.motion.div,{initial:{opacity:0,y:20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.95,transition:{duration:.2}},className:(0,m.cn)("message-popup pointer-events-auto flex items-start gap-4 p-5 rounded-2xl shadow-2xl border max-w-md w-full","success"===n?"bg-white border-secondary/20 shadow-secondary/5":"bg-white border-red-100 shadow-red-50"),children:[(0,t.jsx)("div",{className:"flex-shrink-0 mt-0.5",children:"success"===n?(0,t.jsx)(u.CheckCircle2,{className:"w-6 h-6 text-secondary"}):(0,t.jsx)(d,{className:"w-6 h-6 text-red-500"})}),(0,t.jsx)("div",{className:"flex-grow",children:(0,t.jsx)("p",{className:(0,m.cn)("text-[15px] font-medium leading-relaxed","success"===n?"text-primary":"text-red-900"),children:s})}),(0,t.jsx)("button",{onClick:r,className:"flex-shrink-0 text-gray-400 hover:text-primary transition-colors mt-0.5",children:(0,t.jsx)(h.X,{className:"w-5 h-5"})})]})})})}function f(){let[e,c]=(0,l.useState)({isOpen:!1,message:"",type:"success"}),[u,d]=(0,l.useState)(!1),[h,m]=(0,l.useState)(!1);return(0,t.jsxs)(s.Section,{id:"contact",className:"contact-section bg-gray-50",children:[(0,t.jsx)(p,{isOpen:e.isOpen,onClose:()=>c(e=>({...e,isOpen:!1})),message:e.message,type:e.type}),(0,t.jsxs)("div",{className:"contact-grid flex flex-col lg:flex-row gap-16",children:[(0,t.jsxs)(i.motion.div,{className:"contact-info lg:w-2/5",initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[(0,t.jsx)(n.SectionBadge,{className:"contact-badge",children:"5. Partnership"}),(0,t.jsx)(o.SectionTitle,{className:"contact-title",children:"Partnership · 사업문의"}),(0,t.jsxs)("div",{className:"contact-description-container text-gray-500 mb-8 leading-relaxed space-y-2",children:[(0,t.jsx)(a.SectionDescription,{className:"contact-description",children:"Staymore는 공간의 본질을 분석하여 최적의 운영 솔루션을 실행하는 전략적 파트너로서 함께 성장합니다."}),(0,t.jsx)("p",{className:"contact-p-highlight font-medium text-primary mt-4",children:"다음과 같은 파트너십을 환영합니다."}),(0,t.jsxs)("ul",{className:"contact-list space-y-3 mt-4 border-l-2 border-secondary/20 pl-4 text-gray-600",children:[(0,t.jsx)("li",{className:"contact-list-item",children:"• 운영 방식의 전환 또는 전문 위탁 운영을 검토 중인 공간 소유주"}),(0,t.jsx)("li",{className:"contact-list-item",children:"• 리뉴얼 및 운영 시스템 개선을 통해 자산 가치를 높이고자 하는 건물주"}),(0,t.jsx)("li",{className:"contact-list-item",children:"• 숙박·레지던스등 수익형 부동산 투자를 검토 중인 예비 건물주"})]}),(0,t.jsxs)("p",{className:"contact-footer-text text-sm pt-4",children:["막연한 구상 단계라도 괜찮습니다. ",(0,t.jsx)("br",{className:"hidden sm:block"}),"고민하고 계신 공간의 현재를 공유해주시면, Staymore의 데이터와 노하우를 바탕으로 최적의 수익 가이드라인을 제안해 드립니다."]})]}),(0,t.jsxs)("div",{className:"contact-details space-y-6",children:[(0,t.jsxs)("div",{className:"contact-detail-item",children:[(0,t.jsx)("h4",{className:"contact-detail-label font-bold text-primary mb-1",children:"Address"}),(0,t.jsx)(a.SectionDescription,{className:"contact-detail-value",children:"서울시 서초구 서초대로 78길 42 301호"})]}),(0,t.jsxs)("div",{className:"contact-detail-item",children:[(0,t.jsx)("h4",{className:"contact-detail-label font-bold text-primary mb-1",children:"Email"}),(0,t.jsx)(a.SectionDescription,{className:"contact-detail-value",children:(0,t.jsx)("a",{href:"mailto:staymore707@naver.com",className:"hover:text-secondary transition-colors",children:"staymore707@naver.com"})})]})]})]}),(0,t.jsx)(i.motion.div,{className:"contact-form-wrapper lg:w-3/5 bg-white p-10 rounded-2xl shadow-sm border border-gray-100",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:(0,t.jsxs)("form",{className:"contact-form space-y-6",onSubmit:async e=>{if(e.preventDefault(),u||h)return;let t=e.currentTarget,i=new FormData(t),r={name:i.get("name"),phone:i.get("phone"),subject:i.get("subject"),message:i.get("message")};if(!r.name||!r.phone||!r.subject||!r.message)return void c({isOpen:!0,message:"모든 입력 항목을 기입해주세요.",type:"error"});d(!0);try{let e=await fetch("https://kbhiifgb7vbkqc5clfyecry4eq0rbtnj.lambda-url.ap-northeast-2.on.aws",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(e.ok)c({isOpen:!0,message:"문의가 접수되었습니다. 빠른 시일내에 바로 연락 드리겠습니다.",type:"success"}),t.reset();else{let t=await e.json();throw Error(t.message||"오류가 발생했습니다.")}}catch(e){console.error("Submit Error:",e),c({isOpen:!0,message:"문의 접수 중 오류가 발생했어요. staymore707@naver.com 주소로 메일 문의를 남겨주세요.",type:"error"})}finally{d(!1),m(!0),setTimeout(()=>{m(!1)},3e3)}},children:[(0,t.jsxs)("div",{className:"contact-form-row grid md:grid-cols-2 gap-6",children:[(0,t.jsxs)("div",{className:"contact-form-group space-y-2",children:[(0,t.jsx)("label",{htmlFor:"name",className:"contact-label text-sm font-medium text-gray-700",children:"이름 (Name)"}),(0,t.jsx)("input",{type:"text",id:"name",name:"name",required:!0,className:"contact-input w-full px-4 py-3 rounded-lg border border-gray-200 focus:border-secondary focus:ring-1 focus:ring-secondary outline-none transition-all bg-gray-50/50",placeholder:"홍길동"})]}),(0,t.jsxs)("div",{className:"contact-form-group space-y-2",children:[(0,t.jsx)("label",{htmlFor:"phone",className:"contact-label text-sm font-medium text-gray-700",children:"연락처 (Contact)"}),(0,t.jsx)("input",{type:"text",id:"phone",name:"phone",required:!0,className:"contact-input w-full px-4 py-3 rounded-lg border border-gray-200 focus:border-secondary focus:ring-1 focus:ring-secondary outline-none transition-all bg-gray-50/50",placeholder:"010-0000-0000"})]})]}),(0,t.jsxs)("div",{className:"contact-form-group space-y-2",children:[(0,t.jsx)("label",{htmlFor:"subject",className:"contact-label text-sm font-medium text-gray-700",children:"제목 (Subject)"}),(0,t.jsx)("input",{type:"text",id:"subject",name:"subject",required:!0,className:"contact-input w-full px-4 py-3 rounded-lg border border-gray-200 focus:border-secondary focus:ring-1 focus:ring-secondary outline-none transition-all bg-gray-50/50",placeholder:"운영 위탁 문의합니다"})]}),(0,t.jsxs)("div",{className:"contact-form-group space-y-2",children:[(0,t.jsx)("label",{htmlFor:"message",className:"contact-label text-sm font-medium text-gray-700",children:"내용 (Message)"}),(0,t.jsx)("textarea",{id:"message",name:"message",required:!0,rows:7,className:"contact-input contact-textarea w-full px-4 py-3 rounded-lg border border-gray-200 focus:border-secondary focus:ring-1 focus:ring-secondary outline-none transition-all resize-none bg-gray-50/50",placeholder:"문의 내용을 상세히 적어주세요."})]}),(0,t.jsx)("div",{className:"contact-form-submit pt-4",children:(0,t.jsx)(r.Button,{type:"submit",className:"contact-submit-btn w-full h-12 text-lg font-medium",size:"lg",disabled:u||h,children:u?"전송 중...":h?"전송 완료":"문의하기"})})]})})]})]})}e.s(["Contact",()=>f],47710)}]);