1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="aacb0c9c-62c2-3504-0a6d-7949b647d169")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,957946,749419,t=>{"use strict";t.s(["NestedRouteProvider",()=>T,"useNestedRoute",()=>S],957946);var e=t.i(984072),n=t.i(821215),i=t.i(124412),r=t.i(532211),a=t.i(827539),o=t.i(50636),s=t.i(411942),u=t.i(589754),l=t.i(579433),c=t.i(295154),h=t.i(596538),d=t.i(360670),v=t.i(668024),f=function(){var t=(0,v.useNestedRouterStore)(),e=t.store,n=t.exists,i=(0,d.useStoreWithEqualityFn)(e,function(t){return{pushNestedRoute:t.pushNestedRoute,removeNestedRoute:t.removeNestedRoute,updateNestedRouteMetadata:t.updateNestedRouteMetadata,replaceNestedRoute:t.replaceNestedRoute,removeAllNestedRoutes:t.removeAllNestedRoutes}},h.shallow),r=(0,c.useStore)(e,function(t){return void 0!==t.activeOutletId});return n&&r?i:null};t.s(["useNestedRouterActions",0,f],749419);var p=t.i(22069),m=function(t){var e=t.nestedRoutes,i=t.nestedLevel,a=void 0===i?0:i,s=(0,p._)(e),u=s[0],l=s.slice(1),c=300-(0===a?0:1===a?1:2*a-1)*8;return(0,n.jsx)("ul",{style:{paddingLeft:a?1===a?"var(--spacing-sm)":"var(--spacing-base)":"0",display:"block"},children:(0,n.jsxs)("li",{children:[(0,n.jsxs)(r.HorizontalRhythm,{gap:"sm",align:"center",style:{width:"".concat(c,"px")},children:[a?(0,n.jsx)(r.Icon,{icon:"corner-down-right",size:"1rem",color:"var(--gray-300)"}):null,u.metadata.icon?(0,n.jsx)(r.Icon,{icon:u.metadata.icon,size:"1rem",color:"var(--gray-500)"}):null,(0,n.jsx)(r.Paragraph,{css:o.BreadcrumbsTitleStyles,children:u.metadata.title}),u.metadata.isPristine?null:(0,n.jsx)(r.Tooltip,{title:"Has unsaved changes",children:(0,n.jsx)("div",{css:o.BreadcrumbsValidationIconStyles})})]}),l.length>0&&(0,n.jsx)(m,{nestedRoutes:l,nestedLevel:a+1})]},"".concat(u.path,"-").concat(JSON.stringify(u.query),"}"))})};function y(){var t=(0,s._)(["\n display: inline;\n "]);return y=function(){return t},t}function g(){var t=(0,s._)(["\n color: var(--gray-300);\n font-size: var(--fs-sm);\n "]);return g=function(){return t},t}var x=function(){var t,e,a,s=(null!=(t=S())?t:{}).nestedRouteIndex,c=void 0===s?0:s,h=(0,l.useActiveNestedRoutesWithMetadata)(),d=(null!=(e=f())?e:{}).removeNestedRoute,v=c>0&&h?h[c-1]:null,p=(0,i.useMemo)(function(){var t;return null!=(t=null==h?void 0:h.some(function(t){return!t.metadata.isPristine}))&&t},[h]);return(0,n.jsxs)(n.Fragment,{children:["number"==typeof c&&d?(0,n.jsx)("button",{css:o.HeaderCloseButtonStyles,type:"button","data-testid":"close-nested-editor-button",onClick:function(){d(c)},children:(0,n.jsx)(r.Icon,{icon:"close",color:"white",size:"1rem"})}):null,(0,n.jsxs)(r.HorizontalRhythm,{align:"center",children:[(0,n.jsx)(r.Popover,{maxWidth:"20rem",buttonText:"See all opened editors",trigger:(0,n.jsxs)("div",{css:o.ButtonStyles,children:[(0,n.jsx)(r.Icon,{icon:"stack",color:"inherit",size:"1.25rem",css:(0,u.css)(y())}),(0,n.jsx)(r.Counter,{count:c,bgColor:"transparent",css:(0,o.CounterStyles)(!p)})]}),children:(0,n.jsx)(m,{nestedRoutes:null!=h?h:[]})}),v?(0,n.jsxs)(r.HorizontalRhythm,{align:"center",justify:"left",gap:"xs",css:(0,u.css)(g()),children:[(0,n.jsx)("span",{children:"Previous:"}),v.metadata.icon?(0,n.jsx)(r.Icon,{color:"var(--gray-300)",icon:null!=(a=v.metadata.icon)?a:"album",size:"1rem"}):null,(0,n.jsx)("span",{children:v.metadata.title})]}):null]})]})},k=function(t){var e=t.children,i=t.nestedRouteIndex,s=t.containerRef;return(0,n.jsx)(a.motion.div,{css:(0,o.IndentedNestedRouteStyles)(i),"data-testid":"stacked-route-container",initial:{translateX:"100%"},animate:{translateX:"0"},exit:{translateX:"100%"},transition:{duration:.5},children:(0,n.jsxs)("div",{ref:s,children:[(0,n.jsx)(r.HorizontalRhythm,{css:o.HeaderStyles,align:"center",justify:"left",children:(0,n.jsx)(x,{})}),(0,n.jsx)("div",{css:o.ContentStyles,children:e})]})})};function w(){var t,e,i=null!=(t=S())?t:{},a=i.path,o=i.nestedRouteIndex,s=void 0===o?0:o,u=(null!=(e=f())?e:{}).removeNestedRoute;return(0,n.jsx)(r.Container,{padding:"var(--spacing-base)",children:(0,n.jsx)(r.Callout,{type:"error",title:"Cannot show the editor you requested",children:(0,n.jsxs)(r.VerticalRhythm,{children:[(0,n.jsxs)("div",{children:["Please close this nested editor and try again, or contact"," ",(0,n.jsx)(r.Link,{href:"https://support.uniform.dev/support/home",text:"Uniform Support",external:!0})," if the problem persists."]}),(0,n.jsxs)(r.Caption,{children:["Details: ",null!=a?a:"unknown"," was not registered."]}),u&&s>0?(0,n.jsx)(r.Button,{buttonType:"secondary",onClick:function(){u(s)},children:"Close editor"}):null]})})})}var b=(0,i.createContext)(null);function S(){return(0,i.useContext)(b)}function T(t){var r=t.nestedRouteIndex,a=t.children,o=t.component,s=t.route,u=(0,i.useRef)(null),l={path:s.path,query:s.query,isNestedRoute:r>0,nestedRouteIndex:r,nestedRouteRef:u,maxDepthReached:r>=v.NESTED_ROUTE_LIMIT};return 0===r&&a?(0,n.jsx)(b.Provider,{value:l,children:a}):(0,n.jsx)(b.Provider,{value:l,children:(0,n.jsx)(k,{containerRef:u,nestedRouteIndex:r,children:o?(0,n.jsx)(o,(0,e._)({},s.query)):(0,n.jsx)(w,{})})})}},579433,824676,668024,t=>{"use strict";var e=t.i(596538),n=t.i(360670),i=t.i(474019),r=t.i(984072),a=t.i(831427),o=t.i(788787),s=t.i(410164),u=t.i(97232),l=t.i(821215),c=t.i(532211),h=t.i(973814),d=t.i(400218),v=t.i(124412),f=t.i(596234),p=t.i(89177);function m(t){var e=(0,o._)(t.split("?"),2),n=e[0],i=e[1],r={};
2return i&&new URLSearchParams(i).forEach(function(t,e){r[e]=t}),{path:n,query:r,metadata:{title:"Loading...",isPristine:!0,icon:"",isPersisted:!1}}}function y(t,e){return t&&!e}t.s(["convertHrefToNestedRoute",0,m,"convertNestedRouteToHref",0,function(t){var e=new URLSearchParams(t.query).toString();return"".concat(t.path).concat(e?"?".concat(e):"")},"shouldPropagatePersistedToParent",0,y],824676);var g={path:"/",query:{},metadata:{title:"",isPristine:!0,isPersisted:!1}},x={exists:!1,store:b(null,null)},k=(0,v.createContext)(x),w=function(){return(0,v.useContext)(k)};function b(t,e){return(0,f.createStore)()(function(n,o){return{nestedRoutes:[g],activeOutletId:void 0,initialize:function(t){n(function(e){return(0,d.produce)(e,function(n){var i;n.nestedRoutes=[null!=(i=e.nestedRoutes[0])?i:g].concat((0,s._)(t))})})},registerActiveOutlet:function(t){return n(function(e){return(0,d.produce)(e,function(e){e.activeOutletId&&e.activeOutletId!==t&&console.warn("Found multiple active nested route outlets!",t),e.activeOutletId=t})}),function(){n(function(t){return(0,d.produce)(t,function(t){t.activeOutletId=void 0})})}},pushNestedRoute:function(t){return(0,i._)(function(){var i,r,a;return(0,u._)(this,function(o){return i=m(t),r=!1,n(function(t){return(0,d.produce)(t,function(t){if(t.nestedRoutes.length>=6){r=!0;return}t.nestedRoutes.push(i)})}),r&&(c.toast.error((0,l.jsxs)(c.VerticalRhythm,{children:[(0,l.jsx)("strong",{children:"Nested editing depth limit reached"}),(0,l.jsxs)("div",{children:["You have reached the limit (",5,") of simultaneous nested editors."]})]})),null==e||null==(a=e.current)||a.track("NESTED_ROUTE_LIMIT_REACHED",{limit:5})),[2,!r||"stack-limit"]})})()},removeNestedRoute:function(e){return(0,i._)(function(){var i,l,c,h,v;return(0,u._)(this,function(u){return l={abortClose:void 0},(null==t?void 0:t.current)&&t.current.emit("nestedRoute:closing",{index:e,context:l}),l.abortClose||(h=null!=(i=null==(c=o().nestedRoutes[e])?void 0:c.metadata.isPersisted)&&i,v=!1,n(function(t){return(0,d.produce)(t,function(n){if(e<=0||e>=n.nestedRoutes.length)return n;v=!0;var i=(0,s._)(t.nestedRoutes);i.splice(e,1);var o=i[e-1];return o&&y(h,o.metadata.isPersisted)&&(i[e-1]=(0,a._)((0,r._)({},o),{metadata:(0,a._)((0,r._)({},o.metadata),{isPersisted:!0})})),(0,a._)((0,r._)({},t),{nestedRoutes:i})})}),v&&(null==t?void 0:t.current)&&setTimeout(function(){t.current.emit("nestedRoute:closed",{previousIndex:e,closedRoutePersisted:h})})),[2]})})()},removeAllNestedRoutes:function(){n(function(t){return(0,d.produce)(t,function(t){t.nestedRoutes=[g]})})},updateNestedRouteMetadata:function(t,e){n(function(n){return(0,d.produce)(n,function(i){if(!(t<0)&&!(t>=n.nestedRoutes.length)){var a=n.nestedRoutes[t];i.nestedRoutes[t].metadata=(0,r._)({},a.metadata,e)}})})},replaceNestedRoute:function(t,e){n(function(n){return(0,d.produce)(n,function(i){if(t<0||t>=n.nestedRoutes.length)throw Error("Invalid index");if("function"==typeof e)e(i.nestedRoutes[t]);else{var o=m(e),s=i.nestedRoutes[t].metadata;i.nestedRoutes[t]=(0,a._)((0,r._)({},o),{metadata:(0,a._)((0,r._)({},g.metadata),{isPersisted:s.isPersisted})})}})})}}})}t.s(["NESTED_ROUTE_LIMIT",0,5,"NestedRouterStoreProvider",0,function(t){var e=t.children,n=(0,p.useEventEmitter)().emitter,i=(0,h.useAnalytics)(),r=(0,v.useRef)(n);r.current=n;var a=(0,v.useRef)(i);a.current=i;var s=(0,o._)((0,v.useState)(function(){return b(r,a)}),1)[0],u=(0,v.useMemo)(function(){return{store:s,exists:!0}},[s]);return(0,l.jsx)(k.Provider,{value:u,children:e})},"useNestedRouterStore",0,w],668024),t.s(["useActiveNestedRoutesWithMetadata",0,function(){var t=w(),i=t.store,r=t.exists,a=(0,n.useStoreWithEqualityFn)(i,function(t){return{nestedRoutes:t.nestedRoutes,hasOutlet:void 0!==t.activeOutletId}},e.shallow),o=a.nestedRoutes,s=a.hasOutlet;return r&&s?o:null}],579433)},372555,453749,t=>{"use strict";var e=t.i(984072),n=t.i(788787),i=t.i(36698),r=t.i(321666),a=t.i(124412),o=t.i(957946),s=t.i(474019),u=t.i(97232),l=t.i(973814),c=t.i(749419);function h(){var t,n,r=null!=(t=(0,o.useNestedRoute)())?t:{},h=r.isNestedRoute,d=r.nestedRouteIndex,v=null!=(n=(0,c.useNestedRouterActions)())?n:{},f=v.replaceNestedRoute,p=v.pushNestedRoute,m=(0,i.useRouter)(),y=(0,l.useAnalytics)();return(0,a.useCallback)(function(t){return(0,s._)(function(){return(0,u._)(this,function(n){switch(n.label){case 0:if(!(h&&f&&p&&void 0!==d&&t.hrefNested))return[3,5];if(t.trackingData&&y.track("NESTED_ROUTE_OPENED",(0,e._)({depth:d},t.trackingData)),"function"!=typeof t.hrefNested)return[3,1];return t.hrefNested(),[3,4];case 1:if(!t.replace)return[3,2];return f(d,t.hrefNested),[3,4];case 2:return[4,p(t.hrefNested)];case 3:n.sent(),n.label=4;case 4:return[3,7];case 5:return[4,m.push(t.hrefDefault)];case 6:n.sent(),n.label=7;case 7:return[2]}})})()},[h,d,f,p,m,y])}t.s(["usePushNestedAwareRoute",0,h],453749);var d=null;t.s(["useQueryParam",0,function(t){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=(0,i.useRouter)(),l=(0,o.useNestedRoute)(),c=h(),v=t||"__uniform-disabled-query-param__",f=(0,a.useMemo)(function(){return r.parseAsString.withOptions({history:"replace",shallow:!0})},[]),p=(0,n._)((0,r.useQueryState)(v,f),2),m=p[0],y=p[1],g=!s.skipNestedRoute&&(null==l?void 0:l.isNestedRoute),x=g?l.query[t]:null!=m?m:void 0,k=null!=x?x:s.defaultValue,w=(0,a.useCallback)(function(i){var r=i||void 0;if(x!==r){if(!g)return void y(null!=r?r:null);var a=null===d;if(a&&(d=new Map),d.set(t,r),a){var o=l.query;queueMicrotask(function(){var t=d;if(d=null,t){var i=(0,e._)({},o),r=!0,a=!1,s=void 0;try{for(var l,h=t[Symbol.iterator]();!(r=(l=h.next()).done);r=!0){var v=(0,n._)(l.value,2),f=v[0],p=v[1];void 0===p?delete i[f]:i[f]=p}}catch(t){a=!0,s=t}finally{try{r||null==h.return||h.return()}finally{if(a)throw s}}var m=new URLSearchParams(i).toString(),y="".concat(u.pathname).concat(m?"?".concat(m):"");c({hrefDefault:y,hrefNested:y,replace:!0})}})}}},[x,l,t,c,u.pathname,y,g]);return(0,a.useMemo)(function(){return[k,w]},[k,w])}],372555)},14653,t=>{"use strict";var e=t.i(26277),n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
2ine|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=(0,e.default)(function(t){return n.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&91>t.charCodeAt(2)});t.s(["default",0,i])},827539,882464,505029,898216,972990,272809,609072,707059,958279,50636,t=>{"use strict";var e,n,i,r,a,o=t.i(159211),s=t.i(877032),u=t.i(776477),l=t.i(123273),c=t.i(573942),h=t.i(990039),d=t.i(410164),v=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],f=new Set((0,d._)(v).concat(["pathRotation"])),p=t.i(984072),m=t.i(831427),y=function(t,e,n){return n>e?e:n<t?t:n},g={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},x=(0,m._)((0,p._)({},g),{transform:function(t){return y(0,1,t)}}),k=(0,m._)((0,p._)({},g),{default:1}),w=function(t){return Math.round(1e5*t)/1e5},b=t.i(83802),S=t.i(788787),T=RegExp("-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)","gu"),P=RegExp("^(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))$","iu"),_=function(t,e){return function(n){return!!("string"==typeof n&&P.test(n)&&n.startsWith(t)||e&&null!=n&&Object.prototype.hasOwnProperty.call(n,e))}},E=function(t,e,n){return function(i){if("string"!=typeof i)return i;var r,a=(0,S._)(i.match(T),4),o=a[0],s=a[1],u=a[2],l=a[3];return r={},(0,b._)(r,t,parseFloat(o)),(0,b._)(r,e,parseFloat(s)),(0,b._)(r,n,parseFloat(u)),(0,b._)(r,"alpha",void 0!==l?parseFloat(l):1),r}},A=(0,m._)((0,p._)({},g),{transform:function(t){return Math.round(y(0,255,t))}}),R={test:_("rgb","red"),parse:E("red","green","blue"),transform:function(t){var e=t.red,n=t.green,i=t.blue,r=t.alpha;return"rgba("+A.transform(e)+", "+A.transform(n)+", "+A.transform(i)+", "+w(x.transform(void 0===r?1:r))+")"}},M={test:_("#"),parse:function(t){var e="",n="",i="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alph
2a:r?parseInt(r,16)/255:1}},transform:R.transform},C=function(t){return{test:function(e){return"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length},parse:parseFloat,transform:function(e){return"".concat(e).concat(t)}}},V=C("deg"),D=C("%"),j=C("px"),L=C("vh"),O=C("vw"),I=(0,m._)((0,p._)({},D),{parse:function(t){return D.parse(t)/100},transform:function(t){return D.transform(100*t)}}),B={test:_("hsl","hue"),parse:E("hue","saturation","lightness"),transform:function(t){var e=t.hue,n=t.saturation,i=t.lightness,r=t.alpha;return"hsla("+Math.round(e)+", "+D.transform(w(n))+", "+D.transform(w(i))+", "+w(x.transform(void 0===r?1:r))+")"}},F={test:function(t){return R.test(t)||M.test(t)||B.test(t)},parse:function(t){return R.test(t)?R.parse(t):B.test(t)?B.parse(t):M.parse(t)},transform:function(t){return"string"==typeof t?t:t.hasOwnProperty("red")?R.transform(t):B.transform(t)},getAnimatableNone:function(t){var e=F.parse(t);return e.alpha=0,F.transform(e)}},N=RegExp("(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))","giu"),U="number",q="color",z=RegExp("var\\s*\\(\\s*--(?:[\\w-]+\\s*|[\\w-]+\\s*,(?:\\s*[^)(\\s]|\\s*\\((?:[^)(]|\\([^)(]*\\))*\\))+\\s*)\\)|#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\)|-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)","giu");function W(t){var e=t.toString(),n=[],i={color:[],number:[],var:[]},r=[],a=0,o=e.replace(z,function(t){return F.test(t)?(i.color.push(a),r.push(q),n.push(F.parse(t))):t.startsWith("var(")?(i.var.push(a),r.push("var"),n.push(t)):(i.number.push(a),r.push(U),n.push(parseFloat(t))),++a,"${}"}).split("${}");return{values:n,split:o,indexes:i,types:r}}function H(t){var e=t.split,n=t.types,i=e.length;return function(t){for(var r="",a=0;a<i;a++)if(r+=e[a],void 0!==t[a]){var o=n[a];o===U?r+=w(t[a]):o===q?r+=F.transform(t[a]):r+=t[a]}return r}}var X=function(t,e){return"number"==typeof t?(null==e?void 0:e.trim().endsWith("/"))?t:0:"number"==typeof t?0:F.test(t)?F.getAnimatableNone(t):t},Y={test:function(t){var e,n;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(T))?void 0:e.length)||0)+((null==(n=t.match(N))?void 0:n.length)||0)>0},parse:function(t){return W(t).values},createTransformer:function(t){return H(W(t))},getAnimatableNone:function(t){var e=W(t);return H(e)(e.values.map(function(t,n){return X(t,e.split[n])}))}},K=new Set(["brightness","contrast","saturate","opacity"]);function Q(t){var e=(0,S._)(t.slice(0,-1).split("("),2),n=e[0],i=e[1];if("drop-shadow"===n)return t;var r=(0,S._)(i.match(T)||[],1)[0];if(!r)return t;var a=i.replace(r,""),o=+!!K.has(n);return r!==i&&(o*=100),n+"("+o+a+")"}var G=RegExp("\\b([a-z-]*)\\(.*?\\)","gu"),Z=(0,m._)((0,p._)({},Y),{getAnimatableNone:function(t){var e=t.match(G);return e?e.map(Q).join(" "):t}}),$=t.i(714834),J=(0,m._)((0,p._)({},Y),{getAnimatableNone:function(t){var e=Y.parse(t);return Y.createTransformer(t)(e.map(function(t){return"number"==typeof t?0:(void 0===t?"undefined":(0,$._)(t))==="object"?(0,m._)((0,p._)({},t),{alpha:1}):t}))}}),tt=(0,m._)((0,p._)({},g),{transform:Math.round}),te=(0,m._)((0,p._)({borderWidth:j,borderTopWidth:j,borderRightWidth:j,borderBottomWidth:j,borderLeftWidth:j,borderRadius:j,borderTopLeftRadius:j,borderTopRightRadius:j,borderBottomRightRadius:j,borderBottomLeftRadius:j,width:j,maxWidth:j,height:j,maxHeight:j,top:j,right:j,bottom:j,left:j,inset:j,insetBlock:j,insetBlockStart:j,insetBlockEnd:j,insetInline:j,insetInlineStart:j,insetInlineEnd:j,padding:j,paddingTop:j,paddingRight:j,paddingBottom:j,paddingLeft:j,paddingBlock:j,paddingBlockStart:j,paddingBlockEnd:j,paddingInline:j,paddingInlineStart:j,paddingInlineEnd:j,margin:j,marginTop:j,marginRight:j,marginBottom:j,marginLeft:j,marginBlock:j,marginBlockStart:j,marginBlockEnd:j,marginInline:j,marginInlineStart:j,marginInlineEnd:j,fontSize:j,backgroundPositionX:j,backgroundPositionY:j},{rotate:V,pathRotation:V,rotateX:V,rotateY:V,rotateZ:V,scale:k,scaleX:k,scaleY:k,scaleZ:k,skew:V,skewX:V,skewY:V,distance:j,translateX:j,translateY:j,translateZ:j,x:j,y:j,z:j,perspective:j,transformPerspective:j,opacity:x,originX:I,originY:I,originZ:j}),{zIndex:tt,fillOpacity:x,strokeOpacity:x,numOctaves:tt}),tn=(0,m._)((0,p._)({},te),{color:F,backgroundColor:F,outlineColor:F,fill:F,stroke:F,borderColor:F,borderTopColor:F,borderRightColor:F,borderBottomColor:F,borderLeftColor:F,filter:Z,WebkitFilter:Z,mask:J,WebkitMask:J}),ti=function(t){return tn[t]},tr=function(){return{translate:0,scale:1,origin:0,originPoint:0}},ta=function(){return{x:tr(),y:tr()}},to=function(){return{min:0,max:0}},ts=function(){return{x:to(),y:to()}},tu=function(t){return!!(t&&t.getVelocity)},tl=new Set(["width","height","top","left","right","bottom"].concat((0,d._)(v))),tc=function(t){return function(e){return e.test(t)}},th=[g,j,D,V,O,L,{test:function(t){return"auto"===t},parse:function(t){return t}}],td=function(t){return th.find(tc(t))},tv=t.i(882607);function tf(t,e){return e?"".concat(t,". For more information and steps for solving, visit https://motion.dev/troubleshooting/").concat(e):t}var tp=function(){},tm=function(){};void 0!==tv.default&&(null==(n=tv.default.env)?void 0:n.NODE_ENV)!=="production"&&(tp=function(t,e,n){!t&&"u">typeof console&&console.warn(tf(e,n))},tm=function(t,e,n){if(!t)throw Error(tf(e,n))});var ty=function(t){return RegExp("^-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)$","u").test(t)},tg=function(t){return function(e){return"string"==typeof e&&e.startsWith(t)}},tx=tg("--"),tk=tg("var(--"),tw=function(t){return!!tk(t)&&tb.test(t.split("/*")[0].trim())},tb=RegExp("var\\(--(?:[\\w-]+\\s*|[\\w-]+\\s*,(?:\\s*[^)(\\s]|\\s*\\((?:[^)(]|\\([^)(]*\\))*\\))+\\s*)\\)$","iu");function tS(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}var tT=RegExp("^var\\(--(?:([\\w-]+)|([\\w-]+), ?([a-zA-Z\\d ()%#.,-]+))\\)","u"),tP=function(t){return 180*t/Math.PI},t_=function(t){return tA(tP(Math.atan2(t[1],t[0])))},tE={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:function(t){return(Math.abs(t[0])+Math.abs(t[3]))/2},rotate:t_,rotateZ:t_,skewX:function(t){return tP(Math.atan(t[1]))},skewY:function(t){return tP(Math.atan(t[2]))},skew:function(t){return(Math.abs(t[1])+Math.abs(t[2]))/2}},tA=function(t){return(t%=360)<0&&(t+=360),t},tR=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},tM=function(t){return Math.sqrt(t[4]*t[4]+t[5]*t[5])},tC={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tR,scaleY:tM,scale:function(t){return(tR(t)+tM(t))/2},rotateX:function(t){return tA(tP(Math.atan2(t[6],t[5])))},rotateY:function(t){return tA(tP(Math.atan2(-t[2],t[0])))},rotateZ:t_,rotate:t_,skewX:function(t){return tP(Math.atan(t[4]))},skewY:function(t){return tP(Math.atan(t[1]))},skew:function(t){return(Math.abs(t[1])+Math.abs(t[4]))/2}};function tV(t){return+!!t.includes("scale")}function tD(t,e){if(!t||"none"===t)return tV(e);var n,i,r=t.match(RegExp("^matrix3d\\(([-\\d.e\\s,]+)\\)$","u"));if(r)n=tC,i=r;else{var a=t.match(RegExp("^matrix\\(([-\\d.e\\s,]+)\\)$","u"));n=tE,i=a}if(!i)return tV(e);var o=n[e],s=i[1].split(",").map(tL);return"function"==typeof o?o(s):s[o]}var tj=function(t,e){var n=getComputedStyle(t).transform;return tD(void 0===n?"none":n,e)};function tL(t){return parseFloat(t.trim())}var tO=function(t){return t===g||t===j},tI=new Set(["x","y","z"]),tB=v.filter(function(t){return!tI.has(t)}),tF={width:function(t,e){var n=t.x,i=e.paddingLeft,r=e.paddingRight,a=e.boxSizing,o=n.max-n.min;return"border-box"===a?o:o-parseFloat(void 0===i?"0":i)-parseFloat(void 0===r?"0":r)},height:function(t,e){var n=t.y,i=e.paddingTop,r=e.paddingBottom,a=e.boxSizing,o=n.max-n.min;return"border-box"===a?o:o-parseFloat(void 0===i?"0":i)-parseFloat(void 0===r?"0":r)},top:function(t,e){return parseFloat(e.top)},left:function(t,e){return parseFloat(e.left)},bottom:function(t,e){var n=t.y;return parseFloat(e.top)+(n.max-n.min)},right:function(t,e){var n=t.x;return parseFloat(e.left)+(n.max-n.min)},x:function(t,e){return tD(e.transform,"x")},y:function(t,e){return tD(e.transform,"y")}};tF.translateX=tF.x,tF.translateY=tF.y;var tN=function(t){return t},tU={},tq=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tz(t,e){var n=!1,i=!0,r={delta:0,timestamp:0,isProcessing:!1},a=function(){return n=!0},o=tq.reduce(function(t,n){return t[n]=function(t,e){var n=new Set,i=new Set,r=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},u=0;function l(e){o.has(e)&&(c.schedule(e),t()),u++,e(s)}var c={schedule:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=a&&r?n:i;return e&&o.add(t),s.add(t),t},cancel:function(t){i.delete(t),o.delete(t)},process:function(t){if(s=t,r){a=!0;return}r=!0;var o=n;
2n=i,i=o,n.forEach(l),e,u=0,n.clear(),r=!1,a&&(a=!1,c.process(t))}};return c}(a,e?n:void 0),t},{}),s=o.setup,u=o.read,l=o.resolveKeyframes,c=o.preUpdate,h=o.update,d=o.preRender,v=o.render,f=o.postRender,p=function(){var a=tU.useManualTiming,o=a?r.timestamp:performance.now();n=!1,a||(r.delta=i?1e3/60:Math.max(Math.min(o-r.timestamp,40),1)),r.timestamp=o,r.isProcessing=!0,s.process(r),u.process(r),l.process(r),c.process(r),h.process(r),d.process(r),v.process(r),f.process(r),r.isProcessing=!1,n&&e&&(i=!1,t(p))},m=function(){n=!0,i=!0,r.isProcessing||t(p)};return{schedule:tq.reduce(function(t,e){var i=o[e];return t[e]=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||m(),i.schedule(t,e,r)},t},{}),cancel:function(t){for(var e=0;e<tq.length;e++)o[tq[e]].cancel(t)},state:r,steps:o}}var tW=tz("u">typeof requestAnimationFrame?requestAnimationFrame:tN,!0),tH=tW.schedule,tX=tW.cancel,tY=tW.state,tK=tW.steps,tQ=new Set,tG=!1,tZ=!1,t$=!1;function tJ(){if(tZ){var t=Array.from(tQ).filter(function(t){return t.needsMeasurement}),e=new Set(t.map(function(t){return t.element})),n=new Map;e.forEach(function(t){var e,i=(e=[],tB.forEach(function(n){var i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(+!!n.startsWith("scale")))}),e);i.length&&(n.set(t,i),t.render())}),t.forEach(function(t){return t.measureInitialState()}),e.forEach(function(t){t.render();var e=n.get(t);e&&e.forEach(function(e){var n,i=(0,S._)(e,2),r=i[0],a=i[1];null==(n=t.getValue(r))||n.set(a)})}),t.forEach(function(t){return t.measureEndState()}),t.forEach(function(t){void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tZ=!1,tG=!1,tQ.forEach(function(t){return t.complete(t$)}),tQ.clear()}function t0(){tQ.forEach(function(t){t.readKeyframes(),t.needsMeasurement&&(tZ=!0)})}var t1=function(){function t(e,n,i,r,a){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];(0,s._)(this,t),this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=(0,d._)(e),this.onComplete=n,this.name=i,this.motionValue=r,this.element=a,this.isAsync=o}return(0,u._)(t,[{key:"scheduleResolve",value:function(){this.state="scheduled",this.isAsync?(tQ.add(this),tG||(tG=!0,tH.read(t0),tH.resolveKeyframes(tJ))):(this.readKeyframes(),this.complete())}},{key:"readKeyframes",value:function(){var t=this.unresolvedKeyframes,e=this.name,n=this.element,i=this.motionValue;if(null===t[0]){var r=null==i?void 0:i.get(),a=t[t.length-1];if(void 0!==r)t[0]=r;else if(n&&e){var o=n.readValue(e,a);null!=o&&(t[0]=o)}void 0===t[0]&&(t[0]=a),i&&void 0===r&&i.set(t[0])}for(var s,u=1;u<t.length;u++)null!=t[u]||(t[u]=t[u-1])}},{key:"setFinalKeyframe",value:function(){}},{key:"measureInitialState",value:function(){}},{key:"renderEndStyles",value:function(){}},{key:"measureEndState",value:function(){}},{key:"complete",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tQ.delete(this)}},{key:"cancel",value:function(){"scheduled"===this.state&&(tQ.delete(this),this.state="pending")}},{key:"resume",value:function(){"pending"===this.state&&this.scheduleResolve()}}]),t}(),t2=function(t){return RegExp("^0[^.\\s]+$","u").test(t)},t3=new Set([Z,J]);function t5(t,e){var n=ti(t);return t3.has(n)||(n=Y),n.getAnimatableNone?n.getAnimatableNone(e):void 0}var t4=new Set(["auto","none","0"]),t9=function(t){function e(t,n,i,r,a){return(0,s._)(this,e),(0,o._)(this,e,[t,n,i,r,a,!0])}return(0,h._)(e,t),(0,u._)(e,[{key:"readKeyframes",value:function(){var t=this.unresolvedKeyframes,n=this.element,i=this.name;if(n&&n.current){(0,l._)((0,c._)(e.prototype),"readKeyframes",this).call(this);for(var r=0;r<t.length;r++){var a=t[r];if("string"==typeof a&&tw(a=a.trim())){var o=function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;tm(i<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'),"max-css-var-depth");var r=(0,S._)(function(t){var e=tT.exec(t);if(!e)return[,];var n=(0,S._)(e,4),i=n[1],r=n[2],a=n[3];return["--".concat(null!=i?i:r),a]}(e),2),a=r[0],o=r[1];if(a){var s=window.getComputedStyle(n).getPropertyValue(a);if(s){var u=s.trim();return ty(u)?parseFloat(u):u}return tw(o)?t(o,n,i+1):o}}(a,n.current);void 0!==o&&(t[r]=o),r===t.length-1&&(this.finalKeyframe=a)}}if(this.resolveNoneKeyframes(),tl.has(i)&&2===t.length){var s=(0,S._)(t,2),u=s[0],h=s[1],d=td(u),v=td(h);if(tS(u)!==tS(h)&&tF[i]){this.needsMeasurement=!0;return}if(d!==v)if(tO(d)&&tO(v))for(var f=0;f<t.length;f++){var p=t[f];"string"==typeof p&&(t[f]=parseFloat(p))}else tF[i]&&(this.needsMeasurement=!0)}}}},{key:"resolveNoneKeyframes",value:function(){for(var t,e=this.unresolvedKeyframes,n=this.name,i=[],r=0;r<e.length;r++)(null===e[r]||("number"==typeof(t=e[r])?0===t:null===t||"none"===t||"0"===t||t2(t)))&&i.push(r);i.length&&function(t,e,n){for(var i=0,r=void 0;i<t.length&&!r;){var a=t[i];"string"==typeof a&&!t4.has(a)&&W(a).values.length&&(r=t[i]),i++}if(r&&n){var o=!0,s=!1,u=void 0;try{for(var l,c=e[Symbol.iterator]();!(o=(l=c.next()).done);o=!0)t[l.value]=t5(n,r)}catch(t){s=!0,u=t}finally{try{o||null==c.return||c.return()}finally{if(s)throw u}}}}(e,i,n)}},{key:"measureInitialState",value:function(){var t=this.element,e=this.unresolvedKeyframes,n=this.name;if(t&&t.current){"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tF[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;var i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}}},{key:"measureEndState",value:function(){var t,e=this.element,n=this.name,i=this.unresolvedKeyframes;if(e&&e.current){var r=e.getValue(n);r&&r.jump(this.measuredOrigin,!1);var a=i.length-1,o=i[a];i[a]=tF[n](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEac
2h(function(t){var n=(0,S._)(t,2),i=n[0],r=n[1];e.getValue(i).set(r)}),this.resolveNoneKeyframes()}}}]),e}(t1),t7=t.i(183202),t6=t.i(528388),t8=function(t){return 1e3*t},et=function(t){return t/1e3},ee=t.i(22069);function en(t,e){-1===t.indexOf(e)&&t.push(e)}function ei(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var er=function(){function t(){(0,s._)(this,t),this.subscriptions=[]}return(0,u._)(t,[{key:"add",value:function(t){var e=this;return en(this.subscriptions,t),function(){return ei(e.subscriptions,t)}}},{key:"notify",value:function(t,e,n){var i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(var r=0;r<i;r++){var a=this.subscriptions[r];a&&a(t,e,n)}}},{key:"getSize",value:function(){return this.subscriptions.length}},{key:"clear",value:function(){this.subscriptions.length=0}}]),t}(),ea=t.i(737496);function eo(t,e,n){e.startsWith("--")?t.style.setProperty(e,n):t.style[e]=n}function es(t){var e;return function(){return void 0===e&&(e=t()),e}}var eu={};function el(t,e){var n=es(t);return function(){var t;return null!=(t=eu[e])?t:n()}}var ec=el(function(){return void 0!==window.ScrollTimeline},"scrollTimeline"),eh=function(t){return null!==t};function ed(t,e,n){var i=e.repeat,r=e.repeatType,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=t.filter(eh),s=a<0||i&&"loop"!==(void 0===r?"loop":r)&&i%2==1?0:o.length-1;return s&&void 0!==n?n:o[s]}var ev=function(){function t(){(0,s._)(this,t),this.updateFinished()}return(0,u._)(t,[{key:"finished",get:function(){return this._finished}},{key:"updateFinished",value:function(){var t=this;this._finished=new Promise(function(e){t.resolve=e})}},{key:"notifyFinished",value:function(){this.resolve()}},{key:"then",value:function(t,e){return this.finished.then(t,e)}}]),t}(),ef={layout:0,mainThread:0,waapi:0},ep=function(t){return Array.isArray(t)&&"number"==typeof t[0]},em=el(function(){try{document.createElement("div").animate({opacity:0}
2,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),ey=function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,i="",r=Math.max(Math.round(e/n),2),a=0;a<r;a++)i+=Math.round(1e4*t(a/(r-1)))/1e4+", ";return"linear(".concat(i.substring(0,i.length-2),")")},eg=function(t){var e=(0,S._)(t,4),n=e[0],i=e[1],r=e[2],a=e[3];return"cubic-bezier(".concat(n,", ").concat(i,", ").concat(r,", ").concat(a,")")},ex={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eg([0,.65,.55,1]),circOut:eg([.55,0,1,.45]),backIn:eg([.31,.01,.66,-.59]),backOut:eg([.33,1.53,.69,.99])};function ek(t){return"function"==typeof t&&"applyToOptions"in t}var ew=function(t){function e(t){if((0,s._)(this,e),(r=(0,o._)(this,e)).finishedTime=null,r.isStopped=!1,r.manualStartTime=null,!t)return(0,ea._)(r);var n,i,r,a=t.element,u=t.name,l=t.keyframes,c=t.pseudoElement,h=t.allowFlatten,d=t.finalKeyframe,v=t.onComplete;r.isPseudoElement=!!c,r.allowFlatten=void 0!==h&&h,r.options=t,tm("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");var f=(n=t.type,i=(0,t6._)(t,["type"]),ek(n)&&em()?n.applyToOptions(i):(null!=i.duration||(i.duration=300),null!=i.ease||(i.ease="easeOut"),i));return r.animation=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=i.delay,a=i.duration,o=void 0===a?300:a,s=i.repeat,u=i.repeatType,l=i.ease,c=i.times,h=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,d=(0,b._)({},e,n);c&&(d.offset=c);var v=function t(e,n){if(e)return"function"==typeof e?em()?ey(e,n):"ease-out":ep(e)?eg(e):Array.isArray(e)?e.map(function(e){return t(e,n)||ex.easeOut}):ex[e]}(void 0===l?"easeOut":l,o);Array.isArray(v)&&(d.easing=v);var f={delay:void 0===r?0:r,duration:o,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:(void 0===s?0:s)+1,direction:"reverse"===(void 0===u?"loop":u)?"alternate":"normal"};h&&(f.pseudoElement=h);var p=t.animate(d,f);return p}(a,u,l,f,c),!1===f.autoplay&&r.animation.pause(),r.animation.onfinish=function(){if(r.finishedTime=r.time,!c){var t=ed(l,r.options,d,r.speed);r.updateMotionValue&&r.updateMotionValue(t),eo(a,u,t),r.animation.cancel()}null==v||v(),r.notifyFinished()},r}return(0,h._)(e,t),(0,u._)(e,[{key:"play",value:function(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}},{key:"pause",value:function(){this.animation.pause()}},{key:"complete",value:function(){var t,e;null==(t=(e=this.animation).finish)||t.call(e)}},{key:"cancel",value:function(){try{this.animation.cancel()}catch(t){}}},{key:"stop",value:function(){if(!this.isStopped){this.isStopped=!0;var t=this.state;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}}},{key:"commitStyles",value:function(){var t,e,n,i=null==(t=this.options)?void 0:t.element;!this.isPseudoElement&&(null==i?void 0:i.isConnected)&&(null==(e=(n=this.animation).commitStyles)||e.call(n))}},{key:"duration",get:function(){var t,e;return et(Number((null==(e=this.animation.effect)||null==(t=e.getComputedTiming)?void 0:t.call(e).duration)||0))}},{key:"iterationDuration",get:function(){var t=(this.options||{}).delay;return this.duration+et(void 0===t?0:t)}},{key:"time",get:function(){return et(Number(this.animation.currentTime)||0)},set:function(t){var e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=t8(t),e&&this.animation.pause()}},{key:"speed",get:function(){return this.animation.playbackRate},set:function(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}},{key:"state",get:function(){return null!==this.finishedTime?"finished":this.animation.playState}},{key:"startTime",get:function(){var t;return null!=(t=this.manualStartTime)?t:Number(this.animation.startTime)},set:function(t){this.manualStartTime=this.animation.startTime=t}},{key:"attachTimeline",value:function(t){var e,n=t.timeline,i=t.rangeStart,r=t.rangeEnd,a=t.observe;return(this.allowFlatten&&(null==(e=this.animation.effect)||e.updateTiming({easing:"linear"})),this.animation.onfinish=null,n&&ec())?(this.animation.timeline=n,i&&(this.animation.rangeStart=i),r&&(this.animation.rangeEnd=r),tN):a(this)}}]),e}(ev),eb=new Set(["opacity","clipPath","filter","transform"]),eS=tz(queueMicrotask,!1),eT=eS.schedule;function eP(){i=void 0}eS.cancel;var e_={now:function(){return void 0===i&&e_.set(tY.isProcessing||tU.useManualTiming?tY.timestamp:performance.now()),i},set:function(t){i=t,queueMicrotask(eP)}},eE=function(t,e){return e?1e3/e*t:0},eA=void 0,eR=function(){function t(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s._)(this,t),this.canTrackVelocity=null,this.events={},this.updateAndNotify=function(t){var e=e_.now();if(n.updatedAt!==e&&n.setPrevFrameValue(),n.prev=n.current,n.setCurrent(t),n.current!==n.prev&&(null==(o=n.events.change)||o.notify(n.current),n.dependents)){var i=!0,r=!1,a=void 0;try{for(var o,s,u=n.dependents[Symbol.iterator]();!(i=(s=u.next()).done);i=!0)s.value.dirty()}catch(t){r=!0,a=t}finally{try{i||null==u.return||u.return()}finally{if(r)throw a}}}},this.hasAnimated=!1,this.setCurrent(e),this.owner=i.owner}return(0,u._)(t,[{key:"setCurrent",value:function(t){this.current=t,this.updatedAt=e_.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}},{key:"setPrevFrameValue",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current;this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}},{key:"onChange",value:function(t){return this.on("change",t)}},{key:"on",value:function(t,e){var n=this;this.events[t]||(this.events[t]=new er);var i=this.events[t].add(e);return"change"===t?function(){i(),tH.read(function(){n.events.change.getSize()||n.stop()})}:i}},{key:"clearListeners",value:function(){for(var t in this.events)this.events[t].clear()}},{key:"attach",value:function(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}},{key:"set",value:function(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}},{key:"setWithVelocity",value:function(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}},{key:"jump",value:function(t){var e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}},{key:"dirty",value:function(){var t;null==(t=this.events.change)||t.notify(this.current)}},{key:"addDependent",value:function(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}},{key:"removeDependent",value:function(t){this.dependents&&this.dependents.delete(t)}},{key:"get",value:function(){return eA&&eA.push(this),this.current}},{key:"getPrevious",value:function(){return this.prev}},{key:"getVelocity",value:function(){var t=e_.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;var e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return eE(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}},{key:"start",value:function(t){var e=this;return this.stop(),new Promise(function(n){e.hasAnimated=!0,e.animation=t(n),e.events.animationStart&&e.events.animationStart.notify()}).then(function(){e.events.animationComplete&&e.events.animationComplete.notify(),e.clearAnimation()})}},{key:"stop",value:function(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}},{key:"isAnimating",value:function(){return!!this.animation}},{key:"clearAnimation",value:function(){delete this.animation}},{key:"destroy",value:function(){var t,e;null==(t=this.dependents)||t.clear(),null==(e=this.events.destroy)||e.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}]),t}();function eM(t,e){return new eR(t,e)}var eC=(0,d._)(th).concat([F,Y]),eV=new WeakMap;function eD(t){return null!==t&&(void 0===t?"undefined":(0,$._)(t))==="object"&&"function"==typeof t.start}function ej(t){return"string"==typeof t||Array.isArray(t)}var eL=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eO=["initial"].concat((0,d._)(eL));function eI(t){return eD(t.animate)||eO.some(function(e){return ej(t[e])})}function eB(t){return!!(eI(t)||t.variants)}var eF={current:null},eN={current:!1},eU="u">typeof window;function eq(t){var e=[{},{}];
2return null==t||t.values.forEach(function(t,n){e[0][n]=t.get(),e[1][n]=t.getVelocity()}),e}function ez(t,e,n,i){if("function"==typeof e){var r=(0,S._)(eq(i),2),a=r[0],o=r[1];e=e(void 0!==n?n:t.custom,a,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){var s=(0,S._)(eq(i),2),u=s[0],l=s[1];e=e(void 0!==n?n:t.custom,u,l)}return e}var eW=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eH={},eX=function(t){function e(){var t;return(0,s._)(this,e),t=(0,o._)(this,e,arguments),t.KeyframeResolver=t9,t}return(0,h._)(e,t),(0,u._)(e,[{key:"sortInstanceNodePosition",value:function(t,e){return 2&t.compareDocumentPosition(e)?1:-1}},{key:"getBaseTargetFromProps",value:function(t,e){var n=t.style;return n?n[e]:void 0}},{key:"removeValueFromRenderState",value:function(t,e){var n=e.vars,i=e.style;delete n[t],delete i[t]}},{key:"handleChildMotionValue",value:function(){var t=this;this.childSubscription&&(this.childSubscription(),delete this.childSubscription);var e=this.props.children;tu(e)&&(this.childSubscription=e.on("change",function(e){t.current&&(t.current.textContent="".concat(e))}))}}]),e}(function(){function t(e){var n=this,i=e.parent,r=e.props,a=e.presenceContext,o=e.reducedMotionConfig,u=e.skipAnimations,l=e.blockInitialAnimation,c=e.visualState,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s._)(this,t),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=t1,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=function(){return n.notify("Update",n.latestValues)},this.render=function(){n.current&&(n.triggerBuild(),n.renderInstance(n.current,n.renderState,n.props.style,n.projection))},this.renderScheduledAt=0,this.scheduleRender=function(){var t=e_.now();n.renderScheduledAt<t&&(n.renderScheduledAt=t,tH.render(n.render,!1,!0))};var d=c.latestValues,v=c.renderState;this.latestValues=d,this.baseTarget=(0,p._)({},d),this.initialValues=r.initial?(0,p._)({},d):{},this.renderState=v,this.parent=i,this.props=r,this.presenceContext=a,this.depth=i?i.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=u,this.options=h,this.blockInitialAnimation=!!l,this.isControllingVariants=eI(r),this.isVariantNode=eB(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);var f=this.scrapeMotionValuesFromProps(r,{},this),m=(f.willChange,(0,t6._)(f,["willChange"]));for(var y in m){var g=m[y];void 0!==d[y]&&tu(g)&&g.set(d[y])}}return(0,u._)(t,[{key:"scrapeMotionValuesFromProps",value:function(t,e,n){return{}}},{key:"mount",value:function(t){var e,n,i,r=this;if(this.hasBeenMounted)for(var a in this.initialValues)null==(i=this.values.get(a))||i.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];this.current=t,eV.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(function(t,e){return r.bindToMotionValue(e,t)}),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(eN.current||function(){if(eN.current=!0,eU)if(window.matchMedia){var t=window.matchMedia("(prefers-reduced-motion)"),e=function(){return eF.current=t.matches};t.addEventListener("change",e),e()}else eF.current=!1}(),this.shouldReduceMotion=eF.current),this.shouldSkipAnimations=null!=(e=this.skipAnimationsConfig)&&e,null==(n=this.parent)||n.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}},{key:"unmount",value:function(){var t;for(var e in this.projection&&this.projection.unmount(),tX(this.notifyUpdate),tX(this.render),this.valueSubscriptions.forEach(function(t){return t()}),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),null==(t=this.parent)||t.removeChild(this),this.events)this.events[e].clear();for(var n in this.features){var i=this.features[n];i&&(i.unmount(),i.isMounted=!1)}this.current=null}},{key:"addChild",value:function(t){this.children.add(t),null!=this.enteringChildren||(this.enteringChildren=new Set),this.enteringChildren.add(t)}},{key:"removeChild",value:function(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}},{key:"bindToMotionValue",value:function(t,e){var n,i=this;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&eb.has(t)&&(0,t7._)(this.current,HTMLElement)){var r=e.accelerate,a=r.factory,o=r.keyframes,s=r.times,u=r.ease,l=r.duration,c=new ew({element:this.current,name:t,keyframes:o,times:s,ease:u,duration:t8(l)}
2),h=a(c);this.valueSubscriptions.set(t,function(){h(),c.cancel()});return}var d=f.has(t);d&&this.onBindTransform&&this.onBindTransform();var v=e.on("change",function(e){i.latestValues[t]=e,i.props.onUpdate&&tH.preRender(i.notifyUpdate),d&&i.projection&&(i.projection.isTransformDirty=!0),i.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,function(){v(),n&&n()})}},{key:"sortNodePosition",value:function(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}},{key:"updateFeatures",value:function(){var t="animation";for(t in eH){var e=eH[t];if(e){var n=e.isEnabled,i=e.Feature;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){var r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}}},{key:"triggerBuild",value:function(){this.build(this.renderState,this.latestValues,this.props)}},{key:"measureViewportBox",value:function(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ts()}},{key:"getStaticValue",value:function(t){return this.latestValues[t]}},{key:"setStaticValue",value:function(t,e){this.latestValues[t]=e}},{key:"update",value:function(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(var n=0;n<eW.length;n++){var i=eW[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);var r=t["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(t,e,n){for(var i in e){var r=e[i],a=n[i];if(tu(r))t.addValue(i,r);else if(tu(a))t.addValue(i,eM(r,{owner:t}));else if(a!==r)if(t.hasValue(i)){var o=t.getValue(i);!0===o.liveStyle?o.jump(r):o.hasAnimated||o.set(r)}else{var s=t.getStaticValue(i);t.addValue(i,eM(void 0!==s?s:r,{owner:t}))}}for(var u in n)void 0===e[u]&&t.removeValue(u);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}},{key:"getProps",value:function(){return this.props}},{key:"getVariant",value:function(t){return this.props.variants?this.props.variants[t]:void 0}},{key:"getDefaultTransition",value:function(){return this.props.transition}},{key:"getTransformPagePoint",value:function(){return this.props.transformPagePoint}},{key:"getClosestVariantNode",value:function(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}},{key:"addVariantChild",value:function(t){var e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),function(){return e.variantChildren.delete(t)}}},{key:"addValue",value:function(t,e){var n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}},{key:"removeValue",value:function(t){this.values.delete(t);var e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}},{key:"hasValue",value:function(t){return this.values.has(t)}},{key:"getValue",value:function(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];var n=this.values.get(t);return void 0===n&&void 0!==e&&(n=eM(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}},{key:"readValue",value:function(t,e){var n,i,r=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=r&&("string"==typeof r&&(ty(r)||t2(r))?r=parseFloat(r):(n=r,!eC.find(tc(n))&&Y.test(e)&&(r=t5(t,e))),this.setBaseTarget(t,tu(r)?r.get():r)),tu(r)?r.get():r}},{key:"setBaseTarget",value:function(t,e){this.baseTarget[t]=e}},{key:"getBaseTarget",value:function(t){var e=this.props.initial;if("string"==typeof e||(void 0===e?"undefined":(0,$._)(e))==="object"){var n,i,r=ez(this.props,e,null==(i=this.presenceContext)?void 0:i.custom);r&&(n=r[t])}if(e&&void 0!==n)return n;var a=this.getBaseTargetFromProps(this.props,t);return void 0===a||tu(a)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:a}},{key:"on",value:function(t,e){return this.events[t]||(this.events[t]=new er),this.events[t].add(e)}},{key:"notify",value:function(t){for(var e,n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.events[t]&&(e=this.events[t]).notify.apply(e,(0,d._)(i))}},{key:"scheduleRenderMicrotask",value:function(){eT.render(this.render)}}]),t}());function eY(t){return t.replace(/([A-Z])/g,function(t){return"-".concat(t.toLowerCase())})}var eK=function(t,e){return e&&"number"==typeof t?e.transform(t):t},eQ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eG=v.length;function eZ(t,e,n){var i=t.style,r=t.vars,a=t.transformOrigin,o=!1,s=!1;for(var u in e){var l=e[u];if(f.has(u)){o=!0;continue}if(tx(u)){r[u]=l;continue}var c=eK(l,te[u]);u.startsWith("origin")?(s=!0,a[u]=c):i[u]=c}if(!e.transform&&(o||n?i.transform=function(t,e,n){for(var i="",r=!0,a=0;a<eG;a++){var o=v[a],s=t[o];if(void 0!==s){var u=!0;if("number"==typeof s)u=s===+!!o.startsWith("scale");else{var l=parseFloat(s);u=o.startsWith("scale")?1===l:0===l}if(!u||n){var c=eK(s,te[o]);if(!u){r=!1;var h=eQ[o]||o;i+="".concat(h,"(").concat(c,") ")}n&&(e[o]=c)}}}var d=t.pathRotation;return d&&(r=!1,i+="rotate(".concat(eK(d,te.pathRotation),") ")),i=i.trim(),n?i=n(e,r?"":i):r&&(i="none"),i}(e,t.transform,n):i.transform&&(i.transform="none")),s){var h=a.originX,d=a.originY,p=a.originZ;i.transformOrigin="".concat(void 0===h?"50%":h," ").concat(void 0===d?"50%":d," ").concat(void 0===p?0:p)}}var e$={offset:"stroke-dashoffset",array:"stroke-dasharray"},eJ={offset:"strokeDashoffset",array:"strokeDasharray"},e0=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function e1(t,e,n,i,r){var a=(0,ee._)([e,n,i,r]),o=a[0],s=a.slice(1),u=o.attrX,l=o.attrY,c=o.attrScale,h=o.pathLength,d=o.pathSpacing,v=o.pathOffset,f=(0,t6._)(o,["attrX","attrY","attrScale","pathLength","pathSpacing","pathOffset"]),p=(0,ee._)(s),m=p[0],y=p.slice(1),g=(0,ee._)(y),x=g[0],k=g.slice(1),w=(0,S._)(k,1)[0];
2if(eZ(t,f,x),m){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};var b=t.attrs,T=t.style;b.transform&&(T.transform=b.transform,delete b.transform),(T.transform||b.transformOrigin)&&(T.transformOrigin=null!=(A=b.transformOrigin)?A:"50% 50%",delete b.transformOrigin),T.transform&&(T.transformBox=null!=(R=null==w?void 0:w.transformBox)?R:"fill-box",delete b.transformBox);var P=!0,_=!1,E=void 0;try{for(var A,R,M,C=e0[Symbol.iterator]();!(P=(M=C.next()).done);P=!0){var V=M.value;void 0!==b[V]&&(T[V]=b[V],delete b[V])}}catch(t){_=!0,E=t}finally{try{P||null==C.return||C.return()}finally{if(_)throw E}}void 0!==u&&(b.x=u),void 0!==l&&(b.y=l),void 0!==c&&(b.scale=c),void 0!==h&&function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=!(arguments.length>4)||void 0===arguments[4]||arguments[4];t.pathLength=1;var a=r?e$:eJ;t[a.offset]="".concat(-i),t[a.array]="".concat(e," ").concat(n)}(b,h,void 0===d?1:d,void 0===v?0:v,!1)}var e2=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),e3=function(t){return"string"==typeof t&&"svg"===t.toLowerCase()};function e5(t,e,n,i){var r,a=e.style,o=e.vars,s=t.style;for(r in a)s[r]=a[r];for(r in null==i||i.applyProjectionStyles(s,n),o)s.setProperty(r,o[r])}function e4(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var e9={correct:function(t,e){if(!e.target)return t;if("string"==typeof t)if(!j.test(t))return t;else t=parseFloat(t);var n=e4(t,e.target.x),i=e4(t,e.target.y);return"".concat(n,"% ").concat(i,"%")}},e7=function(t,e,n){return t+(e-t)*n},e6={borderRadius:(0,m._)((0,p._)({},e9),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:e9,borderTopRightRadius:e9,borderBottomLeftRadius:e9,borderBottomRightRadius:e9,boxShadow:{correct:function(t,e){var n=e.treeScale,i=e.projectionDelta,r=Y.parse(t);if(r.length>5)return t;var a=Y.createTransformer(t),o=+("number"!=typeof r[0]),s=i.x.scale*n.x,u=i.y.scale*n.y;r[0+o]/=s,r[1+o]/=u;var l=e7(s,u,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),a(r)}}};function e8(t,e){var n=e.layout,i=e.layoutId;return f.has(t)||t.startsWith("origin")||(n||void 0!==i)&&(!!e6[t]||"opacity"===t)}function nt(t,e,n){var i,r=t.style,a=null==e?void 0:e.style,o={};if(!r)return o;for(var s in r)(tu(r[s])||a&&tu(a[s])||e8(s,t)||(null==n||null==(i=n.getValue(s))?void 0:i.liveStyle)!==void 0)&&(o[s]=r[s]);return o}function ne(t,e,n){var i=nt(t,e,n);for(var r in t)(tu(t[r])||tu(e[r]))&&(i[-1!==v.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]);return i}var nn=function(t){function e(){var t;return(0,s._)(this,e),t=(0,o._)(this,e,arguments),t.type="svg",t.isSVGTag=!1,t.measureInstanceViewportBox=ts,t}return(0,h._)(e,t),(0,u._)(e,[{key:"getBaseTargetFromProps",value:function(t,e){return t[e]}},{key:"readValueFromInstance",value:function(t,e){if(f.has(e)){var n=ti(e);return n&&n.default||0}return e=e2.has(e)?e:eY(e),t.getAttribute(e)}},{key:"scrapeMotionValuesFromProps",value:function(t,e,n){return ne(t,e,n)}}
2,{key:"build",value:function(t,e,n){e1(t,e,this.isSVGTag,n.transformTemplate,n.style)}},{key:"renderInstance",value:function(t,e,n,i){for(var r in e5(t,e,void 0,i),e.attrs)t.setAttribute(e2.has(r)?r:eY(r),e.attrs[r])}},{key:"mount",value:function(t){this.isSVGTag=e3(t.tagName),(0,l._)((0,c._)(e.prototype),"mount",this).call(this,t)}}]),e}(eX);function ni(t){var e=t.top;return{x:{min:t.left,max:t.right},y:{min:e,max:t.bottom}}}function nr(t){return void 0===t||1===t}function na(t){var e=t.scale,n=t.scaleX,i=t.scaleY;return!nr(e)||!nr(n)||!nr(i)}function no(t){return na(t)||ns(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ns(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}function nu(t,e,n,i,r){return void 0!==r&&(t=i+r*(t-i)),i+n*(t-i)+e}function nl(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;t.min=nu(t.min,e,n,i,r),t.max=nu(t.max,e,n,i,r)}function nc(t,e){var n=e.x,i=e.y;nl(t.x,n.translate,n.scale,n.originPoint),nl(t.y,i.translate,i.scale,i.originPoint)}function nh(t,e){t.min+=e,t.max+=e}function nd(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5,a=e7(t.min,t.max,r);nl(t,e,n,a,i)}function nv(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function nf(t,e,n){var i=null!=n?n:t;nd(t.x,nv(e.x,i.x),e.scaleX,e.scale,e.originX),nd(t.y,nv(e.y,i.y),e.scaleY,e.scale,e.originY)}function np(t,e){return ni(function(t,e){if(!e)return t;var n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}var nm=function(t){function e(){var t;return(0,s._)(this,e),t=(0,o._)(this,e,arguments),t.type="html",t.renderInstance=e5,t}return(0,h._)(e,t),(0,u._)(e,[{key:"readValueFromInstance",value:function(t,e){if(f.has(e)){var n;return(null==(n=this.projection)?void 0:n.isProjecting)?tV(e):tj(t,e)}var i=window.getComputedStyle(t),r=(tx(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}},{key:"measureInstanceViewportBox",value:function(t,e){return np(t,e.transformPagePoint)}},{key:"build",value:function(t,e,n){eZ(t,e,n.transformTemplate)}},{key:"scrapeMotionValuesFromProps",value:function(t,e,n){return nt(t,e,n)}}]),e}(eX),ny=t.i(124412),ng=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function nx(t){if("string"!=typeof t||t.includes("-"));else if(ng.indexOf(t)>-1||RegExp("[A-Z]","u").test(t))return!0;return!1}var nk=t.i(828626),nw=(0,ny.createContext)({});t.s(["LayoutGroupContext",0,nw],882464);var nb=(0,ny.createContext)({strict:!1}),nS=(0,ny.createContext)({transformPagePoint:function(t){return t},isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",0,nS],505029);var nT=(0,ny.createContext)({});function nP(t){return Array.isArray(t)?t.join(" "):t}var n_=function(){return{style:{},transform:{},transformOrigin:{},vars:{}}};function nE(t,e,n){for(var i in e)tu(e[i])||e8(i,n)||(t[i]=e[i])}var nA=function(){return(0,m._)((0,p._)({},n_()),{attrs:{}})},nR=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function nM(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||nR.has(t)}var nC=function(t){return!nM(t)};try{e=t.r(14653).default,"function"==typeof e&&(nC=function(t){return t.startsWith("on")?!nM(t):e(t)})}catch(t){}function nV(t){return tu(t)?t.get():t}var nD=(0,ny.createContext)(null);function nj(t){var e=(0,ny.useRef)(null);return null===e.current&&(e.current=t()),e.current}t.s(["PresenceContext",0,nD],898216),t.s(["useConstant",0,nj],972990);var nL=function(t){return function(e,n){var i=(0,ny.useContext)(nT),r=(0,ny.useContext)(nD),a=function(){var n,a;return n=t.scrapeMotionValuesFromProps,a=t.createRenderState,{latestValues:function(t,e,n,i){var r={},a=i(t,{});for(var o in a)r[o]=nV(a[o]);var s=t.initial,u=t.animate,l=eI(t),c=eB(t);e&&c&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===u&&(u=e.animate));var h=!!n&&!1===n.initial,d=(h=h||!1===s)?u:s;if(d&&"boolean"!=typeof d&&!eD(d))for(var v=Array.isArray(d)?d:[d],f=0;f<v.length;f++){var p=ez(t,v[f]);if(p){var m=p.transitionEnd,y=(p.transition,(0,t6._)(p,["transitionEnd","transition"]));for(var g in y){var x=y[g];if(Array.isArray(x)){var k=h?x.length-1:0;x=x[k]}null!==x&&(r[g]=x)}
2for(var w in m)r[w]=m[w]}}return r}(e,i,r,n),renderState:a()}};return n?a():nj(a)}},nO=nL({scrapeMotionValuesFromProps:nt,createRenderState:n_}),nI=nL({scrapeMotionValuesFromProps:ne,createRenderState:nA}),nB={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},nF=!1;function nN(){var t=function(t){e[t]={isEnabled:function(e){return nB[t].some(function(t){return!!e[t]})}}};if(!nF){var e={};for(var n in nB)t(n);eH=e,nF=!0}return eH}var nU=Symbol.for("motionComponentSymbol"),nq="data-"+eY("framerAppearId"),nz=(0,ny.createContext)({});function nW(t){return t&&(void 0===t?"undefined":(0,$._)(t))==="object"&&Object.prototype.hasOwnProperty.call(t,"current")}var nH="u">typeof window?ny.useLayoutEffect:ny.useEffect;function nX(t){var e,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.forwardMotionProps,a=void 0!==r&&r,o=i.type,s=arguments.length>2?arguments[2]:void 0,u=arguments.length>3?arguments[3]:void 0;s&&function(t){var e=nN();for(var n in t)e[n]=(0,p._)({},e[n],t[n]);eH=e}(s);var l=o?"svg"===o:nx(t),c=l?nI:nO;function h(e,n){var i,r,o,s,h,d,v=(0,m._)((0,p._)({},(0,ny.useContext)(nS),e),{layoutId:(i=e.layoutId,(r=(0,ny.useContext)(nw).id)&&void 0!==i?r+"-"+i:i)}),f=v.isStatic,y=(V=(C=function(t,e){if(eI(t)){var n=t.initial,i=t.animate;return{initial:!1===n||ej(n)?n:void 0,animate:ej(i)?i:void 0}}return!1!==t.inherit?e:{}}(e,(0,ny.useContext)(nT))).initial,D=C.animate,(0,ny.useMemo)(function(){return{initial:V,animate:D}},[nP(V),nP(D)])),g=c(e,f);if(!f&&"u">typeof window){(0,ny.useContext)(nb).strict;var x,k,w,b,S,T,P,_,E,A,R,M,C,V,D,j,L,O,I,B,F,N,U,q,z,W,H,X,Y,K,Q,G,Z,J,tt=function(t){var e=nN(),n=e.drag,i=e.layout;if(!n&&!i)return{};var r=(0,p._)({},n,i);return{MeasureLayout:(null==n?void 0:n.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(v);d=tt.MeasureLayout,j=u,L=tt.ProjectionNode,N=(0,ny.useContext)(nT).visualElement,U=(0,ny.useContext)(nb),q=(0,ny.useContext)(nD),W=(z=(0,ny.useContext)(nS)).reducedMotion,H=z.skipAnimations,X=(0,ny.useRef)(null),Y=(0,ny.useRef)(!1),j=j||U.renderer,!X.current&&j&&(X.current=j(t,{visualState:g,parent:N,props:v,presenceContext:q,blockInitialAnimation:!!q&&!1===q.initial,reducedMotionConfig:W,skipAnimations:H,isSVG:l}),Y.current&&X.current&&(X.current.manuallyAnimateOnMount=!0)),K=X.current,Q=(0,ny.useContext)(nz),K&&!K.projection&&L&&("html"===K.type||"svg"===K.type)&&(x=X.current,k=v,w=L,b=Q,S=k.layoutId,T=k.layout,P=k.drag,_=k.dragConstraints,E=k.layoutScroll,A=k.layoutRoot,R=k.layoutAnchor,M=k.layoutCrossfade,x.projection=new w(x.latestValues,k["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(x.parent)),x.projection.setOptions({layoutId:S,layout:T,alwaysMeasureLayout:!!P||_&&nW(_),visualElement:x,animationType:"string"==typeof T?T:"both",initialPromotionConfig:b,crossfade:M,layoutScroll:E,layoutRoot:A,layoutAnchor:R})),G=(0,ny.useRef)(!1),(0,ny.useInsertionEffect)(function(){K&&G.current&&K.update(v,q)}),Z=v[nq],J=(0,ny.useRef)(!!Z&&"u">typeof window&&!(null==(O=(I=window).MotionHandoffIsComplete)?void 0:O.call(I,Z))&&(null==(B=(F=window).MotionHasOptimisedAnimation)?void 0:B.call(F,Z))),nH(function(){Y.current=!0,K&&(G.current=!0,window.MotionIsMounted=!0,K.updateFeatures(),K.scheduleRenderMicrotask(),J.current&&K.animationState&&K.animationState.animateChanges())}),(0,ny.useEffect)(function(){K&&(!J.current&&K.animationState&&K.animationState.animateChanges(),J.current&&(queueMicrotask(function(){var t,e;null==(t=(e=window).MotionHandoffMarkAsComplete)||t.call(e,Z)}),J.current=!1),K.enteringChildren=void 0)}),y.visualElement=K}return(0,nk.jsxs)(nT.Provider,{value:y,children:[d&&y.visualElement?(0,nk.jsx)(d,(0,p._)({visualElement:y.visualElement},v)):null,function(t,e,n,i,r){var a=i.latestValues,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6?arguments[6]:void 0,u=((null!=s?s:nx(t))?function(t,e,n,i){var r=(0,ny.useMemo)(function(){var n=nA();return e1(n,e,e3(i),t.transformTemplate,t.style),(0,m._)((0,p._)({},n.attrs),{style:(0,p._)({},n.style)})},[e]);if(t.style){var a={};nE(a,t.style,t),r.style=(0,p._)({},a,r.style)}
2return r}:function(t,e){var n,i,r={},a=(nE(n={},t.style||{},t),Object.assign(n,(i=t.transformTemplate,(0,ny.useMemo)(function(){var t=n_();return eZ(t,e,i),Object.assign({},t.vars,t.style)},[e]))),n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=a,r})(e,a,r,t),l=function(t,e,n){var i={};for(var r in t)("values"!==r||"object"!==(0,$._)(t.values))&&!tu(t[r])&&(nC(r)||!0===n&&nM(r)||!e&&!nM(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}(e,"string"==typeof t,o),c=t!==ny.Fragment?(0,m._)((0,p._)({},l,u),{ref:n}):{},h=e.children,d=(0,ny.useMemo)(function(){return tu(h)?h.get():h},[h]);return(0,ny.createElement)(t,(0,m._)((0,p._)({},c),{children:d}))}(t,e,(o=y.visualElement,s=(0,ny.useRef)(n),(0,ny.useInsertionEffect)(function(){s.current=n}),h=(0,ny.useRef)(null),(0,ny.useCallback)(function(t){if(t){var e;null==(e=g.onMount)||e.call(g,t)}o&&(t?o.mount(t):o.unmount());var n=s.current;if("function"==typeof n)if(t){var i=n(t);"function"==typeof i&&(h.current=i)}else h.current?(h.current(),h.current=null):n(t);else n&&(n.current=t)},[o])),g,f,a,l)]})}h.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!=(e=null!=(n=t.displayName)?n:t.name)?e:"",")"));var d=(0,ny.forwardRef)(h);return d[nU]=t,d}t.s(["useIsomorphicLayoutEffect",0,nH],272809);var nY=function(){function t(e){(0,s._)(this,t),this.isMounted=!1,this.node=e}return(0,u._)(t,[{key:"update",value:function(){}}]),t}();function nK(t,e,n){var i=t.getProps();return ez(i,e,void 0!==n?n:i.custom,t)}function nQ(t,e){if((null==t?void 0:t.inherit)&&e){t.inherit;var n=(0,t6._)(t,["inherit"]);return(0,p._)({},e,n)}return t}function nG(t,e){var n,i,r=null!=(n=null!=(i=null==t?void 0:t[e])?i:null==t?void 0:t.default)?n:t;return r!==t?nQ(r,t):r}var nZ=function(t){return Array.isArray(t)};function n$(t,e){var n=t.getValue("willChange");if(tu(n)&&n.add)return n.add(e);if(!n&&tU.WillChange){var i=new tU.WillChange("auto");t.addValue("willChange",i),i.add(e)}}var nJ=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce(function(t,e){return function(n){return e(t(n))}})};function n0(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function n1(t,e){return function(n){return n>0?e:t}}var n2=function(t,e,n){var i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},n3=[M,R,B];function n5(t){var e=n3.find(function(e){return e.test(t)});if(tp(!!e,"'".concat(t,"' is not an animatable color. Use the equivalent color code instead."),"color-not-animatable"),!e)return!1;var n=e.parse(t);return e===B&&(n=function(t){var e=t.hue,n=t.saturation,i=t.lightness,r=t.alpha;e/=360,i/=100;var a=0,o=0,s=0;if(n/=100){var u=i<.5?i*(1+n):i+n-i*n,l=2*i-u;a=n0(l,u,e+1/3),o=n0(l,u,e),s=n0(l,u,e-1/3)}else a=o=s=i;return{red:Math.round(255*a),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(n)),n}var n4=function(t,e){var n=n5(t),i=n5(e);if(!n||!i)return n1(t,e);var r=(0,p._)({},n);return function(t){return r.red=n2(n.red,i.red,t),r.green=n2(n.green,i.green,t),r.blue=n2(n.blue,i.blue,t),r.alpha=e7(n.alpha,i.alpha,t),R.transform(r)}},n9=new Set(["none","hidden"]);function n7(t,e){return function(n){return e7(t,e,n)}}function n6(t){return"number"==typeof t?n7:"string"==typeof t?tw(t)?n1:F.test(t)?n4:ie:Array.isArray(t)?n8:(void 0===t?"undefined":(0,$._)(t))==="object"?F.test(t)?n4:it:n1}function n8(t,e){var n=(0,d._)(t),i=n.length,r=t.map(function(t,n){return n6(t)(t,e[n])});return function(t){for(var e=0;e<i;e++)n[e]=r[e](t);return n}}function it(t,e){var n=(0,p._)({},t,e),i={};for(var r in n)void 0!==t[r]&&void 0!==e[r]&&(i[r]=n6(t[r])(t[r],e[r]));return function(t){for(var e in i)n[e]=i[e](t);return n}}var ie=function(t,e){var n=Y.createTransformer(e),i=W(t),r=W(e);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?n9.has(t)&&!r.values.length||n9.has(e)&&!i.values.length?n9.has(t)?function(n){return n<=0?t:e}:function(n){return n>=1?e:t}:nJ(n8(function(t,e){for(var n=[],i={color:0,var:0,number:0},r=0;r<e.values.length;r++){var a,o=e.types[r],s=t.indexes[o][i[o]],u=null!=(a=t.values[s])?a:0;n[r]=u,i[o]++}return n}(i,r),r.values),n):(tp(!0,"Complex values '".concat(t,"' and '").concat(e,"' too different to mix. Ensure all c
2olors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition."),"complex-values-different"),n1(t,e))};function ii(t,e,n){return"number"==typeof t&&"number"==typeof e&&"number"==typeof n?e7(t,e,n):n6(t)(t,e)}var ir=function(t){var e=function(e){return t(e.timestamp)};return{start:function(){var t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return tH.update(e,t)},stop:function(){return tX(e)},now:function(){return tY.isProcessing?tY.timestamp:e_.now()}}};function ia(t){for(var e=0,n=t.next(e);!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}var io=.01,is=2,iu=.005,il=.5;function ic(t,e){return t*Math.sqrt(1-e*e)}var ih=["duration","bounce"],id=["stiffness","damping","mass"];function iv(t,e){return e.some(function(e){return void 0!==t[e]})}function ip(){var t,e,n,i,r,a,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.3,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.3,u=(void 0===o?"undefined":(0,$._)(o))!=="object"?{visualDuration:o,keyframes:[0,1],bounce:s}:o,l=u.restSpeed,c=u.restDelta,h=u.keyframes[0],d=u.keyframes[u.keyframes.length-1],v={done:!1,value:h},f=function(t){var e=(0,p._)({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!iv(t,id)&&iv(t,ih))if(e.velocity=0,t.visualDuration){var n=2*Math.PI/(1.2*t.visualDuration),i=n*n,r=2*y(.05,1,1-(t.bounce||0))*Math.sqrt(i);e=(0,m._)((0,p._)({},e),{mass:1,stiffness:i,damping:r})}else{var a=function(t){var e,n,i=t.duration,r=void 0===i?800:i,a=t.bounce,o=t.velocity,s=void 0===o?0:o,u=t.mass,l=void 0===u?1:u;tp(r<=t8(10),"Spring duration must be 10 seconds or less","spring-duration-limit");var c=1-(void 0===a?.3:a);c=y(.05,1,c),r=y(.01,10,et(r)),c<1?(e=function(t){var e=t*c,n=e*r;return .001-(e-s)/ic(t,c)*Math.exp(-n)},n=function(t){var n=t*c*r,i=Math.pow(c,2)*Math.pow(t,2)*r,a=Math.exp(-n),o=ic(Math.pow(t,2),c);return(n*s+s-i)*a*(-e(t)+.001>0?-1:1)/o}):(e=function(t){return -.001+Math.exp(-t*r)*((t-s)*r+1)},n=function(t){return r*r*(s-t)*Math.exp(-t*r)});var h=function(t,e,n){for(var i=n,r=1;r<12;r++)i-=t(i)/e(i);return i}(e,n,5/r);if(r=t8(r),isNaN(h))return{stiffness:100,damping:10,duration:r};var d=Math.pow(h,2)*l;return{stiffness:d,damping:2*c*Math.sqrt(l*d),duration:r}}((0,m._)((0,p._)({},t),{velocity:0}));(e=(0,m._)((0,p._)({},e,a),{mass:1})).isResolvedFromDuration=!0}return e}((0,m._)((0,p._)({},u),{velocity:-et(u.velocity||0)})),g=f.stiffness,x=f.damping,k=f.mass,w=f.duration,b=f.velocity,S=f.isResolvedFromDuration,T=b||0,P=x/(2*Math.sqrt(g*k)),_=d-h,E=et(Math.sqrt(g/k)),A=5>Math.abs(_);if(l||(l=A?io:is),c||(c=A?iu:il),P<1)n=ic(E,P),i=(T+P*E*_)/n,t=function(t){return d-Math.exp(-P*E*t)*(i*Math.sin(n*t)+_*Math.cos(n*t))},r=P*E*i+_*n,a=P*E*_-i*n,e=function(t){return Math.exp(-P*E*t)*(r*Math.sin(n*t)+a*Math.cos(n*t))};else if(1===P){t=function(t){return d-Math.exp(-E*t)*(_+(T+E*_)*t)};var R=T+E*_;e=function(t){return Math.exp(-E*t)*(E*R*t-T)}}else{var M=E*Math.sqrt(P*P-1);t=function(t){var e=Math.exp(-P*E*t),n=Math.min(M*t,300);return d-e*((T+P*E*_)*Math.sinh(n)+M*_*Math.cosh(n))/M};var C=(T+P*E*_)/M,V=P*E*C-_*M,D=P*E*_-C*M;e=function(t){var e=Math.exp(-P*E*t),n=Math.min(M*t,300);return e*(V*Math.sinh(n)+D*Math.cosh(n))}}var j={calculatedDuration:S&&w||null,velocity:function(t){return t8(e(t))},next:function(o){if(!S&&P<1){var s=Math.exp(-P*E*o),u=Math.sin(n*o),h=Math.cos(n*o),f=d-s*(i*u+_*h);return v.done=Math.abs(t8(s*(r*u+a*h)))<=l&&Math.abs(d-f)<=c,v.value=v.done?d:f,v}var p=t(o);return S?v.done=o>=w:v.done=Math.abs(t8(e(o)))<=l&&Math.abs(d-p)<=c,v.value=v.done?d:p,v},toString:function(){var t=Math.min(ia(j),2e4),e=ey(function(e){return j.next(t*e).value},t,30);return t+"ms "+e},toTransition:function(){}};return j}function im(t,e,n){var i=Math.max(e-5,0);return eE(n-t(i),e-i)}function iy(t){var e,n,i=t.keyframes,r=t.velocity,a=t.power,o=t.timeConstant,s=void 0===o?325:o,u=t.bounceDamping,l=void 0===u?10:u,c=t.bounceStiffness,h=void 0===c?500:c,d=t.modifyTarget,v=t.min,f=t.max,p=t.restDelta,m=void 0===p?.5:p,y=t.restSpeed,g=i[0],x={done:!1,value:g},k=(void 0===a?.8:a)*(void 0===r?0:r),w=g+k,b=void 0===d?w:d(w);b!==w&&(k=b-g);var S=function(t){return-k*Math.exp(-t/s)},T=function(t){return b+S(t)},P=function(t){var e=S(t),n=T(t);x.done=Math.abs(e)<=m,x.value=x.done?b:n},_=function(t){var i,r;i=x.value,(void 0!==v&&i<v||void 0!==f&&i>
2f)&&(e=t,n=ip({keyframes:[x.value,(r=x.value,void 0===v?f:void 0===f||Math.abs(v-r)<Math.abs(f-r)?v:f)],velocity:im(T,t,x.value),damping:l,stiffness:h,restDelta:m,restSpeed:y}))};return _(0),{calculatedDuration:null,next:function(t){var i=!1;return(n||void 0!==e||(i=!0,P(t),_(t)),void 0!==e&&t>=e)?n.next(t-e):(i||P(t),x)}}}ip.applyToOptions=function(t){var e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,i=n((0,m._)((0,p._)({},t),{keyframes:[0,e]})),r=Math.min(ia(i),2e4);return{type:"keyframes",ease:function(t){return i.next(r*t).value/e},duration:et(r)}}(t,100,ip);return t.ease=e.ease,t.duration=t8(e.duration),t.type="keyframes",t};var ig=function(t,e,n){return(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t};function ix(t,e,n,i){if(t===e&&n===i)return tN;var r=function(e){var i,r,a=0,o=1,s=0;do(i=ig(r=a+(o-a)/2,t,n)-e)>0?o=r:a=r;while(Math.abs(i)>1e-7&&++s<12)return r};return function(t){return 0===t||1===t?t:ig(r(t),e,i)}}var ik=ix(.42,0,1,1),iw=ix(0,0,.58,1),ib=ix(.42,0,.58,1),iS=function(t){return function(e){return e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2}},iT=function(t){return function(e){return 1-t(1-e)}},iP=ix(.33,1.53,.69,.99),i_=iT(iP),iE=iS(i_),iA=function(t){return t>=1?1:(t*=2)<1?.5*i_(t):.5*(2-Math.pow(2,-10*(t-1)))},iR=function(t){return 1-Math.sin(Math.acos(t))},iM=iT(iR),iC=iS(iR),iV={linear:tN,easeIn:ik,easeInOut:ib,easeOut:iw,circIn:iR,circInOut:iC,circOut:iM,backIn:i_,backInOut:iE,backOut:iP,anticipate:iA},iD=function(t){if(ep(t)){tm(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");var e=(0,S._)(t,4);return ix(e[0],e[1],e[2],e[3])}return"string"==typeof t?(tm(void 0!==iV[t],"Invalid easing type '".concat(t,"'"),"invalid-easing-type"),iV[t]):t},ij=function(t,e,n){var i=e-t;return i?(n-t)/i:1};function iL(t){var e,n,i=t.duration,r=void 0===i?300:i,a=t.keyframes,o=t.times,s=t.ease,u=void 0===s?"easeInOut":s,l=Array.isArray(u)&&"number"!=typeof u[0]?u.map(iD):iD(u),c={done:!1,value:a[0]},h=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.clamp,r=n.ease,a=n.mixer,o=t.length;if(tm(o===e.length,"Both input and output ranges must be the same length","range-length"),1===o)return function(){return e[0]};if(2===o&&e[0]===e[1])return function(){return e[1]};var s=t[0]===t[1];t[0]>t[o-1]&&(t=(0,d._)(t).reverse(),e=(0,d._)(e).reverse());var u=function(t,e,n){for(var i=[],r=n||tU.mix||ii,a=t.length-1,o=0;o<a;o++){var s=r(t[o],t[o+1]);e&&(s=nJ(Array.isArray(e)?e[o]||tN:e,s)),i.push(s)}return i}(e,r,a),l=u.length,c=function(n){if(s&&n<t[0])return e[0];var i=0;if(l>1)for(;i<t.length-2&&!(n<t[i+1]);i++);var r=ij(t[i],t[i+1],n);return u[i](r)};return void 0===i||i?function(e){return c(y(t[0],t[o-1],e))}:c}((n=o&&o.length===a.length?o:(!function(t,e){for(var n=t[t.length-1],i=1;i<=e;i++){var r=ij(0,e,i);t.push(e7(n,1,r))}}(e=[0],a.length-1),e),n.map(function(t){return t*r})),a,{ease:Array.isArray(l)?l:a.map(function(){return l||ib}).splice(0,a.length-1)});return{calculatedDuration:r,next:function(t){return c.value=h(t),c.done=t>=r,c}}}var iO={decay:iy,inertia:iy,tween:iL,keyframes:iL,spring:ip};function iI(t){"string"==typeof t.type&&(t.type=iO[t.type])}var iB=function(t){return t/100},iF=function(t){function e(t){var n;return(0,s._)(this,e),(n=(0,o._)(this,e)).state="idle",n.startTime=null,n.isStopped=!1,n.currentTime=0,n.holdTime=null,n.playbackSpeed=1,n.delayState={done:!1,value:void 0},n.stop=function(){var t,e,i=n.options.motionValue;i&&i.updatedAt!==e_.now()&&n.tick(e_.now()),n.isStopped=!0,"idle"!==n.state&&(n.teardown(),null==(t=(e=n.options).onStop)||t.call(e))},ef.mainThread++,n.options=t,n.initAnimation(),n.play(),!1===t.autoplay&&n.pause(),n}return(0,h._)(e,t),(0,u._)(e,[{key:"initAnimation",value:function(){var t=this.options;iI(t);var e=t.type,n=t.repeat,i=t.repeatDelay,r=void 0===i?0:i,a=t.repeatType,o=t.velocity,s=t.keyframes,u=(void 0===e?iL:e)||iL;u!==iL&&"number"!=typeof s[0]&&(this.mixKeyframes=nJ(iB,ii(s[0],s[1])),s=[0,100]);var l=u((0,m._)((0,p._)({},t),{keyframes:s}));"mirror"===a&&(this.mirroredGenerator=u((0,m._)((0,p._)({},t),{keyframes:(0,d._)(s).reverse(),velocity:-(void 0===o?0:o)}))),null===l.calculatedDuration&&(l.calculatedDuration=ia(l));var c=l.calculatedDuration;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*((void 0===n?0:n)+1)-r,this.generator=l}},{key:"updateTime",value:function(t){var e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}},{key:"tick",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.generator,r=this.totalDuration,a=this.mixKeyframes,o=this.mirroredGenerator,s=this.resolvedDuration,u=this.calculatedDuration;if(null===this.startTime)return i.next(0);
2var l=this.options,c=l.delay,h=l.keyframes,d=l.repeat,v=l.repeatType,f=l.repeatDelay,p=l.type,m=l.onUpdate,g=l.finalKeyframe;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);var x=this.currentTime-(void 0===c?0:c)*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?x<0:x>r;this.currentTime=Math.max(x,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);var w=this.currentTime,b=i;if(d){var S=Math.min(this.currentTime,r)/s,T=Math.floor(S),P=S%1;!P&&S>=1&&(P=1),1===P&&T--,(T=Math.min(T,d+1))%2&&("reverse"===v?(P=1-P,f&&(P-=f/s)):"mirror"===v&&(b=o)),w=y(0,1,P)*s}k?(this.delayState.value=h[0],e=this.delayState):e=b.next(w),a&&!k&&(e.value=a(e.value));var _=e.done;k||null===u||(_=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);var E=null===this.holdTime&&("finished"===this.state||"running"===this.state&&_);return E&&p!==iy&&(e.value=ed(h,this.options,g,this.speed)),m&&m(e.value),E&&this.finish(),e}},{key:"then",value:function(t,e){return this.finished.then(t,e)}},{key:"duration",get:function(){return et(this.calculatedDuration)}},{key:"iterationDuration",get:function(){var t=(this.options||{}).delay;return this.duration+et(void 0===t?0:t)}},{key:"time",get:function(){return et(this.currentTime)},set:function(t){t=t8(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}},{key:"getGeneratorVelocity",value:function(){var t=this,e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);var n=this.generator.next(e).value;return im(function(e){return t.generator.next(e).value},e,n)}},{key:"speed",get:function(){return this.playbackSpeed},set:function(t){var e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(e_.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=et(this.currentTime))}},{key:"play",value:function(){var t,e,n=this;if(!this.isStopped){var i=this.options,r=i.driver,a=i.startTime;this.driver||(this.driver=(void 0===r?ir:r)(function(t){return n.tick(t)})),null==(t=(e=this.options).onPlay)||t.call(e);var o=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=o):null!==this.holdTime?this.startTime=o-this.holdTime:this.startTime||(this.startTime=null!=a?a:o),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}}},{key:"pause",value:function(){this.state="paused",this.updateTime(e_.now()),this.holdTime=this.currentTime}},{key:"complete",value:function(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}},{key:"finish",value:function(){var t,e;this.notifyFinished(),this.teardown(),this.state="finished",null==(t=(e=this.options).onComplete)||t.call(e)}},{key:"cancel",value:function(){var t,e;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),null==(t=(e=this.options).onCancel)||t.call(e)}},{key:"teardown",value:function(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,ef.mainThread--}},{key:"stopDriver",value:function(){this.driver&&(this.driver.stop(),this.driver=void 0)}},{key:"sample",value:function(t){return this.startTime=0,this.tick(t,!0)}},{key:"attachTimeline",value:function(t){var e;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),null==(e=this.driver)||e.stop(),t.observe(this)}}]),e}(ev),iN={anticipate:iA,backInOut:iE,circInOut:iC},iU=function(t){function e(t){var n;return(0,s._)(this,e),"string"==typeof t.ease&&t.ease in iN&&(t.ease=iN[t.ease]),iI(t),n=(0,o._)(this,e,[t]),void 0!==t.startTime&&!1!==t.autoplay&&(n.startTime=t.startTime),n.options=t,n}return(0,h._)(e,t),(0,u._)(e,[{key:"updateMotionValue",value:function(t){var e=this.options,n=e.motionValue,i=(e.onUpdate,e.onComplete,e.element),r=(0,t6._)(e,["motionValue","onUpdate","onComplete","element"]);if(n){if(void 0!==t)return void n.set(t);var a=new iF((0,m._)((0,p._)({},r),{autoplay:!1})),o=Math.max(10,e_.now()-this.startTime),s=y(0,10,o-10),u=a.sample(o).value,l=this.options.name;i&&l&&eo(i,l,u),n.setWithVelocity(a.sample(Math.max(0,o-s)).value,u,s),a.stop()}}}]),e}(ew),iq=function(t,e){return"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(Y.test(t)||"0"===t)&&!t.startsWith("url("))};function iz(t){t.duration=0,t.type="keyframes"}var iW=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,iH=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),iX=es(function(){return Object.hasOwnProperty.call(Element.prototype,"animate")}),iY=function(t){function e(t){(0,s._)(this,e);
2var n,i,r=t.autoplay,a=t.delay,u=t.type,l=t.repeat,c=t.repeatDelay,h=t.repeatType,d=t.keyframes,v=t.name,f=t.motionValue,m=t.element,y=(0,t6._)(t,["autoplay","delay","type","repeat","repeatDelay","repeatType","keyframes","name","motionValue","element"]);(n=(0,o._)(this,e)).stop=function(){var t,e;n._animation&&(n._animation.stop(),null==(e=n.stopTimeline)||e.call(n)),null==(t=n.keyframeResolver)||t.cancel()},n.createdAt=e_.now();var g=(0,p._)({autoplay:void 0===r||r,delay:void 0===a?0:a,type:void 0===u?"keyframes":u,repeat:void 0===l?0:l,repeatDelay:void 0===c?0:c,repeatType:void 0===h?"loop":h,name:v,motionValue:f,element:m},y);return n.keyframeResolver=new((null==m?void 0:m.KeyframeResolver)||t1)(d,function(t,e,i){return n.onKeyframesResolved(t,e,g,!i)},v,f,m),null==(i=n.keyframeResolver)||i.scheduleResolve(),n}return(0,h._)(e,t),(0,u._)(e,[{key:"onKeyframesResolved",value:function(t,e,n,i){var r,a,o,s=this;this.keyframeResolver=void 0;var u=n.name,l=n.type,c=n.velocity,h=n.delay,d=n.isHandoff,v=n.onUpdate;this.resolvedAt=e_.now();var f=!0;!function(t,e,n,i){var r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;var a=t[t.length-1],o=iq(r,e),s=iq(a,e);return tp(o===s,"You are trying to animate ".concat(e,' from "').concat(r,'" to "').concat(a,'". "').concat(o?a:r,'" is not an animatable value.'),"value-not-animatable"),!!o&&!!s&&(function(t){var e=t[0];if(1===t.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||ek(n))&&i)}(t,u,l,c)&&(f=!1,(tU.instantAnimations||!h)&&(null==v||v(ed(t,n,e))),t[0]=t[t.length-1],iz(n),n.repeat=0);var y=i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,g=(0,m._)((0,p._)({startTime:y,finalKeyframe:e},n),{keyframes:t}),x=f&&!d&&function(t){var e,n=t.motionValue,i=t.name,r=t.repeatDelay,a=t.repeatType,o=t.damping,s=t.type,u=t.keyframes,l=null==n||null==(e=n.owner)?void 0:e.current;if(!(0,t7._)(l,HTMLElement))return!1;var c=n.owner.getProps(),h=c.onUpdate,d=c.transformTemplate;return iX()&&i&&(eb.has(i)||iH.has(i)&&function(t){for(var e=0;e<t.length;e++)if("string"==typeof t[e]&&iW.test(t[e]))return!0;return!1}(u))&&("transform"!==i||!d)&&!h&&!r&&"mirror"!==a&&0!==o&&"inertia"!==s}(g),k=null==(a=g.motionValue)||null==(r=a.owner)?void 0:r.current;if(x)try{o=new iU((0,m._)((0,p._)({},g),{element:k}))}catch(t){o=new iF(g)}else o=new iF(g);o.finished.then(function(){s.notifyFinished()}).catch(tN),this.pendingTimeline&&(this.stopTimeline=o.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=o}},{key:"finished",get:function(){return this._animation?this.animation.finished:this._finished}},{key:"then",value:function(t,e){return this.finished.finally(t).then(function(){})}},{key:"animation",get:function(){if(!this._animation){var t;null==(t=this.keyframeResolver)||t.resume(),t$=!0,t0(),tJ(),t$=!1}return this._animation}},{key:"duration",get:function(){return this.animation.duration}},{key:"iterationDuration",get:function(){return this.animation.iterationDuration}},{key:"time",get:function(){return this.animation.time},set:function(t){this.animation.time=t}},{key:"speed",get:function(){return this.animation.speed},set:function(t){this.animation.speed=t}},{key:"state",get:function(){return this.animation.state}},{key:"startTime",get:function(){return this.animation.startTime}},{key:"attachTimeline",value:function(t){var e=this;return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,function(){return e.stop()}}},{key:"play",value:function(){this.animation.play()}},{key:"pause",value:function(){this.animation.pause()}},{key:"complete",value:function(){this.animation.complete()}},{key:"cancel",value:function(){var t;this._animation&&this.animation.cancel(),null==(t=this.keyframeResolver)||t.cancel()}}]),e}(ev),iK={type:"spring",stiffness:500,damping:25,restSpeed:10},iQ={type:"keyframes",duration:.8},iG={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iZ=function(t,e){var n=e.keyframes;return n.length>2?iQ:f.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:iK:iG}
2,i$=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),iJ=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;return function(o){var s=nG(i,t)||{},u=s.delay||i.delay||0,l=i.elapsed,c=void 0===l?0:l;c-=t8(u);var h=(0,m._)((0,p._)({keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity()},s),{delay:-c,onUpdate:function(t){e.set(t),s.onUpdate&&s.onUpdate(t)},onComplete:function(){o(),s.onComplete&&s.onComplete()},name:t,motionValue:e,element:a?void 0:r});!function(t){for(var e in t)if(!i$.has(e))return!0;return!1}(s)&&Object.assign(h,iZ(t,h)),h.duration&&(h.duration=t8(h.duration)),h.repeatDelay&&(h.repeatDelay=t8(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);var d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(iz(h),0===h.delay&&(d=!0)),(tU.instantAnimations||tU.skipAnimations||(null==r?void 0:r.shouldSkipAnimations)||s.skipAnimations)&&(d=!0,iz(h),h.delay=0),h.allowFlatten=!s.type&&!s.ease,d&&!a&&void 0!==e.get()){var v=ed(h.keyframes,s);if(void 0!==v)return void tH.update(function(){h.onUpdate(v),h.onComplete()})}return s.isSync?new iF(h):new iY(h)}};function i0(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.delay,r=void 0===i?0:i,a=n.transitionOverride,o=n.type,s=e.transition,u=e.transitionEnd,l=(0,t6._)(e,["transition","transitionEnd"]),c=t.getDefaultTransition(),h=null==(s=s?nQ(s,c):c)?void 0:s.reduceMotion,d=null==s?void 0:s.skipAnimations;a&&(s=a);var v=[],f=o&&t.animationState&&t.animationState.getState()[o],m=null==s?void 0:s.path;for(var y in m&&m.animateVisualElement(t,l,s,r,v),l)!function(e){var n,i,a,o,u=t.getValue(e,null!=(o=t.latestValues[e])?o:null),c=l[e];
2if(void 0!==c&&(!f||(n=f.protectedKeys,i=f.needsAnimating,a=n.hasOwnProperty(e)&&!0!==i[e],i[e]=!1,!a))){var m=(0,p._)({delay:r},nG(s||{},e));d&&(m.skipAnimations=!0);var y=u.get();if(void 0!==y&&!u.isAnimating()&&!Array.isArray(c)&&c===y&&!m.velocity)return tH.update(function(){return u.set(c)});var g=!1;if(window.MotionHandoffAnimation){var x=t.props[nq];if(x){var k=window.MotionHandoffAnimation(x,e,tH);null!==k&&(m.startTime=k,g=!0)}}n$(t,e);var w=null!=h?h:t.shouldReduceMotion;u.start(iJ(e,u,c,w&&tl.has(e)?{type:!1}:m,t,g));var b=u.animation;b&&v.push(b)}}(y);if(u){var g=function(){return tH.update(function(){u&&function(t,e){var n=nK(t,e)||{},i=n.transitionEnd,r=(n.transition,(0,t6._)(n,["transitionEnd","transition"]));for(var a in r=(0,p._)({},r,void 0===i?{}:i)){var o,s=nZ(o=r[a])?o[o.length-1]||0:o;t.hasValue(a)?t.getValue(a).set(s):t.addValue(a,eM(s))}}(t,u)})};v.length?Promise.all(v).then(g):g()}return v}function i1(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=Array.from(t).sort(function(t,e){return t.sortNodePosition(e)}).indexOf(e),o=t.size,s=(o-1)*i;return"function"==typeof n?n(a,o):1===r?a*i:s-a*i}function i2(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=nK(t,e,"exit"===i.type?null==(n=t.presenceContext)?void 0:n.custom:void 0),a=(r||{}).transition,o=void 0===a?t.getDefaultTransition()||{}:a;i.transitionOverride&&(o=i.transitionOverride);var s=r?function(){return Promise.all(i0(t,r,i))}:function(){return Promise.resolve()},u=t.variantChildren&&t.variantChildren.size?function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=o.delayChildren;return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=arguments.length>6?arguments[6]:void 0,s=[],u=!0,l=!1,c=void 0;try{for(var h,d=t.variantChildren[Symbol.iterator]();!(u=(h=d.next()).done);u=!0)!function(){var u=h.value;u.notify("AnimationStart",e),s.push(i2(u,e,(0,m._)((0,p._)({},o),{delay:n+("function"==typeof i?0:i)+i1(t.variantChildren,u,i,r,a)})).then(function(){return u.notify("AnimationComplete",e)}))}()}catch(t){l=!0,c=t}finally{try{u||null==d.return||d.return()}finally{if(l)throw c}}return Promise.all(s)}(t,e,n,void 0===r?0:r,o.staggerChildren,o.staggerDirection,i)}:function(){return Promise.resolve()},l=o.when;if(!l)return Promise.all([s(),u(i.delay)]);var c=(0,S._)("beforeChildren"===l?[s,u]:[u,s],2),h=c[0],d=c[1];return h().then(function(){return d()})}var i3=eO.length;function i5(t,e){if(!Array.isArray(e))return!1;var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}var i4=(0,d._)(eL).reverse(),i9=eL.length;function i7(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function i6(){return{animate:i7(!0),whileInView:i7(),whileHover:i7(),whileTap:i7(),whileDrag:i7(),whileFocus:i7(),exit:i7()}}var i8=function(t){function e(t){var n;return(0,s._)(this,e),n=(0,o._)(this,e,[t]),t.animationState||(t.animationState=function(t){var e=function(e){return Promise.all(e.map(function(e){return function(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(function(e){return i2(t,e,i)}));else if("string"==typeof e)n=i2(t,e,i);else{var r="function"==typeof e?nK(t,e,i.custom):e;n=Promise.all(i0(t,r,i))}return n.then(function(){t.notify("AnimationComplete",e)})}(t,e.animation,e.options)}))},n=i6(),i=!0,r=!1;function a(a){for(var o=t.props,s=function t(e){if(e){if(!e.isControllingVariants){var n=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(n.initial=e.props.initial),n}for(var i={},r=0;r<i3;r++){var a=eO[r],o=e.props[a];(ej(o)||!1===o)&&(i[a]=o)}return i}}(t.parent)||{},u=[],l=new Set,c={},h=1/0,v=0;v<i9;v++)!function(e){var v,f,m=i4[e],y=n[m],g=void 0!==o[m]?o[m]:s[m],x=ej(g),k=m===a?y.isActive:null;!1===k&&(h=e);var w=g===s[m]&&g!==o[m]&&x;if(w&&(i||r)&&t.manuallyAnimateOnMount&&(w=!1),y.protectedKeys=(0,p._)({},c),!(!y.isActive&&null===k||!g&&!y.prevProp||eD(g))&&"boolean"!=typeof g){if("exit"===m&&y.isActive&&!0!==k)return y.prevResolvedValues&&(c=(0,p._)({},c,y.prevResolvedValues));var b=(v=y.prevProp,"string"==typeof(f=g)?f!==v:!!Array.isArray(f)&&!i5(f,v)),S=b||m===a&&y.isActive&&!w&&x||e>h&&x,T=!1,P=Array.isArray(g)?g:[g],_=P.reduce(function(e,n){var i,r=nK(t,n,"exit"===m?null==(i=t.presenceContext)?void 0:i.custom:void 0);if(r){r.transition;var a=r.transitionEnd,o=(0,t6._)(r,["transition","transitionEnd"]);e=(0,p._)({},e,o,a)}return e},{});!1===k&&(_={});var E=y.prevResolvedValues,A=void 0===E?{}:E,R=(0,p._)({}
2,A,_),M=function(e){S=!0,l.has(e)&&(T=!0,l.delete(e)),y.needsAnimating[e]=!0;var n=t.getValue(e);n&&(n.liveStyle=!1)};for(var C in R){var V=_[C],D=A[C];!c.hasOwnProperty(C)&&((nZ(V)&&nZ(D)?!i5(V,D)||b:V!==D)?null!=V?M(C):l.add(C):void 0!==V&&l.has(C)?M(C):y.protectedKeys[C]=!0)}y.prevProp=g,y.prevResolvedValues=_,y.isActive&&(c=(0,p._)({},c,_)),(i||r)&&t.blockInitialAnimation&&(S=!1);var j=w&&b,L=!j||T;S&&L&&u.push.apply(u,(0,d._)(P.map(function(e){var n={type:m};if("string"==typeof e&&(i||r)&&!j&&t.manuallyAnimateOnMount&&t.parent){var a=t.parent,o=nK(a,e);if(a.enteringChildren&&o){var s=(o.transition||{}).delayChildren;n.delay=i1(a.enteringChildren,t,s)}}return{animation:e,options:n}})))}}(v);if(l.size){var f={};if("boolean"!=typeof o.initial){var m=nK(t,Array.isArray(o.initial)?o.initial[0]:o.initial);m&&m.transition&&(f.transition=m.transition)}l.forEach(function(e){var n=t.getBaseTarget(e),i=t.getValue(e);i&&(i.liveStyle=!0),f[e]=null!=n?n:null}),u.push({animation:f})}var y=!!u.length;return i&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(y=!1),i=!1,r=!1,y?e(u):Promise.resolve()}return{animateChanges:a,setActive:function(e,i){if(n[e].isActive===i)return Promise.resolve();null==(r=t.variantChildren)||r.forEach(function(t){var n;return null==(n=t.animationState)?void 0:n.setActive(e,i)}),n[e].isActive=i;var r,o=a(e);for(var s in n)n[s].protectedKeys={};return o},setAnimateFunction:function(n){e=n(t)},getState:function(){return n},reset:function(){n=i6(),r=!0}}}(t)),n}return(0,h._)(e,t),(0,u._)(e,[{key:"updateAnimationControlsSubscription",value:function(){var t=this.node.getProps().animate;eD(t)&&(this.unmountControls=t.subscribe(this.node))}},{key:"mount",value:function(){this.updateAnimationControlsSubscription()}},{key:"update",value:function(){this.node.getProps().animate!==(this.node.prevProps||{}).animate&&this.updateAnimationControlsSubscription()}},{key:"unmount",value:function(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}]),e}(nY),rt=0,re=function(t){function e(){var t;return(0,s._)(this,e),t=(0,o._)(this,e,arguments),t.id=rt++,t.isExitComplete=!1,t}return(0,h._)(e,t),(0,u._)(e,[{key:"update",value:function(){var t=this;if(this.node.presenceContext){var e=this.node.presenceContext,n=e.isPresent,i=e.onExitComplete,r=(this.node.prevPresenceContext||{}).isPresent;if(this.node.animationState&&n!==r){if(n&&!1===r){if(this.isExitComplete){var a=this.node.getProps(),o=a.initial,s=a.custom;if("string"==typeof o||(void 0===o?"undefined":(0,$._)(o))==="object"&&null!==o&&!Array.isArray(o)){var u=nK(this.node,o,s);if(u){u.transition,u.transitionEnd;var l,c=(0,t6._)(u,["transition","transitionEnd"]);for(var h in c)null==(l=this.node.getValue(h))||l.jump(c[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}var d=this.node.animationState.setActive("exit",!n);i&&!n&&d.then(function(){t.isExitComplete=!0,i(t.id)})}}}},{key:"mount",value:function(){var t=this.node.presenceContext||{},e=t.register,n=t.onExitComplete;n&&n(this.id),e&&(this.unmount=e(this.id))}},{key:"unmount",value:function(){}}]),e}(nY);function rn(t){return[t("x"),t("y")]}function ri(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,n,i),function(){return t.removeEventListener(e,n)}}var rr={x:!1,y:!1};function ra(t){return t.max-t.min}function ro(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=i,t.originPoint=e7(e.min,e.max,t.origin),t.scale=ra(n)/ra(e),t.translate=e7(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function rs(t,e,n,i){ro(t.x,e.x,n.x,i?i.originX:void 0),ro(t.y,e.y,n.y,i?i.originY:void 0)}function ru(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;t.min=(i?e7(n.min,n.max,i):n.min)+e.min,t.max=t.min+ra(e)}function rl(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=i?e7(n.min,n.max,i):n.min;t.min=e.min-r,t.max=t.min+ra(e)}function rc(t,e,n,i){rl(t.x,e.x,n.x,null==i?void 0:i.x),rl(t.y,e.y,n.y,null==i?void 0:i.y)}var rh=function(t){return(void 0===t?"undefined":(0,$._)(t))==="object"&&null!==t};function rd(t){return rh(t)&&"ownerSVGElement"in t}function rv(t,e,n){if(null==t)return[];if((0,t7._)(t,EventTarget))return[t];if("string"==typeof t){var i,r=document;e&&(r=e.current);var a=null!=(i=null==n?void 0:n[t])?i:r.querySelectorAll(t);return a?Array.from(a):[]}return Array.from(t).filter(function(t){return null!=t})}var rf=new WeakMap,rp=function(t,e,n){return function(i,r){return r&&r[0]?r[0][t+"Size"]:rd(i)&&"getBBox"in i?i.getBBox()[e]:i[n]}},rm=rp("inline","width","offsetWidth"),ry=rp("block","height","offsetHeight");function rg(t){var e,n=t.target,i=t.borderBoxSize;null==(e=rf.get(n))||e.forEach(function(t){t(n,{get width(){return rm(n,i)},get height(){return ry(n,i)}})})}function rx(t){t.forEach(rg)}var rk=new Set;function rw(t,e){var n;return"function"==typeof t?(rk.add(t),a||(a=function(){var t={get width(){return window.innerWidth},get height(){return window.innerHeight}};
2rk.forEach(function(e){return e(t)})},window.addEventListener("resize",a)),function(){rk.delete(t),rk.size||"function"!=typeof a||(window.removeEventListener("resize",a),a=void 0)}):(!r&&"u">typeof ResizeObserver&&(r=new ResizeObserver(rx)),(n=rv(t)).forEach(function(t){var n=rf.get(t);n||(n=new Set,rf.set(t,n)),n.add(e),null==r||r.observe(t)}),function(){n.forEach(function(t){var n=rf.get(t);null==n||n.delete(e),(null==n?void 0:n.size)||null==r||r.unobserve(t)})})}var rb=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),rS=new Set(["INPUT","SELECT","TEXTAREA"]),rT=function(t){return"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary};function rP(t){return{point:{x:t.pageX,y:t.pageY}}}function r_(t,e,n,i){return ri(t,e,function(t){return rT(t)&&n(t,rP(t))},i)}var rE=function(t){var e=t.current;return e?e.ownerDocument.defaultView:null},rA=function(t,e){return Math.abs(t-e)},rR=new Set(["auto","scroll"]),rM=function(){function t(e,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=r.transformPagePoint,o=r.contextWindow,u=void 0===o?window:o,l=r.dragSnapToOrigin,c=r.distanceThreshold,h=r.element;if((0,s._)(this,t),this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=function(t){i.handleScroll(t.target)},this.onWindowScroll=function(){i.handleScroll(window)},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){i.lastRawMoveEventInfo&&(i.lastMoveEventInfo=rC(i.lastRawMoveEventInfo,i.transformPagePoint));var t,e,n=rD(i.lastMoveEventInfo,i.history),r=null!==i.startEvent,a=(t=n.offset,e={x:0,y:0},Math.sqrt(Math.pow(rA(t.x,e.x),2)+Math.pow(rA(t.y,e.y),2))>=i.distanceThreshold);if(r||a){var o=n.point,s=tY.timestamp;i.history.push((0,m._)((0,p._)({},o),{timestamp:s}));var u=i.handlers,l=u.onStart,c=u.onMove;r||(l&&l(i.lastMoveEvent,n),i.startEvent=i.lastMoveEvent),c&&c(i.lastMoveEvent,n)}}},this.handlePointerMove=function(t,e){i.lastMoveEvent=t,i.lastRawMoveEventInfo=e,i.lastMoveEventInfo=rC(e,i.transformPagePoint),tH.update(i.updatePoint,!0)},this.handlePointerUp=function(t,e){i.end();var n=i.handlers,r=n.onEnd,a=n.onSessionEnd,o=n.resumeAnimation;if((i.dragSnapToOrigin||!i.startEvent)&&o&&o(),i.lastMoveEvent&&i.lastMoveEventInfo){var s=rD("pointercancel"===t.type?i.lastMoveEventInfo:rC(e,i.transformPagePoint),i.history);i.startEvent&&r&&r(t,s),a&&a(t,s)}},rT(e)){this.dragSnapToOrigin=void 0!==l&&l,this.handlers=n,this.transformPagePoint=a,this.distanceThreshold=void 0===c?3:c,this.contextWindow=u||window;var d=rC(rP(e),this.transformPagePoint),v=d.point,f=tY.timestamp;this.history=[(0,m._)((0,p._)({},v),{timestamp:f})];var y=n.onSessionStart;y&&y(e,rD(d,this.history)),this.removeListeners=nJ(r_(this.contextWindow,"pointermove",this.handlePointerMove),r_(this.contextWindow,"pointerup",this.handlePointerUp),r_(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}}return(0,u._)(t,[{key:"startScrollTracking",value:function(t){for(var e=this,n=t.parentElement;n;){var i=getComputedStyle(n);(rR.has(i.overflowX)||rR.has(i.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=function(){window.removeEventListener("scroll",e.onElementScroll,{capture:!0}),window.removeEventListener("scroll",e.onWindowScroll)}}},{key:"handleScroll",value:function(t){var e=this.scrollPositions.get(t);if(e){var n=t===window,i=n?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:i.x-e.x,y:i.y-e.y};(0!==r.x||0!==r.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,i),tH.update(this.updatePoint,!0))}}},{key:"updateHandlers",value:function(t){this.handlers=t}},{key:"end",value:function(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tX(this.updatePoint)}}]),t}();function rC(t,e){return e?{point:e(t.point)}:t}function rV(t,e){return{x:t.x-e.x,y:t.y-e.y}}function rD(t,e){var n=t.point;return{point:n,delta:rV(n,rj(e)),offset:rV(n,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};for(var e=t.length-1,n=null,i=rj(t);e>=0&&(n=t[e],!(i.timestamp-n.timestamp>t8(.1)));)e--;if(!n)return{x:0,y:0};n===t[0]&&t.length>2&&i.timestamp-n.timestamp>2*t8(.1)&&(n=t[1]);var r=et(i.timestamp-n.timestamp);if(0===r)return{x:0,y:0};var a={x:(i.x-n.x)/r,y:(i.y-n.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e)}}function rj(t){return t[t.length-1]}function rL(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function rO(t,e){var n,i=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&(i=(n=[r,i])[0],r=n[1]),{min:i,max:r}}function rI(t,e,n){return{min:rB(t,e),max:rB(t,n)}}function rB(t,e){return"number"==typeof t?t:t[e]||0}var rF=new WeakMap,rN=function(){function t(e){(0,s._)(this,t),this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ts(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}return(0,u._)(t,[{key:"start",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.snapToCursor,r=void 0!==i&&i,a=n.distanceThreshold,o=this.visualElement.presenceContext;if(!o||!1!==o.isPresent){var s=this.getProps().dragSnapToOrigin;this.panSession=new rM(t,{onSessionStart:function(t){r&&e.snapToCursor(rP(t).point),e.stopAnimation()},onStart:function(t,n){var i=e.getProps(),r=i.drag,a=i.dragPropagation,o=i.onDragStart;if(!r||a||(e.openDragLock&&e.openDragLock(),e.openDragLock=function(t){if("x"===t||"y"===t)if(rr[t])return null;else return rr[t]=!0,function(){rr[t]=!1};return rr.x||rr.y?null:(rr.x=rr.y=!0,function(){rr.x=rr.y=!1})}(r),e.openDragLock)){e.latestPointerEvent=t,e.latestPanInfo=n,e.isDragging=!0,e.currentDirection=null,e.resolve
2Constraints(),e.visualElement.projection&&(e.visualElement.projection.isAnimationBlocked=!0,e.visualElement.projection.target=void 0),rn(function(t){var n=e.getAxisMotionValue(t).get()||0;if(D.test(n)){var i=e.visualElement.projection;if(i&&i.layout){var r=i.layout.layoutBox[t];r&&(n=ra(r)*(parseFloat(n)/100))}}e.originPoint[t]=n}),o&&tH.update(function(){return o(t,n)},!1,!0),n$(e.visualElement,"transform");var s=e.visualElement.animationState;s&&s.setActive("whileDrag",!0)}},onMove:function(t,n){e.latestPointerEvent=t,e.latestPanInfo=n;var i=e.getProps(),r=i.dragPropagation,a=i.dragDirectionLock,o=i.onDirectionLock,s=i.onDrag;if(r||e.openDragLock){var u=n.offset;if(a&&null===e.currentDirection){e.currentDirection=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(u),null!==e.currentDirection&&o&&o(e.currentDirection);return}e.updateAxis("x",n.point,u),e.updateAxis("y",n.point,u),e.visualElement.render(),s&&tH.update(function(){return s(t,n)},!1,!0)}},onSessionEnd:function(t,n){e.latestPointerEvent=t,e.latestPanInfo=n,e.stop(t,n),e.latestPointerEvent=null,e.latestPanInfo=null},resumeAnimation:function(){(e.getProps().dragSnapToOrigin||e.constraints)&&e.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,distanceThreshold:a,contextWindow:rE(this.visualElement),element:this.visualElement.current})}}},{key:"stop",value:function(t,e){var n=t||this.latestPointerEvent,i=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),r&&i&&n){var a=i.velocity;this.startAnimation(a);var o=this.getProps().onDragEnd;o&&tH.postRender(function(){return o(n,i)})}}},{key:"cancel",value:function(){this.isDragging=!1;var t=this.visualElement,e=t.projection,n=t.animationState;e&&(e.isAnimationBlocked=!1),this.endPanSession(),!this.getProps().dragPropagation&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}},{key:"endPanSession",value:function(){this.panSession&&this.panSession.end(),this.panSession=void 0}},{key:"updateAxis",value:function(t,e,n){var i=this.getProps().drag;if(n&&rq(t,i,this.currentDirection)){var r,a,o,s,u,l=this.getAxisMotionValue(t),c=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(r=c,a=this.constraints[t],o=this.elastic[t],s=a.min,u=a.max,void 0!==s&&r<s?r=o?e7(s,r,o.min):Math.max(r,s):void 0!==u&&r>u&&(r=o?e7(u,r,o.max):Math.min(r,u)),c=r),l.set(c)}}},{key:"resolveConstraints",value:function(){var t,e,n,i,r,a,o=this,s=this.getProps(),u=s.dragConstraints,l=s.dragElastic,c=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(a=this.visualElement.projection)?void 0:a.layout,h=this.constraints;u&&nW(u)?this.constraints||(this.constraints=this.resolveRefConstraints()):u&&c?this.constraints=(t=c.layoutBox,e=u.top,n=u.left,i=u.bottom,r=u.right,{x:rL(t.x,n,r),y:rL(t.y,e,i)}):this.constraints=!1,this.elastic=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.35;return!1===t?t=0:!0===t&&(t=.35),{x:rI(t,"left","right"),y:rI(t,"top","bottom")}}(l),h!==this.constraints&&!nW(u)&&c&&this.constraints&&!this.hasMutatedConstraints&&rn(function(t){var e,n,i;!1!==o.constraints&&o.getAxisMotionValue(t)&&(o.constraints[t]=(e=c.layoutBox[t],n=o.constraints[t],i={},void 0!==n.min&&(i.min=n.min-e.min),void 0!==n.max&&(i.max=n.max-e.min),i))})}},{key:"resolveRefConstraints",value:function(){var t=this.getProps(),e=t.dragConstraints,n=t.onMeasureDragConstraints;if(!e||!nW(e))return!1;var i=e.current;tm(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");var r=this.visualElement.projection;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());var a=(s=r.root,u=np(i,this.visualElement.getTransformPagePoint()),(l=s.scroll)&&(nh(u.x,l.offset.x),nh(u.y,l.offset.y)),u),o=(c=r.layout.layoutBox,{x:rO(c.x,a.x),y:rO(c.y,a.y)});if(n){var s,u,l,c,h,d,v,f=n((d=(h=o).x,{top:(v=h.y).min,right:d.max,bottom:v.max,left:d.min}));this.hasMutatedConstraints=!!f,f&&(o=ni(f))}return o}},{key:"startAnimation",value:function(t){var e=this,n=this.getProps(),i=n.drag,r=n.dragMomentum,a=n.dragElastic,o=n.dragTransition,s=n.dragSnapToOrigin,u=n.onDragTransitionEnd,l=this.constraints||{};return Promise.all(rn(function(n){if(rq(n,i,e.currentDirection)){var u=l&&l[n]||{};(!0===s||s===n)&&(u={min:0,max:0});var c=(0,p._)({type:"inertia",velocity:r?t[n]:0,bounceStiffness:a?200:1e6,bounceDamping:a?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},o,u);return e.startAxisValueAnimation(n,c)}})).then(u)}},{key:"startAxisValueAnimation",value:function(t,e){var n=this.getAxisMotionValue(t);return n$(this.visualElement,t),n.start(iJ(t,n,0,e,this.visualElement,!1))}},{key:"stopAnimation",value:function(){var t=this;rn(function(e){return t.getAxisMotionValue(e).stop()})}},{key:"getAxisMotionValue",value:function(t){var e,n="_drag".concat(t.toUpperCase());return this.visualElement.getProps()[n]||this.visualElement.getValue(t,null!=(e=this.visualElement.latestValues[t])?e:0)}},{key:"snapToCursor",value:function(t){var e=this;rn(function(n){if(rq(n,e.getProps().drag,e.currentDirection)){var i=e.visualElement.projection,r=e.getAxisMotionValue(n);if(i&&i.layout){var a=i.layout.layoutBox[n],o=a.min,s=a.max,u=r.get()||0;r.set(t[n]-e7(o,s,.5)+u)}}})}},{key:"scalePositionWithinConstraints",value:function(){var t=this;if(this.visualElement.current){var e=this.getProps(),n=e.drag,i=e.dragConstraints,r=this.visualElement.projection;if(nW(i)&&r&&this.constraints){this.stopAnimation();var a={x:0,y:0};rn(function(e){var n=t.getAxisMotionValue(e);if(n&&!1!==t.constraints){var i,r,o,s,u,l=n.get();a[e]=(i={min:l,max:l},r=t.constraints[e],o=.5,s=ra(i),(u=ra(r))>s?o=ij(r.min,r.max-s,i.min):s>u&&(o=ij(i.min,i.max-u,r.min)),y(0,1,o))}});var o=this.visualElement.getProps().transformTemplate;this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),rn(function(e){if(rq(e,n,null)){var i=t.getAxisMotionValue(e),r=t.constraints[e],o=r.min,s=r.max;i.set(e7(o,s,a[e]))}}),this.visualElement.render()}}}},{key:"addListeners",value:function(){var t,e=this;if(this.visualElement.current){rF.set(this.visualElement,this);var n=this.visualElement.current,i=r_(n,"pointerdown",function(t){var i=e.getProps(),r=i.drag,a=i.dragListener,o=t.target,s=o!==n&&(rS.has(o.tagName)||!0===o.isContentEditable);r&&(void 0===a||a)&&!s&&e.start(t)}),r=function(){var i,r,a,o,s,u=e.getProps().dragConstraints;nW(u)&&u.current&&(e.constraints=e.resolveRefConstraints(),t||(i=n,r=u.current,o=rw(i,rU(a=function(){return e.scalePositionWithinConstraints()})),s=rw(r,rU(a)),t=function(){o(),s()}))},a=this.visualElement.projection,o=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),tH.read(r);var s=ri(window,"resize",function(){return e.scalePositionWithinConstraints()}),u=a.addEventListener("didUpdate",function(t){var n=t.delta,i=t.hasLayoutChanged;e.isDragging&&i&&(rn(function(t){var i=e.getAxisMotionValue(t);i&&(e.originPoint[t]+=n[t].translate,i.set(i.get()+n[t].translate))}),e.visualElement.render())});return function(){s(),i(),o(),u&&u(),t&&t()}}}},{key:"getProps",value:function(){var t=this.visualElement.getProps(),e=t.drag,n=t.dragDirectionLock,i=t.dragPropagation,r=t.dragConstraints,a=t.dragElastic,o=t.dragMomentum;return(0,m._)((0,p._)({},t),{drag:void 0!==e&&e,dragDirectionLock:void 0!==n&&n,dragPropagation:void 0!==i&&i,dragConstraints:void 0!==r&&r,dragElastic:void 0===a?.35:a,dragMomentum:void 0===o||o})}}]),t}();function rU(t){var e=!0;return function(){if(e){e=!1;return}t()}}function rq(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}var rz=function(t){function e(t){var n;return(0,s._)(this,e),(n=(0,o._)(this,e,[t])).removeGroupControls=tN,n.removeListeners=tN,n.controls=new rN(t),n}return(0,h._)(e,t),(0,u._)(e,[{key:"mount",value:function(){var t=this.node.getProps().dragControls;t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tN}},{key:"update",value:function(){var t=this.node.getProps().dragControls;t!==(this.node.prevProps||{}).dragControls&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}},{key:"unmount",value:function(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}]),e}(nY),rW=function(t){return function(e,n){t&&tH.update(function(){return t(e,n)},!1,!0)}},rH=function(t){function e(){var t;return(0,s._)(this,e),t=(0,o._)(this,e,arguments),t.removePointerDownListener=tN,t}return(0,h._)(e,t),(0,u._)(e,[{key:"onPointerDown",value:function(t){this.session=new rM(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rE(this.node)})}},{key:"createPanHandlers",value:function(){var t=this,e=this.node.getProps(),n=e.onPanSessionStart,i=e.onPanStart,r=e.onPan,a=e.onPanEnd;return{onSessionStart:rW(n),onStart:rW(i),onMove:rW(r),onEnd:function(e,n){delete t.session,a&&tH.postRender(function(){return a(e,n)})}}}},{key:"mount",value:function(){var t=this;this.removePointerDownListener=r_(this.node.current,"pointerdown",function(e){return t.onPointerDown(e)})}},{key:"update",value:function(){this.session&&this.session.updateHandlers(this.createPanHandlers())}},{key:"unmount",value:function(){this.removePointerDownListener(),this.session&&this.session.end()}}]),e}(nY),rX={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rY(){var t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,ny.useContext)(nD);if(null===e)return[!0,null];var n=e.isPresent,i=e.onExitComplete,r=e.register,a=(0,ny.useId)();(0,ny.useEffect)(function(){if(t)return r(a)},[t]);var o=(0,ny.useCallback)(function(){return t&&i&&i(a)},[a,i,t]);return!n&&i?[!1,o]:[!0]}t.s(["usePresence",0,rY],609072);var rK=!1,rQ=function(t){function e(){return(0,s._)(this,e),(0,o._)(this,e,arguments)}
2return(0,h._)(e,t),(0,u._)(e,[{key:"componentDidMount",value:function(){var t=this,e=this.props,n=e.visualElement,i=e.layoutGroup,r=e.switchLayoutGroup,a=e.layoutId,o=n.projection;o&&(i.group&&i.group.add(o),r&&r.register&&a&&r.register(o),rK&&o.root.didUpdate(),o.addEventListener("animationComplete",function(){t.safeToRemove()}),o.setOptions((0,m._)((0,p._)({},o.options),{layoutDependency:this.props.layoutDependency,onExitComplete:function(){return t.safeToRemove()}}))),rX.hasEverUpdated=!0}},{key:"getSnapshotBeforeUpdate",value:function(t){var e=this,n=this.props,i=n.layoutDependency,r=n.visualElement,a=n.drag,o=n.isPresent,s=r.projection;return s&&(s.isPresent=o,t.layoutDependency!==i&&s.setOptions((0,m._)((0,p._)({},s.options),{layoutDependency:i})),rK=!0,a||t.layoutDependency!==i||void 0===i||t.isPresent!==o?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||tH.postRender(function(){var t=s.getStack();t&&t.members.length||e.safeToRemove()}))),null}},{key:"componentDidUpdate",value:function(){var t=this,e=this.props,n=e.visualElement,i=e.layoutAnchor,r=n.projection;r&&(r.options.layoutAnchor=i,r.root.didUpdate(),eT.postRender(function(){!r.currentAnimation&&r.isLead()&&t.safeToRemove()}))}},{key:"componentWillUnmount",value:function(){var t=this.props,e=t.visualElement,n=t.layoutGroup,i=t.switchLayoutGroup,r=e.projection;rK=!0,r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),i&&i.deregister&&i.deregister(r))}},{key:"safeToRemove",value:function(){var t=this.props.safeToRemove;t&&t()}},{key:"render",value:function(){return null}}]),e}(ny.Component);function rG(t){var e=(0,S._)(rY(),2),n=e[0],i=e[1],r=(0,ny.useContext)(nw);return(0,nk.jsx)(rQ,(0,m._)((0,p._)({},t),{layoutGroup:r,switchLayoutGroup:(0,ny.useContext)(nz),isPresent:n,safeToRemove:i}))}var rZ=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],r$=rZ.length,rJ=function(t){return"string"==typeof t?parseFloat(t):t},r0=function(t){return"number"==typeof t||j.test(t)};function r1(t,e){return void 0!==t[e]?t[e]:t.borderRadius}var r2=r5(0,.5,iM),r3=r5(.5,.95,tN);function r5(t,e,n){return function(i){return i<t?0:i>e?1:n(ij(t,e,i))}}function r4(t,e){t.min=e.min,t.max=e.max}function r9(t,e){r4(t.x,e.x),r4(t.y,e.y)}function r7(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function r6(t,e,n,i,r){return t-=e,t=i+1/n*(t-i),void 0!==r&&(t=i+1/r*(t-i)),t}function r8(t,e,n,i,r){var a=(0,S._)(n,3),o=a[0],s=a[1],u=a[2];!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,r=arguments.length>4?arguments[4]:void 0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;if(D.test(e)&&(e=parseFloat(e),e=e7(o.min,o.max,e/100)-o.min),"number"==typeof e){var s=e7(a.min,a.max,i);t===a&&(s-=e),t.min=r6(t.min,e,n,s,r),t.max=r6(t.max,e,n,s,r)}}(t,e[o],e[s],e[u],e.scale,i,r)}var at=["x","scaleX","originX"],ae=["y","scaleY","originY"];function an(t,e,n,i){r8(t.x,e,at,n?n.x:void 0,i?i.x:void 0),r8(t.y,e,ae,n?n.y:void 0,i?i.y:void 0)}function ai(t){return 0===t.translate&&1===t.scale}function ar(t){return ai(t.x)&&ai(t.y)}function aa(t,e){return t.min===e.min&&t.max===e.max}function ao(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function as(t,e){return ao(t.x,e.x)&&ao(t.y,e.y)}function au(t){return ra(t.x)/ra(t.y)}function al(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var ac=function(){function t(){(0,s._)(this,t),this.members=[]}return(0,u._)(t,[{key:"add",value:function(t){en(this.members,t);for(var e=this.members.length-1;e>=0;e--){var n=this.members[e];if(n!==t&&n!==this.lead&&n!==this.prevLead){var i=n.instance;i&&!1!==i.isConnected||n.snapshot||(ei(this.members,n),n.unmount())}}t.scheduleRender()}},{key:"remove",value:function(t){if(ei(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var e=this.members[this.members.length-1];e&&this.promote(e)}}},{key:"relegate",value:function(t){for(var e=this.members.indexOf(t)-1;e>=0;e--){var n,i=this.members[e];if(!1!==i.isPresent&&(null==(n=i.instance)?void 0:n.isConnected)!==!1)return this.promote(i),!0}return!1}},{key:"promote",value:function(t,e){var n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.updateSnapshot(),t.scheduleRender();var i,r=n.options.layoutDependency,a=t.options.layoutDependency;(void 0===r||r!==a)&&(t.resumeFrom=n,e&&(n.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),(null==(i=t.root)?void 0:i.isUpdating)&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&n.hide()}}},{key:"exitAnimationComplete",value:function(){this.members.forEac
2h(function(t){var e,n,i,r,a;null==(e=(n=t.options).onExitComplete)||e.call(n),null==(r=t.resumingFrom)||null==(i=(a=r.options).onExitComplete)||i.call(a)})}},{key:"scheduleRender",value:function(){this.members.forEach(function(t){return t.instance&&t.scheduleRender(!1)})}},{key:"removeLeadSnapshot",value:function(){var t;(null==(t=this.lead)?void 0:t.snapshot)&&(this.lead.snapshot=void 0)}}]),t}(),ah=function(t,e){return t.depth-e.depth},ad=function(){function t(){(0,s._)(this,t),this.children=[],this.isDirty=!1}return(0,u._)(t,[{key:"add",value:function(t){en(this.children,t),this.isDirty=!0}},{key:"remove",value:function(t){ei(this.children,t),this.isDirty=!0}},{key:"forEach",value:function(t){this.isDirty&&this.children.sort(ah),this.isDirty=!1,this.children.forEach(t)}}]),t}(),av=["","X","Y","Z"],af=0;function ap(t,e,n,i){var r=e.latestValues;r[t]&&(n[t]=r[t],e.setStaticValue(t,0),i&&(i[t]=0))}function am(t){var e=t.attachResizeListener,n=t.defaultParent,i=t.measureScroll,r=t.checkIsScrollRoot,a=t.resetTransform;function o(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==n?void 0:n();(0,s._)(this,o),this.id=af++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=function(){return t.update()},this.projectionUpdateScheduled=!1,this.checkUpdateFailed=function(){t.isUpdating&&(t.isUpdating=!1,t.clearAllSnapshots())},this.updateProjection=function(){t.projectionUpdateScheduled=!1,t.nodes.forEach(ax),t.nodes.forEach(aA),t.nodes.forEach(aR),t.nodes.forEach(ak)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=i?i.root||i:this,this.path=i?(0,d._)(i.path).concat([i]):[],this.parent=i,this.depth=i?i.depth+1:0;for(var r=0;r<this.path.length;r++)this.path[r].shouldResetTransform=!0;this.root===this&&(this.nodes=new ad)}return(0,u._)(o,[{key:"addEventListener",value:function(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new er),this.eventHandlers.get(t).add(e)}},{key:"notifyListeners",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var r=this.eventHandlers.get(t);r&&r.notify.apply(r,(0,d._)(n))}},{key:"hasListeners",value:function(t){return this.eventHandlers.has(t)}},{key:"mount",value:function(t){var n=this;if(!this.instance){this.isSVG=rd(t)&&!(rd(t)&&"svg"===t.tagName),this.instance=t;var i=this.options,r=i.layoutId,a=i.layout,o=i.visualElement;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(a||r)&&(this.isLayoutDirty=!0),e){var s,u=0,l=function(){return n.root.updateBlockedByResize=!1};tH.read(function(){u=window.innerWidth}),e(t,function(){var t,e,i=window.innerWidth;i!==u&&(u=i,n.root.updateBlockedByResize=!0,s&&s(),t=e_.now(),e=function(n){var i=n.timestamp-t;i>=250&&(tX(e),l())},tH.setup(e,!0),s=function(){return tX(e)},rX.hasAnimatedSinceResize&&(rX.hasAnimatedSinceResize=!1,n.nodes.forEach(aE)))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||a)&&this.addEventListener("didUpdate",function(t){var e=t.delta,i=t.hasLayoutChanged,r=t.hasRelativeLayoutChanged,a=t.layout;if(n.isTreeAnimationBlocked()){n.target=void 0,n.relativeTarget=void 0;return}var s=n.options.transition||o.getDefaultTransition()||aL,u=o.getProps(),l=u.onLayoutAnimationStart,c=u.onLayoutAnimationComplete,h=!n.targetLayout||!as(n.targetLayout,a),d=!i&&r;if(n.options.layoutRoot||n.resumeFrom||d||i&&(h||!n.currentAnimation)){n.resumeFrom&&(n.resumingFrom=n.resumeFrom,n.resumingFrom.resumingFrom=void 0);var v=(0,m._)((0,p._)({},nG(s,"layout")),{onPlay:l,onComplete:c});(o.shouldReduceMotion||n.options.layoutRoot)&&(v.delay=0,v.type=!1),n.startAnimation(v),n.setAnimationOrigin(e,d,v.path)}else i||aE(n),n.isLead()&&n.options.onExitComplete&&n.options.onExitComplete();n.targetLayout=a})}}},{key:"unmount",value:function(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);var t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tX(this.updateProjection)}},{key:"blockUpdate",value:function(){this.updateManuallyBlocked=!0}},{key:"unblockUpdate",value:function(){this.updateManuallyBlocked=!1}},{key:"isUpdateBlocked",value:function(){return this.updateManuallyBlocked||this.updateBlockedByResize}},{key:"isTreeAnimationBlocked",value:function(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}}
2,{key:"startUpdate",value:function(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(aM),this.animationId++)}},{key:"getTransformTemplate",value:function(){var t=this.options.visualElement;return t&&t.getProps().transformTemplate}},{key:"willUpdate",value:function(){var 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(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root!==e){var n=e.options.visualElement;if(n){var i=n.props[nq];if(window.MotionHasOptimisedAnimation(i,"transform")){var r=e.options,a=r.layout,o=r.layoutId;window.MotionCancelOptimisedAnimation(i,"transform",tH,!(a||o))}var s=e.parent;s&&!s.hasCheckedOptimisedAppear&&t(s)}}}(this),this.root.isUpdating||this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var e=0;e<this.path.length;e++){var n=this.path[e];n.shouldResetTransform=!0,("string"==typeof n.latestValues.x||"string"==typeof n.latestValues.y)&&(n.isLayoutDirty=!0),n.updateScroll("snapshot"),n.options.layoutRoot&&n.willUpdate(!1)}var i=this.options,r=i.layoutId,a=i.layout;if(void 0!==r||a){var o=this.getTransformTemplate();this.prevTransformTemplateValue=o?o(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}}}},{key:"update",value:function(){if(this.updateScheduled=!1,this.isUpdateBlocked()){var t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(aS),this.nodes.forEach(ab);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(aT);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(aP),this.nodes.forEach(a_),this.nodes.forEach(ay),this.nodes.forEach(ag)):this.nodes.forEach(aT),this.clearAllSnapshots();var e=e_.now();tY.delta=y(0,1e3/60,e-tY.timestamp),tY.timestamp=e,tY.isProcessing=!0,tK.update.process(tY),tK.preRender.process(tY),tK.render.process(tY),tY.isProcessing=!1}},{key:"didUpdate",value:function(){this.updateScheduled||(this.updateScheduled=!0,eT.read(this.scheduleUpdate))}},{key:"clearAllSnapshots",value:function(){this.nodes.forEach(aw),this.sharedNodes.forEach(aC)}},{key:"scheduleUpdateProjection",value:function(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tH.preRender(this.updateProjection,!1,!0))}},{key:"scheduleCheckAfterUnmount",value:function(){var t=this;tH.postRender(function(){t.isLayoutDirty?t.root.didUpdate():t.root.checkUpdateFailed()})}},{key:"updateSnapshot",value:function(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||ra(this.snapshot.measuredBox.x)||ra(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}},{key:"updateLayout",value:function(){if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=ts()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);var n=this.options.visualElement;n&&n.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}}},{key:"updateScroll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){var n=r(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:n,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:n}}}},{key:"resetTransform",value:function(){if(a){var t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!ar(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,r=i!==this.prevTransformTemplateValue;t&&this.instance&&(e||no(this.latestValues)||r)&&(a(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}}},{key:"measure",value:function(){var t,e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],n=this.measurePageBox(),i=this.removeElementScroll(n);return e&&(i=this.removeTransform(i)),aB((t=i).x),aB(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:i,latestValues:{},source:this.id}}},{key:"measurePageBox",value:function(){var t,e=this.options.visualElement;if(!e)return ts();var n=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(aN))){var i=this.root.scroll;i&&(nh(n.x,i.offset.x),nh(n.y,i.offset.y))}return n}},{key:"removeElementScroll",value:function(t){var e,n=ts();if(r9(n,t),null==(e=this.scroll)?void 0:e.wasRoot)return n;for(var i=0;i<this.path.length;i++){var r=this.path[i],a=r.scroll,o=r.options;r!==this.root&&a&&o.layoutScroll&&(a.wasRoot&&r9(n,t),nh(n.x,a.offset.x),nh(n.y,a.offset.y))}return n}},{key:"applyTransform",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0,r=i||ts();r9(r,t);for(var a=0;a<this.path.length;a++){var o,s=this.path[a];!n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(nh(r.x,-s.scroll.offset.x),nh(r.y,-s.scroll.offset.y)),no(s.latestValues)&&nf(r,s.latestValues,null==(o=s.layout)?void 0:o.layoutBox)}return no(this.latestValues)&&nf(r,this.latestValues,null==(e=this.layout)?void 0:e.layoutBox),r}},{key:"removeTransform",value:function(t){var e=ts();r9(e,t);for(var n=0;n<this.path.length;n++){var i,r=this.path[n];if(no(r.latestValues)){var a=void 0;r.instance&&(na(r.latestValues)&&r.updateSnapshot(),r9(a=ts(),r.measurePageBox())),an(e,r.latestValues,null==(i=r.snapshot)?void 0:i.layoutBox,a)}}return no(this.latestValues)&&an(e,this.latestValues),e}},{key:"setTargetDelta",value:function(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}},{key:"setOptions",value:function(t){this.options=(0,m._)((0,p._)({},this.options,t),{crossfade:void 0===t.crossfade||t.crossfade})}},{key:"clearMeasurements",value:function(){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}},{key:"forceRelativeParentToResolveTarget",value:function(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tY.timestamp&&this.relativeParent.resolveTargetDelta(!0)}},{key:"resolveTargetDelta",value:function(){var t,e,n,i,r,a=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);var s=!!this.resumingFrom||this!==o;if(a||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(r=this.parent)?void 0:r.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize){var u=this.options,l=u.layout,c=u.layoutId;if(this.layout&&(l||c)){this.resolvedRelativeTargetAt=tY.timestamp;var h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&((this.target||(this.target=ts(),this.targetWithTransforms=ts()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),t=this.target,e=this.relativeTarget,n=this.relativeParent.target,i=this.options.layoutAnchor||void 0,ru(t.x,e.x,n.x,null==i?void 0:i.x),ru(t.y,e.y,n.y,null==i?void 0:i.y)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):r9(this.target,this.layout.layoutBox),nc(this.target,this.targetDelta)):r9(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&1!==this.animationProgress?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}}}},{key:"getClosestProjectingParent",value:function(){if(!(!this.parent||na(this.parent.latestValues)||ns(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}},{key:"isProjecting",value:function(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}},{key:"createRelativeTarget",value:function(t,e,n){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ts(),this.relativeTargetOrigin=ts(),rc(this.relativeTargetOrigin,e,n,this.options.layoutAnchor||void 0),r9(this.relativeTarget,this.relativeTargetOrigin)}},{key:"removeRelativeTarget",value:function(){this.relativeParent=this.relativeTarget=void 0}},{key:"calcProjection",value:function(){var t,e=this.getLead(),n=!!this.resumingFrom||this!==e,i=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tY.timestamp&&(i=!1),!i){var r=this.options,a=r.layout,o=r.layoutId;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(a||o)){r9(this.layoutCorrected,this.layout.layoutBox);var s=this.treeScale.x,u=this.treeScale.y;!function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=n.length;if(r){e.x=e.y=1;for(var a=0;a<r;a++){var o,s,u=(o=n[a]).projectionDelta,l=o.options.visualElement;(!l||!l.props.style||"contents"!==l.props.style.display)&&(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(nh(t.x,-o.scroll.offset.x),nh(t.y,-o.scroll.offset.y)),u&&(e.x*=u.x.scale,e.y*=u.y.scale,nc(t,u)),i&&no(o.latestValues)&&nf(t,o.latestValues,null==(s=o.layout)?void 0:s.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,n),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=ts());var l=e.target;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(r7(this.prevProjectionDelta.x,this.projectionDelta.x),r7(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rs(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===u&&al(this.projectionDelta.x,this.prevProjectionDelta.x)&&al(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}}}},{key:"hide",value:function(){this.isVisible=!1}},{key:"show",value:function(){this.isVisible=!0}},{key:"scheduleRender",value:function(){var t,e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(null==(t=this.options.visualElement)||t.scheduleRender(),e){var n=this.getStack();n&&n.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}},{key:"createProjectionDeltas",value:function(){this.prevProjectionDelta=ta(),this.projectionDelta=ta(),this.projectionDeltaWithTransform=ta()}},{key:"setAnimationOrigin",value:function(t){var e,n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0,a=this.snapshot,o=a?a.latestValues:{},s=(0,p._)({},this.latestValues),u=ta();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;var l=ts(),c=(a?a.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),d=!h||h.members.length<=1,v=!!(c&&!d&&!0===this.options.crossfade&&!this.path.some(aj));this.animationProgress=0;var f=null==r?void 0:r.interpolateProjection(t);this.mixTargetDelta=function(i){var r,a,h,p,m,y,g=i/1e3,x=null==f?void 0:f(g);if(x?(u.x.translate=x.x,u.x.scale=e7(t.x.scale,1,g),u.x.origin=t.x.origin,u.x.originPoint=t.x.originPoint,u.y.translate=x.y,u.y.scale=e7(t.y.scale,1,g),u.y.origin=t.y.origin,u.y.originPoint=t.y.originPoint):(aV(u.x,t.x,g),aV(u.y,t.y,g)),n.setTargetDelta(u),n.relativeTarget&&n.relativeTargetOrigin&&n.layout&&n.relativeParent&&n.relativeParent.layout){rc(l,n.layout.layoutBox,n.relativeParent.layout.layoutBox,n.options.layoutAnchor||void 0),r=n.relativeTarget,a=n.relativeTargetOrigin,h=l,p=g,aD(r.x,a.x,h.x,p),aD(r.y,a.y,h.y,p),e&&(m=n.relativeTarget,y=e,aa(m.x,y.x)&&aa(m.y,y.y))&&(n.isProjectionDirty=!1),e||(e=ts()),r9(e,n.relativeTarget)}c&&(n.animationValues=s,function(t,e,n,i,r,a){r?(t.opacity=e7(0,null!=(o=n.opacity)?o:1,r2(i)),t.opacityExit=e7(null!=(s=e.opacity)?s:1,0,r3(i))):a&&(t.opacity=e7(null!=(u=e.opacity)?u:1,null!=(l=n.opacity)?l:1,i));for(var o,s,u,l,c=0;c<r$;c++){var h=rZ[c],d=r1(e,h),v=r1(n,h);(void 0!==d||void 0!==v)&&(d||(d=0),v||(v=0),0===d||0===v||r0(d)===r0(v)?(t[h]=Math.max(e7(rJ(d),rJ(v),i),0),(D.test(v)||D.test(d))&&(t[h]+="%")):t[h]=v)}(e.rotate||n.rotate)&&(t.rotate=e7(e.rotate||0,n.rotate||0,i))}(s,o,n.latestValues,g,v,d)),x&&void 0!==x.rotate&&(n.animationValues||(n.animationValues=s),n.animationValues.pathRotation=x.rotate),n.root.scheduleUpdateProjection(),n.scheduleRender(),n.animationProgress=g},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}},{key:"startAnimation",value:function(t){var e,n,i,r=this;this.notifyListeners("animationStart"),null==(e=this.currentAnimation)||e.stop(),null==(i=this.resumingFrom)||null==(n=i.currentAnimation)||n.stop(),this.pendingAnimation&&(tX(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tH.update(function(){var e,n,i;rX.hasAnimatedSinceResize=!0,ef.layout++,r.motionValue||(r.motionValue=eM(0)),r.motionValue.jump(0,!1),e=r.motionValue,n=(0,m._)((0,p._)({},t),{velocity:0,isSync:!0,onUpdate:function(e){r.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:function(){ef.layout--},onComplete:function(){ef.layout--,t.onComplete&&t.onComplete(),r.completeAnimation()}}),(i=tu(e)?e:eM(e)).start(iJ("",i,[0,1e3],n)),r.currentAnimation=i.animation,r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0})}},{key:"completeAnimation",value:function(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);var t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}},{key:"finishAnimation",value:function(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}},{key:"applyTransformsToTarget",value:function(){var t=this.getLead(),e=t.targetWithTransforms,n=t.target,i=t.layout,r=t.latestValues;
2if(e&&n&&i){if(this!==t&&this.layout&&i&&aF(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||ts();var a=ra(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+a;var o=ra(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+o}r9(e,n),nf(e,r),rs(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}},{key:"registerSharedNode",value:function(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new ac),this.sharedNodes.get(t).add(e);var n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}},{key:"isLead",value:function(){var t=this.getStack();return!t||t.lead===this}},{key:"getLead",value:function(){var t;return this.options.layoutId&&(null==(t=this.getStack())?void 0:t.lead)||this}},{key:"getPrevLead",value:function(){var t;return this.options.layoutId?null==(t=this.getStack())?void 0:t.prevLead:void 0}},{key:"getStack",value:function(){var t=this.options.layoutId;if(t)return this.root.sharedNodes.get(t)}},{key:"promote",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.needsReset,n=t.transition,i=t.preserveFollowOpacity,r=this.getStack();r&&r.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),n&&this.setOptions({transition:n})}},{key:"relegate",value:function(){var t=this.getStack();return!!t&&t.relegate(this)}},{key:"resetSkewAndRotation",value:function(){var t=this.options.visualElement;if(t){var e=!1,n=t.latestValues;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),e){var i={};n.z&&ap("z",t,i,this.animationValues);for(var r=0;r<av.length;r++)ap("rotate".concat(av[r]),t,i,this.animationValues),ap("skew".concat(av[r]),t,i,this.animationValues);for(var a in t.render(),i)t.setStaticValue(a,i[a]),this.animationValues&&(this.animationValues[a]=i[a]);t.scheduleRender()}}}},{key:"applyProjectionStyles",value:function(t,e){if(this.instance&&!this.isSVG){if(!this.isVisible){t.visibility="hidden";return}var n,i,r=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=nV(null==e?void 0:e.pointerEvents)||"",t.transform=r?r(this.latestValues,""):"none";return}var a=this.getLead();if(!this.projectionDelta||!this.layout||!a.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=nV(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!no(this.latestValues)&&(t.transform=r?r({},""):"none",this.hasProjected=!1);return}t.visibility="";var o=a.animationValues||a.latestValues;this.applyTransformsToTarget();var s=function(t,e,n){var i="",r=t.x.translate/e.x,a=t.y.translate/e.y,o=(null==n?void 0:n.z)||0;if((r||a||o)&&(i="translate3d(".concat(r,"px, ").concat(a,"px, ").concat(o,"px) ")),(1!==e.x||1!==e.y)&&(i+="scale(".concat(1/e.x,", ").concat(1/e.y,") ")),n){var s=n.transformPerspective,u=n.rotate,l=n.pathRotation,c=n.rotateX,h=n.rotateY,d=n.skewX,v=n.skewY;s&&(i="perspective(".concat(s,"px) ").concat(i)),u&&(i+="rotate(".concat(u,"deg) ")),l&&(i+="rotate(".concat(l,"deg) ")),c&&(i+="rotateX(".concat(c,"deg) ")),h&&(i+="rotateY(".concat(h,"deg) ")),d&&(i+="skewX(".concat(d,"deg) ")),v&&(i+="skewY(".concat(v,"deg) "))}var f=t.x.scale*e.x,p=t.y.scale*e.y;return(1!==f||1!==p)&&(i+="scale(".concat(f,", ").concat(p,")")),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,o);r&&(s=r(o,s)),t.transform=s;var u=this.projectionDelta,l=u.x,c=u.y;for(var h in t.transformOrigin="".concat(100*l.origin,"% ").concat(100*c.origin,"% 0"),a.animationValues?t.opacity=a===this?null!=(n=null!=(i=o.opacity)?i:this.latestValues.opacity)?n:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:t.opacity=a===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,e6)if(void 0!==o[h]){var d=e6[h],v=d.correct,f=d.applyTo,p=d.isCSSVariable,m="none"===s?o[h]:v(o[h],a);if(f)for(var y=f.length,g=0;g<y;g++)t[f[g]]=m;else p?this.options.visualElement.renderState.vars[h]=m:t[h]=m}this.options.layoutId&&(t.pointerEvents=a===this?nV(null==e?void 0:e.pointerEvents)||"":"none")}}},{key:"clearSnapshot",value:function(){this.resumeFrom=this.snapshot=void 0}}
2,{key:"resetTree",value:function(){this.root.nodes.forEach(function(t){var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(ab),this.root.sharedNodes.clear()}}]),o}function ay(t){t.updateLayout()}function ag(t){var e,n=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){var i=t.layout,r=i.layoutBox,a=i.measuredBox,o=t.options.animationType,s=n.source!==t.layout.source;if("size"===o)rn(function(t){var e=s?n.measuredBox[t]:n.layoutBox[t],i=ra(e);e.min=r[t].min,e.max=e.min+i});else if("x"===o||"y"===o){var u="x"===o?"y":"x";r4(s?n.measuredBox[u]:n.layoutBox[u],r[u])}else aF(o,n.layoutBox,r)&&rn(function(e){var i=s?n.measuredBox[e]:n.layoutBox[e],a=ra(r[e]);i.max=i.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[e].max=t.relativeTarget[e].min+a)});var l=ta();rs(l,r,n.layoutBox);var c=ta();s?rs(c,t.applyTransform(a,!0),n.measuredBox):rs(c,r,n.layoutBox);var h=!ar(l),d=!1;if(!t.resumeFrom){var v=t.getClosestProjectingParent();if(v&&!v.resumeFrom){var f=v.snapshot,p=v.layout;if(f&&p){var m=t.options.layoutAnchor||void 0,y=ts();rc(y,n.layoutBox,f.layoutBox,m);var g=ts();rc(g,r,p.layoutBox,m),as(y,g)||(d=!0),v.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=y,t.relativeParent=v)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:h,hasRelativeLayoutChanged:d})}else if(t.isLead()){var x=t.options.onExitComplete;x&&x()}t.options.transition=void 0}function ax(t){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 ak(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function aw(t){t.clearSnapshot()}function ab(t){t.clearMeasurements()}function aS(t){t.isLayoutDirty=!0,t.updateLayout()}function aT(t){t.isLayoutDirty=!1}function aP(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function a_(t){var e=t.options.visualElement;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function aE(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function aA(t){t.resolveTargetDelta()}function aR(t){t.calcProjection()}function aM(t){t.resetSkewAndRotation()}function aC(t){t.removeLeadSnapshot()}function aV(t,e,n){t.translate=e7(e.translate,0,n),t.scale=e7(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function aD(t,e,n,i){t.min=e7(e.min,n.min,i),t.max=e7(e.max,n.max,i)}function aj(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}var aL={duration:.45,ease:[.4,0,.1,1]},aO=function(t){return"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t)},aI=aO("applewebkit/")&&!aO("chrome/")?Math.round:tN;function aB(t){t.min=aI(t.min),t.max=aI(t.max)}function aF(t,e,n){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(au(e)-au(n)))}function aN(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}var aU=am({attachResizeListener:function(t,e){return ri(t,"resize",e)},measureScroll:function(){var t,e;return{x:document.documentElement.scrollLeft||(null==(t=document.body)?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||(null==(e=document.body)?void 0:e.scrollTop)||0}},checkIsScrollRoot:function(){return!0}}),aq={current:void 0},az=am({measureScroll:function(t){return{x:t.scrollLeft,y:t.scrollTop}},defaultParent:function(){if(!aq.current){var t=new aU({});t.mount(window),t.setOptions({layoutScroll:!0}),aq.current=t}return aq.current},resetTransform:function(t,e){t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:function(t){return"fixed"===window.getComputedStyle(t).position}});function aW(t,e){var n=rv(t),i=new AbortController;return[n,(0,m._)((0,p._)({passive:!0},e),{signal:i.signal}),function(){return i.abort()}]}function aH(t,e,n){var i=t.props;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);var r=i["onHover"+n];r&&tH.postRender(function(){return r(e,rP(e))})}var aX=function(t){function e(){return(0,s._)(this,e),(0,o._)(this,e,arguments)}return(0,h._)(e,t),(0,u._)(e,[{key:"mount",value:function(){var t=this,e=this.node.current;e&&(this.unmount=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=(0,S._)(aW(t,n),3),r=i[0],a=i[1],o=i[2];return r.forEach(function(t){var n,i=!1,r=!1,o=function(){t.removeEventListener("pointerleave",l)},s=function(t){n&&(n(t),n=void 0),o()},u=function(t){i=!1,window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",u),r&&(r=!1,s(t))},l=function(t){if("touch"!==t.pointerType){if(i){r=!0;return}s(t)}};t.addEventListener("pointerenter",function(i){if("touch"!==i.pointerType&&!rr.x&&!rr.y){r=!1;var o=e(t,i);"function"==typeof o&&(n=o,t.addEventListener("pointerleave",l,a))}},a),t.addEventListener("pointerdown",function(){i=!0,window.addEventListener("pointerup",u,a),window.addEventListener("pointercancel",u,a)},a)}),o}(e,function(e,n){return aH(t.node,n,"Start"),function(e){return aH(t.node,e,"End")}}))}},{key:"unmount",value:function(){}}]),e}(nY),aY=function(t){function e(){var t;return(0,s._)(this,e),t=(0,o._)(this,e,arguments),t.isActive=!1,t}return(0,h._)(e,t),(0,u._)(e,[{key:"onFocus",value:function(){var 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)}},{key:"onBlur",value:function(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}},{key:"mount",value:function(){var t=this;this.unmount=nJ(ri(this.node.current,"focus",function(){return t.onFocus()}),ri(this.node.current,"blur",function(){return t.onBlur()}))}},{key:"unmount",value:function(){}}]),e}(nY);function aK(t){return rh(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}t.s(["isHTMLElement",0,aK],707059);var aQ=function(t,e){return!!e&&(t===e||aQ(t,e.parentElement))},aG=new WeakSet;function aZ(t){return function(e){"Enter"===e.key&&t(e)}}function a$(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}var aJ=function(t,e){var n=t.currentTarget;if(n){var i=aZ(function(){if(!aG.has(n)){a$(n,"down");var t=aZ(function(){a$(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",function(){return a$(n,"cancel")},e)}});n.addEventListener("keydown",i,e),n.addEventListener("blur",function(){return n.removeEventListener("keydown",i)},e)}};function a0(t){return rT(t)&&!(rr.x||rr.y)}var a1=new WeakSet;function a2(t,e,n){var i=t.props;if(!(0,t7._)(t.current,HTMLButtonElement)||!t.current.disabled){t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);var r=i["onTap"+("End"===n?"":n)];r&&tH.postRender(function(){return r(e,rP(e))})}}var a3=function(t){function e(){return(0,s._)(this,e),(0,o._)(this,e,arguments)}return(0,h._)(e,t),(0,u._)(e,[{key:"mount",value:function(){var t=this,e=this.node.current;if(e){var n=this.node.props,i=n.globalTapTarget,r=n.propagate;this.unmount=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=(0,S._)(aW(t,n),3),r=i[0],a=i[1],o=i[2],s=function(t){var i=t.currentTarget;if(a0(t)&&!a1.has(t)){aG.add(i),n.stopPropagation&&a1.add(t);var r=e(i,t),o=function(t,e){window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",u),aG.has(i)&&aG.delete(i),a0(t)&&"function"==typeof r&&r(t,{success:e})},s=function(t){o(t,i===window||i===document||n.useGlobalTarget||aQ(i,t.target))},u=function(t){o(t,!1)};window.addEventListener("pointerup",s,a),window.addEventListener("pointercancel",u,a)}};return r.forEach(function(t){((n.useGlobalTarget?window:t).addEventListener("pointerdown",s,a),aK(t))&&(t.addEventListener("focus",function(t){return aJ(t,a)}),rb.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),o}(e,function(e,n){return a2(t.node,n,"Start"),function(e,n){var i=n.success;
2return a2(t.node,e,i?"End":"Cancel")}},{useGlobalTarget:i,stopPropagation:(null==r?void 0:r.tap)===!1})}}},{key:"unmount",value:function(){}}]),e}(nY),a5=new WeakMap,a4=new WeakMap,a9=function(t){var e=a5.get(t.target);e&&e(t)},a7=function(t){t.forEach(a9)},a6={some:0,all:1},a8=function(t){function e(){var t;return(0,s._)(this,e),t=(0,o._)(this,e,arguments),t.hasEnteredView=!1,t.isInView=!1,t}return(0,h._)(e,t),(0,u._)(e,[{key:"startObserver",value:function(){var t,e,n,i,r,a,o,s,u,l=this;null==(u=this.stopObserver)||u.call(this);var c=this.node.getProps().viewport,h=void 0===c?{}:c,d=h.root,v=h.margin,f=h.amount,m=void 0===f?"some":f,y=h.once,g={root:d?d.current:void 0,rootMargin:v,threshold:"number"==typeof m?m:a6[m]};this.stopObserver=(t=this.node.current,e=function(t){var e=t.isIntersecting;if(l.isInView!==e){if(l.isInView=e,y&&!e&&l.hasEnteredView)return;e&&(l.hasEnteredView=!0),l.node.animationState&&l.node.animationState.setActive("whileInView",e);var n=l.node.getProps(),i=n.onViewportEnter,r=n.onViewportLeave,a=e?i:r;a&&a(t)}},n=g.root,i=(0,t6._)(g,["root"]),r=n||document,a4.has(r)||a4.set(r,{}),(a=a4.get(r))[o=JSON.stringify(i)]||(a[o]=new IntersectionObserver(a7,(0,p._)({root:n},i))),s=a[o],a5.set(t,e),s.observe(t),function(){a5.delete(t),s.unobserve(t)})}},{key:"mount",value:function(){this.startObserver()}},{key:"update",value:function(){if("u">typeof IntersectionObserver){var t=this.node;["amount","margin","root"].some(function(t){var e=t.viewport,n=void 0===e?{}:e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.viewport,a=void 0===r?{}:r;return function(t){return n[t]!==a[t]}}(t.props,t.prevProps))&&this.startObserver()}}},{key:"unmount",value:function(){var t;null==(t=this.stopObserver)||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}]),e}(nY),ot=function(t,e){if("u"<typeof Proxy)return nX;var n=new Map,i=function(n,i){return nX(n,i,t,e)};return new Proxy(function(t,e){return i(t,e)},{get:function(r,a){return"create"===a?i:(n.has(a)||n.set(a,nX(a,void 0,t,e)),n.get(a))}})}((0,p._)({},{animation:{Feature:i8},exit:{Feature:re}},{inView:{Feature:a8},tap:{Feature:a3},focus:{Feature:aY},hover:{Feature:aX}},{pan:{Feature:rH},drag:{Feature:rz,ProjectionNode:az,MeasureLayout:rG}},{layout:{ProjectionNode:az,MeasureLayout:rG}}),function(t,e){var n;return(null!=(n=e.isSVG)?n:nx(t))?new nn(e):new nm(e,{allowProjection:t!==ny.Fragment})});t.s(["motion",0,ot],827539);var oe=t.i(411942),on=t.i(589754),oi=t.i(532211);function or(){var t=(0,oe._)(["\n box-sizing: border-box;\n background: var(--gray-50);\n border-bottom: 1px solid var(--gray-300);\n display: grid;\n flex-grow: 1;\n grid-template-columns: repeat(2, 28px) auto;\n height: ",";\n overflow: hidden;\n"]);return or=function(){return t},t}function oa(){var t=(0,oe._)(["\n align-items: center;\n outline: 1px solid var(--gray-300);\n background: var(--white);\n display: flex;\n gap: var(--spacing-xs);\n padding-inline: var(--spacing-sm);\n"]);return oa=function(){return t},t}function oo(){var t=(0,oe._)(["\n align-items: center;\n display: flex;\n justify-content: center;\n padding: var(--spacing-xs);\n min-height: 28px;\n min-width: 28px;\n"]);return oo=function(){return t},t}function os(){var t=(0,oe._)(["\n align-items: center;\n display: flex;\n margin-left: auto;\n gap: var(--spacing-sm);\n"]);return os=function(){return t},t}function ou(){var t=(0,oe._)(["\n ","\n max-height: 90vh;\n overflow-y: auto;\n"]);return ou=function(){return t},t}function ol(){var t=(0,oe._)(["\n svg {\n color: var(--gray-300);\n transition: color var(--duration-fast) var(--timing-ease-out);\n }\n &:hover {\n svg {\n color: var(--gray-500);\n }\n }\n"]);return ol=function(){return t},t}var oc="32px";(0,on.css)(or(),oc),(0,on.css)(oa());var oh=(0,on.css)(oo());function od(){var t=(0,oe._)(["\n position: fixed;\n inset: 0;\n background: rgba(31, 43, 52, 0.4);\n animation: "," 0.5s ease-in-out;\n"]);return od=function(){return t},t}function ov(){var t=(0,oe._)(["\n height: 100%;\n background: var(--white);\n box-shadow: var(--elevation-",");\n transform: translateZ(0);\n contain: paint layout;\n will-change: transform;\n grid-area: 1 / 1;\n order: ",";\n border-radius: var(--spacing-base) 0 0 0;\n"]);return ov=function(){return t},t}function of(){var t=(0,oe._)(["\n background: var(--gray-600);\n"]);return of=function(){return t},t}function op(){var t=(0,oe._)(["\n background: var(--gray-700);\n border: none;\n padding: var(--spacing-sm);\n color: var(--white);\n display: flex;\n justify-content: space-evenly;\n"]);return op=function(){return t},t}function om(){var t=(0,oe._)(["\n border: none;\n background: none;\n position: relative;\n line-height: 1;\n color: var(--gray-300);\n\n &:hover {\n color: var(--gray-500);\n }\n"]);return om=function(){return t},t}function oy(){var t=(0,oe._)(["\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n"]);return oy=function(){return t},t}function og(){var t=(0,oe._)(["\n margin-left: auto;\n flex: 0 0 auto;\n width: 0.5rem;\n height: 0.5rem;\n border-radius: 50%;\n background-color: var(--accent-alt-dark);\n"]);return og=function(){return t},t}function ox(){var t=(0,oe._)(["\n position: absolute;\n top: 2px;\n right: -8px;\n color: ",";\n background: ",";\n border-color: var(--gray-600);\n"]);return ox=function(){return t},t}function ok(){var t=(0,oe._)(["\n position: absolute;\n inset: "," 0 0 0;\n"]);return ok=function(){return t},t}(0,on.css)(os()),(0,on.css)(ou(),oi.scrollbarStyles),(0,on.css)(ol()),t.s(["globalNavBarHeight",0,oc,"iconButtonStyles",0,oh],958279);
2var ow=(0,on.css)(od(),oi.fadeIn),ob=(0,on.css)(of()),oS=(0,on.css)(op()),oT=(0,on.css)(om()),oP=(0,on.css)(oy()),o_=(0,on.css)(og()),oE=(0,on.css)(ok(),oc);t.s(["BackdropStyles",0,ow,"BreadcrumbsTitleStyles",0,oP,"BreadcrumbsValidationIconStyles",0,o_,"ButtonStyles",0,oT,"ContentStyles",0,oE,"CounterStyles",0,function(t){return(0,on.css)(ox(),t?"var(--typography-base)":"var(--white)",t?"var(--white)":"var(--accent-alt-dark)")},"HeaderCloseButtonStyles",0,oS,"HeaderStyles",0,ob,"IndentedNestedRouteStyles",0,function(t){return(0,on.css)(ov(),100*t,t)}],50636)},321666,47675,361770,54231,t=>{"use strict";var e,n,i,r=t.i(83802);t.i(183202);var a=t.i(984072),o=t.i(831427),s=t.i(528388),u=t.i(788787),l=t.i(22069);t.i(410164),t.i(714834);var c=t.i(877032),h=t.i(776477);function d(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i]}function v(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i]}t.s(["i",0,v,"t",0,d],47675);var f=t.i(124412),p={303:"Multiple adapter contexts detected. This might happen in monorepos.",404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?",502:"`processUrlSearchParams` threw while processing key(s) `%s`. %O"};function m(t){return"[nuqs] ".concat(p[t],"\n See https://nuqs.dev/NUQS-").concat(t)}var y={};function g(t,e){var n,i=Symbol.for("nuqs.".concat("2.9.5",".").concat(t)),r=globalThis;if(null!=r[i])return r[i];var a=Object.isExtensible(r)?r:y;return null!=(n=a[i])?n:a[i]=e()}var x=(e=f.createContext,n=function(){var t=(0,f.createContext)({useAdapter:function(){throw Error(m(404))}});return t.displayName="NuqsAdapterContext",t},(i=g("adapter-context",function(){return new WeakMap})).has(e)||i.set(e,n()),i.get(e));function k(t){var e=(0,f.useContext)(x);if(!("useAdapter"in e))throw Error(m(404));return e.useAdapter(t)}"u">typeof window&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==x&&console.error(m(303)),window.__NuqsAdapterContext=x);var w=function(){return(0,f.useContext)(x).defaultOptions},b=function(){return(0,f.useContext)(x).processUrlSearchParams};function S(t){return{method:"throttle",timeMs:t}}t.s(["a",0,b,"c",0,function(t){if(0===t.size)return"";var e=[],n=!0,i=!1,r=void 0;try{for(var a,o=t.entries()[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=(0,u._)(a.value,2),l=s[0],c=s[1],h=l.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");e.push("".concat(h,"=").concat(c.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/[\x00-\x1F]/g,function(t){return encodeURIComponent(t)})))}}catch(t){i=!0,r=t}finally{try{n||null==o.return||o.return()}finally{if(i)throw r}}return"?"+e.join("&")},"i",0,w,"l",0,m,"n",0,function(t){return function(e){var n=e.children,i=e.defaultOptions,r=e.processUrlSearchParams,u=(0,s._)(e,["children","defaultOptions","processUrlSearchParams"]);return(0,f.createElement)(x.Provider,(0,o._)((0,a._)({},u),{value:{useAdapter:t,defaultOptions:i,processUrlSearchParams:r}}),n)}},"o",0,g,"r",0,k],361770);var T=S(function(){if("u"<typeof window||!window.GestureEvent)return 50;try{var t,e=null==(t=navigator.userAgent)?void 0:t.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch(t){return 320}}());function P(t){return null===t||Array.isArray(t)&&0===t.length}function _(t,e,n){if("string"==typeof n)t.set(e,n);else{t.delete(e);var i=!0,r=!1,a=void 0;try{for(var o,s=n[Symbol.iterator]();!(i=(o=s.next()).done);i=!0){var u=o.value;t.append(e,u)}}catch(t){r=!0,a=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}t.has(e)||t.set(e,"")}return t}function E(){var t=new Map;return{on:function(e,n){var i=this,r=t.get(e)||[];return r.push(n),t.set(e,r),function(){return i.off(e,n)}},off:function(e,n){var i=t.get(e);i&&t.set(e,i.filter(function(t){return t!==n}))},emit:function(e,n){var i;
2null==(i=t.get(e))||i.forEach(function(t){return t(n)})}}}function A(t,e,n){var i=setTimeout(function(){t(),n.removeEventListener("abort",r)},e);function r(){clearTimeout(i),n.removeEventListener("abort",r)}n.addEventListener("abort",r)}function R(){var t=Promise;if(Promise.hasOwnProperty("withResolvers"))return Promise.withResolvers();var e=function(){},n=function(){};return{promise:new t(function(t,i){e=t,n=i}),resolve:e,reject:n}}function M(){return new URLSearchParams(location.search)}var C=function(){function t(){(0,c._)(this,t),(0,r._)(this,"updateMap",new Map),(0,r._)(this,"options",{history:"replace",scroll:!1,shallow:!0}),(0,r._)(this,"timeMs",T.timeMs),(0,r._)(this,"transitions",new Set),(0,r._)(this,"resolvers",null),(0,r._)(this,"controller",null),(0,r._)(this,"lastFlushedAt",0),(0,r._)(this,"resetQueueOnNextPush",!1)}return(0,h._)(t,[{key:"push",value:function(t){var e=t.key,n=t.query,i=t.options,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T.timeMs;this.resetQueueOnNextPush&&(this.reset(),this.resetQueueOnNextPush=!1),d(7,e,n,i),this.updateMap.set(e,n),"push"===i.history&&(this.options.history="push"),i.scroll&&(this.options.scroll=!0),!1===i.shallow&&(this.options.shallow=!1),i.startTransition&&this.transitions.add(i.startTransition),(!Number.isFinite(this.timeMs)||r>this.timeMs)&&(this.timeMs=r)}},{key:"getQueuedQuery",value:function(t){return this.updateMap.get(t)}},{key:"getPendingPromise",value:function(t){var e,n,i=t.getSearchParamsSnapshot;return null!=(e=null==(n=this.resolvers)?void 0:n.promise)?e:Promise.resolve((void 0===i?M:i)())}},{key:"flush",value:function(t,e){var n=this,i=(0,l._)([t,e]),r=i[0],c=i.slice(1),h=r.getSearchParamsSnapshot,v=void 0===h?M:h,f=r.rateLimitFactor,p=void 0===f?1:f,m=(0,s._)(r,["getSearchParamsSnapshot","rateLimitFactor"]),y=(0,u._)(c,1)[0];if(null!=this.controller||(this.controller=new AbortController),!Number.isFinite(this.timeMs))return d(8),Promise.resolve(v());if(this.resolvers)return this.resolvers.promise;this.resolvers=R();var g=function(){n.lastFlushedAt=performance.now();var t,e=(0,u._)(n.applyPendingUpdates((0,o._)((0,a._)({},m),{autoResetQueueOnUpdate:null==(t=m.autoResetQueueOnUpdate)||t,getSearchParamsSnapshot:v}),y),2),i=e[0];null===e[1]?(n.resolvers.resolve(i),n.resetQueueOnNextPush=!0):n.resolvers.reject(i),n.resolvers=null};return A(function(){var t=performance.now()-n.lastFlushedAt,e=n.timeMs,i=p*Math.max(0,e-t);d(9,i,e,p),0===i?g():A(g,i,n.controller.signal)},0,this.controller.signal),this.resolvers.promise}},{key:"abort",value:function(){var t,e;return null==(t=this.controller)||t.abort(),this.controller=new AbortController,null==(e=this.resolvers)||e.resolve(new URLSearchParams),this.resolvers=null,this.reset()}},{key:"reset",value:function(){var t=Array.from(this.updateMap.keys());return d(10,JSON.stringify(Object.fromEntries(this.updateMap))),this.updateMap.clear(),this.transitions.clear(),this.options={history:"replace",scroll:!1,shallow:!0},this.timeMs=T.timeMs,t}},{key:"applyPendingUpdates",value:function(t,e){var n=t.updateUrl,i=(0,t.getSearchParamsSnapshot)();if(d(11,this.updateMap.size,i.toString()),0===this.updateMap.size)return[i,null];var r=Array.from(this.updateMap.entries()),o=(0,a._)({},this.options),s=Array.from(this.transitions);t.autoResetQueueOnUpdate&&this.reset(),d(12,r,o);var l=!0,c=!1,h=void 0;try{for(var v,f=r[Symbol.iterator]();!(l=(v=f.next()).done);l=!0){var p=(0,u._)(v.value,2),y=p[0],g=p[1];null===g?i.delete(y):i=_(i,y,g)}}catch(t){c=!0,h=t}finally{try{l||null==f.return||f.return()}finally{if(c)throw h}}if(e)try{i=e(i)}catch(t){return console.error(m(502),r.map(function(t){return(0,u._)(t,1)[0]}).join(),t),this.resetQueueOnNextPush=!0,[i,t]}try{for(var x=function(){return n(i,o)},k=s.length-1;k>=0;k--)!function(t){var e=s[t];if(e){var n=x;x=function(){return e(n)}}}(k);return x(),[i,null]}catch(t){return console.error(m(429),r.map(function(t){return(0,u._)(t,1)[0]}).join(),t),[i,t]}}}]),t}(),V=g("throttle-queue",function(){return new C}),D=function(){function t(e){(0,c._)(this,t),(0,r._)(this,"callback",void 0),(0,r._)(this,"resolvers",R()),(0,r._)(this,"controller",new AbortController),(0,r._)(this,"queuedValue",void 0),this.callback=e}return(0,h._)(t,[{key:"abort",value:function(){this.controller.abort(),this.queuedValue=void 0}},{key:"push",value:function(t,e){var n=this;return this.queuedValue=t,this.controller.abort(),this.controller=new AbortController,A(function(){var e=n.resolvers;try{d(13,t);var i=n.callback(t);d(14,n.queuedValue),n.queuedValue=void 0,n.resolvers=R(),i.then(function(t){return e.resolve(t)}).catch(function(t){return e.reject(t)})}catch(t){n.queuedValue=void 0,e.reject(t)}},e,this.controller.signal),this.resolvers.promise}}]),t}(),j=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new C;(0,c._)(this,t),(0,r._)(this,"throttleQueue",void 0),(0,r._)(this,"queues",new Map),(0,r._)(this,"queuedQuerySync",E()),this.throttleQueue=e}return(0,h._)(t,[{key:"push",value:function(t,e,n,i){var r,a=this;if(!Number.isFinite(e))return Promise.resolve((null!=(r=n.getSearchParamsSnapsh
2ot)?r:M)());var o=t.key;if(!this.queues.has(o)){d(15,o);var s=new D(function(t){return a.throttleQueue.push(t),a.throttleQueue.flush(n,i).finally(function(){var e;(null==(e=a.queues.get(t.key))?void 0:e.queuedValue)===void 0&&(d(16,t.key),a.queues.delete(t.key)),a.queuedQuerySync.emit(t.key)})});this.queues.set(o,s)}d(17,t);var u=this.queues.get(o).push(t,e);return this.queuedQuerySync.emit(o),u}},{key:"abort",value:function(t){var e,n=this.queues.get(t);return n?(d(18,t,null==(e=n.queuedValue)?void 0:e.query),this.queues.delete(t),n.abort(),this.queuedQuerySync.emit(t),function(t){return t.then(n.resolvers.resolve,n.resolvers.reject),t}):function(t){return t}}},{key:"abortAll",value:function(){var t=!0,e=!1,n=void 0;try{for(var i,r=this.queues.entries()[Symbol.iterator]();!(t=(i=r.next()).done);t=!0){var a,o=(0,u._)(i.value,2),s=o[0],l=o[1];d(18,s,null==(a=l.queuedValue)?void 0:a.query),l.abort(),l.resolvers.resolve(new URLSearchParams),this.queuedQuerySync.emit(s)}}catch(t){e=!0,n=t}finally{try{t||null==r.return||r.return()}finally{if(e)throw n}}this.queues.clear()}},{key:"getQueuedQuery",value:function(t){var e,n,i=null==(n=this.queues.get(t))||null==(e=n.queuedValue)?void 0:e.query;return void 0!==i?i:this.throttleQueue.getQueuedQuery(t)}}]),t}(),L=g("debounce-controller",function(){return new j(V)});function O(t){var e,n,i,r;return e=function(t,e){return L.queuedQuerySync.on(t,e)},n=function(t){return L.getQueuedQuery(t)},i=(0,f.useCallback)(function(){var e=Object.fromEntries(t.map(function(t){return[t,n(t)]}));return[JSON.stringify(e),e]},[t.join(","),n]),null===(r=(0,f.useRef)(null)).current&&(r.current=i()),(0,f.useSyncExternalStore)((0,f.useCallback)(function(n){var i=t.map(function(t){return e(t,n)});return function(){return i.forEach(function(t){return t()})}},[t.join(","),e]),function(){var t=(0,u._)(i(),2),e=t[0],n=t[1];return r.current[0]===e?r.current[1]:(r.current=[e,n],n)},function(){return r.current[1]})}function I(t,e){return Object.hasOwn(t,e)?t[e]:void 0}function B(t,e,n){try{return t(e)}catch(t){return n?v(25,e,t,n):v(24,e,t),null}}function F(t){function e(e){if(void 0===e)return null;var n="";if(Array.isArray(e)){if(void 0===e[0])return null;n=e[0]}return"string"==typeof e&&(n=e),B(t.parse,n)}return(0,o._)((0,a._)({type:"single",eq:function(t,e){return t===e}},t),{parseServerSide:e,withDefault:function(t){return(0,o._)((0,a._)({},this),{defaultValue:t,parseServerSide:function(n){var i;return null!=(i=e(n))?i:t}})},withOptions:function(t){return(0,a._)({},this,t)}})}t.s(["c",0,function(t){return{method:"debounce",timeMs:t}},"i",0,E,"l",0,T,"n",0,O,"o",0,P,"r",0,V,"s",0,_,"t",0,L,"u",0,S],54231);var N=F({parse:function(t){return t},serialize:String}),U=F({parse:function(t){var e=parseInt(t);return e==e?e:null},serialize:function(t){return""+Math.round(t)}});function q(t,e){return t.valueOf()===e.valueOf()}F({parse:function(t){var e=parseInt(t);return e==e?e-1:null},serialize:function(t){return""+Math.round(t+1)}}),F({parse:function(t){var e=parseInt(t,16);return e==e?e:null},serialize:function(t){var e=Math.round(t).toString(16);return e<"0"||!(1&e.length)?e:"0"+e}}),F({parse:function(t){var e=parseFloat(t);return e==e?e:null},serialize:String}),F({parse:function(t){return"true"===t.toLowerCase()},serialize:String}),F({parse:function(t){var e=new Date(parseInt(t));return e.valueOf()==e.valueOf()?e:null},serialize:function(t){return""+t.valueOf()},eq:q}),F({parse:function(t){var e=new Date(t);return e.valueOf()==e.valueOf()?e:null},serialize:function(t){return t.toISOString()},eq:q}),F({parse:function(t){var e=new Date(t.slice(0,10));return e.valueOf()==e.valueOf()?e:null},serialize:function(t){return t.toISOString().slice(0,10)},eq:q});var z=g("sync-emitter",function(){return E()}),W={},H=function(t,e){return"defaultValue"===t?void 0:e};function X(t){var e,n,i,s,l,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=(0,f.useId)(),v=w(),p=b(),m=c.history,y=void 0===m?null!=(e=null==v?void 0:v.history)?e:"replace":m,g=c.scroll,x=void 0===g?null!=(n=null==v?void 0:v.scroll)&&n:g,S=c.shallow,P=void 0===S?null==(i=null==v?void 0:v.shallow)||i:S,_=c.throttleMs,E=void 0===_?T.timeMs:_,A=c.limitUrlUpdates,R=void 0===A?null==v?void 0:v.limitUrlUpdates:A,M=c.clearOnDefault,C=void 0===M?null==(s=null==v?void 0:v.clearOnDefault)||s:M,D=c.startTransition,j=c.urlKe
2ys,B=void 0===j?W:j,F=Object.keys(t).join(","),N=(0,f.useRef)(t),U=N.current,q=JSON.stringify(Object.entries(U),H)===JSON.stringify(Object.entries(t),H)&&Object.entries(t).every(function(t){var e,n,i,r=(0,u._)(t,2),a=r[0],o=r[1];if((null==(e=U[a])?void 0:e.startTransition)!==o.startTransition)return!1;var s=null==(n=U[a])?void 0:n.defaultValue,l=o.defaultValue;return!!Object.is(s,l)||void 0!==s&&void 0!==l&&(null==(i=o.eq)?void 0:i.call(o,s,l))===!0})?U:t;N.current=q;var X=(0,f.useMemo)(function(){return Object.fromEntries(Object.keys(t).map(function(t){var e;return[t,null!=(e=I(B,t))?e:t]}))},[F,JSON.stringify(B)]),Q=k(Object.values(X)),G=Q.searchParams,Z=(0,f.useRef)({}),$=(0,f.useRef)(null),J=(0,f.useRef)(null),tt=O(Object.values(X)),te=(0,u._)((0,f.useState)(function(){return Y(t,X,G,tt).state}),2),tn=te[0],ti=te[1],tr=(0,f.useRef)(tn),ta=JSON.stringify([Object.values(X).map(function(t){return[t,G.getAll(t)]}),tt]),to=function(){var e=Y(t,X,G,tt,Z.current,tr.current),n=e.state,i=e.hasChanged;return i&&(d(1,h,F,n),tr.current=n,ti(n)),i},ts=Object.keys(Z.current).join("&")!==Object.values(X).join("&"),tu=null===J.current||J.current===(null!=(l=Q.pathname)?l:location.pathname),tl=!1;(ts||tu&&$.current!==ta)&&($.current=ta,tl=to(),ts&&(Z.current=Object.fromEntries(Object.entries(X).map(function(e){var n,i,r=(0,u._)(e,2),a=r[0],o=r[1];return[o,(null==(i=t[a])?void 0:i.type)==="multi"?G.getAll(o):null!=(n=G.get(o))?n:null]})))),ts||tl||!tu||tn===tr.current||ti(tr.current),(0,f.useEffect)(function(){var t;J.current=null!=(t=Q.pathname)?t:location.pathname,to()},[ta,Q.pathname]),(0,f.useEffect)(function(){var e=Object.keys(t).reduce(function(e,n){return e[n]=function(e){var i=e.state,s=e.query;ti(function(e){var u,l,c,v=X[n];return Object.is(null!=(u=e[n])?u:null,i)?(d(2,h,F,v,i,null==(c=t[n])?void 0:c.defaultValue,tr.current),e):(tr.current=(0,o._)((0,a._)({},tr.current),(0,r._)({},n,i)),Z.current[v]=s,d(3,h,F,v,i,null==(l=t[n])?void 0:l.defaultValue,tr.current),tr.current)})},e},{}),n=!0,i=!1,s=void 0;try{for(var u,l=Object.keys(t)[Symbol.iterator]();!(n=(u=l.next()).done);n=!0){var c=u.value,v=X[c];d(4,h,v,F),z.on(v,e[c])}}catch(t){i=!0,s=t}finally{try{n||null==l.return||l.return()}finally{if(i)throw s}}return function(){var n=!0,i=!1,r=void 0;try{for(var a,o=Object.keys(t)[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value,u=X[s];d(5,h,u,F),z.off(u,e[s])}}catch(t){i=!0,r=t}finally{try{n||null==o.return||o.return()}finally{if(i)throw r}}}},[F,X]);var tc=(0,f.useCallback)(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.fromEntries(Object.keys(q).map(function(t){return[t,null]})),i="function"==typeof t?null!=(f=t(K(tr.current,q)))?f:n:null!=t?t:n;d(6,h,F,i);var r=void 0,a=0,o=!1,s=[],l=!0,c=!1,v=void 0;try{for(var f,m,g=Object.entries(i)[Symbol.iterator]();!(l=(m=g.next()).done);l=!0){var k=(0,u._)(m.value,2),w=k[0],b=k[1],S=I(q,w),_=X[w];if(S&&void 0!==_&&void 0!==b){(null!=(O=null!=(B=e.clearOnDefault)?B:S.clearOnDefault)?O:C)&&null!==b&&void 0!==S.defaultValue&&(null!=(N=S.eq)?N:function(t,e){return t===e})(b,S.defaultValue)&&(b=null);var A=null===b?null:(null!=(U=S.serialize)?U:String)(b);z.emit(_,{state:b,query:A});var M={key:_,query:A,options:{history:null!=(W=null!=(H=e.history)?H:S.history)?W:y,shallow:null!=(Y=null!=(G=e.shallow)?G:S.shallow)?Y:P,scroll:null!=(Z=null!=($=e.scroll)?$:S.scroll)?Z:x,startTransition:null!=(J=null!=(tt=e.startTransition)?tt:S.startTransition)?J:D}},j=null!=(te=null!=(tn=e.limitUrlUpdates)?tn:S.limitUrlUpdates)?te:R;if((null==j?void 0:j.method)==="debounce"){var O,B,N,U,W,H,Y,G,Z,$,J,tt,te,tn,ti,ta=null!=(ti=j.timeMs)?ti:T.timeMs,to=L.push(M,ta,Q,p);a<ta&&(r=to,a=ta)}else{var ts,tu,tl,tc=null!=(ts=null!=(tu=null!=(tl=null==j?void 0:j.timeMs)?tl:e.throttleMs)?tu:S.throttleMs)?ts:E;s.push(L.abort(_)),V.push(M,tc),o=!0}}}}catch(t){c=!0,v=t}finally{try{l||null==g.return||g.return()}finally{if(c)throw v}}var th=s.reduce(function(t,e){return e(t)},o?V.flush(Q,p):V.getPendingPromise(Q));return null!=r?r:th},[F,y,P,x,E,null==R?void 0:R.method,null==R?void 0:R.timeMs,D,C,q,X,Q.updateUrl,Q.getSearchParamsSnapsh
2ot,Q.rateLimitFactor,p]);return[(0,f.useMemo)(function(){return K(tn,q)},[tn,q]),tc]}function Y(t,e,n,i,r,a){var o=!1,s=Object.entries(t).reduce(function(t,s){var l,c,h,d,v=(0,u._)(s,2),f=v[0],p=v[1],m=e[f],y=I(i,m),g="multi"===p.type?[]:null,x=void 0===y?null!=(c="multi"===p.type?n.getAll(m):n.get(m))?c:g:y,k=a&&I(a,f);return r&&void 0!==k&&((l=null!=(h=I(r,m))?h:g)===x||null!==l&&null!==x&&"string"!=typeof l&&"string"!=typeof x&&l.length===x.length&&l.every(function(t,e){return t===x[e]}))?t[f]=k:(o=!0,t[f]=null!=(d=P(x)?null:B(p.parse,x,m))?d:null,r&&(r[m]=x)),t},{});if(!o){var l=Object.keys(t),c=Object.keys(null!=a?a:{});o=l.length!==c.length||l.some(function(t){return!c.includes(t)})}return{state:s,hasChanged:o}}function K(t,e){return Object.fromEntries(Object.keys(t).map(function(n){var i,r,a;return[n,null!=(i=null!=(r=t[n])?r:null==(a=e[n])?void 0:a.defaultValue)?i:null]}))}t.s(["parseAsInteger",0,U,"parseAsString",0,N,"parseAsStringLiteral",0,function(t){return F({parse:function(e){return t.includes(e)?e:null},serialize:String})},"useQueryState",0,function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.parse,i=e.type,a=e.serialize,o=e.eq,l=e.defaultValue,c=(0,s._)(e,["parse","type","serialize","eq","defaultValue"]),h=(0,u._)(X((0,r._)({},t,{parse:null!=n?n:function(t){return t},type:i,serialize:a,eq:o,defaultValue:l}),c),2),d=h[0][t],v=h[1];return[d,(0,f.useCallback)(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return v(function(n){return(0,r._)({},t,"function"==typeof e?e(n[t]):e)},n)},[t,v])]},"useQueryStates",0,X],321666)},295154,t=>{"use strict";var e=t.i(596234),n=t.i(124412),i=t.i(548776),r=n.default.useDebugValue,a=i.default.useSyncExternalStoreWithSelector,o=function(t){return t};function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,n=arguments.length>2?arguments[2]:void 0,i=a(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return r(i),i}var u=function(t){var n="function"==typeof t?(0,e.createStore)(t):t,i=function(t,e){return s(n,t,e)};return Object.assign(i,n),i};t.s(["create",0,function(t){return t?u(t):u},"useStore",0,s])},596538,t=>{"use strict";var e=t.i(183202),n=t.i(788787),i=t.i(714834);t.s(["shallow",0,function(t,r){if(Object.is(t,r))return!0;if((void 0===t?"undefined":(0,i._)(t))!=="object"||null===t||(void 0===r?"undefined":(0,i._)(r))!=="object"||null===r)return!1;if((0,e._)(t,Map)&&(0,e._)(r,Map)){if(t.size!==r.size)return!1;var a=!0,o=!1,s=void 0;try{for(var u,l=t[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var c=(0,n._)(u.value,2),h=c[0],d=c[1];if(!Object.is(d,r.get(h)))return!1}}catch(t){o=!0,s=t}finally{try{a||null==l.return||l.return()}finally{if(o)throw s}}return!0}if((0,e._)(t,Set)&&(0,e._)(r,Set)){if(t.size!==r.size)return!1;var v=!0,f=!1,p=void 0;try{for(var m,y=t[Symbol.iterator]();!(v=(m=y.next()).done);v=!0){var g=m.value;if(!r.has(g))return!1}}catch(t){f=!0,p=t}finally{try{v||null==y.return||y.return()}finally{if(f)throw p}}return!0}var x=Object.keys(t);if(x.length!==Object.keys(r).length)return!1;var k=!0,w=!1,b=void 0;try{for(var S,T=x[Symbol.iterator]();!(k=(S=T.next()).done);k=!0){var P=S.value;if(!Object.prototype.hasOwnProperty.call(r,P)||!Object.is(t[P],r[P]))return!1}}catch(t){w=!0,b=t}finally{try{k||null==T.return||T.return()}finally{if(w)throw b}}return!0}])},360670,t=>{"use strict";var e=t.i(124412),n=t.i(548776),i=t.i(596234),r=e.default.useDebugValue,a=n.default.useSyncExternalStoreWithSelector,o=function(t){return t};function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,n=arguments.length>2?arguments[2]:void 0,i=a(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return r(i),i}var u=function(t,e){var n=(0,i.createStore)(t),r=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return s(n,t,i)};return Object.assign(r,n),r};t.s(["createWithEqualityFn",0,function(t,e){return t?u(t,e):u},"useStoreWithEqualityFn",0,s])},596234,t=>{"use strict";var e=t.i(714834),n=function(t){var n,i=new Set,r=function(t,r){var a="function"==typeof t?t(n):t;if(!Object.is(a,n)){var o=n;n=(null!=r?r:(void 0===a?"undefined":(0,e._)(a))!=="object"||null===a)?a:Object.assign({}
2,n,a),i.forEach(function(t){return t(n,o)})}},a=function(){return n},o={setState:r,getState:a,getInitialState:function(){return s},subscribe:function(t){return i.add(t),function(){return i.delete(t)}},destroy:function(){i.clear()}},s=n=t(r,a,o);return o};t.s(["createStore",0,function(t){return t?n(t):n}])}]); 3 4//# debugId=aacb0c9c-62c2-3504-0a6d-7949b647d169
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.