(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5083],{83662:function(t,e,i){"use strict";let n;i.d(e,{Z:function(){return u},_:function(){return l}});let r=t=>t,o=(n=r,{configure(t){n=t},generate:t=>n(t),reset(){n=r}}),s={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function a(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",n=s[e];return n?"".concat(i,"-").concat(n):"".concat(o.generate(t),"-").concat(e)}function l(t){return a("MuiLoadingButton",t)}var u=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",n={};return e.forEach(e=>{n[e]=a(t,e,i)}),n}("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"])},54110:function(t,e,i){"use strict";i.d(e,{Z:function(){return u}});var n=i(14749),r=i(2265),o=i(66937),s=i(92050),a=i(47907),l=i(57437);function u(t){let{options:e,CacheProvider:i=s.C,children:u}=t,[c]=r.useState(()=>{var t;let i=(0,o.Z)((0,n.Z)({},e,{key:null!=(t=null==e?void 0:e.key)?t:"mui"}));i.compat=!0;let r=i.insert,s=[];return i.insert=function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];null!=e&&e.enableCssLayer&&(n[1].styles="@layer mui {".concat(n[1].styles,"}"));let[a,l]=n;return void 0===i.inserted[l.name]&&s.push({name:l.name,isGlobal:!a}),r(...n)},{cache:i,flush:()=>{let t=s;return s=[],t}}});return(0,a.useServerInsertedHTML)(()=>{let t=c.flush();if(0===t.length)return null;let i="",n=c.cache.key,o=[];return t.forEach(t=>{let{name:e,isGlobal:r}=t,s=c.cache.inserted[e];"boolean"!=typeof s&&(r?o.push({name:e,style:s}):(i+=s,n+=" ".concat(e)))}),(0,l.jsxs)(r.Fragment,{children:[o.map(t=>{let{name:i,style:n}=t;return(0,l.jsx)("style",{nonce:null==e?void 0:e.nonce,"data-emotion":"".concat(c.cache.key,"-global ").concat(i),dangerouslySetInnerHTML:{__html:n}},i)}),i&&(0,l.jsx)("style",{nonce:null==e?void 0:e.nonce,"data-emotion":n,dangerouslySetInnerHTML:{__html:i}})]})}),(0,l.jsx)(i,{value:c.cache,children:u})}},83297:function(t,e,i){"use strict";i.d(e,{k:function(){return o}});var n=i(28399),r=i(37520);function o(t){return(0,r.ZP)("MuiAccordion",t)}let s=(0,n.Z)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]);e.Z=s},82815:function(t,e,i){"use strict";i.d(e,{i:function(){return o}});var n=i(28399),r=i(37520);function o(t){return(0,r.ZP)("MuiAccordionSummary",t)}let s=(0,n.Z)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]);e.Z=s},47665:function(t,e,i){"use strict";i.d(e,{t:function(){return o}});var n=i(28399),r=i(37520);function o(t){return(0,r.ZP)("MuiAlert",t)}let s=(0,n.Z)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);e.Z=s},54192:function(t,e,i){"use strict";let n=(0,i(28399).Z)("MuiAvatarGroup",["root","avatar"]);e.Z=n},74270:function(t,e,i){"use strict";i.d(e,{F:function(){return o}});var n=i(28399),r=i(37520);function o(t){return(0,r.ZP)("MuiButton",t)}let s=(0,n.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);e.Z=s},99294:function(t,e,i){"use strict";let n=(0,i(28399).Z)("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]);e.Z=n},70720:function(t,e,i){"use strict";i.d(e,{z:function(){return o}});var n=i(28399),r=i(37520);function o(t){return(0,r.ZP)("MuiChip",t)}let s=(0,n.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);e.Z=s},71739:function(t,e,i){"use strict";i.d(e,{C:function(){return o}});var n=i(28399),r=i(37520);function o(t){return(0,r.ZP)("MuiCircularProgress",t)}let s=(0,n.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);e.Z=s},76516:function(t,e,i){"use strict";i.d(e,{Z:function(){return A}});var n=i(70444),r=i(14749),o=i(2265),s=i(75504),a=i(44680),l=i(78056),u=i(76860),c=i(58836),d=i(93043),h=i(65964),p=i(35985),m=i(368),f=i(43758),g=i(28399),v=i(37520);function y(t){return(0,v.ZP)("MuiCollapse",t)}(0,g.Z)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var x=i(57437);let b=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],P=t=>{let{orientation:e,classes:i}=t;return(0,u.Z)({root:["root","".concat(e)],entered:["entered"],hidden:["hidden"],wrapper:["wrapper","".concat(e)],wrapperInner:["wrapperInner","".concat(e)]},y,i)},S=(0,c.ZP)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:i}=t;return[e.root,e[i.orientation],"entered"===i.state&&e.entered,"exited"===i.state&&!i.in&&"0px"===i.collapsedSize&&e.hidden]}})(t=>{let{theme:e,ownerState:i}=t;return(0,r.Z)({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===i.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===i.state&&(0,r.Z)({height:"auto",overflow:"visible"},"horizontal"===i.orientation&&{width:"auto"}),"exited"===i.state&&!i.in&&"0px"===i.collapsedSize&&{visibility:"hidden"})}),M=(0,c.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(t,e)=>e.wrapper})(t=>{let{ownerState:e}=t;return(0,r.Z)({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"})}),T=(0,c.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(t,e)=>e.wrapperInner})(t=>{let{ownerState:e}=t;return(0,r.Z)({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"})}),w=o.forwardRef(function(t,e){let i=(0,d.Z)({props:t,name:"MuiCollapse"}),{addEndListener:u,children:c,className:g,collapsedSize:v="0px",component:y,easing:w,in:A,onEnter:C,onEntered:E,onEntering:V,onExit:L,onExited:k,onExiting:D,orientation:j="vertical",style:Z,timeout:I=h.x9.standard,TransitionComponent:R=a.ZP}=i,F=(0,n.Z)(i,b),B=(0,r.Z)({},i,{orientation:j,collapsedSize:v}),O=P(B),_=(0,m.Z)(),z=(0,l.Z)(),N=o.useRef(null),W=o.useRef(),U="number"==typeof v?"".concat(v,"px"):v,H="horizontal"===j,G=H?"width":"height",q=o.useRef(null),Y=(0,f.Z)(e,q),X=t=>e=>{if(t){let i=q.current;void 0===e?t(i):t(i,e)}},$=()=>N.current?N.current[H?"clientWidth":"clientHeight"]:0,K=X((t,e)=>{N.current&&H&&(N.current.style.position="absolute"),t.style[G]=U,C&&C(t,e)}),J=X((t,e)=>{let i=$();N.current&&H&&(N.current.style.position="");let{duration:n,easing:r}=(0,p.C)({style:Z,timeout:I,easing:w},{mode:"enter"});if("auto"===I){let e=_.transitions.getAutoHeightDuration(i);t.style.transitionDuration="".concat(e,"ms"),W.current=e}else t.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");t.style[G]="".concat(i,"px"),t.style.transitionTimingFunction=r,V&&V(t,e)}),Q=X((t,e)=>{t.style[G]="auto",E&&E(t,e)}),tt=X(t=>{t.style[G]="".concat($(),"px"),L&&L(t)}),te=X(k),ti=X(t=>{let e=$(),{duration:i,easing:n}=(0,p.C)({style:Z,timeout:I,easing:w},{mode:"exit"});if("auto"===I){let i=_.transitions.getAutoHeightDuration(e);t.style.transitionDuration="".concat(i,"ms"),W.current=i}else t.style.transitionDuration="string"==typeof i?i:"".concat(i,"ms");t.style[G]=U,t.style.transitionTimingFunction=n,D&&D(t)});return(0,x.jsx)(R,(0,r.Z)({in:A,onEnter:K,onEntered:Q,onEntering:J,onExit:tt,onExited:te,onExiting:ti,addEndListener:t=>{"auto"===I&&z.start(W.current||0,t),u&&u(q.current,t)},nodeRef:q,timeout:"auto"===I?null:I},F,{children:(t,e)=>(0,x.jsx)(S,(0,r.Z)({as:y,className:(0,s.Z)(O.root,g,{entered:O.entered,exited:!A&&"0px"===U&&O.hidden}[t]),style:(0,r.Z)({[H?"minWidth":"minHeight"]:U},Z),ref:Y},e,{ownerState:(0,r.Z)({},B,{state:t}),children:(0,x.jsx)(M,{ownerState:(0,r.Z)({},B,{state:t}),className:O.wrapper,ref:N,children:(0,x.jsx)(T,{ownerState:(0,r.Z)({},B,{state:t}),className:O.wrapperInner,children:c})})}))}))});w.muiSupportAuto=!0;var A=w},33269:function(t,e,i){"use strict";var n=i(14749),r=i(2265),o=i(93043),s=i(14288),a=i(57437);let l=(t,e)=>(0,n.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},e&&!t.vars&&{colorScheme:t.palette.mode}),u=t=>(0,n.Z)({color:(t.vars||t).palette.text.primary},t.typography.body1,{backgroundColor:(t.vars||t).palette.background.default,"@media print":{backgroundColor:(t.vars||t).palette.common.white}}),c=function(t){var e;let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={};i&&t.colorSchemes&&Object.entries(t.colorSchemes).forEach(e=>{var i;let[n,o]=e;r[t.getColorSchemeSelector(n).replace(/\s*&/,"")]={colorScheme:null==(i=o.palette)?void 0:i.mode}});let o=(0,n.Z)({html:l(t,i),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:t.typography.fontWeightBold},body:(0,n.Z)({margin:0},u(t),{"&::backdrop":{backgroundColor:(t.vars||t).palette.background.default}})},r),s=null==(e=t.components)||null==(e=e.MuiCssBaseline)?void 0:e.styleOverrides;return s&&(o=[o,s]),o};e.ZP=function(t){let{children:e,enableColorScheme:i=!1}=(0,o.Z)({props:t,name:"MuiCssBaseline"});return(0,a.jsxs)(r.Fragment,{children:[(0,a.jsx)(s.Z,{styles:t=>c(t,i)}),e]})}},84935:function(t,e,i){"use strict";i.d(e,{N:function(){return o}});var n=i(28399),r=i(37520);function o(t){return(0,r.ZP)("MuiFab",t)}let s=(0,n.Z)("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]);e.Z=s},18247:function(t,e,i){"use strict";i.d(e,{e:function(){return o}});var n=i(28399),r=i(37520);function o(t){return(0,r.ZP)("MuiFormControl",t)}let s=(0,n.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);e.Z=s},14288:function(t,e,i){"use strict";i.d(e,{Z:function(){return c}});var n=i(14749);i(2265);var r=i(56286),o=i(42743),s=i(57437),a=function(t){let{styles:e,themeId:i,defaultTheme:n={}}=t,a=(0,o.Z)(n),l="function"==typeof e?e(i&&a[i]||a):e;return(0,s.jsx)(r.Z,{styles:l})},l=i(74106),u=i(11335),c=function(t){return(0,s.jsx)(a,(0,n.Z)({},t,{defaultTheme:l.Z,themeId:u.Z}))}},87814:function(t,e,i){"use strict";i.d(e,{Y:function(){return o}});var n=i(28399),r=i(37520);function o(t){return(0,r.ZP)("MuiInputLabel",t)}let s=(0,n.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);e.Z=s},69670:function(t,e,i){"use strict";i.d(e,{E:function(){return o}});var n=i(28399),r=i(37520);function o(t){return(0,r.ZP)("MuiLinearProgress",t)}let s=(0,n.Z)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);e.Z=s},92293:function(t,e,i){"use strict";i.d(e,{Z:function(){return C}});var n=i(70444),r=i(14749),o=i(2265),s=i(75504),a=i(76860),l=i(95135),u=i(58836),c=i(93043),d=i(86170),h=i(43758),p=i(18087),m=i(28399),f=i(37520);function g(t){return(0,f.ZP)("MuiLink",t)}let v=(0,m.Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var y=i(9957),x=i(41869);let b={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},P=t=>b[t]||t;var S=t=>{let{theme:e,ownerState:i}=t,n=P(i.color),r=(0,y.DW)(e,"palette.".concat(n),!1)||i.color,o=(0,y.DW)(e,"palette.".concat(n,"Channel"));return"vars"in e&&o?"rgba(".concat(o," / 0.4)"):(0,x.Fq)(r,.4)},M=i(57437);let T=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],w=t=>{let{classes:e,component:i,focusVisible:n,underline:r}=t,o={root:["root","underline".concat((0,l.Z)(r)),"button"===i&&"button",n&&"focusVisible"]};return(0,a.Z)(o,g,e)},A=(0,u.ZP)(p.Z,{name:"MuiLink",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:i}=t;return[e.root,e["underline".concat((0,l.Z)(i.underline))],"button"===i.component&&e.button]}})(t=>{let{theme:e,ownerState:i}=t;return(0,r.Z)({},"none"===i.underline&&{textDecoration:"none"},"hover"===i.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===i.underline&&(0,r.Z)({textDecoration:"underline"},"inherit"!==i.color&&{textDecorationColor:S({theme:e,ownerState:i})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===i.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(v.focusVisible)]:{outline:"auto"}})});var C=o.forwardRef(function(t,e){let i=(0,c.Z)({props:t,name:"MuiLink"}),{className:a,color:l="primary",component:u="a",onBlur:p,onFocus:m,TypographyClasses:f,underline:g="always",variant:v="inherit",sx:y}=i,x=(0,n.Z)(i,T),{isFocusVisibleRef:P,onBlur:S,onFocus:C,ref:E}=(0,d.Z)(),[V,L]=o.useState(!1),k=(0,h.Z)(e,E),D=(0,r.Z)({},i,{color:l,component:u,focusVisible:V,underline:g,variant:v}),j=w(D);return(0,M.jsx)(A,(0,r.Z)({color:l,className:(0,s.Z)(j.root,a),classes:f,component:u,onBlur:t=>{S(t),!1===P.current&&L(!1),p&&p(t)},onFocus:t=>{C(t),!0===P.current&&L(!0),m&&m(t)},ref:k,ownerState:D,variant:v,sx:[...Object.keys(b).includes(l)?[]:[{color:l}],...Array.isArray(y)?y:[y]]},x))})},18347:function(t,e,i){"use strict";i.d(e,{z:function(){return o}});var n=i(28399),r=i(37520);function o(t){return(0,r.ZP)("MuiList",t)}let s=(0,n.Z)("MuiList",["root","padding","dense","subheader"]);e.Z=s},82112:function(t,e,i){"use strict";i.d(e,{f:function(){return o}});var n=i(28399),r=i(37520);function o(t){return(0,r.ZP)("MuiListItemIcon",t)}let s=(0,n.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);e.Z=s},73185:function(t,e,i){"use strict";let n=(0,i(28399).Z)("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]);e.Z=n},61328:function(t,e,i){"use strict";let n=(0,i(28399).Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);e.Z=n},71512:function(t,e,i){"use strict";let n=(0,i(28399).Z)("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]);e.Z=n},35896:function(t,e,i){"use strict";i.d(e,{k:function(){return o}});var n=i(28399),r=i(37520);function o(t){return(0,r.ZP)("MuiSlider",t)}let s=(0,n.Z)("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);e.Z=s},40611:function(t,e,i){"use strict";i.d(e,{H:function(){return o}});var n=i(28399),r=i(37520);function o(t){return(0,r.ZP)("MuiSwitch",t)}let s=(0,n.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);e.Z=s},34387:function(t,e,i){"use strict";i.d(e,{V:function(){return o}});var n=i(28399),r=i(37520);function o(t){return(0,r.ZP)("MuiTab",t)}let s=(0,n.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);e.Z=s},2699:function(t,e,i){"use strict";i.d(e,{U:function(){return o}});var n=i(28399),r=i(37520);function o(t){return(0,r.ZP)("MuiTableCell",t)}let s=(0,n.Z)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);e.Z=s},63094:function(t,e,i){"use strict";i.d(e,{G:function(){return o}});var n=i(28399),r=i(37520);function o(t){return(0,r.ZP)("MuiTableRow",t)}let s=(0,n.Z)("MuiTableRow",["root","selected","hover","head","footer"]);e.Z=s},23971:function(t,e,i){"use strict";let n=(0,i(28399).Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]);e.Z=n},7155:function(t,e,i){"use strict";i.d(e,{Z:function(){return y}});var n=i(14749),r=i(70444),o=i(2265);let s=o.createContext(null);function a(){return o.useContext(s)}var l="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",u=i(57437),c=function(t){let{children:e,theme:i}=t,r=a(),c=o.useMemo(()=>{let t=null===r?i:"function"==typeof i?i(r):(0,n.Z)({},r,i);return null!=t&&(t[l]=null!==r),t},[i,r]);return(0,u.jsx)(s.Provider,{value:c,children:e})},d=i(92050),h=i(61733);let p={};function m(t,e,i){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return o.useMemo(()=>{let o=t&&e[t]||e;if("function"==typeof i){let s=i(o),a=t?(0,n.Z)({},e,{[t]:s}):s;return r?()=>a:a}return t?(0,n.Z)({},e,{[t]:i}):(0,n.Z)({},e,i)},[t,e,i,r])}var f=function(t){let{children:e,theme:i,themeId:n}=t,r=(0,h.Z)(p),o=a()||p,s=m(n,r,i),l=m(n,o,i,!0);return(0,u.jsx)(c,{theme:l,children:(0,u.jsx)(d.T.Provider,{value:s,children:e})})},g=i(11335);let v=["theme"];function y(t){let{theme:e}=t,i=(0,r.Z)(t,v),o=e[g.Z];return(0,u.jsx)(f,(0,n.Z)({},i,{themeId:o?g.Z:void 0,theme:o||e}))}},82495:function(t,e,i){"use strict";i.d(e,{$n:function(){return c},Fq:function(){return l},_j:function(){return u}});var n=i(76064),r=i(13264);function o(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,r.Z)(t,e,i)}function s(t){let e;if(t.type)return t;if("#"===t.charAt(0))return s(function(t){t=t.slice(1);let e=RegExp(".{1,".concat(t.length>=6?2:1,"}"),"g"),i=t.match(e);return i&&1===i[0].length&&(i=i.map(t=>t+t)),i?"rgb".concat(4===i.length?"a":"","(").concat(i.map((t,e)=>e<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3).join(", "),")"):""}(t));let i=t.indexOf("("),r=t.substring(0,i);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw Error((0,n.Z)(9,t));let o=t.substring(i+1,t.length-1);if("color"===r){if(e=(o=o.split(" ")).shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(e))throw Error((0,n.Z)(10,e))}else o=o.split(",");return{type:r,values:o=o.map(t=>parseFloat(t)),colorSpace:e}}function a(t){let{type:e,colorSpace:i}=t,{values:n}=t;return -1!==e.indexOf("rgb")?n=n.map((t,e)=>e<3?parseInt(t,10):t):-1!==e.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),n=-1!==e.indexOf("color")?"".concat(i," ").concat(n.join(" ")):"".concat(n.join(", ")),"".concat(e,"(").concat(n,")")}function l(t,e){return t=s(t),e=o(e),("rgb"===t.type||"hsl"===t.type)&&(t.type+="a"),"color"===t.type?t.values[3]="/".concat(e):t.values[3]=e,a(t)}function u(t,e){if(t=s(t),e=o(e),-1!==t.type.indexOf("hsl"))t.values[2]*=1-e;else if(-1!==t.type.indexOf("rgb")||-1!==t.type.indexOf("color"))for(let i=0;i<3;i+=1)t.values[i]*=1-e;return a(t)}function c(t,e){if(t=s(t),e=o(e),-1!==t.type.indexOf("hsl"))t.values[2]+=(100-t.values[2])*e;else if(-1!==t.type.indexOf("rgb"))for(let i=0;i<3;i+=1)t.values[i]+=(255-t.values[i])*e;else if(-1!==t.type.indexOf("color"))for(let i=0;i<3;i+=1)t.values[i]+=(1-t.values[i])*e;return a(t)}},26016:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let n=i(57437),r=i(2265);e.default=function(t){let{html:e,height:i=null,width:o=null,children:s,dataNtpc:a=""}=t;return(0,r.useEffect)(()=>{a&&performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-".concat(a)}})},[a]),(0,n.jsxs)(n.Fragment,{children:[s,e?(0,n.jsx)("div",{style:{height:null!=i?"".concat(i,"px"):"auto",width:null!=o?"".concat(o,"px"):"auto"},"data-ntpc":a,dangerouslySetInnerHTML:{__html:e}}):null]})}},91845:function(t,e,i){"use strict";var n;let r;Object.defineProperty(e,"__esModule",{value:!0}),e.sendGAEvent=e.GoogleAnalytics=void 0;let o=i(57437),s=i(2265),a=(n=i(54983))&&n.__esModule?n:{default:n};e.GoogleAnalytics=function(t){let{gaId:e,dataLayerName:i="dataLayer"}=t;return void 0===r&&(r=i),(0,s.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:"\n          window['".concat(i,"'] = window['").concat(i,"'] || [];\n          function gtag(){window['").concat(i,"'].push(arguments);}\n          gtag('js', new Date());\n\n          gtag('config', '").concat(e,"');")}}),(0,o.jsx)(a.default,{id:"_next-ga",src:"https://www.googletagmanager.com/gtag/js?id=".concat(e)})]})},e.sendGAEvent=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];if(void 0===r){console.warn("@next/third-parties: GA has not been initialized");return}window[r]?window[r].push(arguments):console.warn("@next/third-parties: GA dataLayer ".concat(r," does not exist"))}},37388:function(t,e,i){"use strict";var n;let r;Object.defineProperty(e,"__esModule",{value:!0}),e.sendGTMEvent=e.GoogleTagManager=void 0;let o=i(57437),s=i(2265),a=(n=i(54983))&&n.__esModule?n:{default:n};e.GoogleTagManager=function(t){let{gtmId:e,dataLayerName:i="dataLayer",auth:n,preview:l,dataLayer:u}=t;void 0===r&&(r=i);let c="dataLayer"!==i?"&l=".concat(i):"";return(0,s.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:"\n      (function(w,l){\n        w[l]=w[l]||[];\n        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});\n        ".concat(u?"w[l].push(".concat(JSON.stringify(u),")"):"","\n      })(window,'").concat(i,"');")}}),(0,o.jsx)(a.default,{id:"_next-gtm","data-ntpc":"GTM",src:"https://www.googletagmanager.com/gtm.js?id=".concat(e).concat(c).concat(n?"&gtm_auth=".concat(n):"").concat(l?"&gtm_preview=".concat(l,"&gtm_cookies_win=x"):"")})]})},e.sendGTMEvent=t=>{if(void 0===r){console.warn("@next/third-parties: GTM has not been initialized");return}window[r]?window[r].push(t):console.warn("@next/third-parties: GTM dataLayer ".concat(r," does not exist"))}},47907:function(t,e,i){"use strict";var n=i(15313);i.o(n,"useParams")&&i.d(e,{useParams:function(){return n.useParams}}),i.o(n,"usePathname")&&i.d(e,{usePathname:function(){return n.usePathname}}),i.o(n,"useRouter")&&i.d(e,{useRouter:function(){return n.useRouter}}),i.o(n,"useSearchParams")&&i.d(e,{useSearchParams:function(){return n.useSearchParams}}),i.o(n,"useServerInsertedHTML")&&i.d(e,{useServerInsertedHTML:function(){return n.useServerInsertedHTML}})},54983:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return r.a}});var n=i(85935),r=i.n(n),o={};for(var s in n)"default"!==s&&(o[s]=(function(t){return n[t]}).bind(0,s));i.d(e,o)},13313:function(t,e){"use strict";let i;Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{DOMAttributeNames:function(){return n},isEqualNode:function(){return o},default:function(){return s}});let n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function r(t){let{type:e,props:i}=t,r=document.createElement(e);for(let t in i){if(!i.hasOwnProperty(t)||"children"===t||"dangerouslySetInnerHTML"===t||void 0===i[t])continue;let o=n[t]||t.toLowerCase();"script"===e&&("async"===o||"defer"===o||"noModule"===o)?r[o]=!!i[t]:r.setAttribute(o,i[t])}let{children:o,dangerouslySetInnerHTML:s}=i;return s?r.innerHTML=s.__html||"":o&&(r.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):""),r}function o(t,e){if(t instanceof HTMLElement&&e instanceof HTMLElement){let i=e.getAttribute("nonce");if(i&&!t.getAttribute("nonce")){let n=e.cloneNode(!0);return n.setAttribute("nonce",""),n.nonce=i,i===t.nonce&&t.isEqualNode(n)}}return t.isEqualNode(e)}function s(){return{mountedInstances:new Set,updateHead:t=>{let e={};t.forEach(t=>{if("link"===t.type&&t.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+t.props["data-href"]+'"]'))return;t.props.href=t.props["data-href"],t.props["data-href"]=void 0}let i=e[t.type]||[];i.push(t),e[t.type]=i});let n=e.title?e.title[0]:null,r="";if(n){let{children:t}=n.props;r="string"==typeof t?t:Array.isArray(t)?t.join(""):""}r!==document.title&&(document.title=r),["meta","base","link","style","script"].forEach(t=>{i(t,e[t]||[])})}}}i=(t,e)=>{let i=document.getElementsByTagName("head")[0],n=i.querySelector("meta[name=next-head-count]"),s=Number(n.content),a=[];for(let e=0,i=n.previousElementSibling;e<s;e++,i=(null==i?void 0:i.previousElementSibling)||null){var l;(null==i?void 0:null==(l=i.tagName)?void 0:l.toLowerCase())===t&&a.push(i)}let u=e.map(r).filter(t=>{for(let e=0,i=a.length;e<i;e++)if(o(a[e],t))return a.splice(e,1),!1;return!0});a.forEach(t=>{var e;return null==(e=t.parentNode)?void 0:e.removeChild(t)}),u.forEach(t=>i.insertBefore(t,n)),n.content=(s-a.length+u.length).toString()},("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},85935:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{handleClientScriptLoad:function(){return g},initScriptLoader:function(){return v},default:function(){return x}});let n=i(86921),r=i(91884),o=i(57437),s=n._(i(54887)),a=r._(i(2265)),l=i(27484),u=i(13313),c=i(52185),d=new Map,h=new Set,p=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],m=t=>{if(s.default.preinit){t.forEach(t=>{s.default.preinit(t,{as:"style"})});return}if("undefined"!=typeof window){let e=document.head;t.forEach(t=>{let i=document.createElement("link");i.type="text/css",i.rel="stylesheet",i.href=t,e.appendChild(i)})}},f=t=>{let{src:e,id:i,onLoad:n=()=>{},onReady:r=null,dangerouslySetInnerHTML:o,children:s="",strategy:a="afterInteractive",onError:l,stylesheets:c}=t,f=i||e;if(f&&h.has(f))return;if(d.has(e)){h.add(f),d.get(e).then(n,l);return}let g=()=>{r&&r(),h.add(f)},v=document.createElement("script"),y=new Promise((t,e)=>{v.addEventListener("load",function(e){t(),n&&n.call(this,e),g()}),v.addEventListener("error",function(t){e(t)})}).catch(function(t){l&&l(t)});for(let[i,n]of(o?(v.innerHTML=o.__html||"",g()):s?(v.textContent="string"==typeof s?s:Array.isArray(s)?s.join(""):"",g()):e&&(v.src=e,d.set(e,y)),Object.entries(t))){if(void 0===n||p.includes(i))continue;let t=u.DOMAttributeNames[i]||i.toLowerCase();v.setAttribute(t,n)}"worker"===a&&v.setAttribute("type","text/partytown"),v.setAttribute("data-nscript",a),c&&m(c),document.body.appendChild(v)};function g(t){let{strategy:e="afterInteractive"}=t;"lazyOnload"===e?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>f(t))}):f(t)}function v(t){t.forEach(g),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(t=>{let e=t.id||t.getAttribute("src");h.add(e)})}function y(t){let{id:e,src:i="",onLoad:n=()=>{},onReady:r=null,strategy:u="afterInteractive",onError:d,stylesheets:p,...m}=t,{updateScripts:g,scripts:v,getIsSsr:y,appDir:x,nonce:b}=(0,a.useContext)(l.HeadManagerContext),P=(0,a.useRef)(!1);(0,a.useEffect)(()=>{let t=e||i;P.current||(r&&t&&h.has(t)&&r(),P.current=!0)},[r,e,i]);let S=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{!S.current&&("afterInteractive"===u?f(t):"lazyOnload"===u&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>f(t)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>f(t))})),S.current=!0)},[t,u]),("beforeInteractive"===u||"worker"===u)&&(g?(v[u]=(v[u]||[]).concat([{id:e,src:i,onLoad:n,onReady:r,onError:d,...m}]),g(v)):y&&y()?h.add(e||i):y&&!y()&&f(t)),x){if(p&&p.forEach(t=>{s.default.preinit(t,{as:"style"})}),"beforeInteractive"===u)return i?(s.default.preload(i,m.integrity?{as:"script",integrity:m.integrity}:{as:"script"}),(0,o.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([i,{...m,id:e}])+")"}})):(m.dangerouslySetInnerHTML&&(m.children=m.dangerouslySetInnerHTML.__html,delete m.dangerouslySetInnerHTML),(0,o.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...m,id:e}])+")"}}));"afterInteractive"===u&&i&&s.default.preload(i,m.integrity?{as:"script",integrity:m.integrity}:{as:"script"})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let x=y;("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},87717:function(t,e,i){"use strict";var n,r;void 0!==(r="function"==typeof(n=function(){var t,e,i,n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(t,e,i){return t<e?e:t>i?i:t}n.configure=function(t){var e,i;for(e in t)void 0!==(i=t[e])&&t.hasOwnProperty(e)&&(r[e]=i);return this},n.status=null,n.set=function(t){var e=n.isStarted();t=o(t,r.minimum,1),n.status=1===t?null:t;var i=n.render(!e),l=i.querySelector(r.barSelector),u=r.speed,c=r.easing;return i.offsetWidth,s(function(e){var o,s;""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),a(l,(o=t,(s="translate3d"===r.positionUsing?{transform:"translate3d("+(-1+o)*100+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+(-1+o)*100+"%,0)"}:{"margin-left":(-1+o)*100+"%"}).transition="all "+u+"ms "+c,s)),1===t?(a(i,{transition:"none",opacity:1}),i.offsetWidth,setTimeout(function(){a(i,{transition:"all "+u+"ms linear",opacity:0}),setTimeout(function(){n.remove(),e()},u)},u)):setTimeout(e,u)}),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var t=function(){setTimeout(function(){n.status&&(n.trickle(),t())},r.trickleSpeed)};return r.trickle&&t(),this},n.done=function(t){return t||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(t){var e=n.status;return e?("number"!=typeof t&&(t=(1-e)*o(Math.random()*e,.1,.95)),e=o(e+t,0,.994),n.set(e)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},t=0,e=0,n.promise=function(i){return i&&"resolved"!==i.state()&&(0===e&&n.start(),t++,e++,i.always(function(){0==--e?(t=0,n.done()):n.set((t-e)/t)})),this},n.render=function(t){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var e=document.createElement("div");e.id="nprogress",e.innerHTML=r.template;var i,o=e.querySelector(r.barSelector),s=t?"-100":(-1+(n.status||0))*100,l=document.querySelector(r.parent);return a(o,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),!r.showSpinner&&(i=e.querySelector(r.spinnerSelector))&&h(i),l!=document.body&&u(l,"nprogress-custom-parent"),l.appendChild(e),e},n.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(r.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&h(t)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective" in t?"translate3d":e+"Transform" in t?"translate":"margin"};var s=(i=[],function(t){i.push(t),1==i.length&&function t(){var e=i.shift();e&&e(t)}()}),a=function(){var t=["Webkit","O","Moz","ms"],e={};function i(i,n,r){var o;n=e[o=(o=n).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})]||(e[o]=function(e){var i=document.body.style;if(e in i)return e;for(var n,r=t.length,o=e.charAt(0).toUpperCase()+e.slice(1);r--;)if((n=t[r]+o)in i)return n;return e}(o)),i.style[n]=r}return function(t,e){var n,r,o=arguments;if(2==o.length)for(n in e)void 0!==(r=e[n])&&e.hasOwnProperty(n)&&i(t,n,r);else i(t,o[1],o[2])}}();function l(t,e){return("string"==typeof t?t:d(t)).indexOf(" "+e+" ")>=0}function u(t,e){var i=d(t),n=i+e;l(i,e)||(t.className=n.substring(1))}function c(t,e){var i,n=d(t);l(t,e)&&(i=n.replace(" "+e+" "," "),t.className=i.substring(1,i.length-1))}function d(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function h(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return n})?n.call(e,i,e,t):n)&&(t.exports=r)},53939:function(t){t.exports={style:{fontFamily:"'__Barlow_dc08d0', '__Barlow_Fallback_dc08d0', Helvetica, Arial, sans-serif",fontStyle:"normal"},className:"__className_dc08d0"}},79462:function(t){t.exports={style:{fontFamily:"'__Public_Sans_af9ad8', '__Public_Sans_Fallback_af9ad8', Helvetica, Arial, sans-serif",fontStyle:"normal"},className:"__className_af9ad8"}},59836:function(t,e,i){"use strict";i.d(e,{X:function(){return s}});var n=i(2265),r=i(48997),o=i(60848);function s(t){let{children:e,features:i,strict:s=!1}=t,[,l]=(0,n.useState)(!a(i)),u=(0,n.useRef)(void 0);if(!a(i)){let{renderer:t,...e}=i;u.current=t,(0,o.K)(e)}return(0,n.useEffect)(()=>{a(i)&&i().then(t=>{let{renderer:e,...i}=t;(0,o.K)(i),u.current=e,l(!0)})},[]),n.createElement(r.u.Provider,{value:{renderer:u.current,strict:s}},e)}function a(t){return"function"==typeof t}},19245:function(t,e,i){"use strict";let n;i.d(e,{g:function(){return nk}});class r{update(){}constructor(t){this.isMounted=!1,this.node=t}}var o,s=i(3393),a=i(29908);let l=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function u(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page";return{point:{x:t[e+"X"],y:t[e+"Y"]}}}let c=t=>e=>l(e)&&t(e,u(e)),d=t=>1e3*t,h=t=>t/1e3;function p(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function m(t,e,i,n){return p(t,e,c(i),n)}var f=i(19280);let g=(t,e)=>Math.abs(t-e);var v=i(31837);class y{updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,v.Pn)(this.updatePoint)}constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=P(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(g(t.x,e.x)**2+g(t.y,e.y)**2)>=3);if(!n&&!r)return;let{point:o}=i,{timestamp:s}=v.frameData;this.history.push({...o,timestamp:s});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=x(e,this.transformPagePoint),v.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=P("pointercancel"===t.type?this.lastMoveEventInfo:x(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,o),n&&n(t,o)},!l(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let o=x(u(t),this.transformPagePoint),{point:s}=o,{timestamp:a}=v.frameData;this.history=[{...s,timestamp:a}];let{onSessionStart:c}=e;c&&c(t,P(o,this.history)),this.removeListeners=(0,f.z)(m(this.contextWindow,"pointermove",this.handlePointerMove),m(this.contextWindow,"pointerup",this.handlePointerUp),m(this.contextWindow,"pointercancel",this.handlePointerUp))}}function x(t,e){return e?{point:e(t.point)}:t}function b(t,e){return{x:t.x-e.x,y:t.y-e.y}}function P(t,e){let{point:i}=t;return{point:i,delta:b(i,S(e)),offset:b(i,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=S(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>d(.1)));)i--;if(!n)return{x:0,y:0};let o=h(r.timestamp-n.timestamp);if(0===o)return{x:0,y:0};let s={x:(r.x-n.x)/o,y:(r.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e,0)}}function S(t){return t[t.length-1]}function M(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let T=M("dragHorizontal"),w=M("dragVertical");function A(t){let e=!1;if("y"===t)e=w();else if("x"===t)e=T();else{let t=T(),i=w();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function C(){let t=A(!0);return!t||(t(),!1)}var E=i(98285),V=i(16384),L=i(88037);function k(t){return t.max-t.min}function D(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01;return Math.abs(t-e)<=i}function j(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=n,t.originPoint=(0,L.C)(e.min,e.max,t.origin),t.scale=k(i)/k(e),(D(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,L.C)(i.min,i.max,t.origin)-t.originPoint,(D(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Z(t,e,i,n){j(t.x,e.x,i.x,n?n.originX:void 0),j(t.y,e.y,i.y,n?n.originY:void 0)}function I(t,e,i){t.min=i.min+e.min,t.max=t.min+k(e)}function R(t,e,i){t.min=e.min-i.min,t.max=t.min+k(e)}function F(t,e,i){R(t.x,e.x,i.x),R(t.y,e.y,i.y)}var B=i(22476);function O(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function _(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function z(t,e,i){return{min:N(t,e),max:N(t,i)}}function N(t,e){return"number"==typeof t?t:t[e]||0}let W=()=>({translate:0,scale:1,origin:0,originPoint:0}),U=()=>({x:W(),y:W()}),H=()=>({min:0,max:0}),G=()=>({x:H(),y:H()});function q(t){return[t("x"),t("y")]}function Y(t){let{top:e,left:i,right:n,bottom:r}=t;return{x:{min:i,max:n},y:{min:e,max:r}}}function X(t){return void 0===t||1===t}function $(t){let{scale:e,scaleX:i,scaleY:n}=t;return!X(e)||!X(i)||!X(n)}function K(t){return $(t)||J(t)||t.z||t.rotate||t.rotateX||t.rotateY}function J(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function Q(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function tt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;t.min=Q(t.min,e,i,n,r),t.max=Q(t.max,e,i,n,r)}function te(t,e){let{x:i,y:n}=e;tt(t.x,i.translate,i.scale,i.originPoint),tt(t.y,n.translate,n.scale,n.originPoint)}function ti(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function tn(t,e){t.min=t.min+e,t.max=t.max+e}function tr(t,e,i){let[n,r,o]=i,s=void 0!==e[o]?e[o]:.5,a=(0,L.C)(t.min,t.max,s);tt(t,e[n],e[r],a,e.scale)}let to=["x","scaleX","originX"],ts=["y","scaleY","originY"];function ta(t,e){tr(t.x,e,to),tr(t.y,e,ts)}function tl(t,e){return Y(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}var tu=i(72724);let tc={current:!1},td=t=>Array.isArray(t)&&"number"==typeof t[0],th=t=>{let[e,i,n,r]=t;return"cubic-bezier(".concat(e,", ").concat(i,", ").concat(n,", ").concat(r,")")},tp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:th([0,.65,.55,1]),circOut:th([.55,0,1,.45]),backIn:th([.31,.01,.66,-.59]),backOut:th([.33,1.53,.69,.99])},tm=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tf(t,e,i,n){if(t===e&&i===n)return s.Z;let r=e=>(function(t,e,i,n,r){let o,s;let a=0;do(o=tm(s=e+(i-e)/2,n,r)-t)>0?i=s:e=s;while(Math.abs(o)>1e-7&&++a<12);return s})(e,0,1,t,i);return t=>0===t||1===t?t:tm(r(t),e,n)}let tg=tf(.42,0,1,1),tv=tf(0,0,.58,1),ty=tf(.42,0,.58,1),tx=t=>Array.isArray(t)&&"number"!=typeof t[0],tb=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,tP=t=>e=>1-t(1-e),tS=t=>1-Math.sin(Math.acos(t)),tM=tP(tS),tT=tb(tS),tw=tf(.33,1.53,.69,.99),tA=tP(tw),tC=tb(tA),tE={linear:s.Z,easeIn:tg,easeInOut:ty,easeOut:tv,circIn:tS,circInOut:tT,circOut:tM,backIn:tA,backInOut:tC,backOut:tw,anticipate:t=>(t*=2)<1?.5*tA(t):.5*(2-Math.pow(2,-10*(t-1)))},tV=t=>{if(Array.isArray(t)){(0,a.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return tf(e,i,n,r)}return"string"==typeof t?((0,a.k)(void 0!==tE[t],"Invalid easing type '".concat(t,"'")),tE[t]):t};var tL=i(43258),tk=i(14594);function tD(t){let{duration:e=300,keyframes:i,times:n,ease:r="easeInOut"}=t,o=tx(r)?r.map(tV):tV(r),s={done:!1,value:i[0]},a=(n&&n.length===i.length?n:(0,tk.Y)(i)).map(t=>t*e),l=(0,tL.s)(a,i,{ease:Array.isArray(o)?o:i.map(()=>o||ty).splice(0,i.length-1)});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}var tj=i(92181);function tZ(t,e,i){let n=Math.max(e-5,0);return(0,tj.R)(i-t(n),e-n)}function tI(t,e){return t*Math.sqrt(1-e*e)}let tR=["duration","bounce"],tF=["stiffness","damping","mass"];function tB(t,e){return e.some(e=>void 0!==t[e])}function tO(t){let e,{keyframes:i,restDelta:n,restSpeed:r,...o}=t,s=i[0],l=i[i.length-1],u={done:!1,value:s},{stiffness:c,damping:p,mass:m,duration:f,velocity:g,isResolvedFromDuration:v}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!tB(t,tF)&&tB(t,tR)){let i=function(t){let e,i,{duration:n=800,bounce:r=.25,velocity:o=0,mass:s=1}=t;(0,a.K)(n<=d(10),"Spring duration must be 10 seconds or less");let l=1-r;l=(0,B.u)(.05,1,l),n=(0,B.u)(.01,10,h(n)),l<1?(e=t=>{let e=t*l,i=e*n;return .001-(e-o)/tI(t,l)*Math.exp(-i)},i=t=>{let i=t*l*n,r=Math.pow(l,2)*Math.pow(t,2)*n,s=tI(Math.pow(t,2),l);return(i*o+o-r)*Math.exp(-i)*(-e(t)+.001>0?-1:1)/s}):(e=t=>-.001+Math.exp(-t*n)*((t-o)*n+1),i=t=>n*n*(o-t)*Math.exp(-t*n));let u=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(e,i,5/n);if(n=d(n),isNaN(u))return{stiffness:100,damping:10,duration:n};{let t=Math.pow(u,2)*s;return{stiffness:t,damping:2*l*Math.sqrt(s*t),duration:n}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...o,velocity:-h(o.velocity||0)}),y=g||0,x=p/(2*Math.sqrt(c*m)),b=l-s,P=h(Math.sqrt(c/m)),S=5>Math.abs(b);if(r||(r=S?.01:2),n||(n=S?.005:.5),x<1){let t=tI(P,x);e=e=>l-Math.exp(-x*P*e)*((y+x*P*b)/t*Math.sin(t*e)+b*Math.cos(t*e))}else if(1===x)e=t=>l-Math.exp(-P*t)*(b+(y+P*b)*t);else{let t=P*Math.sqrt(x*x-1);e=e=>{let i=Math.exp(-x*P*e),n=Math.min(t*e,300);return l-i*((y+x*P*b)*Math.sinh(n)+t*b*Math.cosh(n))/t}}return{calculatedDuration:v&&f||null,next:t=>{let i=e(t);if(v)u.done=t>=f;else{let o=y;0!==t&&(o=x<1?tZ(e,t,i):0);let s=Math.abs(o)<=r,a=Math.abs(l-i)<=n;u.done=s&&a}return u.value=u.done?l:i,u}}}function t_(t){let e,i,{keyframes:n,velocity:r=0,power:o=.8,timeConstant:s=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:u,min:c,max:d,restDelta:h=.5,restSpeed:p}=t,m=n[0],f={done:!1,value:m},g=t=>void 0!==c&&t<c||void 0!==d&&t>d,v=t=>void 0===c?d:void 0===d?c:Math.abs(c-t)<Math.abs(d-t)?c:d,y=o*r,x=m+y,b=void 0===u?x:u(x);b!==x&&(y=b-m);let P=t=>-y*Math.exp(-t/s),S=t=>b+P(t),M=t=>{let e=P(t),i=S(t);f.done=Math.abs(e)<=h,f.value=f.done?b:i},T=t=>{g(f.value)&&(e=t,i=tO({keyframes:[f.value,v(f.value)],velocity:tZ(S,t,f.value),damping:a,stiffness:l,restDelta:h,restSpeed:p}))};return T(0),{calculatedDuration:null,next:t=>{let n=!1;return(i||void 0!==e||(n=!0,M(t),T(t)),void 0!==e&&t>e)?i.next(t-e):(n||M(t),f)}}}let tz=t=>{let e=e=>{let{timestamp:i}=e;return t(i)};return{start:()=>v.Wi.update(e,!0),stop:()=>(0,v.Pn)(e),now:()=>v.frameData.isProcessing?v.frameData.timestamp:performance.now()}};function tN(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let tW={decay:t_,inertia:t_,tween:tD,keyframes:tD,spring:tO};function tU(t){let e,i,n,r,o,{autoplay:s=!0,delay:a=0,driver:l=tz,keyframes:u,type:c="keyframes",repeat:p=0,repeatDelay:m=0,repeatType:f="loop",onPlay:g,onStop:v,onComplete:y,onUpdate:x,...b}=t,P=1,S=!1,M=()=>{i=new Promise(t=>{e=t})};M();let T=tW[c]||tD;T!==tD&&"number"!=typeof u[0]&&(r=(0,tL.s)([0,100],u,{clamp:!1}),u=[0,100]);let w=T({...b,keyframes:u});"mirror"===f&&(o=T({...b,keyframes:[...u].reverse(),velocity:-(b.velocity||0)}));let A="idle",C=null,E=null,V=null;null===w.calculatedDuration&&p&&(w.calculatedDuration=tN(w));let{calculatedDuration:L}=w,k=1/0,D=1/0;null!==L&&(D=(k=L+m)*(p+1)-m);let j=0,Z=t=>{if(null===E)return;P>0&&(E=Math.min(E,t)),P<0&&(E=Math.min(t-D/P,E));let e=(j=null!==C?C:Math.round(t-E)*P)-a*(P>=0?1:-1),i=P>=0?e<0:e>D;j=Math.max(e,0),"finished"===A&&null===C&&(j=D);let n=j,s=w;if(p){let t=Math.min(j,D)/k,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,p+1))%2&&("reverse"===f?(i=1-i,m&&(i-=m/k)):"mirror"===f&&(s=o)),n=(0,B.u)(0,1,i)*k}let l=i?{done:!1,value:u[0]}:s.next(n);r&&(l.value=r(l.value));let{done:c}=l;i||null===L||(c=P>=0?j>=D:j<=0);let d=null===C&&("finished"===A||"running"===A&&c);return x&&x(l.value),d&&F(),l},I=()=>{n&&n.stop(),n=void 0},R=()=>{A="idle",I(),e(),M(),E=V=null},F=()=>{A="finished",y&&y(),I(),e()},O=()=>{if(S)return;n||(n=l(Z));let t=n.now();g&&g(),null!==C?E=t-C:E&&"finished"!==A||(E=t),"finished"===A&&M(),V=E,C=null,A="running",n.start()};s&&O();let _={then:(t,e)=>i.then(t,e),get time(){return h(j)},set time(newTime){j=newTime=d(newTime),null===C&&n&&0!==P?E=n.now()-newTime/P:C=newTime},get duration(){return h(null===w.calculatedDuration?tN(w):w.calculatedDuration)},get speed(){return P},set speed(newSpeed){if(newSpeed===P||!n)return;P=newSpeed,_.time=h(j)},get state(){return A},play:O,pause:()=>{A="paused",C=j},stop:()=>{S=!0,"idle"!==A&&(A="idle",v&&v(),R())},cancel:()=>{null!==V&&Z(V),R()},complete:()=>{A="finished"},sample:t=>(E=0,Z(t))};return _}let tH=(o=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===n&&(n=o()),n)),tG=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),tq=(t,e)=>"spring"===e.type||"backgroundColor"===t||!function t(e){return!!(!e||"string"==typeof e&&tp[e]||td(e)||Array.isArray(e)&&e.every(t))}(e.ease);var tY=i(60618);let tX={type:"spring",stiffness:500,damping:25,restSpeed:10},t$=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),tK={type:"keyframes",duration:.8},tJ={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tQ=(t,e)=>{let{keyframes:i}=e;return i.length>2?tK:tY.G.has(t)?t.startsWith("scale")?t$(i[1]):tX:tJ};var t0=i(92263);let t1=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(t0.P.test(e)||"0"===e)&&!e.startsWith("url("));var t2=i(93922);let t3=new Set(["brightness","contrast","saturate","opacity"]);function t5(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(t2.KP)||[];if(!n)return t;let r=i.replace(n,""),o=t3.has(e)?1:0;return n!==i&&(o*=100),e+"("+o+r+")"}let t9=/([a-z-]*)\(.*?\)/g,t4={...t0.P,getAnimatableNone:t=>{let e=t.match(t9);return e?e.map(t5).join(" "):t}};var t8=i(22809);let t7={...i(97346).j,color:t8.$,backgroundColor:t8.$,outlineColor:t8.$,fill:t8.$,stroke:t8.$,borderColor:t8.$,borderTopColor:t8.$,borderRightColor:t8.$,borderBottomColor:t8.$,borderLeftColor:t8.$,filter:t4,WebkitFilter:t4},t6=t=>t7[t];function et(t,e){let i=t6(t);return i!==t4&&(i=t0.P),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let ee=t=>/^0[^.\s]+$/.test(t);function ei(t,e){return t[e]||t.default||t}let en={skipAnimations:!1},er=function(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return r=>{let o=ei(n,t)||{},l=o.delay||n.delay||0,{elapsed:u=0}=n;u-=d(l);let c=function(t,e,i,n){let r,o;let s=t1(e,i);r=Array.isArray(i)?[...i]:[null,i];let a=void 0!==n.from?n.from:t.get(),l=[];for(let t=0;t<r.length;t++){var u;null===r[t]&&(r[t]=0===t?a:r[t-1]),("number"==typeof(u=r[t])?0===u:null!==u?"none"===u||"0"===u||ee(u):void 0)&&l.push(t),"string"==typeof r[t]&&"none"!==r[t]&&"0"!==r[t]&&(o=r[t])}if(s&&l.length&&o)for(let t=0;t<l.length;t++)r[l[t]]=et(e,o);return r}(e,t,i,o),p=c[0],m=c[c.length-1],f=t1(t,p),g=t1(t,m);(0,a.K)(f===g,"You are trying to animate ".concat(t,' from "').concat(p,'" to "').concat(m,'". ').concat(p," is not an animatable value - to enable this animation set ").concat(p," to a value animatable to ").concat(m," via the `style` property."));let y={keyframes:c,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-u,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{r(),o.onComplete&&o.onComplete()}};if(!function(t){let{when:e,delay:i,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:a,repeatDelay:l,from:u,elapsed:c,...d}=t;return!!Object.keys(d).length}(o)&&(y={...y,...tQ(t,y)}),y.duration&&(y.duration=d(y.duration)),y.repeatDelay&&(y.repeatDelay=d(y.repeatDelay)),!f||!g||tc.current||!1===o.type||en.skipAnimations)return function(t){let{keyframes:e,delay:i,onUpdate:n,onComplete:r}=t,o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:s.Z,pause:s.Z,stop:s.Z,then:t=>(t(),Promise.resolve()),cancel:s.Z,complete:s.Z});return i?tU({keyframes:[0,1],duration:0,delay:i,onComplete:o}):o()}(tc.current?{...y,delay:0}:y);if(!n.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){let i=function(t,e,i){let n,r,{onUpdate:o,onComplete:a,...l}=i;if(!(tH()&&tG.has(e)&&!l.repeatDelay&&"mirror"!==l.repeatType&&0!==l.damping&&"inertia"!==l.type))return!1;let u=!1,c=!1,p=()=>{r=new Promise(t=>{n=t})};p();let{keyframes:m,duration:f=300,ease:g,times:y}=l;if(tq(e,l)){let t=tU({...l,repeat:0,delay:0}),e={done:!1,value:m[0]},i=[],n=0;for(;!e.done&&n<2e4;)e=t.sample(n),i.push(e.value),n+=10;y=void 0,m=i,f=n-10,g="linear"}let x=function(t,e,i){let{delay:n=0,duration:r,repeat:o=0,repeatType:s="loop",ease:a,times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u={[e]:i};l&&(u.offset=l);let c=function t(e){if(e)return td(e)?th(e):Array.isArray(e)?e.map(t):tp[e]}(a);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:n,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(t.owner.current,e,m,{...l,duration:f,ease:g,times:y}),b=()=>{c=!1,x.cancel()},P=()=>{c=!0,v.Wi.update(b),n(),p()};return x.onfinish=()=>{c||(t.set(function(t,e){let{repeat:i,repeatType:n="loop"}=e,r=i&&"loop"!==n&&i%2==1?0:t.length-1;return t[r]}(m,l)),a&&a(),P())},{then:(t,e)=>r.then(t,e),attachTimeline:t=>(x.timeline=t,x.onfinish=null,s.Z),get time(){return h(x.currentTime||0)},set time(newTime){x.currentTime=d(newTime)},get speed(){return x.playbackRate},set speed(newSpeed){x.playbackRate=newSpeed},get duration(){return h(f)},play:()=>{u||(x.play(),(0,v.Pn)(b))},pause:()=>x.pause(),stop:()=>{if(u=!0,"idle"===x.playState)return;let{currentTime:e}=x;if(e){let i=tU({...l,autoplay:!1});t.setWithVelocity(i.sample(e-10).value,i.sample(e).value,10)}P()},complete:()=>{c||x.finish()},cancel:P}}(e,t,y);if(i)return i}return tU(y)}},eo=t=>{let{current:e}=t;return e?e.ownerDocument.defaultView:null},es=new WeakMap;class ea{start(t){let{snapToCursor:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new y(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(u(t,"page").point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=A(i),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),q(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tu.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=k(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&v.Wi.update(()=>r(t,e),!1,!0);let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:o}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:s}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(s),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>q(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:eo(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&v.Wi.update(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!el(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),o=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(o=function(t,e,i){let{min:n,max:r}=e;return void 0!==n&&t<n?t=i?(0,L.C)(n,t,i.min):Math.max(t,n):void 0!==r&&t>r&&(t=i?(0,L.C)(r,t,i.max):Math.min(t,r)),t}(o,this.constraints[t],this.elastic[t])),r.set(o)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,r=this.constraints;e&&(0,E.I)(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,e){let{top:i,left:n,bottom:r,right:o}=e;return{x:O(t.x,n,o),y:O(t.y,i,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.35;return!1===t?t=0:!0===t&&(t=.35),{x:z(t,"left","right"),y:z(t,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&q(t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,E.I)(e))return!1;let n=e.current;(0,a.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let o=function(t,e,i){let n=tl(t,i),{scroll:r}=e;return r&&(tn(n.x,r.offset.x),tn(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),s={x:_((t=r.layout.layoutBox).x,o.x),y:_(t.y,o.y)};if(i){let t=i(function(t){let{x:e,y:i}=t;return{top:i.min,right:e.max,bottom:i.max,left:e.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=Y(t))}return s}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(q(s=>{if(!el(s,e,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[s]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start(er(t,i,0,e))}stopAnimation(){q(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){q(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e="_drag"+t.toUpperCase(),i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){q(e=>{let{drag:i}=this.getProps();if(!el(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:o}=n.layout.layoutBox[e];r.set(t[e]-(0,L.C)(i,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,E.I)(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};q(t=>{let e=this.getAxisMotionValue(t);if(e){let i=e.get();n[t]=function(t,e){let i=.5,n=k(t),r=k(e);return r>n?i=(0,V.Y)(e.min,e.max-n,t.min):n>r&&(i=(0,V.Y)(t.min,t.max-r,e.min)),(0,B.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),q(e=>{if(!el(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];i.set((0,L.C)(r,o,n[e]))})}addListeners(){if(!this.visualElement.current)return;es.set(this.visualElement,this);let t=m(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();(0,E.I)(t)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),e();let r=p(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i}=t;this.isDragging&&i&&(q(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:o=.35,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:o,dragMomentum:s}}constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=G(),this.visualElement=t}}function el(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class eu extends r{mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||s.Z}unmount(){this.removeGroupControls(),this.removeListeners()}constructor(t){super(t),this.removeGroupControls=s.Z,this.removeListeners=s.Z,this.controls=new ea(t)}}let ec=t=>(e,i)=>{t&&v.Wi.update(()=>t(e,i))};class ed extends r{onPointerDown(t){this.session=new y(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eo(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:ec(t),onStart:ec(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&v.Wi.update(()=>n(t,e))}}}mount(){this.removePointerDownListener=m(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}constructor(){super(...arguments),this.removePointerDownListener=s.Z}}var eh=i(2265),ep=i(24561),em=i(53856),ef=i(14644);let eg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ev(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let ey={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!tu.px.test(t))return t;t=parseFloat(t)}let i=ev(t,e.target.x),n=ev(t,e.target.y);return"".concat(i,"% ").concat(n,"%")}};var ex=i(82915);class eb extends eh.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;(0,ex.B)(eS),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),eg.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,o=i.projection;return o&&(o.isPresent=r,n||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent===r||(r?o.promote():o.relegate()||v.Wi.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function eP(t){let[e,i]=function(){let t=(0,eh.useContext)(ep.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:n}=t,r=(0,eh.useId)();return(0,eh.useEffect)(()=>n(r),[]),!e&&i?[!1,()=>i&&i(r)]:[!0]}(),n=(0,eh.useContext)(em.p);return eh.createElement(eb,{...t,layoutGroup:n,switchLayoutGroup:(0,eh.useContext)(ef.g),isPresent:e,safeToRemove:i})}let eS={borderRadius:{...ey,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ey,borderTopRightRadius:ey,borderBottomLeftRadius:ey,borderBottomRightRadius:ey,boxShadow:{correct:(t,e)=>{let{treeScale:i,projectionDelta:n}=e,r=t0.P.parse(t);if(r.length>5)return t;let o=t0.P.createTransformer(t),s="number"!=typeof r[0]?1:0,a=n.x.scale*i.x,l=n.y.scale*i.y;r[0+s]/=a,r[1+s]/=l;let u=(0,L.C)(a,l,.5);return"number"==typeof r[2+s]&&(r[2+s]/=u),"number"==typeof r[3+s]&&(r[3+s]/=u),o(r)}}};var eM=i(52685);let eT=["TopLeft","TopRight","BottomLeft","BottomRight"],ew=eT.length,eA=t=>"string"==typeof t?parseFloat(t):t,eC=t=>"number"==typeof t||tu.px.test(t);function eE(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let eV=ek(0,.5,tM),eL=ek(.5,.95,s.Z);function ek(t,e,i){return n=>n<t?0:n>e?1:i((0,V.Y)(t,e,n))}function eD(t,e){t.min=e.min,t.max=e.max}function ej(t,e){eD(t.x,e.x),eD(t.y,e.y)}function eZ(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function eI(t,e,i,n,r){let[o,s,a]=i;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,r=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;if(tu.aQ.test(e)&&(e=parseFloat(e),e=(0,L.C)(s.min,s.max,e/100)-s.min),"number"!=typeof e)return;let a=(0,L.C)(o.min,o.max,n);t===o&&(a-=e),t.min=eZ(t.min,e,i,a,r),t.max=eZ(t.max,e,i,a,r)}(t,e[o],e[s],e[a],e.scale,n,r)}let eR=["x","scaleX","originX"],eF=["y","scaleY","originY"];function eB(t,e,i,n){eI(t.x,e,eR,i?i.x:void 0,n?n.x:void 0),eI(t.y,e,eF,i?i.y:void 0,n?n.y:void 0)}function eO(t){return 0===t.translate&&1===t.scale}function e_(t){return eO(t.x)&&eO(t.y)}function ez(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function eN(t){return k(t.x)/k(t.y)}var eW=i(50406);class eU{add(t){(0,eW.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,eW.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}constructor(){this.members=[]}}function eH(t,e,i){let n="",r=t.x.translate/e.x,o=t.y.translate/e.y;if((r||o)&&(n="translate3d(".concat(r,"px, ").concat(o,"px, 0) ")),(1!==e.x||1!==e.y)&&(n+="scale(".concat(1/e.x,", ").concat(1/e.y,") ")),i){let{rotate:t,rotateX:e,rotateY:r}=i;t&&(n+="rotate(".concat(t,"deg) ")),e&&(n+="rotateX(".concat(e,"deg) ")),r&&(n+="rotateY(".concat(r,"deg) "))}let s=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==s||1!==a)&&(n+="scale(".concat(s,", ").concat(a,")")),n||"none"}let eG=(t,e)=>t.depth-e.depth;class eq{add(t){(0,eW.y4)(this.children,t),this.isDirty=!0}remove(t){(0,eW.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eG),this.isDirty=!1,this.children.forEach(t)}constructor(){this.children=[],this.isDirty=!1}}var eY=i(14121),eX=i(83299),e$=i(82702);let eK=["","X","Y","Z"],eJ={visibility:"hidden"},eQ=0,e0={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function e1(t){let{attachResizeListener:e,defaultParent:i,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}=t;return class{addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new eM.L),this.eventHandlers.get(t).add(e)}notifyListeners(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];let r=this.eventHandlers.get(t);r&&r.notify(...i)}hasListeners(t){return this.eventHandlers.has(t)}mount(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:n,layout:r,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||n)&&(this.isLayoutDirty=!0),e){let i;let n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=performance.now(),n=r=>{let{timestamp:o}=r,s=o-i;s>=e&&((0,v.Pn)(n),t(s-e))};return v.Wi.read(n,!0),()=>(0,v.Pn)(n)}(n,250),eg.hasAnimatedSinceResize&&(eg.hasAnimatedSinceResize=!1,this.nodes.forEach(it))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&o&&(n||r)&&this.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i,hasRelativeTargetChanged:n,layout:r}=t;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||o.getDefaultTransition()||iu,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=o.getProps(),u=!this.targetLayout||!ez(this.targetLayout,r)||n,c=!i&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||i&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);let t={...ei(s,"layout"),onPlay:a,onComplete:l};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else i||it(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,v.Pn)(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(ir),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(e8);return}this.isUpdating||this.nodes.forEach(e7),this.isUpdating=!1,this.nodes.forEach(e6),this.nodes.forEach(e2),this.nodes.forEach(e3),this.clearAllSnapshots();let t=performance.now();v.frameData.delta=(0,B.u)(0,1e3/60,t-v.frameData.timestamp),v.frameData.timestamp=t,v.frameData.isProcessing=!0,v.S6.update.process(v.frameData),v.S6.preRender.process(v.frameData),v.S6.render.process(v.frameData),v.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(e4),this.sharedNodes.forEach(io)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,v.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){v.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=G(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",e=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!e_(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&(e||K(this.latestValues)||r)&&(o(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],i=this.measurePageBox(),n=this.removeElementScroll(i);return e&&(n=this.removeTransform(n)),ih((t=n).x),ih(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return G();let e=t.measureViewportBox(),{scroll:i}=this.root;return i&&(tn(e.x,i.offset.x),tn(e.y,i.offset.y)),e}removeElementScroll(t){let e=G();ej(e,t);for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:o}=n;if(n!==this.root&&r&&o.layoutScroll){if(r.isRoot){ej(e,t);let{scroll:i}=this.root;i&&(tn(e.x,-i.offset.x),tn(e.y,-i.offset.y))}tn(e.x,r.offset.x),tn(e.y,r.offset.y)}}return e}applyTransform(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=G();ej(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&ta(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),K(n.latestValues)&&ta(i,n.latestValues)}return K(this.latestValues)&&ta(i,this.latestValues),i}removeTransform(t){let e=G();ej(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!K(i.latestValues))continue;$(i.latestValues)&&i.updateSnapshot();let n=G();ej(n,i.measurePageBox()),eB(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return K(this.latestValues)&&eB(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==v.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){var t,e,i,n;let r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==o;if(!(r||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=v.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=G(),this.relativeTargetOrigin=G(),F(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),ej(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=G(),this.targetWithTransforms=G()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),e=this.target,i=this.relativeTarget,n=this.relativeParent.target,I(e.x,i.x,n.x),I(e.y,i.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ej(this.target,this.layout.layoutBox),te(this.target,this.targetDelta)):ej(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=G(),this.relativeTargetOrigin=G(),F(this.relativeTargetOrigin,this.target,t.target),ej(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}e0.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||$(this.parent.latestValues)||J(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===v.frameData.timestamp&&(n=!1),n)return;let{layout:r,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||o))return;ej(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(t,e,i){let n,r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.length;if(s){e.x=e.y=1;for(let a=0;a<s;a++){r=(n=i[a]).projectionDelta;let s=n.instance;(!s||!s.style||"contents"!==s.style.display)&&(o&&n.options.layoutScroll&&n.scroll&&n!==n.root&&ta(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,te(t,r)),o&&K(n.latestValues)&&ta(t,n.latestValues))}e.x=ti(e.x),e.y=ti(e.y)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox);let{target:l}=e;if(!l){this.projectionTransform&&(this.projectionDelta=U(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=U(),this.projectionDeltaWithTransform=U());let u=this.projectionTransform;Z(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=eH(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==s||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),e0.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t){let e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},s=U();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let a=G(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(il));this.animationProgress=0,this.mixTargetDelta=i=>{let n=i/1e3;if(is(s.x,t.x,n),is(s.y,t.y,n),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,p,m;F(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,ia(p.x,m.x,a.x,n),ia(p.y,m.y,a.y,n),e&&(u=this.relativeTarget,h=e,u.x.min===h.x.min&&u.x.max===h.x.max&&u.y.min===h.y.min&&u.y.max===h.y.max)&&(this.isProjectionDirty=!1),e||(e=G()),ej(e,this.relativeTarget)}l&&(this.animationValues=o,function(t,e,i,n,r,o){r?(t.opacity=(0,L.C)(0,void 0!==i.opacity?i.opacity:1,eV(n)),t.opacityExit=(0,L.C)(void 0!==e.opacity?e.opacity:1,0,eL(n))):o&&(t.opacity=(0,L.C)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r<ew;r++){let o="border".concat(eT[r],"Radius"),s=eE(e,o),a=eE(i,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||eC(s)===eC(a)?(t[o]=Math.max((0,L.C)(eA(s),eA(a),n),0),(tu.aQ.test(a)||tu.aQ.test(s))&&(t[o]+="%")):t[o]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,L.C)(e.rotate||0,i.rotate||0,n))}(o,r,this.latestValues,n,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,v.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=v.Wi.update(()=>{eg.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let n=(0,e$.i)(t)?t:(0,eX.BX)(t);return n.start(er("",n,1e3,i)),n.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&ip(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||G();let e=k(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=k(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}ej(e,i),ta(e,r),Z(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new eU),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote(){let{needsReset:t,transition:e,preserveFollowOpacity:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.rotate||i.rotateX||i.rotateY||i.rotateZ)&&(e=!0),!e)return;let n={};for(let e=0;e<eK.length;e++){let r="rotate"+eK[e];i[r]&&(n[r]=i[r],t.setStaticValue(r,0))}for(let e in t.render(),n)t.setStaticValue(e,n[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return eJ;let n={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=(0,eY.b)(null==t?void 0:t.pointerEvents)||"",n.transform=r?r(this.latestValues,""):"none",n;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=(0,eY.b)(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!K(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),n.transform=eH(this.projectionDeltaWithTransform,this.treeScale,s),r&&(n.transform=r(s,n.transform));let{x:a,y:l}=this.projectionDelta;for(let t in n.transformOrigin="".concat(100*a.origin,"% ").concat(100*l.origin,"% 0"),o.animationValues?n.opacity=o===this?null!==(i=null!==(e=s.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:n.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,ex.P){if(void 0===s[t])continue;let{correct:e,applyTo:i}=ex.P[t],r="none"===n.transform?s[t]:e(s[t],o);if(i){let t=i.length;for(let e=0;e<t;e++)n[i[e]]=r}else n[t]=r}return this.options.layoutId&&(n.pointerEvents=o===this?(0,eY.b)(null==t?void 0:t.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(e8),this.root.sharedNodes.clear()}constructor(t={},e=null==i?void 0:i()){this.id=eQ++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,e0.totalNodes=e0.resolvedTargetDeltas=e0.recalculatedProjection=0,this.nodes.forEach(e5),this.nodes.forEach(ie),this.nodes.forEach(ii),this.nodes.forEach(e9),window.MotionDebug&&window.MotionDebug.record(e0)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=e?e.root||e:this,this.path=e?[...e.path,e]:[],this.parent=e,this.depth=e?e.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new eq)}}}function e2(t){t.updateLayout()}function e3(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,o=i.source!==t.layout.source;"size"===r?q(t=>{let n=o?i.measuredBox[t]:i.layoutBox[t],r=k(n);n.min=e[t].min,n.max=n.min+r}):ip(r,i.layoutBox,e)&&q(n=>{let r=o?i.measuredBox[n]:i.layoutBox[n],s=k(e[n]);r.max=r.min+s,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+s)});let s=U();Z(s,e,i.layoutBox);let a=U();o?Z(a,t.applyTransform(n,!0),i.measuredBox):Z(a,e,i.layoutBox);let l=!e_(s),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:o}=n;if(r&&o){let s=G();F(s,i.layoutBox,r.layoutBox);let a=G();F(a,e,o.layoutBox),ez(s,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=s,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function e5(t){e0.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function e9(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function e4(t){t.clearSnapshot()}function e8(t){t.clearMeasurements()}function e7(t){t.isLayoutDirty=!1}function e6(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function it(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ie(t){t.resolveTargetDelta()}function ii(t){t.calcProjection()}function ir(t){t.resetRotation()}function io(t){t.removeLeadSnapshot()}function is(t,e,i){t.translate=(0,L.C)(e.translate,0,i),t.scale=(0,L.C)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function ia(t,e,i,n){t.min=(0,L.C)(e.min,i.min,n),t.max=(0,L.C)(e.max,i.max,n)}function il(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let iu={duration:.45,ease:[.4,0,.1,1]},ic=t=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(t),id=ic("applewebkit/")&&!ic("chrome/")?Math.round:s.Z;function ih(t){t.min=id(t.min),t.max=id(t.max)}function ip(t,e,i){return"position"===t||"preserve-aspect"===t&&!D(eN(e),eN(i),.2)}let im=e1({attachResizeListener:(t,e)=>p(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ig={current:void 0},iv=e1({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ig.current){let t=new im({});t.mount(window),t.setOptions({layoutScroll:!0}),ig.current=t}return ig.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var iy=i(54633),ix=i(60561);function ib(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}var iP=i(16930),iS=i(51422);function iM(t,e,i){let n=t.getProps();return(0,iS.o)(n,e,void 0!==i?i:n.custom,function(t){let e={};return t.values.forEach((t,i)=>e[i]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,i)=>e[i]=t.getVelocity()),e}(t))}var iT=i(41867),iw=i(69043);function iA(t){return!!((0,e$.i)(t)&&t.add)}let iC=t=>/^\-?\d*\.?\d+$/.test(t);var iE=i(30698),iV=i(25218);let iL=t=>e=>e.test(t),ik=[iV.Rx,tu.px,tu.aQ,tu.RW,tu.vw,tu.vh,{test:t=>"auto"===t,parse:t=>t}],iD=t=>ik.find(iL(t)),ij=[...ik,t8.$,t0.P],iZ=t=>ij.find(iL(t));function iI(t,e){let{delay:i=0,transitionOverride:n,type:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{transition:o=t.getDefaultTransition(),transitionEnd:s,...a}=t.makeTargetAnimatable(e),l=t.getValue("willChange");n&&(o=n);let u=[],c=r&&t.animationState&&t.animationState.getState()[r];for(let e in a){let n=t.getValue(e),r=a[e];if(!n||void 0===r||c&&function(t,e){let{protectedKeys:i,needsAnimating:n}=t,r=i.hasOwnProperty(e)&&!0!==n[e];return n[e]=!1,r}(c,e))continue;let s={delay:i,elapsed:0,...ei(o||{},e)};if(window.HandoffAppearAnimations){let i=t.getProps()[iw.M];if(i){let t=window.HandoffAppearAnimations(i,e,n,v.Wi);null!==t&&(s.elapsed=t,s.isHandoff=!0)}}let d=!s.isHandoff&&!function(t,e){let i=t.get();if(!Array.isArray(e))return i!==e;for(let t=0;t<e.length;t++)if(e[t]!==i)return!0}(n,r);if("spring"===s.type&&(n.getVelocity()||s.velocity)&&(d=!1),n.animation&&(d=!1),d)continue;n.start(er(e,n,r,t.shouldReduceMotion&&tY.G.has(e)?{type:!1}:s));let h=n.animation;iA(l)&&(l.add(e),h.then(()=>l.remove(e))),u.push(h)}return s&&Promise.all(u).then(()=>{s&&function(t,e){let i=iM(t,e),{transitionEnd:n={},transition:r={},...o}=i?t.makeTargetAnimatable(i,!1):{};for(let e in o={...o,...n}){let i=(0,iE.Y)(o[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,eX.BX)(i))}}(t,s)}),u}function iR(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=iM(t,e,i.custom),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let o=n?()=>Promise.all(iI(t,n,i)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=r;return function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=arguments.length>5?arguments[5]:void 0,s=[],a=(t.variantChildren.size-1)*n,l=1===r?function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t*n}:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return a-t*n};return Array.from(t.variantChildren).sort(iF).forEach((t,n)=>{t.notify("AnimationStart",e),s.push(iR(t,e,{...o,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(s)}(t,e,o+n,s,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([o(),s(i.delay)]);{let[t,e]="beforeChildren"===a?[o,s]:[s,o];return t().then(()=>e())}}function iF(t,e){return t.sortNodePosition(e)}let iB=[...iT.e].reverse(),iO=iT.e.length;function i_(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class iz extends r{updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),(0,iy.H)(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(e=>{let{animation:i,options:n}=e;return function(t,e){let i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e))i=Promise.all(e.map(e=>iR(t,e,n)));else if("string"==typeof e)i=iR(t,e,n);else{let r="function"==typeof e?iM(t,e,n.custom):e;i=Promise.all(iI(t,r,n))}return i.then(()=>t.notify("AnimationComplete",e))}(t,i,n)})),i={animate:i_(!0),whileInView:i_(),whileHover:i_(),whileTap:i_(),whileDrag:i_(),whileFocus:i_(),exit:i_()},n=!0,r=(e,i)=>{let n=iM(t,i);if(n){let{transition:t,transitionEnd:i,...r}=n;e={...e,...r,...i}}return e};function o(o,s){let a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],c=new Set,d={},h=1/0;for(let e=0;e<iO;e++){var p;let m=iB[e],f=i[m],g=void 0!==a[m]?a[m]:l[m],v=(0,iP.$)(g),y=m===s?f.isActive:null;!1===y&&(h=e);let x=g===l[m]&&g!==a[m]&&v;if(x&&n&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...d},!f.isActive&&null===y||!g&&!f.prevProp||(0,iy.H)(g)||"boolean"==typeof g)continue;let b=(p=f.prevProp,("string"==typeof g?g!==p:!!Array.isArray(g)&&!ib(g,p))||m===s&&f.isActive&&!x&&v||e>h&&v),P=!1,S=Array.isArray(g)?g:[g],M=S.reduce(r,{});!1===y&&(M={});let{prevResolvedValues:T={}}=f,w={...T,...M},A=t=>{b=!0,c.has(t)&&(P=!0,c.delete(t)),f.needsAnimating[t]=!0};for(let t in w){let e=M[t],i=T[t];if(!d.hasOwnProperty(t))((0,ix.C)(e)&&(0,ix.C)(i)?ib(e,i):e===i)?void 0!==e&&c.has(t)?A(t):f.protectedKeys[t]=!0:void 0!==e?A(t):c.add(t)}f.prevProp=g,f.prevResolvedValues=M,f.isActive&&(d={...d,...M}),n&&t.blockInitialAnimation&&(b=!1),b&&(!x||P)&&u.push(...S.map(t=>({animation:t,options:{type:m,...o}})))}if(c.size){let e={};c.forEach(i=>{let n=t.getBaseTarget(i);void 0!==n&&(e[i]=n)}),u.push({animation:e})}let m=!!u.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,m?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,n,r){var s;if(i[e].isActive===n)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,n)}),i[e].isActive=n;let a=o(r,e);for(let t in i)i[t].protectedKeys={};return a},setAnimateFunction:function(i){e=i(t)},getState:()=>i}}(t))}}let iN=0;class iW extends r{update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e,custom:i}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let r=this.node.animationState.setActive("exit",!t,{custom:null!=i?i:this.node.getProps().custom});e&&!t&&r.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}constructor(){super(...arguments),this.id=iN++}}function iU(t,e){let i="onHover"+(e?"Start":"End");return m(t.current,"pointer"+(e?"enter":"leave"),(n,r)=>{if("touch"===n.pointerType||C())return;let o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e),o[i]&&v.Wi.update(()=>o[i](n,r))},{passive:!t.getProps()[i]})}class iH extends r{mount(){this.unmount=(0,f.z)(iU(this.node,!0),iU(this.node,!1))}unmount(){}}class iG extends r{onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,f.z)(p(this.node.current,"focus",()=>this.onFocus()),p(this.node.current,"blur",()=>this.onBlur()))}unmount(){}constructor(){super(...arguments),this.isActive=!1}}let iq=(t,e)=>!!e&&(t===e||iq(t,e.parentElement));function iY(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,u(i))}class iX extends r{startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&v.Wi.update(()=>i(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!C()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&v.Wi.update(()=>i(t,e))}mount(){let t=this.node.getProps(),e=m(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=p(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,f.z)(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}constructor(){super(...arguments),this.removeStartListeners=s.Z,this.removeEndListeners=s.Z,this.removeAccessibleListeners=s.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),n=m(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:n,globalTapTarget:r}=this.node.getProps();v.Wi.update(()=>{r||iq(this.node.current,t.target)?i&&i(t,e):n&&n(t,e)})},{passive:!(i.onTap||i.onPointerUp)}),r=m(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=(0,f.z)(n,r),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=p(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=p(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&iY("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&v.Wi.update(()=>i(t,e))})}),iY("down",(t,e)=>{this.startPress(t,e)}))}),e=p(this.node.current,"blur",()=>{this.isPressing&&iY("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=(0,f.z)(t,e)}}}let i$=new WeakMap,iK=new WeakMap,iJ=t=>{let e=i$.get(t.target);e&&e(t)},iQ=t=>{t.forEach(iJ)},i0={some:0,all:1};class i1 extends r{startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,o={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:i0[n]};return function(t,e,i){let n=function(t){let{root:e,...i}=t,n=e||document;iK.has(n)||iK.set(n,{});let r=iK.get(n),o=JSON.stringify(i);return r[o]||(r[o]=new IntersectionObserver(iQ,{root:e,...i})),r[o]}(e);return i$.set(t,i),n.observe(t),()=>{i$.delete(t),n.unobserve(t)}}(this.node.current,o,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),o=e?i:n;o&&o(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function(t){let{viewport:e={}}=t,{viewport:i={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=>e[t]!==i[t]}(t,e))&&this.startObserver()}unmount(){}constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}}var i2=i(25275),i3=i(57126),i5=i(46235),i9=i(54269);let i4=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function i8(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;(0,a.k)(i<=4,'Max CSS variable fallback depth detected in property "'.concat(t,'". This may indicate a circular fallback dependency.'));let[n,r]=function(t){let e=i4.exec(t);if(!e)return[,];let[,i,n]=e;return[i,n]}(t);if(!n)return;let o=window.getComputedStyle(e).getPropertyValue(n);if(o){let t=o.trim();return iC(t)?parseFloat(t):t}return(0,i3.tm)(r)?i8(r,e,i+1):r}var i7=i(61702);let i6=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),nt=t=>i6.has(t),ne=t=>Object.keys(t).some(nt),ni=t=>t===iV.Rx||t===tu.px,nn=(t,e)=>parseFloat(t.split(", ")[e]),nr=(t,e)=>(i,n)=>{let{transform:r}=n;if("none"===r||!r)return 0;let o=r.match(/^matrix3d\((.+)\)$/);if(o)return nn(o[1],e);{let e=r.match(/^matrix\((.+)\)$/);return e?nn(e[1],t):0}},no=new Set(["x","y","z"]),ns=tY._.filter(t=>!no.has(t)),na={width:(t,e)=>{let{x:i}=t,{paddingLeft:n="0",paddingRight:r="0"}=e;return i.max-i.min-parseFloat(n)-parseFloat(r)},height:(t,e)=>{let{y:i}=t,{paddingTop:n="0",paddingBottom:r="0"}=e;return i.max-i.min-parseFloat(n)-parseFloat(r)},top:(t,e)=>{let{top:i}=e;return parseFloat(i)},left:(t,e)=>{let{left:i}=e;return parseFloat(i)},bottom:(t,e)=>{let{y:i}=t,{top:n}=e;return parseFloat(n)+(i.max-i.min)},right:(t,e)=>{let{x:i}=t,{left:n}=e;return parseFloat(n)+(i.max-i.min)},x:nr(4,13),y:nr(5,14)};na.translateX=na.x,na.translateY=na.y;let nl=(t,e,i)=>{let n=e.measureViewportBox(),r=e.current,o=getComputedStyle(r),{display:s}=o,a={};"none"===s&&e.setStaticValue("display",t.display||"block"),i.forEach(t=>{a[t]=na[t](n,o)}),e.render();let l=e.measureViewportBox();return i.forEach(i=>{let n=e.getValue(i);n&&n.jump(a[i]),t[i]=na[i](l,o)}),t},nu=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e={...e},n={...n};let r=Object.keys(e).filter(nt),o=[],s=!1,l=[];if(r.forEach(r=>{let u;let c=t.getValue(r);if(!t.hasValue(r))return;let d=i[r],h=iD(d),p=e[r];if((0,ix.C)(p)){let t=p.length,e=null===p[0]?1:0;h=iD(d=p[e]);for(let i=e;i<t&&null!==p[i];i++)u?(0,a.k)(iD(p[i])===u,"All keyframes must be of the same type"):(u=iD(p[i]),(0,a.k)(u===h||ni(h)&&ni(u),"Keyframes must be of the same dimension as the current value"))}else u=iD(p);if(h!==u){if(ni(h)&&ni(u)){let t=c.get();"string"==typeof t&&c.set(parseFloat(t)),"string"==typeof p?e[r]=parseFloat(p):Array.isArray(p)&&u===tu.px&&(e[r]=p.map(parseFloat))}else(null==h?void 0:h.transform)&&(null==u?void 0:u.transform)&&(0===d||0===p)?0===d?c.set(u.transform(d)):e[r]=h.transform(p):(s||(o=function(t){let e=[];return ns.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),s=!0),l.push(r),n[r]=void 0!==n[r]?n[r]:e[r],c.jump(p))}}),!l.length)return{target:e,transitionEnd:n};{let i=l.indexOf("height")>=0?window.pageYOffset:null,r=nl(e,t,l);return o.length&&o.forEach(e=>{let[i,n]=e;t.getValue(i).set(n)}),t.render(),i7.j&&null!==i&&window.scrollTo({top:i}),{target:r,transitionEnd:n}}},nc=(t,e,i,n)=>{var r,o;let s=function(t,e,i){let{...n}=e,r=t.current;if(!(r instanceof Element))return{target:n,transitionEnd:i};for(let e in i&&(i={...i}),t.values.forEach(t=>{let e=t.get();if(!(0,i3.tm)(e))return;let i=i8(e,r);i&&t.set(i)}),n){let t=n[e];if(!(0,i3.tm)(t))continue;let o=i8(t,r);o&&(n[e]=o,i||(i={}),void 0===i[e]&&(i[e]=t))}return{target:n,transitionEnd:i}}(t,e,n);return e=s.target,n=s.transitionEnd,r=e,o=n,ne(r)?nu(t,r,i,o):{target:r,transitionEnd:o}},nd={current:null},nh={current:!1};var np=i(79739),nm=i(25223);let nf=new WeakMap,ng=Object.keys(nm.A),nv=ng.length,ny=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],nx=iT.V.length;class nb{scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,nf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),nh.current||function(){if(nh.current=!0,i7.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>nd.current=t.matches;t.addListener(e),e()}else nd.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||nd.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in nf.delete(this.current),this.projection&&this.projection.unmount(),(0,v.Pn)(this.notifyUpdate),(0,v.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){let i=tY.G.has(t),n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&v.Wi.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{n(),r()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(t,e,i,n){let r,o,{children:s,...a}=t;for(let t=0;t<nv;t++){let e=ng[t],{isEnabled:i,Feature:n,ProjectionNode:s,MeasureLayout:l}=nm.A[e];s&&(r=s),i(a)&&(!this.features[e]&&n&&(this.features[e]=new n(this)),l&&(o=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&r){this.projection=new r(this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:e,drag:i,dragConstraints:o,layoutScroll:s,layoutRoot:l}=a;this.projection.setOptions({layoutId:t,layout:e,alwaysMeasureLayout:!!i||o&&(0,E.I)(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof e?e:"both",initialPromotionConfig:n,layoutScroll:s,layoutRoot:l})}return o}updateFeatures(){for(let t in this.features){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):G()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return this.makeTargetAnimatableFromInstance(t,this.props,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ny.length;e++){let i=ny[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){let{willChange:n}=e;for(let r in e){let o=e[r],s=i[r];if((0,e$.i)(o))t.addValue(r,o),iA(n)&&n.add(r);else if((0,e$.i)(s))t.addValue(r,(0,eX.BX)(o,{owner:t})),iA(n)&&n.remove(r);else if(s!==o){if(t.hasValue(r)){let e=t.getValue(r);e.hasAnimated||e.set(o)}else{let e=t.getStaticValue(r);t.addValue(r,(0,eX.BX)(void 0!==e?e:o,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let e={};for(let t=0;t<nx;t++){let i=iT.V[t],n=this.props[i];((0,iP.$)(n)||!1===n)&&(e[i]=n)}return e}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,eX.BX)(e,{owner:this}),this.addValue(t,i)),i}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let{initial:i}=this.props,n="string"==typeof i||"object"==typeof i?null===(e=(0,iS.o)(this.props,i))||void 0===e?void 0:e[t]:void 0;if(i&&void 0!==n)return n;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,e$.i)(r)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new eM.L),this.events[t].add(e)}notify(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];this.events[t]&&this.events[t].notify(...i)}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>v.Wi.render(this.render,!1,!0);let{latestValues:s,renderState:a}=r;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=(0,np.G)(e),this.isVariantNode=(0,np.M)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(let t in u){let e=u[t];void 0!==s[t]&&(0,e$.i)(e)&&(e.set(s[t],!1),iA(l)&&l.add(t))}}}class nP extends nb{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,e){let{vars:i,style:n}=e;delete i[t],delete n[t]}makeTargetAnimatableFromInstance(t,e,i){let{transition:n,transitionEnd:r,...o}=t,{transformValues:s}=e,a=function(t,e,i){let n={};for(let r in t){let t=function(t,e){if(e)return(e[t]||e.default||e).from}(r,e);if(void 0!==t)n[r]=t;else{let t=i.getValue(r);t&&(n[r]=t.get())}}return n}(o,n||{},this);if(s&&(r&&(r=s(r)),o&&(o=s(o)),a&&(a=s(a))),i){!function(t,e,i){var n,r;let o=Object.keys(e).filter(e=>!t.hasValue(e)),s=o.length;if(s)for(let a=0;a<s;a++){let s=o[a],l=e[s],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(r=null!==(n=i[s])&&void 0!==n?n:t.readValue(s))&&void 0!==r?r:e[s]),null!=u&&("string"==typeof u&&(iC(u)||ee(u))?u=parseFloat(u):!iZ(u)&&t0.P.test(l)&&(u=et(s,l)),t.addValue(s,(0,eX.BX)(u,{owner:t})),void 0===i[s]&&(i[s]=u),null!==u&&t.setBaseTarget(s,u))}}(this,o,a);let t=nc(this,o,a,r);r=t.transitionEnd,o=t.target}return{transition:n,transitionEnd:r,...o}}}class nS extends nP{readValueFromInstance(t,e){if(tY.G.has(e)){let t=t6(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=((0,i3.f9)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,e){let{transformPagePoint:i}=e;return tl(t,i)}build(t,e,i,n){(0,i2.r)(t,e,i,n.transformTemplate)}scrapeMotionValuesFromProps(t,e){return(0,i5.U)(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,e$.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent="".concat(t))}))}renderInstance(t,e,i,n){(0,i9.N)(t,e,i,n)}constructor(){super(...arguments),this.type="html"}}var nM=i(9548),nT=i(48348),nw=i(65998),nA=i(38766),nC=i(81661),nE=i(27612);class nV extends nP{getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(tY.G.has(e)){let t=t6(e);return t&&t.default||0}return e=nA.s.has(e)?e:(0,nw.D)(e),t.getAttribute(e)}measureInstanceViewportBox(){return G()}scrapeMotionValuesFromProps(t,e){return(0,nM.U)(t,e)}build(t,e,i,n){(0,nT.i)(t,e,i,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,i,n){(0,nC.K)(t,e,i,n)}mount(t){this.isSVGTag=(0,nE.a)(t.tagName),super.mount(t)}constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}}var nL=i(49296);let nk={renderer:(t,e)=>(0,nL.q)(t)?new nV(e,{enableHardwareAcceleration:!1}):new nS(e,{enableHardwareAcceleration:!0}),animation:{Feature:iz},exit:{Feature:iW},inView:{Feature:i1},tap:{Feature:iX},focus:{Feature:iG},hover:{Feature:iH},pan:{Feature:ed},drag:{Feature:eu,ProjectionNode:iv,MeasureLayout:eP},layout:{ProjectionNode:iv,MeasureLayout:eP}}}}]);