1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[736],{5531:function(e,t,n){"use strict";n.d(t,{Z:function(){return createLucideIcon}});var i=n(2265);/** 2 * @license lucide-react v0.446.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */let toKebabCase=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mergeClasses=(...e)=>e.filter((e,t,n)=>!!e&&n.indexOf(e)===t).join(" ");/** 7 * @license lucide-react v0.446.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */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"};/** 12 * @license lucide-react v0.446.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */let a=(0,i.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:s="",children:l,iconNode:u,...c},d)=>(0,i.createElement)("svg",{ref:d,...o,width:t,height:t,stroke:e,strokeWidth:a?24*Number(n)/Number(t):n,className:mergeClasses("lucide",s),...c},[...u.map(([e,t])=>(0,i.createElement)(e,t)),...Array.isArray(l)?l:[l]])),createLucideIcon=(e,t)=>{let n=(0,i.forwardRef)(({className:n,...o},s)=>(0,i.createElement)(a,{ref:s,iconNode:t,className:mergeClasses(`lucide-${toKebabCase(e)}`,n),...o}));return n.displayName=`${e}`,n}},8203:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(5531);/** 17 * @license lucide-react v0.446.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */let o=(0,i.Z)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},2442:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(5531);/** 22 * @license lucide-react v0.446.0 - ISC 23 * 24 * This source code is licensed under the ISC license. 25 * See the LICENSE file in the root directory of this source tree. 26 */let o=(0,i.Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},3523:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(5531);/** 27 * @license lucide-react v0.446.0 - ISC 28 * 29 * This source code is licensed under the ISC license. 30 * See the LICENSE file in the root directory of this source tree. 31 */let o=(0,i.Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},7158:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(5531);/** 32 * @license lucide-react v0.446.0 - ISC 33 * 34 * This source code is licensed under the ISC license. 35 * See the LICENSE file in the root directory of this source tree. 36 */let o=(0,i.Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},9224:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(5531);/** 37 * @license lucide-react v0.446.0 - ISC 38 * 39 * This source code is licensed under the ISC license. 40 * See the LICENSE file in the root directory of this source tree. 41 */let o=(0,i.Z)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},6141:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(5531);/** 42 * @license lucide-react v0.446.0 - ISC 43 * 44 * This source code is licensed under the ISC license. 45 * See the LICENSE file in the root directory of this source tree. 46 */let o=(0,i.Z)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},6539:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(5531);/** 47 * @license lucide-react v0.446.0 - ISC 48 * 49 * This source code is licensed under the ISC license. 50 * See the LICENSE file in the root directory of this source tree. 51 */let o=(0,i.Z)("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]])},8759:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(5531);/** 52 * @license lucide-react v0.446.0 - ISC 53 * 54 * This source code is licensed under the ISC license. 55 * See the LICENSE file in the root directory of this source tree. 56 */let o=(0,i.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]])},7461:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(5531);/** 57 * @license lucide-react v0.446.0 - ISC 58 * 59 * This source code is licensed under the ISC license. 60 * See the LICENSE file in the root directory of this source tree. 61 */let o=(0,i.Z)("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]])},8004:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(5531);/** 62 * @license lucide-react v0.446.0 - ISC 63 * 64 * This source code is licensed under the ISC license. 65 * See the LICENSE file in the root directory of this source tree. 66 */let o=(0,i.Z)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},4411:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(5531);/** 67 * @license lucide-react v0.446.0 - ISC 68 * 69 * This source code is licensed under the ISC license. 70 * See the LICENSE file in the root directory of this source tree. 71 */let o=(0,i.Z)("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3
71kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]])},3039:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(5531);/** 72 * @license lucide-react v0.446.0 - ISC 73 * 74 * This source code is licensed under the ISC license. 75 * See the LICENSE file in the root directory of this source tree. 76 */let o=(0,i.Z)("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]])},7972:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(5531);/** 77 * @license lucide-react v0.446.0 - ISC 78 * 79 * This source code is licensed under the ISC license. 80 * See the LICENSE file in the root directory of this source tree. 81 */let o=(0,i.Z)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},5750:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(5531);/** 82 * @license lucide-react v0.446.0 - ISC 83 * 84 * This source code is licensed under the ISC license. 85 * See the LICENSE file in the root directory of this source tree. 86 */let o=(0,i.Z)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},2549:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(5531);/** 87 * @license lucide-react v0.446.0 - ISC 88 * 89 * This source code is licensed under the ISC license. 90 * See the LICENSE file in the root directory of this source tree. 91 */let o=(0,i.Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},2369:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(5531);/** 92 * @license lucide-react v0.446.0 - ISC 93 * 94 * This source code is licensed under the ISC license. 95 * See the LICENSE file in the root directory of this source tree. 96 */let o=(0,i.Z)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},2601:function(e,t,n){"use strict";var i,o;e.exports=(null==(i=n.g.process)?void 0:i.env)&&"object"==typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(8960)},9524:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return addLocale}}),n(3997);let addLocale=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4549:function(e,t,n){"use strict";function getDomainLocale(e,t,n,i){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return getDomainLocale}}),n(3997),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},413:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return g}});let i=n(1024),o=n(8533),a=o._(n(2265)),s=i._(n(4887)),l=i._(n(5793)),u=n(7929),c=n(5751),d=n(7327);n(2637);let h=n(6304),f=i._(n(9950)),p={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function handleLoading(e,t,n,i,o,a){let s=null==e?void 0:e.src;if(!e||e["data-loaded-src"]===s)return;e["data-loaded-src"]=s;let l="decode"in e?e.decode():Promise.resolve();l.catch(()=>{}).then(()=>
96{if(e.parentElement&&e.isConnected){if("empty"!==t&&o(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let i=!1,o=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>i,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{i=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==i?void 0:i.current)&&i.current(e)}})}function getDynamicProps(e){let[t,n]=a.version.split("."),i=parseInt(t,10),o=parseInt(n,10);return i>18||18===i&&o>=3?{fetchPriority:e}:{fetchpriority:e}}let m=(0,a.forwardRef)((e,t)=>{let{src:n,srcSet:i,sizes:o,height:s,width:l,decoding:u,className:c,style:d,fetchPriority:h,placeholder:f,loading:p,unoptimized:m,fill:g,onLoadRef:v,onLoadingCompleteRef:y,setBlurComplete:b,setShowAltText:x,onLoad:w,onError:S,...A}=e;return a.default.createElement("img",{...A,...getDynamicProps(h),loading:p,width:l,height:s,decoding:u,"data-nimg":g?"fill":"1",className:c,style:d,sizes:o,srcSet:i,src:n,ref:(0,a.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(S&&(e.src=e.src),e.complete&&handleLoading(e,f,v,y,b,m))},[n,f,v,y,b,S,m,t]),onLoad:e=>{let t=e.currentTarget;handleLoading(t,f,v,y,b,m)},onError:e=>{x(!0),"empty"!==f&&b(!0),S&&S(e)}})});function ImagePreload(e){let{isAppRouter:t,imgAttributes:n}=e,i={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...getDynamicProps(n.fetchPriority)};return t&&s.default.preload?(s.default.preload(n.src,i),null):a.default.createElement(l.default,null,a.default.createElement("link",{key:"__nimg-"+n.src+n.srcSet+n.sizes,rel:"preload",href:n.srcSet?void 0:n.src,...i}))}let g=(0,a.forwardRef)((e,t)=>{let n=(0,a.useContext)(h.RouterContext),i=(0,a.useContext)(d.ImageConfigContext),o=(0,a.useMemo)(()=>{let e=p||i||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[i]),{onLoad:s,onLoadingComplete:l}=e,g=(0,a.useRef)(s);(0,a.useEffect)(()=>{g.current=s},[s]);let v=(0,a.useRef)(l);(0,a.useEffect)(()=>{v.current=l},[l]);let[y,b]=(0,a.useState)(!1),[x,w]=(0,a.useState)(!1),{props:S,meta:A}=(0,u.getImgProps)(e,{defaultLoader:f.default,imgConf:o,blurComplete:y,showAltText:x});return a.default.createElement(a.default.Fragment,null,a.default.createElement(m,{...S,unoptimized:A.unoptimized,placeholder:A.placeholder,fill:A.fill,onLoadRef:g,onLoadingCompleteRef:v,setBlurComplete:b,setShowAltText:w,ref:t}),A.priority?a.default.createElement(ImagePreload,{isAppRouter:!n,imgAttributes:S}):null)});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8326:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let i=n(1024),o=i._(n(2265)),a=n(9121),s=n(8664),l=n(8130),u=n(6681),c=n(9524),d=n(6304),h=n(6313),f=n(1581),p=n(4549),m=n(9872),g=n(9706),v=new Set;function prefetch(e,t,n,i,o,a){if(!a&&!(0,s.isLocalURL)(t))return;if(!i.bypassPrefetchedCheck){let o=void 0!==i.locale?i.locale:"locale"in e?e.locale:void 0,a=t+"%"+n+"%"+o;if(v.has(a))return;v.add(a)}let l=a?e.prefetch(t,o):e.prefetch(t,n,i);Promise.resolve(l).catch(e=>{})}function formatStringOrUrl(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let y=o.default.forwardRef(function(e,t){let n,i;let{href:l,as:v,children:y,prefetch:b=null,passHref:x,replace:w,shallow:S,scroll:A,locale:P,onClick:T,onMouseEnter:C,onTouchStart:E,legacyBehavior:R=!1,..._}=e;n=y,R&&("string"==typeof n||"number"==typeof n)&&(n=o.default.createElement("a",null,n));let M=o.default.useContext(d.RouterContext),k=o.default.useContext(h.AppRouterContext),V=null!=M?M:k,D=!M,O=!1!==b,L=null===b?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:N,as:j}=o.default.useMemo(()=>{if(!M){let e=formatStringOrUrl(l);return{href:e,as:v?formatStringOrUrl(v):e}}let[e,t]=(0,a.resolveHref)(M,l,!0);return{href:e,as:v?(0,a.resolveHref)(M,v):t||e}},[M,l,v]),I=o.default.useRef(N),B=o.default.useRef(j);R&&(i=o.default.Children.only(n));let F=R?i&&"object"==typeof i&&i.ref:t,[W,z,U]=(0,f.useIntersection)({rootMargin:"200px"}),H=o.default.useCallback(e=>{(B.current!==j||I.current!==N)&&(U(),B.current=j,I.current=N),W(e),F&&("function"==typeof F?F(e):"object"==typeof F&&(F.current=e))},[j,F,N,U,W]);o.default.useEffect(()=>{V&&z&&O&&prefetch(V,N,j,{locale:P},{kind:L},D)},[j,N,z,P,O,null==M?void 0:M.locale,V,D,L]);let $={ref:H,onClick(e){R||"function"!=typeof T||T(e),R&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),V&&!e.defaultPrevented&&function(e,t,n,i,a,l,u,c,d,h){let{nodeName:f}=e.currentTarget,p="A"===f.toUpperCase();if(p&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!d&&!(0,s.isLocalURL)(n)))return;e.preventDefault();let navigate=()=>{let e=null==u||u;"beforePopState"in t?t[a?"replace":"push"](n,i,{shallow:l,locale:c,scroll:e}):t[a?"replace":"push"](i||n,{forceOptimisticNavigation:!h,scroll:e})};d?o.default.startTransition(navigate):navigate()}(e,V,N,j,w,S,A,P,D,O)},onMouseEnter(e){R||"function"!=typeof C||C(e),R&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),V&&(O||!D)&&prefetch(V,N,j,{locale:P,priority:!0,bypassPrefetchedCheck:!0},{kind:L},D)},onTouchStart(e){R||"function"!=typeof E||E(e),R&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),V&&(O||!D)&&prefetch(V,N,j,{locale:P,priority:!0,bypassPrefetchedCheck:!0},{kind:L},D)}};if((0,u.isAbsoluteUrl)(j))$.href=j;
96else if(!R||x||"a"===i.type&&!("href"in i.props)){let e=void 0!==P?P:null==M?void 0:M.locale,t=(null==M?void 0:M.isLocaleDomain)&&(0,p.getDomainLocale)(j,e,null==M?void 0:M.locales,null==M?void 0:M.domainLocales);$.href=t||(0,m.addBasePath)((0,c.addLocale)(j,e,null==M?void 0:M.defaultLocale))}return R?o.default.cloneElement(i,$):o.default.createElement("a",{..._,...$},n)}),b=y;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2389:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return i}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},i="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9121:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return resolveHref}});let i=n(5991),o=n(8130),a=n(8137),s=n(6681),l=n(3997),u=n(8664),c=n(9289),d=n(948);function resolveHref(e,t,n){let h;let f="string"==typeof t?t:(0,o.formatWithValidation)(t),p=f.match(/^[a-zA-Z]{1,}:\/\//),m=p?f.slice(p[0].length):f,g=m.split("?");if((g[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+f+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,s.normalizeRepeatedSlashes)(m);f=(p?p[0]:"")+t}if(!(0,u.isLocalURL)(f))return n?[f]:f;try{h=new URL(f.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){h=new URL("/","http://n")}try{let e=new URL(f,h);e.pathname=(0,l.normalizePathTrailingSlash)(e.pathname);let t="";if((0,c.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,i.searchParamsToUrlQuery)(e.searchParams),{result:s,params:l}=(0,d.interpolateAs)(e.pathname,e.pathname,n);s&&(t=(0,o.formatWithValidation)({pathname:s,hash:e.hash,query:(0,a.omit)(n,l)}))}let s=e.origin===h.origin?e.href.slice(e.origin.length):e.href;return n?[s,t||s]:s}catch(e){return n?[f]:f}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1581:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return useIntersection}});let i=n(2265),o=n(2389),a="function"==typeof IntersectionObserver,s=new Map,l=[];function useIntersection(e){let{rootRef:t,rootMargin:n,disabled:u}=e,c=u||!a,[d,h]=(0,i.useState)(!1),f=(0,i.useRef)(null),p=(0,i.useCallback)(e=>{f.current=e},[]);(0,i.useEffect)(()=>{if(a){if(c||d)return;let e=f.current;if(e&&e.tagName){let i=function(e,t,n){let{id:i,observer:o,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},i=l.find(e=>e.root===n.root&&e.margin===n.margin);if(i&&(t=s.get(i)))return t;let o=new Map,a=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:a,elements:o},l.push(n),s.set(n,t),t}(n);return a.set(e,t),o.observe(e),function(){if(a.delete(e),o.unobserve(e),0===a.size){o.disconnect(),s.delete(i);let e=l.findIndex(e=>e.root===i.root&&e.margin===i.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&h(e),{root:null==t?void 0:t.current,rootMargin:n});return i}}else if(!d){let e=(0,o.requestIdleCallback)(()=>h(!0));return()=>(0,o.cancelIdleCallback)(e)}},[c,n,t,d,f.current]);let m=(0,i.useCallback)(()=>{h(!1)},[]);return[p,d,m]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
96dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8569:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return a}});let i=n(1024),o=i._(n(2265)),a=o.default.createContext({})},4472:function(e,t){"use strict";function isInAmpMode(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:i=!1}=void 0===e?{}:e;return t||n&&i}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return isInAmpMode}})},4910:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return escapeStringRegexp}});let n=/[|\\{}()[\]^$+*?.-]/,i=/[|\\{}()[\]^$+*?.-]/g;function escapeStringRegexp(e){return n.test(e)?e.replace(i,"\\$&"):e}},7929:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return getImgProps}}),n(2637);let i=n(1511),o=n(5751);function isStaticRequire(e){return void 0!==e.default}function getInt(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function getImgProps(e,t){var n;let a,s,l,{src:u,sizes:c,unoptimized:d=!1,priority:h=!1,loading:f,className:p,quality:m,width:g,height:v,fill:y=!1,style:b,onLoad:x,onLoadingComplete:w,placeholder:S="empty",blurDataURL:A,fetchPriority:P,layout:T,objectFit:C,objectPosition:E,lazyBoundary:R,lazyRoot:_,...M}=e,{imgConf:k,showAltText:V,blurComplete:D,defaultLoader:O}=t,L=k||o.imageConfigDefault;if("allSizes"in L)a=L;else{let e=[...L.deviceSizes,...L.imageSizes].sort((e,t)=>e-t),t=L.deviceSizes.sort((e,t)=>e-t);a={...L,allSizes:e,deviceSizes:t}}let N=M.loader||O;delete M.loader,delete M.srcSet;let j="__next_img_default"in N;if(j){if("custom"===a.loader)throw Error('Image with src "'+u+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=N;N=t=>{let{config:n,...i}=t;return e(i)}}if(T){"fill"===T&&(y=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[T];e&&(b={...b,...e});let t={responsive:"100vw",fill:"100vw"}[T];t&&!c&&(c=t)}let I="",B=getInt(g),F=getInt(v);if("object"==typeof(n=u)&&(isStaticRequire(n)||void 0!==n.src)){let e=isStaticRequire(u)?u.default:u;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(s=e.blurWidth,l=e.blurHeight,A=A||e.blurDataURL,I=e.src,!y){if(B||F){if(B&&!F){let t=B/e.width;F=Math.round(e.height*t)}else if(!B&&F){let t=F/e.height;B=Math.round(e.width*t)}}else B=e.width,F=e.height}}let W=!h&&("lazy"===f||void 0===f);(!(u="string"==typeof u?u:I)||u.startsWith("data:")||u.startsWith("blob:"))&&(d=!0,W=!1),a.unoptimized&&(d=!0),j&&u.endsWith(".svg")&&!a.dangerouslyAllowSVG&&(d=!0),h&&(P="high");let z=getInt(m),U=Object.assign(y?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:C,objectPosition:E}:{},V?{}:{color:"transparent"},b),H=D||"empty"===S?null:"blur"===S?'url("data:image/svg+xml;charset=utf-8,'+(0,i.getImageBlurSvg)({widthInt:B,heightInt:F,blurWidth:s,blurHeight:l,blurDataURL:A||"",objectFit:U.objectFit})+'")':'url("'+S+'")',$=H?{backgroundSize:U.objectFit||"cover",backgroundPosition:U.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:H}:{},K=function(e){let{config:t,src:n,unoptimized:i,width:o,quality:a,sizes:s,loader:l}=e;if(i)return{src:n,srcSet:void 0,sizes:void 0};let{widths:u,kind:c}=function(e,t,n){let{deviceSizes:i,allSizes:o}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let i;i=e.exec(n);i)t.push(parseInt(i[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=i[0]*e),kind:"w"}}return{widths:o,kind:"w"}}if("number"!=typeof t)return{widths:i,kind:"w"};let a=[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))];return{widths:a,kind:"x"}}(t,o,s),d=u.length-1;return{sizes:s||"w"!==c?s:"100vw",srcSet:u.map((e,i)=>l({config:t,src:n,quality:a,width:e})+" "+("w"===c?e:i+1)+c).join(", "),src:l({config:t,src:n,quality:a,width:u[d]})}}({config:a,src:u,unoptimized:d,width:B,quality:z,sizes:c,loader:N}),G={...M,loading:W?"lazy":f,fetchPriority:P,width:B,height:F,decoding:"async",className:p,style:{...U,...$},sizes:K.sizes,srcSet:K.srcSet,src:K.src},Z={unoptimized:d,priority:h,placeholder:S,fill:y};return{props:G,meta:Z}}},5793:function(e,t,n){"use strict";
96Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{defaultHead:function(){return defaultHead},default:function(){return _default}});let i=n(1024),o=n(8533),a=o._(n(2265)),s=i._(n(110)),l=n(8569),u=n(1852),c=n(4472);function defaultHead(e){void 0===e&&(e=!1);let t=[a.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(a.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function onlyReactElement(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(2637);let d=["name","httpEquiv","charSet","itemProp"];function reduceComponents(e,t){let{inAmpMode:n}=t;return e.reduce(onlyReactElement,[]).reverse().concat(defaultHead(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,i={};return o=>{let a=!0,s=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){s=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?a=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?a=!1:t.add(o.type);break;case"meta":for(let e=0,t=d.length;e<t;e++){let t=d[e];if(o.props.hasOwnProperty(t)){if("charSet"===t)n.has(t)?a=!1:n.add(t);else{let e=o.props[t],n=i[t]||new Set;("name"!==t||!s)&&n.has(e)?a=!1:(n.add(e),i[t]=n)}}}}return a}}()).reverse().map((e,t)=>{let i=e.key||t;if(!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,a.default.cloneElement(e,t)}return a.default.cloneElement(e,{key:i})})}let _default=function(e){let{children:t}=e,n=(0,a.useContext)(l.AmpStateContext),i=(0,a.useContext)(u.HeadManagerContext);return a.default.createElement(s.default,{reduceComponentsToState:reduceComponents,headManager:i,inAmpMode:(0,c.isInAmpMode)(n)},t)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1511:function(e,t){"use strict";function getImageBlurSvg(e){let{widthInt:t,heightInt:n,blurWidth:i,blurHeight:o,blurDataURL:a,objectFit:s}=e,l=i?40*i:t,u=o?40*o:n,c=l&&u?"viewBox='0 0 "+l+" "+u+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+c+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(c?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+a+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return getImageBlurSvg}})},7327:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let i=n(1024),o=i._(n(2265)),a=n(5751),s=o.default.createContext(a.imageConfigDefault)},5751:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return i}});let n=["default","imgix","cloudinary","akamai","custom"],i={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},679:function(e,t,n){"use strict";
96Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{unstable_getImgProps:function(){return unstable_getImgProps},default:function(){return u}});let i=n(1024),o=n(7929),a=n(2637),s=n(413),l=i._(n(9950)),unstable_getImgProps=e=>{(0,a.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,o.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}},u=s.Image},9950:function(e,t){"use strict";function defaultLoader(e){let{config:t,src:n,width:i,quality:o}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+i+"&q="+(o||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),defaultLoader.__next_img_default=!0;let n=defaultLoader},6304:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return a}});let i=n(1024),o=i._(n(2265)),a=o.default.createContext(null)},8130:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return formatUrl},urlObjectKeys:function(){return s},formatWithValidation:function(){return formatWithValidation}});let i=n(8533),o=i._(n(5991)),a=/https?|ftp|gopher|file/;function formatUrl(e){let{auth:t,hostname:n}=e,i=e.protocol||"",s=e.pathname||"",l=e.hash||"",u=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:n&&(c=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(c+=":"+e.port)),u&&"object"==typeof u&&(u=String(o.urlQueryToSearchParams(u)));let d=e.search||u&&"?"+u||"";return i&&!i.endsWith(":")&&(i+=":"),e.slashes||(!i||a.test(i))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),d&&"?"!==d[0]&&(d="?"+d),""+i+c+(s=s.replace(/[?#]/g,encodeURIComponent))+(d=d.replace("#","%23"))+l}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function formatWithValidation(e){return formatUrl(e)}},9289:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return i.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let i=n(9255),o=n(5321)},948:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return interpolateAs}});let i=n(1670),o=n(4586);function interpolateAs(e,t,n){let a="",s=(0,o.getRouteRegex)(e),l=s.groups,u=(t!==e?(0,i.getRouteMatcher)(s)(t):"")||n;a=e;let c=Object.keys(l);return c.every(e=>{let t=u[e]||"",{repeat:n,optional:i}=l[e],o="["+(n?"...":"")+e+"]";return i&&(o=(t?"":"/")+"["+o+"]"),n&&!Array.isArray(t)&&(t=[t]),(i||e in u)&&(a=a.replace(o,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:c,result:a}}},5321:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return isDynamicRoute}});let n=/\/\[[^/]+?\](?=\/|$)/;function isDynamicRoute(e){return n.test(e)}},8664:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return isLocalURL}});let i=n(6681),o=n(6746);function isLocalURL(e){if(!(0,i.isAbsoluteUrl)(e))return!0;try{let t=(0,i.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,o.hasBasePath)(n.pathname)}catch(e){return!1}}},8137:function(e,t){"use strict";function omit(e,t){let n={};return Object.keys(e).forEach(i=>
96{t.includes(i)||(n[i]=e[i])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return omit}})},5991:function(e,t){"use strict";function searchParamsToUrlQuery(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function stringifyUrlQueryParam(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function urlQueryToSearchParams(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,i]=e;Array.isArray(i)?i.forEach(e=>t.append(n,stringifyUrlQueryParam(e))):t.set(n,stringifyUrlQueryParam(i))}),t}function assign(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.forEach(t=>{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{searchParamsToUrlQuery:function(){return searchParamsToUrlQuery},urlQueryToSearchParams:function(){return urlQueryToSearchParams},assign:function(){return assign}})},1670:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return getRouteMatcher}});let i=n(6681);function getRouteMatcher(e){let{re:t,groups:n}=e;return e=>{let o=t.exec(e);if(!o)return!1;let decode=e=>{try{return decodeURIComponent(e)}catch(e){throw new i.DecodeError("failed to decode param")}},a={};return Object.keys(n).forEach(e=>{let t=n[e],i=o[t.pos];void 0!==i&&(a[e]=~i.indexOf("/")?i.split("/").map(e=>decode(e)):t.repeat?[decode(i)]:decode(i))}),a}}},4586:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getRouteRegex:function(){return getRouteRegex},getNamedRouteRegex:function(){return getNamedRouteRegex},getNamedMiddlewareRegex:function(){return getNamedMiddlewareRegex}});let i=n(4507),o=n(4910),a=n(9006);function parseParameter(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function getParametrizedRoute(e){let t=(0,a.removeTrailingSlash)(e).slice(1).split("/"),n={},s=1;return{parameterizedRoute:t.map(e=>{let t=i.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&a){let{key:e,optional:i,repeat:l}=parseParameter(a[1]);return n[e]={pos:s++,repeat:l,optional:i},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!a)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:i}=parseParameter(a[1]);return n[e]={pos:s++,repeat:t,optional:i},t?i?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function getRouteRegex(e){let{parameterizedRoute:t,groups:n}=getParametrizedRoute(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function getSafeKeyFromSegment(e){let{getSafeRouteKey:t,segment:n,routeKeys:i,keyPrefix:o}=e,{key:a,optional:s,repeat:l}=parseParameter(n),u=a.replace(/\W/g,"");o&&(u=""+o+u);let c=!1;return(0===u.length||u.length>30)&&(c=!0),isNaN(parseInt(u.slice(0,1)))||(c=!0),c&&(u=t()),o?i[u]=""+o+a:i[u]=""+a,l?s?"(?:/(?<"+u+">.+?))?":"/(?<"+u+">.+?)":"/(?<"+u+">[^/]+?)"}function getNamedParametrizedRoute(e,t){let n;let s=(0,a.removeTrailingSlash)(e).slice(1).split("/"),l=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),u={};return{namedParameterizedRoute:s.map(e=>{let n=i.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);return n&&a?getSafeKeyFromSegment({getSafeRouteKey:l,segment:a[1],routeKeys:u,keyPrefix:t?"nxtI":void 0}):a?getSafeKeyFromSegment({getSafeRouteKey:l,segment:a[1],routeKeys:u,keyPrefix:t?"nxtP":void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:u}}function getNamedRouteRegex(e,t){let n=getNamedParametrizedRoute(e,t);return{...getRouteRegex(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function getNamedMiddlewareRegex(e,t){let{parameterizedRoute:n}=getParametrizedRoute(e),{catchAll:i=!0}=t;if("/"===n)return{namedRegex:"^/"+(i?".*":"")+"$"};let{namedParameterizedRoute:o}=getNamedParametrizedRoute(e,!1);return{namedRegex:"^"+o+(i?"(?:(/.*)?)":"")+"$"}}},9255:function(e,t){"use strict";
96Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return getSortedRoutes}});let UrlNode=class UrlNode{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Error("Catch-all must be the last part of the URL.");let i=e[0];if(i.startsWith("[")&&i.endsWith("]")){let o=i.slice(1,-1),a=!1;if(o.startsWith("[")&&o.endsWith("]")&&(o=o.slice(1,-1),a=!0),o.startsWith("...")&&(o=o.substring(3),n=!0),o.startsWith("[")||o.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+o+"').");if(o.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+o+"').");function handleSlug(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===i.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(n){if(a){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');handleSlug(this.optionalRestSlugName,o),this.optionalRestSlugName=o,i="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');handleSlug(this.restSlugName,o),this.restSlugName=o,i="[...]"}}else{if(a)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');handleSlug(this.slugName,o),this.slugName=o,i="[]"}}this.children.has(i)||this.children.set(i,new UrlNode),this.children.get(i)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}};function getSortedRoutes(e){let t=new UrlNode;return e.forEach(e=>t.insert(e)),t.smoosh()}},110:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return SideEffect}});let i=n(2265),o=i.useLayoutEffect,a=i.useEffect;function SideEffect(e){let{headManager:t,reduceComponentsToState:n}=e;function emitChange(){if(t&&t.mountedInstances){let o=i.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(o,e))}}return o(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=emitChange),()=>{t&&(t._pendingUpdate=emitChange)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},6681:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{WEB_VITALS:function(){return n},execOnce:function(){return execOnce},isAbsoluteUrl:function(){return isAbsoluteUrl}
96,getLocationOrigin:function(){return getLocationOrigin},getURL:function(){return getURL},getDisplayName:function(){return getDisplayName},isResSent:function(){return isResSent},normalizeRepeatedSlashes:function(){return normalizeRepeatedSlashes},loadGetInitialProps:function(){return loadGetInitialProps},SP:function(){return o},ST:function(){return a},DecodeError:function(){return DecodeError},NormalizeError:function(){return NormalizeError},PageNotFoundError:function(){return PageNotFoundError},MissingStaticPage:function(){return MissingStaticPage},MiddlewareNotFoundError:function(){return MiddlewareNotFoundError},stringifyError:function(){return stringifyError}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function execOnce(e){let t,n=!1;return function(){for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n||(n=!0,t=e(...o)),t}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,isAbsoluteUrl=e=>i.test(e);function getLocationOrigin(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function getURL(){let{href:e}=window.location,t=getLocationOrigin();return e.substring(t.length)}function getDisplayName(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function isResSent(e){return e.finished||e.headersSent}function normalizeRepeatedSlashes(e){let t=e.split("?"),n=t[0];return n.replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function loadGetInitialProps(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await loadGetInitialProps(t.Component,t.ctx)}:{};let i=await e.getInitialProps(t);if(n&&isResSent(n))return i;if(!i){let t='"'+getDisplayName(e)+'.getInitialProps()" should resolve to an object. But found "'+i+'" instead.';throw Error(t)}return i}let o="undefined"!=typeof performance,a=o&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);let DecodeError=class DecodeError extends Error{};let NormalizeError=class NormalizeError extends Error{};let PageNotFoundError=class PageNotFoundError extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}};let MissingStaticPage=class MissingStaticPage extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}};let MiddlewareNotFoundError=class MiddlewareNotFoundError extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}};function stringifyError(e){return JSON.stringify({message:e.message,stack:e.stack})}},2637:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return warnOnce}});let warnOnce=e=>{}},8960:function(e){!function(){var t={229:function(e){var t,n,i,o=e.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(e){if(t===setTimeout)return setTimeout(e,0);if((t===defaultSetTimout||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){t=defaultSetTimout}try{n="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){n=defaultClearTimeout}}();var a=[],s=!1,l=-1;function cleanUpNextTick(){s&&i&&(s=!1,i.length?a=i.concat(a):l=-1,a.length&&drainQueue())}function drainQueue(){if(!s){var e=runTimeout(cleanUpNextTick);s=!0;for(var t=a.length;t;){for(i=a,a=[];++l<t;)i&&i[l].run();l=-1,t=a.length}i=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===defaultClearTimeout||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function Item(e,t){this.fun=e,this.array=t}function noop(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];a.push(new Item(e,t)),1!==a.length||s||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=noop,o.addListener=noop,o.once=noop,o.off=noop,o.removeListener=noop,o.removeAllListeners=noop,o.emit=noop,o.prependListener=noop,o.prependOnceListener=noop,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},n={};function __nccwpck_require__(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,__nccwpck_require__),a=!1}finally{a&&delete n[e]}return o.exports}__nccwpck_require__.ab="//";var i=__nccwpck_require__(229);e.exports=i}()},622:function(e,t,n){"use strict";/** 97 * @license React 98 * react-jsx-runtime.production.min.js 99 * 100 * Copyright (c) Meta Platforms, Inc. and affiliates. 101 * 102 * This source code is licensed under the MIT license found in the 103 * LICENSE file in the root directory of this source tree. 104 */var i=n(2265),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=i.__SECRET_INT
104ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function q(e,t,n){var i,a={},c=null,d=null;for(i in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)s.call(t,i)&&!u.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===a[i]&&(a[i]=t[i]);return{$$typeof:o,type:e,key:c,ref:d,props:a,_owner:l.current}}t.Fragment=a,t.jsx=q,t.jsxs=q},7437:function(e,t,n){"use strict";e.exports=n(622)},6691:function(e,t,n){e.exports=n(679)},1396:function(e,t,n){e.exports=n(8326)},5744:function(e,t,n){"use strict";function composeEventHandlers(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e?.(i),!1===n||!i.defaultPrevented)return t?.(i)}}n.d(t,{M:function(){return composeEventHandlers}})},2704:function(e,t,n){"use strict";n.d(t,{VY:function(){return ea},h4:function(){return ei},ck:function(){return en},fC:function(){return er},xz:function(){return eo}});var i=n(2265),o=n(6989),a=n(7733),s=n(2210),l=n(5744),u=n(3763),c=n(9790),d=n(1030),h=n(4887),Presence=e=>{let t,n;let{present:o,children:a}=e,l=function(e){var t;let[n,o]=i.useState(),a=i.useRef({}),s=i.useRef(e),l=i.useRef("none"),u=e?"mounted":"unmounted",[c,f]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},i.useReducer((e,n)=>{let i=t[e][n];return i??e},u));return i.useEffect(()=>{let e=getAnimationName(a.current);l.current="mounted"===c?e:"none"},[c]),(0,d.b)(()=>{let t=a.current,n=s.current,i=n!==e;if(i){let i=l.current,o=getAnimationName(t);e?f("MOUNT"):"none"===o||t?.display==="none"?f("UNMOUNT"):n&&i!==o?f("ANIMATION_OUT"):f("UNMOUNT"),s.current=e}},[e,f]),(0,d.b)(()=>{if(n){let handleAnimationEnd=e=>{let t=getAnimationName(a.current),i=t.includes(e.animationName);e.target===n&&i&&h.flushSync(()=>f("ANIMATION_END"))},handleAnimationStart=e=>{e.target===n&&(l.current=getAnimationName(a.current))};return n.addEventListener("animationstart",handleAnimationStart),n.addEventListener("animationcancel",handleAnimationEnd),n.addEventListener("animationend",handleAnimationEnd),()=>{n.removeEventListener("animationstart",handleAnimationStart),n.removeEventListener("animationcancel",handleAnimationEnd),n.removeEventListener("animationend",handleAnimationEnd)}}f("ANIMATION_END")},[n,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(e=>{e&&(a.current=getComputedStyle(e)),o(e)},[])}}(o),u="function"==typeof a?a({present:l.isPresent}):i.Children.only(a),c=(0,s.e)(l.ref,(t=Object.getOwnPropertyDescriptor(u.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?u.ref:(t=Object.getOwnPropertyDescriptor(u,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?u.props.ref:u.props.ref||u.ref),f="function"==typeof a;return f||l.isPresent?i.cloneElement(u,{ref:c}):null};function getAnimationName(e){return e?.animationName||"none"}Presence.displayName="Presence";var f=n(966),p=n(7437),m="Collapsible",[g,v]=(0,o.b)(m),[y,b]=g(m),x=i.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:o,defaultOpen:a,disabled:s,onOpenChange:l,...d}=e,[h=!1,m]=(0,u.T)({prop:o,defaultProp:a,onChange:l});return(0,p.jsx)(y,{scope:n,disabled:s,contentId:(0,f.M)(),open:h,onOpenToggle:i.useCallback(()=>m(e=>!e),[m]),children:(0,p.jsx)(c.WV.div,{"data-state":getState(h),"data-disabled":s?"":void 0,...d,ref:t})})});x.displayName=m;var w="CollapsibleTrigger",S=i.forwardRef((e,t)=>{let{__scopeCollapsible:n,...i}=e,o=b(w,n);return(0,p.jsx)(c.WV.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":getState(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...i,ref:t,onClick:(0,l.M)(e.onClick,o.onOpenToggle)})});S.displayName=w;var A="CollapsibleContent",P=i.forwardRef((e,t)=>{let{forceMount:n,...i}=e,o=b(A,e.__scopeCollapsible);return(0,p.jsx)(Presence,{present:n||o.open,children:({present:e})=>(0,p.jsx)(T,{...i,ref:t,present:e})})});P.displayName=A;var T=i.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:o,children:a,...l}=e,u=b(A,n),[h,f]=i.useState(o),m=i.useRef(null),g=(0,s.e)(t,m),v=i.useRef(0),y=v.current,x=i.useRef(0),w=x.current,S=u.open||h,P=i.useRef(S),T=i.useRef();return i.useEffect(()=>{let e=requestAnimationFrame(()=>P.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,d.b)(()=>{let e=m.current;if(e){T.current=T.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();v.current=t.height,x.current=t.width,P.current||(e.style.transitionDuration=T.current.transitionDuration,e.style.animationName=T.current.animationName),f(o)}},[u.open,o]),(0,p.jsx)(c.WV.div,{"data-state":getState(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!S,...l,ref:g,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:S&&a}
104)});function getState(e){return e?"open":"closed"}var C=n(5400),E="Accordion",R=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[_,M,k]=(0,a.B)(E),[V,D]=(0,o.b)(E,[k,v]),O=v(),L=i.forwardRef((e,t)=>{let{type:n,...i}=e;return(0,p.jsx)(_.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,p.jsx)(W,{...i,ref:t}):(0,p.jsx)(F,{...i,ref:t})})});L.displayName=E;var[N,j]=V(E),[I,B]=V(E,{collapsible:!1}),F=i.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:a=()=>{},collapsible:s=!1,...l}=e,[c,d]=(0,u.T)({prop:n,defaultProp:o,onChange:a});return(0,p.jsx)(N,{scope:e.__scopeAccordion,value:c?[c]:[],onItemOpen:d,onItemClose:i.useCallback(()=>s&&d(""),[s,d]),children:(0,p.jsx)(I,{scope:e.__scopeAccordion,collapsible:s,children:(0,p.jsx)(H,{...l,ref:t})})})}),W=i.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:a=()=>{},...s}=e,[l=[],c]=(0,u.T)({prop:n,defaultProp:o,onChange:a}),d=i.useCallback(e=>c((t=[])=>[...t,e]),[c]),h=i.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,p.jsx)(N,{scope:e.__scopeAccordion,value:l,onItemOpen:d,onItemClose:h,children:(0,p.jsx)(I,{scope:e.__scopeAccordion,collapsible:!0,children:(0,p.jsx)(H,{...s,ref:t})})})}),[z,U]=V(E),H=i.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:o,dir:a,orientation:u="vertical",...d}=e,h=i.useRef(null),f=(0,s.e)(h,t),m=M(n),g=(0,C.gm)(a),v="ltr"===g,y=(0,l.M)(e.onKeyDown,e=>{if(!R.includes(e.key))return;let t=e.target,n=m().filter(e=>!e.ref.current?.disabled),i=n.findIndex(e=>e.ref.current===t),o=n.length;if(-1===i)return;e.preventDefault();let a=i,s=o-1,moveNext=()=>{(a=i+1)>s&&(a=0)},movePrev=()=>{(a=i-1)<0&&(a=s)};switch(e.key){case"Home":a=0;break;case"End":a=s;break;case"ArrowRight":"horizontal"===u&&(v?moveNext():movePrev());break;case"ArrowDown":"vertical"===u&&moveNext();break;case"ArrowLeft":"horizontal"===u&&(v?movePrev():moveNext());break;case"ArrowUp":"vertical"===u&&movePrev()}let l=a%o;n[l].ref.current?.focus()});return(0,p.jsx)(z,{scope:n,disabled:o,direction:a,orientation:u,children:(0,p.jsx)(_.Slot,{scope:n,children:(0,p.jsx)(c.WV.div,{...d,"data-orientation":u,ref:f,onKeyDown:o?void 0:y})})})}),$="AccordionItem",[K,G]=V($),Z=i.forwardRef((e,t)=>{let{__scopeAccordion:n,value:i,...o}=e,a=U($,n),s=j($,n),l=O(n),u=(0,f.M)(),c=i&&s.value.includes(i)||!1,d=a.disabled||e.disabled;return(0,p.jsx)(K,{scope:n,open:c,disabled:d,triggerId:u,children:(0,p.jsx)(x,{"data-orientation":a.orientation,"data-state":dist_getState(c),...l,...o,ref:t,disabled:d,open:c,onOpenChange:e=>{e?s.onItemOpen(i):s.onItemClose(i)}})})});Z.displayName=$;var Y="AccordionHeader",X=i.forwardRef((e,t)=>{let{__scopeAccordion:n,...i}=e,o=U(E,n),a=G(Y,n);return(0,p.jsx)(c.WV.h3,{"data-orientation":o.orientation,"data-state":dist_getState(a.open),"data-disabled":a.disabled?"":void 0,...i,ref:t})});X.displayName=Y;var Q="AccordionTrigger",J=i.forwardRef((e,t)=>{let{__scopeAccordion:n,...i}=e,o=U(E,n),a=G(Q,n),s=B(Q,n),l=O(n);return(0,p.jsx)(_.ItemSlot,{scope:n,children:(0,p.jsx)(S,{"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...l,...i,ref:t})})});J.displayName=Q;var ee="AccordionContent",et=i.forwardRef((e,t)=>{let{__scopeAccordion:n,...i}=e,o=U(E,n),a=G(ee,n),s=O(n);return(0,p.jsx)(P,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...s,...i,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function dist_getState(e){return e?"open":"closed"}et.displayName=ee;var er=L,en=Z,ei=X,eo=J,ea=et},7733:function(e,t,n){"use strict";n.d(t,{B:function(){return createCollection}});var i=n(2265),o=n(6989),a=n(2210),s=n(7256),l=n(7437);function createCollection(e){let t=e+"CollectionProvider",[n,u]=(0,o.b)(t),[c,d]=n(t,{collectionRef:{current:null},itemMap:new Map}),CollectionProvider=e=>{let{scope:t,children:n}=e,o=i.useRef(null),a=i.useRef(new Map).current;return(0,l.jsx)(c,{scope:t,itemMap:a,collectionRef:o,children:n})};CollectionProvider.displayName=t;let h=e+"CollectionSlot",f=i.forwardRef((e,t)=>
104{let{scope:n,children:i}=e,o=d(h,n),u=(0,a.e)(t,o.collectionRef);return(0,l.jsx)(s.g7,{ref:u,children:i})});f.displayName=h;let p=e+"CollectionItemSlot",m="data-radix-collection-item",g=i.forwardRef((e,t)=>{let{scope:n,children:o,...u}=e,c=i.useRef(null),h=(0,a.e)(t,c),f=d(p,n);return i.useEffect(()=>(f.itemMap.set(c,{ref:c,...u}),()=>void f.itemMap.delete(c))),(0,l.jsx)(s.g7,{[m]:"",ref:h,children:o})});return g.displayName=p,[{Provider:CollectionProvider,Slot:f,ItemSlot:g},function(t){let n=d(e+"CollectionConsumer",t),o=i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`)),i=Array.from(n.itemMap.values()),o=i.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return o},[n.collectionRef,n.itemMap]);return o},u]}},2210:function(e,t,n){"use strict";n.d(t,{F:function(){return composeRefs},e:function(){return useComposedRefs}});var i=n(2265);function composeRefs(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function useComposedRefs(...e){return i.useCallback(composeRefs(...e),e)}},6989:function(e,t,n){"use strict";n.d(t,{b:function(){return createContextScope}});var i=n(2265),o=n(7437);function createContextScope(e,t=[]){let n=[],createScope=()=>{let t=n.map(e=>i.createContext(e));return function(n){let o=n?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return createScope.scopeName=e,[function(t,a){let s=i.createContext(a),l=n.length;function Provider(t){let{scope:n,children:a,...u}=t,c=n?.[e][l]||s,d=i.useMemo(()=>u,Object.values(u));return(0,o.jsx)(c.Provider,{value:d,children:a})}return n=[...n,a],Provider.displayName=t+"Provider",[Provider,function(n,o){let u=o?.[e][l]||s,c=i.useContext(u);if(c)return c;if(void 0!==a)return a;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let createScope=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:i})=>{let o=n(e),a=o[`__scope${i}`];return{...t,...a}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return createScope.scopeName=t.scopeName,createScope}(createScope,...t)]}},5400:function(e,t,n){"use strict";n.d(t,{gm:function(){return useDirection}});var i=n(2265);n(7437);var o=i.createContext(void 0);function useDirection(e){let t=i.useContext(o);return e||t||"ltr"}},966:function(e,t,n){"use strict";n.d(t,{M:function(){return useId}});var i,o=n(2265),a=n(1030),s=(i||(i=n.t(o,2)))["useId".toString()]||(()=>void 0),l=0;function useId(e){let[t,n]=o.useState(s());return(0,a.b)(()=>{e||n(e=>e??String(l++))},[e]),e||(t?`radix-${t}`:"")}},9790:function(e,t,n){"use strict";n.d(t,{WV:function(){return l},jH:function(){return dispatchDiscreteCustomEvent}});var i=n(2265),o=n(4887),a=n(7256),s=n(7437),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=i.forwardRef((e,n)=>{let{asChild:i,...o}=e,l=i?a.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(l,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function dispatchDiscreteCustomEvent(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},5497:function(e,t,n){"use strict";let i;n.d(t,{VY:function(){return tb},ZA:function(){return tw},JO:function(){return tv},ck:function(){return tA},wU:function(){return tT},eT:function(){return tP},__:function(){return tS},h_:function(){return ty},fC:function(){return tp},Z0:function(){return tC},xz:function(){return tm},B4:function(){return tg},l_:function(){return tx}});var o,a,s,l,u,c,d,h=n(2265),f=n(4887);function clamp(e,[t,n]){return Math.min(n,Math.max(t,e))}var p=n(5744),m=n(7733),g=n(2210),v=n(6989),y=n(5400),b=n(9790),x=n(6459),w=n(7437),S="dismissableLayer.update",A=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),P=h.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,d=h.useContext(A),[f,m]=h.useState(null),v=f?.ownerDocument??globalThis?.document,[,y]=h.useState({}),P=(0,g.e)(t,e=>m(e)),T=Array.from(d.layers),[C]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),E=T.indexOf(C),R=f?T.indexOf(f):-1,_=d.layersWithOutsidePointerEventsDisabled.size>0,M=R>=E,k=function(e,t=globalThis?.document){let n=(0,x.W)(e),i=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{let handlePointerDown=e=>{if(e.target&&!i.current){let handleAndDispatchPointerDownOutsideEvent2=function(){handleAndDispatchCustomEvent("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=handleAndDispatchPointerDownOutsideEvent2,t.addEventListener("click",o.current,{once:!0})):handleAndDispatchPointerDownOutsideEvent2()}else t.removeEventListener("click",o.current);i.current=!1},e=window.setTimeout(()=>{t.addEventListener("pointerdown",handlePointerDown)},0);return()=>{window.clearTimeout(e),t.removeEventListener("pointerdown",handlePointerDown),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!M||n||(o?.(e),s?.(e),e.defaultPrevented||l?.())},v),V=function(e,t=globalThis?.document){let n=(0,x.W)(e),i=h.useRef(!1);return h.useEffect(()=>{let handleFocus=e=>{e.target&&!i.current&&handleAndDispatchCustomEvent("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",handleFocus),()=>t.removeEventListener("focusin",handleFocus)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));
104n||(a?.(e),s?.(e),e.defaultPrevented||l?.())},v);return!function(e,t=globalThis?.document){let n=(0,x.W)(e);h.useEffect(()=>{let handleKeyDown=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",handleKeyDown,{capture:!0}),()=>t.removeEventListener("keydown",handleKeyDown,{capture:!0})},[n,t])}(e=>{let t=R===d.layers.size-1;t&&(i?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},v),h.useEffect(()=>{if(f)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(c=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),dispatchUpdate(),()=>{n&&1===d.layersWithOutsidePointerEventsDisabled.size&&(v.body.style.pointerEvents=c)}},[f,v,n,d]),h.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),dispatchUpdate())},[f,d]),h.useEffect(()=>{let handleUpdate=()=>y({});return document.addEventListener(S,handleUpdate),()=>document.removeEventListener(S,handleUpdate)},[]),(0,w.jsx)(b.WV.div,{...u,ref:P,style:{pointerEvents:_?M?"auto":"none":void 0,...e.style},onFocusCapture:(0,p.M)(e.onFocusCapture,V.onFocusCapture),onBlurCapture:(0,p.M)(e.onBlurCapture,V.onBlurCapture),onPointerDownCapture:(0,p.M)(e.onPointerDownCapture,k.onPointerDownCapture)})});function dispatchUpdate(){let e=new CustomEvent(S);document.dispatchEvent(e)}function handleAndDispatchCustomEvent(e,t,n,{discrete:i}){let o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?(0,b.jH)(o,a):o.dispatchEvent(a)}P.displayName="DismissableLayer",h.forwardRef((e,t)=>{let n=h.useContext(A),i=h.useRef(null),o=(0,g.e)(t,i);return h.useEffect(()=>{let e=i.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,w.jsx)(b.WV.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var T=0;function createFocusGuard(){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}var C="focusScope.autoFocusOnMount",E="focusScope.autoFocusOnUnmount",R={bubbles:!1,cancelable:!0},_=h.forwardRef((e,t)=>{let{loop:n=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[l,u]=h.useState(null),c=(0,x.W)(o),d=(0,x.W)(a),f=h.useRef(null),p=(0,g.e)(t,e=>u(e)),m=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(i){let handleFocusIn2=function(e){if(m.paused||!l)return;let t=e.target;l.contains(t)?f.current=t:dist_focus(f.current,{select:!0})},handleFocusOut2=function(e){if(m.paused||!l)return;let t=e.relatedTarget;null===t||l.contains(t)||dist_focus(f.current,{select:!0})};document.addEventListener("focusin",handleFocusIn2),document.addEventListener("focusout",handleFocusOut2);let e=new MutationObserver(function(e){let t=document.activeElement;if(t===document.body)for(let t of e)t.removedNodes.length>0&&dist_focus(l)});return l&&e.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",handleFocusIn2),document.removeEventListener("focusout",handleFocusOut2),e.disconnect()}}},[i,l,m.paused]),h.useEffect(()=>{if(l){M.add(m);let e=document.activeElement,t=l.contains(e);if(!t){let t=new CustomEvent(C,R);l.addEventListener(C,c),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let i of e)if(dist_focus(i,{select:t}),document.activeElement!==n)return}(getTabbableCandidates(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&dist_focus(l))}return()=>{l.removeEventListener(C,c),setTimeout(()=>{let t=new CustomEvent(E,R);l.addEventListener(E,d),l.dispatchEvent(t),t.defaultPrevented||dist_focus(e??document.body,{select:!0}),l.removeEventListener(E,d),M.remove(m)},0)}}},[l,c,d,m]);let v=h.useCallback(e=>{if(!n&&!i||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[i,a]=function(e){let t=getTabbableCandidates(e),n=findVisible(t,e),i=findVisible(t.reverse(),e);return[n,i]}(t),s=i&&a;s?e.shiftKey||o!==a?e.shiftKey&&o===i&&(e.preventDefault(),n&&dist_focus(a,{select:!0})):(e.preventDefault(),n&&dist_focus(i,{select:!0})):o===t&&e.preventDefault()}},[n,i,m.paused]);return(0,w.jsx)(b.WV.div,{tabIndex:-1,...s,ref:p,onKeyDown:v})});function getTabbableCandidates(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 findVisible(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function dist_focus(e,{select:t=!1}={}){if(e&&e.focus){var n;let i=document.activeElement;e.focus({preventScroll:!0}),e!==i&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}_.displayName="FocusScope";var M=(i=[],{add(e){let t=i[0];e!==t&&t?.pause(),(i=arrayRemove(i,e)).unshift(e)},remove(e){i=arrayRemove(i,e),i[0]?.resume()}});function arrayRemove(e,t){let n=[...e],i=n.indexOf(t);return -1!==i&&n.splice(i,1),n}var k=n(966);let V=["top","right","bottom","left"],D=Math.min,O=Math.max,L=Math.round,N=Math.floor,createCoords=e=>({x:e,y:e}
vendor: 4,246 bytes, line 104
104),j={left:"right",right:"left",bottom:"top",top:"bottom"},I={start:"end",end:"start"};function floating_ui_utils_evaluate(e,t){return"function"==typeof e?e(t):e}function floating_ui_utils_getSide(e){return e.split("-")[0]}function floating_ui_utils_getAlignment(e){return e.split("-")[1]}function getOppositeAxis(e){return"x"===e?"y":"x"}function getAxisLength(e){return"y"===e?"height":"width"}function floating_ui_utils_getSideAxis(e){return["top","bottom"].includes(floating_ui_utils_getSide(e))?"y":"x"}function floating_ui_utils_getOppositeAlignmentPlacement(e){return e.replace(/start|end/g,e=>I[e])}function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,e=>j[e])}function floating_ui_utils_getPaddingObject(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function floating_ui_utils_rectToClientRect(e){let{x:t,y:n,width:i,height:o}=e;return{width:i,height:o,top:n,left:t,right:t+i,bottom:n+o,x:t,y:n}}function computeCoordsFromPlacement(e,t,n){let i,{reference:o,floating:a}=e,s=floating_ui_utils_getSideAxis(t),l=getOppositeAxis(floating_ui_utils_getSideAxis(t)),u=getAxisLength(l),c=floating_ui_utils_getSide(t),d="y"===s,h=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,p=o[u]/2-a[u]/2;switch(c){case"top":i={x:h,y:o.y-a.height};break;case"bottom":i={x:h,y:o.y+o.height};break;case"right":i={x:o.x+o.width,y:f};break;case"left":i={x:o.x-a.width,y:f};break;default:i={x:o.x,y:o.y}}switch(floating_ui_utils_getAlignment(t)){case"start":i[l]-=p*(n&&d?-1:1);break;case"end":i[l]+=p*(n&&d?-1:1)}return i}let computePosition=async(e,t,n)=>{let{placement:i="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,l=a.filter(Boolean),u=await (null==s.isRTL?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:h}=computeCoordsFromPlacement(c,i,u),f=i,p={},m=0;for(let n=0;n<l.length;n++){let{name:a,fn:g}=l[n],{x:v,y:y,data:b,reset:x}=await g({x:d,y:h,initialPlacement:i,placement:f,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});d=null!=v?v:d,h=null!=y?y:h,p={...p,[a]:{...p[a],...b}},x&&m<=50&&(m++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(c=!0===x.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:d,y:h}=computeCoordsFromPlacement(c,f,u)),n=-1)}return{x:d,y:h,placement:f,strategy:o,middlewareData:p}};async function detectOverflow(e,t){var n;void 0===t&&(t={});let{x:i,y:o,platform:a,rects:s,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:p=0}=floating_ui_utils_evaluate(t,e),m=floating_ui_utils_getPaddingObject(p),g=l[f?"floating"===h?"reference":"floating":h],v=floating_ui_utils_rectToClientRect(await a.getClippingRect({element:null==(n=await (null==a.isElement?void 0:a.isElement(g)))||n?g:g.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),y="floating"===h?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await (null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),x=await (null==a.isElement?void 0:a.isElement(b))&&await (null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},w=floating_ui_utils_rectToClientRect(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:b,strategy:u}):y);return{top:(v.top-w.top+m.top)/x.y,bottom:(w.bottom-v.bottom+m.bottom)/x.y,left:(v.left-w.left+m.left)/x.x,right:(w.right-v.right+m.right)/x.x}}function getSideOffsets(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function isAnySideFullyClipped(e){return V.some(t=>e[t]>=0)}async function convertValueToCoords(e,t){let{placement:n,platform:i,elements:o}=e,a=await (null==i.isRTL?void 0:i.isRTL(o.floating)),s=floating_ui_utils_getSide(n),l=floating_ui_utils_getAlignment(n),u="y"===floating_ui_utils_getSideAxis(n),c=["left","top"].includes(s)?-1:1,d=a&&u?-1:1,h=floating_ui_utils_evaluate(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}
104:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),u?{x:p*d,y:f*c}:{x:f*c,y:p*d}}function hasWindow(){return"undefined"!=typeof window}function getNodeName(e){return isNode(e)?(e.nodeName||"").toLowerCase():"#document"}function getWindow(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function getDocumentElement(e){var t;return null==(t=(isNode(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function isNode(e){return!!hasWindow()&&(e instanceof Node||e instanceof getWindow(e).Node)}function isElement(e){return!!hasWindow()&&(e instanceof Element||e instanceof getWindow(e).Element)}function isHTMLElement(e){return!!hasWindow()&&(e instanceof HTMLElement||e instanceof getWindow(e).HTMLElement)}function isShadowRoot(e){return!!hasWindow()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof getWindow(e).ShadowRoot)}function isOverflowElement(e){let{overflow:t,overflowX:n,overflowY:i,display:o}=floating_ui_utils_dom_getComputedStyle(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(o)}function isTopLayer(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function isContainingBlock(e){let t=isWebKit(),n=isElement(e)?floating_ui_utils_dom_getComputedStyle(e):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 isWebKit(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(e){return["html","body","#document"].includes(getNodeName(e))}function floating_ui_utils_dom_getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function getNodeScroll(e){return isElement(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function getParentNode(e){if("html"===getNodeName(e))return e;let t=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(t)?t.host:t}function getOverflowAncestors(e,t,n){var i;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function getNearestOverflowAncestor(e){let t=getParentNode(e);return isLastTraversableNode(t)?e.ownerDocument?e.ownerDocument.body:e.body:isHTMLElement(t)&&isOverflowElement(t)?t:getNearestOverflowAncestor(t)}(e),a=o===(null==(i=e.ownerDocument)?void 0:i.body),s=getWindow(o);if(a){let e=getFrameElement(s);return t.concat(s,s.visualViewport||[],isOverflowElement(o)?o:[],e&&n?getOverflowAncestors(e):[])}return t.concat(o,getOverflowAncestors(o,[],n))}function getFrameElement(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function getCssDimensions(e){let t=floating_ui_utils_dom_getComputedStyle(e),n=parseFloat(t.width)||0,i=parseFloat(t.height)||0,o=isHTMLElement(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:i,l=L(n)!==a||L(i)!==s;return l&&(n=a,i=s),{width:n,height:i,$:l}}function unwrapElement(e){return isElement(e)?e:e.contextElement}function getScale(e){let t=unwrapElement(e);if(!isHTMLElement(t))return createCoords(1);let n=t.getBoundingClientRect(),{width:i,height:o,$:a}=getCssDimensions(t),s=(a?L(n.width):n.width)/i,l=(a?L(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}let B=createCoords(0);function getVisualOffsets(e){let t=getWindow(e);return isWebKit()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:B}function getBoundingClientRect(e,t,n,i){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),s=unwrapElement(e),l=createCoords(1);t&&(i?isElement(i)&&(l=getScale(i)):l=getScale(e));let u=(void 0===(o=n)&&(o=!1),i&&(!o||i===getWindow(s))&&o)?getVisualOffsets(s):createCoords(0),c=(a.left+u.x)/l.x,d=(a.top+u.y)/l.y,h=a.width/l.x,f=a.height/l.y;if(s){let e=getWindow(s),t=i&&isElement(i)?getWindow(i):i,n=e,o=getFrameElement(n);for(;o&&i&&t!==n;){let e=getScale(o),t=o.getBoundingClientRect(),i=floating_ui_utils_dom_getComputedStyle(o),a=t.left+(o.clientLeft+parseFloat(i.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(i.paddingTop))*e.y;c*=e.x,d*=e.y,h*=e.x,f*=e.y,c+=a,d+=s,o=getFrameElement(n=getWindow(o))}}return floating_ui_utils_rectToClientRect({width:h,height:f,x:c,y:d})}
104function getWindowScrollBarX(e,t){let n=getNodeScroll(e).scrollLeft;return t?t.left+n:getBoundingClientRect(getDocumentElement(e)).left+n}function getClientRectFromClippingAncestor(e,t,n){let i;if("viewport"===t)i=function(e,t){let n=getWindow(e),i=getDocumentElement(e),o=n.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,u=0;if(o){a=o.width,s=o.height;let e=isWebKit();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:s,x:l,y:u}}(e,n);else if("document"===t)i=function(e){let t=getDocumentElement(e),n=getNodeScroll(e),i=e.ownerDocument.body,o=O(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=O(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-n.scrollLeft+getWindowScrollBarX(e),l=-n.scrollTop;return"rtl"===floating_ui_utils_dom_getComputedStyle(i).direction&&(s+=O(t.clientWidth,i.clientWidth)-o),{width:o,height:a,x:s,y:l}}(getDocumentElement(e));else if(isElement(t))i=function(e,t){let n=getBoundingClientRect(e,!0,"fixed"===t),i=n.top+e.clientTop,o=n.left+e.clientLeft,a=isHTMLElement(e)?getScale(e):createCoords(1),s=e.clientWidth*a.x,l=e.clientHeight*a.y,u=o*a.x,c=i*a.y;return{width:s,height:l,x:u,y:c}}(t,n);else{let n=getVisualOffsets(e);i={...t,x:t.x-n.x,y:t.y-n.y}}return floating_ui_utils_rectToClientRect(i)}function isStaticPositioned(e){return"static"===floating_ui_utils_dom_getComputedStyle(e).position}function getTrueOffsetParent(e,t){if(!isHTMLElement(e)||"fixed"===floating_ui_utils_dom_getComputedStyle(e).position)return null;if(t)return t(e);let n=e.offsetParent;return getDocumentElement(e)===n&&(n=n.ownerDocument.body),n}function getOffsetParent(e,t){let n=getWindow(e);if(isTopLayer(e))return n;if(!isHTMLElement(e)){let t=getParentNode(e);for(;t&&!isLastTraversableNode(t);){if(isElement(t)&&!isStaticPositioned(t))return t;t=getParentNode(t)}return n}let i=getTrueOffsetParent(e,t);for(;i&&["table","td","th"].includes(getNodeName(i))&&isStaticPositioned(i);)i=getTrueOffsetParent(i,t);return i&&isLastTraversableNode(i)&&isStaticPositioned(i)&&!isContainingBlock(i)?n:i||function(e){let t=getParentNode(e);for(;isHTMLElement(t)&&!isLastTraversableNode(t);){if(isContainingBlock(t))return t;if(isTopLayer(t))break;t=getParentNode(t)}return null}(e)||n}let getElementRects=async function(e){let t=this.getOffsetParent||getOffsetParent,n=this.getDimensions,i=await n(e.floating);return{reference:function(e,t,n){let i=isHTMLElement(t),o=getDocumentElement(t),a="fixed"===n,s=getBoundingClientRect(e,!0,a,t),l={scrollLeft:0,scrollTop:0},u=createCoords(0);if(i||!i&&!a){if(("body"!==getNodeName(t)||isOverflowElement(o))&&(l=getNodeScroll(t)),i){let e=getBoundingClientRect(t,!0,a,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=getWindowScrollBarX(o))}let c=0,d=0;if(o&&!i&&!a){let e=o.getBoundingClientRect();d=e.top+l.scrollTop,c=e.left+l.scrollLeft-getWindowScrollBarX(o,e)}let h=s.left+l.scrollLeft-u.x-c,f=s.top+l.scrollTop-u.y-d;return{x:h,y:f,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},F={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e,a="fixed"===o,s=getDocumentElement(i),l=!!t&&isTopLayer(t.floating);if(i===s||l&&a)return n;let u={scrollLeft:0,scrollTop:0},c=createCoords(1),d=createCoords(0),h=isHTMLElement(i);if((h||!h&&!a)&&(("body"!==getNodeName(i)||isOverflowElement(s))&&(u=getNodeScroll(i)),isHTMLElement(i))){let e=getBoundingClientRect(i);c=getScale(i),d.x=e.x+i.clientLeft,d.y=e.y+i.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x,y:n.y*c.y-u.scrollTop*c.y+d.y}},getDocumentElement:getDocumentElement,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e,a="clippingAncestors"===n?isTopLayer(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let i=getOverflowAncestors(e,[],!1).filter(e=>isElement(e)&&"body"!==getNodeName(e)),o=null,a="fixed"===floating_ui_utils_dom_getComputedStyle(e).position,s=a?getParentNode(e):e;for(;isElement(s)&&!isLastTraversableNode(s);){let t=floating_ui_utils_dom_getComputedStyle(s),n=isContainingBlock(s);n||"fixed"!==t.position||(o=null);let l=a?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||isOverflowElement(s)&&!n&&function hasFixedPositionAncestor(e,t){let n=getParentNode(e);return!(n===t||!isElement(n)||isLastTraversableNode(n))&&("fixed"===floating_ui_utils_dom_getComputedStyle(n).position||hasFixedPositionAncestor(n,t))}(e,s);l?i=i.filter(e=>e!==s):o=t,s=getParentNode(s)}return t.set(e,i),i}(t,this._c):[].concat(n),s=[...a,i],l=s[0],u=s.reduce((e,n)=>{let i=getClientRectFromClippingAncestor(t,n,o);return e.top=O(i.top,e.top),e.right=D(i.right,e.right),e.bottom=D(i.bottom,e.bottom),e.left=O(i.left,e.left),e},getClientRectFromClippingAncestor(t,l,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent,getElementRects,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=getCssDimensions(e);return{width:t,height:n}},getScale,isElement:isElement,isRTL:function(e){return"rtl"===floating_ui_utils_dom_getComputedStyle(e).direction}},floating_ui_dom_arrow=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:i,placement:o,rects:a,platform:s,elements:l,middlewareData:u}=t,{element:c,padding:d=0}=floating_ui_utils_evaluate(e,t)||{};if(null==c)return{};
104let h=floating_ui_utils_getPaddingObject(d),f={x:n,y:i},p=getOppositeAxis(floating_ui_utils_getSideAxis(o)),m=getAxisLength(p),g=await s.getDimensions(c),v="y"===p,y=v?"clientHeight":"clientWidth",b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],w=await (null==s.getOffsetParent?void 0:s.getOffsetParent(c)),S=w?w[y]:0;S&&await (null==s.isElement?void 0:s.isElement(w))||(S=l.floating[y]||a.floating[m]);let A=S/2-g[m]/2-1,P=D(h[v?"top":"left"],A),T=D(h[v?"bottom":"right"],A),C=S-g[m]-T,E=S/2-g[m]/2+(b/2-x/2),R=O(P,D(E,C)),_=!u.arrow&&null!=floating_ui_utils_getAlignment(o)&&E!==R&&a.reference[m]/2-(E<P?P:T)-g[m]/2<0,M=_?E<P?E-P:E-C:0;return{[p]:f[p]+M,data:{[p]:R,centerOffset:E-R-M,..._&&{alignmentOffset:M}},reset:_}}}),floating_ui_dom_computePosition=(e,t,n)=>{let i=new Map,o={platform:F,...n},a={...o.platform,_c:i};return computePosition(e,t,{...o,platform:a})};var W="undefined"!=typeof document?h.useLayoutEffect:h.useEffect;function deepEqual(e,t){let n,i,o;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(i=n;0!=i--;)if(!deepEqual(e[i],t[i]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(i=n;0!=i--;)if(!({}).hasOwnProperty.call(t,o[i]))return!1;for(i=n;0!=i--;){let n=o[i];if(("_owner"!==n||!e.$$typeof)&&!deepEqual(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function getDPR(e){if("undefined"==typeof window)return 1;let t=e.ownerDocument.defaultView||window;return t.devicePixelRatio||1}function roundByDPR(e,t){let n=getDPR(e);return Math.round(t*n)/n}function useLatestRef(e){let t=h.useRef(e);return W(()=>{t.current=e}),t}let arrow$1=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:i}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?floating_ui_dom_arrow({element:n.current,padding:i}).fn(t):{}:n?floating_ui_dom_arrow({element:n,padding:i}).fn(t):{}}}),floating_ui_react_dom_offset=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,i;let{x:o,y:a,placement:s,middlewareData:l}=e,u=await convertValueToCoords(e,n);return s===(null==(t=l.offset)?void 0:t.placement)&&null!=(i=l.arrow)&&i.alignmentOffset?{}:{x:o+u.x,y:a+u.y,data:{...u,placement:s}}}}),options:[e,t]}},floating_ui_react_dom_shift=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:i,placement:o}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=floating_ui_utils_evaluate(n,e),c={x:t,y:i},d=await detectOverflow(e,u),h=floating_ui_utils_getSideAxis(floating_ui_utils_getSide(o)),f=getOppositeAxis(h),p=c[f],m=c[h];if(a){let e=p+d["y"===f?"top":"left"],t=p-d["y"===f?"bottom":"right"];p=O(e,D(p,t))}if(s){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=m+d[e],i=m-d[t];m=O(n,D(m,i))}let g=l.fn({...e,[f]:p,[h]:m});return{...g,data:{x:g.x-t,y:g.y-i,enabled:{[f]:a,[h]:s}}}}}),options:[e,t]}},floating_ui_react_dom_limitShift=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:i,placement:o,rects:a,middlewareData:s}=e,{offset:l=0,mainAxis:u=!0,crossAxis:c=!0}=floating_ui_utils_evaluate(n,e),d={x:t,y:i},h=floating_ui_utils_getSideAxis(o),f=getOppositeAxis(h),p=d[f],m=d[h],g=floating_ui_utils_evaluate(l,e),v="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){let e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+v.mainAxis,n=a.reference[f]+a.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var y,b;let e="y"===f?"width":"height",t=["top","left"].includes(floating_ui_utils_getSide(o)),n=a.reference[h]-a.floating[e]+(t&&(null==(y=s.offset)?void 0:y[h])||0)+(t?0:v.crossAxis),i=a.reference[h]+a.reference[e]+(t?0:(null==(b=s.offset)?void 0:b[h])||0)-(t?v.crossAxis:0);m<n?m=n:m>i&&(m=i)}return{[f]:p,[h]:m}}}),options:[e,t]}},floating_ui_react_dom_flip=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,i,o,a,s;let{placement:l,middlewareData:u,rects:c,initialPlacement:d,platform:h,elements:f}=e,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:b=!0,...x}=floating_ui_utils_evaluate(n,e);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};let w=floating_ui_utils_getSide(l),S=floating_ui_utils_getSideAxis(d),A=floating_ui_utils_getSide(d)===d,P=await (null==h.isRTL?void 0:h.isRTL(f.floating)),T=g||(A||!b?[getOppositePlacement(d)]:function(e){let t=getOpp
104ositePlacement(e);return[floating_ui_utils_getOppositeAlignmentPlacement(e),t,floating_ui_utils_getOppositeAlignmentPlacement(t)]}(d)),C="none"!==y;!g&&C&&T.push(...function(e,t,n,i){let o=floating_ui_utils_getAlignment(e),a=function(e,t,n){let i=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:i;return t?i:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(floating_ui_utils_getSide(e),"start"===n,i);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(floating_ui_utils_getOppositeAlignmentPlacement)))),a}(d,b,y,P));let E=[d,...T],R=await detectOverflow(e,x),_=[],M=(null==(i=u.flip)?void 0:i.overflows)||[];if(p&&_.push(R[w]),m){let e=function(e,t,n){void 0===n&&(n=!1);let i=floating_ui_utils_getAlignment(e),o=getOppositeAxis(floating_ui_utils_getSideAxis(e)),a=getAxisLength(o),s="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=getOppositePlacement(s)),[s,getOppositePlacement(s)]}(l,c,P);_.push(R[e[0]],R[e[1]])}if(M=[...M,{placement:l,overflows:_}],!_.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:M},reset:{placement:t}};let n=null==(a=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(v){case"bestFit":{let e=null==(s=M.filter(e=>{if(C){let t=floating_ui_utils_getSideAxis(e.placement);return t===S||"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=d}if(l!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},floating_ui_react_dom_size=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){var t,i;let o,a;let{placement:s,rects:l,platform:u,elements:c}=e,{apply:d=()=>{},...h}=floating_ui_utils_evaluate(n,e),f=await detectOverflow(e,h),p=floating_ui_utils_getSide(s),m=floating_ui_utils_getAlignment(s),g="y"===floating_ui_utils_getSideAxis(s),{width:v,height:y}=l.floating;"top"===p||"bottom"===p?(o=p,a=m===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(a=p,o="end"===m?"top":"bottom");let b=y-f.top-f.bottom,x=v-f.left-f.right,w=D(y-f[o],b),S=D(v-f[a],x),A=!e.middlewareData.shift,P=w,T=S;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(T=x),null!=(i=e.middlewareData.shift)&&i.enabled.y&&(P=b),A&&!m){let e=O(f.left,0),t=O(f.right,0),n=O(f.top,0),i=O(f.bottom,0);g?T=v-2*(0!==e||0!==t?e+t:O(f.left,f.right)):P=y-2*(0!==n||0!==i?n+i:O(f.top,f.bottom))}await d({...e,availableWidth:T,availableHeight:P});let C=await u.getDimensions(c.floating);return v!==C.width||y!==C.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},floating_ui_react_dom_hide=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:i="referenceHidden",...o}=floating_ui_utils_evaluate(n,e);switch(i){case"referenceHidden":{let n=await detectOverflow(e,{...o,elementContext:"reference"}),i=getSideOffsets(n,t.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:isAnySideFullyClipped(i)}}}case"escaped":{let n=await detectOverflow(e,{...o,altBoundary:!0}),i=getSideOffsets(n,t.floating);return{data:{escapedOffsets:i,escaped:isAnySideFullyClipped(i)}}}default:return{}}}}),options:[e,t]}},floating_ui_react_dom_arrow=(e,t)=>({...arrow$1(e),options:[e,t]});var z=h.forwardRef((e,t)=>{let{children:n,width:i=10,height:o=5,...a}=e;return(0,w.jsx)(b.WV.svg,{...a,ref:t,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,w.jsx)("polygon",{points:"0,0 30,0 15,10"})})});z.displayName="Arrow";var U=n(1030),H="Popper",[$,K]=(0,v.b)(H),[G,Z]=$(H),Popper=e=>{let{__scopePopper:t,children:n}=e,[i,o]=h.useState(null);return(0,w.jsx)(G,{scope:t,anchor:i,onAnchorChange:o,children:n})};Popper.displayName=H;var Y="PopperAnchor",X=h.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:i,...o}=e,a=Z(Y,n),s=h.useRef(null),l=(0,g.e)(t,s);return h.useEffect(()=>{a.onAnchorChange(i?.current||s.current)}),i?null:(0,w.jsx)(b.WV.div,{...o,ref:l})});X.displayName=Y;var Q="PopperContent",[J,ee]=$(Q),et=h.forwardRef((e,t)=>
104{let{__scopePopper:n,side:i="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:v="optimized",onPlaced:y,...S}=e,A=Z(Q,n),[P,T]=h.useState(null),C=(0,g.e)(t,e=>T(e)),[E,R]=h.useState(null),_=function(e){let[t,n]=h.useState(void 0);return(0,U.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let i,o;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,o=t.blockSize}else i=e.offsetWidth,o=e.offsetHeight;n({width:i,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(E),M=_?.width??0,k=_?.height??0,V="number"==typeof d?d:{top:0,right:0,bottom:0,left:0,...d},L=Array.isArray(c)?c:[c],j=L.length>0,I={padding:V,boundary:L.filter(isNotNull),altBoundary:j},{refs:B,floatingStyles:F,placement:z,isPositioned:H,middlewareData:$}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,p]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=h.useState(i);deepEqual(m,i)||g(i);let[v,y]=h.useState(null),[b,x]=h.useState(null),w=h.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=h.useCallback(e=>{e!==C.current&&(C.current=e,x(e))},[]),A=a||v,P=s||b,T=h.useRef(null),C=h.useRef(null),E=h.useRef(d),R=null!=u,_=useLatestRef(u),M=useLatestRef(o),k=useLatestRef(c),V=h.useCallback(()=>{if(!T.current||!C.current)return;let e={placement:t,strategy:n,middleware:m};M.current&&(e.platform=M.current),floating_ui_dom_computePosition(T.current,C.current,e).then(e=>{let t={...e,isPositioned:!1!==k.current};D.current&&!deepEqual(E.current,t)&&(E.current=t,f.flushSync(()=>{p(t)}))})},[m,t,n,M,k]);W(()=>{!1===c&&E.current.isPositioned&&(E.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[c]);let D=h.useRef(!1);W(()=>(D.current=!0,()=>{D.current=!1}),[]),W(()=>{if(A&&(T.current=A),P&&(C.current=P),A&&P){if(_.current)return _.current(A,P,V);V()}},[A,P,V,_,R]);let O=h.useMemo(()=>({reference:T,floating:C,setReference:w,setFloating:S}),[w,S]),L=h.useMemo(()=>({reference:A,floating:P}),[A,P]),N=h.useMemo(()=>{let e={position:n,left:0,top:0};if(!L.floating)return e;let t=roundByDPR(L.floating,d.x),i=roundByDPR(L.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+i+"px)",...getDPR(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:i}},[n,l,L.floating,d.x,d.y]);return h.useMemo(()=>({...d,update:V,refs:O,elements:L,floatingStyles:N}),[d,V,O,L,N])}({strategy:"fixed",placement:i+("center"!==a?"-"+a:""),whileElementsMounted:(...e)=>{let t=function(e,t,n,i){let o;void 0===i&&(i={});let{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:c=!1}=i,d=unwrapElement(e),h=a||s?[...d?getOverflowAncestors(d):[],...getOverflowAncestors(t)]:[];h.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let f=d&&u?function(e,t){let n,i=null,o=getDocumentElement(e);function cleanup(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}return!function refresh(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),cleanup();let{left:l,top:u,width:c,height:d}=e.getBoundingClientRect();if(a||t(),!c||!d)return;let h=N(u),f=N(o.clientWidth-(l+c)),p=N(o.clientHeight-(u+d)),m=N(l),g={rootMargin:-h+"px "+-f+"px "+-p+"px "+-m+"px",threshold:O(0,D(1,s))||1},v=!0;function handleObserve(e){let t=e[0].intersectionRatio;if(t!==s){if(!v)return refresh();t?refresh(!1,t):n=setTimeout(()=>{refresh(!1,1e-7)},1e3)}v=!1}try{i=new IntersectionObserver(handleObserve,{...g,root:o.ownerDocument})}catch(e){i=new IntersectionObserver(handleObserve,g)}i.observe(e)}(!0),cleanup}(d,n):null,p=-1,m=null;l&&(m=new ResizeObserver(e=>{let[i]=e;i&&i.target===d&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),d&&!c&&m.observe(d),m.observe(t));let g=c?getBoundingClientRect(e):null;return c&&function frameLoop(){let t=getBoundingClientRect(e);g&&(t.x!==g.x||t.y!==g.y||t.width!==g.width||t.height!==g.height)&&n(),g=t,o=requestAnimationFrame(frameLoop)}(),n(),()=>{var e;
104h.forEach(e=>{a&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(o)}}(...e,{animationFrame:"always"===v});return t},elements:{reference:A.anchor},middleware:[floating_ui_react_dom_offset({mainAxis:o+k,alignmentAxis:s}),u&&floating_ui_react_dom_shift({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?floating_ui_react_dom_limitShift():void 0,...I}),u&&floating_ui_react_dom_flip({...I}),floating_ui_react_dom_size({...I,apply:({elements:e,rects:t,availableWidth:n,availableHeight:i})=>{let{width:o,height:a}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${i}px`),s.setProperty("--radix-popper-anchor-width",`${o}px`),s.setProperty("--radix-popper-anchor-height",`${a}px`)}}),E&&floating_ui_react_dom_arrow({element:E,padding:l}),transformOrigin({arrowWidth:M,arrowHeight:k}),m&&floating_ui_react_dom_hide({strategy:"referenceHidden",...I})]}),[K,G]=getSideAndAlignFromPlacement(z),Y=(0,x.W)(y);(0,U.b)(()=>{H&&Y?.()},[H,Y]);let X=$.arrow?.x,ee=$.arrow?.y,et=$.arrow?.centerOffset!==0,[er,en]=h.useState();return(0,U.b)(()=>{P&&en(window.getComputedStyle(P).zIndex)},[P]),(0,w.jsx)("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:H?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:er,"--radix-popper-transform-origin":[$.transformOrigin?.x,$.transformOrigin?.y].join(" "),...$.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,w.jsx)(J,{scope:n,placedSide:K,onArrowChange:R,arrowX:X,arrowY:ee,shouldHideArrow:et,children:(0,w.jsx)(b.WV.div,{"data-side":K,"data-align":G,...S,ref:C,style:{...S.style,animation:H?void 0:"none"}})})})});et.displayName=Q;var er="PopperArrow",en={top:"bottom",right:"left",bottom:"top",left:"right"},ei=h.forwardRef(function(e,t){let{__scopePopper:n,...i}=e,o=ee(er,n),a=en[o.placedSide];return(0,w.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,w.jsx)(z,{...i,ref:t,style:{...i.style,display:"block"}})})});function isNotNull(e){return null!==e}ei.displayName=er;var transformOrigin=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:i,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,s=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[u,c]=getSideAndAlignFromPlacement(n),d={start:"0%",center:"50%",end:"100%"}[c],h=(o.arrow?.x??0)+s/2,f=(o.arrow?.y??0)+l/2,p="",m="";return"bottom"===u?(p=a?d:`${h}px`,m=`${-l}px`):"top"===u?(p=a?d:`${h}px`,m=`${i.floating.height+l}px`):"right"===u?(p=`${-l}px`,m=a?d:`${f}px`):"left"===u&&(p=`${i.floating.width+l}px`,m=a?d:`${f}px`),{data:{x:p,y:m}}}});function getSideAndAlignFromPlacement(e){let[t,n="center"]=e.split("-");return[t,n]}var eo=h.forwardRef((e,t)=>{let{container:n,...i}=e,[o,a]=h.useState(!1);(0,U.b)(()=>a(!0),[]);let s=n||o&&globalThis?.document?.body;return s?f.createPortal((0,w.jsx)(b.WV.div,{...i,ref:t}),s):null});eo.displayName="Portal";var ea=n(7256),es=n(3763),el=h.forwardRef((e,t)=>(0,w.jsx)(b.WV.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));el.displayName="VisuallyHidden";var eu=new WeakMap,ec=new WeakMap,ed={},eh=0,unwrapHost=function(e){return e&&(e.host||unwrapHost(e.parentNode))},applyAttributeToOthers=function(e,t,n,i){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=unwrapHost(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});ed[n]||(ed[n]=new WeakMap);var a=ed[n],s=[],l=new Set,u=new Set(o),keep=function(e){!e||l.has(e)||(l.add(e),keep(e.parentNode))};o.forEach(keep);var deep=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))deep(e);else try{var t=e.getAttribute(i),o=null!==t&&"false"!==t,u=(eu.get(e)||0)+1,c=(a.get(e)||0)+1;eu.set(e,u),a.set(e,c),s.push(e),1===u&&o&&ec.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(i,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};
104return deep(t),l.clear(),eh++,function(){s.forEach(function(e){var t=eu.get(e)-1,o=a.get(e)-1;eu.set(e,t),a.set(e,o),t||(ec.has(e)||e.removeAttribute(i),ec.delete(e)),o||e.removeAttribute(n)}),--eh||(eu=new WeakMap,eu=new WeakMap,ec=new WeakMap,ed={})}},hideOthers=function(e,t,n){void 0===n&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live]"))),applyAttributeToOthers(i,o,n,"aria-hidden")):function(){return null}},__assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function __rest(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)0>t.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n}"function"==typeof SuppressedError&&SuppressedError;var ef="right-scroll-bar-position",ep="width-before-scroll-bar";function assignRef(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var em="undefined"!=typeof window?h.useLayoutEffect:h.useEffect,eg=new WeakMap,ev=(void 0===o&&(o={}),(void 0===a&&(a=function(e){return e}),s=[],l=!1,u={read:function(){if(l)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return s.length?s[s.length-1]:null},useMedium:function(e){var t=a(e,l);return s.push(t),function(){s=s.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(l=!0;s.length;){var t=s;s=[],t.forEach(e)}s={push:function(t){return e(t)},filter:function(){return s}}},assignMedium:function(e){l=!0;var t=[];if(s.length){var n=s;s=[],n.forEach(e),t=s}var executeQueue=function(){var n=t;t=[],n.forEach(e)},cycle=function(){return Promise.resolve().then(executeQueue)};cycle(),s={push:function(e){t.push(e),cycle()},filter:function(e){return t=t.filter(e),s}}}}).options=__assign({async:!0,ssr:!1},o),u),nothing=function(){},ey=h.forwardRef(function(e,t){var n,i,o,a,s=h.useRef(null),l=h.useState({onScrollCapture:nothing,onWheelCapture:nothing,onTouchMoveCapture:nothing}),u=l[0],c=l[1],d=e.forwardProps,f=e.children,p=e.className,m=e.removeScrollBar,g=e.enabled,v=e.shards,y=e.sideCar,b=e.noIsolation,x=e.inert,w=e.allowPinchZoom,S=e.as,A=void 0===S?"div":S,P=e.gapMode,T=__rest(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=(n=[s,t],i=function(e){return n.forEach(function(t){return assignRef(t,e)})},(o=(0,h.useState)(function(){return{value:null,callback:i,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=i,a=o.facade,em(function(){var e=eg.get(a);if(e){var t=new Set(e),i=new Set(n),o=a.current;t.forEach(function(e){i.has(e)||assignRef(e,null)}),i.forEach(function(e){t.has(e)||assignRef(e,o)})}eg.set(a,n)},[n]),a),E=__assign(__assign({},T),u);return h.createElement(h.Fragment,null,g&&h.createElement(y,{sideCar:ev,removeScrollBar:m,shards:v,noIsolation:b,inert:x,setCallbacks:c,allowPinchZoom:!!w,lockRef:s,gapMode:P}),d?h.cloneElement(h.Children.only(f),__assign(__assign({},E),{ref:C})):h.createElement(A,__assign({},E,{className:p,ref:C}),f))});ey.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ey.classNames={fullWidth:ep,zeroRight:ef};var SideCar=function(e){var t=e.sideCar,n=__rest(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw Error("Sidecar medium not found");return h.createElement(i,__assign({},n))};SideCar.isSideCarExport=!0;var stylesheetSingleton=function(){var e=0,t=null;return{add:function(i){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=d||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=i:o.appendChild(document.createTextNode(i)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},styleHookSingleton=function(){var e=stylesheetSingleton();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},styleSingleton=function(){var e=styleHookSingleton();return function(t){return e(t.styles,t.dynamic),null}},eb={left:0,top:0,right:0,gap:0},parse=function(e){return parseInt(e||"",10)||0},getOffset=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],i=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[parse(n),parse(i),parse(o)]},getGapWidth=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return eb;var t=getOffset(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},ex=styleSingleton(),ew="data-scroll-locked",getStyles=function(e,t,n,i){var o=e.left,a=e.top,s=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(i,";\n padding-right: ").concat(l,"px ").concat(i,";\n }\n body[").concat(ew,"] {\n overflow: hidden ").concat(i,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(i,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(i,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(i,";
104")].filter(Boolean).join(""),"\n }\n \n .").concat(ef," {\n right: ").concat(l,"px ").concat(i,";\n }\n \n .").concat(ep," {\n margin-right: ").concat(l,"px ").concat(i,";\n }\n \n .").concat(ef," .").concat(ef," {\n right: 0 ").concat(i,";\n }\n \n .").concat(ep," .").concat(ep," {\n margin-right: 0 ").concat(i,";\n }\n \n body[").concat(ew,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},getCurrentUseCounter=function(){var e=parseInt(document.body.getAttribute(ew)||"0",10);return isFinite(e)?e:0},useLockAttribute=function(){h.useEffect(function(){return document.body.setAttribute(ew,(getCurrentUseCounter()+1).toString()),function(){var e=getCurrentUseCounter()-1;e<=0?document.body.removeAttribute(ew):document.body.setAttribute(ew,e.toString())}},[])},RemoveScrollBar=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,o=void 0===i?"margin":i;useLockAttribute();var a=h.useMemo(function(){return getGapWidth(o)},[o]);return h.createElement(ex,{styles:getStyles(a,!t,o,n?"":"!important")})},eS=!1;if("undefined"!=typeof window)try{var eA=Object.defineProperty({},"passive",{get:function(){return eS=!0,!0}});window.addEventListener("test",eA,eA),window.removeEventListener("test",eA,eA)}catch(e){eS=!1}var eP=!!eS&&{passive:!1},elementCanBeScrolled=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},locationCouldBeScrolled=function(e,t){var n=t.ownerDocument,i=t;do{if("undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot&&(i=i.host),elementCouldBeScrolled(e,i)){var o=getScrollVariables(e,i);if(o[1]>o[2])return!0}i=i.parentNode}while(i&&i!==n.body);return!1},elementCouldBeScrolled=function(e,t){return"v"===e?elementCanBeScrolled(t,"overflowY"):elementCanBeScrolled(t,"overflowX")},getScrollVariables=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},handleScroll=function(e,t,n,i,o){var a,s=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),l=s*i,u=n.target,c=t.contains(u),d=!1,h=l>0,f=0,p=0;do{var m=getScrollVariables(e,u),g=m[0],v=m[1]-m[2]-s*g;(g||v)&&elementCouldBeScrolled(e,u)&&(f+=v,p+=g),u=u instanceof ShadowRoot?u.host:u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return h&&(o&&1>Math.abs(f)||!o&&l>f)?d=!0:!h&&(o&&1>Math.abs(p)||!o&&-l>p)&&(d=!0),d},getTouchXY=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},getDeltaXY=function(e){return[e.deltaX,e.deltaY]},extractRef=function(e){return e&&"current"in e?e.current:e},eT=0,eC=[],eE=(ev.useMedium(function(e){var t=h.useRef([]),n=h.useRef([0,0]),i=h.useRef(),o=h.useState(eT++)[0],a=h.useState(styleSingleton)[0],s=h.useRef(e);h.useEffect(function(){s.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var i,o=0,a=t.length;o<a;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(extractRef),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=h.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var o,a=getTouchXY(e),l=n.current,u="deltaX"in e?e.deltaX:l[0]-a[0],c="deltaY"in e?e.deltaY:l[1]-a[1],d=e.target,h=Math.abs(u)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===h&&"range"===d.type)return!1;var f=locationCouldBeScrolled(h,d);if(!f)return!0;if(f?o=h:(o="v"===h?"h":"v",f=locationCouldBeScrolled(h,d)),!f)return!1;if(!i.current&&"changedTouches"in e&&(u||c)&&(i.current=o),!o)return!0;var p=i.current||o;return handleScroll(p,t,e,"h"===p?u:c,!0)},[]),u=h.useCallback(function(e){if(eC.length&&eC[eC.length-1]===a){var n="deltaY"in e?getDeltaXY(e):getTouchXY(e),i=t.current.filter(function(t){var i;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(i=t.delta)[0]===n[0]&&i[1]===n[1]})[0];if(i&&i.should){e.cancelable&&e.preventDefault();return}
104if(!i){var o=(s.current.shards||[]).map(extractRef).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=h.useCallback(function(e,n,i,o){var a={name:e,delta:n,target:i,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(i)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=h.useCallback(function(e){n.current=getTouchXY(e),i.current=void 0},[]),f=h.useCallback(function(t){c(t.type,getDeltaXY(t),t.target,l(t,e.lockRef.current))},[]),p=h.useCallback(function(t){c(t.type,getTouchXY(t),t.target,l(t,e.lockRef.current))},[]);h.useEffect(function(){return eC.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,eP),document.addEventListener("touchmove",u,eP),document.addEventListener("touchstart",d,eP),function(){eC=eC.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,eP),document.removeEventListener("touchmove",u,eP),document.removeEventListener("touchstart",d,eP)}},[]);var m=e.removeScrollBar,g=e.inert;return h.createElement(h.Fragment,null,g?h.createElement(a,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?h.createElement(RemoveScrollBar,{gapMode:e.gapMode}):null)}),SideCar),eR=h.forwardRef(function(e,t){return h.createElement(ey,__assign({},e,{ref:t,sideCar:eE}))});eR.classNames=ey.classNames;var e_=[" ","Enter","ArrowUp","ArrowDown"],eM=[" ","Enter"],ek="Select",[eV,eD,eO]=(0,m.B)(ek),[eL,eN]=(0,v.b)(ek,[eO,K]),ej=K(),[eI,eB]=eL(ek),[eF,eW]=eL(ek),Select=e=>{let{__scopeSelect:t,children:n,open:i,defaultOpen:o,onOpenChange:a,value:s,defaultValue:l,onValueChange:u,dir:c,name:d,autoComplete:f,disabled:p,required:m}=e,g=ej(t),[v,b]=h.useState(null),[x,S]=h.useState(null),[A,P]=h.useState(!1),T=(0,y.gm)(c),[C=!1,E]=(0,es.T)({prop:i,defaultProp:o,onChange:a}),[R,_]=(0,es.T)({prop:s,defaultProp:l,onChange:u}),M=h.useRef(null),V=!v||!!v.closest("form"),[D,O]=h.useState(new Set),L=Array.from(D).map(e=>e.props.value).join(";");return(0,w.jsx)(Popper,{...g,children:(0,w.jsxs)(eI,{required:m,scope:t,trigger:v,onTriggerChange:b,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:A,onValueNodeHasChildrenChange:P,contentId:(0,k.M)(),value:R,onValueChange:_,open:C,onOpenChange:E,dir:T,triggerPointerDownPosRef:M,disabled:p,children:[(0,w.jsx)(eV.Provider,{scope:t,children:(0,w.jsx)(eF,{scope:e.__scopeSelect,onNativeOptionAdd:h.useCallback(e=>{O(t=>new Set(t).add(e))},[]),onNativeOptionRemove:h.useCallback(e=>{O(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),V?(0,w.jsxs)(tf,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:f,value:R,onChange:e=>_(e.target.value),disabled:p,children:[void 0===R?(0,w.jsx)("option",{value:""}):null,Array.from(D)]},L):null]})})};Select.displayName=ek;var ez="SelectTrigger",eU=h.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:i=!1,...o}=e,a=ej(n),s=eB(ez,n),l=s.disabled||i,u=(0,g.e)(t,s.onTriggerChange),c=eD(n),[d,h,f]=useTypeaheadSearch(e=>{let t=c().filter(e=>!e.disabled),n=t.find(e=>e.value===s.value),i=findNextItem(t,e,n);void 0!==i&&s.onValueChange(i.value)}),handleOpen=()=>{l||(s.onOpenChange(!0),f())};return(0,w.jsx)(X,{asChild:!0,...a,children:(0,w.jsx)(b.WV.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":shouldShowPlaceholder(s.value)?"":void 0,...o,ref:u,onClick:(0,p.M)(o.onClick,e=>{e.currentTarget.focus()}),onPointerDown:(0,p.M)(o.onPointerDown,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(handleOpen(),s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())}),onKeyDown:(0,p.M)(o.onKeyDown,e=>{let t=""!==d.current,n=e.ctrlKey||e.altKey||e.metaKey;
104n||1!==e.key.length||h(e.key),(!t||" "!==e.key)&&e_.includes(e.key)&&(handleOpen(),e.preventDefault())})})})});eU.displayName=ez;var eH="SelectValue",e$=h.forwardRef((e,t)=>{let{__scopeSelect:n,className:i,style:o,children:a,placeholder:s="",...l}=e,u=eB(eH,n),{onValueNodeHasChildrenChange:c}=u,d=void 0!==a,h=(0,g.e)(t,u.onValueNodeChange);return(0,U.b)(()=>{c(d)},[c,d]),(0,w.jsx)(b.WV.span,{...l,ref:h,style:{pointerEvents:"none"},children:shouldShowPlaceholder(u.value)?(0,w.jsx)(w.Fragment,{children:s}):a})});e$.displayName=eH;var eK=h.forwardRef((e,t)=>{let{__scopeSelect:n,children:i,...o}=e;return(0,w.jsx)(b.WV.span,{"aria-hidden":!0,...o,ref:t,children:i||"▼"})});eK.displayName="SelectIcon";var SelectPortal=e=>(0,w.jsx)(eo,{asChild:!0,...e});SelectPortal.displayName="SelectPortal";var eG="SelectContent",eZ=h.forwardRef((e,t)=>{let n=eB(eG,e.__scopeSelect),[i,o]=h.useState();return((0,U.b)(()=>{o(new DocumentFragment)},[]),n.open)?(0,w.jsx)(eX,{...e,ref:t}):i?f.createPortal((0,w.jsx)(eq,{scope:e.__scopeSelect,children:(0,w.jsx)(eV.Slot,{scope:e.__scopeSelect,children:(0,w.jsx)("div",{children:e.children})})}),i):null});eZ.displayName=eG;var[eq,eY]=eL(eG),eX=h.forwardRef((e,t)=>{let{__scopeSelect:n,position:i="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:l,sideOffset:u,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:m,collisionPadding:v,sticky:y,hideWhenDetached:b,avoidCollisions:x,...S}=e,A=eB(eG,n),[C,E]=h.useState(null),[R,M]=h.useState(null),k=(0,g.e)(t,e=>E(e)),[V,D]=h.useState(null),[O,L]=h.useState(null),N=eD(n),[j,I]=h.useState(!1),B=h.useRef(!1);h.useEffect(()=>{if(C)return hideOthers(C)},[C]),h.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??createFocusGuard()),document.body.insertAdjacentElement("beforeend",e[1]??createFocusGuard()),T++,()=>{1===T&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),T--}},[]);let F=h.useCallback(e=>{let[t,...n]=N().map(e=>e.ref.current),[i]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(n?.scrollIntoView({block:"nearest"}),n===t&&R&&(R.scrollTop=0),n===i&&R&&(R.scrollTop=R.scrollHeight),n?.focus(),document.activeElement!==o))return},[N,R]),W=h.useCallback(()=>F([V,C]),[F,V,C]);h.useEffect(()=>{j&&W()},[j,W]);let{onOpenChange:z,triggerPointerDownPosRef:U}=A;h.useEffect(()=>{if(C){let e={x:0,y:0},handlePointerMove=t=>{e={x:Math.abs(Math.round(t.pageX)-(U.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(U.current?.y??0))}},handlePointerUp=t=>{e.x<=10&&e.y<=10?t.preventDefault():C.contains(t.target)||z(!1),document.removeEventListener("pointermove",handlePointerMove),U.current=null};return null!==U.current&&(document.addEventListener("pointermove",handlePointerMove),document.addEventListener("pointerup",handlePointerUp,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",handlePointerMove),document.removeEventListener("pointerup",handlePointerUp,{capture:!0})}}},[C,z,U]),h.useEffect(()=>{let close=()=>z(!1);return window.addEventListener("blur",close),window.addEventListener("resize",close),()=>{window.removeEventListener("blur",close),window.removeEventListener("resize",close)}},[z]);let[H,$]=useTypeaheadSearch(e=>{let t=N().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),i=findNextItem(t,e,n);i&&setTimeout(()=>i.ref.current.focus())}),K=h.useCallback((e,t,n)=>{let i=!B.current&&!n,o=void 0!==A.value&&A.value===t;(o||i)&&(D(e),i&&(B.current=!0))},[A.value]),G=h.useCallback(()=>C?.focus(),[C]),Z=h.useCallback((e,t,n)=>{let i=!B.current&&!n,o=void 0!==A.value&&A.value===t;(o||i)&&L(e)},[A.value]),Y="popper"===i?eJ:eQ,X=Y===eJ?{side:l,sideOffset:u,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:m,collisionPadding:v,sticky:y,hideWhenDetached:b,avoidCollisions:x}:{};return(0,w.jsx)(eq,{scope:n,content:C,viewport:R,onViewportChange:M,itemRefCallback:K,selectedItem:V,onItemLeave:G,itemTextRefCallback:Z,focusSelectedItem:W,selectedItemText:O,position:i,isPositioned:j,searchRef:H,children:(0,w.jsx)(eR,{as:ea.g7,allowPinchZoom:!0,children:(0,w.jsx)(_,{asChild:!0,trapped:A.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,p.M)(o,e=>{A.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,w.jsx)(P,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>A.onOpenChange(!1),children:(0,w.jsx)(Y,{role:"listbox",id:A.contentId,"data-state":A.open?"open":"closed",dir:A.dir,onContextMenu:e=>e.preventDefault(),...S,...X,onPlaced:()=>I(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:(0,p.M)(S.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;
104if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||$(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=N().filter(e=>!e.disabled),n=t.map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(n=n.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let t=e.target,i=n.indexOf(t);n=n.slice(i+1)}setTimeout(()=>F(n)),e.preventDefault()}})})})})})})});eX.displayName="SelectContentImpl";var eQ=h.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:i,...o}=e,a=eB(eG,n),s=eY(eG,n),[l,u]=h.useState(null),[c,d]=h.useState(null),f=(0,g.e)(t,e=>d(e)),p=eD(n),m=h.useRef(!1),v=h.useRef(!0),{viewport:y,selectedItem:x,selectedItemText:S,focusSelectedItem:A}=s,P=h.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&c&&y&&x&&S){let e=a.trigger.getBoundingClientRect(),t=c.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),o=S.getBoundingClientRect();if("rtl"!==a.dir){let i=o.left-t.left,a=n.left-i,s=e.left-a,u=e.width+s,c=Math.max(u,t.width),d=window.innerWidth-10,h=clamp(a,[10,d-c]);l.style.minWidth=u+"px",l.style.left=h+"px"}else{let i=t.right-o.right,a=window.innerWidth-n.right-i,s=window.innerWidth-e.right-a,u=e.width+s,c=Math.max(u,t.width),d=window.innerWidth-10,h=clamp(a,[10,d-c]);l.style.minWidth=u+"px",l.style.right=h+"px"}let s=p(),u=window.innerHeight-20,d=y.scrollHeight,h=window.getComputedStyle(c),f=parseInt(h.borderTopWidth,10),g=parseInt(h.paddingTop,10),v=parseInt(h.borderBottomWidth,10),b=parseInt(h.paddingBottom,10),w=f+g+d+b+v,A=Math.min(5*x.offsetHeight,w),P=window.getComputedStyle(y),T=parseInt(P.paddingTop,10),C=parseInt(P.paddingBottom,10),E=e.top+e.height/2-10,R=x.offsetHeight/2,_=x.offsetTop+R,M=f+g+_;if(M<=E){let e=x===s[s.length-1].ref.current;l.style.bottom="0px";let t=c.clientHeight-y.offsetTop-y.offsetHeight;l.style.height=M+Math.max(u-E,R+(e?C:0)+t+v)+"px"}else{let e=x===s[0].ref.current;l.style.top="0px";let t=Math.max(E,f+y.offsetTop+(e?T:0)+R);l.style.height=t+(w-M)+"px",y.scrollTop=M-E+y.offsetTop}l.style.margin="10px 0",l.style.minHeight=A+"px",l.style.maxHeight=u+"px",i?.(),requestAnimationFrame(()=>m.current=!0)}},[p,a.trigger,a.valueNode,l,c,y,x,S,a.dir,i]);(0,U.b)(()=>P(),[P]);let[T,C]=h.useState();(0,U.b)(()=>{c&&C(window.getComputedStyle(c).zIndex)},[c]);let E=h.useCallback(e=>{e&&!0===v.current&&(P(),A?.(),v.current=!1)},[P,A]);return(0,w.jsx)(e0,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:E,children:(0,w.jsx)("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T},children:(0,w.jsx)(b.WV.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});eQ.displayName="SelectItemAlignedPosition";var eJ=h.forwardRef((e,t)=>{let{__scopeSelect:n,align:i="start",collisionPadding:o=10,...a}=e,s=ej(n);return(0,w.jsx)(et,{...s,...a,ref:t,align:i,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});eJ.displayName="SelectPopperPosition";var[e0,e1]=eL(eG,{}),e2="SelectViewport",e5=h.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:i,...o}=e,a=eY(e2,n),s=e1(e2,n),l=(0,g.e)(t,a.onViewportChange),u=h.useRef(0);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,w.jsx)(eV.Slot,{scope:n,children:(0,w.jsx)(b.WV.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:(0,p.M)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:i}=s;if(i?.current&&n){let e=Math.abs(u.current-t.scrollTop);if(e>0){let i=window.innerHeight-20,o=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),s=Math.max(o,a);if(s<i){let o=s+e,a=Math.min(i,o),l=o-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=l>0?l:0,n.style.justifyContent="flex-end")}}}u.current=t.scrollTop})})})]})});e5.displayName=e2;var e3="SelectGroup",[e6,e4]=eL(e3),e9=h.forwardRef((e,t)=>
104{let{__scopeSelect:n,...i}=e,o=(0,k.M)();return(0,w.jsx)(e6,{scope:n,id:o,children:(0,w.jsx)(b.WV.div,{role:"group","aria-labelledby":o,...i,ref:t})})});e9.displayName=e3;var e7="SelectLabel",e8=h.forwardRef((e,t)=>{let{__scopeSelect:n,...i}=e,o=e4(e7,n);return(0,w.jsx)(b.WV.div,{id:o.id,...i,ref:t})});e8.displayName=e7;var te="SelectItem",[tt,tr]=eL(te),tn=h.forwardRef((e,t)=>{let{__scopeSelect:n,value:i,disabled:o=!1,textValue:a,...s}=e,l=eB(te,n),u=eY(te,n),c=l.value===i,[d,f]=h.useState(a??""),[m,v]=h.useState(!1),y=(0,g.e)(t,e=>u.itemRefCallback?.(e,i,o)),x=(0,k.M)(),handleSelect=()=>{o||(l.onValueChange(i),l.onOpenChange(!1))};if(""===i)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,w.jsx)(tt,{scope:n,value:i,disabled:o,textId:x,isSelected:c,onItemTextChange:h.useCallback(e=>{f(t=>t||(e?.textContent??"").trim())},[]),children:(0,w.jsx)(eV.ItemSlot,{scope:n,value:i,disabled:o,textValue:d,children:(0,w.jsx)(b.WV.div,{role:"option","aria-labelledby":x,"data-highlighted":m?"":void 0,"aria-selected":c&&m,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:y,onFocus:(0,p.M)(s.onFocus,()=>v(!0)),onBlur:(0,p.M)(s.onBlur,()=>v(!1)),onPointerUp:(0,p.M)(s.onPointerUp,handleSelect),onPointerMove:(0,p.M)(s.onPointerMove,e=>{o?u.onItemLeave?.():e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,p.M)(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:(0,p.M)(s.onKeyDown,e=>{let t=u.searchRef?.current!=="";t&&" "===e.key||(eM.includes(e.key)&&handleSelect()," "===e.key&&e.preventDefault())})})})})});tn.displayName=te;var ti="SelectItemText",to=h.forwardRef((e,t)=>{let{__scopeSelect:n,className:i,style:o,...a}=e,s=eB(ti,n),l=eY(ti,n),u=tr(ti,n),c=eW(ti,n),[d,p]=h.useState(null),m=(0,g.e)(t,e=>p(e),u.onItemTextChange,e=>l.itemTextRefCallback?.(e,u.value,u.disabled)),v=d?.textContent,y=h.useMemo(()=>(0,w.jsx)("option",{value:u.value,disabled:u.disabled,children:v},u.value),[u.disabled,u.value,v]),{onNativeOptionAdd:x,onNativeOptionRemove:S}=c;return(0,U.b)(()=>(x(y),()=>S(y)),[x,S,y]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(b.WV.span,{id:u.textId,...a,ref:m}),u.isSelected&&s.valueNode&&!s.valueNodeHasChildren?f.createPortal(a.children,s.valueNode):null]})});to.displayName=ti;var ta="SelectItemIndicator",ts=h.forwardRef((e,t)=>{let{__scopeSelect:n,...i}=e,o=tr(ta,n);return o.isSelected?(0,w.jsx)(b.WV.span,{"aria-hidden":!0,...i,ref:t}):null});ts.displayName=ta;var tl="SelectScrollUpButton";h.forwardRef((e,t)=>{let n=eY(tl,e.__scopeSelect),i=e1(tl,e.__scopeSelect),[o,a]=h.useState(!1),s=(0,g.e)(t,i.onScrollButtonChange);return(0,U.b)(()=>{if(n.viewport&&n.isPositioned){let handleScroll2=function(){let t=e.scrollTop>0;a(t)},e=n.viewport;return handleScroll2(),e.addEventListener("scroll",handleScroll2),()=>e.removeEventListener("scroll",handleScroll2)}},[n.viewport,n.isPositioned]),o?(0,w.jsx)(tc,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null}).displayName=tl;var tu="SelectScrollDownButton";h.forwardRef((e,t)=>{let n=eY(tu,e.__scopeSelect),i=e1(tu,e.__scopeSelect),[o,a]=h.useState(!1),s=(0,g.e)(t,i.onScrollButtonChange);return(0,U.b)(()=>{if(n.viewport&&n.isPositioned){let handleScroll2=function(){let t=e.scrollHeight-e.clientHeight,n=Math.ceil(e.scrollTop)<t;a(n)},e=n.viewport;return handleScroll2(),e.addEventListener("scroll",handleScroll2),()=>e.removeEventListener("scroll",handleScroll2)}},[n.viewport,n.isPositioned]),o?(0,w.jsx)(tc,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null}).displayName=tu;var tc=h.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:i,...o}=e,a=eY("SelectScrollButton",n),s=h.useRef(null),l=eD(n),u=h.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return h.useEffect(()=>()=>u(),[u]),(0,U.b)(()=>{let e=l().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[l]),(0,w.jsx)(b.WV.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,p.M)(o.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(i,50))}),onPointerMove:(0,p.M)(o.onPointerMove,()=>{a.onItemLeave?.(),null===s.current&&(s.current=window.setInterval(i,50))}),onPointerLeave:(0,p.M)(o.onPointerLeave,()=>{u()})})}),td=h.forwardRef((e,t)=>
104{let{__scopeSelect:n,...i}=e;return(0,w.jsx)(b.WV.div,{"aria-hidden":!0,...i,ref:t})});td.displayName="SelectSeparator";var th="SelectArrow";function shouldShowPlaceholder(e){return""===e||void 0===e}h.forwardRef((e,t)=>{let{__scopeSelect:n,...i}=e,o=ej(n),a=eB(th,n),s=eY(th,n);return a.open&&"popper"===s.position?(0,w.jsx)(ei,{...o,...i,ref:t}):null}).displayName=th;var tf=h.forwardRef((e,t)=>{let{value:n,...i}=e,o=h.useRef(null),a=(0,g.e)(t,o),s=function(e){let t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(n);return h.useEffect(()=>{let e=o.current,t=window.HTMLSelectElement.prototype,i=Object.getOwnPropertyDescriptor(t,"value"),a=i.set;if(s!==n&&a){let t=new Event("change",{bubbles:!0});a.call(e,n),e.dispatchEvent(t)}},[s,n]),(0,w.jsx)(el,{asChild:!0,children:(0,w.jsx)("select",{...i,ref:a,defaultValue:n})})});function useTypeaheadSearch(e){let t=(0,x.W)(e),n=h.useRef(""),i=h.useRef(0),o=h.useCallback(e=>{let o=n.current+e;t(o),function updateSearch(e){n.current=e,window.clearTimeout(i.current),""!==e&&(i.current=window.setTimeout(()=>updateSearch(""),1e3))}(o)},[t]),a=h.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return h.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,o,a]}function findNextItem(e,t,n){var i;let o=t.length>1&&Array.from(t).every(e=>e===t[0]),a=o?t[0]:t,s=n?e.indexOf(n):-1,l=(i=Math.max(s,0),e.map((t,n)=>e[(i+n)%e.length])),u=1===a.length;u&&(l=l.filter(e=>e!==n));let c=l.find(e=>e.textValue.toLowerCase().startsWith(a.toLowerCase()));return c!==n?c:void 0}tf.displayName="BubbleSelect";var tp=Select,tm=eU,tg=e$,tv=eK,ty=SelectPortal,tb=eZ,tx=e5,tw=e9,tS=e8,tA=tn,tP=to,tT=ts,tC=td},7256:function(e,t,n){"use strict";n.d(t,{g7:function(){return s}});var i=n(2265),o=n(2210),a=n(7437),s=i.forwardRef((e,t)=>{let{children:n,...o}=e,s=i.Children.toArray(n),u=s.find(isSlottable);if(u){let e=u.props.children,n=s.map(t=>t!==u?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,a.jsx)(l,{...o,ref:t,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,a.jsx)(l,{...o,ref:t,children:n})});s.displayName="Slot";var l=i.forwardRef((e,t)=>{let{children:n,...a}=e;if(i.isValidElement(n)){let e,s;let l=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return i.cloneElement(n,{...function(e,t){let n={...t};for(let i in t){let o=e[i],a=t[i],s=/^on[A-Z]/.test(i);s?o&&a?n[i]=(...e)=>{a(...e),o(...e)}:o&&(n[i]=o):"style"===i?n[i]={...o,...a}:"className"===i&&(n[i]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(a,n.props),ref:t?(0,o.F)(t,l):l})}return i.Children.count(n)>1?i.Children.only(null):null});l.displayName="SlotClone";var Slottable=({children:e})=>(0,a.jsx)(a.Fragment,{children:e});function isSlottable(e){return i.isValidElement(e)&&e.type===Slottable}},6459:function(e,t,n){"use strict";n.d(t,{W:function(){return useCallbackRef}});var i=n(2265);function useCallbackRef(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}},3763:function(e,t,n){"use strict";n.d(t,{T:function(){return useControllableState}});var i=n(2265),o=n(6459);function useControllableState({prop:e,defaultProp:t,onChange:n=()=>{}}){let[a,s]=function({defaultProp:e,onChange:t}){let n=i.useState(e),[a]=n,s=i.useRef(a),l=(0,o.W)(t);return i.useEffect(()=>{s.current!==a&&(l(a),s.current=a)},[a,s,l]),n}({defaultProp:t,onChange:n}),l=void 0!==e,u=l?e:a,c=(0,o.W)(n),d=i.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&c(n)}else s(t)},[l,e,s,c]);return[u,d]}},1030:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var i=n(2265),o=globalThis?.document?i.useLayoutEffect:()=>{}},9213:function(e,t,n){"use strict";n.d(t,{j:function(){return cva}});let falsyToString=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,cx=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e){if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t)}return i}(e))&&(i&&(i+=" "),i+=t);return i},cva=(e,t)=>n=>{var i;if((null==t?void 0:t.variants)==null)return cx(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(e=>{let t=null==n?void 0:n[e],i=null==a?void 0:a[e];if(null===t)return null;let s=falsyToString(t)||falsyToString(i);return o[e][s]}),l=n&&Object.entries(n).reduce((e,t)=>
104{let[n,i]=t;return void 0===i||(e[n]=i),e},{}),u=null==t?void 0:null===(i=t.compoundVariants)||void 0===i?void 0:i.reduce((e,t)=>{let{class:n,className:i,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...l}[t]):({...a,...l})[t]===n})?[...e,n,i]:e},[]);return cx(e,s,u,null==n?void 0:n.class,null==n?void 0:n.className)}},7042:function(e,t,n){"use strict";function clsx(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e){if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n)}return i}(e))&&(i&&(i+=" "),i+=t);return i}n.d(t,{W:function(){return clsx}})},1393:function(e,t,n){"use strict";n.d(t,{M:function(){return AnimatePresence}});var i=n(7437),o=n(2265),a=n(8243),s=n(961),l=n(5968);let PopChildMeasure=class PopChildMeasure extends o.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 PopChild({children:e,isPresent:t}){let n=(0,o.useId)(),a=(0,o.useRef)(null),s=(0,o.useRef)({width:0,height:0,top:0,left:0}),{nonce:u}=(0,o.useContext)(l._);return(0,o.useInsertionEffect)(()=>{let{width:e,height:i,top:o,left:l}=s.current;if(t||!a.current||!e||!i)return;a.current.dataset.motionPopId=n;let c=document.createElement("style");return u&&(c.nonce=u),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` 105 [data-motion-pop-id="${n}"] { 106 position: absolute !important; 107 width: ${e}px !important; 108 height: ${i}px !important; 109 top: ${o}px !important; 110 left: ${l}px !important; 111 } 112 `),()=>{document.head.removeChild(c)}},[t]),(0,i.jsx)(PopChildMeasure,{isPresent:t,childRef:a,sizeRef:s,children:o.cloneElement(e,{ref:a})})}let PresenceChild=({children:e,initial:t,isPresent:n,onExitComplete:l,custom:u,presenceAffectsLayout:c,mode:d})=>{let h=(0,s.h)(newChildrenMap),f=(0,o.useId)(),p=(0,o.useMemo)(()=>({id:f,initial:t,isPresent:n,custom:u,onExitComplete:e=>{for(let t of(h.set(e,!0),h.values()))if(!t)return;l&&l()},register:e=>(h.set(e,!1),()=>h.delete(e))}),c?[Math.random()]:[n]);return(0,o.useMemo)(()=>{h.forEach((e,t)=>h.set(t,!1))},[n]),o.useEffect(()=>{n||h.size||!l||l()},[n]),"popLayout"===d&&(e=(0,i.jsx)(PopChild,{isPresent:n,children:e})),(0,i.jsx)(a.O.Provider,{value:p,children:e})};function newChildrenMap(){return new Map}var u=n(781),c=n(6567);let getChildKey=e=>e.key||"";function onlyElements(e){let t=[];return o.Children.forEach(e,e=>{(0,o.isValidElement)(e)&&t.push(e)}),t}var d=n(538);let AnimatePresence=({children:e,exitBeforeEnter:t,custom:n,initial:a=!0,onExitComplete:l,presenceAffectsLayout:h=!0,mode:f="sync"})=>{(0,c.k)(!t,"Replace exitBeforeEnter with mode='wait'");let p=(0,o.useMemo)(()=>onlyElements(e),[e]),m=p.map(getChildKey),g=(0,o.useRef)(!0),v=(0,o.useRef)(p),y=(0,s.h)(()=>new Map),[b,x]=(0,o.useState)(p),[w,S]=(0,o.useState)(p);(0,d.L)(()=>{g.current=!1,v.current=p;for(let e=0;e<w.length;e++){let t=getChildKey(w[e]);m.includes(t)?y.delete(t):!0!==y.get(t)&&y.set(t,!1)}},[w,m.length,m.join("-")]);let A=[];if(p!==b){let e=[...p];for(let t=0;t<w.length;t++){let n=w[t],i=getChildKey(n);m.includes(i)||(e.splice(t,0,n),A.push(n))}"wait"===f&&A.length&&(e=A),S(onlyElements(e)),x(p);return}let{forceRender:P}=(0,o.useContext)(u.p);return(0,i.jsx)(i.Fragment,{children:w.map(e=>{let t=getChildKey(e),o=p===w||m.includes(t);return(0,i.jsx)(PresenceChild,{isPresent:o,initial:(!g.current||!!a)&&void 0,custom:o?void 0:n,presenceAffectsLayout:h,mode:f,onExitComplete:o?void 0:()=>{if(!y.has(t))return;y.set(t,!0);let e=!0;y.forEach(t=>{t||(e=!1)}),e&&(null==P||P(),S(v.current),l&&l())},children:e},t)})})}},781:function(e,t,n){"use strict";n.d(t,{p:function(){return o}});var i=n(2265);let o=(0,i.createContext)({})},5968:function(e,t,n){"use strict";n.d(t,{_:function(){return o}});var i=n(2265);let o=(0,i.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},8243:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var i=n(2265);let o=(0,i.createContext)(null)},9200:function(e,t,n){"use strict";let i;function isAnimationControls(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}n.d(t,{E:function(){return tD}});let isKeyframesTarget=e=>Array.isArray(e);function shallowCompare(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function isVariantLabel(e){return"string"==typeof e||Array.isArray(e)}function getValueState(e){let t=[{},{}];
112return null==e||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function resolveVariantFromProps(e,t,n,i){if("function"==typeof t){let[o,a]=getValueState(i);t=t(void 0!==n?n:e.custom,o,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[o,a]=getValueState(i);t=t(void 0!==n?n:e.custom,o,a)}return t}function resolveVariant(e,t,n){let i=e.getProps();return resolveVariantFromProps(i,t,void 0!==n?n:i.custom,e)}let o=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],a=["initial",...o],s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],l=new Set(s),secondsToMilliseconds=e=>1e3*e,millisecondsToSeconds=e=>e/1e3,u={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),c={type:"keyframes",duration:.8},d={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=(e,{keyframes:t})=>t.length>2?c:l.has(e)?e.startsWith("scale")?criticallyDampedSpring(t[1]):u:d;function getValueTransition(e,t){return e[t]||e.default||e}let h={skipAnimations:!1,useManualTiming:!1},f={current:!1},isNotNull=e=>null!==e;function getFinalKeyframe(e,{repeat:t,repeatType:n="loop"},i){let o=e.filter(isNotNull),a=t&&"loop"!==n&&t%2==1?0:o.length-1;return a&&void 0!==i?i:o[a]}var p,m,g,v=n(6977);let y=["read","resolveKeyframes","update","preRender","render","postRender"];function createRenderBatcher(e,t){let n=!1,i=!0,o={delta:0,timestamp:0,isProcessing:!1},flagRunNextFrame=()=>n=!0,a=y.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,i=!1,o=!1,a=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function triggerCallback(t){a.has(t)&&(l.schedule(t),e()),t(s)}let l={schedule:(e,o=!1,s=!1)=>{let l=s&&i,u=l?t:n;return o&&a.add(e),u.has(e)||u.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(s=e,i){o=!0;return}i=!0,[t,n]=[n,t],n.clear(),t.forEach(triggerCallback),i=!1,o&&(o=!1,l.process(e))}};return l}(flagRunNextFrame),e),{}),{read:s,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=a,processBatch=()=>{let a=h.useManualTiming?o.timestamp:performance.now();n=!1,o.delta=i?1e3/60:Math.max(Math.min(a-o.timestamp,40),1),o.timestamp=a,o.isProcessing=!0,s.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(i=!1,e(processBatch))},wake=()=>{n=!0,i=!0,o.isProcessing||e(processBatch)},p=y.reduce((e,t)=>{let i=a[t];return e[t]=(e,t=!1,o=!1)=>(n||wake(),i.schedule(e,t,o)),e},{});return{schedule:p,cancel:e=>{for(let t=0;t<y.length;t++)a[y[t]].cancel(e)},state:o,steps:a}}let{schedule:b,cancel:x,state:w,steps:S}=createRenderBatcher("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:v.Z,!0),calcBezier=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function cubicBezier(e,t,n,i){if(e===t&&n===i)return v.Z;let getTForX=t=>(function(e,t,n,i,o){let a,s;let l=0;do(a=calcBezier(s=t+(n-t)/2,i,o)-e)>0?n=s:t=s;while(Math.abs(a)>1e-7&&++l<12);return s})(t,0,1,e,n);return e=>0===e||1===e?e:calcBezier(getTForX(e),t,i)}let mirrorEasing=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,reverseEasing=e=>t=>1-e(1-t),A=cubicBezier(.33,1.53,.69,.99),P=reverseEasing(A),T=mirrorEasing(P),anticipate=e=>(e*=2)<1?.5*P(e):.5*(2-Math.pow(2,-10*(e-1))),circIn=e=>1-Math.sin(Math.acos(e)),C=reverseEasing(circIn),E=mirrorEasing(circIn),isZeroValueString=e=>/^0[^.\s]+$/u.test(e);var R=n(6567);let isNumericalString=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),checkStringStartsWith=e=>t=>"string"==typeof t&&t.startsWith(e),_=checkStringStartsWith("--"),M=checkStringStartsWith("var(--"),isCSSVariableToken=e=>{let t=M(e);return!!t&&k.test(e.split("/*")[0].trim())},k=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,V=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,clamp=(e,t,n)=>n>t?t:n<e?e:n,D={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},O={...D,transform:e=>clamp(0,1,e)},L={...D,default:1},createUnitType=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),N=createUnitType("deg"),j=createUnitType("%"),I=createUnitType("px"),B=createUnitType("vh"),F=createUnitType("vw"),W={...j,parse:e=>j.parse(e)/100,transform:e=>j.transform(100*e)},z=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),isNumOrPxType=e=>
112e===D||e===I,getPosFromMatrix=(e,t)=>parseFloat(e.split(", ")[t]),getTranslateFromMatrix=(e,t)=>(n,{transform:i})=>{if("none"===i||!i)return 0;let o=i.match(/^matrix3d\((.+)\)$/u);if(o)return getPosFromMatrix(o[1],t);{let t=i.match(/^matrix\((.+)\)$/u);return t?getPosFromMatrix(t[1],e):0}},U=new Set(["x","y","z"]),H=s.filter(e=>!U.has(e)),$={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:getTranslateFromMatrix(4,13),y:getTranslateFromMatrix(5,14)};$.translateX=$.x,$.translateY=$.y;let testValueType=e=>t=>t.test(e),K=[D,I,j,N,F,B,{test:e=>"auto"===e,parse:e=>e}],findDimensionValueType=e=>K.find(testValueType(e)),G=new Set,Z=!1,Y=!1;function measureAllKeyframes(){if(Y){let e=Array.from(G).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 H.forEach(n=>{let i=e.getValue(n);void 0!==i&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),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 i;null===(i=e.getValue(t))||void 0===i||i.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}Y=!1,Z=!1,G.forEach(e=>e.complete()),G.clear()}function readAllKeyframes(){G.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Y=!0)})}let KeyframeResolver=class KeyframeResolver{constructor(e,t,n,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(G.add(this),Z||(Z=!0,b.read(readAllKeyframes),b.resolveKeyframes(measureAllKeyframes))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:i}=this;for(let o=0;o<e.length;o++)if(null===e[o]){if(0===o){let o=null==i?void 0:i.get(),a=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){let i=n.readValue(t,a);null!=i&&(e[0]=i)}void 0===e[0]&&(e[0]=a),i&&void 0===o&&i.set(e[0])}else e[o]=e[o-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),G.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,G.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};let sanitize=e=>Math.round(1e5*e)/1e5,X=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Q=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,isColorString=(e,t)=>n=>!!("string"==typeof n&&Q.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),splitColor=(e,t,n)=>i=>{if("string"!=typeof i)return i;let[o,a,s,l]=i.match(X);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(s),alpha:void 0!==l?parseFloat(l):1}},clampRgbUnit=e=>clamp(0,255,e),J={...D,transform:e=>Math.round(clampRgbUnit(e))},ee={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+J.transform(e)+", "+J.transform(t)+", "+J.transform(n)+", "+sanitize(O.transform(i))+")"},et={test:isColorString("#"),parse:function(e){let t="",n="",i="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,i+=i,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}},transform:ee.transform},er={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+j.transform(sanitize(t))+", "+j.transform(sanitize(n))+", "+sanitize(O.transform(i))+")"},en={test:e=>ee.test(e)||et.test(e)||er.test(e),parse:e=>ee.test(e)?ee.parse(e):er.test(e)?er.parse(e):et.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?ee.transform(e):er.transform(e)},ei=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,eo="number",ea="color",es=/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 analyseComplexValue(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},o=[],a=0,s=t.replace(es,e=>(en.test(e)?(i.color.push(a),o.push(ea),n.push(en.parse(e))):e.startsWith("var(")?(i.var.push(a),o.push("var"),n.push(e)):(i.number.push(a),o.push(eo),n.push(parseFloat(e))),++a,"${}")),l=s.split("${}");return{values:n,split:l,indexes:i,types:o}}function parseComplexValue(e){return analyseComplexValue(e).values}function createTransformer(e){let{split:t,types:n}=analyseComplexValue(e),i=t.length;return e=>{let o="";for(let a=0;a<i;
112a++)if(o+=t[a],void 0!==e[a]){let t=n[a];t===eo?o+=sanitize(e[a]):t===ea?o+=en.transform(e[a]):o+=e[a]}return o}}let convertNumbersToZero=e=>"number"==typeof e?0:e,el={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(X))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(ei))||void 0===n?void 0:n.length)||0)>0},parse:parseComplexValue,createTransformer,getAnimatableNone:function(e){let t=parseComplexValue(e),n=createTransformer(e);return n(t.map(convertNumbersToZero))}},eu=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[i]=n.match(X)||[];if(!i)return e;let o=n.replace(i,""),a=eu.has(t)?1:0;return i!==n&&(a*=100),t+"("+a+o+")"}let ec=/\b([a-z-]*)\(.*?\)/gu,ed={...el,getAnimatableNone:e=>{let t=e.match(ec);return t?t.map(applyDefaultFilter).join(" "):e}},eh={...D,transform:Math.round},ef={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,radius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,top:I,right:I,bottom:I,left:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,backgroundPositionX:I,backgroundPositionY:I,rotate:N,rotateX:N,rotateY:N,rotateZ:N,scale:L,scaleX:L,scaleY:L,scaleZ:L,skew:N,skewX:N,skewY:N,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:O,originX:W,originY:W,originZ:I,zIndex:eh,size:I,fillOpacity:O,strokeOpacity:O,numOctaves:eh},ep={...ef,color:en,backgroundColor:en,outlineColor:en,fill:en,stroke:en,borderColor:en,borderTopColor:en,borderRightColor:en,borderBottomColor:en,borderLeftColor:en,filter:ed,WebkitFilter:ed},getDefaultValueType=e=>ep[e];function animatable_none_getAnimatableNone(e,t){let n=getDefaultValueType(e);return n!==ed&&(n=el),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let em=new Set(["auto","none","0"]);let DOMKeyframesResolver=class DOMKeyframesResolver extends KeyframeResolver{constructor(e,t,n,i,o){super(e,t,n,i,o,!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 i=e[n];if("string"==typeof i&&isCSSVariableToken(i=i.trim())){let o=function getVariableValue(e,t,n=1){(0,R.k)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,o]=function(e){let t=V.exec(e);if(!t)return[,];let[,n,i,o]=t;return[`--${null!=n?n:i}`,o]}(e);if(!i)return;let a=window.getComputedStyle(t).getPropertyValue(i);if(a){let e=a.trim();return isNumericalString(e)?parseFloat(e):e}return isCSSVariableToken(o)?getVariableValue(o,t,n+1):o}(i,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!z.has(n)||2!==e.length)return;let[i,o]=e,a=findDimensionValueType(i),s=findDimensionValueType(o);if(a!==s){if(isNumOrPxType(a)&&isNumOrPxType(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 i;("number"==typeof(i=e[t])?0===i:null===i||"none"===i||"0"===i||isZeroValueString(i))&&n.push(t)}n.length&&function(e,t,n){let i,o=0;for(;o<e.length&&!i;){let t=e[o];"string"==typeof t&&!em.has(t)&&analyseComplexValue(t).values.length&&(i=e[o]),o++}if(i&&n)for(let o of t)e[o]=animatable_none_getAnimatableNone(n,i)}(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=$[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let i=t[t.length-1];void 0!==i&&e.getValue(n,i).jump(i,!1)}measureEndState(){var e;let{element:t,name:n,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);let a=i.length-1,s=i[a];i[a]=$[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEac
112h(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}};function isGenerator(e){return"function"==typeof e}function clearTime(){i=void 0}let eg={now:()=>(void 0===i&&eg.set(w.isProcessing||h.useManualTiming?w.timestamp:performance.now()),i),set:e=>{i=e,queueMicrotask(clearTime)}},isAnimatable=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(el.test(e)||"0"===e)&&!e.startsWith("url("));let BaseAnimation=class BaseAnimation{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=eg.now(),this.options={autoplay:e,delay:t,type:n,repeat:i,repeatDelay:o,repeatType:a,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(readAllKeyframes(),measureAllKeyframes()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=eg.now(),this.hasAttemptedResolve=!0;let{name:n,type:i,velocity:o,delay:a,onComplete:s,onUpdate:l,isGenerator:u}=this.options;if(!u&&!function(e,t,n,i){let o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;let a=e[e.length-1],s=isAnimatable(o,t),l=isAnimatable(a,t);return(0,R.K)(s===l,`You are trying to animate ${t} from "${o}" to "${a}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${a} via the \`style\` property.`),!!s&&!!l&&(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||isGenerator(n))&&i)}(e,n,i,o)){if(f.current||!a){null==l||l(getFinalKeyframe(e,this.options,t)),null==s||s(),this.resolveFinishedPromise();return}this.options.duration=0}let c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}};function calcGeneratorVelocity(e,t,n){var i,o;let a=Math.max(t-5,0);return i=n-e(a),(o=t-a)?i*(1e3/o):0}function calcAngularFreq(e,t){return e*Math.sqrt(1-t*t)}let ev=["duration","bounce"],ey=["stiffness","damping","mass"];function isSpringType(e,t){return t.some(t=>void 0!==e[t])}function spring({keyframes:e,restDelta:t,restSpeed:n,...i}){let o;let a=e[0],s=e[e.length-1],l={done:!1,value:a},{stiffness:u,damping:c,mass:d,duration:h,velocity:f,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!isSpringType(e,ey)&&isSpringType(e,ev)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:i=1}){let o,a;(0,R.K)(e<=secondsToMilliseconds(10),"Spring duration must be 10 seconds or less");let s=1-t;s=clamp(.05,1,s),e=clamp(.01,10,millisecondsToSeconds(e)),s<1?(o=t=>{let i=t*s,o=i*e,a=calcAngularFreq(t,s);return .001-(i-n)/a*Math.exp(-o)},a=t=>{let i=t*s,a=i*e,l=Math.pow(s,2)*Math.pow(t,2)*e,u=calcAngularFreq(Math.pow(t,2),s),c=-o(t)+.001>0?-1:1;return c*((a*n+n-l)*Math.exp(-a))/u}):(o=t=>{let i=Math.exp(-t*e),o=(t-n)*e+1;return -.001+i*o},a=t=>{let i=Math.exp(-t*e),o=(n-t)*(e*e);return i*o});let l=5/e,u=function(e,t,n){let i=n;for(let n=1;n<12;n++)i-=e(i)/t(i);return i}(o,a,l);if(e=secondsToMilliseconds(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(u,2)*i;return{stiffness:t,damping:2*s*Math.sqrt(i*t),duration:e}}}(e);(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...i,velocity:-millisecondsToSeconds(i.velocity||0)}),m=f||0,g=c/(2*Math.sqrt(u*d)),v=s-a,y=millisecondsToSeconds(Math.sqrt(u/d)),b=5>Math.abs(v);if(n||(n=b?.01:2),t||(t=b?.005:.5),g<1){let e=calcAngularFreq(y,g);o=t=>{let n=Math.exp(-g*y*t);return s-n*((m+g*y*v)/e*Math.sin(e*t)+v*Math.cos(e*t))}}else if(1===g)o=e=>s-Math.exp(-y*e)*(v+(m+y*v)*e);else{let e=y*Math.sqrt(g*g-1);o=t=>{let n=Math.exp(-g*y*t),i=Math.min(e*t,300);return s-n*((m+g*y*v)*Math.sinh(i)+e*v*Math.cosh(i))/e}}
112return{calculatedDuration:p&&h||null,next:e=>{let i=o(e);if(p)l.done=e>=h;else{let a=0;g<1&&(a=0===e?secondsToMilliseconds(m):calcGeneratorVelocity(o,e,i));let u=Math.abs(a)<=n,c=Math.abs(s-i)<=t;l.done=u&&c}return l.value=l.done?s:i,l}}}function inertia({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:s,min:l,max:u,restDelta:c=.5,restSpeed:d}){let h,f;let p=e[0],m={done:!1,value:p},isOutOfBounds=e=>void 0!==l&&e<l||void 0!==u&&e>u,nearestBoundary=e=>void 0===l?u:void 0===u?l:Math.abs(l-e)<Math.abs(u-e)?l:u,g=n*t,v=p+g,y=void 0===s?v:s(v);y!==v&&(g=y-p);let calcDelta=e=>-g*Math.exp(-e/i),calcLatest=e=>y+calcDelta(e),applyFriction=e=>{let t=calcDelta(e),n=calcLatest(e);m.done=Math.abs(t)<=c,m.value=m.done?y:n},checkCatchBoundary=e=>{isOutOfBounds(m.value)&&(h=e,f=spring({keyframes:[m.value,nearestBoundary(m.value)],velocity:calcGeneratorVelocity(calcLatest,e,m.value),damping:o,stiffness:a,restDelta:c,restSpeed:d}))};return checkCatchBoundary(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==h||(t=!0,applyFriction(e),checkCatchBoundary(e)),void 0!==h&&e>=h)?f.next(e-h):(t||applyFriction(e),m)}}}let eb=cubicBezier(.42,0,1,1),ex=cubicBezier(0,0,.58,1),ew=cubicBezier(.42,0,.58,1),isEasingArray=e=>Array.isArray(e)&&"number"!=typeof e[0],eS={linear:v.Z,easeIn:eb,easeInOut:ew,easeOut:ex,circIn:circIn,circInOut:E,circOut:C,backIn:P,backInOut:T,backOut:A,anticipate:anticipate},easingDefinitionToFunction=e=>{if(Array.isArray(e)){(0,R.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,i,o]=e;return cubicBezier(t,n,i,o)}return"string"==typeof e?((0,R.k)(void 0!==eS[e],`Invalid easing type '${e}'`),eS[e]):e},combineFunctions=(e,t)=>n=>t(e(n)),pipe=(...e)=>e.reduce(combineFunctions),progress=(e,t,n)=>{let i=t-e;return 0===i?1:(n-e)/i},mixNumber=(e,t,n)=>e+(t-e)*n;function hueToRgb(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 mixImmediate(e,t){return n=>n>0?t:e}let mixLinearColor=(e,t,n)=>{let i=e*e,o=n*(t*t-i)+i;return o<0?0:Math.sqrt(o)},eA=[et,ee,er],getColorType=e=>eA.find(t=>t.test(e));function asRGBA(e){let t=getColorType(e);if((0,R.K)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===er&&(n=function({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,n/=100;let o=0,a=0,s=0;if(t/=100){let i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;o=hueToRgb(l,i,e+1/3),a=hueToRgb(l,i,e),s=hueToRgb(l,i,e-1/3)}else o=a=s=n;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*s),alpha:i}}(n)),n}let mixColor=(e,t)=>{let n=asRGBA(e),i=asRGBA(t);if(!n||!i)return mixImmediate(e,t);let o={...n};return e=>(o.red=mixLinearColor(n.red,i.red,e),o.green=mixLinearColor(n.green,i.green,e),o.blue=mixLinearColor(n.blue,i.blue,e),o.alpha=mixNumber(n.alpha,i.alpha,e),ee.transform(o))},eP=new Set(["none","hidden"]);function complex_mixNumber(e,t){return n=>mixNumber(e,t,n)}function getMixer(e){return"number"==typeof e?complex_mixNumber:"string"==typeof e?isCSSVariableToken(e)?mixImmediate:en.test(e)?mixColor:mixComplex:Array.isArray(e)?mixArray:"object"==typeof e?en.test(e)?mixColor:mixObject:mixImmediate}function mixArray(e,t){let n=[...e],i=n.length,o=e.map((e,n)=>getMixer(e)(e,t[n]));return e=>{for(let t=0;t<i;t++)n[t]=o[t](e);return n}}function mixObject(e,t){let n={...e,...t},i={};for(let o in n)void 0!==e[o]&&void 0!==t[o]&&(i[o]=getMixer(e[o])(e[o],t[o]));return e=>{for(let t in i)n[t]=i[t](e);return n}}let mixComplex=(e,t)=>{let n=el.createTransformer(t),i=analyseComplexValue(e),o=analyseComplexValue(t),a=i.indexes.var.length===o.indexes.var.length&&i.indexes.color.length===o.indexes.color.length&&i.indexes.number.length>=o.indexes.number.length;return a?eP.has(e)&&!o.values.length||eP.has(t)&&!i.values.length?eP.has(e)?n=>n<=0?e:t:n=>n>=1?t:e:pipe(mixArray(function(e,t){var n;let i=[],o={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){let s=t.types[a],l=e.indexes[s][o[s]],u=null!==(n=e.values[l])&&void 0!==n?n:0;i[a]=u,o[s]++}return i}(i,o),o.values),n):((0,R.K)(!0,`Complex values '${e}' and '${t}
112' 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.`),mixImmediate(e,t))};function mix(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return mixNumber(e,t,n);let i=getMixer(e);return i(e,t)}function keyframes({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){let o=isEasingArray(i)?i.map(easingDefinitionToFunction):easingDefinitionToFunction(i),a={done:!1,value:t[0]},s=(n&&n.length===t.length?n:function(e){let t=[0];return function(e,t){let n=e[e.length-1];for(let i=1;i<=t;i++){let o=progress(0,t,i);e.push(mixNumber(n,1,o))}}(t,e.length-1),t}(t)).map(t=>t*e),l=function(e,t,{clamp:n=!0,ease:i,mixer:o}={}){let a=e.length;if((0,R.k)(a===t.length,"Both input and output ranges must be the same length"),1===a)return()=>t[0];if(2===a&&e[0]===e[1])return()=>t[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,n){let i=[],o=n||mix,a=e.length-1;for(let n=0;n<a;n++){let a=o(e[n],e[n+1]);if(t){let e=Array.isArray(t)?t[n]||v.Z:t;a=pipe(e,a)}i.push(a)}return i}(t,i,o),l=s.length,interpolator=t=>{let n=0;if(l>1)for(;n<e.length-2&&!(t<e[n+1]);n++);let i=progress(e[n],e[n+1],t);return s[n](i)};return n?t=>interpolator(clamp(e[0],e[a-1],t)):interpolator}(s,t,{ease:Array.isArray(o)?o:t.map(()=>o||ew).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=l(t),a.done=t>=e,a)}}let frameloopDriver=e=>{let passTimestamp=({timestamp:t})=>e(t);return{start:()=>b.update(passTimestamp,!0),stop:()=>x(passTimestamp),now:()=>w.isProcessing?w.timestamp:eg.now()}},eT={decay:inertia,inertia:inertia,tween:keyframes,keyframes:keyframes,spring:spring},percentToProgress=e=>e/100;let MainThreadAnimation=class MainThreadAnimation extends BaseAnimation{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:i,keyframes:o}=this.options,a=(null==i?void 0:i.KeyframeResolver)||KeyframeResolver;this.resolver=new a(o,(e,t)=>this.onKeyframesResolved(e,t),t,n,i),this.resolver.scheduleResolve()}initPlayback(e){let t,n;let{type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s,velocity:l=0}=this.options,u=isGenerator(i)?i:eT[i]||keyframes;u!==keyframes&&"number"!=typeof e[0]&&(t=pipe(percentToProgress,mix(e[0],e[1])),e=[0,100]);let c=u({...this.options,keyframes:e});"mirror"===s&&(n=u({...this.options,keyframes:[...e].reverse(),velocity:-l})),null===c.calculatedDuration&&(c.calculatedDuration=function(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}(c));let{calculatedDuration:d}=c,h=d+a;return{generator:c,mirroredGenerator:n,mapPercentToKeyframes:t,calculatedDuration:d,resolvedDuration:h,totalDuration:h*(o+1)-a}}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:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:s,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=n;if(null===this.startTime)return o.next(0);let{delay:h,repeat:f,repeatType:p,repeatDelay:m,onUpdate:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/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-h*(this.speed>=0?1:-1),y=this.speed>=0?v<0:v>c;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let b=this.currentTime,x=o;if(f){let e=Math.min(this.currentTime,c)/d,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,f+1);let i=!!(t%2);i&&("reverse"===p?(n=1-n,m&&(n-=m/d)):"mirror"===p&&(x=a)),b=clamp(0,1,n)*d}let w=y?{done:!1,value:l[0]}:x.next(b);s&&(w.value=s(w.value));let{done:S}=w;y||null===u||(S=this.speed>=0?this.currentTime>=c:this.currentTime<=0);let A=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return A&&void 0!==i&&(w.value=getFinalKeyframe(l,this.options,i)),g&&g(w.value),A&&this.finish(),w}get duration(){let{resolved:e}=this;return e?millisecondsToSeconds(e.calculatedDuration):0}
112get time(){return millisecondsToSeconds(this.currentTime)}set time(e){e=secondsToMilliseconds(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=millisecondsToSeconds(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=frameloopDriver,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=i):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)&&void 0!==e?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 eC=new Set(["opacity","clipPath","filter","transform"]),isBezierDefinition=e=>Array.isArray(e)&&"number"==typeof e[0],generateLinearEasing=(e,t)=>{let n="",i=Math.max(Math.round(t/10),2);for(let t=0;t<i;t++)n+=e(progress(0,i-1,t))+", ";return`linear(${n.substring(0,n.length-2)})`};function memo(e){let t;return()=>(void 0===t&&(t=e()),t)}let eE={linearEasing:void 0},eR=function(e,t){let n=memo(e);return()=>{var e;return null!==(e=eE[t])&&void 0!==e?e:n()}}(()=>{try{document.createElement("div").animate({opacity:0}
112,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),cubicBezierAsString=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,e_={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cubicBezierAsString([0,.65,.55,1]),circOut:cubicBezierAsString([.55,0,1,.45]),backIn:cubicBezierAsString([.31,.01,.66,-.59]),backOut:cubicBezierAsString([.33,1.53,.69,.99])};function attachTimeline(e,t){e.timeline=t,e.onfinish=null}let eM=memo(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ek={anticipate:anticipate,backInOut:T,circInOut:E};let AcceleratedAnimation=class AcceleratedAnimation extends BaseAnimation{constructor(e){super(e);let{name:t,motionValue:n,element:i,keyframes:o}=this.options;this.resolver=new DOMKeyframesResolver(o,(e,t)=>this.onKeyframesResolved(e,t),t,n,i),this.resolver.scheduleResolve()}initPlayback(e,t){var n,i;let{duration:o=300,times:a,ease:s,type:l,motionValue:u,name:c,startTime:d}=this.options;if(!(null===(n=u.owner)||void 0===n?void 0:n.current))return!1;if("string"==typeof s&&eR()&&s in ek&&(s=ek[s]),isGenerator((i=this.options).type)||"spring"===i.type||!function isWaapiSupportedEasing(e){return!!("function"==typeof e&&eR()||!e||"string"==typeof e&&(e in e_||eR())||isBezierDefinition(e)||Array.isArray(e)&&e.every(isWaapiSupportedEasing))}(i.ease)){let{onComplete:t,onUpdate:n,motionValue:i,element:u,...c}=this.options,d=function(e,t){let n=new MainThreadAnimation({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),i={done:!1,value:e[0]},o=[],a=0;for(;!i.done&&a<2e4;)o.push((i=n.sample(a)).value),a+=10;return{times:void 0,keyframes:o,duration:a-10,ease:"linear"}}(e,c);1===(e=d.keyframes).length&&(e[1]=e[0]),o=d.duration,a=d.times,s=d.ease,l="keyframes"}let h=function(e,t,n,{delay:i=0,duration:o=300,repeat:a=0,repeatType:s="loop",ease:l,times:u}={}){let c={[t]:n};u&&(c.offset=u);let d=function mapEasingToNativeEasing(e,t){if(e)return"function"==typeof e&&eR()?generateLinearEasing(e,t):isBezierDefinition(e)?cubicBezierAsString(e):Array.isArray(e)?e.map(e=>mapEasingToNativeEasing(e,t)||e_.easeOut):e_[e]}(l,o);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:i,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:"reverse"===s?"alternate":"normal"})}(u.owner.current,c,e,{...this.options,duration:o,times:a,ease:s});return h.startTime=null!=d?d:this.calcStartTime(),this.pendingTimeline?(attachTimeline(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:n}=this.options;u.set(getFinalKeyframe(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:o,times:a,type:l,ease:s,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return millisecondsToSeconds(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return millisecondsToSeconds(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=secondsToMilliseconds(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 v.Z;let{animation:n}=t;attachTimeline(n,e)}else this.pendingTimeline=e;return v.Z}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:i,type:o,ease:a,times:s}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:l,element:u,...c}=this.options,d=new MainThreadAnimation({...c,keyframes:n,duration:i,type:o,ease:a,times:s,isGenerator:!0}),h=secondsToMilliseconds(this.time);e.setWithVelocity(d.sample(h-10).value,d.sample(h).value,10)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}
112static supports(e){let{motionValue:t,name:n,repeatDelay:i,repeatType:o,damping:a,type:s}=e;return eM()&&n&&eC.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!i&&"mirror"!==o&&0!==a&&"inertia"!==s}};let eV=memo(()=>void 0!==window.ScrollTimeline);let GroupPlaybackControls=class GroupPlaybackControls{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}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=>eV()&&n.attachTimeline?n.attachTimeline(e):t(n));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]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};let animateMotionValue=(e,t,n,i={},o,a)=>s=>{let l=getValueTransition(i,e)||{},u=l.delay||i.delay||0,{elapsed:c=0}=i;c-=secondsToMilliseconds(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:a?void 0:o};!function({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:a,repeatType:s,repeatDelay:l,from:u,elapsed:c,...d}){return!!Object.keys(d).length}(l)&&(d={...d,...getDefaultTransition(e,d)}),d.duration&&(d.duration=secondsToMilliseconds(d.duration)),d.repeatDelay&&(d.repeatDelay=secondsToMilliseconds(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let p=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(d.duration=0,0!==d.delay||(p=!0)),(f.current||h.skipAnimations)&&(p=!0,d.duration=0,d.delay=0),p&&!a&&void 0!==t.get()){let e=getFinalKeyframe(d.keyframes,l);if(void 0!==e)return b.update(()=>{d.onUpdate(e),d.onComplete()}),new GroupPlaybackControls([])}return!a&&AcceleratedAnimation.supports(d)?new AcceleratedAnimation(d):new MainThreadAnimation(d)},isCustomValue=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),resolveFinalValueInKeyframes=e=>isKeyframesTarget(e)?e[e.length-1]||0:e;function addUniqueItem(e,t){-1===e.indexOf(t)&&e.push(t)}function removeItem(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}let SubscriptionManager=class SubscriptionManager{constructor(){this.subscriptions=[]}add(e){return addUniqueItem(this.subscriptions,e),()=>removeItem(this.subscriptions,e)}notify(e,t,n){let i=this.subscriptions.length;if(i){if(1===i)this.subscriptions[0](e,t,n);else for(let o=0;o<i;o++){let i=this.subscriptions[o];i&&i(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};let isFloat=e=>!isNaN(parseFloat(e)),eD={current:void 0};let MotionValue=class MotionValue{constructor(e,t={}){this.version="11.9.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let n=eg.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=eg.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=isFloat(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 SubscriptionManager);let n=this.events[e].add(t);return"change"===e?()=>{n(),b.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)}
112setWithVelocity(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 eD.current&&eD.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=eg.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?e*(1e3/n):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 motionValue(e,t){return new MotionValue(e,t)}let camelToDash=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eO="data-"+camelToDash("framerAppearId");function getWillChangeName(e){return l.has(e)?"transform":eC.has(e)?camelToDash(e):void 0}let WillChangeMotionValue=class WillChangeMotionValue extends MotionValue{constructor(){super(...arguments),this.values=[]}add(e){let t=getWillChangeName(e);t&&(addUniqueItem(this.values,t),this.update())}update(){this.set(this.values.length?this.values.join(", "):"auto")}};let isMotionValue=e=>!!(e&&e.getVelocity);function addValueToWillChange(e,t){var n,i;if(!e.applyWillChange)return;let o=e.getValue("willChange");if(o||(null===(n=e.props.style)||void 0===n?void 0:n.willChange)||(o=new WillChangeMotionValue("auto"),e.addValue("willChange",o)),isMotionValue(i=o)&&i.add)return o.add(t)}function animateTarget(e,t,{delay:n=0,transitionOverride:i,type:o}={}){var a;let{transition:s=e.getDefaultTransition(),transitionEnd:u,...c}=t;i&&(s=i);let d=[],h=o&&e.animationState&&e.animationState.getState()[o];for(let t in c){let i=e.getValue(t,null!==(a=e.latestValues[t])&&void 0!==a?a:null),o=c[t];if(void 0===o||h&&function({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,i}(h,t))continue;let u={delay:n,...getValueTransition(s||{},t)},f=!1;if(window.MotionHandoffAnimation){let n=e.props[eO];if(n){let e=window.MotionHandoffAnimation(n,t,b);null!==e&&(u.startTime=e,f=!0)}}addValueToWillChange(e,t),i.start(animateMotionValue(t,i,o,e.shouldReduceMotion&&l.has(t)?{type:!1}:u,e,f));let p=i.animation;p&&d.push(p)}return u&&Promise.all(d).then(()=>{b.update(()=>{u&&function(e,t){let n=resolveVariant(e,t),{transitionEnd:i={},transition:o={},...a}=n||{};for(let t in a={...a,...i}){let n=resolveFinalValueInKeyframes(a[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,motionValue(n))}}(e,u)})}),d}function animateVariant(e,t,n={}){var i;let o=resolveVariant(e,t,"exit"===n.type?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0),{transition:a=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(a=n.transitionOverride);let s=o?()=>Promise.all(animateTarget(e,o,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(i=0)=>{let{delayChildren:o=0,staggerChildren:s,staggerDirection:l}=a;return function(e,t,n=0,i=0,o=1,a){let s=[],l=(e.variantChildren.size-1)*i,u=1===o?(e=0)=>e*i:(e=0)=>l-e*i;return Array.from(e.variantChildren).sort(sortByTreeOrder).forEach((e,i)=>{e.notify("AnimationStart",t),s.push(animateVariant(e,t,{...a,delay:n+u(i)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,o+i,s,l,n)}:()=>Promise.resolve(),{when:u}=a;if(!u)return Promise.all([s(),l(n.delay)]);{let[e,t]="beforeChildren"===u?[s,l]:[l,s];return e().then(()=>t())}}function sortByTreeOrder(e,t){return e.sortNodePosition(t)}let eL=a.length,eN=[...o].reverse(),ej=o.length;function createTypeState(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function createState(){return{animate:createTypeState(!0),whileInView:createTypeState(),whileHover:createTypeState(),whileTap:createTypeState(),whileDrag:createTypeState(),whileFocus:createTypeState(),exit:createTypeState()}}let Feature=class Feature{constructor(e){this.isMounted=!1,this.node=e}update(){}};let eI=0,isPrimaryPointer=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function extractEventInfo(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}let addPointerInfo=e=>t=>isPrimaryPointer(t)&&e(t,extractEventInfo(t));function addDomEvent(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function addPointerEvent(e,t,n,i){return addDomEvent(e,t,addPointerInfo(n),i)}let distance=(e,t)=>Math.abs(e-t);let PanSession=class PanSession{constructor(e,t,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:o=!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=getPanInfo(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){let n=distance(e.x,t.x),i=distance(e.y,t.y);return Math.sqrt(n**2+i**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:i}=e,{timestamp:o}=w;this.history.push({...i,timestamp:o});let{onStart:a,onMove:s}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>
112{this.lastMoveEvent=e,this.lastMoveEventInfo=transformPoint(t,this.transformPagePoint),b.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:i,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=getPanInfo("pointercancel"===e.type?this.lastMoveEventInfo:transformPoint(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),i&&i(e,a)},!isPrimaryPointer(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=i||window;let a=extractEventInfo(e),s=transformPoint(a,this.transformPagePoint),{point:l}=s,{timestamp:u}=w;this.history=[{...l,timestamp:u}];let{onSessionStart:c}=t;c&&c(e,getPanInfo(s,this.history)),this.removeListeners=pipe(addPointerEvent(this.contextWindow,"pointermove",this.handlePointerMove),addPointerEvent(this.contextWindow,"pointerup",this.handlePointerUp),addPointerEvent(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),x(this.updatePoint)}};function transformPoint(e,t){return t?{point:t(e.point)}:e}function subtractPoint(e,t){return{x:e.x-t.x,y:e.y-t.y}}function getPanInfo({point:e},t){return{point:e,delta:subtractPoint(e,lastDevicePoint(t)),offset:subtractPoint(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null,o=lastDevicePoint(e);for(;n>=0&&(i=e[n],!(o.timestamp-i.timestamp>secondsToMilliseconds(.1)));)n--;if(!i)return{x:0,y:0};let a=millisecondsToSeconds(o.timestamp-i.timestamp);if(0===a)return{x:0,y:0};let s={x:(o.x-i.x)/a,y:(o.y-i.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,0)}}function lastDevicePoint(e){return e[e.length-1]}function createLock(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let eB=createLock("dragHorizontal"),eF=createLock("dragVertical");function getGlobalLock(e){let t=!1;if("y"===e)t=eF();else if("x"===e)t=eB();else{let e=eB(),n=eF();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function isDragActive(){let e=getGlobalLock(!0);return!e||(e(),!1)}function isRefObject(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function calcLength(e){return e.max-e.min}function calcAxisDelta(e,t,n,i=.5){e.origin=i,e.originPoint=mixNumber(t.min,t.max,e.origin),e.scale=calcLength(n)/calcLength(t),e.translate=mixNumber(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 calcBoxDelta(e,t,n,i){calcAxisDelta(e.x,t.x,n.x,i?i.originX:void 0),calcAxisDelta(e.y,t.y,n.y,i?i.originY:void 0)}function calcRelativeAxis(e,t,n){e.min=n.min+t.min,e.max=e.min+calcLength(t)}function calcRelativeAxisPosition(e,t,n){e.min=t.min-n.min,e.max=e.min+calcLength(t)}function calcRelativePosition(e,t,n){calcRelativeAxisPosition(e.x,t.x,n.x),calcRelativeAxisPosition(e.y,t.y,n.y)}function calcRelativeAxisConstraints(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 calcViewportAxisConstraints(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function resolveAxisElastic(e,t,n){return{min:resolvePointElastic(e,t),max:resolvePointElastic(e,n)}}function resolvePointElastic(e,t){return"number"==typeof e?e:e[t]||0}let createAxisDelta=()=>({translate:0,scale:1,origin:0,originPoint:0}),createDelta=()=>({x:createAxisDelta(),y:createAxisDelta()}),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()});function eachAxis(e){return[e("x"),e("y")]}function convertBoundingBoxToBox({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function isIdentityScale(e){return void 0===e||1===e}function hasScale({scale:e,scaleX:t,scaleY:n}){return!isIdentityScale(e)||!isIdentityScale(t)||!isIdentityScale(n)}function hasTransform(e){return hasScale(e)||has2DTranslate(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function has2DTranslate(e){var t,n;
112return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function applyPointDelta(e,t,n,i,o){return void 0!==o&&(e=i+o*(e-i)),i+n*(e-i)+t}function applyAxisDelta(e,t=0,n=1,i,o){e.min=applyPointDelta(e.min,t,n,i,o),e.max=applyPointDelta(e.max,t,n,i,o)}function applyBoxDelta(e,{x:t,y:n}){applyAxisDelta(e.x,t.translate,t.scale,t.originPoint),applyAxisDelta(e.y,n.translate,n.scale,n.originPoint)}function translateAxis(e,t){e.min=e.min+t,e.max=e.max+t}function transformAxis(e,t,n,i,o=.5){let a=mixNumber(e.min,e.max,o);applyAxisDelta(e,t,n,a,i)}function transformBox(e,t){transformAxis(e.x,t.x,t.scaleX,t.scale,t.originX),transformAxis(e.y,t.y,t.scaleY,t.scale,t.originY)}function measureViewportBox(e,t){return convertBoundingBoxToBox(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(e.getBoundingClientRect(),t))}let getContextWindow=({current:e})=>e?e.ownerDocument.defaultView:null,eW=new WeakMap;let VisualElementDragControls=class VisualElementDragControls{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=createBox(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:i}=this.getProps();this.panSession=new PanSession(e,{onSessionStart:e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(extractEventInfo(e,"page").point)},onStart:(e,t)=>{let{drag:n,dragPropagation:i,onDragStart:o}=this.getProps();if(n&&!i&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=getGlobalLock(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eachAxis(e=>{let t=this.getAxisMotionValue(e).get()||0;if(j.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[e];if(i){let e=calcLength(i);t=e*(parseFloat(t)/100)}}}this.originPoint[e]=t}),o&&b.postRender(()=>o(e,t)),addValueToWillChange(this.visualElement,"transform");let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:o,onDrag:a}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:s}=t;if(i&&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&&o&&o(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),a&&a(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>eachAxis(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,contextWindow:getContextWindow(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:i}=t;this.startAnimation(i);let{onDragEnd:o}=this.getProps();o&&b.postRender(()=>o(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.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:i}=this.getProps();if(!n||!shouldDrag(e,i,this.currentDirection))return;let o=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:n},i){return void 0!==t&&e<t?e=i?mixNumber(t,e,i.min):Math.max(e,t):void 0!==n&&e>n&&(e=i?mixNumber(n,e,i.max):Math.min(e,n)),e}(a,this.constraints[e],this.elastic[e])),o.set(a)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&isRefObject(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(e,{top:t,left:n,bottom:i,right:o}){return{x:calcRelativeAxisConstraints(e.x,n,o),y:calcRelativeAxisConstraints(e.y,t,i)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:resolveAxisElastic(e,"left","right"),y:resolveAxisElastic(e,"to
112p","bottom")}}(n),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&eachAxis(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}(i.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!isRefObject(t))return!1;let i=t.current;(0,R.k)(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let a=function(e,t,n){let i=measureViewportBox(e,n),{scroll:o}=t;return o&&(translateAxis(i.x,o.offset.x),translateAxis(i.y,o.offset.y)),i}(i,o.root,this.visualElement.getTransformPagePoint()),s={x:calcViewportAxisConstraints((e=o.layout.layoutBox).x,a.x),y:calcViewportAxisConstraints(e.y,a.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=convertBoundingBoxToBox(e))}return s}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=eachAxis(s=>{if(!shouldDrag(s,t,this.currentDirection))return;let u=l&&l[s]||{};a&&(u={min:0,max:0});let c={type:"inertia",velocity:n?e[s]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...o,...u};return this.startAxisValueAnimation(s,c)});return Promise.all(u).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return addValueToWillChange(this.visualElement,e),n.start(animateMotionValue(e,n,0,t,this.visualElement,!1))}stopAnimation(){eachAxis(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){eachAxis(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),i=n[t];return i||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){eachAxis(t=>{let{drag:n}=this.getProps();if(!shouldDrag(t,n,this.currentDirection))return;let{projection:i}=this.visualElement,o=this.getAxisMotionValue(t);if(i&&i.layout){let{min:n,max:a}=i.layout.layoutBox[t];o.set(e[t]-mixNumber(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!isRefObject(t)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};eachAxis(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();i[e]=function(e,t){let n=.5,i=calcLength(e),o=calcLength(t);return o>i?n=progress(t.min,t.max-i,e.min):i>o&&(n=progress(e.min,e.max-o,t.min)),clamp(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),eachAxis(t=>{if(!shouldDrag(t,e,null))return;let n=this.getAxisMotionValue(t),{min:o,max:a}=this.constraints[t];n.set(mixNumber(o,a,i[t]))})}addListeners(){if(!this.visualElement.current)return;eW.set(this.visualElement,this);let e=this.visualElement.current,t=addPointerEvent(e,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),measureDragConstraints=()=>{let{dragConstraints:e}=this.getProps();isRefObject(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",measureDragConstraints);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),b.read(measureDragConstraints);let o=addDomEvent(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(eachAxis(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),t(),i(),a&&a()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}};function shouldDrag(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let asyncHandler=e=>(t,n)=>{e&&b.postRender(()=>e(t,n))};var ez=n(7437),eU=n(2265),eH=n(8243),e$=n(781);let eK=(0,eU.createContext)({}),eG={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pixelsToPercent(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let eZ={correct:(e,t)=>
112{if(!t.target)return e;if("string"==typeof e){if(!I.test(e))return e;e=parseFloat(e)}let n=pixelsToPercent(e,t.target.x),i=pixelsToPercent(e,t.target.y);return`${n}% ${i}%`}},eq={},{schedule:eY,cancel:eX}=createRenderBatcher(queueMicrotask,!1);let MeasureLayoutWithContext=class MeasureLayoutWithContext extends eU.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=e;Object.assign(eq,eQ),o&&(t.group&&t.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),eG.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:i,isPresent:o}=this.props,a=n.projection;return a&&(a.isPresent=o,i||e.layoutDependency!==t||void 0===t?a.willUpdate():this.safeToRemove(),e.isPresent===o||(o?a.promote():a.relegate()||b.postRender(()=>{let e=a.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),eY.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function MeasureLayout(e){let[t,n]=function(){let e=(0,eU.useContext)(eH.O);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:i}=e,o=(0,eU.useId)();(0,eU.useEffect)(()=>i(o),[]);let a=(0,eU.useCallback)(()=>n&&n(o),[o,n]);return!t&&n?[!1,a]:[!0]}(),i=(0,eU.useContext)(e$.p);return(0,ez.jsx)(MeasureLayoutWithContext,{...e,layoutGroup:i,switchLayoutGroup:(0,eU.useContext)(eK),isPresent:t,safeToRemove:n})}let eQ={borderRadius:{...eZ,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eZ,borderTopRightRadius:eZ,borderBottomLeftRadius:eZ,borderBottomRightRadius:eZ,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let i=el.parse(e);if(i.length>5)return e;let o=el.createTransformer(e),a="number"!=typeof i[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+a]/=s,i[1+a]/=l;let u=mixNumber(s,l,.5);return"number"==typeof i[2+a]&&(i[2+a]/=u),"number"==typeof i[3+a]&&(i[3+a]/=u),o(i)}}},eJ=["TopLeft","TopRight","BottomLeft","BottomRight"],e0=eJ.length,asNumber=e=>"string"==typeof e?parseFloat(e):e,isPx=e=>"number"==typeof e||I.test(e);function getRadius(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let e1=compress(0,.5,C),e2=compress(.5,.95,v.Z);function compress(e,t,n){return i=>i<e?0:i>t?1:n(progress(e,t,i))}function copyAxisInto(e,t){e.min=t.min,e.max=t.max}function copyBoxInto(e,t){copyAxisInto(e.x,t.x),copyAxisInto(e.y,t.y)}function copyAxisDeltaInto(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function removePointDelta(e,t,n,i,o){return e-=t,e=i+1/n*(e-i),void 0!==o&&(e=i+1/o*(e-i)),e}function removeAxisTransforms(e,t,[n,i,o],a,s){!function(e,t=0,n=1,i=.5,o,a=e,s=e){if(j.test(t)){t=parseFloat(t);let e=mixNumber(s.min,s.max,t/100);t=e-s.min}if("number"!=typeof t)return;let l=mixNumber(a.min,a.max,i);e===a&&(l-=t),e.min=removePointDelta(e.min,t,n,l,o),e.max=removePointDelta(e.max,t,n,l,o)}(e,t[n],t[i],t[o],t.scale,a,s)}let e5=["x","scaleX","originX"],e3=["y","scaleY","originY"];function removeBoxTransforms(e,t,n,i){removeAxisTransforms(e.x,t,e5,n?n.x:void 0,i?i.x:void 0),removeAxisTransforms(e.y,t,e3,n?n.y:void 0,i?i.y:void 0)}function isAxisDeltaZero(e){return 0===e.translate&&1===e.scale}function isDeltaZero(e){return isAxisDeltaZero(e.x)&&isAxisDeltaZero(e.y)}function axisEquals(e,t){return e.min===t.min&&e.max===t.max}function axisEqualsRounded(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function boxEqualsRounded(e,t){return axisEqualsRounded(e.x,t.x)&&axisEqualsRounded(e.y,t.y)}function aspectRatio(e){return calcLength(e.x)/calcLength(e.y)}function axisDeltaEquals(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}let NodeStack=class NodeStack{constructor(){this.members=[]}add(e){addUniqueItem(this.members,e),e.scheduleRender()}remove(e){if(removeItem(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;let 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:i}=e.options;!1===i&&n.hide()}}
vendor: 11,436 bytes, line 112
112exitAnimationComplete(){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 compareByDepth=(e,t)=>e.depth-t.depth;let FlatTree=class FlatTree{constructor(){this.children=[],this.isDirty=!1}add(e){addUniqueItem(this.children,e),this.isDirty=!0}remove(e){removeItem(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEach(e)}};function resolveMotionValue(e){let t=isMotionValue(e)?e.get():e;return isCustomValue(t)?t.toValue():t}let e6={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},e4="undefined"!=typeof window&&void 0!==window.MotionDebug,e9=["","X","Y","Z"],e7={visibility:"hidden"},e8=0;function resetDistortingTransform(e,t,n,i){let{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),i&&(i[e]=0))}function createProjectionNode({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(e={},n=null==t?void 0:t()){this.id=e8++,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,e4&&(e6.totalNodes=e6.resolvedTargetDeltas=e6.recalculatedProjection=0),this.nodes.forEach(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes),e4&&window.MotionDebug.record(e6)},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 FlatTree)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new SubscriptionManager),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:i,layout:o,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||i)&&(this.isLayoutDirty=!0),e){let n;let resizeUnblockUpdate=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=eg.now(),checkElapsed=({timestamp:i})=>{let o=i-n;o>=t&&(x(checkElapsed),e(o-t))};return b.read(checkElapsed,!0),()=>x(checkElapsed)}(resizeUnblockUpdate,250),eG.hasAnimatedSinceResize&&(eG.hasAnimatedSinceResize=!1,this.nodes.forEach(finishAnimation))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||a.getDefaultTransition()||te,{onLayoutAnimationStart:s,onLayoutAnimationComplete:l}=a.getProps(),u=!this.targetLayout||!boxEqualsRounded(this.targetLayout,i)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);let t={...getValueTransition(o,"layout"),onPlay:s,onComplete:l};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||finishAnimation(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}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(resetSkewAndRotation),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 cancelTreeOptimisedTransformAnimations(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=t.props[eO];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",b,!(t||i))}let{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&cancelTreeOptimisedTransformAnimations(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 i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;let e=this.isUpdateBlocked();if(e){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(clearMeasurements);return}this.isUpdating||this.nodes.forEach(clearIsLayoutDirty),this.isUpdating=!1,this.nodes.forEach(resetTransformStyle),this.nodes.forEach(updateLayout),this.nodes.forEach(notifyLayoutUpdate),this.clearAllSnapshots();let t=eg.now();w.delta=clamp(0,1e3/60,t-w.timestamp),w.timestamp=t,w.isProcessing=!0,S.update.process(w),S.preRender.process(w),S.render.process(w),w.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,eY.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(clearSnapshot),this.sharedNodes.forEach(removeLeadSnapshots)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,b.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){b.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++){let t=this.path[e];t.updateScroll()}let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=createBox(),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=i(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(!o)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!isDeltaZero(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,a=i!==this.prevTransformTemplateValue;e&&(t||hasTransform(this.latestValues)||a)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),i=this.removeElementScroll(n);return e&&(i=this.removeTransform(i)),roundAxis((t=i).x),roundAxis(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){var e;let{visualElement:t}=this.options;if(!t)return createBox();let n=t.measureViewportBox(),i=(null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(checkNodeWasScrollRoot);if(!i){let{scroll:e}=this.root;e&&(translateAxis(n.x,e.offset.x),translateAxis(n.y,e.offset.y))}return n}removeElementScroll(e){var t;let n=createBox();if(copyBoxInto(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){let i=this.path[t],{scroll:o,options:a}=i;i!==this.root&&o&&a.layoutScroll&&(o.wasRoot&©BoxInto(n,e),translateAxis(n.x,o.offset.x),translateAxis(n.y,o.offset.y))}return n}applyTransform(e,t=!1){let n=createBox();copyBoxInto(n,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&transformBox(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),hasTransform(i.latestValues)&&transformBox(n,i.latestValues)}return hasTransform(this.latestValues)&&transformBox(n,this.latestValues),n}removeTransform(e){let t=createBox();copyBoxInto(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!hasTransform(n.latestValues))continue;hasScale(n.latestValues)&&n.updateSnapshot();let i=createBox(),o=n.measurePageBox();copyBoxInto(i,o),removeBoxTransforms(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,i)}return hasTransform(this.latestValues)&&removeBoxTransforms(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!==w.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,n,i,o;let a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==a,l=!(e||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize);
112if(l)return;let{layout:u,layoutId:c}=this.options;if(this.layout&&(u||c)){if(this.resolvedRelativeTargetAt=w.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=createBox(),this.targetWithTransforms=createBox()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),n=this.target,i=this.relativeTarget,o=this.relativeParent.target,calcRelativeAxis(n.x,i.x,o.x),calcRelativeAxis(n.y,i.y,o.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):copyBoxInto(this.target,this.layout.layoutBox),applyBoxDelta(this.target,this.targetDelta)):copyBoxInto(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=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.target,e.target),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}e4&&e6.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||hasScale(this.parent.latestValues)||has2DTranslate(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),n=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===w.timestamp&&(i=!1),i)return;let{layout:o,layoutId:a}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(o||a))return;copyBoxInto(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,l=this.treeScale.y;!function(e,t,n,i=!1){let o,a;let s=n.length;if(s){t.x=t.y=1;for(let l=0;l<s;l++){a=(o=n[l]).projectionDelta;let{visualElement:s}=o.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&transformBox(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,applyBoxDelta(e,a)),i&&hasTransform(o.latestValues)&&transformBox(e,o.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=createBox());let{target:u}=t;if(!u){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(copyAxisDeltaInto(this.prevProjectionDelta.x,this.projectionDelta.x),copyAxisDeltaInto(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),calcBoxDelta(this.projectionDelta,this.layoutCorrected,u,this.latestValues),this.treeScale.x===s&&this.treeScale.y===l&&axisDeltaEquals(this.projectionDelta.x,this.prevProjectionDelta.x)&&axisDeltaEquals(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",u)),e4&&e6.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=createDelta(),this.projectionDelta=createDelta(),this.projectionDeltaWithTransform=createDelta()}setAnimationOrigin(e,t=!1){let n;let i=this.snapshot,o=i?i.latestValues:{},a={...this.latestValues},s=createDelta();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=createBox(),u=i?i.source:void 0,c=this.layout?this.layout.source:void 0,d=u!==c,h=this.getStack(),f=!h||h.members.length<=1,p=!!(d&&!f&&!0===this.options.crossfade&&!this.path.some(hasOpacityCrossfade));this.animationProgress=0,this.mixTargetDelta=t=>{let i=t/1e3;if(mixAxisDelta(s.x,e.x,i),mixAxisDelta(s.y,e.y,i),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,h,m;calcRelativePosition(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,m=this.relativeTargetOrigin,mixAxis(h.x,m.x,l.x,i),mixAxis(h.y,m.y,l.y,i),n&&(u=this.relativeTarget,c=n,axisEquals(u.x,c.x)&&axisEquals(u.y,c.y))&&(this.isProjectionDirty=!1),n||(n=createBox()),copyBoxInto(n,this.relativeTarget)}d&&(this.animationValues=a,function(e,t,n,i,o,a){o?(e.opacity=mixNumber(0,void 0!==n.opacity?n.opacity:1,e1(i)),e.opacityExit=mixNumber(void 0!==t.opacity?t.opacity:1,0,e2(i))):a&&(e.opacity=mixNumber(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let o=0;o<e0;o++){let a=`border${eJ[o]}Radius`,s=getRadius(t,a),l=getRadius(n,a);if(void 0===s&&void 0===l)continue;s||(s=0),l||(l=0);
112let u=0===s||0===l||isPx(s)===isPx(l);u?(e[a]=Math.max(mixNumber(asNumber(s),asNumber(l),i),0),(j.test(l)||j.test(s))&&(e[a]+="%")):e[a]=l}(t.rotate||n.rotate)&&(e.rotate=mixNumber(t.rotate||0,n.rotate||0,i))}(a,o,this.latestValues,i,p,f)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}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=b.update(()=>{eG.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){let i=isMotionValue(e)?e:motionValue(e);return i.start(animateMotionValue("",i,1e3,n)),i.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:i,latestValues:o}=e;if(t&&n&&i){if(this!==e&&this.layout&&i&&shouldAnimatePositionOnly(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||createBox();let t=calcLength(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let i=calcLength(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+i}copyBoxInto(t,n),transformBox(t,o),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new NodeStack);let n=this.sharedNodes.get(e);n.add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?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 i=this.getStack();i&&i.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 i={};n.z&&resetDistortingTransform("z",e,i,this.animationValues);for(let t=0;t<e9.length;t++)resetDistortingTransform(`rotate${e9[t]}`,e,i,this.animationValues),resetDistortingTransform(`skew${e9[t]}`,e,i,this.animationValues);for(let t in e.render(),i)e.setStaticValue(t,i[t]),this.animationValues&&(this.animationValues[t]=i[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return e7;let i={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=resolveMotionValue(null==e?void 0:e.pointerEvents)||"",i.transform=o?o(this.latestValues,""):"none",i;let a=this.getLead();if(!this.projectionDelta||!this.layout||!a.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=resolveMotionValue(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!hasTransform(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}let s=a.animationValues||a.latestValues;this.applyTransformsToTarget(),i.transform=function(e,t,n){let i="",o=e.x.translate/t.x,a=e.y.translate/t.y,s=(null==n?void 0:n.z)||0;if((o||a||s)&&(i=`translate3d(${o}px, ${a}px, ${s}px) `),(1!==t.x||1!==t.y)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:o,rotateY:a,skewX:s,skewY:l}=n;e&&(i=`perspective(${e}px) ${i}`),t&&(i+=`rotate(${t}deg) `),o&&(i+=`rotateX(${o}deg) `),a&&(i+=`rotateY(${a}deg) `),s&&(i+=`skewX(${s}deg) `),l&&(i+=`skewY(${l}deg) `)}let l=e.x.scale*t.x,u=e.y.scale*t.y;return(1!==l||1!==u)&&(i+=`scale(${l}, ${u})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),o&&(i.transform=o(s,i.transform));let{x:l,y:u}=this.projectionDelta;for(let e in i.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,a.animationValues?i.opacity=a===this?null!==(n=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:i.opacity=a===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,eq){if(void 0===s[e])continue;let{correct:t,applyTo:n}=eq[e],o="none"===i.transform?s[e]:t(s[e],a);if(n){let e=n.length;for(let t=0;t<e;t++)i[n[t]]=o}else i[e]=o}return this.options.layoutId&&(i.pointerEvents=a===this?resolveMotionValue(null==e?void 0:e.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
112resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(clearMeasurements),this.root.sharedNodes.clear()}}}function updateLayout(e){e.updateLayout()}function notifyLayoutUpdate(e){var t;let n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;"size"===o?eachAxis(e=>{let i=a?n.measuredBox[e]:n.layoutBox[e],o=calcLength(i);i.min=t[e].min,i.max=i.min+o}):shouldAnimatePositionOnly(o,n.layoutBox,t)&&eachAxis(i=>{let o=a?n.measuredBox[i]:n.layoutBox[i],s=calcLength(t[i]);o.max=o.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+s)});let s=createDelta();calcBoxDelta(s,t,n.layoutBox);let l=createDelta();a?calcBoxDelta(l,e.applyTransform(i,!0),n.measuredBox):calcBoxDelta(l,t,n.layoutBox);let u=!isDeltaZero(s),c=!1;if(!e.resumeFrom){let i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:o,layout:a}=i;if(o&&a){let s=createBox();calcRelativePosition(s,n.layoutBox,o.layoutBox);let l=createBox();calcRelativePosition(l,t,a.layoutBox),boxEqualsRounded(s,l)||(c=!0),i.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=s,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function propagateDirtyNodes(e){e4&&e6.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 cleanDirtyNodes(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function clearSnapshot(e){e.clearSnapshot()}function clearMeasurements(e){e.clearMeasurements()}function clearIsLayoutDirty(e){e.isLayoutDirty=!1}function resetTransformStyle(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function finishAnimation(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function resolveTargetDelta(e){e.resolveTargetDelta()}function calcProjection(e){e.calcProjection()}function resetSkewAndRotation(e){e.resetSkewAndRotation()}function removeLeadSnapshots(e){e.removeLeadSnapshot()}function mixAxisDelta(e,t,n){e.translate=mixNumber(t.translate,0,n),e.scale=mixNumber(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function mixAxis(e,t,n,i){e.min=mixNumber(t.min,n.min,i),e.max=mixNumber(t.max,n.max,i)}function hasOpacityCrossfade(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let te={duration:.45,ease:[.4,0,.1,1]},userAgentContains=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),tt=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:v.Z;function roundAxis(e){e.min=tt(e.min),e.max=tt(e.max)}function shouldAnimatePositionOnly(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(aspectRatio(t)-aspectRatio(n)))}function checkNodeWasScrollRoot(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}let tr=createProjectionNode({attachResizeListener:(e,t)=>addDomEvent(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),tn={current:void 0},ti=createProjectionNode({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!tn.current){let e=new tr({});e.mount(window),e.setOptions({layoutScroll:!0}),tn.current=e}return tn.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});
112function addHoverEvent(e,t){let n=t?"pointerenter":"pointerleave",i=t?"onHoverStart":"onHoverEnd";return addPointerEvent(e.current,n,(n,o)=>{if("touch"===n.pointerType||isDragActive())return;let a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);let s=a[i];s&&b.postRender(()=>s(n,o))},{passive:!e.getProps()[i]})}let isNodeOrChild=(e,t)=>!!t&&(e===t||isNodeOrChild(e,t.parentElement));function fireSyntheticPointerEvent(e,t){if(!t)return;let n=new PointerEvent("pointer"+e);t(n,extractEventInfo(n))}let to=new WeakMap,ta=new WeakMap,fireObserverCallback=e=>{let t=to.get(e.target);t&&t(e)},fireAllObserverCallbacks=e=>{e.forEach(fireObserverCallback)},ts={some:0,all:1};var tl=n(5968);let tu=(0,eU.createContext)({});var tc=n(538);let td=(0,eU.createContext)({strict:!1}),th=!1;function completeHandoff(){window.MotionHandoffIsComplete=!0}function isControllingVariants(e){return isAnimationControls(e.animate)||a.some(t=>isVariantLabel(e[t]))}function isVariantNode(e){return!!(isControllingVariants(e)||e.variants)}function variantLabelsAsDependency(e){return Array.isArray(e)?e.join(" "):e}let tf={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"]},tp={};for(let e in tf)tp[e]={isEnabled:t=>tf[e].some(e=>!!t[e])};var tm=n(6613);let tg=Symbol.for("motionComponentSymbol"),tv=["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 isSVGComponent(e){if("string"!=typeof e||e.includes("-"));else if(tv.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}function renderHTML(e,{style:t,vars:n},i,o){for(let a in Object.assign(e.style,t,o&&o.getProjectionStyles(i)),n)e.style.setProperty(a,n[a])}let ty=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"]);
112function renderSVG(e,t,n,i){for(let n in renderHTML(e,t,void 0,i),t.attrs)e.setAttribute(ty.has(n)?n:camelToDash(n),t.attrs[n])}function isForcedMotionValue(e,{layout:t,layoutId:n}){return l.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!eq[e]||"opacity"===e)}function scrapeMotionValuesFromProps(e,t,n){var i;let{style:o}=e,a={};for(let s in o)(isMotionValue(o[s])||t.style&&isMotionValue(t.style[s])||isForcedMotionValue(s,e)||(null===(i=null==n?void 0:n.getValue(s))||void 0===i?void 0:i.liveStyle)!==void 0)&&(a[s]=o[s]);return n&&o&&"string"==typeof o.willChange&&(n.applyWillChange=!1),a}function scrape_motion_values_scrapeMotionValuesFromProps(e,t,n){let i=scrapeMotionValuesFromProps(e,t,n);for(let n in e)if(isMotionValue(e[n])||isMotionValue(t[n])){let t=-1!==s.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;i[t]=e[n]}return i}var tb=n(961);let makeUseVisualState=e=>(t,n)=>{let i=(0,eU.useContext)(tu),o=(0,eU.useContext)(eH.O),make=()=>(function({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:i},o,a,s,l){let u={latestValues:function(e,t,n,i,o){var a;let s={},l=[],u=i&&(null===(a=e.style)||void 0===a?void 0:a.willChange)===void 0,c=o(e,{});for(let e in c)s[e]=resolveMotionValue(c[e]);let{initial:d,animate:h}=e,f=isControllingVariants(e),p=isVariantNode(e);t&&p&&!f&&!1!==e.inherit&&(void 0===d&&(d=t.initial),void 0===h&&(h=t.animate));let m=!!n&&!1===n.initial;m=m||!1===d;let g=m?h:d;return g&&"boolean"!=typeof g&&!isAnimationControls(g)&&forEachDefinition(e,g,(e,t)=>{for(let t in e){let n=e[t];if(Array.isArray(n)){let e=m?n.length-1:0;n=n[e]}null!==n&&(s[t]=n)}for(let e in t)s[e]=t[e]}),u&&(h&&!1!==d&&!isAnimationControls(h)&&forEachDefinition(e,h,e=>{for(let t in e)!function(e,t){let n=getWillChangeName(t);n&&addUniqueItem(e,n)}(l,t)}),l.length&&(s.willChange=l.join(","))),s}(o,a,s,!l&&e,t),renderState:n()};return i&&(u.mount=e=>i(o,e,u)),u})(e,t,i,o,n);return n?make():(0,tb.h)(make)};function forEachDefinition(e,t,n){let i=Array.isArray(t)?t:[t];for(let t=0;t<i.length;t++){let o=resolveVariantFromProps(e,i[t]);if(o){let{transitionEnd:e,transition:t,...i}=o;n(i,e)}}}let createHtmlRenderState=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),createSvgRenderState=()=>({...createHtmlRenderState(),attrs:{}}),getValueAsType=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tw=s.length;function buildHTMLStyles(e,t,n){let{style:i,vars:o,transformOrigin:a}=e,u=!1,c=!1;for(let e in t){let n=t[e];if(l.has(e)){u=!0;continue}if(_(e)){o[e]=n;continue}{let t=getValueAsType(n,ef[e]);e.startsWith("origin")?(c=!0,a[e]=t):i[e]=t}}if(!t.transform&&(u||n?i.transform=function(e,t,n){let i="",o=!0;for(let a=0;a<tw;a++){let l=s[a],u=e[l];if(void 0===u)continue;let c=!0;if(!(c="number"==typeof u?u===(l.startsWith("scale")?1:0):0===parseFloat(u))||n){let e=getValueAsType(u,ef[l]);if(!c){o=!1;let t=tx[l]||l;i+=`${t}(${e}) `}n&&(t[l]=e)}}return i=i.trim(),n?i=n(t,o?"":i):o&&(i="none"),i}(t,e.transform,n):i.transform&&(i.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:n=0}=a;i.transformOrigin=`${e} ${t} ${n}`}}function transform_origin_calcOrigin(e,t,n){return"string"==typeof e?e:I.transform(t+n*e)}let tS={offset:"stroke-dashoffset",array:"stroke-dasharray"},tA={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGAttrs(e,{attrX:t,attrY:n,attrScale:i,originX:o,originY:a,pathLength:s,pathSpacing:l=1,pathOffset:u=0,...c},d,h){if(buildHTMLStyles(e,c,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(void 0!==o||void 0!==a||p.transform)&&(p.transformOrigin=function(e,t,n){let i=transform_origin_calcOrigin(t,e.x,e.width),o=transform_origin_calcOrigin(n,e.y,e.height);return`${i} ${o}`}(m,void 0!==o?o:.5,void 0!==a?a:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==i&&(f.scale=i),void 0!==s&&function(e,t,n=1,i=0,o=!0){e.pathLength=1;let a=o?tS:tA;e[a.offset]=I.transform(-i);let s=I.transform(t),l=I.transform(n);e[a.array]=`${s} ${l}`}(f,s,l,u,!1)}let isSVGTag=e=>"string"==typeof e&&"svg"===e.toLowerCase(),tP={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps:scrape_motion_values_scrapeMotionValuesFromProps,createRenderState:createSvgRenderState,onMount:(e,t,{renderState:n,latestValues:i})=>{b.read(()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}}),b.render(()=>{buildSVGAttrs(n,i,isSVGTag(t.tagName),e.transformTemplate),renderSVG(t,n)})}})},tT={useVisualState:makeUseVisualState({applyWillChange:!0,scrapeMotionValuesFromProps:scrapeMotionValuesFromProps,createRenderState:createHtmlRenderState})};function copyRawValuesOnly(e,t,n){for(let i in t)isMotionValue(t[i])||isForcedMotionValue(i,n)||
112(e[i]=t[i])}function useHTMLProps(e,t){let n={},i=function(e,t){let n=e.style||{},i={};return copyRawValuesOnly(i,n,e),Object.assign(i,function({transformTemplate:e},t){return(0,eU.useMemo)(()=>{let n=createHtmlRenderState();return buildHTMLStyles(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),i}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.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=i,n}let tC=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 isValidMotionProp(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||tC.has(e)}let shouldForward=e=>!isValidMotionProp(e);try{(p=require("@emotion/is-prop-valid").default)&&(shouldForward=e=>e.startsWith("on")?!isValidMotionProp(e):p(e))}catch(e){}function useSVGProps(e,t,n,i){let o=(0,eU.useMemo)(()=>{let n=createSvgRenderState();return buildSVGAttrs(n,t,isSVGTag(i),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};copyRawValuesOnly(t,e.style,e),o.style={...t,...o.style}}return o}let tE={current:null},tR={current:!1},t_=new WeakMap,tM=[...K,en,el],findValueType=e=>tM.find(testValueType(e)),tk=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let VisualElement=class VisualElement{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},s={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=KeyframeResolver,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=eg.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,b.render(this.render,!1,!0))};let{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!o,this.isControllingVariants=isControllingVariants(t),this.isVariantNode=isVariantNode(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!==l[e]&&isMotionValue(t)&&t.set(l[e],!1)}}mount(e){this.current=e,t_.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)),tR.current||function(){if(tR.current=!0,tm.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),setReducedMotionPreferences=()=>tE.current=e.matches;e.addListener(setReducedMotionPreferences),setReducedMotionPreferences()}else tE.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||tE.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in t_.delete(this.current),this.projection&&this.projection.unmount(),x(this.notifyUpdate),x(this.render),this.valueSubscriptions.forEach(e
112=>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 i=l.has(e),o=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&b.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),a=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{o(),a(),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 tp){let t=tp[e];if(!t)continue;let{isEnabled:n,Feature:i}=t;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(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):createBox()}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<tk.length;t++){let n=tk[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i="on"+n,o=e[i];o&&(this.propEventSubscriptions[n]=this.on(n,o))}this.prevMotionValues=function(e,t,n){for(let i in t){let o=t[i],a=n[i];if(isMotionValue(o))e.addValue(i,o);else if(isMotionValue(a))e.addValue(i,motionValue(o,{owner:e}));else if(a!==o){if(e.hasValue(i)){let t=e.getValue(i);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{let t=e.getStaticValue(i);e.addValue(i,motionValue(void 0!==t?t:o,{owner:e}))}}}for(let i in n)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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=motionValue(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let i=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=i&&("string"==typeof i&&(isNumericalString(i)||isZeroValueString(i))?i=parseFloat(i):!findValueType(i)&&el.test(t)&&(i=animatable_none_getAnimatableNone(e,t)),this.setBaseTarget(e,isMotionValue(i)?i.get():i)),isMotionValue(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let n;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let o=resolveVariantFromProps(this.props,i,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(n=o[e])}if(i&&void 0!==n)return n;let o=this.getBaseTargetFromProps(this.props,e);return void 0===o||isMotionValue(o)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new SubscriptionManager),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}};let DOMVisualElement=class DOMVisualElement extends VisualElement{constructor(){super(...arguments),this.KeyframeResolver=DOMKeyframesResolver}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]}};let HTMLVisualElement=class HTMLVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=renderHTML}readValueFromInstance(e,t){if(l.has(t)){let e=getDefaultValueType(t);return e&&e.default||0}{let n=window.getComputedStyle(e),i=(_(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return measureViewportBox(e,t)}build(e,t,n){buildHTMLStyles(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return scrapeMotionValuesFromProps(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;isMotionValue(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}};let SVGVisualElement=class SVGVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=createBox}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(l.has(t)){let e=getDefaultValueType(t);return e&&e.default||0}return t=ty.has(t)?t:camelToDash(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return scrape_motion_values_scrapeMotionValuesFromProps(e,t,n)}
112build(e,t,n){buildSVGAttrs(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,i){renderSVG(e,t,n,i)}mount(e){this.isSVGTag=isSVGTag(e.tagName),super.mount(e)}};let tV=(m={animation:{Feature:class extends Feature{constructor(e){super(e),e.animationState||(e.animationState=function(e){let animate=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t)){let o=t.map(t=>animateVariant(e,t,n));i=Promise.all(o)}else if("string"==typeof t)i=animateVariant(e,t,n);else{let o="function"==typeof t?resolveVariant(e,t,n.custom):t;i=Promise.all(animateTarget(e,o,n))}return i.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),t=createState(),n=!0,buildResolvedTypeValues=t=>(n,i)=>{var o;let a=resolveVariant(e,i,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(a){let{transition:e,transitionEnd:t,...i}=a;n={...n,...i,...t}}return n};function animateChanges(i){let{props:o}=e,s=function getVariantContext(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&getVariantContext(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<eL;n++){let i=a[n],o=e.props[i];(isVariantLabel(o)||!1===o)&&(t[i]=o)}return t}(e.parent)||{},l=[],u=new Set,c={},d=1/0;for(let a=0;a<ej;a++){var h;let f=eN[a],p=t[f],m=void 0!==o[f]?o[f]:s[f],g=isVariantLabel(m),v=f===i?p.isActive:null;!1===v&&(d=a);let y=m===s[f]&&m!==o[f]&&g;if(y&&n&&e.manuallyAnimateOnMount&&(y=!1),p.protectedKeys={...c},!p.isActive&&null===v||!m&&!p.prevProp||isAnimationControls(m)||"boolean"==typeof m)continue;let b=(h=p.prevProp,"string"==typeof m?m!==h:!!Array.isArray(m)&&!shallowCompare(m,h)),x=b||f===i&&p.isActive&&!y&&g||a>d&&g,w=!1,S=Array.isArray(m)?m:[m],A=S.reduce(buildResolvedTypeValues(f),{});!1===v&&(A={});let{prevResolvedValues:P={}}=p,T={...P,...A},markToAnimate=t=>{x=!0,u.has(t)&&(w=!0,u.delete(t)),p.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=A[e],n=P[e];if(!c.hasOwnProperty(e))(isKeyframesTarget(t)&&isKeyframesTarget(n)?shallowCompare(t,n):t===n)?void 0!==t&&u.has(e)?markToAnimate(e):p.protectedKeys[e]=!0:null!=t?markToAnimate(e):u.add(e)}p.prevProp=m,p.prevResolvedValues=A,p.isActive&&(c={...c,...A}),n&&e.blockInitialAnimation&&(x=!1);let C=y&&b,E=!C||w;x&&E&&l.push(...S.map(e=>({animation:e,options:{type:f}})))}if(u.size){let t={};u.forEach(n=>{let i=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=null!=i?i:null}),l.push({animation:t})}let f=!!l.length;return n&&(!1===o.initial||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),n=!1,f?animate(l):Promise.resolve()}return{animateChanges,setActive:function(n,i){var o;if(t[n].isActive===i)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(e=>{var t;return null===(t=e.animationState)||void 0===t?void 0:t.setActive(n,i)}),t[n].isActive=i;let a=animateChanges(n);for(let e in t)t[e].protectedKeys={};return a},setAnimateFunction:function(t){animate=t(e)},getState:()=>t,reset:()=>{t=createState(),n=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();isAnimationControls(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)||void 0===e||e.call(this)}}},exit:{Feature:class extends Feature{constructor(){super(...arguments),this.id=eI++}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 i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:i="some",once:o}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:ts[i]};return function(e,t,n){let i=function({root:e,...t}){let n=e||document;ta.has(n)||ta.set(n,{});let i=ta.get(n),o=JSON.stringify(t);return i[o]||(i[o]=new IntersectionObserver(fireAllObserverCallbacks,{root:e,...t})),i[o]}(t);return to.set(e,n),i.observe(e),()=>{to.delete(e),i.unobserve(e)}}(this.node.current,a,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,o&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),a=t?n:i;a&&a(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node,n=["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Feature{constructor(){super(...arguments),this.removeStartListeners=v.Z,this.removeEndListeners=v.Z,this.removeAccessibleListeners=v.Z,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let n=this.node.getProps(),i=addPointerEvent(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:i,globalTapTarget:o}=this.node.getProps(),a=o||isNodeOrChild(this.node.current,e.target)?n:i;a&&b.update(()=>a(e,t))},{passive:!(n.onTap||n.onPointerUp)}),o=addPointerEvent(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=pipe(i,o),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=addDomEvent(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=addD
112omEvent(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&fireSyntheticPointerEvent("up",(e,t)=>{let{onTap:n}=this.node.getProps();n&&b.postRender(()=>n(e,t))})}),fireSyntheticPointerEvent("down",(e,t)=>{this.startPress(e,t)}))}),t=addDomEvent(this.node.current,"blur",()=>{this.isPressing&&fireSyntheticPointerEvent("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=pipe(e,t)}}startPress(e,t){this.isPressing=!0;let{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&b.postRender(()=>n(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;let e=this.node.getProps();return e.whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!isDragActive()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&b.postRender(()=>n(e,t))}mount(){let e=this.node.getProps(),t=addPointerEvent(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=addDomEvent(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=pipe(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Feature{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=pipe(addDomEvent(this.node.current,"focus",()=>this.onFocus()),addDomEvent(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Feature{mount(){this.unmount=pipe(addHoverEvent(this.node,!0),addHoverEvent(this.node,!1))}unmount(){}}},pan:{Feature:class extends Feature{constructor(){super(...arguments),this.removePointerDownListener=v.Z}onPointerDown(e){this.session=new PanSession(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:getContextWindow(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:asyncHandler(e),onStart:asyncHandler(t),onMove:n,onEnd:(e,t)=>{delete this.session,i&&b.postRender(()=>i(e,t))}}}mount(){this.removePointerDownListener=addPointerEvent(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Feature{constructor(e){super(e),this.removeGroupControls=v.Z,this.removeListeners=v.Z,this.controls=new VisualElementDragControls(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||v.Z}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:ti,MeasureLayout:MeasureLayout},layout:{ProjectionNode:ti,MeasureLayout:MeasureLayout}},g=(e,t)=>isSVGComponent(e)?new SVGVisualElement(t):new HTMLVisualElement(t,{allowProjection:e!==eU.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){let n=isSVGComponent(e)?tP:tT,i={...n,preloadedFeatures:m,useRender:function(e=!1){return(t,n,i,{latestValues:o},a)=>{let s=isSVGComponent(t)?useSVGProps:useHTMLProps,l=s(n,o,a,t),u=function(e,t,n){let i={};for(let o in e)("values"!==o||"object"!=typeof e.values)&&(shouldForward(o)||!0===n&&isValidMotionProp(o)||!t&&!isValidMotionProp(o)||e.draggable&&o.startsWith("onDrag"))&&(i[o]=e[o]);return i}(n,"string"==typeof t,e),c=t!==eU.Fragment?{...u,...l,ref:i}:{},{children:d}=n,h=(0,eU.useMemo)(()=>isMotionValue(d)?d.get():d,[d]);return(0,eU.createElement)(t,{...c,children:h})}}(t),createVisualElement:g,Component:e};return function({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:o}){e&&function(e){for(let t in e)tp[t]={...tp[t],...e[t]}}(e);let a=(0,eU.forwardRef)(function(e,a){var s;let l;let u={...(0,eU.useContext)(tl._),...e,layoutId:function({layoutId:e}){let t=(0,eU.useContext)(e$.p).id;return t&&void 0!==e?t+"-"+e:e}(e)},{isStatic:c}=u,d=function(e){let{initial:t,animate:n}=function(e,t){if(isControllingVariants(e)){let{initial:t,animate:n}=e;return{initial:!1===t||isVariantLabel(t)?t:void 0,animate:isVariantLabel(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,eU.useContext)(tu));return(0,eU.useMemo)(()=>({initial:t,animate:n}),[variantLabelsAsDependency(t),variantLabelsAsDependency(n)])}(e),h=i(e,c);if(!c&&tm.j){(0,eU.useContext)(td).strict;let e=function(e){let{drag:t,layout:n}=tp;if(!t&&!n)return{};let i={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}
112(u);l=e.MeasureLayout,d.visualElement=function(e,t,n,i,o){var a;let{visualElement:s}=(0,eU.useContext)(tu),l=(0,eU.useContext)(td),u=(0,eU.useContext)(eH.O),c=(0,eU.useContext)(tl._).reducedMotion,d=(0,eU.useRef)();i=i||l.renderer,!d.current&&i&&(d.current=i(e,{visualState:t,parent:s,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}));let h=d.current,f=(0,eU.useContext)(eK);h&&!h.projection&&o&&("html"===h.type||"svg"===h.type)&&function(e,t,n,i){let{layoutId:o,layout:a,drag:s,dragConstraints:l,layoutScroll:u,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function getClosestProjectingNode(e){if(e)return!1!==e.options.allowProjection?e.projection:getClosestProjectingNode(e.parent)}(e.parent)),e.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:!!s||l&&isRefObject(l),visualElement:e,animationType:"string"==typeof a?a:"both",initialPromotionConfig:i,layoutScroll:u,layoutRoot:c})}(d.current,n,o,f),(0,eU.useInsertionEffect)(()=>{h&&h.update(n,u)});let p=n[eO],m=(0,eU.useRef)(!!p&&!window.MotionHandoffIsComplete&&(null===(a=window.MotionHasOptimisedAnimation)||void 0===a?void 0:a.call(window,p)));return(0,tc.L)(()=>{h&&(h.updateFeatures(),eY.render(h.render),m.current&&h.animationState&&h.animationState.animateChanges())}),(0,eU.useEffect)(()=>{h&&(!m.current&&h.animationState&&h.animationState.animateChanges(),m.current=!1,th||(th=!0,queueMicrotask(completeHandoff)))}),h}(o,h,u,t,e.ProjectionNode)}return(0,ez.jsxs)(tu.Provider,{value:d,children:[l&&d.visualElement?(0,ez.jsx)(l,{visualElement:d.visualElement,...u}):null,n(o,e,(s=d.visualElement,(0,eU.useCallback)(e=>{e&&h.mount&&h.mount(e),s&&(e?s.mount(e):s.unmount()),a&&("function"==typeof a?a(e):isRefObject(a)&&(a.current=e))},[s])),h,c,d.visualElement)]})});return a[tg]=o,a}(i)}),tD=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(n,i)=>"create"===i?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}(tV)},6567:function(e,t,n){"use strict";n.d(t,{K:function(){return o},k:function(){return a}});var i=n(6977);let o=i.Z,a=i.Z},6613:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});let i="undefined"!=typeof window},6977:function(e,t,n){"use strict";n.d(t,{Z:function(){return noop}});let noop=e=>e},961:function(e,t,n){"use strict";n.d(t,{h:function(){return useConstant}});var i=n(2265);function useConstant(e){let t=(0,i.useRef)(null);return null===t.current&&(t.current=e()),t.current}},6165:function(e,t,n){"use strict";n.d(t,{Y:function(){return useInView}});var i=n(2265),o=n(6567);let a={some:0,all:1};function useInView(e,{root:t,margin:n,amount:s,once:l=!1}={}){let[u,c]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!e.current||l&&u)return;let i={root:t&&t.current||void 0,margin:n,amount:s};return function(e,t,{root:n,margin:i,amount:s="some"}={}){let l=function(e,t,n){var i;if("string"==typeof e){let a=document;t&&((0,o.k)(!!t.current,"Scope provided, but no element detected."),a=t.current),n?(null!==(i=n[e])&&void 0!==i||(n[e]=a.querySelectorAll(e)),e=n[e]):e=a.querySelectorAll(e)}else e instanceof Element&&(e=[e]);return Array.from(e||[])}(e),u=new WeakMap,c=new IntersectionObserver(e=>{e.forEach(e=>{let n=u.get(e.target);if(!!n!==e.isIntersecting){if(e.isIntersecting){let n=t(e);"function"==typeof n?u.set(e.target,n):c.unobserve(e.target)}else n&&(n(e),u.delete(e.target))}})},{root:n,rootMargin:i,threshold:"number"==typeof s?s:a[s]});return l.forEach(e=>c.observe(e)),()=>c.disconnect()}(e.current,()=>(c(!0),l?void 0:()=>c(!1)),i)},[t,e,n,l,s]),u}},538:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var i=n(2265),o=n(6613);let a=o.j?i.useLayoutEffect:i.useEffect},4769:function(e,t,n){"use strict";n.d(t,{m6:function(){return g}});let createClassGroupUtils=e=>{let t=createClassMap(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:e=>{let n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),getGroupRecursive(n,t)||getGroupIdForArbitraryProperty(e)},getConflictingClassGroupIds:(e,t)=>{let o=n[e]||[];return t&&i[e]?[...o,...i[e]]:o}}},getGroupRecursive=(e,t)=>
112{if(0===e.length)return t.classGroupId;let n=e[0],i=t.nextPart.get(n),o=i?getGroupRecursive(e.slice(1),i):void 0;if(o)return o;if(0===t.validators.length)return;let a=e.join("-");return t.validators.find(({validator:e})=>e(a))?.classGroupId},i=/^\[(.+)\]$/,getGroupIdForArbitraryProperty=e=>{if(i.test(e)){let t=i.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},createClassMap=e=>{let{theme:t,prefix:n}=e,i={nextPart:new Map,validators:[]},o=getPrefixedClassGroupEntries(Object.entries(e.classGroups),n);return o.forEach(([e,n])=>{processClassesRecursively(n,i,e,t)}),i},processClassesRecursively=(e,t,n,i)=>{e.forEach(e=>{if("string"==typeof e){let i=""===e?t:getPart(t,e);i.classGroupId=n;return}if("function"==typeof e){if(isThemeGetter(e)){processClassesRecursively(e(i),t,n,i);return}t.validators.push({validator:e,classGroupId:n});return}Object.entries(e).forEach(([e,o])=>{processClassesRecursively(o,getPart(t,e),n,i)})})},getPart=(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},isThemeGetter=e=>e.isThemeGetter,getPrefixedClassGroupEntries=(e,t)=>t?e.map(([e,n])=>{let i=n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e);return[e,i]}):e,createLruCache=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,i=new Map,update=(o,a)=>{n.set(o,a),++t>e&&(t=0,i=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=i.get(e))?(update(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):update(e,t)}}},createParseClassName=e=>{let{separator:t,experimentalParseClassName:n}=e,i=1===t.length,o=t[0],a=t.length,parseClassName=e=>{let n;let s=[],l=0,u=0;for(let c=0;c<e.length;c++){let d=e[c];if(0===l){if(d===o&&(i||e.slice(c,c+a)===t)){s.push(e.slice(u,c)),u=c+a;continue}if("/"===d){n=c;continue}}"["===d?l++:"]"===d&&l--}let c=0===s.length?e:e.substring(u),d=c.startsWith("!"),h=d?c.substring(1):c,f=n&&n>u?n-u:void 0;return{modifiers:s,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:f}};return n?e=>n({className:e,parseClassName}):parseClassName},sortModifiers=e=>{if(e.length<=1)return e;let t=[],n=[];return e.forEach(e=>{let i="["===e[0];i?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},createConfigUtils=e=>({cache:createLruCache(e.cacheSize),parseClassName:createParseClassName(e),...createClassGroupUtils(e)}),o=/\s+/,mergeClassList=(e,t)=>{let{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:a}=t,s=[],l=e.trim().split(o),u="";for(let e=l.length-1;e>=0;e-=1){let t=l[e],{modifiers:o,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:h}=n(t),f=!!h,p=i(f?d.substring(0,h):d);if(!p){if(!f||!(p=i(d))){u=t+(u.length>0?" "+u:u);continue}f=!1}let m=sortModifiers(o).join(":"),g=c?m+"!":m,v=g+p;if(s.includes(v))continue;s.push(v);let y=a(p,f);for(let e=0;e<y.length;++e){let t=y[e];s.push(g+t)}u=t+(u.length>0?" "+u:u)}return u};function twJoin(){let e,t,n=0,i="";for(;n<arguments.length;)(e=arguments[n++])&&(t=toValue(e))&&(i&&(i+=" "),i+=t);return i}let toValue=e=>{let t;if("string"==typeof e)return e;let n="";for(let i=0;i<e.length;i++)e[i]&&(t=toValue(e[i]))&&(n&&(n+=" "),n+=t);return n},fromTheme=e=>{let themeGetter=t=>t[e]||[];return themeGetter.isThemeGetter=!0,themeGetter},a=/^\[(?:([a-z-]+):)?(.+)\]$/i,s=/^\d+\/\d+$/,l=new Set(["px","full","screen"]),u=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,c=/\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$/,d=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,h=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,f=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isLength=e=>isNumber(e)||l.has(e)||s.test(e),isArbitraryLength=e=>getIsArbitraryValue(e,"length",isLengthOnly),isNumber=e=>!!e&&!Number.isNaN(Number(e)),isArbitraryNumber=e=>getIsArbitraryValue(e,"number",isNumber),isInteger=e=>!!e&&Number.isInteger(Number(e)),isPercent=e=>e.endsWith("%")&&isNumber(e.slice(0,-1)),isArbitraryValue=e=>a.test(e),isTshirtSize=e=>u.test(e),p=new Set(["length","size","percentage"]),isArbitrarySize=e=>getIsArbitraryValue(e,p,isNever),isArbitraryPosition=e=>getIsArbitraryValue(e,"position",isNever),m=new Set(["image","url"]),isArbitraryImage=e=>getIsArbitraryValue(e,m,isImage),isArbitraryShadow=e=>getIsArbitraryValue(e,"",isShadow),isAny=()=>
112!0,getIsArbitraryValue=(e,t,n)=>{let i=a.exec(e);return!!i&&(i[1]?"string"==typeof t?i[1]===t:t.has(i[1]):n(i[2]))},isLengthOnly=e=>c.test(e)&&!d.test(e),isNever=()=>!1,isShadow=e=>h.test(e),isImage=e=>f.test(e),g=function(e){let t,n,i;let functionToCall=function(o){let a=[].reduce((e,t)=>t(e),e());return n=(t=createConfigUtils(a)).cache.get,i=t.cache.set,functionToCall=tailwindMerge,tailwindMerge(o)};function tailwindMerge(e){let o=n(e);if(o)return o;let a=mergeClassList(e,t);return i(e,a),a}return function(){return functionToCall(twJoin.apply(null,arguments))}}(()=>{let e=fromTheme("colors"),t=fromTheme("spacing"),n=fromTheme("blur"),i=fromTheme("brightness"),o=fromTheme("borderColor"),a=fromTheme("borderRadius"),s=fromTheme("borderSpacing"),l=fromTheme("borderWidth"),u=fromTheme("contrast"),c=fromTheme("grayscale"),d=fromTheme("hueRotate"),h=fromTheme("invert"),f=fromTheme("gap"),p=fromTheme("gradientColorStops"),m=fromTheme("gradientColorStopPositions"),g=fromTheme("inset"),v=fromTheme("margin"),y=fromTheme("opacity"),b=fromTheme("padding"),x=fromTheme("saturate"),w=fromTheme("scale"),S=fromTheme("sepia"),A=fromTheme("skew"),P=fromTheme("space"),T=fromTheme("translate"),getOverscroll=()=>["auto","contain","none"],getOverflow=()=>["auto","hidden","clip","visible","scroll"],getSpacingWithAutoAndArbitrary=()=>["auto",isArbitraryValue,t],getSpacingWithArbitrary=()=>[isArbitraryValue,t],getLengthWithEmptyAndArbitrary=()=>["",isLength,isArbitraryLength],getNumberWithAutoAndArbitrary=()=>["auto",isNumber,isArbitraryValue],getPositions=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],getLineStyles=()=>["solid","dashed","dotted","double","none"],getBlendModes=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],getAlign=()=>["start","end","center","between","around","evenly","stretch"],getZeroAndEmpty=()=>["","0",isArbitraryValue],getBreaks=()=>["auto","avoid","all","avoid-page","page","left","right","column"],getNumberAndArbitrary=()=>[isNumber,isArbitraryValue];return{cacheSize:500,separator:":",theme:{colors:[isAny],spacing:[isLength,isArbitraryLength],blur:["none","",isTshirtSize,isArbitraryValue],brightness:getNumberAndArbitrary(),borderColor:[e],borderRadius:["none","","full",isTshirtSize,isArbitraryValue],borderSpacing:getSpacingWithArbitrary(),borderWidth:getLengthWithEmptyAndArbitrary(),contrast:getNumberAndArbitrary(),grayscale:getZeroAndEmpty(),hueRotate:getNumberAndArbitrary(),invert:getZeroAndEmpty(),gap:getSpacingWithArbitrary(),gradientColorStops:[e],gradientColorStopPositions:[isPercent,isArbitraryLength],inset:getSpacingWithAutoAndArbitrary(),margin:getSpacingWithAutoAndArbitrary(),opacity:getNumberAndArbitrary(),padding:getSpacingWithArbitrary(),saturate:getNumberAndArbitrary(),scale:getNumberAndArbitrary(),sepia:getZeroAndEmpty(),skew:getNumberAndArbitrary(),space:getSpacingWithArbitrary(),translate:getSpacingWithArbitrary()},classGroups:{aspect:[{aspect:["auto","square","video",isArbitraryValue]}],container:["container"],columns:[{columns:[isTshirtSize]}],"break-after":[{"break-after":getBreaks()}],"break-before":[{"break-before":getBreaks()}],"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:[...getPositions(),isArbitraryValue]}],overflow:[{overflow:getOverflow()}],"overflow-x":[{"overflow-x":getOverflow()}],"overflow-y":[{"overflow-y":getOverflow()}],overscroll:[{overscroll:getOverscroll()}],"overscroll-x":[{"overscroll-x":getOverscroll()}],"overscroll-y":[{"overscroll-y":getOverscroll()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}
vendor: 11,356 bytes, line 112
112],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",isInteger,isArbitraryValue]}],basis:[{basis:getSpacingWithAutoAndArbitrary()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",isArbitraryValue]}],grow:[{grow:getZeroAndEmpty()}],shrink:[{shrink:getZeroAndEmpty()}],order:[{order:["first","last","none",isInteger,isArbitraryValue]}],"grid-cols":[{"grid-cols":[isAny]}],"col-start-end":[{col:["auto",{span:["full",isInteger,isArbitraryValue]},isArbitraryValue]}],"col-start":[{"col-start":getNumberWithAutoAndArbitrary()}],"col-end":[{"col-end":getNumberWithAutoAndArbitrary()}],"grid-rows":[{"grid-rows":[isAny]}],"row-start-end":[{row:["auto",{span:[isInteger,isArbitraryValue]},isArbitraryValue]}],"row-start":[{"row-start":getNumberWithAutoAndArbitrary()}],"row-end":[{"row-end":getNumberWithAutoAndArbitrary()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",isArbitraryValue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",isArbitraryValue]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...getAlign()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...getAlign(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...getAlign(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",isArbitraryValue,t]}],"min-w":[{"min-w":[isArbitraryValue,t,"min","max","fit"]}],"max-w":[{"max-w":[isArbitraryValue,t,"none","full","min","max","fit","prose",{screen:[isTshirtSize]},isTshirtSize]}],h:[{h:[isArbitraryValue,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[isArbitraryValue,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[isArbitraryValue,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[isArbitraryValue,t,"auto","min","max","fit"]}],"font-size":[{text:["base",isTshirtSize,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",isArbitraryNumber]}],"font-family":[{font:[isAny]}],"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",isArbitraryValue]}],"line-clamp":[{"line-clamp":["none",isNumber,isArbitraryNumber]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",isLength,isArbitraryValue]}],"list-image":[{"list-image":["none",isArbitraryValue]}],"list-style-type":[{list:["none","disc","decimal",isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...getLineStyles(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",isLength,isArbitraryLength]}],"underline-offset":[{"underline-offset":["auto",isLength,isArbitraryValue]}],"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:getSpacingWithArbitrary()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryValue]}],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",isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...getPositions(),isArbitraryPosition]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitrarySize]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},isArbitraryImage]}],"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:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"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":[y]}],"border-style":[{border:[...getLineStyles(),"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":[y]}],"divide-style":[{divide:getLineStyles()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...getLineStyles()]}],"outline-offset":[{"outline-offset":[isLength,isArbitraryValue]}],"outline-w":[{outline:[isLength,isArbitraryLength]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:getLengthWithEmptyAndArbitrary()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[isLength,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",isTshirtSize,isArbitraryShadow]}],"shadow-color":[{shadow:[isAny]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...getBlendModes(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":getBlendModes()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[i]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",isTshirtSize,isArbitraryValue]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[x]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"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":[y]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"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",isArbitraryValue]}],duration:[{duration:getNumberAndArbitrary()}],ease:[{ease:["linear","in","out","in-out",isArbitraryValue]}],delay:[{delay:getNumberAndArbitrary()}],animate:[{animate:["none","spin","ping","pulse","bounce",isArbitraryValue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[isInteger,isArbitraryValue]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryValue]}],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",isArbitraryValue]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":getSpacingWithArbitrary()}],"scroll-mx":[{"scroll-mx":getSpacingWithArbitrary()}],"scroll-my":[{"scroll-my":getSpacingWithArbitrary()}],"scroll-ms":[{"scroll-ms":getSpacingWithArbitrary()}],"scroll-me":[{"scroll-me":getSpacingWithArbitrary()}],"scroll-mt":[{"scroll-mt":getSpacingWithArbitrary()}],"scroll-mr":[{"scroll-mr":getSpacingWithArbitrary()}],"scroll-mb":[{"scroll-mb":getSpacingWithArbitrary()}],"scroll-ml":[{"scroll-ml":getSpacingWithArbitrary()}],"scroll-p":[{"scroll-p":getSpacingWithArbitrary()}],"scroll-px":[{"scroll-px":getSpacingWithArbitrary()}],"scroll-py":[{"scroll-py":getSpacingWithArbitrary()}],"scroll-ps":[{"scroll-ps":getSpacingWithArbitrary()}],"scroll-pe":[{"scroll-pe":getSpacingWithArbitrary()}],"scroll-pt":[{"scroll-pt":getSpacingWithArbitrary()}],"scroll-pr":[{"scroll-pr":getSpacingWithArbitrary()}],"scroll-pb":[{"scroll-pb":getSpacingWithArbitrary()}],"scroll-pl":[{"scroll-pl":getSpacingWithArbitrary()}],"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"]}
vendor: 2,654 bytes, line 112
112],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",isArbitraryValue]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[isLength,isArbitraryLength,isArbitraryNumber]}],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"]}}})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.