@windstream/react-shared-components 0.1.9 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
 
3
- import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import*as i from"react";import o,{forwardRef as r,useRef as a,useState as s,useEffect as l,useCallback as c,useMemo as u,createContext as d,useLayoutEffect as p,useContext as h,useInsertionEffect as m,createElement as g,useId as f,cloneElement as b,Children as v,isValidElement as y,Fragment as x,useReducer as I,Component as C}from"react";import w from"next/image";import A,{flushSync as N,createPortal as k}from"react-dom";import G from"next/link";import{useRouter as P,usePathname as V,useSearchParams as B}from"next/navigation";function T(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=T(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function S(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=T(e))&&(i&&(i+=" "),i+=t);return i}const E=e=>{const t=W(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),R(n,t)||X(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&i[e]?[...o,...i[e]]:o}}},R=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),o=i?R(e.slice(1),i):void 0;if(o)return o;if(0===t.validators.length)return;const r=e.join("-");return t.validators.find(({validator:e})=>e(r))?.classGroupId},M=/^\[(.+)\]$/,X=e=>{if(M.test(e)){const t=M.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},W=e=>{const{theme:t,classGroups:n}=e,i={nextPart:new Map,validators:[]};for(const e in n)L(n[e],i,e,t);return i},L=(e,t,n,i)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:F(t,e)).classGroupId=n)}if("function"==typeof e)return O(e)?void L(e(i),t,n,i):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{L(o,F(t,e),n,i)})})},F=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},O=e=>e.isThemeGetter,D=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;const o=(o,r)=>{n.set(o,r),t++,t>e&&(t=0,i=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=i.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},Z=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=e=>{const t=[];let n,i=0,o=0,r=0;for(let a=0;a<e.length;a++){let s=e[a];if(0===i&&0===o){if(":"===s){t.push(e.slice(r,a)),r=a+1;continue}if("/"===s){n=a;continue}}"["===s?i++:"]"===s?i--:"("===s?o++:")"===s&&o--}const a=0===t.length?e:e.substring(r),s=z(a);return{modifiers:t,hasImportantModifier:s!==a,baseClassName:s,maybePostfixModifierPosition:n&&n>r?n-r:void 0}};if(t){const e=t+":",n=i;i=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=i;i=t=>n({className:t,parseClassName:e})}return i},z=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,H=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let i=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...i.sort(),e),i=[]):i.push(e)}),n.push(...i.sort()),n}},j=/\s+/;function Y(){let e,t,n=0,i="";for(;n<arguments.length;)(e=arguments[n++])&&(t=J(e))&&(i&&(i+=" "),i+=t);return i}const J=e=>{if("string"==typeof e)return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=J(e[i]))&&(n&&(n+=" "),n+=t);return n};function U(e,...t){let n,i,o,r=function(s){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:D(e.cacheSize),parseClassName:Z(e),sortModifiers:H(e),...E(e)}))(l),i=n.cache.get,o=n.cache.set,r=a,a(s)};function a(e){const t=i(e);if(t)return t;const r=((e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:r}=t,a=[],s=e.trim().split(j);let l="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:h}=n(t);if(c){l=t+(l.length>0?" "+l:l);continue}let m=!!h,g=i(m?p.substring(0,h):p);if(!g){if(!m){l=t+(l.length>0?" "+l:l);continue}if(g=i(p),!g){l=t+(l.length>0?" "+l:l);continue}m=!1}const f=r(u).join(":"),b=d?f+"!":f,v=b+g;if(a.includes(v))continue;a.push(v);const y=o(g,m);for(let e=0;e<y.length;++e){const t=y[e];a.push(b+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,r),r}return function(){return r(Y.apply(null,arguments))}}const $=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Q=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_=/^\((?:(\w[\w-]*):)?(.+)\)$/i,K=/^\d+\/\d+$/,q=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ee=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,te=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ne=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ie=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oe=e=>K.test(e),re=e=>!!e&&!Number.isNaN(Number(e)),ae=e=>!!e&&Number.isInteger(Number(e)),se=e=>e.endsWith("%")&&re(e.slice(0,-1)),le=e=>q.test(e),ce=()=>!0,ue=e=>ee.test(e)&&!te.test(e),de=()=>!1,pe=e=>ne.test(e),he=e=>ie.test(e),me=e=>!fe(e)&&!Ce(e),ge=e=>Ve(e,Ee,de),fe=e=>Q.test(e),be=e=>Ve(e,Re,ue),ve=e=>Ve(e,Me,re),ye=e=>Ve(e,Te,de),xe=e=>Ve(e,Se,he),Ie=e=>Ve(e,We,pe),Ce=e=>_.test(e),we=e=>Be(e,Re),Ae=e=>Be(e,Xe),Ne=e=>Be(e,Te),ke=e=>Be(e,Ee),Ge=e=>Be(e,Se),Pe=e=>Be(e,We,!0),Ve=(e,t,n)=>{const i=Q.exec(e);return!!i&&(i[1]?t(i[1]):n(i[2]))},Be=(e,t,n=!1)=>{const i=_.exec(e);return!!i&&(i[1]?t(i[1]):n)},Te=e=>"position"===e||"percentage"===e,Se=e=>"image"===e||"url"===e,Ee=e=>"length"===e||"size"===e||"bg-size"===e,Re=e=>"length"===e,Me=e=>"number"===e,Xe=e=>"family-name"===e,We=e=>"shadow"===e,Le=()=>{const e=$("color"),t=$("font"),n=$("text"),i=$("font-weight"),o=$("tracking"),r=$("leading"),a=$("breakpoint"),s=$("container"),l=$("spacing"),c=$("radius"),u=$("shadow"),d=$("inset-shadow"),p=$("text-shadow"),h=$("drop-shadow"),m=$("blur"),g=$("perspective"),f=$("aspect"),b=$("ease"),v=$("animate"),y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Ce,fe],x=()=>[Ce,fe,l],I=()=>[oe,"full","auto",...x()],C=()=>[ae,"none","subgrid",Ce,fe],w=()=>["auto",{span:["full",ae,Ce,fe]},ae,Ce,fe],A=()=>[ae,"auto",Ce,fe],N=()=>["auto","min","max","fr",Ce,fe],k=()=>["auto",...x()],G=()=>[oe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],P=()=>[e,Ce,fe],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Ne,ye,{position:[Ce,fe]}],B=()=>["auto","cover","contain",ke,ge,{size:[Ce,fe]}],T=()=>[se,we,be],S=()=>["","none","full",c,Ce,fe],E=()=>["",re,we,be],R=()=>[re,se,Ne,ye],M=()=>["","none",m,Ce,fe],X=()=>["none",re,Ce,fe],W=()=>["none",re,Ce,fe],L=()=>[re,Ce,fe],F=()=>[oe,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[le],breakpoint:[le],color:[ce],container:[le],"drop-shadow":[le],ease:["in","out","in-out"],font:[me],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[le],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[le],shadow:[le],spacing:["px",re],text:[le],"text-shadow":[le],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",oe,fe,Ce,f]}],container:["container"],columns:[{columns:[re,fe,Ce,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[ae,"auto",Ce,fe]}],basis:[{basis:[oe,"full","auto",s,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[re,oe,"auto","initial","none",fe]}],grow:[{grow:["",re,Ce,fe]}],shrink:[{shrink:["",re,Ce,fe]}],order:[{order:[ae,"first","last","none",Ce,fe]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:w()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:w()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":N()}],"auto-rows":[{"auto-rows":N()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[s,"screen",...G()]}],"min-w":[{"min-w":[s,"screen","none",...G()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",n,we,be]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Ce,ve]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",se,fe]}],"font-family":[{font:[Ae,fe,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Ce,fe]}],"line-clamp":[{"line-clamp":[re,"none",Ce,ve]}],leading:[{leading:[r,...x()]}],"list-image":[{"list-image":["none",Ce,fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ce,fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[re,"from-font","auto",Ce,be]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[re,"auto",Ce,fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce,fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce,fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:V()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:B()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ae,Ce,fe],radial:["",Ce,fe],conic:[ae,Ce,fe]},Ge,xe]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:T()}],"gradient-via-pos":[{via:T()}],"gradient-to-pos":[{to:T()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:E()}],"border-w-x":[{"border-x":E()}],"border-w-y":[{"border-y":E()}],"border-w-s":[{"border-s":E()}],"border-w-e":[{"border-e":E()}],"border-w-t":[{"border-t":E()}],"border-w-r":[{"border-r":E()}],"border-w-b":[{"border-b":E()}],"border-w-l":[{"border-l":E()}],"divide-x":[{"divide-x":E()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":E()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[re,Ce,fe]}],"outline-w":[{outline:["",re,we,be]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",u,Pe,Ie]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",d,Pe,Ie]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:E()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[re,be]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":E()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",p,Pe,Ie]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[re,Ce,fe]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[re]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[Ce,fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[re]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:V()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:B()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ce,fe]}],filter:[{filter:["","none",Ce,fe]}],blur:[{blur:M()}],brightness:[{brightness:[re,Ce,fe]}],contrast:[{contrast:[re,Ce,fe]}],"drop-shadow":[{"drop-shadow":["","none",h,Pe,Ie]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",re,Ce,fe]}],"hue-rotate":[{"hue-rotate":[re,Ce,fe]}],invert:[{invert:["",re,Ce,fe]}],saturate:[{saturate:[re,Ce,fe]}],sepia:[{sepia:["",re,Ce,fe]}],"backdrop-filter":[{"backdrop-filter":["","none",Ce,fe]}],"backdrop-blur":[{"backdrop-blur":M()}],"backdrop-brightness":[{"backdrop-brightness":[re,Ce,fe]}],"backdrop-contrast":[{"backdrop-contrast":[re,Ce,fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",re,Ce,fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[re,Ce,fe]}],"backdrop-invert":[{"backdrop-invert":["",re,Ce,fe]}],"backdrop-opacity":[{"backdrop-opacity":[re,Ce,fe]}],"backdrop-saturate":[{"backdrop-saturate":[re,Ce,fe]}],"backdrop-sepia":[{"backdrop-sepia":["",re,Ce,fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ce,fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[re,"initial",Ce,fe]}],ease:[{ease:["linear","initial",b,Ce,fe]}],delay:[{delay:[re,Ce,fe]}],animate:[{animate:["none",v,Ce,fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,Ce,fe]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:X()}],"rotate-x":[{"rotate-x":X()}],"rotate-y":[{"rotate-y":X()}],"rotate-z":[{"rotate-z":X()}],scale:[{scale:W()}],"scale-x":[{"scale-x":W()}],"scale-y":[{"scale-y":W()}],"scale-z":[{"scale-z":W()}],"scale-3d":["scale-3d"],skew:[{skew:L()}],"skew-x":[{"skew-x":L()}],"skew-y":[{"skew-y":L()}],transform:[{transform:[Ce,fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ce,fe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ce,fe]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[re,we,be,ve]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Fe=(e,t,n)=>{void 0!==n&&(e[t]=n)},Oe=(e,t)=>{if(t)for(const n in t)Fe(e,n,t[n])},De=(e,t)=>{if(t)for(const n in t)Ze(e,t,n)},Ze=(e,t,n)=>{const i=t[n];void 0!==i&&(e[n]=e[n]?e[n].concat(i):i)},ze=((e,...t)=>"function"==typeof e?U(Le,e,...t):U(()=>((e,{cacheSize:t,prefix:n,experimentalParseClassName:i,extend:o={},override:r={}})=>(Fe(e,"cacheSize",t),Fe(e,"prefix",n),Fe(e,"experimentalParseClassName",i),Oe(e.theme,r.theme),Oe(e.classGroups,r.classGroups),Oe(e.conflictingClassGroups,r.conflictingClassGroups),Oe(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),Fe(e,"orderSensitiveModifiers",r.orderSensitiveModifiers),De(e.theme,o.theme),De(e.classGroups,o.classGroups),De(e.conflictingClassGroups,o.conflictingClassGroups),De(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),Ze(e,o,"orderSensitiveModifiers"),e))(Le(),e),...t))({extend:{classGroups:{"font-variants":["heading1","heading2","heading3","heading4","heading5","heading6","subheading1","subheading2","subheading3","subheading4","subheading5","subheading6","body1","body2","body3","footnote","micro","label1","label2","label3","label4"],"button-sizes":["btn-small","btn-medium","btn-large","btn-x-large"]}}}),He=(...e)=>ze(S(...e)),je=r(({children:t,className:n="",style:i,disabled:o,...r},a)=>e("button",{ref:a,className:He(n),style:i,disabled:o,...r,children:t}));je.displayName="Button";const Ye=t=>{const{open:n,children:i}=t,o=a(null),[r,c]=s(0);return l(()=>{const e=o.current;if(!e)return;const t=()=>{c(n?e.scrollHeight:0)};let i;return t(),n&&(i=new ResizeObserver(()=>t()),i.observe(e)),()=>{i&&i.disconnect()}},[n,i]),e("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{maxHeight:r,opacity:n?1:0},"aria-hidden":!n,children:e("div",{ref:o,children:i})})};Ye.displayName="Collapse";const Je=({name:t,fill:n=0,opticalSize:i="48dp",weight:o="200",emphasis:r=145,size:a=24,color:s="currentColor",style:l={},className:c,onClick:u,dataTestId:d})=>{const p={fontVariationSettings:`'FILL' ${n}, 'wght' ${o}, 'GRAD' ${r}, 'opsz' ${i.substring(0,2)}`,fontSize:`${a}px`,fontFamily:"'Material Symbols Rounded'",color:s||"currentColor",...l};return e("span",{style:p,className:He("material-symbols-rounded inline-block max-w-[52px] overflow-hidden",c),onClick:u,"data-testid":d,children:t})};Je.displayName="MaterialIcon";const Ue=n=>{const{title:i,defaultOpen:o,children:r,containerClassName:a,titleClassName:c,className:u,buttonClassName:d,openOnlyOnDesktop:p,borderRadiusNone:h=!1}=n,[m,g]=s(Boolean(!1));return l(()=>{if(p){const e=window.innerWidth>=1024;g(e)}else g(Boolean(o))},[p,o]),t("div",{className:He(h?"rounded-none border":"rounded-surface-xs border",a),children:[t(je,{type:"button",className:He(h?"rounded-none":"rounded-t-surface-xs","flex w-full items-center justify-between gap-4 px-4 py-3 text-left",d),onClick:()=>g(e=>!e),children:[e("span",{className:He("label5",c),children:i}),e(Je,{name:m?"keyboard_arrow_down":"keyboard_arrow_up",fill:1,size:24})]}),e(Ye,{open:m,children:e("div",{className:He("px-4 py-4",u),children:r})})]})};Ue.displayName="Accordion";const $e=r(({children:e,as:t,className:n="",style:i,...r},a)=>{const s=t||"p";return o.createElement(s,{ref:a,className:n,style:i,...r},e)});$e.displayName="Text";const Qe=({items:n,title:i,background:o="white",enableHeading:r=!1,maxWidth:a=!0})=>e("div",{className:`${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[o]} component-container`,children:t("div",{className:(a?"max-w-120 xl:mx-auto":"")+" mx-5 my-8 lg:mx-20 lg:my-18",children:[e("div",{children:e($e,{as:r?"h1":"h2",className:"heading1 text-left lg:text-center",children:i})}),e("div",{className:"question-answer-section mt-10 lg:mt-16",children:null==n?void 0:n.map((t,n)=>e("div",{children:e(Ue,{title:t.title,containerClassName:"border-0 border-b-[1px]",buttonClassName:"px-0 label1",className:"px-0",borderRadiusNone:!0,openOnlyOnDesktop:!0,children:e($e,{children:t.description})})},`item-${n}`))})]})}),_e=e=>{let t="";return e.base&&(t="x-large"===e.base?"label3 ":"label4 "),e.md&&(t+="x-large"===e.md?"md:label3 ":"md:label4 "),e.lg&&(t+="x-large"===e.lg?"lg:label3 ":"lg:label4 "),t.trim()},Ke=r(({variant:i="primary_brand",isLoading:o=!1,text:r,label:a,disabled:s,fullWidth:l,size:c={base:"medium"},as:u="button",...d},p)=>{const h=(()=>{const e=He((e=>{let t="";return e.base&&(t=`btn-${e.base} `),e.md&&(t+=`${(e=>{switch(e){case"small":return"md:btn-small";case"medium":return"md:btn-medium";case"large":return"md:btn-large";case"x-large":return"md:btn-x-large"}})(e.md)} `),e.lg&&(t+=`lg:btn-${e.lg} `),t.trim()})(c),"rounded-button pl-15 pr-15 inline-flex gap-2 items-center justify-center outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer transition-colors duration-200 align-top",l&&"w-full"),t=He((s||o)&&"cursor-not-allowed",o&&"pl-7",s&&"bg-bg-fill-brand-disabled");return He(e,{primary_brand:"bg-bg-fill-brand text-text-brand-on-bg-fill enabled:hover:bg-bg-fill-brand-hover focus:ring-bg-fill-brand",primary_inverse:"bg-bg-surface-inverse text-text-inverse enabled:hover:bg-bg-fill-inverse-hover focus:ring-bg-surface-inverse",secondary:"border-2 border-border-secondary-on-bg-fill bg-bg text-text focus:ring-bg-surface-inverse"}[i]||"",t)})();let m=`button--${i}`;o&&(m+=" button--loading"),s&&(m+=" button--disabled");const g=`${m} ${h}`,f=t(n,{children:[o?e(Je,{name:"progress_activity",className:"animate-spin"}):null,a?t("span",{className:"flex flex-col",children:[e("span",{className:He(_e(c)),children:a}),r]}):r]});return"a"===u?e("a",{ref:p,className:He(g),...d,children:f}):e("button",{ref:p,className:He(g),disabled:s||o,...d,children:f})});Ke.displayName="BrandButton";const qe=r(({children:t,href:n,className:i="",onClick:o,variant:r="unstyled",style:a,external:s=!1,disabled:l=!1,...c},u)=>{const d=(()=>{if("unstyled"===r)return"";const e={default:"text-text underline"},t=[l?"opacity-60 cursor-not-allowed pointer-events-none":"cursor-pointer"].filter(Boolean).join(" ");return["transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",e[r]||e.default,t].filter(Boolean).join(" ")})(),p={...c,ref:u,className:He(d,`link--${r}`,l&&"link--disabled",i),style:a,href:l?void 0:n,onClick:e=>{l?e.preventDefault():null==o||o(e)},...s&&!l&&{target:"_blank",rel:"noopener noreferrer"},...l&&{"aria-disabled":!0,tabIndex:-1}};return e("a",{...p,children:t})});qe.displayName="Link";const et=n=>{const{showButtonAs:i="solid",buttonVariant:o="primary_brand",buttonLabel:r,buttonPrefix:a,href:s,target:l="_blank",anchorId:c,linkClassName:u,linkVariant:d,fullWidth:p,preDefinedFunctionExecution:h,renderCheckPlans:m,buttonClassName:g,clickToOpen:f,tabmodalNameToOpen:b,onModalButtonClick:v,onClick:y,iconName:x,...I}=n;if("check availability"===h){return null==m?void 0:m({ctaText:r,buttonVariant:o,showButtonAs:i,cta:{...n}})}function C(){"modal"===f&&(null==v||v(b))}function w(e){C(),null==y||y(e)}function A(e){C(),null==y||y(e)}let N=e(je,{onClick:A,className:g,...I});switch(i){case"solid":N=e(Ke,s?{as:"a",href:s,id:c,variant:o,text:r,label:a,fullWidth:p,onClick:w}:{id:c,variant:o,text:r,label:a,fullWidth:p,onClick:A});break;case"text":N=t(qe,{href:s,target:l,variant:d||"default",className:`text-text-brand ${u||""}`,onClick:w,children:[r," ",x&&e(Je,{name:x,size:24})]})}return N},tt={blue:"bg-fill-brand",green:"bg-fill-brand-accent",navy:"bg-fill-inverse",purple:"bg-fill-brand-tertiary",white:"bg-white",yellow:"bg-[#F5FF1E]"},nt=r(({className:t,...n},i)=>{const o="string"==typeof n.src?n.src:"",r=o.toLowerCase().split("?")[0]||"",a=o.includes("images.ctfassets.net")&&r.endsWith(".svg");return e(w,{ref:i,className:He(t),...n,unoptimized:a})});nt.displayName="NextImage";const it=({card:n,lgWidth:i,mdWidth:o})=>{var r,a,s;const l=(null===(r=n.imageAlignment)||void 0===r?void 0:r.toLowerCase())||"left",c="left"===l?"lg:items-start":"right"===l?"lg:items-end":"lg:items-center";return e("div",{className:`callout-card ${o} ${i} w-full ${null!==(s=tt[null!==(a=n.backgroundColor)&&void 0!==a?a:""])&&void 0!==s?s:""}`,children:t("div",{className:`card-template flex h-full flex-col items-center gap-8 p-8 text-center ${c}`,children:[e("div",{className:"card-header",children:(t=>{var n,i,o;if(!t.image)return null;const r=null===(n=t.imageView)||void 0===n?void 0:n.toLowerCase();return e(nt,"full"===r?{width:400,height:280,src:t.image,alt:null!==(i=t.title)&&void 0!==i?i:"card-icon",className:"rounded-3xl"}:{width:88,height:88,src:t.image,alt:null!==(o=t.title)&&void 0!==o?o:"card-icon"})})(n)}),t("div",{className:"card-body flex flex-col gap-3 text-start",children:[n.title&&e($e,{as:"h5",className:"heading5 font-black",children:n.title}),n.body&&e($e,{as:"div",className:"body1",children:n.body})]}),n.cta&&e("div",{className:"card-footer",children:e(et,{linkVariant:"unstyled",linkClassName:"label1 flex items-center text-text gap-2",...n.cta,iconName:"expand_circle_right"})})]})})},ot=({title:n,items:i,enableHeading:o=!1,subtitle:r,color:a="dark",maxWidth:s=!0,maxCardsPerRow:l})=>{const c={1:" lg:w-full",2:" lg:w-[calc(50%-0.75rem)]",3:" lg:w-[calc(33.3333%-1rem)]",4:" lg:w-[calc(25%-1.125rem)]"}[l||4]||" lg:w-[calc(25%-1.125rem)]",u=1===i.length?" md:w-full":" md:w-[calc(50%-1rem)]";return e("div",{className:"component-container",children:e("div",{className:`mx-5 mb-5 mt-12 ${s?"max-w-120 xl:mx-auto":""} ${"dark"==a?"text-text":"text-white"}`,children:t("div",{className:"callout-container flex flex-col gap-8",children:[t("div",{className:"title-holder",children:[n&&e($e,{as:o?"h1":"h2",className:"heading2 md:heading1 md:text-center",children:n}),r&&e($e,{as:o?"h2":"h3",className:"subheading3 mt-3 md:subheading1 md:text-center",children:r})]}),e("div",{className:"card-holder flex flex-wrap items-stretch justify-center gap-8 self-stretch lg:gap-6",children:i.map((t,n)=>e(it,{card:t,lgWidth:c,mdWidth:u},n))})]})})})},rt=({fields:t})=>e("div",{children:e($e,{children:"Cards"})}),at={green:"#209A61",yellow:"#F5FF36",blue:"#0393BA"},st=r(({children:t,className:n="",variant:i="unstyled",style:o,...r},a)=>{const s=He("unstyled"===i?"":"mb-1 leading-6","list-item",`list-item--${i}`,n);return e("li",{ref:a,className:s,style:o,...r,children:t})});st.displayName="ListItem";const lt=r(({type:t="ul",items:n,className:i="",renderItem:o,children:r,variant:a="unstyled",style:s,...l},c)=>{const u=(()=>{if("unstyled"===a)return"";return`m-0 p-0 ${"ol"===t?"pl-6 list-decimal":"pl-5 list-disc"}`})(),d=He(u,`list--${t}`,`list--${a}`,i),p=r||(n&&0!==n.length?n.map((t,n)=>o?o(t,n):e(st,{className:t.className,variant:a,children:t.content},t.id||n)):null),h={className:d,style:s,...l,children:p};return e("ol"===t?"ol":"ul",{...h,ref:c})});lt.displayName="List";const ct=n=>{const{items:i,listIconName:o="check",listItemClassName:r,iconSize:a=20,iconPosition:s="center",iconColor:l="green",iconClassName:c}=n,u="disc"!==o;return(null==i?void 0:i.length)?e(lt,{className:"mt-2 space-y-1",variant:u?"unstyled":"default",children:i.map((n,i)=>t(st,{variant:u?"unstyled":"default",className:He(`${u?"flex":""} ${"top"===s?"items-start":"items-center"} gap-2 text-text-secondary`,r),children:[u&&e("div",{children:e(Je,{name:o,size:a,color:at[l],weight:"600",className:He("top"===s?"mt-1":"",c)})}),e($e,{as:"div",children:n})]},i))}):null};ct.displayName="Checklist";const ut=r(({as:t,className:n="",...i},o)=>{const r=He(n);if(t){return e(t,{ref:o,className:r,...i})}return e("img",{ref:o,className:r,...i})});ut.displayName="Image";const dt=({onSelect:i,speed:o,isSelected:r=!1,renderCheckPlans:a,cta:l,techType:c,isMax:u})=>{const[d,p]=s(!1),h=`btn-medium rounded-button pl-15 pr-15 inline-flex gap-2 items-center justify-center outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer transition-colors duration-200 align-top ${r?" bg-bg-surface text-text focus:ring-bg-fill-surface-inverse":" bg-bg-fill-brand text-text-brand-on-bg-fill enabled:hover:bg-bg-fill-brand-hover focus:ring-bg-fill-brand"} `,m=null==a?void 0:a({speedCardConfig:{isModalOpen:d,setModalOpen:()=>{p(!1)},speed:o,techType:c,isMax:u},cta:l});return t(n,{children:[t(je,{onClick:()=>{p(!0),i()},className:He(h,"w-full justify-between pl-5 pr-5"),"data-track-element-name":"speed_plan_select_button","data-track-click-text":`Select plan speed ${o}`,"data-track-element-clicked":"speed_plan_card",children:[e("span",{children:"Select plan"}),e("span",{className:"inline-flex h-6 w-6 items-center justify-center rounded-full "+(r?"bg-bg-fill-surface-inverse text-text-inverse":"bg-bg text-text"),children:e(Je,{name:"chevron_right",fill:1,size:24})})]}),m]})},pt=({planName:i,planSubtext:o,speed:r,price:a,description:l,bestValue:c=!1,bestValueText:u="best value",giftBadge:d,innerBadge:p,theme:h="light",featuresTitle:m="Business Ready Internet features",features:g=[],isExpanded:f,onToggleExpand:b,onCtaClick:v,renderCheckPlans:y,cta:x,techType:I,ismaxSpeed:C})=>{const[w,A]=s(!1),N=void 0!==f?f:w,k="dark"===h;return t("article",{className:He("relative flex h-full w-full max-w-[392px] flex-col",!c&&"pt-[28px]"),children:[c&&e("div",{className:"rounded-t-[20px] bg-bg-fill-brand-accent px-4 py-1 text-center text-sm font-bold text-text",children:u}),t("div",{className:He("flex flex-grow flex-col gap-6 rounded-[20px] px-5 shadow-cardDrop",k?"bg-bg-fill-inverse text-white":"bg-white text-text",c?"rounded-t-none":""),children:[t("header",{className:"overflow-none flex items-start justify-between gap-4 pt-7",children:[t("div",{className:"flex flex-col",children:[e($e,{as:"h3",className:He("subheading2 whitespace-nowrap font-black",k?"text-bg-fill-brand-accent":"text-text-brand"),children:i}),e($e,{as:"p",className:`text-label3 font-black ${k?"text-bg-fill-brand-accent":"text-text-brand"} md:whitespace-nowrap`,children:o})]}),t("div",{className:"flex items-start",children:[e("span",{className:"text-xl font-normal",children:"$"}),e("span",{className:"text-subheading6 font-medium leading-none",children:a.split(".")[0]}),t("span",{className:"text-sm font-black",children:[a.split(".")[1],"/mo"]})]})]}),e("section",{children:e($e,{className:He("text-base",k?"text-white":"text-text"),children:l})}),e("div",{className:He("flex-col items-center rounded-xl p-2",k?"bg-bg-surface-inverse":"bg-gray-200"),children:d&&(null==d?void 0:d.map(n=>t("div",{className:"flex items-center gap-2 p-1",children:[e(ut,{src:n.icon,alt:n.title,width:24,height:24}),e($e,{as:"div",className:"text-sm font-bold",children:n.title})]},n.title)))}),e(dt,{onSelect:v,speed:r,isSelected:k,renderCheckPlans:y,cta:x,techType:I,isMax:C}),g.length>0&&t("section",{className:"flex flex-col gap-6",children:[t(je,{onClick:()=>{b?b():A(!w)},className:"group flex w-full items-center justify-between text-left",children:[e($e,{as:"h4",className:"text-base font-bold",children:m}),e(Je,{name:"keyboard_arrow_up",fill:1,size:24,className:He("transition-transform duration-300",N&&"rotate-180")})]}),t("div",{className:He("overflow-hidden transition-all duration-300 ease-in-out",N?"pb-7 opacity-100":"max-h-0 opacity-0"),children:[e("div",{className:"flex flex-col gap-3",children:e(ct,{items:g,iconColor:k?"yellow":"green",listItemClassName:""+(k?"text-white":"text-text")})}),(null==p?void 0:p.badgeIcon)?t("div",{className:"flex items-center gap-2 text-center",children:[e(ut,{src:p.badgeIcon,alt:"Inner Badge",width:12,height:12}),e("span",{className:"text-sm",children:p.badgeText.includes("|")?t(n,{children:[e("span",{className:"font-bold",children:p.badgeText.split("|")[0]}),e("span",{className:"font-normal",children:p.badgeText.split("|")[1]})]}):e($e,{className:"font-bold",children:p.badgeText})})]}):null]})]})]})]})},ht=({title:n,quote:i,rating:o,author:r,role:a,avatarUrl:s,isActive:l=!1,className:c})=>t("figure",{className:S("flex h-full w-full flex-col rounded-3xl p-6 font-sans transition-all duration-300 md:p-13",l?"bg-white shadow-lg":"bg-gray-50 opacity-60",c),children:[e("header",{children:e($e,{as:"h3",className:"mb-4 text-xl font-black lowercase text-text",children:n})}),e("blockquote",{className:"mb-5 flex-grow text-xl leading-relaxed text-text",children:i}),o?e("div",{className:"mb-5 flex gap-1",children:[...Array(5)].map((t,n)=>e(Je,{size:24,name:"star",fill:1,className:S("h-5 w-5",n<o?"text-text":"text-gray-300"),"aria-hidden":"true"},n))}):null,r&&t("figcaption",{className:"flex items-center gap-3",children:[e("div",{className:"relative h-10 w-10 shrink-0 overflow-hidden rounded-full bg-gray-300",children:s?e(w,{src:s,alt:r,fill:!0,className:"object-cover",sizes:"40px"}):e("div",{className:"flex h-full w-full items-center justify-center bg-gray-500 text-xs font-bold text-white",children:r.charAt(0)})}),t("div",{className:"flex flex-col",children:[e("cite",{className:"text-sm font-bold not-italic text-text",children:r}),e($e,{as:"p",className:"text-xs text-text",children:a})]})]})]});function mt({fields:i,renderCheckPlans:o}){var r,u,d,p;const h=(null===(d=null===(u=null===(r=null==i?void 0:i.items)||void 0===r?void 0:r.items)||void 0===u?void 0:u[0])||void 0===d?void 0:d.benefitsExpanded)||!1,[m,g]=s(h),[f,b]=s({}),[v,y]=s(0),x=(null===(p=null==i?void 0:i.items)||void 0===p?void 0:p.items)||[],I=x.length>2,C=a([]),w=c(()=>{I&&y(e=>(e+3)%x.length)},[I,x.length]),A=c(()=>{I&&y(e=>(e-3+x.length)%x.length)},[I,x.length]);if(l(()=>{if(!I)return;const e=()=>{const e=C.current.filter(Boolean);if(0===e.length)return;e.forEach(e=>{e.style.height="auto"});const t=Math.max(...e.map(e=>e.offsetHeight));e.forEach(e=>{e.style.height=`${t}px`})};e();const t=setTimeout(e,100);return()=>clearTimeout(t)},[I,m,x.length]),!x.length&&!(null==i?void 0:i.title))return null;const N=(t,n,i=!1)=>{var r,a,s,l,c,u,d,p;const h=null===(r=null==t?void 0:t.speed)||void 0===r?void 0:r.split("|"),v=(null==h?void 0:h[0])||"",y=(null==h?void 0:h[1])||"",x=(null===(s=null===(a=null==t?void 0:t.priceSuffix)||void 0===a?void 0:a.split("/"))||void 0===s?void 0:s[0])||"00",I=`${(null==t?void 0:t.price)||"0"}.${x}`,w=(null===(l=null==t?void 0:t.benefits)||void 0===l?void 0:l.items)||[],A=(null==t?void 0:t.highlighted)||!1,N=(null===(u=null===(c=null==t?void 0:t.giftRewards)||void 0===c?void 0:c.list)||void 0===u?void 0:u.items)||[],k={badgeText:t.innerBadge||"",badgeIcon:(null===(d=t.innerBadgeIcon)||void 0===d?void 0:d.url)||""},G=i?f[n]||!1:m;return e("div",{ref:i?void 0:e=>{e&&!C.current.includes(e)&&(C.current[n]=e)},className:He(i?"mx-auto w-full max-w-[392px]":"w-[392px] flex-shrink-0"),children:e(pt,{planName:v,planSubtext:y,speed:(null==t?void 0:t.speed)||"",techType:(null==t?void 0:t.techType)||"",ismaxSpeed:(null==t?void 0:t.ismaxSpeed)||"",price:I,description:(null==t?void 0:t.productCardDescription)||"",giftBadge:N,innerBadge:k,theme:(null==t?void 0:t.highlighted)?"dark":"light",bestValue:A,bestValueText:(null==t?void 0:t.topBadgeText)||"best value",featuresTitle:null==t?void 0:t.benefitsTitle,features:w,isExpanded:G,onToggleExpand:()=>{i?b(e=>({...e,[n]:!e[n]})):g(!m)},ctaText:(null===(p=null==t?void 0:t.cta)||void 0===p?void 0:p.buttonLabel)||"Select plan",onCtaClick:()=>{},renderCheckPlans:o,cta:t.cta,hostType:"smb"})},n)},k=[...x,...x,...x,...x,...x],G=2*x.length;return I?t(n,{children:[e("div",{className:"flex flex-col gap-6 md:hidden",children:x.map((e,t)=>N(e,t,!0))}),t("div",{className:"relative hidden w-full md:block",children:[t("div",{className:"pointer-events-none absolute -left-16 -right-16 top-[50%] z-30 flex -translate-y-1/2 justify-between px-4 md:px-10",children:[e(je,{onClick:w,className:"pointer-events-auto flex h-12 w-12 items-center justify-center rounded-full border border-gray-100 bg-white p-2 text-text shadow-cardDrop transition-all hover:bg-gray-50","aria-label":"Previous",children:e(Je,{name:"arrow_back",size:24})}),e(je,{onClick:A,className:"pointer-events-auto flex h-12 w-12 items-center justify-center rounded-full border border-gray-100 bg-white p-2 text-text shadow-cardDrop transition-all hover:bg-gray-50","aria-label":"Next",children:e(Je,{name:"arrow_forward",size:24})})]}),e("div",{className:"mx-auto max-w-[1280px] overflow-hidden",children:e("div",{className:"flex items-stretch gap-4 pb-4 transition-transform duration-500 ease-in-out",style:{transform:`translateX(calc(-${G+v} * (392px + 12px)))`},children:k.map((e,t)=>N(e,t,!1))})})]})]}):e("div",{className:"flex w-full max-w-[1280px] flex-wrap justify-center gap-8 px-4",children:x.map((e,t)=>N(e,t))})}const gt=({fields:n})=>{var i;const o=(null===(i=null==n?void 0:n.items)||void 0===i?void 0:i.items)||[],[r,u]=s(0),d=a(null),p=c(()=>{0!==o.length&&u(e=>(e+1)%o.length)},[o.length]),h=c(()=>{0!==o.length&&u(e=>0===e?o.length-1:e-1)},[o.length]);return l(()=>{if(0!==o.length)return d.current=setInterval(()=>{p()},8e3),()=>{d.current&&clearInterval(d.current)}},[p,o.length]),o&&0!==o.length?t("div",{className:"relative mx-auto max-w-[1280px] overflow-hidden md:px-24",children:[e(je,{onClick:h,className:"group absolute left-4 top-1/2 z-20 hidden h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full bg-white p-2 text-text shadow-md transition-colors hover:bg-gray-100 md:flex","aria-label":"Previous",children:e(Je,{name:"arrow_back",size:24})}),e("div",{className:"grid grid-cols-1 justify-items-center",children:o.map((t,n)=>{let i=n-r;const a=o.length;i>a/2&&(i-=a),i<-a/2&&(i+=a);const s=0===i;return e("div",{className:He("col-start-1 row-start-1 w-full md:max-w-[815px]",s?"opacity-100":"opacity-0","md:opacity-100"),style:{transform:`translateX(${s?"0%":105*i+"%"})`,zIndex:s?10:5,visibility:Math.abs(i)>1?"hidden":"visible",transition:"all 0.5s ease-in-out"},children:e(ht,{...t,isActive:s,className:"h-full"})},n)})}),e(je,{onClick:p,className:"group absolute right-4 top-1/2 z-20 hidden h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full bg-white p-2 text-text shadow-md transition-colors hover:bg-gray-100 md:flex","aria-label":"Next",children:e(Je,{name:"arrow_forward",size:24})}),e("div",{className:"mt-8 hidden justify-center gap-2 md:flex",children:o.map((t,n)=>e("button",{onClick:()=>u(n),className:He("h-2 w-2 rounded-full transition-all duration-300",r===n?"w-6 bg-white":"bg-white/40 hover:bg-white/60"),"aria-label":`Go to slide ${n+1}`},n))})]}):null},ft=({tabs:t,activeTab:n,onChange:i,className:o})=>e("div",{className:He("mx-auto my-6 flex w-fit rounded-2xl bg-white p-1",o),children:t.map(t=>e("button",{onClick:()=>i(t),className:He("min-w-[160px] whitespace-nowrap rounded-2xl bg-[#EEEEEE] px-4 py-2.5 text-label1 font-black transition-all duration-300",n===t?"bg-bg-fill-brand text-white shadow-md":"text-text-info hover:bg-[#E5E5E7]"),children:t},t))}),bt=({fields:n,hasTestimonialCards:i,hasProductCards:o,disclaimerText:r,backgroundColor:a,activeTab:s,setActiveTab:l,tabs:c,onModalButtonClick:u,renderCheckPlans:d,showSwitch:p=!1})=>e("div",{className:`${a} mx-auto overflow-hidden px-5 py-9 md:py-20`,children:t("div",{className:"relative mx-auto flex max-w-[1280px] flex-col gap-12 overflow-visible",children:[t("div",{children:[e($e,{as:"h2",className:"text-center text-4xl font-bold text-text md:text-5xl",children:null==n?void 0:n.title}),(null==n?void 0:n.subTitle)&&e($e,{as:"h3",className:"body1 px-4 pt-4 text-center",children:null==n?void 0:n.subTitle})]}),p&&o&&c.length>1&&e(ft,{tabs:c,activeTab:s,onChange:l,className:"mb-8"}),i&&e(gt,{fields:n}),o&&e(mt,{onModalButtonClick:u,renderCheckPlans:d,fields:n}),e($e,{as:"div",className:"body1 mt-8 px-4 text-center text-neutral-600",children:r})]})}),vt=({title:n,subtitle:i,description:o,disclaimer:r,icon:a,cta:s,background:l="navy",color:c="light",enableHeading:u,maxWidth:d=!0})=>e("div",{className:"component-container",children:t("div",{className:"mx-5 my-8 lg:mx-20 lg:my-12 lg:rounded-[40px] xl:mx-auto "+(d?"max-w-120":""),children:[t("div",{className:`flex flex-col rounded-[28px] px-5 py-7 lg:flex-row lg:rounded-[40px] lg:px-16 lg:py-9 ${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[l]} ${"dark"==c?"text-text":"text-white"} `,children:[a&&e("div",{className:"floating-banner-icon mb-5 flex justify-center lg:mb-0 lg:items-center",children:e("div",{className:"h-[80px] w-[80px] overflow-hidden",children:e(nt,{width:80,height:80,alt:"icon",src:a})})}),t("div",{className:"flex w-full flex-col justify-center lg:mx-5 lg:w-4/5",children:[n&&e($e,{as:u?"h1":"h2",className:"heading2 mb-3 text-center lg:w-[95%] lg:text-left",children:n}),i&&e($e,{as:"h3",className:"heading3 mb-3 text-center lg:text-left",children:i}),o&&e($e,{as:"div",className:"body1 text-center lg:w-[95%] lg:text-left",children:o})]}),s&&e("div",{className:"mt-5 flex justify-center lg:mt-0 lg:w-[500px] lg:items-center",children:e(et,{...s})})]}),r&&e("div",{children:e($e,{as:"div",className:"body3 mt-3 text-center",children:r})})]})}),yt=({body:n,links:i,bottomLinks:r,copyrights:a,terms:s,maxWidth:l=!0,onClick:c})=>{function u(e){null==c||c(e)}return e("div",{className:"component-container bg-bg-inverse text-white",children:t("div",{className:` ${l?"mx-auto max-w-120":""} px-5 py-8`,children:[e("aside",{className:"break-words","aria-label":"Promotions and disclaimers",children:n}),e("div",{className:"my-8 h-[1px] border-t-0 bg-white opacity-100 lg:my-16 dark:opacity-50"}),e("div",{className:"grid-1 grid gap-8 py-8 md:grid-cols-2 lg:grid-cols-4",children:null==i?void 0:i.map((n,i)=>{var r,a;return t(o.Fragment,{children:[e("div",{children:t("nav",{"aria-labelledby":`footer-${null==n?void 0:n.title}`,className:"site-links-group",children:[e($e,{as:"div",className:"label3",children:null==n?void 0:n.title}),e("ul",{className:"flex flex-col",children:null===(a=null===(r=null==n?void 0:n.items)||void 0===r?void 0:r.items)||void 0===a?void 0:a.map((t,n)=>e("li",{className:"pt-3",children:e(et,{...t,linkVariant:"unstyled",linkClassName:"text-white body3",onClick:u})},`site-links-${n}`))})]},`link-group-${i}`)},`footer-link-group-${i}`),e("div",{className:"block h-[1px] border-t-0 bg-white opacity-100 md:hidden dark:opacity-50"})]},`footer-link-group-${i}`)})}),t("div",{className:"pt-8",children:[e("p",{className:"copy-rights",children:a}),t("p",{className:"terms-text footnote text-white",children:["© ",(new Date).getFullYear()," ",s]}),e("nav",{"aria-label":"Footer legal",children:e("ul",{className:"bottom-links list-none",children:null==r?void 0:r.map((t,n)=>e("li",{className:"relative float-left pl-[8px] before:absolute before:left-[3px] before:top-1/2 before:-translate-y-1/2 before:text-[14px] before:content-['•'] first-of-type:pl-0 first-of-type:before:content-['']",children:e(et,{...t,linkClassName:"footnote text-white",linkVariant:"unstyled",onClick:u})},`links-${n}`))})})]})]})})},xt=({isHovered:t,containerClassName:n})=>e("button",{tabIndex:-1,className:`group flex h-20 w-20 items-center justify-center rounded-full bg-white shadow-xl transition-all duration-300 hover:scale-110 active:scale-95 ${n||""}`,"aria-label":"Play button",children:e(Je,{name:"play_arrow",size:72,fill:1,className:"transition-colors duration-300 "+(t?"text-text-brand":"text-slate-500 group-hover:text-text-brand")})}),It=t=>{const{link:n,containerClassName:i,autoplay:o=!1,debug:r=!1}=t,{href:a,embedId:s}=u(()=>{if(!n)return{href:"",embedId:""};const e=n.toString(),t=(e=>{const t=e.split(/[?#]/)[0].replace(/\/+$/,""),n=t.match(/vimeo\.com\/(?:.*\/)?(\d{6,})/)||t.match(/player\.vimeo\.com\/video\/(\d{6,})/),i=t.split("/"),o=i[i.length-1];return(null==n?void 0:n[1])?n[1]===o?n[1]:`${n[1]}/${o}`:""})(e);return{href:e,embedId:t}},[n]);if(r&&console.log("[VimeoEmbed] href:",a,"id:",s),!s)return null;const l=function(e){try{const t=new URL(e),n=t.pathname.split("/").filter(Boolean);if("video"===n[0]&&n.length>=2){const e=n[1],i=n[2],o=`https://player.vimeo.com/video/${e}`;return i&&/^[a-f0-9]+$/i.test(i)&&t.searchParams.set("h",i),`${o}?${t.searchParams.toString()}`}return e}catch(t){return e}}(`https://player.vimeo.com/video/${s}?${new URLSearchParams({autoplay:o?"1":"0",muted:"0",playsinline:"1",dnt:"1",title:"0",byline:"0",portrait:"0",autopause:"1"}).toString()}`);return e("div",{className:He("relative h-0 w-full overflow-hidden pb-[56.25%]",i),children:e("iframe",{className:"absolute left-0 top-0 h-full w-full",src:l,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin",title:"Embedded vimeo"})})};const Ct=t=>{const{link:n,containerClassName:i,autoplay:o=!1}=t,r=u(()=>{if(!n)return"";const e=n.toString().match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return e&&11===e[7].length?e[7]:""},[n]),a=o?"?autoplay=1":"";return e("div",{className:He("relative h-0 w-full overflow-hidden pb-[56.25%]",i),children:e("iframe",{className:"absolute left-0 top-0 h-full w-full",src:`https://www.youtube.com/embed/${r}${a}`,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Embedded youtube"})})},wt=({brow:n,enableHeading:i,title:o,subTitle:r,ctaDisclaimer:a,disclaimer:l,description:c,image:u,imageLinks:d,mediaPosition:p=!0,checklist:h,secondaryCta:m,cta:g,videoLink:f,maxWidth:b=!0,color:v="light",imageWidth:y=660,imageHeight:x=660,onModalButtonClick:I,renderCheckPlans:C})=>{var w,A;const[N,k]=s(""),[G,P]=s(!1),V=null!==(w=null==f?void 0:f.link)&&void 0!==w?w:"",B=null==f?void 0:f.image,T=null!==(A=null==f?void 0:f.videoPopup)&&void 0!==A&&A,S=Boolean(N&&N===V),E=f&&B?V.includes("vimeo")?e(It,{link:V,autoplay:S}):e(Ct,{link:V,autoplay:S}):null;return t("div",{className:"component-container",children:[e("div",{className:`image-promo-bar-content ${b?"max-w-120 xl:mx-auto":""} mx-5 mb-8 mt-16`,children:t("div",{className:"flex shrink-0 flex-col items-center gap-8 xl:gap-[126px] "+(p?"xl:flex-row-reverse":"xl:flex-row"),children:[t("div",{className:"flex flex-[1_0_0] flex-col items-start justify-center gap-8 xl:gap-10 "+("dark"==v?"text-text":"text-white"),children:[t("div",{className:"heading holder",children:[n&&e($e,{as:"div",className:"subheading4 mb-4 text-text-brand xl:subheading2 xl:mb-3",children:n}),o&&e($e,{as:i?"h1":"h2",className:"heading2 xl:heading1",children:o}),r&&e($e,{as:i?"h2":"h3",className:"subheading1 mt-3",children:r})]}),c&&e($e,{as:"div",className:"body1",children:c}),h.length>0&&e(ct,{items:h,iconPosition:"top",iconSize:24}),d.length>0&&e("div",{className:"flex gap-4",children:null==d?void 0:d.map((t,n)=>e("div",{className:"image-link w-[147px]",children:e(qe,{variant:"unstyled",href:t.url,target:"_blank",rel:"noopener noreferrer",children:e(ut,{src:t.image,alt:"icon-link"})})},n))}),(g||m)&&t("div",{className:"flex w-full flex-col gap-8 xl:flex-row xl:gap-3",children:[g&&e("div",{className:"primary-cta w-full xl:w-auto",children:e(et,{...g,fullWidth:!0,renderCheckPlans:C,onModalButtonClick:I})}),m&&e("div",{className:"secondary-cta",children:e(et,{...m,fullWidth:!0,renderCheckPlans:C,onModalButtonClick:I})})]}),a&&e("div",{children:a}),l&&e("div",{children:l})]}),t("aside",{className:"flex w-full shrink-0 items-center justify-center xl:w-auto",children:[u&&e("div",{className:"relative flex aspect-[16/9] w-full justify-center xl:aspect-square xl:max-h-[486px] xl:w-[486px]",children:e(nt,{src:u,alt:"section-image",width:y,height:x,className:"bottom-0 left-0 right-0 top-0 h-full rounded-[40px] object-cover"})}),(null==f?void 0:f.link)&&t("div",{className:He("video-section relative w-full cursor-pointer overflow-hidden rounded-[40px] transition-all duration-300 xl:w-[486px]",!S&&"hover:shadow-2xl"),onClick:()=>{var e;k(null!==(e=null==f?void 0:f.link)&&void 0!==e?e:"")},onMouseEnter:()=>P(!0),onMouseLeave:()=>P(!1),children:[t("div",{className:He(S&&!T&&"hidden",S&&!T?"opacity-0":"opacity-100","relative aspect-[16/9] w-full transition-opacity duration-300 xl:aspect-square"),children:[f.image&&e(nt,{src:f.image,alt:"Video preview",width:486,height:486,className:"absolute inset-0 h-full w-full rounded-[40px] object-cover"}),e("div",{className:"absolute inset-0 flex items-center justify-center",children:e(xt,{isHovered:G})})]}),!T&&S&&e("div",{className:He("aspect-[16/9] w-full overflow-hidden rounded-[40px] transition-opacity duration-300",S?"opacity-100":"opacity-0"),children:E})]})]})]})}),T&&S&&e("div",{className:"fixed inset-0 top-20 z-[100] flex items-center justify-center bg-black/80 p-4 transition-all duration-300",onClick:e=>{e.stopPropagation(),k("")},children:e("div",{className:"max-w-6xl aspect-video w-full overflow-hidden rounded-3xl bg-black shadow-2xl md:w-4/6",onClick:e=>e.stopPropagation(),children:E})})]})},At=({link:n,anchorName:i})=>{const[r,a]=o.useState(!1),s=o.useRef(null);if(((e,t)=>{const n=n=>{var i;(null===(i=null==e?void 0:e.current)||void 0===i?void 0:i.contains(n.target))||t()};l(()=>(document.addEventListener("click",n),()=>{document.removeEventListener("click",n)}))})(s,()=>a(!1)),!n)return null;if((e=>"string"==typeof e.href)(n))return e(et,{...n,linkClassName:"body3 flex items-center text-text-link h-full",linkVariant:"unstyled"},`submenu-link-btn-${n.anchorId}`);const{anchorId:c,title:u,items:d}=n,p=Array.isArray(null==d?void 0:d.items)?d.items:[],h=`--link-anchor-${i}`;return t("div",{className:"relative h-full",style:{anchorName:h},ref:s,children:[t(et,{onClick:()=>a(e=>!e),"aria-expanded":r,buttonClassName:"group body3 flex h-full items-center",showButtonAs:"unstyled",children:[e($e,{as:"span",className:"group-hover:underline",children:null!=u?u:null}),e(Je,{weight:"700",className:"text-icon-info group-hover:opacity-50",name:r?"keyboard_arrow_up":"keyboard_arrow_down"})]},c),e("div",{className:He("fixed z-10 min-w-44 rounded-xl bg-bg shadow-lg","transition-[opacity,transform] ease-out",r&&p.length>0?"pointer-events-auto translate-y-0 opacity-100 duration-75":"pointer-events-none -translate-y-2 opacity-0 duration-0"),style:{positionAnchor:h,top:"anchor(bottom)",right:"anchor(right)"},children:e("ul",{className:"flex flex-col gap-2 py-2",children:p.map((t,n)=>e("li",{className:"submenu-link",children:e(et,{...t,linkVariant:"unstyled",linkClassName:"body3 px-4 hover:bg-bg-surface-hover flex items-center w-full h-11 text-text-link"})},`submenu-link-${n}`))})})]})},Nt=({link:i})=>{const[r,a]=o.useState(!1);if(!i)return null;if((e=>"string"==typeof e.href)(i))return e(et,{...i,linkClassName:"label3 flex items-center w-full h-11 px-4 text-text-link",linkVariant:"unstyled"},`submenu-link-btn-${i.anchorId}`);const{anchorId:s,title:l,items:c}=i,u=Array.isArray(null==c?void 0:c.items)?c.items:[];return t(n,{children:[t(et,{onClick:()=>a(e=>!e),"aria-expanded":r,buttonClassName:"label3 flex h-11 w-full items-center px-4",showButtonAs:"unstyled",children:[null!=l?l:null,e(Je,{weight:"700",name:r?"keyboard_arrow_up":"keyboard_arrow_down"})]},s),r&&u.length>0&&e(kt,{items:u})]})},kt=({items:t})=>e("ul",{className:"flex flex-col gap-2",children:t.map((t,n)=>e("li",{className:"submenu-link",children:e(et,{...t,linkVariant:"unstyled",linkClassName:"body3 pl-8 pr-4 flex items-center w-full h-11 text-text-link"})},`submenu-link-${n}`))},`submenu-${t.length}`),Gt=n=>{const{showBlinkDot:i=!1,buttonStyle:o="primary",size:r="md",children:a,className:s,...l}=n;return t(qe,{...l,className:He("relative flex items-center gap-2 font-medium tracking-wide outline-offset-4 rounded-full",{sm:"h-6 text-xs pl-1 pr-2",md:"h-8 text-sm pl-1 pr-2",lg:"h-10 text-base pl-2 pr-3"}[r],{primary:"border-[0.727px] border-border text-text"}[o],s),children:[i?e("span",{className:`pointer-events-none absolute animate-blink ${{sm:"-left-4",md:"-left-6",lg:"-left-8"}[r]} top-1/2 ${{sm:"h-2 w-2",md:"h-3 w-3",lg:"h-4 w-4"}[r]} -translate-y-1/2 rounded-full bg-icon-brand`}):null,e("span",{className:`relative inline-flex ${{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}[r]} items-center justify-center rounded-full bg-icon-brand`,children:e(Je,{name:"call",fill:1,size:{sm:20,md:20,lg:32}[r],className:"text-white"})}),e("span",{className:"font-normal tracking-wide",children:a})]})};Gt.displayName="CallButton";const Pt=r((n,i)=>{const{className:o,size:r,required:a,placeholder:l,label:u,state:d,errorText:p,prefixIconName:h,prefixIconFill:m=!0,suffixIconFill:g=!1,prefixIconSize:f=24,suffixIconName:b,suffixIconSize:v=24,containerClassName:y,prefixIconClassName:x,loading:I,hasError:C,type:w,...A}=n,N=C?"error":d,[k,G]=s(!1),[P,V]=s(!1),[B,T]=s(w||"text"),S=c(e=>{e.stopPropagation(),T(e=>"password"===e?"text":"password")},[]);return t("div",{className:"relative",children:[u?e("label",{htmlFor:u,className:He("inline-block pb-1"),children:t($e,{as:"span",className:"footnote text-text",children:[u,a?e("span",{className:"pl-1 text-text-critical",children:"*"}):null]})}):null,t("div",{className:He("relative flex flex-row items-center overflow-hidden rounded-input border border-input-border bg-input-bg-surface",{sm:"h-[48px] px-3 py-2",slim:"h-12",medium:"h-14",large:"h-[60px]"}[r||"medium"],y,(k||"hover"===N)&&!P&&"error"!==N&&"border-input-border-hover",(P||"focus"===N||"active"===N)&&"border-input-border-selected outline outline-1 outline-input-border-selected","error"===N&&"border-input-border-critical outline outline-1 outline-input-border-critical"),children:[h?e("div",{className:"mr-1",style:{width:f,height:f,overflow:"hidden"},children:e(Je,{name:h,fill:m?1:0,size:f,className:He(x)})}):null,e("input",{ref:i,id:u,disabled:I||A.disabled,className:He("h-full grow rounded-input p-4 caret-bg-inverse placeholder:text-input-text-placeholder focus:border-none focus:outline-none","text-body2","slim"===r&&"text-body3",o),placeholder:l,type:B,...A,onMouseOver:()=>G(!0),onMouseOut:()=>G(!1),onFocus:e=>{var t;null===(t=A.onFocus)||void 0===t||t.call(A,e),V(!0)},onBlur:e=>{var t;null===(t=A.onBlur)||void 0===t||t.call(A,e),V(!1)}}),b?e("div",{className:"ml-2",style:{width:v,height:v,overflow:"hidden"},onClick:S,children:e(Je,{name:"text"===B?"visibility":"visibility_off",size:v,fill:g?1:0})}):null]}),"error"===N&&p&&""!=p?t($e,{className:He("footnote left-0 top-full inline-flex items-center pt-1 text-text-critical"),children:[e(Je,{name:"info",size:20,className:"mr-1"}),p||"Error"]}):null]})});Pt.displayName="Input";const Vt=n=>{const{primaryNavigationLinks:i,utilityNavigationLinks:o,checkPlansJSX:r,primaryNavigationLogo:a,accountNavigationLinks:s,supportNavigationLinks:l,searchBarIcon:c,invocaPhoneNumberLink:u,invocaPhoneNumberDisplayText:d,onSearch:p=()=>{}}=n;return t("div",{className:"component-container",children:[t("nav",{className:"menu-container",children:[e("div",{className:"utility-container hidden lg:block lg:border-b lg:px-2",children:t("div",{className:"mx-auto flex max-w-120 justify-between",children:[e("ul",{className:"flex gap-5","aria-label":"Utility Navigation",children:null==o?void 0:o.map((t,n)=>e("li",{children:e(et,{linkClassName:He("footnote flex items-center w-full h-11 text-text-link",1===n&&"label4"),linkVariant:"unstyled",...Object.fromEntries(Object.entries(t).filter(([e,t])=>null!==t))})},`main-menu-items-${n}`))}),t("div",{className:"flex items-center gap-10",children:[e(Gt,{className:"border-none",href:u,children:e($e,{className:"body3",children:d})}),null==s?void 0:s.map((t,n)=>e(At,{anchorName:`my-account-${n}`,link:t},`my-account-${n}`))]})]})}),t("div",{className:"main-nav-container","aria-label":"Main Navigation",children:[t("div",{className:"mobile-nav-section flex h-14 items-center justify-between px-5 py-[10px] lg:hidden",children:[e("div",{children:e(qe,{href:"/",className:"flex",children:e(nt,{src:"string"==typeof a?a:(null==a?void 0:a.url)||"",alt:"Kinetic business logo",width:76.5,height:24})})}),t("div",{className:"flex items-center gap-6",children:[e(Gt,{href:u,children:e($e,{as:"span",className:"footnote",children:d})}),e(Bt,{...n})]})]}),e("div",{className:"desktop-nav-section hidden lg:block lg:border-b lg:px-2",children:t("div",{className:"mx-auto flex h-14 max-w-120 items-center justify-between",children:[t("div",{className:"flex h-full",children:[e(qe,{href:"/",className:"flex",children:e(nt,{src:"string"==typeof a?a:(null==a?void 0:a.url)||"",alt:"Kinetic business logo",width:76.5,height:24,className:"mr-14"})}),e("div",{className:"flex h-full items-center gap-5",children:null==i?void 0:i.map((t,n)=>e(At,{anchorName:`main-menu-${n}`,link:t},`main-menu-${n}`))})]}),t("div",{className:"flex h-full items-center gap-10",children:[e(St,{searchBarIconURL:"string"==typeof c?c:(null==c?void 0:c.url)||"",onSearch:p}),null==l?void 0:l.map((t,n)=>e(At,{anchorName:`support-menu-${n}`,link:t},`support-menu-${n}`))]})]})})]})]}),r&&e("div",{className:"md:hidden",children:r})]})},Bt=n=>{var i;const{primaryNavigationLinks:r,utilityNavigationLinks:a}=n,[s,l]=o.useState(!1);o.useEffect(()=>{if("undefined"==typeof window)return;document.body.style.overflowY=s?"hidden":"unset";const e=document.getElementById("drawer-items");if(!e)return;const t=e.querySelectorAll(".focus-item"),n=t[0],i=t[t.length-1],o=e=>{var t,o,r,a;("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===n&&(null===(o=(t=i).focus)||void 0===o||o.call(t),e.preventDefault()):document.activeElement===i&&(null===(a=(r=n).focus)||void 0===a||a.call(r),e.preventDefault()))};return window.addEventListener("keydown",o),()=>{document.body.style.overflowY="unset",window.removeEventListener("keydown",o)}},[s]);const c=()=>{l(!1)};return t("div",{children:[e(et,{showButtonAs:"unstyled",buttonClassName:"flex",onClick:()=>l(!0),children:e(Je,{name:"menu"})}),s?e("div",{className:"fixed bottom-0 left-0 right-0 top-0 z-[90] h-full w-full bg-scrim-bg-modal"}):null,e("div",{className:He("fixed bottom-0 right-0 top-0","z-[100] h-full bg-bg px-0 py-4","transition-all duration-300 ease-in-out","block",s?"right-0":"-right-96"),id:"mobile-menu-overlay",children:t("div",{id:"drawer-items",className:"flex h-full flex-col gap-3",children:[t("div",{className:"flex items-center justify-between px-4",children:[e("div",{children:e(Gt,{className:"border-none",href:n.invocaPhoneNumberLink,children:n.invocaPhoneNumberDisplayText})}),e("div",{children:e(et,{showButtonAs:"unstyled",buttonClassName:"focus-item flex",onClick:c,children:e(Je,{name:"close"})})})]}),e(Tt,{closeMenu:c,isMenuOpen:s,searchBarIconURL:"string"==typeof n.searchBarIcon?n.searchBarIcon:(null===(i=n.searchBarIcon)||void 0===i?void 0:i.url)||"",onSearch:n.onSearch||(()=>{})}),t("div",{className:"flex-grow overflow-y-auto",children:[e("ul",{className:"mt-2 flex flex-col gap-2",children:null==r?void 0:r.map((t,n)=>e("li",{children:e(Nt,{link:t})},`main-menu-items-${n}`))}),e("ul",{className:"mt-2 flex gap-5 bg-bg-fill-info px-4",children:null==a?void 0:a.map((t,n)=>e("li",{children:e(et,{...Object.fromEntries(Object.entries(t).filter(([e,t])=>null!==t)),linkClassName:He("footnote flex items-center w-full h-11 text-text-link",1===n&&"label4"),linkVariant:"unstyled"},`submenu-link-btn-${t.anchorId}`)},`main-menu-items-${n}`))})]})]})})]})},Tt=n=>{const{closeMenu:i,onSearch:r,isMenuOpen:a,searchBarIconURL:s}=n,[l,c]=o.useState(""),u=o.useRef(null),d=e=>{i(),e.preventDefault(),r(l)};return o.useEffect(()=>{a||c("")},[a]),t("form",{name:"searchForm",className:"flex border-b border-t transition-colors focus-within:border-border-focus",onSubmit:d,children:[e(nt,{src:s,width:32,height:32,alt:"Search icon",role:"button",className:"ml-2",onClick:d}),e("div",{className:"flex-grow",children:e(Pt,{ref:u,className:"h-[34px] rounded-none text-body3 font-medium leading-6",name:"search",placeholder:"Search...",value:l,onChange:e=>c(e.target.value),autoComplete:"off",containerClassName:"h-[46px] px-4 pl-0 rounded-none flex-grow border-none"})})]})},St=n=>{const{searchBarIconURL:i,onSearch:r}=n,[a,s]=o.useState(""),l=o.useRef(null),c=e=>{e.preventDefault(),r(a)};return t("form",{name:"searchForm",className:"flex h-9 w-60 rounded-full border transition-colors focus-within:border-border-focus",onSubmit:c,children:[e(nt,{src:i,width:32,height:32,alt:"Search icon",role:"button",onClick:c}),e(Pt,{ref:l,className:"rounded-full p-0 text-body3 font-medium leading-6",name:"search",placeholder:"Search...",value:a,onChange:e=>s(e.target.value),autoComplete:"off",containerClassName:"px-0 h-full border-none rounded-full"})]})},Et=n=>{var i;const{title:o,showAsHeading:r,subTitle:a,primaryCta1:s,carouselImages:l,bottomLink:c,price:u,priceCallout:d,priceSuffix:p,checklist:h,renderCheckPlans:m,badgeImage:g,pricingDescriptionDisclaimer:f,secondaryCta:b,secondaryCtaPrefix:v,onModalButtonClick:y}=n,x=null!==(i=null==c?void 0:c.buttonLabel)&&void 0!==i?i:null==c?void 0:c.label;return e("div",{className:"component-container p-5 lg:min-h-[724px] lg:p-0",children:t("div",{className:He("primary-hero-container mx-auto flex flex-col sm:items-center sm:text-center lg:h-full lg:max-w-120 lg:flex-row lg:items-center lg:justify-between lg:gap-4 lg:px-4 lg:text-left"),children:[e("div",{className:He("relative flex flex-col text-white sm:w-[485px]"),children:t("div",{className:"flex flex-col gap-5 lg:gap-6",children:[o&&e($e,{as:r?"h1":"h2",className:"heading2 lg:heading1",children:o}),a&&e($e,{as:"p",className:"subheading3 lg:subheading1",children:a}),u?t("div",{className:"flex sm:justify-center sm:text-left lg:justify-start",children:[e("div",{className:"mr-2 mt-0.5",children:d?d.split("|").map((t,n)=>e($e,{as:"p",className:"body2",children:t},n)):null}),t("div",{className:"flex",children:[e($e,{as:"p",className:"subheading1 mt-0.5",children:"$"}),e($e,{as:"p",className:"subheading5",children:u}),p?e($e,{as:"p",className:"subheading1 mt-0.5",children:p}):null]})]}):null,h&&e(ct,{listItemClassName:"text-white body2 text-left",items:h.map(e=>e.title)}),t("div",{className:"flex flex-col gap-3",children:[s&&e("div",{className:He("hidden md:flex md:flex-col"),children:e(et,{...s,renderCheckPlans:m,onModalButtonClick:y})}),v||b?t("div",{className:"hidden md:flex",children:[v&&e($e,{as:"span",className:"body2 mr-1",children:v}),b&&e(et,{linkClassName:"body2 text-text-inverse",onModalButtonClick:y,...b})]}):null,c&&(x||(null==c?void 0:c.href))&&e("div",{className:"hidden md:block",children:e(et,{...c,linkClassName:"text-footnote text-white",onModalButtonClick:y})}),f?e($e,{as:"p",className:"body3 hidden md:block",children:f}):null]})]})}),t("div",{className:"lg:hidden",children:[t("div",{className:"relative my-8",children:[g?e(nt,{src:g,alt:"Badge",className:"absolute left-5 top-5 aspect-square w-26 object-cover object-center",width:100,height:100,loading:"eager"}):null,l&&l[0]?e(nt,{src:l[0],alt:"Hero",className:"aspect-[1.71:1] sm:aspect-[1.41:1] w-full rounded-[40px] object-cover object-center sm:h-[420px]",width:350,height:205,loading:"eager"}):null]}),c&&(x||(null==c?void 0:c.href))&&e("div",{className:"md:hidden",children:e(et,{...c,onModalButtonClick:y,linkClassName:"body3 text-white"})}),f?e($e,{as:"p",className:"body3 md:hidden",children:f}):null,v||b?t("div",{className:"flex md:hidden",children:[v&&e($e,{as:"span",className:"body2 mr-1",children:v}),b&&e(et,{...b,onModalButtonClick:y,linkClassName:"text-white"})]}):null]}),t("div",{className:He("relative hidden lg:block"),children:[g?e(nt,{src:g,alt:"Badge",className:"absolute -left-26 top-18 aspect-square w-52 object-cover object-center",width:200,height:200,loading:"eager"}):null,l&&l[0]?e(nt,{src:l[0],alt:"Hero",className:"aspect-square rounded-[40px] object-cover object-center",width:600,height:600,loading:"eager"}):null]})]})})},Rt=({fields:t})=>e("div",{children:e($e,{children:"Text Block"})}),Mt={closed:{opacity:0},open:{opacity:1}},Xt={closed:{opacity:0,scale:.96},open:{opacity:1,scale:1}},Wt={xs:"475px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Lt=d({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ft=d({}),Ot=d(null),Dt="undefined"!=typeof document,Zt=Dt?p:l,zt=d({strict:!1});function Ht(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function jt(e){return"string"==typeof e||Array.isArray(e)}function Yt(e){return"object"==typeof e&&"function"==typeof e.start}const Jt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ut=["initial",...Jt];function $t(e){return Yt(e.animate)||Ut.some(t=>jt(e[t]))}function Qt(e){return Boolean($t(e)||e.variants)}function _t(e){const{initial:t,animate:n}=function(e,t){if($t(e)){const{initial:t,animate:n}=e;return{initial:!1===t||jt(t)?t:void 0,animate:jt(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,h(Ft));return u(()=>({initial:t,animate:n}),[Kt(t),Kt(n)])}function Kt(e){return Array.isArray(e)?e.join(" "):e}const qt={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"]},en={};for(const e in qt)en[e]={isEnabled:t=>qt[e].some(e=>!!t[e])};const tn=d({}),nn=d({}),on=Symbol.for("motionComponentSymbol");function rn({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:o,Component:s}){e&&function(e){for(const t in e)en[t]={...en[t],...e[t]}}(e);const u=r(function(r,u){let d;const p={...h(Lt),...r,layoutId:an(r)},{isStatic:g}=p,f=_t(r),b=o(r,g);if(!g&&Dt){f.visualElement=function(e,t,n,i){const{visualElement:o}=h(Ft),r=h(zt),s=h(Ot),c=h(Lt).reducedMotion,u=a();i=i||r.renderer,!u.current&&i&&(u.current=i(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:c}));const d=u.current;return m(()=>{d&&d.update(n,s)}),Zt(()=>{d&&d.render()}),l(()=>{d&&d.updateFeatures()}),(window.HandoffAppearAnimations?Zt:l)(()=>{d&&d.animationState&&d.animationState.animateChanges()}),d}(s,b,p,t);const n=h(nn),i=h(zt).strict;f.visualElement&&(d=f.visualElement.loadFeatures(p,i,e,n))}return i.createElement(Ft.Provider,{value:f},d&&f.visualElement?i.createElement(d,{visualElement:f.visualElement,...p}):null,n(s,r,function(e,t,n){return c(i=>{i&&e.mount&&e.mount(i),t&&(i?t.mount(i):t.unmount()),n&&("function"==typeof n?n(i):Ht(n)&&(n.current=i))},[t])}(b,f.visualElement,u),b,g,f.visualElement))});return u[on]=s,u}function an({layoutId:e}){const t=h(tn).id;return t&&void 0!==e?t+"-"+e:e}function sn(e){function t(t,n={}){return rn(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const ln=["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 cn(e){return"string"==typeof e&&!e.includes("-")&&!!(ln.indexOf(e)>-1||/[A-Z]/.test(e))}const un={};const dn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],pn=new Set(dn);function hn(e,{layout:t,layoutId:n}){return pn.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!un[e]||"opacity"===e)}const mn=e=>Boolean(e&&e.getVelocity),gn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},fn=dn.length;const bn=e=>t=>"string"==typeof t&&t.startsWith(e),vn=bn("--"),yn=bn("var(--"),xn=(e,t)=>t&&"number"==typeof e?t.transform(e):e,In=(e,t,n)=>Math.min(Math.max(n,e),t),Cn={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},wn={...Cn,transform:e=>In(0,1,e)},An={...Cn,default:1},Nn=e=>Math.round(1e5*e)/1e5,kn=/(-)?([\d]*\.?[\d])+/g,Gn=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Pn=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Vn(e){return"string"==typeof e}const Bn=e=>({test:t=>Vn(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Tn=Bn("deg"),Sn=Bn("%"),En=Bn("px"),Rn=Bn("vh"),Mn=Bn("vw"),Xn={...Sn,parse:e=>Sn.parse(e)/100,transform:e=>Sn.transform(100*e)},Wn={...Cn,transform:Math.round},Ln={borderWidth:En,borderTopWidth:En,borderRightWidth:En,borderBottomWidth:En,borderLeftWidth:En,borderRadius:En,radius:En,borderTopLeftRadius:En,borderTopRightRadius:En,borderBottomRightRadius:En,borderBottomLeftRadius:En,width:En,maxWidth:En,height:En,maxHeight:En,size:En,top:En,right:En,bottom:En,left:En,padding:En,paddingTop:En,paddingRight:En,paddingBottom:En,paddingLeft:En,margin:En,marginTop:En,marginRight:En,marginBottom:En,marginLeft:En,rotate:Tn,rotateX:Tn,rotateY:Tn,rotateZ:Tn,scale:An,scaleX:An,scaleY:An,scaleZ:An,skew:Tn,skewX:Tn,skewY:Tn,distance:En,translateX:En,translateY:En,translateZ:En,x:En,y:En,z:En,perspective:En,transformPerspective:En,opacity:wn,originX:Xn,originY:Xn,originZ:En,zIndex:Wn,fillOpacity:wn,strokeOpacity:wn,numOctaves:Wn};function Fn(e,t,n,i){const{style:o,vars:r,transform:a,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if(vn(e)){r[e]=n;continue}const i=Ln[e],d=xn(n,i);if(pn.has(e)){if(l=!0,a[e]=d,!u)continue;n!==(i.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,s[e]=d):o[e]=d}if(t.transform||(l||i?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},i,o){let r="";for(let t=0;t<fn;t++){const n=dn[t];void 0!==e[n]&&(r+=`${gn[n]||n}(${e[n]}) `)}return t&&!e.z&&(r+="translateZ(0)"),r=r.trim(),o?r=o(e,i?"":r):n&&i&&(r="none"),r}(e.transform,n,u,i):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;o.transformOrigin=`${e} ${t} ${n}`}}const On=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Dn(e,t,n){for(const i in t)mn(t[i])||hn(i,n)||(e[i]=t[i])}function Zn(e,t,n){const i={};return Dn(i,e.style||{},e),Object.assign(i,function({transformTemplate:e},t,n){return u(()=>{const i={style:{},transform:{},transformOrigin:{},vars:{}};return Fn(i,t,{enableHardwareAcceleration:!n},e),Object.assign({},i.vars,i.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(i):i}function zn(e,t,n){const i={},o=Zn(e,t,n);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=o,i}const Hn=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function jn(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Hn.has(e)}let Yn=e=>!jn(e);try{(Jn=require("@emotion/is-prop-valid").default)&&(Yn=e=>e.startsWith("on")?!jn(e):Jn(e))}catch(e){}var Jn;function Un(e,t,n){return"string"==typeof e?e:En.transform(t+n*e)}const $n={offset:"stroke-dashoffset",array:"stroke-dasharray"},Qn={offset:"strokeDashoffset",array:"strokeDasharray"};function _n(e,{attrX:t,attrY:n,attrScale:i,originX:o,originY:r,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d,p){if(Fn(e,c,u,p),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:h,style:m,dimensions:g}=e;h.transform&&(g&&(m.transform=h.transform),delete h.transform),g&&(void 0!==o||void 0!==r||m.transform)&&(m.transformOrigin=function(e,t,n){return`${Un(t,e.x,e.width)} ${Un(n,e.y,e.height)}`}(g,void 0!==o?o:.5,void 0!==r?r:.5)),void 0!==t&&(h.x=t),void 0!==n&&(h.y=n),void 0!==i&&(h.scale=i),void 0!==a&&function(e,t,n=1,i=0,o=!0){e.pathLength=1;const r=o?$n:Qn;e[r.offset]=En.transform(-i);const a=En.transform(t),s=En.transform(n);e[r.array]=`${a} ${s}`}(h,a,s,l,!1)}const Kn=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),qn=e=>"string"==typeof e&&"svg"===e.toLowerCase();function ei(e,t,n,i){const o=u(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return _n(n,t,{enableHardwareAcceleration:!1},qn(i),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};Dn(t,e.style,e),o.style={...t,...o.style}}return o}function ti(e=!1){return(t,n,i,{latestValues:o},r)=>{const a=(cn(t)?ei:zn)(n,o,r,t),s=function(e,t,n){const i={};for(const o in e)"values"===o&&"object"==typeof e.values||(Yn(o)||!0===n&&jn(o)||!t&&!jn(o)||e.draggable&&o.startsWith("onDrag"))&&(i[o]=e[o]);return i}(n,"string"==typeof t,e),l={...s,...a,ref:i},{children:c}=n,d=u(()=>mn(c)?c.get():c,[c]);return g(t,{...l,children:d})}}const ni=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function ii(e,{style:t,vars:n},i,o){Object.assign(e.style,t,o&&o.getProjectionStyles(i));for(const t in n)e.style.setProperty(t,n[t])}const oi=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ri(e,t,n,i){ii(e,t,void 0,i);for(const n in t.attrs)e.setAttribute(oi.has(n)?n:ni(n),t.attrs[n])}function ai(e,t){const{style:n}=e,i={};for(const o in n)(mn(n[o])||t.style&&mn(t.style[o])||hn(o,e))&&(i[o]=n[o]);return i}function si(e,t){const n=ai(e,t);for(const i in e)if(mn(e[i])||mn(t[i])){n[-1!==dn.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]}return n}function li(e,t,n,i={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,i,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,i,o)),t}function ci(e){const t=a(null);return null===t.current&&(t.current=e()),t.current}const ui=e=>Array.isArray(e),di=e=>ui(e)?e[e.length-1]||0:e;function pi(e){const t=mn(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const hi=e=>(t,n)=>{const i=h(Ft),o=h(Ot),r=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},i,o,r){const a={latestValues:mi(i,o,r,e),renderState:t()};return n&&(a.mount=e=>n(i,e,a)),a}(e,t,i,o);return n?r():ci(r)};function mi(e,t,n,i){const o={},r=i(e,{});for(const e in r)o[e]=pi(r[e]);let{initial:a,animate:s}=e;const l=$t(e),c=Qt(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!Yt(d)){(Array.isArray(d)?d:[d]).forEach(t=>{const n=li(e,t);if(!n)return;const{transitionEnd:i,transition:r,...a}=n;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in i)o[e]=i[e]})}return o}const gi={useVisualState:hi({scrapeMotionValuesFromProps:si,createRenderState:Kn,onMount:(e,t,{renderState:n,latestValues:i})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}_n(n,i,{enableHardwareAcceleration:!1},qn(t.tagName),e.transformTemplate),ri(t,n)}})},fi={useVisualState:hi({scrapeMotionValuesFromProps:ai,createRenderState:On})};function bi(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}const vi=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function yi(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function xi(e,t,n,i){return bi(e,t,(e=>t=>vi(t)&&e(t,yi(t)))(n),i)}const Ii=(e,t)=>n=>t(e(n)),Ci=(...e)=>e.reduce(Ii);function wi(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const Ai=wi("dragHorizontal"),Ni=wi("dragVertical");function ki(e){let t=!1;if("y"===e)t=Ni();else if("x"===e)t=Ai();else{const e=Ai(),n=Ni();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Gi(){const e=ki(!0);return!e||(e(),!1)}class Pi{constructor(e){this.isMounted=!1,this.node=e}update(){}}const Vi={delta:0,timestamp:0,isProcessing:!1};let Bi=!0,Ti=!1;const Si=["read","update","preRender","render","postRender"],Ei=Si.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],i=0,o=!1,r=!1;const a=new WeakSet,s={schedule:(e,r=!1,s=!1)=>{const l=s&&o,c=l?t:n;return r&&a.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(i=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(o)r=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,i=t.length,i)for(let n=0;n<i;n++){const i=t[n];i(l),a.has(i)&&(s.schedule(i),e())}o=!1,r&&(r=!1,s.process(l))}}};return s}(()=>Ti=!0),e),{}),Ri=e=>Ei[e].process(Vi),Mi=e=>{Ti=!1,Vi.delta=Bi?1e3/60:Math.max(Math.min(e-Vi.timestamp,40),1),Vi.timestamp=e,Vi.isProcessing=!0,Si.forEach(Ri),Vi.isProcessing=!1,Ti&&(Bi=!1,requestAnimationFrame(Mi))},Xi=Si.reduce((e,t)=>{const n=Ei[t];return e[t]=(e,t=!1,i=!1)=>(Ti||(Ti=!0,Bi=!0,Vi.isProcessing||requestAnimationFrame(Mi)),n.schedule(e,t,i)),e},{});function Wi(e){Si.forEach(t=>Ei[t].cancel(e))}function Li(e,t){const n="pointer"+(t?"enter":"leave"),i="onHover"+(t?"Start":"End");return xi(e.current,n,(n,o)=>{if("touch"===n.type||Gi())return;const r=e.getProps();e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",t),r[i]&&Xi.update(()=>r[i](n,o))},{passive:!e.getProps()[i]})}const Fi=(e,t)=>!!t&&(e===t||Fi(e,t.parentElement)),Oi=e=>e;function Di(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,yi(n))}const Zi=new WeakMap,zi=new WeakMap,Hi=e=>{const t=Zi.get(e.target);t&&t(e)},ji=e=>{e.forEach(Hi)};function Yi(e,t,n){const i=function({root:e,...t}){const n=e||document;zi.has(n)||zi.set(n,{});const i=zi.get(n),o=JSON.stringify(t);return i[o]||(i[o]=new IntersectionObserver(ji,{root:e,...t})),i[o]}(t);return Zi.set(e,n),i.observe(e),()=>{Zi.delete(e),i.unobserve(e)}}const Ji={some:0,all:1};const Ui={inView:{Feature:class extends Pi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:i="some",once:o}=e,r={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:Ji[i]};return Yi(this.node.current,r,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),r=t?n:i;r&&r(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Pi{constructor(){super(...arguments),this.removeStartListeners=Oi,this.removeEndListeners=Oi,this.removeAccessibleListeners=Oi,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),i=xi(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:i}=this.node.getProps();Xi.update(()=>{Fi(this.node.current,e.target)?n&&n(e,t):i&&i(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),o=xi(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Ci(i,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=bi(this.node.current,"keydown",e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=bi(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&Di("up",(e,t)=>{const{onTap:n}=this.node.getProps();n&&Xi.update(()=>n(e,t))})}),Di("down",(e,t)=>{this.startPress(e,t)})}),t=bi(this.node.current,"blur",()=>{this.isPressing&&Di("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=Ci(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Xi.update(()=>n(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Gi()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Xi.update(()=>n(e,t))}mount(){const e=this.node.getProps(),t=xi(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=bi(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ci(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Pi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ci(bi(this.node.current,"focus",()=>this.onFocus()),bi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Pi{mount(){this.unmount=Ci(Li(this.node,!0),Li(this.node,!1))}unmount(){}}}};function $i(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function Qi(e,t,n){const i=e.getProps();return li(i,t,void 0!==n?n:i.custom,function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}const _i="data-"+ni("framerAppearId");let Ki=Oi,qi=Oi;"production"!==process.env.NODE_ENV&&(Ki=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},qi=(e,t)=>{if(!e)throw new Error(t)});const eo=e=>1e3*e,to=e=>e/1e3,no=!1,io=e=>Array.isArray(e)&&"number"==typeof e[0];function oo(e){return Boolean(!e||"string"==typeof e&&ao[e]||io(e)||Array.isArray(e)&&e.every(oo))}const ro=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,ao={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ro([0,.65,.55,1]),circOut:ro([.55,0,1,.45]),backIn:ro([.31,.01,.66,-.59]),backOut:ro([.33,1.53,.69,.99])};function so(e){if(e)return io(e)?ro(e):Array.isArray(e)?e.map(so):ao[e]}const lo={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},co={},uo={};for(const e in lo)uo[e]=()=>(void 0===co[e]&&(co[e]=lo[e]()),co[e]);const po=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function ho(e,t,n,i){if(e===t&&n===i)return Oi;const o=t=>function(e,t,n,i,o){let r,a,s=0;do{a=t+(n-t)/2,r=po(a,i,o)-e,r>0?n=a:t=a}while(Math.abs(r)>1e-7&&++s<12);return a}(t,0,1,e,n);return e=>0===e||1===e?e:po(o(e),t,i)}const mo=ho(.42,0,1,1),go=ho(0,0,.58,1),fo=ho(.42,0,.58,1),bo=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,vo=e=>t=>1-e(1-t),yo=e=>1-Math.sin(Math.acos(e)),xo=vo(yo),Io=bo(xo),Co=ho(.33,1.53,.69,.99),wo=vo(Co),Ao=bo(wo),No={linear:Oi,easeIn:mo,easeInOut:fo,easeOut:go,circIn:yo,circInOut:Io,circOut:xo,backIn:wo,backInOut:Ao,backOut:Co,anticipate:e=>(e*=2)<1?.5*wo(e):.5*(2-Math.pow(2,-10*(e-1)))},ko=e=>{if(Array.isArray(e)){qi(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,i,o]=e;return ho(t,n,i,o)}return"string"==typeof e?(qi(void 0!==No[e],`Invalid easing type '${e}'`),No[e]):e},Go=(e,t)=>n=>Boolean(Vn(n)&&Pn.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Po=(e,t,n)=>i=>{if(!Vn(i))return i;const[o,r,a,s]=i.match(kn);return{[e]:parseFloat(o),[t]:parseFloat(r),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Vo={...Cn,transform:e=>Math.round((e=>In(0,255,e))(e))},Bo={test:Go("rgb","red"),parse:Po("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+Vo.transform(e)+", "+Vo.transform(t)+", "+Vo.transform(n)+", "+Nn(wn.transform(i))+")"};const To={test:Go("#"),parse:function(e){let t="",n="",i="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,i+=i,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}},transform:Bo.transform},So={test:Go("hsl","hue"),parse:Po("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Sn.transform(Nn(t))+", "+Sn.transform(Nn(n))+", "+Nn(wn.transform(i))+")"},Eo={test:e=>Bo.test(e)||To.test(e)||So.test(e),parse:e=>Bo.test(e)?Bo.parse(e):So.test(e)?So.parse(e):To.parse(e),transform:e=>Vn(e)?e:e.hasOwnProperty("red")?Bo.transform(e):So.transform(e)},Ro=(e,t,n)=>-n*e+n*t+e;function Mo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const Xo=(e,t,n)=>{const i=e*e;return Math.sqrt(Math.max(0,n*(t*t-i)+i))},Wo=[To,Bo,So];function Lo(e){const t=(n=e,Wo.find(e=>e.test(n)));var n;qi(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let i=t.parse(e);return t===So&&(i=function({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,n/=100;let o=0,r=0,a=0;if(t/=100){const i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;o=Mo(s,i,e+1/3),r=Mo(s,i,e),a=Mo(s,i,e-1/3)}else o=r=a=n;return{red:Math.round(255*o),green:Math.round(255*r),blue:Math.round(255*a),alpha:i}}(i)),i}const Fo=(e,t)=>{const n=Lo(e),i=Lo(t),o={...n};return e=>(o.red=Xo(n.red,i.red,e),o.green=Xo(n.green,i.green,e),o.blue=Xo(n.blue,i.blue,e),o.alpha=Ro(n.alpha,i.alpha,e),Bo.transform(o))};const Oo={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:Oi},Do={regex:Gn,countKey:"Colors",token:"${c}",parse:Eo.parse},Zo={regex:kn,countKey:"Numbers",token:"${n}",parse:Cn.parse};function zo(e,{regex:t,countKey:n,token:i,parse:o}){const r=e.tokenised.match(t);r&&(e["num"+n]=r.length,e.tokenised=e.tokenised.replace(t,i),e.values.push(...r.map(o)))}function Ho(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&zo(n,Oo),zo(n,Do),zo(n,Zo),n}function jo(e){return Ho(e).values}function Yo(e){const{values:t,numColors:n,numVars:i,tokenised:o}=Ho(e),r=t.length;return e=>{let t=o;for(let o=0;o<r;o++)t=o<i?t.replace(Oo.token,e[o]):o<i+n?t.replace(Do.token,Eo.transform(e[o])):t.replace(Zo.token,Nn(e[o]));return t}}const Jo=e=>"number"==typeof e?0:e;const Uo={test:function(e){var t,n;return isNaN(e)&&Vn(e)&&((null===(t=e.match(kn))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Gn))||void 0===n?void 0:n.length)||0)>0},parse:jo,createTransformer:Yo,getAnimatableNone:function(e){const t=jo(e);return Yo(e)(t.map(Jo))}},$o=(e,t)=>n=>`${n>0?t:e}`;function Qo(e,t){return"number"==typeof e?n=>Ro(e,t,n):Eo.test(e)?Fo(e,t):e.startsWith("var(")?$o(e,t):qo(e,t)}const _o=(e,t)=>{const n=[...e],i=n.length,o=e.map((e,n)=>Qo(e,t[n]));return e=>{for(let t=0;t<i;t++)n[t]=o[t](e);return n}},Ko=(e,t)=>{const n={...e,...t},i={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(i[o]=Qo(e[o],t[o]));return e=>{for(const t in i)n[t]=i[t](e);return n}},qo=(e,t)=>{const n=Uo.createTransformer(t),i=Ho(e),o=Ho(t);return i.numVars===o.numVars&&i.numColors===o.numColors&&i.numNumbers>=o.numNumbers?Ci(_o(i.values,o.values),n):(Ki(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),$o(e,t))},er=(e,t,n)=>{const i=t-e;return 0===i?1:(n-e)/i},tr=(e,t)=>n=>Ro(e,t,n);function nr(e,t,n){const i=[],o=n||("number"==typeof(r=e[0])?tr:"string"==typeof r?Eo.test(r)?Fo:qo:Array.isArray(r)?_o:"object"==typeof r?Ko:tr);var r;const a=e.length-1;for(let n=0;n<a;n++){let r=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||Oi:t;r=Ci(e,r)}i.push(r)}return i}function ir(e,t,{clamp:n=!0,ease:i,mixer:o}={}){const r=e.length;if(qi(r===t.length,"Both input and output ranges must be the same length"),1===r)return()=>t[0];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=nr(t,i,o),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const i=er(e[n],e[n+1],t);return a[n](i)};return n?t=>l(In(e[0],e[r-1],t)):l}function or(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const o=er(0,t,i);e.push(Ro(n,1,o))}}(t,e.length-1),t}function rr({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(i)?i.map(ko):ko(i),r={done:!1,value:t[0]},a=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:or(t),e),s=ir(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map(()=>c||fo).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(r.value=s(t),r.done=t>=e,r)}}function ar(e,t){return t?e*(1e3/t):0}function sr(e,t,n){const i=Math.max(t-5,0);return ar(n-e(i),t-i)}const lr=.001;function cr({duration:e=800,bounce:t=.25,velocity:n=0,mass:i=1}){let o,r;Ki(e<=eo(10),"Spring duration must be 10 seconds or less");let a=1-t;a=In(.05,1,a),e=In(.01,10,to(e)),a<1?(o=t=>{const i=t*a,o=i*e,r=i-n,s=dr(t,a),l=Math.exp(-o);return lr-r/s*l},r=t=>{const i=t*a*e,r=i*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-i),c=dr(Math.pow(t,2),a);return(-o(t)+lr>0?-1:1)*((r-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,r=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let i=n;for(let n=1;n<ur;n++)i-=e(i)/t(i);return i}(o,r,5/e);if(e=eo(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*i;return{stiffness:t,damping:2*a*Math.sqrt(i*t),duration:e}}}const ur=12;function dr(e,t){return e*Math.sqrt(1-t*t)}const pr=["duration","bounce"],hr=["stiffness","damping","mass"];function mr(e,t){return t.some(t=>void 0!==e[t])}function gr({keyframes:e,restDelta:t,restSpeed:n,...i}){const o=e[0],r=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!mr(e,hr)&&mr(e,pr)){const n=cr(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(i),h=u?-to(u):0,m=l/(2*Math.sqrt(s*c)),g=r-o,f=to(Math.sqrt(s/c)),b=Math.abs(g)<5;let v;if(n||(n=b?.01:2),t||(t=b?.005:.5),m<1){const e=dr(f,m);v=t=>{const n=Math.exp(-m*f*t);return r-n*((h+m*f*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===m)v=e=>r-Math.exp(-f*e)*(g+(h+f*g)*e);else{const e=f*Math.sqrt(m*m-1);v=t=>{const n=Math.exp(-m*f*t),i=Math.min(e*t,300);return r-n*((h+m*f*g)*Math.sinh(i)+e*g*Math.cosh(i))/e}}return{calculatedDuration:p&&d||null,next:e=>{const i=v(e);if(p)a.done=e>=d;else{let o=h;0!==e&&(o=m<1?sr(v,e,i):0);const s=Math.abs(o)<=n,l=Math.abs(r-i)<=t;a.done=s&&l}return a.value=a.done?r:i,a}}}function fr({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:o=10,bounceStiffness:r=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},h=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let m=n*t;const g=d+m,f=void 0===a?g:a(g);f!==g&&(m=f-d);const b=e=>-m*Math.exp(-e/i),v=e=>f+b(e),y=e=>{const t=b(e),n=v(e);p.done=Math.abs(t)<=c,p.value=p.done?f:n};let x,I;const C=e=>{var t;(t=p.value,void 0!==s&&t<s||void 0!==l&&t>l)&&(x=e,I=gr({keyframes:[p.value,h(p.value)],velocity:sr(v,e,p.value),damping:o,stiffness:r,restDelta:c,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return I||void 0!==x||(t=!0,y(e),C(e)),void 0!==x&&e>x?I.next(e-x):(!t&&y(e),p)}}}const br=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Xi.update(t,!0),stop:()=>Wi(t),now:()=>Vi.isProcessing?Vi.timestamp:performance.now()}};function vr(e){let t=0;let n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}const yr={decay:fr,inertia:fr,tween:rr,keyframes:rr,spring:gr};function xr({autoplay:e=!0,delay:t=0,driver:n=br,keyframes:i,type:o="keyframes",repeat:r=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...p}){let h,m,g=1,f=!1;const b=()=>{h&&h(),m=new Promise(e=>{h=e})};let v;b();const y=yr[o]||rr;let x;y!==rr&&"number"!=typeof i[0]&&(x=ir([0,100],i,{clamp:!1}),i=[0,100]);const I=y({...p,keyframes:i});let C;"mirror"===s&&(C=y({...p,keyframes:[...i].reverse(),velocity:-(p.velocity||0)}));let w="idle",A=null,N=null,k=null;null===I.calculatedDuration&&r&&(I.calculatedDuration=vr(I));const{calculatedDuration:G}=I;let P=1/0,V=1/0;null!==G&&(P=G+a,V=P*(r+1)-a);let B=0;const T=e=>{if(null===N)return;g>0&&(N=Math.min(N,e)),B=null!==A?A:(e-N)*g;const n=B-t,o=n<0;B=Math.max(n,0),"finished"===w&&null===A&&(B=V);let l=B,c=I;if(r){const e=B/P;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,r+1);const i=Boolean(t%2);i&&("reverse"===s?(n=1-n,a&&(n-=a/P)):"mirror"===s&&(c=C));let o=In(0,1,n);B>V&&(o="reverse"===s&&i?1:0),l=o*P}const u=o?{done:!1,value:i[0]}:c.next(l);x&&(u.value=x(u.value));let{done:p}=u;o||null===G||(p=B>=V);const h=null===A&&("finished"===w||"running"===w&&p||g<0&&B<=0);return d&&d(u.value),h&&R(),u},S=()=>{v&&v.stop(),v=void 0},E=()=>{w="idle",S(),b(),N=k=null},R=()=>{w="finished",u&&u(),S(),b()},M=()=>{if(f)return;v||(v=n(T));const e=v.now();l&&l(),null!==A?N=e-A:N&&"finished"!==w||(N=e),k=N,A=null,w="running",v.start()};e&&M();const X={then:(e,t)=>m.then(e,t),get time(){return to(B)},set time(e){e=eo(e),B=e,null===A&&v&&0!==g?N=v.now()-e/g:A=e},get duration(){const e=null===I.calculatedDuration?vr(I):I.calculatedDuration;return to(e)},get speed(){return g},set speed(e){e!==g&&v&&(g=e,X.time=to(B))},get state(){return w},play:M,pause:()=>{w="paused",A=B},stop:()=>{f=!0,"idle"!==w&&(w="idle",c&&c(),E())},cancel:()=>{null!==k&&T(k),E()},complete:()=>{w="finished"},sample:e=>(N=0,T(e))};return X}const Ir=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Cr(e,t,{onUpdate:n,onComplete:i,...o}){if(!(uo.waapi()&&Ir.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let r,a,s=!1;const l=()=>{a=new Promise(e=>{r=e})};l();let{keyframes:c,duration:u=300,ease:d,times:p}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!oo(t.ease))(t,o)){const e=xr({...o,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let i=0;for(;!t.done&&i<2e4;)t=e.sample(i),n.push(t.value),i+=10;p=void 0,c=n,u=i-10,d="linear"}const h=function(e,t,n,{delay:i=0,duration:o,repeat:r=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=so(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:i,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...o,duration:u,ease:d,times:p}),m=()=>h.cancel(),g=()=>{Xi.update(m),r(),l()};return h.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(c,o)),i&&i(),g()},{then:(e,t)=>a.then(e,t),get time(){return to(h.currentTime||0)},set time(e){h.currentTime=eo(e)},get speed(){return h.playbackRate},set speed(e){h.playbackRate=e},get duration(){return to(u)},play:()=>{s||(h.play(),Wi(m))},pause:()=>h.pause(),stop:()=>{if(s=!0,"idle"===h.playState)return;const{currentTime:t}=h;if(t){const n=xr({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}g()},complete:()=>h.finish(),cancel:g}}const wr={type:"spring",stiffness:500,damping:25,restSpeed:10},Ar={type:"keyframes",duration:.8},Nr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},kr=(e,{keyframes:t})=>t.length>2?Ar:pn.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:wr:Nr,Gr=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Uo.test(t)&&"0"!==t||t.startsWith("url("))),Pr=new Set(["brightness","contrast","saturate","opacity"]);function Vr(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[i]=n.match(kn)||[];if(!i)return e;const o=n.replace(i,"");let r=Pr.has(t)?1:0;return i!==n&&(r*=100),t+"("+r+o+")"}const Br=/([a-z-]*)\(.*?\)/g,Tr={...Uo,getAnimatableNone:e=>{const t=e.match(Br);return t?t.map(Vr).join(" "):e}},Sr={...Ln,color:Eo,backgroundColor:Eo,outlineColor:Eo,fill:Eo,stroke:Eo,borderColor:Eo,borderTopColor:Eo,borderRightColor:Eo,borderBottomColor:Eo,borderLeftColor:Eo,filter:Tr,WebkitFilter:Tr},Er=e=>Sr[e];function Rr(e,t){let n=Er(e);return n!==Tr&&(n=Uo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Mr=e=>/^0[^.\s]+$/.test(e);function Xr(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||Mr(e):void 0}function Wr(e,t){return e[t]||e.default||e}const Lr=(e,t,n,i={})=>o=>{const r=Wr(i,e)||{},a=r.delay||i.delay||0;let{elapsed:s=0}=i;s-=eo(a);const l=function(e,t,n,i){const o=Gr(t,n);let r;r=Array.isArray(n)?[...n]:[null,n];const a=void 0!==i.from?i.from:e.get();let s;const l=[];for(let e=0;e<r.length;e++)null===r[e]&&(r[e]=0===e?a:r[e-1]),Xr(r[e])&&l.push(e),"string"==typeof r[e]&&"none"!==r[e]&&"0"!==r[e]&&(s=r[e]);if(o&&l.length&&s)for(let e=0;e<l.length;e++)r[l[e]]=Rr(t,s);return r}(t,e,n,r),c=l[0],u=l[l.length-1],d=Gr(e,c),p=Gr(e,u);Ki(d===p,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...r,delay:-s,onUpdate:e=>{t.set(e),r.onUpdate&&r.onUpdate(e)},onComplete:()=>{o(),r.onComplete&&r.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:r,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(r)||(h={...h,...kr(e,h)}),h.duration&&(h.duration=eo(h.duration)),h.repeatDelay&&(h.repeatDelay=eo(h.repeatDelay)),!d||!p||no||!1===r.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:i}){const o=()=>(n&&n(e[e.length-1]),i&&i(),{time:0,speed:1,duration:0,play:Oi,pause:Oi,stop:Oi,then:e=>(e(),Promise.resolve()),cancel:Oi,complete:Oi});return t?xr({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=Cr(t,e,h);if(n)return n}return xr(h)};function Fr(e){return Boolean(mn(e)&&e.add)}const Or=e=>/^\-?\d*\.?\d+$/.test(e);function Dr(e,t){-1===e.indexOf(t)&&e.push(t)}function Zr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class zr{constructor(){this.subscriptions=[]}add(e){return Dr(this.subscriptions,e),()=>Zr(this.subscriptions,e)}notify(e,t,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](e,t,n);else for(let o=0;o<i;o++){const i=this.subscriptions[o];i&&i(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Hr=new Set;function jr(e,t,n){e||Hr.has(t)||(console.warn(t),Hr.add(t))}class Yr{constructor(e,t={}){var n;this.version="10.12.16",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:n,timestamp:i}=Vi;this.lastUpdated!==i&&(this.timeDelta=n,this.lastUpdated=i,Xi.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Xi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return"production"!==process.env.NODE_ENV&&jr(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new zr);const n=this.events[e].add(t);return"change"===e?()=>{n(),Xi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?ar(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Jr(e,t){return new Yr(e,t)}const Ur=e=>t=>t.test(e),$r=[Cn,En,Sn,Tn,Mn,Rn,{test:e=>"auto"===e,parse:e=>e}],Qr=e=>$r.find(Ur(e)),_r=[...$r,Eo,Uo],Kr=e=>_r.find(Ur(e));function qr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Jr(n))}function ea(e,t){if(!t)return;return(t[e]||t.default||t).from}function ta({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,i}function na(e,t,{delay:n=0,transitionOverride:i,type:o}={}){let{transition:r=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");i&&(r=i);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in s){const i=e.getValue(t),o=s[t];if(!i||void 0===o||u&&ta(u,t))continue;const a={delay:n,elapsed:0,...r};if(window.HandoffAppearAnimations&&!i.hasAnimated){const n=e.getProps()[_i];n&&(a.elapsed=window.HandoffAppearAnimations(n,t,i,Xi))}i.start(Lr(t,i,o,e.shouldReduceMotion&&pn.has(t)?{type:!1}:a));const d=i.animation;Fr(l)&&(l.add(t),d.then(()=>l.remove(t))),c.push(d)}return a&&Promise.all(c).then(()=>{a&&function(e,t){const n=Qi(e,t);let{transitionEnd:i={},transition:o={},...r}=n?e.makeTargetAnimatable(n,!1):{};r={...r,...i};for(const t in r)qr(e,t,di(r[t]))}(e,a)}),c}function ia(e,t,n={}){const i=Qi(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const r=i?()=>Promise.all(na(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(i=0)=>{const{delayChildren:r=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,i=0,o=1,r){const a=[],s=(e.variantChildren.size-1)*i,l=1===o?(e=0)=>e*i:(e=0)=>s-e*i;return Array.from(e.variantChildren).sort(oa).forEach((e,i)=>{e.notify("AnimationStart",t),a.push(ia(e,t,{...r,delay:n+l(i)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,r+i,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[r,a]:[a,r];return e().then(()=>t())}return Promise.all([r(),a(n.delay)])}function oa(e,t){return e.sortNodePosition(t)}const ra=[...Jt].reverse(),aa=Jt.length;function sa(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map(t=>ia(e,t,n));i=Promise.all(o)}else if("string"==typeof t)i=ia(e,t,n);else{const o="function"==typeof t?Qi(e,t,n.custom):t;i=Promise.all(na(e,o,n))}return i.then(()=>e.notify("AnimationComplete",t))}(e,t,n)))}function la(e){let t=sa(e);const n={animate:ua(!0),whileInView:ua(),whileHover:ua(),whileTap:ua(),whileDrag:ua(),whileFocus:ua(),exit:ua()};let i=!0;const o=(t,n)=>{const i=Qi(e,n);if(i){const{transition:e,transitionEnd:n,...o}=i;t={...t,...o,...n}}return t};function r(r,a){const s=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},p=1/0;for(let t=0;t<aa;t++){const h=ra[t],m=n[h],g=void 0!==s[h]?s[h]:l[h],f=jt(g),b=h===a?m.isActive:null;!1===b&&(p=t);let v=g===l[h]&&g!==s[h]&&f;if(v&&i&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&null===b||!g&&!m.prevProp||Yt(g)||"boolean"==typeof g)continue;const y=ca(m.prevProp,g);let x=y||h===a&&m.isActive&&!v&&f||t>p&&f;const I=Array.isArray(g)?g:[g];let C=I.reduce(o,{});!1===b&&(C={});const{prevResolvedValues:w={}}=m,A={...w,...C},N=e=>{x=!0,u.delete(e),m.needsAnimating[e]=!0};for(const e in A){const t=C[e],n=w[e];d.hasOwnProperty(e)||(t!==n?ui(t)&&ui(n)?!$i(t,n)||y?N(e):m.protectedKeys[e]=!0:void 0!==t?N(e):u.add(e):void 0!==t&&u.has(e)?N(e):m.protectedKeys[e]=!0)}m.prevProp=g,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),i&&e.blockInitialAnimation&&(x=!1),x&&!v&&c.push(...I.map(e=>({animation:e,options:{type:h,...r}})))}if(u.size){const t={};u.forEach(n=>{const i=e.getBaseTarget(n);void 0!==i&&(t[n]=i)}),c.push({animation:t})}let h=Boolean(c.length);return i&&!1===s.initial&&!e.manuallyAnimateOnMount&&(h=!1),i=!1,h?t(c):Promise.resolve()}return{animateChanges:r,setActive:function(t,i,o){var a;if(n[t].isActive===i)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,i)}),n[t].isActive=i;const s=r(o,t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function ca(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!$i(t,e)}function ua(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let da=0;const pa={animation:{Feature:class extends Pi{constructor(e){super(e),e.animationState||(e.animationState=la(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Yt(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Pi{constructor(){super(...arguments),this.id=da++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then(()=>t(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},ha=(e,t)=>Math.abs(e-t);class ma{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=ba(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=ha(e.x,t.x),i=ha(e.y,t.y);return Math.sqrt(n**2+i**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:i}=e,{timestamp:o}=Vi;this.history.push({...i,timestamp:o});const{onStart:r,onMove:a}=this.handlers;t||(r&&r(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=ga(t,this.transformPagePoint),Xi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:i}=this.handlers,o=ba("pointercancel"===e.type?this.lastMoveEventInfo:ga(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),i&&i(e,o)},!vi(e))return;this.handlers=t,this.transformPagePoint=n;const i=ga(yi(e),this.transformPagePoint),{point:o}=i,{timestamp:r}=Vi;this.history=[{...o,timestamp:r}];const{onSessionStart:a}=t;a&&a(e,ba(i,this.history)),this.removeListeners=Ci(xi(window,"pointermove",this.handlePointerMove),xi(window,"pointerup",this.handlePointerUp),xi(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Wi(this.updatePoint)}}function ga(e,t){return t?{point:t(e.point)}:e}function fa(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ba({point:e},t){return{point:e,delta:fa(e,ya(t)),offset:fa(e,va(t)),velocity:xa(t,.1)}}function va(e){return e[0]}function ya(e){return e[e.length-1]}function xa(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const o=ya(e);for(;n>=0&&(i=e[n],!(o.timestamp-i.timestamp>eo(t)));)n--;if(!i)return{x:0,y:0};const r=to(o.timestamp-i.timestamp);if(0===r)return{x:0,y:0};const a={x:(o.x-i.x)/r,y:(o.y-i.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Ia(e){return e.max-e.min}function Ca(e,t=0,n=.01){return Math.abs(e-t)<=n}function wa(e,t,n,i=.5){e.origin=i,e.originPoint=Ro(t.min,t.max,e.origin),e.scale=Ia(n)/Ia(t),(Ca(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ro(n.min,n.max,e.origin)-e.originPoint,(Ca(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Aa(e,t,n,i){wa(e.x,t.x,n.x,i?i.originX:void 0),wa(e.y,t.y,n.y,i?i.originY:void 0)}function Na(e,t,n){e.min=n.min+t.min,e.max=e.min+Ia(t)}function ka(e,t,n){e.min=t.min-n.min,e.max=e.min+Ia(t)}function Ga(e,t,n){ka(e.x,t.x,n.x),ka(e.y,t.y,n.y)}function Pa(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Va(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}const Ba=.35;function Ta(e,t,n){return{min:Sa(e,t),max:Sa(e,n)}}function Sa(e,t){return"number"==typeof e?e:e[t]||0}const Ea=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Ra(e){return[e("x"),e("y")]}function Ma({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function Xa(e){return void 0===e||1===e}function Wa({scale:e,scaleX:t,scaleY:n}){return!Xa(e)||!Xa(t)||!Xa(n)}function La(e){return Wa(e)||Fa(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Fa(e){return Oa(e.x)||Oa(e.y)}function Oa(e){return e&&"0%"!==e}function Da(e,t,n){return n+t*(e-n)}function Za(e,t,n,i,o){return void 0!==o&&(e=Da(e,o,i)),Da(e,n,i)+t}function za(e,t=0,n=1,i,o){e.min=Za(e.min,t,n,i,o),e.max=Za(e.max,t,n,i,o)}function Ha(e,{x:t,y:n}){za(e.x,t.translate,t.scale,t.originPoint),za(e.y,n.translate,n.scale,n.originPoint)}function ja(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Ya(e,t){e.min=e.min+t,e.max=e.max+t}function Ja(e,t,[n,i,o]){const r=void 0!==t[o]?t[o]:.5,a=Ro(e.min,e.max,r);za(e,t[n],t[i],a,t.scale)}const Ua=["x","scaleX","originX"],$a=["y","scaleY","originY"];function Qa(e,t){Ja(e.x,t,Ua),Ja(e.y,t,$a)}function _a(e,t){return Ma(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(e.getBoundingClientRect(),t))}const Ka=new WeakMap;class qa{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new ma(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(yi(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:i,onDragStart:o}=this.getProps();if(n&&!i&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ki(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ra(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Sn.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[e];if(i){t=Ia(i)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),o&&Xi.update(()=>o(e,t),!1,!0);const{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:o,onDrag:r}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(i&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),r&&r(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=t;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Xi.update(()=>o(e,t))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:i}=this.getProps();if(!n||!es(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(r=function(e,{min:t,max:n},i){return void 0!==t&&e<t?e=i?Ro(t,e,i.min):Math.max(e,t):void 0!==n&&e>n&&(e=i?Ro(n,e,i.max):Math.min(e,n)),e}(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;e&&Ht(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:i,right:o}){return{x:Pa(e.x,n,o),y:Pa(e.y,t,i)}}(n.layoutBox,e),this.elastic=function(e=Ba){return!1===e?e=0:!0===e&&(e=Ba),{x:Ta(e,"left","right"),y:Ta(e,"top","bottom")}}(t),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Ra(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Ht(e))return!1;const n=e.current;qi(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=function(e,t,n){const i=_a(e,n),{scroll:o}=t;return o&&(Ya(i.x,o.offset.x),Ya(i.y,o.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let r=function(e,t){return{x:Va(e.x,t.x),y:Va(e.y,t.y)}}(i.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(r));this.hasMutatedConstraints=!!e,e&&(r=Ma(e))}return r}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=Ra(a=>{if(!es(a,t,this.currentDirection))return;let l=s&&s[a]||{};r&&(l={min:0,max:0});const c=i?200:1e6,u=i?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(Lr(e,n,0,t))}stopAnimation(){Ra(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),i=n[t];return i||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Ra(t=>{const{drag:n}=this.getProps();if(!es(t,n,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(t);if(i&&i.layout){const{min:n,max:r}=i.layout.layoutBox[t];o.set(e[t]-Ro(n,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Ht(t)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ra(e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();i[e]=function(e,t){let n=.5;const i=Ia(e),o=Ia(t);return o>i?n=er(t.min,t.max-i,e.min):i>o&&(n=er(e.min,e.max-o,t.min)),In(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Ra(t=>{if(!es(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:r}=this.constraints[t];n.set(Ro(o,r,i[t]))})}addListeners(){if(!this.visualElement.current)return;Ka.set(this.visualElement,this);const e=xi(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();Ht(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=bi(window,"resize",()=>this.scalePositionWithinConstraints()),r=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Ra(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),e(),i(),r&&r()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Ba,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function es(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const ts=e=>(t,n)=>{e&&Xi.update(()=>e(t,n))};const ns={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function is(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const os={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!En.test(e))return e;e=parseFloat(e)}return`${is(e,t.target.x)}% ${is(e,t.target.y)}%`}},rs={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,o=Uo.parse(e);if(o.length>5)return i;const r=Uo.createTransformer(e),a="number"!=typeof o[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=Ro(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=c),"number"==typeof o[3+a]&&(o[3+a]/=c),r(o)}};class as extends o.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=e;var r;r=ls,Object.assign(un,r),o&&(t.group&&t.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),ns.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:i,isPresent:o}=this.props,r=n.projection;return r?(r.isPresent=o,i||e.layoutDependency!==t||void 0===t?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||Xi.postRender(()=>{const e=r.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ss(e){const[t,n]=function(){const e=h(Ot);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:i}=e,o=f();return l(()=>i(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),i=h(tn);return o.createElement(as,{...e,layoutGroup:i,switchLayoutGroup:h(nn),isPresent:t,safeToRemove:n})}const ls={borderRadius:{...os,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:os,borderTopRightRadius:os,borderBottomLeftRadius:os,borderBottomRightRadius:os,boxShadow:rs},cs=["TopLeft","TopRight","BottomLeft","BottomRight"],us=cs.length,ds=e=>"string"==typeof e?parseFloat(e):e,ps=e=>"number"==typeof e||En.test(e);function hs(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const ms=fs(0,.5,xo),gs=fs(.5,.95,Oi);function fs(e,t,n){return i=>i<e?0:i>t?1:n(er(e,t,i))}function bs(e,t){e.min=t.min,e.max=t.max}function vs(e,t){bs(e.x,t.x),bs(e.y,t.y)}function ys(e,t,n,i,o){return e=Da(e-=t,1/n,i),void 0!==o&&(e=Da(e,1/o,i)),e}function xs(e,t,[n,i,o],r,a){!function(e,t=0,n=1,i=.5,o,r=e,a=e){Sn.test(t)&&(t=parseFloat(t),t=Ro(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=Ro(r.min,r.max,i);e===r&&(s-=t),e.min=ys(e.min,t,n,s,o),e.max=ys(e.max,t,n,s,o)}(e,t[n],t[i],t[o],t.scale,r,a)}const Is=["x","scaleX","originX"],Cs=["y","scaleY","originY"];function ws(e,t,n,i){xs(e.x,t,Is,n?n.x:void 0,i?i.x:void 0),xs(e.y,t,Cs,n?n.y:void 0,i?i.y:void 0)}function As(e){return 0===e.translate&&1===e.scale}function Ns(e){return As(e.x)&&As(e.y)}function ks(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Gs(e){return Ia(e.x)/Ia(e.y)}class Ps{constructor(){this.members=[]}add(e){Dr(this.members,e),e.scheduleRender()}remove(e){if(Zr(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Vs(e,t,n){let i="";const o=e.x.translate/t.x,r=e.y.translate/t.y;if((o||r)&&(i=`translate3d(${o}px, ${r}px, 0) `),1===t.x&&1===t.y||(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(i+=`rotate(${e}deg) `),t&&(i+=`rotateX(${t}deg) `),o&&(i+=`rotateY(${o}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(i+=`scale(${a}, ${s})`),i||"none"}const Bs=(e,t)=>e.depth-t.depth;class Ts{constructor(){this.children=[],this.isDirty=!1}add(e){Dr(this.children,e),this.isDirty=!0}remove(e){Zr(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Bs),this.isDirty=!1,this.children.forEach(e)}}const Ss=["","X","Y","Z"];let Es=0;const Rs={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Ms({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Es++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;Rs.totalNodes=Rs.resolvedTargetDeltas=Rs.recalculatedProjection=0,this.nodes.forEach(Ls),this.nodes.forEach(js),this.nodes.forEach(Ys),this.nodes.forEach(Fs),e=Rs,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ts)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new zr),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var i;this.isSVG=(i=t)instanceof SVGElement&&"svg"!==i.tagName,this.instance=t;const{layoutId:o,layout:r,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(r||o)&&(this.isLayoutDirty=!0),e){let n;const i=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),i=({timestamp:o})=>{const r=o-n;r>=t&&(Wi(i),e(r-t))};return Xi.read(i,!0),()=>Wi(i)}(i,250),ns.hasAnimatedSinceResize&&(ns.hasAnimatedSinceResize=!1,this.nodes.forEach(Hs))})}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||Ks,{onLayoutAnimationStart:r,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!ks(this.targetLayout,i)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...Wr(o,"layout"),onPlay:r,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Hs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Wi(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Js),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Ds);this.isUpdating||this.nodes.forEach(Zs),this.isUpdating=!1,this.nodes.forEach(zs),this.nodes.forEach(Xs),this.nodes.forEach(Ws),this.clearAllSnapshots();const e=performance.now();Vi.delta=In(0,1e3/60,e-Vi.timestamp),Vi.timestamp=e,Vi.isProcessing=!0,Ei.update.process(Vi),Ei.preRender.process(Vi),Ei.render.process(Vi),Vi.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Os),this.sharedNodes.forEach(Us)}scheduleUpdateProjection(){Xi.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Xi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!Ns(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,r=i!==this.prevTransformTemplateValue;e&&(t||La(this.latestValues)||r)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var i;return e&&(n=this.removeTransform(n)),qs((i=n).x),qs(i.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(Ya(t.x,n.offset.x),Ya(t.y,n.offset.y)),t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};vs(t,e);for(let n=0;n<this.path.length;n++){const i=this.path[n],{scroll:o,options:r}=i;if(i!==this.root&&o&&r.layoutScroll){if(o.isRoot){vs(t,e);const{scroll:n}=this.root;n&&(Ya(t.x,-n.offset.x),Ya(t.y,-n.offset.y))}Ya(t.x,o.offset.x),Ya(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};vs(n,e);for(let e=0;e<this.path.length;e++){const i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Qa(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),La(i.latestValues)&&Qa(n,i.latestValues)}return La(this.latestValues)&&Qa(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};vs(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!La(n.latestValues))continue;Wa(n.latestValues)&&n.updateSnapshot();const i=Ea();vs(i,n.measurePageBox()),ws(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,i)}return La(this.latestValues)&&ws(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Vi.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const i=Boolean(this.resumingFrom)||this!==n;if(!(e||i&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:r}=this.options;if(this.layout&&(o||r)){if(this.resolvedRelativeTargetAt=Vi.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ga(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),vs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,Na(a.x,s.x,l.x),Na(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):vs(this.target,this.layout.layoutBox),Ha(this.target,this.targetDelta)):vs(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ga(this.relativeTargetOrigin,this.target,e.target),vs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Rs.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Wa(this.parent.latestValues)&&!Fa(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let i=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===Vi.timestamp&&(i=!1),i)return;const{layout:o,layoutId:r}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!r)return;vs(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,i=!1){const o=n.length;if(!o)return;let r,a;t.x=t.y=1;for(let s=0;s<o;s++){r=n[s],a=r.projectionDelta;const o=r.instance;o&&o.style&&"contents"===o.style.display||(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Qa(e,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Ha(e,a)),i&&La(r.latestValues)&&Qa(e,r.latestValues))}t.x=ja(t.x),t.y=ja(t.y)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox);const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const c=this.projectionTransform;Aa(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Vs(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Rs.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,i=n?n.latestValues:{},o={...this.latestValues},r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a={x:{min:0,max:0},y:{min:0,max:0}},s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(_s));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;$s(r.x,e.x,n),$s(r.y,e.y,n),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ga(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,i){Qs(e.x,t.x,n.x,i),Qs(e.y,t.y,n.y,i)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&ks(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),vs(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,i,o,r){o?(e.opacity=Ro(0,void 0!==n.opacity?n.opacity:1,ms(i)),e.opacityExit=Ro(void 0!==t.opacity?t.opacity:1,0,gs(i))):r&&(e.opacity=Ro(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let o=0;o<us;o++){const r=`border${cs[o]}Radius`;let a=hs(t,r),s=hs(n,r);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||ps(a)===ps(s)?(e[r]=Math.max(Ro(ds(a),ds(s),i),0),(Sn.test(s)||Sn.test(a))&&(e[r]+="%")):e[r]=s)}(t.rotate||n.rotate)&&(e.rotate=Ro(t.rotate||0,n.rotate||0,i))}(o,i,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Wi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Xi.update(()=>{ns.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const i=mn(e)?e:Jr(e);return i.start(Lr("",i,t,n)),i.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:i,latestValues:o}=e;if(t&&n&&i){if(this!==e&&this.layout&&i&&el(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=Ia(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const i=Ia(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+i}vs(t,n),Qa(t,o),Aa(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ps);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const i={};for(let t=0;t<Ss.length;t++){const o="rotate"+Ss[t];n[o]&&(i[o]=n[o],e.setStaticValue(o,0))}e.render();for(const t in i)e.setStaticValue(t,i[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const i={};if(!this.instance||this.isSVG)return i;if(!this.isVisible)return{visibility:"hidden"};i.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=pi(e.pointerEvents)||"",i.transform=o?o(this.latestValues,""):"none",i;const r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=pi(e.pointerEvents)||""),this.hasProjected&&!La(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=r.animationValues||r.latestValues;this.applyTransformsToTarget(),i.transform=Vs(this.projectionDeltaWithTransform,this.treeScale,a),o&&(i.transform=o(a,i.transform));const{x:s,y:l}=this.projectionDelta;i.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,r.animationValues?i.opacity=r===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:i.opacity=r===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in un){if(void 0===a[e])continue;const{correct:t,applyTo:n}=un[e],o="none"===i.transform?a[e]:t(a[e],r);if(n){const e=n.length;for(let t=0;t<e;t++)i[n[t]]=o}else i[e]=o}return this.options.layoutId&&(i.pointerEvents=r===this?pi(e.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(Ds),this.root.sharedNodes.clear()}}}function Xs(e){e.updateLayout()}function Ws(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:i}=e.layout,{animationType:o}=e.options,r=n.source!==e.layout.source;"size"===o?Ra(e=>{const i=r?n.measuredBox[e]:n.layoutBox[e],o=Ia(i);i.min=t[e].min,i.max=i.min+o}):el(o,n.layoutBox,t)&&Ra(i=>{const o=r?n.measuredBox[i]:n.layoutBox[i],a=Ia(t[i]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+a)});const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Aa(a,t,n.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};r?Aa(s,e.applyTransform(i,!0),n.measuredBox):Aa(s,t,n.layoutBox);const l=!Ns(a);let c=!1;if(!e.resumeFrom){const i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:o,layout:r}=i;if(o&&r){const a={x:{min:0,max:0},y:{min:0,max:0}};Ga(a,n.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};Ga(s,t,r.layoutBox),ks(a,s)||(c=!0),i.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Ls(e){Rs.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Fs(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Os(e){e.clearSnapshot()}function Ds(e){e.clearMeasurements()}function Zs(e){e.isLayoutDirty=!1}function zs(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Hs(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function js(e){e.resolveTargetDelta()}function Ys(e){e.calcProjection()}function Js(e){e.resetRotation()}function Us(e){e.removeLeadSnapshot()}function $s(e,t,n){e.translate=Ro(t.translate,0,n),e.scale=Ro(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Qs(e,t,n,i){e.min=Ro(t.min,n.min,i),e.max=Ro(t.max,n.max,i)}function _s(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Ks={duration:.45,ease:[.4,0,.1,1]};function qs(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function el(e,t,n){return"position"===e||"preserve-aspect"===e&&!Ca(Gs(t),Gs(n),.2)}const tl=Ms({attachResizeListener:(e,t)=>bi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),nl={current:void 0},il=Ms({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!nl.current){const e=new tl({});e.mount(window),e.setOptions({layoutScroll:!0}),nl.current=e}return nl.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),ol={pan:{Feature:class extends Pi{constructor(){super(...arguments),this.removePointerDownListener=Oi}onPointerDown(e){this.session=new ma(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:ts(e),onStart:ts(t),onMove:n,onEnd:(e,t)=>{delete this.session,i&&Xi.update(()=>i(e,t))}}}mount(){this.removePointerDownListener=xi(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Pi{constructor(e){super(e),this.removeGroupControls=Oi,this.removeListeners=Oi,this.controls=new qa(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Oi}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:il,MeasureLayout:ss}},rl=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function al(e,t,n=1){qi(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[i,o]=function(e){const t=rl.exec(e);if(!t)return[,];const[,n,i]=t;return[n,i]}(e);if(!i)return;const r=window.getComputedStyle(t).getPropertyValue(i);return r?r.trim():yn(o)?al(o,t,n+1):o}const sl=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ll=e=>sl.has(e),cl=e=>e===Cn||e===En,ul=(e,t)=>parseFloat(e.split(", ")[t]),dl=(e,t)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/);if(o)return ul(o[1],t);{const t=i.match(/^matrix\((.+)\)$/);return t?ul(t[1],e):0}},pl=new Set(["x","y","z"]),hl=dn.filter(e=>!pl.has(e));const ml={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:dl(4,13),y:dl(5,14)},gl=(e,t,n={},i={})=>{t={...t},i={...i};const o=Object.keys(t).filter(ll);let r=[],a=!1;const s=[];if(o.forEach(o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=n[o],u=Qr(c);const d=t[o];let p;if(ui(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=Qr(c);for(let n=t;n<e&&null!==d[n];n++)p?qi(Qr(d[n])===p,"All keyframes must be of the same type"):(p=Qr(d[n]),qi(p===u||cl(u)&&cl(p),"Keyframes must be of the same dimension as the current value"))}else p=Qr(d);if(u!==p)if(cl(u)&&cl(p)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&p===En&&(t[o]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==p?void 0:p.transform)&&(0===c||0===d)?0===c?l.set(p.transform(c)):t[o]=u.transform(d):(a||(r=function(e){const t=[];return hl.forEach(n=>{const i=e.getValue(n);void 0!==i&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),s.push(o),i[o]=void 0!==i[o]?i[o]:t[o],l.jump(d))}),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const i=t.measureViewportBox(),o=t.current,r=getComputedStyle(o),{display:a}=r,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{s[e]=ml[e](i,r)}),t.render();const l=t.measureViewportBox();return n.forEach(n=>{const i=t.getValue(n);i&&i.jump(s[n]),e[n]=ml[n](l,r)}),e})(t,e,s);return r.length&&r.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),Dt&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:i}}return{target:t,transitionEnd:i}};function fl(e,t,n,i){return(e=>Object.keys(e).some(ll))(t)?gl(e,t,n,i):{target:t,transitionEnd:i}}const bl=(e,t,n,i)=>{const o=function(e,{...t},n){const i=e.current;if(!(i instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(e=>{const t=e.get();if(!yn(t))return;const n=al(t,i);n&&e.set(n)});for(const e in t){const o=t[e];if(!yn(o))continue;const r=al(o,i);r&&(t[e]=r,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,i);return fl(e,t=o.target,n,i=o.transitionEnd)},vl={current:null},yl={current:!1};const xl=new WeakMap,Il=Object.keys(en),Cl=Il.length,wl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Al=Ut.length;class Nl{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Xi.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=r,this.isControllingVariants=$t(t),this.isVariantNode=Qt(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==a[e]&&mn(t)&&(t.set(a[e],!1),Fr(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,xl.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),yl.current||function(){if(yl.current=!0,Dt)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vl.current=e.matches;e.addListener(t),t()}else vl.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||vl.current),"production"!==process.env.NODE_ENV&&jr(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){xl.delete(this.current),this.projection&&this.projection.unmount(),Wi(this.notifyUpdate),Wi(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=pn.has(e),i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&Xi.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,i,o){let r,a;if("production"!==process.env.NODE_ENV&&i&&n){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Ki(!1,e):qi(!1,e)}for(let e=0;e<Cl;e++){const n=Il[e],{isEnabled:i,Feature:o,ProjectionNode:s,MeasureLayout:l}=en[n];s&&(r=s),i(t)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(a=l))}if(!this.projection&&r){this.projection=new r(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:i,dragConstraints:a,layoutScroll:s,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(i)||a&&Ht(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<wl.length;t++){const n=wl[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const i=e["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(e,t,n){const{willChange:i}=t;for(const o in t){const r=t[o],a=n[o];if(mn(r))e.addValue(o,r),Fr(i)&&i.add(o),"development"===process.env.NODE_ENV&&jr("10.12.16"===r.version,`Attempting to mix Framer Motion versions ${r.version} with 10.12.16 may not work as expected.`);else if(mn(a))e.addValue(o,Jr(r,{owner:e})),Fr(i)&&i.remove(o);else if(a!==r)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(r)}else{const t=e.getStaticValue(o);e.addValue(o,Jr(void 0!==t?t:r,{owner:e}))}}for(const i in n)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<Al;e++){const n=Ut[e],i=this.props[n];(jt(i)||!1===i)&&(t[n]=i)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Jr(t,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,i="string"==typeof n||"object"==typeof n?null===(t=li(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==i)return i;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||mn(o)?void 0!==this.initialValues[e]&&void 0===i?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new zr),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class kl extends Nl{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:i},o){let r=function(e,t,n){const i={};for(const o in e){const e=ea(o,t);if(void 0!==e)i[o]=e;else{const e=n.getValue(o);e&&(i[o]=e.get())}}return i}(n,e||{},this);if(i&&(t&&(t=i(t)),n&&(n=i(n)),r&&(r=i(r))),o){!function(e,t,n){var i,o;const r=Object.keys(t).filter(t=>!e.hasValue(t)),a=r.length;if(a)for(let s=0;s<a;s++){const a=r[s],l=t[a];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(o=null!==(i=n[a])&&void 0!==i?i:e.readValue(a))&&void 0!==o?o:t[a]),null!=c&&("string"==typeof c&&(Or(c)||Mr(c))?c=parseFloat(c):!Kr(c)&&Uo.test(l)&&(c=Rr(a,l)),e.addValue(a,Jr(c,{owner:e})),void 0===n[a]&&(n[a]=c),null!==c&&e.setBaseTarget(a,c))}}(this,n,r);const e=bl(this,n,r,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class Gl extends kl{readValueFromInstance(e,t){if(pn.has(t)){const e=Er(t);return e&&e.default||0}{const i=(n=e,window.getComputedStyle(n)),o=(vn(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return _a(e,t)}build(e,t,n,i){Fn(e,t,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,t){return ai(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;mn(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,i){ii(e,t,n,i)}}class Pl extends kl{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(pn.has(t)){const e=Er(t);return e&&e.default||0}return t=oi.has(t)?t:ni(t),e.getAttribute(t)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e,t){return si(e,t)}build(e,t,n,i){_n(e,t,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,t,n,i){ri(e,t,0,i)}mount(e){this.isSVGTag=qn(e.tagName),super.mount(e)}}const Vl=(e,t)=>cn(e)?new Pl(t,{enableHardwareAcceleration:!1}):new Gl(t,{enableHardwareAcceleration:!0}),Bl={...pa,...Ui,...ol,...{layout:{ProjectionNode:il,MeasureLayout:ss}}},Tl=sn((e,t)=>function(e,{forwardMotionProps:t=!1},n,i){return{...cn(e)?gi:fi,preloadedFeatures:n,useRender:ti(t),createVisualElement:i,Component:e}}(e,t,Bl,Vl));function Sl(){const e=a(!1);return Zt(()=>(e.current=!0,()=>{e.current=!1}),[]),e}class El extends i.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Rl({children:e,isPresent:t}){const n=f(),o=a(null),r=a({width:0,height:0,top:0,left:0});return m(()=>{const{width:e,height:i,top:a,left:s}=r.current;if(t||!o.current||!e||!i)return;o.current.dataset.motionPopId=n;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${i}px !important;\n top: ${a}px !important;\n left: ${s}px !important;\n }\n `),()=>{document.head.removeChild(l)}},[t]),i.createElement(El,{isPresent:t,childRef:o,sizeRef:r},i.cloneElement(e,{ref:o}))}const Ml=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:r,presenceAffectsLayout:a,mode:s})=>{const l=ci(Xl),c=f(),d=u(()=>({id:c,initial:t,isPresent:n,custom:r,onExitComplete:e=>{l.set(e,!0);for(const e of l.values())if(!e)return;o&&o()},register:e=>(l.set(e,!1),()=>l.delete(e))}),a?void 0:[n]);return u(()=>{l.forEach((e,t)=>l.set(t,!1))},[n]),i.useEffect(()=>{!n&&!l.size&&o&&o()},[n]),"popLayout"===s&&(e=i.createElement(Rl,{isPresent:n},e)),i.createElement(Ot.Provider,{value:d},e)};function Xl(){return new Map}const Wl=e=>e.key||"";const Ll=({children:e,custom:t,initial:n=!0,onExitComplete:o,exitBeforeEnter:r,presenceAffectsLayout:u=!0,mode:d="sync"})=>{qi(!r,"Replace exitBeforeEnter with mode='wait'");const p=h(tn).forceRender||function(){const e=Sl(),[t,n]=s(0),i=c(()=>{e.current&&n(t+1)},[t]);return[c(()=>Xi.postRender(i),[i]),t]}()[0],m=Sl(),g=function(e){const t=[];return v.forEach(e,e=>{y(e)&&t.push(e)}),t}(e);let f=g;const x=a(new Map).current,I=a(f),C=a(new Map).current,w=a(!0);var A;if(Zt(()=>{w.current=!1,function(e,t){e.forEach(e=>{const n=Wl(e);t.set(n,e)})}(g,C),I.current=f}),A=()=>{w.current=!0,C.clear(),x.clear()},l(()=>()=>A(),[]),w.current)return i.createElement(i.Fragment,null,f.map(e=>i.createElement(Ml,{key:Wl(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:u,mode:d},e)));f=[...f];const N=I.current.map(Wl),k=g.map(Wl),G=N.length;for(let e=0;e<G;e++){const t=N[e];-1!==k.indexOf(t)||x.has(t)||x.set(t,void 0)}return"wait"===d&&x.size&&(f=[]),x.forEach((e,n)=>{if(-1!==k.indexOf(n))return;const r=C.get(n);if(!r)return;const a=N.indexOf(n);let s=e;if(!s){const e=()=>{C.delete(n),x.delete(n);const e=I.current.findIndex(e=>e.key===n);if(I.current.splice(e,1),!x.size){if(I.current=g,!1===m.current)return;p(),o&&o()}};s=i.createElement(Ml,{key:Wl(r),isPresent:!1,onExitComplete:e,custom:t,presenceAffectsLayout:u,mode:d},r),x.set(n,s)}f.splice(a,0,s)}),f=f.map(e=>{const t=e.key;return x.has(t)?e:i.createElement(Ml,{key:Wl(e),isPresent:!0,presenceAffectsLayout:u,mode:d},e)}),"production"!==process.env.NODE_ENV&&"wait"===d&&f.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),i.createElement(i.Fragment,null,x.size?f:f.map(e=>b(e)))};function Fl(){return Fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Fl.apply(null,arguments)}function Ol(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(null==e||e(i),!1===n||!i.defaultPrevented)return null==t?void 0:t(i)}}function Dl(...e){return t=>e.forEach(e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t))}function Zl(...e){return c(Dl(...e),e)}function zl(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const i=n.reduce((t,{useScope:n,scopeName:i})=>({...t,...n(e)[`__scope${i}`]}),{});return u(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}const Hl=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?p:()=>{},jl=i["useId".toString()]||(()=>{});let Yl=0;function Jl(e){const[t,n]=i.useState(jl());return Hl(()=>{n(e=>null!=e?e:String(Yl++))},[e]),e||(t?`radix-${t}`:"")}function Ul(e){const t=a(e);return l(()=>{t.current=e}),u(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}function $l({prop:e,defaultProp:t,onChange:n=()=>{}}){const[i,o]=function({defaultProp:e,onChange:t}){const n=s(e),[i]=n,o=a(i),r=Ul(t);return l(()=>{o.current!==i&&(r(i),o.current=i)},[i,o,r]),n}({defaultProp:t,onChange:n}),r=void 0!==e,u=r?e:i,d=Ul(n);return[u,c(t=>{if(r){const n="function"==typeof t?t(e):t;n!==e&&d(n)}else o(t)},[r,e,o,d])]}const Ql=r((e,t)=>{const{children:n,...i}=e,o=v.toArray(n),r=o.find(ql);if(r){const e=r.props.children,n=o.map(t=>t===r?v.count(e)>1?v.only(null):y(e)?e.props.children:null:t);return g(_l,Fl({},i,{ref:t}),y(e)?b(e,void 0,n):null)}return g(_l,Fl({},i,{ref:t}),n)});Ql.displayName="Slot";const _l=r((e,t)=>{const{children:n,...i}=e;return y(n)?b(n,{...ec(i,n.props),ref:t?Dl(t,n.ref):n.ref}):v.count(n)>1?v.only(null):null});_l.displayName="SlotClone";const Kl=({children:e})=>g(x,null,e);function ql(e){return y(e)&&e.type===Kl}function ec(e,t){const n={...t};for(const i in t){const o=e[i],r=t[i];/^on[A-Z]/.test(i)?o&&r?n[i]=(...e)=>{r(...e),o(...e)}:o&&(n[i]=o):"style"===i?n[i]={...o,...r}:"className"===i&&(n[i]=[o,r].filter(Boolean).join(" "))}return{...e,...n}}const tc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=r((e,n)=>{const{asChild:i,...o}=e,r=i?Ql:t;return l(()=>{window[Symbol.for("radix-ui")]=!0},[]),g(r,Fl({},o,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});const nc="dismissableLayer.update",ic="dismissableLayer.pointerDownOutside",oc="dismissableLayer.focusOutside";let rc;const ac=d({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sc=r((e,t)=>{var n;const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:c,onInteractOutside:u,onDismiss:d,...p}=e,m=h(ac),[f,b]=s(null),v=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,y]=s({}),x=Zl(t,e=>b(e)),I=Array.from(m.layers),[C]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),w=I.indexOf(C),A=f?I.indexOf(f):-1,N=m.layersWithOutsidePointerEventsDisabled.size>0,k=A>=w,G=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Ul(e),i=a(!1),o=a(()=>{});return l(()=>{const e=e=>{if(e.target&&!i.current){const r={originalEvent:e};function a(){cc(ic,n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);i.current=!1},r=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}(e=>{const t=e.target,n=[...m.branches].some(e=>e.contains(t));k&&!n&&(null==r||r(e),null==u||u(e),e.defaultPrevented||null==d||d())},v),P=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Ul(e),i=a(!1);return l(()=>{const e=e=>{if(e.target&&!i.current){cc(oc,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{const t=e.target;[...m.branches].some(e=>e.contains(t))||(null==c||c(e),null==u||u(e),e.defaultPrevented||null==d||d())},v);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Ul(e);l(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{A===m.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))},v),l(()=>{if(f)return i&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(rc=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(f)),m.layers.add(f),lc(),()=>{i&&1===m.layersWithOutsidePointerEventsDisabled.size&&(v.body.style.pointerEvents=rc)}},[f,v,i,m]),l(()=>()=>{f&&(m.layers.delete(f),m.layersWithOutsidePointerEventsDisabled.delete(f),lc())},[f,m]),l(()=>{const e=()=>y({});return document.addEventListener(nc,e),()=>document.removeEventListener(nc,e)},[]),g(tc.div,Fl({},p,{ref:x,style:{pointerEvents:N?k?"auto":"none":void 0,...e.style},onFocusCapture:Ol(e.onFocusCapture,P.onFocusCapture),onBlurCapture:Ol(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Ol(e.onPointerDownCapture,G.onPointerDownCapture)}))});function lc(){const e=new CustomEvent(nc);document.dispatchEvent(e)}function cc(e,t,n,{discrete:i}){const o=n.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?function(e,t){e&&N(()=>e.dispatchEvent(t))}(o,r):o.dispatchEvent(r)}const uc="focusScope.autoFocusOnMount",dc="focusScope.autoFocusOnUnmount",pc={bubbles:!1,cancelable:!0},hc=r((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:r,...u}=e,[d,p]=s(null),h=Ul(o),m=Ul(r),f=a(null),b=Zl(t,e=>p(e)),v=a({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l(()=>{if(i){function e(e){if(v.paused||!d)return;const t=e.target;d.contains(t)?f.current=t:bc(f.current,{select:!0})}function t(e){if(v.paused||!d)return;const t=e.relatedTarget;null!==t&&(d.contains(t)||bc(f.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&bc(d)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const o=new MutationObserver(n);return d&&o.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}},[i,d,v.paused]),l(()=>{if(d){vc.add(v);const t=document.activeElement;if(!d.contains(t)){const n=new CustomEvent(uc,pc);d.addEventListener(uc,h),d.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(bc(i,{select:t}),document.activeElement!==n)return}((e=mc(d),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&bc(d))}return()=>{d.removeEventListener(uc,h),setTimeout(()=>{const e=new CustomEvent(dc,pc);d.addEventListener(dc,m),d.dispatchEvent(e),e.defaultPrevented||bc(null!=t?t:document.body,{select:!0}),d.removeEventListener(dc,m),vc.remove(v)},0)}}var e},[d,h,m,v]);const y=c(e=>{if(!n&&!i)return;if(v.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[i,r]=function(e){const t=mc(e),n=gc(t,e),i=gc(t.reverse(),e);return[n,i]}(t);i&&r?e.shiftKey||o!==r?e.shiftKey&&o===i&&(e.preventDefault(),n&&bc(r,{select:!0})):(e.preventDefault(),n&&bc(i,{select:!0})):o===t&&e.preventDefault()}},[n,i,v.paused]);return g(tc.div,Fl({tabIndex:-1},u,{ref:b,onKeyDown:y}))});function mc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function gc(e,t){for(const n of e)if(!fc(n,{upTo:t}))return n}function fc(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function bc(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const vc=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=yc(e,t),e.unshift(t)},remove(t){var n;e=yc(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function yc(e,t){const n=[...e],i=n.indexOf(t);return-1!==i&&n.splice(i,1),n}const xc=r((e,t)=>{var n;const{container:i=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return i?A.createPortal(g(tc.div,Fl({},o,{ref:t})),i):null});const Ic=e=>{const{present:t,children:n}=e,i=function(e){const[t,n]=s(),i=a({}),o=a(e),r=a("none"),u=e?"mounted":"unmounted",[d,p]=function(e,t){return I((e,n)=>{const i=t[e][n];return null!=i?i:e},e)}(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l(()=>{const e=Cc(i.current);r.current="mounted"===d?e:"none"},[d]),Hl(()=>{const t=i.current,n=o.current;if(n!==e){const i=r.current,a=Cc(t);if(e)p("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))p("UNMOUNT");else{p(n&&i!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,p]),Hl(()=>{if(t){const e=e=>{const n=Cc(i.current).includes(e.animationName);e.target===t&&n&&N(()=>p("ANIMATION_END"))},n=e=>{e.target===t&&(r.current=Cc(i.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:c(e=>{e&&(i.current=getComputedStyle(e)),n(e)},[])}}(t),o="function"==typeof n?n({present:i.isPresent}):v.only(n),r=Zl(i.ref,o.ref);return"function"==typeof n||i.isPresent?b(o,{ref:r}):null};function Cc(e){return(null==e?void 0:e.animationName)||"none"}Ic.displayName="Presence";let wc=0;function Ac(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Nc=function(){return Nc=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Nc.apply(this,arguments)};function kc(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var Gc="right-scroll-bar-position",Pc="width-before-scroll-bar";function Vc(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Bc="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,Tc=new WeakMap;function Sc(e,t){var n,i,o,r=(n=null,i=function(t){return e.forEach(function(e){return Vc(e,t)})},(o=s(function(){return{value:n,callback:i,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=i,o.facade);return Bc(function(){var t=Tc.get(r);if(t){var n=new Set(t),i=new Set(e),o=r.current;n.forEach(function(e){i.has(e)||Vc(e,null)}),i.forEach(function(e){n.has(e)||Vc(e,o)})}Tc.set(r,e)},[e]),r}function Ec(e){return e}var Rc=function(e){var t=e.sideCar,n=kc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return i.createElement(o,Nc({},n))};Rc.isSideCarExport=!0;var Mc=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Ec);var n=[],i=!1,o={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,i);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(i=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){i=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var r=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(r)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=Nc({async:!0,ssr:!1},e),t}(),Xc=function(){},Wc=i.forwardRef(function(e,t){var n=i.useRef(null),o=i.useState({onScrollCapture:Xc,onWheelCapture:Xc,onTouchMoveCapture:Xc}),r=o[0],a=o[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,h=e.sideCar,m=e.noIsolation,g=e.inert,f=e.allowPinchZoom,b=e.as,v=void 0===b?"div":b,y=kc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),x=h,I=Sc([n,t]),C=Nc(Nc({},y),r);return i.createElement(i.Fragment,null,d&&i.createElement(x,{sideCar:Mc,removeScrollBar:u,shards:p,noIsolation:m,inert:g,setCallbacks:a,allowPinchZoom:!!f,lockRef:n}),s?i.cloneElement(i.Children.only(l),Nc(Nc({},C),{ref:I})):i.createElement(v,Nc({},C,{className:c,ref:I}),l))});Wc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Wc.classNames={fullWidth:Pc,zeroRight:Gc};function Lc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Fc=function(){var e=0,t=null;return{add:function(n){var i;0==e&&(t=Lc())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Oc=function(){var e,t=(e=Fc(),function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,i=e.dynamic;return t(n,i),null}},Dc={left:0,top:0,right:0,gap:0},Zc=function(e){return parseInt(e||"",10)||0},zc=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Dc;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],i=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Zc(n),Zc(i),Zc(o)]}(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},Hc=Oc(),jc="data-scroll-locked",Yc=function(e,t,n,i){var o=e.left,r=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(i,";\n padding-right: ").concat(s,"px ").concat(i,";\n }\n body[").concat(jc,"] {\n overflow: hidden ").concat(i,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(i,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(r,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(i,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(i,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Gc," {\n right: ").concat(s,"px ").concat(i,";\n }\n \n .").concat(Pc," {\n margin-right: ").concat(s,"px ").concat(i,";\n }\n \n .").concat(Gc," .").concat(Gc," {\n right: 0 ").concat(i,";\n }\n \n .").concat(Pc," .").concat(Pc," {\n margin-right: 0 ").concat(i,";\n }\n \n body[").concat(jc,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Jc=function(){var e=parseInt(document.body.getAttribute(jc)||"0",10);return isFinite(e)?e:0},Uc=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=void 0===o?"margin":o;i.useEffect(function(){return document.body.setAttribute(jc,(Jc()+1).toString()),function(){var e=Jc()-1;e<=0?document.body.removeAttribute(jc):document.body.setAttribute(jc,e.toString())}},[]);var a=i.useMemo(function(){return zc(r)},[r]);return i.createElement(Hc,{styles:Yc(a,!t,r,n?"":"!important")})},$c=!1;if("undefined"!=typeof window)try{var Qc=Object.defineProperty({},"passive",{get:function(){return $c=!0,!0}});window.addEventListener("test",Qc,Qc),window.removeEventListener("test",Qc,Qc)}catch(e){$c=!1}var _c=!!$c&&{passive:!1},Kc=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},qc=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),eu(e,n)){var i=tu(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},eu=function(e,t){return"v"===e?function(e){return Kc(e,"overflowY")}(t):function(e){return Kc(e,"overflowX")}(t)},tu=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},nu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},iu=function(e){return[e.deltaX,e.deltaY]},ou=function(e){return e&&"current"in e?e.current:e},ru=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},au=0,su=[];var lu,cu=(lu=function(e){var t=i.useRef([]),n=i.useRef([0,0]),o=i.useRef(),r=i.useState(au++)[0],a=i.useState(function(){return Oc()})[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var t=function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(ou),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var l=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var i,r=nu(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-r[0],c="deltaY"in e?e.deltaY:a[1]-r[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=qc(d,u);if(!p)return!0;if(p?i=d:(i="v"===d?"h":"v",p=qc(d,u)),!p)return!1;if(!o.current&&"changedTouches"in e&&(l||c)&&(o.current=i),!i)return!0;var h=o.current||i;return function(e,t,n,i){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),r=o*i,a=n.target,s=t.contains(a),l=!1,c=r>0,u=0,d=0;do{var p=tu(e,a),h=p[0],m=p[1]-p[2]-o*h;(h||m)&&eu(e,a)&&(u+=m,d+=h),a=a.parentNode}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return c&&0===u?l=!0:c||0!==d||(l=!0),l}(h,t,e,"h"===h?l:c)},[]),c=i.useCallback(function(e){var n=e;if(su.length&&su[su.length-1]===a){var i="deltaY"in n?iu(n):nu(n),o=t.current.filter(function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=i,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var r=(s.current.shards||[]).map(ou).filter(Boolean).filter(function(e){return e.contains(n.target)});(r.length>0?l(n,r[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=i.useCallback(function(e,n,i,o){var r={name:e,delta:n,target:i,should:o};t.current.push(r),setTimeout(function(){t.current=t.current.filter(function(e){return e!==r})},1)},[]),d=i.useCallback(function(e){n.current=nu(e),o.current=void 0},[]),p=i.useCallback(function(t){u(t.type,iu(t),t.target,l(t,e.lockRef.current))},[]),h=i.useCallback(function(t){u(t.type,nu(t),t.target,l(t,e.lockRef.current))},[]);i.useEffect(function(){return su.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",c,_c),document.addEventListener("touchmove",c,_c),document.addEventListener("touchstart",d,_c),function(){su=su.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,_c),document.removeEventListener("touchmove",c,_c),document.removeEventListener("touchstart",d,_c)}},[]);var m=e.removeScrollBar,g=e.inert;return i.createElement(i.Fragment,null,g?i.createElement(a,{styles:ru(r)}):null,m?i.createElement(Uc,{gapMode:"margin"}):null)},Mc.useMedium(lu),Rc),uu=i.forwardRef(function(e,t){return i.createElement(Wc,Nc({},e,{ref:t,sideCar:cu}))});uu.classNames=Wc.classNames;var du=new WeakMap,pu=new WeakMap,hu={},mu=0,gu=function(e){return e&&(e.host||gu(e.parentNode))},fu=function(e,t,n,i){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=gu(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);hu[n]||(hu[n]=new WeakMap);var r=hu[n],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(i),o=null!==t&&"false"!==t,l=(du.get(e)||0)+1,c=(r.get(e)||0)+1;du.set(e,l),r.set(e,c),a.push(e),1===l&&o&&pu.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(i,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),s.clear(),mu++,function(){a.forEach(function(e){var t=du.get(e)-1,o=r.get(e)-1;du.set(e,t),r.set(e,o),t||(pu.has(e)||e.removeAttribute(i),pu.delete(e)),o||e.removeAttribute(n)}),--mu||(du=new WeakMap,du=new WeakMap,pu=new WeakMap,hu={})}},bu=function(e,t,n){void 0===n&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),fu(i,o,n,"aria-hidden")):function(){return null}};const vu="Dialog",[yu,xu]=function(e,t=[]){let n=[];const i=()=>{const t=n.map(e=>d(e));return function(n){const i=(null==n?void 0:n[e])||t;return u(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){const o=d(i),r=n.length;function a(t){const{scope:n,children:i,...a}=t,s=(null==n?void 0:n[e][r])||o,l=u(()=>a,Object.values(a));return g(s.Provider,{value:l},i)}return n=[...n,i],a.displayName=t+"Provider",[a,function(n,a){const s=(null==a?void 0:a[e][r])||o,l=h(s);if(l)return l;if(void 0!==i)return i;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},zl(i,...t)]}(vu),[Iu,Cu]=yu(vu),wu="DialogPortal",[Au,Nu]=yu(wu,{forceMount:void 0}),ku="DialogOverlay",Gu=r((e,t)=>{const n=Nu(ku,e.__scopeDialog),{forceMount:i=n.forceMount,...o}=e,r=Cu(ku,e.__scopeDialog);return r.modal?g(Ic,{present:i||r.open},g(Pu,Fl({},o,{ref:t}))):null}),Pu=r((e,t)=>{const{__scopeDialog:n,...i}=e,o=Cu(ku,n);return g(uu,{as:Ql,allowPinchZoom:!0,shards:[o.contentRef]},g(tc.div,Fl({"data-state":Wu(o.open)},i,{ref:t,style:{pointerEvents:"auto",...i.style}})))}),Vu="DialogContent",Bu=r((e,t)=>{const n=Nu(Vu,e.__scopeDialog),{forceMount:i=n.forceMount,...o}=e,r=Cu(Vu,e.__scopeDialog);return g(Ic,{present:i||r.open},r.modal?g(Tu,Fl({},o,{ref:t})):g(Su,Fl({},o,{ref:t})))}),Tu=r((e,t)=>{const n=Cu(Vu,e.__scopeDialog),i=a(null),o=Zl(t,n.contentRef,i);return l(()=>{const e=i.current;if(e)return bu(e)},[]),g(Eu,Fl({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ol(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:Ol(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:Ol(e.onFocusOutside,e=>e.preventDefault())}))}),Su=r((e,t)=>{const n=Cu(Vu,e.__scopeDialog),i=a(!1),o=a(!1);return g(Eu,Fl({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,a;(null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented)||(i.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault());i.current=!1,o.current=!1},onInteractOutside:t=>{var r,a;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const s=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))}),Eu=r((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:r,...s}=e,c=Cu(Vu,n),u=Zl(t,a(null));return l(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Ac()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Ac()),wc++,()=>{1===wc&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),wc--}},[]),g(x,null,g(hc,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:r},g(sc,Fl({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Wu(c.open)},s,{ref:u,onDismiss:()=>c.onOpenChange(!1)}))),!1)}),Ru="DialogTitle",Mu="DialogClose",Xu=r((e,t)=>{const{__scopeDialog:n,...i}=e,o=Cu(Mu,n);return g(tc.button,Fl({type:"button"},i,{ref:t,onClick:Ol(e.onClick,()=>o.onOpenChange(!1))}))});function Wu(e){return e?"open":"closed"}!function(e,t){const n=d(t);function i(e){const{children:t,...i}=e,o=u(()=>i,Object.values(i));return g(n.Provider,{value:o},t)}i.displayName=e+"Provider"}("DialogTitleWarning",{contentName:Vu,titleName:Ru,docsSlug:"dialog"});const Lu=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:o,onOpenChange:r,modal:s=!0}=e,l=a(null),u=a(null),[d=!1,p]=$l({prop:i,defaultProp:o,onChange:r});return g(Iu,{scope:t,triggerRef:l,contentRef:u,contentId:Jl(),titleId:Jl(),descriptionId:Jl(),open:d,onOpenChange:p,onOpenToggle:c(()=>p(e=>!e),[p]),modal:s},n)},Fu=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:o}=e,r=Cu(wu,t);return g(Au,{scope:t,forceMount:n},v.map(i,e=>g(Ic,{present:n||r.open},g(xc,{asChild:!0,container:o},e))))},Ou=Gu,Du=Bu,Zu=Xu,zu=n=>{const{isOpen:i,onRequestClose:o,size:r,title:a,content:s,description:l,children:c,bodyClassName:u}=n;return e(Lu,{open:i,onOpenChange:()=>i&&(null==o?void 0:o()),children:t(Fu,{children:[e(Tl.div,{initial:"closed",animate:i?"open":"closed",variants:Mt,transition:{type:"tween",duration:.2,ease:"easeInOut"},className:"fixed inset-0 z-[1000] bg-scrim-bg-modal",children:e(Ou,{})}),e(Tl.div,{initial:"closed",animate:i?"open":"closed",variants:Xt,transition:{type:"tween",duration:.3,ease:"easeInOut"},className:"fixed left-1/2 top-1/2 z-[1001] w-auto -translate-x-1/2 -translate-y-1/2 focus:outline-none",children:t(Du,{className:He("fixed left-[50%] top-[50%] w-[90vw] translate-x-[-50%] translate-y-[-50%] rounded-[6px] bg-bg p-[25px] shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] focus:outline-none",u),style:{maxWidth:Wt[r||"lg"]},children:[e(Zu,{asChild:!0,children:e(et,{showButtonAs:"unstyled",buttonClassName:"absolute right-0 top-0 mr-2 mt-2 bg-bg",children:e(Je,{name:"close"})})}),t("div",{className:"custom-modal-body max-h-[85vh] overflow-visible",children:[a?e($e,{className:He("mx-auto mb-3 mt-5 text-center","heading5 md:max-w-[80%] md:pt-0","mb-5 md:mb-[60px]"),as:"h2",children:a}):null,l?e($e,{as:"div",children:l}):null,s,c||null]})]})})]})})},Hu=({children:n,background:i,className:o,fill:r="yellow",maxFit:a,show:s=!0,path:l="path2"})=>{const c=`${l}`,u={blue:"text-[#07B2E2]",green:"text-[#26B170]",yellow:"text-[#F5FF1E]",purple:"text-[#931D69]",white:"text-white",navy:"text-[#00002D]"},d={blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"},p="string"==typeof i&&i in d,h=p?d[i]:void 0,m=i&&!p?{background:i}:void 0,g=r in u?u[r]:"text-[#F5FF1E]";return s?t("div",{className:`shape-bg relative overflow-hidden ${null!=o?o:""} ${a?"max-content":""} ${null!=h?h:m?"":"bg-white"}`,style:m,children:["path1"===l&&e("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-2371px] z-0 translate-x-[-55%] ${c} fill-current ${g}`,width:"2262",height:"4359",viewBox:"0 0 2262 4359",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e("path",{d:"M1838.72 444.021C2216.45 758.242 2351.22 1060.81 2202.83 1982.25C2062.95 2851.55 1923.57 4265.14 1394.48 4348.94C1079.75 4409.66 766.955 4172.68 508.523 4003.04C340.876 3884.89 192.855 3774.9 26.6866 3661.93C-27.6562 3624.7 8.69435 3542.15 74.1261 3555.69C415.628 3626.61 686.916 3615.36 942.942 3443.48C1410.95 3163.54 1632.32 2141.02 1629.56 1543.75C1637.51 910.76 1276.06 582.318 829.643 352.709C587.562 235.528 333.508 169.963 100.699 149.757C31.9431 143.965 25.0259 47.9703 92.459 33.1281C623.196 -84.6769 1404.59 131.886 1839.84 443.573"})}),"path2"===l&&e("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[45.8px] z-0 translate-x-[-101%] ${c} fill-current ${g}`,width:"3739",height:"3666",viewBox:"0 0 3739 3666",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e("path",{d:"M1662.93 3664.31C2153.52 3637.23 2442.1 3474.65 2872.31 2646.41C3278.25 1865.09 4009.1 647.09 3634.26 264.38C3417.79 27.9944 3025.37 31.7818 2716.76 13.9013C2511.72 8.81634 2327.31 8.87399 2126.55 0.511773C2060.73 -2.00127 2040.7 85.9475 2101.3 114.087C2417.76 260.743 2628.86 431.51 2731.94 722.142C2940.79 1225.9 2508.91 2178.82 2150.63 2656.7C1779.64 3169.63 1293.64 3217.84 798.345 3136.04C534.128 3085.8 291.072 2986.97 92.1133 2864.4C33.4593 2828.06 -29.3236 2901.01 15.967 2953.13C371.841 3364.12 1128.29 3656.09 1663.56 3665.34"})}),"path3"===l&&e("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-2600px] z-0 translate-x-[-55%] ${c} fill-current ${g}`,width:"3044",height:"3248",viewBox:"0 0 3044 3248",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e("path",{d:"M1.21857 1353.6C-0.931975 1765.46 120.504 2015.15 791.765 2417.01C1424.98 2796.19 2407.16 3469.31 2746.34 3175.04C2955.08 3005.86 2971.76 2677.32 3002.33 2420C3016.95 2248.7 3026.23 2094.39 3043.38 1926.83C3048.81 1871.88 2976.24 1850.67 2949.63 1899.96C2810.91 2157.33 2657.35 2325.33 2408.95 2396.88C1976.88 2546.15 1201.39 2136.59 819.655 1812.63C409.231 1476.27 393.475 1067.19 486.97 656.895C542.372 438.358 637.352 239.983 749.974 79.7081C783.347 32.4684 725.487 -23.7534 679.587 11.5067C317.699 288.49 35.1358 906.671 0.328344 1354.07"})}),"path4"===l&&e("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-1966.1px] z-0 translate-x-[-48%] ${c} fill-current ${g}`,width:"3739",height:"3666",viewBox:"0 0 3739 3666",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e("path",{d:"M1662.93 3664.31C2153.52 3637.23 2442.1 3474.65 2872.31 2646.41C3278.25 1865.1 4009.1 647.091 3634.26 264.381C3417.79 27.9951 3025.37 31.7826 2716.76 13.902C2511.72 8.81709 2327.31 8.87474 2126.55 0.512528C2060.73 -2.00052 2040.7 85.9483 2101.3 114.088C2417.76 260.743 2628.86 431.51 2731.94 722.143C2940.79 1225.9 2508.91 2178.82 2150.63 2656.7C1779.64 3169.63 1293.64 3217.84 798.345 3136.04C534.128 3085.8 291.072 2986.98 92.1133 2864.4C33.4593 2828.06 -29.3236 2901.01 15.967 2953.13C371.841 3364.12 1128.29 3656.09 1663.56 3665.34"})}),e("div",{className:"shape-bg-content relative z-[1]",children:n})]}):e("div",{className:o,style:m,children:n})},ju=({title:n,background:i="white",button:o,color:r,contentAlignment:a,description:s,descriptionAlignment:l,enableHeading:c,subTitle:u,maxWidth:d=!0,onModalButtonClick:p,renderCheckPlans:h})=>e("div",{className:`${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[i]} component-container`,children:t("div",{className:`${d?"mx-auto max-w-120":""} color-${r} flex flex-col ${"dark"==r?"text-text":"text-white"} px-5 py-16 lg:px-13 lg:py-24`,children:[e($e,{as:c?"h1":"h2",className:`heading2 lg:heading1 text-${a}`,children:n}),e($e,{as:"h3",className:`subheading3 pt-2 lg:subheading1 lg:pt-3 text-${a}`,children:u}),e("div",{className:`pt-2 text-body1 lg:pt-3 text-${l}`,children:s}),e("div",{className:"flex justify-center pt-5 lg:pt-14",children:e(et,{...o,renderCheckPlans:h,onModalButtonClick:p})})]})}),Yu=({background:i="white",description:o,enableHeading:r,image:a,list:s=[],subTitle:l,title:c,color:u="dark",maxWidth:d=!0})=>e("div",{className:`${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[i]} component-container overflow-hidden ${"dark"==u?"text-text":"text-white"}`,children:t("div",{className:(d?"max-w-120 xl:mx-auto":"")+" mx-5 mb-5 mt-12 xl:my-20",children:[c&&e($e,{as:r?"h1":"h2",className:"heading2 md:heading1 md:text-center",children:c}),l&&e($e,{as:r?"h2":"h3",className:"heading3 mt-4 text-center",children:l}),t("div",{className:"mt-8 flex items-center xl:mt-16 xl:gap-10",children:[t("div",{className:"flex flex-col items-start gap-10 self-stretch xl:flex-[1_0_0]",children:[o&&e($e,{as:"p",className:"body1",children:o}),s.length>0&&t(n,{children:[e("ul",{className:"grid w-full grid-cols-2 gap-x-8 gap-y-4 md:hidden",children:(()=>{const t=[...s].sort((e,t)=>e.name.localeCompare(t.name)),n=Math.ceil(t.length/2),i=[];for(let e=0;e<n;e++)for(let o=0;o<2;o++){const r=o*n+e;r<t.length&&i.push(t[r])}return i.map((t,n)=>e("li",{children:e(qe,{href:`/local/${t.code.toLowerCase()}`,className:"label1",children:t.name})},`item-list-2-${n}`))})()}),e("ul",{className:"hidden gap-x-8 gap-y-4 md:grid md:grid-cols-3",children:(()=>{const t=[...s].sort((e,t)=>e.name.localeCompare(t.name)),n=Math.ceil(t.length/3),i=[];for(let e=0;e<n;e++)for(let o=0;o<3;o++){const r=o*n+e;r<t.length&&i.push(t[r])}return i.map((t,n)=>e("li",{children:e(qe,{href:`/local/${t.code.toLowerCase()}`,className:"label1",children:t.name})},`item-list-3-${n}`))})()})]})]}),a&&e("aside",{className:"hidden xl:block",children:e(nt,{width:472,height:100,src:a,alt:"image"})})]})]})}),Ju=({title:n,disclaimer:i,table:o,maxWidth:r=!0})=>e("div",{className:"component-container",children:t("div",{className:"mx-5 mb-5 mt-8 lg:mt-10 "+(r?"max-w-120 xl:mx-auto":""),children:[e($e,{as:"h2",className:"heading2 lg:heading1 lg:text-center",children:n}),e("div",{className:"comparison-table-container mt-20 xl:mt-10",children:o}),e($e,{as:"div",className:"micro mt-8 text-center",children:i})]})}),Uu=({href:i,title:o,description:r,date:a,category:s,image:l,readMoreText:c="Read more"})=>t("article",{className:"flex flex-col overflow-hidden rounded-xl bg-white shadow-[0_1px_4px_rgba(0,0,0,0.08),0_4px_16px_rgba(0,0,0,0.06)] transition-all duration-200 hover:-translate-y-0.5 hover:shadow-[0_4px_12px_rgba(0,0,0,0.12),0_8px_24px_rgba(0,0,0,0.10)]",children:[e(G,{href:i,tabIndex:-1,"aria-hidden":"true",className:"block",children:e("div",{className:"aspect-video w-full flex-shrink-0 overflow-hidden bg-gray-100",children:l?e(w,{src:l.src,alt:l.alt,width:l.width,height:l.height,className:"h-full w-full object-cover transition-transform duration-300 hover:scale-[1.03]",sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"}):e("div",{className:"h-full w-full bg-gradient-to-br from-gray-200 to-gray-100","aria-hidden":"true"})})}),t("div",{className:"flex flex-1 flex-col gap-5 p-5 pb-6",children:[t("div",{className:"flex items-center gap-2 text-[13px]",children:[e("span",{className:"text-body2 font-semibold text-text-brand",children:s}),a&&t(n,{children:[e("span",{className:"text-xs text-text","aria-hidden":"true",children:"•"}),e("time",{className:"text-body2 text-text",children:a})]})]}),o&&e(G,{href:i,className:"m-0 line-clamp-3 text-heading6 font-black transition-colors duration-150 hover:text-text-brand",children:o}),r&&e($e,{className:"m-0 line-clamp-3 flex-1 text-body1",children:r}),e(G,{href:i,className:"group mt-auto inline-flex justify-between pt-3 text-sm text-text-brand no-underline transition-all duration-200 hover:gap-2.5 hover:text-[#007ab8]","aria-label":`${c} about ${o||"this article"}`,children:t(je,{"aria-label":`${c} about ${o||"this article"}`,className:"flex w-36 justify-around text-nowrap text-label1 font-black",children:[c,e(Je,{name:"expand_circle_right",fill:0,size:24,weight:"600"})]})})]})]}),$u=({currentPage:n,totalPages:i,onPageChange:o,ariaLabel:r="Pagination"})=>{const a=function(e,t){if(t<=7)return Array.from({length:t},(e,t)=>t+1);const n=[];n.push(1),e>3&&n.push("...");const i=Math.max(2,e-1),o=Math.min(t-1,e+1);for(let e=i;e<=o;e++)n.push(e);e<t-2&&n.push("...");return n.push(t),n}(n,i),s="inline-flex items-center justify-center w-9 h-9 rounded-full bg-transparent cursor-pointer transition-colors duration-150 hover:border-text-brand hover:text-text-brand disabled:opacity-40 disabled:cursor-not-allowed";return t("nav",{className:"flex items-center justify-center gap-1 px-6 pb-12","aria-label":r,children:[e(je,{className:s,onClick:()=>o(n-1),disabled:1===n,"aria-label":"Go to previous page",children:e(Je,{name:"chevron_left",size:32,"aria-hidden":"true"})}),a.map((t,i)=>"..."===t?e("span",{className:"inline-flex h-9 w-9 cursor-default items-center justify-center text-body2 text-gray-500","aria-hidden":"true",children:"…"},`ellipsis-${i}`):e(je,{className:"inline-flex items-center justify-center w-9 h-9 rounded-lg text-body2 text-gray-700 bg-transparent border-none cursor-pointer transition-colors duration-150 hover:bg-gray-100 hover:text-gray-900 "+(t===n?"bg-bg-surface-active font-bold hover:bg-bg-gray-300":""),onClick:()=>o(t),"aria-label":`Go to page ${t}`,"aria-current":t===n?"page":void 0,children:t},t)),e(je,{className:s,onClick:()=>o(n+1),disabled:n===i,"aria-label":"Go to next page",children:e(Je,{name:"chevron_right",size:32,"aria-hidden":"true"})})]})};function Qu(e){return Qu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qu(e)}function _u(e){var t=function(e,t){if("object"!=Qu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=Qu(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qu(t)?t:t+""}function Ku(e,t,n){return(t=_u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ed(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qu(Object(n),!0).forEach(function(t){Ku(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function td(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function nd(e,t){if(e){if("string"==typeof e)return td(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?td(e,t):void 0}}function id(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,r,a,s=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=r.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||nd(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function od(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var rd=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function ad(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_u(i.key),i)}}function sd(e,t){return sd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sd(e,t)}function ld(e){return ld=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ld(e)}function cd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(cd=function(){return!!e})()}function ud(e,t){if(t&&("object"==Qu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function dd(e){return function(e){if(Array.isArray(e))return td(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||nd(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var pd=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),hd="-ms-",md="-moz-",gd="-webkit-",fd="comm",bd="rule",vd="decl",yd="@keyframes",xd=Math.abs,Id=String.fromCharCode,Cd=Object.assign;function wd(e){return e.trim()}function Ad(e,t,n){return e.replace(t,n)}function Nd(e,t){return e.indexOf(t)}function kd(e,t){return 0|e.charCodeAt(t)}function Gd(e,t,n){return e.slice(t,n)}function Pd(e){return e.length}function Vd(e){return e.length}function Bd(e,t){return t.push(e),e}var Td=1,Sd=1,Ed=0,Rd=0,Md=0,Xd="";function Wd(e,t,n,i,o,r,a){return{value:e,root:t,parent:n,type:i,props:o,children:r,line:Td,column:Sd,length:a,return:""}}function Ld(e,t){return Cd(Wd("",null,null,"",null,null,0),e,{length:-e.length},t)}function Fd(){return Md=Rd>0?kd(Xd,--Rd):0,Sd--,10===Md&&(Sd=1,Td--),Md}function Od(){return Md=Rd<Ed?kd(Xd,Rd++):0,Sd++,10===Md&&(Sd=1,Td++),Md}function Dd(){return kd(Xd,Rd)}function Zd(){return Rd}function zd(e,t){return Gd(Xd,e,t)}function Hd(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function jd(e){return Td=Sd=1,Ed=Pd(Xd=e),Rd=0,[]}function Yd(e){return Xd="",e}function Jd(e){return wd(zd(Rd-1,Qd(91===e?e+2:40===e?e+1:e)))}function Ud(e){for(;(Md=Dd())&&Md<33;)Od();return Hd(e)>2||Hd(Md)>3?"":" "}function $d(e,t){for(;--t&&Od()&&!(Md<48||Md>102||Md>57&&Md<65||Md>70&&Md<97););return zd(e,Zd()+(t<6&&32==Dd()&&32==Od()))}function Qd(e){for(;Od();)switch(Md){case e:return Rd;case 34:case 39:34!==e&&39!==e&&Qd(Md);break;case 40:41===e&&Qd(e);break;case 92:Od()}return Rd}function _d(e,t){for(;Od()&&e+Md!==57&&(e+Md!==84||47!==Dd()););return"/*"+zd(t,Rd-1)+"*"+Id(47===e?e:Od())}function Kd(e){for(;!Hd(Dd());)Od();return zd(e,Rd)}function qd(e){return Yd(ep("",null,null,null,[""],e=jd(e),0,[0],e))}function ep(e,t,n,i,o,r,a,s,l){for(var c=0,u=0,d=a,p=0,h=0,m=0,g=1,f=1,b=1,v=0,y="",x=o,I=r,C=i,w=y;f;)switch(m=v,v=Od()){case 40:if(108!=m&&58==kd(w,d-1)){-1!=Nd(w+=Ad(Jd(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:w+=Jd(v);break;case 9:case 10:case 13:case 32:w+=Ud(m);break;case 92:w+=$d(Zd()-1,7);continue;case 47:switch(Dd()){case 42:case 47:Bd(np(_d(Od(),Zd()),t,n),l);break;default:w+="/"}break;case 123*g:s[c++]=Pd(w)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:f=0;case 59+u:-1==b&&(w=Ad(w,/\f/g,"")),h>0&&Pd(w)-d&&Bd(h>32?ip(w+";",i,n,d-1):ip(Ad(w," ","")+";",i,n,d-2),l);break;case 59:w+=";";default:if(Bd(C=tp(w,t,n,c,u,o,s,y,x=[],I=[],d),r),123===v)if(0===u)ep(w,t,C,C,x,r,d,s,I);else switch(99===p&&110===kd(w,3)?100:p){case 100:case 108:case 109:case 115:ep(e,C,C,i&&Bd(tp(e,C,C,0,0,o,s,y,o,x=[],d),I),o,I,d,s,i?x:I);break;default:ep(w,C,C,C,[""],I,0,s,I)}}c=u=h=0,g=b=1,y=w="",d=a;break;case 58:d=1+Pd(w),h=m;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==Fd())continue;switch(w+=Id(v),v*g){case 38:b=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(Pd(w)-1)*b,b=1;break;case 64:45===Dd()&&(w+=Jd(Od())),p=Dd(),u=d=Pd(y=w+=Kd(Zd())),v++;break;case 45:45===m&&2==Pd(w)&&(g=0)}}return r}function tp(e,t,n,i,o,r,a,s,l,c,u){for(var d=o-1,p=0===o?r:[""],h=Vd(p),m=0,g=0,f=0;m<i;++m)for(var b=0,v=Gd(e,d+1,d=xd(g=a[m])),y=e;b<h;++b)(y=wd(g>0?p[b]+" "+v:Ad(v,/&\f/g,p[b])))&&(l[f++]=y);return Wd(e,t,n,0===o?bd:s,l,c,u)}function np(e,t,n){return Wd(e,t,n,fd,Id(Md),Gd(e,2,-2),0)}function ip(e,t,n,i){return Wd(e,t,n,vd,Gd(e,0,i),Gd(e,i+1,-1),i)}function op(e,t){for(var n="",i=Vd(e),o=0;o<i;o++)n+=t(e[o],o,e,t)||"";return n}function rp(e,t,n,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case vd:return e.return=e.return||e.value;case fd:return"";case yd:return e.return=e.value+"{"+op(e.children,i)+"}";case bd:e.value=e.props.join(",")}return Pd(n=op(e.children,i))?e.return=e.value+"{"+n+"}":""}function ap(e){var t=Vd(e);return function(n,i,o,r){for(var a="",s=0;s<t;s++)a+=e[s](n,i,o,r)||"";return a}}var sp="undefined"!=typeof document,lp=function(e,t,n){for(var i=0,o=0;i=o,o=Dd(),38===i&&12===o&&(t[n]=1),!Hd(o);)Od();return zd(e,Rd)},cp=function(e,t){return Yd(function(e,t){var n=-1,i=44;do{switch(Hd(i)){case 0:38===i&&12===Dd()&&(t[n]=1),e[n]+=lp(Rd-1,t,n);break;case 2:e[n]+=Jd(i);break;case 4:if(44===i){e[++n]=58===Dd()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Id(i)}}while(i=Od());return e}(jd(e),t))},up=new WeakMap,dp=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,i=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||up.get(n))&&!i){up.set(e,!0);for(var o=[],r=cp(t,o),a=n.props,s=0,l=0;s<r.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?r[s].replace(/&\f/g,a[c]):a[c]+" "+r[s]}}},pp=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function hp(e,t){switch(function(e,t){return 45^kd(e,0)?(((t<<2^kd(e,0))<<2^kd(e,1))<<2^kd(e,2))<<2^kd(e,3):0}(e,t)){case 5103:return gd+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return gd+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gd+e+md+e+hd+e+e;case 6828:case 4268:return gd+e+hd+e+e;case 6165:return gd+e+hd+"flex-"+e+e;case 5187:return gd+e+Ad(e,/(\w+).+(:[^]+)/,gd+"box-$1$2"+hd+"flex-$1$2")+e;case 5443:return gd+e+hd+"flex-item-"+Ad(e,/flex-|-self/,"")+e;case 4675:return gd+e+hd+"flex-line-pack"+Ad(e,/align-content|flex-|-self/,"")+e;case 5548:return gd+e+hd+Ad(e,"shrink","negative")+e;case 5292:return gd+e+hd+Ad(e,"basis","preferred-size")+e;case 6060:return gd+"box-"+Ad(e,"-grow","")+gd+e+hd+Ad(e,"grow","positive")+e;case 4554:return gd+Ad(e,/([^-])(transform)/g,"$1"+gd+"$2")+e;case 6187:return Ad(Ad(Ad(e,/(zoom-|grab)/,gd+"$1"),/(image-set)/,gd+"$1"),e,"")+e;case 5495:case 3959:return Ad(e,/(image-set\([^]*)/,gd+"$1$`$1");case 4968:return Ad(Ad(e,/(.+:)(flex-)?(.*)/,gd+"box-pack:$3"+hd+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gd+e+e;case 4095:case 3583:case 4068:case 2532:return Ad(e,/(.+)-inline(.+)/,gd+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Pd(e)-1-t>6)switch(kd(e,t+1)){case 109:if(45!==kd(e,t+4))break;case 102:return Ad(e,/(.+:)(.+)-([^]+)/,"$1"+gd+"$2-$3$1"+md+(108==kd(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Nd(e,"stretch")?hp(Ad(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==kd(e,t+1))break;case 6444:switch(kd(e,Pd(e)-3-(~Nd(e,"!important")&&10))){case 107:return Ad(e,":",":"+gd)+e;case 101:return Ad(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+gd+(45===kd(e,14)?"inline-":"")+"box$3$1"+gd+"$2$3$1"+hd+"$2box$3")+e}break;case 5936:switch(kd(e,t+11)){case 114:return gd+e+hd+Ad(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gd+e+hd+Ad(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gd+e+hd+Ad(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return gd+e+hd+e+e}return e}var mp,gp,fp,bp=sp?void 0:(mp=function(){return e=function(){return{}},t=Object.create(null),function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]};var e,t},gp=new WeakMap,function(e){if(gp.has(e))return gp.get(e);var t=mp(e);return gp.set(e,t),t}),vp=[function(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case vd:e.return=hp(e.value,e.length);break;case yd:return op([Ld(e,{value:Ad(e.value,"@","@"+gd)})],i);case bd:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return op([Ld(e,{props:[Ad(t,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return op([Ld(e,{props:[Ad(t,/:(plac\w+)/,":"+gd+"input-$1")]}),Ld(e,{props:[Ad(t,/:(plac\w+)/,":-moz-$1")]}),Ld(e,{props:[Ad(t,/:(plac\w+)/,hd+"input-$1")]})],i)}return""})}}],yp=function(e){var t=e.key;if(sp&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var i,o,r=e.stylisPlugins||vp,a={},s=[];sp&&(i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c=[dp,pp];if(bp){var u=[rp],d=ap(c.concat(r,u)),p=bp(r)(t),h=function(e,t){var n=t.name;return void 0===p[n]&&(p[n]=op(qd(e?e+"{"+t.styles+"}":t.styles),d)),p[n]};o=function(e,t,n,i){var o=t.name,r=h(e,t);return void 0===b.compat?(i&&(b.inserted[o]=!0),r):i?void(b.inserted[o]=r):r}}else{var m,g=[rp,(l=function(e){m.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],f=ap(c.concat(r,g));o=function(e,t,n,i){m=n,op(qd(e?e+"{"+t.styles+"}":t.styles),f),i&&(b.inserted[t.name]=!0)}}var b={key:t,sheet:new pd({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return b.sheet.hydrate(s),b},xp={exports:{}},Ip={};var Cp,wp,Ap,Np,kp={};
3
+ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import*as i from"react";import o,{forwardRef as r,useRef as a,useState as s,useEffect as l,useCallback as c,useMemo as u,createContext as d,useLayoutEffect as p,useContext as h,useInsertionEffect as m,createElement as g,useId as f,cloneElement as b,Children as v,isValidElement as y,Fragment as x,useReducer as I,Component as C}from"react";import w from"next/image";import A,{flushSync as N,createPortal as k}from"react-dom";import G from"next/link";import{useRouter as P,usePathname as V,useSearchParams as B}from"next/navigation";function T(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=T(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function S(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=T(e))&&(i&&(i+=" "),i+=t);return i}const E=e=>{const t=W(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),R(n,t)||X(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&i[e]?[...o,...i[e]]:o}}},R=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),o=i?R(e.slice(1),i):void 0;if(o)return o;if(0===t.validators.length)return;const r=e.join("-");return t.validators.find(({validator:e})=>e(r))?.classGroupId},M=/^\[(.+)\]$/,X=e=>{if(M.test(e)){const t=M.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},W=e=>{const{theme:t,classGroups:n}=e,i={nextPart:new Map,validators:[]};for(const e in n)L(n[e],i,e,t);return i},L=(e,t,n,i)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:F(t,e)).classGroupId=n)}if("function"==typeof e)return O(e)?void L(e(i),t,n,i):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{L(o,F(t,e),n,i)})})},F=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},O=e=>e.isThemeGetter,D=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;const o=(o,r)=>{n.set(o,r),t++,t>e&&(t=0,i=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=i.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},Z=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=e=>{const t=[];let n,i=0,o=0,r=0;for(let a=0;a<e.length;a++){let s=e[a];if(0===i&&0===o){if(":"===s){t.push(e.slice(r,a)),r=a+1;continue}if("/"===s){n=a;continue}}"["===s?i++:"]"===s?i--:"("===s?o++:")"===s&&o--}const a=0===t.length?e:e.substring(r),s=z(a);return{modifiers:t,hasImportantModifier:s!==a,baseClassName:s,maybePostfixModifierPosition:n&&n>r?n-r:void 0}};if(t){const e=t+":",n=i;i=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=i;i=t=>n({className:t,parseClassName:e})}return i},z=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,H=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let i=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...i.sort(),e),i=[]):i.push(e)}),n.push(...i.sort()),n}},j=/\s+/;function Y(){let e,t,n=0,i="";for(;n<arguments.length;)(e=arguments[n++])&&(t=J(e))&&(i&&(i+=" "),i+=t);return i}const J=e=>{if("string"==typeof e)return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=J(e[i]))&&(n&&(n+=" "),n+=t);return n};function U(e,...t){let n,i,o,r=function(s){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:D(e.cacheSize),parseClassName:Z(e),sortModifiers:H(e),...E(e)}))(l),i=n.cache.get,o=n.cache.set,r=a,a(s)};function a(e){const t=i(e);if(t)return t;const r=((e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:r}=t,a=[],s=e.trim().split(j);let l="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:h}=n(t);if(c){l=t+(l.length>0?" "+l:l);continue}let m=!!h,g=i(m?p.substring(0,h):p);if(!g){if(!m){l=t+(l.length>0?" "+l:l);continue}if(g=i(p),!g){l=t+(l.length>0?" "+l:l);continue}m=!1}const f=r(u).join(":"),b=d?f+"!":f,v=b+g;if(a.includes(v))continue;a.push(v);const y=o(g,m);for(let e=0;e<y.length;++e){const t=y[e];a.push(b+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,r),r}return function(){return r(Y.apply(null,arguments))}}const $=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Q=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_=/^\((?:(\w[\w-]*):)?(.+)\)$/i,K=/^\d+\/\d+$/,q=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ee=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,te=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ne=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ie=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oe=e=>K.test(e),re=e=>!!e&&!Number.isNaN(Number(e)),ae=e=>!!e&&Number.isInteger(Number(e)),se=e=>e.endsWith("%")&&re(e.slice(0,-1)),le=e=>q.test(e),ce=()=>!0,ue=e=>ee.test(e)&&!te.test(e),de=()=>!1,pe=e=>ne.test(e),he=e=>ie.test(e),me=e=>!fe(e)&&!Ce(e),ge=e=>Ve(e,Ee,de),fe=e=>Q.test(e),be=e=>Ve(e,Re,ue),ve=e=>Ve(e,Me,re),ye=e=>Ve(e,Te,de),xe=e=>Ve(e,Se,he),Ie=e=>Ve(e,We,pe),Ce=e=>_.test(e),we=e=>Be(e,Re),Ae=e=>Be(e,Xe),Ne=e=>Be(e,Te),ke=e=>Be(e,Ee),Ge=e=>Be(e,Se),Pe=e=>Be(e,We,!0),Ve=(e,t,n)=>{const i=Q.exec(e);return!!i&&(i[1]?t(i[1]):n(i[2]))},Be=(e,t,n=!1)=>{const i=_.exec(e);return!!i&&(i[1]?t(i[1]):n)},Te=e=>"position"===e||"percentage"===e,Se=e=>"image"===e||"url"===e,Ee=e=>"length"===e||"size"===e||"bg-size"===e,Re=e=>"length"===e,Me=e=>"number"===e,Xe=e=>"family-name"===e,We=e=>"shadow"===e,Le=()=>{const e=$("color"),t=$("font"),n=$("text"),i=$("font-weight"),o=$("tracking"),r=$("leading"),a=$("breakpoint"),s=$("container"),l=$("spacing"),c=$("radius"),u=$("shadow"),d=$("inset-shadow"),p=$("text-shadow"),h=$("drop-shadow"),m=$("blur"),g=$("perspective"),f=$("aspect"),b=$("ease"),v=$("animate"),y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Ce,fe],x=()=>[Ce,fe,l],I=()=>[oe,"full","auto",...x()],C=()=>[ae,"none","subgrid",Ce,fe],w=()=>["auto",{span:["full",ae,Ce,fe]},ae,Ce,fe],A=()=>[ae,"auto",Ce,fe],N=()=>["auto","min","max","fr",Ce,fe],k=()=>["auto",...x()],G=()=>[oe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],P=()=>[e,Ce,fe],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Ne,ye,{position:[Ce,fe]}],B=()=>["auto","cover","contain",ke,ge,{size:[Ce,fe]}],T=()=>[se,we,be],S=()=>["","none","full",c,Ce,fe],E=()=>["",re,we,be],R=()=>[re,se,Ne,ye],M=()=>["","none",m,Ce,fe],X=()=>["none",re,Ce,fe],W=()=>["none",re,Ce,fe],L=()=>[re,Ce,fe],F=()=>[oe,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[le],breakpoint:[le],color:[ce],container:[le],"drop-shadow":[le],ease:["in","out","in-out"],font:[me],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[le],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[le],shadow:[le],spacing:["px",re],text:[le],"text-shadow":[le],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",oe,fe,Ce,f]}],container:["container"],columns:[{columns:[re,fe,Ce,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[ae,"auto",Ce,fe]}],basis:[{basis:[oe,"full","auto",s,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[re,oe,"auto","initial","none",fe]}],grow:[{grow:["",re,Ce,fe]}],shrink:[{shrink:["",re,Ce,fe]}],order:[{order:[ae,"first","last","none",Ce,fe]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:w()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:w()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":N()}],"auto-rows":[{"auto-rows":N()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[s,"screen",...G()]}],"min-w":[{"min-w":[s,"screen","none",...G()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",n,we,be]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Ce,ve]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",se,fe]}],"font-family":[{font:[Ae,fe,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Ce,fe]}],"line-clamp":[{"line-clamp":[re,"none",Ce,ve]}],leading:[{leading:[r,...x()]}],"list-image":[{"list-image":["none",Ce,fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ce,fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[re,"from-font","auto",Ce,be]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[re,"auto",Ce,fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce,fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce,fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:V()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:B()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ae,Ce,fe],radial:["",Ce,fe],conic:[ae,Ce,fe]},Ge,xe]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:T()}],"gradient-via-pos":[{via:T()}],"gradient-to-pos":[{to:T()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:E()}],"border-w-x":[{"border-x":E()}],"border-w-y":[{"border-y":E()}],"border-w-s":[{"border-s":E()}],"border-w-e":[{"border-e":E()}],"border-w-t":[{"border-t":E()}],"border-w-r":[{"border-r":E()}],"border-w-b":[{"border-b":E()}],"border-w-l":[{"border-l":E()}],"divide-x":[{"divide-x":E()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":E()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[re,Ce,fe]}],"outline-w":[{outline:["",re,we,be]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",u,Pe,Ie]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",d,Pe,Ie]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:E()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[re,be]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":E()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",p,Pe,Ie]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[re,Ce,fe]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[re]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[Ce,fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[re]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:V()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:B()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ce,fe]}],filter:[{filter:["","none",Ce,fe]}],blur:[{blur:M()}],brightness:[{brightness:[re,Ce,fe]}],contrast:[{contrast:[re,Ce,fe]}],"drop-shadow":[{"drop-shadow":["","none",h,Pe,Ie]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",re,Ce,fe]}],"hue-rotate":[{"hue-rotate":[re,Ce,fe]}],invert:[{invert:["",re,Ce,fe]}],saturate:[{saturate:[re,Ce,fe]}],sepia:[{sepia:["",re,Ce,fe]}],"backdrop-filter":[{"backdrop-filter":["","none",Ce,fe]}],"backdrop-blur":[{"backdrop-blur":M()}],"backdrop-brightness":[{"backdrop-brightness":[re,Ce,fe]}],"backdrop-contrast":[{"backdrop-contrast":[re,Ce,fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",re,Ce,fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[re,Ce,fe]}],"backdrop-invert":[{"backdrop-invert":["",re,Ce,fe]}],"backdrop-opacity":[{"backdrop-opacity":[re,Ce,fe]}],"backdrop-saturate":[{"backdrop-saturate":[re,Ce,fe]}],"backdrop-sepia":[{"backdrop-sepia":["",re,Ce,fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ce,fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[re,"initial",Ce,fe]}],ease:[{ease:["linear","initial",b,Ce,fe]}],delay:[{delay:[re,Ce,fe]}],animate:[{animate:["none",v,Ce,fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,Ce,fe]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:X()}],"rotate-x":[{"rotate-x":X()}],"rotate-y":[{"rotate-y":X()}],"rotate-z":[{"rotate-z":X()}],scale:[{scale:W()}],"scale-x":[{"scale-x":W()}],"scale-y":[{"scale-y":W()}],"scale-z":[{"scale-z":W()}],"scale-3d":["scale-3d"],skew:[{skew:L()}],"skew-x":[{"skew-x":L()}],"skew-y":[{"skew-y":L()}],transform:[{transform:[Ce,fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ce,fe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ce,fe]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[re,we,be,ve]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Fe=(e,t,n)=>{void 0!==n&&(e[t]=n)},Oe=(e,t)=>{if(t)for(const n in t)Fe(e,n,t[n])},De=(e,t)=>{if(t)for(const n in t)Ze(e,t,n)},Ze=(e,t,n)=>{const i=t[n];void 0!==i&&(e[n]=e[n]?e[n].concat(i):i)},ze=((e,...t)=>"function"==typeof e?U(Le,e,...t):U(()=>((e,{cacheSize:t,prefix:n,experimentalParseClassName:i,extend:o={},override:r={}})=>(Fe(e,"cacheSize",t),Fe(e,"prefix",n),Fe(e,"experimentalParseClassName",i),Oe(e.theme,r.theme),Oe(e.classGroups,r.classGroups),Oe(e.conflictingClassGroups,r.conflictingClassGroups),Oe(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),Fe(e,"orderSensitiveModifiers",r.orderSensitiveModifiers),De(e.theme,o.theme),De(e.classGroups,o.classGroups),De(e.conflictingClassGroups,o.conflictingClassGroups),De(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),Ze(e,o,"orderSensitiveModifiers"),e))(Le(),e),...t))({extend:{classGroups:{"font-variants":["heading1","heading2","heading3","heading4","heading5","heading6","subheading1","subheading2","subheading3","subheading4","subheading5","subheading6","body1","body2","body3","footnote","micro","label1","label2","label3","label4"],"button-sizes":["btn-small","btn-medium","btn-large","btn-x-large"]}}}),He=(...e)=>ze(S(...e)),je=r(({children:t,className:n="",style:i,disabled:o,...r},a)=>e("button",{ref:a,className:He(n),style:i,disabled:o,...r,children:t}));je.displayName="Button";const Ye=t=>{const{open:n,children:i}=t,o=a(null),[r,c]=s(0);return l(()=>{const e=o.current;if(!e)return;const t=()=>{c(n?e.scrollHeight:0)};let i;return t(),n&&(i=new ResizeObserver(()=>t()),i.observe(e)),()=>{i&&i.disconnect()}},[n,i]),e("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{maxHeight:r,opacity:n?1:0},"aria-hidden":!n,children:e("div",{ref:o,children:i})})};Ye.displayName="Collapse";const Je=({name:t,fill:n=0,opticalSize:i="48dp",weight:o="200",emphasis:r=145,size:a=24,color:s="currentColor",style:l={},className:c,onClick:u,dataTestId:d})=>{const p={fontVariationSettings:`'FILL' ${n}, 'wght' ${o}, 'GRAD' ${r}, 'opsz' ${i.substring(0,2)}`,fontSize:`${a}px`,fontFamily:"'Material Symbols Rounded'",color:s||"currentColor",...l};return e("span",{style:p,className:He("material-symbols-rounded inline-block max-w-[52px] overflow-hidden",c),onClick:u,"data-testid":d,children:t})};Je.displayName="MaterialIcon";const Ue=n=>{const{title:i,defaultOpen:o,children:r,containerClassName:a,titleClassName:c,className:u,buttonClassName:d,openOnlyOnDesktop:p,borderRadiusNone:h=!1}=n,[m,g]=s(Boolean(!1));return l(()=>{if(p){const e=window.innerWidth>=1024;g(e)}else g(Boolean(o))},[p,o]),t("div",{className:He(h?"rounded-none border":"rounded-surface-xs border",a),children:[t(je,{type:"button",className:He(h?"rounded-none":"rounded-t-surface-xs","flex w-full items-center justify-between gap-4 px-4 py-3 text-left",d),onClick:()=>g(e=>!e),children:[e("span",{className:He("label5",c),children:i}),e(Je,{name:m?"keyboard_arrow_down":"keyboard_arrow_up",fill:1,size:24})]}),e(Ye,{open:m,children:e("div",{className:He("px-4 py-4",u),children:r})})]})};Ue.displayName="Accordion";const $e=r(({children:e,as:t,className:n="",style:i,...r},a)=>{const s=t||"p";return o.createElement(s,{ref:a,className:n,style:i,...r},e)});$e.displayName="Text";const Qe=({items:n,title:i,background:o="white",enableHeading:r=!1,maxWidth:a=!0})=>e("div",{className:`${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[o]} component-container`,children:t("div",{className:(a?"max-w-120 xl:mx-auto":"")+" mx-5 my-8 lg:mx-20 lg:my-18",children:[e("div",{children:e($e,{as:r?"h1":"h2",className:"heading1 text-left lg:text-center",children:i})}),e("div",{className:"question-answer-section mt-10 lg:mt-16",children:null==n?void 0:n.map((t,n)=>e("div",{children:e(Ue,{title:t.title,containerClassName:"border-0 border-b-[1px]",buttonClassName:"px-0 label1",className:"px-0",borderRadiusNone:!0,openOnlyOnDesktop:!0,children:e($e,{children:t.description})})},`item-${n}`))})]})}),_e=e=>{let t="";return e.base&&(t="x-large"===e.base?"label3 ":"label4 "),e.md&&(t+="x-large"===e.md?"md:label3 ":"md:label4 "),e.lg&&(t+="x-large"===e.lg?"lg:label3 ":"lg:label4 "),t.trim()},Ke=r(({variant:i="primary_brand",isLoading:o=!1,text:r,label:a,disabled:s,fullWidth:l,size:c={base:"medium"},as:u="button",...d},p)=>{const h=(()=>{const e=He((e=>{let t="";return e.base&&(t=`btn-${e.base} `),e.md&&(t+=`${(e=>{switch(e){case"small":return"md:btn-small";case"medium":return"md:btn-medium";case"large":return"md:btn-large";case"x-large":return"md:btn-x-large"}})(e.md)} `),e.lg&&(t+=`lg:btn-${e.lg} `),t.trim()})(c),"rounded-button pl-15 pr-15 inline-flex gap-2 items-center justify-center outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer transition-colors duration-200 align-top",l&&"w-full"),t=He((s||o)&&"cursor-not-allowed",o&&"pl-7",s&&"bg-bg-fill-brand-disabled");return He(e,{primary_brand:"bg-bg-fill-brand text-text-brand-on-bg-fill enabled:hover:bg-bg-fill-brand-hover focus:ring-bg-fill-brand",primary_inverse:"bg-bg-surface-inverse text-text-inverse enabled:hover:bg-bg-fill-inverse-hover focus:ring-bg-surface-inverse",secondary:"border-2 border-border-secondary-on-bg-fill bg-bg text-text focus:ring-bg-surface-inverse"}[i]||"",t)})();let m=`button--${i}`;o&&(m+=" button--loading"),s&&(m+=" button--disabled");const g=`${m} ${h}`,f=t(n,{children:[o?e(Je,{name:"progress_activity",className:"animate-spin"}):null,a?t("span",{className:"flex flex-col",children:[e("span",{className:He(_e(c)),children:a}),r]}):r]});return"a"===u?e("a",{ref:p,className:He(g),...d,children:f}):e("button",{ref:p,className:He(g),disabled:s||o,...d,children:f})});Ke.displayName="BrandButton";const qe=r(({children:t,href:n,className:i="",onClick:o,variant:r="unstyled",style:a,external:s=!1,disabled:l=!1,...c},u)=>{const d=(()=>{if("unstyled"===r)return"";const e={default:"text-text underline"},t=[l?"opacity-60 cursor-not-allowed pointer-events-none":"cursor-pointer"].filter(Boolean).join(" ");return["transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",e[r]||e.default,t].filter(Boolean).join(" ")})(),p={...c,ref:u,className:He(d,`link--${r}`,l&&"link--disabled",i),style:a,href:l?void 0:n,onClick:e=>{l?e.preventDefault():null==o||o(e)},...s&&!l&&{target:"_blank",rel:"noopener noreferrer"},...l&&{"aria-disabled":!0,tabIndex:-1}};return e("a",{...p,children:t})});qe.displayName="Link";const et=n=>{const{showButtonAs:i="solid",buttonVariant:o="primary_brand",buttonLabel:r,buttonPrefix:a,href:s,target:l="_blank",anchorId:c,linkClassName:u,linkVariant:d,fullWidth:p,preDefinedFunctionExecution:h,renderCheckPlans:m,buttonClassName:g,clickToOpen:f,tabmodalNameToOpen:b,onModalButtonClick:v,onClick:y,iconName:x,...I}=n;if("check availability"===h){return null==m?void 0:m({ctaText:r,buttonVariant:o,showButtonAs:i,cta:{...n}})}function C(){"modal"===f&&(null==v||v(b))}function w(e){C(),null==y||y(e)}function A(e){C(),null==y||y(e)}let N=e(je,{onClick:A,className:g,...I});switch(i){case"solid":N=e(Ke,s?{as:"a",href:s,id:c,variant:o,text:r,label:a,fullWidth:p,onClick:w}:{id:c,variant:o,text:r,label:a,fullWidth:p,onClick:A});break;case"text":N=t(qe,{href:s,target:l,variant:d||"default",className:`text-text-brand ${u||""}`,onClick:w,children:[r," ",x&&e(Je,{name:x,size:24})]})}return N},tt={blue:"bg-fill-brand",green:"bg-fill-brand-accent",navy:"bg-fill-inverse",purple:"bg-fill-brand-tertiary",white:"bg-white",yellow:"bg-[#F5FF1E]"},nt=r(({className:t,...n},i)=>{const o="string"==typeof n.src?n.src:"",r=o.toLowerCase().split("?")[0]||"",a=o.includes("images.ctfassets.net")&&r.endsWith(".svg");return e(w,{ref:i,className:He(t),...n,unoptimized:a})});nt.displayName="NextImage";const it=({card:n,lgWidth:i,mdWidth:o})=>{var r,a,s;const l=(null===(r=n.imageAlignment)||void 0===r?void 0:r.toLowerCase())||"left",c="left"===l?"lg:items-start":"right"===l?"lg:items-end":"lg:items-center";return e("div",{className:`callout-card ${o} ${i} w-full ${null!==(s=tt[null!==(a=n.backgroundColor)&&void 0!==a?a:""])&&void 0!==s?s:""}`,children:t("div",{className:`card-template flex h-full flex-col items-center gap-8 p-8 text-center ${c}`,children:[e("div",{className:"card-header",children:(t=>{var n,i,o;if(!t.image)return null;const r=null===(n=t.imageView)||void 0===n?void 0:n.toLowerCase();return e(nt,"full"===r?{width:400,height:280,src:t.image,alt:null!==(i=t.title)&&void 0!==i?i:"card-icon",className:"rounded-3xl"}:{width:88,height:88,src:t.image,alt:null!==(o=t.title)&&void 0!==o?o:"card-icon"})})(n)}),t("div",{className:"card-body flex flex-col gap-3 text-start",children:[n.title&&e($e,{as:"h5",className:"heading5 font-black",children:n.title}),n.body&&e($e,{as:"div",className:"body1",children:n.body})]}),n.cta&&e("div",{className:"card-footer",children:e(et,{linkVariant:"unstyled",linkClassName:"label1 flex items-center text-text gap-2",...n.cta,iconName:"expand_circle_right"})})]})})},ot=({title:n,items:i,enableHeading:o=!1,subtitle:r,color:a="dark",maxWidth:s=!0,maxCardsPerRow:l})=>{const c={1:" lg:w-full",2:" lg:w-[calc(50%-0.75rem)]",3:" lg:w-[calc(33.3333%-1rem)]",4:" lg:w-[calc(25%-1.125rem)]"}[l||4]||" lg:w-[calc(25%-1.125rem)]",u=1===i.length?" md:w-full":" md:w-[calc(50%-1rem)]";return e("div",{className:"component-container",children:e("div",{className:`mx-5 mb-5 mt-12 ${s?"max-w-120 xl:mx-auto":""} ${"dark"==a?"text-text":"text-white"}`,children:t("div",{className:"callout-container flex flex-col gap-8",children:[t("div",{className:"title-holder",children:[n&&e($e,{as:o?"h1":"h2",className:"heading2 md:heading1 md:text-center",children:n}),r&&e($e,{as:o?"h2":"h3",className:"subheading3 mt-3 md:subheading1 md:text-center",children:r})]}),e("div",{className:"card-holder flex flex-wrap items-stretch justify-center gap-8 self-stretch lg:gap-6",children:i.map((t,n)=>e(it,{card:t,lgWidth:c,mdWidth:u},n))})]})})})},rt=({fields:t})=>e("div",{children:e($e,{children:"Cards"})}),at={green:"#209A61",yellow:"#F5FF36",blue:"#0393BA"},st=r(({children:t,className:n="",variant:i="unstyled",style:o,...r},a)=>{const s=He("unstyled"===i?"":"mb-1 leading-6","list-item",`list-item--${i}`,n);return e("li",{ref:a,className:s,style:o,...r,children:t})});st.displayName="ListItem";const lt=r(({type:t="ul",items:n,className:i="",renderItem:o,children:r,variant:a="unstyled",style:s,...l},c)=>{const u=(()=>{if("unstyled"===a)return"";return`m-0 p-0 ${"ol"===t?"pl-6 list-decimal":"pl-5 list-disc"}`})(),d=He(u,`list--${t}`,`list--${a}`,i),p=r||(n&&0!==n.length?n.map((t,n)=>o?o(t,n):e(st,{className:t.className,variant:a,children:t.content},t.id||n)):null),h={className:d,style:s,...l,children:p};return e("ol"===t?"ol":"ul",{...h,ref:c})});lt.displayName="List";const ct=n=>{const{items:i,listIconName:o="check",listItemClassName:r,iconSize:a=20,iconPosition:s="center",iconColor:l="green",iconClassName:c}=n,u="disc"!==o;return(null==i?void 0:i.length)?e(lt,{className:"mt-2 space-y-1",variant:u?"unstyled":"default",children:i.map((n,i)=>t(st,{variant:u?"unstyled":"default",className:He(`${u?"flex":""} ${"top"===s?"items-start":"items-center"} gap-2 text-text-secondary`,r),children:[u&&e("div",{children:e(Je,{name:o,size:a,color:at[l],weight:"600",className:He("top"===s?"mt-1":"",c)})}),e($e,{as:"div",children:n})]},i))}):null};ct.displayName="Checklist";const ut=r(({as:t,className:n="",...i},o)=>{const r=He(n);if(t){return e(t,{ref:o,className:r,...i})}return e("img",{ref:o,className:r,...i})});ut.displayName="Image";const dt=({onSelect:i,speed:o,isSelected:r=!1,renderCheckPlans:a,cta:l,techType:c,isMax:u})=>{const[d,p]=s(!1),h=`btn-medium rounded-button pl-15 pr-15 inline-flex gap-2 items-center justify-center outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer transition-colors duration-200 align-top ${r?" bg-bg-surface text-text focus:ring-bg-fill-surface-inverse":" bg-bg-fill-brand text-text-brand-on-bg-fill enabled:hover:bg-bg-fill-brand-hover focus:ring-bg-fill-brand"} `,m=null==a?void 0:a({speedCardConfig:{isModalOpen:d,setModalOpen:()=>{p(!1)},speed:o,techType:c,isMax:u},cta:l});return t(n,{children:[t(je,{onClick:()=>{p(!0),i()},className:He(h,"w-full justify-between pl-5 pr-5"),"data-track-element-name":"speed_plan_select_button","data-track-click-text":`Select plan speed ${o}`,"data-track-element-clicked":"speed_plan_card",children:[e("span",{children:"Select plan"}),e("span",{className:"inline-flex h-6 w-6 items-center justify-center rounded-full "+(r?"bg-bg-fill-surface-inverse text-text-inverse":"bg-bg text-text"),children:e(Je,{name:"chevron_right",fill:1,size:24})})]}),m]})},pt=({planName:i,planSubtext:o,speed:r,price:a,description:l,bestValue:c=!1,bestValueText:u="best value",giftBadge:d,innerBadge:p,theme:h="light",featuresTitle:m="Business Ready Internet features",features:g=[],isExpanded:f,onToggleExpand:b,onCtaClick:v,renderCheckPlans:y,cta:x,techType:I,ismaxSpeed:C})=>{const[w,A]=s(!1),N=void 0!==f?f:w,k="dark"===h;return t("article",{className:He("relative flex h-full w-full max-w-[392px] flex-col",!c&&"pt-[28px]"),children:[c&&e("div",{className:"rounded-t-[20px] bg-bg-fill-brand-accent px-4 py-1 text-center text-sm font-bold text-text",children:u}),t("div",{className:He("flex flex-grow flex-col gap-6 rounded-[20px] px-5 shadow-cardDrop",k?"bg-bg-fill-inverse text-white":"bg-white text-text",c?"rounded-t-none":""),children:[t("header",{className:"overflow-none flex items-start justify-between gap-4 pt-7",children:[t("div",{className:"flex flex-col",children:[e($e,{as:"h3",className:He("subheading2 whitespace-nowrap font-black",k?"text-bg-fill-brand-accent":"text-text-brand"),children:i}),e($e,{as:"p",className:`text-label3 font-black ${k?"text-bg-fill-brand-accent":"text-text-brand"} md:whitespace-nowrap`,children:o})]}),t("div",{className:"flex items-start",children:[e("span",{className:"text-xl font-normal",children:"$"}),e("span",{className:"text-subheading6 font-medium leading-none",children:a.split(".")[0]}),t("span",{className:"text-sm font-black",children:[a.split(".")[1],"/mo"]})]})]}),e("section",{children:e($e,{className:He("text-base",k?"text-white":"text-text"),children:l})}),e("div",{className:He("flex-col items-center rounded-xl p-2",k?"bg-bg-surface-inverse":"bg-gray-200"),children:d&&(null==d?void 0:d.map(n=>t("div",{className:"flex items-center gap-2 p-1",children:[e(ut,{src:n.icon,alt:n.title,width:24,height:24}),e($e,{as:"div",className:"text-sm font-bold",children:n.title})]},n.title)))}),e(dt,{onSelect:v,speed:r,isSelected:k,renderCheckPlans:y,cta:x,techType:I,isMax:C}),g.length>0&&t("section",{className:"flex flex-col gap-6",children:[t(je,{onClick:()=>{b?b():A(!w)},className:"group flex w-full items-center justify-between text-left",children:[e($e,{as:"h4",className:"text-base font-bold",children:m}),e(Je,{name:"keyboard_arrow_up",fill:1,size:24,className:He("transition-transform duration-300",N&&"rotate-180")})]}),t("div",{className:He("overflow-hidden transition-all duration-300 ease-in-out",N?"pb-7 opacity-100":"max-h-0 opacity-0"),children:[e("div",{className:"flex flex-col gap-3",children:e(ct,{items:g,iconColor:k?"yellow":"green",listItemClassName:""+(k?"text-white":"text-text")})}),(null==p?void 0:p.badgeIcon)?t("div",{className:"flex items-center gap-2 text-center",children:[e(ut,{src:p.badgeIcon,alt:"Inner Badge",width:12,height:12}),e("span",{className:"text-sm",children:p.badgeText.includes("|")?t(n,{children:[e("span",{className:"font-bold",children:p.badgeText.split("|")[0]}),e("span",{className:"font-normal",children:p.badgeText.split("|")[1]})]}):e($e,{className:"font-bold",children:p.badgeText})})]}):null]})]})]})]})},ht=({title:n,quote:i,rating:o,author:r,role:a,avatarUrl:s,isActive:l=!1,className:c})=>t("figure",{className:S("flex h-full w-full flex-col rounded-3xl p-6 font-sans transition-all duration-300 md:p-13",l?"bg-white shadow-lg":"bg-gray-50 opacity-60",c),children:[e("header",{children:e($e,{as:"h3",className:"mb-4 text-xl font-black lowercase text-text",children:n})}),e("blockquote",{className:"mb-5 flex-grow text-xl leading-relaxed text-text",children:i}),o?e("div",{className:"mb-5 flex gap-1",children:[...Array(5)].map((t,n)=>e(Je,{size:24,name:"star",fill:1,className:S("h-5 w-5",n<o?"text-text":"text-gray-300"),"aria-hidden":"true"},n))}):null,r&&t("figcaption",{className:"flex items-center gap-3",children:[e("div",{className:"relative h-10 w-10 shrink-0 overflow-hidden rounded-full bg-gray-300",children:s?e(w,{src:s,alt:r,fill:!0,className:"object-cover",sizes:"40px"}):e("div",{className:"flex h-full w-full items-center justify-center bg-gray-500 text-xs font-bold text-white",children:r.charAt(0)})}),t("div",{className:"flex flex-col",children:[e("cite",{className:"text-sm font-bold not-italic text-text",children:r}),e($e,{as:"p",className:"text-xs text-text",children:a})]})]})]});function mt({fields:i,renderCheckPlans:o}){var r,u,d,p;const h=(null===(d=null===(u=null===(r=null==i?void 0:i.items)||void 0===r?void 0:r.items)||void 0===u?void 0:u[0])||void 0===d?void 0:d.benefitsExpanded)||!1,[m,g]=s(h),[f,b]=s({}),[v,y]=s(0),x=(null===(p=null==i?void 0:i.items)||void 0===p?void 0:p.items)||[],I=x.length>2,C=a([]),w=c(()=>{I&&y(e=>(e+3)%x.length)},[I,x.length]),A=c(()=>{I&&y(e=>(e-3+x.length)%x.length)},[I,x.length]);if(l(()=>{if(!I)return;const e=()=>{const e=C.current.filter(Boolean);if(0===e.length)return;e.forEach(e=>{e.style.height="auto"});const t=Math.max(...e.map(e=>e.offsetHeight));e.forEach(e=>{e.style.height=`${t}px`})};e();const t=setTimeout(e,100);return()=>clearTimeout(t)},[I,m,x.length]),!x.length&&!(null==i?void 0:i.title))return null;const N=(t,n,i=!1)=>{var r,a,s,l,c,u,d,p;const h=null===(r=null==t?void 0:t.speed)||void 0===r?void 0:r.split("|"),v=(null==h?void 0:h[0])||"",y=(null==h?void 0:h[1])||"",x=(null===(s=null===(a=null==t?void 0:t.priceSuffix)||void 0===a?void 0:a.split("/"))||void 0===s?void 0:s[0])||"00",I=`${(null==t?void 0:t.price)||"0"}.${x}`,w=(null===(l=null==t?void 0:t.benefits)||void 0===l?void 0:l.items)||[],A=(null==t?void 0:t.highlighted)||!1,N=(null===(u=null===(c=null==t?void 0:t.giftRewards)||void 0===c?void 0:c.list)||void 0===u?void 0:u.items)||[],k={badgeText:t.innerBadge||"",badgeIcon:(null===(d=t.innerBadgeIcon)||void 0===d?void 0:d.url)||""},G=i?f[n]||!1:m;return e("div",{ref:i?void 0:e=>{e&&!C.current.includes(e)&&(C.current[n]=e)},className:He(i?"mx-auto w-full max-w-[392px]":"w-[392px] flex-shrink-0"),children:e(pt,{planName:v,planSubtext:y,speed:(null==t?void 0:t.speed)||"",techType:(null==t?void 0:t.techType)||"",ismaxSpeed:(null==t?void 0:t.ismaxSpeed)||"",price:I,description:(null==t?void 0:t.productCardDescription)||"",giftBadge:N,innerBadge:k,theme:(null==t?void 0:t.highlighted)?"dark":"light",bestValue:A,bestValueText:(null==t?void 0:t.topBadgeText)||"best value",featuresTitle:null==t?void 0:t.benefitsTitle,features:w,isExpanded:G,onToggleExpand:()=>{i?b(e=>({...e,[n]:!e[n]})):g(!m)},ctaText:(null===(p=null==t?void 0:t.cta)||void 0===p?void 0:p.buttonLabel)||"Select plan",onCtaClick:()=>{},renderCheckPlans:o,cta:t.cta,hostType:"smb"})},n)},k=[...x,...x,...x,...x,...x],G=2*x.length;return I?t(n,{children:[e("div",{className:"flex flex-col gap-6 md:hidden",children:x.map((e,t)=>N(e,t,!0))}),t("div",{className:"relative hidden w-full md:block",children:[t("div",{className:"pointer-events-none absolute -left-16 -right-16 top-[50%] z-30 flex -translate-y-1/2 justify-between px-4 md:px-10",children:[e(je,{onClick:w,className:"pointer-events-auto flex h-12 w-12 items-center justify-center rounded-full border border-gray-100 bg-white p-2 text-text shadow-cardDrop transition-all hover:bg-gray-50","aria-label":"Previous",children:e(Je,{name:"arrow_back",size:24})}),e(je,{onClick:A,className:"pointer-events-auto flex h-12 w-12 items-center justify-center rounded-full border border-gray-100 bg-white p-2 text-text shadow-cardDrop transition-all hover:bg-gray-50","aria-label":"Next",children:e(Je,{name:"arrow_forward",size:24})})]}),e("div",{className:"mx-auto max-w-[1280px] overflow-hidden",children:e("div",{className:"flex items-stretch gap-4 pb-4 transition-transform duration-500 ease-in-out",style:{transform:`translateX(calc(-${G+v} * (392px + 12px)))`},children:k.map((e,t)=>N(e,t,!1))})})]})]}):e("div",{className:"flex w-full max-w-[1280px] flex-wrap justify-center gap-8 px-4",children:x.map((e,t)=>N(e,t))})}const gt=({fields:n})=>{var i;const o=(null===(i=null==n?void 0:n.items)||void 0===i?void 0:i.items)||[],[r,u]=s(0),d=a(null),p=c(()=>{0!==o.length&&u(e=>(e+1)%o.length)},[o.length]),h=c(()=>{0!==o.length&&u(e=>0===e?o.length-1:e-1)},[o.length]);return l(()=>{if(0!==o.length)return d.current=setInterval(()=>{p()},8e3),()=>{d.current&&clearInterval(d.current)}},[p,o.length]),o&&0!==o.length?t("div",{className:"relative mx-auto max-w-[1280px] overflow-hidden md:px-24",children:[e(je,{onClick:h,className:"group absolute left-4 top-1/2 z-20 hidden h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full bg-white p-2 text-text shadow-md transition-colors hover:bg-gray-100 md:flex","aria-label":"Previous",children:e(Je,{name:"arrow_back",size:24})}),e("div",{className:"grid grid-cols-1 justify-items-center",children:o.map((t,n)=>{let i=n-r;const a=o.length;i>a/2&&(i-=a),i<-a/2&&(i+=a);const s=0===i;return e("div",{className:He("col-start-1 row-start-1 w-full md:max-w-[815px]",s?"opacity-100":"opacity-0","md:opacity-100"),style:{transform:`translateX(${s?"0%":105*i+"%"})`,zIndex:s?10:5,visibility:Math.abs(i)>1?"hidden":"visible",transition:"all 0.5s ease-in-out"},children:e(ht,{...t,isActive:s,className:"h-full"})},n)})}),e(je,{onClick:p,className:"group absolute right-4 top-1/2 z-20 hidden h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full bg-white p-2 text-text shadow-md transition-colors hover:bg-gray-100 md:flex","aria-label":"Next",children:e(Je,{name:"arrow_forward",size:24})}),e("div",{className:"mt-8 hidden justify-center gap-2 md:flex",children:o.map((t,n)=>e("button",{onClick:()=>u(n),className:He("h-2 w-2 rounded-full transition-all duration-300",r===n?"w-6 bg-white":"bg-white/40 hover:bg-white/60"),"aria-label":`Go to slide ${n+1}`},n))})]}):null},ft=({tabs:t,activeTab:n,onChange:i,className:o})=>e("div",{className:He("mx-auto my-6 flex w-fit rounded-2xl bg-white p-1",o),children:t.map(t=>e("button",{onClick:()=>i(t),className:He("min-w-[160px] whitespace-nowrap rounded-2xl bg-[#EEEEEE] px-4 py-2.5 text-label1 font-black transition-all duration-300",n===t?"bg-bg-fill-brand text-white shadow-md":"text-text-info hover:bg-[#E5E5E7]"),children:t},t))}),bt=({fields:n,hasTestimonialCards:i,hasProductCards:o,disclaimerText:r,backgroundColor:a,activeTab:s,setActiveTab:l,tabs:c,onModalButtonClick:u,renderCheckPlans:d,showSwitch:p=!1})=>e("div",{className:`${a} mx-auto overflow-hidden px-5 py-9 md:py-20`,children:t("div",{className:"relative mx-auto flex max-w-[1280px] flex-col gap-12 overflow-visible",children:[t("div",{children:[e($e,{as:"h2",className:"text-center text-4xl font-bold text-text md:text-5xl",children:null==n?void 0:n.title}),(null==n?void 0:n.subTitle)&&e($e,{as:"h3",className:"body1 px-4 pt-4 text-center",children:null==n?void 0:n.subTitle})]}),p&&o&&c.length>1&&e(ft,{tabs:c,activeTab:s,onChange:l,className:"mb-8"}),i&&e(gt,{fields:n}),o&&e(mt,{onModalButtonClick:u,renderCheckPlans:d,fields:n}),e($e,{as:"div",className:"body1 mt-8 px-4 text-center text-neutral-600",children:r})]})}),vt=({title:n,subtitle:i,description:o,disclaimer:r,icon:a,cta:s,background:l="navy",color:c="light",enableHeading:u,maxWidth:d=!0})=>e("div",{className:"component-container",children:t("div",{className:"mx-5 my-8 lg:mx-20 lg:my-12 lg:rounded-[40px] xl:mx-auto "+(d?"max-w-120":""),children:[t("div",{className:`flex flex-col rounded-[28px] px-5 py-7 lg:flex-row lg:rounded-[40px] lg:px-16 lg:py-9 ${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[l]} ${"dark"==c?"text-text":"text-white"} `,children:[a&&e("div",{className:"floating-banner-icon mb-5 flex justify-center lg:mb-0 lg:items-center",children:e("div",{className:"h-[80px] w-[80px] overflow-hidden",children:e(nt,{width:80,height:80,alt:"icon",src:a})})}),t("div",{className:"flex w-full flex-col justify-center lg:mx-5 lg:w-4/5",children:[n&&e($e,{as:u?"h1":"h2",className:"heading2 mb-3 text-center lg:w-[95%] lg:text-left",children:n}),i&&e($e,{as:"h3",className:"heading3 mb-3 text-center lg:text-left",children:i}),o&&e($e,{as:"div",className:"body1 text-center lg:w-[95%] lg:text-left",children:o})]}),s&&e("div",{className:"mt-5 flex justify-center lg:mt-0 lg:w-[500px] lg:items-center",children:e(et,{...s})})]}),r&&e("div",{children:e($e,{as:"div",className:"body3 mt-3 text-center",children:r})})]})}),yt=({body:n,links:i,bottomLinks:r,copyrights:a,terms:s,maxWidth:l=!0,onClick:c})=>{function u(e){null==c||c(e)}return e("div",{className:"component-container bg-bg-inverse text-white",children:t("div",{className:` ${l?"mx-auto max-w-120":""} px-5 py-8`,children:[e("aside",{className:"break-words","aria-label":"Promotions and disclaimers",children:n}),e("div",{className:"my-8 h-[1px] border-t-0 bg-white opacity-100 lg:my-16 dark:opacity-50"}),e("div",{className:"grid-1 grid gap-8 py-8 md:grid-cols-2 lg:grid-cols-4",children:null==i?void 0:i.map((n,i)=>{var r,a;return t(o.Fragment,{children:[e("div",{children:t("nav",{"aria-labelledby":`footer-${null==n?void 0:n.title}`,className:"site-links-group",children:[e($e,{as:"div",className:"label3",children:null==n?void 0:n.title}),e("ul",{className:"flex flex-col",children:null===(a=null===(r=null==n?void 0:n.items)||void 0===r?void 0:r.items)||void 0===a?void 0:a.map((t,n)=>e("li",{className:"pt-3",children:e(et,{...t,linkVariant:"unstyled",linkClassName:"text-white body3",onClick:u})},`site-links-${n}`))})]},`link-group-${i}`)},`footer-link-group-${i}`),e("div",{className:"block h-[1px] border-t-0 bg-white opacity-100 md:hidden dark:opacity-50"})]},`footer-link-group-${i}`)})}),t("div",{className:"pt-8",children:[e("p",{className:"copy-rights",children:a}),t("p",{className:"terms-text footnote text-white",children:["© ",(new Date).getFullYear()," ",s]}),e("nav",{"aria-label":"Footer legal",children:e("ul",{className:"bottom-links list-none",children:null==r?void 0:r.map((t,n)=>e("li",{className:"relative float-left pl-[8px] before:absolute before:left-[3px] before:top-1/2 before:-translate-y-1/2 before:text-[14px] before:content-['•'] first-of-type:pl-0 first-of-type:before:content-['']",children:e(et,{...t,linkClassName:"footnote text-white",linkVariant:"unstyled",onClick:u})},`links-${n}`))})})]})]})})},xt=({isHovered:t,containerClassName:n})=>e("button",{tabIndex:-1,className:`group flex h-20 w-20 items-center justify-center rounded-full bg-white shadow-xl transition-all duration-300 hover:scale-110 active:scale-95 ${n||""}`,"aria-label":"Play button",children:e(Je,{name:"play_arrow",size:72,fill:1,className:"transition-colors duration-300 "+(t?"text-text-brand":"text-slate-500 group-hover:text-text-brand")})}),It=t=>{const{link:n,containerClassName:i,autoplay:o=!1,debug:r=!1}=t,{href:a,embedId:s}=u(()=>{if(!n)return{href:"",embedId:""};const e=n.toString(),t=(e=>{const t=e.split(/[?#]/)[0].replace(/\/+$/,""),n=t.match(/vimeo\.com\/(?:.*\/)?(\d{6,})/)||t.match(/player\.vimeo\.com\/video\/(\d{6,})/),i=t.split("/"),o=i[i.length-1];return(null==n?void 0:n[1])?n[1]===o?n[1]:`${n[1]}/${o}`:""})(e);return{href:e,embedId:t}},[n]);if(r&&console.log("[VimeoEmbed] href:",a,"id:",s),!s)return null;const l=function(e){try{const t=new URL(e),n=t.pathname.split("/").filter(Boolean);if("video"===n[0]&&n.length>=2){const e=n[1],i=n[2],o=`https://player.vimeo.com/video/${e}`;return i&&/^[a-f0-9]+$/i.test(i)&&t.searchParams.set("h",i),`${o}?${t.searchParams.toString()}`}return e}catch(t){return e}}(`https://player.vimeo.com/video/${s}?${new URLSearchParams({autoplay:o?"1":"0",muted:"0",playsinline:"1",dnt:"1",title:"0",byline:"0",portrait:"0",autopause:"1"}).toString()}`);return e("div",{className:He("relative h-0 w-full overflow-hidden pb-[56.25%]",i),children:e("iframe",{className:"absolute left-0 top-0 h-full w-full",src:l,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin",title:"Embedded vimeo"})})};const Ct=t=>{const{link:n,containerClassName:i,autoplay:o=!1}=t,r=u(()=>{if(!n)return"";const e=n.toString().match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return e&&11===e[7].length?e[7]:""},[n]),a=o?"?autoplay=1":"";return e("div",{className:He("relative h-0 w-full overflow-hidden pb-[56.25%]",i),children:e("iframe",{className:"absolute left-0 top-0 h-full w-full",src:`https://www.youtube.com/embed/${r}${a}`,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Embedded youtube"})})},wt=({brow:n,enableHeading:i,title:o,subTitle:r,ctaDisclaimer:a,disclaimer:l,description:c,image:u,imageLinks:d,mediaPosition:p=!0,checklist:h,secondaryCta:m,cta:g,videoLink:f,maxWidth:b=!0,color:v="light",imageWidth:y=660,imageHeight:x=660,onModalButtonClick:I,renderCheckPlans:C})=>{var w,A;const[N,k]=s(""),[G,P]=s(!1),V=null!==(w=null==f?void 0:f.link)&&void 0!==w?w:"",B=null==f?void 0:f.image,T=null!==(A=null==f?void 0:f.videoPopup)&&void 0!==A&&A,S=Boolean(N&&N===V),E=f&&B?V.includes("vimeo")?e(It,{link:V,autoplay:S}):e(Ct,{link:V,autoplay:S}):null;return t("div",{className:"component-container",children:[e("div",{className:`image-promo-bar-content ${b?"max-w-120 xl:mx-auto":""} mx-5 mb-8 mt-16`,children:t("div",{className:"flex shrink-0 flex-col items-center gap-8 xl:gap-[126px] "+(p?"xl:flex-row-reverse":"xl:flex-row"),children:[t("div",{className:"flex flex-[1_0_0] flex-col items-start justify-center gap-8 xl:gap-10 "+("dark"==v?"text-text":"text-white"),children:[t("div",{className:"heading holder",children:[n&&e($e,{as:"div",className:"subheading4 mb-4 text-text-brand xl:subheading2 xl:mb-3",children:n}),o&&e($e,{as:i?"h1":"h2",className:"heading2 xl:heading1",children:o}),r&&e($e,{as:i?"h2":"h3",className:"subheading1 mt-3",children:r})]}),c&&e($e,{as:"div",className:"body1",children:c}),h.length>0&&e(ct,{items:h,iconPosition:"top",iconSize:24}),d.length>0&&e("div",{className:"flex gap-4",children:null==d?void 0:d.map((t,n)=>e("div",{className:"image-link w-[147px]",children:e(qe,{variant:"unstyled",href:t.url,target:"_blank",rel:"noopener noreferrer",children:e(ut,{src:t.image,alt:"icon-link"})})},n))}),(g||m)&&t("div",{className:"flex w-full flex-col gap-8 xl:flex-row xl:gap-3",children:[g&&e("div",{className:"primary-cta w-full xl:w-auto",children:e(et,{...g,fullWidth:!0,renderCheckPlans:C,onModalButtonClick:I})}),m&&e("div",{className:"secondary-cta",children:e(et,{...m,fullWidth:!0,renderCheckPlans:C,onModalButtonClick:I})})]}),a&&e("div",{children:a}),l&&e("div",{children:l})]}),t("aside",{className:"flex w-full shrink-0 items-center justify-center xl:w-auto",children:[u&&e("div",{className:"relative flex aspect-[16/9] w-full justify-center xl:aspect-square xl:max-h-[486px] xl:w-[486px]",children:e(nt,{src:u,alt:"section-image",width:y,height:x,className:"bottom-0 left-0 right-0 top-0 h-full rounded-[40px] object-cover"})}),(null==f?void 0:f.link)&&t("div",{className:He("video-section relative w-full cursor-pointer overflow-hidden rounded-[40px] transition-all duration-300 xl:w-[486px]",!S&&"hover:shadow-2xl"),onClick:()=>{var e;k(null!==(e=null==f?void 0:f.link)&&void 0!==e?e:"")},onMouseEnter:()=>P(!0),onMouseLeave:()=>P(!1),children:[t("div",{className:He(S&&!T&&"hidden",S&&!T?"opacity-0":"opacity-100","relative aspect-[16/9] w-full transition-opacity duration-300 xl:aspect-square"),children:[f.image&&e(nt,{src:f.image,alt:"Video preview",width:486,height:486,className:"absolute inset-0 h-full w-full rounded-[40px] object-cover"}),e("div",{className:"absolute inset-0 flex items-center justify-center",children:e(xt,{isHovered:G})})]}),!T&&S&&e("div",{className:He("aspect-[16/9] w-full overflow-hidden rounded-[40px] transition-opacity duration-300",S?"opacity-100":"opacity-0"),children:E})]})]})]})}),T&&S&&e("div",{className:"fixed inset-0 top-20 z-[100] flex items-center justify-center bg-black/80 p-4 transition-all duration-300",onClick:e=>{e.stopPropagation(),k("")},children:e("div",{className:"max-w-6xl aspect-video w-full overflow-hidden rounded-3xl bg-black shadow-2xl md:w-4/6",onClick:e=>e.stopPropagation(),children:E})})]})},At=({link:n,anchorName:i})=>{const[r,a]=o.useState(!1),s=o.useRef(null);if(((e,t)=>{const n=n=>{var i;(null===(i=null==e?void 0:e.current)||void 0===i?void 0:i.contains(n.target))||t()};l(()=>(document.addEventListener("click",n),()=>{document.removeEventListener("click",n)}))})(s,()=>a(!1)),!n)return null;if((e=>"string"==typeof e.href)(n))return e(et,{...n,linkClassName:"body3 flex items-center text-text-link h-full",linkVariant:"unstyled"},`submenu-link-btn-${n.anchorId}`);const{anchorId:c,title:u,items:d}=n,p=Array.isArray(null==d?void 0:d.items)?d.items:[],h=`--link-anchor-${i}`;return t("div",{className:"relative h-full",style:{anchorName:h},ref:s,children:[t(et,{onClick:()=>a(e=>!e),"aria-expanded":r,buttonClassName:"group body3 flex h-full items-center",showButtonAs:"unstyled",children:[e($e,{as:"span",className:"group-hover:underline",children:null!=u?u:null}),e(Je,{weight:"700",className:"text-icon-info group-hover:opacity-50",name:r?"keyboard_arrow_up":"keyboard_arrow_down"})]},c),e("div",{className:He("fixed z-10 min-w-44 rounded-xl bg-bg shadow-lg","transition-[opacity,transform] ease-out",r&&p.length>0?"pointer-events-auto translate-y-0 opacity-100 duration-75":"pointer-events-none -translate-y-2 opacity-0 duration-0"),style:{positionAnchor:h,top:"anchor(bottom)",right:"anchor(right)"},children:e("ul",{className:"flex flex-col gap-2 py-2",children:p.map((t,n)=>e("li",{className:"submenu-link",children:e(et,{...t,linkVariant:"unstyled",linkClassName:"body3 px-4 hover:bg-bg-surface-hover flex items-center w-full h-11 text-text-link"})},`submenu-link-${n}`))})})]})},Nt=({link:i})=>{const[r,a]=o.useState(!1);if(!i)return null;if((e=>"string"==typeof e.href)(i))return e(et,{...i,linkClassName:"label3 flex items-center w-full h-11 px-4 text-text-link",linkVariant:"unstyled"},`submenu-link-btn-${i.anchorId}`);const{anchorId:s,title:l,items:c}=i,u=Array.isArray(null==c?void 0:c.items)?c.items:[];return t(n,{children:[t(et,{onClick:()=>a(e=>!e),"aria-expanded":r,buttonClassName:"label3 flex h-11 w-full items-center px-4",showButtonAs:"unstyled",children:[null!=l?l:null,e(Je,{weight:"700",name:r?"keyboard_arrow_up":"keyboard_arrow_down"})]},s),r&&u.length>0&&e(kt,{items:u})]})},kt=({items:t})=>e("ul",{className:"flex flex-col gap-2",children:t.map((t,n)=>e("li",{className:"submenu-link",children:e(et,{...t,linkVariant:"unstyled",linkClassName:"body3 pl-8 pr-4 flex items-center w-full h-11 text-text-link"})},`submenu-link-${n}`))},`submenu-${t.length}`),Gt=n=>{const{showBlinkDot:i=!1,buttonStyle:o="primary",size:r="md",children:a,className:s,...l}=n;return t(qe,{...l,className:He("relative flex items-center gap-2 font-medium tracking-wide outline-offset-4 rounded-full",{sm:"h-6 text-xs pl-1 pr-2",md:"h-8 text-sm pl-1 pr-2",lg:"h-10 text-base pl-2 pr-3"}[r],{primary:"border-[0.727px] border-border text-text"}[o],s),children:[i?e("span",{className:`pointer-events-none absolute animate-blink ${{sm:"-left-4",md:"-left-6",lg:"-left-8"}[r]} top-1/2 ${{sm:"h-2 w-2",md:"h-3 w-3",lg:"h-4 w-4"}[r]} -translate-y-1/2 rounded-full bg-icon-brand`}):null,e("span",{className:`relative inline-flex ${{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}[r]} items-center justify-center rounded-full bg-icon-brand`,children:e(Je,{name:"call",fill:1,size:{sm:20,md:20,lg:32}[r],className:"text-white"})}),e("span",{className:"font-normal tracking-wide",children:a})]})};Gt.displayName="CallButton";const Pt=r((n,i)=>{const{className:o,size:r,required:a,placeholder:l,label:u,state:d,errorText:p,prefixIconName:h,prefixIconFill:m=!0,suffixIconFill:g=!1,prefixIconSize:f=24,suffixIconName:b,suffixIconSize:v=24,containerClassName:y,prefixIconClassName:x,loading:I,hasError:C,type:w,...A}=n,N=C?"error":d,[k,G]=s(!1),[P,V]=s(!1),[B,T]=s(w||"text"),S=c(e=>{e.stopPropagation(),T(e=>"password"===e?"text":"password")},[]);return t("div",{className:"relative",children:[u?e("label",{htmlFor:u,className:He("inline-block pb-1"),children:t($e,{as:"span",className:"footnote text-text",children:[u,a?e("span",{className:"pl-1 text-text-critical",children:"*"}):null]})}):null,t("div",{className:He("relative flex flex-row items-center overflow-hidden rounded-input border border-input-border bg-input-bg-surface",{sm:"h-[48px] px-3 py-2",slim:"h-12",medium:"h-14",large:"h-[60px]"}[r||"medium"],y,(k||"hover"===N)&&!P&&"error"!==N&&"border-input-border-hover",(P||"focus"===N||"active"===N)&&"border-input-border-selected outline outline-1 outline-input-border-selected","error"===N&&"border-input-border-critical outline outline-1 outline-input-border-critical"),children:[h?e("div",{className:"mr-1",style:{width:f,height:f,overflow:"hidden"},children:e(Je,{name:h,fill:m?1:0,size:f,className:He(x)})}):null,e("input",{ref:i,id:u,disabled:I||A.disabled,className:He("h-full grow rounded-input p-4 caret-bg-inverse placeholder:text-input-text-placeholder focus:border-none focus:outline-none","text-body2","slim"===r&&"text-body3",o),placeholder:l,type:B,...A,onMouseOver:()=>G(!0),onMouseOut:()=>G(!1),onFocus:e=>{var t;null===(t=A.onFocus)||void 0===t||t.call(A,e),V(!0)},onBlur:e=>{var t;null===(t=A.onBlur)||void 0===t||t.call(A,e),V(!1)}}),b?e("div",{className:"ml-2",style:{width:v,height:v,overflow:"hidden"},onClick:S,children:e(Je,{name:"text"===B?"visibility":"visibility_off",size:v,fill:g?1:0})}):null]}),"error"===N&&p&&""!=p?t($e,{className:He("footnote left-0 top-full inline-flex items-center pt-1 text-text-critical"),children:[e(Je,{name:"info",size:20,className:"mr-1"}),p||"Error"]}):null]})});Pt.displayName="Input";const Vt=n=>{const{primaryNavigationLinks:i,utilityNavigationLinks:o,checkPlansJSX:r,primaryNavigationLogo:a,accountNavigationLinks:s,supportNavigationLinks:l,searchBarIcon:c,invocaPhoneNumberLink:u,invocaPhoneNumberDisplayText:d,onSearch:p=()=>{}}=n;return t("div",{className:"component-container",children:[t("nav",{className:"menu-container",children:[e("div",{className:"utility-container hidden lg:block lg:border-b lg:px-2",children:t("div",{className:"mx-auto flex max-w-120 justify-between",children:[e("ul",{className:"flex gap-5","aria-label":"Utility Navigation",children:null==o?void 0:o.map((t,n)=>e("li",{children:e(et,{linkClassName:He("footnote flex items-center w-full h-11 text-text-link",1===n&&"label4"),linkVariant:"unstyled",...Object.fromEntries(Object.entries(t).filter(([e,t])=>null!==t))})},`main-menu-items-${n}`))}),t("div",{className:"flex items-center gap-10",children:[e(Gt,{className:"border-none",href:u,children:e($e,{className:"body3",children:d})}),null==s?void 0:s.map((t,n)=>e(At,{anchorName:`my-account-${n}`,link:t},`my-account-${n}`))]})]})}),t("div",{className:"main-nav-container","aria-label":"Main Navigation",children:[t("div",{className:"mobile-nav-section flex h-14 items-center justify-between px-5 py-[10px] lg:hidden",children:[e("div",{children:e(qe,{href:"/",className:"flex",children:e(nt,{src:"string"==typeof a?a:(null==a?void 0:a.url)||"",alt:"Kinetic business logo",width:76.5,height:24})})}),t("div",{className:"flex items-center gap-6",children:[e(Gt,{href:u,children:e($e,{as:"span",className:"footnote",children:d})}),e(Bt,{...n})]})]}),e("div",{className:"desktop-nav-section hidden lg:block lg:border-b lg:px-2",children:t("div",{className:"mx-auto flex h-14 max-w-120 items-center justify-between",children:[t("div",{className:"flex h-full",children:[e(qe,{href:"/",className:"flex",children:e(nt,{src:"string"==typeof a?a:(null==a?void 0:a.url)||"",alt:"Kinetic business logo",width:76.5,height:24,className:"mr-14"})}),e("div",{className:"flex h-full items-center gap-5",children:null==i?void 0:i.map((t,n)=>e(At,{anchorName:`main-menu-${n}`,link:t},`main-menu-${n}`))})]}),t("div",{className:"flex h-full items-center gap-10",children:[e(St,{searchBarIconURL:"string"==typeof c?c:(null==c?void 0:c.url)||"",onSearch:p}),null==l?void 0:l.map((t,n)=>e(At,{anchorName:`support-menu-${n}`,link:t},`support-menu-${n}`))]})]})})]})]}),r&&e("div",{className:"md:hidden",children:r})]})},Bt=n=>{var i;const{primaryNavigationLinks:r,utilityNavigationLinks:a}=n,[s,l]=o.useState(!1);o.useEffect(()=>{if("undefined"==typeof window)return;document.body.style.overflowY=s?"hidden":"unset";const e=document.getElementById("drawer-items");if(!e)return;const t=e.querySelectorAll(".focus-item"),n=t[0],i=t[t.length-1],o=e=>{var t,o,r,a;("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===n&&(null===(o=(t=i).focus)||void 0===o||o.call(t),e.preventDefault()):document.activeElement===i&&(null===(a=(r=n).focus)||void 0===a||a.call(r),e.preventDefault()))};return window.addEventListener("keydown",o),()=>{document.body.style.overflowY="unset",window.removeEventListener("keydown",o)}},[s]);const c=()=>{l(!1)};return t("div",{children:[e(et,{showButtonAs:"unstyled",buttonClassName:"flex",onClick:()=>l(!0),children:e(Je,{name:"menu"})}),s?e("div",{className:"fixed bottom-0 left-0 right-0 top-0 z-[90] h-full w-full bg-scrim-bg-modal"}):null,e("div",{className:He("fixed bottom-0 right-0 top-0","z-[100] h-full bg-bg px-0 py-4","transition-all duration-300 ease-in-out","block",s?"right-0":"-right-96"),id:"mobile-menu-overlay",children:t("div",{id:"drawer-items",className:"flex h-full flex-col gap-3",children:[t("div",{className:"flex items-center justify-between px-4",children:[e("div",{children:e(Gt,{className:"border-none",href:n.invocaPhoneNumberLink,children:n.invocaPhoneNumberDisplayText})}),e("div",{children:e(et,{showButtonAs:"unstyled",buttonClassName:"focus-item flex",onClick:c,children:e(Je,{name:"close"})})})]}),e(Tt,{closeMenu:c,isMenuOpen:s,searchBarIconURL:"string"==typeof n.searchBarIcon?n.searchBarIcon:(null===(i=n.searchBarIcon)||void 0===i?void 0:i.url)||"",onSearch:n.onSearch||(()=>{})}),t("div",{className:"flex-grow overflow-y-auto",children:[e("ul",{className:"mt-2 flex flex-col gap-2",children:null==r?void 0:r.map((t,n)=>e("li",{children:e(Nt,{link:t})},`main-menu-items-${n}`))}),e("ul",{className:"mt-2 flex gap-5 bg-bg-fill-info px-4",children:null==a?void 0:a.map((t,n)=>e("li",{children:e(et,{...Object.fromEntries(Object.entries(t).filter(([e,t])=>null!==t)),linkClassName:He("footnote flex items-center w-full h-11 text-text-link",1===n&&"label4"),linkVariant:"unstyled"},`submenu-link-btn-${t.anchorId}`)},`main-menu-items-${n}`))})]})]})})]})},Tt=n=>{const{closeMenu:i,onSearch:r,isMenuOpen:a,searchBarIconURL:s}=n,[l,c]=o.useState(""),u=o.useRef(null),d=e=>{i(),e.preventDefault(),r(l)};return o.useEffect(()=>{a||c("")},[a]),t("form",{name:"searchForm",className:"flex border-b border-t transition-colors focus-within:border-border-focus",onSubmit:d,children:[e(nt,{src:s,width:32,height:32,alt:"Search icon",role:"button",className:"ml-2",onClick:d}),e("div",{className:"flex-grow",children:e(Pt,{ref:u,className:"h-[34px] rounded-none text-body3 font-medium leading-6",name:"search",placeholder:"Search...",value:l,onChange:e=>c(e.target.value),autoComplete:"off",containerClassName:"h-[46px] px-4 pl-0 rounded-none flex-grow border-none"})})]})},St=n=>{const{searchBarIconURL:i,onSearch:r}=n,[a,s]=o.useState(""),l=o.useRef(null),c=e=>{e.preventDefault(),r(a)};return t("form",{name:"searchForm",className:"flex h-9 w-60 rounded-full border transition-colors focus-within:border-border-focus",onSubmit:c,children:[e(nt,{src:i,width:32,height:32,alt:"Search icon",role:"button",onClick:c}),e(Pt,{ref:l,className:"rounded-full p-0 text-body3 font-medium leading-6",name:"search",placeholder:"Search...",value:a,onChange:e=>s(e.target.value),autoComplete:"off",containerClassName:"px-0 h-full border-none rounded-full"})]})},Et=n=>{var i;const{title:o,showAsHeading:r,subTitle:a,primaryCta1:s,carouselImages:l,bottomLink:c,price:u,priceCallout:d,priceSuffix:p,checklist:h,renderCheckPlans:m,badgeImage:g,pricingDescriptionDisclaimer:f,secondaryCta:b,secondaryCtaPrefix:v,onModalButtonClick:y}=n,x=null!==(i=null==c?void 0:c.buttonLabel)&&void 0!==i?i:null==c?void 0:c.label;return e("div",{className:"component-container p-5 lg:h-[724px] lg:p-0",children:t("div",{className:He("primary-hero-container mx-auto flex flex-col sm:items-center sm:text-center lg:h-full lg:max-w-120 lg:flex-row lg:items-center lg:justify-between lg:gap-4 lg:px-4 lg:text-left"),children:[e("div",{className:He("relative flex flex-col text-white sm:w-[485px]"),children:t("div",{className:"flex flex-col gap-5 lg:gap-6",children:[o&&e($e,{as:r?"h1":"h2",className:"heading2 lg:heading1",children:o}),a&&e($e,{as:"p",className:"subheading3 lg:subheading1",children:a}),u?t("div",{className:"flex sm:justify-center sm:text-left lg:justify-start",children:[e("div",{className:"mr-2 mt-0.5",children:d?d.split("|").map((t,n)=>e($e,{as:"p",className:"body2",children:t},n)):null}),t("div",{className:"flex",children:[e($e,{as:"p",className:"subheading1 mt-0.5",children:"$"}),e($e,{as:"p",className:"subheading5",children:u}),p?e($e,{as:"p",className:"subheading1 mt-0.5",children:p}):null]})]}):null,h&&e(ct,{listItemClassName:"text-white body2 text-left",items:h.map(e=>e.title)}),t("div",{className:"flex flex-col gap-3",children:[s&&e("div",{className:He("hidden md:flex md:flex-col"),children:e(et,{...s,renderCheckPlans:m,onModalButtonClick:y})}),v||b?t("div",{className:"hidden md:flex",children:[v&&e($e,{as:"span",className:"body2 mr-1",children:v}),b&&e(et,{linkClassName:"body2 text-text-inverse",onModalButtonClick:y,...b})]}):null,c&&(x||(null==c?void 0:c.href))&&e("div",{className:"hidden md:block",children:e(et,{...c,linkClassName:"text-footnote text-white",onModalButtonClick:y})}),f?e($e,{as:"p",className:"body3 hidden md:block",children:f}):null]})]})}),t("div",{className:"lg:hidden",children:[t("div",{className:"relative my-8",children:[g?e(nt,{src:g,alt:"Badge",className:"absolute left-5 top-5 aspect-square w-26 object-cover object-center",width:100,height:100,loading:"eager"}):null,l&&l[0]?e(nt,{src:l[0],alt:"Hero",className:"aspect-[1.71:1] sm:aspect-[1.41:1] w-full rounded-[40px] object-cover object-center sm:h-[420px]",width:350,height:205,loading:"eager"}):null]}),c&&(x||(null==c?void 0:c.href))&&e("div",{className:"md:hidden",children:e(et,{...c,onModalButtonClick:y,linkClassName:"body3 text-white"})}),f?e($e,{as:"p",className:"body3 md:hidden",children:f}):null,v||b?t("div",{className:"flex md:hidden",children:[v&&e($e,{as:"span",className:"body2 mr-1",children:v}),b&&e(et,{...b,onModalButtonClick:y,linkClassName:"text-white"})]}):null]}),t("div",{className:He("relative hidden lg:block"),children:[g?e(nt,{src:g,alt:"Badge",className:"absolute -left-26 top-18 aspect-square w-52 object-cover object-center",width:200,height:200,loading:"eager"}):null,l&&l[0]?e(nt,{src:l[0],alt:"Hero",className:"aspect-square rounded-[40px] object-cover object-center",width:600,height:600,loading:"eager"}):null]})]})})},Rt=({fields:t})=>e("div",{children:e($e,{children:"Text Block"})}),Mt={closed:{opacity:0},open:{opacity:1}},Xt={closed:{opacity:0,scale:.96},open:{opacity:1,scale:1}},Wt={xs:"475px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Lt=d({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ft=d({}),Ot=d(null),Dt="undefined"!=typeof document,Zt=Dt?p:l,zt=d({strict:!1});function Ht(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function jt(e){return"string"==typeof e||Array.isArray(e)}function Yt(e){return"object"==typeof e&&"function"==typeof e.start}const Jt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ut=["initial",...Jt];function $t(e){return Yt(e.animate)||Ut.some(t=>jt(e[t]))}function Qt(e){return Boolean($t(e)||e.variants)}function _t(e){const{initial:t,animate:n}=function(e,t){if($t(e)){const{initial:t,animate:n}=e;return{initial:!1===t||jt(t)?t:void 0,animate:jt(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,h(Ft));return u(()=>({initial:t,animate:n}),[Kt(t),Kt(n)])}function Kt(e){return Array.isArray(e)?e.join(" "):e}const qt={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"]},en={};for(const e in qt)en[e]={isEnabled:t=>qt[e].some(e=>!!t[e])};const tn=d({}),nn=d({}),on=Symbol.for("motionComponentSymbol");function rn({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:o,Component:s}){e&&function(e){for(const t in e)en[t]={...en[t],...e[t]}}(e);const u=r(function(r,u){let d;const p={...h(Lt),...r,layoutId:an(r)},{isStatic:g}=p,f=_t(r),b=o(r,g);if(!g&&Dt){f.visualElement=function(e,t,n,i){const{visualElement:o}=h(Ft),r=h(zt),s=h(Ot),c=h(Lt).reducedMotion,u=a();i=i||r.renderer,!u.current&&i&&(u.current=i(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:c}));const d=u.current;return m(()=>{d&&d.update(n,s)}),Zt(()=>{d&&d.render()}),l(()=>{d&&d.updateFeatures()}),(window.HandoffAppearAnimations?Zt:l)(()=>{d&&d.animationState&&d.animationState.animateChanges()}),d}(s,b,p,t);const n=h(nn),i=h(zt).strict;f.visualElement&&(d=f.visualElement.loadFeatures(p,i,e,n))}return i.createElement(Ft.Provider,{value:f},d&&f.visualElement?i.createElement(d,{visualElement:f.visualElement,...p}):null,n(s,r,function(e,t,n){return c(i=>{i&&e.mount&&e.mount(i),t&&(i?t.mount(i):t.unmount()),n&&("function"==typeof n?n(i):Ht(n)&&(n.current=i))},[t])}(b,f.visualElement,u),b,g,f.visualElement))});return u[on]=s,u}function an({layoutId:e}){const t=h(tn).id;return t&&void 0!==e?t+"-"+e:e}function sn(e){function t(t,n={}){return rn(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const ln=["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 cn(e){return"string"==typeof e&&!e.includes("-")&&!!(ln.indexOf(e)>-1||/[A-Z]/.test(e))}const un={};const dn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],pn=new Set(dn);function hn(e,{layout:t,layoutId:n}){return pn.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!un[e]||"opacity"===e)}const mn=e=>Boolean(e&&e.getVelocity),gn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},fn=dn.length;const bn=e=>t=>"string"==typeof t&&t.startsWith(e),vn=bn("--"),yn=bn("var(--"),xn=(e,t)=>t&&"number"==typeof e?t.transform(e):e,In=(e,t,n)=>Math.min(Math.max(n,e),t),Cn={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},wn={...Cn,transform:e=>In(0,1,e)},An={...Cn,default:1},Nn=e=>Math.round(1e5*e)/1e5,kn=/(-)?([\d]*\.?[\d])+/g,Gn=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Pn=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Vn(e){return"string"==typeof e}const Bn=e=>({test:t=>Vn(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Tn=Bn("deg"),Sn=Bn("%"),En=Bn("px"),Rn=Bn("vh"),Mn=Bn("vw"),Xn={...Sn,parse:e=>Sn.parse(e)/100,transform:e=>Sn.transform(100*e)},Wn={...Cn,transform:Math.round},Ln={borderWidth:En,borderTopWidth:En,borderRightWidth:En,borderBottomWidth:En,borderLeftWidth:En,borderRadius:En,radius:En,borderTopLeftRadius:En,borderTopRightRadius:En,borderBottomRightRadius:En,borderBottomLeftRadius:En,width:En,maxWidth:En,height:En,maxHeight:En,size:En,top:En,right:En,bottom:En,left:En,padding:En,paddingTop:En,paddingRight:En,paddingBottom:En,paddingLeft:En,margin:En,marginTop:En,marginRight:En,marginBottom:En,marginLeft:En,rotate:Tn,rotateX:Tn,rotateY:Tn,rotateZ:Tn,scale:An,scaleX:An,scaleY:An,scaleZ:An,skew:Tn,skewX:Tn,skewY:Tn,distance:En,translateX:En,translateY:En,translateZ:En,x:En,y:En,z:En,perspective:En,transformPerspective:En,opacity:wn,originX:Xn,originY:Xn,originZ:En,zIndex:Wn,fillOpacity:wn,strokeOpacity:wn,numOctaves:Wn};function Fn(e,t,n,i){const{style:o,vars:r,transform:a,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if(vn(e)){r[e]=n;continue}const i=Ln[e],d=xn(n,i);if(pn.has(e)){if(l=!0,a[e]=d,!u)continue;n!==(i.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,s[e]=d):o[e]=d}if(t.transform||(l||i?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},i,o){let r="";for(let t=0;t<fn;t++){const n=dn[t];void 0!==e[n]&&(r+=`${gn[n]||n}(${e[n]}) `)}return t&&!e.z&&(r+="translateZ(0)"),r=r.trim(),o?r=o(e,i?"":r):n&&i&&(r="none"),r}(e.transform,n,u,i):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;o.transformOrigin=`${e} ${t} ${n}`}}const On=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Dn(e,t,n){for(const i in t)mn(t[i])||hn(i,n)||(e[i]=t[i])}function Zn(e,t,n){const i={};return Dn(i,e.style||{},e),Object.assign(i,function({transformTemplate:e},t,n){return u(()=>{const i={style:{},transform:{},transformOrigin:{},vars:{}};return Fn(i,t,{enableHardwareAcceleration:!n},e),Object.assign({},i.vars,i.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(i):i}function zn(e,t,n){const i={},o=Zn(e,t,n);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=o,i}const Hn=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function jn(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Hn.has(e)}let Yn=e=>!jn(e);try{(Jn=require("@emotion/is-prop-valid").default)&&(Yn=e=>e.startsWith("on")?!jn(e):Jn(e))}catch(e){}var Jn;function Un(e,t,n){return"string"==typeof e?e:En.transform(t+n*e)}const $n={offset:"stroke-dashoffset",array:"stroke-dasharray"},Qn={offset:"strokeDashoffset",array:"strokeDasharray"};function _n(e,{attrX:t,attrY:n,attrScale:i,originX:o,originY:r,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d,p){if(Fn(e,c,u,p),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:h,style:m,dimensions:g}=e;h.transform&&(g&&(m.transform=h.transform),delete h.transform),g&&(void 0!==o||void 0!==r||m.transform)&&(m.transformOrigin=function(e,t,n){return`${Un(t,e.x,e.width)} ${Un(n,e.y,e.height)}`}(g,void 0!==o?o:.5,void 0!==r?r:.5)),void 0!==t&&(h.x=t),void 0!==n&&(h.y=n),void 0!==i&&(h.scale=i),void 0!==a&&function(e,t,n=1,i=0,o=!0){e.pathLength=1;const r=o?$n:Qn;e[r.offset]=En.transform(-i);const a=En.transform(t),s=En.transform(n);e[r.array]=`${a} ${s}`}(h,a,s,l,!1)}const Kn=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),qn=e=>"string"==typeof e&&"svg"===e.toLowerCase();function ei(e,t,n,i){const o=u(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return _n(n,t,{enableHardwareAcceleration:!1},qn(i),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};Dn(t,e.style,e),o.style={...t,...o.style}}return o}function ti(e=!1){return(t,n,i,{latestValues:o},r)=>{const a=(cn(t)?ei:zn)(n,o,r,t),s=function(e,t,n){const i={};for(const o in e)"values"===o&&"object"==typeof e.values||(Yn(o)||!0===n&&jn(o)||!t&&!jn(o)||e.draggable&&o.startsWith("onDrag"))&&(i[o]=e[o]);return i}(n,"string"==typeof t,e),l={...s,...a,ref:i},{children:c}=n,d=u(()=>mn(c)?c.get():c,[c]);return g(t,{...l,children:d})}}const ni=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function ii(e,{style:t,vars:n},i,o){Object.assign(e.style,t,o&&o.getProjectionStyles(i));for(const t in n)e.style.setProperty(t,n[t])}const oi=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ri(e,t,n,i){ii(e,t,void 0,i);for(const n in t.attrs)e.setAttribute(oi.has(n)?n:ni(n),t.attrs[n])}function ai(e,t){const{style:n}=e,i={};for(const o in n)(mn(n[o])||t.style&&mn(t.style[o])||hn(o,e))&&(i[o]=n[o]);return i}function si(e,t){const n=ai(e,t);for(const i in e)if(mn(e[i])||mn(t[i])){n[-1!==dn.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]}return n}function li(e,t,n,i={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,i,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,i,o)),t}function ci(e){const t=a(null);return null===t.current&&(t.current=e()),t.current}const ui=e=>Array.isArray(e),di=e=>ui(e)?e[e.length-1]||0:e;function pi(e){const t=mn(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const hi=e=>(t,n)=>{const i=h(Ft),o=h(Ot),r=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},i,o,r){const a={latestValues:mi(i,o,r,e),renderState:t()};return n&&(a.mount=e=>n(i,e,a)),a}(e,t,i,o);return n?r():ci(r)};function mi(e,t,n,i){const o={},r=i(e,{});for(const e in r)o[e]=pi(r[e]);let{initial:a,animate:s}=e;const l=$t(e),c=Qt(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!Yt(d)){(Array.isArray(d)?d:[d]).forEach(t=>{const n=li(e,t);if(!n)return;const{transitionEnd:i,transition:r,...a}=n;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in i)o[e]=i[e]})}return o}const gi={useVisualState:hi({scrapeMotionValuesFromProps:si,createRenderState:Kn,onMount:(e,t,{renderState:n,latestValues:i})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}_n(n,i,{enableHardwareAcceleration:!1},qn(t.tagName),e.transformTemplate),ri(t,n)}})},fi={useVisualState:hi({scrapeMotionValuesFromProps:ai,createRenderState:On})};function bi(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}const vi=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function yi(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function xi(e,t,n,i){return bi(e,t,(e=>t=>vi(t)&&e(t,yi(t)))(n),i)}const Ii=(e,t)=>n=>t(e(n)),Ci=(...e)=>e.reduce(Ii);function wi(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const Ai=wi("dragHorizontal"),Ni=wi("dragVertical");function ki(e){let t=!1;if("y"===e)t=Ni();else if("x"===e)t=Ai();else{const e=Ai(),n=Ni();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Gi(){const e=ki(!0);return!e||(e(),!1)}class Pi{constructor(e){this.isMounted=!1,this.node=e}update(){}}const Vi={delta:0,timestamp:0,isProcessing:!1};let Bi=!0,Ti=!1;const Si=["read","update","preRender","render","postRender"],Ei=Si.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],i=0,o=!1,r=!1;const a=new WeakSet,s={schedule:(e,r=!1,s=!1)=>{const l=s&&o,c=l?t:n;return r&&a.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(i=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(o)r=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,i=t.length,i)for(let n=0;n<i;n++){const i=t[n];i(l),a.has(i)&&(s.schedule(i),e())}o=!1,r&&(r=!1,s.process(l))}}};return s}(()=>Ti=!0),e),{}),Ri=e=>Ei[e].process(Vi),Mi=e=>{Ti=!1,Vi.delta=Bi?1e3/60:Math.max(Math.min(e-Vi.timestamp,40),1),Vi.timestamp=e,Vi.isProcessing=!0,Si.forEach(Ri),Vi.isProcessing=!1,Ti&&(Bi=!1,requestAnimationFrame(Mi))},Xi=Si.reduce((e,t)=>{const n=Ei[t];return e[t]=(e,t=!1,i=!1)=>(Ti||(Ti=!0,Bi=!0,Vi.isProcessing||requestAnimationFrame(Mi)),n.schedule(e,t,i)),e},{});function Wi(e){Si.forEach(t=>Ei[t].cancel(e))}function Li(e,t){const n="pointer"+(t?"enter":"leave"),i="onHover"+(t?"Start":"End");return xi(e.current,n,(n,o)=>{if("touch"===n.type||Gi())return;const r=e.getProps();e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",t),r[i]&&Xi.update(()=>r[i](n,o))},{passive:!e.getProps()[i]})}const Fi=(e,t)=>!!t&&(e===t||Fi(e,t.parentElement)),Oi=e=>e;function Di(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,yi(n))}const Zi=new WeakMap,zi=new WeakMap,Hi=e=>{const t=Zi.get(e.target);t&&t(e)},ji=e=>{e.forEach(Hi)};function Yi(e,t,n){const i=function({root:e,...t}){const n=e||document;zi.has(n)||zi.set(n,{});const i=zi.get(n),o=JSON.stringify(t);return i[o]||(i[o]=new IntersectionObserver(ji,{root:e,...t})),i[o]}(t);return Zi.set(e,n),i.observe(e),()=>{Zi.delete(e),i.unobserve(e)}}const Ji={some:0,all:1};const Ui={inView:{Feature:class extends Pi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:i="some",once:o}=e,r={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:Ji[i]};return Yi(this.node.current,r,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),r=t?n:i;r&&r(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Pi{constructor(){super(...arguments),this.removeStartListeners=Oi,this.removeEndListeners=Oi,this.removeAccessibleListeners=Oi,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),i=xi(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:i}=this.node.getProps();Xi.update(()=>{Fi(this.node.current,e.target)?n&&n(e,t):i&&i(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),o=xi(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Ci(i,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=bi(this.node.current,"keydown",e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=bi(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&Di("up",(e,t)=>{const{onTap:n}=this.node.getProps();n&&Xi.update(()=>n(e,t))})}),Di("down",(e,t)=>{this.startPress(e,t)})}),t=bi(this.node.current,"blur",()=>{this.isPressing&&Di("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=Ci(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Xi.update(()=>n(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Gi()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Xi.update(()=>n(e,t))}mount(){const e=this.node.getProps(),t=xi(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=bi(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ci(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Pi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ci(bi(this.node.current,"focus",()=>this.onFocus()),bi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Pi{mount(){this.unmount=Ci(Li(this.node,!0),Li(this.node,!1))}unmount(){}}}};function $i(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function Qi(e,t,n){const i=e.getProps();return li(i,t,void 0!==n?n:i.custom,function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}const _i="data-"+ni("framerAppearId");let Ki=Oi,qi=Oi;"production"!==process.env.NODE_ENV&&(Ki=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},qi=(e,t)=>{if(!e)throw new Error(t)});const eo=e=>1e3*e,to=e=>e/1e3,no=!1,io=e=>Array.isArray(e)&&"number"==typeof e[0];function oo(e){return Boolean(!e||"string"==typeof e&&ao[e]||io(e)||Array.isArray(e)&&e.every(oo))}const ro=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,ao={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ro([0,.65,.55,1]),circOut:ro([.55,0,1,.45]),backIn:ro([.31,.01,.66,-.59]),backOut:ro([.33,1.53,.69,.99])};function so(e){if(e)return io(e)?ro(e):Array.isArray(e)?e.map(so):ao[e]}const lo={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},co={},uo={};for(const e in lo)uo[e]=()=>(void 0===co[e]&&(co[e]=lo[e]()),co[e]);const po=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function ho(e,t,n,i){if(e===t&&n===i)return Oi;const o=t=>function(e,t,n,i,o){let r,a,s=0;do{a=t+(n-t)/2,r=po(a,i,o)-e,r>0?n=a:t=a}while(Math.abs(r)>1e-7&&++s<12);return a}(t,0,1,e,n);return e=>0===e||1===e?e:po(o(e),t,i)}const mo=ho(.42,0,1,1),go=ho(0,0,.58,1),fo=ho(.42,0,.58,1),bo=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,vo=e=>t=>1-e(1-t),yo=e=>1-Math.sin(Math.acos(e)),xo=vo(yo),Io=bo(xo),Co=ho(.33,1.53,.69,.99),wo=vo(Co),Ao=bo(wo),No={linear:Oi,easeIn:mo,easeInOut:fo,easeOut:go,circIn:yo,circInOut:Io,circOut:xo,backIn:wo,backInOut:Ao,backOut:Co,anticipate:e=>(e*=2)<1?.5*wo(e):.5*(2-Math.pow(2,-10*(e-1)))},ko=e=>{if(Array.isArray(e)){qi(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,i,o]=e;return ho(t,n,i,o)}return"string"==typeof e?(qi(void 0!==No[e],`Invalid easing type '${e}'`),No[e]):e},Go=(e,t)=>n=>Boolean(Vn(n)&&Pn.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Po=(e,t,n)=>i=>{if(!Vn(i))return i;const[o,r,a,s]=i.match(kn);return{[e]:parseFloat(o),[t]:parseFloat(r),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Vo={...Cn,transform:e=>Math.round((e=>In(0,255,e))(e))},Bo={test:Go("rgb","red"),parse:Po("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+Vo.transform(e)+", "+Vo.transform(t)+", "+Vo.transform(n)+", "+Nn(wn.transform(i))+")"};const To={test:Go("#"),parse:function(e){let t="",n="",i="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,i+=i,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}},transform:Bo.transform},So={test:Go("hsl","hue"),parse:Po("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Sn.transform(Nn(t))+", "+Sn.transform(Nn(n))+", "+Nn(wn.transform(i))+")"},Eo={test:e=>Bo.test(e)||To.test(e)||So.test(e),parse:e=>Bo.test(e)?Bo.parse(e):So.test(e)?So.parse(e):To.parse(e),transform:e=>Vn(e)?e:e.hasOwnProperty("red")?Bo.transform(e):So.transform(e)},Ro=(e,t,n)=>-n*e+n*t+e;function Mo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const Xo=(e,t,n)=>{const i=e*e;return Math.sqrt(Math.max(0,n*(t*t-i)+i))},Wo=[To,Bo,So];function Lo(e){const t=(n=e,Wo.find(e=>e.test(n)));var n;qi(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let i=t.parse(e);return t===So&&(i=function({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,n/=100;let o=0,r=0,a=0;if(t/=100){const i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;o=Mo(s,i,e+1/3),r=Mo(s,i,e),a=Mo(s,i,e-1/3)}else o=r=a=n;return{red:Math.round(255*o),green:Math.round(255*r),blue:Math.round(255*a),alpha:i}}(i)),i}const Fo=(e,t)=>{const n=Lo(e),i=Lo(t),o={...n};return e=>(o.red=Xo(n.red,i.red,e),o.green=Xo(n.green,i.green,e),o.blue=Xo(n.blue,i.blue,e),o.alpha=Ro(n.alpha,i.alpha,e),Bo.transform(o))};const Oo={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:Oi},Do={regex:Gn,countKey:"Colors",token:"${c}",parse:Eo.parse},Zo={regex:kn,countKey:"Numbers",token:"${n}",parse:Cn.parse};function zo(e,{regex:t,countKey:n,token:i,parse:o}){const r=e.tokenised.match(t);r&&(e["num"+n]=r.length,e.tokenised=e.tokenised.replace(t,i),e.values.push(...r.map(o)))}function Ho(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&zo(n,Oo),zo(n,Do),zo(n,Zo),n}function jo(e){return Ho(e).values}function Yo(e){const{values:t,numColors:n,numVars:i,tokenised:o}=Ho(e),r=t.length;return e=>{let t=o;for(let o=0;o<r;o++)t=o<i?t.replace(Oo.token,e[o]):o<i+n?t.replace(Do.token,Eo.transform(e[o])):t.replace(Zo.token,Nn(e[o]));return t}}const Jo=e=>"number"==typeof e?0:e;const Uo={test:function(e){var t,n;return isNaN(e)&&Vn(e)&&((null===(t=e.match(kn))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Gn))||void 0===n?void 0:n.length)||0)>0},parse:jo,createTransformer:Yo,getAnimatableNone:function(e){const t=jo(e);return Yo(e)(t.map(Jo))}},$o=(e,t)=>n=>`${n>0?t:e}`;function Qo(e,t){return"number"==typeof e?n=>Ro(e,t,n):Eo.test(e)?Fo(e,t):e.startsWith("var(")?$o(e,t):qo(e,t)}const _o=(e,t)=>{const n=[...e],i=n.length,o=e.map((e,n)=>Qo(e,t[n]));return e=>{for(let t=0;t<i;t++)n[t]=o[t](e);return n}},Ko=(e,t)=>{const n={...e,...t},i={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(i[o]=Qo(e[o],t[o]));return e=>{for(const t in i)n[t]=i[t](e);return n}},qo=(e,t)=>{const n=Uo.createTransformer(t),i=Ho(e),o=Ho(t);return i.numVars===o.numVars&&i.numColors===o.numColors&&i.numNumbers>=o.numNumbers?Ci(_o(i.values,o.values),n):(Ki(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),$o(e,t))},er=(e,t,n)=>{const i=t-e;return 0===i?1:(n-e)/i},tr=(e,t)=>n=>Ro(e,t,n);function nr(e,t,n){const i=[],o=n||("number"==typeof(r=e[0])?tr:"string"==typeof r?Eo.test(r)?Fo:qo:Array.isArray(r)?_o:"object"==typeof r?Ko:tr);var r;const a=e.length-1;for(let n=0;n<a;n++){let r=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||Oi:t;r=Ci(e,r)}i.push(r)}return i}function ir(e,t,{clamp:n=!0,ease:i,mixer:o}={}){const r=e.length;if(qi(r===t.length,"Both input and output ranges must be the same length"),1===r)return()=>t[0];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=nr(t,i,o),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const i=er(e[n],e[n+1],t);return a[n](i)};return n?t=>l(In(e[0],e[r-1],t)):l}function or(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const o=er(0,t,i);e.push(Ro(n,1,o))}}(t,e.length-1),t}function rr({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(i)?i.map(ko):ko(i),r={done:!1,value:t[0]},a=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:or(t),e),s=ir(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map(()=>c||fo).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(r.value=s(t),r.done=t>=e,r)}}function ar(e,t){return t?e*(1e3/t):0}function sr(e,t,n){const i=Math.max(t-5,0);return ar(n-e(i),t-i)}const lr=.001;function cr({duration:e=800,bounce:t=.25,velocity:n=0,mass:i=1}){let o,r;Ki(e<=eo(10),"Spring duration must be 10 seconds or less");let a=1-t;a=In(.05,1,a),e=In(.01,10,to(e)),a<1?(o=t=>{const i=t*a,o=i*e,r=i-n,s=dr(t,a),l=Math.exp(-o);return lr-r/s*l},r=t=>{const i=t*a*e,r=i*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-i),c=dr(Math.pow(t,2),a);return(-o(t)+lr>0?-1:1)*((r-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,r=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let i=n;for(let n=1;n<ur;n++)i-=e(i)/t(i);return i}(o,r,5/e);if(e=eo(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*i;return{stiffness:t,damping:2*a*Math.sqrt(i*t),duration:e}}}const ur=12;function dr(e,t){return e*Math.sqrt(1-t*t)}const pr=["duration","bounce"],hr=["stiffness","damping","mass"];function mr(e,t){return t.some(t=>void 0!==e[t])}function gr({keyframes:e,restDelta:t,restSpeed:n,...i}){const o=e[0],r=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!mr(e,hr)&&mr(e,pr)){const n=cr(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(i),h=u?-to(u):0,m=l/(2*Math.sqrt(s*c)),g=r-o,f=to(Math.sqrt(s/c)),b=Math.abs(g)<5;let v;if(n||(n=b?.01:2),t||(t=b?.005:.5),m<1){const e=dr(f,m);v=t=>{const n=Math.exp(-m*f*t);return r-n*((h+m*f*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===m)v=e=>r-Math.exp(-f*e)*(g+(h+f*g)*e);else{const e=f*Math.sqrt(m*m-1);v=t=>{const n=Math.exp(-m*f*t),i=Math.min(e*t,300);return r-n*((h+m*f*g)*Math.sinh(i)+e*g*Math.cosh(i))/e}}return{calculatedDuration:p&&d||null,next:e=>{const i=v(e);if(p)a.done=e>=d;else{let o=h;0!==e&&(o=m<1?sr(v,e,i):0);const s=Math.abs(o)<=n,l=Math.abs(r-i)<=t;a.done=s&&l}return a.value=a.done?r:i,a}}}function fr({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:o=10,bounceStiffness:r=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},h=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let m=n*t;const g=d+m,f=void 0===a?g:a(g);f!==g&&(m=f-d);const b=e=>-m*Math.exp(-e/i),v=e=>f+b(e),y=e=>{const t=b(e),n=v(e);p.done=Math.abs(t)<=c,p.value=p.done?f:n};let x,I;const C=e=>{var t;(t=p.value,void 0!==s&&t<s||void 0!==l&&t>l)&&(x=e,I=gr({keyframes:[p.value,h(p.value)],velocity:sr(v,e,p.value),damping:o,stiffness:r,restDelta:c,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return I||void 0!==x||(t=!0,y(e),C(e)),void 0!==x&&e>x?I.next(e-x):(!t&&y(e),p)}}}const br=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Xi.update(t,!0),stop:()=>Wi(t),now:()=>Vi.isProcessing?Vi.timestamp:performance.now()}};function vr(e){let t=0;let n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}const yr={decay:fr,inertia:fr,tween:rr,keyframes:rr,spring:gr};function xr({autoplay:e=!0,delay:t=0,driver:n=br,keyframes:i,type:o="keyframes",repeat:r=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...p}){let h,m,g=1,f=!1;const b=()=>{h&&h(),m=new Promise(e=>{h=e})};let v;b();const y=yr[o]||rr;let x;y!==rr&&"number"!=typeof i[0]&&(x=ir([0,100],i,{clamp:!1}),i=[0,100]);const I=y({...p,keyframes:i});let C;"mirror"===s&&(C=y({...p,keyframes:[...i].reverse(),velocity:-(p.velocity||0)}));let w="idle",A=null,N=null,k=null;null===I.calculatedDuration&&r&&(I.calculatedDuration=vr(I));const{calculatedDuration:G}=I;let P=1/0,V=1/0;null!==G&&(P=G+a,V=P*(r+1)-a);let B=0;const T=e=>{if(null===N)return;g>0&&(N=Math.min(N,e)),B=null!==A?A:(e-N)*g;const n=B-t,o=n<0;B=Math.max(n,0),"finished"===w&&null===A&&(B=V);let l=B,c=I;if(r){const e=B/P;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,r+1);const i=Boolean(t%2);i&&("reverse"===s?(n=1-n,a&&(n-=a/P)):"mirror"===s&&(c=C));let o=In(0,1,n);B>V&&(o="reverse"===s&&i?1:0),l=o*P}const u=o?{done:!1,value:i[0]}:c.next(l);x&&(u.value=x(u.value));let{done:p}=u;o||null===G||(p=B>=V);const h=null===A&&("finished"===w||"running"===w&&p||g<0&&B<=0);return d&&d(u.value),h&&R(),u},S=()=>{v&&v.stop(),v=void 0},E=()=>{w="idle",S(),b(),N=k=null},R=()=>{w="finished",u&&u(),S(),b()},M=()=>{if(f)return;v||(v=n(T));const e=v.now();l&&l(),null!==A?N=e-A:N&&"finished"!==w||(N=e),k=N,A=null,w="running",v.start()};e&&M();const X={then:(e,t)=>m.then(e,t),get time(){return to(B)},set time(e){e=eo(e),B=e,null===A&&v&&0!==g?N=v.now()-e/g:A=e},get duration(){const e=null===I.calculatedDuration?vr(I):I.calculatedDuration;return to(e)},get speed(){return g},set speed(e){e!==g&&v&&(g=e,X.time=to(B))},get state(){return w},play:M,pause:()=>{w="paused",A=B},stop:()=>{f=!0,"idle"!==w&&(w="idle",c&&c(),E())},cancel:()=>{null!==k&&T(k),E()},complete:()=>{w="finished"},sample:e=>(N=0,T(e))};return X}const Ir=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Cr(e,t,{onUpdate:n,onComplete:i,...o}){if(!(uo.waapi()&&Ir.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let r,a,s=!1;const l=()=>{a=new Promise(e=>{r=e})};l();let{keyframes:c,duration:u=300,ease:d,times:p}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!oo(t.ease))(t,o)){const e=xr({...o,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let i=0;for(;!t.done&&i<2e4;)t=e.sample(i),n.push(t.value),i+=10;p=void 0,c=n,u=i-10,d="linear"}const h=function(e,t,n,{delay:i=0,duration:o,repeat:r=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=so(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:i,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...o,duration:u,ease:d,times:p}),m=()=>h.cancel(),g=()=>{Xi.update(m),r(),l()};return h.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(c,o)),i&&i(),g()},{then:(e,t)=>a.then(e,t),get time(){return to(h.currentTime||0)},set time(e){h.currentTime=eo(e)},get speed(){return h.playbackRate},set speed(e){h.playbackRate=e},get duration(){return to(u)},play:()=>{s||(h.play(),Wi(m))},pause:()=>h.pause(),stop:()=>{if(s=!0,"idle"===h.playState)return;const{currentTime:t}=h;if(t){const n=xr({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}g()},complete:()=>h.finish(),cancel:g}}const wr={type:"spring",stiffness:500,damping:25,restSpeed:10},Ar={type:"keyframes",duration:.8},Nr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},kr=(e,{keyframes:t})=>t.length>2?Ar:pn.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:wr:Nr,Gr=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Uo.test(t)&&"0"!==t||t.startsWith("url("))),Pr=new Set(["brightness","contrast","saturate","opacity"]);function Vr(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[i]=n.match(kn)||[];if(!i)return e;const o=n.replace(i,"");let r=Pr.has(t)?1:0;return i!==n&&(r*=100),t+"("+r+o+")"}const Br=/([a-z-]*)\(.*?\)/g,Tr={...Uo,getAnimatableNone:e=>{const t=e.match(Br);return t?t.map(Vr).join(" "):e}},Sr={...Ln,color:Eo,backgroundColor:Eo,outlineColor:Eo,fill:Eo,stroke:Eo,borderColor:Eo,borderTopColor:Eo,borderRightColor:Eo,borderBottomColor:Eo,borderLeftColor:Eo,filter:Tr,WebkitFilter:Tr},Er=e=>Sr[e];function Rr(e,t){let n=Er(e);return n!==Tr&&(n=Uo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Mr=e=>/^0[^.\s]+$/.test(e);function Xr(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||Mr(e):void 0}function Wr(e,t){return e[t]||e.default||e}const Lr=(e,t,n,i={})=>o=>{const r=Wr(i,e)||{},a=r.delay||i.delay||0;let{elapsed:s=0}=i;s-=eo(a);const l=function(e,t,n,i){const o=Gr(t,n);let r;r=Array.isArray(n)?[...n]:[null,n];const a=void 0!==i.from?i.from:e.get();let s;const l=[];for(let e=0;e<r.length;e++)null===r[e]&&(r[e]=0===e?a:r[e-1]),Xr(r[e])&&l.push(e),"string"==typeof r[e]&&"none"!==r[e]&&"0"!==r[e]&&(s=r[e]);if(o&&l.length&&s)for(let e=0;e<l.length;e++)r[l[e]]=Rr(t,s);return r}(t,e,n,r),c=l[0],u=l[l.length-1],d=Gr(e,c),p=Gr(e,u);Ki(d===p,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...r,delay:-s,onUpdate:e=>{t.set(e),r.onUpdate&&r.onUpdate(e)},onComplete:()=>{o(),r.onComplete&&r.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:r,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(r)||(h={...h,...kr(e,h)}),h.duration&&(h.duration=eo(h.duration)),h.repeatDelay&&(h.repeatDelay=eo(h.repeatDelay)),!d||!p||no||!1===r.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:i}){const o=()=>(n&&n(e[e.length-1]),i&&i(),{time:0,speed:1,duration:0,play:Oi,pause:Oi,stop:Oi,then:e=>(e(),Promise.resolve()),cancel:Oi,complete:Oi});return t?xr({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=Cr(t,e,h);if(n)return n}return xr(h)};function Fr(e){return Boolean(mn(e)&&e.add)}const Or=e=>/^\-?\d*\.?\d+$/.test(e);function Dr(e,t){-1===e.indexOf(t)&&e.push(t)}function Zr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class zr{constructor(){this.subscriptions=[]}add(e){return Dr(this.subscriptions,e),()=>Zr(this.subscriptions,e)}notify(e,t,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](e,t,n);else for(let o=0;o<i;o++){const i=this.subscriptions[o];i&&i(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Hr=new Set;function jr(e,t,n){e||Hr.has(t)||(console.warn(t),Hr.add(t))}class Yr{constructor(e,t={}){var n;this.version="10.12.16",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:n,timestamp:i}=Vi;this.lastUpdated!==i&&(this.timeDelta=n,this.lastUpdated=i,Xi.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Xi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return"production"!==process.env.NODE_ENV&&jr(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new zr);const n=this.events[e].add(t);return"change"===e?()=>{n(),Xi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?ar(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Jr(e,t){return new Yr(e,t)}const Ur=e=>t=>t.test(e),$r=[Cn,En,Sn,Tn,Mn,Rn,{test:e=>"auto"===e,parse:e=>e}],Qr=e=>$r.find(Ur(e)),_r=[...$r,Eo,Uo],Kr=e=>_r.find(Ur(e));function qr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Jr(n))}function ea(e,t){if(!t)return;return(t[e]||t.default||t).from}function ta({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,i}function na(e,t,{delay:n=0,transitionOverride:i,type:o}={}){let{transition:r=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");i&&(r=i);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in s){const i=e.getValue(t),o=s[t];if(!i||void 0===o||u&&ta(u,t))continue;const a={delay:n,elapsed:0,...r};if(window.HandoffAppearAnimations&&!i.hasAnimated){const n=e.getProps()[_i];n&&(a.elapsed=window.HandoffAppearAnimations(n,t,i,Xi))}i.start(Lr(t,i,o,e.shouldReduceMotion&&pn.has(t)?{type:!1}:a));const d=i.animation;Fr(l)&&(l.add(t),d.then(()=>l.remove(t))),c.push(d)}return a&&Promise.all(c).then(()=>{a&&function(e,t){const n=Qi(e,t);let{transitionEnd:i={},transition:o={},...r}=n?e.makeTargetAnimatable(n,!1):{};r={...r,...i};for(const t in r)qr(e,t,di(r[t]))}(e,a)}),c}function ia(e,t,n={}){const i=Qi(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const r=i?()=>Promise.all(na(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(i=0)=>{const{delayChildren:r=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,i=0,o=1,r){const a=[],s=(e.variantChildren.size-1)*i,l=1===o?(e=0)=>e*i:(e=0)=>s-e*i;return Array.from(e.variantChildren).sort(oa).forEach((e,i)=>{e.notify("AnimationStart",t),a.push(ia(e,t,{...r,delay:n+l(i)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,r+i,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[r,a]:[a,r];return e().then(()=>t())}return Promise.all([r(),a(n.delay)])}function oa(e,t){return e.sortNodePosition(t)}const ra=[...Jt].reverse(),aa=Jt.length;function sa(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map(t=>ia(e,t,n));i=Promise.all(o)}else if("string"==typeof t)i=ia(e,t,n);else{const o="function"==typeof t?Qi(e,t,n.custom):t;i=Promise.all(na(e,o,n))}return i.then(()=>e.notify("AnimationComplete",t))}(e,t,n)))}function la(e){let t=sa(e);const n={animate:ua(!0),whileInView:ua(),whileHover:ua(),whileTap:ua(),whileDrag:ua(),whileFocus:ua(),exit:ua()};let i=!0;const o=(t,n)=>{const i=Qi(e,n);if(i){const{transition:e,transitionEnd:n,...o}=i;t={...t,...o,...n}}return t};function r(r,a){const s=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},p=1/0;for(let t=0;t<aa;t++){const h=ra[t],m=n[h],g=void 0!==s[h]?s[h]:l[h],f=jt(g),b=h===a?m.isActive:null;!1===b&&(p=t);let v=g===l[h]&&g!==s[h]&&f;if(v&&i&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&null===b||!g&&!m.prevProp||Yt(g)||"boolean"==typeof g)continue;const y=ca(m.prevProp,g);let x=y||h===a&&m.isActive&&!v&&f||t>p&&f;const I=Array.isArray(g)?g:[g];let C=I.reduce(o,{});!1===b&&(C={});const{prevResolvedValues:w={}}=m,A={...w,...C},N=e=>{x=!0,u.delete(e),m.needsAnimating[e]=!0};for(const e in A){const t=C[e],n=w[e];d.hasOwnProperty(e)||(t!==n?ui(t)&&ui(n)?!$i(t,n)||y?N(e):m.protectedKeys[e]=!0:void 0!==t?N(e):u.add(e):void 0!==t&&u.has(e)?N(e):m.protectedKeys[e]=!0)}m.prevProp=g,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),i&&e.blockInitialAnimation&&(x=!1),x&&!v&&c.push(...I.map(e=>({animation:e,options:{type:h,...r}})))}if(u.size){const t={};u.forEach(n=>{const i=e.getBaseTarget(n);void 0!==i&&(t[n]=i)}),c.push({animation:t})}let h=Boolean(c.length);return i&&!1===s.initial&&!e.manuallyAnimateOnMount&&(h=!1),i=!1,h?t(c):Promise.resolve()}return{animateChanges:r,setActive:function(t,i,o){var a;if(n[t].isActive===i)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,i)}),n[t].isActive=i;const s=r(o,t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function ca(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!$i(t,e)}function ua(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let da=0;const pa={animation:{Feature:class extends Pi{constructor(e){super(e),e.animationState||(e.animationState=la(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Yt(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Pi{constructor(){super(...arguments),this.id=da++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then(()=>t(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},ha=(e,t)=>Math.abs(e-t);class ma{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=ba(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=ha(e.x,t.x),i=ha(e.y,t.y);return Math.sqrt(n**2+i**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:i}=e,{timestamp:o}=Vi;this.history.push({...i,timestamp:o});const{onStart:r,onMove:a}=this.handlers;t||(r&&r(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=ga(t,this.transformPagePoint),Xi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:i}=this.handlers,o=ba("pointercancel"===e.type?this.lastMoveEventInfo:ga(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),i&&i(e,o)},!vi(e))return;this.handlers=t,this.transformPagePoint=n;const i=ga(yi(e),this.transformPagePoint),{point:o}=i,{timestamp:r}=Vi;this.history=[{...o,timestamp:r}];const{onSessionStart:a}=t;a&&a(e,ba(i,this.history)),this.removeListeners=Ci(xi(window,"pointermove",this.handlePointerMove),xi(window,"pointerup",this.handlePointerUp),xi(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Wi(this.updatePoint)}}function ga(e,t){return t?{point:t(e.point)}:e}function fa(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ba({point:e},t){return{point:e,delta:fa(e,ya(t)),offset:fa(e,va(t)),velocity:xa(t,.1)}}function va(e){return e[0]}function ya(e){return e[e.length-1]}function xa(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const o=ya(e);for(;n>=0&&(i=e[n],!(o.timestamp-i.timestamp>eo(t)));)n--;if(!i)return{x:0,y:0};const r=to(o.timestamp-i.timestamp);if(0===r)return{x:0,y:0};const a={x:(o.x-i.x)/r,y:(o.y-i.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Ia(e){return e.max-e.min}function Ca(e,t=0,n=.01){return Math.abs(e-t)<=n}function wa(e,t,n,i=.5){e.origin=i,e.originPoint=Ro(t.min,t.max,e.origin),e.scale=Ia(n)/Ia(t),(Ca(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ro(n.min,n.max,e.origin)-e.originPoint,(Ca(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Aa(e,t,n,i){wa(e.x,t.x,n.x,i?i.originX:void 0),wa(e.y,t.y,n.y,i?i.originY:void 0)}function Na(e,t,n){e.min=n.min+t.min,e.max=e.min+Ia(t)}function ka(e,t,n){e.min=t.min-n.min,e.max=e.min+Ia(t)}function Ga(e,t,n){ka(e.x,t.x,n.x),ka(e.y,t.y,n.y)}function Pa(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Va(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}const Ba=.35;function Ta(e,t,n){return{min:Sa(e,t),max:Sa(e,n)}}function Sa(e,t){return"number"==typeof e?e:e[t]||0}const Ea=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Ra(e){return[e("x"),e("y")]}function Ma({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function Xa(e){return void 0===e||1===e}function Wa({scale:e,scaleX:t,scaleY:n}){return!Xa(e)||!Xa(t)||!Xa(n)}function La(e){return Wa(e)||Fa(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Fa(e){return Oa(e.x)||Oa(e.y)}function Oa(e){return e&&"0%"!==e}function Da(e,t,n){return n+t*(e-n)}function Za(e,t,n,i,o){return void 0!==o&&(e=Da(e,o,i)),Da(e,n,i)+t}function za(e,t=0,n=1,i,o){e.min=Za(e.min,t,n,i,o),e.max=Za(e.max,t,n,i,o)}function Ha(e,{x:t,y:n}){za(e.x,t.translate,t.scale,t.originPoint),za(e.y,n.translate,n.scale,n.originPoint)}function ja(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Ya(e,t){e.min=e.min+t,e.max=e.max+t}function Ja(e,t,[n,i,o]){const r=void 0!==t[o]?t[o]:.5,a=Ro(e.min,e.max,r);za(e,t[n],t[i],a,t.scale)}const Ua=["x","scaleX","originX"],$a=["y","scaleY","originY"];function Qa(e,t){Ja(e.x,t,Ua),Ja(e.y,t,$a)}function _a(e,t){return Ma(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(e.getBoundingClientRect(),t))}const Ka=new WeakMap;class qa{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new ma(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(yi(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:i,onDragStart:o}=this.getProps();if(n&&!i&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ki(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ra(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Sn.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[e];if(i){t=Ia(i)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),o&&Xi.update(()=>o(e,t),!1,!0);const{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:o,onDrag:r}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(i&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),r&&r(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=t;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Xi.update(()=>o(e,t))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:i}=this.getProps();if(!n||!es(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(r=function(e,{min:t,max:n},i){return void 0!==t&&e<t?e=i?Ro(t,e,i.min):Math.max(e,t):void 0!==n&&e>n&&(e=i?Ro(n,e,i.max):Math.min(e,n)),e}(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;e&&Ht(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:i,right:o}){return{x:Pa(e.x,n,o),y:Pa(e.y,t,i)}}(n.layoutBox,e),this.elastic=function(e=Ba){return!1===e?e=0:!0===e&&(e=Ba),{x:Ta(e,"left","right"),y:Ta(e,"top","bottom")}}(t),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Ra(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Ht(e))return!1;const n=e.current;qi(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=function(e,t,n){const i=_a(e,n),{scroll:o}=t;return o&&(Ya(i.x,o.offset.x),Ya(i.y,o.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let r=function(e,t){return{x:Va(e.x,t.x),y:Va(e.y,t.y)}}(i.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(r));this.hasMutatedConstraints=!!e,e&&(r=Ma(e))}return r}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=Ra(a=>{if(!es(a,t,this.currentDirection))return;let l=s&&s[a]||{};r&&(l={min:0,max:0});const c=i?200:1e6,u=i?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(Lr(e,n,0,t))}stopAnimation(){Ra(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),i=n[t];return i||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Ra(t=>{const{drag:n}=this.getProps();if(!es(t,n,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(t);if(i&&i.layout){const{min:n,max:r}=i.layout.layoutBox[t];o.set(e[t]-Ro(n,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Ht(t)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ra(e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();i[e]=function(e,t){let n=.5;const i=Ia(e),o=Ia(t);return o>i?n=er(t.min,t.max-i,e.min):i>o&&(n=er(e.min,e.max-o,t.min)),In(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Ra(t=>{if(!es(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:r}=this.constraints[t];n.set(Ro(o,r,i[t]))})}addListeners(){if(!this.visualElement.current)return;Ka.set(this.visualElement,this);const e=xi(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();Ht(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=bi(window,"resize",()=>this.scalePositionWithinConstraints()),r=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Ra(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),e(),i(),r&&r()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Ba,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function es(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const ts=e=>(t,n)=>{e&&Xi.update(()=>e(t,n))};const ns={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function is(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const os={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!En.test(e))return e;e=parseFloat(e)}return`${is(e,t.target.x)}% ${is(e,t.target.y)}%`}},rs={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,o=Uo.parse(e);if(o.length>5)return i;const r=Uo.createTransformer(e),a="number"!=typeof o[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=Ro(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=c),"number"==typeof o[3+a]&&(o[3+a]/=c),r(o)}};class as extends o.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=e;var r;r=ls,Object.assign(un,r),o&&(t.group&&t.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),ns.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:i,isPresent:o}=this.props,r=n.projection;return r?(r.isPresent=o,i||e.layoutDependency!==t||void 0===t?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||Xi.postRender(()=>{const e=r.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ss(e){const[t,n]=function(){const e=h(Ot);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:i}=e,o=f();return l(()=>i(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),i=h(tn);return o.createElement(as,{...e,layoutGroup:i,switchLayoutGroup:h(nn),isPresent:t,safeToRemove:n})}const ls={borderRadius:{...os,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:os,borderTopRightRadius:os,borderBottomLeftRadius:os,borderBottomRightRadius:os,boxShadow:rs},cs=["TopLeft","TopRight","BottomLeft","BottomRight"],us=cs.length,ds=e=>"string"==typeof e?parseFloat(e):e,ps=e=>"number"==typeof e||En.test(e);function hs(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const ms=fs(0,.5,xo),gs=fs(.5,.95,Oi);function fs(e,t,n){return i=>i<e?0:i>t?1:n(er(e,t,i))}function bs(e,t){e.min=t.min,e.max=t.max}function vs(e,t){bs(e.x,t.x),bs(e.y,t.y)}function ys(e,t,n,i,o){return e=Da(e-=t,1/n,i),void 0!==o&&(e=Da(e,1/o,i)),e}function xs(e,t,[n,i,o],r,a){!function(e,t=0,n=1,i=.5,o,r=e,a=e){Sn.test(t)&&(t=parseFloat(t),t=Ro(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=Ro(r.min,r.max,i);e===r&&(s-=t),e.min=ys(e.min,t,n,s,o),e.max=ys(e.max,t,n,s,o)}(e,t[n],t[i],t[o],t.scale,r,a)}const Is=["x","scaleX","originX"],Cs=["y","scaleY","originY"];function ws(e,t,n,i){xs(e.x,t,Is,n?n.x:void 0,i?i.x:void 0),xs(e.y,t,Cs,n?n.y:void 0,i?i.y:void 0)}function As(e){return 0===e.translate&&1===e.scale}function Ns(e){return As(e.x)&&As(e.y)}function ks(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Gs(e){return Ia(e.x)/Ia(e.y)}class Ps{constructor(){this.members=[]}add(e){Dr(this.members,e),e.scheduleRender()}remove(e){if(Zr(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Vs(e,t,n){let i="";const o=e.x.translate/t.x,r=e.y.translate/t.y;if((o||r)&&(i=`translate3d(${o}px, ${r}px, 0) `),1===t.x&&1===t.y||(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(i+=`rotate(${e}deg) `),t&&(i+=`rotateX(${t}deg) `),o&&(i+=`rotateY(${o}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(i+=`scale(${a}, ${s})`),i||"none"}const Bs=(e,t)=>e.depth-t.depth;class Ts{constructor(){this.children=[],this.isDirty=!1}add(e){Dr(this.children,e),this.isDirty=!0}remove(e){Zr(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Bs),this.isDirty=!1,this.children.forEach(e)}}const Ss=["","X","Y","Z"];let Es=0;const Rs={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Ms({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Es++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;Rs.totalNodes=Rs.resolvedTargetDeltas=Rs.recalculatedProjection=0,this.nodes.forEach(Ls),this.nodes.forEach(js),this.nodes.forEach(Ys),this.nodes.forEach(Fs),e=Rs,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ts)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new zr),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var i;this.isSVG=(i=t)instanceof SVGElement&&"svg"!==i.tagName,this.instance=t;const{layoutId:o,layout:r,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(r||o)&&(this.isLayoutDirty=!0),e){let n;const i=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),i=({timestamp:o})=>{const r=o-n;r>=t&&(Wi(i),e(r-t))};return Xi.read(i,!0),()=>Wi(i)}(i,250),ns.hasAnimatedSinceResize&&(ns.hasAnimatedSinceResize=!1,this.nodes.forEach(Hs))})}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||Ks,{onLayoutAnimationStart:r,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!ks(this.targetLayout,i)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...Wr(o,"layout"),onPlay:r,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Hs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Wi(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Js),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Ds);this.isUpdating||this.nodes.forEach(Zs),this.isUpdating=!1,this.nodes.forEach(zs),this.nodes.forEach(Xs),this.nodes.forEach(Ws),this.clearAllSnapshots();const e=performance.now();Vi.delta=In(0,1e3/60,e-Vi.timestamp),Vi.timestamp=e,Vi.isProcessing=!0,Ei.update.process(Vi),Ei.preRender.process(Vi),Ei.render.process(Vi),Vi.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Os),this.sharedNodes.forEach(Us)}scheduleUpdateProjection(){Xi.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Xi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!Ns(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,r=i!==this.prevTransformTemplateValue;e&&(t||La(this.latestValues)||r)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var i;return e&&(n=this.removeTransform(n)),qs((i=n).x),qs(i.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(Ya(t.x,n.offset.x),Ya(t.y,n.offset.y)),t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};vs(t,e);for(let n=0;n<this.path.length;n++){const i=this.path[n],{scroll:o,options:r}=i;if(i!==this.root&&o&&r.layoutScroll){if(o.isRoot){vs(t,e);const{scroll:n}=this.root;n&&(Ya(t.x,-n.offset.x),Ya(t.y,-n.offset.y))}Ya(t.x,o.offset.x),Ya(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};vs(n,e);for(let e=0;e<this.path.length;e++){const i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Qa(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),La(i.latestValues)&&Qa(n,i.latestValues)}return La(this.latestValues)&&Qa(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};vs(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!La(n.latestValues))continue;Wa(n.latestValues)&&n.updateSnapshot();const i=Ea();vs(i,n.measurePageBox()),ws(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,i)}return La(this.latestValues)&&ws(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Vi.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const i=Boolean(this.resumingFrom)||this!==n;if(!(e||i&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:r}=this.options;if(this.layout&&(o||r)){if(this.resolvedRelativeTargetAt=Vi.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ga(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),vs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,Na(a.x,s.x,l.x),Na(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):vs(this.target,this.layout.layoutBox),Ha(this.target,this.targetDelta)):vs(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ga(this.relativeTargetOrigin,this.target,e.target),vs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Rs.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Wa(this.parent.latestValues)&&!Fa(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let i=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===Vi.timestamp&&(i=!1),i)return;const{layout:o,layoutId:r}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!r)return;vs(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,i=!1){const o=n.length;if(!o)return;let r,a;t.x=t.y=1;for(let s=0;s<o;s++){r=n[s],a=r.projectionDelta;const o=r.instance;o&&o.style&&"contents"===o.style.display||(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Qa(e,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Ha(e,a)),i&&La(r.latestValues)&&Qa(e,r.latestValues))}t.x=ja(t.x),t.y=ja(t.y)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox);const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const c=this.projectionTransform;Aa(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Vs(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Rs.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,i=n?n.latestValues:{},o={...this.latestValues},r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a={x:{min:0,max:0},y:{min:0,max:0}},s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(_s));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;$s(r.x,e.x,n),$s(r.y,e.y,n),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ga(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,i){Qs(e.x,t.x,n.x,i),Qs(e.y,t.y,n.y,i)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&ks(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),vs(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,i,o,r){o?(e.opacity=Ro(0,void 0!==n.opacity?n.opacity:1,ms(i)),e.opacityExit=Ro(void 0!==t.opacity?t.opacity:1,0,gs(i))):r&&(e.opacity=Ro(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let o=0;o<us;o++){const r=`border${cs[o]}Radius`;let a=hs(t,r),s=hs(n,r);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||ps(a)===ps(s)?(e[r]=Math.max(Ro(ds(a),ds(s),i),0),(Sn.test(s)||Sn.test(a))&&(e[r]+="%")):e[r]=s)}(t.rotate||n.rotate)&&(e.rotate=Ro(t.rotate||0,n.rotate||0,i))}(o,i,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Wi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Xi.update(()=>{ns.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const i=mn(e)?e:Jr(e);return i.start(Lr("",i,t,n)),i.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:i,latestValues:o}=e;if(t&&n&&i){if(this!==e&&this.layout&&i&&el(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=Ia(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const i=Ia(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+i}vs(t,n),Qa(t,o),Aa(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ps);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const i={};for(let t=0;t<Ss.length;t++){const o="rotate"+Ss[t];n[o]&&(i[o]=n[o],e.setStaticValue(o,0))}e.render();for(const t in i)e.setStaticValue(t,i[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const i={};if(!this.instance||this.isSVG)return i;if(!this.isVisible)return{visibility:"hidden"};i.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=pi(e.pointerEvents)||"",i.transform=o?o(this.latestValues,""):"none",i;const r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=pi(e.pointerEvents)||""),this.hasProjected&&!La(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=r.animationValues||r.latestValues;this.applyTransformsToTarget(),i.transform=Vs(this.projectionDeltaWithTransform,this.treeScale,a),o&&(i.transform=o(a,i.transform));const{x:s,y:l}=this.projectionDelta;i.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,r.animationValues?i.opacity=r===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:i.opacity=r===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in un){if(void 0===a[e])continue;const{correct:t,applyTo:n}=un[e],o="none"===i.transform?a[e]:t(a[e],r);if(n){const e=n.length;for(let t=0;t<e;t++)i[n[t]]=o}else i[e]=o}return this.options.layoutId&&(i.pointerEvents=r===this?pi(e.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(Ds),this.root.sharedNodes.clear()}}}function Xs(e){e.updateLayout()}function Ws(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:i}=e.layout,{animationType:o}=e.options,r=n.source!==e.layout.source;"size"===o?Ra(e=>{const i=r?n.measuredBox[e]:n.layoutBox[e],o=Ia(i);i.min=t[e].min,i.max=i.min+o}):el(o,n.layoutBox,t)&&Ra(i=>{const o=r?n.measuredBox[i]:n.layoutBox[i],a=Ia(t[i]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+a)});const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Aa(a,t,n.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};r?Aa(s,e.applyTransform(i,!0),n.measuredBox):Aa(s,t,n.layoutBox);const l=!Ns(a);let c=!1;if(!e.resumeFrom){const i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:o,layout:r}=i;if(o&&r){const a={x:{min:0,max:0},y:{min:0,max:0}};Ga(a,n.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};Ga(s,t,r.layoutBox),ks(a,s)||(c=!0),i.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Ls(e){Rs.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Fs(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Os(e){e.clearSnapshot()}function Ds(e){e.clearMeasurements()}function Zs(e){e.isLayoutDirty=!1}function zs(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Hs(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function js(e){e.resolveTargetDelta()}function Ys(e){e.calcProjection()}function Js(e){e.resetRotation()}function Us(e){e.removeLeadSnapshot()}function $s(e,t,n){e.translate=Ro(t.translate,0,n),e.scale=Ro(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Qs(e,t,n,i){e.min=Ro(t.min,n.min,i),e.max=Ro(t.max,n.max,i)}function _s(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Ks={duration:.45,ease:[.4,0,.1,1]};function qs(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function el(e,t,n){return"position"===e||"preserve-aspect"===e&&!Ca(Gs(t),Gs(n),.2)}const tl=Ms({attachResizeListener:(e,t)=>bi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),nl={current:void 0},il=Ms({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!nl.current){const e=new tl({});e.mount(window),e.setOptions({layoutScroll:!0}),nl.current=e}return nl.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),ol={pan:{Feature:class extends Pi{constructor(){super(...arguments),this.removePointerDownListener=Oi}onPointerDown(e){this.session=new ma(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:ts(e),onStart:ts(t),onMove:n,onEnd:(e,t)=>{delete this.session,i&&Xi.update(()=>i(e,t))}}}mount(){this.removePointerDownListener=xi(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Pi{constructor(e){super(e),this.removeGroupControls=Oi,this.removeListeners=Oi,this.controls=new qa(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Oi}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:il,MeasureLayout:ss}},rl=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function al(e,t,n=1){qi(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[i,o]=function(e){const t=rl.exec(e);if(!t)return[,];const[,n,i]=t;return[n,i]}(e);if(!i)return;const r=window.getComputedStyle(t).getPropertyValue(i);return r?r.trim():yn(o)?al(o,t,n+1):o}const sl=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ll=e=>sl.has(e),cl=e=>e===Cn||e===En,ul=(e,t)=>parseFloat(e.split(", ")[t]),dl=(e,t)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/);if(o)return ul(o[1],t);{const t=i.match(/^matrix\((.+)\)$/);return t?ul(t[1],e):0}},pl=new Set(["x","y","z"]),hl=dn.filter(e=>!pl.has(e));const ml={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:dl(4,13),y:dl(5,14)},gl=(e,t,n={},i={})=>{t={...t},i={...i};const o=Object.keys(t).filter(ll);let r=[],a=!1;const s=[];if(o.forEach(o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=n[o],u=Qr(c);const d=t[o];let p;if(ui(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=Qr(c);for(let n=t;n<e&&null!==d[n];n++)p?qi(Qr(d[n])===p,"All keyframes must be of the same type"):(p=Qr(d[n]),qi(p===u||cl(u)&&cl(p),"Keyframes must be of the same dimension as the current value"))}else p=Qr(d);if(u!==p)if(cl(u)&&cl(p)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&p===En&&(t[o]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==p?void 0:p.transform)&&(0===c||0===d)?0===c?l.set(p.transform(c)):t[o]=u.transform(d):(a||(r=function(e){const t=[];return hl.forEach(n=>{const i=e.getValue(n);void 0!==i&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),s.push(o),i[o]=void 0!==i[o]?i[o]:t[o],l.jump(d))}),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const i=t.measureViewportBox(),o=t.current,r=getComputedStyle(o),{display:a}=r,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{s[e]=ml[e](i,r)}),t.render();const l=t.measureViewportBox();return n.forEach(n=>{const i=t.getValue(n);i&&i.jump(s[n]),e[n]=ml[n](l,r)}),e})(t,e,s);return r.length&&r.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),Dt&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:i}}return{target:t,transitionEnd:i}};function fl(e,t,n,i){return(e=>Object.keys(e).some(ll))(t)?gl(e,t,n,i):{target:t,transitionEnd:i}}const bl=(e,t,n,i)=>{const o=function(e,{...t},n){const i=e.current;if(!(i instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(e=>{const t=e.get();if(!yn(t))return;const n=al(t,i);n&&e.set(n)});for(const e in t){const o=t[e];if(!yn(o))continue;const r=al(o,i);r&&(t[e]=r,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,i);return fl(e,t=o.target,n,i=o.transitionEnd)},vl={current:null},yl={current:!1};const xl=new WeakMap,Il=Object.keys(en),Cl=Il.length,wl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Al=Ut.length;class Nl{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Xi.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=r,this.isControllingVariants=$t(t),this.isVariantNode=Qt(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==a[e]&&mn(t)&&(t.set(a[e],!1),Fr(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,xl.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),yl.current||function(){if(yl.current=!0,Dt)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vl.current=e.matches;e.addListener(t),t()}else vl.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||vl.current),"production"!==process.env.NODE_ENV&&jr(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){xl.delete(this.current),this.projection&&this.projection.unmount(),Wi(this.notifyUpdate),Wi(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=pn.has(e),i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&Xi.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,i,o){let r,a;if("production"!==process.env.NODE_ENV&&i&&n){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Ki(!1,e):qi(!1,e)}for(let e=0;e<Cl;e++){const n=Il[e],{isEnabled:i,Feature:o,ProjectionNode:s,MeasureLayout:l}=en[n];s&&(r=s),i(t)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(a=l))}if(!this.projection&&r){this.projection=new r(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:i,dragConstraints:a,layoutScroll:s,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(i)||a&&Ht(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<wl.length;t++){const n=wl[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const i=e["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(e,t,n){const{willChange:i}=t;for(const o in t){const r=t[o],a=n[o];if(mn(r))e.addValue(o,r),Fr(i)&&i.add(o),"development"===process.env.NODE_ENV&&jr("10.12.16"===r.version,`Attempting to mix Framer Motion versions ${r.version} with 10.12.16 may not work as expected.`);else if(mn(a))e.addValue(o,Jr(r,{owner:e})),Fr(i)&&i.remove(o);else if(a!==r)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(r)}else{const t=e.getStaticValue(o);e.addValue(o,Jr(void 0!==t?t:r,{owner:e}))}}for(const i in n)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<Al;e++){const n=Ut[e],i=this.props[n];(jt(i)||!1===i)&&(t[n]=i)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Jr(t,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,i="string"==typeof n||"object"==typeof n?null===(t=li(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==i)return i;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||mn(o)?void 0!==this.initialValues[e]&&void 0===i?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new zr),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class kl extends Nl{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:i},o){let r=function(e,t,n){const i={};for(const o in e){const e=ea(o,t);if(void 0!==e)i[o]=e;else{const e=n.getValue(o);e&&(i[o]=e.get())}}return i}(n,e||{},this);if(i&&(t&&(t=i(t)),n&&(n=i(n)),r&&(r=i(r))),o){!function(e,t,n){var i,o;const r=Object.keys(t).filter(t=>!e.hasValue(t)),a=r.length;if(a)for(let s=0;s<a;s++){const a=r[s],l=t[a];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(o=null!==(i=n[a])&&void 0!==i?i:e.readValue(a))&&void 0!==o?o:t[a]),null!=c&&("string"==typeof c&&(Or(c)||Mr(c))?c=parseFloat(c):!Kr(c)&&Uo.test(l)&&(c=Rr(a,l)),e.addValue(a,Jr(c,{owner:e})),void 0===n[a]&&(n[a]=c),null!==c&&e.setBaseTarget(a,c))}}(this,n,r);const e=bl(this,n,r,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class Gl extends kl{readValueFromInstance(e,t){if(pn.has(t)){const e=Er(t);return e&&e.default||0}{const i=(n=e,window.getComputedStyle(n)),o=(vn(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return _a(e,t)}build(e,t,n,i){Fn(e,t,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,t){return ai(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;mn(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,i){ii(e,t,n,i)}}class Pl extends kl{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(pn.has(t)){const e=Er(t);return e&&e.default||0}return t=oi.has(t)?t:ni(t),e.getAttribute(t)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e,t){return si(e,t)}build(e,t,n,i){_n(e,t,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,t,n,i){ri(e,t,0,i)}mount(e){this.isSVGTag=qn(e.tagName),super.mount(e)}}const Vl=(e,t)=>cn(e)?new Pl(t,{enableHardwareAcceleration:!1}):new Gl(t,{enableHardwareAcceleration:!0}),Bl={...pa,...Ui,...ol,...{layout:{ProjectionNode:il,MeasureLayout:ss}}},Tl=sn((e,t)=>function(e,{forwardMotionProps:t=!1},n,i){return{...cn(e)?gi:fi,preloadedFeatures:n,useRender:ti(t),createVisualElement:i,Component:e}}(e,t,Bl,Vl));function Sl(){const e=a(!1);return Zt(()=>(e.current=!0,()=>{e.current=!1}),[]),e}class El extends i.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Rl({children:e,isPresent:t}){const n=f(),o=a(null),r=a({width:0,height:0,top:0,left:0});return m(()=>{const{width:e,height:i,top:a,left:s}=r.current;if(t||!o.current||!e||!i)return;o.current.dataset.motionPopId=n;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${i}px !important;\n top: ${a}px !important;\n left: ${s}px !important;\n }\n `),()=>{document.head.removeChild(l)}},[t]),i.createElement(El,{isPresent:t,childRef:o,sizeRef:r},i.cloneElement(e,{ref:o}))}const Ml=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:r,presenceAffectsLayout:a,mode:s})=>{const l=ci(Xl),c=f(),d=u(()=>({id:c,initial:t,isPresent:n,custom:r,onExitComplete:e=>{l.set(e,!0);for(const e of l.values())if(!e)return;o&&o()},register:e=>(l.set(e,!1),()=>l.delete(e))}),a?void 0:[n]);return u(()=>{l.forEach((e,t)=>l.set(t,!1))},[n]),i.useEffect(()=>{!n&&!l.size&&o&&o()},[n]),"popLayout"===s&&(e=i.createElement(Rl,{isPresent:n},e)),i.createElement(Ot.Provider,{value:d},e)};function Xl(){return new Map}const Wl=e=>e.key||"";const Ll=({children:e,custom:t,initial:n=!0,onExitComplete:o,exitBeforeEnter:r,presenceAffectsLayout:u=!0,mode:d="sync"})=>{qi(!r,"Replace exitBeforeEnter with mode='wait'");const p=h(tn).forceRender||function(){const e=Sl(),[t,n]=s(0),i=c(()=>{e.current&&n(t+1)},[t]);return[c(()=>Xi.postRender(i),[i]),t]}()[0],m=Sl(),g=function(e){const t=[];return v.forEach(e,e=>{y(e)&&t.push(e)}),t}(e);let f=g;const x=a(new Map).current,I=a(f),C=a(new Map).current,w=a(!0);var A;if(Zt(()=>{w.current=!1,function(e,t){e.forEach(e=>{const n=Wl(e);t.set(n,e)})}(g,C),I.current=f}),A=()=>{w.current=!0,C.clear(),x.clear()},l(()=>()=>A(),[]),w.current)return i.createElement(i.Fragment,null,f.map(e=>i.createElement(Ml,{key:Wl(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:u,mode:d},e)));f=[...f];const N=I.current.map(Wl),k=g.map(Wl),G=N.length;for(let e=0;e<G;e++){const t=N[e];-1!==k.indexOf(t)||x.has(t)||x.set(t,void 0)}return"wait"===d&&x.size&&(f=[]),x.forEach((e,n)=>{if(-1!==k.indexOf(n))return;const r=C.get(n);if(!r)return;const a=N.indexOf(n);let s=e;if(!s){const e=()=>{C.delete(n),x.delete(n);const e=I.current.findIndex(e=>e.key===n);if(I.current.splice(e,1),!x.size){if(I.current=g,!1===m.current)return;p(),o&&o()}};s=i.createElement(Ml,{key:Wl(r),isPresent:!1,onExitComplete:e,custom:t,presenceAffectsLayout:u,mode:d},r),x.set(n,s)}f.splice(a,0,s)}),f=f.map(e=>{const t=e.key;return x.has(t)?e:i.createElement(Ml,{key:Wl(e),isPresent:!0,presenceAffectsLayout:u,mode:d},e)}),"production"!==process.env.NODE_ENV&&"wait"===d&&f.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),i.createElement(i.Fragment,null,x.size?f:f.map(e=>b(e)))};function Fl(){return Fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Fl.apply(null,arguments)}function Ol(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(null==e||e(i),!1===n||!i.defaultPrevented)return null==t?void 0:t(i)}}function Dl(...e){return t=>e.forEach(e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t))}function Zl(...e){return c(Dl(...e),e)}function zl(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const i=n.reduce((t,{useScope:n,scopeName:i})=>({...t,...n(e)[`__scope${i}`]}),{});return u(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}const Hl=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?p:()=>{},jl=i["useId".toString()]||(()=>{});let Yl=0;function Jl(e){const[t,n]=i.useState(jl());return Hl(()=>{n(e=>null!=e?e:String(Yl++))},[e]),e||(t?`radix-${t}`:"")}function Ul(e){const t=a(e);return l(()=>{t.current=e}),u(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}function $l({prop:e,defaultProp:t,onChange:n=()=>{}}){const[i,o]=function({defaultProp:e,onChange:t}){const n=s(e),[i]=n,o=a(i),r=Ul(t);return l(()=>{o.current!==i&&(r(i),o.current=i)},[i,o,r]),n}({defaultProp:t,onChange:n}),r=void 0!==e,u=r?e:i,d=Ul(n);return[u,c(t=>{if(r){const n="function"==typeof t?t(e):t;n!==e&&d(n)}else o(t)},[r,e,o,d])]}const Ql=r((e,t)=>{const{children:n,...i}=e,o=v.toArray(n),r=o.find(ql);if(r){const e=r.props.children,n=o.map(t=>t===r?v.count(e)>1?v.only(null):y(e)?e.props.children:null:t);return g(_l,Fl({},i,{ref:t}),y(e)?b(e,void 0,n):null)}return g(_l,Fl({},i,{ref:t}),n)});Ql.displayName="Slot";const _l=r((e,t)=>{const{children:n,...i}=e;return y(n)?b(n,{...ec(i,n.props),ref:t?Dl(t,n.ref):n.ref}):v.count(n)>1?v.only(null):null});_l.displayName="SlotClone";const Kl=({children:e})=>g(x,null,e);function ql(e){return y(e)&&e.type===Kl}function ec(e,t){const n={...t};for(const i in t){const o=e[i],r=t[i];/^on[A-Z]/.test(i)?o&&r?n[i]=(...e)=>{r(...e),o(...e)}:o&&(n[i]=o):"style"===i?n[i]={...o,...r}:"className"===i&&(n[i]=[o,r].filter(Boolean).join(" "))}return{...e,...n}}const tc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=r((e,n)=>{const{asChild:i,...o}=e,r=i?Ql:t;return l(()=>{window[Symbol.for("radix-ui")]=!0},[]),g(r,Fl({},o,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});const nc="dismissableLayer.update",ic="dismissableLayer.pointerDownOutside",oc="dismissableLayer.focusOutside";let rc;const ac=d({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sc=r((e,t)=>{var n;const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:c,onInteractOutside:u,onDismiss:d,...p}=e,m=h(ac),[f,b]=s(null),v=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,y]=s({}),x=Zl(t,e=>b(e)),I=Array.from(m.layers),[C]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),w=I.indexOf(C),A=f?I.indexOf(f):-1,N=m.layersWithOutsidePointerEventsDisabled.size>0,k=A>=w,G=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Ul(e),i=a(!1),o=a(()=>{});return l(()=>{const e=e=>{if(e.target&&!i.current){const r={originalEvent:e};function a(){cc(ic,n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);i.current=!1},r=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}(e=>{const t=e.target,n=[...m.branches].some(e=>e.contains(t));k&&!n&&(null==r||r(e),null==u||u(e),e.defaultPrevented||null==d||d())},v),P=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Ul(e),i=a(!1);return l(()=>{const e=e=>{if(e.target&&!i.current){cc(oc,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{const t=e.target;[...m.branches].some(e=>e.contains(t))||(null==c||c(e),null==u||u(e),e.defaultPrevented||null==d||d())},v);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Ul(e);l(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{A===m.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))},v),l(()=>{if(f)return i&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(rc=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(f)),m.layers.add(f),lc(),()=>{i&&1===m.layersWithOutsidePointerEventsDisabled.size&&(v.body.style.pointerEvents=rc)}},[f,v,i,m]),l(()=>()=>{f&&(m.layers.delete(f),m.layersWithOutsidePointerEventsDisabled.delete(f),lc())},[f,m]),l(()=>{const e=()=>y({});return document.addEventListener(nc,e),()=>document.removeEventListener(nc,e)},[]),g(tc.div,Fl({},p,{ref:x,style:{pointerEvents:N?k?"auto":"none":void 0,...e.style},onFocusCapture:Ol(e.onFocusCapture,P.onFocusCapture),onBlurCapture:Ol(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Ol(e.onPointerDownCapture,G.onPointerDownCapture)}))});function lc(){const e=new CustomEvent(nc);document.dispatchEvent(e)}function cc(e,t,n,{discrete:i}){const o=n.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?function(e,t){e&&N(()=>e.dispatchEvent(t))}(o,r):o.dispatchEvent(r)}const uc="focusScope.autoFocusOnMount",dc="focusScope.autoFocusOnUnmount",pc={bubbles:!1,cancelable:!0},hc=r((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:r,...u}=e,[d,p]=s(null),h=Ul(o),m=Ul(r),f=a(null),b=Zl(t,e=>p(e)),v=a({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l(()=>{if(i){function e(e){if(v.paused||!d)return;const t=e.target;d.contains(t)?f.current=t:bc(f.current,{select:!0})}function t(e){if(v.paused||!d)return;const t=e.relatedTarget;null!==t&&(d.contains(t)||bc(f.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&bc(d)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const o=new MutationObserver(n);return d&&o.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}},[i,d,v.paused]),l(()=>{if(d){vc.add(v);const t=document.activeElement;if(!d.contains(t)){const n=new CustomEvent(uc,pc);d.addEventListener(uc,h),d.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(bc(i,{select:t}),document.activeElement!==n)return}((e=mc(d),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&bc(d))}return()=>{d.removeEventListener(uc,h),setTimeout(()=>{const e=new CustomEvent(dc,pc);d.addEventListener(dc,m),d.dispatchEvent(e),e.defaultPrevented||bc(null!=t?t:document.body,{select:!0}),d.removeEventListener(dc,m),vc.remove(v)},0)}}var e},[d,h,m,v]);const y=c(e=>{if(!n&&!i)return;if(v.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[i,r]=function(e){const t=mc(e),n=gc(t,e),i=gc(t.reverse(),e);return[n,i]}(t);i&&r?e.shiftKey||o!==r?e.shiftKey&&o===i&&(e.preventDefault(),n&&bc(r,{select:!0})):(e.preventDefault(),n&&bc(i,{select:!0})):o===t&&e.preventDefault()}},[n,i,v.paused]);return g(tc.div,Fl({tabIndex:-1},u,{ref:b,onKeyDown:y}))});function mc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function gc(e,t){for(const n of e)if(!fc(n,{upTo:t}))return n}function fc(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function bc(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const vc=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=yc(e,t),e.unshift(t)},remove(t){var n;e=yc(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function yc(e,t){const n=[...e],i=n.indexOf(t);return-1!==i&&n.splice(i,1),n}const xc=r((e,t)=>{var n;const{container:i=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return i?A.createPortal(g(tc.div,Fl({},o,{ref:t})),i):null});const Ic=e=>{const{present:t,children:n}=e,i=function(e){const[t,n]=s(),i=a({}),o=a(e),r=a("none"),u=e?"mounted":"unmounted",[d,p]=function(e,t){return I((e,n)=>{const i=t[e][n];return null!=i?i:e},e)}(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l(()=>{const e=Cc(i.current);r.current="mounted"===d?e:"none"},[d]),Hl(()=>{const t=i.current,n=o.current;if(n!==e){const i=r.current,a=Cc(t);if(e)p("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))p("UNMOUNT");else{p(n&&i!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,p]),Hl(()=>{if(t){const e=e=>{const n=Cc(i.current).includes(e.animationName);e.target===t&&n&&N(()=>p("ANIMATION_END"))},n=e=>{e.target===t&&(r.current=Cc(i.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:c(e=>{e&&(i.current=getComputedStyle(e)),n(e)},[])}}(t),o="function"==typeof n?n({present:i.isPresent}):v.only(n),r=Zl(i.ref,o.ref);return"function"==typeof n||i.isPresent?b(o,{ref:r}):null};function Cc(e){return(null==e?void 0:e.animationName)||"none"}Ic.displayName="Presence";let wc=0;function Ac(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Nc=function(){return Nc=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Nc.apply(this,arguments)};function kc(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var Gc="right-scroll-bar-position",Pc="width-before-scroll-bar";function Vc(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Bc="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,Tc=new WeakMap;function Sc(e,t){var n,i,o,r=(n=null,i=function(t){return e.forEach(function(e){return Vc(e,t)})},(o=s(function(){return{value:n,callback:i,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=i,o.facade);return Bc(function(){var t=Tc.get(r);if(t){var n=new Set(t),i=new Set(e),o=r.current;n.forEach(function(e){i.has(e)||Vc(e,null)}),i.forEach(function(e){n.has(e)||Vc(e,o)})}Tc.set(r,e)},[e]),r}function Ec(e){return e}var Rc=function(e){var t=e.sideCar,n=kc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return i.createElement(o,Nc({},n))};Rc.isSideCarExport=!0;var Mc=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Ec);var n=[],i=!1,o={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,i);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(i=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){i=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var r=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(r)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=Nc({async:!0,ssr:!1},e),t}(),Xc=function(){},Wc=i.forwardRef(function(e,t){var n=i.useRef(null),o=i.useState({onScrollCapture:Xc,onWheelCapture:Xc,onTouchMoveCapture:Xc}),r=o[0],a=o[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,h=e.sideCar,m=e.noIsolation,g=e.inert,f=e.allowPinchZoom,b=e.as,v=void 0===b?"div":b,y=kc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),x=h,I=Sc([n,t]),C=Nc(Nc({},y),r);return i.createElement(i.Fragment,null,d&&i.createElement(x,{sideCar:Mc,removeScrollBar:u,shards:p,noIsolation:m,inert:g,setCallbacks:a,allowPinchZoom:!!f,lockRef:n}),s?i.cloneElement(i.Children.only(l),Nc(Nc({},C),{ref:I})):i.createElement(v,Nc({},C,{className:c,ref:I}),l))});Wc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Wc.classNames={fullWidth:Pc,zeroRight:Gc};function Lc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Fc=function(){var e=0,t=null;return{add:function(n){var i;0==e&&(t=Lc())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Oc=function(){var e,t=(e=Fc(),function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,i=e.dynamic;return t(n,i),null}},Dc={left:0,top:0,right:0,gap:0},Zc=function(e){return parseInt(e||"",10)||0},zc=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Dc;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],i=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Zc(n),Zc(i),Zc(o)]}(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},Hc=Oc(),jc="data-scroll-locked",Yc=function(e,t,n,i){var o=e.left,r=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(i,";\n padding-right: ").concat(s,"px ").concat(i,";\n }\n body[").concat(jc,"] {\n overflow: hidden ").concat(i,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(i,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(r,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(i,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(i,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Gc," {\n right: ").concat(s,"px ").concat(i,";\n }\n \n .").concat(Pc," {\n margin-right: ").concat(s,"px ").concat(i,";\n }\n \n .").concat(Gc," .").concat(Gc," {\n right: 0 ").concat(i,";\n }\n \n .").concat(Pc," .").concat(Pc," {\n margin-right: 0 ").concat(i,";\n }\n \n body[").concat(jc,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Jc=function(){var e=parseInt(document.body.getAttribute(jc)||"0",10);return isFinite(e)?e:0},Uc=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=void 0===o?"margin":o;i.useEffect(function(){return document.body.setAttribute(jc,(Jc()+1).toString()),function(){var e=Jc()-1;e<=0?document.body.removeAttribute(jc):document.body.setAttribute(jc,e.toString())}},[]);var a=i.useMemo(function(){return zc(r)},[r]);return i.createElement(Hc,{styles:Yc(a,!t,r,n?"":"!important")})},$c=!1;if("undefined"!=typeof window)try{var Qc=Object.defineProperty({},"passive",{get:function(){return $c=!0,!0}});window.addEventListener("test",Qc,Qc),window.removeEventListener("test",Qc,Qc)}catch(e){$c=!1}var _c=!!$c&&{passive:!1},Kc=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},qc=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),eu(e,n)){var i=tu(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},eu=function(e,t){return"v"===e?function(e){return Kc(e,"overflowY")}(t):function(e){return Kc(e,"overflowX")}(t)},tu=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},nu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},iu=function(e){return[e.deltaX,e.deltaY]},ou=function(e){return e&&"current"in e?e.current:e},ru=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},au=0,su=[];var lu,cu=(lu=function(e){var t=i.useRef([]),n=i.useRef([0,0]),o=i.useRef(),r=i.useState(au++)[0],a=i.useState(function(){return Oc()})[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var t=function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(ou),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var l=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var i,r=nu(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-r[0],c="deltaY"in e?e.deltaY:a[1]-r[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=qc(d,u);if(!p)return!0;if(p?i=d:(i="v"===d?"h":"v",p=qc(d,u)),!p)return!1;if(!o.current&&"changedTouches"in e&&(l||c)&&(o.current=i),!i)return!0;var h=o.current||i;return function(e,t,n,i){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),r=o*i,a=n.target,s=t.contains(a),l=!1,c=r>0,u=0,d=0;do{var p=tu(e,a),h=p[0],m=p[1]-p[2]-o*h;(h||m)&&eu(e,a)&&(u+=m,d+=h),a=a.parentNode}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return c&&0===u?l=!0:c||0!==d||(l=!0),l}(h,t,e,"h"===h?l:c)},[]),c=i.useCallback(function(e){var n=e;if(su.length&&su[su.length-1]===a){var i="deltaY"in n?iu(n):nu(n),o=t.current.filter(function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=i,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var r=(s.current.shards||[]).map(ou).filter(Boolean).filter(function(e){return e.contains(n.target)});(r.length>0?l(n,r[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=i.useCallback(function(e,n,i,o){var r={name:e,delta:n,target:i,should:o};t.current.push(r),setTimeout(function(){t.current=t.current.filter(function(e){return e!==r})},1)},[]),d=i.useCallback(function(e){n.current=nu(e),o.current=void 0},[]),p=i.useCallback(function(t){u(t.type,iu(t),t.target,l(t,e.lockRef.current))},[]),h=i.useCallback(function(t){u(t.type,nu(t),t.target,l(t,e.lockRef.current))},[]);i.useEffect(function(){return su.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",c,_c),document.addEventListener("touchmove",c,_c),document.addEventListener("touchstart",d,_c),function(){su=su.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,_c),document.removeEventListener("touchmove",c,_c),document.removeEventListener("touchstart",d,_c)}},[]);var m=e.removeScrollBar,g=e.inert;return i.createElement(i.Fragment,null,g?i.createElement(a,{styles:ru(r)}):null,m?i.createElement(Uc,{gapMode:"margin"}):null)},Mc.useMedium(lu),Rc),uu=i.forwardRef(function(e,t){return i.createElement(Wc,Nc({},e,{ref:t,sideCar:cu}))});uu.classNames=Wc.classNames;var du=new WeakMap,pu=new WeakMap,hu={},mu=0,gu=function(e){return e&&(e.host||gu(e.parentNode))},fu=function(e,t,n,i){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=gu(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);hu[n]||(hu[n]=new WeakMap);var r=hu[n],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(i),o=null!==t&&"false"!==t,l=(du.get(e)||0)+1,c=(r.get(e)||0)+1;du.set(e,l),r.set(e,c),a.push(e),1===l&&o&&pu.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(i,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),s.clear(),mu++,function(){a.forEach(function(e){var t=du.get(e)-1,o=r.get(e)-1;du.set(e,t),r.set(e,o),t||(pu.has(e)||e.removeAttribute(i),pu.delete(e)),o||e.removeAttribute(n)}),--mu||(du=new WeakMap,du=new WeakMap,pu=new WeakMap,hu={})}},bu=function(e,t,n){void 0===n&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),fu(i,o,n,"aria-hidden")):function(){return null}};const vu="Dialog",[yu,xu]=function(e,t=[]){let n=[];const i=()=>{const t=n.map(e=>d(e));return function(n){const i=(null==n?void 0:n[e])||t;return u(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){const o=d(i),r=n.length;function a(t){const{scope:n,children:i,...a}=t,s=(null==n?void 0:n[e][r])||o,l=u(()=>a,Object.values(a));return g(s.Provider,{value:l},i)}return n=[...n,i],a.displayName=t+"Provider",[a,function(n,a){const s=(null==a?void 0:a[e][r])||o,l=h(s);if(l)return l;if(void 0!==i)return i;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},zl(i,...t)]}(vu),[Iu,Cu]=yu(vu),wu="DialogPortal",[Au,Nu]=yu(wu,{forceMount:void 0}),ku="DialogOverlay",Gu=r((e,t)=>{const n=Nu(ku,e.__scopeDialog),{forceMount:i=n.forceMount,...o}=e,r=Cu(ku,e.__scopeDialog);return r.modal?g(Ic,{present:i||r.open},g(Pu,Fl({},o,{ref:t}))):null}),Pu=r((e,t)=>{const{__scopeDialog:n,...i}=e,o=Cu(ku,n);return g(uu,{as:Ql,allowPinchZoom:!0,shards:[o.contentRef]},g(tc.div,Fl({"data-state":Wu(o.open)},i,{ref:t,style:{pointerEvents:"auto",...i.style}})))}),Vu="DialogContent",Bu=r((e,t)=>{const n=Nu(Vu,e.__scopeDialog),{forceMount:i=n.forceMount,...o}=e,r=Cu(Vu,e.__scopeDialog);return g(Ic,{present:i||r.open},r.modal?g(Tu,Fl({},o,{ref:t})):g(Su,Fl({},o,{ref:t})))}),Tu=r((e,t)=>{const n=Cu(Vu,e.__scopeDialog),i=a(null),o=Zl(t,n.contentRef,i);return l(()=>{const e=i.current;if(e)return bu(e)},[]),g(Eu,Fl({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ol(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:Ol(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:Ol(e.onFocusOutside,e=>e.preventDefault())}))}),Su=r((e,t)=>{const n=Cu(Vu,e.__scopeDialog),i=a(!1),o=a(!1);return g(Eu,Fl({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,a;(null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented)||(i.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault());i.current=!1,o.current=!1},onInteractOutside:t=>{var r,a;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const s=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))}),Eu=r((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:r,...s}=e,c=Cu(Vu,n),u=Zl(t,a(null));return l(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Ac()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Ac()),wc++,()=>{1===wc&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),wc--}},[]),g(x,null,g(hc,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:r},g(sc,Fl({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Wu(c.open)},s,{ref:u,onDismiss:()=>c.onOpenChange(!1)}))),!1)}),Ru="DialogTitle",Mu="DialogClose",Xu=r((e,t)=>{const{__scopeDialog:n,...i}=e,o=Cu(Mu,n);return g(tc.button,Fl({type:"button"},i,{ref:t,onClick:Ol(e.onClick,()=>o.onOpenChange(!1))}))});function Wu(e){return e?"open":"closed"}!function(e,t){const n=d(t);function i(e){const{children:t,...i}=e,o=u(()=>i,Object.values(i));return g(n.Provider,{value:o},t)}i.displayName=e+"Provider"}("DialogTitleWarning",{contentName:Vu,titleName:Ru,docsSlug:"dialog"});const Lu=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:o,onOpenChange:r,modal:s=!0}=e,l=a(null),u=a(null),[d=!1,p]=$l({prop:i,defaultProp:o,onChange:r});return g(Iu,{scope:t,triggerRef:l,contentRef:u,contentId:Jl(),titleId:Jl(),descriptionId:Jl(),open:d,onOpenChange:p,onOpenToggle:c(()=>p(e=>!e),[p]),modal:s},n)},Fu=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:o}=e,r=Cu(wu,t);return g(Au,{scope:t,forceMount:n},v.map(i,e=>g(Ic,{present:n||r.open},g(xc,{asChild:!0,container:o},e))))},Ou=Gu,Du=Bu,Zu=Xu,zu=n=>{const{isOpen:i,onRequestClose:o,size:r,title:a,content:s,description:l,children:c,bodyClassName:u}=n;return e(Lu,{open:i,onOpenChange:()=>i&&(null==o?void 0:o()),children:t(Fu,{children:[e(Tl.div,{initial:"closed",animate:i?"open":"closed",variants:Mt,transition:{type:"tween",duration:.2,ease:"easeInOut"},className:"fixed inset-0 z-[1000] bg-scrim-bg-modal",children:e(Ou,{})}),e(Tl.div,{initial:"closed",animate:i?"open":"closed",variants:Xt,transition:{type:"tween",duration:.3,ease:"easeInOut"},className:"fixed left-1/2 top-1/2 z-[1001] w-auto -translate-x-1/2 -translate-y-1/2 focus:outline-none",children:t(Du,{className:He("fixed left-[50%] top-[50%] w-[90vw] translate-x-[-50%] translate-y-[-50%] rounded-[6px] bg-bg p-[25px] shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] focus:outline-none",u),style:{maxWidth:Wt[r||"lg"]},children:[e(Zu,{asChild:!0,children:e(et,{showButtonAs:"unstyled",buttonClassName:"absolute right-0 top-0 mr-2 mt-2 bg-bg",children:e(Je,{name:"close"})})}),t("div",{className:"custom-modal-body max-h-[85vh] overflow-visible",children:[a?e($e,{className:He("mx-auto mb-3 mt-5 text-center","heading5 md:max-w-[80%] md:pt-0","mb-5 md:mb-[60px]"),as:"h2",children:a}):null,l?e($e,{as:"div",children:l}):null,s,c||null]})]})})]})})},Hu=({children:n,background:i,className:o,fill:r="yellow",maxFit:a,show:s=!0,path:l="path2"})=>{const c=`${l}`,u={blue:"text-[#07B2E2]",green:"text-[#26B170]",yellow:"text-[#F5FF1E]",purple:"text-[#931D69]",white:"text-white",navy:"text-[#00002D]"},d={blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"},p="string"==typeof i&&i in d,h=p?d[i]:void 0,m=i&&!p?{background:i}:void 0,g=r in u?u[r]:"text-[#F5FF1E]";return s?t("div",{className:`shape-bg relative overflow-hidden ${null!=o?o:""} ${a?"max-content":""} ${null!=h?h:m?"":"bg-white"}`,style:m,children:["path1"===l&&e("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-2371px] z-0 translate-x-[-55%] ${c} fill-current ${g}`,width:"2262",height:"4359",viewBox:"0 0 2262 4359",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e("path",{d:"M1838.72 444.021C2216.45 758.242 2351.22 1060.81 2202.83 1982.25C2062.95 2851.55 1923.57 4265.14 1394.48 4348.94C1079.75 4409.66 766.955 4172.68 508.523 4003.04C340.876 3884.89 192.855 3774.9 26.6866 3661.93C-27.6562 3624.7 8.69435 3542.15 74.1261 3555.69C415.628 3626.61 686.916 3615.36 942.942 3443.48C1410.95 3163.54 1632.32 2141.02 1629.56 1543.75C1637.51 910.76 1276.06 582.318 829.643 352.709C587.562 235.528 333.508 169.963 100.699 149.757C31.9431 143.965 25.0259 47.9703 92.459 33.1281C623.196 -84.6769 1404.59 131.886 1839.84 443.573"})}),"path2"===l&&e("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[45.8px] z-0 translate-x-[-101%] ${c} fill-current ${g}`,width:"3739",height:"3666",viewBox:"0 0 3739 3666",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e("path",{d:"M1662.93 3664.31C2153.52 3637.23 2442.1 3474.65 2872.31 2646.41C3278.25 1865.09 4009.1 647.09 3634.26 264.38C3417.79 27.9944 3025.37 31.7818 2716.76 13.9013C2511.72 8.81634 2327.31 8.87399 2126.55 0.511773C2060.73 -2.00127 2040.7 85.9475 2101.3 114.087C2417.76 260.743 2628.86 431.51 2731.94 722.142C2940.79 1225.9 2508.91 2178.82 2150.63 2656.7C1779.64 3169.63 1293.64 3217.84 798.345 3136.04C534.128 3085.8 291.072 2986.97 92.1133 2864.4C33.4593 2828.06 -29.3236 2901.01 15.967 2953.13C371.841 3364.12 1128.29 3656.09 1663.56 3665.34"})}),"path3"===l&&e("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-2600px] z-0 translate-x-[-55%] ${c} fill-current ${g}`,width:"3044",height:"3248",viewBox:"0 0 3044 3248",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e("path",{d:"M1.21857 1353.6C-0.931975 1765.46 120.504 2015.15 791.765 2417.01C1424.98 2796.19 2407.16 3469.31 2746.34 3175.04C2955.08 3005.86 2971.76 2677.32 3002.33 2420C3016.95 2248.7 3026.23 2094.39 3043.38 1926.83C3048.81 1871.88 2976.24 1850.67 2949.63 1899.96C2810.91 2157.33 2657.35 2325.33 2408.95 2396.88C1976.88 2546.15 1201.39 2136.59 819.655 1812.63C409.231 1476.27 393.475 1067.19 486.97 656.895C542.372 438.358 637.352 239.983 749.974 79.7081C783.347 32.4684 725.487 -23.7534 679.587 11.5067C317.699 288.49 35.1358 906.671 0.328344 1354.07"})}),"path4"===l&&e("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-1966.1px] z-0 translate-x-[-48%] ${c} fill-current ${g}`,width:"3739",height:"3666",viewBox:"0 0 3739 3666",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e("path",{d:"M1662.93 3664.31C2153.52 3637.23 2442.1 3474.65 2872.31 2646.41C3278.25 1865.1 4009.1 647.091 3634.26 264.381C3417.79 27.9951 3025.37 31.7826 2716.76 13.902C2511.72 8.81709 2327.31 8.87474 2126.55 0.512528C2060.73 -2.00052 2040.7 85.9483 2101.3 114.088C2417.76 260.743 2628.86 431.51 2731.94 722.143C2940.79 1225.9 2508.91 2178.82 2150.63 2656.7C1779.64 3169.63 1293.64 3217.84 798.345 3136.04C534.128 3085.8 291.072 2986.98 92.1133 2864.4C33.4593 2828.06 -29.3236 2901.01 15.967 2953.13C371.841 3364.12 1128.29 3656.09 1663.56 3665.34"})}),e("div",{className:"shape-bg-content relative z-[1]",children:n})]}):e("div",{className:o,style:m,children:n})},ju=({title:n,background:i="white",button:o,color:r,contentAlignment:a,description:s,descriptionAlignment:l,enableHeading:c,subTitle:u,maxWidth:d=!0,onModalButtonClick:p,renderCheckPlans:h})=>e("div",{className:`${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[i]} component-container`,children:t("div",{className:`${d?"mx-auto max-w-120":""} color-${r} flex flex-col ${"dark"==r?"text-text":"text-white"} px-5 py-16 lg:px-13 lg:py-24`,children:[e($e,{as:c?"h1":"h2",className:`heading2 lg:heading1 text-${a}`,children:n}),e($e,{as:"h3",className:`subheading3 pt-2 lg:subheading1 lg:pt-3 text-${a}`,children:u}),e("div",{className:`pt-2 text-body1 lg:pt-3 text-${l}`,children:s}),e("div",{className:"flex justify-center pt-5 lg:pt-14",children:e(et,{...o,renderCheckPlans:h,onModalButtonClick:p})})]})}),Yu=({background:i="white",description:o,enableHeading:r,image:a,list:s=[],subTitle:l,title:c,color:u="dark",maxWidth:d=!0})=>e("div",{className:`${{blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"}[i]} component-container overflow-hidden ${"dark"==u?"text-text":"text-white"}`,children:t("div",{className:(d?"max-w-120 xl:mx-auto":"")+" mx-5 mb-5 mt-12 xl:my-20",children:[c&&e($e,{as:r?"h1":"h2",className:"heading2 md:heading1 md:text-center",children:c}),l&&e($e,{as:r?"h2":"h3",className:"heading3 mt-4 text-center",children:l}),t("div",{className:"mt-8 flex items-center xl:mt-16 xl:gap-10",children:[t("div",{className:"flex flex-col items-start gap-10 self-stretch xl:flex-[1_0_0]",children:[o&&e($e,{as:"p",className:"body1",children:o}),s.length>0&&t(n,{children:[e("ul",{className:"grid w-full grid-cols-2 gap-x-8 gap-y-4 md:hidden",children:(()=>{const t=[...s].sort((e,t)=>e.name.localeCompare(t.name)),n=Math.ceil(t.length/2),i=[];for(let e=0;e<n;e++)for(let o=0;o<2;o++){const r=o*n+e;r<t.length&&i.push(t[r])}return i.map((t,n)=>e("li",{children:e(qe,{href:`/local/${t.code.toLowerCase()}`,className:"label1",children:t.name})},`item-list-2-${n}`))})()}),e("ul",{className:"hidden gap-x-8 gap-y-4 md:grid md:grid-cols-3",children:(()=>{const t=[...s].sort((e,t)=>e.name.localeCompare(t.name)),n=Math.ceil(t.length/3),i=[];for(let e=0;e<n;e++)for(let o=0;o<3;o++){const r=o*n+e;r<t.length&&i.push(t[r])}return i.map((t,n)=>e("li",{children:e(qe,{href:`/local/${t.code.toLowerCase()}`,className:"label1",children:t.name})},`item-list-3-${n}`))})()})]})]}),a&&e("aside",{className:"hidden xl:block",children:e(nt,{width:472,height:100,src:a,alt:"image"})})]})]})}),Ju=({title:n,disclaimer:i,table:o,maxWidth:r=!0})=>e("div",{className:"component-container",children:t("div",{className:"mx-5 mb-5 mt-8 lg:mt-10 "+(r?"max-w-120 xl:mx-auto":""),children:[e($e,{as:"h2",className:"heading2 lg:heading1 lg:text-center",children:n}),e("div",{className:"comparison-table-container mt-20 xl:mt-10",children:o}),e($e,{as:"div",className:"micro mt-8 text-center",children:i})]})}),Uu=({href:i,title:o,description:r,date:a,category:s,image:l,readMoreText:c="Read more"})=>t("article",{className:"flex flex-col overflow-hidden rounded-xl bg-white shadow-[0_1px_4px_rgba(0,0,0,0.08),0_4px_16px_rgba(0,0,0,0.06)] transition-all duration-200 hover:-translate-y-0.5 hover:shadow-[0_4px_12px_rgba(0,0,0,0.12),0_8px_24px_rgba(0,0,0,0.10)]",children:[e(G,{href:i,tabIndex:-1,"aria-hidden":"true",className:"block",children:e("div",{className:"aspect-video w-full flex-shrink-0 overflow-hidden bg-gray-100",children:l?e(w,{src:l.src,alt:l.alt,width:l.width,height:l.height,className:"h-full w-full object-cover transition-transform duration-300 hover:scale-[1.03]",sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"}):e("div",{className:"h-full w-full bg-gradient-to-br from-gray-200 to-gray-100","aria-hidden":"true"})})}),t("div",{className:"flex flex-1 flex-col gap-5 p-5 pb-6",children:[t("div",{className:"flex items-center gap-2 text-[13px]",children:[e("span",{className:"text-body2 font-semibold text-text-brand",children:s}),a&&t(n,{children:[e("span",{className:"text-xs text-text","aria-hidden":"true",children:"•"}),e("time",{className:"text-body2 text-text",children:a})]})]}),o&&e(G,{href:i,className:"m-0 line-clamp-3 text-heading6 font-black transition-colors duration-150 hover:text-text-brand",children:o}),r&&e($e,{className:"m-0 line-clamp-3 flex-1 text-body1",children:r}),e(G,{href:i,className:"group mt-auto inline-flex justify-between pt-3 text-sm text-text-brand no-underline transition-all duration-200 hover:gap-2.5 hover:text-[#007ab8]","aria-label":`${c} about ${o||"this article"}`,children:t(je,{"aria-label":`${c} about ${o||"this article"}`,className:"flex w-36 justify-around text-nowrap text-label1 font-black",children:[c,e(Je,{name:"expand_circle_right",fill:0,size:24,weight:"600"})]})})]})]}),$u=({currentPage:n,totalPages:i,onPageChange:o,ariaLabel:r="Pagination"})=>{const a=function(e,t){if(t<=7)return Array.from({length:t},(e,t)=>t+1);const n=[];n.push(1),e>3&&n.push("...");const i=Math.max(2,e-1),o=Math.min(t-1,e+1);for(let e=i;e<=o;e++)n.push(e);e<t-2&&n.push("...");return n.push(t),n}(n,i),s="inline-flex items-center justify-center w-9 h-9 rounded-full bg-transparent cursor-pointer transition-colors duration-150 hover:border-text-brand hover:text-text-brand disabled:opacity-40 disabled:cursor-not-allowed";return t("nav",{className:"flex items-center justify-center gap-1 px-6 pb-12","aria-label":r,children:[e(je,{className:s,onClick:()=>o(n-1),disabled:1===n,"aria-label":"Go to previous page",children:e(Je,{name:"chevron_left",size:32,"aria-hidden":"true"})}),a.map((t,i)=>"..."===t?e("span",{className:"inline-flex h-9 w-9 cursor-default items-center justify-center text-body2 text-gray-500","aria-hidden":"true",children:"…"},`ellipsis-${i}`):e(je,{className:"inline-flex items-center justify-center w-9 h-9 rounded-lg text-body2 text-gray-700 bg-transparent border-none cursor-pointer transition-colors duration-150 hover:bg-gray-100 hover:text-gray-900 "+(t===n?"bg-bg-surface-active font-bold hover:bg-bg-gray-300":""),onClick:()=>o(t),"aria-label":`Go to page ${t}`,"aria-current":t===n?"page":void 0,children:t},t)),e(je,{className:s,onClick:()=>o(n+1),disabled:n===i,"aria-label":"Go to next page",children:e(Je,{name:"chevron_right",size:32,"aria-hidden":"true"})})]})};function Qu(e){return Qu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qu(e)}function _u(e){var t=function(e,t){if("object"!=Qu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=Qu(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qu(t)?t:t+""}function Ku(e,t,n){return(t=_u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ed(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qu(Object(n),!0).forEach(function(t){Ku(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function td(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function nd(e,t){if(e){if("string"==typeof e)return td(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?td(e,t):void 0}}function id(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,r,a,s=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=r.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||nd(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function od(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var rd=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function ad(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_u(i.key),i)}}function sd(e,t){return sd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sd(e,t)}function ld(e){return ld=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ld(e)}function cd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(cd=function(){return!!e})()}function ud(e,t){if(t&&("object"==Qu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function dd(e){return function(e){if(Array.isArray(e))return td(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||nd(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var pd=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),hd="-ms-",md="-moz-",gd="-webkit-",fd="comm",bd="rule",vd="decl",yd="@keyframes",xd=Math.abs,Id=String.fromCharCode,Cd=Object.assign;function wd(e){return e.trim()}function Ad(e,t,n){return e.replace(t,n)}function Nd(e,t){return e.indexOf(t)}function kd(e,t){return 0|e.charCodeAt(t)}function Gd(e,t,n){return e.slice(t,n)}function Pd(e){return e.length}function Vd(e){return e.length}function Bd(e,t){return t.push(e),e}var Td=1,Sd=1,Ed=0,Rd=0,Md=0,Xd="";function Wd(e,t,n,i,o,r,a){return{value:e,root:t,parent:n,type:i,props:o,children:r,line:Td,column:Sd,length:a,return:""}}function Ld(e,t){return Cd(Wd("",null,null,"",null,null,0),e,{length:-e.length},t)}function Fd(){return Md=Rd>0?kd(Xd,--Rd):0,Sd--,10===Md&&(Sd=1,Td--),Md}function Od(){return Md=Rd<Ed?kd(Xd,Rd++):0,Sd++,10===Md&&(Sd=1,Td++),Md}function Dd(){return kd(Xd,Rd)}function Zd(){return Rd}function zd(e,t){return Gd(Xd,e,t)}function Hd(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function jd(e){return Td=Sd=1,Ed=Pd(Xd=e),Rd=0,[]}function Yd(e){return Xd="",e}function Jd(e){return wd(zd(Rd-1,Qd(91===e?e+2:40===e?e+1:e)))}function Ud(e){for(;(Md=Dd())&&Md<33;)Od();return Hd(e)>2||Hd(Md)>3?"":" "}function $d(e,t){for(;--t&&Od()&&!(Md<48||Md>102||Md>57&&Md<65||Md>70&&Md<97););return zd(e,Zd()+(t<6&&32==Dd()&&32==Od()))}function Qd(e){for(;Od();)switch(Md){case e:return Rd;case 34:case 39:34!==e&&39!==e&&Qd(Md);break;case 40:41===e&&Qd(e);break;case 92:Od()}return Rd}function _d(e,t){for(;Od()&&e+Md!==57&&(e+Md!==84||47!==Dd()););return"/*"+zd(t,Rd-1)+"*"+Id(47===e?e:Od())}function Kd(e){for(;!Hd(Dd());)Od();return zd(e,Rd)}function qd(e){return Yd(ep("",null,null,null,[""],e=jd(e),0,[0],e))}function ep(e,t,n,i,o,r,a,s,l){for(var c=0,u=0,d=a,p=0,h=0,m=0,g=1,f=1,b=1,v=0,y="",x=o,I=r,C=i,w=y;f;)switch(m=v,v=Od()){case 40:if(108!=m&&58==kd(w,d-1)){-1!=Nd(w+=Ad(Jd(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:w+=Jd(v);break;case 9:case 10:case 13:case 32:w+=Ud(m);break;case 92:w+=$d(Zd()-1,7);continue;case 47:switch(Dd()){case 42:case 47:Bd(np(_d(Od(),Zd()),t,n),l);break;default:w+="/"}break;case 123*g:s[c++]=Pd(w)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:f=0;case 59+u:-1==b&&(w=Ad(w,/\f/g,"")),h>0&&Pd(w)-d&&Bd(h>32?ip(w+";",i,n,d-1):ip(Ad(w," ","")+";",i,n,d-2),l);break;case 59:w+=";";default:if(Bd(C=tp(w,t,n,c,u,o,s,y,x=[],I=[],d),r),123===v)if(0===u)ep(w,t,C,C,x,r,d,s,I);else switch(99===p&&110===kd(w,3)?100:p){case 100:case 108:case 109:case 115:ep(e,C,C,i&&Bd(tp(e,C,C,0,0,o,s,y,o,x=[],d),I),o,I,d,s,i?x:I);break;default:ep(w,C,C,C,[""],I,0,s,I)}}c=u=h=0,g=b=1,y=w="",d=a;break;case 58:d=1+Pd(w),h=m;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==Fd())continue;switch(w+=Id(v),v*g){case 38:b=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(Pd(w)-1)*b,b=1;break;case 64:45===Dd()&&(w+=Jd(Od())),p=Dd(),u=d=Pd(y=w+=Kd(Zd())),v++;break;case 45:45===m&&2==Pd(w)&&(g=0)}}return r}function tp(e,t,n,i,o,r,a,s,l,c,u){for(var d=o-1,p=0===o?r:[""],h=Vd(p),m=0,g=0,f=0;m<i;++m)for(var b=0,v=Gd(e,d+1,d=xd(g=a[m])),y=e;b<h;++b)(y=wd(g>0?p[b]+" "+v:Ad(v,/&\f/g,p[b])))&&(l[f++]=y);return Wd(e,t,n,0===o?bd:s,l,c,u)}function np(e,t,n){return Wd(e,t,n,fd,Id(Md),Gd(e,2,-2),0)}function ip(e,t,n,i){return Wd(e,t,n,vd,Gd(e,0,i),Gd(e,i+1,-1),i)}function op(e,t){for(var n="",i=Vd(e),o=0;o<i;o++)n+=t(e[o],o,e,t)||"";return n}function rp(e,t,n,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case vd:return e.return=e.return||e.value;case fd:return"";case yd:return e.return=e.value+"{"+op(e.children,i)+"}";case bd:e.value=e.props.join(",")}return Pd(n=op(e.children,i))?e.return=e.value+"{"+n+"}":""}function ap(e){var t=Vd(e);return function(n,i,o,r){for(var a="",s=0;s<t;s++)a+=e[s](n,i,o,r)||"";return a}}var sp="undefined"!=typeof document,lp=function(e,t,n){for(var i=0,o=0;i=o,o=Dd(),38===i&&12===o&&(t[n]=1),!Hd(o);)Od();return zd(e,Rd)},cp=function(e,t){return Yd(function(e,t){var n=-1,i=44;do{switch(Hd(i)){case 0:38===i&&12===Dd()&&(t[n]=1),e[n]+=lp(Rd-1,t,n);break;case 2:e[n]+=Jd(i);break;case 4:if(44===i){e[++n]=58===Dd()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Id(i)}}while(i=Od());return e}(jd(e),t))},up=new WeakMap,dp=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,i=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||up.get(n))&&!i){up.set(e,!0);for(var o=[],r=cp(t,o),a=n.props,s=0,l=0;s<r.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?r[s].replace(/&\f/g,a[c]):a[c]+" "+r[s]}}},pp=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function hp(e,t){switch(function(e,t){return 45^kd(e,0)?(((t<<2^kd(e,0))<<2^kd(e,1))<<2^kd(e,2))<<2^kd(e,3):0}(e,t)){case 5103:return gd+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return gd+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gd+e+md+e+hd+e+e;case 6828:case 4268:return gd+e+hd+e+e;case 6165:return gd+e+hd+"flex-"+e+e;case 5187:return gd+e+Ad(e,/(\w+).+(:[^]+)/,gd+"box-$1$2"+hd+"flex-$1$2")+e;case 5443:return gd+e+hd+"flex-item-"+Ad(e,/flex-|-self/,"")+e;case 4675:return gd+e+hd+"flex-line-pack"+Ad(e,/align-content|flex-|-self/,"")+e;case 5548:return gd+e+hd+Ad(e,"shrink","negative")+e;case 5292:return gd+e+hd+Ad(e,"basis","preferred-size")+e;case 6060:return gd+"box-"+Ad(e,"-grow","")+gd+e+hd+Ad(e,"grow","positive")+e;case 4554:return gd+Ad(e,/([^-])(transform)/g,"$1"+gd+"$2")+e;case 6187:return Ad(Ad(Ad(e,/(zoom-|grab)/,gd+"$1"),/(image-set)/,gd+"$1"),e,"")+e;case 5495:case 3959:return Ad(e,/(image-set\([^]*)/,gd+"$1$`$1");case 4968:return Ad(Ad(e,/(.+:)(flex-)?(.*)/,gd+"box-pack:$3"+hd+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gd+e+e;case 4095:case 3583:case 4068:case 2532:return Ad(e,/(.+)-inline(.+)/,gd+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Pd(e)-1-t>6)switch(kd(e,t+1)){case 109:if(45!==kd(e,t+4))break;case 102:return Ad(e,/(.+:)(.+)-([^]+)/,"$1"+gd+"$2-$3$1"+md+(108==kd(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Nd(e,"stretch")?hp(Ad(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==kd(e,t+1))break;case 6444:switch(kd(e,Pd(e)-3-(~Nd(e,"!important")&&10))){case 107:return Ad(e,":",":"+gd)+e;case 101:return Ad(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+gd+(45===kd(e,14)?"inline-":"")+"box$3$1"+gd+"$2$3$1"+hd+"$2box$3")+e}break;case 5936:switch(kd(e,t+11)){case 114:return gd+e+hd+Ad(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gd+e+hd+Ad(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gd+e+hd+Ad(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return gd+e+hd+e+e}return e}var mp,gp,fp,bp=sp?void 0:(mp=function(){return e=function(){return{}},t=Object.create(null),function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]};var e,t},gp=new WeakMap,function(e){if(gp.has(e))return gp.get(e);var t=mp(e);return gp.set(e,t),t}),vp=[function(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case vd:e.return=hp(e.value,e.length);break;case yd:return op([Ld(e,{value:Ad(e.value,"@","@"+gd)})],i);case bd:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return op([Ld(e,{props:[Ad(t,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return op([Ld(e,{props:[Ad(t,/:(plac\w+)/,":"+gd+"input-$1")]}),Ld(e,{props:[Ad(t,/:(plac\w+)/,":-moz-$1")]}),Ld(e,{props:[Ad(t,/:(plac\w+)/,hd+"input-$1")]})],i)}return""})}}],yp=function(e){var t=e.key;if(sp&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var i,o,r=e.stylisPlugins||vp,a={},s=[];sp&&(i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c=[dp,pp];if(bp){var u=[rp],d=ap(c.concat(r,u)),p=bp(r)(t),h=function(e,t){var n=t.name;return void 0===p[n]&&(p[n]=op(qd(e?e+"{"+t.styles+"}":t.styles),d)),p[n]};o=function(e,t,n,i){var o=t.name,r=h(e,t);return void 0===b.compat?(i&&(b.inserted[o]=!0),r):i?void(b.inserted[o]=r):r}}else{var m,g=[rp,(l=function(e){m.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],f=ap(c.concat(r,g));o=function(e,t,n,i){m=n,op(qd(e?e+"{"+t.styles+"}":t.styles),f),i&&(b.inserted[t.name]=!0)}}var b={key:t,sheet:new pd({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return b.sheet.hydrate(s),b},xp={exports:{}},Ip={};var Cp,wp,Ap,Np,kp={};
4
4
  /** @license React v16.13.1
5
5
  * react-is.development.js
6
6
  *