Files
valgo/_next/static/chunks/367-3b480e80856df32c.js
T

1 line
220 KiB
JavaScript

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[367],{101:(e,t,n)=>{n.d(t,{A:()=>G});var r,i,o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}Object.create;Object.create;var a=("function"==typeof SuppressedError&&SuppressedError,n(2115)),l="right-scroll-bar-position",u="width-before-scroll-bar";function c(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var d="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,h=new WeakMap;function f(e){return e}var p=function(e){void 0===e&&(e={});var t,n,r,i=(void 0===t&&(t=f),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},s=function(){return Promise.resolve().then(o)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}});return i.options=o({async:!0,ssr:!1},e),i}(),m=function(){},v=a.forwardRef(function(e,t){var n,r,i,l,u=a.useRef(null),f=a.useState({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:m}),v=f[0],g=f[1],y=e.forwardProps,b=e.children,x=e.className,w=e.removeScrollBar,P=e.enabled,E=e.shards,S=e.sideCar,A=e.noIsolation,T=e.inert,C=e.allowPinchZoom,R=e.as,M=e.gapMode,k=s(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=(n=[u,t],r=function(e){return n.forEach(function(t){return c(t,e)})},(i=(0,a.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,l=i.facade,d(function(){var e=h.get(l);if(e){var t=new Set(e),r=new Set(n),i=l.current;t.forEach(function(e){r.has(e)||c(e,null)}),r.forEach(function(e){t.has(e)||c(e,i)})}h.set(l,n)},[n]),l),j=o(o({},k),v);return a.createElement(a.Fragment,null,P&&a.createElement(S,{sideCar:p,removeScrollBar:w,shards:E,noIsolation:A,inert:T,setCallbacks:g,allowPinchZoom:!!C,lockRef:u,gapMode:M}),y?a.cloneElement(a.Children.only(b),o(o({},j),{ref:D})):a.createElement(void 0===R?"div":R,o({},j,{className:x,ref:D}),b))});v.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},v.classNames={fullWidth:u,zeroRight:l};var g=function(e){var t=e.sideCar,n=s(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return a.createElement(r,o({},n))};g.isSideCarExport=!0;var y=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,s;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),s=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(s)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},b=function(){var e=y();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},x=function(){var e=b();return function(t){return e(t.styles,t.dynamic),null}},w={left:0,top:0,right:0,gap:0},P=function(e){return parseInt(e||"",10)||0},E=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[P(n),P(r),P(i)]},S=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return w;var t=E(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},A=x(),T="data-scroll-locked",C=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(T,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(l," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(u," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(l," .").concat(l," {\n right: 0 ").concat(r,";\n }\n \n .").concat(u," .").concat(u," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(T,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},R=function(){var e=parseInt(document.body.getAttribute(T)||"0",10);return isFinite(e)?e:0},M=function(){a.useEffect(function(){return document.body.setAttribute(T,(R()+1).toString()),function(){var e=R()-1;e<=0?document.body.removeAttribute(T):document.body.setAttribute(T,e.toString())}},[])},k=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;M();var o=a.useMemo(function(){return S(i)},[i]);return a.createElement(A,{styles:C(o,!t,i,n?"":"!important")})},D=!1;if("undefined"!=typeof window)try{var j=Object.defineProperty({},"passive",{get:function(){return D=!0,!0}});window.addEventListener("test",j,j),window.removeEventListener("test",j,j)}catch(e){D=!1}var L=!!D&&{passive:!1},O=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},V=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),F(e,r)){var i=N(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},F=function(e,t){return"v"===e?O(t,"overflowY"):O(t,"overflowX")},N=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},I=function(e,t,n,r,i){var o,s=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),a=s*r,l=n.target,u=t.contains(l),c=!1,d=a>0,h=0,f=0;do{var p=N(e,l),m=p[0],v=p[1]-p[2]-s*m;(m||v)&&F(e,l)&&(h+=v,f+=m),l=l instanceof ShadowRoot?l.host:l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(h)||!i&&a>h)?c=!0:!d&&(i&&1>Math.abs(f)||!i&&-a>f)&&(c=!0),c},B=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_=function(e){return[e.deltaX,e.deltaY]},U=function(e){return e&&"current"in e?e.current:e},z=0,W=[];let $=(r=function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),i=a.useState(z++)[0],o=a.useState(x)[0],s=a.useRef(e);a.useEffect(function(){s.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(U),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var i,o=B(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-o[0],u="deltaY"in e?e.deltaY:a[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var h=V(d,c);if(!h)return!0;if(h?i=d:(i="v"===d?"h":"v",h=V(d,c)),!h)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var f=r.current||i;return I(f,t,e,"h"===f?l:u,!0)},[]),u=a.useCallback(function(e){if(W.length&&W[W.length-1]===o){var n="deltaY"in e?_(e):B(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(s.current.shards||[]).map(U).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?l(e,i[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=a.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=a.useCallback(function(e){n.current=B(e),r.current=void 0},[]),h=a.useCallback(function(t){c(t.type,_(t),t.target,l(t,e.lockRef.current))},[]),f=a.useCallback(function(t){c(t.type,B(t),t.target,l(t,e.lockRef.current))},[]);a.useEffect(function(){return W.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",u,L),document.addEventListener("touchmove",u,L),document.addEventListener("touchstart",d,L),function(){W=W.filter(function(e){return e!==o}),document.removeEventListener("wheel",u,L),document.removeEventListener("touchmove",u,L),document.removeEventListener("touchstart",d,L)}},[]);var p=e.removeScrollBar,m=e.inert;return a.createElement(a.Fragment,null,m?a.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?a.createElement(k,{gapMode:e.gapMode}):null)},p.useMedium(r),g);var H=a.forwardRef(function(e,t){return a.createElement(v,o({},e,{ref:t,sideCar:$}))});H.classNames=v.classNames;let G=H},222:(e,t,n)=>{n.d(t,{c:()=>i});var r=n(2115);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},296:(e,t,n)=>{n.d(t,{L:()=>r});let r=(0,n(2115).createContext)({})},1408:(e,t,n)=>{n.d(t,{N:()=>g});var r=n(5155),i=n(2115),o=n(296),s=n(4416),a=n(9686),l=n(3127);class u extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c(e){let{children:t,isPresent:n}=e,o=(0,i.useId)(),s=(0,i.useRef)(null),a=(0,i.useRef)({width:0,height:0,top:0,left:0}),{nonce:c}=(0,i.useContext)(l.Q);return(0,i.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:i}=a.current;if(n||!s.current||!e||!t)return;s.current.dataset.motionPopId=o;let l=document.createElement("style");return c&&(l.nonce=c),document.head.appendChild(l),l.sheet&&l.sheet.insertRule('\n [data-motion-pop-id="'.concat(o,'"] {\n position: absolute !important;\n width: ').concat(e,"px !important;\n height: ").concat(t,"px !important;\n top: ").concat(r,"px !important;\n left: ").concat(i,"px !important;\n }\n ")),()=>{document.head.removeChild(l)}},[n]),(0,r.jsx)(u,{isPresent:n,childRef:s,sizeRef:a,children:i.cloneElement(t,{ref:s})})}let d=e=>{let{children:t,initial:n,isPresent:o,onExitComplete:l,custom:u,presenceAffectsLayout:d,mode:f}=e,p=(0,s.M)(h),m=(0,i.useId)(),v=(0,i.useCallback)(e=>{for(let t of(p.set(e,!0),p.values()))if(!t)return;l&&l()},[p,l]),g=(0,i.useMemo)(()=>({id:m,initial:n,isPresent:o,custom:u,onExitComplete:v,register:e=>(p.set(e,!1),()=>p.delete(e))}),d?[Math.random(),v]:[o,v]);return(0,i.useMemo)(()=>{p.forEach((e,t)=>p.set(t,!1))},[o]),i.useEffect(()=>{o||p.size||!l||l()},[o]),"popLayout"===f&&(t=(0,r.jsx)(c,{isPresent:o,children:t})),(0,r.jsx)(a.t.Provider,{value:g,children:t})};function h(){return new Map}var f=n(5601);let p=e=>e.key||"";function m(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}var v=n(6553);let g=e=>{let{children:t,custom:n,initial:a=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:c="sync",propagate:h=!1}=e,[g,y]=(0,f.xQ)(h),b=(0,i.useMemo)(()=>m(t),[t]),x=h&&!g?[]:b.map(p),w=(0,i.useRef)(!0),P=(0,i.useRef)(b),E=(0,s.M)(()=>new Map),[S,A]=(0,i.useState)(b),[T,C]=(0,i.useState)(b);(0,v.E)(()=>{w.current=!1,P.current=b;for(let e=0;e<T.length;e++){let t=p(T[e]);x.includes(t)?E.delete(t):!0!==E.get(t)&&E.set(t,!1)}},[T,x.length,x.join("-")]);let R=[];if(b!==S){let e=[...b];for(let t=0;t<T.length;t++){let n=T[t],r=p(n);x.includes(r)||(e.splice(t,0,n),R.push(n))}"wait"===c&&R.length&&(e=R),C(m(e)),A(b);return}let{forceRender:M}=(0,i.useContext)(o.L);return(0,r.jsx)(r.Fragment,{children:T.map(e=>{let t=p(e),i=(!h||!!g)&&(b===T||x.includes(t));return(0,r.jsx)(d,{isPresent:i,initial:(!w.current||!!a)&&void 0,custom:i?void 0:n,presenceAffectsLayout:u,mode:c,onExitComplete:i?void 0:()=>{if(!E.has(t))return;E.set(t,!0);let e=!0;E.forEach(t=>{t||(e=!1)}),e&&(null==M||M(),C(P.current),h&&(null==y||y()),l&&l())},children:e},t)})})}},1847:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(2115);let i=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&n.indexOf(e)===t).join(" ")};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:s=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:u="",children:c,iconNode:d,...h}=e;return(0,r.createElement)("svg",{ref:t,...o,width:s,height:s,stroke:n,strokeWidth:l?24*Number(a)/Number(s):a,className:i("lucide",u),...h},[...d.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(c)?c:[c]])}),a=(e,t)=>{let n=(0,r.forwardRef)((n,o)=>{let{className:a,...l}=n;return(0,r.createElement)(s,{ref:o,iconNode:t,className:i("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),a),...l})});return n.displayName="".concat(e),n}},2467:(e,t,n)=>{n.d(t,{DX:()=>s});var r=n(2115),i=n(4446),o=n(5155),s=r.forwardRef((e,t)=>{let{children:n,...i}=e,s=r.Children.toArray(n),l=s.find(u);if(l){let e=l.props.children,n=s.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,o.jsx)(a,{...i,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,o.jsx)(a,{...i,ref:t,children:n})});s.displayName="Slot";var a=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(n);return r.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props),ref:t?(0,i.t)(t,e):e})}return r.Children.count(n)>1?r.Children.only(null):null});a.displayName="SlotClone";var l=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});function u(e){return r.isValidElement(e)&&e.type===l}},2556:(e,t,n)=>{n.d(t,{m:()=>r});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},2821:(e,t,n)=>{n.d(t,{$:()=>r});function r(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(r&&(r+=" "),r+=t);return r}},2885:(e,t,n)=>{n.d(t,{F:()=>o});let r=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,i=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r);else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(r&&(r+=" "),r+=t);return r},o=(e,t)=>n=>{var o;if((null==t?void 0:t.variants)==null)return i(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:s,defaultVariants:a}=t,l=Object.keys(s).map(e=>{let t=null==n?void 0:n[e],i=null==a?void 0:a[e];if(null===t)return null;let o=r(t)||r(i);return s[e][o]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return i(e,l,null==t||null==(o=t.compoundVariants)?void 0:o.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...u}[t]):({...a,...u})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},3127:(e,t,n)=>{n.d(t,{Q:()=>r});let r=(0,n(2115).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},3152:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(1847).A)("Shuffle",[["path",{d:"M2 18h1.4c1.3 0 2.5-.6 3.3-1.7l6.1-8.6c.7-1.1 2-1.7 3.3-1.7H22",key:"1wmou1"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 6h1.9c1.5 0 2.9.9 3.6 2.2",key:"10bdb2"}],["path",{d:"M22 18h-5.9c-1.3 0-2.6-.7-3.3-1.8l-.5-.8",key:"vgxac0"}],["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}]])},3468:(e,t,n)=>{n.d(t,{A:()=>s,q:()=>o});var r=n(2115),i=n(5155);function o(e,t){let n=r.createContext(t);function o(e){let{children:t,...o}=e,s=r.useMemo(()=>o,Object.values(o));return(0,i.jsx)(n.Provider,{value:s,children:t})}return o.displayName=e+"Provider",[o,function(i){let o=r.useContext(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function s(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[function(t,o){let s=r.createContext(o),a=n.length;function l(t){let{scope:n,children:o,...l}=t,u=n?.[e][a]||s,c=r.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:c,children:o})}return n=[...n,o],l.displayName=t+"Provider",[l,function(n,i){let l=i?.[e][a]||s,u=r.useContext(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(o,...t)]}},3511:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(1847).A)("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]])},3558:(e,t,n)=>{n.d(t,{i:()=>o});var r=n(2115),i=n(222);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,s]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[o]=n,s=r.useRef(o),a=(0,i.c)(t);return r.useEffect(()=>{s.current!==o&&(a(o),s.current=o)},[o,s,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,l=a?e:o,u=(0,i.c)(n);return[l,r.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else s(t)},[a,e,s,u])]}},3577:(e,t,n)=>{n.d(t,{B:()=>r});let r="undefined"!=typeof window},4033:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(1847).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},4129:(e,t,n)=>{n.d(t,{N:()=>i});var r=n(2115),i=globalThis?.document?r.useLayoutEffect:()=>{}},4288:(e,t,n)=>{n.d(t,{X:()=>o});var r=n(2115),i=n(4129);function o(e){let[t,n]=r.useState(void 0);return(0,i.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}},4416:(e,t,n)=>{n.d(t,{M:()=>i});var r=n(2115);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},4446:(e,t,n)=>{n.d(t,{s:()=>o,t:()=>i});var r=n(2115);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function o(...e){return r.useCallback(i(...e),e)}},4486:(e,t,n)=>{let r;function i(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}n.d(t,{P:()=>oi});let o=e=>Array.isArray(e);function s(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function a(e){return"string"==typeof e||Array.isArray(e)}function l(e){let t=[{},{}];return null==e||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function u(e,t,n,r){if("function"==typeof t){let[i,o]=l(r);t=t(void 0!==n?n:e.custom,i,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,o]=l(r);t=t(void 0!==n?n:e.custom,i,o)}return t}function c(e,t,n){let r=e.getProps();return u(r,t,void 0!==n?n:r.custom,e)}let d=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],h=["initial",...d];function f(e){let t;return()=>(void 0===t&&(t=e()),t)}let p=f(()=>void 0!==window.ScrollTimeline);class m{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){let n=this.animations.map(n=>p()&&n.attachTimeline?n.attachTimeline(e):"function"==typeof t?t(n):void 0);return()=>{n.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class v extends m{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function g(e,t){return e?e[t]||e.default||e:void 0}function y(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function b(e){return"function"==typeof e}function x(e,t){e.timeline=t,e.onfinish=null}let w=e=>Array.isArray(e)&&"number"==typeof e[0],P={linearEasing:void 0},E=function(e,t){let n=f(e);return()=>{var e;return null!=(e=P[t])?e:n()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),S=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},A=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=e(S(0,i-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`},T=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,C={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:T([0,.65,.55,1]),circOut:T([.55,0,1,.45]),backIn:T([.31,.01,.66,-.59]),backOut:T([.33,1.53,.69,.99])},R={x:!1,y:!1};function M(e,t){let n=function(e,t,n){if(e instanceof Element)return[e];if("string"==typeof e){let t=document.querySelectorAll(e);return t?Array.from(t):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function k(e){return t=>{"touch"===t.pointerType||R.x||R.y||e(t)}}let D=(e,t)=>!!t&&(e===t||D(e,t.parentElement)),j=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,L=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),O=new WeakSet;function V(e){return t=>{"Enter"===t.key&&e(t)}}function F(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function N(e){return j(e)&&!(R.x||R.y)}let I=e=>1e3*e,B=e=>e,_=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],U=new Set(_),z=new Set(["width","height","top","left","right","bottom",..._]),W=e=>o(e)?e[e.length-1]||0:e,$={skipAnimations:!1,useManualTiming:!1},H=["read","resolveKeyframes","update","preRender","render","postRender"];function G(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=H.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,i=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function a(t){o.has(t)&&(l.schedule(t),e()),t(s)}let l={schedule:(e,i=!1,s=!1)=>{let a=s&&r?t:n;return i&&o.add(e),a.has(e)||a.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(s=e,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,i&&(i=!1,l.process(e))}};return l}(o),e),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:h}=s,f=()=>{let o=$.useManualTiming?i.timestamp:performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,40),1),i.timestamp=o,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),h.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(f))};return{schedule:H.reduce((t,o)=>{let a=s[o];return t[o]=(t,o=!1,s=!1)=>(!n&&(n=!0,r=!0,i.isProcessing||e(f)),a.schedule(t,o,s)),t},{}),cancel:e=>{for(let t=0;t<H.length;t++)s[H[t]].cancel(e)},state:i,steps:s}}let{schedule:K,cancel:X,state:Y,steps:q}=G("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:B,!0);function Z(){r=void 0}let Q={now:()=>(void 0===r&&Q.set(Y.isProcessing||$.useManualTiming?Y.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(Z)}};function J(e,t){-1===e.indexOf(t)&&e.push(t)}function ee(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class et{constructor(){this.subscriptions=[]}add(e){return J(this.subscriptions,e),()=>ee(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let en={current:void 0};class er{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let n=Q.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Q.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new et);let n=this.events[e].add(t);return"change"===e?()=>{n(),K.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return en.current&&en.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=Q.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ei(e,t){return new er(e,t)}let eo=e=>!!(e&&e.getVelocity);function es(e,t){let n=e.getValue("willChange");if(eo(n)&&n.add)return n.add(t)}let ea=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),el="data-"+ea("framerAppearId"),eu={current:!1},ec=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function ed(e,t,n,r){return e===t&&n===r?B:i=>0===i||1===i?i:ec(function(e,t,n,r,i){let o,s,a=0;do(o=ec(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s;while(Math.abs(o)>1e-7&&++a<12);return s}(i,0,1,e,n),t,r)}let eh=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ef=e=>t=>1-e(1-t),ep=ed(.33,1.53,.69,.99),em=ef(ep),ev=eh(em),eg=e=>(e*=2)<1?.5*em(e):.5*(2-Math.pow(2,-10*(e-1))),ey=e=>1-Math.sin(Math.acos(e)),eb=ef(ey),ex=eh(ey),ew=e=>/^0[^.\s]+$/u.test(e),eP=(e,t,n)=>n>t?t:n<e?e:n,eE={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},eS={...eE,transform:e=>eP(0,1,e)},eA={...eE,default:1},eT=e=>Math.round(1e5*e)/1e5,eC=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,eR=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,eM=(e,t)=>n=>!!("string"==typeof n&&eR.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),ek=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[i,o,s,a]=r.match(eC);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},eD={...eE,transform:e=>Math.round(eP(0,255,e))},ej={test:eM("rgb","red"),parse:ek("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+eD.transform(e)+", "+eD.transform(t)+", "+eD.transform(n)+", "+eT(eS.transform(r))+")"},eL={test:eM("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:ej.transform},eO=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),eV=eO("deg"),eF=eO("%"),eN=eO("px"),eI=eO("vh"),eB=eO("vw"),e_={...eF,parse:e=>eF.parse(e)/100,transform:e=>eF.transform(100*e)},eU={test:eM("hsl","hue"),parse:ek("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+eF.transform(eT(t))+", "+eF.transform(eT(n))+", "+eT(eS.transform(r))+")"},ez={test:e=>ej.test(e)||eL.test(e)||eU.test(e),parse:e=>ej.test(e)?ej.parse(e):eU.test(e)?eU.parse(e):eL.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?ej.transform(e):eU.transform(e)},eW=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,e$="number",eH="color",eG=/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 eK(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],o=0,s=t.replace(eG,e=>(ez.test(e)?(r.color.push(o),i.push(eH),n.push(ez.parse(e))):e.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(e)):(r.number.push(o),i.push(e$),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:s,indexes:r,types:i}}function eX(e){return eK(e).values}function eY(e){let{split:t,types:n}=eK(e),r=t.length;return e=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],void 0!==e[o]){let t=n[o];t===e$?i+=eT(e[o]):t===eH?i+=ez.transform(e[o]):i+=e[o]}return i}}let eq=e=>"number"==typeof e?0:e,eZ={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null==(t=e.match(eC))?void 0:t.length)||0)+((null==(n=e.match(eW))?void 0:n.length)||0)>0},parse:eX,createTransformer:eY,getAnimatableNone:function(e){let t=eX(e);return eY(e)(t.map(eq))}},eQ=new Set(["brightness","contrast","saturate","opacity"]);function eJ(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(eC)||[];if(!r)return e;let i=n.replace(r,""),o=+!!eQ.has(t);return r!==n&&(o*=100),t+"("+o+i+")"}let e0=/\b([a-z-]*)\(.*?\)/gu,e1={...eZ,getAnimatableNone:e=>{let t=e.match(e0);return t?t.map(eJ).join(" "):e}},e2={...eE,transform:Math.round},e5={borderWidth:eN,borderTopWidth:eN,borderRightWidth:eN,borderBottomWidth:eN,borderLeftWidth:eN,borderRadius:eN,radius:eN,borderTopLeftRadius:eN,borderTopRightRadius:eN,borderBottomRightRadius:eN,borderBottomLeftRadius:eN,width:eN,maxWidth:eN,height:eN,maxHeight:eN,top:eN,right:eN,bottom:eN,left:eN,padding:eN,paddingTop:eN,paddingRight:eN,paddingBottom:eN,paddingLeft:eN,margin:eN,marginTop:eN,marginRight:eN,marginBottom:eN,marginLeft:eN,backgroundPositionX:eN,backgroundPositionY:eN,rotate:eV,rotateX:eV,rotateY:eV,rotateZ:eV,scale:eA,scaleX:eA,scaleY:eA,scaleZ:eA,skew:eV,skewX:eV,skewY:eV,distance:eN,translateX:eN,translateY:eN,translateZ:eN,x:eN,y:eN,z:eN,perspective:eN,transformPerspective:eN,opacity:eS,originX:e_,originY:e_,originZ:eN,zIndex:e2,size:eN,fillOpacity:eS,strokeOpacity:eS,numOctaves:e2},e4={...e5,color:ez,backgroundColor:ez,outlineColor:ez,fill:ez,stroke:ez,borderColor:ez,borderTopColor:ez,borderRightColor:ez,borderBottomColor:ez,borderLeftColor:ez,filter:e1,WebkitFilter:e1},e6=e=>e4[e];function e3(e,t){let n=e6(e);return n!==e1&&(n=eZ),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let e9=new Set(["auto","none","0"]),e8=e=>e===eE||e===eN,e7=(e,t)=>parseFloat(e.split(", ")[t]),te=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/u);if(i)return e7(i[1],t);{let t=r.match(/^matrix\((.+)\)$/u);return t?e7(t[1],e):0}},tt=new Set(["x","y","z"]),tn=_.filter(e=>!tt.has(e)),tr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:te(4,13),y:te(5,14)};tr.translateX=tr.x,tr.translateY=tr.y;let ti=new Set,to=!1,ts=!1;function ta(){if(ts){let e=Array.from(ti).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=function(e){let t=[];return tn.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{var r;null==(r=e.getValue(t))||r.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}ts=!1,to=!1,ti.forEach(e=>e.complete()),ti.clear()}function tl(){ti.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ts=!0)})}class tu{constructor(e,t,n,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ti.add(this),to||(to=!0,K.read(tl),K.resolveKeyframes(ta))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let i=0;i<e.length;i++)if(null===e[i])if(0===i){let i=null==r?void 0:r.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}else e[i]=e[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ti.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ti.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let tc=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),td=e=>t=>"string"==typeof t&&t.startsWith(e),th=td("--"),tf=td("var(--"),tp=e=>!!tf(e)&&tm.test(e.split("/*")[0].trim()),tm=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,tv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tg=e=>t=>t.test(e),ty=[eE,eN,eF,eV,eB,eI,{test:e=>"auto"===e,parse:e=>e}],tb=e=>ty.find(tg(e));class tx extends tu{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&tp(r=r.trim())){let i=function e(t,n,r=1){B(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,o]=function(e){let t=tv.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${null!=n?n:r}`,i]}(t);if(!i)return;let s=window.getComputedStyle(n).getPropertyValue(i);if(s){let e=s.trim();return tc(e)?parseFloat(e):e}return tp(o)?e(o,n,r+1):o}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!z.has(n)||2!==e.length)return;let[r,i]=e,o=tb(r),s=tb(i);if(o!==s)if(e8(o)&&e8(s))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++){var r;("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||ew(r))&&n.push(t)}n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!e9.has(t)&&eK(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=e3(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tr[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;let{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;let i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);let o=r.length-1,s=r[o];r[o]=tr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null==(e=this.removedTransforms)?void 0:e.length)&&this.removedTransforms.forEach(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}let tw=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eZ.test(e)||"0"===e)&&!e.startsWith("url(")),tP=e=>null!==e;function tE(e,{repeat:t,repeatType:n="loop"},r){let i=e.filter(tP),o=t&&"loop"!==n&&t%2==1?0:i.length-1;return o&&void 0!==r?r:i[o]}class tS{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Q.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(tl(),ta()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=Q.now(),this.hasAttemptedResolve=!0;let{name:n,type:r,velocity:i,delay:o,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],s=tw(i,t),a=tw(o,t);return B(s===a,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!!s&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||b(n))&&r)}(e,n,r,i))if(eu.current||!o){a&&a(tE(e,this.options,t)),s&&s(),this.resolveFinishedPromise();return}else this.options.duration=0;let u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}let tA=(e,t,n)=>e+(t-e)*n;function tT(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function tC(e,t){return n=>n>0?t:e}let tR=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},tM=[eL,ej,eU];function tk(e){let t=tM.find(t=>t.test(e));if(B(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===eU&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,s=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;i=tT(a,r,e+1/3),o=tT(a,r,e),s=tT(a,r,e-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(n)),n}let tD=(e,t)=>{let n=tk(e),r=tk(t);if(!n||!r)return tC(e,t);let i={...n};return e=>(i.red=tR(n.red,r.red,e),i.green=tR(n.green,r.green,e),i.blue=tR(n.blue,r.blue,e),i.alpha=tA(n.alpha,r.alpha,e),ej.transform(i))},tj=(e,t)=>n=>t(e(n)),tL=(...e)=>e.reduce(tj),tO=new Set(["none","hidden"]);function tV(e,t){return n=>tA(e,t,n)}function tF(e){return"number"==typeof e?tV:"string"==typeof e?tp(e)?tC:ez.test(e)?tD:tB:Array.isArray(e)?tN:"object"==typeof e?ez.test(e)?tD:tI:tC}function tN(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>tF(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function tI(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=tF(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let tB=(e,t)=>{let n=eZ.createTransformer(t),r=eK(e),i=eK(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?tO.has(e)&&!i.values.length||tO.has(t)&&!r.values.length?function(e,t){return tO.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):tL(tN(function(e,t){var n;let r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){let s=t.types[o],a=e.indexes[s][i[s]],l=null!=(n=e.values[a])?n:0;r[o]=l,i[s]++}return r}(r,i),i.values),n):(B(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),tC(e,t))};function t_(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?tA(e,t,n):tF(e)(e,t)}function tU(e,t,n){var r,i;let o=Math.max(t-5,0);return r=n-e(o),(i=t-o)?1e3/i*r:0}let tz={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function tW(e,t){return e*Math.sqrt(1-t*t)}let t$=["duration","bounce"],tH=["stiffness","damping","mass"];function tG(e,t){return t.some(t=>void 0!==e[t])}function tK(e=tz.visualDuration,t=tz.bounce){let n,r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:o}=r,s=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],l={done:!1,value:s},{stiffness:u,damping:c,mass:d,duration:h,velocity:f,isResolvedFromDuration:p}=function(e){let t={velocity:tz.velocity,stiffness:tz.stiffness,damping:tz.damping,mass:tz.mass,isResolvedFromDuration:!1,...e};if(!tG(e,tH)&&tG(e,t$))if(e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*eP(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:tz.mass,stiffness:r,damping:i}}else{let n=function({duration:e=tz.duration,bounce:t=tz.bounce,velocity:n=tz.velocity,mass:r=tz.mass}){let i,o;B(e<=I(tz.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=eP(tz.minDamping,tz.maxDamping,s),e=eP(tz.minDuration,tz.maxDuration,e/1e3),s<1?(i=t=>{let r=t*s,i=r*e;return .001-(r-n)/tW(t,s)*Math.exp(-i)},o=t=>{let r=t*s*e,o=Math.pow(s,2)*Math.pow(t,2)*e,a=Math.exp(-r),l=tW(Math.pow(t,2),s);return(r*n+n-o)*a*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let a=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=I(e),isNaN(a))return{stiffness:tz.stiffness,damping:tz.damping,duration:e};{let t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...n,mass:tz.mass}).isResolvedFromDuration=!0}return t}({...r,velocity:-((r.velocity||0)/1e3)}),m=f||0,v=c/(2*Math.sqrt(u*d)),g=a-s,b=Math.sqrt(u/d)/1e3,x=5>Math.abs(g);if(i||(i=x?tz.restSpeed.granular:tz.restSpeed.default),o||(o=x?tz.restDelta.granular:tz.restDelta.default),v<1){let e=tW(b,v);n=t=>a-Math.exp(-v*b*t)*((m+v*b*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(1===v)n=e=>a-Math.exp(-b*e)*(g+(m+b*g)*e);else{let e=b*Math.sqrt(v*v-1);n=t=>{let n=Math.exp(-v*b*t),r=Math.min(e*t,300);return a-n*((m+v*b*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}let w={calculatedDuration:p&&h||null,next:e=>{let t=n(e);if(p)l.done=e>=h;else{let r=0;v<1&&(r=0===e?I(m):tU(n,e,t));let s=Math.abs(a-t)<=o;l.done=Math.abs(r)<=i&&s}return l.value=l.done?a:t,l},toString:()=>{let e=Math.min(y(w),2e4),t=A(t=>w.next(e*t).value,e,30);return e+"ms "+t}};return w}function tX({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let d,h,f=e[0],p={done:!1,value:f},m=n*t,v=f+m,g=void 0===s?v:s(v);g!==v&&(m=g-f);let y=e=>-m*Math.exp(-e/r),b=e=>g+y(e),x=e=>{let t=y(e),n=b(e);p.done=Math.abs(t)<=u,p.value=p.done?g:n},w=e=>{let t;if(t=p.value,void 0!==a&&t<a||void 0!==l&&t>l){var n;d=e,h=tK({keyframes:[p.value,(n=p.value,void 0===a?l:void 0===l||Math.abs(a-n)<Math.abs(l-n)?a:l)],velocity:tU(b,e,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,x(e),w(e)),void 0!==d&&e>=d)?h.next(e-d):(t||x(e),p)}}}let tY=ed(.42,0,1,1),tq=ed(0,0,.58,1),tZ=ed(.42,0,.58,1),tQ={linear:B,easeIn:tY,easeInOut:tZ,easeOut:tq,circIn:ey,circInOut:ex,circOut:eb,backIn:em,backInOut:ev,backOut:ep,anticipate:eg},tJ=e=>{if(w(e)){B(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return ed(t,n,r,i)}return"string"==typeof e?(B(void 0!==tQ[e],`Invalid easing type '${e}'`),tQ[e]):e};function t0({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let o=Array.isArray(r)&&"number"!=typeof r[0]?r.map(tJ):tJ(r),s={done:!1,value:t[0]},a=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;if(B(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,n){let r=[],i=n||t_,o=e.length-1;for(let n=0;n<o;n++){let o=i(e[n],e[n+1]);t&&(o=tL(Array.isArray(t)?t[n]||B:t,o)),r.push(o)}return r}(t,r,i),l=a.length,u=n=>{if(s&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=S(e[r],e[r+1],n);return a[r](i)};return n?t=>u(eP(e[0],e[o-1],t)):u}((i=n&&n.length===t.length?n:function(e){let t=[0];return!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=S(0,t,r);e.push(tA(n,1,i))}}(t,e.length-1),t}(t),i.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||tZ).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=a(t),s.done=t>=e,s)}}let t1=e=>{let t=({timestamp:t})=>e(t);return{start:()=>K.update(t,!0),stop:()=>X(t),now:()=>Y.isProcessing?Y.timestamp:Q.now()}},t2={decay:tX,inertia:tX,tween:t0,keyframes:t0,spring:tK},t5=e=>e/100;class t4 extends tS{constructor(e){super(e),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:e}=this.options;e&&e()};let{name:t,motionValue:n,element:r,keyframes:i}=this.options,o=(null==r?void 0:r.KeyframeResolver)||tu,s=(e,t)=>this.onKeyframesResolved(e,t);this.resolver=new o(i,s,t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let t,n,{type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s,velocity:a=0}=this.options,l=b(r)?r:t2[r]||t0;l!==t0&&"number"!=typeof e[0]&&(t=tL(t5,t_(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});"mirror"===s&&(n=l({...this.options,keyframes:[...e].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=y(u));let{calculatedDuration:c}=u,d=c+o;return{generator:u,mirroredGenerator:n,mapPercentToKeyframes:t,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(i+1)-o}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:n}=this;if(!n){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return i.next(0);let{delay:d,repeat:h,repeatType:f,repeatDelay:p,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let v=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,b=i;if(h){let e=Math.min(this.currentTime,u)/c,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,h+1))%2&&("reverse"===f?(n=1-n,p&&(n-=p/c)):"mirror"===f&&(b=o)),y=eP(0,1,n)*c}let x=g?{done:!1,value:a[0]}:b.next(y);s&&(x.value=s(x.value));let{done:w}=x;g||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return P&&void 0!==r&&(x.value=tE(a,this.options,r)),m&&m(x.value),P&&this.finish(),x}get duration(){let{resolved:e}=this;return e?e.calculatedDuration/1e3:0}get time(){return this.currentTime/1e3}set time(e){e=I(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=t1,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(e=this.currentTime)?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}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(e){return this.startTime=0,this.tick(e,!0)}}let t6=new Set(["opacity","clipPath","filter","transform"]),t3=f(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),t9={anticipate:eg,backInOut:ev,circInOut:ex};class t8 extends tS{constructor(e){super(e);let{name:t,motionValue:n,element:r,keyframes:i}=this.options;this.resolver=new tx(i,(e,t)=>this.onKeyframesResolved(e,t),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:r=300,times:i,ease:o,type:s,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof o&&E()&&o in t9&&(o=t9[o]),b((n=this.options).type)||"spring"===n.type||!function e(t){return!!("function"==typeof t&&E()||!t||"string"==typeof t&&(t in C||E())||w(t)||Array.isArray(t)&&t.every(e))}(n.ease)){let{onComplete:t,onUpdate:n,motionValue:a,element:l,...u}=this.options,c=function(e,t){let n=new t4({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:e[0]},i=[],o=0;for(;!r.done&&o<2e4;)i.push((r=n.sample(o)).value),o+=10;return{times:void 0,keyframes:i,duration:o-10,ease:"linear"}}(e,u);1===(e=c.keyframes).length&&(e[1]=e[0]),r=c.duration,i=c.times,o=c.ease,s="keyframes"}let c=function(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){let u={[t]:n};l&&(u.offset=l);let c=function e(t,n){if(t)return"function"==typeof t&&E()?A(t,n):w(t)?T(t):Array.isArray(t)?t.map(t=>e(t,n)||C.easeOut):C[t]}(a,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(a.owner.current,l,e,{...this.options,duration:r,times:i,ease:o});return c.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(x(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:n}=this.options;a.set(tE(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:i,type:s,ease:o,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return t/1e3}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return(t.currentTime||0)/1e3}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=I(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return B;let{animation:n}=t;x(n,e)}else this.pendingTimeline=e;return B}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:r,type:i,ease:o,times:s}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:a,element:l,...u}=this.options,c=new t4({...u,keyframes:n,duration:r,type:i,ease:o,times:s,isGenerator:!0}),d=I(this.time);e.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:s}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=t.owner.getProps();return t3()&&n&&t6.has(n)&&!a&&!l&&!r&&"mirror"!==i&&0!==o&&"inertia"!==s}}let t7={type:"spring",stiffness:500,damping:25,restSpeed:10},ne={type:"keyframes",duration:.8},nt={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nn=(e,t,n,r={},i,o)=>s=>{let a=g(r,e)||{},l=a.delay||r.delay||0,{elapsed:u=0}=r;u-=I(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(a)&&(c={...c,...((e,{keyframes:t})=>t.length>2?ne:U.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:t7:nt)(e,c)}),c.duration&&(c.duration=I(c.duration)),c.repeatDelay&&(c.repeatDelay=I(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(c.duration=0,0===c.delay&&(d=!0)),(eu.current||$.skipAnimations)&&(d=!0,c.duration=0,c.delay=0),d&&!o&&void 0!==t.get()){let e=tE(c.keyframes,a);if(void 0!==e)return K.update(()=>{c.onUpdate(e),c.onComplete()}),new v([])}return!o&&t8.supports(c)?new t8(c):new t4(c)};function nr(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in l){let r=e.getValue(t,null!=(o=e.latestValues[t])?o:null),i=l[t];if(void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let a={delay:n,...g(s||{},t)},c=!1;if(window.MotionHandoffAnimation){let n=e.props[el];if(n){let e=window.MotionHandoffAnimation(n,t,K);null!==e&&(a.startTime=e,c=!0)}}es(e,t),r.start(nn(t,r,i,e.shouldReduceMotion&&z.has(t)?{type:!1}:a,e,c));let h=r.animation;h&&u.push(h)}return a&&Promise.all(u).then(()=>{K.update(()=>{a&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=c(e,t)||{};for(let t in i={...i,...n}){let n=W(i[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ei(n))}}(e,a)})}),u}function ni(e,t,n={}){var r;let i=c(e,t,"exit"===n.type?null==(r=e.presenceContext)?void 0:r.custom:void 0),{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let s=i?()=>Promise.all(nr(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=o;return function(e,t,n=0,r=0,i=1,o){let s=[],a=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(no).forEach((e,r)=>{e.notify("AnimationStart",t),s.push(ni(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,i+r,s,a,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([s(),a(n.delay)]);{let[e,t]="beforeChildren"===l?[s,a]:[a,s];return e().then(()=>t())}}function no(e,t){return e.sortNodePosition(t)}let ns=h.length,na=[...d].reverse(),nl=d.length;function nu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nc(){return{animate:nu(!0),whileInView:nu(),whileHover:nu(),whileTap:nu(),whileDrag:nu(),whileFocus:nu(),exit:nu()}}class nd{constructor(e){this.isMounted=!1,this.node=e}update(){}}class nh extends nd{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>ni(e,t,n)));else if("string"==typeof t)r=ni(e,t,n);else{let i="function"==typeof t?c(e,t,n.custom):t;r=Promise.all(nr(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=nc(),r=!0,l=t=>(n,r)=>{var i;let o=c(e,r,"exit"===t?null==(i=e.presenceContext)?void 0:i.custom:void 0);if(o){let{transition:e,transitionEnd:t,...r}=o;n={...n,...r,...t}}return n};function u(u){let{props:c}=e,d=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<ns;e++){let r=h[e],i=t.props[r];(a(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},f=[],p=new Set,m={},v=1/0;for(let t=0;t<nl;t++){var g,y;let h=na[t],b=n[h],x=void 0!==c[h]?c[h]:d[h],w=a(x),P=h===u?b.isActive:null;!1===P&&(v=t);let E=x===d[h]&&x!==c[h]&&w;if(E&&r&&e.manuallyAnimateOnMount&&(E=!1),b.protectedKeys={...m},!b.isActive&&null===P||!x&&!b.prevProp||i(x)||"boolean"==typeof x)continue;let S=(g=b.prevProp,"string"==typeof(y=x)?y!==g:!!Array.isArray(y)&&!s(y,g)),A=S||h===u&&b.isActive&&!E&&w||t>v&&w,T=!1,C=Array.isArray(x)?x:[x],R=C.reduce(l(h),{});!1===P&&(R={});let{prevResolvedValues:M={}}=b,k={...M,...R},D=t=>{A=!0,p.has(t)&&(T=!0,p.delete(t)),b.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in k){let t=R[e],n=M[e];if(!m.hasOwnProperty(e))(o(t)&&o(n)?s(t,n):t===n)?void 0!==t&&p.has(e)?D(e):b.protectedKeys[e]=!0:null!=t?D(e):p.add(e)}b.prevProp=x,b.prevResolvedValues=R,b.isActive&&(m={...m,...R}),r&&e.blockInitialAnimation&&(A=!1);let j=!(E&&S)||T;A&&j&&f.push(...C.map(e=>({animation:e,options:{type:h}})))}if(p.size){let t={};p.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=null!=r?r:null}),f.push({animation:t})}let b=!!f.length;return r&&(!1===c.initial||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(f):Promise.resolve()}return{animateChanges:u,setActive:function(t,r){var i;if(n[t].isActive===r)return Promise.resolve();null==(i=e.variantChildren)||i.forEach(e=>{var n;return null==(n=e.animationState)?void 0:n.setActive(t,r)}),n[t].isActive=r;let o=u(t);for(let e in n)n[e].protectedKeys={};return o},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=nc(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();i(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null==(e=this.unmountControls)||e.call(this)}}let nf=0;class np extends nd{constructor(){super(...arguments),this.id=nf++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}function nm(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function nv(e){return{point:{x:e.pageX,y:e.pageY}}}function ng(e,t,n,r){return nm(e,t,e=>j(e)&&n(e,nv(e)),r)}let ny=(e,t)=>Math.abs(e-t);class nb{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!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 e=nP(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){return Math.sqrt(ny(e.x,t.x)**2+ny(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=Y;this.history.push({...r,timestamp:i});let{onStart:o,onMove:s}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=nx(t,this.transformPagePoint),K.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=nP("pointercancel"===e.type?this.lastMoveEventInfo:nx(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!j(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;let o=nx(nv(e),this.transformPagePoint),{point:s}=o,{timestamp:a}=Y;this.history=[{...s,timestamp:a}];let{onSessionStart:l}=t;l&&l(e,nP(o,this.history)),this.removeListeners=tL(ng(this.contextWindow,"pointermove",this.handlePointerMove),ng(this.contextWindow,"pointerup",this.handlePointerUp),ng(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),X(this.updatePoint)}}function nx(e,t){return t?{point:t(e.point)}:e}function nw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nP({point:e},t){return{point:e,delta:nw(e,nE(t)),offset:nw(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=nE(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>I(.1)));)n--;if(!r)return{x:0,y:0};let o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};let s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,.1)}}function nE(e){return e[e.length-1]}function nS(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function nA(e){return e.max-e.min}function nT(e,t,n,r=.5){e.origin=r,e.originPoint=tA(t.min,t.max,e.origin),e.scale=nA(n)/nA(t),e.translate=tA(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function nC(e,t,n,r){nT(e.x,t.x,n.x,r?r.originX:void 0),nT(e.y,t.y,n.y,r?r.originY:void 0)}function nR(e,t,n){e.min=n.min+t.min,e.max=e.min+nA(t)}function nM(e,t,n){e.min=t.min-n.min,e.max=e.min+nA(t)}function nk(e,t,n){nM(e.x,t.x,n.x),nM(e.y,t.y,n.y)}function nD(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function nj(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function nL(e,t,n){return{min:nO(e,t),max:nO(e,n)}}function nO(e,t){return"number"==typeof e?e:e[t]||0}let nV=()=>({translate:0,scale:1,origin:0,originPoint:0}),nF=()=>({x:nV(),y:nV()}),nN=()=>({min:0,max:0}),nI=()=>({x:nN(),y:nN()});function nB(e){return[e("x"),e("y")]}function n_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function nU(e){return void 0===e||1===e}function nz({scale:e,scaleX:t,scaleY:n}){return!nU(e)||!nU(t)||!nU(n)}function nW(e){return nz(e)||n$(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function n$(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function nH(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function nG(e,t=0,n=1,r,i){e.min=nH(e.min,t,n,r,i),e.max=nH(e.max,t,n,r,i)}function nK(e,{x:t,y:n}){nG(e.x,t.translate,t.scale,t.originPoint),nG(e.y,n.translate,n.scale,n.originPoint)}function nX(e,t){e.min=e.min+t,e.max=e.max+t}function nY(e,t,n,r,i=.5){let o=tA(e.min,e.max,i);nG(e,t,n,o,r)}function nq(e,t){nY(e.x,t.x,t.scaleX,t.scale,t.originX),nY(e.y,t.y,t.scaleY,t.scale,t.originY)}function nZ(e,t){return n_(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let nQ=({current:e})=>e?e.ownerDocument.defaultView:null,nJ=new WeakMap;class n0{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=nI(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let r=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(nv(e).point)},i=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(R[e])return null;else return R[e]=!0,()=>{R[e]=!1};return R.x||R.y?null:(R.x=R.y=!0,()=>{R.x=R.y=!1})}(n),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nB(e=>{let t=this.getAxisMotionValue(e).get()||0;if(eF.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=nA(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&K.postRender(()=>i(e,t)),es(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},o=(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:s}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&o(e,t)},s=(e,t)=>this.stop(e,t),a=()=>nB(e=>{var t;return"paused"===this.getAnimationState(e)&&(null==(t=this.getAxisMotionValue(e).animation)?void 0:t.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new nb(e,{onSessionStart:r,onStart:i,onMove:o,onSessionEnd:s,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:nQ(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&K.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!n1(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?tA(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?tA(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(e=this.visualElement.projection)?void 0:e.layout,i=this.constraints;t&&nS(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:nD(e.x,n,i),y:nD(e.y,t,r)}}(r.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:nL(e,"left","right"),y:nL(e,"top","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&nB(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nS(t))return!1;let r=t.current;B(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=nZ(e,n),{scroll:i}=t;return i&&(nX(r.x,i.offset.x),nX(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),s=(e=i.layout.layoutBox,{x:nj(e.x,o.x),y:nj(e.y,o.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=n_(e))}return s}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(nB(s=>{if(!n1(s,t,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[s]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return es(this.visualElement,e),n.start(nn(e,n,0,t,this.visualElement,!1))}stopAnimation(){nB(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){nB(e=>{var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.pause()})}getAnimationState(e){var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){nB(t=>{let{drag:n}=this.getProps();if(!n1(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t];i.set(e[t]-tA(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!nS(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};nB(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();r[e]=function(e,t){let n=.5,r=nA(e),i=nA(t);return i>r?n=S(t.min,t.max-r,e.min):r>i&&(n=S(e.min,e.max-i,t.min)),eP(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),nB(t=>{if(!n1(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(tA(i,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;nJ.set(this.visualElement,this);let e=ng(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();nS(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),K.read(t);let i=nm(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(nB(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function n1(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class n2 extends nd{constructor(e){super(e),this.removeGroupControls=B,this.removeListeners=B,this.controls=new n0(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||B}unmount(){this.removeGroupControls(),this.removeListeners()}}let n5=e=>(t,n)=>{e&&K.postRender(()=>e(t,n))};class n4 extends nd{constructor(){super(...arguments),this.removePointerDownListener=B}onPointerDown(e){this.session=new nb(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nQ(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:n5(e),onStart:n5(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&K.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=ng(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var n6,n3,n9=n(5155),n8=n(2115),n7=n(5601),re=n(296);let rt=(0,n8.createContext)({}),rn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rr(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let ri={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!eN.test(e))return e;else e=parseFloat(e);let n=rr(e,t.target.x),r=rr(e,t.target.y);return`${n}% ${r}%`}},ro={},{schedule:rs,cancel:ra}=G(queueMicrotask,!1);class rl extends n8.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(ro,rc),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),rn.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||K.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),rs.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ru(e){let[t,n]=(0,n7.xQ)(),r=(0,n8.useContext)(re.L);return(0,n9.jsx)(rl,{...e,layoutGroup:r,switchLayoutGroup:(0,n8.useContext)(rt),isPresent:t,safeToRemove:n})}let rc={borderRadius:{...ri,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ri,borderTopRightRadius:ri,borderBottomLeftRadius:ri,borderBottomRightRadius:ri,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=eZ.parse(e);if(r.length>5)return e;let i=eZ.createTransformer(e),o=+("number"!=typeof r[0]),s=n.x.scale*t.x,a=n.y.scale*t.y;r[0+o]/=s,r[1+o]/=a;let l=tA(s,a,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}},rd=(e,t)=>e.depth-t.depth;class rh{constructor(){this.children=[],this.isDirty=!1}add(e){J(this.children,e),this.isDirty=!0}remove(e){ee(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rd),this.isDirty=!1,this.children.forEach(e)}}function rf(e){let t=eo(e)?e.get():e;return t&&"object"==typeof t&&t.mix&&t.toValue?t.toValue():t}let rp=["TopLeft","TopRight","BottomLeft","BottomRight"],rm=rp.length,rv=e=>"string"==typeof e?parseFloat(e):e,rg=e=>"number"==typeof e||eN.test(e);function ry(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let rb=rw(0,.5,eb),rx=rw(.5,.95,B);function rw(e,t,n){return r=>r<e?0:r>t?1:n(S(e,t,r))}function rP(e,t){e.min=t.min,e.max=t.max}function rE(e,t){rP(e.x,t.x),rP(e.y,t.y)}function rS(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function rA(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function rT(e,t,[n,r,i],o,s){!function(e,t=0,n=1,r=.5,i,o=e,s=e){if(eF.test(t)&&(t=parseFloat(t),t=tA(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=tA(o.min,o.max,r);e===o&&(a-=t),e.min=rA(e.min,t,n,a,i),e.max=rA(e.max,t,n,a,i)}(e,t[n],t[r],t[i],t.scale,o,s)}let rC=["x","scaleX","originX"],rR=["y","scaleY","originY"];function rM(e,t,n,r){rT(e.x,t,rC,n?n.x:void 0,r?r.x:void 0),rT(e.y,t,rR,n?n.y:void 0,r?r.y:void 0)}function rk(e){return 0===e.translate&&1===e.scale}function rD(e){return rk(e.x)&&rk(e.y)}function rj(e,t){return e.min===t.min&&e.max===t.max}function rL(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rO(e,t){return rL(e.x,t.x)&&rL(e.y,t.y)}function rV(e){return nA(e.x)/nA(e.y)}function rF(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class rN{constructor(){this.members=[]}add(e){J(this.members,e),e.scheduleRender()}remove(e){if(ee(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rI={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},rB="undefined"!=typeof window&&void 0!==window.MotionDebug,r_=["","X","Y","Z"],rU={visibility:"hidden"},rz=0;function rW(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function r$({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=null==t?void 0:t()){this.id=rz++,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,rB&&(rI.totalNodes=rI.resolvedTargetDeltas=rI.recalculatedProjection=0),this.nodes.forEach(rK),this.nodes.forEach(r0),this.nodes.forEach(r1),this.nodes.forEach(rX),rB&&window.MotionDebug.record(rI)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new rh)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new et),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:r,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),e){let n,r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=Q.now(),r=({timestamp:t})=>{let i=t-n;i>=250&&(X(r),e(i-250))};return K.read(r,!0),()=>X(r)}(r,250),rn.hasAnimatedSinceResize&&(rn.hasAnimatedSinceResize=!1,this.nodes.forEach(rJ))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||r9,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!rO(this.targetLayout,r)||n,u=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...g(i,"layout"),onPlay:s,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||rJ(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,X(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(r2),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[el];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",K,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rq);return}this.isUpdating||this.nodes.forEach(rZ),this.isUpdating=!1,this.nodes.forEach(rQ),this.nodes.forEach(rH),this.nodes.forEach(rG),this.clearAllSnapshots();let e=Q.now();Y.delta=eP(0,1e3/60,e-Y.timestamp),Y.timestamp=e,Y.isProcessing=!0,q.update.process(Y),q.preRender.process(Y),q.render.process(Y),Y.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,rs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rY),this.sharedNodes.forEach(r5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,K.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){K.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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=nI(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!rD(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&(t||nW(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),ie((t=r).x),ie(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){var e;let{visualElement:t}=this.options;if(!t)return nI();let n=t.measureViewportBox();if(!((null==(e=this.scroll)?void 0:e.wasRoot)||this.path.some(ir))){let{scroll:e}=this.root;e&&(nX(n.x,e.offset.x),nX(n.y,e.offset.y))}return n}removeElementScroll(e){var t;let n=nI();if(rE(n,e),null==(t=this.scroll)?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){let r=this.path[t],{scroll:i,options:o}=r;r!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&rE(n,e),nX(n.x,i.offset.x),nX(n.y,i.offset.y))}return n}applyTransform(e,t=!1){let n=nI();rE(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&nq(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),nW(r.latestValues)&&nq(n,r.latestValues)}return nW(this.latestValues)&&nq(n,this.latestValues),n}removeTransform(e){let t=nI();rE(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!nW(n.latestValues))continue;nz(n.latestValues)&&n.updateSnapshot();let r=nI();rE(r,n.measurePageBox()),rM(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return nW(this.latestValues)&&rM(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.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!==Y.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,n,r,i;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==o;if(!(e||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=Y.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nI(),this.relativeTargetOrigin=nI(),nk(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),rE(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=nI(),this.targetWithTransforms=nI()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),n=this.target,r=this.relativeTarget,i=this.relativeParent.target,nR(n.x,r.x,i.x),nR(n.y,r.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rE(this.target,this.layout.layoutBox),nK(this.target,this.targetDelta)):rE(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nI(),this.relativeTargetOrigin=nI(),nk(this.relativeTargetOrigin,this.target,e.target),rE(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}rB&&rI.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||nz(this.parent.latestValues)||n$(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),n=!!this.resumingFrom||this!==t,r=!0;if((this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===Y.timestamp&&(r=!1),r)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;rE(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){let i,o,s=n.length;if(s){t.x=t.y=1;for(let a=0;a<s;a++){o=(i=n[a]).projectionDelta;let{visualElement:s}=i.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&nq(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,nK(e,o)),r&&nW(i.latestValues)&&nq(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,n),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=nI());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rS(this.prevProjectionDelta.x,this.projectionDelta.x),rS(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nC(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&rF(this.projectionDelta.x,this.prevProjectionDelta.x)&&rF(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),rB&&rI.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null==(t=this.options.visualElement)||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=nF(),this.projectionDelta=nF(),this.projectionDeltaWithTransform=nF()}setAnimationOrigin(e,t=!1){let n,r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},s=nF();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let a=nI(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(r3));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(r4(s.x,e.x,r),r4(s.y,e.y,r),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,f,p,m,v;nk(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,m=a,v=r,r6(f.x,p.x,m.x,v),r6(f.y,p.y,m.y,v),n&&(u=this.relativeTarget,h=n,rj(u.x,h.x)&&rj(u.y,h.y))&&(this.isProjectionDirty=!1),n||(n=nI()),rE(n,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,n,r,i,o){i?(e.opacity=tA(0,void 0!==n.opacity?n.opacity:1,rb(r)),e.opacityExit=tA(void 0!==t.opacity?t.opacity:1,0,rx(r))):o&&(e.opacity=tA(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<rm;i++){let o=`border${rp[i]}Radius`,s=ry(t,o),a=ry(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||rg(s)===rg(a)?(e[o]=Math.max(tA(rv(s),rv(a),r),0),(eF.test(a)||eF.test(s))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=tA(t.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(X(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=K.update(()=>{rn.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){let r=eo(0)?0:ei(e);return r.start(nn("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.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 e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&it(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||nI();let t=nA(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=nA(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}rE(t,n),nq(t,i),nC(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rN),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null==(e=this.getStack())?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null==(e=this.getStack())?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&rW("z",e,r,this.animationValues);for(let t=0;t<r_.length;t++)rW(`rotate${r_[t]}`,e,r,this.animationValues),rW(`skew${r_[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rU;let r={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=rf(null==e?void 0:e.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=rf(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!nW(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}let s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y,s=(null==n?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:s,skewY:a}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),a&&(r+=`skewY(${a}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),i&&(r.transform=i(s,r.transform));let{x:a,y:l}=this.projectionDelta;for(let e in r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?r.opacity=o===this?null!=(n=null!=(t=s.opacity)?t:this.latestValues.opacity)?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,ro){if(void 0===s[e])continue;let{correct:t,applyTo:n}=ro[e],i="none"===r.transform?s[e]:t(s[e],o);if(n){let e=n.length;for(let t=0;t<e;t++)r[n[t]]=i}else r[e]=i}return this.options.layoutId&&(r.pointerEvents=o===this?rf(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null==(t=e.currentAnimation)?void 0:t.stop()}),this.root.nodes.forEach(rq),this.root.sharedNodes.clear()}}}function rH(e){e.updateLayout()}function rG(e){var t;let n=(null==(t=e.resumeFrom)?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:r}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;"size"===i?nB(e=>{let r=o?n.measuredBox[e]:n.layoutBox[e],i=nA(r);r.min=t[e].min,r.max=r.min+i}):it(i,n.layoutBox,t)&&nB(r=>{let i=o?n.measuredBox[r]:n.layoutBox[r],s=nA(t[r]);i.max=i.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});let s=nF();nC(s,t,n.layoutBox);let a=nF();o?nC(a,e.applyTransform(r,!0),n.measuredBox):nC(a,t,n.layoutBox);let l=!rD(s),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let s=nI();nk(s,n.layoutBox,i.layoutBox);let a=nI();nk(a,t,o.layoutBox),rO(s,a)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function rK(e){rB&&rI.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function rX(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rY(e){e.clearSnapshot()}function rq(e){e.clearMeasurements()}function rZ(e){e.isLayoutDirty=!1}function rQ(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rJ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function r0(e){e.resolveTargetDelta()}function r1(e){e.calcProjection()}function r2(e){e.resetSkewAndRotation()}function r5(e){e.removeLeadSnapshot()}function r4(e,t,n){e.translate=tA(t.translate,0,n),e.scale=tA(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function r6(e,t,n,r){e.min=tA(t.min,n.min,r),e.max=tA(t.max,n.max,r)}function r3(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let r9={duration:.45,ease:[.4,0,.1,1]},r8=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),r7=r8("applewebkit/")&&!r8("chrome/")?Math.round:B;function ie(e){e.min=r7(e.min),e.max=r7(e.max)}function it(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(rV(t)-rV(n)))}function ir(e){var t;return e!==e.root&&(null==(t=e.scroll)?void 0:t.wasRoot)}let ii=r$({attachResizeListener:(e,t)=>nm(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),io={current:void 0},is=r$({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!io.current){let e=new ii({});e.mount(window),e.setOptions({layoutScroll:!0}),io.current=e}return io.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function ia(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&K.postRender(()=>i(t,nv(t)))}class il extends nd{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=M(e,n),s=k(e=>{let{target:n}=e,r=t(e);if("function"!=typeof r||!n)return;let o=k(e=>{r(e),n.removeEventListener("pointerleave",o)});n.addEventListener("pointerleave",o,i)});return r.forEach(e=>{e.addEventListener("pointerenter",s,i)}),o}(e,e=>(ia(this.node,e,"Start"),e=>ia(this.node,e,"End"))))}unmount(){}}class iu extends nd{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tL(nm(this.node.current,"focus",()=>this.onFocus()),nm(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ic(e,t,n){let{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&K.postRender(()=>i(t,nv(t)))}class id extends nd{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=M(e,n),s=e=>{let r=e.currentTarget;if(!N(e)||O.has(r))return;O.add(r);let o=t(e),s=(e,t)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),N(e)&&O.has(r)&&(O.delete(r),"function"==typeof o&&o(e,{success:t}))},a=e=>{s(e,n.useGlobalTarget||D(r,e.target))},l=e=>{s(e,!1)};window.addEventListener("pointerup",a,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{L.has(e.tagName)||-1!==e.tabIndex||null!==e.getAttribute("tabindex")||(e.tabIndex=0),(n.useGlobalTarget?window:e).addEventListener("pointerdown",s,i),e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=V(()=>{if(O.has(n))return;F(n,"down");let e=V(()=>{F(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>F(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i),i)}),o}(e,e=>(ic(this.node,e,"Start"),(e,{success:t})=>ic(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let ih=new WeakMap,ip=new WeakMap,im=e=>{let t=ih.get(e.target);t&&t(e)},iv=e=>{e.forEach(im)},ig={some:0,all:1};class iy extends nd{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:ig[r]},s=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)};var a=this.node.current;let l=function({root:e,...t}){let n=e||document;ip.has(n)||ip.set(n,{});let r=ip.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(iv,{root:e,...t})),r[i]}(o);return ih.set(a,s),l.observe(a),()=>{ih.delete(a),l.unobserve(a)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}let ib=(0,n8.createContext)({strict:!1});var ix=n(3127);let iw=(0,n8.createContext)({});function iP(e){return i(e.animate)||h.some(t=>a(e[t]))}function iE(e){return!!(iP(e)||e.variants)}function iS(e){return Array.isArray(e)?e.join(" "):e}var iA=n(3577);let iT={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"]},iC={};for(let e in iT)iC[e]={isEnabled:t=>iT[e].some(e=>!!t[e])};let iR=Symbol.for("motionComponentSymbol");var iM=n(9686),ik=n(6553);let iD=["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 ij(e){if("string"!=typeof e||e.includes("-"));else if(iD.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var iL=n(4416);let iO=e=>(t,n)=>{let r=(0,n8.useContext)(iw),o=(0,n8.useContext)(iM.t),s=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,s){let a={latestValues:function(e,t,n,r){let o={},s=r(e,{});for(let e in s)o[e]=rf(s[e]);let{initial:a,animate:l}=e,c=iP(e),d=iE(e);t&&d&&!c&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===l&&(l=t.animate));let h=!!n&&!1===n.initial,f=(h=h||!1===a)?l:a;if(f&&"boolean"!=typeof f&&!i(f)){let t=Array.isArray(f)?f:[f];for(let n=0;n<t.length;n++){let r=u(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=h?t.length-1:0;t=t[e]}null!==t&&(o[e]=t)}for(let t in e)o[t]=e[t]}}}return o}(r,o,s,e),renderState:t()};return n&&(a.onMount=e=>n({props:r,current:e,...a}),a.onUpdate=e=>n(e)),a})(e,t,r,o);return n?s():(0,iL.M)(s)},iV=(e,t)=>t&&"number"==typeof e?t.transform(e):e,iF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iN=_.length;function iI(e,t,n){let{style:r,vars:i,transformOrigin:o}=e,s=!1,a=!1;for(let e in t){let n=t[e];if(U.has(e)){s=!0;continue}if(th(e)){i[e]=n;continue}{let t=iV(n,e5[e]);e.startsWith("origin")?(a=!0,o[e]=t):r[e]=t}}if(!t.transform&&(s||n?r.transform=function(e,t,n){let r="",i=!0;for(let o=0;o<iN;o++){let s=_[o],a=e[s];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!s.startsWith("scale"):0===parseFloat(a))||n){let e=iV(a,e5[s]);if(!l){i=!1;let t=iF[s]||s;r+=`${t}(${e}) `}n&&(t[s]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),a){let{originX:e="50%",originY:t="50%",originZ:n=0}=o;r.transformOrigin=`${e} ${t} ${n}`}}let iB={offset:"stroke-dashoffset",array:"stroke-dasharray"},i_={offset:"strokeDashoffset",array:"strokeDasharray"};function iU(e,t,n){return"string"==typeof e?e:eN.transform(t+n*e)}function iz(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d){if(iI(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:h,style:f,dimensions:p}=e;h.transform&&(p&&(f.transform=h.transform),delete h.transform),p&&(void 0!==i||void 0!==o||f.transform)&&(f.transformOrigin=function(e,t,n){let r=iU(t,e.x,e.width),i=iU(n,e.y,e.height);return`${r} ${i}`}(p,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(h.x=t),void 0!==n&&(h.y=n),void 0!==r&&(h.scale=r),void 0!==s&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?iB:i_;e[o.offset]=eN.transform(-r);let s=eN.transform(t),a=eN.transform(n);e[o.array]=`${s} ${a}`}(h,s,a,l,!1)}let iW=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),i$=()=>({...iW(),attrs:{}}),iH=e=>"string"==typeof e&&"svg"===e.toLowerCase();function iG(e,{style:t,vars:n},r,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}let iK=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 iX(e,t,n,r){for(let n in iG(e,t,void 0,r),t.attrs)e.setAttribute(iK.has(n)?n:ea(n),t.attrs[n])}function iY(e,{layout:t,layoutId:n}){return U.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!ro[e]||"opacity"===e)}function iq(e,t,n){var r;let{style:i}=e,o={};for(let s in i)(eo(i[s])||t.style&&eo(t.style[s])||iY(s,e)||(null==(r=null==n?void 0:n.getValue(s))?void 0:r.liveStyle)!==void 0)&&(o[s]=i[s]);return o}function iZ(e,t,n){let r=iq(e,t,n);for(let n in e)(eo(e[n])||eo(t[n]))&&(r[-1!==_.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}let iQ=["x","y","width","height","cx","cy","r"],iJ={useVisualState:iO({scrapeMotionValuesFromProps:iZ,createRenderState:i$,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(let e in i)if(U.has(e)){o=!0;break}}if(!o)return;let s=!t;if(t)for(let n=0;n<iQ.length;n++){let r=iQ[n];e[r]!==t[r]&&(s=!0)}s&&K.read(()=>{!function(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}(n,r),K.render(()=>{iz(r,i,iH(n.tagName),e.transformTemplate),iX(n,r)})})}})},i0={useVisualState:iO({scrapeMotionValuesFromProps:iq,createRenderState:iW})};function i1(e,t,n){for(let r in t)eo(t[r])||iY(r,n)||(e[r]=t[r])}let i2=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 i5(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||i2.has(e)}let i4=e=>!i5(e);try{!function(e){e&&(i4=t=>t.startsWith("on")?!i5(t):e(t))}(require("@emotion/is-prop-valid").default)}catch(e){}let i6={current:null},i3={current:!1},i9=[...ty,ez,eZ],i8=new WeakMap,i7=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class oe{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=Q.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,K.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:u}=o;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=iP(t),this.isVariantNode=iE(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];void 0!==a[e]&&eo(t)&&t.set(a[e],!1)}}mount(e){this.current=e,i8.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),i3.current||function(){if(i3.current=!0,iA.B)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>i6.current=e.matches;e.addListener(t),t()}else i6.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||i6.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in i8.delete(this.current),this.projection&&this.projection.unmount(),X(this.notifyUpdate),X(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let n;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let r=U.has(e),i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&K.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),o(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in iC){let t=iC[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nI()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<i7.length;t++){let n=i7[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],o=n[r];if(eo(i))e.addValue(r,i);else if(eo(o))e.addValue(r,ei(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,ei(void 0!==t?t:i,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=ei(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!=(n=this.getBaseTargetFromProps(this.props,e))?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=r){if("string"==typeof r&&(tc(r)||ew(r)))r=parseFloat(r);else{let n;n=r,!i9.find(tg(n))&&eZ.test(t)&&(r=e3(e,t))}this.setBaseTarget(e,eo(r)?r.get():r)}return eo(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let n,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let i=u(this.props,r,null==(t=this.presenceContext)?void 0:t.custom);i&&(n=i[e])}if(r&&void 0!==n)return n;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||eo(i)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new et),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class ot extends oe{constructor(){super(...arguments),this.KeyframeResolver=tx}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;eo(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class on extends ot{constructor(){super(...arguments),this.type="html",this.renderInstance=iG}readValueFromInstance(e,t){if(U.has(t)){let e=e6(t);return e&&e.default||0}{let n=window.getComputedStyle(e),r=(th(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return nZ(e,t)}build(e,t,n){iI(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return iq(e,t,n)}}class or extends ot{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=nI}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(U.has(t)){let e=e6(t);return e&&e.default||0}return t=iK.has(t)?t:ea(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return iZ(e,t,n)}build(e,t,n){iz(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){iX(e,t,n,r)}mount(e){this.isSVGTag=iH(e.tagName),super.mount(e)}}let oi=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}((n6={animation:{Feature:nh},exit:{Feature:np},inView:{Feature:iy},tap:{Feature:id},focus:{Feature:iu},hover:{Feature:il},pan:{Feature:n4},drag:{Feature:n2,ProjectionNode:is,MeasureLayout:ru},layout:{ProjectionNode:is,MeasureLayout:ru}},n3=(e,t)=>ij(e)?new or(t):new on(t,{allowProjection:e!==n8.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function(e){var t,n;let{preloadedFeatures:r,createVisualElement:i,useRender:o,useVisualState:s,Component:l}=e;function u(e,t){var n;let r,u={...(0,n8.useContext)(ix.Q),...e,layoutId:function(e){let{layoutId:t}=e,n=(0,n8.useContext)(re.L).id;return n&&void 0!==t?n+"-"+t:t}(e)},{isStatic:c}=u,d=function(e){let{initial:t,animate:n}=function(e,t){if(iP(e)){let{initial:t,animate:n}=e;return{initial:!1===t||a(t)?t:void 0,animate:a(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,n8.useContext)(iw));return(0,n8.useMemo)(()=>({initial:t,animate:n}),[iS(t),iS(n)])}(e),h=s(e,c);if(!c&&iA.B){(0,n8.useContext)(ib).strict;let e=function(e){let{drag:t,layout:n}=iC;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(u);r=e.MeasureLayout,d.visualElement=function(e,t,n,r,i){var o,s;let{visualElement:a}=(0,n8.useContext)(iw),l=(0,n8.useContext)(ib),u=(0,n8.useContext)(iM.t),c=(0,n8.useContext)(ix.Q).reducedMotion,d=(0,n8.useRef)(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}));let h=d.current,f=(0,n8.useContext)(rt);h&&!h.projection&&i&&("html"===h.type||"svg"===h.type)&&function(e,t,n,r){let{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&nS(a),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(d.current,n,i,f);let p=(0,n8.useRef)(!1);(0,n8.useInsertionEffect)(()=>{h&&p.current&&h.update(n,u)});let m=n[el],v=(0,n8.useRef)(!!m&&!(null==(o=window.MotionHandoffIsComplete)?void 0:o.call(window,m))&&(null==(s=window.MotionHasOptimisedAnimation)?void 0:s.call(window,m)));return(0,ik.E)(()=>{h&&(p.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),rs.render(h.render),v.current&&h.animationState&&h.animationState.animateChanges())}),(0,n8.useEffect)(()=>{h&&(!v.current&&h.animationState&&h.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var e;null==(e=window.MotionHandoffMarkAsComplete)||e.call(window,m)}),v.current=!1))}),h}(l,h,u,i,e.ProjectionNode)}return(0,n9.jsxs)(iw.Provider,{value:d,children:[r&&d.visualElement?(0,n9.jsx)(r,{visualElement:d.visualElement,...u}):null,o(l,e,(n=d.visualElement,(0,n8.useCallback)(e=>{e&&h.onMount&&h.onMount(e),n&&(e?n.mount(e):n.unmount()),t&&("function"==typeof t?t(e):nS(t)&&(t.current=e))},[n])),h,c,d.visualElement)]})}r&&function(e){for(let t in e)iC[t]={...iC[t],...e[t]}}(r),u.displayName="motion.".concat("string"==typeof l?l:"create(".concat(null!=(n=null!=(t=l.displayName)?t:l.name)?n:"",")"));let c=(0,n8.forwardRef)(u);return c[iR]=l,c}({...ij(e)?iJ:i0,preloadedFeatures:n6,useRender:function(e=!1){return(t,n,r,{latestValues:i},o)=>{let s=(ij(t)?function(e,t,n,r){let i=(0,n8.useMemo)(()=>{let n=i$();return iz(n,t,iH(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};i1(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n={},r=function(e,t){let n=e.style||{},r={};return i1(r,n,e),Object.assign(r,function({transformTemplate:e},t){return(0,n8.useMemo)(()=>{let n=iW();return iI(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n})(n,i,o,t),a=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(i4(i)||!0===n&&i5(i)||!t&&!i5(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),l=t!==n8.Fragment?{...a,...s,ref:r}:{},{children:u}=n,c=(0,n8.useMemo)(()=>eo(u)?u.get():u,[u]);return(0,n8.createElement)(t,{...l,children:c})}}(t),createVisualElement:n3,Component:e})}))},4831:(e,t,n)=>{n.d(t,{qW:()=>h});var r,i=n(2115),o=n(2556),s=n(7602),a=n(4446),l=n(222),u=n(5155),c="dismissableLayer.update",d=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=i.forwardRef((e,t)=>{var n,h;let{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:b,onDismiss:x,...w}=e,P=i.useContext(d),[E,S]=i.useState(null),A=null!=(h=null==E?void 0:E.ownerDocument)?h:null==(n=globalThis)?void 0:n.document,[,T]=i.useState({}),C=(0,a.s)(t,e=>S(e)),R=Array.from(P.layers),[M]=[...P.layersWithOutsidePointerEventsDisabled].slice(-1),k=R.indexOf(M),D=E?R.indexOf(E):-1,j=P.layersWithOutsidePointerEventsDisabled.size>0,L=D>=k,O=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,l.c)(e),o=i.useRef(!1),s=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){p("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",s.current),s.current=t,n.addEventListener("click",s.current,{once:!0})):t()}else n.removeEventListener("click",s.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",s.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...P.branches].some(e=>e.contains(t));L&&!n&&(null==g||g(e),null==b||b(e),e.defaultPrevented||null==x||x())},A),V=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,l.c)(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&p("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;![...P.branches].some(e=>e.contains(t))&&(null==y||y(e),null==b||b(e),e.defaultPrevented||null==x||x())},A);return!function(e,t=globalThis?.document){let n=(0,l.c)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{D===P.layers.size-1&&(null==v||v(e),!e.defaultPrevented&&x&&(e.preventDefault(),x()))},A),i.useEffect(()=>{if(E)return m&&(0===P.layersWithOutsidePointerEventsDisabled.size&&(r=A.body.style.pointerEvents,A.body.style.pointerEvents="none"),P.layersWithOutsidePointerEventsDisabled.add(E)),P.layers.add(E),f(),()=>{m&&1===P.layersWithOutsidePointerEventsDisabled.size&&(A.body.style.pointerEvents=r)}},[E,A,m,P]),i.useEffect(()=>()=>{E&&(P.layers.delete(E),P.layersWithOutsidePointerEventsDisabled.delete(E),f())},[E,P]),i.useEffect(()=>{let e=()=>T({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(s.sG.div,{...w,ref:C,style:{pointerEvents:j?L?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.m)(e.onFocusCapture,V.onFocusCapture),onBlurCapture:(0,o.m)(e.onBlurCapture,V.onBlurCapture),onPointerDownCapture:(0,o.m)(e.onPointerDownCapture,O.onPointerDownCapture)})});function f(){let e=new CustomEvent(c);document.dispatchEvent(e)}function p(e,t,n,r){let{discrete:i}=r,o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?(0,s.hO)(o,a):o.dispatchEvent(a)}h.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(d),r=i.useRef(null),o=(0,a.s)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(s.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch"},5130:(e,t,n)=>{n.d(t,{Q6:()=>W,bL:()=>U,zi:()=>$,CC:()=>z});var r=n(2115);function i(e,[t,n]){return Math.min(n,Math.max(t,e))}var o=n(2556),s=n(4446),a=n(3468),l=n(3558),u=n(6218),c=n(4288),d=n(7602),h=n(8167),f=n(5155),p=["PageUp","PageDown"],m=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],v={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},g="Slider",[y,b,x]=(0,h.N)(g),[w,P]=(0,a.A)(g,[x]),[E,S]=w(g),A=r.forwardRef((e,t)=>{let{name:n,min:s=0,max:a=100,step:u=1,orientation:c="horizontal",disabled:d=!1,minStepsBetweenThumbs:h=0,defaultValue:v=[s],value:g,onValueChange:b=()=>{},onValueCommit:x=()=>{},inverted:w=!1,...P}=e,S=r.useRef(new Set),A=r.useRef(0),T="horizontal"===c,[C=[],k]=(0,l.i)({prop:g,defaultProp:v,onChange:e=>{var t;null==(t=[...S.current][A.current])||t.focus(),b(e)}}),D=r.useRef(C);function j(e,t){let{commit:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{commit:!1},r=(String(u).split(".")[1]||"").length,o=i(function(e,t){let n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-s)/u)*u+s,r),[s,a]);k(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}(e,o,t);if(!function(e,t){if(t>0)return Math.min(...e.slice(0,-1).map((t,n)=>e[n+1]-t))>=t;return!0}(r,h*u))return e;{A.current=r.indexOf(o);let t=String(r)!==String(e);return t&&n&&x(r),t?r:e}})}return(0,f.jsx)(E,{scope:e.__scopeSlider,name:n,disabled:d,min:s,max:a,valueIndexToChangeRef:A,thumbs:S.current,values:C,orientation:c,children:(0,f.jsx)(y.Provider,{scope:e.__scopeSlider,children:(0,f.jsx)(y.Slot,{scope:e.__scopeSlider,children:(0,f.jsx)(T?R:M,{"aria-disabled":d,"data-disabled":d?"":void 0,...P,ref:t,onPointerDown:(0,o.m)(P.onPointerDown,()=>{d||(D.current=C)}),min:s,max:a,inverted:w,onSlideStart:d?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}(C,e);j(e,t)},onSlideMove:d?void 0:function(e){j(e,A.current)},onSlideEnd:d?void 0:function(){let e=D.current[A.current];C[A.current]!==e&&x(C)},onHomeKeyDown:()=>!d&&j(s,0,{commit:!0}),onEndKeyDown:()=>!d&&j(a,C.length-1,{commit:!0}),onStepKeyDown:e=>{let{event:t,direction:n}=e;if(!d){let e=p.includes(t.key)||t.shiftKey&&m.includes(t.key),r=A.current;j(C[r]+u*(e?10:1)*n,r,{commit:!0})}}})})})})});A.displayName=g;var[T,C]=w(g,{startEdge:"left",endEdge:"right",size:"width",direction:1}),R=r.forwardRef((e,t)=>{let{min:n,max:i,dir:o,inverted:a,onSlideStart:l,onSlideMove:c,onSlideEnd:d,onStepKeyDown:h,...p}=e,[m,g]=r.useState(null),y=(0,s.s)(t,e=>g(e)),b=r.useRef(),x=(0,u.jH)(o),w="ltr"===x,P=w&&!a||!w&&a;function E(e){let t=b.current||m.getBoundingClientRect(),r=_([0,t.width],P?[n,i]:[i,n]);return b.current=t,r(e-t.left)}return(0,f.jsx)(T,{scope:e.__scopeSlider,startEdge:P?"left":"right",endEdge:P?"right":"left",direction:P?1:-1,size:"width",children:(0,f.jsx)(k,{dir:x,"data-orientation":"horizontal",...p,ref:y,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=E(e.clientX);null==l||l(t)},onSlideMove:e=>{let t=E(e.clientX);null==c||c(t)},onSlideEnd:()=>{b.current=void 0,null==d||d()},onStepKeyDown:e=>{let t=v[P?"from-left":"from-right"].includes(e.key);null==h||h({event:e,direction:t?-1:1})}})})}),M=r.forwardRef((e,t)=>{let{min:n,max:i,inverted:o,onSlideStart:a,onSlideMove:l,onSlideEnd:u,onStepKeyDown:c,...d}=e,h=r.useRef(null),p=(0,s.s)(t,h),m=r.useRef(),g=!o;function y(e){let t=m.current||h.current.getBoundingClientRect(),r=_([0,t.height],g?[i,n]:[n,i]);return m.current=t,r(e-t.top)}return(0,f.jsx)(T,{scope:e.__scopeSlider,startEdge:g?"bottom":"top",endEdge:g?"top":"bottom",size:"height",direction:g?1:-1,children:(0,f.jsx)(k,{"data-orientation":"vertical",...d,ref:p,style:{...d.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=y(e.clientY);null==a||a(t)},onSlideMove:e=>{let t=y(e.clientY);null==l||l(t)},onSlideEnd:()=>{m.current=void 0,null==u||u()},onStepKeyDown:e=>{let t=v[g?"from-bottom":"from-top"].includes(e.key);null==c||c({event:e,direction:t?-1:1})}})})}),k=r.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:s,onHomeKeyDown:a,onEndKeyDown:l,onStepKeyDown:u,...c}=e,h=S(g,n);return(0,f.jsx)(d.sG.span,{...c,ref:t,onKeyDown:(0,o.m)(e.onKeyDown,e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(l(e),e.preventDefault()):p.concat(m).includes(e.key)&&(u(e),e.preventDefault())}),onPointerDown:(0,o.m)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),h.thumbs.has(t)?t.focus():r(e)}),onPointerMove:(0,o.m)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)}),onPointerUp:(0,o.m)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),s(e))})})}),D="SliderTrack",j=r.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,i=S(D,n);return(0,f.jsx)(d.sG.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...r,ref:t})});j.displayName=D;var L="SliderRange",O=r.forwardRef((e,t)=>{let{__scopeSlider:n,...i}=e,o=S(L,n),a=C(L,n),l=r.useRef(null),u=(0,s.s)(t,l),c=o.values.length,h=o.values.map(e=>B(e,o.min,o.max)),p=c>1?Math.min(...h):0,m=100-Math.max(...h);return(0,f.jsx)(d.sG.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...i,ref:u,style:{...e.style,[a.startEdge]:p+"%",[a.endEdge]:m+"%"}})});O.displayName=L;var V="SliderThumb",F=r.forwardRef((e,t)=>{let n=b(e.__scopeSlider),[i,o]=r.useState(null),a=(0,s.s)(t,e=>o(e)),l=r.useMemo(()=>i?n().findIndex(e=>e.ref.current===i):-1,[n,i]);return(0,f.jsx)(N,{...e,ref:a,index:l})}),N=r.forwardRef((e,t)=>{let{__scopeSlider:n,index:i,name:a,...l}=e,u=S(V,n),h=C(V,n),[p,m]=r.useState(null),v=(0,s.s)(t,e=>m(e)),g=!p||!!p.closest("form"),b=(0,c.X)(p),x=u.values[i],w=void 0===x?0:B(x,u.min,u.max),P=function(e,t){return t>2?"Value ".concat(e+1," of ").concat(t):2===t?["Minimum","Maximum"][e]:void 0}(i,u.values.length),E=null==b?void 0:b[h.size],A=E?function(e,t,n){let r=e/2,i=_([0,50],[0,r]);return(r-i(t)*n)*n}(E,w,h.direction):0;return r.useEffect(()=>{if(p)return u.thumbs.add(p),()=>{u.thumbs.delete(p)}},[p,u.thumbs]),(0,f.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[h.startEdge]:"calc(".concat(w,"% + ").concat(A,"px)")},children:[(0,f.jsx)(y.ItemSlot,{scope:e.__scopeSlider,children:(0,f.jsx)(d.sG.span,{role:"slider","aria-label":e["aria-label"]||P,"aria-valuemin":u.min,"aria-valuenow":x,"aria-valuemax":u.max,"aria-orientation":u.orientation,"data-orientation":u.orientation,"data-disabled":u.disabled?"":void 0,tabIndex:u.disabled?void 0:0,...l,ref:v,style:void 0===x?{display:"none"}:e.style,onFocus:(0,o.m)(e.onFocus,()=>{u.valueIndexToChangeRef.current=i})})}),g&&(0,f.jsx)(I,{name:null!=a?a:u.name?u.name+(u.values.length>1?"[]":""):void 0,value:x},i)]})});F.displayName=V;var I=e=>{let{value:t,...n}=e,i=r.useRef(null),o=function(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(t);return r.useEffect(()=>{let e=i.current,n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(o!==t&&n){let r=new Event("input",{bubbles:!0});n.call(e,t),e.dispatchEvent(r)}},[o,t]),(0,f.jsx)("input",{style:{display:"none"},...n,ref:i,defaultValue:t})};function B(e,t,n){return i(100/(n-t)*(e-t),[0,100])}function _(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}var U=A,z=j,W=O,$=F},5229:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(1847).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},5433:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(2115),i=n(7650),o=n(7602),s=n(4129),a=n(5155),l=r.forwardRef((e,t)=>{var n,l;let{container:u,...c}=e,[d,h]=r.useState(!1);(0,s.N)(()=>h(!0),[]);let f=u||d&&(null==(l=globalThis)||null==(n=l.document)?void 0:n.body);return f?i.createPortal((0,a.jsx)(o.sG.div,{...c,ref:t}),f):null});l.displayName="Portal"},5601:(e,t,n)=>{n.d(t,{xQ:()=>o});var r=n(2115),i=n(9686);function o(e=!0){let t=(0,r.useContext)(i.t);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:s,register:a}=t,l=(0,r.useId)();(0,r.useEffect)(()=>{e&&a(l)},[e]);let u=(0,r.useCallback)(()=>e&&s&&s(l),[l,s,e]);return!n&&s?[!1,u]:[!0]}},5889:(e,t,n)=>{n.d(t,{QP:()=>F});let r=/^\[(.+)\]$/;function i(e,t){let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n}let o=/\s+/;function s(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=function e(t){let n;if("string"==typeof t)return t;let r="";for(let i=0;i<t.length;i++)t[i]&&(n=e(t[i]))&&(r&&(r+=" "),r+=n);return r}(e))&&(r&&(r+=" "),r+=t);return r}function a(e){let t=t=>t[e]||[];return t.isThemeGetter=!0,t}let l=/^\[(?:([a-z-]+):)?(.+)\]$/i,u=/^\d+\/\d+$/,c=new Set(["px","full","screen"]),d=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,h=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,f=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,p=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,m=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function v(e){return y(e)||c.has(e)||u.test(e)}function g(e){return D(e,"length",j)}function y(e){return!!e&&!Number.isNaN(Number(e))}function b(e){return D(e,"number",y)}function x(e){return!!e&&Number.isInteger(Number(e))}function w(e){return e.endsWith("%")&&y(e.slice(0,-1))}function P(e){return l.test(e)}function E(e){return d.test(e)}let S=new Set(["length","size","percentage"]);function A(e){return D(e,S,L)}function T(e){return D(e,"position",L)}let C=new Set(["image","url"]);function R(e){return D(e,C,V)}function M(e){return D(e,"",O)}function k(){return!0}function D(e,t,n){let r=l.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))}function j(e){return h.test(e)&&!f.test(e)}function L(){return!1}function O(e){return p.test(e)}function V(e){return m.test(e)}Symbol.toStringTag;let F=function(e,...t){let n,a,l,u=function(o){var s;return a=(n={cache:function(e){if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,r=new Map;function i(i,o){n.set(i,o),++t>e&&(t=0,r=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(i(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}}((s=t.reduce((e,t)=>t(e),e())).cacheSize),splitModifiers:function(e){let t=e.separator,n=1===t.length,r=t[0],i=t.length;return function(e){let o,s=[],a=0,l=0;for(let u=0;u<e.length;u++){let c=e[u];if(0===a){if(c===r&&(n||e.slice(u,u+i)===t)){s.push(e.slice(l,u)),l=u+i;continue}if("/"===c){o=u;continue}}"["===c?a++:"]"===c&&a--}let u=0===s.length?e:e.substring(l),c=u.startsWith("!"),d=c?u.substring(1):u;return{modifiers:s,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:o&&o>l?o-l:void 0}}}(s),...function(e){let t=function(e){var t,n;let{theme:r,prefix:o}=e,s={nextPart:new Map,validators:[]};return(t=Object.entries(e.classGroups),(n=o)?t.map(([e,t])=>[e,t.map(e=>"string"==typeof e?n+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,t])=>[n+e,t])):e)]):t).forEach(([e,t])=>{!function e(t,n,r,o){t.forEach(t=>{if("string"==typeof t){(""===t?n:i(n,t)).classGroupId=r;return}if("function"==typeof t)return t.isThemeGetter?void e(t(o),n,r,o):void n.validators.push({validator:t,classGroupId:r});Object.entries(t).forEach(([t,s])=>{e(s,i(n,t),r,o)})})}(t,s,e,r)}),s}(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:function(e){let n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),function e(t,n){if(0===t.length)return n.classGroupId;let r=t[0],i=n.nextPart.get(r),o=i?e(t.slice(1),i):void 0;if(o)return o;if(0===n.validators.length)return;let s=t.join("-");return n.validators.find(({validator:e})=>e(s))?.classGroupId}(n,t)||function(e){if(r.test(e)){let t=r.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){let r=n[e]||[];return t&&o[e]?[...r,...o[e]]:r}}}(s)}).cache.get,l=n.cache.set,u=c,c(o)};function c(e){let t=a(e);if(t)return t;let r=function(e,t){let{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=new Set;return e.trim().split(o).map(e=>{let{modifiers:t,hasImportantModifier:i,baseClassName:o,maybePostfixModifierPosition:s}=n(e),a=r(s?o.substring(0,s):o),l=!!s;if(!a){if(!s||!(a=r(o)))return{isTailwindClass:!1,originalClassName:e};l=!1}let u=(function(e){if(e.length<=1)return e;let t=[],n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t})(t).join(":");return{isTailwindClass:!0,modifierId:i?u+"!":u,classGroupId:a,originalClassName:e,hasPostfixModifier:l}}).reverse().filter(e=>{if(!e.isTailwindClass)return!0;let{modifierId:t,classGroupId:n,hasPostfixModifier:r}=e,o=t+n;return!s.has(o)&&(s.add(o),i(n,r).forEach(e=>s.add(t+e)),!0)}).reverse().map(e=>e.originalClassName).join(" ")}(e,n);return l(e,r),r}return function(){return u(s.apply(null,arguments))}}(function(){let e=a("colors"),t=a("spacing"),n=a("blur"),r=a("brightness"),i=a("borderColor"),o=a("borderRadius"),s=a("borderSpacing"),l=a("borderWidth"),u=a("contrast"),c=a("grayscale"),d=a("hueRotate"),h=a("invert"),f=a("gap"),p=a("gradientColorStops"),m=a("gradientColorStopPositions"),S=a("inset"),C=a("margin"),D=a("opacity"),j=a("padding"),L=a("saturate"),O=a("scale"),V=a("sepia"),F=a("skew"),N=a("space"),I=a("translate"),B=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",P,t],z=()=>[P,t],W=()=>["",v,g],$=()=>["auto",y,P],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],G=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>["start","end","center","between","around","evenly","stretch"],Y=()=>["","0",P],q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>[y,b],Q=()=>[y,P];return{cacheSize:500,separator:":",theme:{colors:[k],spacing:[v,g],blur:["none","",E,P],brightness:Z(),borderColor:[e],borderRadius:["none","","full",E,P],borderSpacing:z(),borderWidth:W(),contrast:Z(),grayscale:Y(),hueRotate:Q(),invert:Y(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[w,g],inset:U(),margin:U(),opacity:Z(),padding:z(),saturate:Z(),scale:Z(),sepia:Y(),skew:Q(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",P]}],container:["container"],columns:[{columns:[E]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...H(),P]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",x,P]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",P]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",x,P]}],"grid-cols":[{"grid-cols":[k]}],"col-start-end":[{col:["auto",{span:["full",x,P]},P]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[k]}],"row-start-end":[{row:["auto",{span:[x,P]},P]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",P]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",P]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...X()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...X(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...X(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[j]}],px:[{px:[j]}],py:[{py:[j]}],ps:[{ps:[j]}],pe:[{pe:[j]}],pt:[{pt:[j]}],pr:[{pr:[j]}],pb:[{pb:[j]}],pl:[{pl:[j]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",P,t]}],"min-w":[{"min-w":[P,t,"min","max","fit"]}],"max-w":[{"max-w":[P,t,"none","full","min","max","fit","prose",{screen:[E]},E]}],h:[{h:[P,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[P,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[P,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[P,t,"auto","min","max","fit"]}],"font-size":[{text:["base",E,g]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",b]}],"font-family":[{font:[k]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",P]}],"line-clamp":[{"line-clamp":["none",y,b]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",v,P]}],"list-image":[{"list-image":["none",P]}],"list-style-type":[{list:["none","disc","decimal",P]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[D]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[D]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",v,g]}],"underline-offset":[{"underline-offset":["auto",v,P]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",P]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[D]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...H(),T]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",A]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},R]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[D]}],"border-style":[{border:[...G(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[D]}],"divide-style":[{divide:G()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...G()]}],"outline-offset":[{"outline-offset":[v,P]}],"outline-w":[{outline:[v,g]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[D]}],"ring-offset-w":[{"ring-offset":[v,g]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",E,M]}],"shadow-color":[{shadow:[k]}],opacity:[{opacity:[D]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",E,P]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[L]}],sepia:[{sepia:[V]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[D]}],"backdrop-saturate":[{"backdrop-saturate":[L]}],"backdrop-sepia":[{"backdrop-sepia":[V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",P]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",P]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",P]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-x":[{"scale-x":[O]}],"scale-y":[{"scale-y":[O]}],rotate:[{rotate:[x,P]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[F]}],"skew-y":[{"skew-y":[F]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",P]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",P]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",P]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[v,g,b]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})},5917:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(1847).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},5921:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(1847).A)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},6218:(e,t,n)=>{n.d(t,{jH:()=>o});var r=n(2115);n(5155);var i=r.createContext(void 0);function o(e){let t=r.useContext(i);return e||t||"ltr"}},6553:(e,t,n)=>{n.d(t,{E:()=>i});var r=n(2115);let i=n(3577).B?r.useLayoutEffect:r.useEffect},6842:(e,t,n)=>{n.d(t,{C:()=>a});var r=n(2115),i=n(7650),o=n(4446),s=n(4129),a=e=>{let{present:t,children:n}=e,a=function(e){var t,n;let[o,a]=r.useState(),u=r.useRef({}),c=r.useRef(e),d=r.useRef("none"),[h,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=l(u.current);d.current="mounted"===h?e:"none"},[h]),(0,s.N)(()=>{let t=u.current,n=c.current;if(n!==e){let r=d.current,i=l(t);e?f("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==i?f("ANIMATION_OUT"):f("UNMOUNT"),c.current=e}},[e,f]),(0,s.N)(()=>{if(o){let e=e=>{let t=l(u.current).includes(e.animationName);e.target===o&&t&&i.flushSync(()=>f("ANIMATION_END"))},t=e=>{e.target===o&&(d.current=l(u.current))};return o.addEventListener("animationstart",t),o.addEventListener("animationcancel",e),o.addEventListener("animationend",e),()=>{o.removeEventListener("animationstart",t),o.removeEventListener("animationcancel",e),o.removeEventListener("animationend",e)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:r.useCallback(e=>{e&&(u.current=getComputedStyle(e)),a(e)},[])}}(t),u="function"==typeof n?n({present:a.isPresent}):r.Children.only(n),c=(0,o.s)(a.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(i=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u));return"function"==typeof n||a.isPresent?r.cloneElement(u,{ref:c}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},7602:(e,t,n)=>{n.d(t,{hO:()=>l,sG:()=>a});var r=n(2115),i=n(7650),o=n(2467),s=n(5155),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?o.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},7745:(e,t,n)=>{n.d(t,{Eq:()=>u});var r=new WeakMap,i=new WeakMap,o={},s=0,a=function(e){return e&&(e.host||a(e.parentNode))},l=function(e,t,n,l){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=a(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});o[n]||(o[n]=new WeakMap);var c=o[n],d=[],h=new Set,f=new Set(u),p=function(e){!e||h.has(e)||(h.add(e),p(e.parentNode))};u.forEach(p);var m=function(e){!e||f.has(e)||Array.prototype.forEach.call(e.children,function(e){if(h.has(e))m(e);else try{var t=e.getAttribute(l),o=null!==t&&"false"!==t,s=(r.get(e)||0)+1,a=(c.get(e)||0)+1;r.set(e,s),c.set(e,a),d.push(e),1===s&&o&&i.set(e,!0),1===a&&e.setAttribute(n,"true"),o||e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),h.clear(),s++,function(){d.forEach(function(e){var t=r.get(e)-1,o=c.get(e)-1;r.set(e,t),c.set(e,o),t||(i.has(e)||e.removeAttribute(l),i.delete(e)),o||e.removeAttribute(n)}),--s||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}},u=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),l(r,i,n,"aria-hidden")):function(){return null}}},7937:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(1847).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},8081:(e,t,n)=>{n.d(t,{H_:()=>nC,UC:()=>nE,YJ:()=>nS,q7:()=>nT,VF:()=>nk,JU:()=>nA,ZL:()=>nP,z6:()=>nR,hN:()=>nM,bL:()=>nx,wv:()=>nD,Pb:()=>nj,G5:()=>nO,ZP:()=>nL,l9:()=>nw});var r=n(2115),i=n(2556),o=n(4446),s=n(3468),a=n(3558),l=n(7602),u=n(8167),c=n(6218),d=n(4831),h=n(9526),f=n(9666),p=n(8946);let m=["top","right","bottom","left"],v=Math.min,g=Math.max,y=Math.round,b=Math.floor,x=e=>({x:e,y:e}),w={left:"right",right:"left",bottom:"top",top:"bottom"},P={start:"end",end:"start"};function E(e,t){return"function"==typeof e?e(t):e}function S(e){return e.split("-")[0]}function A(e){return e.split("-")[1]}function T(e){return"x"===e?"y":"x"}function C(e){return"y"===e?"height":"width"}function R(e){return["top","bottom"].includes(S(e))?"y":"x"}function M(e){return e.replace(/start|end/g,e=>P[e])}function k(e){return e.replace(/left|right|bottom|top/g,e=>w[e])}function D(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function j(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function L(e,t,n){let r,{reference:i,floating:o}=e,s=R(t),a=T(R(t)),l=C(a),u=S(t),c="y"===s,d=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,f=i[l]/2-o[l]/2;switch(u){case"top":r={x:d,y:i.y-o.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:h};break;case"left":r={x:i.x-o.width,y:h};break;default:r={x:i.x,y:i.y}}switch(A(t)){case"start":r[a]-=f*(n&&c?-1:1);break;case"end":r[a]+=f*(n&&c?-1:1)}return r}let O=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await (null==s.isRTL?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=L(u,r,l),h=r,f={},p=0;for(let n=0;n<a.length;n++){let{name:o,fn:m}=a[n],{x:v,y:g,data:y,reset:b}=await m({x:c,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,rects:u,platform:s,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=g?g:d,f={...f,[o]:{...f[o],...y}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(u=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:c,y:d}=L(u,h,l)),n=-1)}return{x:c,y:d,placement:h,strategy:i,middlewareData:f}};async function V(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=E(t,e),p=D(f),m=a[h?"floating"===d?"reference":"floating":d],v=j(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),g="floating"===d?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,y=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),b=await (null==o.isElement?void 0:o.isElement(y))&&await (null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},x=j(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:l}):g);return{top:(v.top-x.top+p.top)/b.y,bottom:(x.bottom-v.bottom+p.bottom)/b.y,left:(v.left-x.left+p.left)/b.x,right:(x.right-v.right+p.right)/b.x}}function F(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function N(e){return m.some(t=>e[t]>=0)}async function I(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),s=S(n),a=A(n),l="y"===R(n),u=["left","top"].includes(s)?-1:1,c=o&&l?-1:1,d=E(t,e),{mainAxis:h,crossAxis:f,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof p&&(f="end"===a?-1*p:p),l?{x:f*c,y:h*u}:{x:h*u,y:f*c}}function B(e){return z(e)?(e.nodeName||"").toLowerCase():"#document"}function _(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function U(e){var t;return null==(t=(z(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function z(e){return e instanceof Node||e instanceof _(e).Node}function W(e){return e instanceof Element||e instanceof _(e).Element}function $(e){return e instanceof HTMLElement||e instanceof _(e).HTMLElement}function H(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof _(e).ShadowRoot)}function G(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function K(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function X(e){let t=Y(),n=Z(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function Y(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function q(e){return["html","body","#document"].includes(B(e))}function Z(e){return _(e).getComputedStyle(e)}function Q(e){return W(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function J(e){if("html"===B(e))return e;let t=e.assignedSlot||e.parentNode||H(e)&&e.host||U(e);return H(t)?t.host:t}function ee(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=J(t);return q(n)?t.ownerDocument?t.ownerDocument.body:t.body:$(n)&&G(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),s=_(i);return o?t.concat(s,s.visualViewport||[],G(i)?i:[],s.frameElement&&n?ee(s.frameElement):[]):t.concat(i,ee(i,[],n))}function et(e){let t=Z(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=$(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=y(n)!==o||y(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function en(e){return W(e)?e:e.contextElement}function er(e){let t=en(e);if(!$(t))return x(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=et(t),s=(o?y(n.width):n.width)/r,a=(o?y(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}let ei=x(0);function eo(e){let t=_(e);return Y()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ei}function es(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),s=en(e),a=x(1);t&&(r?W(r)&&(a=er(r)):a=er(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===_(s))&&i)?eo(s):x(0),u=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,d=o.width/a.x,h=o.height/a.y;if(s){let e=_(s),t=r&&W(r)?_(r):r,n=e,i=n.frameElement;for(;i&&r&&t!==n;){let e=er(i),t=i.getBoundingClientRect(),r=Z(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,h*=e.y,u+=o,c+=s,i=(n=_(i)).frameElement}}return j({width:d,height:h,x:u,y:c})}function ea(e){return es(U(e)).left+Q(e).scrollLeft}function el(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=_(e),r=U(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;let e=Y();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){let t=U(e),n=Q(e),r=e.ownerDocument.body,i=g(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=g(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+ea(e),a=-n.scrollTop;return"rtl"===Z(r).direction&&(s+=g(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}(U(e));else if(W(t))r=function(e,t){let n=es(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=$(e)?er(e):x(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y;return{width:s,height:a,x:i*o.x,y:r*o.y}}(t,n);else{let n=eo(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return j(r)}function eu(e){return"static"===Z(e).position}function ec(e,t){return $(e)&&"fixed"!==Z(e).position?t?t(e):e.offsetParent:null}function ed(e,t){let n=_(e);if(K(e))return n;if(!$(e)){let t=J(e);for(;t&&!q(t);){if(W(t)&&!eu(t))return t;t=J(t)}return n}let r=ec(e,t);for(;r&&["table","td","th"].includes(B(r))&&eu(r);)r=ec(r,t);return r&&q(r)&&eu(r)&&!X(r)?n:r||function(e){let t=J(e);for(;$(t)&&!q(t)&&!K(t);){if(X(t))return t;t=J(t)}return null}(e)||n}let eh=async function(e){let t=this.getOffsetParent||ed,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=$(t),i=U(t),o="fixed"===n,s=es(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=x(0);if(r||!r&&!o)if(("body"!==B(t)||G(i))&&(a=Q(t)),r){let e=es(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=ea(i));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ef={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,s=U(r),a=!!t&&K(t.floating);if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=x(1),c=x(0),d=$(r);if((d||!d&&!o)&&(("body"!==B(r)||G(s))&&(l=Q(r)),$(r))){let e=es(r);u=er(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}},getDocumentElement:U,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?K(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=ee(e,[],!1).filter(e=>W(e)&&"body"!==B(e)),i=null,o="fixed"===Z(e).position,s=o?J(e):e;for(;W(s)&&!q(s);){let t=Z(s),n=X(s);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||G(s)&&!n&&function e(t,n){let r=J(t);return!(r===n||!W(r)||q(r))&&("fixed"===Z(r).position||e(r,n))}(e,s))?r=r.filter(e=>e!==s):i=t,s=J(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=o[0],a=o.reduce((e,n)=>{let r=el(t,n,i);return e.top=g(r.top,e.top),e.right=v(r.right,e.right),e.bottom=v(r.bottom,e.bottom),e.left=g(r.left,e.left),e},el(t,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:ed,getElementRects:eh,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=et(e);return{width:t,height:n}},getScale:er,isElement:W,isRTL:function(e){return"rtl"===Z(e).direction}},ep=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=E(e,t)||{};if(null==u)return{};let d=D(c),h={x:n,y:r},f=T(R(i)),p=C(f),m=await s.getDimensions(u),y="y"===f,b=y?"clientHeight":"clientWidth",x=o.reference[p]+o.reference[f]-h[f]-o.floating[p],w=h[f]-o.reference[f],P=await (null==s.getOffsetParent?void 0:s.getOffsetParent(u)),S=P?P[b]:0;S&&await (null==s.isElement?void 0:s.isElement(P))||(S=a.floating[b]||o.floating[p]);let M=S/2-m[p]/2-1,k=v(d[y?"top":"left"],M),j=v(d[y?"bottom":"right"],M),L=S-m[p]-j,O=S/2-m[p]/2+(x/2-w/2),V=g(k,v(O,L)),F=!l.arrow&&null!=A(i)&&O!==V&&o.reference[p]/2-(O<k?k:j)-m[p]/2<0,N=F?O<k?O-k:O-L:0;return{[f]:h[f]+N,data:{[f]:V,centerOffset:O-V-N,...F&&{alignmentOffset:N}},reset:F}}});var em=n(7650),ev="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function eg(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eg(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!eg(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ey(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eb(e,t){let n=ey(e);return Math.round(t*n)/n}function ex(e){let t=r.useRef(e);return ev(()=>{t.current=e}),t}var ew=n(5155),eP=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,ew.jsx)(l.sG.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,ew.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eP.displayName="Arrow";var eE=n(222),eS=n(4129),eA=n(4288),eT="Popper",[eC,eR]=(0,s.A)(eT),[eM,ek]=eC(eT),eD=e=>{let{__scopePopper:t,children:n}=e,[i,o]=r.useState(null);return(0,ew.jsx)(eM,{scope:t,anchor:i,onAnchorChange:o,children:n})};eD.displayName=eT;var ej="PopperAnchor",eL=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:i,...s}=e,a=ek(ej,n),u=r.useRef(null),c=(0,o.s)(t,u);return r.useEffect(()=>{a.onAnchorChange((null==i?void 0:i.current)||u.current)}),i?null:(0,ew.jsx)(l.sG.div,{...s,ref:c})});eL.displayName=ej;var eO="PopperContent",[eV,eF]=eC(eO),eN=r.forwardRef((e,t)=>{var n,i,s,a,u,c,d,h;let{__scopePopper:f,side:p="bottom",sideOffset:m=0,align:y="center",alignOffset:x=0,arrowPadding:w=0,avoidCollisions:P=!0,collisionBoundary:D=[],collisionPadding:j=0,sticky:L="partial",hideWhenDetached:B=!1,updatePositionStrategy:_="optimized",onPlaced:z,...W}=e,$=ek(eO,f),[H,G]=r.useState(null),K=(0,o.s)(t,e=>G(e)),[X,Y]=r.useState(null),q=(0,eA.X)(X),Z=null!=(d=null==q?void 0:q.width)?d:0,Q=null!=(h=null==q?void 0:q.height)?h:0,J="number"==typeof j?j:{top:0,right:0,bottom:0,left:0,...j},et=Array.isArray(D)?D:[D],er=et.length>0,ei={padding:J,boundary:et.filter(eU),altBoundary:er},{refs:eo,floatingStyles:ea,placement:el,isPositioned:eu,middlewareData:ec}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:s,floating:a}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,h]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=r.useState(i);eg(f,i)||p(i);let[m,v]=r.useState(null),[g,y]=r.useState(null),b=r.useCallback(e=>{e!==E.current&&(E.current=e,v(e))},[]),x=r.useCallback(e=>{e!==S.current&&(S.current=e,y(e))},[]),w=s||m,P=a||g,E=r.useRef(null),S=r.useRef(null),A=r.useRef(d),T=null!=u,C=ex(u),R=ex(o),M=r.useCallback(()=>{if(!E.current||!S.current)return;let e={placement:t,strategy:n,middleware:f};R.current&&(e.platform=R.current),((e,t,n)=>{let r=new Map,i={platform:ef,...n},o={...i.platform,_c:r};return O(e,t,{...i,platform:o})})(E.current,S.current,e).then(e=>{let t={...e,isPositioned:!0};k.current&&!eg(A.current,t)&&(A.current=t,em.flushSync(()=>{h(t)}))})},[f,t,n,R]);ev(()=>{!1===c&&A.current.isPositioned&&(A.current.isPositioned=!1,h(e=>({...e,isPositioned:!1})))},[c]);let k=r.useRef(!1);ev(()=>(k.current=!0,()=>{k.current=!1}),[]),ev(()=>{if(w&&(E.current=w),P&&(S.current=P),w&&P){if(C.current)return C.current(w,P,M);M()}},[w,P,M,C,T]);let D=r.useMemo(()=>({reference:E,floating:S,setReference:b,setFloating:x}),[b,x]),j=r.useMemo(()=>({reference:w,floating:P}),[w,P]),L=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=eb(j.floating,d.x),r=eb(j.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...ey(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,j.floating,d.x,d.y]);return r.useMemo(()=>({...d,update:M,refs:D,elements:j,floatingStyles:L}),[d,M,D,j,L])}({strategy:"fixed",placement:p+("center"!==y?"-"+y:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=en(e),d=o||s?[...c?ee(c):[],...ee(t)]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let h=c&&l?function(e,t){let n,r=null,i=U(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),o();let{left:u,top:c,width:d,height:h}=e.getBoundingClientRect();if(a||t(),!d||!h)return;let f=b(c),p=b(i.clientWidth-(u+d)),m={rootMargin:-f+"px "+-p+"px "+-b(i.clientHeight-(c+h))+"px "+-b(u)+"px",threshold:g(0,v(1,l))||1},y=!0;function x(e){let t=e[0].intersectionRatio;if(t!==l){if(!y)return s();t?s(!1,t):n=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(x,{...m,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(x,m)}r.observe(e)}(!0),o}(c,n):null,f=-1,p=null;a&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),c&&!u&&p.observe(c),p.observe(t));let m=u?es(e):null;return u&&function t(){let r=es(e);m&&(r.x!==m.x||r.y!==m.y||r.width!==m.width||r.height!==m.height)&&n(),m=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(i)}}(...t,{animationFrame:"always"===_})},elements:{reference:$.anchor},middleware:[((e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:s,middlewareData:a}=t,l=await I(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}}(e),options:[e,t]}))({mainAxis:m+Q,alignmentAxis:x}),P&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=E(e,t),u={x:n,y:r},c=await V(t,l),d=R(S(i)),h=T(d),f=u[h],p=u[d];if(o){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=f+c[e],r=f-c[t];f=g(n,v(f,r))}if(s){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=p+c[e],r=p-c[t];p=g(n,v(p,r))}let m=a.fn({...t,[h]:f,[d]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}}(e),options:[e,t]}))({mainAxis:!0,crossAxis:!1,limiter:"partial"===L?((e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=E(e,t),c={x:n,y:r},d=R(i),h=T(d),f=c[h],p=c[d],m=E(a,t),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+v.mainAxis,n=o.reference[h]+o.reference[e]-v.mainAxis;f<t?f=t:f>n&&(f=n)}if(u){var g,y;let e="y"===h?"width":"height",t=["top","left"].includes(S(i)),n=o.reference[d]-o.floating[e]+(t&&(null==(g=s.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(y=s.offset)?void 0:y[d])||0)-(t?v.crossAxis:0);p<n?p=n:p>r&&(p=r)}return{[h]:f,[d]:p}}}}(e),options:[e,t]}))():void 0,...ei}),P&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,s;let{placement:a,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:h}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...b}=E(e,t);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};let x=S(a),w=R(c),P=S(c)===c,D=await (null==d.isRTL?void 0:d.isRTL(h.floating)),j=m||(P||!y?[k(c)]:function(e){let t=k(e);return[M(e),t,M(t)]}(c)),L="none"!==g;!m&&L&&j.push(...function(e,t,n,r){let i=A(e),o=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(S(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(M)))),o}(c,y,g,D));let O=[c,...j],F=await V(t,b),N=[],I=(null==(r=l.flip)?void 0:r.overflows)||[];if(f&&N.push(F[x]),p){let e=function(e,t,n){void 0===n&&(n=!1);let r=A(e),i=T(R(e)),o=C(i),s="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=k(s)),[s,k(s)]}(a,u,D);N.push(F[e[0]],F[e[1]])}if(I=[...I,{placement:a,overflows:N}],!N.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=O[e];if(t)return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(o=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(v){case"bestFit":{let e=null==(s=I.filter(e=>{if(L){let t=R(e.placement);return t===w||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:s[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}))({...ei}),((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,r,{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...u}=E(e,t),c=await V(t,u),d=S(i),h=A(i),f="y"===R(i),{width:p,height:m}=o.floating;"top"===d||"bottom"===d?(n=d,r=h===(await (null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(r=d,n="end"===h?"top":"bottom");let y=m-c.top-c.bottom,b=p-c.left-c.right,x=v(m-c[n],y),w=v(p-c[r],b),P=!t.middlewareData.shift,T=x,C=w;if(f?C=h||P?v(w,b):b:T=h||P?v(x,y):y,P&&!h){let e=g(c.left,0),t=g(c.right,0),n=g(c.top,0),r=g(c.bottom,0);f?C=p-2*(0!==e||0!==t?e+t:g(c.left,c.right)):T=m-2*(0!==n||0!==r?n+r:g(c.top,c.bottom))}await l({...t,availableWidth:C,availableHeight:T});let M=await s.getDimensions(a.floating);return p!==M.width||m!==M.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}))({...ei,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:i}=e,{width:o,height:s}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(i,"px")),a.setProperty("--radix-popper-anchor-width","".concat(o,"px")),a.setProperty("--radix-popper-anchor-height","".concat(s,"px"))}}),X&&((e,t)=>({...(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?ep({element:n.current,padding:r}).fn(t):{}:n?ep({element:n,padding:r}).fn(t):{}}}))(e),options:[e,t]}))({element:X,padding:w}),ez({arrowWidth:Z,arrowHeight:Q}),B&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...i}=E(e,t);switch(r){case"referenceHidden":{let e=F(await V(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:N(e)}}}case"escaped":{let e=F(await V(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:N(e)}}}default:return{}}}}}(e),options:[e,t]}))({strategy:"referenceHidden",...ei})]}),[ed,eh]=eW(el),eP=(0,eE.c)(z);(0,eS.N)(()=>{eu&&(null==eP||eP())},[eu,eP]);let eT=null==(n=ec.arrow)?void 0:n.x,eC=null==(i=ec.arrow)?void 0:i.y,eR=(null==(s=ec.arrow)?void 0:s.centerOffset)!==0,[eM,eD]=r.useState();return(0,eS.N)(()=>{H&&eD(window.getComputedStyle(H).zIndex)},[H]),(0,ew.jsx)("div",{ref:eo.setFloating,"data-radix-popper-content-wrapper":"",style:{...ea,transform:eu?ea.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eM,"--radix-popper-transform-origin":[null==(a=ec.transformOrigin)?void 0:a.x,null==(u=ec.transformOrigin)?void 0:u.y].join(" "),...(null==(c=ec.hide)?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ew.jsx)(eV,{scope:f,placedSide:ed,onArrowChange:Y,arrowX:eT,arrowY:eC,shouldHideArrow:eR,children:(0,ew.jsx)(l.sG.div,{"data-side":ed,"data-align":eh,...W,ref:K,style:{...W.style,animation:eu?void 0:"none"}})})})});eN.displayName=eO;var eI="PopperArrow",eB={top:"bottom",right:"left",bottom:"top",left:"right"},e_=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=eF(eI,n),o=eB[i.placedSide];return(0,ew.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,ew.jsx)(eP,{...r,ref:t,style:{...r.style,display:"block"}})})});function eU(e){return null!==e}e_.displayName=eI;var ez=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,s;let{placement:a,rects:l,middlewareData:u}=t,c=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[f,p]=eW(a),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!=(o=null==(r=u.arrow)?void 0:r.x)?o:0)+d/2,g=(null!=(s=null==(i=u.arrow)?void 0:i.y)?s:0)+h/2,y="",b="";return"bottom"===f?(y=c?m:"".concat(v,"px"),b="".concat(-h,"px")):"top"===f?(y=c?m:"".concat(v,"px"),b="".concat(l.floating.height+h,"px")):"right"===f?(y="".concat(-h,"px"),b=c?m:"".concat(g,"px")):"left"===f&&(y="".concat(l.floating.width+h,"px"),b=c?m:"".concat(g,"px")),{data:{x:y,y:b}}}});function eW(e){let[t,n="center"]=e.split("-");return[t,n]}var e$=n(5433),eH=n(6842),eG="rovingFocusGroup.onEntryFocus",eK={bubbles:!1,cancelable:!0},eX="RovingFocusGroup",[eY,eq,eZ]=(0,u.N)(eX),[eQ,eJ]=(0,s.A)(eX,[eZ]),[e0,e1]=eQ(eX),e2=r.forwardRef((e,t)=>(0,ew.jsx)(eY.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,ew.jsx)(eY.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,ew.jsx)(e5,{...e,ref:t})})}));e2.displayName=eX;var e5=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:s,loop:u=!1,dir:d,currentTabStopId:h,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:p,onEntryFocus:m,preventScrollOnEntryFocus:v=!1,...g}=e,y=r.useRef(null),b=(0,o.s)(t,y),x=(0,c.jH)(d),[w=null,P]=(0,a.i)({prop:h,defaultProp:f,onChange:p}),[E,S]=r.useState(!1),A=(0,eE.c)(m),T=eq(n),C=r.useRef(!1),[R,M]=r.useState(0);return r.useEffect(()=>{let e=y.current;if(e)return e.addEventListener(eG,A),()=>e.removeEventListener(eG,A)},[A]),(0,ew.jsx)(e0,{scope:n,orientation:s,dir:x,loop:u,currentTabStopId:w,onItemFocus:r.useCallback(e=>P(e),[P]),onItemShiftTab:r.useCallback(()=>S(!0),[]),onFocusableItemAdd:r.useCallback(()=>M(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>M(e=>e-1),[]),children:(0,ew.jsx)(l.sG.div,{tabIndex:E||0===R?-1:0,"data-orientation":s,...g,ref:b,style:{outline:"none",...e.style},onMouseDown:(0,i.m)(e.onMouseDown,()=>{C.current=!0}),onFocus:(0,i.m)(e.onFocus,e=>{let t=!C.current;if(e.target===e.currentTarget&&t&&!E){let t=new CustomEvent(eG,eK);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=T().filter(e=>e.focusable);e9([e.find(e=>e.active),e.find(e=>e.id===w),...e].filter(Boolean).map(e=>e.ref.current),v)}}C.current=!1}),onBlur:(0,i.m)(e.onBlur,()=>S(!1))})})}),e4="RovingFocusGroupItem",e6=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:o=!0,active:s=!1,tabStopId:a,...u}=e,c=(0,p.B)(),d=a||c,h=e1(e4,n),f=h.currentTabStopId===d,m=eq(n),{onFocusableItemAdd:v,onFocusableItemRemove:g}=h;return r.useEffect(()=>{if(o)return v(),()=>g()},[o,v,g]),(0,ew.jsx)(eY.ItemSlot,{scope:n,id:d,focusable:o,active:s,children:(0,ew.jsx)(l.sG.span,{tabIndex:f?0:-1,"data-orientation":h.orientation,...u,ref:t,onMouseDown:(0,i.m)(e.onMouseDown,e=>{o?h.onItemFocus(d):e.preventDefault()}),onFocus:(0,i.m)(e.onFocus,()=>h.onItemFocus(d)),onKeyDown:(0,i.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return e3[i]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=h.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>e9(n))}})})})});e6.displayName=e4;var e3={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function e9(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var e8=n(2467),e7=n(7745),te=n(101),tt=["Enter"," "],tn=["ArrowUp","PageDown","End"],tr=["ArrowDown","PageUp","Home",...tn],ti={ltr:[...tt,"ArrowRight"],rtl:[...tt,"ArrowLeft"]},to={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ts="Menu",[ta,tl,tu]=(0,u.N)(ts),[tc,td]=(0,s.A)(ts,[tu,eR,eJ]),th=eR(),tf=eJ(),[tp,tm]=tc(ts),[tv,tg]=tc(ts),ty=e=>{let{__scopeMenu:t,open:n=!1,children:i,dir:o,onOpenChange:s,modal:a=!0}=e,l=th(t),[u,d]=r.useState(null),h=r.useRef(!1),f=(0,eE.c)(s),p=(0,c.jH)(o);return r.useEffect(()=>{let e=()=>{h.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>h.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,ew.jsx)(eD,{...l,children:(0,ew.jsx)(tp,{scope:t,open:n,onOpenChange:f,content:u,onContentChange:d,children:(0,ew.jsx)(tv,{scope:t,onClose:r.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:h,dir:p,modal:a,children:i})})})};ty.displayName=ts;var tb=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=th(n);return(0,ew.jsx)(eL,{...i,...r,ref:t})});tb.displayName="MenuAnchor";var tx="MenuPortal",[tw,tP]=tc(tx,{forceMount:void 0}),tE=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=tm(tx,t);return(0,ew.jsx)(tw,{scope:t,forceMount:n,children:(0,ew.jsx)(eH.C,{present:n||o.open,children:(0,ew.jsx)(e$.Z,{asChild:!0,container:i,children:r})})})};tE.displayName=tx;var tS="MenuContent",[tA,tT]=tc(tS),tC=r.forwardRef((e,t)=>{let n=tP(tS,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=tm(tS,e.__scopeMenu),s=tg(tS,e.__scopeMenu);return(0,ew.jsx)(ta.Provider,{scope:e.__scopeMenu,children:(0,ew.jsx)(eH.C,{present:r||o.open,children:(0,ew.jsx)(ta.Slot,{scope:e.__scopeMenu,children:s.modal?(0,ew.jsx)(tR,{...i,ref:t}):(0,ew.jsx)(tM,{...i,ref:t})})})})}),tR=r.forwardRef((e,t)=>{let n=tm(tS,e.__scopeMenu),s=r.useRef(null),a=(0,o.s)(t,s);return r.useEffect(()=>{let e=s.current;if(e)return(0,e7.Eq)(e)},[]),(0,ew.jsx)(tk,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),tM=r.forwardRef((e,t)=>{let n=tm(tS,e.__scopeMenu);return(0,ew.jsx)(tk,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),tk=r.forwardRef((e,t)=>{let{__scopeMenu:n,loop:s=!1,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEntryFocus:p,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:g,onInteractOutside:y,onDismiss:b,disableOutsideScroll:x,...w}=e,P=tm(tS,n),E=tg(tS,n),S=th(n),A=tf(n),T=tl(n),[C,R]=r.useState(null),M=r.useRef(null),k=(0,o.s)(t,M,P.onContentChange),D=r.useRef(0),j=r.useRef(""),L=r.useRef(0),O=r.useRef(null),V=r.useRef("right"),F=r.useRef(0),N=x?te.A:r.Fragment,I=x?{as:e8.DX,allowPinchZoom:!0}:void 0;r.useEffect(()=>()=>window.clearTimeout(D.current),[]),(0,h.Oh)();let B=r.useCallback(e=>{var t,n;return V.current===(null==(t=O.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let s=t[e].x,a=t[e].y,l=t[o].x,u=t[o].y;a>r!=u>r&&n<(l-s)*(r-a)/(u-a)+s&&(i=!i)}return i}({x:e.clientX,y:e.clientY},t)}(e,null==(n=O.current)?void 0:n.area)},[]);return(0,ew.jsx)(tA,{scope:n,searchRef:j,onItemEnter:r.useCallback(e=>{B(e)&&e.preventDefault()},[B]),onItemLeave:r.useCallback(e=>{var t;B(e)||(null==(t=M.current)||t.focus(),R(null))},[B]),onTriggerLeave:r.useCallback(e=>{B(e)&&e.preventDefault()},[B]),pointerGraceTimerRef:L,onPointerGraceIntentChange:r.useCallback(e=>{O.current=e},[]),children:(0,ew.jsx)(N,{...I,children:(0,ew.jsx)(f.n,{asChild:!0,trapped:a,onMountAutoFocus:(0,i.m)(l,e=>{var t;e.preventDefault(),null==(t=M.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,ew.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:g,onInteractOutside:y,onDismiss:b,children:(0,ew.jsx)(e2,{asChild:!0,...A,dir:E.dir,orientation:"vertical",loop:s,currentTabStopId:C,onCurrentTabStopIdChange:R,onEntryFocus:(0,i.m)(p,e=>{E.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,ew.jsx)(eN,{role:"menu","aria-orientation":"vertical","data-state":t4(P.open),"data-radix-menu-content":"",dir:E.dir,...S,...w,ref:k,style:{outline:"none",...w.style},onKeyDown:(0,i.m)(w.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;let r=j.current+e,i=T().filter(e=>!e.disabled),o=document.activeElement,s=null==(t=i.find(e=>e.ref.current===o))?void 0:t.textValue,a=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1,s=(r=Math.max(o,0),e.map((t,n)=>e[(r+n)%e.length]));1===i.length&&(s=s.filter(e=>e!==n));let a=s.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return a!==n?a:void 0}(i.map(e=>e.textValue),r,s),l=null==(n=i.find(e=>e.textValue===a))?void 0:n.ref.current;!function e(t){j.current=t,window.clearTimeout(D.current),""!==t&&(D.current=window.setTimeout(()=>e(""),1e3))}(r),l&&setTimeout(()=>l.focus())})(e.key));let i=M.current;if(e.target!==i||!tr.includes(e.key))return;e.preventDefault();let o=T().filter(e=>!e.disabled).map(e=>e.ref.current);tn.includes(e.key)&&o.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(o)}),onBlur:(0,i.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(D.current),j.current="")}),onPointerMove:(0,i.m)(e.onPointerMove,t9(e=>{let t=e.target,n=F.current!==e.clientX;e.currentTarget.contains(t)&&n&&(V.current=e.clientX>F.current?"right":"left",F.current=e.clientX)}))})})})})})})});tC.displayName=tS;var tD=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,ew.jsx)(l.sG.div,{role:"group",...r,ref:t})});tD.displayName="MenuGroup";var tj=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,ew.jsx)(l.sG.div,{...r,ref:t})});tj.displayName="MenuLabel";var tL="MenuItem",tO="menu.itemSelect",tV=r.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:s,...a}=e,u=r.useRef(null),c=tg(tL,e.__scopeMenu),d=tT(tL,e.__scopeMenu),h=(0,o.s)(t,u),f=r.useRef(!1);return(0,ew.jsx)(tF,{...a,ref:h,disabled:n,onClick:(0,i.m)(e.onClick,()=>{let e=u.current;if(!n&&e){let t=new CustomEvent(tO,{bubbles:!0,cancelable:!0});e.addEventListener(tO,e=>null==s?void 0:s(e),{once:!0}),(0,l.hO)(e,t),t.defaultPrevented?f.current=!1:c.onClose()}}),onPointerDown:t=>{var n;null==(n=e.onPointerDown)||n.call(e,t),f.current=!0},onPointerUp:(0,i.m)(e.onPointerUp,e=>{var t;f.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;n||t&&" "===e.key||tt.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});tV.displayName=tL;var tF=r.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:s=!1,textValue:a,...u}=e,c=tT(tL,n),d=tf(n),h=r.useRef(null),f=(0,o.s)(t,h),[p,m]=r.useState(!1),[v,g]=r.useState("");return r.useEffect(()=>{let e=h.current;if(e){var t;g((null!=(t=e.textContent)?t:"").trim())}},[u.children]),(0,ew.jsx)(ta.ItemSlot,{scope:n,disabled:s,textValue:null!=a?a:v,children:(0,ew.jsx)(e6,{asChild:!0,...d,focusable:!s,children:(0,ew.jsx)(l.sG.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":s||void 0,"data-disabled":s?"":void 0,...u,ref:f,onPointerMove:(0,i.m)(e.onPointerMove,t9(e=>{s?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.m)(e.onPointerLeave,t9(e=>c.onItemLeave(e))),onFocus:(0,i.m)(e.onFocus,()=>m(!0)),onBlur:(0,i.m)(e.onBlur,()=>m(!1))})})})}),tN=r.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,ew.jsx)(tH,{scope:e.__scopeMenu,checked:n,children:(0,ew.jsx)(tV,{role:"menuitemcheckbox","aria-checked":t6(n)?"mixed":n,...o,ref:t,"data-state":t3(n),onSelect:(0,i.m)(o.onSelect,()=>null==r?void 0:r(!!t6(n)||!n),{checkForDefaultPrevented:!1})})})});tN.displayName="MenuCheckboxItem";var tI="MenuRadioGroup",[tB,t_]=tc(tI,{value:void 0,onValueChange:()=>{}}),tU=r.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,o=(0,eE.c)(r);return(0,ew.jsx)(tB,{scope:e.__scopeMenu,value:n,onValueChange:o,children:(0,ew.jsx)(tD,{...i,ref:t})})});tU.displayName=tI;var tz="MenuRadioItem",tW=r.forwardRef((e,t)=>{let{value:n,...r}=e,o=t_(tz,e.__scopeMenu),s=n===o.value;return(0,ew.jsx)(tH,{scope:e.__scopeMenu,checked:s,children:(0,ew.jsx)(tV,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":t3(s),onSelect:(0,i.m)(r.onSelect,()=>{var e;return null==(e=o.onValueChange)?void 0:e.call(o,n)},{checkForDefaultPrevented:!1})})})});tW.displayName=tz;var t$="MenuItemIndicator",[tH,tG]=tc(t$,{checked:!1}),tK=r.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,o=tG(t$,n);return(0,ew.jsx)(eH.C,{present:r||t6(o.checked)||!0===o.checked,children:(0,ew.jsx)(l.sG.span,{...i,ref:t,"data-state":t3(o.checked)})})});tK.displayName=t$;var tX=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,ew.jsx)(l.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});tX.displayName="MenuSeparator";var tY=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=th(n);return(0,ew.jsx)(e_,{...i,...r,ref:t})});tY.displayName="MenuArrow";var tq="MenuSub",[tZ,tQ]=tc(tq),tJ=e=>{let{__scopeMenu:t,children:n,open:i=!1,onOpenChange:o}=e,s=tm(tq,t),a=th(t),[l,u]=r.useState(null),[c,d]=r.useState(null),h=(0,eE.c)(o);return r.useEffect(()=>(!1===s.open&&h(!1),()=>h(!1)),[s.open,h]),(0,ew.jsx)(eD,{...a,children:(0,ew.jsx)(tp,{scope:t,open:i,onOpenChange:h,content:c,onContentChange:d,children:(0,ew.jsx)(tZ,{scope:t,contentId:(0,p.B)(),triggerId:(0,p.B)(),trigger:l,onTriggerChange:u,children:n})})})};tJ.displayName=tq;var t0="MenuSubTrigger",t1=r.forwardRef((e,t)=>{let n=tm(t0,e.__scopeMenu),s=tg(t0,e.__scopeMenu),a=tQ(t0,e.__scopeMenu),l=tT(t0,e.__scopeMenu),u=r.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=l,h={__scopeMenu:e.__scopeMenu},f=r.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return r.useEffect(()=>f,[f]),r.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,ew.jsx)(tb,{asChild:!0,...h,children:(0,ew.jsx)(tF,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":t4(n.open),...e,ref:(0,o.t)(t,a.onTriggerChange),onClick:t=>{var r;null==(r=e.onClick)||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,i.m)(e.onPointerMove,t9(t=>{l.onItemEnter(t),!t.defaultPrevented&&(e.disabled||n.open||u.current||(l.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100)))})),onPointerLeave:(0,i.m)(e.onPointerLeave,t9(e=>{var t,r;f();let i=null==(t=n.content)?void 0:t.getBoundingClientRect();if(i){let t=null==(r=n.content)?void 0:r.dataset.side,o="right"===t,s=i[o?"left":"right"],a=i[o?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:s,y:i.top},{x:a,y:i.top},{x:a,y:i.bottom},{x:s,y:i.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.m)(e.onKeyDown,t=>{let r=""!==l.searchRef.current;if(!e.disabled&&(!r||" "!==t.key)&&ti[s.dir].includes(t.key)){var i;n.onOpenChange(!0),null==(i=n.content)||i.focus(),t.preventDefault()}})})})});t1.displayName=t0;var t2="MenuSubContent",t5=r.forwardRef((e,t)=>{let n=tP(tS,e.__scopeMenu),{forceMount:s=n.forceMount,...a}=e,l=tm(tS,e.__scopeMenu),u=tg(tS,e.__scopeMenu),c=tQ(t2,e.__scopeMenu),d=r.useRef(null),h=(0,o.s)(t,d);return(0,ew.jsx)(ta.Provider,{scope:e.__scopeMenu,children:(0,ew.jsx)(eH.C,{present:s||l.open,children:(0,ew.jsx)(ta.Slot,{scope:e.__scopeMenu,children:(0,ew.jsx)(tk,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:h,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null==(t=d.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>{e.target!==c.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:(0,i.m)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=to[u.dir].includes(e.key);if(t&&n){var r;l.onOpenChange(!1),null==(r=c.trigger)||r.focus(),e.preventDefault()}})})})})})});function t4(e){return e?"open":"closed"}function t6(e){return"indeterminate"===e}function t3(e){return t6(e)?"indeterminate":e?"checked":"unchecked"}function t9(e){return t=>"mouse"===t.pointerType?e(t):void 0}t5.displayName=t2;var t8="DropdownMenu",[t7,ne]=(0,s.A)(t8,[td]),nt=td(),[nn,nr]=t7(t8),ni=e=>{let{__scopeDropdownMenu:t,children:n,dir:i,open:o,defaultOpen:s,onOpenChange:l,modal:u=!0}=e,c=nt(t),d=r.useRef(null),[h=!1,f]=(0,a.i)({prop:o,defaultProp:s,onChange:l});return(0,ew.jsx)(nn,{scope:t,triggerId:(0,p.B)(),triggerRef:d,contentId:(0,p.B)(),open:h,onOpenChange:f,onOpenToggle:r.useCallback(()=>f(e=>!e),[f]),modal:u,children:(0,ew.jsx)(ty,{...c,open:h,onOpenChange:f,dir:i,modal:u,children:n})})};ni.displayName=t8;var no="DropdownMenuTrigger",ns=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...s}=e,a=nr(no,n),u=nt(n);return(0,ew.jsx)(tb,{asChild:!0,...u,children:(0,ew.jsx)(l.sG.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...s,ref:(0,o.t)(t,a.triggerRef),onPointerDown:(0,i.m)(e.onPointerDown,e=>{!r&&0===e.button&&!1===e.ctrlKey&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});ns.displayName=no;var na=e=>{let{__scopeDropdownMenu:t,...n}=e,r=nt(t);return(0,ew.jsx)(tE,{...r,...n})};na.displayName="DropdownMenuPortal";var nl="DropdownMenuContent",nu=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,s=nr(nl,n),a=nt(n),l=r.useRef(!1);return(0,ew.jsx)(tC,{id:s.contentId,"aria-labelledby":s.triggerId,...a,...o,ref:t,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{var t;l.current||null==(t=s.triggerRef.current)||t.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:(0,i.m)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!s.modal||r)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});nu.displayName=nl;var nc=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=nt(n);return(0,ew.jsx)(tD,{...i,...r,ref:t})});nc.displayName="DropdownMenuGroup";var nd=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=nt(n);return(0,ew.jsx)(tj,{...i,...r,ref:t})});nd.displayName="DropdownMenuLabel";var nh=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=nt(n);return(0,ew.jsx)(tV,{...i,...r,ref:t})});nh.displayName="DropdownMenuItem";var nf=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=nt(n);return(0,ew.jsx)(tN,{...i,...r,ref:t})});nf.displayName="DropdownMenuCheckboxItem";var np=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=nt(n);return(0,ew.jsx)(tU,{...i,...r,ref:t})});np.displayName="DropdownMenuRadioGroup";var nm=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=nt(n);return(0,ew.jsx)(tW,{...i,...r,ref:t})});nm.displayName="DropdownMenuRadioItem";var nv=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=nt(n);return(0,ew.jsx)(tK,{...i,...r,ref:t})});nv.displayName="DropdownMenuItemIndicator";var ng=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=nt(n);return(0,ew.jsx)(tX,{...i,...r,ref:t})});ng.displayName="DropdownMenuSeparator",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=nt(n);return(0,ew.jsx)(tY,{...i,...r,ref:t})}).displayName="DropdownMenuArrow";var ny=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=nt(n);return(0,ew.jsx)(t1,{...i,...r,ref:t})});ny.displayName="DropdownMenuSubTrigger";var nb=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=nt(n);return(0,ew.jsx)(t5,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});nb.displayName="DropdownMenuSubContent";var nx=ni,nw=ns,nP=na,nE=nu,nS=nc,nA=nd,nT=nh,nC=nf,nR=np,nM=nm,nk=nv,nD=ng,nj=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:o}=e,s=nt(t),[l=!1,u]=(0,a.i)({prop:r,defaultProp:o,onChange:i});return(0,ew.jsx)(tJ,{...s,open:l,onOpenChange:u,children:n})},nL=ny,nO=nb},8167:(e,t,n)=>{n.d(t,{N:()=>l});var r=n(2115),i=n(3468),o=n(4446),s=n(2467),a=n(5155);function l(e){let t=e+"CollectionProvider",[n,l]=(0,i.A)(t),[u,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,i=r.useRef(null),o=r.useRef(new Map).current;return(0,a.jsx)(u,{scope:t,itemMap:o,collectionRef:i,children:n})};d.displayName=t;let h=e+"CollectionSlot",f=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=c(h,n),l=(0,o.s)(t,i.collectionRef);return(0,a.jsx)(s.DX,{ref:l,children:r})});f.displayName=h;let p=e+"CollectionItemSlot",m="data-radix-collection-item",v=r.forwardRef((e,t)=>{let{scope:n,children:i,...l}=e,u=r.useRef(null),d=(0,o.s)(t,u),h=c(p,n);return r.useEffect(()=>(h.itemMap.set(u,{ref:u,...l}),()=>void h.itemMap.delete(u))),(0,a.jsx)(s.DX,{...{[m]:""},ref:d,children:i})});return v.displayName=p,[{Provider:d,Slot:f,ItemSlot:v},function(t){let n=c(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},l]}},8314:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(1847).A)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},8946:(e,t,n)=>{n.d(t,{B:()=>l});var r,i=n(2115),o=n(4129),s=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),a=0;function l(e){let[t,n]=i.useState(s());return(0,o.N)(()=>{e||n(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},9051:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(1847).A)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},9068:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(1847).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9511:(e,t,n)=>{n.d(t,{UC:()=>et,VY:()=>er,ZL:()=>J,bL:()=>Z,bm:()=>ei,hE:()=>en,hJ:()=>ee,l9:()=>Q});var r=n(2115),i=n(2556),o=n(4446),s=n(3468),a=n(8946),l=n(3558),u=n(4831),c=n(9666),d=n(5433),h=n(6842),f=n(7602),p=n(9526),m=n(101),v=n(7745),g=n(2467),y=n(5155),b="Dialog",[x,w]=(0,s.A)(b),[P,E]=x(b),S=e=>{let{__scopeDialog:t,children:n,open:i,defaultOpen:o,onOpenChange:s,modal:u=!0}=e,c=r.useRef(null),d=r.useRef(null),[h=!1,f]=(0,l.i)({prop:i,defaultProp:o,onChange:s});return(0,y.jsx)(P,{scope:t,triggerRef:c,contentRef:d,contentId:(0,a.B)(),titleId:(0,a.B)(),descriptionId:(0,a.B)(),open:h,onOpenChange:f,onOpenToggle:r.useCallback(()=>f(e=>!e),[f]),modal:u,children:n})};S.displayName=b;var A="DialogTrigger",T=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,s=E(A,n),a=(0,o.s)(t,s.triggerRef);return(0,y.jsx)(f.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":H(s.open),...r,ref:a,onClick:(0,i.m)(e.onClick,s.onOpenToggle)})});T.displayName=A;var C="DialogPortal",[R,M]=x(C,{forceMount:void 0}),k=e=>{let{__scopeDialog:t,forceMount:n,children:i,container:o}=e,s=E(C,t);return(0,y.jsx)(R,{scope:t,forceMount:n,children:r.Children.map(i,e=>(0,y.jsx)(h.C,{present:n||s.open,children:(0,y.jsx)(d.Z,{asChild:!0,container:o,children:e})}))})};k.displayName=C;var D="DialogOverlay",j=r.forwardRef((e,t)=>{let n=M(D,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=E(D,e.__scopeDialog);return o.modal?(0,y.jsx)(h.C,{present:r||o.open,children:(0,y.jsx)(L,{...i,ref:t})}):null});j.displayName=D;var L=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=E(D,n);return(0,y.jsx)(m.A,{as:g.DX,allowPinchZoom:!0,shards:[i.contentRef],children:(0,y.jsx)(f.sG.div,{"data-state":H(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),O="DialogContent",V=r.forwardRef((e,t)=>{let n=M(O,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=E(O,e.__scopeDialog);return(0,y.jsx)(h.C,{present:r||o.open,children:o.modal?(0,y.jsx)(F,{...i,ref:t}):(0,y.jsx)(N,{...i,ref:t})})});V.displayName=O;var F=r.forwardRef((e,t)=>{let n=E(O,e.__scopeDialog),s=r.useRef(null),a=(0,o.s)(t,n.contentRef,s);return r.useEffect(()=>{let e=s.current;if(e)return(0,v.Eq)(e)},[]),(0,y.jsx)(I,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,i.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault())})}),N=r.forwardRef((e,t)=>{let n=E(O,e.__scopeDialog),i=r.useRef(!1),o=r.useRef(!1);return(0,y.jsx)(I,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,s;null==(r=e.onCloseAutoFocus)||r.call(e,t),t.defaultPrevented||(i.current||null==(s=n.triggerRef.current)||s.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{var r,s;null==(r=e.onInteractOutside)||r.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let a=t.target;(null==(s=n.triggerRef.current)?void 0:s.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),I=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,...l}=e,d=E(O,n),h=r.useRef(null),f=(0,o.s)(t,h);return(0,p.Oh)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.n,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a,children:(0,y.jsx)(u.qW,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":H(d.open),...l,ref:f,onDismiss:()=>d.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Y,{titleId:d.titleId}),(0,y.jsx)(q,{contentRef:h,descriptionId:d.descriptionId})]})]})}),B="DialogTitle",_=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=E(B,n);return(0,y.jsx)(f.sG.h2,{id:i.titleId,...r,ref:t})});_.displayName=B;var U="DialogDescription",z=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=E(U,n);return(0,y.jsx)(f.sG.p,{id:i.descriptionId,...r,ref:t})});z.displayName=U;var W="DialogClose",$=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=E(W,n);return(0,y.jsx)(f.sG.button,{type:"button",...r,ref:t,onClick:(0,i.m)(e.onClick,()=>o.onOpenChange(!1))})});function H(e){return e?"open":"closed"}$.displayName=W;var G="DialogTitleWarning",[K,X]=(0,s.q)(G,{contentName:O,titleName:B,docsSlug:"dialog"}),Y=e=>{let{titleId:t}=e,n=X(G),i="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return r.useEffect(()=>{t&&(document.getElementById(t)||console.error(i))},[i,t]),null},q=e=>{let{contentRef:t,descriptionId:n}=e,i=X("DialogDescriptionWarning"),o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(i.contentName,"}.");return r.useEffect(()=>{var e;let r=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");n&&r&&(document.getElementById(n)||console.warn(o))},[o,t,n]),null},Z=S,Q=T,J=k,ee=j,et=V,en=_,er=z,ei=$},9526:(e,t,n)=>{n.d(t,{Oh:()=>o});var r=n(2115),i=0;function o(){r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:s()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:s()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function s(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},9666:(e,t,n)=>{n.d(t,{n:()=>d});var r=n(2115),i=n(4446),o=n(7602),s=n(222),a=n(5155),l="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},d=r.forwardRef((e,t)=>{let{loop:n=!1,trapped:d=!1,onMountAutoFocus:v,onUnmountAutoFocus:g,...y}=e,[b,x]=r.useState(null),w=(0,s.c)(v),P=(0,s.c)(g),E=r.useRef(null),S=(0,i.s)(t,e=>x(e)),A=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(d){let e=function(e){if(A.paused||!b)return;let t=e.target;b.contains(t)?E.current=t:p(E.current,{select:!0})},t=function(e){if(A.paused||!b)return;let t=e.relatedTarget;null!==t&&(b.contains(t)||p(E.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&p(b)});return b&&n.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[d,b,A.paused]),r.useEffect(()=>{if(b){m.add(A);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(l,c);b.addEventListener(l,w),b.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(p(r,{select:t}),document.activeElement!==n)return}(h(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&p(b))}return()=>{b.removeEventListener(l,w),setTimeout(()=>{let t=new CustomEvent(u,c);b.addEventListener(u,P),b.dispatchEvent(t),t.defaultPrevented||p(null!=e?e:document.body,{select:!0}),b.removeEventListener(u,P),m.remove(A)},0)}}},[b,w,P,A]);let T=r.useCallback(e=>{if(!n&&!d||A.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[i,o]=function(e){let t=h(e);return[f(t,e),f(t.reverse(),e)]}(t);i&&o?e.shiftKey||r!==o?e.shiftKey&&r===i&&(e.preventDefault(),n&&p(o,{select:!0})):(e.preventDefault(),n&&p(i,{select:!0})):r===t&&e.preventDefault()}},[n,d,A.paused]);return(0,a.jsx)(o.sG.div,{tabIndex:-1,...y,ref:S,onKeyDown:T})});function h(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function f(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function p(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}d.displayName="FocusScope";var m=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=v(e,t)).unshift(t)},remove(t){var n;null==(n=(e=v(e,t))[0])||n.resume()}}}();function v(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},9686:(e,t,n)=>{n.d(t,{t:()=>r});let r=(0,n(2115).createContext)(null)}}]);