PageSourceSearch

https://llmlayer.ai/_next/static/chunks/1gb1zwog1-dib.js

js llmlayer.ai collected 2026-10-05 15:17:13 UTC 161,501 bytes, 9 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95057,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={formatUrl:function(){return o},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=t.r(90809)._(t.r(98183)),a=/https?|ftp|gopher|file/;function o(t){let{auth:e,hostname:i}=t,n=t.protocol||"",r=t.pathname||"",o=t.hash||"",l=t.query||"",u=!1;e=e?encodeURIComponent(e).replace(/%3A/i,":")+"@":"",t.host?u=e+t.host:i&&(u=e+(~i.indexOf(":")?`[${i}]`:i),t.port&&(u+=":"+t.port)),l&&"object"==typeof l&&(l=String(s.urlQueryToSearchParams(l)));let h=t.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),t.slashes||(!n||a.test(n))&&!1!==u?(u="//"+(u||""),r&&"/"!==r[0]&&(r="/"+r)):u||(u=""),o&&"#"!==o[0]&&(o="#"+o),h&&"?"!==h[0]&&(h="?"+h),r=r.replace(/[?#]/g,encodeURIComponent),h=h.replace("#","%23"),`${n}${u}${r}${h}${o}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(t){return o(t)}},18581,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"useMergedRef",{enumerable:!0,get:function(){return r}});let n=t.r(71645);function r(t,e){let i=(0,n.useRef)(null),r=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let t=i.current;t&&(i.current=null,t());let e=r.current;e&&(r.current=null,e())}else t&&(i.current=s(t,n)),e&&(r.current=s(e,n))},[t,e])}function s(t,e){if("function"!=typeof t)return t.current=e,()=>{t.current=null};{let i=t(e);return"function"==typeof i?i:()=>t(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),e.exports=i.default)},73668,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"isLocalURL",{enumerable:!0,get:function(){return s}});
1let n=t.r(18967),r=t.r(52817);function s(t){if(!(0,n.isAbsoluteUrl)(t))return!0;try{let e=(0,n.getLocationOrigin)(),i=new URL(t,e);return i.origin===e&&(0,r.hasBasePath)(i.pathname)}catch(t){return!1}}},84508,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"errorOnce",{enumerable:!0,get:function(){return n}});let n=t=>{}},22016,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return x}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=t.r(90809),a=t.r(18050),o=s._(t.r(71645)),l=t.r(95057),u=t.r(8372),h=t.r(18581),c=t.r(18967),d=t.r(5550);t.r(33525);let m=t.r(88540),p=t.r(91949),f=t.r(73668),v=t.r(9396);function g(e){var i,n;let r,s,g,[x,b]=(0,o.useOptimistic)(p.IDLE_LINK_STATUS),w=(0,o.useRef)(null),{href:P,as:T,children:S,prefetch:k=null,passHref:M,replace:A,shallow:C,scroll:E,onClick:j,onMouseEnter:V,onTouchStart:D,legacyBehavior:L=!1,onNavigate:R,transitionTypes:B,ref:N,unstable_dynamicOnHover:F,...O}=e;r=S,L&&("string"==typeof r||"number"==typeof r)&&(r=(0,a.jsx)("a",{children:r}));let I=o.default.useContext(u.AppRouterContext),$=!1!==k,U=!1!==k?null===(n=k)||"auto"===n?v.FetchStrategy.PPR:v.FetchStrategy.Full:v.FetchStrategy.PPR,z="string"==typeof(i=T||P)?i:(0,l.formatUrl)(i);if(L){if(r?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` 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 `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=o.default.Children.only(r)}let W=L?s&&"object"==typeof s&&s.ref:N,_=o.default.useCallback(t=>(null!==I&&(w.current=(0,p.mountLinkInstance)(t,z,I,U,$,b)),()=>{w.current&&((0,p.unmountLinkForCurrentNavigation)(w.current),w.current=null),(0,p.unmountPrefetchableInstance)(t)}),[$,z,I,U,b]),G={ref:(0,h.useMergedRef)(_,W),onClick(e){L||"function"!=typeof j||j(e),L&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(e),!I||e.defaultPrevented||function(e,i,n,r,s,a,l){if("u">typeof window){let u,{nodeName:h}=e.currentTarget;if("A"===h.toUpperCase()&&((u=e.currentTarget.getAttribute("target"))&&"_self"!==u||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))return;if(!(0,f.isLocalURL)(i)){r&&(e.preventDefault(),location.replace(i));return}if(e.preventDefault(),a){let t=!1;if(a({preventDefault:()=>{t=!0}}),t)return}let{dispatchNavigateAction:c}=t.r(99781);o.default.startTransition(()=>{c(i,r?"replace":"push",!1===s?m.ScrollBehavior.NoScroll:m.ScrollBehavior.Default,n.current,l)})}}(e,z,w,A,E,R,B)},onMouseEnter(t){L||"function"!=typeof V||V(t),L&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(t),I&&$&&(0,p.onNavigationIntent)(t.currentTarget,!0===F)},onTouchStart:function(t){L||"function"!=typeof D||D(t),L&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(t),I&&$&&(0,p.onNavigationIntent)(t.currentTarget,!0===F)}};return(0,c.isAbsoluteUrl)(z)?G.href=z:L&&!M&&("a"!==s.type||"href"in s.props)||(G.href=(0,d.addBasePath)(z)),g=L?o.default.cloneElement(s,G):(0,a.jsx)("a",{...O,...G,children:r}),(0,a.jsx)(y.Provider,{value:x,children:g})}t.r(84508);let y=(0,o.createContext)(p.IDLE_LINK_STATUS),x=()=>(0,o.useContext)(y);("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),e.exports=i.default)},75254,t=>{"use strict";var e=t.i(71645);let i=(...t)=>t.filter((t,e,i)=>!!t&&""!==t.trim()&&i.indexOf(t)===e).join(" ").trim(),n=t=>{let e=t.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,e,i)=>i?i.toUpperCase():e.toLowerCase());return e.charAt(0).toUpperCase()+e.slice(1)};var r={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 s=(0,e.forwardRef)(({color:t="currentColor",size:n=24,strokeWidth:s=2,absoluteStrokeWidth:a,className:o="",children:l,iconNode:u,...h},c)=>(0,e.createElement)("svg",{ref:c,...r,width:n,height:n,stroke:t,strokeWidth:a?24*Number(s)/Number(n):s,className:i("lucide",o),...!l&&!(t=>{for(let e in t)if(e.startsWith("aria-")||"role"===e||"title"===e)return!0;return!1})(h)&&{"aria-hidden":"true"},...h},[...u.map(([t,i])=>(0,e.createElement)(t,i)),...Array.isArray(l)?l:[l]]));t.s(["default",0,(t,r)=>{let a=(0,e.forwardRef)(({className:a,...o},l)=>(0,e.createElement)(s,{ref:l,iconNode:r,className:i(`lucide-${n(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${t}`,a),...o}));return a.displayName=n(t),a}],75254)},15057,t=>{"use strict";let e=(0,t.i(75254).default)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);t.s(["ArrowUpRight",0,e],15057)},31178,t=>{"use strict";let e=(0,t.i(71645).createContext)({});t.s(["LayoutGroupContext",0,e])},47414,t=>{"use strict";var e=t.i(71645);t.s(["useConstant",0,function(t){let i=(0,e.useRef)(null);return null===i.current&&(i.current=t()),i.current}])},92936,t=>{"use strict";let e="u">typeof window;t.s(["isBrowser",0,e])},74008,t=>{"use strict";var e=t.i(71645);let i=t.i(92936).isBrowser?e.useLayoutEffect:e.useEffect;t.s(["useIsomorphicLayoutEffect",0,i])},21476,t=>{"use strict";let e=(0,t.i(71645).createContext)(null);t.s(["PresenceContext",0,e])}
1,42824,t=>{"use strict";t.s(["isObject",0,function(t){return"object"==typeof t&&null!==t}])},72846,t=>{"use strict";var e=t.i(42824);t.s(["isHTMLElement",0,function(t){return(0,e.isObject)(t)&&"offsetHeight"in t}])},37806,t=>{"use strict";let e=(0,t.i(71645).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",0,e])},64978,t=>{"use strict";var e=t.i(71645),i=t.i(21476);t.s(["usePresence",0,function(t=!0){let n=(0,e.useContext)(i.PresenceContext);if(null===n)return[!0,null];let{isPresent:r,onExitComplete:s,register:a}=n,o=(0,e.useId)();(0,e.useEffect)(()=>{if(t)return a(o)},[t]);let l=(0,e.useCallback)(()=>t&&s&&s(o),[o,s,t]);return!r&&s?[!1,l]:[!0]}])},88653,t=>{"use strict";t.i(47167);var e=t.i(18050),i=t.i(71645),n=t.i(31178),r=t.i(47414),s=t.i(74008),a=t.i(21476),o=t.i(72846),l=i,u=t.i(37806);function h(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class c extends l.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let t=e.offsetParent,i=(0,o.isHTMLElement)(t)&&t.offsetWidth||0,n=(0,o.isHTMLElement)(t)&&t.offsetHeight||0,r=this.props.sizeRef.current;r.height=e.offsetHeight||0,r.width=e.offsetWidth||0,r.top=e.offsetTop,r.left=e.offsetLeft,r.right=i-r.width-r.left,r.bottom=n-r.height-r.top}return null}componentDidUpdate(){}render(){return this.props.children}}function d({children:t,isPresent:n,anchorX:r,anchorY:s,root:a,pop:o}){let m=(0,l.useId)(),p=(0,l.useRef)(null),f=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:v}=(0,l.useContext)(u.MotionConfigContext),g=function(...t){return i.useCallback(function(...t){return e=>{let i=!1,n=t.map(t=>{let n=h(t,e);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let e=0;e<n.length;e++){let i=n[e];"function"==typeof i?i():h(t[e],null)}}}}(...t),t)}(p,t.props?.ref??t?.ref);return(0,l.useInsertionEffect)(()=>{let{width:t,height:e,top:i,left:l,right:u,bottom:h}=f.current;if(n||!1===o||!p.current||!t||!e)return;let c="left"===r?`left: ${l}`:`right: ${u}`,d="bottom"===s?`bottom: ${h}`:`top: ${i}`;p.current.dataset.motionPopId=m;let g=document.createElement("style");v&&(g.nonce=v);let y=a??document.head;return y.appendChild(g),g.sheet&&g.sheet.insertRule(`
2          [data-motion-pop-id="${m}"] {
3            position: absolute !important;
4            width: ${t}px !important;
5            height: ${e}px !important;
6            ${c}px !important;
7            ${d}px !important;
8          }
9        `),()=>{y.contains(g)&&y.removeChild(g)}},[n]),(0,e.jsx)(c,{isPresent:n,childRef:p,sizeRef:f,pop:o,children:!1===o?t:l.cloneElement(t,{ref:g})})}let m=({children:t,initial:n,isPresent:s,onExitComplete:o,custom:l,presenceAffectsLayout:u,mode:h,anchorX:c,anchorY:m,root:f})=>{let v=(0,r.useConstant)(p),g=(0,i.useId)(),y=!0,x=(0,i.useMemo)(()=>(y=!1,{id:g,initial:n,isPresent:s,custom:l,onExitComplete:t=>
9{for(let e of(v.set(t,!0),v.values()))if(!e)return;o&&o()},register:t=>(v.set(t,!1),()=>v.delete(t))}),[s,v,o]);return u&&y&&(x={...x}),(0,i.useMemo)(()=>{v.forEach((t,e)=>v.set(e,!1))},[s]),i.useEffect(()=>{s||v.size||!o||o()},[s]),t=(0,e.jsx)(d,{pop:"popLayout"===h,isPresent:s,anchorX:c,anchorY:m,root:f,children:t}),(0,e.jsx)(a.PresenceContext.Provider,{value:x,children:t})};function p(){return new Map}var f=t.i(64978);let v=t=>t.key||"";function g(t){let e=[];return i.Children.forEach(t,t=>{(0,i.isValidElement)(t)&&e.push(t)}),e}t.s(["AnimatePresence",0,({children:t,custom:a,initial:o=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:c=!1,anchorX:d="left",anchorY:p="top",root:y})=>{let[x,b]=(0,f.usePresence)(c),w=(0,i.useMemo)(()=>g(t),[t]),P=c&&!x?[]:w.map(v),T=(0,i.useRef)(!0),S=(0,i.useRef)(w),k=(0,r.useConstant)(()=>new Map),M=(0,i.useRef)(new Set),[A,C]=(0,i.useState)(w),[E,j]=(0,i.useState)(w);(0,s.useIsomorphicLayoutEffect)(()=>{T.current=!1,S.current=w;for(let t=0;t<E.length;t++){let e=v(E[t]);P.includes(e)?(k.delete(e),M.current.delete(e)):!0!==k.get(e)&&k.set(e,!1)}},[E,P.length,P.join("-")]);let V=[];if(w!==A){let t=[...w];for(let e=0;e<E.length;e++){let i=E[e],n=v(i);P.includes(n)||(t.splice(e,0,i),V.push(i))}return"wait"===h&&V.length&&(t=V),j(g(t)),C(w),null}let{forceRender:D}=(0,i.useContext)(n.LayoutGroupContext);return(0,e.jsx)(e.Fragment,{children:E.map(t=>{let i=v(t),n=(!c||!!x)&&(w===E||P.includes(i));return(0,e.jsx)(m,{isPresent:n,initial:(!T.current||!!o)&&void 0,custom:a,presenceAffectsLayout:u,mode:h,root:y,onExitComplete:n?void 0:()=>{if(M.current.has(i)||(M.current.add(i),!k.has(i)))return;k.set(i,!0);let t=!0;k.forEach(e=>{e||(t=!1)}),t&&(D?.(),j(S.current),c&&b?.(),l&&l())},anchorX:d,anchorY:p,children:t},i)})})}],88653)},54505,57788,76959,66820,63011,65091,22660,79444,69577,30162,83411,64440,65566,19928,60830,46791,80248,87022,21012,33887,70596,60140,96173,25791,86427,85983,32525,6840,87576,86579,17218,93787,44947,81261,99951,706,24463,30789,84049,67926,27677,77777,35636,53689,44966,t=>{"use strict";let e,i=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],n=new Set(i);t.s(["transformPropOrder",0,i,"transformProps",0,n],57788);let r=(t,e,i)=>i>e?e:i<t?t:i;t.s(["clamp",0,r],76959);let s={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},a={...s,transform:t=>r(0,1,t)},o={...s,default:1},l=t=>Math.round(1e5*t)/1e5,u=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,h=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,c=(t,e)=>i=>!!("string"==typeof i&&h.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),d=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,a,o]=n.match(u);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},m={...s,transform:t=>Math.round(r(0,255,t))},p={test:c("rgb","red"),parse:d("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+m.transform(t)+", "+m.transform(e)+", "+m.transform(i)+", "+l(a.transform(n))+")"};t.s(["rgba",0,p],66820);let f={test:c("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:p.transform};t.s(["hex",0,f],63011);let v=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),g=v("deg"),y=v("%"),x=v("px"),b=v("vh"),w=v("vw"),P={...y,parse:t=>y.parse(t)/100,transform:t=>y.transform(100*t)};t.s(["degrees",0,g,"percent",0,y,"progressPercentage",0,P,"px",0,x,"vh",0,b,"vw",0,w],65091);let T={test:c("hsl","hue"),parse:d("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+y.transform(l(e))+", "+y.transform(l(i))+", "+l(a.transform(n))+")"};t.s(["hsla",0,T],22660);let S={test:t=>p.test(t)||f.test(t)||T.test(t),parse:t=>p.test(t)?p.parse(t):T.test(t)?T.parse(t):f.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?p.transform(t):T.transform(t),getAnimatableNone:t=>{let e=S.parse(t);return e.alpha=0,S.transform(e)}};t.s(["color",0,S],79444);let k=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,M="number",A="color",C=/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 E(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,a=e.replace(C,t=>(S.test(t)?(n.color.push(s),r.push(A),i.push(S.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(M),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:a,indexes:n,types:r}}function j(t){return E(t).values}function V(t){let{split:e,types:i}=E(t),n=e.length;return t=>{let r="";for(let s=0;s<n;s++)if(r+=e[s],void 0!==t[s]){let e=i[s];e===M?r+=l(t[s]):e===A?r+=S.transform(t[s]):r+=t[s]}return r}}let D=t=>"number"==typeof t?0:S.test(t)?S.getAnimatableNone(t):t,L={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(u)?.length||0)+(t.match(k)?.length||0)>0},parse:j,createTransformer:V,getAnimatableNone:function(t){let e=j(t);return V(t)(e.map(D))}};t.s(["analyseComplexValue",0,E,"complex",0,L],69577);let R=new Set(["brightness","contrast","saturate","opacity"]);function B(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(u)||[];if(!n)return t;let r=i.replace(n,""),s=+!!R.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}let N=/\b([a-z-]*)\(.*?\)/gu,F={...L,getAnimatableNone:t=>{let e=t.match(N);return e?e.map(B).join(" "):t}},O={...s,transform:Math.round},I={borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,top:x,right:x,bottom:x,left:x,inset:x,insetBlock:x,insetBlockStart:x,insetBlockEnd:x,insetInline:x,insetInlineStart:x,insetInlineEnd:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,paddingBlock:x,paddingBlockStart:x,paddingBlockEnd:x,paddingInline:x,paddingInlineStart:x,paddingInlineEnd:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,marginBlock:x,marginBlockStart:x,marginBlockEnd:x,marginInline:x,marginInlineStart:x,marginInlineEnd:x,fontSize:x,backgroundPositionX:x,backgroundPositionY:x,rotate:g,rotateX:g,rotateY:g,rotateZ:g,scale:o,scaleX:o,scaleY:o,scaleZ:o,skew:g,skewX:g,skewY:g,distance:x,translateX:x,translateY:x,translateZ:x,x:x,y:x,z:x,perspective:x,transformPerspective:x,opacity:a,originX:P,originY:P,originZ:x,zIndex:O,fillOpacity:a,strokeOpacity:a,numOctaves:O},$={...I,color:S,backgroundColor:S,outlineColor:S,fill:S,stroke:S,borderColor:S,borderTopColor:S,borderRightColor:S,borderBottomColor:S,borderLeftColor:S,filter:F,WebkitFilter:F},U=t=>$[t],z=()=>({translate:0,scale:1,origin:0,originPoint:0}),W=()=>({min:0,max:0}),_=()=>({x:W(),y:W()});t.s(["createBox",0,_,"createDelta",0,()=>({x:z(),y:z()})],30162);let G=t=>!!(t&&t.getVelocity);t.s(["isMotionValue",0,G],83411);let H=new Set(["width","height","top","left","right","bottom",...i]);t.s(["positionalKeys",0,H],64440);let K=t=>e=>e.test(t),X=[s,x,y,g,w,b,{test:t=>"auto"===t,parse:t=>t}],Y=t=>X.find(K(t));var q=t.i(47167);let Z=()=>{};q.default,t.s(["invariant",0,Z,"warning",0,()=>{}],65566);let J=t=>e=>"string"==typeof e&&e.startsWith(t),Q=J("--"),tt=J("var(--"),te=t=>!!tt(t)&&ti.test(t.split("/*")[0].trim()),ti=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tn(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}t.s(["containsCSSVariable",0,tn,"isCSSVariableName",0,Q,"isCSSVariableToken",0,te],19928);let tr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ts=t=>180*t/Math.PI,ta=t=>tl(ts(Math.atan2(t[1],t[0]))),to={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:ta,rotateZ:ta,skewX:t=>ts(Math.atan(t[1])),skewY:t=>ts(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tl=t=>((t%=360)<0&&(t+=360),t),tu=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),th=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tc={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tu,
9scaleY:th,scale:t=>(tu(t)+th(t))/2,rotateX:t=>tl(ts(Math.atan2(t[6],t[5]))),rotateY:t=>tl(ts(Math.atan2(-t[2],t[0]))),rotateZ:ta,rotate:ta,skewX:t=>ts(Math.atan(t[4])),skewY:t=>ts(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function td(t){return+!!t.includes("scale")}function tm(t,e){let i,n;if(!t||"none"===t)return td(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=tc,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=to,n=e}if(!n)return td(e);let s=i[e],a=n[1].split(",").map(tp);return"function"==typeof s?s(a):a[s]}function tp(t){return parseFloat(t.trim())}let tf=t=>t===s||t===x,tv=new Set(["x","y","z"]),tg=i.filter(t=>!tv.has(t)),ty={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>tm(e,"x"),y:(t,{transform:e})=>tm(e,"y")};ty.translateX=ty.x,ty.translateY=ty.y;let tx=t=>t;t.s(["noop",0,tx],60830);let tb={};t.s(["MotionGlobalConfig",0,tb],46791);let tw=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],tP={value:null,addProjectionMetrics:null};function tT(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,a=tw.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,s=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){a.has(e)&&(h.schedule(e),t()),l++,e(o)}let h={schedule:(t,e=!1,s=!1)=>{let o=s&&r?i:n;return e&&a.add(t),o.has(t)||o.add(t),t},cancel:t=>{n.delete(t),a.delete(t)},process:t=>{if(o=t,r){s=!0;return}r=!0,[i,n]=[n,i],i.forEach(u),e&&tP.value&&tP.value.frameloop[e].push(l),l=0,i.clear(),r=!1,s&&(s=!1,h.process(t))}};return h}(s,e?i:void 0),t),{}),{setup:o,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:m,postRender:p}=a,f=()=>{let s=tb.useManualTiming?r.timestamp:performance.now();i=!1,tb.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(s-r.timestamp,40),1)),r.timestamp=s,r.isProcessing=!0,o.process(r),l.process(r),u.process(r),h.process(r),c.process(r),d.process(r),m.process(r),p.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(f))};return{schedule:tw.reduce((e,s)=>{let o=a[s];return e[s]=(e,s=!1,a=!1)=>(!i&&(i=!0,n=!0,r.isProcessing||t(f)),o.schedule(e,s,a)),e},{}),cancel:t=>{for(let e=0;e<tw.length;e++)a[tw[e]].cancel(t)},state:r,steps:a}}t.s(["statsBuffer",0,tP],80248);let{schedule:tS,cancel:tk,state:tM,steps:tA}=tT("u">typeof requestAnimationFrame?requestAnimationFrame:tx,!0);t.s(["cancelFrame",0,tk,"frame",0,tS,"frameData",0,tM,"frameSteps",0,tA],87022);let tC=new Set,tE=!1,tj=!1,tV=!1;function tD(){if(tj){let t=Array.from(tC).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,n=(e=[],tg.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e);n.length&&(i.set(t,n),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tj=!1,tE=!1,tC.forEach(t=>t.complete(tV)),tC.clear()}function tL(){tC.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tj=!0)})}class tR{constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(tC.add(this),tE||(tE=!0,tS.read(tL),tS.resolveKeyframes(tD))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=n?.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tC.delete(this)}cancel(){"scheduled"===this.state&&(tC.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}function tB(t,e){let i=U(t);return i!==F&&(i=L),i.getAnimatableNone?i.getAnimatableNone(e):void 0}t.s(["KeyframeResolver",0,tR,"flushKeyframeResolvers",0,function(){tV=!0,tL(),tD(),tV=!1}],21012);
9let tN=new Set(["auto","none","0"]);class tF extends tR{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&te(n=n.trim())){let r=function t(e,i,n=1){Z(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,s]=function(t){let e=tr.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${i??n}`,r]}(e);if(!r)return;let a=window.getComputedStyle(i).getPropertyValue(r);if(a){let t=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return te(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!H.has(i)||2!==t.length)return;let[n,r]=t,s=Y(n),a=Y(r);if(tn(n)!==tn(r)&&ty[i]){this.needsMeasurement=!0;return}if(s!==a)if(tf(s)&&tf(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else ty[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!tN.has(e)&&E(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=tB(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ty[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=ty[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
9h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}function tO(t,e){-1===t.indexOf(e)&&t.push(e)}function tI(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}t.s(["addUniqueItem",0,tO,"removeItem",0,tI],33887);class t${constructor(){this.subscriptions=[]}add(t){return tO(this.subscriptions,t),()=>tI(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}t.s(["SubscriptionManager",0,t$],70596);let{schedule:tU}=tT(queueMicrotask,!1);function tz(){e=void 0}t.s(["microtask",0,tU],60140);let tW={now:()=>(void 0===e&&tW.set(tM.isProcessing||tb.useManualTiming?tM.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(tz)}};function t_(t,e){return e?1e3/e*t:0}t.s(["time",0,tW],96173),t.s(["velocityPerSecond",0,t_],25791);let tG={current:void 0};class tH{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=tW.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=tW.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new t$);let i=this.events[t].add(e);return"change"===t?()=>{i(),tS.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return tG.current&&tG.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=tW.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t_(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tK(t,e){return new tH(t,e)}t.s(["collectMotionValues",0,tG,"motionValue",0,tK],86427);let tX=[...X,S,L],tY={current:null},tq={current:!1},tZ="u">typeof window,tJ=new WeakMap;function tQ(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function t0(t){return"string"==typeof t||Array.isArray(t)}t.s(["isAnimationControls",0,tQ],85983),t.s(["isVariantLabel",0,t0],32525);let t1=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],t2=["initial",...t1];function t5(t){return tQ(t.animate)||t2.some(e=>t0(t[e]))}function t6(t){return!!(t5(t)||t.variants)}function t4(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}
9function t7(t,e,i,n){if("function"==typeof e){let[r,s]=t4(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=t4(n);e=e(void 0!==i?i:t.custom,r,s)}return e}t.s(["variantPriorityOrder",0,t1,"variantProps",0,t2],6840),t.s(["isControllingVariants",0,t5,"isVariantNode",0,t6],87576),t.s(["resolveVariantFromProps",0,t7],86579);let t3=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],t8={};class t9{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:r,blockInitialAnimation:s,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tR,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=tW.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tS.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=r,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=t5(e),this.isVariantNode=t6(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in c){const e=c[t];void 0!==l[t]&&G(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,tJ.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tq.current||function(){if(tq.current=!0,tZ)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>tY.current=t.matches;t.addEventListener("change",e),e()}else tY.current=!1}(),this.shouldReduceMotion=tY.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tk(this.notifyUpdate),tk(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=n.has(t);r&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tS.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in t8){let e=t8[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];
9e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):_()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<t3.length;e++){let i=t3[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(G(r))t.addValue(n,r);else if(G(s))t.addValue(n,tK(r,{owner:t}));else if(s!==r)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,tK(void 0!==e?e:r,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=tK(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let n,r;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(r=i,/^0[^.\s]+$/u.test(r))))i=parseFloat(i);else{let n;n=i,!tX.find(K(n))&&L.test(e)&&(i=tB(t,e))}this.setBaseTarget(t,G(i)?i.get():i)}return G(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=t7(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||G(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new t$),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){tU.render(this.render)}}t.s(["VisualElement",0,t9,"getFeatureDefinitions",0,function(){return t8},"setFeatureDefinitions",0,function(t){t8=t}],17218);class et extends t9{constructor(){super(...arguments),this.KeyframeResolver=tF}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;G(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function ee(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}t.s(["camelToDash",0,ee],93787);let ei=(t,e)=>e&&"number"==typeof t?e.transform(t):t,en={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},er=i.length;function es(t,e,r){let{style:s,vars:a,transformOrigin:o}=t,l=!1,u=!1;for(let t in e){let i=e[t];if(n.has(t)){l=!0;continue}if(Q(t)){a[t]=i;continue}{let e=ei(i,I[t]);t.startsWith("origin")?(u=!0,o[t]=e):s[t]=e}}if(!e.transform&&(l||r?s.transform=function(t,e,n){let r="",s=!0;for(let a=0;a<er;a++){let o=i[a],l=t[o];if(void 0===l)continue;let u=!0;
9if("number"==typeof l)u=l===+!!o.startsWith("scale");else{let t=parseFloat(l);u=o.startsWith("scale")?1===t:0===t}if(!u||n){let t=ei(l,I[o]);if(!u){s=!1;let e=en[o]||o;r+=`${e}(${t}) `}n&&(e[o]=t)}}return r=r.trim(),n?r=n(e,s?"":r):s&&(r="none"),r}(e,t.transform,r):s.transform&&(s.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=o;s.transformOrigin=`${t} ${e} ${i}`}}t.s(["buildHTMLStyles",0,es],44947);let ea={offset:"stroke-dashoffset",array:"stroke-dasharray"},eo={offset:"strokeDashoffset",array:"strokeDasharray"},el=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eu(t,{attrX:e,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:a=0,...o},l,u,h){if(es(t,o,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;for(let t of(c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox),el))void 0!==c[t]&&(d[t]=c[t],delete c[t]);void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==r&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?ea:eo;t[s.offset]=`${-n}`,t[s.array]=`${e} ${i}`}(c,r,s,a,!1)}t.s(["buildSVGAttrs",0,eu],81261);let eh=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"]),ec=t=>"string"==typeof t&&"svg"===t.toLowerCase();function ed(t,{style:e,vars:i},n,r){let s,a=t.style;for(s in e)a[s]=e[s];for(s in r?.applyProjectionStyles(a,n),i)a.setProperty(s,i[s])}function em(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}t.s(["isSVGTag",0,ec],99951);let ep={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!x.test(t))return t;else t=parseFloat(t);let i=em(t,e.target.x),n=em(t,e.target.y);return`${i}% ${n}%`}},ef=(t,e,i)=>t+(e-t)*i;t.s(["mixNumber",0,ef],706);let ev={borderRadius:{...ep,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ep,borderTopRightRadius:ep,borderBottomLeftRadius:ep,borderBottomRightRadius:ep,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=L.parse(t);if(n.length>5)return t;let r=L.createTransformer(t),s=+("number"!=typeof n[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;n[0+s]/=a,n[1+s]/=o;let l=ef(a,o,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};function eg(t,{layout:e,layoutId:i}){return n.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!ev[t]||"opacity"===t)}function ey(t,e,i){let n=t.style,r=e?.style,s={};if(!n)return s;for(let e in n)(G(n[e])||r&&G(r[e])||eg(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(s[e]=n[e]);return s}function ex(t,e,n){let r=ey(t,e,n);for(let n in t)(G(t[n])||G(e[n]))&&(r[-1!==i.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]);return r}t.s(["scaleCorrectors",0,ev],24463),t.s(["isForcedMotionValue",0,eg],30789),t.s(["scrapeMotionValuesFromProps",0,ey],84049),t.s(["scrapeMotionValuesFromProps",0,ex],67926);class eb extends et{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=_}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(n.has(e)){let t=U(e);return t&&t.default||0}return e=eh.has(e)?e:ee(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return ex(t,e,i)}build(t,e,i){eu(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in ed(t,e,void 0,n),e.attrs)t.setAttribute(eh.has(i)?i:ee(i),e.attrs[i])}mount(t){this.isSVGTag=ec(t.tagName),super.mount(t)}}function ew({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function eP(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}function eT(t){return void 0===t||1===t}function eS({scale:t,scaleX:e,scaleY:i}){return!eT(t)||!eT(e)||!eT(i)}function ek(t){return eS(t)||eM(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eM(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function eA(t,e,i){return i+e*(t-i)}function eC(t,e,i,n,r){return void 0!==r&&(t=eA(t,r,n)),eA(t,i,n)+e}function eE(t,e=0,i=1,n,r){t.min=eC(t.min,e,i,n,r),t.max=eC(t.max,e,i,n,r)}function ej(t,{x:e,y:i}){eE(t.x,e.translate,e.scale,e.originPoint),eE(t.y,i.translate,i.scale,i.originPoint)}function eV(t,e){t.min=t.min+e,t.max=t.max+e}function eD(t,e,i,n,r=.5){let s=ef(t.min,t.max,r);eE(t,e,i,s,n)}function eL(t,e){eD(t.x,e.x,e.scaleX,e.scale,e.originX),eD(t.y,e.y,e.scaleY,e.scale,e.originY)}function eR(t,e){return ew(eP(t.getBoundingClientRect(),e))}t.s(["convertBoundingBoxToBox",0,ew,"convertBoxToBoundingBox",0,function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}},"transformBoxPoints",0,eP],27677),t.s(["has2DTranslate",0,eM,"hasScale",0,eS,"hasTransform",0,ek],77777),t.s(["applyBoxDelta",0,ej,"applyTreeDeltas",0,function(t,e,
9i,n=!1){let r,s,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){s=(r=i[o]).projectionDelta;let{visualElement:a}=r.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&eL(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,ej(t,s)),n&&ek(r.latestValues)&&eL(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}},"scalePoint",0,eA,"transformBox",0,eL,"translateAxis",0,eV],35636),t.s(["measurePageBox",0,function(t,e,i){let n=eR(t,i),{scroll:r}=e;return r&&(eV(n.x,r.offset.x),eV(n.y,r.offset.y)),n},"measureViewportBox",0,eR],53689);class eB extends et{constructor(){super(...arguments),this.type="html",this.renderInstance=ed}readValueFromInstance(t,e){if(n.has(e))return this.projection?.isProjecting?td(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tm(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(Q(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return eR(t,e)}build(t,e,i){es(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return ey(t,e,i)}}var eN=t.i(71645);let eF=["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 eO(t){if("string"!=typeof t||t.includes("-"));else if(eF.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}t.s(["isSVGComponent",0,eO],44966),t.s(["createDomVisualElement",0,(t,e)=>e.isSVG??eO(t)?new eb(e):new eB(e,{allowProjection:t!==eN.Fragment})],54505)},48070,t=>{"use strict";let e=(0,t.i(71645).createContext)({strict:!1});t.s(["LazyContext",0,e])},88291,82474,86549,11587,8576,30665,33871,t=>{"use strict";var e,i=t.i(71645);let n=(0,i.createContext)({});t.s(["MotionContext",0,n],88291);var r=t.i(87576),s=t.i(32525);function a(t){return Array.isArray(t)?t.join(" "):t}t.s(["useCreateMotionContext",0,function(t){let{initial:e,animate:o}=function(t,e){if((0,r.isControllingVariants)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,s.isVariantLabel)(e)?e:void 0,animate:(0,s.isVariantLabel)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,i.useContext)(n));return(0,i.useMemo)(()=>({initial:e,animate:o}),[a(e),a(o)])}],82474);var o=t.i(83411),l=t.i(30789),u=t.i(44947);let h=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function c(t,e,i){for(let n in e)(0,o.isMotionValue)(e[n])||(0,l.isForcedMotionValue)(n,i)||(t[n]=e[n])}t.s(["createHtmlRenderState",0,h],86549);var d=t.i(81261),m=t.i(99951);let p=()=>({...h(),attrs:{}});t.s(["createSvgRenderState",0,p],11587);let f=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function v(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||f.has(t)}let g=t=>!v(t);try{e=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof e&&(g=t=>t.startsWith("on")?!v(t):e(t))}catch{}var y=t.i(44966);t.s(["useRender",0,function(t,e,n,{latestValues:r},s,a=!1,l){let f=(l??(0,y.isSVGComponent)(t)?function(t,e,n,r){let s=(0,i.useMemo)(()=>{let i=p();return(0,d.buildSVGAttrs)(i,e,(0,m.isSVGTag)(r),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};c(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let n,r,s={},a=(n=t.style||{},c(r={},n,t),Object.assign(r,function({transformTemplate:t},e){return(0,i.useMemo)(()=>{let i=h();return(0,u.buildHTMLStyles)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),r);return t.drag&&!1!==t.dragListener&&(s.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=a,s}
9)(e,r,s,t),x=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(g(r)||!0===i&&v(r)||!e&&!v(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(e,"string"==typeof t,a),b=t!==i.Fragment?{...x,...f,ref:n}:{},{children:w}=e,P=(0,i.useMemo)(()=>(0,o.isMotionValue)(w)?w.get():w,[w]);return(0,i.createElement)(t,{...b,children:P})}],8576);var x=t.i(84049);t.s(["scrapeHTMLMotionValuesFromProps",()=>x.scrapeMotionValuesFromProps],30665),t.s(["resolveMotionValue",0,function(t){return(0,o.isMotionValue)(t)?t.get():t}],33871)},11805,1664,t=>{"use strict";var e=t.i(30665),i=t.i(33871),n=t.i(87576),r=t.i(85983),s=t.i(86579),a=t.i(71645),o=t.i(88291),l=t.i(21476),u=t.i(47414);let h=t=>(e,h)=>{let c=(0,a.useContext)(o.MotionContext),d=(0,a.useContext)(l.PresenceContext),m=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},a,o,l){return{latestValues:function(t,e,a,o){let l={},u=o(t,{});for(let t in u)l[t]=(0,i.resolveMotionValue)(u[t]);let{initial:h,animate:c}=t,d=(0,n.isControllingVariants)(t),m=(0,n.isVariantNode)(t);e&&m&&!d&&!1!==t.inherit&&(void 0===h&&(h=e.initial),void 0===c&&(c=e.animate));let p=!!a&&!1===a.initial,f=(p=p||!1===h)?c:h;if(f&&"boolean"!=typeof f&&!(0,r.isAnimationControls)(f)){let e=Array.isArray(f)?f:[f];for(let i=0;i<e.length;i++){let n=(0,s.resolveVariantFromProps)(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=p?e.length-1:0;e=e[t]}null!==e&&(l[t]=e)}for(let e in t)l[e]=t[e]}}}return l}(a,o,l,t),renderState:e()}})(t,e,c,d);return h?m():(0,u.useConstant)(m)};var c=t.i(86549);let d=h({scrapeMotionValuesFromProps:e.scrapeHTMLMotionValuesFromProps,createRenderState:c.createHtmlRenderState});t.s(["useHTMLVisualState",0,d],11805);var m=t.i(67926),m=m,p=t.i(11587);let f=h({scrapeMotionValuesFromProps:m.scrapeMotionValuesFromProps,createRenderState:p.createSvgRenderState});t.s(["useSVGVisualState",0,f],1664)},76948,13565,21967,83640,35043,4035,25522,t=>{"use strict";var e=t.i(17218);let i={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},n=!1;function r(){return!function(){if(n)return;let t={};for(let e in i)t[e]={isEnabled:t=>i[e].some(e=>!!t[e])};(0,e.setFeatureDefinitions)(t),n=!0}(),(0,e.getFeatureDefinitions)()}t.s(["getInitializedFeatureDefinitions",0,r],76948),t.s(["loadFeatures",0,function(t){let i=r();for(let e in t)i[e]={...i[e],...t[e]};(0,e.setFeatureDefinitions)(i)}],13565);let s=Symbol.for("motionComponentSymbol");t.s(["motionComponentSymbol",0,s],21967);var a=t.i(71645);t.s(["useMotionRef",0,function(t,e,i){let n=(0,a.useRef)(i);(0,a.useInsertionEffect)(()=>{n.current=i});let r=(0,a.useRef)(null);return(0,a.useCallback)(i=>{i&&t.onMount?.(i),e&&(i?e.mount(i):e.unmount());let s=n.current;if("function"==typeof s)if(i){let t=s(i);"function"==typeof t&&(r.current=t)}else r.current?(r.current(),r.current=null):s(i);else s&&(s.current=i)},[e])}],83640);let o="data-"+(0,t.i(93787).camelToDash)("framerAppearId");t.s(["optimizedAppearDataAttribute",0,o],35043);let l=(0,a.createContext)({});t.s(["SwitchLayoutGroupContext",0,l],4035),t.s(["isRefObject",0,function(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}],25522)},7051,42098,87333,80538,16896,63074,38638,4169,91559,83920,44230,15923,30551,39011,23070,55559,19880,82774,39676,37541,52101,t=>{"use strict";let e;t.i(47167);var i=t.i(18050),n=t.i(71645),r=t.i(31178),s=t.i(48070),a=t.i(37806),o=t.i(88291),l=t.i(82474),u=t.i(8576),h=t.i(44966),c=t.i(11805),d=t.i(1664),m=t.i(92936),p=t.i(76948),f=t.i(13565),v=t.i(21967),g=t.i(83640),y=t.i(35043),x=t.i(21476),b=t.i(4035),w=t.i(25522),P=t.i(74008);function T(t,{forwardMotionProps:e=!1,type:S}={},k,M){k&&(0,f.loadFeatures)(k);let A=S?"svg"===S:(0,h.isSVGComponent)(t),C=A?d.useSVGVisualState:c.useHTMLVisualState;function E(h,c){let d,f={...(0,n.useContext)(a.MotionConfigContext),...h,layoutId:function({layoutId:t}){let e=(0,n.useContext)(r.LayoutGroupContext).id;return e&&void 0!==t?e+"-"+t:t}(h)},{isStatic:v}=f,T=(0,l.useCreateMotionContext)(h),S=C(h,v);if(!v&&m.isBrowser){(0,n.useContext)(s.LazyContext).strict;let e=function(t){let{drag:e,layout:i}=(0,p.getInitializedFeatureDefinitions)();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
9(f);d=e.MeasureLayout,T.visualElement=function(t,e,i,r,l,u){let{visualElement:h}=(0,n.useContext)(o.MotionContext),c=(0,n.useContext)(s.LazyContext),d=(0,n.useContext)(x.PresenceContext),m=(0,n.useContext)(a.MotionConfigContext),p=m.reducedMotion,f=m.skipAnimations,v=(0,n.useRef)(null),g=(0,n.useRef)(!1);r=r||c.renderer,!v.current&&r&&(v.current=r(t,{visualState:e,parent:h,props:i,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:p,skipAnimations:f,isSVG:u}),g.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));let T=v.current,S=(0,n.useContext)(b.SwitchLayoutGroupContext);T&&!T.projection&&l&&("html"===T.type||"svg"===T.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!a||o&&(0,w.isRefObject)(o),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(v.current,i,l,S);let k=(0,n.useRef)(!1);(0,n.useInsertionEffect)(()=>{T&&k.current&&T.update(i,d)});let M=i[y.optimizedAppearDataAttribute],A=(0,n.useRef)(!!M&&!window.MotionHandoffIsComplete?.(M)&&window.MotionHasOptimisedAnimation?.(M));return(0,P.useIsomorphicLayoutEffect)(()=>{g.current=!0,T&&(k.current=!0,window.MotionIsMounted=!0,T.updateFeatures(),T.scheduleRenderMicrotask(),A.current&&T.animationState&&T.animationState.animateChanges())}),(0,n.useEffect)(()=>{T&&(!A.current&&T.animationState&&T.animationState.animateChanges(),A.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(M)}),A.current=!1),T.enteringChildren=void 0)}),T}(t,S,f,M,e.ProjectionNode,A)}return(0,i.jsxs)(o.MotionContext.Provider,{value:T,children:[d&&T.visualElement?(0,i.jsx)(d,{visualElement:T.visualElement,...f}):null,(0,u.useRender)(t,h,(0,g.useMotionRef)(S,T.visualElement,c),S,v,e,A)]})}E.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let j=(0,n.forwardRef)(E);return j[v.motionComponentSymbol]=t,j}t.s(["createMotionProxy",0,function(t,e){if("u"<typeof Proxy)return T;let i=new Map,n=(i,n)=>T(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,T(s,void 0,t,e)),i.get(s))})}],7051);class S{constructor(t){this.isMounted=!1,this.node=t}update(){}}t.s(["Feature",0,S],42098);var k=t.i(86579);function M(t,e,i){let n=t.getProps();return(0,k.resolveVariantFromProps)(n,e,void 0!==i?i:n.custom,t)}function A(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function C(t,e){let i=t?.[e]??t?.default??t;return i!==t?A(i,t):i}t.s(["getValueTransition",0,C],87333);var E=t.i(64440),j=t.i(86427);let V=t=>Array.isArray(t);var D=t.i(46791),L=t.i(83411);function R(t,e){let i=t.getValue("willChange");if((0,L.isMotionValue)(i)&&i.add)return i.add(e);if(!i&&D.MotionGlobalConfig.WillChange){let i=new D.MotionGlobalConfig.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function B(t){return t.props[y.optimizedAppearDataAttribute]}t.s(["addValueToWillChange",0,R],80538),t.s(["getOptimisedAppearId",0,B],16896);let N=t=>1e3*t,F=t=>t/1e3;t.s(["millisecondsToSeconds",0,F,"secondsToMilliseconds",0,N],63074);var O=t.i(60830),I=t.i(96173);let $=(t,e)=>i=>e(t(i)),U=(...t)=>t.reduce($);t.s(["pipe",0,U],38638);var z=t.i(76959);let W={layout:0,mainThread:0,waapi:0};t.s(["activeAnimations",0,W],4169);var _=t.i(65566),G=t.i(19928),H=t.i(79444),K=t.i(69577),X=t.i(63011),Y=t.i(22660);function q(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var Z=t.i(66820);function J(t,e){return i=>i>0?e:t}var Q=t.i(706);let tt=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},te=[X.hex,Z.rgba,Y.hsla];function ti(t){let e=te.find(e=>e.test(t));if((0,_.warning)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===Y.hsla&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;r=q(o,n,t+1/3),s=q(o,n,t),a=q(o,n,t-1/3)}else r=s=a=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*a),alpha:n}}(i)),i}let tn=(t,e)=>{let i=ti(t),n=ti(e);if(!i||!n)return J(t,e);let r={...i};return t=>(r.red=tt(i.red,n.red,t),r.green=tt(i.green,n.green,t),r.blue=tt(i.blue,n.blue,t),r.alpha=(0,Q.mixNumber)(i.alpha,n.alpha,t),Z.rgba.transform(r))},tr=new Set(["none","hidden"]);function ts(t,e){return i=>(0,Q.mixNumber)(t,e,i)}function ta(t){return"number"==typeof t?ts:"string"==typeof t?(0,G.isCSSVariableToken)(t)?J:H.color.test(t)?tn:tu:Array.isArray(t)?to:"object"==typeof t?H.color.test(t)?tn:tl:J}function to(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>ta(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function tl(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=ta(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let tu=(t,e)=>{let i=K.complex.createTransformer(e),n=(0,K.analyseComplexValue)(t),r=(0,K.analyseComplexValue)(e);if(!(n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length))return(0,_.warning)(!0,`Complex values '${t}' and '${e}
9' 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"),J(t,e);if(tr.has(t)&&!r.values.length||tr.has(e)&&!n.values.length)return tr.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return U(to(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let s=e.types[r],a=t.indexes[s][n[s]],o=t.values[a]??0;i[r]=o,n[s]++}return i}(n,r),r.values),i)};function th(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,Q.mixNumber)(t,e,i):ta(t)(t,e)}var tc=t.i(87022);let td=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tc.frame.update(e,t),stop:()=>(0,tc.cancelFrame)(e),now:()=>tc.frameData.isProcessing?tc.frameData.timestamp:I.time.now()}},tm=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function tp(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}var tf=t.i(25791);function tv(t,e,i){let n=Math.max(e-5,0);return(0,tf.velocityPerSecond)(i-t(n),e-n)}let tg=.01,ty=2,tx=.005,tb=.5;function tw(t,e){return t*Math.sqrt(1-e*e)}let tP=["duration","bounce"],tT=["stiffness","damping","mass"];function tS(t,e){return e.some(e=>void 0!==t[e])}function tk(t=.3,e=.3){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:s}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:h,mass:c,duration:d,velocity:m,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!tS(t,tT)&&tS(t,tP))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*(0,z.clamp)(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:r}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let r,s;(0,_.warning)(t<=N(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=(0,z.clamp)(.05,1,a),t=(0,z.clamp)(.01,10,F(t)),a<1?(r=e=>{let n=e*a,r=n*t;return .001-(n-i)/tw(e,a)*Math.exp(-r)},s=e=>{let n=e*a*t,s=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-n),l=tw(Math.pow(e,2),a);return(n*i+i-s)*o*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let o=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=N(t),isNaN(o))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(o,2)*n;return{stiffness:e,damping:2*a*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...n,velocity:-F(n.velocity||0)}),f=m||0,v=h/(2*Math.sqrt(u*c)),g=o-a,y=F(Math.sqrt(u/c)),x=5>Math.abs(g);if(r||(r=x?tg:ty),s||(s=x?tx:tb),v<1){let t=tw(y,v);i=e=>o-Math.exp(-v*y*e)*((f+v*y*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}else if(1===v)i=t=>o-Math.exp(-y*t)*(g+(f+y*g)*t);else{let t=y*Math.sqrt(v*v-1);i=e=>{let i=Math.exp(-v*y*e),n=Math.min(t*e,300);return o-i*((f+v*y*g)*Math.sinh(n)+t*g*Math.cosh(n))/t}}let b={calculatedDuration:p&&d||null,next:t=>{let e=i(t);if(p)l.done=t>=d;else{let n=0===t?f:0;v<1&&(n=0===t?N(f):tv(i,t,e));let a=Math.abs(o-e)<=s;l.done=Math.abs(n)<=r&&a}return l.value=l.done?o:e,l},toString:()=>{let t=Math.min(tp(b),2e4),e=tm(e=>b.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return b}function tM({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:h}){let c,d,m=t[0],p={done:!1,value:m},f=i*e,v=m+f,g=void 0===a?v:a(v);g!==v&&(f=g-m);let y=t=>-f*Math.exp(-t/n),x=t=>g+y(t),b=t=>{let e=y(t),i=x(t);p.done=Math.abs(e)<=u,p.value=p.done?g:i},w=t=>{let e;if(e=p.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;c=t,d=tk({keyframes:[p.value,(i=p.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:tv(x,t,p.value),damping:r,stiffness:s,restDelta:u,restSpeed:h})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,b(t),w(t)),void 0!==c&&t>=c)?d.next(t-c):(e||b(t),p)}}}tk.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(tp(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:F(r)}}(t,100,tk);return t.ease=e.ease,t.duration=N(e.duration),t.type="keyframes",t};let tA=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tC(t,e,i,n){return t===e&&i===n?O.noop:r=>
90===r||1===r?r:tA(function(t,e,i,n,r){let s,a,o=0;do(s=tA(a=e+(i-e)/2,n,r)-t)>0?i=a:e=a;while(Math.abs(s)>1e-7&&++o<12)return a}(r,0,1,t,i),e,n)}let tE=tC(.42,0,1,1),tj=tC(0,0,.58,1),tV=tC(.42,0,.58,1),tD=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,tL=t=>e=>1-t(1-e),tR=tC(.33,1.53,.69,.99),tB=tL(tR),tN=tD(tB),tF=t=>(t*=2)<1?.5*tB(t):.5*(2-Math.pow(2,-10*(t-1))),tO=t=>1-Math.sin(Math.acos(t)),tI=tL(tO),t$=tD(tO);t.s(["circIn",0,tO,"circInOut",0,t$,"circOut",0,tI],91559);let tU=t=>Array.isArray(t)&&"number"==typeof t[0],tz={linear:O.noop,easeIn:tE,easeInOut:tV,easeOut:tj,circIn:tO,circInOut:t$,circOut:tI,backIn:tB,backInOut:tN,backOut:tR,anticipate:tF},tW=t=>{if(tU(t)){(0,_.invariant)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,r]=t;return tC(e,i,n,r)}return"string"==typeof t?((0,_.invariant)(void 0!==tz[t],`Invalid easing type '${t}'`,"invalid-easing-type"),tz[t]):t},t_=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function tG(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if((0,_.invariant)(s===e.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let n=[],r=i||D.MotionGlobalConfig.mix||th,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=U(Array.isArray(e)?e[i]||O.noop:e,s)),n.push(s)}return n}(e,n,r),l=o.length,u=i=>{if(a&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=t_(t[n],t[n+1],i);return o[n](r)};return i?e=>u((0,z.clamp)(t[0],t[s-1],e)):u}function tH(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=t_(0,e,n);t.push((0,Q.mixNumber)(i,1,r))}}(e,t.length-1),e}function tK({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var r;let s=Array.isArray(n)&&"number"!=typeof n[0]?n.map(tW):tW(n),a={done:!1,value:e[0]},o=tG((r=i&&i.length===e.length?i:tH(e),r.map(e=>e*t)),e,{ease:Array.isArray(s)?s:e.map(()=>s||tV).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=o(e),a.done=e>=t,a)}}t.s(["progress",0,t_],83920),t.s(["interpolate",0,tG],44230),t.s(["defaultOffset",0,tH],15923);let tX=t=>null!==t;function tY(t,{repeat:e,repeatType:i="loop"},n,r=1){let s=t.filter(tX),a=r<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return a&&void 0!==n?n:s[a]}let tq={decay:tM,inertia:tM,tween:tK,keyframes:tK,spring:tk};function tZ(t){"string"==typeof t.type&&(t.type=tq[t.type])}class tJ{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let tQ=t=>t/100;class t0 extends tJ{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==I.time.now()&&this.tick(I.time.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},W.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;tZ(t);let{type:e=tK,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:a}=t,o=e||tK;o!==tK&&"number"!=typeof a[0]&&(this.mixKeyframes=U(tQ,th(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===r&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=tp(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:r,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:h,repeatType:c,repeatDelay:d,type:m,onUpdate:p,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?v<0:v>n;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let y=this.currentTime,x=i;if(h){let t=Math.min(this.currentTime,n)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,h+1))%2&&("reverse"===c?(i=1-i,d&&(i-=d/a)):"mirror"===c&&(x=s)),y=(0,z.clamp)(0,1,i)*a}let b=g?{done:!1,value:u[0]}:x.next(y);r&&(b.value=r(b.value));let{done:w}=b;g||null===o||(w=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return P&&m!==tM&&(b.value=tY(u,this.options,f,this.speed)),p&&p(b.value),P&&this.finish(),b}then(t,e){return this.finished.then(t,e)}get duration(){return F(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+F(t)}get time(){return F(this.currentTime)}set time(t){t=N(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(I.time.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=F(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=td,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(I.time.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,W.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}var t1=t.i(21012);function t2(t){let e;return()=>(void 0===e&&(e=t()),e)}let t5=t2(()=>void 0!==window.ScrollTimeline);t.s(["supportsScrollTimeline",0,t5],30551);var t6=t.i(80248);let t4={},t7=(e=t2(()=>{try{document.createElement("div").animate({opacity:0}
9,{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>t4.linearEasing??e()),t3=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,t8={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t3([0,.65,.55,1]),circOut:t3([.55,0,1,.45]),backIn:t3([.31,.01,.66,-.59]),backOut:t3([.33,1.53,.69,.99])};function t9(t){return"function"==typeof t&&"applyToOptions"in t}class et extends tJ{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,(0,_.invariant)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return t9(t)&&t7()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?t7()?tm(e,i):"ease-out":tU(e)?t3(e):Array.isArray(e)?e.map(e=>t(e,i)||t8.easeOut):t8[e]}(o,r);Array.isArray(c)&&(h.easing=c),t6.statsBuffer.value&&W.waapi++;let d={delay:n,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"};u&&(d.pseudoElement=u);let m=t.animate(h,d);return t6.statsBuffer.value&&m.finished.finally(()=>{W.waapi--}),m}(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=tY(n,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(t):i.startsWith("--")?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return F(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+F(t)}get time(){return F(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=N(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&t5())?(this.animation.timeline=t,O.noop):e(this)}}let ee={anticipate:tF,backInOut:tN,circInOut:t$};class ei extends et{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in ee&&(t.ease=ee[t.ease])}(t),tZ(t),super(t),void 0!==t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new t0({...s,autoplay:!1}),o=Math.max(10,I.time.now()-this.startTime),l=(0,z.clamp)(0,10,o-10);e.setWithVelocity(a.sample(Math.max(0,o-l)).value,a.sample(o).value,l),a.stop()}}let en=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(K.complex.test(t)||"0"===t)&&!t.startsWith("url("));function er(t){t.duration=0,t.type="keyframes"}let es=new Set(["opacity","clipPath","filter","transform"]),ea=t2(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class eo extends tJ{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:a,name:o,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=I.time.now();const c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:o,motionValue:l,element:u,...h},d=u?.KeyframeResolver||t1.KeyframeResolver;this.keyframeResolver=new d(a,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:r,type:s,velocity:a,delay:o,isHandoff:l,onUpdate:u}=i;
9this.resolvedAt=I.time.now(),!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],a=en(r,e),o=en(s,e);return(0,_.warning)(a===o,`You are trying to animate ${e} from "${r}" to "${s}". "${a?s:r}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||t9(i))&&n)}(t,r,s,a)&&((D.MotionGlobalConfig.instantAnimations||!o)&&u?.(tY(t,i,e)),t[0]=t[t.length-1],er(i),i.repeat=0);let h={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},c=!l&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return ea()&&i&&es.has(i)&&("transform"!==i||!l)&&!o&&!n&&"mirror"!==r&&0!==s&&"inertia"!==a}(h),d=h.motionValue?.owner?.current,m=c?new ei({...h,element:d}):new t0(h);m.finished.then(()=>{this.notifyFinished()}).catch(O.noop),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,t1.flushKeyframeResolvers)()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}var el=t.i(57788);let eu={type:"spring",stiffness:500,damping:25,restSpeed:10},eh={type:"keyframes",duration:.8},ec={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ed=t=>null!==t,em=(t,e,i,n={},r,s)=>a=>{let o=C(n,t)||{},l=o.delay||n.delay||0,{elapsed:u=0}=n;u-=N(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-u,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(o)&&Object.assign(h,((t,{keyframes:e})=>e.length>2?eh:el.transformProps.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:eu:ec)(t,h)),h.duration&&(h.duration=N(h.duration)),h.repeatDelay&&(h.repeatDelay=N(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(er(h),0===h.delay&&(c=!0)),(D.MotionGlobalConfig.instantAnimations||D.MotionGlobalConfig.skipAnimations||r?.shouldSkipAnimations)&&(c=!0,er(h),h.delay=0),h.allowFlatten=!o.type&&!o.ease,c&&!s&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"}){let n=t.filter(ed),r=e&&"loop"!==i&&e%2==1?0:n.length-1;return n[r]}(h.keyframes,o);if(void 0!==t)return void tc.frame.update(()=>{h.onUpdate(t),h.onComplete()})}return o.isSync?new t0(h):new eo(h)};function ep(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s,transitionEnd:a,...o}=e,l=t.getDefaultTransition();s=s?A(s,l):l;let u=s?.reduceMotion;n&&(s=n);let h=[],c=r&&t.animationState&&t.animationState.getState()[r];for(let e in o){let n=t.getValue(e,t.latestValues[e]??null),r=o[e];if(void 0===r||c&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(c,e))continue;let a={delay:i,...C(s||{},e)},l=n.get();if(void 0!==l&&!n.isAnimating&&!Array.isArray(r)&&r===l&&!a.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let i=B(t);if(i){let t=window.MotionHandoffAnimation(i,e,tc.frame);null!==t&&(a.startTime=t,d=!0)}}R(t,e);let m=u??t.shouldReduceMotion;n.start(em(e,n,r,m&&E.positionalKeys.has(e)?{type:!1}:a,t,d));let p=n.animation;p&&h.push(p)}if(a){let e=()=>tc.frame.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=M(t,e)||{};for(let e in r={...r,...i}){var s;let i=V(s=r[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,j.motionValue)(i))}}(t,a)});h.length?Promise.all(h).then(e):e()}return h}function ef(t,e,i,n=0,r=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*n;return"function"==typeof i?i(s,a):1===r?s*n:o-s*n}function ev(t,e,i={}){let n=M(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(ep(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:o}=r;
9return function(t,e,i=0,n=0,r=0,s=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(ev(l,e,{...a,delay:i+("function"==typeof n?0:n)+ef(t.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,n,s,a,o,i)}:()=>Promise.resolve(),{when:o}=r;if(!o)return Promise.all([s(),a(i.delay)]);{let[t,e]="beforeChildren"===o?[s,a]:[a,s];return t().then(()=>e())}}t.s(["animateMotionValue",0,em],39011);var eg=t.i(32525),ey=t.i(6840);let ex=ey.variantProps.length;var eb=t.i(85983);function ew(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let eP=[...ey.variantPriorityOrder].reverse(),eT=ey.variantPriorityOrder.length;function eS(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ek(){return{animate:eS(!0),whileInView:eS(),whileHover:eS(),whileTap:eS(),whileDrag:eS(),whileFocus:eS(),exit:eS()}}let eM=0;t.s(["animations",0,{animation:{Feature:class extends S{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>ev(t,e,i)));else if("string"==typeof e)n=ev(t,e,i);else{let r="function"==typeof e?M(t,e,i.custom):e;n=Promise.all(ep(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=ek(),n=!0,r=e=>(i,n)=>{let r=M(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function s(s){let{props:a}=t,o=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<ex;t++){let n=ey.variantProps[t],r=e.props[n];((0,eg.isVariantLabel)(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},l=[],u=new Set,h={},c=1/0;for(let e=0;e<eT;e++){var d,m;let p=eP[e],f=i[p],v=void 0!==a[p]?a[p]:o[p],g=(0,eg.isVariantLabel)(v),y=p===s?f.isActive:null;!1===y&&(c=e);let x=v===o[p]&&v!==a[p]&&g;if(x&&n&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...h},!f.isActive&&null===y||!v&&!f.prevProp||(0,eb.isAnimationControls)(v)||"boolean"==typeof v)continue;let b=(d=f.prevProp,"string"==typeof(m=v)?m!==d:!!Array.isArray(m)&&!ew(m,d)),w=b||p===s&&f.isActive&&!x&&g||e>c&&g,P=!1,T=Array.isArray(v)?v:[v],S=T.reduce(r(p),{});!1===y&&(S={});let{prevResolvedValues:k={}}=f,A={...k,...S},C=e=>{w=!0,u.has(e)&&(P=!0,u.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in A){let e=S[t],i=k[t];if(!h.hasOwnProperty(t))(V(e)&&V(i)?ew(e,i):e===i)?void 0!==e&&u.has(t)?C(t):f.protectedKeys[t]=!0:null!=e?C(t):u.add(t)}f.prevProp=v,f.prevResolvedValues=S,f.isActive&&(h={...h,...S}),n&&t.blockInitialAnimation&&(w=!1);let E=x&&b,j=!E||P;w&&j&&l.push(...T.map(e=>{let i={type:p};if("string"==typeof e&&n&&!E&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,r=M(n,e);if(n.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=ef(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof a.initial){let i=M(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),l.push({animation:e})}let p=!!l.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(p=!1),n=!1,p?e(l):Promise.resolve()}return{animateChanges:s,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let r=s(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=ek()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,eb.isAnimationControls)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends S{constructor(){super(...arguments),this.id=eM++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>
9{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}}],23070),t.s(["eachAxis",0,function(t){return[t("x"),t("y")]}],55559);let eA=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),eC=new Set(["INPUT","SELECT","TEXTAREA"]);t.s(["isElementKeyboardAccessible",0,function(t){return eA.has(t.tagName)||!0===t.isContentEditable},"isElementTextInput",0,function(t){return eC.has(t.tagName)||!0===t.isContentEditable}],19880),t.s(["addDomEvent",0,function(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}],82774);let eE={x:!1,y:!1};t.s(["isDragActive",0,function(){return eE.x||eE.y},"isDragging",0,eE],39676),t.s(["setDragLock",0,function(t){if("x"===t||"y"===t)if(eE[t])return null;else return eE[t]=!0,()=>{eE[t]=!1};return eE.x||eE.y?null:(eE.x=eE.y=!0,()=>{eE.x=eE.y=!1})}],37541);function ej(t){return t.max-t.min}function eV(t,e,i,n=.5){t.origin=n,t.originPoint=(0,Q.mixNumber)(e.min,e.max,t.origin),t.scale=ej(i)/ej(e),t.translate=(0,Q.mixNumber)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function eD(t,e,i){t.min=i.min+e.min,t.max=t.min+ej(e)}function eL(t,e,i){t.min=e.min-i.min,t.max=t.min+ej(e)}t.s(["calcBoxDelta",0,function(t,e,i,n){eV(t.x,e.x,i.x,n?n.originX:void 0),eV(t.y,e.y,i.y,n?n.originY:void 0)},"calcLength",0,ej,"calcRelativeBox",0,function(t,e,i){eD(t.x,e.x,i.x),eD(t.y,e.y,i.y)},"calcRelativePosition",0,function(t,e,i){eL(t.x,e.x,i.x),eL(t.y,e.y,i.y)},"isNear",0,function(t,e,i){return Math.abs(t-e)<=i}],52101)},33986,89026,49652,61327,41327,65536,85651,7230,t=>{"use strict";let e,i;var n=t.i(42098),r=t.i(60830),s=t.i(30162),a=t.i(87022),o=t.i(55559),l=t.i(53689),u=t.i(27677),h=t.i(80538),c=t.i(39011),d=t.i(706),m=t.i(19880),p=t.i(82774),f=t.i(37541),v=t.i(65091),g=t.i(52101),y=t.i(42824);function x(t){return(0,y.isObject)(t)&&"ownerSVGElement"in t}function b(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let r=i?.[t]??n.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t).filter(t=>null!=t)}t.s(["isSVGElement",0,x],89026),t.s(["resolveElements",0,b],49652);let w=new WeakMap,P=(t,e,i)=>(n,r)=>r&&r[0]?r[0][t+"Size"]:x(n)&&"getBBox"in n?n.getBBox()[e]:n[i],T=P("inline","width","offsetWidth"),S=P("block","height","offsetHeight");function k({target:t,borderBoxSize:e}){w.get(t)?.forEach(i=>{i(t,{get width(){return T(t,e)},get height(){return S(t,e)}})})}function M(t){t.forEach(k)}let A=new Set;function C(t,n){let r;return"function"==typeof t?(A.add(t),i||(i=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};A.forEach(e=>e(t))},window.addEventListener("resize",i)),()=>{A.delete(t),A.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):(!e&&"u">typeof ResizeObserver&&(e=new ResizeObserver(M)),(r=b(t)).forEach(t=>{let i=w.get(t);i||(i=new Set,w.set(t,i)),i.add(n),e?.observe(t)}),()=>{r.forEach(t=>{let i=w.get(t);i?.delete(n),i?.size||e?.unobserve(t)})})}t.s(["resize",0,C],61327);var E=t.i(65566);let j=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function V(t){return{point:{x:t.pageX,y:t.pageY}}}t.s(["isPrimaryPointer",0,j],41327);let D=t=>e=>j(e)&&t(e,V(e));function L(t,e,i,n){return(0,p.addDomEvent)(t,e,D(i),n)}t.s(["addPointerInfo",0,D,"extractEventInfo",0,V],65536);let R=({current:t})=>t?t.ownerDocument.defaultView:null;var B=t.i(25522),N=t.i(38638),F=t.i(63074);let O=(t,e)=>Math.abs(t-e),I=new Set(["auto","scroll"]);class ${constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=W(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(O(t.x,e.x)**2+O(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=a.frameData;this.history.push({...s,timestamp:o});let{onStart:l,onMove:u}=this.handlers;n||(l&&l(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),u&&u(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=U(e,this.transformPagePoint),a.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=W("pointercancel"===t.type?this.lastMoveEventInfo:U(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!j(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;const l=U(V(t),this.transformPagePoint),{point:u}=l,{timestamp:h}=a.frameData;this.history=[{...u,timestamp:h}];const{onSessionStart:c}=e;c&&c(t,W(l,this.history)),this.removeListeners=(0,N.pipe)(L(this.contextWindow,"pointermove",this.handlePointerMove),L(this.contextWindow,"pointerup",this.handlePointerUp),L(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(I.has(t.overflowX)||I.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:n.x-e.x,y:n.y-e.y};(0!==r.x||0!==r.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,n),a.frame.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,a.cancelFrame)(this.updatePoint)}}function U(t,e){return e?{point:e(t.point)}:t}function z(t,e){return{x:t.x-e.x,y:t.y-e.y}}function W({point:t},e){return{point:t,delta:z(t,_(e)),offset:z(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,n=_(t);for(;e>=0&&(i=t[e],!(n.timestamp-i.timestamp>(0,F.secondsToMilliseconds)(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&n.timestamp-i.timestamp>
92*(0,F.secondsToMilliseconds)(.1)&&(i=t[1]);let r=(0,F.millisecondsToSeconds)(n.timestamp-i.timestamp);if(0===r)return{x:0,y:0};let s={x:(n.x-i.x)/r,y:(n.y-i.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e)}}function _(t){return t[t.length-1]}var G=t.i(83920),H=t.i(76959);function K(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function X(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function Y(t,e,i){return{min:q(t,e),max:q(t,i)}}function q(t,e){return"number"==typeof t?t:t[e]||0}let Z=new WeakMap;class J{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,s.createBox)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let r=t=>{e&&this.snapToCursor(V(t).point),this.stopAnimation()},s=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,f.setDragLock)(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),(0,o.eachAxis)(t=>{let e=this.getAxisMotionValue(t).get()||0;if(v.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=(0,g.calcLength)(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&a.frame.update(()=>r(t,e),!1,!0),(0,h.addValueToWillChange)(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},l=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&a.frame.update(()=>s(t,e),!1,!0)},u=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new $(t,{onSessionStart:r,onStart:s,onMove:l,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:i,contextWindow:R(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&a.frame.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!tt(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?(0,d.mixNumber)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,d.mixNumber)(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&(0,B.isRefObject)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:K(t.x,i,r),y:K(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:Y(t,"left","right"),y:Y(t,"top","bottom")}}(e),n!==this.constraints&&!(0,B.isRefObject)(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&(0,o.eachAxis)(t=>{var e,n;let r;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],r={},void 0!==n.min&&(r.min=n.min-e.min),void 0!==n.max&&(r.max=n.max-e.min),r))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,B.isRefObject)(e))return!1;let n=e.current;(0,E.invariant)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=(0,l.measurePageBox)(n,r.root,this.visualElement.getTransformPagePoint()),a=(t=r.layout.layoutBox,{x:X(t.x,s.x),y:X(t.y,s.y)});if(i){let t=i((0,u.convertBoxToBoundingBox)(a));this.hasMutatedConstraints=!!t,t&&(a=(0,u.convertBoundingBoxToBox)(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{};return Promise.all((0,o.eachAxis)(a=>{if(!tt(a,e,this.currentDirection))return;let o=l&&l[a]||{};s&&(o={min:0,max:0});let u={type:"inertia",velocity:i?t[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...o};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,h.addValueToWillChange)(this.visualElement,t),i.start((0,c.animateMotionValue)(t,i,0,e,this.visualElement,!1))}stopAnimation(){(0,o.eachAxis)(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){(0,o.eachAxis)(e=>{let{drag:i}=this.getProps();if(!tt(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e],a=r.get()||0;r.set(t[e]-(0,d.mixNumber)(i,s,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,B.isRefObject)(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};(0,o.eachAxis)(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,r;let s,a,o,l=e.get();n[t]=(i={min:l,max:l},r=this.constraints[t],s=.5,a=(0,g.calcLength)(i),(o=(0,g.calcLength)(r))>a?s=(0,G.progress)(r.min,r.max-a,i.min):a>o&&(s=(0,G.progress)(i.min,i.max-o,r.min)),(0,H.clamp)(0,1,s))}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),(0,o.eachAxis)(e=>{if(!tt(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set((0,d.mixNumber)(r,s,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;Z.set(this.visualElement,this);let e=this.visualElement.current,i=L(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}
9=this.getProps(),r=t.target,s=r!==e&&(0,m.isElementTextInput)(r);i&&n&&!s&&this.start(t)}),n=()=>{var i,n,r;let s,a,{dragConstraints:o}=this.getProps();(0,B.isRefObject)(o)&&o.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,n=o.current,s=C(i,Q(r=()=>this.scalePositionWithinConstraints())),a=C(n,Q(r)),t=()=>{s(),a()}))},{projection:r}=this.visualElement,s=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),a.frame.read(n);let l=(0,p.addDomEvent)(window,"resize",()=>this.scalePositionWithinConstraints()),u=r.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&((0,o.eachAxis)(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{l(),i(),s(),u&&u(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:a}}}function Q(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function tt(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class te extends n.Feature{constructor(t){super(t),this.removeGroupControls=r.noop,this.removeListeners=r.noop,this.controls=new J(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||r.noop}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}t.s(["DragGesture",0,te],33986);var ti=n;let tn=t=>(e,i)=>{t&&a.frame.update(()=>t(e,i),!1,!0)};class tr extends ti.Feature{constructor(){super(...arguments),this.removePointerDownListener=r.noop}onPointerDown(t){this.session=new $(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:R(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:tn(t),onStart:tn(e),onMove:tn(i),onEnd:(t,e)=>{delete this.session,n&&a.frame.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=L(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}t.s(["PanGesture",0,tr],85651),t.s(["globalProjectionState",0,{hasAnimatedSinceResize:!0,hasEverUpdated:!1}],7230)},46816,77397,17871,73089,57512,99642,t=>{"use strict";var e=t.i(33986),i=t.i(85651),n=t.i(18050),r=t.i(7230),s=t.i(87022),a=t.i(60140),o=t.i(71645),l=t.i(64978),u=t.i(31178),h=t.i(4035);let c=!1;class d extends o.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),c&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),r.globalProjectionState.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,{projection:a}=i;return a&&(a.isPresent=r,t.layoutDependency!==e&&a.setOptions({...a.options,layoutDependency:e}),c=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?a.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?a.promote():a.relegate()||s.frame.postRender(()=>{let t=a.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),a.microtask.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;c=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function m(t){let[e,i]=(0,l.usePresence)(),r=(0,o.useContext)(u.LayoutGroupContext);return(0,n.jsx)(d,{...t,layoutGroup:r,switchLayoutGroup:(0,o.useContext)(h.SwitchLayoutGroupContext),isPresent:e,safeToRemove:i})}t.s(["MeasureLayout",0,m],77397);var p=t.i(70596),f=t.i(76959),v=t.i(60830),g=t.i(39011),y=t.i(86427),x=t.i(83411),b=t.i(16896),w=t.i(87333),P=t.i(96173),T=t.i(24463),S=t.i(4169),k=t.i(80248);t.i(63074);var M=t.i(89026),A=t.i(706),C=t.i(33871),E=t.i(65091),j=t.i(83920),V=t.i(91559);let D=["TopLeft","TopRight","BottomLeft","BottomRight"],L=D.length,R=t=>"string"==typeof t?parseFloat(t):t,B=t=>"number"==typeof t||E.px.test(t);function N(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let F=I(0,.5,V.circOut),O=I(.5,.95,v.noop);function I(t,e,i){return n=>n<t?0:n>e?1:i((0,j.progress)(t,e,n))}function $(t,e){t.min=e.min,t.max=e.max}function U(t,e){$(t.x,e.x),$(t.y,e.y)}function z(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var W=t.i(35636),_=t.i(52101);function G(t,e,i,n,r){return t-=e,t=(0,W.scalePoint)(t,1/i,n),void 0!==r&&(t=(0,W.scalePoint)(t,1/r,n)),t}function H(t,e,[i,n,r],s,a){!function(t,e=0,i=1,n=.5,r,s=t,a=t){if(E.percent.test(e)&&(e=parseFloat(e),e=(0,A.mixNumber)(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=(0,A.mixNumber)(s.min,s.max,n);t===s&&(o-=e),t.min=G(t.min,e,i,o,r),t.max=G(t.max,e,i,o,r)}(t,e[i],e[n],e[r],e.scale,s,a)}let K=["x","scaleX","originX"],X=["y","scaleY","originY"];function Y(t,e,i,n){H(t.x,e,K,i?i.x:void 0,n?n.x:void 0),H(t.y,e,X,i?i.y:void 0,n?n.y:void 0)}var q=t.i(30162);function Z(t){return 0===t.translate&&1===t.scale}function J(t){return Z(t.x)&&Z(t.y)}function Q(t,e){return t.min===e.min&&t.max===e.max}function tt(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function te(t,e){return tt(t.x,e.x)&&tt(t.y,e.y)}function ti(t){return(0,_.calcLength)(t.x)/(0,_.calcLength)(t.y)}function tn(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var tr=t.i(33887);class ts{constructor(){this.members=[]}add(t){(0,tr.addUniqueItem)(this.members,t),t.scheduleRender()}remove(t){if((0,tr.removeItem)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}
9}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender();let n=i.options.layoutDependency,r=t.options.layoutDependency;(void 0===n||void 0===r||n!==r)&&(t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0));let{crossfade:s}=t.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var ta=t.i(55559);let to=(t,e)=>t.depth-e.depth;class tl{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tr.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,tr.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(to),this.isDirty=!1,this.children.forEach(t)}}var tu=t.i(77777);let th={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},tc=["","X","Y","Z"],td=0;function tm(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function tp({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(t={},i=e?.()){this.id=td++,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,k.statsBuffer.value&&(th.nodes=th.calculatedTargetDeltas=th.calculatedProjections=0),this.nodes.forEach(tg),this.nodes.forEach(tS),this.nodes.forEach(tk),this.nodes.forEach(ty),k.statsBuffer.addProjectionMetrics&&k.statsBuffer.addProjectionMetrics(th)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new tl)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new p.SubscriptionManager),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=(0,M.isSVGElement)(e)&&(!(0,M.isSVGElement)(e)||"svg"!==e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:a}=this.options;if(a&&!a.current&&a.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,a=()=>this.root.updateBlockedByResize=!1;s.frame.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,o;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=P.time.now(),o=({timestamp:t})=>{let i=t-e;i>=250&&((0,s.cancelFrame)(o),a(i-250))},s.frame.setup(o,!0),i=()=>(0,s.cancelFrame)(o),r.globalProjectionState.hasAnimatedSinceResize&&(r.globalProjectionState.hasAnimatedSinceResize=!1,this.nodes.forEach(tT))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||a.getDefaultTransition()||tV,{onLayoutAnimationStart:s,onLayoutAnimationComplete:o}=a.getProps(),l=!this.targetLayout||!te(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,w.getValueTransition)(r,"layout"),onPlay:s,onComplete:o};(a.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||tT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,s.cancelFrame)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
9h(tM),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=(0,b.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",s.frame,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(tb);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(tw);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(tP),this.nodes.forEach(tf),this.nodes.forEach(tv)):this.nodes.forEach(tw),this.clearAllSnapshots();let t=P.time.now();s.frameData.delta=(0,f.clamp)(0,1e3/60,t-s.frameData.timestamp),s.frameData.timestamp=t,s.frameData.isProcessing=!0,s.frameSteps.update.process(s.frameData),s.frameSteps.preRender.process(s.frameData),s.frameSteps.render.process(s.frameData),s.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,a.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tx),this.sharedNodes.forEach(tA)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,s.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){s.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||(0,_.calcLength)(this.snapshot.measuredBox.x)||(0,_.calcLength)(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=(0,q.createBox)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!o)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!J(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,tu.hasTransform)(this.latestValues)||r)&&(o(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),tR((e=n).x),tR(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,q.createBox)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tN))){let{scroll:t}=this.root;t&&((0,W.translateAxis)(e.x,t.offset.x),(0,W.translateAxis)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,q.createBox)();if(U(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&U(e,t),(0,W.translateAxis)(e.x,r.offset.x),(0,W.translateAxis)(e.y,r.offset.y))}return e}applyTransform(t,e=!1){let i=(0,q.createBox)();U(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(0,W.transformBox)(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),(0,tu.hasTransform)(n.latestValues)&&(0,W.transformBox)(i,n.latestValues)}return(0,tu.hasTransform)(this.latestValues)&&(0,W.transformBox)(i,this.latestValues),i}removeTransform(t){let e=(0,q.createBox)();U(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,tu.hasTransform)(i.latestValues))continue;(0,tu.hasScale)(i.latestValues)&&i.updateSnapshot();let n=(0,q.createBox)();U(n,i.measurePageBox()),Y(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return(0,tu.hasTransform)(this.latestValues)&&Y(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==s.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:r}=this.options;if(!this.layout||!(n||r))return;this.resolvedRelativeTargetAt=s.frameData.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=(0,q.createBox)(),this.targetWithTransforms=(0,q.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,_.calcRelativeBox)(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):U(this.target,this.layout.layoutBox),(0,W.applyBoxDelta)(this.target,this.targetDelta)):U(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&1!==this.animationProgress?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),k.statsBuffer.value&&th.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||(0,tu.hasScale)(this.parent.latestValues)||(0,tu.has2DTranslate)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,q.createBox)(),this.relativeTargetOrigin=(0,q.createBox)(),(0,_.calcRelativePosition)(this.relativeTargetOrigin,e,i),U(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
9if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===s.frameData.timestamp&&(i=!1),i)return;let{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||r))return;U(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;(0,W.applyTreeDeltas)(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,q.createBox)());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(z(this.prevProjectionDelta.x,this.projectionDelta.x),z(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,_.calcBoxDelta)(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&tn(this.projectionDelta.x,this.prevProjectionDelta.x)&&tn(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),k.statsBuffer.value&&th.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,q.createDelta)(),this.projectionDelta=(0,q.createDelta)(),this.projectionDeltaWithTransform=(0,q.createDelta)()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},a=(0,q.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=(0,q.createBox)(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(tj));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(tC(a.x,t.x,n),tC(a.y,t.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,m,p,f,v;(0,_.calcRelativePosition)(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,f=o,v=n,tE(m.x,p.x,f.x,v),tE(m.y,p.y,f.y,v),i&&(u=this.relativeTarget,d=i,Q(u.x,d.x)&&Q(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,q.createBox)()),U(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=(0,A.mixNumber)(0,i.opacity??1,F(n)),t.opacityExit=(0,A.mixNumber)(e.opacity??1,0,O(n))):s&&(t.opacity=(0,A.mixNumber)(e.opacity??1,i.opacity??1,n));for(let r=0;r<L;r++){let s=`border${D[r]}Radius`,a=N(e,s),o=N(i,s);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||B(a)===B(o)?(t[s]=Math.max((0,A.mixNumber)(R(a),R(o),n),0),(E.percent.test(o)||E.percent.test(a))&&(t[s]+="%")):t[s]=o)}(e.rotate||i.rotate)&&(t.rotate=(0,A.mixNumber)(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,s.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=s.frame.update(()=>{var e,i,n;let s;r.globalProjectionState.hasAnimatedSinceResize=!0,S.activeAnimations.layout++,this.motionValue||(this.motionValue=(0,y.motionValue)(0)),this.currentAnimation=(e=this.motionValue,i=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{S.activeAnimations.layout--},onComplete:()=>{S.activeAnimations.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(s=(0,x.isMotionValue)(e)?e:(0,y.motionValue)(e)).start((0,g.animateMotionValue)("",s,i,n)),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 t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&tB(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,q.createBox)();let e=(0,_.calcLength)(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=(0,_.calcLength)(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}U(e,i),(0,W.transformBox)(e,r),(0,_.calcBoxDelta)(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new ts),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
9return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&tm("z",t,n,this.animationValues);for(let e=0;e<tc.length;e++)tm(`rotate${tc[e]}`,t,n,this.animationValues),tm(`skew${tc[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=(0,C.resolveMotionValue)(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=(0,C.resolveMotionValue)(e?.pointerEvents)||""),this.hasProjected&&!(0,tu.hasTransform)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,a=i?.z||0;if((r||s||a)&&(n=`translate3d(${r}px, ${s}px, ${a}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:a,skewY:o}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),a&&(n+=`skewX(${a}deg) `),o&&(n+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);i&&(s=i(r,s)),t.transform=s;let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,n.animationValues?t.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,T.scaleCorrectors){if
9(void 0===r[e])continue;let{correct:i,applyTo:a,isCSSVariable:o}=T.scaleCorrectors[e],l="none"===s?r[e]:i(r[e],n);if(a){let e=a.length;for(let i=0;i<e;i++)t[a[i]]=l}else o?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?(0,C.resolveMotionValue)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(tb),this.root.sharedNodes.clear()}}}function tf(t){t.updateLayout()}function tv(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:r}=t.options,s=e.source!==t.layout.source;"size"===r?(0,ta.eachAxis)(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=(0,_.calcLength)(n);n.min=i[t].min,n.max=n.min+r}):tB(r,e.layoutBox,i)&&(0,ta.eachAxis)(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],a=(0,_.calcLength)(i[n]);r.max=r.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+a)});let a=(0,q.createDelta)();(0,_.calcBoxDelta)(a,i,e.layoutBox);let o=(0,q.createDelta)();s?(0,_.calcBoxDelta)(o,t.applyTransform(n,!0),e.measuredBox):(0,_.calcBoxDelta)(o,i,e.layoutBox);let l=!J(a),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let a=(0,q.createBox)();(0,_.calcRelativePosition)(a,e.layoutBox,r.layoutBox);let o=(0,q.createBox)();(0,_.calcRelativePosition)(o,i,s.layoutBox),te(a,o)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function tg(t){k.statsBuffer.value&&th.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ty(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tx(t){t.clearSnapshot()}function tb(t){t.clearMeasurements()}function tw(t){t.isLayoutDirty=!1}function tP(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function tT(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function tS(t){t.resolveTargetDelta()}function tk(t){t.calcProjection()}function tM(t){t.resetSkewAndRotation()}function tA(t){t.removeLeadSnapshot()}function tC(t,e,i){t.translate=(0,A.mixNumber)(e.translate,0,i),t.scale=(0,A.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function tE(t,e,i,n){t.min=(0,A.mixNumber)(e.min,i.min,n),t.max=(0,A.mixNumber)(e.max,i.max,n)}function tj(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let tV={duration:.45,ease:[.4,0,.1,1]},tD=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),tL=tD("applewebkit/")&&!tD("chrome/")?Math.round:v.noop;function tR(t){t.min=tL(t.min),t.max=tL(t.max)}function tB(t,e,i){return"position"===t||"preserve-aspect"===t&&!(0,_.isNear)(ti(e),ti(i),.2)}function tN(t){return t!==t.root&&t.scroll?.wasRoot}var tF=t.i(82774);let tO=tp({attachResizeListener:(t,e)=>(0,tF.addDomEvent)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),tI={current:void 0},t$=tp({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!tI.current){let t=new tO({});t.mount(window),t.setOptions({layoutScroll:!0}),tI.current=t}return tI.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});t.s(["HTMLProjectionNode",0,t$],17871);let tU={pan:{Feature:i.PanGesture},drag:{Feature:e.DragGesture,ProjectionNode:t$,MeasureLayout:m}};t.s(["drag",0,tU],46816);var tz=t.i(42098),tW=t.i(39676),t_=t.i(49652);function tG(t,e){let i=(0,t_.resolveElements)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}t.s(["setupGesture",0,tG],73089);var tH=t.i(65536);function tK(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&s.frame.postRender(()=>r(e,(0,tH.extractEventInfo)(e)))}class tX extends tz.Feature{mount(){let{current:t}=this.node;
9t&&(this.unmount=function(t,e,i={}){let[n,r,s]=tG(t,i);return n.forEach(t=>{let i,n=!1,s=!1,a=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},o=t=>{n=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),s&&(s=!1,a(t))},l=t=>{if("touch"!==t.pointerType){if(n){s=!0;return}a(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||(0,tW.isDragActive)())return;s=!1;let a=e(t,n);"function"==typeof a&&(i=a,t.addEventListener("pointerleave",l,r))},r),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",o,r),window.addEventListener("pointercancel",o,r)},r)}),s}(t,(t,e)=>(tK(this.node,e,"Start"),t=>tK(this.node,t,"End"))))}unmount(){}}t.s(["HoverGesture",0,tX],57512);var tY=tz,tq=t.i(38638);class tZ extends tY.Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,tq.pipe)((0,tF.addDomEvent)(this.node.current,"focus",()=>this.onFocus()),(0,tF.addDomEvent)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}t.s(["FocusGesture",0,tZ],99642)},46932,t=>{"use strict";var e=t.i(54505),i=t.i(7051),n=t.i(23070),r=t.i(46816),s=t.i(57512),a=t.i(99642),o=t.i(42098),l=t.i(72846),u=t.i(39676);let h=(t,e)=>!!e&&(t===e||h(t,e.parentElement));var c=t.i(41327),d=t.i(73089),m=t.i(19880);let p=new WeakSet;function f(t){return e=>{"Enter"===e.key&&t(e)}}function v(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function g(t){return(0,c.isPrimaryPointer)(t)&&!(0,u.isDragActive)()}let y=new WeakSet;var x=t.i(87022),b=t.i(65536);function w(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&x.frame.postRender(()=>r(e,(0,b.extractEventInfo)(e)))}class P extends o.Feature{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[n,r,s]=(0,d.setupGesture)(t,i),a=t=>{let n=t.currentTarget;if(!g(t)||y.has(t))return;p.add(n),i.stopPropagation&&y.add(t);let s=e(n,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),p.has(n)&&p.delete(n),g(t)&&"function"==typeof s&&s(t,{success:e})},o=t=>{a(t,n===window||n===document||i.useGlobalTarget||h(n,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",a,r),(0,l.isHTMLElement)(t)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=f(()=>{if(p.has(i))return;v(i,"down");let t=f(()=>{v(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>v(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,r)),(0,m.isElementKeyboardAccessible)(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(w(this.node,e,"Start"),(t,{success:e})=>w(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}var T=o;let S=new WeakMap,k=new WeakMap,M=t=>{let e=S.get(t.target);e&&e(t)},A=t=>{t.forEach(M)},C={some:0,all:1};class E extends T.Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:a}=i,o={root:n?n.current:void 0,rootMargin:r,threshold:"number"==typeof s?s:C[s]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,a&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=e?i:n;r&&r(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;k.has(i)||k.set(i,{});
9let n=k.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(A,{root:t,...e})),n[r]}(o),S.set(t,l),e.observe(t),()=>{S.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let j={inView:{Feature:E},tap:{Feature:P},focus:{Feature:a.FocusGesture},hover:{Feature:s.HoverGesture}};var V=t.i(17871),D=t.i(77397);let L={layout:{ProjectionNode:V.HTMLProjectionNode,MeasureLayout:D.MeasureLayout}},R={...n.animations,...j,...r.drag,...L},B=(0,i.createMotionProxy)(R,e.createDomVisualElement);t.s(["motion",0,B],46932)},37727,t=>{"use strict";let e=(0,t.i(75254).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);t.s(["X",0,e],37727)},31245,t=>{"use strict";let e=(0,t.i(75254).default)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);t.s(["Bot",0,e],31245)},21724,t=>{"use strict";function e(){return"u">typeof window}function i(){return(e()?window.vam:"production")||"production"}function n(){return"production"===i()}t.s(["track",0,function(t,r,s){var a,o;if(!e()){let t="[Vercel Web Analytics] Please import `track` from `@vercel/analytics/server` when using this function in a server environment";if(n())console.warn(t);else throw Error(t);return}if(!r){null==(a=window.va)||a.call(window,"event",{name:t,options:s});return}try{let e=function(t,e){if(!t)return;let i=t,n=[];for(let[r,s]of Object.entries(t))"object"==typeof s&&null!==s&&(e.strip?i=function(t,{[t]:e,...i}){return i}(r,i):n.push(r));if(n.length>0&&!e.strip)throw Error(`The following properties are not valid: ${n.join(", ")}. Only strings, numbers, booleans, and null are allowed.`);return i}(r,{strip:n()});null==(o=window.va)||o.call(window,"event",{name:t,data:e,options:s})}catch(t){t instanceof Error&&"development"===i()&&console.error(t)}}])},24529,t=>{"use strict";var e=t.i(71645);t.s(["usePrefersReducedMotion",0,function(){let[t,i]=(0,e.useState)(!1);return(0,e.useEffect)(()=>{let t=window.matchMedia("(prefers-reduced-motion: reduce)");i(t.matches);let e=t=>i(t.matches);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)},[]),t}])},27522,t=>{"use strict";var e=t.i(18050),i=t.i(71645),n=t.i(22016);let r=(0,t.i(75254).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var s=t.i(31245),a=t.i(15057),o=t.i(88653),l=t.i(46932),u=t.i(21724),h=t.i(24529);let c=(0,i.createContext)({open:!1,setOpen:()=>{}}),d=()=>(0,i.useContext)(c),m=[{kind:"status",text:"GET https://llmlayer.ai"},{kind:"status",text:"└─ 200 OK · text/html 412 KB → markdown 6.1 KB · 0.42s · $0.001"},{kind:"blank",text:""},{kind:"h1",text:"# LLMLayer — the entire web, distilled for your AI"},{kind:"blank",text:""},{kind:"text",text:"Search, scrape, crawl, map, and cited answers from any site."},{kind:"text",text:"One API. Clean structured output. From $0.001 a request,"},{kind:"text",text:"billed only when you call."},{kind:"blank",text:""},{kind:"h2",text:"## Try it — no signup, 5 free requests"},{kind:"list",text:"- [Open the playground](/playground) and run a real request"},{kind:"blank",text:""},{kind:"h2",text:"## Capabilities"},{kind:"table",text:"| endpoint        | returns                        | price         |"},{kind:"table",text:"| --------------- | ------------------------------ | ------------- |"},{kind:"table",text:"| /v2/web_search  | six search types, ranked JSON  | $0.002/query  |"},{kind:"table",text:"| /v2/answer      | cited answer from the live web | $0.007 flat   |"},{kind:"table",text:"| /v2/scrape      | any URL → clean markdown       | $0.001/page   |"},{kind:"table",text:"| /v2/extract     | any page → schema-typed JSON   | $0.005/mode   |"},{kind:"table",text:"| /v2/crawl       | whole sites, streamed          | $0.001/page   |"},{kind:"table",text:"| /v2/map         | every URL on a site            | $0.002/site   |"},{kind:"blank",text:""},{kind:"h2",text:"## Pricing"},{kind:"text",text:"Pay-as-you-go. No subscription. Credits never expire."},{kind:"text",text:"Zero markup on model tokens."},{kind:"quote",text:"> 1,000 pages → $1.00 · zero pages → $0.00"},{kind:"blank",text:""},{kind:"h2",text:"## Models"},{kind:"list",text:"- llmlayer-web — $0.007 flat · finetuned GPT-4o-mini"},{kind:"list",text:"- llmlayer-fast — $0.009 flat · finetuned GPT-OSS-120B"},{kind:"list",text:"- gpt-5.1, gpt-4o-mini — provider rates, zero markup"},{kind:"blank",text:""},{kind:"h2",text:"## Begin"},{kind:"text",text:"Free credits on signup, no card → https://app.llmlayer.ai"},{kind:"blank",text:""},{kind:"rule",text:"---"},{kind:"json",text:'{ "this_page": { "scraped_for": "$0.001", "format": "markdown" } }'}],p={status:"text-white/40",h1:"text-[#34d399] font-medium",h2:"text-[#34d399]",text:"text-white/70",table:"text-white/55",list:"text-white/70",quote:"text-[#7dd3fc]",rule:"text-white/30",json:"text-[#7dd3fc]",blank:""};
9function f(){let t=(0,h.usePrefersReducedMotion)();return(0,e.jsxs)("div",{className:"max-w-3xl mx-auto px-6 pt-28 pb-24",children:[m.map((i,n)=>(0,e.jsx)(l.motion.pre,{initial:!t&&{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.3,delay:t?0:.35+.045*n},className:`font-mono text-[12px] md:text-[13px] leading-[1.9] whitespace-pre-wrap break-words ${p[i.kind]}`,children:i.text||" "},n)),(0,e.jsxs)(l.motion.div,{initial:!t&&{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.5,delay:t?0:.35+.045*m.length+.2},className:"mt-10 rounded-2xl bg-[#34d399]/[0.1] p-6",children:[(0,e.jsxs)("p",{className:"font-mono text-[12px] text-white/70 leading-relaxed mb-4",children:[(0,e.jsx)("span",{className:"text-[#34d399]",children:"You're seeing what your agent sees."})," ","This page — its design, its sections, all of it — collapsed into 6 KB of meaning for a tenth of a cent."]}),(0,e.jsxs)(n.default,{href:"/playground?mode=scrape",className:"lumen-btn px-5 py-2.5 text-[13px] whitespace-nowrap",children:["Scrape your own site like this",(0,e.jsx)(a.ArrowUpRight,{size:14})]})]})]})}function v(){let{open:t,setOpen:i}=d(),n=(0,h.usePrefersReducedMotion)();return(0,e.jsx)(o.AnimatePresence,{children:t&&(0,e.jsxs)(l.motion.div,{role:"dialog","aria-modal":"true","aria-label":"This page as your agent sees it",initial:n?{opacity:0}:{clipPath:"inset(0 0 100% 0)"},animate:n?{opacity:1}:{clipPath:"inset(0 0 0% 0)"},exit:{opacity:0,transition:{duration:.25}},transition:{duration:.85,ease:[.6,0,.2,1]},className:"fixed inset-0 z-[80] bg-[#08090a] overflow-y-auto dark-scrollbar",children:[!n&&(0,e.jsx)(l.motion.div,{initial:{top:"0%",opacity:1},animate:{top:"100%",opacity:0}
9,transition:{duration:.85,ease:[.6,0,.2,1]},className:"pointer-events-none fixed inset-x-0 h-[2px] z-10",style:{background:"linear-gradient(90deg, transparent, rgba(4,120,87,0.9), rgba(52,211,153,0.9), transparent)",boxShadow:"0 0 24px 4px rgba(4,120,87,0.35)"}}),(0,e.jsx)("div",{className:"sticky top-0 z-20 backdrop-blur-md bg-[#08090a]/80 border-b border-white/[0.08]",children:(0,e.jsxs)("div",{className:"max-w-3xl mx-auto px-6 h-14 flex items-center justify-between",children:[(0,e.jsxs)("span",{className:"flex items-center gap-2.5 font-mono text-[10px] tracking-[0.28em] uppercase text-[#34d399]",children:[(0,e.jsx)(s.Bot,{size:13}),"Agent view · llmlayer.ai"]}),(0,e.jsxs)("button",{onClick:()=>i(!1),className:"flex items-center gap-2 font-mono text-[11px] text-white/60 hover:text-white border border-white/15 hover:border-white/40 rounded-full px-3.5 py-1.5 transition-colors",children:[(0,e.jsx)(r,{size:12}),"back to human",(0,e.jsx)("span",{className:"text-white/40 hidden sm:inline",children:"· esc"})]})]})}),(0,e.jsx)(f,{})]},"agent-view")})}t.s(["AgentLensProvider",0,function({children:t}){let[n,r]=(0,i.useState)(!1),s=(0,i.useCallback)(t=>r(t),[]);return(0,i.useEffect)(()=>{if(n)try{(0,u.track)("agent_lens_open")}catch{}},[n]),(0,i.useEffect)(()=>{let t=t=>{let e=t.target,i=e&&("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable);"Escape"===t.key?r(!1):i||t.metaKey||t.ctrlKey||t.altKey||("a"===t.key||"A"===t.key)&&r(t=>!t)};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[]),(0,i.useEffect)(()=>(document.body.style.overflow=n?"hidden":"",()=>{document.body.style.overflow=""}),[n]),(0,e.jsxs)(c.Provider,{value:{open:n,setOpen:s},children:[t,(0,e.jsx)(v,{})]})},"AgentToggle",0,function({compact:t=!1}){let{open:i,setOpen:n}=d();return t?(0,e.jsx)("button",{onClick:()=>n(!i),"aria-label":"Toggle agent view",className:`p-2 rounded-full border transition-colors ${i?"border-[var(--lumen-emerald)]/50 text-[var(--lumen-emerald)]":"border-black/15 text-[var(--lumen-text-dim)] hover:text-[var(--lumen-text)]"}`,children:(0,e.jsx)(s.Bot,{size:14})}):(0,e.jsxs)("div",{className:"flex items-center rounded-full border border-black/12 p-0.5 bg-black/[0.03]",children:[(0,e.jsxs)("button",{onClick:()=>n(!1),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-full text-[11px] font-medium transition-all ${!i?"bg-black/10 text-[var(--lumen-text)]":"text-[var(--lumen-text-faint)] hover:text-[var(--lumen-text-dim)]"}`,children:[(0,e.jsx)(r,{size:12}),"Human"]}),(0,e.jsxs)("button",{onClick:()=>n(!0),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-full text-[11px] font-medium transition-all ${i?"bg-[var(--lumen-emerald)]/15 text-[var(--lumen-emerald)]":"text-[var(--lumen-text-faint)] hover:text-[var(--lumen-text-dim)]"}`,children:[(0,e.jsx)(s.Bot,{size:12}),"Agent"]})]})},"useAgentLens",0,d],27522)},30812,t=>{"use strict";var e=t.i(18050),i=t.i(21724);t.s(["default",0,function({placement:t,className:n,children:r}){let s;return(0,e.jsx)("a",{href:(s=new URLSearchParams({utm_source:"llmlayer.ai",utm_medium:"website",utm_content:t}),`https://app.llmlayer.ai/?${s.toString()}`),target:"_blank",rel:"noopener",className:n,onClick:()=>{try{(0,i.track)("signup_click",{placement:t})}catch{}},children:r})}])},24236,t=>{"use strict";var e=t.i(18050);t.s(["default",0,function({size:t=22}){return(0,e.jsx)("img",{src:"/favllm.png",alt:"LLMLayer",width:t,height:t,className:"rounded-[5px] object-contain shrink-0",style:{width:t,height:t}})}])},85680,t=>{"use strict";var e=t.i(18050),i=t.i(71645),n=t.i(22016),r=t.i(75254);let s=(0,r.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);var a=t.i(37727);let o=(0,r.default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var l=t.i(46932),u=t.i(88653),h=t.i(27522),c=t.i(30812),d=t.i(24236);let m=[{name:"Playground",href:"/playground"},{name:"Pricing",href:"/pricing"},{name:"Docs",href:"https://docs.llmlayer.ai",external:!0}],p=[{name:"Web Search",price:"$0.002",href:"/apis/web-search"},{name:"Answer",price:"$0.007",href:"/apis/answer"},{name:"Scrape",price:"$0.001",href:"/apis/scraper"},{name:"Extract",price:"$0.005",href:"/apis/extract"},{name:"Crawl",price:"$0.001",href:"/apis/crawl"},{name:"Map",price:"$0.002",href:"/apis/map"}];t.s(["default",0,function({agentLens:t=!1}){let[r,f]=(0,i.useState)(!1),[v,g]=(0,i.useState)(!1);return(0,e.jsxs)("header",{className:"fixed top-0 inset-x-0 z-50 px-4 pt-4",children:[(0,e.jsxs)(l.motion.nav,{initial:{y:-16,opacity:0}
9,animate:{y:0,opacity:1},transition:{duration:.6,ease:[.22,.6,.2,1]},className:"nav-liquid max-w-[1140px] mx-auto h-14 rounded-full pl-5 pr-2.5 flex items-center justify-between",children:[(0,e.jsxs)("div",{className:"flex items-center min-w-0",children:[(0,e.jsxs)(n.default,{href:"/",className:"flex items-center gap-2.5 shrink-0",children:[(0,e.jsx)(d.default,{size:22,id:"nav-logo"}),(0,e.jsx)("span",{className:"font-display text-[15px] text-[var(--lumen-text)]",children:"LLMLayer"})]}),(0,e.jsx)("span",{className:"hidden md:block h-4 w-px bg-black/10 mx-5"}),(0,e.jsxs)("div",{className:"hidden md:flex items-center gap-6",children:[(0,e.jsxs)("div",{className:"relative",onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),children:[(0,e.jsxs)("button",{onClick:()=>g(!v),className:`flex items-center gap-1 text-[13px] transition-colors ${v?"text-[var(--lumen-text)]":"text-[var(--lumen-text-dim)] hover:text-[var(--lumen-text)]"}`,children:["APIs",(0,e.jsx)(o,{size:12,className:`transition-transform duration-200 ${v?"rotate-180":""}`})]}),(0,e.jsx)(u.AnimatePresence,{children:v&&(0,e.jsx)(l.motion.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.16,ease:"easeOut"},className:"absolute top-full left-0 pt-4 w-64",children:(0,e.jsxs)("div",{className:"rounded-2xl bg-white p-1.5 shadow-[0_16px_48px_rgba(11,12,14,0.14)] ring-1 ring-black/[0.05]",children:[p.map(t=>(0,e.jsxs)(n.default,{href:t.href,onClick:()=>g(!1),className:"group flex items-baseline justify-between gap-4 px-3.5 py-2 rounded-xl hover:bg-black/[0.06] transition-colors",children:[(0,e.jsx)("span",{className:"text-[13px] text-[var(--lumen-text-dim)] group-hover:text-[var(--lumen-text)] transition-colors",children:t.name}),(0,e.jsx)("span",{className:"font-mono text-[11px] text-[var(--lumen-text-faint)] group-hover:text-[var(--lumen-emerald)] transition-colors",children:t.price})]},t.href)),(0,e.jsx)("div",{className:"mt-1 pt-1.5 border-t border-black/[0.05]",children:(0,e.jsx)(n.default,{href:"/#capabilities",onClick:()=>g(!1),className:"block px-3.5 py-2 rounded-xl text-[11.5px] text-[var(--lumen-text-faint)] hover:text-[var(--lumen-text)] hover:bg-black/[0.06] transition-colors",children:"Overview — six APIs, one key →"})})]})})})]}),m.map(t=>t.external?(0,e.jsx)("a",{href:t.href,target:"_blank",className:"text-[13px] text-[var(--lumen-text-dim)] hover:text-[var(--lumen-text)] transition-colors",children:t.name},t.name):(0,e.jsx)(n.default,{href:t.href,className:"text-[13px] text-[var(--lumen-text-dim)] hover:text-[var(--lumen-text)] transition-colors",children:t.name},t.name))]})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2.5",children:[t&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{className:"hidden lg:block",children:(0,e.jsx)(h.AgentToggle,{})}),(0,e.jsx)("span",{className:"lg:hidden",children:(0,e.jsx)(h.AgentToggle,{compact:!0})})]}),(0,e.jsx)(c.default,{placement:"nav_signin",className:"hidden sm:block text-[13px] text-[var(--lumen-text-dim)] hover:text-[var(--lumen-text)] transition-colors whitespace-nowrap px-2",children:"Sign in"}),(0,e.jsx)(c.default,{placement:"nav_cta",className:"lumen-btn px-4 py-2 text-[13px] whitespace-nowrap",children:"Get API key"}),(0,e.jsx)("button",{onClick:()=>f(!r),"aria-label":"Menu",className:"md:hidden p-2 text-[var(--lumen-text-dim)] hover:text-[var(--lumen-text)] transition-colors",children:r?(0,e.jsx)(a.X,{size:18}):(0,e.jsx)(s,{size:18})})]})]}),(0,e.jsx)(u.AnimatePresence,{children:r&&(0,e.jsxs)(l.motion.div,{initial:{opacity:0,y:-8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.22},className:"nav-liquid md:hidden max-w-[1140px] mx-auto mt-2 rounded-3xl overflow-hidden",children:[(0,e.jsx)("div",{className:"px-5 pt-4 pb-1.5 font-mono text-[9.5px] tracking-[0.14em] uppercase text-[var(--lumen-text-faint)]",children:"APIs"}),(0,e.jsx)("div",{className:"grid grid-cols-2",children:p.map(t=>(0,e.jsxs)(n.default,{href:t.href,onClick:()=>f(!1),className:"flex items-baseline justify-between gap-2 px-5 py-3 text-sm text-[var(--lumen-text-dim)] hover:text-[var(--lumen-text)]",children:[t.name,(0,e.jsx)("span",{className:"font-mono text-[10px] text-[var(--lumen-text-faint)]",children:t.price})]},t.href))}),(0,e.jsx)("div",{className:"h-px bg-black/[0.05] mx-5 my-1"}),m.map(t=>t.external?(0,e.jsx)("a",{href:t.href,target:"_blank",className:"block px-5 py-3.5 text-sm text-[var(--lumen-text-dim)] hover:text-[var(--lumen-text)]",onClick:()=>f(!1),children:t.name}
9,t.name):(0,e.jsx)(n.default,{href:t.href,className:"block px-5 py-3.5 text-sm text-[var(--lumen-text-dim)] hover:text-[var(--lumen-text)]",onClick:()=>f(!1),children:t.name},t.name)),(0,e.jsx)("div",{className:"h-2"})]})})]})}],85680)},14429,t=>{"use strict";var e=t.i(18050),i=t.i(22016),n=t.i(46932);let r=[.22,.6,.2,1];t.s(["Em",0,function({children:t}){return(0,e.jsx)("span",{className:"text-[var(--lumen-text-dim)]",children:t})},"Hairline",0,function({className:t=""}){return(0,e.jsx)("div",{className:`h-px w-full bg-black/[0.06] ${t}`})},"Reveal",0,function({children:t,delay:i=0,className:s}){return(0,e.jsx)(n.motion.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.7,delay:i,ease:r},className:s,children:t})},"SectionHead",0,function({kicker:t,title:i,sub:s,align:a="center"}){return(0,e.jsxs)(n.motion.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7,ease:r},className:`max-w-3xl mb-14 md:mb-20 ${"center"===a?"text-center mx-auto":"text-left"}`,children:[(0,e.jsx)("div",{className:"lumen-kicker mb-5",children:t}),(0,e.jsx)("h2",{className:"font-display text-3xl md:text-[2.75rem] leading-[1.1] text-[var(--lumen-text)]",children:i}),s&&(0,e.jsx)("p",{className:"mt-5 text-base md:text-lg leading-relaxed text-[var(--lumen-text-dim)]",children:s})]})},"SplitHead",0,function({num:t,title:s,sub:a,linkLabel:o,href:l,external:u=!1,kicker:h,align:c="center"}){let d=l&&o?(0,e.jsx)("div",{className:"mt-6",children:(0,e.jsxs)("span",{className:"inline-flex items-baseline gap-3 font-mono text-[13px]",children:[(0,e.jsx)("span",{className:"text-[var(--lumen-text-faint)]",children:t}),u?(0,e.jsxs)("a",{href:l,target:"_blank",className:"text-[var(--lumen-text)] hover:text-[var(--lumen-emerald)] transition-colors",children:[o," →"]}):(0,e.jsxs)(i.default,{href:l,className:"text-[var(--lumen-text)] hover:text-[var(--lumen-emerald)] transition-colors",children:[o," →"]})]})}):null;return(0,e.jsxs)(n.motion.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7,ease:r},className:`max-w-2xl mb-14 md:mb-20 ${"center"===c?"mx-auto text-center":"text-left"}`,children:[h&&(0,e.jsx)("div",{className:"lumen-kicker mb-5",children:h}),(0,e.jsx)("h2",{className:"font-display text-3xl md:text-[2.7rem] leading-[1.12] text-[var(--lumen-text)]",children:s}),(0,e.jsx)("p",{className:`mt-5 text-[15px] md:text-[17px] leading-relaxed text-[var(--lumen-text-dim)] max-w-xl ${"center"===c?"mx-auto":""}`,children:a}),d]})}])},41687,t=>{"use strict";var e=t.i(18050),i=t.i(22016),n=t.i(14429),r=t.i(24236);let s=[{name:"Web Search",href:"/apis/web-search"},{name:"Answer",href:"/apis/answer"},{name:"Scrape",href:"/apis/scraper"},{name:"Extract",href:"/apis/extract"},{name:"Crawl",href:"/apis/crawl"},{name:"Map",href:"/apis/map"}],a=[{name:"Playground",href:"/playground"},{name:"Pricing",href:"/pricing"},{name:"Docs",href:"https://docs.llmlayer.ai",external:!0},{name:"Status",href:"https://status.llmlayer.ai",external:!0}],o=[{name:"Discord",href:"https://discord.com/invite/EqQF4cjTq5"},{name:"X",href:"https://x.com/llmlayer"},{name:"LinkedIn",href:"https://www.linkedin.com/company/llmlayer-company/"}];t.s(["default",0,function(){return(0,e.jsx)("footer",{className:"relative px-6 pb-10 pt-6 bg-[var(--lumen-bg)]",children:(0,e.jsxs)("div",{className:"max-w-5xl mx-auto",children:[(0,e.jsx)(n.Hairline,{className:"mb-12"}),(0,e.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-[1.4fr_1fr_1fr_1fr] gap-x-8 gap-y-10",children:[(0,e.jsxs)("div",{className:"col-span-2 md:col-span-1",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2.5 mb-4",children:[(0,e.jsx)(r.default,{size:24,id:"footer-logo"}),(0,e.jsx)("span",{className:"font-display text-[17px] text-[var(--lumen-text)]",children:"LLMLayer"})]}),(0,e.jsx)("p",{className:"text-[12.5px] leading-relaxed text-[var(--lumen-text-faint)] max-w-[220px]",children:"The layer between your AI and the web. Six APIs, one key, billed only when you call."})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"font-mono text-[9.5px] tracking-[0.25em] uppercase text-[var(--lumen-text-faint)] mb-4",children:"Product"}),(0,e.jsx)("ul",{className:"space-y-2.5",children:s.map(t=>(0,e.jsx)("li",{children:(0,e.jsx)(i.default,{href:t.href,className:"text-[12.5px] text-[var(--lumen-text-dim)] hover:text-[var(--lumen-text)] transition-colors",children:t.name})},t.href))})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"font-mono text-[9.5px] tracking-[0.25em] uppercase text-[var(--lumen-text-faint)] mb-4",children:"Resources"}),(0,e.jsx)("ul",{className:"space-y-2.5",children:a.map(t=>(0,e.jsx)("li",{children:t.external?(0,e.jsx)("a",{href:t.href,target:"_blank",className:"text-[12.5px] text-[var(--lumen-text-dim)] hover:text-[var(--lumen-text)] transition-colors",children:t.name}):(0,e.jsx)(i.default,{href:t.href,className:"text-[12.5px] text-[var(--lumen-text-dim)] hover:text-[var(--lumen-text)] transition-colors",children:t.name})},t.href))})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"font-mono text-[9.5px] tracking-[0.25em] uppercase text-[var(--lumen-text-faint)] mb-4",children:"Connect"}),(0,e.jsx)("ul",{className:"space-y-2.5",children:o.map(t=>(0,e.jsx)("li",{children:(0,e.jsx)("a",{href:t.href,target:"_blank",className:"text-[12.5px] text-[var(--lumen-text-dim)] hover:text-[var(--lumen-text)] transition-colors",children:t.name})},t.href))})]})]}),(0,e.jsxs)("div",{className:"mt-12 pt-6 border-t border-black/[0.05] flex flex-col sm:flex-row items-center justify-between gap-3 text-[11px] text-[var(--lumen-text-faint)]/70",children:[(0,e.jsx)("span",{children:"© 2026 LLMLayer. All rights reserved."}),(0,e.jsxs)("span",{className:"flex items-center gap-5",children:[(0,e.jsx)(i.default,{href:"/privacy",className:"hover:text-[var(--lumen-text-dim)] transition-colors",children:"Privacy"}),(0,e.jsx)(i.default,{href:"/terms",className:"hover:text-[var(--lumen-text-dim)] transition-colors",children:"Terms"})]})]})]})})}])}]);

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