1 line
128 KiB
JavaScript
1 line
128 KiB
JavaScript
(()=>{var t={};t.id=974,t.ids=[974],t.modules={2934:t=>{"use strict";t.exports=require("next/dist/client/components/action-async-storage.external.js")},4580:t=>{"use strict";t.exports=require("next/dist/client/components/request-async-storage.external.js")},5869:t=>{"use strict";t.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},399:t=>{"use strict";t.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},5176:(t,e,i)=>{"use strict";i.r(e),i.d(e,{GlobalError:()=>a.a,__next_app__:()=>c,originalPathname:()=>d,pages:()=>u,routeModule:()=>m,tree:()=>h}),i(3706),i(9801),i(3658),i(1837);var s=i(3191),r=i(8716),n=i(7922),a=i.n(n),o=i(5231),l={};for(let t in o)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(t)&&(l[t]=()=>o[t]);i.d(e,l);let h=["",{children:["(main)",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(i.bind(i,3706)),"D:\\github\\ourverse_new\\src\\app\\(main)\\page.jsx"]}]},{layout:[()=>Promise.resolve().then(i.bind(i,9801)),"D:\\github\\ourverse_new\\src\\app\\(main)\\layout.jsx"]}]},{layout:[()=>Promise.resolve().then(i.bind(i,3658)),"D:\\github\\ourverse_new\\src\\app\\layout.jsx"],"not-found":[()=>Promise.resolve().then(i.bind(i,1837)),"D:\\github\\ourverse_new\\src\\app\\not-found.jsx"]}],u=["D:\\github\\ourverse_new\\src\\app\\(main)\\page.jsx"],d="/(main)/page",c={require:i,loadChunk:()=>Promise.resolve()},m=new s.AppPageRouteModule({definition:{kind:r.x.APP_PAGE,page:"/(main)/page",pathname:"/",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:h}})},5810:(t,e,i)=>{Promise.resolve().then(i.t.bind(i,2481,23)),Promise.resolve().then(i.t.bind(i,9404,23)),Promise.resolve().then(i.bind(i,7040)),Promise.resolve().then(i.bind(i,2280)),Promise.resolve().then(i.bind(i,7773)),Promise.resolve().then(i.bind(i,6145)),Promise.resolve().then(i.bind(i,4307)),Promise.resolve().then(i.bind(i,2402)),Promise.resolve().then(i.bind(i,776))},6271:(t,e,i)=>{Promise.resolve().then(i.t.bind(i,2481,23)),Promise.resolve().then(i.t.bind(i,9404,23)),Promise.resolve().then(i.bind(i,1184)),Promise.resolve().then(i.bind(i,5057))},6226:(t,e,i)=>{"use strict";i.d(e,{default:()=>r.a});var s=i(9029),r=i.n(s)},9029:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return l},getImageProps:function(){return o}});let s=i(1174),r=i(3078),n=i(2481),a=s._(i(6820));function o(t){let{props:e}=(0,r.getImgProps)(t,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let l=n.Image},2823:(t,e,i)=>{"use strict";i.d(e,{X:()=>n});var s=i(326);i(6226);var r=i(1135);function n({className:t,position:e="left"}){return(0,s.jsxs)("div",{className:(0,r.Z)("absolute inset-0 overflow-hidden bg-gradient-to-r from-purple-100 via-white to-purple-100",t),children:[s.jsx("div",{className:"absolute inset-x-0 top-0 h-20 bg-gradient-to-b from-white"}),s.jsx("div",{className:"absolute inset-x-0 bottom-0 h-20 bg-gradient-to-t from-white"})]})}i(7773)},7040:(t,e,i)=>{"use strict";let s;i.d(e,{default:()=>nd});var r,n,a=i(326),o=i(1135);function l(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}let h=t=>Array.isArray(t);function u(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}function d(t){return"string"==typeof t||Array.isArray(t)}function c(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function m(t,e,i,s){if("function"==typeof e){let[r,n]=c(s);e=e(void 0!==i?i:t.custom,r,n)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,n]=c(s);e=e(void 0!==i?i:t.custom,r,n)}return e}function p(t,e,i){let s=t.getProps();return m(s,e,void 0!==i?i:s.custom,t)}let f=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],g=["initial",...f],v=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],y=new Set(v),x=t=>1e3*t,b=t=>t/1e3,w={type:"spring",stiffness:500,damping:25,restSpeed:10},P=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),T={type:"keyframes",duration:.8},j={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},A=(t,{keyframes:e})=>e.length>2?T:y.has(t)?t.startsWith("scale")?P(e[1]):w:j;function S(t,e){return t[e]||t.default||t}let V={skipAnimations:!1,useManualTiming:!1},k={current:!1},M=t=>null!==t;function C(t,{repeat:e,repeatType:i="loop"},s){let r=t.filter(M),n=e&&"loop"!==i&&e%2==1?0:r.length-1;return n&&void 0!==s?s:r[n]}let E=t=>t,D=["read","resolveKeyframes","update","preRender","render","postRender"];function R(t,e){let i=!1,s=!0,r={delta:0,timestamp:0,isProcessing:!1},n=()=>i=!0,a=D.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,s=!1,r=!1,n=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function o(e){n.has(e)&&(l.schedule(e),t()),e(a)}let l={schedule:(t,r=!1,a=!1)=>{let o=a&&s?e:i;return r&&n.add(t),o.has(t)||o.add(t),t},cancel:t=>{i.delete(t),n.delete(t)},process:t=>{if(a=t,s){r=!0;return}s=!0,[e,i]=[i,e],i.clear(),e.forEach(o),s=!1,r&&(r=!1,l.process(t))}};return l}(n),t),{}),{read:o,resolveKeyframes:l,update:h,preRender:u,render:d,postRender:c}=a,m=()=>{let n=V.useManualTiming?r.timestamp:performance.now();i=!1,r.delta=s?1e3/60:Math.max(Math.min(n-r.timestamp,40),1),r.timestamp=n,r.isProcessing=!0,o.process(r),l.process(r),h.process(r),u.process(r),d.process(r),c.process(r),r.isProcessing=!1,i&&e&&(s=!1,t(m))},p=()=>{i=!0,s=!0,r.isProcessing||t(m)};return{schedule:D.reduce((t,e)=>{let s=a[e];return t[e]=(t,e=!1,r=!1)=>(i||p(),s.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<D.length;e++)a[D[e]].cancel(t)},state:r,steps:a}}let{schedule:N,cancel:F,state:L,steps:B}=R("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:E,!0),O=t=>/^0[^.\s]+$/u.test(t),I=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),U=t=>e=>"string"==typeof e&&e.startsWith(t),W=U("--"),$=U("var(--"),z=t=>!!$(t)&&H.test(t.split("/*")[0].trim()),H=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,_=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,Y=(t,e,i)=>i>e?e:i<t?t:i,G={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},X={...G,transform:t=>Y(0,1,t)},K={...G,default:1},q=t=>Math.round(1e5*t)/1e5,Z=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,J=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Q=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function tt(t){return"string"==typeof t}let te=t=>({test:e=>tt(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),ti=te("deg"),ts=te("%"),tr=te("px"),tn=te("vh"),ta=te("vw"),to={...ts,parse:t=>ts.parse(t)/100,transform:t=>ts.transform(100*t)},tl=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),th=t=>t===G||t===tr,tu=(t,e)=>parseFloat(t.split(", ")[e]),td=(t,e)=>(i,{transform:s})=>{if("none"===s||!s)return 0;let r=s.match(/^matrix3d\((.+)\)$/u);if(r)return tu(r[1],e);{let e=s.match(/^matrix\((.+)\)$/u);return e?tu(e[1],t):0}},tc=new Set(["x","y","z"]),tm=v.filter(t=>!tc.has(t)),tp={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:td(4,13),y:td(5,14)};tp.translateX=tp.x,tp.translateY=tp.y;let tf=t=>e=>e.test(t),tg=[G,tr,ts,ti,ta,tn,{test:t=>"auto"===t,parse:t=>t}],tv=t=>tg.find(tf(t)),ty=new Set,tx=!1,tb=!1;function tw(){if(tb){let t=Array.from(ty).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return tm.forEach(i=>{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(i.startsWith("scale")?1:0))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var s;null===(s=t.getValue(e))||void 0===s||s.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tb=!1,tx=!1,ty.forEach(t=>t.complete()),ty.clear()}function tP(){ty.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tb=!0)})}class tT{constructor(t,e,i,s,r,n=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=r,this.isAsync=n}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ty.add(this),tx||(tx=!0,N.read(tP),N.resolveKeyframes(tw))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;for(let r=0;r<t.length;r++)if(null===t[r]){if(0===r){let r=null==s?void 0:s.get(),n=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let s=i.readValue(e,n);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=n),s&&void 0===r&&s.set(t[0])}else t[r]=t[r-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ty.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ty.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let tj=(t,e)=>i=>!!(tt(i)&&Q.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tA=(t,e,i)=>s=>{if(!tt(s))return s;let[r,n,a,o]=s.match(Z);return{[t]:parseFloat(r),[e]:parseFloat(n),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},tS=t=>Y(0,255,t),tV={...G,transform:t=>Math.round(tS(t))},tk={test:tj("rgb","red"),parse:tA("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+tV.transform(t)+", "+tV.transform(e)+", "+tV.transform(i)+", "+q(X.transform(s))+")"},tM={test:tj("#"),parse:function(t){let e="",i="",s="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,s+=s,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}},transform:tk.transform},tC={test:tj("hsl","hue"),parse:tA("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+ts.transform(q(e))+", "+ts.transform(q(i))+", "+q(X.transform(s))+")"},tE={test:t=>tk.test(t)||tM.test(t)||tC.test(t),parse:t=>tk.test(t)?tk.parse(t):tC.test(t)?tC.parse(t):tM.parse(t),transform:t=>tt(t)?t:t.hasOwnProperty("red")?tk.transform(t):tC.transform(t)},tD="number",tR="color",tN=/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 tF(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},r=[],n=0,a=e.replace(tN,t=>(tE.test(t)?(s.color.push(n),r.push(tR),i.push(tE.parse(t))):t.startsWith("var(")?(s.var.push(n),r.push("var"),i.push(t)):(s.number.push(n),r.push(tD),i.push(parseFloat(t))),++n,"${}")).split("${}");return{values:i,split:a,indexes:s,types:r}}function tL(t){return tF(t).values}function tB(t){let{split:e,types:i}=tF(t),s=e.length;return t=>{let r="";for(let n=0;n<s;n++)if(r+=e[n],void 0!==t[n]){let e=i[n];e===tD?r+=q(t[n]):e===tR?r+=tE.transform(t[n]):r+=t[n]}return r}}let tO=t=>"number"==typeof t?0:t,tI={test:function(t){var e,i;return isNaN(t)&&tt(t)&&((null===(e=t.match(Z))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(J))||void 0===i?void 0:i.length)||0)>0},parse:tL,createTransformer:tB,getAnimatableNone:function(t){let e=tL(t);return tB(t)(e.map(tO))}},tU=new Set(["brightness","contrast","saturate","opacity"]);function tW(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(Z)||[];if(!s)return t;let r=i.replace(s,""),n=tU.has(e)?1:0;return s!==i&&(n*=100),e+"("+n+r+")"}let t$=/\b([a-z-]*)\(.*?\)/gu,tz={...tI,getAnimatableNone:t=>{let e=t.match(t$);return e?e.map(tW).join(" "):t}},tH={...G,transform:Math.round},t_={borderWidth:tr,borderTopWidth:tr,borderRightWidth:tr,borderBottomWidth:tr,borderLeftWidth:tr,borderRadius:tr,radius:tr,borderTopLeftRadius:tr,borderTopRightRadius:tr,borderBottomRightRadius:tr,borderBottomLeftRadius:tr,width:tr,maxWidth:tr,height:tr,maxHeight:tr,size:tr,top:tr,right:tr,bottom:tr,left:tr,padding:tr,paddingTop:tr,paddingRight:tr,paddingBottom:tr,paddingLeft:tr,margin:tr,marginTop:tr,marginRight:tr,marginBottom:tr,marginLeft:tr,rotate:ti,rotateX:ti,rotateY:ti,rotateZ:ti,scale:K,scaleX:K,scaleY:K,scaleZ:K,skew:ti,skewX:ti,skewY:ti,distance:tr,translateX:tr,translateY:tr,translateZ:tr,x:tr,y:tr,z:tr,perspective:tr,transformPerspective:tr,opacity:X,originX:to,originY:to,originZ:tr,zIndex:tH,backgroundPositionX:tr,backgroundPositionY:tr,fillOpacity:X,strokeOpacity:X,numOctaves:tH},tY={...t_,color:tE,backgroundColor:tE,outlineColor:tE,fill:tE,stroke:tE,borderColor:tE,borderTopColor:tE,borderRightColor:tE,borderBottomColor:tE,borderLeftColor:tE,filter:tz,WebkitFilter:tz},tG=t=>tY[t];function tX(t,e){let i=tG(t);return i!==tz&&(i=tI),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tK=new Set(["auto","none","0"]);class tq extends tT{constructor(t,e,i,s,r){super(t,e,i,s,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 s=t[i];if("string"==typeof s&&z(s=s.trim())){let r=function t(e,i,s=1){E(s<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,n]=function(t){let e=_.exec(t);if(!e)return[,];let[,i,s,r]=e;return[`--${null!=i?i:s}`,r]}(e);if(!r)return;let a=window.getComputedStyle(i).getPropertyValue(r);if(a){let t=a.trim();return I(t)?parseFloat(t):t}return z(n)?t(n,i,s+1):n}(s,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!tl.has(i)||2!==t.length)return;let[s,r]=t,n=tv(s),a=tv(r);if(n!==a){if(th(n)&&th(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var s;("number"==typeof(s=t[e])?0===s:null===s||"none"===s||"0"===s||O(s))&&i.push(e)}i.length&&function(t,e,i){let s,r=0;for(;r<t.length&&!s;){let e=t[r];"string"==typeof e&&!tK.has(e)&&tF(e).values.length&&(s=t[r]),r++}if(s&&i)for(let r of e)t[r]=tX(i,s)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tp[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&t.getValue(i,s).jump(s,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:s}=this;if(!e||!e.current)return;let r=e.getValue(i);r&&r.jump(this.measuredOrigin,!1);let n=s.length-1,a=s[n];s[n]=tp[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEach(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}function tZ(t){let e;return()=>(void 0===e&&(e=t()),e)}function tJ(t){return"function"==typeof t}function tQ(){s=void 0}let t0={now:()=>(void 0===s&&t0.set(L.isProcessing||V.useManualTiming?L.timestamp:performance.now()),s),set:t=>{s=t,queueMicrotask(tQ)}},t1=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tI.test(t)||"0"===t)&&!t.startsWith("url("));class t2{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:n="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=t0.now(),this.options={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:r,repeatType:n,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(tP(),tw()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=t0.now(),this.hasAttemptedResolve=!0;let{name:i,type:s,velocity:r,delay:n,onComplete:a,onUpdate:o,isGenerator:l}=this.options;if(!l&&!function(t,e,i,s){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let n=t[t.length-1],a=t1(r,e),o=t1(n,e);return E(a===o,`You are trying to animate ${e} from "${r}" to "${n}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${n} via the \`style\` property.`),!!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||tJ(i))&&s)}(t,i,s,r)){if(k.current||!n){null==o||o(C(t,this.options,e)),null==a||a(),this.resolveFinishedPromise();return}this.options.duration=0}let h=this.initPlayback(t,e);!1!==h&&(this._resolved={keyframes:t,finalKeyframe:e,...h},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function t5(t,e,i){var s,r;let n=Math.max(e-5,0);return s=i-t(n),(r=e-n)?1e3/r*s:0}function t4(t,e){return t*Math.sqrt(1-e*e)}let t3=["duration","bounce"],t6=["stiffness","damping","mass"];function t8(t,e){return e.some(e=>void 0!==t[e])}function t7({keyframes:t,restDelta:e,restSpeed:i,...s}){let r;let n=t[0],a=t[t.length-1],o={done:!1,value:n},{stiffness:l,damping:h,mass:u,duration:d,velocity:c,isResolvedFromDuration:m}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!t8(t,t6)&&t8(t,t3)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:s=1}){let r,n;E(t<=x(10),"Spring duration must be 10 seconds or less");let a=1-e;a=Y(.05,1,a),t=Y(.01,10,b(t)),a<1?(r=e=>{let s=e*a,r=s*t;return .001-(s-i)/t4(e,a)*Math.exp(-r)},n=e=>{let s=e*a*t,n=Math.pow(a,2)*Math.pow(e,2)*t,o=t4(Math.pow(e,2),a);return(s*i+i-n)*Math.exp(-s)*(-r(e)+.001>0?-1:1)/o}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),n=e=>t*t*(i-e)*Math.exp(-e*t));let o=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(r,n,5/t);if(t=x(t),isNaN(o))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(o,2)*s;return{stiffness:e,damping:2*a*Math.sqrt(s*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...s,velocity:-b(s.velocity||0)}),p=c||0,f=h/(2*Math.sqrt(l*u)),g=a-n,v=b(Math.sqrt(l/u)),y=5>Math.abs(g);if(i||(i=y?.01:2),e||(e=y?.005:.5),f<1){let t=t4(v,f);r=e=>a-Math.exp(-f*v*e)*((p+f*v*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}else if(1===f)r=t=>a-Math.exp(-v*t)*(g+(p+v*g)*t);else{let t=v*Math.sqrt(f*f-1);r=e=>{let i=Math.exp(-f*v*e),s=Math.min(t*e,300);return a-i*((p+f*v*g)*Math.sinh(s)+t*g*Math.cosh(s))/t}}return{calculatedDuration:m&&d||null,next:t=>{let s=r(t);if(m)o.done=t>=d;else{let n=0;f<1&&(n=0===t?x(p):t5(r,t,s));let l=Math.abs(n)<=i,h=Math.abs(a-s)<=e;o.done=l&&h}return o.value=o.done?a:s,o}}}function t9({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:n=500,modifyTarget:a,min:o,max:l,restDelta:h=.5,restSpeed:u}){let d,c;let m=t[0],p={done:!1,value:m},f=t=>void 0!==o&&t<o||void 0!==l&&t>l,g=t=>void 0===o?l:void 0===l?o:Math.abs(o-t)<Math.abs(l-t)?o:l,v=i*e,y=m+v,x=void 0===a?y:a(y);x!==y&&(v=x-m);let b=t=>-v*Math.exp(-t/s),w=t=>x+b(t),P=t=>{let e=b(t),i=w(t);p.done=Math.abs(e)<=h,p.value=p.done?x:i},T=t=>{f(p.value)&&(d=t,c=t7({keyframes:[p.value,g(p.value)],velocity:t5(w,t,p.value),damping:r,stiffness:n,restDelta:h,restSpeed:u}))};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,P(t),T(t)),void 0!==d&&t>=d)?c.next(t-d):(e||P(t),p)}}}let et=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function ee(t,e,i,s){if(t===e&&i===s)return E;let r=e=>(function(t,e,i,s,r){let n,a;let o=0;do(n=et(a=e+(i-e)/2,s,r)-t)>0?i=a:e=a;while(Math.abs(n)>1e-7&&++o<12);return a})(e,0,1,t,i);return t=>0===t||1===t?t:et(r(t),e,s)}let ei=ee(.42,0,1,1),es=ee(0,0,.58,1),er=ee(.42,0,.58,1),en=t=>Array.isArray(t)&&"number"!=typeof t[0],ea=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,eo=t=>e=>1-t(1-e),el=t=>1-Math.sin(Math.acos(t)),eh=eo(el),eu=ea(el),ed=ee(.33,1.53,.69,.99),ec=eo(ed),em=ea(ec),ep={linear:E,easeIn:ei,easeInOut:er,easeOut:es,circIn:el,circInOut:eu,circOut:eh,backIn:ec,backInOut:em,backOut:ed,anticipate:t=>(t*=2)<1?.5*ec(t):.5*(2-Math.pow(2,-10*(t-1)))},ef=t=>{if(Array.isArray(t)){E(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,s,r]=t;return ee(e,i,s,r)}return"string"==typeof t?(E(void 0!==ep[t],`Invalid easing type '${t}'`),ep[t]):t},eg=(t,e)=>i=>e(t(i)),ev=(...t)=>t.reduce(eg),ey=(t,e,i)=>{let s=e-t;return 0===s?1:(i-t)/s},ex=(t,e,i)=>t+(e-t)*i;function eb(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function ew(t,e){return i=>i>0?e:t}let eP=(t,e,i)=>{let s=t*t,r=i*(e*e-s)+s;return r<0?0:Math.sqrt(r)},eT=[tM,tk,tC],ej=t=>eT.find(e=>e.test(t));function eA(t){let e=ej(t);if(E(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tC&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let r=0,n=0,a=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,o=2*i-s;r=eb(o,s,t+1/3),n=eb(o,s,t),a=eb(o,s,t-1/3)}else r=n=a=i;return{red:Math.round(255*r),green:Math.round(255*n),blue:Math.round(255*a),alpha:s}}(i)),i}let eS=(t,e)=>{let i=eA(t),s=eA(e);if(!i||!s)return ew(t,e);let r={...i};return t=>(r.red=eP(i.red,s.red,t),r.green=eP(i.green,s.green,t),r.blue=eP(i.blue,s.blue,t),r.alpha=ex(i.alpha,s.alpha,t),tk.transform(r))},eV=new Set(["none","hidden"]);function ek(t,e){return i=>ex(t,e,i)}function eM(t){return"number"==typeof t?ek:"string"==typeof t?z(t)?ew:tE.test(t)?eS:eD:Array.isArray(t)?eC:"object"==typeof t?tE.test(t)?eS:eE:ew}function eC(t,e){let i=[...t],s=i.length,r=t.map((t,i)=>eM(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=r[e](t);return i}}function eE(t,e){let i={...t,...e},s={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(s[r]=eM(t[r])(t[r],e[r]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let eD=(t,e)=>{let i=tI.createTransformer(e),s=tF(t),r=tF(e);return s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length?eV.has(t)&&!r.values.length||eV.has(e)&&!s.values.length?function(t,e){return eV.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):ev(eC(function(t,e){var i;let s=[],r={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let a=e.types[n],o=t.indexes[a][r[a]],l=null!==(i=t.values[o])&&void 0!==i?i:0;s[n]=l,r[a]++}return s}(s,r),r.values),i):(E(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ew(t,e))};function eR(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?ex(t,e,i):eM(t)(t,e)}function eN({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){let r=en(s)?s.map(ef):ef(s),n={done:!1,value:e[0]},a=function(t,e,{clamp:i=!0,ease:s,mixer:r}={}){let n=t.length;if(E(n===e.length,"Both input and output ranges must be the same length"),1===n)return()=>e[0];if(2===n&&t[0]===t[1])return()=>e[1];t[0]>t[n-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let s=[],r=i||eR,n=t.length-1;for(let i=0;i<n;i++){let n=r(t[i],t[i+1]);e&&(n=ev(Array.isArray(e)?e[i]||E:e,n)),s.push(n)}return s}(e,s,r),o=a.length,l=e=>{let i=0;if(o>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let s=ey(t[i],t[i+1],e);return a[i](s)};return i?e=>l(Y(t[0],t[n-1],e)):l}((i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let r=ey(0,e,s);t.push(ex(i,1,r))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(r)?r:e.map(()=>r||er).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(n.value=a(e),n.done=e>=t,n)}}let eF=t=>{let e=({timestamp:e})=>t(e);return{start:()=>N.update(e,!0),stop:()=>F(e),now:()=>L.isProcessing?L.timestamp:t0.now()}},eL={decay:t9,inertia:t9,tween:eN,keyframes:eN,spring:t7},eB=t=>t/100;class eO extends t2{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:s,keyframes:r}=this.options,n=(null==s?void 0:s.KeyframeResolver)||tT;this.resolver=new n(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,s),this.resolver.scheduleResolve()}initPlayback(t){let e,i;let{type:s="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:a,velocity:o=0}=this.options,l=tJ(s)?s:eL[s]||eN;l!==eN&&"number"!=typeof t[0]&&(e=ev(eB,eR(t[0],t[1])),t=[0,100]);let h=l({...this.options,keyframes:t});"mirror"===a&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-o})),null===h.calculatedDuration&&(h.calculatedDuration=function(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}(h));let{calculatedDuration:u}=h,d=u+n;return{generator:h,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(r+1)-n}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:s,generator:r,mirroredGenerator:n,mapPercentToKeyframes:a,keyframes:o,calculatedDuration:l,totalDuration:h,resolvedDuration:u}=i;if(null===this.startTime)return r.next(0);let{delay:d,repeat:c,repeatType:m,repeatDelay:p,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>h;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=h);let y=this.currentTime,x=r;if(c){let t=Math.min(this.currentTime,h)/u,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===m?(i=1-i,p&&(i-=p/u)):"mirror"===m&&(x=n)),y=Y(0,1,i)*u}let b=v?{done:!1,value:o[0]}:x.next(y);a&&(b.value=a(b.value));let{done:w}=b;v||null===l||(w=this.speed>=0?this.currentTime>=h:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return P&&void 0!==s&&(b.value=C(o,this.options,s)),f&&f(b.value),P&&this.finish(),b}get duration(){let{resolved:t}=this;return t?b(t.calculatedDuration):0}get time(){return b(this.currentTime)}set time(t){t=x(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=b(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=eF,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let s=this.driver.now();null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=s):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let eI=new Set(["opacity","clipPath","filter","transform"]),eU=t=>Array.isArray(t)&&"number"==typeof t[0],eW=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,e$={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eW([0,.65,.55,1]),circOut:eW([.55,0,1,.45]),backIn:eW([.31,.01,.66,-.59]),backOut:eW([.33,1.53,.69,.99])};function ez(t){return eH(t)||e$.easeOut}function eH(t){if(t)return eU(t)?eW(t):Array.isArray(t)?t.map(ez):e$[t]}let e_=tZ(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class eY extends t2{constructor(t){super(t);let{name:e,motionValue:i,element:s,keyframes:r}=this.options;this.resolver=new tq(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,s),this.resolver.scheduleResolve()}initPlayback(t,e){var i,s;let{duration:r=300,times:n,ease:a,type:o,motionValue:l,name:h,startTime:u}=this.options;if(!(null===(i=l.owner)||void 0===i?void 0:i.current))return!1;if(tJ((s=this.options).type)||"spring"===s.type||!function t(e){return!!(!e||"string"==typeof e&&e in e$||eU(e)||Array.isArray(e)&&e.every(t))}(s.ease)){let{onComplete:e,onUpdate:i,motionValue:s,element:l,...h}=this.options,u=function(t,e){let i=new eO({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),s={done:!1,value:t[0]},r=[],n=0;for(;!s.done&&n<2e4;)r.push((s=i.sample(n)).value),n+=10;return{times:void 0,keyframes:r,duration:n-10,ease:"linear"}}(t,h);1===(t=u.keyframes).length&&(t[1]=t[0]),r=u.duration,n=u.times,a=u.ease,o="keyframes"}let d=function(t,e,i,{delay:s=0,duration:r=300,repeat:n=0,repeatType:a="loop",ease:o,times:l}={}){let h={[e]:i};l&&(h.offset=l);let u=eH(o);return Array.isArray(u)&&(h.easing=u),t.animate(h,{delay:s,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:n+1,direction:"reverse"===a?"alternate":"normal"})}(l.owner.current,h,t,{...this.options,duration:r,times:n,ease:a});return d.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(d.timeline=this.pendingTimeline,this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:i}=this.options;l.set(C(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:n,type:o,ease:a,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return b(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return b(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=x(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return E;let{animation:i}=e;i.timeline=t,i.onfinish=null}else this.pendingTimeline=t;return E}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:s,type:r,ease:n,times:a}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:o,element:l,...h}=this.options,u=new eO({...h,keyframes:i,duration:s,type:r,ease:n,times:a,isGenerator:!0}),d=x(this.time);t.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}let{onStop:o}=this.options;o&&o(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:r,damping:n,type:a}=t;return e_()&&i&&eI.has(i)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!s&&"mirror"!==r&&0!==n&&"inertia"!==a}}let eG=tZ(()=>void 0!==window.ScrollTimeline);class eX{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t){let e=this.animations.map(e=>{if(!eG()||!e.attachTimeline)return e.pause(),function(t,e){let i;let s=()=>{let{currentTime:s}=e,r=(null===s?0:s.value)/100;i!==r&&t(r),i=r};return N.update(s,!0),()=>F(s)}(t=>{e.time=e.duration*t},t);e.attachTimeline(t)});return()=>{e.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let eK=(t,e,i,s={},r,n)=>a=>{let o=S(s,t)||{},l=o.delay||s.delay||0,{elapsed:h=0}=s;h-=x(l);let u={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-h,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:n?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:r,repeat:n,repeatType:a,repeatDelay:o,from:l,elapsed:h,...u}){return!!Object.keys(u).length}(o)&&(u={...u,...A(t,u)}),u.duration&&(u.duration=x(u.duration)),u.repeatDelay&&(u.repeatDelay=x(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(u.duration=0,0!==u.delay||(d=!0)),(k.current||V.skipAnimations)&&(d=!0,u.duration=0,u.delay=0),d&&!n&&void 0!==e.get()){let t=C(u.keyframes,o);if(void 0!==t)return N.update(()=>{u.onUpdate(t),u.onComplete()}),new eX([])}return!n&&eY.supports(u)?new eY(u):new eO(u)},eq=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),eZ=t=>h(t)?t[t.length-1]||0:t;function eJ(t,e){-1===t.indexOf(e)&&t.push(e)}function eQ(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class e0{constructor(){this.subscriptions=[]}add(t){return eJ(this.subscriptions,t),()=>eQ(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s){if(1===s)this.subscriptions[0](t,e,i);else for(let r=0;r<s;r++){let s=this.subscriptions[r];s&&s(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let e1=t=>!isNaN(parseFloat(t)),e2={current:void 0};class e5{constructor(t,e={}){this.version="11.7.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=t0.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=t0.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=e1(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 e0);let i=this.events[t].add(e);return"change"===t?()=>{i(),N.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,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}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()}get(){return e2.current&&e2.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=t0.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function e4(t,e){return new e5(t,e)}let e3=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),e6="data-"+e3("framerAppearId");function e8(t){return y.has(t)?"transform":eI.has(t)?e3(t):void 0}class e7 extends e5{constructor(){super(...arguments),this.values=[]}add(t){let e=e8(t);e&&(eJ(this.values,e),this.update())}update(){this.set(this.values.length?this.values.join(", "):"auto")}}let e9=t=>!!(t&&t.getVelocity);function it(t,e){var i,s;if(!t.applyWillChange)return;let r=t.getValue("willChange");if(r||(null===(i=t.props.style)||void 0===i?void 0:i.willChange)||(r=new e7("auto"),t.addValue("willChange",r)),e9(s=r)&&s.add)return r.add(e)}function ie(t,e,{delay:i=0,transitionOverride:s,type:r}={}){var n;let{transition:a=t.getDefaultTransition(),transitionEnd:o,...l}=e;s&&(a=s);let h=[],u=r&&t.animationState&&t.animationState.getState()[r];for(let e in l){let s=t.getValue(e,null!==(n=t.latestValues[e])&&void 0!==n?n:null),r=l[e];if(void 0===r||u&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(u,e))continue;let o={delay:i,...S(a||{},e)},d=!1;if(window.MotionHandoffAnimation){let i=t.props[e6];if(i){let t=window.MotionHandoffAnimation(i,e,N);null!==t&&(o.startTime=t,d=!0)}}it(t,e),s.start(eK(e,s,r,t.shouldReduceMotion&&y.has(e)?{type:!1}:o,t,d));let c=s.animation;c&&h.push(c)}return o&&Promise.all(h).then(()=>{N.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:s={},...r}=p(t,e)||{};for(let e in r={...r,...i}){let i=eZ(r[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,e4(i))}}(t,o)})}),h}function ii(t,e,i={}){var s;let r=p(t,e,"exit"===i.type?null===(s=t.presenceContext)||void 0===s?void 0:s.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(n=i.transitionOverride);let a=r?()=>Promise.all(ie(t,r,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=n;return function(t,e,i=0,s=0,r=1,n){let a=[],o=(t.variantChildren.size-1)*s,l=1===r?(t=0)=>t*s:(t=0)=>o-t*s;return Array.from(t.variantChildren).sort(is).forEach((t,s)=>{t.notify("AnimationStart",e),a.push(ii(t,e,{...n,delay:i+l(s)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(a)}(t,e,r+s,a,o,i)}:()=>Promise.resolve(),{when:l}=n;if(!l)return Promise.all([a(),o(i.delay)]);{let[t,e]="beforeChildren"===l?[a,o]:[o,a];return t().then(()=>e())}}function is(t,e){return t.sortNodePosition(e)}let ir=g.length,ia=[...f].reverse(),io=f.length;function il(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ih(){return{animate:il(!0),whileInView:il(),whileHover:il(),whileTap:il(),whileDrag:il(),whileFocus:il(),exit:il()}}class iu{constructor(t){this.isMounted=!1,this.node=t}update(){}}class id extends iu{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>ii(t,e,i)));else if("string"==typeof e)s=ii(t,e,i);else{let r="function"==typeof e?p(t,e,i.custom):e;s=Promise.all(ie(t,r,i))}return s.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=ih(),s=!0,r=e=>(i,s)=>{var r;let n=p(t,s,"exit"===e?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0);if(n){let{transition:t,transitionEnd:e,...s}=n;i={...i,...s,...e}}return i};function n(n){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<ir;t++){let s=g[t],r=e.props[s];(d(r)||!1===r)&&(i[s]=r)}return i}(t.parent)||{},c=[],m=new Set,p={},f=1/0;for(let e=0;e<io;e++){var v;let g=ia[e],y=i[g],x=void 0!==a[g]?a[g]:o[g],b=d(x),w=g===n?y.isActive:null;!1===w&&(f=e);let P=x===o[g]&&x!==a[g]&&b;if(P&&s&&t.manuallyAnimateOnMount&&(P=!1),y.protectedKeys={...p},!y.isActive&&null===w||!x&&!y.prevProp||l(x)||"boolean"==typeof x)continue;let T=(v=y.prevProp,"string"==typeof x?x!==v:!!Array.isArray(x)&&!u(x,v)),j=T||g===n&&y.isActive&&!P&&b||e>f&&b,A=!1,S=Array.isArray(x)?x:[x],V=S.reduce(r(g),{});!1===w&&(V={});let{prevResolvedValues:k={}}=y,M={...k,...V},C=e=>{j=!0,m.has(e)&&(A=!0,m.delete(e)),y.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in M){let e=V[t],i=k[t];if(!p.hasOwnProperty(t))(h(e)&&h(i)?u(e,i):e===i)?void 0!==e&&m.has(t)?C(t):y.protectedKeys[t]=!0:null!=e?C(t):m.add(t)}y.prevProp=x,y.prevResolvedValues=V,y.isActive&&(p={...p,...V}),s&&t.blockInitialAnimation&&(j=!1);let E=!(P&&T)||A;j&&E&&c.push(...S.map(t=>({animation:t,options:{type:g}})))}if(m.size){let e={};m.forEach(i=>{let s=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=s?s:null}),c.push({animation:e})}let y=!!c.length;return s&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,y?e(c):Promise.resolve()}return{animateChanges:n,setActive:function(e,s){var r;if(i[e].isActive===s)return Promise.resolve();null===(r=t.variantChildren)||void 0===r||r.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,s)}),i[e].isActive=s;let a=n(e);for(let t in i)i[t].protectedKeys={};return a},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=ih(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();l(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(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}let ic=0;class im extends iu{constructor(){super(...arguments),this.id=ic++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}let ip=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function ig(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}let iv=t=>e=>ip(e)&&t(e,ig(e));function iy(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}function ix(t,e,i,s){return iy(t,e,iv(i),s)}let ib=(t,e)=>Math.abs(t-e);class iw{constructor(t,e,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=ij(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(ib(t.x,e.x)**2+ib(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:s}=t,{timestamp:r}=L;this.history.push({...s,timestamp:r});let{onStart:n,onMove:a}=this.handlers;e||(n&&n(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=iP(e,this.transformPagePoint),N.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=ij("pointercancel"===t.type?this.lastMoveEventInfo:iP(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,n),s&&s(t,n)},!ip(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;let n=iP(ig(t),this.transformPagePoint),{point:a}=n,{timestamp:o}=L;this.history=[{...a,timestamp:o}];let{onSessionStart:l}=e;l&&l(t,ij(n,this.history)),this.removeListeners=ev(ix(this.contextWindow,"pointermove",this.handlePointerMove),ix(this.contextWindow,"pointerup",this.handlePointerUp),ix(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),F(this.updatePoint)}}function iP(t,e){return e?{point:e(t.point)}:t}function iT(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ij({point:t},e){return{point:t,delta:iT(t,iA(e)),offset:iT(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,r=iA(t);for(;i>=0&&(s=t[i],!(r.timestamp-s.timestamp>x(.1)));)i--;if(!s)return{x:0,y:0};let n=b(r.timestamp-s.timestamp);if(0===n)return{x:0,y:0};let a={x:(r.x-s.x)/n,y:(r.y-s.y)/n};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,0)}}function iA(t){return t[t.length-1]}function iS(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let iV=iS("dragHorizontal"),ik=iS("dragVertical");function iM(t){let e=!1;if("y"===t)e=ik();else if("x"===t)e=iV();else{let t=iV(),i=ik();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function iC(){let t=iM(!0);return!t||(t(),!1)}function iE(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function iD(t){return t.max-t.min}function iR(t,e,i,s=.5){t.origin=s,t.originPoint=ex(e.min,e.max,t.origin),t.scale=iD(i)/iD(e),t.translate=ex(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 iN(t,e,i,s){iR(t.x,e.x,i.x,s?s.originX:void 0),iR(t.y,e.y,i.y,s?s.originY:void 0)}function iF(t,e,i){t.min=i.min+e.min,t.max=t.min+iD(e)}function iL(t,e,i){t.min=e.min-i.min,t.max=t.min+iD(e)}function iB(t,e,i){iL(t.x,e.x,i.x),iL(t.y,e.y,i.y)}function iO(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 iI(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function iU(t,e,i){return{min:iW(t,e),max:iW(t,i)}}function iW(t,e){return"number"==typeof t?t:t[e]||0}let i$=()=>({translate:0,scale:1,origin:0,originPoint:0}),iz=()=>({x:i$(),y:i$()}),iH=()=>({min:0,max:0}),i_=()=>({x:iH(),y:iH()});function iY(t){return[t("x"),t("y")]}function iG({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function iX(t){return void 0===t||1===t}function iK({scale:t,scaleX:e,scaleY:i}){return!iX(t)||!iX(e)||!iX(i)}function iq(t){return iK(t)||iZ(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function iZ(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function iJ(t,e,i,s,r){return void 0!==r&&(t=s+r*(t-s)),s+i*(t-s)+e}function iQ(t,e=0,i=1,s,r){t.min=iJ(t.min,e,i,s,r),t.max=iJ(t.max,e,i,s,r)}function i0(t,{x:e,y:i}){iQ(t.x,e.translate,e.scale,e.originPoint),iQ(t.y,i.translate,i.scale,i.originPoint)}function i1(t,e){t.min=t.min+e,t.max=t.max+e}function i2(t,e,i,s,r=.5){let n=ex(t.min,t.max,r);iQ(t,e,i,n,s)}function i5(t,e){i2(t.x,e.x,e.scaleX,e.scale,e.originX),i2(t.y,e.y,e.scaleY,e.scale,e.originY)}function i4(t,e){return iG(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}let i3=({current:t})=>t?t.ownerDocument.defaultView:null,i6=new WeakMap;class i8{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=i_(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:s}=this.getProps();this.panSession=new iw(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(ig(t,"page").point)},onStart:(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:r}=this.getProps();if(i&&!s&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=iM(i),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iY(t=>{let e=this.getAxisMotionValue(t).get()||0;if(ts.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];if(s){let t=iD(s);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&N.postRender(()=>r(t,e)),it(this.visualElement,"transform");let{animationState:n}=this.visualElement;n&&n.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:r,onDrag:n}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:a}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(a),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),n&&n(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>iY(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:i3(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=e;this.startAnimation(s);let{onDragEnd:r}=this.getProps();r&&N.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!i7(t,s,this.currentDirection))return;let r=this.getAxisMotionValue(t),n=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(n=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?ex(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?ex(i,t,s.max):Math.min(t,i)),t}(n,this.constraints[t],this.elastic[t])),r.set(n)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,r=this.constraints;e&&iE(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=function(t,{top:e,left:i,bottom:s,right:r}){return{x:iO(t.x,i,r),y:iO(t.y,e,s)}}(s.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:iU(t,"left","right"),y:iU(t,"top","bottom")}}(i),r!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&iY(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(s.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iE(e))return!1;let s=e.current;E(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let n=function(t,e,i){let s=i4(t,i),{scroll:r}=e;return r&&(i1(s.x,r.offset.x),i1(s.y,r.offset.y)),s}(s,r.root,this.visualElement.getTransformPagePoint()),a={x:iI((t=r.layout.layoutBox).x,n.x),y:iI(t.y,n.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=iG(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:n,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(iY(a=>{if(!i7(a,e,this.currentDirection))return;let l=o&&o[a]||{};n&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[a]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(a,h)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return it(this.visualElement,t),i.start(eK(t,i,0,e,this.visualElement,!1))}stopAnimation(){iY(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iY(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){iY(e=>{let{drag:i}=this.getProps();if(!i7(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,r=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:n}=s.layout.layoutBox[e];r.set(t[e]-ex(i,n,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iE(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};iY(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();s[t]=function(t,e){let i=.5,s=iD(t),r=iD(e);return r>s?i=ey(e.min,e.max-s,t.min):s>r&&(i=ey(t.min,t.max-r,e.min)),Y(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),iY(e=>{if(!i7(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:n}=this.constraints[e];i.set(ex(r,n,s[e]))})}addListeners(){if(!this.visualElement.current)return;i6.set(this.visualElement,this);let t=ix(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();iE(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),N.read(e);let r=iy(window,"resize",()=>this.scalePositionWithinConstraints()),n=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iY(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),s(),n&&n()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:n=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:n,dragMomentum:a}}}function i7(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class i9 extends iu{constructor(t){super(t),this.removeGroupControls=E,this.removeListeners=E,this.controls=new i8(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||E}unmount(){this.removeGroupControls(),this.removeListeners()}}let st=t=>(e,i)=>{t&&N.postRender(()=>t(e,i))};class se extends iu{constructor(){super(...arguments),this.removePointerDownListener=E}onPointerDown(t){this.session=new iw(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:i3(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:st(t),onStart:st(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&N.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=ix(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var si=i(7577);let ss=(0,si.createContext)(null),sr=(0,si.createContext)({}),sn=(0,si.createContext)({}),sa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function so(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let sl={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!tr.test(t))return t;t=parseFloat(t)}let i=so(t,e.target.x),s=so(t,e.target.y);return`${i}% ${s}%`}},sh={},{schedule:su,cancel:sd}=R(queueMicrotask,!1);class sc extends si.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=t;Object.assign(sh,sp),r&&(e.group&&e.group.add(r),i&&i.register&&s&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),sa.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:r}=this.props,n=i.projection;return n&&(n.isPresent=r,s||t.layoutDependency!==e||void 0===e?n.willUpdate():this.safeToRemove(),t.isPresent===r||(r?n.promote():n.relegate()||N.postRender(()=>{let t=n.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),su.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function sm(t){let[e,i]=function(){let t=(0,si.useContext)(ss);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:s}=t,r=(0,si.useId)();(0,si.useEffect)(()=>s(r),[]);let n=(0,si.useCallback)(()=>i&&i(r),[r,i]);return!e&&i?[!1,n]:[!0]}(),s=(0,si.useContext)(sr);return(0,a.jsx)(sc,{...t,layoutGroup:s,switchLayoutGroup:(0,si.useContext)(sn),isPresent:e,safeToRemove:i})}let sp={borderRadius:{...sl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sl,borderTopRightRadius:sl,borderBottomLeftRadius:sl,borderBottomRightRadius:sl,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=tI.parse(t);if(s.length>5)return t;let r=tI.createTransformer(t),n="number"!=typeof s[0]?1:0,a=i.x.scale*e.x,o=i.y.scale*e.y;s[0+n]/=a,s[1+n]/=o;let l=ex(a,o,.5);return"number"==typeof s[2+n]&&(s[2+n]/=l),"number"==typeof s[3+n]&&(s[3+n]/=l),r(s)}}},sf=["TopLeft","TopRight","BottomLeft","BottomRight"],sg=sf.length,sv=t=>"string"==typeof t?parseFloat(t):t,sy=t=>"number"==typeof t||tr.test(t);function sx(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let sb=sP(0,.5,eh),sw=sP(.5,.95,E);function sP(t,e,i){return s=>s<t?0:s>e?1:i(ey(t,e,s))}function sT(t,e){t.min=e.min,t.max=e.max}function sj(t,e){sT(t.x,e.x),sT(t.y,e.y)}function sA(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function sS(t,e,i,s,r){return t-=e,t=s+1/i*(t-s),void 0!==r&&(t=s+1/r*(t-s)),t}function sV(t,e,[i,s,r],n,a){!function(t,e=0,i=1,s=.5,r,n=t,a=t){if(ts.test(e)&&(e=parseFloat(e),e=ex(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=ex(n.min,n.max,s);t===n&&(o-=e),t.min=sS(t.min,e,i,o,r),t.max=sS(t.max,e,i,o,r)}(t,e[i],e[s],e[r],e.scale,n,a)}let sk=["x","scaleX","originX"],sM=["y","scaleY","originY"];function sC(t,e,i,s){sV(t.x,e,sk,i?i.x:void 0,s?s.x:void 0),sV(t.y,e,sM,i?i.y:void 0,s?s.y:void 0)}function sE(t){return 0===t.translate&&1===t.scale}function sD(t){return sE(t.x)&&sE(t.y)}function sR(t,e){return t.min===e.min&&t.max===e.max}function sN(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function sF(t,e){return sN(t.x,e.x)&&sN(t.y,e.y)}function sL(t){return iD(t.x)/iD(t.y)}function sB(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class sO{constructor(){this.members=[]}add(t){eJ(this.members,t),t.scheduleRender()}remove(t){if(eQ(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade: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)}}let sI=(t,e)=>t.depth-e.depth;class sU{constructor(){this.children=[],this.isDirty=!1}add(t){eJ(this.children,t),this.isDirty=!0}remove(t){eQ(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(sI),this.isDirty=!1,this.children.forEach(t)}}function sW(t){let e=e9(t)?t.get():t;return eq(e)?e.toValue():e}let s$={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},sz="undefined"!=typeof window&&void 0!==window.MotionDebug,sH=["","X","Y","Z"],s_={visibility:"hidden"},sY=0;function sG(t,e,i,s){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),s&&(s[t]=0))}function sX({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=sY++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,sz&&(s$.totalNodes=s$.resolvedTargetDeltas=s$.recalculatedProjection=0),this.nodes.forEach(sZ),this.nodes.forEach(s4),this.nodes.forEach(s3),this.nodes.forEach(sJ),sz&&window.MotionDebug.record(s$)},this.resolvedRelativeTargetAt=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 sU)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new e0),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,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:s,layout:r,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||s)&&(this.isLayoutDirty=!0),t){let i;let s=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=t0.now(),s=({timestamp:e})=>{let r=e-i;r>=250&&(F(s),t(r-250))};return N.read(s,!0),()=>F(s)}(s,0),sa.hasAnimatedSinceResize&&(sa.hasAnimatedSinceResize=!1,this.nodes.forEach(s5))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&n&&(s||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||re,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=n.getProps(),l=!this.targetLayout||!sF(this.targetLayout,s)||i,h=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,h);let e={...S(r,"layout"),onPlay:a,onComplete:o};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||s5(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,F(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(s6),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=i.props[e6];if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",N,!(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 s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(s0);return}this.isUpdating||this.nodes.forEach(s1),this.isUpdating=!1,this.nodes.forEach(s2),this.nodes.forEach(sK),this.nodes.forEach(sq),this.clearAllSnapshots();let t=t0.now();L.delta=Y(0,1e3/60,t-L.timestamp),L.timestamp=t,L.isProcessing=!0,B.update.process(L),B.preRender.process(L),B.render.process(L),L.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,su.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sQ),this.sharedNodes.forEach(s8)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,N.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){N.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}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.layoutCorrected=i_(),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){let e=s(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!sD(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,n=s!==this.prevTransformTemplateValue;t&&(e||iq(this.latestValues)||n)&&(r(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),rr((e=s).x),rr(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return i_();let i=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(ra))){let{scroll:t}=this.root;t&&(i1(i.x,t.offset.x),i1(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=i_();if(sj(i,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let s=this.path[e],{scroll:r,options:n}=s;s!==this.root&&r&&n.layoutScroll&&(r.wasRoot&&sj(i,t),i1(i.x,r.offset.x),i1(i.y,r.offset.y))}return i}applyTransform(t,e=!1){let i=i_();sj(i,t);for(let t=0;t<this.path.length;t++){let s=this.path[t];!e&&s.options.layoutScroll&&s.scroll&&s!==s.root&&i5(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),iq(s.latestValues)&&i5(i,s.latestValues)}return iq(this.latestValues)&&i5(i,this.latestValues),i}removeTransform(t){let e=i_();sj(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!iq(i.latestValues))continue;iK(i.latestValues)&&i.updateSnapshot();let s=i_();sj(s,i.measurePageBox()),sC(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return iq(this.latestValues)&&sC(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!==L.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,s,r;let n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==n;if(!(t||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:o,layoutId:l}=this.options;if(this.layout&&(o||l)){if(this.resolvedRelativeTargetAt=L.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=i_(),this.relativeTargetOrigin=i_(),iB(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),sj(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=i_(),this.targetWithTransforms=i_()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,s=this.relativeTarget,r=this.relativeParent.target,iF(i.x,s.x,r.x),iF(i.y,s.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sj(this.target,this.layout.layoutBox),i0(this.target,this.targetDelta)):sj(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=i_(),this.relativeTargetOrigin=i_(),iB(this.relativeTargetOrigin,this.target,t.target),sj(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}sz&&s$.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||iK(this.parent.latestValues)||iZ(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,s=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(s=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===L.timestamp&&(s=!1),s)return;let{layout:r,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||n))return;sj(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;(function(t,e,i,s=!1){let r,n;let a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){n=(r=i[o]).projectionDelta;let{visualElement:a}=r.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&i5(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),n&&(e.x*=n.x.scale,e.y*=n.y.scale,i0(t,n)),s&&iq(r.latestValues)&&i5(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}})(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=i_());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(sA(this.prevProjectionDelta.x,this.projectionDelta.x),sA(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iN(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&sB(this.projectionDelta.x,this.prevProjectionDelta.x)&&sB(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),sz&&s$.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=iz(),this.projectionDelta=iz(),this.projectionDeltaWithTransform=iz()}setAnimationOrigin(t,e=!1){let i;let s=this.snapshot,r=s?s.latestValues:{},n={...this.latestValues},a=iz();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=i_(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,d=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(rt));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(s7(a.x,t.x,s),s7(a.y,t.y,s),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,c,m,p;iB(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,s9(m.x,p.x,o.x,s),s9(m.y,p.y,o.y,s),i&&(h=this.relativeTarget,c=i,sR(h.x,c.x)&&sR(h.y,c.y))&&(this.isProjectionDirty=!1),i||(i=i_()),sj(i,this.relativeTarget)}l&&(this.animationValues=n,function(t,e,i,s,r,n){r?(t.opacity=ex(0,void 0!==i.opacity?i.opacity:1,sb(s)),t.opacityExit=ex(void 0!==e.opacity?e.opacity:1,0,sw(s))):n&&(t.opacity=ex(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let r=0;r<sg;r++){let n=`border${sf[r]}Radius`,a=sx(e,n),o=sx(i,n);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||sy(a)===sy(o)?(t[n]=Math.max(ex(sv(a),sv(o),s),0),(ts.test(o)||ts.test(a))&&(t[n]+="%")):t[n]=o)}(e.rotate||i.rotate)&&(t.rotate=ex(e.rotate||0,i.rotate||0,s))}(n,r,this.latestValues,s,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(F(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=N.update(()=>{sa.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let s=e9(0)?0:e4(0);return s.start(eK("",s,1e3,i)),s.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:r}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&rn(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||i_();let e=iD(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=iD(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}sj(e,i),i5(e,r),iN(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new sO),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(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&sG("z",t,s,this.animationValues);for(let e=0;e<sH.length;e++)sG(`rotate${sH[e]}`,t,s,this.animationValues),sG(`skew${sH[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return s_;let s={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=sW(null==t?void 0:t.pointerEvents)||"",s.transform=r?r(this.latestValues,""):"none",s;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=sW(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!iq(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let a=n.animationValues||n.latestValues;this.applyTransformsToTarget(),s.transform=function(t,e,i){let s="",r=t.x.translate/e.x,n=t.y.translate/e.y,a=(null==i?void 0:i.z)||0;if((r||n||a)&&(s=`translate3d(${r}px, ${n}px, ${a}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:n,skewX:a,skewY:o}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),r&&(s+=`rotateX(${r}deg) `),n&&(s+=`rotateY(${n}deg) `),a&&(s+=`skewX(${a}deg) `),o&&(s+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(s+=`scale(${o}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),r&&(s.transform=r(a,s.transform));let{x:o,y:l}=this.projectionDelta;for(let t in s.transformOrigin=`${100*o.origin}% ${100*l.origin}% 0`,n.animationValues?s.opacity=n===this?null!==(i=null!==(e=a.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:s.opacity=n===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,sh){if(void 0===a[t])continue;let{correct:e,applyTo:i}=sh[t],r="none"===s.transform?a[t]:e(a[t],n);if(i){let t=i.length;for(let e=0;e<t;e++)s[i[e]]=r}else s[t]=r}return this.options.layoutId&&(s.pointerEvents=n===this?sW(null==t?void 0:t.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(s0),this.root.sharedNodes.clear()}}}function sK(t){t.updateLayout()}function sq(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:s}=t.layout,{animationType:r}=t.options,n=i.source!==t.layout.source;"size"===r?iY(t=>{let s=n?i.measuredBox[t]:i.layoutBox[t],r=iD(s);s.min=e[t].min,s.max=s.min+r}):rn(r,i.layoutBox,e)&&iY(s=>{let r=n?i.measuredBox[s]:i.layoutBox[s],a=iD(e[s]);r.max=r.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+a)});let a=iz();iN(a,e,i.layoutBox);let o=iz();n?iN(o,t.applyTransform(s,!0),i.measuredBox):iN(o,e,i.layoutBox);let l=!sD(a),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:r,layout:n}=s;if(r&&n){let a=i_();iB(a,i.layoutBox,r.layoutBox);let o=i_();iB(o,e,n.layoutBox),sF(a,o)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function sZ(t){sz&&s$.totalNodes++,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 sJ(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function sQ(t){t.clearSnapshot()}function s0(t){t.clearMeasurements()}function s1(t){t.isLayoutDirty=!1}function s2(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function s5(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function s4(t){t.resolveTargetDelta()}function s3(t){t.calcProjection()}function s6(t){t.resetSkewAndRotation()}function s8(t){t.removeLeadSnapshot()}function s7(t,e,i){t.translate=ex(e.translate,0,i),t.scale=ex(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function s9(t,e,i,s){t.min=ex(e.min,i.min,s),t.max=ex(e.max,i.max,s)}function rt(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let re={duration:.45,ease:[.4,0,.1,1]},ri=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rs=ri("applewebkit/")&&!ri("chrome/")?Math.round:E;function rr(t){t.min=rs(t.min),t.max=rs(t.max)}function rn(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(sL(e)-sL(i)))}function ra(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let ro=sX({attachResizeListener:(t,e)=>iy(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rl={current:void 0},rh=sX({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rl.current){let t=new ro({});t.mount(window),t.setOptions({layoutScroll:!0}),rl.current=t}return rl.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function ru(t,e){let i=e?"onHoverStart":"onHoverEnd";return ix(t.current,e?"pointerenter":"pointerleave",(s,r)=>{if("touch"===s.pointerType||iC())return;let n=t.getProps();t.animationState&&n.whileHover&&t.animationState.setActive("whileHover",e);let a=n[i];a&&N.postRender(()=>a(s,r))},{passive:!t.getProps()[i]})}class rd extends iu{mount(){this.unmount=ev(ru(this.node,!0),ru(this.node,!1))}unmount(){}}class rc extends iu{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=ev(iy(this.node.current,"focus",()=>this.onFocus()),iy(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let rm=(t,e)=>!!e&&(t===e||rm(t,e.parentElement));function rp(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,ig(i))}class rf extends iu{constructor(){super(...arguments),this.removeStartListeners=E,this.removeEndListeners=E,this.removeAccessibleListeners=E,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),s=ix(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:s,globalTapTarget:r}=this.node.getProps(),n=r||rm(this.node.current,t.target)?i:s;n&&N.update(()=>n(t,e))},{passive:!(i.onTap||i.onPointerUp)}),r=ix(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=ev(s,r),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=iy(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=iy(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&rp("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&N.postRender(()=>i(t,e))})}),rp("down",(t,e)=>{this.startPress(t,e)}))}),e=iy(this.node.current,"blur",()=>{this.isPressing&&rp("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=ev(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&N.postRender(()=>i(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!iC()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&N.postRender(()=>i(t,e))}mount(){let t=this.node.getProps(),e=ix(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=iy(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ev(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let rg=new WeakMap,rv=new WeakMap,ry=t=>{let e=rg.get(t.target);e&&e(t)},rx=t=>{t.forEach(ry)},rb={some:0,all:1};class rw extends iu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:s="some",once:r}=t,n={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof s?s:rb[s]};return function(t,e,i){let s=function({root:t,...e}){let i=t||document;rv.has(i)||rv.set(i,{});let s=rv.get(i),r=JSON.stringify(e);return s[r]||(s[r]=new IntersectionObserver(rx,{root:t,...e})),s[r]}(e);return rg.set(t,i),s.observe(t),()=>{rg.delete(t),s.unobserve(t)}}(this.node.current,n,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),n=e?i:s;n&&n(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let rP=(0,si.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),rT=(0,si.createContext)({}),rj="undefined"!=typeof window,rA=rj?si.useLayoutEffect:si.useEffect,rS=(0,si.createContext)({strict:!1}),rV=!1;function rk(){window.MotionHandoffIsComplete=!0}function rM(t){return l(t.animate)||g.some(e=>d(t[e]))}function rC(t){return!!(rM(t)||t.variants)}function rE(t){return Array.isArray(t)?t.join(" "):t}let rD={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"]},rR={};for(let t in rD)rR[t]={isEnabled:e=>rD[t].some(t=>!!e[t])};let rN=Symbol.for("motionComponentSymbol"),rF=["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 rL(t){if("string"!=typeof t||t.includes("-"));else if(rF.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}function rB(t,{style:e,vars:i},s,r){for(let n in Object.assign(t.style,e,r&&r.getProjectionStyles(s)),i)t.style.setProperty(n,i[n])}let rO=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"]);function rI(t,e,i,s){for(let i in rB(t,e,void 0,s),e.attrs)t.setAttribute(rO.has(i)?i:e3(i),e.attrs[i])}function rU(t,{layout:e,layoutId:i}){return y.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!sh[t]||"opacity"===t)}function rW(t,e,i){var s;let{style:r}=t,n={};for(let a in r)(e9(r[a])||e.style&&e9(e.style[a])||rU(a,t)||(null===(s=null==i?void 0:i.getValue(a))||void 0===s?void 0:s.liveStyle)!==void 0)&&(n[a]=r[a]);return i&&r&&"string"==typeof r.willChange&&(i.applyWillChange=!1),n}function r$(t,e,i){let s=rW(t,e,i);for(let i in t)(e9(t[i])||e9(e[i]))&&(s[-1!==v.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}let rz=t=>(e,i)=>{let s=(0,si.useContext)(rT),r=(0,si.useContext)(ss),n=()=>(function({applyWillChange:t=!1,scrapeMotionValuesFromProps:e,createRenderState:i,onMount:s},r,n,a,o){let h={latestValues:function(t,e,i,s,r){var n;let a={},o=[],h=s&&(null===(n=t.style)||void 0===n?void 0:n.willChange)===void 0,u=r(t,{});for(let t in u)a[t]=sW(u[t]);let{initial:d,animate:c}=t,m=rM(t),p=rC(t);e&&p&&!m&&!1!==t.inherit&&(void 0===d&&(d=e.initial),void 0===c&&(c=e.animate));let f=!!i&&!1===i.initial,g=(f=f||!1===d)?c:d;return g&&"boolean"!=typeof g&&!l(g)&&rH(t,g,(t,e)=>{for(let e in t){let i=t[e];if(Array.isArray(i)){let t=f?i.length-1:0;i=i[t]}null!==i&&(a[e]=i)}for(let t in e)a[t]=e[t]}),h&&(c&&!1!==d&&!l(c)&&rH(t,c,t=>{for(let e in t)!function(t,e){let i=e8(e);i&&eJ(t,i)}(o,e)}),o.length&&(a.willChange=o.join(","))),a}(r,n,a,!o&&t,e),renderState:i()};return s&&(h.mount=t=>s(r,t,h)),h})(t,e,s,r,i);return i?n():function(t){let e=(0,si.useRef)(null);return null===e.current&&(e.current=t()),e.current}(n)};function rH(t,e,i){let s=Array.isArray(e)?e:[e];for(let e=0;e<s.length;e++){let r=m(t,s[e]);if(r){let{transitionEnd:t,transition:e,...s}=r;i(s,t)}}}let r_=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),rY=()=>({...r_(),attrs:{}}),rG=(t,e)=>e&&"number"==typeof t?e.transform(t):t,rX={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rK=v.length;function rq(t,e,i){let{style:s,vars:r,transformOrigin:n}=t,a=!1,o=!1;for(let t in e){let i=e[t];if(y.has(t)){a=!0;continue}if(W(t)){r[t]=i;continue}{let e=rG(i,t_[t]);t.startsWith("origin")?(o=!0,n[t]=e):s[t]=e}}if(!e.transform&&(a||i?s.transform=function(t,e,i){let s="",r=!0;for(let n=0;n<rK;n++){let a=v[n],o=t[a];if(void 0===o)continue;let l=!0;if(!(l="number"==typeof o?o===(a.startsWith("scale")?1:0):0===parseFloat(o))||i){let t=rG(o,t_[a]);if(!l){r=!1;let e=rX[a]||a;s+=`${e}(${t}) `}i&&(e[a]=t)}}return s=s.trim(),i?s=i(e,r?"":s):r&&(s="none"),s}(e,t.transform,i):s.transform&&(s.transform="none")),o){let{originX:t="50%",originY:e="50%",originZ:i=0}=n;s.transformOrigin=`${t} ${e} ${i}`}}function rZ(t,e,i){return"string"==typeof t?t:tr.transform(e+i*t)}let rJ={offset:"stroke-dashoffset",array:"stroke-dasharray"},rQ={offset:"strokeDashoffset",array:"strokeDasharray"};function r0(t,{attrX:e,attrY:i,attrScale:s,originX:r,originY:n,pathLength:a,pathSpacing:o=1,pathOffset:l=0,...h},u,d){if(rq(t,h,d),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:m,dimensions:p}=t;c.transform&&(p&&(m.transform=c.transform),delete c.transform),p&&(void 0!==r||void 0!==n||m.transform)&&(m.transformOrigin=function(t,e,i){let s=rZ(e,t.x,t.width),r=rZ(i,t.y,t.height);return`${s} ${r}`}(p,void 0!==r?r:.5,void 0!==n?n:.5)),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==s&&(c.scale=s),void 0!==a&&function(t,e,i=1,s=0,r=!0){t.pathLength=1;let n=r?rJ:rQ;t[n.offset]=tr.transform(-s);let a=tr.transform(e),o=tr.transform(i);t[n.array]=`${a} ${o}`}(c,a,o,l,!1)}let r1=t=>"string"==typeof t&&"svg"===t.toLowerCase(),r2={useVisualState:rz({scrapeMotionValuesFromProps:r$,createRenderState:rY,onMount:(t,e,{renderState:i,latestValues:s})=>{N.read(()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}}),N.render(()=>{r0(i,s,r1(e.tagName),t.transformTemplate),rI(e,i)})}})},r5={useVisualState:rz({applyWillChange:!0,scrapeMotionValuesFromProps:rW,createRenderState:r_})};function r4(t,e,i){for(let s in e)e9(e[s])||rU(s,i)||(t[s]=e[s])}let r3=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function r6(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||r3.has(t)}let r8=t=>!r6(t);try{!function(t){t&&(r8=e=>e.startsWith("on")?!r6(e):t(e))}(require("@emotion/is-prop-valid").default)}catch(t){}let r7={current:null},r9={current:!1},nt=new WeakMap,ne=[...tg,tE,tI],ni=t=>ne.find(tf(t)),ns=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class nr{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:r,visualState:n},a={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tT,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=t0.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,N.render(this.render,!1,!0))};let{latestValues:o,renderState:l}=n;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=rM(e),this.isVariantNode=rC(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...u}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in u){let e=u[t];void 0!==o[t]&&e9(e)&&e.set(o[t],!1)}}mount(t){this.current=t,nt.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)),r9.current||function(){if(r9.current=!0,rj){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>r7.current=t.matches;t.addListener(e),e()}else r7.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||r7.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in nt.delete(this.current),this.projection&&this.projection.unmount(),F(this.notifyUpdate),F(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(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}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let s=y.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&N.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),n=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),n(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in rR){let e=rR[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):i_()}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<ns.length;e++){let i=ns[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(t,e,i){for(let s in e){let r=e[s],n=i[s];if(e9(r))t.addValue(s,r);else if(e9(n))t.addValue(s,e4(r,{owner:t}));else if(n!==r){if(t.hasValue(s)){let e=t.getValue(s);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(s);t.addValue(s,e4(void 0!==e?e:r,{owner:t}))}}}for(let s in i)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=e4(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let s=void 0===this.latestValues[t]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,t))&&void 0!==i?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=s&&("string"==typeof s&&(I(s)||O(s))?s=parseFloat(s):!ni(s)&&tI.test(e)&&(s=tX(t,e)),this.setBaseTarget(t,e9(s)?s.get():s)),e9(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i;let{initial:s}=this.props;if("string"==typeof s||"object"==typeof s){let r=m(this.props,s,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);r&&(i=r[t])}if(s&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||e9(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new e0),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class nn extends nr{constructor(){super(...arguments),this.KeyframeResolver=tq}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}}class na extends nn{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=rB}readValueFromInstance(t,e){if(y.has(e)){let t=tG(e);return t&&t.default||0}{let i=window.getComputedStyle(t),s=(W(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return i4(t,e)}build(t,e,i){rq(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return rW(t,e,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;e9(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class no extends nn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=i_}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(y.has(e)){let t=tG(e);return t&&t.default||0}return e=rO.has(e)?e:e3(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return r$(t,e,i)}build(t,e,i){r0(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,s){rI(t,e,i,s)}mount(t){this.isSVGTag=r1(t.tagName),super.mount(t)}}let nl=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,s)=>"create"===s?t:(e.has(s)||e.set(s,t(s)),e.get(s))})}((r={animation:{Feature:id},exit:{Feature:im},inView:{Feature:rw},tap:{Feature:rf},focus:{Feature:rc},hover:{Feature:rd},pan:{Feature:se},drag:{Feature:i9,ProjectionNode:rh,MeasureLayout:sm},layout:{ProjectionNode:rh,MeasureLayout:sm}},n=(t,e)=>rL(t)?new no(e):new na(e,{allowProjection:t!==si.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:s,Component:r}){t&&function(t){for(let e in t)rR[e]={...rR[e],...t[e]}}(t);let n=(0,si.forwardRef)(function(t,n){var o;let l;let h={...(0,si.useContext)(rP),...t,layoutId:function({layoutId:t}){let e=(0,si.useContext)(sr).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:u}=h,c=function(t){let{initial:e,animate:i}=function(t,e){if(rM(t)){let{initial:e,animate:i}=t;return{initial:!1===e||d(e)?e:void 0,animate:d(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,si.useContext)(rT));return(0,si.useMemo)(()=>({initial:e,animate:i}),[rE(e),rE(i)])}(t),m=s(t,u);if(!u&&rj){(0,si.useContext)(rS).strict;let t=function(t){let{drag:e,layout:i}=rR;if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(h);l=t.MeasureLayout,c.visualElement=function(t,e,i,s,r){var n;let{visualElement:a}=(0,si.useContext)(rT),o=(0,si.useContext)(rS),l=(0,si.useContext)(ss),h=(0,si.useContext)(rP).reducedMotion,u=(0,si.useRef)();s=s||o.renderer,!u.current&&s&&(u.current=s(t,{visualState:e,parent:a,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:h}));let d=u.current,c=(0,si.useContext)(sn);d&&!d.projection&&r&&("html"===d.type||"svg"===d.type)&&function(t,e,i,s){let{layoutId:r,layout:n,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot: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:n,alwaysMeasureLayout:!!a||o&&iE(o),visualElement:t,animationType:"string"==typeof n?n:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:h})}(u.current,i,r,c),(0,si.useInsertionEffect)(()=>{d&&d.update(i,l)});let m=i[e6],p=(0,si.useRef)(!!m&&!window.MotionHandoffIsComplete&&(null===(n=window.MotionHasOptimisedAnimation)||void 0===n?void 0:n.call(window,m)));return rA(()=>{d&&(d.updateFeatures(),su.render(d.render),p.current&&d.animationState&&d.animationState.animateChanges())}),(0,si.useEffect)(()=>{d&&(!p.current&&d.animationState&&d.animationState.animateChanges(),p.current=!1,rV||(rV=!0,queueMicrotask(rk)))}),d}(r,m,h,e,t.ProjectionNode)}return(0,a.jsxs)(rT.Provider,{value:c,children:[l&&c.visualElement?(0,a.jsx)(l,{visualElement:c.visualElement,...h}):null,i(r,t,(o=c.visualElement,(0,si.useCallback)(t=>{t&&m.mount&&m.mount(t),o&&(t?o.mount(t):o.unmount()),n&&("function"==typeof n?n(t):iE(n)&&(n.current=t))},[o])),m,u,c.visualElement)]})});return n[rN]=r,n}({...rL(t)?r2:r5,preloadedFeatures:r,useRender:function(t=!1){return(e,i,s,{latestValues:r},n)=>{let a=(rL(e)?function(t,e,i,s){let r=(0,si.useMemo)(()=>{let i=rY();return r0(i,e,r1(s),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};r4(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},s=function(t,e){let i=t.style||{},s={};return r4(s,i,t),Object.assign(s,function({transformTemplate:t},e){return(0,si.useMemo)(()=>{let i=r_();return rq(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=s,i})(i,r,n,e),o=function(t,e,i){let s={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(r8(r)||!0===i&&r6(r)||!e&&!r6(r)||t.draggable&&r.startsWith("onDrag"))&&(s[r]=t[r]);return s}(i,"string"==typeof e,t),l=e!==si.Fragment?{...o,...a,ref:s}:{},{children:h}=i,u=(0,si.useMemo)(()=>e9(h)?h.get():h,[h]);return(0,si.createElement)(e,{...l,children:u})}}(e),createVisualElement:n,Component:t})}));function nh({className:t,as:e="h2",dark:i=!1,...s}){return a.jsx(e,{...s,"data-dark":i?"true":void 0,className:(0,o.W)(t,"font-mono text-xs/5 font-semibold uppercase tracking-widest text-gray-500 data-[dark]:text-gray-400")})}var nu=i(7106);function nd(){function t({dark:t=!1,className:e="",eyebrow:i,title:s,description:r,graphic:n,fade:l=[],link:h="/"}){return(0,a.jsxs)(nl.div,{initial:"idle",whileHover:"active",variants:{idle:{},active:{}},"data-dark":t?"true":void 0,className:(0,o.W)(e,"group relative flex flex-col overflow-hidden rounded-lg","bg-white shadow-sm ring-1 ring-black/5","data-[dark]:bg-gray-800 data-[dark]:ring-white/15"),children:[(0,a.jsxs)("div",{className:"relative h-80 pb-20 shrink-0",children:[n,l.includes("top")&&a.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-white to-50% group-data-[dark]:from-gray-800 group-data-[dark]:from-[-25%]"}),l.includes("bottom")&&a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-white to-50% group-data-[dark]:from-gray-800 group-data-[dark]:from-[-25%]"})]}),(0,a.jsxs)("div",{className:"relative p-10",children:[a.jsx(nh,{as:"h3",dark:t,children:i}),a.jsx("p",{className:"mt-1 text-2xl/8 font-medium tracking-tight text-gradient-dark group-data-[dark]:text-white",children:s}),a.jsx("p",{className:"mt-2 max-w-[600px] text-sm/6 text-gray-600 group-data-[dark]:text-gray-400",children:r}),(0,a.jsxs)("a",{href:h,className:"lg:text-xs mt-4 text-sm font-mono text-cyan-600 hover:text-purple-600",children:["Learn More ",a.jsx("span",{"aria-hidden":"true",children:"→"})]})]})]})}return(0,a.jsxs)(nu.W,{children:[(0,a.jsxs)("div",{className:"relative pt-24 z-10 mx-auto max-w-2xl lg:mx-0 lg:max-w-5xl lg:pr-24",children:[a.jsx("h2",{className:"text-base font-medium font-mono leading-7 text-cyan-700",children:"Features"}),a.jsx("h2",{className:"mt-2 h3-title",children:"Collaboration & Creation Tools"}),a.jsx("p",{className:"mt-4 section-text",children:"Transform how you and your team work together with our innovative, real-time creative tools."})]}),(0,a.jsxs)("div",{className:"mt-10 grid grid-cols-1 gap-4 sm:mt-16 lg:grid-cols-6 lg:grid-rows-2",children:[a.jsx(t,{eyebrow:"Creativity",title:"3D Collaboration Tools",description:"Transform how you and your team work together with our innovative, real-time creative tools.",graphic:a.jsx("div",{className:"h-80 bg-[url(/images/collaborate.jpg)] bg-cover bg-center bg-no-repeat"}),fade:["bottom"],className:"max-lg:rounded-t-4xl lg:col-span-3 lg:rounded-tl-4xl",link:"/features"}),a.jsx(t,{eyebrow:"Connected Experiences",title:"OurVerse Studio",description:"Elevate your virtual conferences with cutting-edge communication features designed to keep your audience connected and engaged.",graphic:a.jsx("div",{className:"h-80 bg-[url(/images/studio.jpg)] bg-cover bg-center bg-no-repeat"}),fade:["bottom"],className:"lg:col-span-3 lg:rounded-tr-4xl",link:"/features"}),a.jsx(t,{eyebrow:"3D Modeling",title:"Verse Builder Pro",description:"Create and customize your virtual world with powerful tools that make building and managing your digital space easy and intuitive.",graphic:a.jsx("div",{className:"h-80 bg-[url(/images/builder.jpg)] bg-cover bg-center bg-no-repeat"}),fade:["bottom"],className:"lg:col-span-2 lg:rounded-bl-4xl"}),a.jsx(t,{eyebrow:"Next-Gen Interactions",title:"Virtual Meeting Tools",description:"Elevate your virtual interactions with cutting-edge communication features designed to keep you connected and engaged..",graphic:a.jsx("div",{className:"h-80 bg-[url(/images/communicate.jpg)] bg-cover bg-center bg-no-repeat"}),fade:["bottom"],className:"lg:col-span-2",link:"/features"}),a.jsx(t,{eyebrow:"Business Platform",title:"Integrated CRM",description:"Manage customer interactions, tasks, and meetings seamlessly in one platform, helping your business transition smoothly to the digital landscape.",graphic:a.jsx("div",{className:"h-80 bg-[url(/images/crm.png)] bg-cover bg-center bg-no-repeat"}),fade:["bottom"],className:"max-lg:rounded-b-4xl lg:col-span-2 lg:rounded-br-4xl",link:"/features"})]})]})}},2280:(t,e,i)=>{"use strict";i.d(e,{Product:()=>o});var s=i(326);i(7577);var r=i(2823),n=i(7106);let a=[{id:1,name:"Enhancing Education",color:"Transform traditional education with immersive distance learning opportunities",href:"#",imageSrc:"/images/education.jpg",imageAlt:"classroom"},{id:2,name:"Environmental Awareness",color:"Advocate for environmental conservation through virtual eco-tours & initiatives.",href:"#",imageSrc:"/images/environment.jpg",imageAlt:"environment"},{id:3,name:"Supporting Healthcare",color:"Innovate healthcare delivery by integrating virtual consultations & tools.",href:"#",imageSrc:"/images/healthcare.jpg",imageAlt:"clinic"},{id:4,name:"Empowering Africa",color:"Foster cultural and economic growth across Africa through virtual solutions.",href:"#",imageSrc:"/images/africa.jpg",imageAlt:"africa"}];function o(){return(0,s.jsxs)("section",{id:"schedule","aria-label":"Schedule",className:"py-8 lg:py-24 mb-12",children:[s.jsx(n.W,{className:"relative z-10",children:(0,s.jsxs)("div",{className:"mx-auto max-w-2xl lg:mx-0 lg:max-w-4xl lg:pr-24",children:[s.jsx("h2",{className:"text-base font-medium font-mono leading-7 text-cyan-700",children:"Usecases"}),s.jsx("h2",{className:"mt-2 h3-title",children:"Transforming Possibilities Across Industries Digitally"}),s.jsx("p",{className:"mt-4 section-text",children:"Explore diverse scenarios where our platform empowers users to create, collaborate, and innovate in immersive virtual environments, unlocking new potentials across industries and communities."})]})}),(0,s.jsxs)("div",{className:"relative lg:mt-14 mt-16",children:[s.jsx(r.X,{position:"right",className:"-bottom-32 -top-40"}),s.jsx(n.W,{className:"relative",children:s.jsx("div",{className:"mt-4 grid grid-cols-1 gap-y-12 sm:grid-cols-2 sm:gap-x-6 lg:grid-cols-4 xl:gap-x-8",children:a.map(t=>s.jsx("div",{children:(0,s.jsxs)("div",{className:"relative",children:[s.jsx("div",{className:"relative h-full w-full overflow-hidden rounded-sm",children:s.jsx("img",{alt:t.imageAlt,src:t.imageSrc,className:"h-full w-full object-cover object-center"})}),(0,s.jsxs)("div",{className:"relative mt-4",children:[s.jsx("h3",{className:"lg:text-base text-lg font-medium text-cyan-700",children:t.name}),s.jsx("p",{className:"mt-1 mb-2 lg:text-sm text-base text-purple-900",children:t.color}),(0,s.jsxs)("a",{href:t.href,className:"lg:text-xs text-sm font-mono text-cyan-600 hover:text-purple-600",children:["Read Usecase ",s.jsx("span",{"aria-hidden":"true",children:"→"})]})]})]})},t.id))})})]})]})}},9801:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>n});var s=i(9510),r=i(1928);function n({children:t}){return s.jsx(r.A,{children:t})}},3706:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>f});var s=i(9510);i(1312);var r=i(4125);function n({children:t,className:e=""}){return s.jsx("div",{className:`relative ${e}`,style:{background:"linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(253,253,253,0) 80%)"},children:t})}function a(){return s.jsx(n,{className:"lg:pt-24 pt-20 pb-12",children:(0,s.jsxs)(r.W,{children:[(0,s.jsxs)("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"absolute inset-0 w-full h-full object-cover -z-10",children:[s.jsx("source",{src:"/videos/ourverse5.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,s.jsxs)("div",{className:"mx-auto max-w-xl lg:max-w-6xl",children:[s.jsx("h1",{className:"font-display lg:max-w-2xl font-bold tracking-tighter text-gradient-dark lg:text-7xl text-5xl",children:"The Future of Collaboration is Now."}),(0,s.jsxs)("div",{className:"lg:max-w-3xl max-w-2xl my-6 space-y-6 font-display font-medium lg:text-2xl text-xl tracking-tight leading-normal text-purple-800",children:[(0,s.jsxs)("p",{children:["At ",s.jsx("span",{className:"bg-gradient3 font-semibold",children:"OurVerse"}),", we go beyond traditional video calls. Our immersive metaverse platform brings people together in a dynamic, interactive environment where meetings and events feel real."]}),s.jsx("p",{children:"Built on the decentralized ThreeFold Grid, we empower global collaboration with enhanced security, flexibility, and freedom."})]}),(0,s.jsxs)("div",{className:"mt-10 pb-8 flex items-center gap-x-6",children:[s.jsx("a",{href:"#",className:"rounded-2xl btn-gradient-dark px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-purple-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-purple-500",children:"Join OurVerse"}),(0,s.jsxs)("a",{href:"#",className:"text-sm font-semibold leading-6 text-purple-900 hover:text-purple-700",children:["Learn more ",s.jsx("span",{"aria-hidden":"true",children:"→"})]})]})]})]})})}i(1159);var o=i(7186);let l=[{name:"Early Online Collaboration",description:"In the early days, digital collaboration was limited to basic tools like email and simple chat platforms. Communication was often slow, and interactions were minimal.",date:"Phase I",dateTime:"2021-08"},{name:"The Rise of Video Conferencing",description:"With the advent of video conferencing tools like Zoom and Microsoft Teams, people could interact face-to-face online.",date:"Phase II",dateTime:"2021-12"},{name:"Persistent Barriers",description:"Despite technological advances, many still struggle to meet and collaborate due to lack of access to reliable tools or infrastructure.",date:"Phase III",dateTime:"2022-02"},{name:"The OurVerse Solution",description:"OurVerse introduces a fully immersive metaverse platform that makes collaboration accessible to all, enabling dynamic interactions and creativity beyond borders.",date:"Phase IV",dateTime:"2022-12"},{name:"Unlimited Possibilities",description:"With OurVerse, you can create your own immersive virtual world as you envision it, making collaboration inclusive and without limits—the future is now.",date:"Phase V",dateTime:"2022-12"}];function h(){return(0,s.jsxs)("div",{className:"relative lg:py-12 mt-20 pb-12 pt-12",children:[s.jsx(o.X,{className:"-bottom-14 -top-20"}),(0,s.jsxs)(r.W,{className:"relative",children:[(0,s.jsxs)("div",{className:"mx-auto max-w-2xl lg:max-w-4xl lg:px-12",children:[s.jsx("h2",{className:"font-display lg:text-6xl text-4xl font-semibold leading-normal tracking-tighter text-gradient-dark",children:"OurVerse"}),s.jsx("h1",{className:"lg:mt-2 mt-0 font-display lg:text-2xl text-lg font-semibold tracking-tight text-gradient-dark",children:"Powered by ThreeFold"}),(0,s.jsxs)("div",{className:"mt-4 space-y-6 mx-4 font-display section-text",children:[(0,s.jsxs)("p",{children:[s.jsx("span",{className:"emphasis",children:"OurVerse"})," empowers users to build, manage, and monetize their unique virtual experiences by blending the latest advancements in blockchain technology with immersive virtual reality, built on top of the ",s.jsx("span",{className:"emphasis",children:"ThreeFold Grid"}),"."]}),(0,s.jsxs)("p",{children:["Our mission is to make the metaverse accessible to all, fostering a creative, collaborative, and equitable digital community. By leveraging ",s.jsx("span",{className:"emphasis",children:"ThreeFold Grid"}),"'s decentralized infrastructure, we aim to provide a platform where data confidentiality, scalability, and independence are paramount."]})]}),s.jsx("dl",{className:"mt-10 grid grid-cols-2 gap-x-10 gap-y-4 gap-x-16 gap-y-10 text-center lg:auto-cols-auto lg:grid-flow-col lg:grid-cols-none lg:justify-start lg:text-left",children:[["3D Assets","100000+"],["Users","5000+"],["Verses","2000+"],["Countries","15"]].map(([t,e])=>(0,s.jsxs)("div",{children:[s.jsx("dt",{className:"font-mono text-sm text-cyan-600",children:t}),s.jsx("dd",{className:"mt-0.5 text-2xl font-semibold tracking-tight text-gradient-dark",children:e})]},t))})]}),s.jsx("div",{className:"pt-6 pb-24"}),(0,s.jsxs)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:[s.jsx("h2",{className:"lg:text-4xl font-semibold tracking-tight leading-normal text-gradient-dark text-xl",children:"A Journey to The Future"}),s.jsx("div",{className:"mt-4 mb-12 space-y-6 font-display section-text",children:"A journey through five transformative phases of digital collaboration, culminating in OurVerse—the immersive metaverse platform breaking down barriers and unlocking unlimited possibilities for global connection."}),s.jsx("div",{className:"mx-auto grid max-w-2xl grid-cols-1 gap-8 overflow-hidden lg:mx-0 lg:max-w-none lg:grid-cols-5",children:l.map(t=>(0,s.jsxs)("div",{children:[(0,s.jsxs)("time",{dateTime:t.dateTime,className:"flex items-center text-sm font-semibold leading-6 text-cyan-600",children:[s.jsx("svg",{viewBox:"0 0 4 4","aria-hidden":"true",className:"mr-4 h-1 w-1 flex-none",children:s.jsx("circle",{r:2,cx:2,cy:2,fill:"currentColor"})}),t.date,s.jsx("div",{"aria-hidden":"true",className:"absolute -ml-2 h-px w-screen -translate-x-full bg-purple-900/10 sm:-ml-4 lg:static lg:-mr-6 lg:ml-8 lg:w-auto lg:flex-auto lg:translate-x-0"})]}),s.jsx("p",{className:"mt-6 text-lg font-semibold leading-6 tracking-tight text-purple-700",children:t.name}),s.jsx("p",{className:"mt-4 text-sm leading-6 text-purple-900",children:t.description})]},t.name))})]})]})]})}var u=i(7395),d=i(8570);let c=(0,d.createProxy)(String.raw`D:\github\ourverse_new\src\components\Product.jsx#Product`);var m=i(967);let p=(0,d.createProxy)(String.raw`D:\github\ourverse_new\src\components\Bentosection.jsx#default`);function f(){return(0,s.jsxs)(s.Fragment,{children:[s.jsx(a,{}),s.jsx(m.d,{}),s.jsx(h,{}),s.jsx(p,{}),s.jsx(c,{}),s.jsx(u.Z,{})]})}},7395:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var s=i(9510);let r={title:"FutureFest 2024",href:"/events/versefest",description:"Embrace the possibilities at FutureFest 2024, a landmark event that invites you to explore the converging worlds of technology, creativity, and sustainability.",date:"Mar 16, 2020",datetime:"2024-03-16"},n=[{id:2,title:"Building a Metaverse with Revenue: Insights from Arab Meta Summit 2022 Day 2",href:"/events/blockchainweek1",description:"At the Arab Meta Summit 2022, Christopher K, co-founder and CEO of Aviva Technologies, shared valuable insights on how to build a successful and revenue-generating metaverse.",date:"Dec 21, 2022",datetime:"2022-12-21"},{id:3,title:"Real-World Applications of the Metaverse in AR: Insights from Omrei Abu Madi at the Arab Meta Summit 2022",href:"/events/blockchainweek2",description:"During Day 1 of the Arab Meta Summit 2022, Omrei Abu Madi, a visionary in both the tech and tourism industries, discussed the real-world applications of the Metaverse, particularly focusing on Augmented Reality (AR).",date:"Dec 18, 2022",datetime:"2020-12-18"}];function a(){return s.jsx("div",{className:"bg-white pt-12 pb-24",children:(0,s.jsxs)("div",{className:"mx-auto grid max-w-7xl grid-cols-1 gap-x-8 gap-y-12 px-6 sm:gap-y-16 lg:grid-cols-2 lg:px-8",children:[(0,s.jsxs)("article",{className:"mx-auto w-full max-w-2xl lg:mx-0 lg:max-w-lg",children:[s.jsx("h2",{className:"text-base font-medium font-mono leading-7 text-cyan-600",children:"Community"}),s.jsx("h1",{className:"mt-2 mb-6 text-3xl font-semibold tracking-tighter text-gradient-dark lg:text-4xl",children:"Events"}),s.jsx("img",{alt:"",src:"/images/futurefest.jpg",className:"mt-4 aspect-auto w-full rounded-2xl bg-purple-50 object-cover lg:aspect-auto lg:h-[20.5rem]"}),s.jsx("h2",{id:"featured-post",className:"mt-8 text-3xl font-semibold tracking-tight text-cyan-700 lg:text-4xl",children:r.title}),s.jsx("time",{dateTime:r.datetime,className:"mt-2 block text-sm leading-6 text-purple-600",children:r.date}),s.jsx("p",{className:"mt-2 section-text",children:r.description}),s.jsx("div",{className:"mt-4 flex flex-col justify-between gap-6 sm:mt-8 sm:flex-row-reverse sm:gap-8 lg:mt-4 lg:flex-col",children:s.jsx("div",{className:"flex",children:(0,s.jsxs)("a",{href:r.href,"aria-describedby":"featured-post",className:"text-sm font-semibold leading-6 text-cyan-700 hover:text-purple-700 mt-2",children:["Learn More ",s.jsx("span",{"aria-hidden":"true",children:"→"})]})})})]}),s.jsx("div",{className:"mx-auto w-full max-w-2xl border-t border-purple-900/10 pt-12 sm:pt-16 lg:mx-0 lg:max-w-none lg:border-t-0 lg:pt-0",children:s.jsx("div",{className:"-my-12 divide-y divide-purple-900/10",children:n.map(t=>(0,s.jsxs)("article",{className:"py-12",children:[(0,s.jsxs)("div",{className:"group relative max-w-xl",children:[s.jsx("time",{dateTime:t.datetime,className:"block text-sm leading-6 text-purple-600",children:t.date}),s.jsx("h2",{className:"mt-2 text-lg font-semibold text-cyan-700 group-hover:text-purple-700",children:(0,s.jsxs)("a",{href:t.href,children:[s.jsx("span",{className:"absolute inset-0"}),t.title]})}),s.jsx("p",{className:"mt-4 text-sm leading-6 text-purple-600",children:t.description})]}),s.jsx("div",{className:"mt-4 flex",children:(0,s.jsxs)("a",{href:t.href,"aria-describedby":"post",className:"text-sm font-semibold leading-6 text-cyan-700 hover:text-purple-700 mt-2",children:["Learn More ",s.jsx("span",{"aria-hidden":"true",children:"→"})]})})]},t.id))})})]})})}},967:(t,e,i)=>{"use strict";i.d(e,{d:()=>u});var s=i(9510),r=i(7710),n=i(4125);let a={src:"/_next/static/media/statickit.f39ab0e3.svg",height:48,width:105,blurWidth:0,blurHeight:0},o={src:"/_next/static/media/transistor.20c106ae.svg",height:48,width:105,blurWidth:0,blurHeight:0},l={src:"/_next/static/media/tuple.7c6d6466.svg",height:48,width:105,blurWidth:0,blurHeight:0},h=[{name:"Transistor",logo:o},{name:"Tuple",logo:l},{name:"StaticKit",logo:a},{name:"Mirage",logo:{src:"/_next/static/media/mirage.b4872b78.svg",height:48,width:105,blurWidth:0,blurHeight:0}},{name:"Transistor",logo:o},{name:"Tuple",logo:l},{name:"StaticKit",logo:a}];function u(){return s.jsx("section",{id:"sponsors","aria-label":"Sponsors",className:"mb-4 overflow-hidden",children:s.jsx(n.W,{className:"mt-2 pt-2",children:s.jsx("div",{className:"animate-slide flex space-x-8 items-center lg:h-40 h-25",children:h.concat(h).map((t,e)=>s.jsx("div",{className:"flex items-center justify-center lg:h-40 lg:w-40 h-25 w-25",children:s.jsx(r.default,{src:t.logo,alt:t.name,layout:"intrinsic",width:150,height:150})},e))})})})}},6145:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>s});let s={src:"/_next/static/media/mirage.b4872b78.svg",height:48,width:105,blurWidth:0,blurHeight:0}},4307:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>s});let s={src:"/_next/static/media/statickit.f39ab0e3.svg",height:48,width:105,blurWidth:0,blurHeight:0}},2402:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>s});let s={src:"/_next/static/media/transistor.20c106ae.svg",height:48,width:105,blurWidth:0,blurHeight:0}},776:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>s});let s={src:"/_next/static/media/tuple.7c6d6466.svg",height:48,width:105,blurWidth:0,blurHeight:0}}};var e=require("../../webpack-runtime.js");e.C(t);var i=t=>e(e.s=t),s=e.X(0,[576,247],()=>i(5176));module.exports=s})(); |