PageSourceSearch

https://www.spedidam.fr/_next/static/chunks/1oy25q3463ccr.js

js spedidam.fr collected 2026-10-02 03:20:38 UTC 157,466 bytes, 227 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,12712,(e,t,i)=>{t.exports={locales:["fr","en"],defaultLocale:"fr",localeDetection:!1}},87897,e=>{"use strict";var t,i,n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(t=function(e){return n.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)},i=Object.create(null),function(e){return void 0===i[e]&&(i[e]=t(e)),i[e]});e.s(["default",0,s],87897)},58678,(e,t,i)=>{t.exports=e.r(80963)},49326,e=>{"use strict";var t=e.i(91398),i=e.i(97873);e.s(["SecureReactSvg",0,function({src:e,className:n,...s}){let r=`/api/svg-proxy?url=${encodeURIComponent(e)}`;return(0,t.jsx)(i.ReactSVG,{src:r,className:n??"icon",...s,beforeInjection:e=>{e.removeAttribute("role")}})}])},23580,3321,63741,45453,95187,97981,61150,59658,e=>{"use strict";var t=e.i(91398),i=e.i(58678),n=e.i(97170),s=e.i(59080);let r=s.gql`
2  fragment BlogInfoFragment on GeneralSettings {
3    title
4    description
5  }
6`;e.s(["BlogInfoFragment",0,r],3321);let a=s.gql`
7  fragment NavigationMenuItemFragment on MenuItem {
8    id
9    databaseId
10    parentId
11    path
12    label
13    uri
14    url
15    icon
16    menu {
17      node {
18        name
19      }
20    }
21  }
22`;e.s(["NavigationMenuItemFragment",0,a],63741);let o=s.gql`
23  fragment ThemeOptionsGeneralFragment on General {
24    site_logo {
25      node {
26        altText
27        mimeType
28        mediaItemUrl
29        id
30        title
31      }
32    }
33  }
34`;e.s(["ThemeOptionsGeneralFragment",0,o],45453);let l=s.gql`
35  fragment ThemeOptionsFooterFragment on FooterOptions {
36    copyright
37    horaire_title
38    horaires_description
39    share_title
40    support_title
41    legal_links {
42      legal_url {
43        target
44        title
45        url
46      }
47    }
48    share_links {
49      icon {
50        node {
51          altText
52          mimeType
53          mediaItemUrl
54          id
55          title
56        }
57      }
58      title
59      link {
60        target
61        title
62        url
63      }
64    }
65    support_links {
66      support_link_url {
67        target
68        title
69        url
70      }
71    }
72  }
73`,u=s.gql`
74  fragment ThemeOptionsFooterENFragment on FooterOptionsEn {
75    copyright_en
76    horaire_title_en
77    horaires_description_en
78    share_title_en
79    support_title_en
80    legal_links_en {
81      legal_url{
82        target
83        title
84        url
85      }
86    }
87    share_links_en {
88      icon{
89        node {
90          altText
91          mimeType
92          mediaItemUrl
93          id
94          title
95      }
96    }
97    title
98    link {
99      target
100      title
101      url
102    }
103  }
104  support_links_en {
105    support_link_url{
106      target
107      title
108      url
109    }
110  }
111}
112`;e.s(["ThemeOptionsFooterENFragment",0,u,"ThemeOptionsFooterFragment",0,l],95187);let h=s.gql`
113  fragment ThemeOptionsPreFooterFragment on PreFooterOptions {
114    pre_footer_enabled
115    pre_footer_title
116    pre_footer_description
117    pre_footer_link {
118      target
119      title
120      url
121    }
122  }
123`,c=s.gql`
124  fragment ThemeOptionsPreFooterENFragment on PreFooterOptionsEn {
125    pre_footer_enabled_en
126    pre_footer_title_en
127    pre_footer_description_en
128    pre_footer_link_en {
129      target
130      title
131      url
132    }
133  }
134`;e.s(["ThemeOptionsPreFooterENFragment",0,c,"ThemeOptionsPreFooterFragment",0,h],97981);let d=s.gql`
135  fragment ThemeOptionsSearchFragment on SearchOptions {
136    search_suggestions {
137        search_suggestion_url
138        search_suggestion_term
139      }
140  }
141`,m=s.gql`
142  fragment ThemeOptionsSearchENFragment on SearchOptionsEn {
143    search_suggestions_en {
144      search_suggestion_url
145      search_suggestion_term
146    }
147  }
148`;e.s(["ThemeOptionsSearchENFragment",0,m,"ThemeOptionsSearchFragment",0,d],61150),s.gql`
149  ${r}
150  ${a}
151  ${o}
152  ${l}
153  ${u}
154  ${h}
155  ${c}
156  ${d}
157  query GetLayout(
158    $headerLocation: MenuLocationEnum
159    $superHeaderLocation: MenuLocationEnum
160    $legalLocation: MenuLocationEnum
161    $footerLocation: MenuLocationEnum
162    $locale: LanguageCodeFilterEnum!
163  ) {
164    generalSettings {
165      ...BlogInfoFragment
166    }
167    superHeaderMenuItems: menuItems(
168      where: { location: $superHeaderLocation, language: $locale }
169      first: 100
170    ) {
171      nodes {
172        ...NavigationMenuItemFragment
173      }
174    }
175    primaryMenuItems: menuItems(
176      where: { location: $headerLocation, language: $locale }
177      first: 100
178    ) {
179      nodes {
180        ...NavigationMenuItemFragment
181      }
182    }
183    legalMenuItems: menuItems(where: { location: $legalLocation, language: $locale }, first: 100) {
184      nodes {
185        ...NavigationMenuItemFragment
186      }
187    }
188    footerMenuItems: menuItems(
189      where: { location: $footerLocation, language: $locale }
190      first: 100
191    ) {
192      nodes {
193        ...NavigationMenuItemFragment
194      }
195    }
196    themeOptions {
197      general {
198        ...ThemeOptionsGeneralFragment
199      }
200      footerOptions {
201        ...ThemeOptionsFooterFragment
202      }
203      preFooterOptions {
204        ...ThemeOptionsPreFooterFragment
205      }
206      searchOptions {
207        ...ThemeOptionsSearchFragment
208      }
209    }
210    themeOptionsEN {
211      footerOptionsEn {
212        ...ThemeOptionsFooterENFragment
213      }
214      preFooterOptionsEn {
215        ...ThemeOptionsPreFooterENFragment
216      }
217    }
218  }
219`,e.i(2047),e.i(99212);var p=e.i(12712);let f=e=>e.includes("fr")?"en":"fr";function g(e){let t=e.toLowerCase();return p.locales.some(e=>e.toLowerCase()===t)?e:"fr"}e.s(["buildFrontendUrl",0,function(e,t,i){if(!e||"#"===e)return"#";
219try{let n=new URL(e).pathname.split("/").filter(Boolean),s=n[n.length-1],r="";switch(t){case"actu_evenement":r="en"===i?`/news-events/${s}`:`/actualites-evenements/${s}`;break;case"communique_presse":r="en"===i?`/press/${s}`:`/presse/${s}`;break;case"aide":r="en"===i?`/project-grants/our-programs/${s}`:`/aides-aux-projets/nos-programmes/${s}`;break;case"page":return e;default:r="en"===i?`/en/${s}`:`/${s}`}return r}catch(t){return e}},"getAlternateLocale",0,f,"getFilterKeyFromLocalizedValue",0,function(e,t,i=n.actusEventsValidFilters){if(i&&i[t])return Object.keys(i[t]).find(n=>i[t][n]===e);let s=Object.entries(n.actusEventsValidFilters[t]).find(([t,i])=>i===e);return s?s[0]:null},"getLocaleFromString",0,g,"getLocalizedFilterValueFromKey",0,function(e,t,i=n.actusEventsValidFilters){return i&&i[t]?i[t][e]:n.actusEventsValidFilters[t][e]??null},"getLowerCaseLocale",0,function(e){return g(e).toLowerCase()},"getMenuLocations",0,function(e){return{superHeaderLocation:"SUPERHEADER",headerLocation:"PRIMARY",legalLocation:"LEGALE",footerLocation:"FOOTER",locale:(e?.locale||"fr").toUpperCase()}}],59658),e.s(["default",0,function({seo:e,locale:n}){let s=[(e?.metaRobotsNoindex??"index").toLowerCase(),(e?.metaRobotsNofollow??"follow").toLowerCase()].join(",");return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(i.default,{children:[e?.title&&(0,t.jsx)("title",{children:e?.title}),e?.canonical&&(0,t.jsx)("link",{rel:"canonical",href:e?.canonical}),e?.metaDesc&&(0,t.jsx)("meta",{name:"description",content:e?.metaDesc}),(0,t.jsx)("meta",{name:"robots",content:s}),n&&(0,t.jsx)("meta",{property:"og:locale",content:n}),n&&(0,t.jsx)("meta",{property:"og:locale:alternate",content:f(n)}),e?.ogType&&(0,t.jsx)("meta",{property:"og:type",content:e?.ogType}),e?.ogTitle&&(0,t.jsx)("meta",{property:"og:title",content:e?.ogTitle||e?.title}),e?.ogDescription&&(0,t.jsx)("meta",{property:"og:description",content:e?.ogDescription||e?.metaDesc}),e?.ogImage?.src&&(0,t.jsx)("meta",{property:"og:image",content:e?.ogImage?.src}),e?.ogImage?.type&&(0,t.jsx)("meta",{property:"og:image:type",content:e?.ogImage?.type}),e?.ogUrl&&(0,t.jsx)("meta",{property:"og:url",content:e?.ogUrl}),e?.ogSiteName&&(0,t.jsx)("meta",{property:"og:site_name",content:e?.ogSiteName}),e?.modifiedTime&&(0,t.jsx)("meta",{property:"article:modified_time",content:e?.modifiedTime}),e?.twitterTitle&&(0,t.jsx)("meta",{name:"twitter:title",content:e?.twitterTitle||e?.title}),e?.twitterDescription&&(0,t.jsx)("meta",{name:"twitter:description",content:e?.twitterDescription&&e?.twitterDescription!==""?e?.twitterDescription:e?.ogDescription}),e?.twitterImage&&(0,t.jsx)("meta",{name:"twitter:image",content:e?.twitterImage}),e?.schema&&(0,t.jsx)("script",{type:"application/ld+json",className:"yoast-schema-graph",children:e?.schema})]})})}],23580)},4143,e=>{"use strict";var t=e.i(91398),i=e.i(41158),n=e.i(20419),s=e.i(97170),r=e.i(49326),a=e.i(97873),o=e.i(3326),l=e.i(77051),u=e.i(34718),h=e.i(53182),c=e.i(74266),d=e.i(27104);e.s(["default",0,function({pageHasPreFooter:e=!1,layoutDatas:m}){let p=(0,o.useIntl)(),f=p.locale,{themeOptions:g,themeOptionsEN:y}=m??{},v=g?.footerOptions||{},x=y?.footerOptionsEn||{},b="en"===f?{support_title:x.support_title_en,support_links:x.support_links_en,horaire_title:x.horaire_title_en,horaires_description:x.horaires_description_en,share_title:x.share_title_en,share_links:x.share_links_en,copyright:x.copyright_en,legal_links:x.legal_links_en}:{support_title:v.support_title,support_links:v.support_links,horaire_title:v.horaire_title,horaires_description:v.horaires_description,share_title:v.share_title,share_links:v.share_links,copyright:v.copyright,legal_links:v.legal_links},w="en"===f?y?.preFooterOptionsEn:g?.preFooterOptions,{support_title:T,support_links:k,horaire_title:S,horaires_description:_,share_title:P,share_links:j,copyright:E,legal_links:M}=b,A=g?.general?.site_logo?.node?.mediaItemUrl||!1,C=l.default.sanitize(E,{ALLOWED_ATTR:["href","target","rel"]});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.default,{pageHasPreFooter:e,preFooterContent:w||{}}),(0,t.jsxs)("footer",{className:"footer",role:"contentinfo","aria-label":p.formatMessage({id:"footer.region"}),children:[(0,t.jsx)("div",{className:"main-footer",role:"region","aria-label":p.formatMessage({id:"footer.main.region"}),children:(0,t.jsxs)(n.default,{children:[A&&0!==A.trim().length&&(0,t.jsx)("div",{className:"logo",role:"region","aria-label":p.formatMessage({id:"footer.logo.region"}),children:(0,t.jsxs)(i.default,{href:"/","aria-label":`Spedidam : ${p.formatMessage({id:"globals.label.home"})}`,children:[(0,t.jsx)("span",{className:"sr-only",children:`Spedidam : ${p.formatMessage({id:"globals.label.home"})}`}),(0,t.jsx)(r.SecureReactSvg,{src:A,"aria-hidden":"true"})]})}),k&&0!==k.length?(0,t.jsxs)("div",{className:"footer-support",role:"region","aria-label":p.formatMessage({id:"footer.support.region"}),children:[T&&(0,t.jsx)("h3",{children:T}),(0,t.jsx)("ul",{className:"footer-support-links",children:k.map((e,n)=>{let r=e.support_link_url?.target==="_blank";return(0,t.jsx)("li",{children:(0,t.jsxs)(i.default,{href:e.support_link_url?.url||"#",target:e.support_link_url?.target||"_self",rel:"noopener noreferrer",className:"footer-link",onClick:()=>{(0,d.trackMenuClick)({menu_item:e.support_link_url?.title||"Supp
219ort Link",menu_section:"footer",menu_level:"principal",link_url:(0,c.resolveTrackingUrl)(e.support_link_url?.url||"#")})},"aria-label":`${e.support_link_url?.title||"Support Link"} ${r?p.formatMessage({id:"footer.link.external"}):""}`,children:[e.support_link_url?.title||"Support Link",(0,t.jsx)(a.ReactSVG,{src:s.ICONS.CHEVRON_RIGHT,"aria-hidden":"true"})]})},n)})})]}):null,_?(0,t.jsxs)("div",{className:"footer-hours",role:"region","aria-label":p.formatMessage({id:"footer.hours.region"}),children:[S&&(0,t.jsx)("h3",{children:S}),(0,u.getHtmlAsElement)(_,{},["hours-content"])]}):null,j&&0!==j.length?(0,t.jsxs)("div",{className:"footer-share",role:"region","aria-label":p.formatMessage({id:"footer.share.region"}),children:[P&&(0,t.jsx)("h3",{children:P}),(0,t.jsx)("div",{className:"share-content",children:j.map((e,n)=>{var s;let a,o=e.icon?.node?.mediaItemUrl||(s=e.title,(a={fb:"https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/facebook.svg",facebook:"https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/facebook.svg",x:"https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/x.svg",twitter:"https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/x.svg",linkedin:"https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/linkedin.svg",yt:"https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/youtube.svg",youtube:"https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/youtube.svg",instagram:"https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/instagram.svg",ig:"https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/instagram.svg"})[s.toLowerCase()]||a.x),l=e.link?.target==="_blank";return(0,t.jsx)(i.default,{href:e.link?.url||"#",target:e.link?.target||"_self",rel:"noopener noreferrer",className:"footer-link",onClick:()=>{(0,d.trackMenuClick)({menu_item:e.title||e.link?.title||"Share Link",menu_section:"footer",menu_level:"principal",link_url:(0,c.resolveTrackingUrl)(e.link?.url||"#")})},"aria-label":`${e.title} ${l?p.formatMessage({id:"footer.link.external"}):""}`,title:e.title,children:(0,t.jsx)(r.SecureReactSvg,{src:o,className:"footer-icon"})},n)})})]}):null]})}),(0,t.jsx)("div",{className:"footer-bottom",role:"region","aria-label":p.formatMessage({id:"footer.bottom.region"}),children:(0,t.jsx)(n.default,{children:(0,t.jsxs)("div",{className:"footer-bottom-content",children:[(0,t.jsx)("div",{className:"copyright",dangerouslySetInnerHTML:{__html:C}}),M&&0!==M.length?(0,t.jsx)("ul",{className:"footer-legal-links",role:"list","aria-label":p.formatMessage({id:"footer.legal.region"}),children:M.map((e,n)=>{let s=e.legal_url?.target==="_blank";return(0,t.jsxs)("li",{className:"list-item",children:[(0,t.jsx)("span",{className:"bulle",children:"•"}),(0,t.jsx)(i.default,{href:e.legal_url?.url||"#",target:e.legal_url?.target||"_self",rel:"noopener noreferrer",className:"label",onClick:()=>{(0,d.trackMenuClick)({menu_item:e.legal_url?.title||"Legal Link",menu_section:"footer",menu_level:"principal",link_url:(0,c.resolveTrackingUrl)(e.legal_url?.url||"#")})},"aria-label":`${e.legal_url?.title} ${s?p.formatMessage({id:"footer.link.external"}):""}`,children:e.legal_url?.title})]},n)})}):null]})})})]})]})}])},53182,e=>{"use strict";var t=e.i(91398),i=e.i(91788),n=e.i(43705),s=e.i(22073),r=e.i(34718),a=e.i(61696),o=e.i(3326);let l=e.r(77051);e.s(["default",0,({pageHasPreFooter:e=!0,preFooterContent:u})=>{let h=(0,o.useIntl)(),c=h.locale,[d,m]=(0,i.useState)(!1);(0,i.useEffect)(()=>{m(!0)},[]);let{pre_footer_title:p,pre_footer_description:f,pre_footer_link:g,pre_footer_enabled:y}="en"===c?{pre_footer_title:u?.pre_footer_title_en,pre_footer_description:u?.pre_footer_description_en,pre_footer_link:u?.pre_footer_link_en,pre_footer_enabled:u?.pre_footer_enabled_en}:{pre_footer_title:u?.pre_footer_title,pre_footer_description:u?.pre_footer_description,pre_footer_link:u?.pre_footer_link,pre_footer_enabled:u?.pre_footer_enabled};return d?e&&y&&(0,t.jsxs)("div",{className:`${s.default["pre-footer"]} pre-footer`,role:"region","aria-label":h.formatMessage({id:"prefooter.region"}),children:[(0,t.jsx)("div",{className:`${s.default["pre-footer-content"]} pre-footer-content`,role:"region","aria-label":h.formatMessage({id:"prefooter.content.region"}),children:(0,t.jsxs)("div",{className:`${s.default["pre-footer-text"]} pre-footer-text`,children:[(0,t.jsx)("h2",{dangerouslySetInnerHTML:{__html:l.sanitize(a.decode(p||""))}}),(0,r.getHtmlAsElement)(f,s.default,["pre-footer-description"]),g?.url&&(0,t.jsx)("div",{className:`${s.default["pre-footer-btn"]} pre-footer-btn`,children:(0,t.jsx)(n.default,{title:g?.title,type:"primary",href:g?.url,target:g?.target,style:"filled",color:"red",secondaryColor:"white"})})]})}),(0,t.jsx)("div",{className:`${s.default["pre-footer-deco"]} pre-footer-deco`,"aria-hidden":"true"})]}):null}])},74075,44190,e=>{"use strict";let t,i,n;var s,r,a,o=e.i(91398),l=e.i(91788),u=e.i(52007),h=e.i(20419),c=e.i(43705),d=e.i(91980),m=e.i(97170),p=e.i(82795),f=e.i(49326),g=e.i(240),y=e.i(74266),v=e.i(27104),x=e.i(82608),b=e.i(81312);let w=({childItems:e,menuSection:t="navigation",menuLevel:i="dropdown"})=>{let{setOpen:n}=l.default.useContext(x.DropdownContext)||{};return e&&e.length&&(0,o.jsx)("ul",{className:`${b.default["menu-list-items"]} menu-list-items`,children:e.map(e=>{let{label:s,path:r,icon:a}=e,l=(0,g.getLinkAttributes)(r||"#"),u=(0,g.isExternalLink)(r||"#");return(0,o.jsx)("li",{className:`${b.default["menu-item"]} menu-item ${u?b.default["external-link"]:""}`,children:(0,o.jsxs)("a",{href:r||"#",onClick:()=>{(0,v.trackMenuClick)({menu_item:s,menu_section:t,menu_level:i,link_url:(0,y.resolveTrackingUrl)(r||"#")}),n&&n(!1)},className:`${a?b.default["has-icon"]:""} ${a?"has-icon":""}`,target:l.target,rel:l.rel,...u&&{"aria-label":`${s} (s'ouvre dans un nouvel onglet)`},children:[a&&(0,o.jsx)(f.SecureReactSvg,{src:a,className:b.default.icon,"aria-hidden":"true"}),(0,o.jsx)("span",{className:"label",children:s}),u&&(0,o.jsx)("span",{className:`${b.default["external-icon"]} external-icon`,"aria-hidden":"true",children:"↗"})]})},e.id)})})};var T=e.i(10800),k=e.i(11081),S=e.i(3326),_=e.i(88021);function P(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function j(e){let t=[{},{}];
219return e?.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function E(e,t,i,n){if("function"==typeof t){let[s,r]=j(n);t=t(void 0!==i?i:e.custom,s,r)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[s,r]=j(n);t=t(void 0!==i?i:e.custom,s,r)}return t}function M(e,t,i){let n=e.getProps();return E(n,t,void 0!==i?i:n.custom,e)}let A=e=>Array.isArray(e),C=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],L={};function R(e,t){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,a=C.reduce((e,i)=>(e[i]=function(e,t){let i=new Set,n=new Set,s=!1,r=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){a.has(t)&&(h.schedule(t),e()),l++,t(o)}let h={schedule:(e,t=!1,r=!1)=>{let o=r&&s?i:n;return t&&a.add(e),o.has(e)||o.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,s){r=!0;return}s=!0,[i,n]=[n,i],i.forEach(u),t,l=0,i.clear(),s=!1,r&&(r=!1,h.process(e))}};return h}(r,t?i:void 0),e),{}),{setup:o,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:m,postRender:p}=a,f=()=>{let r=L.useManualTiming?s.timestamp:performance.now();i=!1,L.useManualTiming||(s.delta=n?1e3/60:Math.max(Math.min(r-s.timestamp,40),1)),s.timestamp=r,s.isProcessing=!0,o.process(s),l.process(s),u.process(s),h.process(s),c.process(s),d.process(s),m.process(s),p.process(s),s.isProcessing=!1,i&&t&&(n=!1,e(f))};return{schedule:C.reduce((t,r)=>{let o=a[r];return t[r]=(t,r=!1,a=!1)=>(!i&&(i=!0,n=!0,s.isProcessing||e(f)),o.schedule(t,r,a)),t},{}),cancel:e=>{for(let t=0;t<C.length;t++)a[C[t]].cancel(e)},state:s,steps:a}}let V=e=>e,{schedule:D,cancel:F,state:N,steps:I}=R("u">typeof requestAnimationFrame?requestAnimationFrame:V,!0);function O(){t=void 0}let $={now:()=>(void 0===t&&$.set(N.isProcessing||L.useManualTiming?N.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(O)}};function B(e,t){-1===e.indexOf(t)&&e.push(t)}function U(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}class W{constructor(){this.subscriptions=[]}add(e){return B(this.subscriptions,e),()=>U(this.subscriptions,e)}notify(e,t,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,i);else for(let s=0;s<n;s++){let n=this.subscriptions[s];n&&n(e,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class H{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let i=$.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty();t&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=$.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new W);let i=this.events[e].add(t);return"change"===e?()=>{i(),D.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return n&&n.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=$.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function q(e,t){return new H(e,t)}let z=e=>!!(e&&e.getVelocity);function K(e,t){let i=e.getValue("willChange");if(z(i)&&i.add)return i.add(t);if(!i&&L.WillChange){let i=new L.WillChange("auto");
219e.addValue("willChange",i),i.add(t)}}let Y=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),X="data-"+Y("framerAppearId"),G=e=>null!==e,Z=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],J=new Set(Z),Q={type:"spring",stiffness:500,damping:25,restSpeed:10},ee={type:"keyframes",duration:.8},et={type:"keyframes",ease:[.25,.1,.35,1],duration:.3};function ei(e,t){return e?.[t]??e?.default??e}let en=e=>1e3*e,es={layout:0,mainThread:0,waapi:0},er=e=>t=>"string"==typeof t&&t.startsWith(e),ea=er("--"),eo=er("var(--"),el=e=>!!eo(e)&&eu.test(e.split("/*")[0].trim()),eu=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,eh=(e,t,i)=>i>t?t:i<e?e:i,ec={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ed={...ec,transform:e=>eh(0,1,e)},em={...ec,default:1},ep=e=>Math.round(1e5*e)/1e5,ef=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,eg=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ey=(e,t)=>i=>!!("string"==typeof i&&eg.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),ev=(e,t,i)=>n=>{if("string"!=typeof n)return n;let[s,r,a,o]=n.match(ef);return{[e]:parseFloat(s),[t]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},ex={...ec,transform:e=>Math.round(eh(0,255,e))},eb={test:ey("rgb","red"),parse:ev("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:n=1})=>"rgba("+ex.transform(e)+", "+ex.transform(t)+", "+ex.transform(i)+", "+ep(ed.transform(n))+")"},ew={test:ey("#"),parse:function(e){let t="",i="",n="",s="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),n=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),n=e.substring(3,4),s=e.substring(4,5),t+=t,i+=i,n+=n,s+=s),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:eb.transform},eT=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ek=eT("deg"),eS=eT("%"),e_=eT("px"),eP=eT("vh"),ej=eT("vw"),eE={...eS,parse:e=>eS.parse(e)/100,transform:e=>eS.transform(100*e)},eM={test:ey("hsl","hue"),parse:ev("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:n=1})=>"hsla("+Math.round(e)+", "+eS.transform(ep(t))+", "+eS.transform(ep(i))+", "+ep(ed.transform(n))+")"},eA={test:e=>eb.test(e)||ew.test(e)||eM.test(e),parse:e=>eb.test(e)?eb.parse(e):eM.test(e)?eM.parse(e):ew.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?eb.transform(e):eM.transform(e),getAnimatableNone:e=>{let t=eA.parse(e);return t.alpha=0,eA.transform(t)}},eC=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,eL="number",eR="color",eV=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function eD(e){let t=e.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,a=t.replace(eV,e=>(eA.test(e)?(n.color.push(r),s.push(eR),i.push(eA.parse(e))):e.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(e)):(n.number.push(r),s.push(eL),i.push(parseFloat(e))),++r,"${}")).split("${}");return{values:i,split:a,indexes:n,types:s}}function eF(e){return eD(e).values}function eN(e){let{split:t,types:i}=eD(e),n=t.length;return e=>{let s="";for(let r=0;r<n;r++)if(s+=t[r],void 0!==e[r]){let t=i[r];t===eL?s+=ep(e[r]):t===eR?s+=eA.transform(e[r]):s+=e[r]}return s}}let eI=e=>"number"==typeof e?0:eA.test(e)?eA.getAnimatableNone(e):e,eO={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(ef)?.length||0)+(e.match(eC)?.length||0)>0},parse:eF,createTransformer:eN,getAnimatableNone:function(e){let t=eF(e);return eN(e)(t.map(eI))}};function e$(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function eB(e,t){return i=>i>0?t:e}let eU=(e,t,i)=>e+(t-e)*i,eW=()=>{},eH=()=>{},eq=(e,t,i)=>{let n=e*e,s=i*(t*t-n)+n;return s<0?0:Math.sqrt(s)},ez=[ew,eb,eM];function eK(e){let t=ez.find(t=>t.test(e));if(eW(`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let i=t.parse(e);return t===eM&&(i=function({hue:e,saturation:t,lightness:i,alpha:n}){e/=360,i/=100;let s=0,r=0,a=0;if(t/=100){let n=i<.5?i*(1+t):i+t-i*t,o=2*i-n;s=e$(o,n,e+1/3),r=e$(o,n,e),a=e$(o,n,e-1/3)}else s=r=a=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*a),alpha:n}}(i)),i}let eY=(e,t)=>
219{let i=eK(e),n=eK(t);if(!i||!n)return eB(e,t);let s={...i};return e=>(s.red=eq(i.red,n.red,e),s.green=eq(i.green,n.green,e),s.blue=eq(i.blue,n.blue,e),s.alpha=eU(i.alpha,n.alpha,e),eb.transform(s))},eX=new Set(["none","hidden"]),eG=(e,t)=>i=>t(e(i)),eZ=(...e)=>e.reduce(eG);function eJ(e,t){return i=>eU(e,t,i)}function eQ(e){return"number"==typeof e?eJ:"string"==typeof e?el(e)?eB:eA.test(e)?eY:e2:Array.isArray(e)?e0:"object"==typeof e?eA.test(e)?eY:e1:eB}function e0(e,t){let i=[...e],n=i.length,s=e.map((e,i)=>eQ(e)(e,t[i]));return e=>{for(let t=0;t<n;t++)i[t]=s[t](e);return i}}function e1(e,t){let i={...e,...t},n={};for(let s in i)void 0!==e[s]&&void 0!==t[s]&&(n[s]=eQ(e[s])(e[s],t[s]));return e=>{for(let t in n)i[t]=n[t](e);return i}}let e2=(e,t)=>{let i=eO.createTransformer(t),n=eD(e),s=eD(t);if(!(n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length))return eW(`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.`),eB(e,t);if(eX.has(e)&&!s.values.length||eX.has(t)&&!n.values.length)return eX.has(e)?i=>i<=0?e:t:i=>i>=1?t:e;return eZ(e0(function(e,t){let i=[],n={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){let r=t.types[s],a=e.indexes[r][n[r]],o=e.values[a]??0;i[s]=o,n[r]++}return i}(n,s),s.values),i)};function e3(e,t,i){return"number"==typeof e&&"number"==typeof t&&"number"==typeof i?eU(e,t,i):eQ(e)(e,t)}let e9=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>D.update(t,e),stop:()=>F(t),now:()=>N.isProcessing?N.timestamp:$.now()}},e5=(e,t,i=10)=>{let n="",s=Math.max(Math.round(t/i),2);for(let t=0;t<s;t++)n+=Math.round(1e4*e(t/(s-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function e8(e){let t=0,i=e.next(t);for(;!i.done&&t<2e4;)t+=50,i=e.next(t);return t>=2e4?1/0:t}function e7(e,t,i){var n,s;let r=Math.max(t-5,0);return n=i-e(r),(s=t-r)?1e3/s*n:0}let e4=.01,e6=2,te=.005,tt=.5;function ti(e,t){return e*Math.sqrt(1-t*t)}let tn=["duration","bounce"],ts=["stiffness","damping","mass"];function tr(e,t){return t.some(t=>void 0!==e[t])}function ta(e=.3,t=.3){let i,n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:s,restDelta:r}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:h,mass:c,duration:d,velocity:m,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!tr(e,ts)&&tr(e,tn))if(e.visualDuration){let i=2*Math.PI/(1.2*e.visualDuration),n=i*i,s=2*eh(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:1,stiffness:n,damping:s}}else{let i=function({duration:e=800,bounce:t=.3,velocity:i=0,mass:n=1}){let s,r;eW(en(10));let a=1-t;a=eh(.05,1,a),e=eh(.01,10,e/1e3),a<1?(s=t=>{let n=t*a,s=n*e;return .001-(n-i)/ti(t,a)*Math.exp(-s)},r=t=>{let n=t*a*e,r=Math.pow(a,2)*Math.pow(t,2)*e,o=Math.exp(-n),l=ti(Math.pow(t,2),a);return(n*i+i-r)*o*(-s(t)+.001>0?-1:1)/l}):(s=t=>-.001+Math.exp(-t*e)*((t-i)*e+1),r=t=>e*e*(i-t)*Math.exp(-t*e));let o=function(e,t,i){let n=i;for(let i=1;i<12;i++)n-=e(n)/t(n);return n}(s,r,5/e);if(e=en(e),isNaN(o))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(o,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...i,mass:1}).isResolvedFromDuration=!0}return t}({...n,velocity:-((n.velocity||0)/1e3)}),f=m||0,g=h/(2*Math.sqrt(u*c)),y=o-a,v=Math.sqrt(u/c)/1e3,x=5>Math.abs(y);if(s||(s=x?e4:e6),r||(r=x?te:tt),g<1){let e=ti(v,g);i=t=>o-Math.exp(-g*v*t)*((f+g*v*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}else if(1===g)i=e=>o-Math.exp(-v*e)*(y+(f+v*y)*e);else{let e=v*Math.sqrt(g*g-1);i=t=>{let i=Math.exp(-g*v*t),n=Math.min(e*t,300);return o-i*((f+g*v*y)*Math.sinh(n)+e*y*Math.cosh(n))/e}}let b={calculatedDuration:p&&d||null,next:e=>{let t=i(e);if(p)l.done=e>=d;else{let n=0===e?f:0;g<1&&(n=0===e?en(f):e7(i,e,t));let a=Math.abs(o-t)<=r;l.done=Math.abs(n)<=s&&a}return l.value=l.done?o:t,l},toString:()=>{let e=Math.min(e8(b),2e4),t=e5(t=>b.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return b}function to({keyframes:e,velocity:t=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:h}){let c,d,m=e[0],p={done:!1,value:m},f=i*t,g=m+f,y=void 0===a?g:a(g);y!==g&&(f=y-m);let v=e=>-f*Math.exp(-e/n),x=e=>y+v(e),b=e=>{let t=v(e),i=x(e);p.done=Math.abs(t)<=u,p.value=p.done?y:i},w=e=>{let t;if(t=p.value,void 0!==o&&t<o||void 0!==l&&t>l){var i;c=e,d=ta({keyframes:[p.value,(i=p.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:e7(x,e,p.value),damping:s,stiffness:r,restDelta:u,restSpeed:h})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(d||void 0!==c||(t=!0,b(e),w(e)),void 0!==c&&e>
219=c)?d.next(e-c):(t||b(e),p)}}}ta.applyToOptions=e=>{let t=function(e,t=100,i){let n=i({...e,keyframes:[0,t]}),s=Math.min(e8(n),2e4);return{type:"keyframes",ease:e=>n.next(s*e).value/t,duration:s/1e3}}(e,100,ta);return e.ease=t.ease,e.duration=en(t.duration),e.type="keyframes",e};let tl=(e,t,i)=>{let n=t-e;return 0===n?1:(i-e)/n},tu=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function th(e,t,i,n){return e===t&&i===n?V:s=>0===s||1===s?s:tu(function(e,t,i,n,s){let r,a,o=0;do(r=tu(a=t+(i-t)/2,n,s)-e)>0?i=a:t=a;while(Math.abs(r)>1e-7&&++o<12)return a}(s,0,1,e,i),t,n)}let tc=th(.42,0,1,1),td=th(0,0,.58,1),tm=th(.42,0,.58,1),tp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tf=e=>t=>1-e(1-t),tg=th(.33,1.53,.69,.99),ty=tf(tg),tv=tp(ty),tx=e=>(e*=2)<1?.5*ty(e):.5*(2-Math.pow(2,-10*(e-1))),tb=e=>1-Math.sin(Math.acos(e)),tw=tf(tb),tT=tp(tb),tk=e=>Array.isArray(e)&&"number"==typeof e[0],tS={linear:V,easeIn:tc,easeInOut:tm,easeOut:td,circIn:tb,circInOut:tT,circOut:tw,backIn:ty,backInOut:tv,backOut:tg,anticipate:tx},t_=e=>{if(tk(e)){eH(e.length);let[t,i,n,s]=e;return th(t,i,n,s)}return"string"==typeof e?(eH(tS[e],`Invalid easing type '${e}'`),tS[e]):e};function tP({duration:e=300,keyframes:t,times:i,ease:n="easeInOut"}){var s;let r,a=Array.isArray(n)&&"number"!=typeof n[0]?n.map(t_):t_(n),o={done:!1,value:t[0]},l=function(e,t,{clamp:i=!0,ease:n,mixer:s}={}){let r=e.length;if(eH(t.length),1===r)return()=>t[0];if(2===r&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=function(e,t,i){let n=[],s=i||L.mix||e3,r=e.length-1;for(let i=0;i<r;i++){let r=s(e[i],e[i+1]);t&&(r=eZ(Array.isArray(t)?t[i]||V:t,r)),n.push(r)}return n}(t,n,s),l=o.length,u=i=>{if(a&&i<e[0])return t[0];let n=0;if(l>1)for(;n<e.length-2&&!(i<e[n+1]);n++);let s=tl(e[n],e[n+1],i);return o[n](s)};return i?t=>u(eh(e[0],e[r-1],t)):u}((s=i&&i.length===t.length?i:(!function(e,t){let i=e[e.length-1];for(let n=1;n<=t;n++){let s=tl(0,t,n);e.push(eU(i,1,s))}}(r=[0],t.length-1),r),s.map(t=>t*e)),t,{ease:Array.isArray(a)?a:t.map(()=>a||tm).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=l(t),o.done=t>=e,o)}}let tj=e=>null!==e;function tE(e,{repeat:t,repeatType:i="loop"},n,s=1){let r=e.filter(tj),a=s<0||t&&"loop"!==i&&t%2==1?0:r.length-1;return a&&void 0!==n?n:r[a]}
219let tM={decay:to,inertia:to,tween:tP,keyframes:tP,spring:ta};function tA(e){"string"==typeof e.type&&(e.type=tM[e.type])}class tC{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let tL=e=>e/100;class tR extends tC{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==$.now()&&this.tick($.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},es.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;tA(e);let{type:t=tP,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=e,{keyframes:a}=e,o=t||tP;o!==tP&&"number"!=typeof a[0]&&(this.mixKeyframes=eZ(tL,e3(a[0],a[1])),a=[0,100]);let l=o({...e,keyframes:a});"mirror"===s&&(this.mirroredGenerator=o({...e,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=e8(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:i,totalDuration:n,mixKeyframes:s,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:h,repeatType:c,repeatDelay:d,type:m,onUpdate:p,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let v=this.currentTime,x=i;if(h){let e=Math.min(this.currentTime,n)/a,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,h+1))%2&&("reverse"===c?(i=1-i,d&&(i-=d/a)):"mirror"===c&&(x=r)),v=eh(0,1,i)*a}let b=y?{done:!1,value:u[0]}:x.next(v);s&&(b.value=s(b.value));let{done:w}=b;y||null===o||(w=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return T&&m!==to&&(b.value=tE(u,this.options,f,this.speed)),p&&p(b.value),T&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get time(){return this.currentTime/1e3}set time(e){e=en(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime($.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=e9,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=t??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime($.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,es.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let tV=e=>180*e/Math.PI,tD=e=>tN(tV(Math.atan2(e[1],e[0]))),tF={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:tD,rotateZ:tD,skewX:e=>tV(Math.atan(e[1])),skewY:e=>tV(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},tN=e=>((e%=360)<0&&(e+=360),e),tI=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),tO=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),t$={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tI,scaleY:tO,scale:e=>(tI(e)+tO(e))/2,rotateX:e=>tN(tV(Math.atan2(e[6],e[5]))),rotateY:e=>tN(tV(Math.atan2(-e[2],e[0]))),rotateZ:tD,rotate:tD,skewX:e=>tV(Math.atan(e[4])),skewY:e=>tV(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function tB(e){return+!!e.includes("scale")}function tU(e,t){let i,n;if(!e||"none"===e)return tB(t);let s=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=t$,n=s;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tF,n=t}if(!n)return tB(t);let r=i[t],a=n[1].split(",").map(tW);return"function"==typeof r?r(a):a[r]}function tW(e){return parseFloat(e.trim())}let tH=e=>e===ec||e===e_,tq=new Set(["x","y","z"]),tz=Z.filter(e=>!tq.has(e)),tK={width:({x:e},{paddingLeft:t="0",paddingRight:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),height:({y:e},{paddingTop:t="0",paddingBottom:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),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:(e,{transform:t})=>tU(t,"x"),y:(e,{transform:t})=>tU(t,"y")};tK.translateX=tK.x,tK.translateY=tK.y;
219let tY=new Set,tX=!1,tG=!1,tZ=!1;function tJ(){if(tG){let e=Array.from(tY).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),i=new Map;t.forEach(e=>{let t,n=(t=[],tz.forEach(i=>{let n=e.getValue(i);void 0!==n&&(t.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),t);n.length&&(i.set(e,n),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=i.get(e);t&&t.forEach(([t,i])=>{e.getValue(t)?.set(i)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}tG=!1,tX=!1,tY.forEach(e=>e.complete(tZ)),tY.clear()}function tQ(){tY.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tG=!0)})}class t0{constructor(e,t,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(tY.add(this),tX||(tX=!0,D.read(tQ),D.resolveKeyframes(tJ))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:i,motionValue:n}=this;if(null===e[0]){let s=n?.get(),r=e[e.length-1];if(void 0!==s)e[0]=s;else if(i&&t){let n=i.readValue(t,r);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=r),n&&void 0===s&&n.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),tY.delete(this)}cancel(){"scheduled"===this.state&&(tY.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}function t1(e){let t;return()=>(void 0===t&&(t=e()),t)}let t2=t1(()=>void 0!==window.ScrollTimeline),t3={},t9=(i=t1(()=>{try{document.createElement("div").animate({opacity:0}
219,{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),()=>t3.linearEasing??i()),t5=([e,t,i,n])=>`cubic-bezier(${e}, ${t}, ${i}, ${n})`,t8={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t5([0,.65,.55,1]),circOut:t5([.55,0,1,.45]),backIn:t5([.31,.01,.66,-.59]),backOut:t5([.33,1.53,.69,.99])};function t7(e){return"function"==typeof e&&"applyToOptions"in e}class t4 extends tC{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=e;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=e,eH(e.type);const l=function({type:e,...t}){return t7(e)&&t9()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u){let h={[t]:i};l&&(h.offset=l);let c=function e(t,i){if(t)return"function"==typeof t?t9()?e5(t,i):"ease-out":tk(t)?t5(t):Array.isArray(t)?t.map(t=>e(t,i)||t8.easeOut):t8[t]}(o,s);Array.isArray(c)&&(h.easing=c);let d={delay:n,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};u&&(d.pseudoElement=u);let m=e.animate(h,d);return m}(t,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let e=tE(n,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(e):i.startsWith("--")?t.style.setProperty(i,e):t.style[i]=e,this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){this.finishedTime=null,this.animation.currentTime=en(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&t2())?(this.animation.timeline=e,V):t(this)}}let t6={anticipate:tx,backInOut:tv,circInOut:tT};class ie extends t4{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in t6&&(e.ease=t6[e.ease])}(e),tA(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new tR({...r,autoplay:!1}),o=en(this.finishedTime??this.time);t.setWithVelocity(a.sample(o-10).value,a.sample(o).value,10),a.stop()}}let it=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eO.test(e)||"0"===e)&&!e.startsWith("url("));var ii=e.i(377);let is=new Set(["opacity","clipPath","filter","transform"]),ir=t1(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class ia extends tC{constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=$.now();const c={autoplay:e,delay:t,type:i,repeat:n,repeatDelay:s,repeatType:r,name:o,motionValue:l,element:u,...h},d=u?.KeyframeResolver||t0;this.keyframeResolver=new d(a,(e,t,i)=>this.onKeyframesResolved(e,t,c,!i),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,i,n){this.keyframeResolver=void 0;let{name:s,type:r,velocity:a,delay:o,isHandoff:l,onUpdate:u}=i;this.resolvedAt=$.now(),!function(e,t,i,n){let s=e[0];if(null===s)return!1;if("display"===t||"visibility"===t)return!0;let r=e[e.length-1],a=it(s,t),o=it(r,t);return eW(`You are trying to animate ${t} from "${s}" to "${r}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${r} via the \`style\` property.`),!!a&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}(e)||("spring"===i||t7(i))&&n)}(e,s,r,a)&&((L.instantAnimations||!o)&&u?.(tE(e,i,t)),e[0]=e[e.length-1],i.duration=0,i.repeat=0);let h={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...i,keyframes:e},c=!l&&function(e){let{motionValue:t,name:i,repeatDelay:n,repeatType:s,damping:r,type:a}=e;if(!(0,ii.isHTMLElement)(t?.owner?.current))return!1;
219let{onUpdate:o,transformTemplate:l}=t.owner.getProps();return ir()&&i&&is.has(i)&&("transform"!==i||!l)&&!o&&!n&&"mirror"!==s&&0!==r&&"inertia"!==a}(h)?new ie({...h,element:h.motionValue.owner.current}):new tR(h);c.finished.then(()=>this.notifyFinished()).catch(V),this.pendingTimeline&&(this.stopTimeline=c.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=c}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tZ=!0,tQ(),tJ(),tZ=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let io=(e,t,i,n={},s,r)=>a=>{let o=ei(n,e)||{},l=o.delay||n.delay||0,{elapsed:u=0}=n;u-=en(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:r?void 0:s};!function({when:e,delay:t,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:r,repeatType:a,repeatDelay:o,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(o)&&Object.assign(h,((e,{keyframes:t})=>t.length>2?ee:J.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Q:et)(e,h)),h.duration&&(h.duration=en(h.duration)),h.repeatDelay&&(h.repeatDelay=en(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0===h.delay&&(c=!0)),(L.instantAnimations||L.skipAnimations)&&(c=!0,h.duration=0,h.delay=0),h.allowFlatten=!o.type&&!o.ease,c&&!r&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:i="loop"}){let n=e.filter(G),s=t&&"loop"!==i&&t%2==1?0:n.length-1;return n[s]}(h.keyframes,o);if(void 0!==e)return void D.update(()=>{h.onUpdate(e),h.onComplete()})}return o.isSync?new tR(h):new ia(h)},il=new Set(["width","height","top","left","right","bottom",...Z]);function iu(e,t,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r=e.getDefaultTransition(),transitionEnd:a,...o}=t;n&&(r=n);let l=[],u=s&&e.animationState&&e.animationState.getState()[s];for(let t in o){let n=e.getValue(t,e.latestValues[t]??null),s=o[t];if(void 0===s||u&&function({protectedKeys:e,needsAnimating:t},i){let n=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,n}(u,t))continue;let a={delay:i,...ei(r||{},t)},h=n.get();if(void 0!==h&&!n.isAnimating&&!Array.isArray(s)&&s===h&&!a.velocity)continue;let c=!1;if(window.MotionHandoffAnimation){let i=e.props[X];if(i){let e=window.MotionHandoffAnimation(i,t,D);null!==e&&(a.startTime=e,c=!0)}}K(e,t),n.start(io(t,n,s,e.shouldReduceMotion&&il.has(t)?{type:!1}:a,e,c));let d=n.animation;d&&l.push(d)}return a&&Promise.all(l).then(()=>{D.update(()=>{a&&function(e,t){let{transitionEnd:i={},transition:n={},...s}=M(e,t)||{};for(let t in s={...s,...i}){var r;let i=A(r=s[t])?r[r.length-1]||0:r;e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,q(i))}}(e,a)})}),l}function ih(e,t,i={}){let n=M(e,t,"exit"===i.type?e.presenceContext?.custom:void 0),{transition:s=e.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all(iu(e,n,i)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=s;return function(e,t,i=0,n=0,s=1,r){let a=[],o=(e.variantChildren.size-1)*n,l=1===s?(e=0)=>e*n:(e=0)=>o-e*n;
219return Array.from(e.variantChildren).sort(ic).forEach((e,n)=>{e.notify("AnimationStart",t),a.push(ih(e,t,{...r,delay:i+l(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,r+n,a,o,i)}:()=>Promise.resolve(),{when:o}=s;if(!o)return Promise.all([r(),a(i.delay)]);{let[e,t]="beforeChildren"===o?[r,a]:[a,r];return e().then(()=>t())}}function ic(e,t){return e.sortNodePosition(t)}function id(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}function im(e){return"string"==typeof e||Array.isArray(e)}let ip=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ig=["initial",...ip],iy=ig.length,iv=[...ip].reverse(),ix=ip.length;function ib(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iw(){return{animate:ib(!0),whileInView:ib(),whileHover:ib(),whileTap:ib(),whileDrag:ib(),whileFocus:ib(),exit:ib()}}class iT{constructor(e){this.isMounted=!1,this.node=e}update(){}}let ik=0;function iS(e,t,i,n={passive:!0}){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i)}let i_=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function iP(e){return{point:{x:e.pageX,y:e.pageY}}}function ij(e,t,i,n){return iS(e,t,e=>i_(e)&&i(e,iP(e)),n)}function iE({top:e,left:t,right:i,bottom:n}){return{x:{min:t,max:i},y:{min:e,max:n}}}function iM(e){return e.max-e.min}function iA(e,t,i,n=.5){e.origin=n,e.originPoint=eU(t.min,t.max,e.origin),e.scale=iM(i)/iM(t),e.translate=eU(i.min,i.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function iC(e,t,i,n){iA(e.x,t.x,i.x,n?n.originX:void 0),iA(e.y,t.y,i.y,n?n.originY:void 0)}function iL(e,t,i){e.min=i.min+t.min,e.max=e.min+iM(t)}function iR(e,t,i){e.min=t.min-i.min,e.max=e.min+iM(t)}function iV(e,t,i){iR(e.x,t.x,i.x),iR(e.y,t.y,i.y)}let iD=()=>({translate:0,scale:1,origin:0,originPoint:0}),iF=()=>({x:iD(),y:iD()}),iN=()=>({min:0,max:0}),iI=()=>({x:iN(),y:iN()});function iO(e){return[e("x"),e("y")]}function i$(e){return void 0===e||1===e}function iB({scale:e,scaleX:t,scaleY:i}){return!i$(e)||!i$(t)||!i$(i)}function iU(e){return iB(e)||iW(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function iW(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function iH(e,t,i,n,s){return void 0!==s&&(e=n+s*(e-n)),n+i*(e-n)+t}function iq(e,t=0,i=1,n,s){e.min=iH(e.min,t,i,n,s),e.max=iH(e.max,t,i,n,s)}function iz(e,{x:t,y:i}){iq(e.x,t.translate,t.scale,t.originPoint),iq(e.y,i.translate,i.scale,i.originPoint)}function iK(e,t){e.min=e.min+t,e.max=e.max+t}function iY(e,t,i,n,s=.5){let r=eU(e.min,e.max,s);iq(e,t,i,r,n)}function iX(e,t){iY(e.x,t.x,t.scaleX,t.scale,t.originX),iY(e.y,t.y,t.scaleY,t.scale,t.originY)}function iG(e,t){return iE(function(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}let iZ=({current:e})=>e?e.ownerDocument.defaultView:null;function iJ(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let iQ=(e,t)=>Math.abs(e-t);class i0{constructor(e,t,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=i3(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(e=i.offset,t={x:0,y:0},Math.sqrt(iQ(e.x,t.x)**2+iQ(e.y,t.y)**2)>=3);if(!n&&!s)return;let{point:r}=i,{timestamp:a}=N;this.history.push({...r,timestamp:a});let{onStart:o,onMove:l}=this.handlers;n||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=i1(t,this.transformPagePoint),D.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=i3("pointercancel"===e.type?this.lastMoveEventInfo:i1(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,r),n&&n(e,r)},!i_(e))return;this.dragSnapToOrigin=s,this.handlers=t,this.transformPagePoint=i,this.contextWindow=n||window;const r=i1(iP(e),this.transformPagePoint),{point:a}=r,{timestamp:o}=N;this.history=[{...a,timestamp:o}];const{onSessionStart:l}=t;l&&l(e,i3(r,this.history)),this.removeListeners=eZ(ij(this.contextWindow,"pointermove",this.handlePointerMove),ij(this.contextWindow,"pointerup",this.handlePointerUp),ij(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),F(this.updatePoint)}}function i1(e,t){return t?{point:t(e.point)}:e}function i2(e,t){return{x:e.x-t.x,y:e.y-t.y}}function i3({point:e},t){return{point:e,delta:i2(e,i9(t)),offset:i2(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,i=null,n=i9(e);for(;t>=0&&(i=e[t],!(n.timestamp-i.timestamp>en(.1)));)t--;if(!i)return{x:0,y:0};let s=(n.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};let r={x:(n.x-i.x)/s,y:(n.y-i.y)/s}
219;return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(t)}}function i9(e){return e[e.length-1]}function i5(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function i8(e,t){let i=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,n]=[n,i]),{min:i,max:n}}function i7(e,t,i){return{min:i4(e,t),max:i4(e,i)}}function i4(e,t){return"number"==typeof e?e:e[t]||0}let i6={x:!1,y:!1},ne=new WeakMap;class nt{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=iI(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let n=e=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(iP(e).point)},s=(e,t)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(i6[e])return null;else return i6[e]=!0,()=>{i6[e]=!1};return i6.x||i6.y?null:(i6.x=i6.y=!0,()=>{i6.x=i6.y=!1})}(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iO(e=>{let t=this.getAxisMotionValue(e).get()||0;if(eS.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[e];n&&(t=iM(n)*(parseFloat(t)/100))}}this.originPoint[e]=t}),s&&D.postRender(()=>s(e,t)),K(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},r=(e,t)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(a),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),r&&r(e,t)},a=(e,t)=>this.stop(e,t),o=()=>iO(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new i0(e,{onSessionStart:n,onStart:s,onMove:r,onSessionEnd:a,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:iZ(this.visualElement)})}stop(e,t){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=t;this.startAnimation(n);let{onDragEnd:s}=this.getProps();s&&D.postRender(()=>s(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,i){let{drag:n}=this.getProps();if(!i||!ni(e,n,this.currentDirection))return;let s=this.getAxisMotionValue(e),r=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(r=function(e,{min:t,max:i},n){return void 0!==t&&e<t?e=n?eU(t,e,n.min):Math.max(e,t):void 0!==i&&e>i&&(e=n?eU(i,e,n.max):Math.min(e,i)),e}(r,this.constraints[e],this.elastic[e])),s.set(r)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;e&&iJ(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(e,{top:t,left:i,bottom:n,right:s}){return{x:i5(e.x,i,s),y:i5(e.y,t,n)}}(i.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:i7(e,"left","right"),y:i7(e,"top","bottom")}}(t),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&iO(e=>{var t,n;let s;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=i.layoutBox[e],n=this.constraints[e],s={},void 0!==n.min&&(s.min=n.min-t.min),void 0!==n.max&&(s.max=n.max-t.min),s))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!iJ(t))return!1;let n=t.current;eH();let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let r=function(e,t,i){let n=iG(e,i),{scroll:s}=t;return s&&(iK(n.x,s.offset.x),iK(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),a=(e=s.layout.layoutBox,{x:i8(e.x,r.x),y:i8(e.y,r.y)});if(i){let e=i(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=iE(e))}return a}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(iO(a=>{if(!ni(a,t,this.currentDirection))return;let l=o&&o[a]||{};r&&(l={min:0,max:0});let u={type:"inertia",velocity:i?e[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return K(this.visualElement,e),i.start(io(e,i,0,t,this.visualElement,!1))}stopAnimation(){iO(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){iO(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps();return i[t]||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){iO(t=>{let{drag:i}=this.getProps();if(!ni(t,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(t);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[t];s.set(e[t]-eU(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!iJ(t)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};iO(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var i,s;let r,a,o,l=t.get();n[e]=(i={min:l,max:l},s=this.constraints[e],r=.5,a=iM(i),(o=iM(s))>a?r=tl(s.min,s.max-a,i.min):a>o&&(r=tl(i.min,i.max-o,s.min)),eh(0,1,r))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),iO(t=>{if(!ni(t,e,null))return;let i=this.getAxisMotionValue(t),{min:s,max:r}=this.constraints[t];i.set(eU(s,r,n[t]))})}addListeners(){if(!this.visualElement.current)return;ne.set(this.visualElement,this);let e=ij(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:i=!0}=this.getProps();t&&i&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();iJ(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",t);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),D.read(t);let s=iS(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(iO(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),e(),n(),r&&r()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:a}}}function ni(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}let nn=e=>(t,i)=>{e&&D.postRender(()=>e(t,i))};var ns=l,nr=e.i(4175),na=e.i(81536);let no=(0,l.createContext)({}),nl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nu(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let nh={correct:(e,t)=>
219{if(!t.target)return e;if("string"==typeof e)if(!e_.test(e))return e;else e=parseFloat(e);let i=nu(e,t.target.x),n=nu(e,t.target.y);return`${i}% ${n}%`}},nc={},{schedule:nd}=R(queueMicrotask,!1);class nm extends ns.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=e;for(let e in nf)nc[e]=nf[e],ea(e)&&(nc[e].isCSSVariable=!0);s&&(t.group&&t.group.add(s),i&&i.register&&n&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),nl.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r&&(r.isPresent=s,n||e.layoutDependency!==t||void 0===t||e.isPresent!==s?r.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?r.promote():r.relegate()||D.postRender(()=>{let e=r.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),nd.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function np(e){let[t,i]=(0,nr.usePresence)(),n=(0,ns.useContext)(na.LayoutGroupContext);return(0,o.jsx)(nm,{...e,layoutGroup:n,switchLayoutGroup:(0,ns.useContext)(no),isPresent:t,safeToRemove:i})}let nf={borderRadius:{...nh,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nh,borderTopRightRadius:nh,borderBottomLeftRadius:nh,borderBottomRightRadius:nh,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let n=eO.parse(e);if(n.length>5)return e;let s=eO.createTransformer(e),r=+("number"!=typeof n[0]),a=i.x.scale*t.x,o=i.y.scale*t.y;n[0+r]/=a,n[1+r]/=o;let l=eU(a,o,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}},ng=(e,t)=>e.depth-t.depth;class ny{constructor(){this.children=[],this.isDirty=!1}add(e){B(this.children,e),this.isDirty=!0}remove(e){U(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ng),this.isDirty=!1,this.children.forEach(e)}}function nv(e){return z(e)?e.get():e}let nx=["TopLeft","TopRight","BottomLeft","BottomRight"],nb=nx.length,nw=e=>"string"==typeof e?parseFloat(e):e,nT=e=>"number"==typeof e||e_.test(e);function nk(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let nS=nP(0,.5,tw),n_=nP(.5,.95,V);function nP(e,t,i){return n=>n<e?0:n>t?1:i(tl(e,t,n))}function nj(e,t){e.min=t.min,e.max=t.max}function nE(e,t){nj(e.x,t.x),nj(e.y,t.y)}function nM(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nA(e,t,i,n,s){return e-=t,e=n+1/i*(e-n),void 0!==s&&(e=n+1/s*(e-n)),e}function nC(e,t,[i,n,s],r,a){!function(e,t=0,i=1,n=.5,s,r=e,a=e){if(eS.test(t)&&(t=parseFloat(t),t=eU(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=eU(r.min,r.max,n);e===r&&(o-=t),e.min=nA(e.min,t,i,o,s),e.max=nA(e.max,t,i,o,s)}(e,t[i],t[n],t[s],t.scale,r,a)}let nL=["x","scaleX","originX"],nR=["y","scaleY","originY"];function nV(e,t,i,n){nC(e.x,t,nL,i?i.x:void 0,n?n.x:void 0),nC(e.y,t,nR,i?i.y:void 0,n?n.y:void 0)}function nD(e){return 0===e.translate&&1===e.scale}function nF(e){return nD(e.x)&&nD(e.y)}function nN(e,t){return e.min===t.min&&e.max===t.max}function nI(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function nO(e,t){return nI(e.x,t.x)&&nI(e.y,t.y)}function n$(e){return iM(e.x)/iM(e.y)}function nB(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class nU{constructor(){this.members=[]}add(e){B(this.members,e),e.scheduleRender()}remove(e){if(U(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,i=this.members.findIndex(t=>e===t);if(0===i)return!1;for(let e=i;e>=0;e--){let i=this.members[e];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,t&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;!1===n&&i.hide()}}
219exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:i}=e;t.onExitComplete&&t.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var nW=e.i(33585);function nH(e){return(0,nW.isObject)(e)&&"ownerSVGElement"in e}let nq=["","X","Y","Z"],nz={visibility:"hidden"},nK=0;function nY(e,t,i,n){let{latestValues:s}=t;s[e]&&(i[e]=s[e],t.setStaticValue(e,0),n&&(n[e]=0))}function nX({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(e={},i=t?.()){this.id=nK++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(nJ),this.nodes.forEach(n5),this.nodes.forEach(n8),this.nodes.forEach(nQ)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new ny)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new W),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let i=this.eventHandlers.get(e);i&&i.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=nH(t)&&!(nH(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),e){let i,n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{let e,t;this.root.updateBlockedByResize=!0,i&&i(),e=$.now(),t=({timestamp:i})=>{let s=i-e;s>=250&&(F(t),n())},D.setup(t,!0),i=()=>F(t),nl.hasAnimatedSinceResize&&(nl.hasAnimatedSinceResize=!1,this.nodes.forEach(n9))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||si,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),l=!this.targetLayout||!nO(this.targetLayout,n),u=!t&&i;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...ei(r,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u)}else t||n9(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),F(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.forEac
219h(n7),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:i}=t.options;if(!i)return;let n=i.props[X];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",D,!(e||i))}let{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&e(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:i}=this.options;if(void 0===t&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(n1);return}this.isUpdating||this.nodes.forEach(n2),this.isUpdating=!1,this.nodes.forEach(n3),this.nodes.forEach(nG),this.nodes.forEach(nZ),this.clearAllSnapshots();let e=$.now();N.delta=eh(0,1e3/60,e-N.timestamp),N.timestamp=e,N.isProcessing=!0,I.update.process(N),I.preRender.process(N),I.render.process(N),N.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(n0),this.sharedNodes.forEach(n4)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,D.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){D.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||iM(this.snapshot.measuredBox.x)||iM(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=iI(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!s)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!nF(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;e&&this.instance&&(t||iU(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let i=this.measurePageBox(),n=this.removeElementScroll(i);return e&&(n=this.removeTransform(n)),sr((t=n).x),sr(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return iI();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(so))){let{scroll:e}=this.root;e&&(iK(t.x,e.offset.x),iK(t.y,e.offset.y))}return t}removeElementScroll(e){let t=iI();if(nE(t,e),this.scroll?.wasRoot)return t;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&nE(t,e),iK(t.x,s.offset.x),iK(t.y,s.offset.y))}return t}applyTransform(e,t=!1){let i=iI();nE(i,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&iX(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),iU(n.latestValues)&&iX(i,n.latestValues)}return iU(this.latestValues)&&iX(i,this.latestValues),i}removeTransform(e){let t=iI();nE(t,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];if(!i.instance||!iU(i.latestValues))continue;iB(i.latestValues)&&i.updateSnapshot();let n=iI();nE(n,i.measurePageBox()),nV(t,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return iU(this.latestValues)&&nV(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!==N.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
219isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==t;if(!(e||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(this.layout&&(n||s)){if(this.resolvedRelativeTargetAt=N.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iI(),this.relativeTargetOrigin=iI(),iV(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),nE(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=iI(),this.targetWithTransforms=iI()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var r,a,o;this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,o=this.relativeParent.target,iL(r.x,a.x,o.x),iL(r.y,a.y,o.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nE(this.target,this.layout.layoutBox),iz(this.target,this.targetDelta)):nE(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iI(),this.relativeTargetOrigin=iI(),iV(this.relativeTargetOrigin,this.target,e.target),nE(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}}getClosestProjectingParent(){if(!(!this.parent||iB(this.parent.latestValues)||iW(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===N.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;nE(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;!function(e,t,i,n=!1){let s,r,a=i.length;if(a){t.x=t.y=1;for(let o=0;o<a;o++){r=(s=i[o]).projectionDelta;let{visualElement:a}=s.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&iX(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),r&&(t.x*=r.x.scale,t.y*=r.y.scale,iz(e,r)),n&&iU(s.latestValues)&&iX(e,s.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=iI());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nM(this.prevProjectionDelta.x,this.projectionDelta.x),nM(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iC(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&nB(this.projectionDelta.x,this.prevProjectionDelta.x)&&nB(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=iF(),this.projectionDelta=iF(),this.projectionDeltaWithTransform=iF()}setAnimationOrigin(e,t=!1){let i,n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},a=iF();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=iI(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&
219!0===this.options.crossfade&&!this.path.some(st));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(n6(a.x,e.x,n),n6(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,m,p,f,g;iV(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,f=o,g=n,se(m.x,p.x,f.x,g),se(m.y,p.y,f.y,g),i&&(u=this.relativeTarget,d=i,nN(u.x,d.x)&&nN(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=iI()),nE(i,this.relativeTarget)}l&&(this.animationValues=r,function(e,t,i,n,s,r){s?(e.opacity=eU(0,i.opacity??1,nS(n)),e.opacityExit=eU(t.opacity??1,0,n_(n))):r&&(e.opacity=eU(t.opacity??1,i.opacity??1,n));for(let s=0;s<nb;s++){let r=`border${nx[s]}Radius`,a=nk(t,r),o=nk(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||nT(a)===nT(o)?(e[r]=Math.max(eU(nw(a),nw(o),n),0),(eS.test(o)||eS.test(a))&&(e[r]+="%")):e[r]=o)}(t.rotate||i.rotate)&&(e.rotate=eU(t.rotate||0,i.rotate||0,n))}(r,s,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(F(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=D.update(()=>{var t,i,n;let s;nl.hasAnimatedSinceResize=!0,es.layout++,this.motionValue||(this.motionValue=q(0)),this.currentAnimation=(t=this.motionValue,i=[0,1e3],n={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{es.layout--},onComplete:()=>{es.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}},(s=z(t)?t:q(t)).start(io("",s,i,n)),s.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:i,layout:n,latestValues:s}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&sa(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||iI();let t=iM(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=iM(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}nE(t,i),iX(t,s),iC(this.projectionDeltaWithTransform,this.layoutCorrected,t,s)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nU),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let n={};i.z&&nY("z",e,n,this.animationValues);for(let t=0;t<nq.length;t++)nY(`rotate${nq[t]}`,e,n,this.animationValues),nY(`skew${nq[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}getProjectionStyles(e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return nz;let t={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.opacity="",t.pointerEvents=nv(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none",t;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=nv(e?.pointerEvents)||""),this.hasProjected&&!iU(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}let s=n.animationValues||n.latestValues;this.applyTransformsToTarget(),t.transform=function(e,t,i){let n="",s=e.x.translate/t.x,r=e.y.translate/t.y,a=i?.z||0;if((s||r||a)&&(n=`translate3d(${s}px, ${r}px, ${a}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),i){let{transformPerspective:e,rotate:t,rotateX:s,rotateY:r,skewX:a,skewY:o}=i;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),s&&(n+=`rotateX(${s}deg) `),r&&(n+=`rotateY(${r}deg) `),a&&(n+=`skewX(${a}deg) `),o&&(n+=`skewY(${o}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),i&&(t.transform=i(s,t.transform));let{x:r,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*r.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,nc){if(void 0===s[e])continue;let{correct:i,applyTo:r,isCSSVariable:a}=nc[e],o="none"===t.transform?s[e]:i(s[e],n);if(r){let e=r.length;for(let i=0;i<e;i++)t[r[i]]=o}
219else a?this.options.visualElement.renderState.vars[e]=o:t[e]=o}return this.options.layoutId&&(t.pointerEvents=n===this?nv(e?.pointerEvents)||"":"none"),t}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(n1),this.root.sharedNodes.clear()}}}function nG(e){e.updateLayout()}function nZ(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=e.layout,{animationType:s}=e.options,r=t.source!==e.layout.source;"size"===s?iO(e=>{let n=r?t.measuredBox[e]:t.layoutBox[e],s=iM(n);n.min=i[e].min,n.max=n.min+s}):sa(s,t.layoutBox,i)&&iO(n=>{let s=r?t.measuredBox[n]:t.layoutBox[n],a=iM(i[n]);s.max=s.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)});let a=iF();iC(a,i,t.layoutBox);let o=iF();r?iC(o,e.applyTransform(n,!0),t.measuredBox):iC(o,i,t.layoutBox);let l=!nF(a),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let a=iI();iV(a,t.layoutBox,s.layoutBox);let o=iI();iV(o,i,r.layoutBox),nO(a,o)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=o,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function nJ(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function nQ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function n0(e){e.clearSnapshot()}function n1(e){e.clearMeasurements()}function n2(e){e.isLayoutDirty=!1}function n3(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function n9(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function n5(e){e.resolveTargetDelta()}function n8(e){e.calcProjection()}function n7(e){e.resetSkewAndRotation()}function n4(e){e.removeLeadSnapshot()}function n6(e,t,i){e.translate=eU(t.translate,0,i),e.scale=eU(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function se(e,t,i,n){e.min=eU(t.min,i.min,n),e.max=eU(t.max,i.max,n)}function st(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let si={duration:.45,ease:[.4,0,.1,1]},sn=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ss=sn("applewebkit/")&&!sn("chrome/")?Math.round:V;function sr(e){e.min=ss(e.min),e.max=ss(e.max)}function sa(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(n$(t)-n$(i)))}function so(e){return e!==e.root&&e.scroll?.wasRoot}let sl=nX({attachResizeListener:(e,t)=>iS(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),su={current:void 0},sh=nX({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!su.current){let e=new sl({});e.mount(window),e.setOptions({layoutScroll:!0}),su.current=e}return su.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function sc(e,t){let i=function(e){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document,i=(void 0)??t.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}(e),n=new AbortController;return[i,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function sd(e){return!("touch"===e.pointerType||i6.x||i6.y)}function sm(e,t,i){let{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&D.postRender(()=>s(t,iP(t)))}let sp=(e,t)=>!!t&&(e===t||sp(e,t.parentElement)),sf=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),sg=new WeakSet;function sy(e){return t=>{"Enter"===t.key&&e(t)}}function sv(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function sx(e){return i_(e)&&!(i6.x||i6.y)}
219function sb(e,t,i){let{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&D.postRender(()=>s(t,iP(t)))}let sw=new WeakMap,sT=new WeakMap,sk=e=>{let t=sw.get(e.target);t&&t(e)},sS=e=>{e.forEach(sk)},s_={some:0,all:1},sP=(0,l.createContext)({strict:!1});var sj=e.i(29301);let sE=(0,l.createContext)({});function sM(e){return P(e.animate)||ig.some(t=>im(e[t]))}function sA(e){return!!(sM(e)||e.variants)}function sC(e){return Array.isArray(e)?e.join(" "):e}var sL=e.i(94854);let sR={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"]},sV={};for(let e in sR)sV[e]={isEnabled:t=>sR[e].some(e=>!!t[e])};let sD=Symbol.for("motionComponentSymbol");var sF=e.i(77416),sN=e.i(79297);function sI(e,{layout:t,layoutId:i}){return J.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!nc[e]||"opacity"===e)}let sO=(e,t)=>t&&"number"==typeof e?t.transform(e):e,s$={...ec,transform:Math.round},sB={borderWidth:e_,borderTopWidth:e_,borderRightWidth:e_,borderBottomWidth:e_,borderLeftWidth:e_,borderRadius:e_,radius:e_,borderTopLeftRadius:e_,borderTopRightRadius:e_,borderBottomRightRadius:e_,borderBottomLeftRadius:e_,width:e_,maxWidth:e_,height:e_,maxHeight:e_,top:e_,right:e_,bottom:e_,left:e_,padding:e_,paddingTop:e_,paddingRight:e_,paddingBottom:e_,paddingLeft:e_,margin:e_,marginTop:e_,marginRight:e_,marginBottom:e_,marginLeft:e_,backgroundPositionX:e_,backgroundPositionY:e_,rotate:ek,rotateX:ek,rotateY:ek,rotateZ:ek,scale:em,scaleX:em,scaleY:em,scaleZ:em,skew:ek,skewX:ek,skewY:ek,distance:e_,translateX:e_,translateY:e_,translateZ:e_,x:e_,y:e_,z:e_,perspective:e_,transformPerspective:e_,opacity:ed,originX:eE,originY:eE,originZ:e_,zIndex:s$,fillOpacity:ed,strokeOpacity:ed,numOctaves:s$},sU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sW=Z.length;function sH(e,t,i){let{style:n,vars:s,transformOrigin:r}=e,a=!1,o=!1;for(let e in t){let i=t[e];if(J.has(e)){a=!0;continue}if(ea(e)){s[e]=i;continue}{let t=sO(i,sB[e]);e.startsWith("origin")?(o=!0,r[e]=t):n[e]=t}}if(!t.transform&&(a||i?n.transform=function(e,t,i){let n="",s=!0;for(let r=0;r<sW;r++){let a=Z[r],o=e[a];if(void 0===o)continue;let l=!0;if(!(l="number"==typeof o?o===+!!a.startsWith("scale"):0===parseFloat(o))||i){let e=sO(o,sB[a]);if(!l){s=!1;let t=sU[a]||a;n+=`${t}(${e}) `}i&&(t[a]=e)}}return n=n.trim(),i?n=i(t,s?"":n):s&&(n="none"),n}(t,e.transform,i):n.transform&&(n.transform="none")),o){let{originX:e="50%",originY:t="50%",originZ:i=0}=r;n.transformOrigin=`${e} ${t} ${i}`}}let sq=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function sz(e,t,i){for(let n in t)z(t[n])||sI(n,i)||(e[n]=t[n])}let sK={offset:"stroke-dashoffset",array:"stroke-dasharray"},sY={offset:"strokeDashoffset",array:"strokeDasharray"};function sX(e,{attrX:t,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:a=0,...o},l,u,h){if(sH(e,o,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:c,style:d}=e;c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox),void 0!==t&&(c.x=t),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==s&&function(e,t,i=1,n=0,s=!0){e.pathLength=1;let r=s?sK:sY;e[r.offset]=e_.transform(-n);let a=e_.transform(t),o=e_.transform(i);e[r.array]=`${a} ${o}`}(c,s,r,a,!1)}let sG=()=>({...sq(),attrs:{}}),sZ=e=>"string"==typeof e&&"svg"===e.toLowerCase(),sJ=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function sQ(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||sJ.has(e)}let s0=e=>!sQ(e);try{s=e.r(87897).default,"function"==typeof s&&(s0=e=>e.startsWith("on")?!sQ(e):s(e))}catch{}let s1=["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 s2(e){if("string"!=typeof e||e.includes("-"));else if(s1.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var s3=e.i(98015);let s9=e=>(t,i)=>{let n=(0,l.useContext)(sE),s=(0,l.useContext)(sF.PresenceContext),r=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},i,n,s){return{latestValues:function(e,t,i,n){let s={},r=n(e,{});for(let e in r)s[e]=nv(r[e]);let{initial:a,animate:o}=e,l=sM(e),u=sA(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===o&&(o=t.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===a)?o:a;if(c&&"boolean"!=typeof c&&!P(c)){let t=Array.isArray(c)?c:[c];for(let i=0;i<t.length;i++){let n=E(e,t[i]);if(n){let{transitionEnd:e,transition:t,...i}=n;for(let e in i){let t=i[e];if(Array.isArray(t)){let e=h?t.length-1:0;t=t[e]}null!==t&&(s[e]=t)}for(let t in e)s[t]=e[t]}}}return s}(i,n,s,e),renderState:t()}})(e,t,n,s);return i?r():(0,s3.useConstant)(r)};function s5(e,t,i){let{style:n}=e,s={};
219for(let r in n)(z(n[r])||t.style&&z(t.style[r])||sI(r,e)||i?.getValue(r)?.liveStyle!==void 0)&&(s[r]=n[r]);return s}let s8={useVisualState:s9({scrapeMotionValuesFromProps:s5,createRenderState:sq})};function s7(e,t,i){let n=s5(e,t,i);for(let i in e)(z(e[i])||z(t[i]))&&(n[-1!==Z.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return n}let s4={useVisualState:s9({scrapeMotionValuesFromProps:s7,createRenderState:sG})},s6={current:null},re={current:!1},rt=new WeakMap,ri=e=>t=>t.test(e),rn=[ec,e_,eS,ek,ej,eP,{test:e=>"auto"===e,parse:e=>e}],rs=e=>rn.find(ri(e)),rr=[...rn,eA,eO],ra=new Set(["brightness","contrast","saturate","opacity"]);function ro(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=i.match(ef)||[];if(!n)return e;let s=i.replace(n,""),r=+!!ra.has(t);return n!==i&&(r*=100),t+"("+r+s+")"}let rl=/\b([a-z-]*)\(.*?\)/gu,ru={...eO,getAnimatableNone:e=>{let t=e.match(rl);return t?t.map(ro).join(" "):e}},rh={...sB,color:eA,backgroundColor:eA,outlineColor:eA,fill:eA,stroke:eA,borderColor:eA,borderTopColor:eA,borderRightColor:eA,borderBottomColor:eA,borderLeftColor:eA,filter:ru,WebkitFilter:ru},rc=e=>rh[e];function rd(e,t){let i=rc(e);return i!==ru&&(i=eO),i.getAnimatableNone?i.getAnimatableNone(t):void 0}let rm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class rp{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:s,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=t0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=$.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,D.render(this.render,!1,!0))};const{latestValues:o,renderState:l}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=sM(t),this.isVariantNode=sA(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...h}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in h){const t=h[e];void 0!==o[e]&&z(t)&&t.set(o[e],!1)}}mount(e){this.current=e,rt.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)),re.current||function(){if(re.current=!0,sL.isBrowser)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>s6.current=e.matches;e.addListener(t),t()}else s6.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||s6.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),F(this.notifyUpdate),F(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let i;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=J.has(e);n&&this.onBindTransform&&this.onBindTransform();let s=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&D.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{s(),r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in sV){let t=sV[e];if(!t)continue;let{isEnabled:i,Feature:n}=t;if(!this.features[e]&&n&&i(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];
219t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):iI()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<rm.length;t++){let i=rm[t];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=e["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(e,t,i){for(let n in t){let s=t[n],r=i[n];if(z(s))e.addValue(n,s);else if(z(r))e.addValue(n,q(s,{owner:e}));else if(r!==s)if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(s):t.hasAnimated||t.set(s)}else{let t=e.getStaticValue(n);e.addValue(n,q(void 0!==t?t:s,{owner:e}))}}for(let n in i)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let i=this.values.get(e);t!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return void 0===i&&void 0!==t&&(i=q(null===t?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){let i=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=i){let n,s;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(s=i,/^0[^.\s]+$/u.test(s))))i=parseFloat(i);else{let n;n=i,!rr.find(ri(n))&&eO.test(t)&&(i=rd(e,t))}this.setBaseTarget(e,z(i)?i.get():i)}return z(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=E(this.props,i,this.presenceContext?.custom);n&&(t=n[e])}if(i&&void 0!==t)return t;let n=this.getBaseTargetFromProps(this.props,e);return void 0===n||z(n)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new W),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}let rf=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,rg=new Set(["auto","none","0"]);class ry extends t0{constructor(e,t,i,n,s){super(e,t,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i<e.length;i++){let n=e[i];if("string"==typeof n&&el(n=n.trim())){let s=function e(t,i,n=1){eH(`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[s,r]=function(e){let t=rf.exec(e);if(!t)return[,];let[,i,n,s]=t;return[`--${i??n}`,s]}(t);if(!s)return;let a=window.getComputedStyle(i).getPropertyValue(s);if(a){let e=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return el(r)?e(r,i,n+1):r}(n,t.current);void 0!==s&&(e[i]=s),i===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!il.has(i)||2!==e.length)return;let[n,s]=e,r=rs(n),a=rs(s);if(r!==a)if(tH(r)&&tH(a))for(let t=0;t<e.length;t++){let i=e[t];"string"==typeof i&&(e[t]=parseFloat(i))}else tK[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,i=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&i.push(t);i.length&&function(e,t,i){let n,s=0;for(;s<e.length&&!n;){let t=e[s];"string"==typeof t&&!rg.has(t)&&eD(t).values.length&&(n=e[s]),s++}if(n&&i)for(let s of t)e[s]=rd(i,n)}(e,i,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tK[i](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(i,n).jump(n,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:i}=this;if(!e||!e.current)return;let n=e.getValue(t);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,r=i[s];i[s]=tK[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
219h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}class rv extends rp{constructor(){super(...arguments),this.KeyframeResolver=ry}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:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;z(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function rx(e,{style:t,vars:i},n,s){for(let r in Object.assign(e.style,t,s&&s.getProjectionStyles(n)),i)e.style.setProperty(r,i[r])}class rb extends rv{constructor(){super(...arguments),this.type="html",this.renderInstance=rx}readValueFromInstance(e,t){if(J.has(t))return this.projection?.isProjecting?tB(t):((e,t)=>{let{transform:i="none"}=getComputedStyle(e);return tU(i,t)})(e,t);{let i=window.getComputedStyle(e),n=(ea(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return iG(e,t)}build(e,t,i){sH(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return s5(e,t,i)}}let rw=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"]);class rT extends rv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=iI}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(J.has(t)){let e=rc(t);return e&&e.default||0}return t=rw.has(t)?t:Y(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return s7(e,t,i)}build(e,t,i){sX(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,n){for(let i in rx(e,t,void 0,n),t.attrs)e.setAttribute(rw.has(i)?i:Y(i),t.attrs[i])}mount(e){this.isSVGTag=sZ(e.tagName),super.mount(e)}}let rk=function(e){if("u"<typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(i,n)=>"create"===n?e:(t.has(n)||t.set(n,e(n)),t.get(n))})}((r={animation:{Feature:class extends iT{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>ih(e,t,i)));else if("string"==typeof t)n=ih(e,t,i);else{let s="function"==typeof t?M(e,t,i.custom):t;n=Promise.all(iu(e,s,i))}return n.then(()=>{e.notify("AnimationComplete",t)})})(e,t,i))),i=iw(),n=!0,s=t=>(i,n)=>{let s=M(e,n,"exit"===t?e.presenceContext?.custom:void 0);if(s){let{transition:e,transitionEnd:t,...n}=s;i={...i,...n,...t}}return i};function r(r){let{props:a}=e,o=function e(t){if(!t)return;if(!t.isControllingVariants){let i=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(i.initial=t.props.initial),i}let i={};for(let e=0;e<iy;e++){let n=ig[e],s=t.props[n];(im(s)||!1===s)&&(i[n]=s)}return i}(e.parent)||{},l=[],u=new Set,h={},c=1/0;for(let t=0;t<ix;t++){var d,m;let p=iv[t],f=i[p],g=void 0!==a[p]?a[p]:o[p],y=im(g),v=p===r?f.isActive:null;!1===v&&(c=t);let x=g===o[p]&&g!==a[p]&&y;if(x&&n&&e.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...h},!f.isActive&&null===v||!g&&!f.prevProp||P(g)||"boolean"==typeof g)continue;let b=(d=f.prevProp,"string"==typeof(m=g)?m!==d:!!Array.isArray(m)&&!id(m,d)),w=b||p===r&&f.isActive&&!x&&y||t>c&&y,T=!1,k=Array.isArray(g)?g:[g],S=k.reduce(s(p),{});!1===v&&(S={});let{prevResolvedValues:_={}}=f,j={..._,...S},E=t=>{w=!0,u.has(t)&&(T=!0,u.delete(t)),f.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in j){let t=S[e],i=_[e];if(!h.hasOwnProperty(e))(A(t)&&A(i)?id(t,i):t===i)?void 0!==t&&u.has(e)?E(e):f.protectedKeys[e]=!0:null!=t?E(e):u.add(e)}f.prevProp=g,f.prevResolvedValues=S,f.isActive&&(h={...h,...S}),n&&e.blockInitialAnimation&&(w=!1);let M=!(x&&b)||T;w&&M&&l.push(...k.map(e=>({animation:e,options:{type:p}})))}if(u.size){let t={};if("boolean"!=typeof a.initial){let i=M(e,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(t.transition=i.transition)}u.forEach(i=>
219{let n=e.getBaseTarget(i),s=e.getValue(i);s&&(s.liveStyle=!0),t[i]=n??null}),l.push({animation:t})}let p=!!l.length;return n&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(p=!1),n=!1,p?t(l):Promise.resolve()}return{animateChanges:r,setActive:function(t,n){if(i[t].isActive===n)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,n)),i[t].isActive=n;let s=r(t);for(let e in i)i[e].protectedKeys={};return s},setAnimateFunction:function(i){t=i(e)},getState:()=>i,reset:()=>{i=iw(),n=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();P(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends iT{constructor(){super(...arguments),this.id=ik++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends iT{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:a}=i,o={root:n?n.current:void 0,rootMargin:s,threshold:"number"==typeof r?r:s_[r]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=t?i:n;s&&s(e)};return e=this.node.current,t=function({root:e,...t}){let i=e||document;sT.has(i)||sT.set(i,{});let n=sT.get(i),s=JSON.stringify(t);return n[s]||(n[s]=new IntersectionObserver(sS,{root:e,...t})),n[s]}(o),sw.set(e,l),t.observe(e),()=>{sw.delete(e),t.unobserve(e)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends iT{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[n,s,r]=sc(e,i),a=e=>{let n=e.currentTarget;if(!sx(e))return;sg.add(n);let r=t(n,e),a=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),sg.has(n)&&sg.delete(n),sx(e)&&"function"==typeof r&&r(e,{success:t})},o=e=>{a(e,n===window||n===document||i.useGlobalTarget||sp(n,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",l,s)};return n.forEach(e=>{((i.useGlobalTarget?window:e).addEventListener("pointerdown",a,s),(0,ii.isHTMLElement)(e))&&(e.addEventListener("focus",e=>((e,t)=>{let i=e.currentTarget;if(!i)return;let n=sy(()=>{if(sg.has(i))return;sv(i,"down");let e=sy(()=>{sv(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>sv(i,"cancel"),t)});i.addEventListener("keydown",n,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),t)})(e,s)),sf.has(e.tagName)||-1!==e.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),r}(e,(e,t)=>(sb(this.node,t,"Start"),(e,{success:t})=>sb(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends iT{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=eZ(iS(this.node.current,"focus",()=>this.onFocus()),iS(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iT{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[n,s,r]=sc(e,i),a=e=>{if(!sd(e))return;let{target:i}=e,n=t(i,e);if("function"!=typeof n||!i)return;let r=e=>{sd(e)&&(n(e),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,s)};
219return n.forEach(e=>{e.addEventListener("pointerenter",a,s)}),r}(e,(e,t)=>(sm(this.node,t,"Start"),e=>sm(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends iT{constructor(){super(...arguments),this.removePointerDownListener=V}onPointerDown(e){this.session=new i0(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iZ(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:nn(e),onStart:nn(t),onMove:i,onEnd:(e,t)=>{delete this.session,n&&D.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=ij(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 iT{constructor(e){super(e),this.removeGroupControls=V,this.removeListeners=V,this.controls=new nt(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||V}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:sh,MeasureLayout:np},layout:{ProjectionNode:sh,MeasureLayout:np}},a=(e,t)=>s2(e)?new rT(t):new rb(t,{allowProjection:e!==l.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function({preloadedFeatures:e,createVisualElement:t,useRender:i,useVisualState:n,Component:s}){function r(e,r){var a;let u,h={...(0,l.useContext)(sj.MotionConfigContext),...e,layoutId:function({layoutId:e}){let t=(0,l.useContext)(na.LayoutGroupContext).id;return t&&void 0!==e?t+"-"+e:e}(e)},{isStatic:c}=h,d=function(e){let{initial:t,animate:i}=function(e,t){if(sM(e)){let{initial:t,animate:i}=e;return{initial:!1===t||im(t)?t:void 0,animate:im(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,l.useContext)(sE));return(0,l.useMemo)(()=>({initial:t,animate:i}),[sC(t),sC(i)])}(e),m=n(e,c);if(!c&&sL.isBrowser){(0,l.useContext)(sP).strict;let e=function(e){let{drag:t,layout:i}=sV;if(!t&&!i)return{};let n={...t,...i};return{MeasureLayout:t?.isEnabled(e)||i?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(h);u=e.MeasureLayout,d.visualElement=function(e,t,i,n,s){let{visualElement:r}=(0,l.useContext)(sE),a=(0,l.useContext)(sP),o=(0,l.useContext)(sF.PresenceContext),u=(0,l.useContext)(sj.MotionConfigContext).reducedMotion,h=(0,l.useRef)(null);n=n||a.renderer,!h.current&&n&&(h.current=n(e,{visualState:t,parent:r,props:i,presenceContext:o,blockInitialAnimation:!!o&&!1===o.initial,reducedMotionConfig:u}));let c=h.current,d=(0,l.useContext)(no);c&&!c.projection&&s&&("html"===c.type||"svg"===c.type)&&function(e,t,i,n){let{layoutId:s,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!a||o&&iJ(o),visualElement:e,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(h.current,i,s,d);let m=(0,l.useRef)(!1);(0,l.useInsertionEffect)(()=>{c&&m.current&&c.update(i,o)});let p=i[X],f=(0,l.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return(0,sN.useIsomorphicLayoutEffect)(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),nd.render(c.render),f.current&&c.animationState&&c.animationState.animateChanges())}),(0,l.useEffect)(()=>{c&&(!f.current&&c.animationState&&c.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),f.current=!1))}),c}(s,m,h,t,e.ProjectionNode)}return(0,o.jsxs)(sE.Provider,{value:d,children:[u&&d.visualElement?(0,o.jsx)(u,{visualElement:d.visualElement,...h}):null,i(s,e,(a=d.visualElement,(0,l.useCallback)(e=>{e&&m.onMount&&m.onMount(e),a&&(e?a.mount(e):a.unmount()),r&&("function"==typeof r?r(e):iJ(r)&&(r.current=e))},[a])),m,c,d.visualElement)]})}e&&function(e){for(let t in e)sV[t]={...sV[t],...e[t]}}(e),r.displayName=`motion.${"string"==typeof s?s:`create(${s.displayName??s.name??""})`}`;let a=(0,l.forwardRef)(r);return a[sD]=s,a}({...s2(e)?s4:s8,preloadedFeatures:r,useRender:function(e=!1){return(t,i,n,{latestValues:s},r)=>{let a=(s2(t)?function(e,t,i,n){let s=(0,l.useMemo)(()=>{let i=sG();return sX(i,t,sZ(n),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};
219sz(t,e.style,e),s.style={...t,...s.style}}return s}:function(e,t){let i,n,s={},r=(i=e.style||{},sz(n={},i,e),Object.assign(n,function({transformTemplate:e},t){return(0,l.useMemo)(()=>{let i=sq();return sH(i,t,e),Object.assign({},i.vars,i.style)},[t])}(e,t)),n);return e.drag&&!1!==e.dragListener&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(s.tabIndex=0),s.style=r,s})(i,s,r,t),o=function(e,t,i){let n={};for(let s in e)("values"!==s||"object"!=typeof e.values)&&(s0(s)||!0===i&&sQ(s)||!t&&!sQ(s)||e.draggable&&s.startsWith("onDrag"))&&(n[s]=e[s]);return n}(i,"string"==typeof t,e),u=t!==l.Fragment?{...o,...a,ref:n}:{},{children:h}=i,c=(0,l.useMemo)(()=>z(h)?h.get():h,[h]);return(0,l.createElement)(t,{...u,children:c})}}(t),createVisualElement:a,Component:e})}));var rS=e.i(3828),r_=e.i(86611),rP=e.i(41158),rj=e.i(11143);let rE=({children:e})=>(0,o.jsx)("div",{className:`search-dropdown-container ${rj.default["search-dropdown-container"]}`,children:e}),rM=({className:e,suggestionsList:t=[],onSelect:i=e=>{},onClose:n=()=>{}})=>{let s=(0,S.useIntl)(),{locale:r}=(0,rS.useRouter)(),a=e=>{i&&i(e)};return t.length>0&&(0,o.jsxs)(rE,{children:[(0,o.jsx)("h6",{className:`search-suggestions-title ${r_.default["search-suggestions-title"]}`,children:s.formatMessage({id:"search.suggestions.title",defaultMessage:"---> Recherches fréquentes"})}),(0,o.jsx)("div",{className:`search-suggestions-list ${r_.default["search-suggestions-list"]}`,role:"list","aria-label":s.formatMessage({id:"search.suggestions.list"}),children:t.map((e,t)=>(0,o.jsx)(l.default.Fragment,{children:e.search_suggestion_url?(0,o.jsx)(rP.default,{href:e.search_suggestion_url,className:`search-suggestions-item ${r_.default["search-suggestions-item"]}`,role:"listitem",onClick:n,children:e.search_suggestion_term}):(0,o.jsx)("span",{onClick:()=>a(e.search_suggestion_term),className:`search-suggestions-item ${r_.default["search-suggestions-item"]}`,role:"listitem",tabIndex:0,onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),a(e.search_suggestion_term))},children:e.search_suggestion_term})},e.search_suggestion_term))})]})};var rA=e.i(91170),rC=e.i(97873);let rL=({className:e,data:t,onSelect:i=e=>{}})=>{let n=(0,S.useIntl)(),s=e=>{i&&i(e)};return t.length>0&&(0,o.jsx)(rE,{children:(0,o.jsx)("ul",{className:`search-autocomplete-list ${rA.default["search-autocomplete-list"]} ${e}`,"aria-label":n.formatMessage({id:"search.autocomplete.list"}),children:t.map((e,t)=>(0,o.jsxs)("li",{className:`search-autocomplete-item ${rA.default["search-autocomplete-item"]}`,onClick:()=>s(e.token),onKeyDown:t=>{var i;return i=e.token,void(("Enter"===t.key||" "===t.key)&&(t.preventDefault(),s(i)))},tabIndex:0,role:"listitem",children:[(0,o.jsx)(rC.ReactSVG,{src:m.ICONS.SEARCH,"aria-hidden":"true"}),e.token]},t))})})},rR=({className:e="",onSearch:t=e=>{},initvalue:i="",suggestionsList:n=[],onClose:s=()=>{},enableSuggestions:r=!0,enableAutocomplete:a=!0})=>{(0,rS.useRouter)();let[u,h]=l.default.useState(i),[c,d]=l.default.useState(!1),[p,f]=l.default.useState([]),[g,y]=l.default.useState(!1),[v,x]=l.default.useState(!1),[b,w]=l.default.useState(!1),[P,j]=l.default.useState(!0),E=(0,S.useIntl)(),M=function({value:e,delay:t}){let[i,n]=(0,l.useState)(e);return(0,l.useEffect)(()=>{let i=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(i)}},[e,t]),i}({value:u,delay:300});l.default.useEffect(()=>{if(!a){f([]),y(!1);return}M&&M.trim().length>2&&!P?A(M):(f([]),y(!1))},[M,a,P]),l.default.useEffect(()=>{h(i)},[i]);let A=async e=>{w(!0);try{await fetch("/api/search/",{method:"POST",body:new URLSearchParams({action:"search_suggestions",term:e})}).then(e=>{if(!e.ok)throw Error(`HTTP error! status: ${e.status}`);return e.json()}).then(e=>{f(e.data.suggestions||[]),y(!0),d(!1)})}catch(e){f([])}finally{w(!1)}},C=()=>{j(!0),""!==u.trim()&&(t(u),y(!1))},L=e=>{h(e),y(!1),t(e),j(!0)};return(0,o.jsxs)("div",{className:`search-input-wrapper ${k.default["search-input-wrapper"]} ${e}`,role:"search","aria-label":E.formatMessage({id:"search.input.region"}),children:[(0,o.jsx)("input",{type:"text",className:`${k.default["search-input"]}`,placeholder:E.formatMessage({id:"search.placeholder",defaultMessage:"Rechercher..."}),value:u||"",onChange:e=>h(e.target.value),onFocus:()=>{x(!0),r&&0==u.trim().length&&d(!0)},onBlur:()=>{x(!1),setTimeout(()=>{d(!1)},100)},onKeyUp:e=>{"Enter"===e.key?(e.preventDefault(),C()):j(!1)},"aria-label":E.formatMessage({id:"search.input.label"}),"aria-describedby":"search-suggestions"}),(0,o.jsx)(T.default,{color:"red",icon:m.ICONS.SEARCH,title:"search.button.search",onClick:C,staticLabel:"search.button.search",overrideClassName:`${k.default["btn-search"]}`,"aria-label":E.formatMessage({id:"search.button.search"})}),(0,o.jsx)(_.AnimatePresence,{initial:!1,children:r&&c&&(0,o.jsx)(rk.div,{className:`${k.default["search-dropdown"]}`,initial:{opacity:0,y:-10}
219,animate:{opacity:1,y:0,transition:{duration:.2}},exit:{opacity:0,y:-10,transition:{duration:.2}},role:"region","aria-label":E.formatMessage({id:"search.suggestions.region"}),id:"search-suggestions",children:(0,o.jsx)(rM,{className:`${k.default["search-suggestions"]}`,suggestionsList:n,onSelect:L,onClose:s})})}),(0,o.jsx)(_.AnimatePresence,{initial:!1,children:a&&g&&!P&&(0,o.jsx)(rk.div,{className:`${k.default["search-dropdown"]}`,initial:{opacity:0,y:-10},animate:{opacity:1,y:0,transition:{duration:.2}},exit:{opacity:0,y:-10,transition:{duration:.2}},role:"region","aria-label":E.formatMessage({id:"search.autocomplete.region"}),children:(0,o.jsx)(rL,{className:`${k.default["search-autocomplete"]}`,data:p,onSelect:L})})})]})};e.s(["default",0,rR],44190);let rV=({onClose:e,...t})=>{let i=(0,rS.useRouter)(),{locale:n}=i;return(0,o.jsx)(rR,{...t,onSearch:t=>{if(""===t.trim())return;let s="fr"===n?`/recherche?s=${encodeURIComponent(t)}`:`/en/search?s=${encodeURIComponent(t)}`;i.push(s),e&&e()},onClose:e})};var rD=e.i(65125);let rF=({suggestionsList:e=[]})=>{let t=(0,S.useIntl)(),i=()=>{"u">typeof document&&document.body&&document.body.classList.remove("search-modal-open")};return(0,o.jsxs)("div",{className:`search-modal ${rD.default["search-modal"]}`,role:"dialog","aria-modal":"true","aria-label":t.formatMessage({id:"search.modal.region"}),onKeyDown:e=>{"Escape"===e.key&&i()},children:[(0,o.jsx)(rC.ReactSVG,{src:m.ICONS.CLOSE,className:`btn-menu-close ${rD.default["btn-menu-close"]}`,title:t.formatMessage({id:"search.modal.close"}),"aria-label":t.formatMessage({id:"search.modal.close"}),role:"button",tabIndex:0,onClick:i,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),i())}}),(0,o.jsx)(rV,{className:`search-input-desktop ${rD.default["search-input-desktop"]}`,suggestionsList:e,onClose:i})]})};e.i(2047);var rN=e.i(94420);let rI=({layoutDatas:e,apparence:t="filled"})=>{var i;let n=(0,S.useIntl)(),[s,r]=l.default.useState(!1),[a,d]=l.default.useState(!0),[p,g]=l.default.useState(!1),{themeOptions:x,themeOptionsEN:b,superHeaderMenuItems:T,primaryMenuItems:k}=e??{},_=x?.general.site_logo?.node?.mediaItemUrl||!1,[P,j]=[T?.nodes||[],k?.nodes||[]].map(e=>(0,rN.flatListToHierarchical)(e,{childrenKey:"childItems"})),E=l.default.useRef(null),M=l.default.useRef(null),A=l.default.useRef(null),C=l.default.useRef(null),L=l.default.useRef(null),R=l.default.useRef(null);l.default.useRef(null),l.default.useRef(null);let V=l.default.useRef(null);l.default.useEffect(()=>("u">typeof document&&document.body&&s&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow=""}),[s]),l.default.useEffect(()=>{let e=e=>{if("Escape"===e.key&&s){r(!1),g(!1),d(!0);return}if(s&&(a||p)&&"Tab"===e.key){let t=document.querySelector(".header-mobile"),i=t?.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(i&&i.length>0){let n=i[0],s=i[i.length-1],r=t?.contains(document.activeElement);e.shiftKey&&document.activeElement===n&&r?(e.preventDefault(),s.focus()):!e.shiftKey&&document.activeElement===s&&r?(e.preventDefault(),n.focus()):r||(e.preventDefault(),n.focus())}}if(s&&!a&&"Tab"===e.key){let t=R.current?.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(t&&t.length>0){let i=t[0],n=t[t.length-1];e.shiftKey&&document.activeElement===i?(e.preventDefault(),n.focus()):e.shiftKey||document.activeElement!==n||(e.preventDefault(),i.focus())}}};return s&&document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[s,a,p]),l.default.useEffect(()=>{s&&setTimeout(()=>{A.current?.focus()},100)},[s]),l.default.useEffect(()=>{s&&!a&&setTimeout(()=>{V.current?.focus()},100)},[s,a]),l.default.useEffect(()=>{s&&p&&setTimeout(()=>{let e=document.querySelector(".header-mobile"),t=e?.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');t?.focus()},100)},[s,p]),l.default.useEffect(()=>{s&&a&&E.current&&setTimeout(()=>{let e=M.current?.querySelector(`[data-item-id="${E.current?.id}"]`);e?.focus()},100)},[s,a]);let D=e=>{e.childItems&&e.childItems.length>0&&(d(!1),E.current=e)};return(0,o.jsxs)("header",{role:"banner",className:`main-header header-mobile ${s?"show-menu":""}`,children:[(0,o.jsx)("div",{className:"skiplink",children:(0,o.jsx)("a",{href:"#main-content",children:n.formatMessage({id:"header.skiplink"})})}),(0,o.jsx)("div",{className:"super-header",children:(0,o.jsxs)(h.default,{children:[(0,o.jsx)("div",{className:"nav-left",children:_&&0!==_.trim().length&&(0,o.jsx)("div",{className:"logo",children:(0,o.jsxs)(rP.default,{href:"/","aria-label":`Spedidam : ${n.formatMessage({id:"globals.label.home"})}`,children:[(0,o.jsx)("span",{className:"sr-only",children:`Spedidam : ${n.formatMessage({id:"globals.label.home"})}`}),(0,o.jsx)(f.SecureReactSvg,{src:_,"aria-hidden":"true"})]})})}),(0,o.jsxs)("div",{className:"nav-right",children:[(0,o.jsx)(c.default,{type:"primary",style:"filled",color:"red",title:P[0]?.label||"Menu",href:"#",target:"_self",overrideClassName:"btn-espace",onClick:()=>{g(!0),r(!0)}}),!s&&(0,o.jsx)("button",{className:"btn btn-menu anim-element duration-500","aria-label":n.formatMessage({id:"header.menu.open"}),"aria-controls":"id-menu","aria-expanded":s,onClick:()=>{r(!0)},children:(0,o.jsx)(rC.ReactSVG,{src:m.ICONS.MENU,title:"Menu","aria-hidden":"true"})}),s&&(0,o.jsx)("button",{ref:A,className:"btn-menu-close anim-element duration-500","aria-label":n.formatMessage({id:"header.menu.close"}),onClick:()=>{r(!1),g(!1),d(!0)},children:(0,o.jsx)(rC.ReactSVG,{src:m.ICONS.CLOSE,title:"Fermer","aria-hidden":"true"})})]})]})}),s&&(0,o.jsx)("nav",{id:"id-menu",className:"main-nav anim-element duration-500 from-right",role:"navigation","aria-label":n.formatMessage({id:"header.menu.main"}),children:(0,o.jsxs)(h.default,{children:[s&&p&&(()=>{if(0===P.length)return(0,o.jsx)(o.Fragment,{});let e=P[0]?.childItems||[];return e?.length>0&&(0,o.jsx)("ul",{role:"menu","aria-label":n.formatMessage({id:"header.menu.mySpace"}),className:"menu-parent-list-items",children:e.map((e,t)=>(0,o.jsx)("li",{role:"menuitem",className:"list-item",children:(0,o.jsx)(rP.default,{href:e.url||"#",className:"label",onClick:()=>{(0,v.trackMenuClick)({menu_item:e.label,menu_section:P[0]?.label||"Menu",menu_level:"dropdown",link_url:(0,y.resolveTrackingUrl)(e.url||"#")}),r(!1),g(!1)},children:e.label})},t))})})(),s&&a&&!p&&(0===j.length?(0,o.jsx)(o.Fragment,{}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(rV,{className:"search-input-mobile",enableSuggestions:!1,enableAutocomplete:!1,onClose:()=>{r(!1),g(!1),d(!0)}}),(0,o.jsx)("ul",{ref:M,role:"menu","aria-label":n.formatMessage({id:"header.menu.main"}),className:"menu-parent-list-items",children:j.map((e,t)=>(0,o.jsx)("li",{role:"menuitem",className:"list-item",children:(0,o.jsxs)("button",{ref:0===t?C:t===j.length-1?L:void 0,className:"menu-item-button","data-item-id":e.id,onClick:()=>D(e),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),D(e))},"aria-label":`${e.label}${e?.childItems?.length>0?n.formatMessage({id:"header.menu.submenu.available"}):""}`,children:[(0,o.jsx)("span",{className:"label",children:e.label}),e?.childItems?.length>0&&(0,o.jsx)("div",{className:"icon","aria-hidden":"true",children:(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",children:(0,o.jsx)("path",{d:"M12.1716 7.4999L6.8076 2.13589L8.2218 0.72168L16 8.4999L8.2218 16.278L6.8076 14.8638L12.1716 9.4999H0V7.4999H12.1716Z",fill:"black"})})})]})},t))}),(0,o.jsxs)("div",{className:"nav-bottom",children:[(0,o.jsx)(c.default,{type:"primary",style:"filled",color:"black",title:"Contact",href:"contact",target:"_self"}),(0,o.jsx)(u.default,{})]})]}
219)),s&&!a&&(i=E.current,i?.childItems?.length===0?(0,o.jsx)(o.Fragment,{}):(0,o.jsxs)("div",{ref:R,className:"anim-element duration-500 from-right",children:[(0,o.jsxs)("button",{ref:V,onClick:()=>d(!0),className:"menu-back","aria-label":n.formatMessage({id:"header.menu.back.to"},{menu:i?.label}),children:[(0,o.jsx)(rC.ReactSVG,{src:m.ICONS.ARROW_LEFT,className:"icon","aria-hidden":"true"}),(0,o.jsx)("span",{className:"label",children:i?.label})]}),i?.childItems?.map((e,t)=>(0,o.jsxs)("div",{className:`dropdown-column dropdown-column-${t}`,children:[(0,o.jsx)("p",{className:"submenu-title",children:e.label}),e?.childItems?.length&&(0,o.jsx)(w,{childItems:e.childItems,menuSection:i?.label,menuLevel:"dropdown"})]},e.id))]}))]})})]})};e.s(["default",0,({layoutDatas:e,apparence:t="filled"})=>{let i=(0,S.useIntl)(),[n,s]=l.default.useState(!0),[r,a]=l.default.useState(!1);if(l.default.useEffect(()=>{let e=window.scrollY,t=()=>{let t=window.scrollY;t>10?s(!1):s(!0),t>e&&t>50?a(!0):a(!1),e=t};return window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)},[]),!e)return null;let{superHeaderMenuItems:g,primaryMenuItems:x,footerMenuItems:b,legalMenuItems:T}=e,{themeOptions:k,themeOptionsEN:_}=e,{locale:P}=i,j="en"===P?_?.searchOptionsEn?.search_suggestions_en:k?.searchOptions?.search_suggestions,[E,M,A,C]=[g?.nodes||[],x?.nodes||[],b?.nodes||[],T?.nodes||[]].map(e=>(0,rN.flatListToHierarchical)(e,{childrenKey:"childItems"})),L=k?.general.site_logo?.node?.mediaItemUrl||!1;return(0,o.jsxs)(l.Fragment,{children:[(0,o.jsx)(rF,{suggestionsList:j?.filter(e=>e.search_suggestion_term).map(e=>({search_suggestion_term:e.search_suggestion_term,search_suggestion_url:e.search_suggestion_url||""}))||[]}),(0,o.jsxs)("header",{role:"banner",className:`main-header ${n&&"transparent"==t?"transparent":""} ${r?"hide":""}`,children:[(0,o.jsx)("div",{className:"skiplink",children:(0,o.jsx)("a",{href:"#main-content",children:i.formatMessage({id:"header.skiplink"})})}),(0,o.jsx)("div",{className:"super-header anim-element from-up duration-300",children:(0,o.jsxs)(h.default,{children:[(0,o.jsxs)("nav",{role:"navigation","aria-label":i.formatMessage({id:"header.navigation.secondary"}),className:"nav-left",children:[(0,o.jsx)(d.default,{type:"menu",style:"transparent",icon:m.ICONS.SEARCH,title:i.formatMessage({id:"search.button.search"}),onClick:()=>{"u">typeof document&&document.body&&document.body.classList.add("search-modal-open")}}),(0,o.jsx)(u.default,{})]}),L&&0!==L.trim().length&&(0,o.jsx)("div",{className:"logo",children:(0,o.jsx)(rP.default,{href:"/","aria-label":`Spedidam : ${i.formatMessage({id:"globals.label.home"})}`,children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"sr-only",children:`Spedidam : ${i.formatMessage({id:"globals.label.home"})}`}),(0,o.jsx)(f.SecureReactSvg,{src:L,"aria-hidden":"true"})]})})}),(0,o.jsxs)("nav",{role:"navigation","aria-label":i.formatMessage({id:"header.navigation.primary"}),className:"nav-right",children:[(0,o.jsx)(c.default,{type:"primary",style:"filled",color:"grey",title:"Contact",href:"contact",overrideClassName:"btn-contact"}),(0,o.jsx)("div",{className:"nav-right__menu",children:(0,o.jsx)(()=>{if(0===E.length)return(0,o.jsx)(o.Fragment,{});let e=E[0]?.label||"Menu",t=E[0]?.childItems||[];return(0,o.jsx)(p.Dropdown,{title:e,children:(0,o.jsx)(w,{childItems:t,menuSection:e,menuLevel:"dropdown"})})},{})})]})]})}),(0,o.jsx)("nav",{role:"navigation","aria-label":i.formatMessage({id:"header.menu.main"}),className:"main-nav anim-element from-up duration-300",children:(0,o.jsx)(h.default,{children:(0,o.jsx)(()=>0===M.length?null:(0,o.jsx)("div",{className:"main-nav__wrapper",children:M.map((e,t)=>e?.childItems?.length>0?(0,o.jsxs)(p.Dropdown,{title:e.label,type:"menu",className:"nav-dropdown-item",children:[e.childItems?.map((t,i)=>(0,o.jsxs)("div",{className:`dropdown-column dropdown-column-${i}`,children:[(0,o.jsx)("p",{className:"submenu-title",children:t?.label}),t?.childItems?.length&&(0,o.jsx)(w,{childItems:t.childItems,menuSection:e.label,menuLevel:"dropdown"})]},i)),(0,o.jsx)("div",{className:`decoration decoration-${t}`})]},t):(0,o.jsx)(c.default,{type:"primary",style:"transparent",color:"grey",title:e.label,href:e.path,target:"_self",disableTracking:!0,onClick:()=>{(0,v.trackMenuClick)({menu_item:e.label,menu_section:e.label,menu_level:"principal",link_url:(0,y.resolveTrackingUrl)(e.path)})}},t))}),{})})})]}),(0,o.jsx)(rI,{layoutDatas:e,apparence:t})]})}],74075)},27104,e=>{"use strict";var t=e.i(74266),i=e.i(76238);
219e.s(["trackMenuClick",0,function(e){let n=(0,i.getEspaceType)(e.link_url);n?(0,i.trackMonEspaceClick)({espace_type:n,cta_location:"footer"===e.menu_section?"footer":"header"}):(0,t.pushTrackingEvent)({event:"click_menu",...e})}])},63392,e=>{e.v({dropdown:"dropdown-module-scss-module__UxroGq__dropdown","dropdown-content":"dropdown-module-scss-module__UxroGq__dropdown-content","dropdown-content--upward":"dropdown-module-scss-module__UxroGq__dropdown-content--upward"})},82795,81536,98015,94854,79297,77416,29301,33585,377,4175,88021,82608,e=>{"use strict";var t=e.i(91398),i=e.i(91788);let n=(0,i.createContext)({});function s(e){let t=(0,i.useRef)(null);return null===t.current&&(t.current=e()),t.current}e.s(["LayoutGroupContext",0,n],81536),e.s(["useConstant",0,s],98015);let r="u">typeof window;e.s(["isBrowser",0,r],94854);let a=r?i.useLayoutEffect:i.useEffect;e.s(["useIsomorphicLayoutEffect",0,a],79297);let o=(0,i.createContext)(null);e.s(["PresenceContext",0,o],77416);var l=i;let u=(0,i.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function h(e){return"object"==typeof e&&null!==e}function c(e){return h(e)&&"offsetHeight"in e}e.s(["MotionConfigContext",0,u],29301),e.s(["isObject",0,h],33585),e.s(["isHTMLElement",0,c],377);class d extends l.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,i=c(e)&&e.offsetWidth||0,n=this.props.sizeRef.current;n.height=t.offsetHeight||0,n.width=t.offsetWidth||0,n.top=t.offsetTop,n.left=t.offsetLeft,n.right=i-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function m({children:e,isPresent:i,anchorX:n}){let s=(0,l.useId)(),r=(0,l.useRef)(null),a=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=(0,l.useContext)(u);return(0,l.useInsertionEffect)(()=>{let{width:e,height:t,top:l,left:u,right:h}=a.current;if(i||!r.current||!e||!t)return;let c="left"===n?`left: ${u}`:`right: ${h}`;r.current.dataset.motionPopId=s;let d=document.createElement("style");return o&&(d.nonce=o),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
220          [data-motion-pop-id="${s}"] {
221            position: absolute !important;
222            width: ${e}px !important;
223            height: ${t}px !important;
224            ${c}px !important;
225            top: ${l}px !important;
226          }
227        `),()=>{document.head.contains(d)&&document.head.removeChild(d)}},[i]),(0,t.jsx)(d,{isPresent:i,childRef:r,sizeRef:a,children:l.cloneElement(e,{ref:r})})}let p=({children:e,initial:n,isPresent:r,onExitComplete:a,custom:l,presenceAffectsLayout:u,mode:h,anchorX:c})=>{let d=s(f),p=(0,i.useId)(),g=!0,y=(0,i.useMemo)(()=>(g=!1,{id:p,initial:n,isPresent:r,custom:l,onExitComplete:e=>{for(let t of(d.set(e,!0),d.values()))if(!t)return;a&&a()},register:e=>(d.set(e,!1),()=>d.delete(e))}),[r,d,a]);return u&&g&&(y={...y}),(0,i.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[r]),i.useEffect(()=>{r||d.size||!a||a()},[r]),"popLayout"===h&&(e=(0,t.jsx)(m,{isPresent:r,anchorX:c,children:e})),(0,t.jsx)(o.Provider,{value:y,children:e})};function f(){return new Map}function g(e=!0){let t=(0,i.useContext)(o);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:s,register:r}=t,a=(0,i.useId)();(0,i.useEffect)(()=>{if(e)return r(a)},[e]);let l=(0,i.useCallback)(()=>e&&s&&s(a),[a,s,e]);return!n&&s?[!1,l]:[!0]}e.s(["usePresence",0,g],4175);let y=e=>e.key||"";function v(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let x=({children:e,custom:r,initial:o=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:c=!1,anchorX:d="left"})=>{let[m,f]=g(c),x=(0,i.useMemo)(()=>v(e),[e]),b=c&&!m?[]:x.map(y),w=(0,i.useRef)(!0),T=(0,i.useRef)(x),k=s(()=>new Map),[S,_]=(0,i.useState)(x),[P,j]=(0,i.useState)(x);a(()=>{w.current=!1,T.current=x;for(let e=0;e<P.length;e++){let t=y(P[e]);b.includes(t)?k.delete(t):!0!==k.get(t)&&k.set(t,!1)}},[P,b.length,b.join("-")]);let E=[];if(x!==S){let e=[...x];for(let t=0;t<P.length;t++){let i=P[t],n=y(i);b.includes(n)||(e.splice(t,0,i),E.push(i))}return"wait"===h&&E.length&&(e=E),j(v(e)),_(x),null}let{forceRender:M}=(0,i.useContext)(n);return(0,t.jsx)(t.Fragment,{children:P.map(e=>{let i=y(e),n=(!c||!!m)&&(x===P||b.includes(i));return(0,t.jsx)(p,{isPresent:n,initial:(!w.current||!!o)&&void 0,custom:r,presenceAffectsLayout:u,mode:h,onExitComplete:n?void 0:()=>
227{if(!k.has(i))return;k.set(i,!0);let e=!0;k.forEach(t=>{t||(e=!1)}),e&&(M?.(),j(T.current),c&&f?.(),l&&l())},anchorX:d,children:e},i)})})};e.s(["AnimatePresence",0,x],88021);var b=e.i(91980),w=e.i(97170);let T=(0,i.createContext)(void 0);e.s(["DropdownContext",0,T],82608);var k=e.i(63392);e.s(["Dropdown",0,({children:e,type:n,style:s="filled",color:r,className:a="",title:o,closeOnItemClick:l=!1})=>{let[u,h]=(0,i.useState)(!1),[c,d]=(0,i.useState)(!1),[m,p]=(0,i.useState)(!1),f=`dropdown-${(0,i.useId)()}`,g=i.default.useRef(null),y=i.default.useRef(null),v=i.default.useRef(null),S=i.default.useRef(null),_=i.default.useRef(!1),P=i.default.useRef(!1);(0,i.useEffect)(()=>{function e(e){g.current&&!g.current.contains(e.target)&&h(!1)}return u&&window.addEventListener("click",e),function(){window.removeEventListener("click",e),v.current&&clearTimeout(v.current)}},[u]),(0,i.useEffect)(()=>{function e(){_.current=!1}return window.addEventListener("pointerup",e),()=>window.removeEventListener("pointerup",e)},[]);let j=i.default.useCallback(()=>{if(!y.current)return;let e=y.current.getBoundingClientRect(),t=window.innerHeight-e.bottom-16,i=e.top-16;d(t<(S.current?.offsetHeight??200)&&i>t)},[]);(0,i.useLayoutEffect)(()=>{if(u)return j(),window.addEventListener("resize",j),window.addEventListener("scroll",j,!0),()=>{window.removeEventListener("resize",j),window.removeEventListener("scroll",j,!0)}},[u,j]),(0,i.useEffect)(()=>{p("ontouchstart"in window||navigator.maxTouchPoints>0)},[]);let E="menu"==n?w.ICONS.CHEVRON_DOWN_MENU:w.ICONS.CHEVRON_DOWN;return(0,t.jsx)(T.Provider,{value:{isOpen:u,setOpen:h},children:(0,t.jsxs)("div",{className:`${k.default.dropdown} ${a}`,ref:g,onMouseEnter:function(){m||(v.current&&clearTimeout(v.current),h(!0))},onMouseLeave:function(){m||("menu"===n?v.current=setTimeout(()=>{h(!1)},0):h(!1))},onBlur:function(e){g.current&&!g.current.contains(e.relatedTarget)&&h(!1)},onKeyDown:function(e){let t=e.target;if(!(t?.closest(".dropdown-content")||t?.tagName==="INPUT"||t?.tagName==="TEXTAREA"||t?.tagName==="SELECT"||t?.isContentEditable))switch(e.key){case"Enter":case" ":document.activeElement===y.current&&(e.preventDefault(),h(e=>!e));break;case"Escape":h(!1),setTimeout(()=>{y.current?.focus()},0);break;case"ArrowDown":case"ArrowUp":u||(e.preventDefault(),h(!0))}},children:[(0,t.jsx)(b.default,{ref:y,type:n||"dropdown",style:"menu"==n?"transparent":s,color:r||"red",icon:E,title:o||"Select",onClick:function(){if(P.current){P.current=!1;return}h(e=>!e)},onFocus:function(){_.current&&!u&&(h(!0),P.current=!0),_.current=!1},onPointerDown:function(){_.current=!0},"aria-haspopup":"true","aria-expanded":u,"aria-controls":f}),(0,t.jsx)(x,{initial:!1,children:u&&(0,t.jsx)("div",{ref:S,id:f,className:`${k.default["dropdown-content"]} ${c?k.default["dropdown-content--upward"]:""} dropdown-content`,onClick:function(e){l&&h(!1)},role:"menu","aria-orientation":"vertical",children:e})})]})})}],82795)},12573,e=>{e.v({"global-container":"global-container-module-scss-module___xk6NW__global-container","layout-aside-left":"global-container-module-scss-module___xk6NW__layout-aside-left","layout-conseil":"global-container-module-scss-module___xk6NW__layout-conseil"})},20419,e=>{"use strict";var t=e.i(91398),i=e.i(12573);e.s(["default",0,e=>{let{children:n,bgColor:s,className:r,layout:a="default",...o}=e;return(0,t.jsx)("div",{className:`global-container-wrapper ${r??""} ${i.default["global-container"]} ${i.default[`layout-${a}`]}`,...o,children:n})}])},81312,e=>{e.v({"external-icon":"menu-listitems-module-scss-module__AZ2OBq__external-icon","external-link":"menu-listitems-module-scss-module__AZ2OBq__external-link","has-icon":"menu-listitems-module-scss-module__AZ2OBq__has-icon","menu-item":"menu-listitems-module-scss-module__AZ2OBq__menu-item","menu-list-items":"menu-listitems-module-scss-module__AZ2OBq__menu-list-items"})},52007,e=>{"use strict";var t=e.i(91398),i=e.i(3828),n=e.i(91788),s=e.i(82795),r=e.i(81312);e.s(["default",0,()=>{let{locale:e}=(0,i.useRouter)(),[a,o]=(0,n.useState)(null),l=e=>{let t=document.querySelector(`link[rel="alternate"][hreflang="${e}"]`);return t?t.getAttribute("href"):null};return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(s.Dropdown,{type:"menu",title:"fr"===e?"Français":"English",children:(0,t.jsx)("ul",{className:r.default["menu-list-items"],children:["fr","en"].map(i=>{let n=e===i;return(0,t.jsx)("li",{value:i,className:r.default["menu-item"],children:n?(0,t.jsx)("span",{className:"label","aria-current":"true",children:"fr"===i?"Français":"English"}):(0,t.jsx)("a",{href:a??"#",onClick:()=>(t=>{if(t!==e){let i=new URL(window.location.href).search,n=l(t);if(n){let e=new URL(n,window.location.origin);e.search=i,window.location.href=e.toString()}else window.location.href=("fr"===e?"/en":"/")+i}})(i),onMouseEnter:()=>{let t;(t=l("fr"===e?"en":"fr"))&&o(t)},title:"fr"===i?"Français":"English",children:(0,t.jsx)("span",{className:"label",children:"fr"===i?"Français":"English"})})},i)})})})})}])},22073,e=>{e.v({"pre-footer":"prefooter-module-scss-module__HIzIqq__pre-footer","pre-footer-btn":"prefooter-module-scss-module__HIzIqq__pre-footer-btn","pre-footer-content":"prefooter-module-scss-module__HIzIqq__pre-footer-content","pre-footer-deco":"prefooter-module-scss-module__HIzIqq__pre-footer-deco","pre-footer-description":"prefooter-module-scss-module__HIzIqq__pre-footer-description","pre-footer-text":"prefooter-module-scss-module__HIzIqq__pre-footer-text"})},11143,e=>{e.v({"search-dropdown-container":"search-dropdown-container-module-scss-module__TnYN3a__search-dropdown-container"})},91170,e=>{e.v({"search-autocomplete-item":"search-autocomplete-module-scss-module__myGXVW__search-autocomplete-item","search-autocomplete-list":"search-autocomplete-module-scss-module__myGXVW__search-autocomplete-list"})},11081,e=>{e.v({"btn-search":"search-input-module-scss-module__TvMcJW__btn-search","search-dropdown":"search-input-module-scss-module__TvMcJW__search-dropdown","search-input":"search-input-module-scss-module__TvMcJW__search-input","search-input-wrapper":"search-input-module-scss-module__TvMcJW__search-input-wrapper"})},65125,e=>{e.v({"btn-menu-close":"search-modale-module-scss-module__APqraa__btn-menu-close","search-input-desktop":"search-modale-module-scss-module__APqraa__search-input-desktop","search-modal":"search-modale-module-scss-module__APqraa__search-modal"})},86611,e=>{e.v({"search-suggestions-item":"search-suggestions-module-scss-module__1WAK-G__search-suggestions-item","search-suggestions-list":"search-suggestions-module-scss-module__1WAK-G__search-suggestions-list","search-suggestions-title":"search-suggestions-module-scss-module__1WAK-G__search-suggestions-title"})},34718,e=>{"use strict";var t=e.i(91398),i=e.i(77051),n=e.i(43705),s=e.i(61696);let r=(e,t)=>t.map(t=>e[t]??t).join(" ");e.s(["getButton",0,(e,i="primary",s="filled",r="white",a="black")=>(0,t.jsx)(n.default,{title:e.title??"",href:e.url??"",type:i,style:s,color:r,secondaryColor:a}),"getClassNames",0,r,"getHtmlAsElement",0,(e,n={},a=[])=>{if(!e)return(0,t.jsx)("div",{className:r(n,a)});let o=s.decode(e),l=i.default.sanitize(o);return(0,t.jsx)("div",{className:r(n,a),dangerouslySetInnerHTML:{__html:l}})},"getTitleElement",0,(e,i="p",n={},s=[])=>(0,t.jsx)(i,{className:r(n,s),children:e})])},240,e=>{"use strict";let t=(e,t)=>{if(!e||e.startsWith("/")||e.startsWith("#")||e.startsWith("?")||!e.startsWith("http://")&&!e.startsWith("https://"))return!1;try{let i=new URL(e),n=t?.replace("www.spedidam.fr","spedidam.fr");if(n||(n=window.location.hostname?.replace("www.spedidam.fr","spedidam.fr")),!n)return!0;return i.hostname?.replace("www.spedidam.fr","spedidam.fr")!==n}catch(e){return!1}};e.s(["getLinkAttributes",0,(e,i)=>t(e,i)?{target:"_blank",rel:"noopener noreferrer"}:{target:"_self",rel:void 0},"isExternalLink",0,t])}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.