@windstream/react-shared-components 0.1.20 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/README.md +635 -635
  2. package/dist/contentful/index.esm.js +3 -3
  3. package/dist/contentful/index.esm.js.map +1 -1
  4. package/dist/contentful/index.js +1 -1
  5. package/dist/contentful/index.js.map +1 -1
  6. package/dist/core.d.ts +1 -1
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.esm.js +6 -6
  9. package/dist/index.esm.js.map +1 -1
  10. package/dist/index.js +6 -6
  11. package/dist/index.js.map +1 -1
  12. package/package.json +182 -182
  13. package/src/components/accordion/Accordion.stories.tsx +230 -230
  14. package/src/components/accordion/types.ts +11 -11
  15. package/src/components/alert-card/AlertCard.stories.tsx +171 -171
  16. package/src/components/alert-card/index.tsx +41 -41
  17. package/src/components/alert-card/types.ts +13 -13
  18. package/src/components/brand-button/BrandButton.stories.tsx +223 -223
  19. package/src/components/brand-button/helpers.ts +35 -35
  20. package/src/components/brand-button/index.tsx +115 -115
  21. package/src/components/brand-button/types.ts +37 -37
  22. package/src/components/button/Button.stories.tsx +108 -108
  23. package/src/components/button/index.tsx +27 -27
  24. package/src/components/button/types.ts +14 -14
  25. package/src/components/call-button/CallButton.stories.tsx +324 -324
  26. package/src/components/call-button/index.tsx +86 -86
  27. package/src/components/call-button/types.ts +11 -11
  28. package/src/components/checkbox/Checkbox.stories.tsx +247 -247
  29. package/src/components/checkbox/index.tsx +197 -197
  30. package/src/components/checkbox/types.ts +27 -27
  31. package/src/components/checklist/Checklist.stories.tsx +150 -150
  32. package/src/components/checklist/index.tsx +59 -59
  33. package/src/components/checklist/types.ts +16 -16
  34. package/src/components/collapse/Collapse.stories.tsx +255 -255
  35. package/src/components/collapse/index.tsx +46 -46
  36. package/src/components/collapse/types.ts +6 -6
  37. package/src/components/divider/Divider.stories.tsx +205 -205
  38. package/src/components/divider/index.tsx +22 -22
  39. package/src/components/divider/type.ts +3 -3
  40. package/src/components/image/Image.stories.tsx +113 -113
  41. package/src/components/image/index.tsx +25 -25
  42. package/src/components/image/types.ts +40 -40
  43. package/src/components/input/Input.stories.tsx +325 -325
  44. package/src/components/input/index.tsx +177 -177
  45. package/src/components/input/types.ts +37 -37
  46. package/src/components/link/Link.stories.tsx +163 -163
  47. package/src/components/link/index.tsx +14 -2
  48. package/src/components/link/types.ts +25 -25
  49. package/src/components/list/List.stories.tsx +272 -272
  50. package/src/components/list/index.tsx +88 -88
  51. package/src/components/list/list-item/index.tsx +38 -38
  52. package/src/components/list/list-item/types.ts +13 -13
  53. package/src/components/list/types.ts +29 -29
  54. package/src/components/material-icon/MaterialIcon.stories.tsx +322 -322
  55. package/src/components/material-icon/constants.ts +98 -98
  56. package/src/components/material-icon/index.tsx +47 -47
  57. package/src/components/material-icon/types.ts +31 -31
  58. package/src/components/modal/Modal.stories.tsx +171 -171
  59. package/src/components/modal/index.tsx +164 -164
  60. package/src/components/modal/types.ts +24 -24
  61. package/src/components/next-image/index.tsx +54 -54
  62. package/src/components/next-image/types.ts +1 -1
  63. package/src/components/pagination/index.tsx +100 -100
  64. package/src/components/pagination/types.ts +6 -6
  65. package/src/components/radio-button/RadioButton.stories.tsx +307 -307
  66. package/src/components/radio-button/index.tsx +75 -75
  67. package/src/components/radio-button/types.ts +21 -21
  68. package/src/components/see-more/SeeMore.stories.tsx +181 -181
  69. package/src/components/see-more/index.tsx +44 -44
  70. package/src/components/see-more/types.ts +4 -4
  71. package/src/components/select/Select.stories.tsx +411 -411
  72. package/src/components/select/index.tsx +155 -155
  73. package/src/components/select/types.ts +36 -36
  74. package/src/components/select-plan-button/SelectPlanButton.stories.tsx +184 -184
  75. package/src/components/select-plan-button/index.tsx +57 -57
  76. package/src/components/select-plan-button/types.ts +14 -14
  77. package/src/components/skeleton/Skeleton.stories.tsx +179 -179
  78. package/src/components/skeleton/index.tsx +61 -61
  79. package/src/components/skeleton/types.ts +4 -4
  80. package/src/components/spinner/Spinner.stories.tsx +335 -335
  81. package/src/components/spinner/index.tsx +44 -44
  82. package/src/components/spinner/types.ts +5 -5
  83. package/src/components/text/Text.stories.tsx +321 -321
  84. package/src/components/text/index.tsx +25 -25
  85. package/src/components/text/types.ts +45 -45
  86. package/src/components/tooltip/Tooltip.stories.tsx +219 -219
  87. package/src/components/tooltip/index.tsx +74 -74
  88. package/src/components/tooltip/types.ts +7 -7
  89. package/src/components/view-cart-button/ViewCartButton.stories.tsx +252 -252
  90. package/src/components/view-cart-button/index.tsx +42 -42
  91. package/src/components/view-cart-button/types.ts +5 -5
  92. package/src/contentful/blocks/address-input-banner/index.tsx +52 -52
  93. package/src/contentful/blocks/address-input-banner/types.ts +14 -14
  94. package/src/contentful/blocks/blogs-grid/index.tsx +129 -129
  95. package/src/contentful/blocks/blogs-grid/types.ts +26 -26
  96. package/src/contentful/blocks/button/Button.stories.tsx +40 -40
  97. package/src/contentful/blocks/button/index.tsx +121 -121
  98. package/src/contentful/blocks/button/types.ts +36 -36
  99. package/src/contentful/blocks/callout/Callout.stories.tsx +23 -23
  100. package/src/contentful/blocks/callout/index.tsx +86 -86
  101. package/src/contentful/blocks/callout/types.ts +15 -15
  102. package/src/contentful/blocks/cards/Cards.stories.tsx +23 -23
  103. package/src/contentful/blocks/cards/blog-card/index.tsx +104 -104
  104. package/src/contentful/blocks/cards/blog-card/types.ts +15 -15
  105. package/src/contentful/blocks/cards/index.tsx +13 -13
  106. package/src/contentful/blocks/cards/product-card/index.tsx +208 -208
  107. package/src/contentful/blocks/cards/product-card/types.ts +28 -28
  108. package/src/contentful/blocks/cards/testimonial-card/index.tsx +88 -88
  109. package/src/contentful/blocks/cards/testimonial-card/types.tsx +12 -12
  110. package/src/contentful/blocks/cards/types.ts +1 -1
  111. package/src/contentful/blocks/carousel/Carousel.stories.tsx +23 -23
  112. package/src/contentful/blocks/carousel/helper.tsx +356 -356
  113. package/src/contentful/blocks/carousel/index.tsx +73 -73
  114. package/src/contentful/blocks/carousel/types.ts +143 -143
  115. package/src/contentful/blocks/cta-callout/CtaCallout.stories.tsx +46 -46
  116. package/src/contentful/blocks/cta-callout/index.tsx +60 -60
  117. package/src/contentful/blocks/cta-callout/types.ts +26 -26
  118. package/src/contentful/blocks/dynamic-tabs/index.tsx +204 -204
  119. package/src/contentful/blocks/dynamic-tabs/types.ts +21 -21
  120. package/src/contentful/blocks/find-kinetic/index.tsx +130 -130
  121. package/src/contentful/blocks/floating-banner/FloatingBanner.stories.tsx +34 -34
  122. package/src/contentful/blocks/floating-banner/index.tsx +97 -97
  123. package/src/contentful/blocks/floating-banner/types.ts +22 -22
  124. package/src/contentful/blocks/footer/Footer.stories.tsx +30 -30
  125. package/src/contentful/blocks/image-promo-bar/ImagePromoBar.stories.tsx +23 -23
  126. package/src/contentful/blocks/image-promo-bar/helper.tsx +28 -28
  127. package/src/contentful/blocks/image-promo-bar/types.ts +44 -44
  128. package/src/contentful/blocks/image-promo-bar/vimeo-embed.tsx +93 -93
  129. package/src/contentful/blocks/image-promo-bar/youtube-embed.tsx +46 -46
  130. package/src/contentful/blocks/modal/constants.ts +53 -53
  131. package/src/contentful/blocks/modal/index.tsx +91 -91
  132. package/src/contentful/blocks/modal/types.ts +12 -12
  133. package/src/contentful/blocks/navigation/desktop-link-groups.tsx/index.tsx +113 -113
  134. package/src/contentful/blocks/navigation/index.tsx +394 -394
  135. package/src/contentful/blocks/navigation/mobile-link-groups.tsx/index.tsx +82 -82
  136. package/src/contentful/blocks/navigation/types.ts +41 -41
  137. package/src/contentful/blocks/primary-hero/PrimaryHero.stories.tsx +23 -23
  138. package/src/contentful/blocks/primary-hero/index.tsx +234 -234
  139. package/src/contentful/blocks/primary-hero/types.ts +35 -35
  140. package/src/contentful/blocks/search-block/index.tsx +90 -90
  141. package/src/contentful/blocks/shape-background-wrapper/ShapeBackgroundWrapper.stories.tsx +26 -26
  142. package/src/contentful/blocks/shape-background-wrapper/index.tsx +124 -124
  143. package/src/contentful/blocks/shape-background-wrapper/types.ts +36 -36
  144. package/src/contentful/blocks/text/Text.stories.tsx +23 -23
  145. package/src/contentful/blocks/text/index.tsx +12 -12
  146. package/src/contentful/blocks/text/types.ts +1 -1
  147. package/src/contentful/index.ts +75 -75
  148. package/src/hooks/use-body-scroll-lock.ts +34 -34
  149. package/src/hooks/use-outside-click.ts +17 -17
  150. package/src/index.ts +96 -96
  151. package/src/next/index.ts +5 -5
  152. package/src/setupTests.ts +46 -46
  153. package/src/stories/DocsTemplate.tsx +24 -24
  154. package/src/styles/globals.css +343 -343
  155. package/src/types/global.d.ts +9 -9
  156. package/src/types/micro-components.ts +99 -99
  157. package/src/types/utm.ts +49 -49
  158. package/src/utils/cookie.ts +58 -58
  159. package/src/utils/index.ts +65 -65
  160. package/src/utils/utm.ts +221 -221
@@ -2,7 +2,7 @@
2
2
 
3
3
  "use strict";var e=require("react/jsx-runtime"),t=require("react"),n=require("next/image"),r=require("next/link"),o=require("react-dom"),i=require("next/navigation");function s(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var a=s(t);function l(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=l(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function c(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=l(e))&&(r&&(r+=" "),r+=t);return r}const u=e=>{const t=h(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),d(n,t)||m(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},d=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?d(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},p=/^\[(.+)\]$/,m=e=>{if(p.test(e)){const t=p.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},h=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)f(n[e],r,e,t);return r},f=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:g(t,e)).classGroupId=n)}if("function"==typeof e)return b(e)?void f(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{f(o,g(t,e),n,r)})})},g=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},b=e=>e.isThemeGetter,v=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},x=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,i=0;for(let s=0;s<e.length;s++){let a=e[s];if(0===r&&0===o){if(":"===a){t.push(e.slice(i,s)),i=s+1;continue}if("/"===a){n=s;continue}}"["===a?r++:"]"===a?r--:"("===a?o++:")"===a&&o--}const s=0===t.length?e:e.substring(i),a=y(s);return{modifiers:t,hasImportantModifier:a!==s,baseClassName:a,maybePostfixModifierPosition:n&&n>i?n-i:void 0}};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},y=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,I=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)}),n.push(...r.sort()),n}},C=/\s+/;function w(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=A(e))&&(r&&(r+=" "),r+=t);return r}const A=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=A(e[r]))&&(n&&(n+=" "),n+=t);return n};function N(e,...t){let n,r,o,i=function(a){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:v(e.cacheSize),parseClassName:x(e),sortModifiers:I(e),...u(e)}))(l),r=n.cache.get,o=n.cache.set,i=s,s(a)};function s(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(C);let l="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(c){l=t+(l.length>0?" "+l:l);continue}let h=!!m,f=r(h?p.substring(0,m):p);if(!f){if(!h){l=t+(l.length>0?" "+l:l);continue}if(f=r(p),!f){l=t+(l.length>0?" "+l:l);continue}h=!1}const g=i(u).join(":"),b=d?g+"!":g,v=b+f;if(s.includes(v))continue;s.push(v);const x=o(f,h);for(let e=0;e<x.length;++e){const t=x[e];s.push(b+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,i),i}return function(){return i(w.apply(null,arguments))}}const j=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},k=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,G=/^\((?:(\w[\w-]*):)?(.+)\)$/i,P=/^\d+\/\d+$/,V=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,B=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,S=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,R=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,E=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,T=e=>P.test(e),M=e=>!!e&&!Number.isNaN(Number(e)),X=e=>!!e&&Number.isInteger(Number(e)),W=e=>e.endsWith("%")&&M(e.slice(0,-1)),F=e=>V.test(e),L=()=>!0,O=e=>B.test(e)&&!S.test(e),D=()=>!1,Z=e=>R.test(e),z=e=>E.test(e),H=e=>!J(e)&&!q(e),Y=e=>se(e,ue,D),J=e=>k.test(e),U=e=>se(e,de,O),$=e=>se(e,pe,M),Q=e=>se(e,le,D),_=e=>se(e,ce,z),K=e=>se(e,he,Z),q=e=>G.test(e),ee=e=>ae(e,de),te=e=>ae(e,me),ne=e=>ae(e,le),re=e=>ae(e,ue),oe=e=>ae(e,ce),ie=e=>ae(e,he,!0),se=(e,t,n)=>{const r=k.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},ae=(e,t,n=!1)=>{const r=G.exec(e);return!!r&&(r[1]?t(r[1]):n)},le=e=>"position"===e||"percentage"===e,ce=e=>"image"===e||"url"===e,ue=e=>"length"===e||"size"===e||"bg-size"===e,de=e=>"length"===e,pe=e=>"number"===e,me=e=>"family-name"===e,he=e=>"shadow"===e,fe=()=>{const e=j("color"),t=j("font"),n=j("text"),r=j("font-weight"),o=j("tracking"),i=j("leading"),s=j("breakpoint"),a=j("container"),l=j("spacing"),c=j("radius"),u=j("shadow"),d=j("inset-shadow"),p=j("text-shadow"),m=j("drop-shadow"),h=j("blur"),f=j("perspective"),g=j("aspect"),b=j("ease"),v=j("animate"),x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",q,J],y=()=>[q,J,l],I=()=>[T,"full","auto",...y()],C=()=>[X,"none","subgrid",q,J],w=()=>["auto",{span:["full",X,q,J]},X,q,J],A=()=>[X,"auto",q,J],N=()=>["auto","min","max","fr",q,J],k=()=>["auto",...y()],G=()=>[T,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],P=()=>[e,q,J],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ne,Q,{position:[q,J]}],B=()=>["auto","cover","contain",re,Y,{size:[q,J]}],S=()=>[W,ee,U],R=()=>["","none","full",c,q,J],E=()=>["",M,ee,U],O=()=>[M,W,ne,Q],D=()=>["","none",h,q,J],Z=()=>["none",M,q,J],z=()=>["none",M,q,J],se=()=>[M,q,J],ae=()=>[T,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[F],breakpoint:[F],color:[L],container:[F],"drop-shadow":[F],ease:["in","out","in-out"],font:[H],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[F],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[F],shadow:[F],spacing:["px",M],text:[F],"text-shadow":[F],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",T,J,q,g]}],container:["container"],columns:[{columns:[M,J,q,a]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[X,"auto",q,J]}],basis:[{basis:[T,"full","auto",a,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[M,T,"auto","initial","none",J]}],grow:[{grow:["",M,q,J]}],shrink:[{shrink:["",M,q,J]}],order:[{order:[X,"first","last","none",q,J]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:w()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:w()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":N()}],"auto-rows":[{"auto-rows":N()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[a,"screen",...G()]}],"min-w":[{"min-w":[a,"screen","none",...G()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",n,ee,U]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,q,$]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",W,J]}],"font-family":[{font:[te,J,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,q,J]}],"line-clamp":[{"line-clamp":[M,"none",q,$]}],leading:[{leading:[i,...y()]}],"list-image":[{"list-image":["none",q,J]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",q,J]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[M,"from-font","auto",q,U]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[M,"auto",q,J]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q,J]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q,J]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:V()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:B()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},X,q,J],radial:["",q,J],conic:[X,q,J]},oe,_]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:R()}],"rounded-s":[{"rounded-s":R()}],"rounded-e":[{"rounded-e":R()}],"rounded-t":[{"rounded-t":R()}],"rounded-r":[{"rounded-r":R()}],"rounded-b":[{"rounded-b":R()}],"rounded-l":[{"rounded-l":R()}],"rounded-ss":[{"rounded-ss":R()}],"rounded-se":[{"rounded-se":R()}],"rounded-ee":[{"rounded-ee":R()}],"rounded-es":[{"rounded-es":R()}],"rounded-tl":[{"rounded-tl":R()}],"rounded-tr":[{"rounded-tr":R()}],"rounded-br":[{"rounded-br":R()}],"rounded-bl":[{"rounded-bl":R()}],"border-w":[{border:E()}],"border-w-x":[{"border-x":E()}],"border-w-y":[{"border-y":E()}],"border-w-s":[{"border-s":E()}],"border-w-e":[{"border-e":E()}],"border-w-t":[{"border-t":E()}],"border-w-r":[{"border-r":E()}],"border-w-b":[{"border-b":E()}],"border-w-l":[{"border-l":E()}],"divide-x":[{"divide-x":E()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":E()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[M,q,J]}],"outline-w":[{outline:["",M,ee,U]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",u,ie,K]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",d,ie,K]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:E()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[M,U]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":E()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",p,ie,K]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[M,q,J]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[M]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[q,J]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[M]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:V()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:B()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",q,J]}],filter:[{filter:["","none",q,J]}],blur:[{blur:D()}],brightness:[{brightness:[M,q,J]}],contrast:[{contrast:[M,q,J]}],"drop-shadow":[{"drop-shadow":["","none",m,ie,K]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",M,q,J]}],"hue-rotate":[{"hue-rotate":[M,q,J]}],invert:[{invert:["",M,q,J]}],saturate:[{saturate:[M,q,J]}],sepia:[{sepia:["",M,q,J]}],"backdrop-filter":[{"backdrop-filter":["","none",q,J]}],"backdrop-blur":[{"backdrop-blur":D()}],"backdrop-brightness":[{"backdrop-brightness":[M,q,J]}],"backdrop-contrast":[{"backdrop-contrast":[M,q,J]}],"backdrop-grayscale":[{"backdrop-grayscale":["",M,q,J]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[M,q,J]}],"backdrop-invert":[{"backdrop-invert":["",M,q,J]}],"backdrop-opacity":[{"backdrop-opacity":[M,q,J]}],"backdrop-saturate":[{"backdrop-saturate":[M,q,J]}],"backdrop-sepia":[{"backdrop-sepia":["",M,q,J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",q,J]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[M,"initial",q,J]}],ease:[{ease:["linear","initial",b,q,J]}],delay:[{delay:[M,q,J]}],animate:[{animate:["none",v,q,J]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,q,J]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:Z()}],"rotate-x":[{"rotate-x":Z()}],"rotate-y":[{"rotate-y":Z()}],"rotate-z":[{"rotate-z":Z()}],scale:[{scale:z()}],"scale-x":[{"scale-x":z()}],"scale-y":[{"scale-y":z()}],"scale-z":[{"scale-z":z()}],"scale-3d":["scale-3d"],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[q,J,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ae()}],"translate-x":[{"translate-x":ae()}],"translate-y":[{"translate-y":ae()}],"translate-z":[{"translate-z":ae()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q,J]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q,J]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[M,ee,U,$]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ge=(e,t,n)=>{void 0!==n&&(e[t]=n)},be=(e,t)=>{if(t)for(const n in t)ge(e,n,t[n])},ve=(e,t)=>{if(t)for(const n in t)xe(e,t,n)},xe=(e,t,n)=>{const r=t[n];void 0!==r&&(e[n]=e[n]?e[n].concat(r):r)};
4
4
  /*! js-cookie v3.0.5 | MIT */
5
- function ye(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}!function e(t,n){function r(e,r,o){if("undefined"!=typeof document){"number"==typeof(o=ye({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var s in o)o[s]&&(i+="; "+s,!0!==o[s]&&(i+="="+o[s].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+i}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),s=i.slice(1).join("=");try{var a=decodeURIComponent(i[0]);if(r[a]=t.read(s,a),e===a)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",ye({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,ye({},this.attributes,t))},withConverter:function(t){return e(ye({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const Ie=["utm_content","utm_medium","utm_campaign","utm_source","utm_term","utm_campaign_id","utm_adgroup_id","fbclid","gclid","msclkid"];const Ce=((e,...t)=>"function"==typeof e?N(fe,e,...t):N(()=>((e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:o={},override:i={}})=>(ge(e,"cacheSize",t),ge(e,"prefix",n),ge(e,"experimentalParseClassName",r),be(e.theme,i.theme),be(e.classGroups,i.classGroups),be(e.conflictingClassGroups,i.conflictingClassGroups),be(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),ge(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),ve(e.theme,o.theme),ve(e.classGroups,o.classGroups),ve(e.conflictingClassGroups,o.conflictingClassGroups),ve(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),xe(e,o,"orderSensitiveModifiers"),e))(fe(),e),...t))({extend:{classGroups:{"font-variants":["heading1","heading2","heading3","heading4","heading5","heading6","subheading1","subheading2","subheading3","subheading4","subheading5","subheading6","body1","body2","body3","footnote","micro","label1","label2","label3","label4"],"button-sizes":["btn-small","btn-medium","btn-large","btn-x-large"]}}}),we=(...e)=>Ce(c(...e)),Ae=t.forwardRef(({children:t,className:n="",style:r,disabled:o,...i},s)=>e.jsx("button",{ref:s,className:we(n),style:r,disabled:o,...i,children:t}));Ae.displayName="Button";const Ne=n=>{const{open:r,children:o}=n,i=t.useRef(null),[s,a]=t.useState(0);return t.useEffect(()=>{const e=i.current;if(!e)return;const t=()=>{a(r?e.scrollHeight:0)};let n;return t(),r&&(n=new ResizeObserver(()=>t()),n.observe(e)),()=>{n&&n.disconnect()}},[r,o]),e.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{maxHeight:s,opacity:r?1:0},"aria-hidden":!r,children:e.jsx("div",{ref:i,children:o})})};Ne.displayName="Collapse";const je=({name:t,fill:n=0,opticalSize:r="48dp",weight:o="200",emphasis:i=145,size:s=24,color:a="currentColor",style:l={},className:c,onClick:u,dataTestId:d})=>{const p={fontVariationSettings:`'FILL' ${n}, 'wght' ${o}, 'GRAD' ${i}, 'opsz' ${r.substring(0,2)}`,fontSize:`${s}px`,fontFamily:"'Material Symbols Rounded'",color:a||"currentColor",...l};return e.jsx("span",{style:p,className:we("material-symbols-rounded inline-block max-w-[52px] overflow-hidden",c),onClick:u,"data-testid":d,children:t})};je.displayName="MaterialIcon";const ke=n=>{const{title:r,defaultOpen:o,children:i,containerClassName:s,titleClassName:a,className:l,buttonClassName:c,openOnlyOnDesktop:u,borderRadiusNone:d=!1}=n,[p,m]=t.useState(Boolean(!1));return t.useEffect(()=>{if(u){const e=window.innerWidth>=1024;m(e)}else m(Boolean(o))},[u,o]),e.jsxs("div",{className:we(d?"rounded-none border":"rounded-surface-xs border",s),children:[e.jsxs(Ae,{type:"button",className:we(d?"rounded-none":"rounded-t-surface-xs","flex w-full items-center justify-between gap-4 px-4 py-3 text-left",c),onClick:()=>m(e=>!e),children:[e.jsx("span",{className:we("label5",a),children:r}),e.jsx(je,{name:p?"keyboard_arrow_down":"keyboard_arrow_up",fill:1,size:24})]}),e.jsx(Ne,{open:p,children:e.jsx("div",{className:we("px-4 py-4",l),children:i})})]})};ke.displayName="Accordion";const Ge=t.forwardRef(({children:e,as:n,className:r="",style:o,...i},s)=>{const a=n||"p";return t.createElement(a,{ref:s,className:r,style:o,...i},e)});Ge.displayName="Text";const Pe=({href:t,title:o,description:i,date:s,category:a,image:l,readMoreText:c="Read more",asGrid:u=!0})=>{const d=u?"flex h-full flex-col overflow-hidden rounded-xl bg-white shadow-[0_1px_4px_rgba(0,0,0,0.08),0_4px_16px_rgba(0,0,0,0.06)] transition-all duration-200 hover:-translate-y-0.5 hover:shadow-[0_4px_12px_rgba(0,0,0,0.12),0_8px_24px_rgba(0,0,0,0.10)]":"callout-card lg:w-[calc(33.3333%-1rem)] md:w-[calc(50%-1rem)] w-full overflow-hidden rounded-xl bg-white shadow-[0_1px_4px_rgba(0,0,0,0.08),0_4px_16px_rgba(0,0,0,0.06)] transition-all duration-200 hover:-translate-y-0.5 hover:shadow-[0_4px_12px_rgba(0,0,0,0.12),0_8px_24px_rgba(0,0,0,0.10)]";return e.jsxs("article",{className:d,children:[e.jsx(r,{href:t,tabIndex:-1,"aria-hidden":"true",className:"block",children:e.jsx("div",{className:"aspect-video w-full flex-shrink-0 overflow-hidden bg-gray-100",children:l?e.jsx(n,{src:l.src,alt:l.alt,width:l.width,height:l.height,className:"h-full w-full object-cover transition-transform duration-300 hover:scale-[1.03]",sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"}):e.jsx("div",{className:"h-full w-full bg-gradient-to-br from-gray-200 to-gray-100","aria-hidden":"true"})})}),e.jsxs("div",{className:"flex flex-1 flex-col gap-5 p-5 pb-6",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[13px]",children:[e.jsx("span",{className:"text-body2 font-semibold text-text-brand",children:a}),s&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-xs text-text","aria-hidden":"true",children:"•"}),e.jsx("time",{className:"text-body2 text-text",children:s})]})]}),o&&e.jsx(r,{href:t,className:"m-0 line-clamp-3 text-heading6 font-black transition-colors duration-150 hover:text-text-brand",children:o}),i&&e.jsx(Ge,{className:"m-0 line-clamp-3 flex-1 text-body1",children:i}),e.jsx(r,{href:t,className:"group mt-auto inline-flex justify-between pt-3 text-sm text-text-brand no-underline transition-all duration-200 hover:gap-2.5 hover:text-[#007ab8]","aria-label":`${c} about ${o||"this article"}`,children:e.jsxs(Ae,{"aria-label":`${c} about ${o||"this article"}`,className:"flex w-36 justify-around text-nowrap text-label1 font-black",children:[c,e.jsx(je,{name:"expand_circle_right",fill:0,size:24,weight:"600"})]})})]})]})},Ve=e=>{let t="";return e.base&&(t="x-large"===e.base?"label3 ":"label4 "),e.md&&(t+="x-large"===e.md?"md:label3 ":"md:label4 "),e.lg&&(t+="x-large"===e.lg?"lg:label3 ":"lg:label4 "),t.trim()},Be=t.forwardRef(({variant:t="primary_brand",isLoading:n=!1,text:r,label:o,disabled:i,fullWidth:s,size:a={base:"medium"},as:l="button",...c},u)=>{const d=(()=>{const e=we((e=>{let t="";return e.base&&(t=`btn-${e.base} `),e.md&&(t+=`${(e=>{switch(e){case"small":return"md:btn-small";case"medium":return"md:btn-medium";case"large":return"md:btn-large";case"x-large":return"md:btn-x-large"}})(e.md)} `),e.lg&&(t+=`lg:btn-${e.lg} `),t.trim()})(a),"rounded-button pl-15 pr-15 inline-flex gap-2 items-center justify-center outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer transition-colors duration-200 align-top",s&&"w-full"),r=we((i||n)&&"cursor-not-allowed",n&&"pl-7",i&&"bg-bg-fill-brand-disabled");return we(e,{primary_brand:"bg-bg-fill-brand text-text-brand-on-bg-fill enabled:hover:bg-bg-fill-brand-hover focus:ring-bg-fill-brand",primary_inverse:"bg-bg-surface-inverse text-text-inverse enabled:hover:bg-bg-fill-inverse-hover focus:ring-bg-surface-inverse",secondary:"border border-border-secondary-on-bg-fill bg-bg-fill-secondary text-text hover:bg-bg-fill-secondary-hover focus:bg-bg-fill-secondary focus:ring-input-border-hover"}[t]||"",r)})();let p=`button--${t}`;n&&(p+=" button--loading"),i&&(p+=" button--disabled");const m=`${p} ${d}`,h=e.jsxs(e.Fragment,{children:[n?e.jsx(je,{name:"progress_activity",className:"animate-spin"}):null,o?e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:we(Ve(a)),children:o}),r]}):r]});return"a"===l?e.jsx("a",{ref:u,className:we(m),...c,children:h}):e.jsx("button",{ref:u,className:we(m),disabled:i||n,...c,children:h})});Be.displayName="BrandButton";const Se=t.forwardRef(({children:t,href:n,className:r="",onClick:o,variant:i="unstyled",style:s,external:a=!1,disabled:l=!1,...c},u)=>{const d=(()=>{if("unstyled"===i)return"";const e={default:"text-text underline"},t=[l?"opacity-60 cursor-not-allowed pointer-events-none":"cursor-pointer"].filter(Boolean).join(" ");return["transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",e[i]||e.default,t].filter(Boolean).join(" ")})(),p={...c,ref:u,className:we(d,`link--${i}`,l&&"link--disabled",r),style:s,href:l?void 0:n,onClick:e=>{l?e.preventDefault():null==o||o(e)},...a&&!l&&{target:"_blank",rel:"noopener noreferrer"},...l&&{"aria-disabled":!0,tabIndex:-1}};return e.jsx("a",{...p,children:t})});Se.displayName="Link";const Re=t=>{const{showButtonAs:n="solid",buttonVariant:r="primary_brand",buttonLabel:o,buttonPrefix:i,href:s,target:a="_blank",anchorId:l,linkClassName:c,linkVariant:u,fullWidth:d,preDefinedFunctionExecution:p,renderCheckPlans:m,buttonClassName:h,clickToOpen:f,tabmodalNameToOpen:g,onModalButtonClick:b,onClick:v,iconName:x,size:y,preserveQueryParameters:I,...C}=t;if("check availability"===p){return null==m?void 0:m({ctaText:o,buttonVariant:r,showButtonAs:n,cta:{...t}})}function w(){"modal"===f&&(null==b||b(g))}function A(e){w(),null==v||v(e)}function N(e){w(),null==v||v(e)}const j="undefined"!=typeof window?window.location.search:"",k=s&&I&&j?function(e,t){if(!t)return e;const n=new URLSearchParams(t),r=new Set(Ie),o=new Set([...r,"searchtext","page"]);let i,s;try{if(e.startsWith("http://")||e.startsWith("https://")){const t=new URL(e);i=t.origin+t.pathname,s=t.searchParams}else{const[t,n]=e.split("?");i=t,s=new URLSearchParams(n||"")}}catch(t){return e}const a=new URLSearchParams(s);n.forEach((e,t)=>{o.has(t.toLowerCase())||a.has(t)||a.set(t,e)});const l=a.toString();return l?`${i}?${l}`:i}(s,j):s;let G=e.jsx(Ae,{onClick:N,className:h,...C});switch(n){case"solid":G=k?e.jsx(Be,{as:"a",href:k,id:l,variant:r,text:o,label:i,fullWidth:d,size:y,onClick:A}):e.jsx(Be,{id:l,variant:r,text:o,label:i,fullWidth:d,size:y,onClick:N});break;case"text":G=e.jsxs(Se,{href:k,target:a,variant:u||"default",className:`text-text-brand ${c||""}`,onClick:A,children:[o," ",x&&e.jsx(je,{name:x,size:24})]})}return G},Ee={blue:"bg-fill-brand",green:"bg-fill-brand-accent",navy:"bg-fill-inverse",purple:"bg-fill-brand-tertiary",white:"bg-white",yellow:"bg-[#F5FF1E]"},Te=({src:e,width:t,quality:n})=>{const r=new URL(e);return r.searchParams.set("w",String(t)),r.searchParams.set("q",String(n||90)),r.searchParams.set("fm","webp"),r.toString()},Me=t.forwardRef(({className:t,...r},o)=>{const i="string"==typeof r.src?r.src:"",s=i.toLowerCase().split("?")[0]||"",a=i.includes("images.ctfassets.net"),l=a&&s.endsWith(".svg"),c=a&&!l?{loader:Te,unoptimized:!1}:{unoptimized:l};return e.jsx(n,{ref:o,className:we(t),...r,...c})});Me.displayName="NextImage";const Xe=({card:t,lgWidth:n,mdWidth:r})=>{var o,i,s;const a=(null===(o=t.imageAlignment)||void 0===o?void 0:o.toLowerCase())||"left",l="left"===a?"lg:items-start":"right"===a?"lg:items-end":"lg:items-center";return e.jsx("div",{className:`callout-card ${r} ${n} w-full ${null!==(s=Ee[null!==(i=t.backgroundColor)&&void 0!==i?i:""])&&void 0!==s?s:""}`,children:e.jsxs("div",{className:`card-template flex h-full flex-col items-center gap-8 p-8 text-center ${l}`,children:[e.jsx("div",{className:"card-header",children:(t=>{var n,r,o;if(!t.image)return null;return"full"===(null===(n=t.imageView)||void 0===n?void 0:n.toLowerCase())?e.jsx(Me,{width:400,height:280,src:t.image,alt:null!==(r=t.title)&&void 0!==r?r:"card-icon",className:"rounded-3xl"}):e.jsx(Me,{width:88,height:88,src:t.image,alt:null!==(o=t.title)&&void 0!==o?o:"card-icon"})})(t)}),e.jsxs("div",{className:"card-body flex flex-col gap-3 text-start",children:[t.title&&e.jsx(Ge,{as:"h5",className:"heading5 font-black",children:t.title}),t.body&&e.jsx(Ge,{as:"div",className:"body1",children:t.body})]}),t.cta&&e.jsx("div",{className:"card-footer",children:e.jsx(Re,{linkVariant:"unstyled",linkClassName:"label1 flex items-center text-text gap-2",...t.cta,iconName:"expand_circle_right"})})]})})},We={green:"#209A61",yellow:"#F5FF36",blue:"#0393BA"},Fe=t.forwardRef(({children:t,className:n="",variant:r="unstyled",style:o,...i},s)=>{const a=we("unstyled"===r?"":"mb-1 leading-6","list-item",`list-item--${r}`,n);return e.jsx("li",{ref:s,className:a,style:o,...i,children:t})});Fe.displayName="ListItem";const Le=t.forwardRef(({type:t="ul",items:n,className:r="",renderItem:o,children:i,variant:s="unstyled",style:a,...l},c)=>{const u=(()=>{if("unstyled"===s)return"";return`m-0 p-0 ${"ol"===t?"pl-6 list-decimal":"pl-5 list-disc"}`})(),d=we(u,`list--${t}`,`list--${s}`,r),p=i||(n&&0!==n.length?n.map((t,n)=>o?o(t,n):e.jsx(Fe,{className:t.className,variant:s,children:t.content},t.id||n)):null),m={className:d,style:a,...l,children:p};return"ol"===t?e.jsx("ol",{...m,ref:c}):e.jsx("ul",{...m,ref:c})});Le.displayName="List";const Oe=t=>{const{items:n,listIconName:r="check",listItemClassName:o,iconSize:i=20,iconPosition:s="center",iconColor:a="green",iconClassName:l}=t,c="disc"!==r;return(null==n?void 0:n.length)?e.jsx(Le,{className:"mt-2 space-y-1",variant:c?"unstyled":"default",children:n.map((t,n)=>e.jsxs(Fe,{variant:c?"unstyled":"default",className:we(`${c?"flex":""} ${"top"===s?"items-start":"items-center"} gap-2 text-text-secondary`,o),children:[c&&e.jsx("div",{children:e.jsx(je,{name:r,size:i,color:We[a],weight:"600",className:we("top"===s?"mt-1":"",l)})}),e.jsx(Ge,{as:"div",children:t})]},n))}):null};Oe.displayName="Checklist";const De=t.forwardRef(({as:t,className:n="",...r},o)=>{const i=we(n);if(t){const n=t;return e.jsx(n,{ref:o,className:i,...r})}return e.jsx("img",{ref:o,className:i,...r})});De.displayName="Image";const Ze=({onSelect:n,speed:r,isSelected:o=!1,renderCheckPlans:i,cta:s,techType:a,isMax:l})=>{const[c,u]=t.useState(!1),d=`btn-medium rounded-button pl-15 pr-15 inline-flex gap-2 items-center justify-center outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer transition-colors duration-200 align-top ${o?" bg-bg-surface text-text focus:ring-bg-fill-surface-inverse":" bg-bg-fill-brand text-text-brand-on-bg-fill enabled:hover:bg-bg-fill-brand-hover focus:ring-bg-fill-brand"} `,p=null==i?void 0:i({speedCardConfig:{isModalOpen:c,setModalOpen:()=>{u(!1)},speed:r,techType:a,isMax:l},cta:s});return e.jsxs(e.Fragment,{children:[e.jsxs(Ae,{onClick:()=>{u(!0),n()},className:we(d,"w-full justify-between pl-5 pr-5"),"data-track-element-name":"speed_plan_select_button","data-track-click-text":`Select plan speed ${r}`,"data-track-element-clicked":"speed_plan_card",children:[e.jsx("span",{children:"Select plan"}),e.jsx("span",{className:"inline-flex h-6 w-6 items-center justify-center rounded-full "+(o?"bg-bg-fill-surface-inverse text-text-inverse":"bg-bg text-text"),children:e.jsx(je,{name:"chevron_right",fill:1,size:24})})]}),p]})},ze=({planName:n,planSubtext:r,speed:o,price:i,description:s,bestValue:a=!1,bestValueText:l="best value",giftBadge:c,innerBadge:u,theme:d="light",featuresTitle:p="Business Ready Internet features",features:m=[],isExpanded:h,onToggleExpand:f,onCtaClick:g,renderCheckPlans:b,cta:v,techType:x,ismaxSpeed:y})=>{const[I,C]=t.useState(!1),w=void 0!==h?h:I,A="dark"===d;return e.jsxs("article",{className:we("relative flex h-full w-full max-w-[392px] flex-col",!a&&"pt-[28px]"),children:[a&&e.jsx("div",{className:"rounded-t-[20px] bg-bg-fill-brand-accent px-4 py-1 text-center text-sm font-bold text-text",children:l}),e.jsxs("div",{className:we("flex flex-grow flex-col gap-6 rounded-[20px] px-5 shadow-cardDrop",A?"bg-bg-fill-inverse text-white":"bg-white text-text",a?"rounded-t-none":""),children:[e.jsxs("header",{className:"overflow-none flex items-start justify-between gap-4 pt-7",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx(Ge,{as:"h3",className:we("subheading2 whitespace-nowrap font-black",A?"text-bg-fill-brand-accent":"text-text-brand"),children:n}),e.jsx(Ge,{as:"p",className:`text-label3 font-black ${A?"text-bg-fill-brand-accent":"text-text-brand"} md:whitespace-nowrap`,children:r})]}),e.jsxs("div",{className:"flex items-start",children:[e.jsx("span",{className:"text-xl font-normal",children:"$"}),e.jsx("span",{className:"text-subheading6 font-medium leading-none",children:i.split(".")[0]}),e.jsxs("span",{className:"text-sm font-black",children:[i.split(".")[1],"/mo"]})]})]}),e.jsx("section",{children:e.jsx(Ge,{className:we("text-base",A?"text-white":"text-text"),children:s})}),e.jsx("div",{className:we("flex-col items-center rounded-xl p-2",A?"bg-bg-surface-inverse":"bg-gray-200"),children:c&&(null==c?void 0:c.map(t=>e.jsxs("div",{className:"flex items-center gap-2 p-1",children:[e.jsx(De,{src:t.icon,alt:t.title,width:24,height:24}),e.jsx(Ge,{as:"div",className:"text-sm font-bold",children:t.title})]},t.title)))}),e.jsx(Ze,{onSelect:g,speed:o,isSelected:A,renderCheckPlans:b,cta:v,techType:x,isMax:y}),m.length>0&&e.jsxs("section",{className:"flex flex-col gap-6",children:[e.jsxs(Ae,{onClick:()=>{f?f():C(!I)},className:"group flex w-full items-center justify-between text-left",children:[e.jsx(Ge,{as:"h4",className:"text-base font-bold",children:p}),e.jsx(je,{name:"keyboard_arrow_up",fill:1,size:24,className:we("transition-transform duration-300",w&&"rotate-180")})]}),e.jsxs("div",{className:we("overflow-hidden transition-all duration-300 ease-in-out",w?"pb-7 opacity-100":"max-h-0 opacity-0"),children:[e.jsx("div",{className:"flex flex-col gap-3",children:e.jsx(Oe,{items:m,iconColor:A?"yellow":"green",listItemClassName:""+(A?"text-white":"text-text")})}),(null==u?void 0:u.badgeIcon)?e.jsxs("div",{className:"flex items-center gap-2 text-center",children:[e.jsx(De,{src:u.badgeIcon,alt:"Inner Badge",width:12,height:12}),e.jsx("span",{className:"text-sm",children:u.badgeText.includes("|")?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"font-bold",children:u.badgeText.split("|")[0]}),e.jsx("span",{className:"font-normal",children:u.badgeText.split("|")[1]})]}):e.jsx(Ge,{className:"font-bold",children:u.badgeText})})]}):null]})]})]})]})},He=({title:t,quote:r,rating:o,author:i,role:s,avatarUrl:a,isActive:l=!1,className:u})=>e.jsxs("figure",{className:c("flex h-full w-full flex-col rounded-3xl p-6 font-sans transition-all duration-300 md:p-13",l?"bg-white shadow-lg":"bg-gray-50 opacity-60",u),children:[e.jsx("header",{children:e.jsx(Ge,{as:"h3",className:"mb-4 text-xl font-black lowercase text-text",children:t})}),e.jsx("blockquote",{className:"mb-5 flex-grow text-xl leading-relaxed text-text",children:r}),o?e.jsx("div",{className:"mb-5 flex gap-1",children:[...Array(5)].map((t,n)=>e.jsx(je,{size:24,name:"star",fill:1,className:c("h-5 w-5",n<o?"text-text":"text-gray-300"),"aria-hidden":"true"},n))}):null,i&&e.jsxs("figcaption",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"relative h-10 w-10 shrink-0 overflow-hidden rounded-full bg-gray-300",children:a?e.jsx(n,{src:a,alt:i,fill:!0,className:"object-cover",sizes:"40px"}):e.jsx("div",{className:"flex h-full w-full items-center justify-center bg-gray-500 text-xs font-bold text-white",children:i.charAt(0)})}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("cite",{className:"text-sm font-bold not-italic text-text",children:i}),e.jsx(Ge,{as:"p",className:"text-xs text-text",children:s})]})]})]});function Ye({fields:n,renderCheckPlans:r}){var o,i,s,a;const l=(null===(s=null===(i=null===(o=null==n?void 0:n.items)||void 0===o?void 0:o.items)||void 0===i?void 0:i[0])||void 0===s?void 0:s.benefitsExpanded)||!1,[c,u]=t.useState(l),[d,p]=t.useState({}),[m,h]=t.useState(0),f=(null===(a=null==n?void 0:n.items)||void 0===a?void 0:a.items)||[],g=f.length>2,b=t.useRef([]),v=t.useCallback(()=>{g&&h(e=>(e+3)%f.length)},[g,f.length]),x=t.useCallback(()=>{g&&h(e=>(e-3+f.length)%f.length)},[g,f.length]);if(t.useEffect(()=>{if(!g)return;const e=()=>{const e=b.current.filter(Boolean);if(0===e.length)return;e.forEach(e=>{e.style.height="auto"});const t=Math.max(...e.map(e=>e.offsetHeight));e.forEach(e=>{e.style.height=`${t}px`})};e();const t=setTimeout(e,100);return()=>clearTimeout(t)},[g,c,f.length]),!f.length&&!(null==n?void 0:n.title))return null;const y=(t,n,o=!1)=>{var i,s,a,l,m,h,f,g;const v=null===(i=null==t?void 0:t.speed)||void 0===i?void 0:i.split("|"),x=(null==v?void 0:v[0])||"",y=(null==v?void 0:v[1])||"",I=(null===(a=null===(s=null==t?void 0:t.priceSuffix)||void 0===s?void 0:s.split("/"))||void 0===a?void 0:a[0])||"00",C=`${(null==t?void 0:t.price)||"0"}.${I}`,w=(null===(l=null==t?void 0:t.benefits)||void 0===l?void 0:l.items)||[],A=(null==t?void 0:t.highlighted)||!1,N=(null===(h=null===(m=null==t?void 0:t.giftRewards)||void 0===m?void 0:m.list)||void 0===h?void 0:h.items)||[],j={badgeText:t.innerBadge||"",badgeIcon:(null===(f=t.innerBadgeIcon)||void 0===f?void 0:f.url)||""},k=o?d[n]||!1:c;return e.jsx("div",{ref:o?void 0:e=>{e&&!b.current.includes(e)&&(b.current[n]=e)},className:we(o?"mx-auto w-full max-w-[392px]":"w-[392px] flex-shrink-0"),children:e.jsx(ze,{planName:x,planSubtext:y,speed:(null==t?void 0:t.speed)||"",techType:(null==t?void 0:t.techType)||"",ismaxSpeed:(null==t?void 0:t.ismaxSpeed)||"",price:C,description:(null==t?void 0:t.productCardDescription)||"",giftBadge:N,innerBadge:j,theme:(null==t?void 0:t.highlighted)?"dark":"light",bestValue:A,bestValueText:(null==t?void 0:t.topBadgeText)||"best value",featuresTitle:null==t?void 0:t.benefitsTitle,features:w,isExpanded:k,onToggleExpand:()=>{o?p(e=>({...e,[n]:!e[n]})):u(!c)},ctaText:(null===(g=null==t?void 0:t.cta)||void 0===g?void 0:g.buttonLabel)||"Select plan",onCtaClick:()=>{},renderCheckPlans:r,cta:t.cta,hostType:"smb"})},n)},I=[...f,...f,...f,...f,...f],C=2*f.length;return g?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex flex-col gap-6 md:hidden",children:f.map((e,t)=>y(e,t,!0))}),e.jsxs("div",{className:"relative hidden w-full md:block",children:[e.jsxs("div",{className:"pointer-events-none absolute -left-16 -right-16 top-[50%] z-30 flex -translate-y-1/2 justify-between px-4 md:px-10",children:[e.jsx(Ae,{onClick:v,className:"pointer-events-auto flex h-12 w-12 items-center justify-center rounded-full border border-gray-100 bg-white p-2 text-text shadow-cardDrop transition-all hover:bg-gray-50","aria-label":"Previous",children:e.jsx(je,{name:"arrow_back",size:24})}),e.jsx(Ae,{onClick:x,className:"pointer-events-auto flex h-12 w-12 items-center justify-center rounded-full border border-gray-100 bg-white p-2 text-text shadow-cardDrop transition-all hover:bg-gray-50","aria-label":"Next",children:e.jsx(je,{name:"arrow_forward",size:24})})]}),e.jsx("div",{className:"mx-auto max-w-[1280px] overflow-hidden",children:e.jsx("div",{className:"flex items-stretch gap-4 pb-4 transition-transform duration-500 ease-in-out",style:{transform:`translateX(calc(-${C+m} * (392px + 12px)))`},children:I.map((e,t)=>y(e,t,!1))})})]})]}):e.jsx("div",{className:"flex w-full max-w-[1280px] flex-wrap justify-center gap-8 px-4",children:f.map((e,t)=>y(e,t))})}const Je=({fields:n})=>{var r;const o=(null===(r=null==n?void 0:n.items)||void 0===r?void 0:r.items)||[],[i,s]=t.useState(0),a=t.useRef(null),l=t.useCallback(()=>{0!==o.length&&s(e=>(e+1)%o.length)},[o.length]),c=t.useCallback(()=>{0!==o.length&&s(e=>0===e?o.length-1:e-1)},[o.length]);return t.useEffect(()=>{if(0!==o.length)return a.current=setInterval(()=>{l()},8e3),()=>{a.current&&clearInterval(a.current)}},[l,o.length]),o&&0!==o.length?e.jsxs("div",{className:"relative mx-auto max-w-[1280px] overflow-hidden md:px-24",children:[e.jsx(Ae,{onClick:c,className:"group absolute left-4 top-1/2 z-20 hidden h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full bg-white p-2 text-text shadow-md transition-colors hover:bg-gray-100 md:flex","aria-label":"Previous",children:e.jsx(je,{name:"arrow_back",size:24})}),e.jsx("div",{className:"grid grid-cols-1 justify-items-center",children:o.map((t,n)=>{let r=n-i;const s=o.length;r>s/2&&(r-=s),r<-s/2&&(r+=s);const a=0===r;return e.jsx("div",{className:we("col-start-1 row-start-1 w-full md:max-w-[815px]",a?"opacity-100":"opacity-0","md:opacity-100"),style:{transform:`translateX(${a?"0%":105*r+"%"})`,zIndex:a?10:5,visibility:Math.abs(r)>1?"hidden":"visible",transition:"all 0.5s ease-in-out"},children:e.jsx(He,{...t,isActive:a,className:"h-full"})},n)})}),e.jsx(Ae,{onClick:l,className:"group absolute right-4 top-1/2 z-20 hidden h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full bg-white p-2 text-text shadow-md transition-colors hover:bg-gray-100 md:flex","aria-label":"Next",children:e.jsx(je,{name:"arrow_forward",size:24})}),e.jsx("div",{className:"mt-8 hidden justify-center gap-2 md:flex",children:o.map((t,n)=>e.jsx("button",{onClick:()=>s(n),className:we("h-2 w-2 rounded-full transition-all duration-300",i===n?"w-6 bg-white":"bg-white/40 hover:bg-white/60"),"aria-label":`Go to slide ${n+1}`},n))})]}):null},Ue=({tabs:t,activeTab:n,onChange:r,className:o})=>e.jsx("div",{className:we("mx-auto flex w-fit rounded-2xl bg-bg-surface-active p-1",o),children:t.map(t=>e.jsx("button",{onClick:()=>r(t),className:we("min-w-[160px] whitespace-nowrap rounded-2xl bg-bg-surface-active px-4 py-2.5 text-label1 font-black transition-all duration-300",n===t?"bg-bg-fill-brand text-white shadow-md":"text-text-info hover:bg-bg-surface-hover"),children:t},t))}),$e=({isHovered:t,containerClassName:n})=>e.jsx("button",{tabIndex:-1,className:`group flex h-20 w-20 items-center justify-center rounded-full bg-white shadow-xl transition-all duration-300 hover:scale-110 active:scale-95 ${n||""}`,"aria-label":"Play button",children:e.jsx(je,{name:"play_arrow",size:72,fill:1,className:"transition-colors duration-300 "+(t?"text-text-brand":"text-slate-500 group-hover:text-text-brand")})}),Qe=n=>{const{link:r,containerClassName:o,autoplay:i=!1,debug:s=!1}=n,{href:a,embedId:l}=t.useMemo(()=>{if(!r)return{href:"",embedId:""};const e=r.toString(),t=(e=>{const t=e.split(/[?#]/)[0].replace(/\/+$/,""),n=t.match(/vimeo\.com\/(?:.*\/)?(\d{6,})/)||t.match(/player\.vimeo\.com\/video\/(\d{6,})/),r=t.split("/"),o=r[r.length-1];return(null==n?void 0:n[1])?n[1]===o?n[1]:`${n[1]}/${o}`:""})(e);return{href:e,embedId:t}},[r]);if(s&&console.log("[VimeoEmbed] href:",a,"id:",l),!l)return null;const c=function(e){try{const t=new URL(e),n=t.pathname.split("/").filter(Boolean);if("video"===n[0]&&n.length>=2){const e=n[1],r=n[2],o=`https://player.vimeo.com/video/${e}`;return r&&/^[a-f0-9]+$/i.test(r)&&t.searchParams.set("h",r),`${o}?${t.searchParams.toString()}`}return e}catch(t){return e}}(`https://player.vimeo.com/video/${l}?${new URLSearchParams({autoplay:i?"1":"0",muted:"0",playsinline:"1",dnt:"1",title:"0",byline:"0",portrait:"0",autopause:"1"}).toString()}`);return e.jsx("div",{className:we("relative h-0 w-full overflow-hidden pb-[56.25%]",o),children:e.jsx("iframe",{className:"absolute left-0 top-0 h-full w-full",src:c,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin",title:"Embedded vimeo"})})};const _e=n=>{const{link:r,containerClassName:o,autoplay:i=!1}=n,s=t.useMemo(()=>{if(!r)return"";const e=r.toString().match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return e&&11===e[7].length?e[7]:""},[r]),a=i?"?autoplay=1":"";return e.jsx("div",{className:we("relative h-0 w-full overflow-hidden pb-[56.25%]",o),children:e.jsx("iframe",{className:"absolute left-0 top-0 h-full w-full",src:`https://www.youtube.com/embed/${s}${a}`,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Embedded youtube"})})},Ke=({link:n,anchorName:r})=>{const[o,i]=t.useState(!1),s=t.useRef(null);if(((e,n)=>{const r=t=>{var r;(null===(r=null==e?void 0:e.current)||void 0===r?void 0:r.contains(t.target))||n()};t.useEffect(()=>(document.addEventListener("click",r),()=>{document.removeEventListener("click",r)}))})(s,()=>i(!1)),!n)return null;if((e=>"string"==typeof e.href)(n))return e.jsx(Re,{...n,linkClassName:"body3 flex items-center text-text h-full",linkVariant:"unstyled"},`submenu-link-btn-${n.anchorId}`);const{anchorId:a,title:l,items:c}=n,u=Array.isArray(null==c?void 0:c.items)?c.items:[],d=`--link-anchor-${r}`;return e.jsxs("div",{className:"relative h-full",style:{anchorName:d},ref:s,children:[e.jsxs(Re,{onClick:()=>i(e=>!e),"aria-expanded":o,buttonClassName:"group body3 flex h-full text-text items-center",showButtonAs:"unstyled",children:[e.jsx(Ge,{as:"span",className:"group-hover:underline",children:null!=l?l:null}),e.jsx(je,{weight:"200",size:24,className:"text-icon-secondary group-hover:opacity-50",name:o?"keyboard_arrow_up":"keyboard_arrow_down"})]},a),e.jsx("div",{className:we("shadow-navDrop fixed z-10 min-w-44 rounded-input-poppers border border-border bg-bg","transition-[opacity,transform] ease-out",o&&u.length>0?"pointer-events-auto translate-y-0 opacity-100 duration-75":"pointer-events-none -translate-y-2 opacity-0 duration-0"),style:{positionAnchor:d,top:"anchor(bottom)",left:"calc((anchor(left) + anchor(right)) / 2)",translate:"-50% 0"},children:e.jsx("ul",{className:"flex flex-col gap-2 py-2",children:u.map((t,n)=>e.jsx("li",{className:"submenu-link",children:e.jsx(Re,{...t,linkVariant:"unstyled",linkClassName:"body3 px-4 hover:bg-bg-surface-hover flex items-center w-full h-11 text-text-link"})},`submenu-link-${n}`))})})]})},qe=({link:n})=>{const[r,o]=t.useState(!1);if(!n)return null;if((e=>"string"==typeof e.href)(n))return e.jsx(Re,{...n,linkClassName:"label3 flex items-center w-full h-11 px-4 text-text-link",linkVariant:"unstyled"},`submenu-link-btn-${n.anchorId}`);const{anchorId:i,title:s,items:a}=n,l=Array.isArray(null==a?void 0:a.items)?a.items:[];return e.jsxs(e.Fragment,{children:[e.jsxs(Re,{onClick:()=>o(e=>!e),"aria-expanded":r,buttonClassName:"label3 flex h-11 w-full items-center px-4",showButtonAs:"unstyled",children:[null!=s?s:null,e.jsx(je,{weight:"200",size:24,className:"text-icon-secondary group-hover:opacity-50",name:r?"keyboard_arrow_up":"keyboard_arrow_down"})]},i),r&&l.length>0&&e.jsx(et,{items:l})]})},et=({items:t})=>e.jsx("ul",{className:"flex flex-col gap-2",children:t.map((t,n)=>e.jsx("li",{className:"submenu-link",children:e.jsx(Re,{...t,linkVariant:"unstyled",linkClassName:"body3 pl-8 pr-4 flex items-center w-full h-11 text-text-link"})},`submenu-link-${n}`))},`submenu-${t.length}`),tt=t=>{const{showBlinkDot:n=!1,buttonStyle:r="primary",size:o="md",children:i,className:s,...a}=t;return e.jsxs(Se,{...a,className:we("relative flex items-center gap-2 font-medium tracking-wide outline-offset-4 rounded-full",{sm:"h-6 text-xs pl-1 pr-2",md:"h-8 text-sm pl-1 pr-2",lg:"h-10 text-base pl-2 pr-3"}[o],{primary:"border-[0.727px] border-border text-text"}[r],s),children:[n?e.jsx("span",{className:`pointer-events-none absolute animate-blink ${{sm:"-left-4",md:"-left-6",lg:"-left-8"}[o]} top-1/2 ${{sm:"h-2 w-2",md:"h-3 w-3",lg:"h-4 w-4"}[o]} -translate-y-1/2 rounded-full bg-icon-brand`}):null,e.jsx("span",{className:`relative inline-flex ${{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}[o]} items-center justify-center rounded-full bg-icon-brand`,children:e.jsx(je,{name:"call",fill:1,size:{sm:20,md:20,lg:32}[o],className:"text-white"})}),e.jsx("span",{className:"font-normal tracking-wide",children:i})]})};tt.displayName="CallButton";const nt=t.forwardRef((n,r)=>{const{className:o,size:i,required:s,placeholder:a,label:l,state:c,errorText:u,prefixIconName:d,prefixIconFill:p=!0,suffixIconFill:m=!1,prefixIconSize:h=24,suffixIconName:f,suffixIconSize:g=24,containerClassName:b,prefixIconClassName:v,loading:x,hasError:y,type:I,...C}=n,w=y?"error":c,[A,N]=t.useState(!1),[j,k]=t.useState(!1),[G,P]=t.useState(I||"text"),V=t.useCallback(e=>{e.stopPropagation(),P(e=>"password"===e?"text":"password")},[]);return e.jsxs("div",{className:"relative",children:[l?e.jsx("label",{htmlFor:l,className:we("inline-block pb-1"),children:e.jsxs(Ge,{as:"span",className:"footnote text-text",children:[l,s?e.jsx("span",{className:"pl-1 text-text-critical",children:"*"}):null]})}):null,e.jsxs("div",{className:we("relative flex flex-row items-center overflow-hidden rounded-input border border-input-border bg-input-bg-surface",{sm:"h-[48px] px-3 py-2",slim:"h-12",medium:"h-14",large:"h-[60px]"}[i||"medium"],b,(A||"hover"===w)&&!j&&"error"!==w&&"border-input-border-hover",(j||"focus"===w||"active"===w)&&"border-input-border-selected outline outline-1 outline-input-border-selected","error"===w&&"border-input-border-critical outline outline-1 outline-input-border-critical"),children:[d?e.jsx("div",{className:"mr-1",style:{width:h,height:h,overflow:"hidden"},children:e.jsx(je,{name:d,fill:p?1:0,size:h,className:we(v)})}):null,e.jsx("input",{ref:r,id:l,disabled:x||C.disabled,className:we("h-full grow rounded-input p-4 caret-bg-inverse placeholder:text-input-text-placeholder focus:border-none focus:outline-none","text-body2","slim"===i&&"text-body3",o),placeholder:a,type:G,...C,onMouseOver:()=>N(!0),onMouseOut:()=>N(!1),onFocus:e=>{var t;null===(t=C.onFocus)||void 0===t||t.call(C,e),k(!0)},onBlur:e=>{var t;null===(t=C.onBlur)||void 0===t||t.call(C,e),k(!1)}}),f?e.jsx("div",{className:"ml-2",style:{width:g,height:g,overflow:"hidden"},onClick:V,children:e.jsx(je,{name:"text"===G?"visibility":"visibility_off",size:g,fill:m?1:0})}):null]}),"error"===w&&u&&""!=u?e.jsxs(Ge,{className:we("footnote left-0 top-full inline-flex items-center pt-1 text-text-critical"),children:[e.jsx(je,{name:"info",size:20,className:"mr-1"}),u||"Error"]}):null]})});nt.displayName="Input";const rt=n=>{var r;const{primaryNavigationLinks:o,utilityNavigationLinks:i,supportNavigationLinks:s,accountNavigationLinks:a}=n,[l,c]=t.useState(!1);t.useEffect(()=>{if("undefined"==typeof window)return;document.body.style.overflowY=l?"hidden":"unset";const e=document.getElementById("drawer-items");if(!e)return;const t=e.querySelectorAll(".focus-item"),n=t[0],r=t[t.length-1],o=e=>{var t,o,i,s;("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===n&&(null===(o=(t=r).focus)||void 0===o||o.call(t),e.preventDefault()):document.activeElement===r&&(null===(s=(i=n).focus)||void 0===s||s.call(i),e.preventDefault()))};return window.addEventListener("keydown",o),()=>{document.body.style.overflowY="unset",window.removeEventListener("keydown",o)}},[l]);const u=()=>{c(!1)};return e.jsxs("div",{children:[e.jsx(Re,{showButtonAs:"unstyled",buttonClassName:"flex",onClick:()=>c(!0),children:e.jsx(je,{name:"menu"})}),l?e.jsx("div",{className:"fixed bottom-0 left-0 right-0 top-0 z-[90] h-full w-full bg-scrim-bg-modal"}):null,e.jsx("div",{className:we("fixed bottom-0 right-0 top-0","z-[100] h-full bg-bg px-0 py-4","transition-all duration-300 ease-in-out","block",l?"right-0":"-right-96"),id:"mobile-menu-overlay",children:e.jsxs("div",{id:"drawer-items",className:"flex h-full flex-col gap-3",children:[e.jsxs("div",{className:"flex items-center justify-between px-4",children:[e.jsx("div",{children:e.jsx(tt,{className:"border-none",href:n.invocaPhoneNumberLink,children:n.invocaPhoneNumberDisplayText})}),e.jsx("div",{children:e.jsx(Re,{showButtonAs:"unstyled",buttonClassName:"focus-item flex",onClick:u,children:e.jsx(je,{name:"close"})})})]}),e.jsx(ot,{closeMenu:u,isMenuOpen:l,searchBarIconURL:"string"==typeof n.searchBarIcon?n.searchBarIcon:(null===(r=n.searchBarIcon)||void 0===r?void 0:r.url)||"",onSearch:n.onSearch||(()=>{})}),e.jsxs("div",{className:"flex-grow overflow-y-auto",children:[e.jsx("ul",{className:"mt-2 flex flex-col gap-2",children:[...o||[],...s||[],...a||[]].map((t,n)=>e.jsx("li",{children:e.jsx(qe,{link:t})},`main-menu-items-${n}`))}),e.jsx("ul",{className:"mt-2 flex gap-5 bg-bg-fill-info px-4",children:null==i?void 0:i.map((t,n)=>e.jsx("li",{children:e.jsx(Re,{...Object.fromEntries(Object.entries(t).filter(([e,t])=>null!==t)),linkClassName:we("footnote flex items-center w-full h-11 text-text-link",1===n&&"label4"),linkVariant:"unstyled"},`utility-submenu-link-btn-${t.anchorId}`)},`utility-menu-items-${n}`))})]})]})})]})},ot=n=>{const{closeMenu:r,onSearch:o,isMenuOpen:i,searchBarIconURL:s}=n,[a,l]=t.useState(""),c=t.useRef(null),u=e=>{r(),e.preventDefault(),o(a)};return t.useEffect(()=>{i||l("")},[i]),e.jsxs("form",{name:"searchForm",className:"flex border-b border-t transition-colors focus-within:border-border-focus",onSubmit:u,children:[e.jsx(Me,{src:s,width:32,height:32,alt:"Search icon",role:"button",className:"ml-2",onClick:u}),e.jsx("div",{className:"flex-grow",children:e.jsx(nt,{ref:c,className:"body3 h-[34px] rounded-none px-3 text-text",name:"search",placeholder:"Search...",value:a,onChange:e=>l(e.target.value),autoComplete:"off",containerClassName:"h-[46px] px-4 pl-0 rounded-none flex-grow border-none"})})]})},it=n=>{const{searchBarIconURL:r,onSearch:o}=n,[i,s]=t.useState(""),a=t.useRef(null),l=e=>{e.preventDefault(),o(i)};return e.jsxs("form",{name:"searchForm",className:"flex h-9 w-60 rounded-input-xl border px-1 transition-colors focus-within:border-border-focus",onSubmit:l,children:[e.jsx(Me,{src:r,width:32,height:32,alt:"Search icon",role:"button",onClick:l}),e.jsx(nt,{ref:a,className:"body3 rounded-full px-3 text-text",name:"search",placeholder:"Search...",value:i,onChange:e=>s(e.target.value),autoComplete:"off",containerClassName:"px-0 h-full border-none rounded-full"})]})},st={closed:{opacity:0},open:{opacity:1}},at={closed:{opacity:0,scale:.96},open:{opacity:1,scale:1}},lt={xs:"475px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},ct=t.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ut=t.createContext({}),dt=t.createContext(null),pt="undefined"!=typeof document,mt=pt?t.useLayoutEffect:t.useEffect,ht=t.createContext({strict:!1});function ft(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function gt(e){return"string"==typeof e||Array.isArray(e)}function bt(e){return"object"==typeof e&&"function"==typeof e.start}const vt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],xt=["initial",...vt];function yt(e){return bt(e.animate)||xt.some(t=>gt(e[t]))}function It(e){return Boolean(yt(e)||e.variants)}function Ct(e){const{initial:n,animate:r}=function(e,t){if(yt(e)){const{initial:t,animate:n}=e;return{initial:!1===t||gt(t)?t:void 0,animate:gt(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,t.useContext(ut));return t.useMemo(()=>({initial:n,animate:r}),[wt(n),wt(r)])}function wt(e){return Array.isArray(e)?e.join(" "):e}const At={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"]},Nt={};for(const e in At)Nt[e]={isEnabled:t=>At[e].some(e=>!!t[e])};const jt=t.createContext({}),kt=t.createContext({}),Gt=Symbol.for("motionComponentSymbol");function Pt({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:o,Component:i}){e&&function(e){for(const t in e)Nt[t]={...Nt[t],...e[t]}}(e);const s=t.forwardRef(function(s,l){let c;const u={...t.useContext(ct),...s,layoutId:Vt(s)},{isStatic:d}=u,p=Ct(s),m=o(s,d);if(!d&&pt){p.visualElement=function(e,n,r,o){const{visualElement:i}=t.useContext(ut),s=t.useContext(ht),a=t.useContext(dt),l=t.useContext(ct).reducedMotion,c=t.useRef();o=o||s.renderer,!c.current&&o&&(c.current=o(e,{visualState:n,parent:i,props:r,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));const u=c.current;return t.useInsertionEffect(()=>{u&&u.update(r,a)}),mt(()=>{u&&u.render()}),t.useEffect(()=>{u&&u.updateFeatures()}),(window.HandoffAppearAnimations?mt:t.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}(i,m,u,n);const r=t.useContext(kt),o=t.useContext(ht).strict;p.visualElement&&(c=p.visualElement.loadFeatures(u,o,e,r))}return a.createElement(ut.Provider,{value:p},c&&p.visualElement?a.createElement(c,{visualElement:p.visualElement,...u}):null,r(i,s,function(e,n,r){return t.useCallback(t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"==typeof r?r(t):ft(r)&&(r.current=t))},[n])}(m,p.visualElement,l),m,d,p.visualElement))});return s[Gt]=i,s}function Vt({layoutId:e}){const n=t.useContext(jt).id;return n&&void 0!==e?n+"-"+e:e}function Bt(e){function t(t,n={}){return Pt(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const St=["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 Rt(e){return"string"==typeof e&&!e.includes("-")&&!!(St.indexOf(e)>-1||/[A-Z]/.test(e))}const Et={};const Tt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Mt=new Set(Tt);function Xt(e,{layout:t,layoutId:n}){return Mt.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Et[e]||"opacity"===e)}const Wt=e=>Boolean(e&&e.getVelocity),Ft={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Lt=Tt.length;const Ot=e=>t=>"string"==typeof t&&t.startsWith(e),Dt=Ot("--"),Zt=Ot("var(--"),zt=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Ht=(e,t,n)=>Math.min(Math.max(n,e),t),Yt={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Jt={...Yt,transform:e=>Ht(0,1,e)},Ut={...Yt,default:1},$t=e=>Math.round(1e5*e)/1e5,Qt=/(-)?([\d]*\.?[\d])+/g,_t=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Kt=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function qt(e){return"string"==typeof e}const en=e=>({test:t=>qt(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),tn=en("deg"),nn=en("%"),rn=en("px"),on=en("vh"),sn=en("vw"),an={...nn,parse:e=>nn.parse(e)/100,transform:e=>nn.transform(100*e)},ln={...Yt,transform:Math.round},cn={borderWidth:rn,borderTopWidth:rn,borderRightWidth:rn,borderBottomWidth:rn,borderLeftWidth:rn,borderRadius:rn,radius:rn,borderTopLeftRadius:rn,borderTopRightRadius:rn,borderBottomRightRadius:rn,borderBottomLeftRadius:rn,width:rn,maxWidth:rn,height:rn,maxHeight:rn,size:rn,top:rn,right:rn,bottom:rn,left:rn,padding:rn,paddingTop:rn,paddingRight:rn,paddingBottom:rn,paddingLeft:rn,margin:rn,marginTop:rn,marginRight:rn,marginBottom:rn,marginLeft:rn,rotate:tn,rotateX:tn,rotateY:tn,rotateZ:tn,scale:Ut,scaleX:Ut,scaleY:Ut,scaleZ:Ut,skew:tn,skewX:tn,skewY:tn,distance:rn,translateX:rn,translateY:rn,translateZ:rn,x:rn,y:rn,z:rn,perspective:rn,transformPerspective:rn,opacity:Jt,originX:an,originY:an,originZ:rn,zIndex:ln,fillOpacity:Jt,strokeOpacity:Jt,numOctaves:ln};function un(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if(Dt(e)){i[e]=n;continue}const r=cn[e],d=zt(n,r);if(Mt.has(e)){if(l=!0,s[e]=d,!u)continue;n!==(r.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,a[e]=d):o[e]=d}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let t=0;t<Lt;t++){const n=Tt[t];void 0!==e[n]&&(i+=`${Ft[n]||n}(${e[n]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,u,r):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;o.transformOrigin=`${e} ${t} ${n}`}}const dn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function pn(e,t,n){for(const r in t)Wt(t[r])||Xt(r,n)||(e[r]=t[r])}function mn(e,n,r){const o={};return pn(o,e.style||{},e),Object.assign(o,function({transformTemplate:e},n,r){return t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return un(t,n,{enableHardwareAcceleration:!r},e),Object.assign({},t.vars,t.style)},[n])}(e,n,r)),e.transformValues?e.transformValues(o):o}function hn(e,t,n){const r={},o=mn(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const fn=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function gn(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||fn.has(e)}let bn=e=>!gn(e);try{(vn=require("@emotion/is-prop-valid").default)&&(bn=e=>e.startsWith("on")?!gn(e):vn(e))}catch(e){}var vn;function xn(e,t,n){return"string"==typeof e?e:rn.transform(t+n*e)}const yn={offset:"stroke-dashoffset",array:"stroke-dasharray"},In={offset:"strokeDashoffset",array:"strokeDasharray"};function Cn(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,d,p){if(un(e,c,u,p),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:m,style:h,dimensions:f}=e;m.transform&&(f&&(h.transform=m.transform),delete m.transform),f&&(void 0!==o||void 0!==i||h.transform)&&(h.transformOrigin=function(e,t,n){return`${xn(t,e.x,e.width)} ${xn(n,e.y,e.height)}`}(f,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(m.x=t),void 0!==n&&(m.y=n),void 0!==r&&(m.scale=r),void 0!==s&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?yn:In;e[i.offset]=rn.transform(-r);const s=rn.transform(t),a=rn.transform(n);e[i.array]=`${s} ${a}`}(m,s,a,l,!1)}const wn=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),An=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Nn(e,n,r,o){const i=t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Cn(t,n,{enableHardwareAcceleration:!1},An(o),e.transformTemplate),{...t.attrs,style:{...t.style}}},[n]);if(e.style){const t={};pn(t,e.style,e),i.style={...t,...i.style}}return i}function jn(e=!1){return(n,r,o,{latestValues:i},s)=>{const a=(Rt(n)?Nn:hn)(r,i,s,n),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(bn(o)||!0===n&&gn(o)||!t&&!gn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(r,"string"==typeof n,e),c={...l,...a,ref:o},{children:u}=r,d=t.useMemo(()=>Wt(u)?u.get():u,[u]);return t.createElement(n,{...c,children:d})}}const kn=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Gn(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const Pn=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Vn(e,t,n,r){Gn(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(Pn.has(n)?n:kn(n),t.attrs[n])}function Bn(e,t){const{style:n}=e,r={};for(const o in n)(Wt(n[o])||t.style&&Wt(t.style[o])||Xt(o,e))&&(r[o]=n[o]);return r}function Sn(e,t){const n=Bn(e,t);for(const r in e)if(Wt(e[r])||Wt(t[r])){n[-1!==Tt.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function Rn(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}function En(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}const Tn=e=>Array.isArray(e),Mn=e=>Tn(e)?e[e.length-1]||0:e;function Xn(e){const t=Wt(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const Wn=e=>(n,r)=>{const o=t.useContext(ut),i=t.useContext(dt),s=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:Fn(r,o,i,e),renderState:t()};return n&&(s.mount=e=>n(r,e,s)),s}(e,n,o,i);return r?s():En(s)};function Fn(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=Xn(i[e]);let{initial:s,animate:a}=e;const l=yt(e),c=It(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let u=!!n&&!1===n.initial;u=u||!1===s;const d=u?a:s;if(d&&"boolean"!=typeof d&&!bt(d)){(Array.isArray(d)?d:[d]).forEach(t=>{const n=Rn(e,t);if(!n)return;const{transitionEnd:r,transition:i,...s}=n;for(const e in s){let t=s[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]})}return o}const Ln={useVisualState:Wn({scrapeMotionValuesFromProps:Sn,createRenderState:wn,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}Cn(n,r,{enableHardwareAcceleration:!1},An(t.tagName),e.transformTemplate),Vn(t,n)}})},On={useVisualState:Wn({scrapeMotionValuesFromProps:Bn,createRenderState:dn})};function Dn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Zn=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function zn(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function Hn(e,t,n,r){return Dn(e,t,(e=>t=>Zn(t)&&e(t,zn(t)))(n),r)}const Yn=(e,t)=>n=>t(e(n)),Jn=(...e)=>e.reduce(Yn);function Un(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const $n=Un("dragHorizontal"),Qn=Un("dragVertical");function _n(e){let t=!1;if("y"===e)t=Qn();else if("x"===e)t=$n();else{const e=$n(),n=Qn();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Kn(){const e=_n(!0);return!e||(e(),!1)}class qn{constructor(e){this.isMounted=!1,this.node=e}update(){}}const er={delta:0,timestamp:0,isProcessing:!1};let tr=!0,nr=!1;const rr=["read","update","preRender","render","postRender"],or=rr.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(e,i=!1,a=!1)=>{const l=a&&o,c=l?t:n;return i&&s.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),s.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),s.has(r)&&(a.schedule(r),e())}o=!1,i&&(i=!1,a.process(l))}}};return a}(()=>nr=!0),e),{}),ir=e=>or[e].process(er),sr=e=>{nr=!1,er.delta=tr?1e3/60:Math.max(Math.min(e-er.timestamp,40),1),er.timestamp=e,er.isProcessing=!0,rr.forEach(ir),er.isProcessing=!1,nr&&(tr=!1,requestAnimationFrame(sr))},ar=rr.reduce((e,t)=>{const n=or[t];return e[t]=(e,t=!1,r=!1)=>(nr||(nr=!0,tr=!0,er.isProcessing||requestAnimationFrame(sr)),n.schedule(e,t,r)),e},{});function lr(e){rr.forEach(t=>or[t].cancel(e))}function cr(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return Hn(e.current,n,(n,o)=>{if("touch"===n.type||Kn())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&ar.update(()=>i[r](n,o))},{passive:!e.getProps()[r]})}const ur=(e,t)=>!!t&&(e===t||ur(e,t.parentElement)),dr=e=>e;function pr(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,zn(n))}const mr=new WeakMap,hr=new WeakMap,fr=e=>{const t=mr.get(e.target);t&&t(e)},gr=e=>{e.forEach(fr)};function br(e,t,n){const r=function({root:e,...t}){const n=e||document;hr.has(n)||hr.set(n,{});const r=hr.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(gr,{root:e,...t})),r[o]}(t);return mr.set(e,n),r.observe(e),()=>{mr.delete(e),r.unobserve(e)}}const vr={some:0,all:1};const xr={inView:{Feature:class extends qn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:vr[r]};return br(this.node.current,i,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends qn{constructor(){super(...arguments),this.removeStartListeners=dr,this.removeEndListeners=dr,this.removeAccessibleListeners=dr,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=Hn(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();ar.update(()=>{ur(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),o=Hn(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Jn(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Dn(this.node.current,"keydown",e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Dn(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&pr("up",(e,t)=>{const{onTap:n}=this.node.getProps();n&&ar.update(()=>n(e,t))})}),pr("down",(e,t)=>{this.startPress(e,t)})}),t=Dn(this.node.current,"blur",()=>{this.isPressing&&pr("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=Jn(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&ar.update(()=>n(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Kn()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&ar.update(()=>n(e,t))}mount(){const e=this.node.getProps(),t=Hn(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Dn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Jn(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends qn{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=Jn(Dn(this.node.current,"focus",()=>this.onFocus()),Dn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends qn{mount(){this.unmount=Jn(cr(this.node,!0),cr(this.node,!1))}unmount(){}}}};function yr(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Ir(e,t,n){const r=e.getProps();return Rn(r,t,void 0!==n?n:r.custom,function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}const Cr="data-"+kn("framerAppearId");let wr=dr,Ar=dr;"production"!==process.env.NODE_ENV&&(wr=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},Ar=(e,t)=>{if(!e)throw new Error(t)});const Nr=e=>1e3*e,jr=e=>e/1e3,kr=!1,Gr=e=>Array.isArray(e)&&"number"==typeof e[0];function Pr(e){return Boolean(!e||"string"==typeof e&&Br[e]||Gr(e)||Array.isArray(e)&&e.every(Pr))}const Vr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Br={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Vr([0,.65,.55,1]),circOut:Vr([.55,0,1,.45]),backIn:Vr([.31,.01,.66,-.59]),backOut:Vr([.33,1.53,.69,.99])};function Sr(e){if(e)return Gr(e)?Vr(e):Array.isArray(e)?e.map(Sr):Br[e]}const Rr={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Er={},Tr={};for(const e in Rr)Tr[e]=()=>(void 0===Er[e]&&(Er[e]=Rr[e]()),Er[e]);const Mr=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Xr(e,t,n,r){if(e===t&&n===r)return dr;const o=t=>function(e,t,n,r,o){let i,s,a=0;do{s=t+(n-t)/2,i=Mr(s,r,o)-e,i>0?n=s:t=s}while(Math.abs(i)>1e-7&&++a<12);return s}(t,0,1,e,n);return e=>0===e||1===e?e:Mr(o(e),t,r)}const Wr=Xr(.42,0,1,1),Fr=Xr(0,0,.58,1),Lr=Xr(.42,0,.58,1),Or=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Dr=e=>t=>1-e(1-t),Zr=e=>1-Math.sin(Math.acos(e)),zr=Dr(Zr),Hr=Or(zr),Yr=Xr(.33,1.53,.69,.99),Jr=Dr(Yr),Ur=Or(Jr),$r={linear:dr,easeIn:Wr,easeInOut:Lr,easeOut:Fr,circIn:Zr,circInOut:Hr,circOut:zr,backIn:Jr,backInOut:Ur,backOut:Yr,anticipate:e=>(e*=2)<1?.5*Jr(e):.5*(2-Math.pow(2,-10*(e-1)))},Qr=e=>{if(Array.isArray(e)){Ar(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Xr(t,n,r,o)}return"string"==typeof e?(Ar(void 0!==$r[e],`Invalid easing type '${e}'`),$r[e]):e},_r=(e,t)=>n=>Boolean(qt(n)&&Kt.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Kr=(e,t,n)=>r=>{if(!qt(r))return r;const[o,i,s,a]=r.match(Qt);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},qr={...Yt,transform:e=>Math.round((e=>Ht(0,255,e))(e))},eo={test:_r("rgb","red"),parse:Kr("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+qr.transform(e)+", "+qr.transform(t)+", "+qr.transform(n)+", "+$t(Jt.transform(r))+")"};const to={test:_r("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:eo.transform},no={test:_r("hsl","hue"),parse:Kr("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+nn.transform($t(t))+", "+nn.transform($t(n))+", "+$t(Jt.transform(r))+")"},ro={test:e=>eo.test(e)||to.test(e)||no.test(e),parse:e=>eo.test(e)?eo.parse(e):no.test(e)?no.parse(e):to.parse(e),transform:e=>qt(e)?e:e.hasOwnProperty("red")?eo.transform(e):no.transform(e)},oo=(e,t,n)=>-n*e+n*t+e;function io(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const so=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},ao=[to,eo,no];function lo(e){const t=(n=e,ao.find(e=>e.test(n)));var n;Ar(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===no&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;o=io(a,r,e+1/3),i=io(a,r,e),s=io(a,r,e-1/3)}else o=i=s=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*s),alpha:r}}(r)),r}const co=(e,t)=>{const n=lo(e),r=lo(t),o={...n};return e=>(o.red=so(n.red,r.red,e),o.green=so(n.green,r.green,e),o.blue=so(n.blue,r.blue,e),o.alpha=oo(n.alpha,r.alpha,e),eo.transform(o))};const uo={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:dr},po={regex:_t,countKey:"Colors",token:"${c}",parse:ro.parse},mo={regex:Qt,countKey:"Numbers",token:"${n}",parse:Yt.parse};function ho(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function fo(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&ho(n,uo),ho(n,po),ho(n,mo),n}function go(e){return fo(e).values}function bo(e){const{values:t,numColors:n,numVars:r,tokenised:o}=fo(e),i=t.length;return e=>{let t=o;for(let o=0;o<i;o++)t=o<r?t.replace(uo.token,e[o]):o<r+n?t.replace(po.token,ro.transform(e[o])):t.replace(mo.token,$t(e[o]));return t}}const vo=e=>"number"==typeof e?0:e;const xo={test:function(e){var t,n;return isNaN(e)&&qt(e)&&((null===(t=e.match(Qt))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(_t))||void 0===n?void 0:n.length)||0)>0},parse:go,createTransformer:bo,getAnimatableNone:function(e){const t=go(e);return bo(e)(t.map(vo))}},yo=(e,t)=>n=>`${n>0?t:e}`;function Io(e,t){return"number"==typeof e?n=>oo(e,t,n):ro.test(e)?co(e,t):e.startsWith("var(")?yo(e,t):Ao(e,t)}const Co=(e,t)=>{const n=[...e],r=n.length,o=e.map((e,n)=>Io(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},wo=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Io(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},Ao=(e,t)=>{const n=xo.createTransformer(t),r=fo(e),o=fo(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Jn(Co(r.values,o.values),n):(wr(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),yo(e,t))},No=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},jo=(e,t)=>n=>oo(e,t,n);function ko(e,t,n){const r=[],o=n||("number"==typeof(i=e[0])?jo:"string"==typeof i?ro.test(i)?co:Ao:Array.isArray(i)?Co:"object"==typeof i?wo:jo);var i;const s=e.length-1;for(let n=0;n<s;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||dr:t;i=Jn(e,i)}r.push(i)}return r}function Go(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Ar(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=ko(t,r,o),a=s.length,l=t=>{let n=0;if(a>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=No(e[n],e[n+1],t);return s[n](r)};return n?t=>l(Ht(e[0],e[i-1],t)):l}function Po(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=No(0,t,r);e.push(oo(n,1,o))}}(t,e.length-1),t}function Vo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Qr):Qr(r),i={done:!1,value:t[0]},s=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:Po(t),e),a=Go(s,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map(()=>c||Lr).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=a(t),i.done=t>=e,i)}}function Bo(e,t){return t?e*(1e3/t):0}function So(e,t,n){const r=Math.max(t-5,0);return Bo(n-e(r),t-r)}const Ro=.001;function Eo({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;wr(e<=Nr(10),"Spring duration must be 10 seconds or less");let s=1-t;s=Ht(.05,1,s),e=Ht(.01,10,jr(e)),s<1?(o=t=>{const r=t*s,o=r*e,i=r-n,a=Mo(t,s),l=Math.exp(-o);return Ro-i/a*l},i=t=>{const r=t*s*e,i=r*n+n,a=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=Mo(Math.pow(t,2),s);return(-o(t)+Ro>0?-1:1)*((i-a)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let n=1;n<To;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=Nr(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}const To=12;function Mo(e,t){return e*Math.sqrt(1-t*t)}const Xo=["duration","bounce"],Wo=["stiffness","damping","mass"];function Fo(e,t){return t.some(t=>void 0!==e[t])}function Lo({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Fo(e,Wo)&&Fo(e,Xo)){const n=Eo(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),m=u?-jr(u):0,h=l/(2*Math.sqrt(a*c)),f=i-o,g=jr(Math.sqrt(a/c)),b=Math.abs(f)<5;let v;if(n||(n=b?.01:2),t||(t=b?.005:.5),h<1){const e=Mo(g,h);v=t=>{const n=Math.exp(-h*g*t);return i-n*((m+h*g*f)/e*Math.sin(e*t)+f*Math.cos(e*t))}}else if(1===h)v=e=>i-Math.exp(-g*e)*(f+(m+g*f)*e);else{const e=g*Math.sqrt(h*h-1);v=t=>{const n=Math.exp(-h*g*t),r=Math.min(e*t,300);return i-n*((m+h*g*f)*Math.sinh(r)+e*f*Math.cosh(r))/e}}return{calculatedDuration:p&&d||null,next:e=>{const r=v(e);if(p)s.done=e>=d;else{let o=m;0!==e&&(o=h<1?So(v,e,r):0);const a=Math.abs(o)<=n,l=Math.abs(i-r)<=t;s.done=a&&l}return s.value=s.done?i:r,s}}}function Oo({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},m=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let h=n*t;const f=d+h,g=void 0===s?f:s(f);g!==f&&(h=g-d);const b=e=>-h*Math.exp(-e/r),v=e=>g+b(e),x=e=>{const t=b(e),n=v(e);p.done=Math.abs(t)<=c,p.value=p.done?g:n};let y,I;const C=e=>{var t;(t=p.value,void 0!==a&&t<a||void 0!==l&&t>l)&&(y=e,I=Lo({keyframes:[p.value,m(p.value)],velocity:So(v,e,p.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return I||void 0!==y||(t=!0,x(e),C(e)),void 0!==y&&e>y?I.next(e-y):(!t&&x(e),p)}}}const Do=e=>{const t=({timestamp:t})=>e(t);return{start:()=>ar.update(t,!0),stop:()=>lr(t),now:()=>er.isProcessing?er.timestamp:performance.now()}};function Zo(e){let t=0;let n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}const zo={decay:Oo,inertia:Oo,tween:Vo,keyframes:Vo,spring:Lo};function Ho({autoplay:e=!0,delay:t=0,driver:n=Do,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...p}){let m,h,f=1,g=!1;const b=()=>{m&&m(),h=new Promise(e=>{m=e})};let v;b();const x=zo[o]||Vo;let y;x!==Vo&&"number"!=typeof r[0]&&(y=Go([0,100],r,{clamp:!1}),r=[0,100]);const I=x({...p,keyframes:r});let C;"mirror"===a&&(C=x({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let w="idle",A=null,N=null,j=null;null===I.calculatedDuration&&i&&(I.calculatedDuration=Zo(I));const{calculatedDuration:k}=I;let G=1/0,P=1/0;null!==k&&(G=k+s,P=G*(i+1)-s);let V=0;const B=e=>{if(null===N)return;f>0&&(N=Math.min(N,e)),V=null!==A?A:(e-N)*f;const n=V-t,o=n<0;V=Math.max(n,0),"finished"===w&&null===A&&(V=P);let l=V,c=I;if(i){const e=V/G;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,i+1);const r=Boolean(t%2);r&&("reverse"===a?(n=1-n,s&&(n-=s/G)):"mirror"===a&&(c=C));let o=Ht(0,1,n);V>P&&(o="reverse"===a&&r?1:0),l=o*G}const u=o?{done:!1,value:r[0]}:c.next(l);y&&(u.value=y(u.value));let{done:p}=u;o||null===k||(p=V>=P);const m=null===A&&("finished"===w||"running"===w&&p||f<0&&V<=0);return d&&d(u.value),m&&E(),u},S=()=>{v&&v.stop(),v=void 0},R=()=>{w="idle",S(),b(),N=j=null},E=()=>{w="finished",u&&u(),S(),b()},T=()=>{if(g)return;v||(v=n(B));const e=v.now();l&&l(),null!==A?N=e-A:N&&"finished"!==w||(N=e),j=N,A=null,w="running",v.start()};e&&T();const M={then:(e,t)=>h.then(e,t),get time(){return jr(V)},set time(e){e=Nr(e),V=e,null===A&&v&&0!==f?N=v.now()-e/f:A=e},get duration(){const e=null===I.calculatedDuration?Zo(I):I.calculatedDuration;return jr(e)},get speed(){return f},set speed(e){e!==f&&v&&(f=e,M.time=jr(V))},get state(){return w},play:T,pause:()=>{w="paused",A=V},stop:()=>{g=!0,"idle"!==w&&(w="idle",c&&c(),R())},cancel:()=>{null!==j&&B(j),R()},complete:()=>{w="finished"},sample:e=>(N=0,B(e))};return M}const Yo=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Jo(e,t,{onUpdate:n,onComplete:r,...o}){if(!(Tr.waapi()&&Yo.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,s,a=!1;const l=()=>{s=new Promise(e=>{i=e})};l();let{keyframes:c,duration:u=300,ease:d,times:p}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!Pr(t.ease))(t,o)){const e=Ho({...o,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;p=void 0,c=n,u=r-10,d="linear"}const m=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Sr(a);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===s?"alternate":"normal"})}(e.owner.current,t,c,{...o,duration:u,ease:d,times:p}),h=()=>m.cancel(),f=()=>{ar.update(h),i(),l()};return m.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(c,o)),r&&r(),f()},{then:(e,t)=>s.then(e,t),get time(){return jr(m.currentTime||0)},set time(e){m.currentTime=Nr(e)},get speed(){return m.playbackRate},set speed(e){m.playbackRate=e},get duration(){return jr(u)},play:()=>{a||(m.play(),lr(h))},pause:()=>m.pause(),stop:()=>{if(a=!0,"idle"===m.playState)return;const{currentTime:t}=m;if(t){const n=Ho({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}f()},complete:()=>m.finish(),cancel:f}}const Uo={type:"spring",stiffness:500,damping:25,restSpeed:10},$o={type:"keyframes",duration:.8},Qo={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_o=(e,{keyframes:t})=>t.length>2?$o:Mt.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Uo:Qo,Ko=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!xo.test(t)&&"0"!==t||t.startsWith("url("))),qo=new Set(["brightness","contrast","saturate","opacity"]);function ei(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Qt)||[];if(!r)return e;const o=n.replace(r,"");let i=qo.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const ti=/([a-z-]*)\(.*?\)/g,ni={...xo,getAnimatableNone:e=>{const t=e.match(ti);return t?t.map(ei).join(" "):e}},ri={...cn,color:ro,backgroundColor:ro,outlineColor:ro,fill:ro,stroke:ro,borderColor:ro,borderTopColor:ro,borderRightColor:ro,borderBottomColor:ro,borderLeftColor:ro,filter:ni,WebkitFilter:ni},oi=e=>ri[e];function ii(e,t){let n=oi(e);return n!==ni&&(n=xo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const si=e=>/^0[^.\s]+$/.test(e);function ai(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||si(e):void 0}function li(e,t){return e[t]||e.default||e}const ci=(e,t,n,r={})=>o=>{const i=li(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a-=Nr(s);const l=function(e,t,n,r){const o=Ko(t,n);let i;i=Array.isArray(n)?[...n]:[null,n];const s=void 0!==r.from?r.from:e.get();let a;const l=[];for(let e=0;e<i.length;e++)null===i[e]&&(i[e]=0===e?s:i[e-1]),ai(i[e])&&l.push(e),"string"==typeof i[e]&&"none"!==i[e]&&"0"!==i[e]&&(a=i[e]);if(o&&l.length&&a)for(let e=0;e<l.length;e++)i[l[e]]=ii(t,a);return i}(t,e,n,i),c=l[0],u=l[l.length-1],d=Ko(e,c),p=Ko(e,u);wr(d===p,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let m={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(i)||(m={...m,..._o(e,m)}),m.duration&&(m.duration=Nr(m.duration)),m.repeatDelay&&(m.repeatDelay=Nr(m.repeatDelay)),!d||!p||kr||!1===i.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:dr,pause:dr,stop:dr,then:e=>(e(),Promise.resolve()),cancel:dr,complete:dr});return t?Ho({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=Jo(t,e,m);if(n)return n}return Ho(m)};function ui(e){return Boolean(Wt(e)&&e.add)}const di=e=>/^\-?\d*\.?\d+$/.test(e);function pi(e,t){-1===e.indexOf(t)&&e.push(t)}function mi(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class hi{constructor(){this.subscriptions=[]}add(e){return pi(this.subscriptions,e),()=>mi(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const fi=new Set;function gi(e,t,n){e||fi.has(t)||(console.warn(t),fi.add(t))}class bi{constructor(e,t={}){var n;this.version="10.12.16",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:n,timestamp:r}=er;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,ar.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>ar.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return"production"!==process.env.NODE_ENV&&gi(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new hi);const n=this.events[e].add(t);return"change"===e?()=>{n(),ar.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Bo(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function vi(e,t){return new bi(e,t)}const xi=e=>t=>t.test(e),yi=[Yt,rn,nn,tn,sn,on,{test:e=>"auto"===e,parse:e=>e}],Ii=e=>yi.find(xi(e)),Ci=[...yi,ro,xo],wi=e=>Ci.find(xi(e));function Ai(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vi(n))}function Ni(e,t){if(!t)return;return(t[e]||t.default||t).from}function ji({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function ki(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in a){const r=e.getValue(t),o=a[t];if(!r||void 0===o||u&&ji(u,t))continue;const s={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[Cr];n&&(s.elapsed=window.HandoffAppearAnimations(n,t,r,ar))}r.start(ci(t,r,o,e.shouldReduceMotion&&Mt.has(t)?{type:!1}:s));const d=r.animation;ui(l)&&(l.add(t),d.then(()=>l.remove(t))),c.push(d)}return s&&Promise.all(c).then(()=>{s&&function(e,t){const n=Ir(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i)Ai(e,t,Mn(i[t]))}(e,s)}),c}function Gi(e,t,n={}){const r=Ir(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(ki(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=o;return function(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(Pi).forEach((e,r)=>{e.notify("AnimationStart",t),s.push(Gi(e,t,{...i,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,i+r,s,a,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[e,t]="beforeChildren"===a?[i,s]:[s,i];return e().then(()=>t())}return Promise.all([i(),s(n.delay)])}function Pi(e,t){return e.sortNodePosition(t)}const Vi=[...vt].reverse(),Bi=vt.length;function Si(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map(t=>Gi(e,t,n));r=Promise.all(o)}else if("string"==typeof t)r=Gi(e,t,n);else{const o="function"==typeof t?Ir(e,t,n.custom):t;r=Promise.all(ki(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}(e,t,n)))}function Ri(e){let t=Si(e);const n={animate:Ti(!0),whileInView:Ti(),whileHover:Ti(),whileTap:Ti(),whileDrag:Ti(),whileFocus:Ti(),exit:Ti()};let r=!0;const o=(t,n)=>{const r=Ir(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,s){const a=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},p=1/0;for(let t=0;t<Bi;t++){const m=Vi[t],h=n[m],f=void 0!==a[m]?a[m]:l[m],g=gt(f),b=m===s?h.isActive:null;!1===b&&(p=t);let v=f===l[m]&&f!==a[m]&&g;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...d},!h.isActive&&null===b||!f&&!h.prevProp||bt(f)||"boolean"==typeof f)continue;const x=Ei(h.prevProp,f);let y=x||m===s&&h.isActive&&!v&&g||t>p&&g;const I=Array.isArray(f)?f:[f];let C=I.reduce(o,{});!1===b&&(C={});const{prevResolvedValues:w={}}=h,A={...w,...C},N=e=>{y=!0,u.delete(e),h.needsAnimating[e]=!0};for(const e in A){const t=C[e],n=w[e];d.hasOwnProperty(e)||(t!==n?Tn(t)&&Tn(n)?!yr(t,n)||x?N(e):h.protectedKeys[e]=!0:void 0!==t?N(e):u.add(e):void 0!==t&&u.has(e)?N(e):h.protectedKeys[e]=!0)}h.prevProp=f,h.prevResolvedValues=C,h.isActive&&(d={...d,...C}),r&&e.blockInitialAnimation&&(y=!1),y&&!v&&c.push(...I.map(e=>({animation:e,options:{type:m,...i}})))}if(u.size){const t={};u.forEach(n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),c.push({animation:t})}let m=Boolean(c.length);return r&&!1===a.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(c):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var s;if(n[t].isActive===r)return Promise.resolve();null===(s=e.variantChildren)||void 0===s||s.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;const a=i(o,t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function Ei(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!yr(t,e)}function Ti(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Mi=0;const Xi={animation:{Feature:class extends qn{constructor(e){super(e),e.animationState||(e.animationState=Ri(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),bt(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends qn{constructor(){super(...arguments),this.id=Mi++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then(()=>t(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Wi=(e,t)=>Math.abs(e-t);class Fi{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Di(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Wi(e.x,t.x),r=Wi(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=er;this.history.push({...r,timestamp:o});const{onStart:i,onMove:s}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Li(t,this.transformPagePoint),ar.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=Di("pointercancel"===e.type?this.lastMoveEventInfo:Li(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!Zn(e))return;this.handlers=t,this.transformPagePoint=n;const r=Li(zn(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=er;this.history=[{...o,timestamp:i}];const{onSessionStart:s}=t;s&&s(e,Di(r,this.history)),this.removeListeners=Jn(Hn(window,"pointermove",this.handlePointerMove),Hn(window,"pointerup",this.handlePointerUp),Hn(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),lr(this.updatePoint)}}function Li(e,t){return t?{point:t(e.point)}:e}function Oi(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Di({point:e},t){return{point:e,delta:Oi(e,zi(t)),offset:Oi(e,Zi(t)),velocity:Hi(t,.1)}}function Zi(e){return e[0]}function zi(e){return e[e.length-1]}function Hi(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=zi(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Nr(t)));)n--;if(!r)return{x:0,y:0};const i=jr(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Yi(e){return e.max-e.min}function Ji(e,t=0,n=.01){return Math.abs(e-t)<=n}function Ui(e,t,n,r=.5){e.origin=r,e.originPoint=oo(t.min,t.max,e.origin),e.scale=Yi(n)/Yi(t),(Ji(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=oo(n.min,n.max,e.origin)-e.originPoint,(Ji(e.translate)||isNaN(e.translate))&&(e.translate=0)}function $i(e,t,n,r){Ui(e.x,t.x,n.x,r?r.originX:void 0),Ui(e.y,t.y,n.y,r?r.originY:void 0)}function Qi(e,t,n){e.min=n.min+t.min,e.max=e.min+Yi(t)}function _i(e,t,n){e.min=t.min-n.min,e.max=e.min+Yi(t)}function Ki(e,t,n){_i(e.x,t.x,n.x),_i(e.y,t.y,n.y)}function qi(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function es(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const ts=.35;function ns(e,t,n){return{min:rs(e,t),max:rs(e,n)}}function rs(e,t){return"number"==typeof e?e:e[t]||0}const os=()=>({x:{min:0,max:0},y:{min:0,max:0}});function is(e){return[e("x"),e("y")]}function ss({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function as(e){return void 0===e||1===e}function ls({scale:e,scaleX:t,scaleY:n}){return!as(e)||!as(t)||!as(n)}function cs(e){return ls(e)||us(e)||e.z||e.rotate||e.rotateX||e.rotateY}function us(e){return ds(e.x)||ds(e.y)}function ds(e){return e&&"0%"!==e}function ps(e,t,n){return n+t*(e-n)}function ms(e,t,n,r,o){return void 0!==o&&(e=ps(e,o,r)),ps(e,n,r)+t}function hs(e,t=0,n=1,r,o){e.min=ms(e.min,t,n,r,o),e.max=ms(e.max,t,n,r,o)}function fs(e,{x:t,y:n}){hs(e.x,t.translate,t.scale,t.originPoint),hs(e.y,n.translate,n.scale,n.originPoint)}function gs(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function bs(e,t){e.min=e.min+t,e.max=e.max+t}function vs(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,s=oo(e.min,e.max,i);hs(e,t[n],t[r],s,t.scale)}const xs=["x","scaleX","originX"],ys=["y","scaleY","originY"];function Is(e,t){vs(e.x,t,xs),vs(e.y,t,ys)}function Cs(e,t){return ss(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const ws=new WeakMap;class As{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new Fi(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(zn(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=_n(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),is(e=>{let t=this.getAxisMotionValue(e).get()||0;if(nn.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=Yi(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),o&&ar.update(()=>o(e,t),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(s),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&ar.update(()=>o(e,t))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!Ns(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?oo(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?oo(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&ft(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:qi(e.x,n,o),y:qi(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=ts){return!1===e?e=0:!0===e&&(e=ts),{x:ns(e,"left","right"),y:ns(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&is(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!ft(e))return!1;const n=e.current;Ar(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=Cs(e,n),{scroll:o}=t;return o&&(bs(r.x,o.offset.x),bs(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:es(e.x,t.x),y:es(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=ss(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=is(s=>{if(!Ns(s,t,this.currentDirection))return;let l=a&&a[s]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(s,d)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(ci(e,n,0,t))}stopAnimation(){is(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){is(t=>{const{drag:n}=this.getProps();if(!Ns(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-oo(n,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!ft(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};is(e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=Yi(e),o=Yi(t);return o>r?n=No(t.min,t.max-r,e.min):r>o&&(n=No(e.min,e.max-o,t.min)),Ht(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),is(t=>{if(!Ns(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(oo(o,i,r[t]))})}addListeners(){if(!this.visualElement.current)return;ws.set(this.visualElement,this);const e=Hn(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();ft(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=Dn(window,"resize",()=>this.scalePositionWithinConstraints()),i=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(is(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=ts,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:s}}}function Ns(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const js=e=>(t,n)=>{e&&ar.update(()=>e(t,n))};const ks={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Gs(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ps={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!rn.test(e))return e;e=parseFloat(e)}return`${Gs(e,t.target.x)}% ${Gs(e,t.target.y)}%`}},Vs={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=xo.parse(e);if(o.length>5)return r;const i=xo.createTransformer(e),s="number"!=typeof o[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=oo(a,l,.5);return"number"==typeof o[2+s]&&(o[2+s]/=c),"number"==typeof o[3+s]&&(o[3+s]/=c),i(o)}};class Bs extends t.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=Rs,Object.assign(Et,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),ks.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||ar.postRender(()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ss(e){const[n,r]=function(){const e=t.useContext(dt);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=e,i=t.useId();return t.useEffect(()=>o(i),[]),!n&&r?[!1,()=>r&&r(i)]:[!0]}(),o=t.useContext(jt);return t.createElement(Bs,{...e,layoutGroup:o,switchLayoutGroup:t.useContext(kt),isPresent:n,safeToRemove:r})}const Rs={borderRadius:{...Ps,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ps,borderTopRightRadius:Ps,borderBottomLeftRadius:Ps,borderBottomRightRadius:Ps,boxShadow:Vs},Es=["TopLeft","TopRight","BottomLeft","BottomRight"],Ts=Es.length,Ms=e=>"string"==typeof e?parseFloat(e):e,Xs=e=>"number"==typeof e||rn.test(e);function Ws(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Fs=Os(0,.5,zr),Ls=Os(.5,.95,dr);function Os(e,t,n){return r=>r<e?0:r>t?1:n(No(e,t,r))}function Ds(e,t){e.min=t.min,e.max=t.max}function Zs(e,t){Ds(e.x,t.x),Ds(e.y,t.y)}function zs(e,t,n,r,o){return e=ps(e-=t,1/n,r),void 0!==o&&(e=ps(e,1/o,r)),e}function Hs(e,t,[n,r,o],i,s){!function(e,t=0,n=1,r=.5,o,i=e,s=e){nn.test(t)&&(t=parseFloat(t),t=oo(s.min,s.max,t/100)-s.min);if("number"!=typeof t)return;let a=oo(i.min,i.max,r);e===i&&(a-=t),e.min=zs(e.min,t,n,a,o),e.max=zs(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,i,s)}const Ys=["x","scaleX","originX"],Js=["y","scaleY","originY"];function Us(e,t,n,r){Hs(e.x,t,Ys,n?n.x:void 0,r?r.x:void 0),Hs(e.y,t,Js,n?n.y:void 0,r?r.y:void 0)}function $s(e){return 0===e.translate&&1===e.scale}function Qs(e){return $s(e.x)&&$s(e.y)}function _s(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Ks(e){return Yi(e.x)/Yi(e.y)}class qs{constructor(){this.members=[]}add(e){pi(this.members,e),e.scheduleRender()}remove(e){if(mi(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ea(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return 1===s&&1===a||(r+=`scale(${s}, ${a})`),r||"none"}const ta=(e,t)=>e.depth-t.depth;class na{constructor(){this.children=[],this.isDirty=!1}add(e){pi(this.children,e),this.isDirty=!0}remove(e){mi(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ta),this.isDirty=!1,this.children.forEach(e)}}const ra=["","X","Y","Z"];let oa=0;const ia={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function sa({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=oa++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;ia.totalNodes=ia.resolvedTargetDeltas=ia.recalculatedProjection=0,this.nodes.forEach(ca),this.nodes.forEach(ga),this.nodes.forEach(ba),this.nodes.forEach(ua),e=ia,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new na)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new hi),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(lr(r),e(i-t))};return ar.read(r,!0),()=>lr(r)}(r,250),ks.hasAnimatedSinceResize&&(ks.hasAnimatedSinceResize=!1,this.nodes.forEach(fa))})}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&s&&(o||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||s.getDefaultTransition()||wa,{onLayoutAnimationStart:i,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!_s(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...li(o,"layout"),onPlay:i,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||fa(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,lr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(va),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(pa);this.isUpdating||this.nodes.forEach(ma),this.isUpdating=!1,this.nodes.forEach(ha),this.nodes.forEach(aa),this.nodes.forEach(la),this.clearAllSnapshots();const e=performance.now();er.delta=Ht(0,1e3/60,e-er.timestamp),er.timestamp=e,er.isProcessing=!0,or.update.process(er),or.preRender.process(er),or.render.process(er),er.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(da),this.sharedNodes.forEach(xa)}scheduleUpdateProjection(){ar.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){ar.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!Qs(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||cs(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Aa((r=n).x),Aa(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(bs(t.x,n.offset.x),bs(t.y,n.offset.y)),t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Zs(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){Zs(t,e);const{scroll:n}=this.root;n&&(bs(t.x,-n.offset.x),bs(t.y,-n.offset.y))}bs(t.x,o.offset.x),bs(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Zs(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Is(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),cs(r.latestValues)&&Is(n,r.latestValues)}return cs(this.latestValues)&&Is(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Zs(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!cs(n.latestValues))continue;ls(n.latestValues)&&n.updateSnapshot();const r=os();Zs(r,n.measurePageBox()),Us(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return cs(this.latestValues)&&Us(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!==er.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=er.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ki(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Zs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,Qi(s.x,a.x,l.x),Qi(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Zs(this.target,this.layout.layoutBox),fs(this.target,this.targetDelta)):Zs(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ki(this.relativeTargetOrigin,this.target,e.target),Zs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ia.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!ls(this.parent.latestValues)&&!us(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===er.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;Zs(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,s;t.x=t.y=1;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Is(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,fs(e,s)),r&&cs(i.latestValues)&&Is(e,i.latestValues))}t.x=gs(t.x),t.y=gs(t.y)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox);const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const c=this.projectionTransform;$i(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=ea(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===s&&this.treeScale.y===a||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),ia.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(Ca));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;ya(i.x,e.x,n),ya(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ki(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){Ia(e.x,t.x,n.x,r),Ia(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,s,n),d&&_s(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),Zs(d,this.relativeTarget)),a&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=oo(0,void 0!==n.opacity?n.opacity:1,Fs(r)),e.opacityExit=oo(void 0!==t.opacity?t.opacity:1,0,Ls(r))):i&&(e.opacity=oo(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<Ts;o++){const i=`border${Es[o]}Radius`;let s=Ws(t,i),a=Ws(n,i);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||Xs(s)===Xs(a)?(e[i]=Math.max(oo(Ms(s),Ms(a),r),0),(nn.test(a)||nn.test(s))&&(e[i]+="%")):e[i]=a)}(t.rotate||n.rotate)&&(e.rotate=oo(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(lr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ar.update(()=>{ks.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Wt(e)?e:vi(e);return r.start(ci("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Na(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=Yi(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Yi(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Zs(t,n),Is(t,o),$i(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new qs);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let t=0;t<ra.length;t++){const o="rotate"+ra[t];n[o]&&(r[o]=n[o],e.setStaticValue(o,0))}e.render();for(const t in r)e.setStaticValue(t,r[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Xn(e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Xn(e.pointerEvents)||""),this.hasProjected&&!cs(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const s=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=ea(this.projectionDeltaWithTransform,this.treeScale,s),o&&(r.transform=o(s,r.transform));const{x:a,y:l}=this.projectionDelta;r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const e in Et){if(void 0===s[e])continue;const{correct:t,applyTo:n}=Et[e],o="none"===r.transform?s[e]:t(s[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?Xn(e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(pa),this.root.sharedNodes.clear()}}}function aa(e){e.updateLayout()}function la(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?is(e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=Yi(r);r.min=t[e].min,r.max=r.min+o}):Na(o,n.layoutBox,t)&&is(r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],s=Yi(t[r]);o.max=o.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};$i(s,t,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?$i(a,e.applyTransform(r,!0),n.measuredBox):$i(a,t,n.layoutBox);const l=!Qs(s);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const s={x:{min:0,max:0},y:{min:0,max:0}};Ki(s,n.layoutBox,o.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};Ki(a,t,i.layoutBox),_s(s,a)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ca(e){ia.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ua(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function da(e){e.clearSnapshot()}function pa(e){e.clearMeasurements()}function ma(e){e.isLayoutDirty=!1}function ha(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function fa(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ga(e){e.resolveTargetDelta()}function ba(e){e.calcProjection()}function va(e){e.resetRotation()}function xa(e){e.removeLeadSnapshot()}function ya(e,t,n){e.translate=oo(t.translate,0,n),e.scale=oo(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ia(e,t,n,r){e.min=oo(t.min,n.min,r),e.max=oo(t.max,n.max,r)}function Ca(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const wa={duration:.45,ease:[.4,0,.1,1]};function Aa(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Na(e,t,n){return"position"===e||"preserve-aspect"===e&&!Ji(Ks(t),Ks(n),.2)}const ja=sa({attachResizeListener:(e,t)=>Dn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ka={current:void 0},Ga=sa({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ka.current){const e=new ja({});e.mount(window),e.setOptions({layoutScroll:!0}),ka.current=e}return ka.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Pa={pan:{Feature:class extends qn{constructor(){super(...arguments),this.removePointerDownListener=dr}onPointerDown(e){this.session=new Fi(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:js(e),onStart:js(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&ar.update(()=>r(e,t))}}}mount(){this.removePointerDownListener=Hn(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 qn{constructor(e){super(e),this.removeGroupControls=dr,this.removeListeners=dr,this.controls=new As(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||dr}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Ga,MeasureLayout:Ss}},Va=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Ba(e,t,n=1){Ar(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=Va.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():Zt(o)?Ba(o,t,n+1):o}const Sa=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Ra=e=>Sa.has(e),Ea=e=>e===Yt||e===rn,Ta=(e,t)=>parseFloat(e.split(", ")[t]),Ma=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Ta(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?Ta(t[1],e):0}},Xa=new Set(["x","y","z"]),Wa=Tt.filter(e=>!Xa.has(e));const Fa={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Ma(4,13),y:Ma(5,14)},La=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Ra);let i=[],s=!1;const a=[];if(o.forEach(o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=n[o],u=Ii(c);const d=t[o];let p;if(Tn(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=Ii(c);for(let n=t;n<e&&null!==d[n];n++)p?Ar(Ii(d[n])===p,"All keyframes must be of the same type"):(p=Ii(d[n]),Ar(p===u||Ea(u)&&Ea(p),"Keyframes must be of the same dimension as the current value"))}else p=Ii(d);if(u!==p)if(Ea(u)&&Ea(p)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&p===rn&&(t[o]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==p?void 0:p.transform)&&(0===c||0===d)?0===c?l.set(p.transform(c)):t[o]=u.transform(d):(s||(i=function(e){const t=[];return Wa.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),s=!0),a.push(o),r[o]=void 0!==r[o]?r[o]:t[o],l.jump(d))}),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};"none"===s&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{a[e]=Fa[e](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(n=>{const r=t.getValue(n);r&&r.jump(a[n]),e[n]=Fa[n](l,i)}),e})(t,e,a);return i.length&&i.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),pt&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function Oa(e,t,n,r){return(e=>Object.keys(e).some(Ra))(t)?La(e,t,n,r):{target:t,transitionEnd:r}}const Da=(e,t,n,r)=>{const o=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(e=>{const t=e.get();if(!Zt(t))return;const n=Ba(t,r);n&&e.set(n)});for(const e in t){const o=t[e];if(!Zt(o))continue;const i=Ba(o,r);i&&(t[e]=i,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return Oa(e,t=o.target,n,r=o.transitionEnd)},Za={current:null},za={current:!1};const Ha=new WeakMap,Ya=Object.keys(Nt),Ja=Ya.length,Ua=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],$a=xt.length;class Qa{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>ar.render(this.render,!1,!0);const{latestValues:s,renderState:a}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=a,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=yt(t),this.isVariantNode=It(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==s[e]&&Wt(t)&&(t.set(s[e],!1),ui(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,Ha.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)),za.current||function(){if(za.current=!0,pt)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Za.current=e.matches;e.addListener(t),t()}else Za.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Za.current),"production"!==process.env.NODE_ENV&&gi(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ha.delete(this.current),this.projection&&this.projection.unmount(),lr(this.notifyUpdate),lr(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=Mt.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&ar.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),o()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o){let i,s;if("production"!==process.env.NODE_ENV&&r&&n){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?wr(!1,e):Ar(!1,e)}for(let e=0;e<Ja;e++){const n=Ya[e],{isEnabled:r,Feature:o,ProjectionNode:a,MeasureLayout:l}=Nt[n];a&&(i=a),r(t)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(s=l))}if(!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:s,layoutScroll:a,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||s&&ft(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:a,layoutRoot:l})}return s}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Ua.length;t++){const n=Ua[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(Wt(i))e.addValue(o,i),ui(r)&&r.add(o),"development"===process.env.NODE_ENV&&gi("10.12.16"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 10.12.16 may not work as expected.`);else if(Wt(s))e.addValue(o,vi(i,{owner:e})),ui(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,vi(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<$a;e++){const n=xt[e],r=this.props[n];(gt(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=vi(t,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=Rn(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||Wt(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new hi),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class _a extends Qa{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},o){let i=function(e,t,n){const r={};for(const o in e){const e=Ni(o,t);if(void 0!==e)r[o]=e;else{const e=n.getValue(o);e&&(r[o]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),i&&(i=r(i))),o){!function(e,t,n){var r,o;const i=Object.keys(t).filter(t=>!e.hasValue(t)),s=i.length;if(s)for(let a=0;a<s;a++){const s=i[a],l=t[s];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(o=null!==(r=n[s])&&void 0!==r?r:e.readValue(s))&&void 0!==o?o:t[s]),null!=c&&("string"==typeof c&&(di(c)||si(c))?c=parseFloat(c):!wi(c)&&xo.test(l)&&(c=ii(s,l)),e.addValue(s,vi(c,{owner:e})),void 0===n[s]&&(n[s]=c),null!==c&&e.setBaseTarget(s,c))}}(this,n,i);const e=Da(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class Ka extends _a{readValueFromInstance(e,t){if(Mt.has(t)){const e=oi(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Dt(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Cs(e,t)}build(e,t,n,r){un(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Bn(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Wt(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,r){Gn(e,t,n,r)}}class qa extends _a{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Mt.has(t)){const e=oi(t);return e&&e.default||0}return t=Pn.has(t)?t:kn(t),e.getAttribute(t)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e,t){return Sn(e,t)}build(e,t,n,r){Cn(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){Vn(e,t,0,r)}mount(e){this.isSVGTag=An(e.tagName),super.mount(e)}}const el=(e,t)=>Rt(e)?new qa(t,{enableHardwareAcceleration:!1}):new Ka(t,{enableHardwareAcceleration:!0}),tl={...Xi,...xr,...Pa,...{layout:{ProjectionNode:Ga,MeasureLayout:Ss}}},nl=Bt((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...Rt(e)?Ln:On,preloadedFeatures:n,useRender:jn(t),createVisualElement:r,Component:e}}(e,t,tl,el));function rl(){const e=t.useRef(!1);return mt(()=>(e.current=!0,()=>{e.current=!1}),[]),e}class ol extends a.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function il({children:e,isPresent:n}){const r=t.useId(),o=t.useRef(null),i=t.useRef({width:0,height:0,top:0,left:0});return t.useInsertionEffect(()=>{const{width:e,height:t,top:s,left:a}=i.current;if(n||!o.current||!e||!t)return;o.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${r}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${t}px !important;\n top: ${s}px !important;\n left: ${a}px !important;\n }\n `),()=>{document.head.removeChild(l)}},[n]),a.createElement(ol,{isPresent:n,childRef:o,sizeRef:i},a.cloneElement(e,{ref:o}))}const sl=({children:e,initial:n,isPresent:r,onExitComplete:o,custom:i,presenceAffectsLayout:s,mode:l})=>{const c=En(al),u=t.useId(),d=t.useMemo(()=>({id:u,initial:n,isPresent:r,custom:i,onExitComplete:e=>{c.set(e,!0);for(const e of c.values())if(!e)return;o&&o()},register:e=>(c.set(e,!1),()=>c.delete(e))}),s?void 0:[r]);return t.useMemo(()=>{c.forEach((e,t)=>c.set(t,!1))},[r]),a.useEffect(()=>{!r&&!c.size&&o&&o()},[r]),"popLayout"===l&&(e=a.createElement(il,{isPresent:r},e)),a.createElement(dt.Provider,{value:d},e)};function al(){return new Map}const ll=e=>e.key||"";const cl=({children:e,custom:n,initial:r=!0,onExitComplete:o,exitBeforeEnter:i,presenceAffectsLayout:s=!0,mode:l="sync"})=>{Ar(!i,"Replace exitBeforeEnter with mode='wait'");const c=t.useContext(jt).forceRender||function(){const e=rl(),[n,r]=t.useState(0),o=t.useCallback(()=>{e.current&&r(n+1)},[n]);return[t.useCallback(()=>ar.postRender(o),[o]),n]}()[0],u=rl(),d=function(e){const n=[];return t.Children.forEach(e,e=>{t.isValidElement(e)&&n.push(e)}),n}(e);let p=d;const m=t.useRef(new Map).current,h=t.useRef(p),f=t.useRef(new Map).current,g=t.useRef(!0);var b;if(mt(()=>{g.current=!1,function(e,t){e.forEach(e=>{const n=ll(e);t.set(n,e)})}(d,f),h.current=p}),b=()=>{g.current=!0,f.clear(),m.clear()},t.useEffect(()=>()=>b(),[]),g.current)return a.createElement(a.Fragment,null,p.map(e=>a.createElement(sl,{key:ll(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:s,mode:l},e)));p=[...p];const v=h.current.map(ll),x=d.map(ll),y=v.length;for(let e=0;e<y;e++){const t=v[e];-1!==x.indexOf(t)||m.has(t)||m.set(t,void 0)}return"wait"===l&&m.size&&(p=[]),m.forEach((e,t)=>{if(-1!==x.indexOf(t))return;const r=f.get(t);if(!r)return;const i=v.indexOf(t);let g=e;if(!g){const e=()=>{f.delete(t),m.delete(t);const e=h.current.findIndex(e=>e.key===t);if(h.current.splice(e,1),!m.size){if(h.current=d,!1===u.current)return;c(),o&&o()}};g=a.createElement(sl,{key:ll(r),isPresent:!1,onExitComplete:e,custom:n,presenceAffectsLayout:s,mode:l},r),m.set(t,g)}p.splice(i,0,g)}),p=p.map(e=>{const t=e.key;return m.has(t)?e:a.createElement(sl,{key:ll(e),isPresent:!0,presenceAffectsLayout:s,mode:l},e)}),"production"!==process.env.NODE_ENV&&"wait"===l&&p.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),a.createElement(a.Fragment,null,m.size?p:p.map(e=>t.cloneElement(e)))};function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ul.apply(null,arguments)}function dl(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function pl(...e){return t=>e.forEach(e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t))}function ml(...e){return t.useCallback(pl(...e),e)}function hl(...e){const n=e[0];if(1===e.length)return n;const r=()=>{const r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const o=r.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}const fl=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?t.useLayoutEffect:()=>{},gl=a["useId".toString()]||(()=>{});let bl=0;function vl(e){const[t,n]=a.useState(gl());return fl(()=>{n(e=>null!=e?e:String(bl++))},[e]),e||(t?`radix-${t}`:"")}function xl(e){const n=t.useRef(e);return t.useEffect(()=>{n.current=e}),t.useMemo(()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)},[])}function yl({prop:e,defaultProp:n,onChange:r=()=>{}}){const[o,i]=function({defaultProp:e,onChange:n}){const r=t.useState(e),[o]=r,i=t.useRef(o),s=xl(n);return t.useEffect(()=>{i.current!==o&&(s(o),i.current=o)},[o,i,s]),r}({defaultProp:n,onChange:r}),s=void 0!==e,a=s?e:o,l=xl(r);return[a,t.useCallback(t=>{if(s){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else i(t)},[s,e,i,l])]}const Il=t.forwardRef((e,n)=>{const{children:r,...o}=e,i=t.Children.toArray(r),s=i.find(Al);if(s){const e=s.props.children,r=i.map(n=>n===s?t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null:n);return t.createElement(Cl,ul({},o,{ref:n}),t.isValidElement(e)?t.cloneElement(e,void 0,r):null)}return t.createElement(Cl,ul({},o,{ref:n}),r)});Il.displayName="Slot";const Cl=t.forwardRef((e,n)=>{const{children:r,...o}=e;return t.isValidElement(r)?t.cloneElement(r,{...Nl(o,r.props),ref:n?pl(n,r.ref):r.ref}):t.Children.count(r)>1?t.Children.only(null):null});Cl.displayName="SlotClone";const wl=({children:e})=>t.createElement(t.Fragment,null,e);function Al(e){return t.isValidElement(e)&&e.type===wl}function Nl(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const jl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,n)=>{const r=t.forwardRef((e,r)=>{const{asChild:o,...i}=e,s=o?Il:n;return t.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),t.createElement(s,ul({},i,{ref:r}))});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{});const kl="dismissableLayer.update",Gl="dismissableLayer.pointerDownOutside",Pl="dismissableLayer.focusOutside";let Vl;const Bl=t.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Sl=t.forwardRef((e,n)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...u}=e,d=t.useContext(Bl),[p,m]=t.useState(null),h=null!==(r=null==p?void 0:p.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,f]=t.useState({}),g=ml(n,e=>m(e)),b=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=b.indexOf(v),y=p?b.indexOf(p):-1,I=d.layersWithOutsidePointerEventsDisabled.size>0,C=y>=x,w=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=xl(e),o=t.useRef(!1),i=t.useRef(()=>{});return t.useEffect(()=>{const e=e=>{if(e.target&&!o.current){const t={originalEvent:e};function s(){El(Gl,r,t,{discrete:!0})}"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=s,n.addEventListener("click",i.current,{once:!0})):s()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,n=[...d.branches].some(e=>e.contains(t));C&&!n&&(null==s||s(e),null==l||l(e),e.defaultPrevented||null==c||c())},h),A=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=xl(e),o=t.useRef(!1);return t.useEffect(()=>{const e=e=>{if(e.target&&!o.current){El(Pl,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...d.branches].some(e=>e.contains(t))||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==c||c())},h);return function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=xl(e);t.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)},[r,n])}(e=>{y===d.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},h),t.useEffect(()=>{if(p)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Vl=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),Rl(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=Vl)}},[p,h,o,d]),t.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),Rl())},[p,d]),t.useEffect(()=>{const e=()=>f({});return document.addEventListener(kl,e),()=>document.removeEventListener(kl,e)},[]),t.createElement(jl.div,ul({},u,{ref:g,style:{pointerEvents:I?C?"auto":"none":void 0,...e.style},onFocusCapture:dl(e.onFocusCapture,A.onFocusCapture),onBlurCapture:dl(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:dl(e.onPointerDownCapture,w.onPointerDownCapture)}))});function Rl(){const e=new CustomEvent(kl);document.dispatchEvent(e)}function El(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?function(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}(i,s):i.dispatchEvent(s)}const Tl="focusScope.autoFocusOnMount",Ml="focusScope.autoFocusOnUnmount",Xl={bubbles:!1,cancelable:!0},Wl=t.forwardRef((e,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...a}=e,[l,c]=t.useState(null),u=xl(i),d=xl(s),p=t.useRef(null),m=ml(n,e=>c(e)),h=t.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;t.useEffect(()=>{if(o){function e(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?p.current=t:Dl(p.current,{select:!0})}function t(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||Dl(p.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Dl(l)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[o,l,h.paused]),t.useEffect(()=>{if(l){Zl.add(h);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(Tl,Xl);l.addEventListener(Tl,u),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Dl(r,{select:t}),document.activeElement!==n)return}((e=Fl(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&Dl(l))}return()=>{l.removeEventListener(Tl,u),setTimeout(()=>{const e=new CustomEvent(Ml,Xl);l.addEventListener(Ml,d),l.dispatchEvent(e),e.defaultPrevented||Dl(null!=t?t:document.body,{select:!0}),l.removeEventListener(Ml,d),Zl.remove(h)},0)}}var e},[l,u,d,h]);const f=t.useCallback(e=>{if(!r&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=Fl(e),n=Ll(t,e),r=Ll(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&Dl(i,{select:!0})):(e.preventDefault(),r&&Dl(o,{select:!0})):n===t&&e.preventDefault()}},[r,o,h.paused]);return t.createElement(jl.div,ul({tabIndex:-1},a,{ref:m,onKeyDown:f}))});function Fl(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ll(e,t){for(const n of e)if(!Ol(n,{upTo:t}))return n}function Ol(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Dl(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Zl=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=zl(e,t),e.unshift(t)},remove(t){var n;e=zl(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function zl(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const Hl=t.forwardRef((e,n)=>{var r;const{container:i=(null===globalThis||void 0===globalThis||null===(r=globalThis.document)||void 0===r?void 0:r.body),...s}=e;return i?o.createPortal(t.createElement(jl.div,ul({},s,{ref:n})),i):null});const Yl=e=>{const{present:n,children:r}=e,i=function(e){const[n,r]=t.useState(),i=t.useRef({}),s=t.useRef(e),a=t.useRef("none"),l=e?"mounted":"unmounted",[c,u]=function(e,n){return t.useReducer((e,t)=>{const r=n[e][t];return null!=r?r:e},e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect(()=>{const e=Jl(i.current);a.current="mounted"===c?e:"none"},[c]),fl(()=>{const t=i.current,n=s.current;if(n!==e){const r=a.current,o=Jl(t);if(e)u("MOUNT");else if("none"===o||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{u(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}s.current=e}},[e,u]),fl(()=>{if(n){const e=e=>{const t=Jl(i.current).includes(e.animationName);e.target===n&&t&&o.flushSync(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(a.current=Jl(i.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:t.useCallback(e=>{e&&(i.current=getComputedStyle(e)),r(e)},[])}}(n),s="function"==typeof r?r({present:i.isPresent}):t.Children.only(r),a=ml(i.ref,s.ref);return"function"==typeof r||i.isPresent?t.cloneElement(s,{ref:a}):null};function Jl(e){return(null==e?void 0:e.animationName)||"none"}Yl.displayName="Presence";let Ul=0;function $l(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Ql=function(){return Ql=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ql.apply(this,arguments)};function _l(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var Kl="right-scroll-bar-position",ql="width-before-scroll-bar";function ec(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tc="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,nc=new WeakMap;function rc(e,n){var r,o,i,s=(r=null,o=function(t){return e.forEach(function(e){return ec(e,t)})},(i=t.useState(function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}})[0]).callback=o,i.facade);return tc(function(){var t=nc.get(s);if(t){var n=new Set(t),r=new Set(e),o=s.current;n.forEach(function(e){r.has(e)||ec(e,null)}),r.forEach(function(e){n.has(e)||ec(e,o)})}nc.set(s,e)},[e]),s}function oc(e){return e}var ic=function(e){var t=e.sideCar,n=_l(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return a.createElement(r,Ql({},n))};ic.isSideCarExport=!0;var sc=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=oc);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},s=function(){return Promise.resolve().then(i)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=Ql({async:!0,ssr:!1},e),t}(),ac=function(){},lc=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:ac,onWheelCapture:ac,onTouchMoveCapture:ac}),o=r[0],i=r[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,m=e.sideCar,h=e.noIsolation,f=e.inert,g=e.allowPinchZoom,b=e.as,v=void 0===b?"div":b,x=_l(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=m,I=rc([n,t]),C=Ql(Ql({},x),o);return a.createElement(a.Fragment,null,d&&a.createElement(y,{sideCar:sc,removeScrollBar:u,shards:p,noIsolation:h,inert:f,setCallbacks:i,allowPinchZoom:!!g,lockRef:n}),s?a.cloneElement(a.Children.only(l),Ql(Ql({},C),{ref:I})):a.createElement(v,Ql({},C,{className:c,ref:I}),l))});lc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},lc.classNames={fullWidth:ql,zeroRight:Kl};function cc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var uc=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=cc())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},dc=function(){var e,t=(e=uc(),function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},pc={left:0,top:0,right:0,gap:0},mc=function(e){return parseInt(e||"",10)||0},hc=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return pc;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[mc(n),mc(r),mc(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},fc=dc(),gc="data-scroll-locked",bc=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(gc,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Kl," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(ql," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(Kl," .").concat(Kl," {\n right: 0 ").concat(r,";\n }\n \n .").concat(ql," .").concat(ql," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(gc,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},vc=function(){var e=parseInt(document.body.getAttribute(gc)||"0",10);return isFinite(e)?e:0},xc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;a.useEffect(function(){return document.body.setAttribute(gc,(vc()+1).toString()),function(){var e=vc()-1;e<=0?document.body.removeAttribute(gc):document.body.setAttribute(gc,e.toString())}},[]);var i=a.useMemo(function(){return hc(o)},[o]);return a.createElement(fc,{styles:bc(i,!t,o,n?"":"!important")})},yc=!1;if("undefined"!=typeof window)try{var Ic=Object.defineProperty({},"passive",{get:function(){return yc=!0,!0}});window.addEventListener("test",Ic,Ic),window.removeEventListener("test",Ic,Ic)}catch(e){yc=!1}var Cc=!!yc&&{passive:!1},wc=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Ac=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Nc(e,n)){var r=jc(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Nc=function(e,t){return"v"===e?function(e){return wc(e,"overflowY")}(t):function(e){return wc(e,"overflowX")}(t)},jc=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},kc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Gc=function(e){return[e.deltaX,e.deltaY]},Pc=function(e){return e&&"current"in e?e.current:e},Vc=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Bc=0,Sc=[];var Rc,Ec=(Rc=function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(Bc++)[0],i=a.useState(function(){return dc()})[0],s=a.useRef(e);a.useEffect(function(){s.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(Pc),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var o,i=kc(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=Ac(d,u);if(!p)return!0;if(p?o=d:(o="v"===d?"h":"v",p=Ac(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var m=r.current||o;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*r,s=n.target,a=t.contains(s),l=!1,c=i>0,u=0,d=0;do{var p=jc(e,s),m=p[0],h=p[1]-p[2]-o*m;(m||h)&&Nc(e,s)&&(u+=h,d+=m),s=s.parentNode}while(!a&&s!==document.body||a&&(t.contains(s)||t===s));return c&&0===u?l=!0:c||0!==d||(l=!0),l}(m,t,e,"h"===m?l:c)},[]),c=a.useCallback(function(e){var n=e;if(Sc.length&&Sc[Sc.length-1]===i){var r="deltaY"in n?Gc(n):kc(n),o=t.current.filter(function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var a=(s.current.shards||[]).map(Pc).filter(Boolean).filter(function(e){return e.contains(n.target)});(a.length>0?l(n,a[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=a.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=a.useCallback(function(e){n.current=kc(e),r.current=void 0},[]),p=a.useCallback(function(t){u(t.type,Gc(t),t.target,l(t,e.lockRef.current))},[]),m=a.useCallback(function(t){u(t.type,kc(t),t.target,l(t,e.lockRef.current))},[]);a.useEffect(function(){return Sc.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Cc),document.addEventListener("touchmove",c,Cc),document.addEventListener("touchstart",d,Cc),function(){Sc=Sc.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,Cc),document.removeEventListener("touchmove",c,Cc),document.removeEventListener("touchstart",d,Cc)}},[]);var h=e.removeScrollBar,f=e.inert;return a.createElement(a.Fragment,null,f?a.createElement(i,{styles:Vc(o)}):null,h?a.createElement(xc,{gapMode:"margin"}):null)},sc.useMedium(Rc),ic),Tc=a.forwardRef(function(e,t){return a.createElement(lc,Ql({},e,{ref:t,sideCar:Ec}))});Tc.classNames=lc.classNames;var Mc=new WeakMap,Xc=new WeakMap,Wc={},Fc=0,Lc=function(e){return e&&(e.host||Lc(e.parentNode))},Oc=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Lc(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Wc[n]||(Wc[n]=new WeakMap);var i=Wc[n],s=[],a=new Set,l=new Set(o),c=function(e){e&&!a.has(e)&&(a.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(a.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Mc.get(e)||0)+1,c=(i.get(e)||0)+1;Mc.set(e,l),i.set(e,c),s.push(e),1===l&&o&&Xc.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),a.clear(),Fc++,function(){s.forEach(function(e){var t=Mc.get(e)-1,o=i.get(e)-1;Mc.set(e,t),i.set(e,o),t||(Xc.has(e)||e.removeAttribute(r),Xc.delete(e)),o||e.removeAttribute(n)}),--Fc||(Mc=new WeakMap,Mc=new WeakMap,Xc=new WeakMap,Wc={})}},Dc=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Oc(r,o,n,"aria-hidden")):function(){return null}};const Zc="Dialog",[zc,Hc]=function(e,n=[]){let r=[];const o=()=>{const n=r.map(e=>t.createContext(e));return function(r){const o=(null==r?void 0:r[e])||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return o.scopeName=e,[function(n,o){const i=t.createContext(o),s=r.length;function a(n){const{scope:r,children:o,...a}=n,l=(null==r?void 0:r[e][s])||i,c=t.useMemo(()=>a,Object.values(a));return t.createElement(l.Provider,{value:c},o)}return r=[...r,o],a.displayName=n+"Provider",[a,function(r,a){const l=(null==a?void 0:a[e][s])||i,c=t.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},hl(o,...n)]}(Zc),[Yc,Jc]=zc(Zc),Uc="DialogPortal",[$c,Qc]=zc(Uc,{forceMount:void 0}),_c="DialogOverlay",Kc=t.forwardRef((e,n)=>{const r=Qc(_c,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,s=Jc(_c,e.__scopeDialog);return s.modal?t.createElement(Yl,{present:o||s.open},t.createElement(qc,ul({},i,{ref:n}))):null}),qc=t.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,i=Jc(_c,r);return t.createElement(Tc,{as:Il,allowPinchZoom:!0,shards:[i.contentRef]},t.createElement(jl.div,ul({"data-state":lu(i.open)},o,{ref:n,style:{pointerEvents:"auto",...o.style}})))}),eu="DialogContent",tu=t.forwardRef((e,n)=>{const r=Qc(eu,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,s=Jc(eu,e.__scopeDialog);return t.createElement(Yl,{present:o||s.open},s.modal?t.createElement(nu,ul({},i,{ref:n})):t.createElement(ru,ul({},i,{ref:n})))}),nu=t.forwardRef((e,n)=>{const r=Jc(eu,e.__scopeDialog),o=t.useRef(null),i=ml(n,r.contentRef,o);return t.useEffect(()=>{const e=o.current;if(e)return Dc(e)},[]),t.createElement(ou,ul({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:dl(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:dl(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:dl(e.onFocusOutside,e=>e.preventDefault())}))}),ru=t.forwardRef((e,n)=>{const r=Jc(eu,e.__scopeDialog),o=t.useRef(!1),i=t.useRef(!1);return t.createElement(ou,ul({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,s;(null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented)||(o.current||null===(s=r.triggerRef.current)||void 0===s||s.focus(),t.preventDefault());o.current=!1,i.current=!1},onInteractOutside:t=>{var n,s;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const a=t.target;(null===(s=r.triggerRef.current)||void 0===s?void 0:s.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}}))}),ou=t.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,...a}=e,l=Jc(eu,r),c=ml(n,t.useRef(null));return t.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:$l()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:$l()),Ul++,()=>{1===Ul&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Ul--}},[]),t.createElement(t.Fragment,null,t.createElement(Wl,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:s},t.createElement(Sl,ul({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":lu(l.open)},a,{ref:c,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),iu="DialogTitle",su="DialogClose",au=t.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,i=Jc(su,r);return t.createElement(jl.button,ul({type:"button"},o,{ref:n,onClick:dl(e.onClick,()=>i.onOpenChange(!1))}))});function lu(e){return e?"open":"closed"}!function(e,n){const r=t.createContext(n);function o(e){const{children:n,...o}=e,i=t.useMemo(()=>o,Object.values(o));return t.createElement(r.Provider,{value:i},n)}o.displayName=e+"Provider"}("DialogTitleWarning",{contentName:eu,titleName:iu,docsSlug:"dialog"});const cu=e=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:i,onOpenChange:s,modal:a=!0}=e,l=t.useRef(null),c=t.useRef(null),[u=!1,d]=yl({prop:o,defaultProp:i,onChange:s});return t.createElement(Yc,{scope:n,triggerRef:l,contentRef:c,contentId:vl(),titleId:vl(),descriptionId:vl(),open:u,onOpenChange:d,onOpenToggle:t.useCallback(()=>d(e=>!e),[d]),modal:a},r)},uu=e=>{const{__scopeDialog:n,forceMount:r,children:o,container:i}=e,s=Jc(Uc,n);return t.createElement($c,{scope:n,forceMount:r},t.Children.map(o,e=>t.createElement(Yl,{present:r||s.open},t.createElement(Hl,{asChild:!0,container:i},e))))},du=Kc,pu=tu,mu=au,hu=({currentPage:t,totalPages:n,onPageChange:r,ariaLabel:o="Pagination"})=>{const i=function(e,t){if(t<=7)return Array.from({length:t},(e,t)=>t+1);const n=[];n.push(1),e>3&&n.push("...");const r=Math.max(2,e-1),o=Math.min(t-1,e+1);for(let e=r;e<=o;e++)n.push(e);e<t-2&&n.push("...");return n.push(t),n}(t,n),s="inline-flex items-center justify-center w-9 h-9 rounded-full bg-transparent cursor-pointer transition-colors duration-150 hover:border-text-brand hover:text-text-brand disabled:opacity-40 disabled:cursor-not-allowed";return e.jsxs("nav",{className:"flex items-center justify-center gap-1 px-6 pb-12","aria-label":o,children:[e.jsx(Ae,{className:s,onClick:()=>r(t-1),disabled:1===t,"aria-label":"Go to previous page",children:e.jsx(je,{name:"chevron_left",size:32,"aria-hidden":"true"})}),i.map((n,o)=>"..."===n?e.jsx("span",{className:"inline-flex h-9 w-9 cursor-default items-center justify-center text-body2 text-gray-500","aria-hidden":"true",children:"…"},`ellipsis-${o}`):e.jsx(Ae,{className:"inline-flex items-center justify-center w-9 h-9 rounded-lg text-body2 text-gray-700 bg-transparent border-none cursor-pointer transition-colors duration-150 hover:bg-gray-100 hover:text-gray-900 "+(n===t?"bg-bg-surface-active font-bold hover:bg-bg-gray-300":""),onClick:()=>r(n),"aria-label":`Go to page ${n}`,"aria-current":n===t?"page":void 0,children:n},n)),e.jsx(Ae,{className:s,onClick:()=>r(t+1),disabled:t===n,"aria-label":"Go to next page",children:e.jsx(je,{name:"chevron_right",size:32,"aria-hidden":"true"})})]})};function fu(e){return fu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fu(e)}function gu(e){var t=function(e,t){if("object"!=fu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=fu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fu(t)?t:t+""}function bu(e,t,n){return(t=gu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vu(Object(n),!0).forEach(function(t){bu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Iu(e,t){if(e){if("string"==typeof e)return yu(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yu(e,t):void 0}}function Cu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||Iu(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wu(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Au=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Nu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gu(r.key),r)}}function ju(e,t){return ju=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ju(e,t)}function ku(e){return ku=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ku(e)}function Gu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Gu=function(){return!!e})()}function Pu(e,t){if(t&&("object"==fu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Vu(e){return function(e){if(Array.isArray(e))return yu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Iu(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Bu=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Su="-ms-",Ru="-moz-",Eu="-webkit-",Tu="comm",Mu="rule",Xu="decl",Wu="@keyframes",Fu=Math.abs,Lu=String.fromCharCode,Ou=Object.assign;function Du(e){return e.trim()}function Zu(e,t,n){return e.replace(t,n)}function zu(e,t){return e.indexOf(t)}function Hu(e,t){return 0|e.charCodeAt(t)}function Yu(e,t,n){return e.slice(t,n)}function Ju(e){return e.length}function Uu(e){return e.length}function $u(e,t){return t.push(e),e}var Qu=1,_u=1,Ku=0,qu=0,ed=0,td="";function nd(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Qu,column:_u,length:s,return:""}}function rd(e,t){return Ou(nd("",null,null,"",null,null,0),e,{length:-e.length},t)}function od(){return ed=qu>0?Hu(td,--qu):0,_u--,10===ed&&(_u=1,Qu--),ed}function id(){return ed=qu<Ku?Hu(td,qu++):0,_u++,10===ed&&(_u=1,Qu++),ed}function sd(){return Hu(td,qu)}function ad(){return qu}function ld(e,t){return Yu(td,e,t)}function cd(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ud(e){return Qu=_u=1,Ku=Ju(td=e),qu=0,[]}function dd(e){return td="",e}function pd(e){return Du(ld(qu-1,fd(91===e?e+2:40===e?e+1:e)))}function md(e){for(;(ed=sd())&&ed<33;)id();return cd(e)>2||cd(ed)>3?"":" "}function hd(e,t){for(;--t&&id()&&!(ed<48||ed>102||ed>57&&ed<65||ed>70&&ed<97););return ld(e,ad()+(t<6&&32==sd()&&32==id()))}function fd(e){for(;id();)switch(ed){case e:return qu;case 34:case 39:34!==e&&39!==e&&fd(ed);break;case 40:41===e&&fd(e);break;case 92:id()}return qu}function gd(e,t){for(;id()&&e+ed!==57&&(e+ed!==84||47!==sd()););return"/*"+ld(t,qu-1)+"*"+Lu(47===e?e:id())}function bd(e){for(;!cd(sd());)id();return ld(e,qu)}function vd(e){return dd(xd("",null,null,null,[""],e=ud(e),0,[0],e))}function xd(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,p=0,m=0,h=0,f=1,g=1,b=1,v=0,x="",y=o,I=i,C=r,w=x;g;)switch(h=v,v=id()){case 40:if(108!=h&&58==Hu(w,d-1)){-1!=zu(w+=Zu(pd(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:w+=pd(v);break;case 9:case 10:case 13:case 32:w+=md(h);break;case 92:w+=hd(ad()-1,7);continue;case 47:switch(sd()){case 42:case 47:$u(Id(gd(id(),ad()),t,n),l);break;default:w+="/"}break;case 123*f:a[c++]=Ju(w)*b;case 125*f:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(w=Zu(w,/\f/g,"")),m>0&&Ju(w)-d&&$u(m>32?Cd(w+";",r,n,d-1):Cd(Zu(w," ","")+";",r,n,d-2),l);break;case 59:w+=";";default:if($u(C=yd(w,t,n,c,u,o,a,x,y=[],I=[],d),i),123===v)if(0===u)xd(w,t,C,C,y,i,d,a,I);else switch(99===p&&110===Hu(w,3)?100:p){case 100:case 108:case 109:case 115:xd(e,C,C,r&&$u(yd(e,C,C,0,0,o,a,x,o,y=[],d),I),o,I,d,a,r?y:I);break;default:xd(w,C,C,C,[""],I,0,a,I)}}c=u=m=0,f=b=1,x=w="",d=s;break;case 58:d=1+Ju(w),m=h;default:if(f<1)if(123==v)--f;else if(125==v&&0==f++&&125==od())continue;switch(w+=Lu(v),v*f){case 38:b=u>0?1:(w+="\f",-1);break;case 44:a[c++]=(Ju(w)-1)*b,b=1;break;case 64:45===sd()&&(w+=pd(id())),p=sd(),u=d=Ju(x=w+=bd(ad())),v++;break;case 45:45===h&&2==Ju(w)&&(f=0)}}return i}function yd(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,p=0===o?i:[""],m=Uu(p),h=0,f=0,g=0;h<r;++h)for(var b=0,v=Yu(e,d+1,d=Fu(f=s[h])),x=e;b<m;++b)(x=Du(f>0?p[b]+" "+v:Zu(v,/&\f/g,p[b])))&&(l[g++]=x);return nd(e,t,n,0===o?Mu:a,l,c,u)}function Id(e,t,n){return nd(e,t,n,Tu,Lu(ed),Yu(e,2,-2),0)}function Cd(e,t,n,r){return nd(e,t,n,Xu,Yu(e,0,r),Yu(e,r+1,-1),r)}function wd(e,t){for(var n="",r=Uu(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ad(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Xu:return e.return=e.return||e.value;case Tu:return"";case Wu:return e.return=e.value+"{"+wd(e.children,r)+"}";case Mu:e.value=e.props.join(",")}return Ju(n=wd(e.children,r))?e.return=e.value+"{"+n+"}":""}function Nd(e){var t=Uu(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}var jd="undefined"!=typeof document,kd=function(e,t,n){for(var r=0,o=0;r=o,o=sd(),38===r&&12===o&&(t[n]=1),!cd(o);)id();return ld(e,qu)},Gd=function(e,t){return dd(function(e,t){var n=-1,r=44;do{switch(cd(r)){case 0:38===r&&12===sd()&&(t[n]=1),e[n]+=kd(qu-1,t,n);break;case 2:e[n]+=pd(r);break;case 4:if(44===r){e[++n]=58===sd()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Lu(r)}}while(r=id());return e}(ud(e),t))},Pd=new WeakMap,Vd=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Pd.get(n))&&!r){Pd.set(e,!0);for(var o=[],i=Gd(t,o),s=n.props,a=0,l=0;a<i.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=o[a]?i[a].replace(/&\f/g,s[c]):s[c]+" "+i[a]}}},Bd=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Sd(e,t){switch(function(e,t){return 45^Hu(e,0)?(((t<<2^Hu(e,0))<<2^Hu(e,1))<<2^Hu(e,2))<<2^Hu(e,3):0}(e,t)){case 5103:return Eu+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Eu+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Eu+e+Ru+e+Su+e+e;case 6828:case 4268:return Eu+e+Su+e+e;case 6165:return Eu+e+Su+"flex-"+e+e;case 5187:return Eu+e+Zu(e,/(\w+).+(:[^]+)/,Eu+"box-$1$2"+Su+"flex-$1$2")+e;case 5443:return Eu+e+Su+"flex-item-"+Zu(e,/flex-|-self/,"")+e;case 4675:return Eu+e+Su+"flex-line-pack"+Zu(e,/align-content|flex-|-self/,"")+e;case 5548:return Eu+e+Su+Zu(e,"shrink","negative")+e;case 5292:return Eu+e+Su+Zu(e,"basis","preferred-size")+e;case 6060:return Eu+"box-"+Zu(e,"-grow","")+Eu+e+Su+Zu(e,"grow","positive")+e;case 4554:return Eu+Zu(e,/([^-])(transform)/g,"$1"+Eu+"$2")+e;case 6187:return Zu(Zu(Zu(e,/(zoom-|grab)/,Eu+"$1"),/(image-set)/,Eu+"$1"),e,"")+e;case 5495:case 3959:return Zu(e,/(image-set\([^]*)/,Eu+"$1$`$1");case 4968:return Zu(Zu(e,/(.+:)(flex-)?(.*)/,Eu+"box-pack:$3"+Su+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Eu+e+e;case 4095:case 3583:case 4068:case 2532:return Zu(e,/(.+)-inline(.+)/,Eu+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ju(e)-1-t>6)switch(Hu(e,t+1)){case 109:if(45!==Hu(e,t+4))break;case 102:return Zu(e,/(.+:)(.+)-([^]+)/,"$1"+Eu+"$2-$3$1"+Ru+(108==Hu(e,t+3)?"$3":"$2-$3"))+e;case 115:return~zu(e,"stretch")?Sd(Zu(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Hu(e,t+1))break;case 6444:switch(Hu(e,Ju(e)-3-(~zu(e,"!important")&&10))){case 107:return Zu(e,":",":"+Eu)+e;case 101:return Zu(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Eu+(45===Hu(e,14)?"inline-":"")+"box$3$1"+Eu+"$2$3$1"+Su+"$2box$3")+e}break;case 5936:switch(Hu(e,t+11)){case 114:return Eu+e+Su+Zu(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Eu+e+Su+Zu(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Eu+e+Su+Zu(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Eu+e+Su+e+e}return e}var Rd,Ed,Td,Md=jd?void 0:(Rd=function(){return e=function(){return{}},t=Object.create(null),function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]};var e,t},Ed=new WeakMap,function(e){if(Ed.has(e))return Ed.get(e);var t=Rd(e);return Ed.set(e,t),t}),Xd=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Xu:e.return=Sd(e.value,e.length);break;case Wu:return wd([rd(e,{value:Zu(e.value,"@","@"+Eu)})],r);case Mu:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wd([rd(e,{props:[Zu(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return wd([rd(e,{props:[Zu(t,/:(plac\w+)/,":"+Eu+"input-$1")]}),rd(e,{props:[Zu(t,/:(plac\w+)/,":-moz-$1")]}),rd(e,{props:[Zu(t,/:(plac\w+)/,Su+"input-$1")]})],r)}return""})}}],Wd=function(e){var t=e.key;if(jd&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||Xd,s={},a=[];jd&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)}));var l,c=[Vd,Bd];if(Md){var u=[Ad],d=Nd(c.concat(i,u)),p=Md(i)(t),m=function(e,t){var n=t.name;return void 0===p[n]&&(p[n]=wd(vd(e?e+"{"+t.styles+"}":t.styles),d)),p[n]};o=function(e,t,n,r){var o=t.name,i=m(e,t);return void 0===b.compat?(r&&(b.inserted[o]=!0),i):r?void(b.inserted[o]=i):i}}else{var h,f=[Ad,(l=function(e){h.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],g=Nd(c.concat(i,f));o=function(e,t,n,r){h=n,wd(vd(e?e+"{"+t.styles+"}":t.styles),g),r&&(b.inserted[t.name]=!0)}}var b={key:t,sheet:new Bu({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return b.sheet.hydrate(a),b},Fd={exports:{}},Ld={};var Od,Dd,Zd,zd,Hd={};
5
+ function ye(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}!function e(t,n){function r(e,r,o){if("undefined"!=typeof document){"number"==typeof(o=ye({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var s in o)o[s]&&(i+="; "+s,!0!==o[s]&&(i+="="+o[s].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+i}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),s=i.slice(1).join("=");try{var a=decodeURIComponent(i[0]);if(r[a]=t.read(s,a),e===a)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",ye({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,ye({},this.attributes,t))},withConverter:function(t){return e(ye({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const Ie=["utm_content","utm_medium","utm_campaign","utm_source","utm_term","utm_campaign_id","utm_adgroup_id","fbclid","gclid","msclkid"];const Ce=((e,...t)=>"function"==typeof e?N(fe,e,...t):N(()=>((e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:o={},override:i={}})=>(ge(e,"cacheSize",t),ge(e,"prefix",n),ge(e,"experimentalParseClassName",r),be(e.theme,i.theme),be(e.classGroups,i.classGroups),be(e.conflictingClassGroups,i.conflictingClassGroups),be(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),ge(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),ve(e.theme,o.theme),ve(e.classGroups,o.classGroups),ve(e.conflictingClassGroups,o.conflictingClassGroups),ve(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),xe(e,o,"orderSensitiveModifiers"),e))(fe(),e),...t))({extend:{classGroups:{"font-variants":["heading1","heading2","heading3","heading4","heading5","heading6","subheading1","subheading2","subheading3","subheading4","subheading5","subheading6","body1","body2","body3","footnote","micro","label1","label2","label3","label4"],"button-sizes":["btn-small","btn-medium","btn-large","btn-x-large"]}}}),we=(...e)=>Ce(c(...e)),Ae=t.forwardRef(({children:t,className:n="",style:r,disabled:o,...i},s)=>e.jsx("button",{ref:s,className:we(n),style:r,disabled:o,...i,children:t}));Ae.displayName="Button";const Ne=n=>{const{open:r,children:o}=n,i=t.useRef(null),[s,a]=t.useState(0);return t.useEffect(()=>{const e=i.current;if(!e)return;const t=()=>{a(r?e.scrollHeight:0)};let n;return t(),r&&(n=new ResizeObserver(()=>t()),n.observe(e)),()=>{n&&n.disconnect()}},[r,o]),e.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{maxHeight:s,opacity:r?1:0},"aria-hidden":!r,children:e.jsx("div",{ref:i,children:o})})};Ne.displayName="Collapse";const je=({name:t,fill:n=0,opticalSize:r="48dp",weight:o="200",emphasis:i=145,size:s=24,color:a="currentColor",style:l={},className:c,onClick:u,dataTestId:d})=>{const p={fontVariationSettings:`'FILL' ${n}, 'wght' ${o}, 'GRAD' ${i}, 'opsz' ${r.substring(0,2)}`,fontSize:`${s}px`,fontFamily:"'Material Symbols Rounded'",color:a||"currentColor",...l};return e.jsx("span",{style:p,className:we("material-symbols-rounded inline-block max-w-[52px] overflow-hidden",c),onClick:u,"data-testid":d,children:t})};je.displayName="MaterialIcon";const ke=n=>{const{title:r,defaultOpen:o,children:i,containerClassName:s,titleClassName:a,className:l,buttonClassName:c,openOnlyOnDesktop:u,borderRadiusNone:d=!1}=n,[p,m]=t.useState(Boolean(!1));return t.useEffect(()=>{if(u){const e=window.innerWidth>=1024;m(e)}else m(Boolean(o))},[u,o]),e.jsxs("div",{className:we(d?"rounded-none border":"rounded-surface-xs border",s),children:[e.jsxs(Ae,{type:"button",className:we(d?"rounded-none":"rounded-t-surface-xs","flex w-full items-center justify-between gap-4 px-4 py-3 text-left",c),onClick:()=>m(e=>!e),children:[e.jsx("span",{className:we("label5",a),children:r}),e.jsx(je,{name:p?"keyboard_arrow_down":"keyboard_arrow_up",fill:1,size:24})]}),e.jsx(Ne,{open:p,children:e.jsx("div",{className:we("px-4 py-4",l),children:i})})]})};ke.displayName="Accordion";const Ge=t.forwardRef(({children:e,as:n,className:r="",style:o,...i},s)=>{const a=n||"p";return t.createElement(a,{ref:s,className:r,style:o,...i},e)});Ge.displayName="Text";const Pe=({href:t,title:o,description:i,date:s,category:a,image:l,readMoreText:c="Read more",asGrid:u=!0})=>{const d=u?"flex h-full flex-col overflow-hidden rounded-xl bg-white shadow-[0_1px_4px_rgba(0,0,0,0.08),0_4px_16px_rgba(0,0,0,0.06)] transition-all duration-200 hover:-translate-y-0.5 hover:shadow-[0_4px_12px_rgba(0,0,0,0.12),0_8px_24px_rgba(0,0,0,0.10)]":"callout-card lg:w-[calc(33.3333%-1rem)] md:w-[calc(50%-1rem)] w-full overflow-hidden rounded-xl bg-white shadow-[0_1px_4px_rgba(0,0,0,0.08),0_4px_16px_rgba(0,0,0,0.06)] transition-all duration-200 hover:-translate-y-0.5 hover:shadow-[0_4px_12px_rgba(0,0,0,0.12),0_8px_24px_rgba(0,0,0,0.10)]";return e.jsxs("article",{className:d,children:[e.jsx(r,{href:t,tabIndex:-1,"aria-hidden":"true",className:"block",children:e.jsx("div",{className:"aspect-video w-full flex-shrink-0 overflow-hidden bg-gray-100",children:l?e.jsx(n,{src:l.src,alt:l.alt,width:l.width,height:l.height,className:"h-full w-full object-cover transition-transform duration-300 hover:scale-[1.03]",sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"}):e.jsx("div",{className:"h-full w-full bg-gradient-to-br from-gray-200 to-gray-100","aria-hidden":"true"})})}),e.jsxs("div",{className:"flex flex-1 flex-col gap-5 p-5 pb-6",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[13px]",children:[e.jsx("span",{className:"text-body2 font-semibold text-text-brand",children:a}),s&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-xs text-text","aria-hidden":"true",children:"•"}),e.jsx("time",{className:"text-body2 text-text",children:s})]})]}),o&&e.jsx(r,{href:t,className:"m-0 line-clamp-3 text-heading6 font-black transition-colors duration-150 hover:text-text-brand",children:o}),i&&e.jsx(Ge,{className:"m-0 line-clamp-3 flex-1 text-body1",children:i}),e.jsx(r,{href:t,className:"group mt-auto inline-flex justify-between pt-3 text-sm text-text-brand no-underline transition-all duration-200 hover:gap-2.5 hover:text-[#007ab8]","aria-label":`${c} about ${o||"this article"}`,children:e.jsxs(Ae,{"aria-label":`${c} about ${o||"this article"}`,className:"flex w-36 justify-around text-nowrap text-label1 font-black",children:[c,e.jsx(je,{name:"expand_circle_right",fill:0,size:24,weight:"600"})]})})]})]})},Ve=e=>{let t="";return e.base&&(t="x-large"===e.base?"label3 ":"label4 "),e.md&&(t+="x-large"===e.md?"md:label3 ":"md:label4 "),e.lg&&(t+="x-large"===e.lg?"lg:label3 ":"lg:label4 "),t.trim()},Be=t.forwardRef(({variant:t="primary_brand",isLoading:n=!1,text:r,label:o,disabled:i,fullWidth:s,size:a={base:"medium"},as:l="button",...c},u)=>{const d=(()=>{const e=we((e=>{let t="";return e.base&&(t=`btn-${e.base} `),e.md&&(t+=`${(e=>{switch(e){case"small":return"md:btn-small";case"medium":return"md:btn-medium";case"large":return"md:btn-large";case"x-large":return"md:btn-x-large"}})(e.md)} `),e.lg&&(t+=`lg:btn-${e.lg} `),t.trim()})(a),"rounded-button pl-15 pr-15 inline-flex gap-2 items-center justify-center outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer transition-colors duration-200 align-top",s&&"w-full"),r=we((i||n)&&"cursor-not-allowed",n&&"pl-7",i&&"bg-bg-fill-brand-disabled");return we(e,{primary_brand:"bg-bg-fill-brand text-text-brand-on-bg-fill enabled:hover:bg-bg-fill-brand-hover focus:ring-bg-fill-brand",primary_inverse:"bg-bg-surface-inverse text-text-inverse enabled:hover:bg-bg-fill-inverse-hover focus:ring-bg-surface-inverse",secondary:"border border-border-secondary-on-bg-fill bg-bg-fill-secondary text-text hover:bg-bg-fill-secondary-hover focus:bg-bg-fill-secondary focus:ring-input-border-hover"}[t]||"",r)})();let p=`button--${t}`;n&&(p+=" button--loading"),i&&(p+=" button--disabled");const m=`${p} ${d}`,h=e.jsxs(e.Fragment,{children:[n?e.jsx(je,{name:"progress_activity",className:"animate-spin"}):null,o?e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:we(Ve(a)),children:o}),r]}):r]});return"a"===l?e.jsx("a",{ref:u,className:we(m),...c,children:h}):e.jsx("button",{ref:u,className:we(m),disabled:i||n,...c,children:h})});Be.displayName="BrandButton";const Se=t.forwardRef(({children:t,href:n,className:o="",onClick:i,variant:s="unstyled",style:a,external:l=!1,disabled:c=!1,...u},d)=>{const p=(()=>{if("unstyled"===s)return"";const e={default:"text-text underline"},t=[c?"opacity-60 cursor-not-allowed pointer-events-none":"cursor-pointer"].filter(Boolean).join(" ");return["transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",e[s]||e.default,t].filter(Boolean).join(" ")})(),m=e=>{c?e.preventDefault():null==i||i(e)},h=we(p,`link--${s}`,c&&"link--disabled",o),f={...u,ref:d,className:h,style:a,href:c?void 0:n,onClick:m,...l&&!c&&{target:"_blank",rel:"noopener noreferrer"},...c&&{"aria-disabled":!0,tabIndex:-1}};return l||"string"==typeof n&&n.startsWith("http")?e.jsx("a",{...f,children:t}):e.jsx(r,{href:n||"#",className:h,onClick:m,...u,children:t})});Se.displayName="Link";const Re=t=>{const{showButtonAs:n="solid",buttonVariant:r="primary_brand",buttonLabel:o,buttonPrefix:i,href:s,target:a="_blank",anchorId:l,linkClassName:c,linkVariant:u,fullWidth:d,preDefinedFunctionExecution:p,renderCheckPlans:m,buttonClassName:h,clickToOpen:f,tabmodalNameToOpen:g,onModalButtonClick:b,onClick:v,iconName:x,size:y,preserveQueryParameters:I,...C}=t;if("check availability"===p){return null==m?void 0:m({ctaText:o,buttonVariant:r,showButtonAs:n,cta:{...t}})}function w(){"modal"===f&&(null==b||b(g))}function A(e){w(),null==v||v(e)}function N(e){w(),null==v||v(e)}const j="undefined"!=typeof window?window.location.search:"",k=s&&I&&j?function(e,t){if(!t)return e;const n=new URLSearchParams(t),r=new Set(Ie),o=new Set([...r,"searchtext","page"]);let i,s;try{if(e.startsWith("http://")||e.startsWith("https://")){const t=new URL(e);i=t.origin+t.pathname,s=t.searchParams}else{const[t,n]=e.split("?");i=t,s=new URLSearchParams(n||"")}}catch(t){return e}const a=new URLSearchParams(s);n.forEach((e,t)=>{o.has(t.toLowerCase())||a.has(t)||a.set(t,e)});const l=a.toString();return l?`${i}?${l}`:i}(s,j):s;let G=e.jsx(Ae,{onClick:N,className:h,...C});switch(n){case"solid":G=k?e.jsx(Be,{as:"a",href:k,id:l,variant:r,text:o,label:i,fullWidth:d,size:y,onClick:A}):e.jsx(Be,{id:l,variant:r,text:o,label:i,fullWidth:d,size:y,onClick:N});break;case"text":G=e.jsxs(Se,{href:k,target:a,variant:u||"default",className:`text-text-brand ${c||""}`,onClick:A,children:[o," ",x&&e.jsx(je,{name:x,size:24})]})}return G},Ee={blue:"bg-fill-brand",green:"bg-fill-brand-accent",navy:"bg-fill-inverse",purple:"bg-fill-brand-tertiary",white:"bg-white",yellow:"bg-[#F5FF1E]"},Te=({src:e,width:t,quality:n})=>{const r=new URL(e);return r.searchParams.set("w",String(t)),r.searchParams.set("q",String(n||90)),r.searchParams.set("fm","webp"),r.toString()},Me=t.forwardRef(({className:t,...r},o)=>{const i="string"==typeof r.src?r.src:"",s=i.toLowerCase().split("?")[0]||"",a=i.includes("images.ctfassets.net"),l=a&&s.endsWith(".svg"),c=a&&!l?{loader:Te,unoptimized:!1}:{unoptimized:l};return e.jsx(n,{ref:o,className:we(t),...r,...c})});Me.displayName="NextImage";const Xe=({card:t,lgWidth:n,mdWidth:r})=>{var o,i,s;const a=(null===(o=t.imageAlignment)||void 0===o?void 0:o.toLowerCase())||"left",l="left"===a?"lg:items-start":"right"===a?"lg:items-end":"lg:items-center";return e.jsx("div",{className:`callout-card ${r} ${n} w-full ${null!==(s=Ee[null!==(i=t.backgroundColor)&&void 0!==i?i:""])&&void 0!==s?s:""}`,children:e.jsxs("div",{className:`card-template flex h-full flex-col items-center gap-8 p-8 text-center ${l}`,children:[e.jsx("div",{className:"card-header",children:(t=>{var n,r,o;if(!t.image)return null;return"full"===(null===(n=t.imageView)||void 0===n?void 0:n.toLowerCase())?e.jsx(Me,{width:400,height:280,src:t.image,alt:null!==(r=t.title)&&void 0!==r?r:"card-icon",className:"rounded-3xl"}):e.jsx(Me,{width:88,height:88,src:t.image,alt:null!==(o=t.title)&&void 0!==o?o:"card-icon"})})(t)}),e.jsxs("div",{className:"card-body flex flex-col gap-3 text-start",children:[t.title&&e.jsx(Ge,{as:"h5",className:"heading5 font-black",children:t.title}),t.body&&e.jsx(Ge,{as:"div",className:"body1",children:t.body})]}),t.cta&&e.jsx("div",{className:"card-footer",children:e.jsx(Re,{linkVariant:"unstyled",linkClassName:"label1 flex items-center text-text gap-2",...t.cta,iconName:"expand_circle_right"})})]})})},We={green:"#209A61",yellow:"#F5FF36",blue:"#0393BA"},Fe=t.forwardRef(({children:t,className:n="",variant:r="unstyled",style:o,...i},s)=>{const a=we("unstyled"===r?"":"mb-1 leading-6","list-item",`list-item--${r}`,n);return e.jsx("li",{ref:s,className:a,style:o,...i,children:t})});Fe.displayName="ListItem";const Le=t.forwardRef(({type:t="ul",items:n,className:r="",renderItem:o,children:i,variant:s="unstyled",style:a,...l},c)=>{const u=(()=>{if("unstyled"===s)return"";return`m-0 p-0 ${"ol"===t?"pl-6 list-decimal":"pl-5 list-disc"}`})(),d=we(u,`list--${t}`,`list--${s}`,r),p=i||(n&&0!==n.length?n.map((t,n)=>o?o(t,n):e.jsx(Fe,{className:t.className,variant:s,children:t.content},t.id||n)):null),m={className:d,style:a,...l,children:p};return"ol"===t?e.jsx("ol",{...m,ref:c}):e.jsx("ul",{...m,ref:c})});Le.displayName="List";const Oe=t=>{const{items:n,listIconName:r="check",listItemClassName:o,iconSize:i=20,iconPosition:s="center",iconColor:a="green",iconClassName:l}=t,c="disc"!==r;return(null==n?void 0:n.length)?e.jsx(Le,{className:"mt-2 space-y-1",variant:c?"unstyled":"default",children:n.map((t,n)=>e.jsxs(Fe,{variant:c?"unstyled":"default",className:we(`${c?"flex":""} ${"top"===s?"items-start":"items-center"} gap-2 text-text-secondary`,o),children:[c&&e.jsx("div",{children:e.jsx(je,{name:r,size:i,color:We[a],weight:"600",className:we("top"===s?"mt-1":"",l)})}),e.jsx(Ge,{as:"div",children:t})]},n))}):null};Oe.displayName="Checklist";const De=t.forwardRef(({as:t,className:n="",...r},o)=>{const i=we(n);if(t){const n=t;return e.jsx(n,{ref:o,className:i,...r})}return e.jsx("img",{ref:o,className:i,...r})});De.displayName="Image";const Ze=({onSelect:n,speed:r,isSelected:o=!1,renderCheckPlans:i,cta:s,techType:a,isMax:l})=>{const[c,u]=t.useState(!1),d=`btn-medium rounded-button pl-15 pr-15 inline-flex gap-2 items-center justify-center outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer transition-colors duration-200 align-top ${o?" bg-bg-surface text-text focus:ring-bg-fill-surface-inverse":" bg-bg-fill-brand text-text-brand-on-bg-fill enabled:hover:bg-bg-fill-brand-hover focus:ring-bg-fill-brand"} `,p=null==i?void 0:i({speedCardConfig:{isModalOpen:c,setModalOpen:()=>{u(!1)},speed:r,techType:a,isMax:l},cta:s});return e.jsxs(e.Fragment,{children:[e.jsxs(Ae,{onClick:()=>{u(!0),n()},className:we(d,"w-full justify-between pl-5 pr-5"),"data-track-element-name":"speed_plan_select_button","data-track-click-text":`Select plan speed ${r}`,"data-track-element-clicked":"speed_plan_card",children:[e.jsx("span",{children:"Select plan"}),e.jsx("span",{className:"inline-flex h-6 w-6 items-center justify-center rounded-full "+(o?"bg-bg-fill-surface-inverse text-text-inverse":"bg-bg text-text"),children:e.jsx(je,{name:"chevron_right",fill:1,size:24})})]}),p]})},ze=({planName:n,planSubtext:r,speed:o,price:i,description:s,bestValue:a=!1,bestValueText:l="best value",giftBadge:c,innerBadge:u,theme:d="light",featuresTitle:p="Business Ready Internet features",features:m=[],isExpanded:h,onToggleExpand:f,onCtaClick:g,renderCheckPlans:b,cta:v,techType:x,ismaxSpeed:y})=>{const[I,C]=t.useState(!1),w=void 0!==h?h:I,A="dark"===d;return e.jsxs("article",{className:we("relative flex h-full w-full max-w-[392px] flex-col",!a&&"pt-[28px]"),children:[a&&e.jsx("div",{className:"rounded-t-[20px] bg-bg-fill-brand-accent px-4 py-1 text-center text-sm font-bold text-text",children:l}),e.jsxs("div",{className:we("flex flex-grow flex-col gap-6 rounded-[20px] px-5 shadow-cardDrop",A?"bg-bg-fill-inverse text-white":"bg-white text-text",a?"rounded-t-none":""),children:[e.jsxs("header",{className:"overflow-none flex items-start justify-between gap-4 pt-7",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx(Ge,{as:"h3",className:we("subheading2 whitespace-nowrap font-black",A?"text-bg-fill-brand-accent":"text-text-brand"),children:n}),e.jsx(Ge,{as:"p",className:`text-label3 font-black ${A?"text-bg-fill-brand-accent":"text-text-brand"} md:whitespace-nowrap`,children:r})]}),e.jsxs("div",{className:"flex items-start",children:[e.jsx("span",{className:"text-xl font-normal",children:"$"}),e.jsx("span",{className:"text-subheading6 font-medium leading-none",children:i.split(".")[0]}),e.jsxs("span",{className:"text-sm font-black",children:[i.split(".")[1],"/mo"]})]})]}),e.jsx("section",{children:e.jsx(Ge,{className:we("text-base",A?"text-white":"text-text"),children:s})}),e.jsx("div",{className:we("flex-col items-center rounded-xl p-2",A?"bg-bg-surface-inverse":"bg-gray-200"),children:c&&(null==c?void 0:c.map(t=>e.jsxs("div",{className:"flex items-center gap-2 p-1",children:[e.jsx(De,{src:t.icon,alt:t.title,width:24,height:24}),e.jsx(Ge,{as:"div",className:"text-sm font-bold",children:t.title})]},t.title)))}),e.jsx(Ze,{onSelect:g,speed:o,isSelected:A,renderCheckPlans:b,cta:v,techType:x,isMax:y}),m.length>0&&e.jsxs("section",{className:"flex flex-col gap-6",children:[e.jsxs(Ae,{onClick:()=>{f?f():C(!I)},className:"group flex w-full items-center justify-between text-left",children:[e.jsx(Ge,{as:"h4",className:"text-base font-bold",children:p}),e.jsx(je,{name:"keyboard_arrow_up",fill:1,size:24,className:we("transition-transform duration-300",w&&"rotate-180")})]}),e.jsxs("div",{className:we("overflow-hidden transition-all duration-300 ease-in-out",w?"pb-7 opacity-100":"max-h-0 opacity-0"),children:[e.jsx("div",{className:"flex flex-col gap-3",children:e.jsx(Oe,{items:m,iconColor:A?"yellow":"green",listItemClassName:""+(A?"text-white":"text-text")})}),(null==u?void 0:u.badgeIcon)?e.jsxs("div",{className:"flex items-center gap-2 text-center",children:[e.jsx(De,{src:u.badgeIcon,alt:"Inner Badge",width:12,height:12}),e.jsx("span",{className:"text-sm",children:u.badgeText.includes("|")?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"font-bold",children:u.badgeText.split("|")[0]}),e.jsx("span",{className:"font-normal",children:u.badgeText.split("|")[1]})]}):e.jsx(Ge,{className:"font-bold",children:u.badgeText})})]}):null]})]})]})]})},He=({title:t,quote:r,rating:o,author:i,role:s,avatarUrl:a,isActive:l=!1,className:u})=>e.jsxs("figure",{className:c("flex h-full w-full flex-col rounded-3xl p-6 font-sans transition-all duration-300 md:p-13",l?"bg-white shadow-lg":"bg-gray-50 opacity-60",u),children:[e.jsx("header",{children:e.jsx(Ge,{as:"h3",className:"mb-4 text-xl font-black lowercase text-text",children:t})}),e.jsx("blockquote",{className:"mb-5 flex-grow text-xl leading-relaxed text-text",children:r}),o?e.jsx("div",{className:"mb-5 flex gap-1",children:[...Array(5)].map((t,n)=>e.jsx(je,{size:24,name:"star",fill:1,className:c("h-5 w-5",n<o?"text-text":"text-gray-300"),"aria-hidden":"true"},n))}):null,i&&e.jsxs("figcaption",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"relative h-10 w-10 shrink-0 overflow-hidden rounded-full bg-gray-300",children:a?e.jsx(n,{src:a,alt:i,fill:!0,className:"object-cover",sizes:"40px"}):e.jsx("div",{className:"flex h-full w-full items-center justify-center bg-gray-500 text-xs font-bold text-white",children:i.charAt(0)})}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("cite",{className:"text-sm font-bold not-italic text-text",children:i}),e.jsx(Ge,{as:"p",className:"text-xs text-text",children:s})]})]})]});function Ye({fields:n,renderCheckPlans:r}){var o,i,s,a;const l=(null===(s=null===(i=null===(o=null==n?void 0:n.items)||void 0===o?void 0:o.items)||void 0===i?void 0:i[0])||void 0===s?void 0:s.benefitsExpanded)||!1,[c,u]=t.useState(l),[d,p]=t.useState({}),[m,h]=t.useState(0),f=(null===(a=null==n?void 0:n.items)||void 0===a?void 0:a.items)||[],g=f.length>2,b=t.useRef([]),v=t.useCallback(()=>{g&&h(e=>(e+3)%f.length)},[g,f.length]),x=t.useCallback(()=>{g&&h(e=>(e-3+f.length)%f.length)},[g,f.length]);if(t.useEffect(()=>{if(!g)return;const e=()=>{const e=b.current.filter(Boolean);if(0===e.length)return;e.forEach(e=>{e.style.height="auto"});const t=Math.max(...e.map(e=>e.offsetHeight));e.forEach(e=>{e.style.height=`${t}px`})};e();const t=setTimeout(e,100);return()=>clearTimeout(t)},[g,c,f.length]),!f.length&&!(null==n?void 0:n.title))return null;const y=(t,n,o=!1)=>{var i,s,a,l,m,h,f,g;const v=null===(i=null==t?void 0:t.speed)||void 0===i?void 0:i.split("|"),x=(null==v?void 0:v[0])||"",y=(null==v?void 0:v[1])||"",I=(null===(a=null===(s=null==t?void 0:t.priceSuffix)||void 0===s?void 0:s.split("/"))||void 0===a?void 0:a[0])||"00",C=`${(null==t?void 0:t.price)||"0"}.${I}`,w=(null===(l=null==t?void 0:t.benefits)||void 0===l?void 0:l.items)||[],A=(null==t?void 0:t.highlighted)||!1,N=(null===(h=null===(m=null==t?void 0:t.giftRewards)||void 0===m?void 0:m.list)||void 0===h?void 0:h.items)||[],j={badgeText:t.innerBadge||"",badgeIcon:(null===(f=t.innerBadgeIcon)||void 0===f?void 0:f.url)||""},k=o?d[n]||!1:c;return e.jsx("div",{ref:o?void 0:e=>{e&&!b.current.includes(e)&&(b.current[n]=e)},className:we(o?"mx-auto w-full max-w-[392px]":"w-[392px] flex-shrink-0"),children:e.jsx(ze,{planName:x,planSubtext:y,speed:(null==t?void 0:t.speed)||"",techType:(null==t?void 0:t.techType)||"",ismaxSpeed:(null==t?void 0:t.ismaxSpeed)||"",price:C,description:(null==t?void 0:t.productCardDescription)||"",giftBadge:N,innerBadge:j,theme:(null==t?void 0:t.highlighted)?"dark":"light",bestValue:A,bestValueText:(null==t?void 0:t.topBadgeText)||"best value",featuresTitle:null==t?void 0:t.benefitsTitle,features:w,isExpanded:k,onToggleExpand:()=>{o?p(e=>({...e,[n]:!e[n]})):u(!c)},ctaText:(null===(g=null==t?void 0:t.cta)||void 0===g?void 0:g.buttonLabel)||"Select plan",onCtaClick:()=>{},renderCheckPlans:r,cta:t.cta,hostType:"smb"})},n)},I=[...f,...f,...f,...f,...f],C=2*f.length;return g?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex flex-col gap-6 md:hidden",children:f.map((e,t)=>y(e,t,!0))}),e.jsxs("div",{className:"relative hidden w-full md:block",children:[e.jsxs("div",{className:"pointer-events-none absolute -left-16 -right-16 top-[50%] z-30 flex -translate-y-1/2 justify-between px-4 md:px-10",children:[e.jsx(Ae,{onClick:v,className:"pointer-events-auto flex h-12 w-12 items-center justify-center rounded-full border border-gray-100 bg-white p-2 text-text shadow-cardDrop transition-all hover:bg-gray-50","aria-label":"Previous",children:e.jsx(je,{name:"arrow_back",size:24})}),e.jsx(Ae,{onClick:x,className:"pointer-events-auto flex h-12 w-12 items-center justify-center rounded-full border border-gray-100 bg-white p-2 text-text shadow-cardDrop transition-all hover:bg-gray-50","aria-label":"Next",children:e.jsx(je,{name:"arrow_forward",size:24})})]}),e.jsx("div",{className:"mx-auto max-w-[1280px] overflow-hidden",children:e.jsx("div",{className:"flex items-stretch gap-4 pb-4 transition-transform duration-500 ease-in-out",style:{transform:`translateX(calc(-${C+m} * (392px + 12px)))`},children:I.map((e,t)=>y(e,t,!1))})})]})]}):e.jsx("div",{className:"flex w-full max-w-[1280px] flex-wrap justify-center gap-8 px-4",children:f.map((e,t)=>y(e,t))})}const Je=({fields:n})=>{var r;const o=(null===(r=null==n?void 0:n.items)||void 0===r?void 0:r.items)||[],[i,s]=t.useState(0),a=t.useRef(null),l=t.useCallback(()=>{0!==o.length&&s(e=>(e+1)%o.length)},[o.length]),c=t.useCallback(()=>{0!==o.length&&s(e=>0===e?o.length-1:e-1)},[o.length]);return t.useEffect(()=>{if(0!==o.length)return a.current=setInterval(()=>{l()},8e3),()=>{a.current&&clearInterval(a.current)}},[l,o.length]),o&&0!==o.length?e.jsxs("div",{className:"relative mx-auto max-w-[1280px] overflow-hidden md:px-24",children:[e.jsx(Ae,{onClick:c,className:"group absolute left-4 top-1/2 z-20 hidden h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full bg-white p-2 text-text shadow-md transition-colors hover:bg-gray-100 md:flex","aria-label":"Previous",children:e.jsx(je,{name:"arrow_back",size:24})}),e.jsx("div",{className:"grid grid-cols-1 justify-items-center",children:o.map((t,n)=>{let r=n-i;const s=o.length;r>s/2&&(r-=s),r<-s/2&&(r+=s);const a=0===r;return e.jsx("div",{className:we("col-start-1 row-start-1 w-full md:max-w-[815px]",a?"opacity-100":"opacity-0","md:opacity-100"),style:{transform:`translateX(${a?"0%":105*r+"%"})`,zIndex:a?10:5,visibility:Math.abs(r)>1?"hidden":"visible",transition:"all 0.5s ease-in-out"},children:e.jsx(He,{...t,isActive:a,className:"h-full"})},n)})}),e.jsx(Ae,{onClick:l,className:"group absolute right-4 top-1/2 z-20 hidden h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full bg-white p-2 text-text shadow-md transition-colors hover:bg-gray-100 md:flex","aria-label":"Next",children:e.jsx(je,{name:"arrow_forward",size:24})}),e.jsx("div",{className:"mt-8 hidden justify-center gap-2 md:flex",children:o.map((t,n)=>e.jsx("button",{onClick:()=>s(n),className:we("h-2 w-2 rounded-full transition-all duration-300",i===n?"w-6 bg-white":"bg-white/40 hover:bg-white/60"),"aria-label":`Go to slide ${n+1}`},n))})]}):null},Ue=({tabs:t,activeTab:n,onChange:r,className:o})=>e.jsx("div",{className:we("mx-auto flex w-fit rounded-2xl bg-bg-surface-active p-1",o),children:t.map(t=>e.jsx("button",{onClick:()=>r(t),className:we("min-w-[160px] whitespace-nowrap rounded-2xl bg-bg-surface-active px-4 py-2.5 text-label1 font-black transition-all duration-300",n===t?"bg-bg-fill-brand text-white shadow-md":"text-text-info hover:bg-bg-surface-hover"),children:t},t))}),$e=({isHovered:t,containerClassName:n})=>e.jsx("button",{tabIndex:-1,className:`group flex h-20 w-20 items-center justify-center rounded-full bg-white shadow-xl transition-all duration-300 hover:scale-110 active:scale-95 ${n||""}`,"aria-label":"Play button",children:e.jsx(je,{name:"play_arrow",size:72,fill:1,className:"transition-colors duration-300 "+(t?"text-text-brand":"text-slate-500 group-hover:text-text-brand")})}),Qe=n=>{const{link:r,containerClassName:o,autoplay:i=!1,debug:s=!1}=n,{href:a,embedId:l}=t.useMemo(()=>{if(!r)return{href:"",embedId:""};const e=r.toString(),t=(e=>{const t=e.split(/[?#]/)[0].replace(/\/+$/,""),n=t.match(/vimeo\.com\/(?:.*\/)?(\d{6,})/)||t.match(/player\.vimeo\.com\/video\/(\d{6,})/),r=t.split("/"),o=r[r.length-1];return(null==n?void 0:n[1])?n[1]===o?n[1]:`${n[1]}/${o}`:""})(e);return{href:e,embedId:t}},[r]);if(s&&console.log("[VimeoEmbed] href:",a,"id:",l),!l)return null;const c=function(e){try{const t=new URL(e),n=t.pathname.split("/").filter(Boolean);if("video"===n[0]&&n.length>=2){const e=n[1],r=n[2],o=`https://player.vimeo.com/video/${e}`;return r&&/^[a-f0-9]+$/i.test(r)&&t.searchParams.set("h",r),`${o}?${t.searchParams.toString()}`}return e}catch(t){return e}}(`https://player.vimeo.com/video/${l}?${new URLSearchParams({autoplay:i?"1":"0",muted:"0",playsinline:"1",dnt:"1",title:"0",byline:"0",portrait:"0",autopause:"1"}).toString()}`);return e.jsx("div",{className:we("relative h-0 w-full overflow-hidden pb-[56.25%]",o),children:e.jsx("iframe",{className:"absolute left-0 top-0 h-full w-full",src:c,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin",title:"Embedded vimeo"})})};const _e=n=>{const{link:r,containerClassName:o,autoplay:i=!1}=n,s=t.useMemo(()=>{if(!r)return"";const e=r.toString().match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return e&&11===e[7].length?e[7]:""},[r]),a=i?"?autoplay=1":"";return e.jsx("div",{className:we("relative h-0 w-full overflow-hidden pb-[56.25%]",o),children:e.jsx("iframe",{className:"absolute left-0 top-0 h-full w-full",src:`https://www.youtube.com/embed/${s}${a}`,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Embedded youtube"})})},Ke=({link:n,anchorName:r})=>{const[o,i]=t.useState(!1),s=t.useRef(null);if(((e,n)=>{const r=t=>{var r;(null===(r=null==e?void 0:e.current)||void 0===r?void 0:r.contains(t.target))||n()};t.useEffect(()=>(document.addEventListener("click",r),()=>{document.removeEventListener("click",r)}))})(s,()=>i(!1)),!n)return null;if((e=>"string"==typeof e.href)(n))return e.jsx(Re,{...n,linkClassName:"body3 flex items-center text-text h-full",linkVariant:"unstyled"},`submenu-link-btn-${n.anchorId}`);const{anchorId:a,title:l,items:c}=n,u=Array.isArray(null==c?void 0:c.items)?c.items:[],d=`--link-anchor-${r}`;return e.jsxs("div",{className:"relative h-full",style:{anchorName:d},ref:s,children:[e.jsxs(Re,{onClick:()=>i(e=>!e),"aria-expanded":o,buttonClassName:"group body3 flex h-full text-text items-center",showButtonAs:"unstyled",children:[e.jsx(Ge,{as:"span",className:"group-hover:underline",children:null!=l?l:null}),e.jsx(je,{weight:"200",size:24,className:"text-icon-secondary group-hover:opacity-50",name:o?"keyboard_arrow_up":"keyboard_arrow_down"})]},a),e.jsx("div",{className:we("shadow-navDrop fixed z-10 min-w-44 rounded-input-poppers border border-border bg-bg","transition-[opacity,transform] ease-out",o&&u.length>0?"pointer-events-auto translate-y-0 opacity-100 duration-75":"pointer-events-none -translate-y-2 opacity-0 duration-0"),style:{positionAnchor:d,top:"anchor(bottom)",left:"calc((anchor(left) + anchor(right)) / 2)",translate:"-50% 0"},children:e.jsx("ul",{className:"flex flex-col gap-2 py-2",children:u.map((t,n)=>e.jsx("li",{className:"submenu-link",children:e.jsx(Re,{...t,linkVariant:"unstyled",linkClassName:"body3 px-4 hover:bg-bg-surface-hover flex items-center w-full h-11 text-text-link"})},`submenu-link-${n}`))})})]})},qe=({link:n})=>{const[r,o]=t.useState(!1);if(!n)return null;if((e=>"string"==typeof e.href)(n))return e.jsx(Re,{...n,linkClassName:"label3 flex items-center w-full h-11 px-4 text-text-link",linkVariant:"unstyled"},`submenu-link-btn-${n.anchorId}`);const{anchorId:i,title:s,items:a}=n,l=Array.isArray(null==a?void 0:a.items)?a.items:[];return e.jsxs(e.Fragment,{children:[e.jsxs(Re,{onClick:()=>o(e=>!e),"aria-expanded":r,buttonClassName:"label3 flex h-11 w-full items-center px-4",showButtonAs:"unstyled",children:[null!=s?s:null,e.jsx(je,{weight:"200",size:24,className:"text-icon-secondary group-hover:opacity-50",name:r?"keyboard_arrow_up":"keyboard_arrow_down"})]},i),r&&l.length>0&&e.jsx(et,{items:l})]})},et=({items:t})=>e.jsx("ul",{className:"flex flex-col gap-2",children:t.map((t,n)=>e.jsx("li",{className:"submenu-link",children:e.jsx(Re,{...t,linkVariant:"unstyled",linkClassName:"body3 pl-8 pr-4 flex items-center w-full h-11 text-text-link"})},`submenu-link-${n}`))},`submenu-${t.length}`),tt=t=>{const{showBlinkDot:n=!1,buttonStyle:r="primary",size:o="md",children:i,className:s,...a}=t;return e.jsxs(Se,{...a,className:we("relative flex items-center gap-2 font-medium tracking-wide outline-offset-4 rounded-full",{sm:"h-6 text-xs pl-1 pr-2",md:"h-8 text-sm pl-1 pr-2",lg:"h-10 text-base pl-2 pr-3"}[o],{primary:"border-[0.727px] border-border text-text"}[r],s),children:[n?e.jsx("span",{className:`pointer-events-none absolute animate-blink ${{sm:"-left-4",md:"-left-6",lg:"-left-8"}[o]} top-1/2 ${{sm:"h-2 w-2",md:"h-3 w-3",lg:"h-4 w-4"}[o]} -translate-y-1/2 rounded-full bg-icon-brand`}):null,e.jsx("span",{className:`relative inline-flex ${{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}[o]} items-center justify-center rounded-full bg-icon-brand`,children:e.jsx(je,{name:"call",fill:1,size:{sm:20,md:20,lg:32}[o],className:"text-white"})}),e.jsx("span",{className:"font-normal tracking-wide",children:i})]})};tt.displayName="CallButton";const nt=t.forwardRef((n,r)=>{const{className:o,size:i,required:s,placeholder:a,label:l,state:c,errorText:u,prefixIconName:d,prefixIconFill:p=!0,suffixIconFill:m=!1,prefixIconSize:h=24,suffixIconName:f,suffixIconSize:g=24,containerClassName:b,prefixIconClassName:v,loading:x,hasError:y,type:I,...C}=n,w=y?"error":c,[A,N]=t.useState(!1),[j,k]=t.useState(!1),[G,P]=t.useState(I||"text"),V=t.useCallback(e=>{e.stopPropagation(),P(e=>"password"===e?"text":"password")},[]);return e.jsxs("div",{className:"relative",children:[l?e.jsx("label",{htmlFor:l,className:we("inline-block pb-1"),children:e.jsxs(Ge,{as:"span",className:"footnote text-text",children:[l,s?e.jsx("span",{className:"pl-1 text-text-critical",children:"*"}):null]})}):null,e.jsxs("div",{className:we("relative flex flex-row items-center overflow-hidden rounded-input border border-input-border bg-input-bg-surface",{sm:"h-[48px] px-3 py-2",slim:"h-12",medium:"h-14",large:"h-[60px]"}[i||"medium"],b,(A||"hover"===w)&&!j&&"error"!==w&&"border-input-border-hover",(j||"focus"===w||"active"===w)&&"border-input-border-selected outline outline-1 outline-input-border-selected","error"===w&&"border-input-border-critical outline outline-1 outline-input-border-critical"),children:[d?e.jsx("div",{className:"mr-1",style:{width:h,height:h,overflow:"hidden"},children:e.jsx(je,{name:d,fill:p?1:0,size:h,className:we(v)})}):null,e.jsx("input",{ref:r,id:l,disabled:x||C.disabled,className:we("h-full grow rounded-input p-4 caret-bg-inverse placeholder:text-input-text-placeholder focus:border-none focus:outline-none","text-body2","slim"===i&&"text-body3",o),placeholder:a,type:G,...C,onMouseOver:()=>N(!0),onMouseOut:()=>N(!1),onFocus:e=>{var t;null===(t=C.onFocus)||void 0===t||t.call(C,e),k(!0)},onBlur:e=>{var t;null===(t=C.onBlur)||void 0===t||t.call(C,e),k(!1)}}),f?e.jsx("div",{className:"ml-2",style:{width:g,height:g,overflow:"hidden"},onClick:V,children:e.jsx(je,{name:"text"===G?"visibility":"visibility_off",size:g,fill:m?1:0})}):null]}),"error"===w&&u&&""!=u?e.jsxs(Ge,{className:we("footnote left-0 top-full inline-flex items-center pt-1 text-text-critical"),children:[e.jsx(je,{name:"info",size:20,className:"mr-1"}),u||"Error"]}):null]})});nt.displayName="Input";const rt=n=>{var r;const{primaryNavigationLinks:o,utilityNavigationLinks:i,supportNavigationLinks:s,accountNavigationLinks:a}=n,[l,c]=t.useState(!1);t.useEffect(()=>{if("undefined"==typeof window)return;document.body.style.overflowY=l?"hidden":"unset";const e=document.getElementById("drawer-items");if(!e)return;const t=e.querySelectorAll(".focus-item"),n=t[0],r=t[t.length-1],o=e=>{var t,o,i,s;("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===n&&(null===(o=(t=r).focus)||void 0===o||o.call(t),e.preventDefault()):document.activeElement===r&&(null===(s=(i=n).focus)||void 0===s||s.call(i),e.preventDefault()))};return window.addEventListener("keydown",o),()=>{document.body.style.overflowY="unset",window.removeEventListener("keydown",o)}},[l]);const u=()=>{c(!1)};return e.jsxs("div",{children:[e.jsx(Re,{showButtonAs:"unstyled",buttonClassName:"flex",onClick:()=>c(!0),children:e.jsx(je,{name:"menu"})}),l?e.jsx("div",{className:"fixed bottom-0 left-0 right-0 top-0 z-[90] h-full w-full bg-scrim-bg-modal"}):null,e.jsx("div",{className:we("fixed bottom-0 right-0 top-0","z-[100] h-full bg-bg px-0 py-4","transition-all duration-300 ease-in-out","block",l?"right-0":"-right-96"),id:"mobile-menu-overlay",children:e.jsxs("div",{id:"drawer-items",className:"flex h-full flex-col gap-3",children:[e.jsxs("div",{className:"flex items-center justify-between px-4",children:[e.jsx("div",{children:e.jsx(tt,{className:"border-none",href:n.invocaPhoneNumberLink,children:n.invocaPhoneNumberDisplayText})}),e.jsx("div",{children:e.jsx(Re,{showButtonAs:"unstyled",buttonClassName:"focus-item flex",onClick:u,children:e.jsx(je,{name:"close"})})})]}),e.jsx(ot,{closeMenu:u,isMenuOpen:l,searchBarIconURL:"string"==typeof n.searchBarIcon?n.searchBarIcon:(null===(r=n.searchBarIcon)||void 0===r?void 0:r.url)||"",onSearch:n.onSearch||(()=>{})}),e.jsxs("div",{className:"flex-grow overflow-y-auto",children:[e.jsx("ul",{className:"mt-2 flex flex-col gap-2",children:[...o||[],...s||[],...a||[]].map((t,n)=>e.jsx("li",{children:e.jsx(qe,{link:t})},`main-menu-items-${n}`))}),e.jsx("ul",{className:"mt-2 flex gap-5 bg-bg-fill-info px-4",children:null==i?void 0:i.map((t,n)=>e.jsx("li",{children:e.jsx(Re,{...Object.fromEntries(Object.entries(t).filter(([e,t])=>null!==t)),linkClassName:we("footnote flex items-center w-full h-11 text-text-link",1===n&&"label4"),linkVariant:"unstyled"},`utility-submenu-link-btn-${t.anchorId}`)},`utility-menu-items-${n}`))})]})]})})]})},ot=n=>{const{closeMenu:r,onSearch:o,isMenuOpen:i,searchBarIconURL:s}=n,[a,l]=t.useState(""),c=t.useRef(null),u=e=>{r(),e.preventDefault(),o(a)};return t.useEffect(()=>{i||l("")},[i]),e.jsxs("form",{name:"searchForm",className:"flex border-b border-t transition-colors focus-within:border-border-focus",onSubmit:u,children:[e.jsx(Me,{src:s,width:32,height:32,alt:"Search icon",role:"button",className:"ml-2",onClick:u}),e.jsx("div",{className:"flex-grow",children:e.jsx(nt,{ref:c,className:"body3 h-[34px] rounded-none px-3 text-text",name:"search",placeholder:"Search...",value:a,onChange:e=>l(e.target.value),autoComplete:"off",containerClassName:"h-[46px] px-4 pl-0 rounded-none flex-grow border-none"})})]})},it=n=>{const{searchBarIconURL:r,onSearch:o}=n,[i,s]=t.useState(""),a=t.useRef(null),l=e=>{e.preventDefault(),o(i)};return e.jsxs("form",{name:"searchForm",className:"flex h-9 w-60 rounded-input-xl border px-1 transition-colors focus-within:border-border-focus",onSubmit:l,children:[e.jsx(Me,{src:r,width:32,height:32,alt:"Search icon",role:"button",onClick:l}),e.jsx(nt,{ref:a,className:"body3 rounded-full px-3 text-text",name:"search",placeholder:"Search...",value:i,onChange:e=>s(e.target.value),autoComplete:"off",containerClassName:"px-0 h-full border-none rounded-full"})]})},st={closed:{opacity:0},open:{opacity:1}},at={closed:{opacity:0,scale:.96},open:{opacity:1,scale:1}},lt={xs:"475px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},ct=t.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ut=t.createContext({}),dt=t.createContext(null),pt="undefined"!=typeof document,mt=pt?t.useLayoutEffect:t.useEffect,ht=t.createContext({strict:!1});function ft(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function gt(e){return"string"==typeof e||Array.isArray(e)}function bt(e){return"object"==typeof e&&"function"==typeof e.start}const vt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],xt=["initial",...vt];function yt(e){return bt(e.animate)||xt.some(t=>gt(e[t]))}function It(e){return Boolean(yt(e)||e.variants)}function Ct(e){const{initial:n,animate:r}=function(e,t){if(yt(e)){const{initial:t,animate:n}=e;return{initial:!1===t||gt(t)?t:void 0,animate:gt(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,t.useContext(ut));return t.useMemo(()=>({initial:n,animate:r}),[wt(n),wt(r)])}function wt(e){return Array.isArray(e)?e.join(" "):e}const At={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"]},Nt={};for(const e in At)Nt[e]={isEnabled:t=>At[e].some(e=>!!t[e])};const jt=t.createContext({}),kt=t.createContext({}),Gt=Symbol.for("motionComponentSymbol");function Pt({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:o,Component:i}){e&&function(e){for(const t in e)Nt[t]={...Nt[t],...e[t]}}(e);const s=t.forwardRef(function(s,l){let c;const u={...t.useContext(ct),...s,layoutId:Vt(s)},{isStatic:d}=u,p=Ct(s),m=o(s,d);if(!d&&pt){p.visualElement=function(e,n,r,o){const{visualElement:i}=t.useContext(ut),s=t.useContext(ht),a=t.useContext(dt),l=t.useContext(ct).reducedMotion,c=t.useRef();o=o||s.renderer,!c.current&&o&&(c.current=o(e,{visualState:n,parent:i,props:r,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));const u=c.current;return t.useInsertionEffect(()=>{u&&u.update(r,a)}),mt(()=>{u&&u.render()}),t.useEffect(()=>{u&&u.updateFeatures()}),(window.HandoffAppearAnimations?mt:t.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}(i,m,u,n);const r=t.useContext(kt),o=t.useContext(ht).strict;p.visualElement&&(c=p.visualElement.loadFeatures(u,o,e,r))}return a.createElement(ut.Provider,{value:p},c&&p.visualElement?a.createElement(c,{visualElement:p.visualElement,...u}):null,r(i,s,function(e,n,r){return t.useCallback(t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"==typeof r?r(t):ft(r)&&(r.current=t))},[n])}(m,p.visualElement,l),m,d,p.visualElement))});return s[Gt]=i,s}function Vt({layoutId:e}){const n=t.useContext(jt).id;return n&&void 0!==e?n+"-"+e:e}function Bt(e){function t(t,n={}){return Pt(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const St=["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 Rt(e){return"string"==typeof e&&!e.includes("-")&&!!(St.indexOf(e)>-1||/[A-Z]/.test(e))}const Et={};const Tt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Mt=new Set(Tt);function Xt(e,{layout:t,layoutId:n}){return Mt.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Et[e]||"opacity"===e)}const Wt=e=>Boolean(e&&e.getVelocity),Ft={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Lt=Tt.length;const Ot=e=>t=>"string"==typeof t&&t.startsWith(e),Dt=Ot("--"),Zt=Ot("var(--"),zt=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Ht=(e,t,n)=>Math.min(Math.max(n,e),t),Yt={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Jt={...Yt,transform:e=>Ht(0,1,e)},Ut={...Yt,default:1},$t=e=>Math.round(1e5*e)/1e5,Qt=/(-)?([\d]*\.?[\d])+/g,_t=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Kt=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function qt(e){return"string"==typeof e}const en=e=>({test:t=>qt(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),tn=en("deg"),nn=en("%"),rn=en("px"),on=en("vh"),sn=en("vw"),an={...nn,parse:e=>nn.parse(e)/100,transform:e=>nn.transform(100*e)},ln={...Yt,transform:Math.round},cn={borderWidth:rn,borderTopWidth:rn,borderRightWidth:rn,borderBottomWidth:rn,borderLeftWidth:rn,borderRadius:rn,radius:rn,borderTopLeftRadius:rn,borderTopRightRadius:rn,borderBottomRightRadius:rn,borderBottomLeftRadius:rn,width:rn,maxWidth:rn,height:rn,maxHeight:rn,size:rn,top:rn,right:rn,bottom:rn,left:rn,padding:rn,paddingTop:rn,paddingRight:rn,paddingBottom:rn,paddingLeft:rn,margin:rn,marginTop:rn,marginRight:rn,marginBottom:rn,marginLeft:rn,rotate:tn,rotateX:tn,rotateY:tn,rotateZ:tn,scale:Ut,scaleX:Ut,scaleY:Ut,scaleZ:Ut,skew:tn,skewX:tn,skewY:tn,distance:rn,translateX:rn,translateY:rn,translateZ:rn,x:rn,y:rn,z:rn,perspective:rn,transformPerspective:rn,opacity:Jt,originX:an,originY:an,originZ:rn,zIndex:ln,fillOpacity:Jt,strokeOpacity:Jt,numOctaves:ln};function un(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if(Dt(e)){i[e]=n;continue}const r=cn[e],d=zt(n,r);if(Mt.has(e)){if(l=!0,s[e]=d,!u)continue;n!==(r.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,a[e]=d):o[e]=d}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let t=0;t<Lt;t++){const n=Tt[t];void 0!==e[n]&&(i+=`${Ft[n]||n}(${e[n]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,u,r):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;o.transformOrigin=`${e} ${t} ${n}`}}const dn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function pn(e,t,n){for(const r in t)Wt(t[r])||Xt(r,n)||(e[r]=t[r])}function mn(e,n,r){const o={};return pn(o,e.style||{},e),Object.assign(o,function({transformTemplate:e},n,r){return t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return un(t,n,{enableHardwareAcceleration:!r},e),Object.assign({},t.vars,t.style)},[n])}(e,n,r)),e.transformValues?e.transformValues(o):o}function hn(e,t,n){const r={},o=mn(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const fn=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function gn(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||fn.has(e)}let bn=e=>!gn(e);try{(vn=require("@emotion/is-prop-valid").default)&&(bn=e=>e.startsWith("on")?!gn(e):vn(e))}catch(e){}var vn;function xn(e,t,n){return"string"==typeof e?e:rn.transform(t+n*e)}const yn={offset:"stroke-dashoffset",array:"stroke-dasharray"},In={offset:"strokeDashoffset",array:"strokeDasharray"};function Cn(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,d,p){if(un(e,c,u,p),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:m,style:h,dimensions:f}=e;m.transform&&(f&&(h.transform=m.transform),delete m.transform),f&&(void 0!==o||void 0!==i||h.transform)&&(h.transformOrigin=function(e,t,n){return`${xn(t,e.x,e.width)} ${xn(n,e.y,e.height)}`}(f,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(m.x=t),void 0!==n&&(m.y=n),void 0!==r&&(m.scale=r),void 0!==s&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?yn:In;e[i.offset]=rn.transform(-r);const s=rn.transform(t),a=rn.transform(n);e[i.array]=`${s} ${a}`}(m,s,a,l,!1)}const wn=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),An=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Nn(e,n,r,o){const i=t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Cn(t,n,{enableHardwareAcceleration:!1},An(o),e.transformTemplate),{...t.attrs,style:{...t.style}}},[n]);if(e.style){const t={};pn(t,e.style,e),i.style={...t,...i.style}}return i}function jn(e=!1){return(n,r,o,{latestValues:i},s)=>{const a=(Rt(n)?Nn:hn)(r,i,s,n),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(bn(o)||!0===n&&gn(o)||!t&&!gn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(r,"string"==typeof n,e),c={...l,...a,ref:o},{children:u}=r,d=t.useMemo(()=>Wt(u)?u.get():u,[u]);return t.createElement(n,{...c,children:d})}}const kn=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Gn(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const Pn=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Vn(e,t,n,r){Gn(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(Pn.has(n)?n:kn(n),t.attrs[n])}function Bn(e,t){const{style:n}=e,r={};for(const o in n)(Wt(n[o])||t.style&&Wt(t.style[o])||Xt(o,e))&&(r[o]=n[o]);return r}function Sn(e,t){const n=Bn(e,t);for(const r in e)if(Wt(e[r])||Wt(t[r])){n[-1!==Tt.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function Rn(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}function En(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}const Tn=e=>Array.isArray(e),Mn=e=>Tn(e)?e[e.length-1]||0:e;function Xn(e){const t=Wt(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const Wn=e=>(n,r)=>{const o=t.useContext(ut),i=t.useContext(dt),s=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:Fn(r,o,i,e),renderState:t()};return n&&(s.mount=e=>n(r,e,s)),s}(e,n,o,i);return r?s():En(s)};function Fn(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=Xn(i[e]);let{initial:s,animate:a}=e;const l=yt(e),c=It(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let u=!!n&&!1===n.initial;u=u||!1===s;const d=u?a:s;if(d&&"boolean"!=typeof d&&!bt(d)){(Array.isArray(d)?d:[d]).forEach(t=>{const n=Rn(e,t);if(!n)return;const{transitionEnd:r,transition:i,...s}=n;for(const e in s){let t=s[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]})}return o}const Ln={useVisualState:Wn({scrapeMotionValuesFromProps:Sn,createRenderState:wn,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}Cn(n,r,{enableHardwareAcceleration:!1},An(t.tagName),e.transformTemplate),Vn(t,n)}})},On={useVisualState:Wn({scrapeMotionValuesFromProps:Bn,createRenderState:dn})};function Dn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Zn=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function zn(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function Hn(e,t,n,r){return Dn(e,t,(e=>t=>Zn(t)&&e(t,zn(t)))(n),r)}const Yn=(e,t)=>n=>t(e(n)),Jn=(...e)=>e.reduce(Yn);function Un(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const $n=Un("dragHorizontal"),Qn=Un("dragVertical");function _n(e){let t=!1;if("y"===e)t=Qn();else if("x"===e)t=$n();else{const e=$n(),n=Qn();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Kn(){const e=_n(!0);return!e||(e(),!1)}class qn{constructor(e){this.isMounted=!1,this.node=e}update(){}}const er={delta:0,timestamp:0,isProcessing:!1};let tr=!0,nr=!1;const rr=["read","update","preRender","render","postRender"],or=rr.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(e,i=!1,a=!1)=>{const l=a&&o,c=l?t:n;return i&&s.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),s.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),s.has(r)&&(a.schedule(r),e())}o=!1,i&&(i=!1,a.process(l))}}};return a}(()=>nr=!0),e),{}),ir=e=>or[e].process(er),sr=e=>{nr=!1,er.delta=tr?1e3/60:Math.max(Math.min(e-er.timestamp,40),1),er.timestamp=e,er.isProcessing=!0,rr.forEach(ir),er.isProcessing=!1,nr&&(tr=!1,requestAnimationFrame(sr))},ar=rr.reduce((e,t)=>{const n=or[t];return e[t]=(e,t=!1,r=!1)=>(nr||(nr=!0,tr=!0,er.isProcessing||requestAnimationFrame(sr)),n.schedule(e,t,r)),e},{});function lr(e){rr.forEach(t=>or[t].cancel(e))}function cr(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return Hn(e.current,n,(n,o)=>{if("touch"===n.type||Kn())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&ar.update(()=>i[r](n,o))},{passive:!e.getProps()[r]})}const ur=(e,t)=>!!t&&(e===t||ur(e,t.parentElement)),dr=e=>e;function pr(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,zn(n))}const mr=new WeakMap,hr=new WeakMap,fr=e=>{const t=mr.get(e.target);t&&t(e)},gr=e=>{e.forEach(fr)};function br(e,t,n){const r=function({root:e,...t}){const n=e||document;hr.has(n)||hr.set(n,{});const r=hr.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(gr,{root:e,...t})),r[o]}(t);return mr.set(e,n),r.observe(e),()=>{mr.delete(e),r.unobserve(e)}}const vr={some:0,all:1};const xr={inView:{Feature:class extends qn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:vr[r]};return br(this.node.current,i,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends qn{constructor(){super(...arguments),this.removeStartListeners=dr,this.removeEndListeners=dr,this.removeAccessibleListeners=dr,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=Hn(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();ar.update(()=>{ur(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),o=Hn(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Jn(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Dn(this.node.current,"keydown",e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Dn(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&pr("up",(e,t)=>{const{onTap:n}=this.node.getProps();n&&ar.update(()=>n(e,t))})}),pr("down",(e,t)=>{this.startPress(e,t)})}),t=Dn(this.node.current,"blur",()=>{this.isPressing&&pr("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=Jn(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&ar.update(()=>n(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Kn()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&ar.update(()=>n(e,t))}mount(){const e=this.node.getProps(),t=Hn(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Dn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Jn(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends qn{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=Jn(Dn(this.node.current,"focus",()=>this.onFocus()),Dn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends qn{mount(){this.unmount=Jn(cr(this.node,!0),cr(this.node,!1))}unmount(){}}}};function yr(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Ir(e,t,n){const r=e.getProps();return Rn(r,t,void 0!==n?n:r.custom,function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}const Cr="data-"+kn("framerAppearId");let wr=dr,Ar=dr;"production"!==process.env.NODE_ENV&&(wr=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},Ar=(e,t)=>{if(!e)throw new Error(t)});const Nr=e=>1e3*e,jr=e=>e/1e3,kr=!1,Gr=e=>Array.isArray(e)&&"number"==typeof e[0];function Pr(e){return Boolean(!e||"string"==typeof e&&Br[e]||Gr(e)||Array.isArray(e)&&e.every(Pr))}const Vr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Br={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Vr([0,.65,.55,1]),circOut:Vr([.55,0,1,.45]),backIn:Vr([.31,.01,.66,-.59]),backOut:Vr([.33,1.53,.69,.99])};function Sr(e){if(e)return Gr(e)?Vr(e):Array.isArray(e)?e.map(Sr):Br[e]}const Rr={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Er={},Tr={};for(const e in Rr)Tr[e]=()=>(void 0===Er[e]&&(Er[e]=Rr[e]()),Er[e]);const Mr=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Xr(e,t,n,r){if(e===t&&n===r)return dr;const o=t=>function(e,t,n,r,o){let i,s,a=0;do{s=t+(n-t)/2,i=Mr(s,r,o)-e,i>0?n=s:t=s}while(Math.abs(i)>1e-7&&++a<12);return s}(t,0,1,e,n);return e=>0===e||1===e?e:Mr(o(e),t,r)}const Wr=Xr(.42,0,1,1),Fr=Xr(0,0,.58,1),Lr=Xr(.42,0,.58,1),Or=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Dr=e=>t=>1-e(1-t),Zr=e=>1-Math.sin(Math.acos(e)),zr=Dr(Zr),Hr=Or(zr),Yr=Xr(.33,1.53,.69,.99),Jr=Dr(Yr),Ur=Or(Jr),$r={linear:dr,easeIn:Wr,easeInOut:Lr,easeOut:Fr,circIn:Zr,circInOut:Hr,circOut:zr,backIn:Jr,backInOut:Ur,backOut:Yr,anticipate:e=>(e*=2)<1?.5*Jr(e):.5*(2-Math.pow(2,-10*(e-1)))},Qr=e=>{if(Array.isArray(e)){Ar(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Xr(t,n,r,o)}return"string"==typeof e?(Ar(void 0!==$r[e],`Invalid easing type '${e}'`),$r[e]):e},_r=(e,t)=>n=>Boolean(qt(n)&&Kt.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Kr=(e,t,n)=>r=>{if(!qt(r))return r;const[o,i,s,a]=r.match(Qt);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},qr={...Yt,transform:e=>Math.round((e=>Ht(0,255,e))(e))},eo={test:_r("rgb","red"),parse:Kr("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+qr.transform(e)+", "+qr.transform(t)+", "+qr.transform(n)+", "+$t(Jt.transform(r))+")"};const to={test:_r("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:eo.transform},no={test:_r("hsl","hue"),parse:Kr("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+nn.transform($t(t))+", "+nn.transform($t(n))+", "+$t(Jt.transform(r))+")"},ro={test:e=>eo.test(e)||to.test(e)||no.test(e),parse:e=>eo.test(e)?eo.parse(e):no.test(e)?no.parse(e):to.parse(e),transform:e=>qt(e)?e:e.hasOwnProperty("red")?eo.transform(e):no.transform(e)},oo=(e,t,n)=>-n*e+n*t+e;function io(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const so=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},ao=[to,eo,no];function lo(e){const t=(n=e,ao.find(e=>e.test(n)));var n;Ar(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===no&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;o=io(a,r,e+1/3),i=io(a,r,e),s=io(a,r,e-1/3)}else o=i=s=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*s),alpha:r}}(r)),r}const co=(e,t)=>{const n=lo(e),r=lo(t),o={...n};return e=>(o.red=so(n.red,r.red,e),o.green=so(n.green,r.green,e),o.blue=so(n.blue,r.blue,e),o.alpha=oo(n.alpha,r.alpha,e),eo.transform(o))};const uo={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:dr},po={regex:_t,countKey:"Colors",token:"${c}",parse:ro.parse},mo={regex:Qt,countKey:"Numbers",token:"${n}",parse:Yt.parse};function ho(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function fo(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&ho(n,uo),ho(n,po),ho(n,mo),n}function go(e){return fo(e).values}function bo(e){const{values:t,numColors:n,numVars:r,tokenised:o}=fo(e),i=t.length;return e=>{let t=o;for(let o=0;o<i;o++)t=o<r?t.replace(uo.token,e[o]):o<r+n?t.replace(po.token,ro.transform(e[o])):t.replace(mo.token,$t(e[o]));return t}}const vo=e=>"number"==typeof e?0:e;const xo={test:function(e){var t,n;return isNaN(e)&&qt(e)&&((null===(t=e.match(Qt))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(_t))||void 0===n?void 0:n.length)||0)>0},parse:go,createTransformer:bo,getAnimatableNone:function(e){const t=go(e);return bo(e)(t.map(vo))}},yo=(e,t)=>n=>`${n>0?t:e}`;function Io(e,t){return"number"==typeof e?n=>oo(e,t,n):ro.test(e)?co(e,t):e.startsWith("var(")?yo(e,t):Ao(e,t)}const Co=(e,t)=>{const n=[...e],r=n.length,o=e.map((e,n)=>Io(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},wo=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Io(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},Ao=(e,t)=>{const n=xo.createTransformer(t),r=fo(e),o=fo(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Jn(Co(r.values,o.values),n):(wr(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),yo(e,t))},No=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},jo=(e,t)=>n=>oo(e,t,n);function ko(e,t,n){const r=[],o=n||("number"==typeof(i=e[0])?jo:"string"==typeof i?ro.test(i)?co:Ao:Array.isArray(i)?Co:"object"==typeof i?wo:jo);var i;const s=e.length-1;for(let n=0;n<s;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||dr:t;i=Jn(e,i)}r.push(i)}return r}function Go(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Ar(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=ko(t,r,o),a=s.length,l=t=>{let n=0;if(a>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=No(e[n],e[n+1],t);return s[n](r)};return n?t=>l(Ht(e[0],e[i-1],t)):l}function Po(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=No(0,t,r);e.push(oo(n,1,o))}}(t,e.length-1),t}function Vo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Qr):Qr(r),i={done:!1,value:t[0]},s=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:Po(t),e),a=Go(s,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map(()=>c||Lr).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=a(t),i.done=t>=e,i)}}function Bo(e,t){return t?e*(1e3/t):0}function So(e,t,n){const r=Math.max(t-5,0);return Bo(n-e(r),t-r)}const Ro=.001;function Eo({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;wr(e<=Nr(10),"Spring duration must be 10 seconds or less");let s=1-t;s=Ht(.05,1,s),e=Ht(.01,10,jr(e)),s<1?(o=t=>{const r=t*s,o=r*e,i=r-n,a=Mo(t,s),l=Math.exp(-o);return Ro-i/a*l},i=t=>{const r=t*s*e,i=r*n+n,a=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=Mo(Math.pow(t,2),s);return(-o(t)+Ro>0?-1:1)*((i-a)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let n=1;n<To;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=Nr(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}const To=12;function Mo(e,t){return e*Math.sqrt(1-t*t)}const Xo=["duration","bounce"],Wo=["stiffness","damping","mass"];function Fo(e,t){return t.some(t=>void 0!==e[t])}function Lo({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Fo(e,Wo)&&Fo(e,Xo)){const n=Eo(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),m=u?-jr(u):0,h=l/(2*Math.sqrt(a*c)),f=i-o,g=jr(Math.sqrt(a/c)),b=Math.abs(f)<5;let v;if(n||(n=b?.01:2),t||(t=b?.005:.5),h<1){const e=Mo(g,h);v=t=>{const n=Math.exp(-h*g*t);return i-n*((m+h*g*f)/e*Math.sin(e*t)+f*Math.cos(e*t))}}else if(1===h)v=e=>i-Math.exp(-g*e)*(f+(m+g*f)*e);else{const e=g*Math.sqrt(h*h-1);v=t=>{const n=Math.exp(-h*g*t),r=Math.min(e*t,300);return i-n*((m+h*g*f)*Math.sinh(r)+e*f*Math.cosh(r))/e}}return{calculatedDuration:p&&d||null,next:e=>{const r=v(e);if(p)s.done=e>=d;else{let o=m;0!==e&&(o=h<1?So(v,e,r):0);const a=Math.abs(o)<=n,l=Math.abs(i-r)<=t;s.done=a&&l}return s.value=s.done?i:r,s}}}function Oo({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},m=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let h=n*t;const f=d+h,g=void 0===s?f:s(f);g!==f&&(h=g-d);const b=e=>-h*Math.exp(-e/r),v=e=>g+b(e),x=e=>{const t=b(e),n=v(e);p.done=Math.abs(t)<=c,p.value=p.done?g:n};let y,I;const C=e=>{var t;(t=p.value,void 0!==a&&t<a||void 0!==l&&t>l)&&(y=e,I=Lo({keyframes:[p.value,m(p.value)],velocity:So(v,e,p.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return I||void 0!==y||(t=!0,x(e),C(e)),void 0!==y&&e>y?I.next(e-y):(!t&&x(e),p)}}}const Do=e=>{const t=({timestamp:t})=>e(t);return{start:()=>ar.update(t,!0),stop:()=>lr(t),now:()=>er.isProcessing?er.timestamp:performance.now()}};function Zo(e){let t=0;let n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}const zo={decay:Oo,inertia:Oo,tween:Vo,keyframes:Vo,spring:Lo};function Ho({autoplay:e=!0,delay:t=0,driver:n=Do,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...p}){let m,h,f=1,g=!1;const b=()=>{m&&m(),h=new Promise(e=>{m=e})};let v;b();const x=zo[o]||Vo;let y;x!==Vo&&"number"!=typeof r[0]&&(y=Go([0,100],r,{clamp:!1}),r=[0,100]);const I=x({...p,keyframes:r});let C;"mirror"===a&&(C=x({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let w="idle",A=null,N=null,j=null;null===I.calculatedDuration&&i&&(I.calculatedDuration=Zo(I));const{calculatedDuration:k}=I;let G=1/0,P=1/0;null!==k&&(G=k+s,P=G*(i+1)-s);let V=0;const B=e=>{if(null===N)return;f>0&&(N=Math.min(N,e)),V=null!==A?A:(e-N)*f;const n=V-t,o=n<0;V=Math.max(n,0),"finished"===w&&null===A&&(V=P);let l=V,c=I;if(i){const e=V/G;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,i+1);const r=Boolean(t%2);r&&("reverse"===a?(n=1-n,s&&(n-=s/G)):"mirror"===a&&(c=C));let o=Ht(0,1,n);V>P&&(o="reverse"===a&&r?1:0),l=o*G}const u=o?{done:!1,value:r[0]}:c.next(l);y&&(u.value=y(u.value));let{done:p}=u;o||null===k||(p=V>=P);const m=null===A&&("finished"===w||"running"===w&&p||f<0&&V<=0);return d&&d(u.value),m&&E(),u},S=()=>{v&&v.stop(),v=void 0},R=()=>{w="idle",S(),b(),N=j=null},E=()=>{w="finished",u&&u(),S(),b()},T=()=>{if(g)return;v||(v=n(B));const e=v.now();l&&l(),null!==A?N=e-A:N&&"finished"!==w||(N=e),j=N,A=null,w="running",v.start()};e&&T();const M={then:(e,t)=>h.then(e,t),get time(){return jr(V)},set time(e){e=Nr(e),V=e,null===A&&v&&0!==f?N=v.now()-e/f:A=e},get duration(){const e=null===I.calculatedDuration?Zo(I):I.calculatedDuration;return jr(e)},get speed(){return f},set speed(e){e!==f&&v&&(f=e,M.time=jr(V))},get state(){return w},play:T,pause:()=>{w="paused",A=V},stop:()=>{g=!0,"idle"!==w&&(w="idle",c&&c(),R())},cancel:()=>{null!==j&&B(j),R()},complete:()=>{w="finished"},sample:e=>(N=0,B(e))};return M}const Yo=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Jo(e,t,{onUpdate:n,onComplete:r,...o}){if(!(Tr.waapi()&&Yo.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,s,a=!1;const l=()=>{s=new Promise(e=>{i=e})};l();let{keyframes:c,duration:u=300,ease:d,times:p}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!Pr(t.ease))(t,o)){const e=Ho({...o,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;p=void 0,c=n,u=r-10,d="linear"}const m=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Sr(a);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===s?"alternate":"normal"})}(e.owner.current,t,c,{...o,duration:u,ease:d,times:p}),h=()=>m.cancel(),f=()=>{ar.update(h),i(),l()};return m.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(c,o)),r&&r(),f()},{then:(e,t)=>s.then(e,t),get time(){return jr(m.currentTime||0)},set time(e){m.currentTime=Nr(e)},get speed(){return m.playbackRate},set speed(e){m.playbackRate=e},get duration(){return jr(u)},play:()=>{a||(m.play(),lr(h))},pause:()=>m.pause(),stop:()=>{if(a=!0,"idle"===m.playState)return;const{currentTime:t}=m;if(t){const n=Ho({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}f()},complete:()=>m.finish(),cancel:f}}const Uo={type:"spring",stiffness:500,damping:25,restSpeed:10},$o={type:"keyframes",duration:.8},Qo={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_o=(e,{keyframes:t})=>t.length>2?$o:Mt.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Uo:Qo,Ko=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!xo.test(t)&&"0"!==t||t.startsWith("url("))),qo=new Set(["brightness","contrast","saturate","opacity"]);function ei(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Qt)||[];if(!r)return e;const o=n.replace(r,"");let i=qo.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const ti=/([a-z-]*)\(.*?\)/g,ni={...xo,getAnimatableNone:e=>{const t=e.match(ti);return t?t.map(ei).join(" "):e}},ri={...cn,color:ro,backgroundColor:ro,outlineColor:ro,fill:ro,stroke:ro,borderColor:ro,borderTopColor:ro,borderRightColor:ro,borderBottomColor:ro,borderLeftColor:ro,filter:ni,WebkitFilter:ni},oi=e=>ri[e];function ii(e,t){let n=oi(e);return n!==ni&&(n=xo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const si=e=>/^0[^.\s]+$/.test(e);function ai(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||si(e):void 0}function li(e,t){return e[t]||e.default||e}const ci=(e,t,n,r={})=>o=>{const i=li(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a-=Nr(s);const l=function(e,t,n,r){const o=Ko(t,n);let i;i=Array.isArray(n)?[...n]:[null,n];const s=void 0!==r.from?r.from:e.get();let a;const l=[];for(let e=0;e<i.length;e++)null===i[e]&&(i[e]=0===e?s:i[e-1]),ai(i[e])&&l.push(e),"string"==typeof i[e]&&"none"!==i[e]&&"0"!==i[e]&&(a=i[e]);if(o&&l.length&&a)for(let e=0;e<l.length;e++)i[l[e]]=ii(t,a);return i}(t,e,n,i),c=l[0],u=l[l.length-1],d=Ko(e,c),p=Ko(e,u);wr(d===p,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let m={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(i)||(m={...m,..._o(e,m)}),m.duration&&(m.duration=Nr(m.duration)),m.repeatDelay&&(m.repeatDelay=Nr(m.repeatDelay)),!d||!p||kr||!1===i.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:dr,pause:dr,stop:dr,then:e=>(e(),Promise.resolve()),cancel:dr,complete:dr});return t?Ho({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=Jo(t,e,m);if(n)return n}return Ho(m)};function ui(e){return Boolean(Wt(e)&&e.add)}const di=e=>/^\-?\d*\.?\d+$/.test(e);function pi(e,t){-1===e.indexOf(t)&&e.push(t)}function mi(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class hi{constructor(){this.subscriptions=[]}add(e){return pi(this.subscriptions,e),()=>mi(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const fi=new Set;function gi(e,t,n){e||fi.has(t)||(console.warn(t),fi.add(t))}class bi{constructor(e,t={}){var n;this.version="10.12.16",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:n,timestamp:r}=er;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,ar.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>ar.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return"production"!==process.env.NODE_ENV&&gi(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new hi);const n=this.events[e].add(t);return"change"===e?()=>{n(),ar.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Bo(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function vi(e,t){return new bi(e,t)}const xi=e=>t=>t.test(e),yi=[Yt,rn,nn,tn,sn,on,{test:e=>"auto"===e,parse:e=>e}],Ii=e=>yi.find(xi(e)),Ci=[...yi,ro,xo],wi=e=>Ci.find(xi(e));function Ai(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vi(n))}function Ni(e,t){if(!t)return;return(t[e]||t.default||t).from}function ji({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function ki(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in a){const r=e.getValue(t),o=a[t];if(!r||void 0===o||u&&ji(u,t))continue;const s={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[Cr];n&&(s.elapsed=window.HandoffAppearAnimations(n,t,r,ar))}r.start(ci(t,r,o,e.shouldReduceMotion&&Mt.has(t)?{type:!1}:s));const d=r.animation;ui(l)&&(l.add(t),d.then(()=>l.remove(t))),c.push(d)}return s&&Promise.all(c).then(()=>{s&&function(e,t){const n=Ir(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i)Ai(e,t,Mn(i[t]))}(e,s)}),c}function Gi(e,t,n={}){const r=Ir(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(ki(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=o;return function(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(Pi).forEach((e,r)=>{e.notify("AnimationStart",t),s.push(Gi(e,t,{...i,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,i+r,s,a,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[e,t]="beforeChildren"===a?[i,s]:[s,i];return e().then(()=>t())}return Promise.all([i(),s(n.delay)])}function Pi(e,t){return e.sortNodePosition(t)}const Vi=[...vt].reverse(),Bi=vt.length;function Si(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map(t=>Gi(e,t,n));r=Promise.all(o)}else if("string"==typeof t)r=Gi(e,t,n);else{const o="function"==typeof t?Ir(e,t,n.custom):t;r=Promise.all(ki(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}(e,t,n)))}function Ri(e){let t=Si(e);const n={animate:Ti(!0),whileInView:Ti(),whileHover:Ti(),whileTap:Ti(),whileDrag:Ti(),whileFocus:Ti(),exit:Ti()};let r=!0;const o=(t,n)=>{const r=Ir(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,s){const a=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},p=1/0;for(let t=0;t<Bi;t++){const m=Vi[t],h=n[m],f=void 0!==a[m]?a[m]:l[m],g=gt(f),b=m===s?h.isActive:null;!1===b&&(p=t);let v=f===l[m]&&f!==a[m]&&g;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...d},!h.isActive&&null===b||!f&&!h.prevProp||bt(f)||"boolean"==typeof f)continue;const x=Ei(h.prevProp,f);let y=x||m===s&&h.isActive&&!v&&g||t>p&&g;const I=Array.isArray(f)?f:[f];let C=I.reduce(o,{});!1===b&&(C={});const{prevResolvedValues:w={}}=h,A={...w,...C},N=e=>{y=!0,u.delete(e),h.needsAnimating[e]=!0};for(const e in A){const t=C[e],n=w[e];d.hasOwnProperty(e)||(t!==n?Tn(t)&&Tn(n)?!yr(t,n)||x?N(e):h.protectedKeys[e]=!0:void 0!==t?N(e):u.add(e):void 0!==t&&u.has(e)?N(e):h.protectedKeys[e]=!0)}h.prevProp=f,h.prevResolvedValues=C,h.isActive&&(d={...d,...C}),r&&e.blockInitialAnimation&&(y=!1),y&&!v&&c.push(...I.map(e=>({animation:e,options:{type:m,...i}})))}if(u.size){const t={};u.forEach(n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),c.push({animation:t})}let m=Boolean(c.length);return r&&!1===a.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(c):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var s;if(n[t].isActive===r)return Promise.resolve();null===(s=e.variantChildren)||void 0===s||s.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;const a=i(o,t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function Ei(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!yr(t,e)}function Ti(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Mi=0;const Xi={animation:{Feature:class extends qn{constructor(e){super(e),e.animationState||(e.animationState=Ri(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),bt(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends qn{constructor(){super(...arguments),this.id=Mi++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then(()=>t(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Wi=(e,t)=>Math.abs(e-t);class Fi{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Di(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Wi(e.x,t.x),r=Wi(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=er;this.history.push({...r,timestamp:o});const{onStart:i,onMove:s}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Li(t,this.transformPagePoint),ar.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=Di("pointercancel"===e.type?this.lastMoveEventInfo:Li(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!Zn(e))return;this.handlers=t,this.transformPagePoint=n;const r=Li(zn(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=er;this.history=[{...o,timestamp:i}];const{onSessionStart:s}=t;s&&s(e,Di(r,this.history)),this.removeListeners=Jn(Hn(window,"pointermove",this.handlePointerMove),Hn(window,"pointerup",this.handlePointerUp),Hn(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),lr(this.updatePoint)}}function Li(e,t){return t?{point:t(e.point)}:e}function Oi(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Di({point:e},t){return{point:e,delta:Oi(e,zi(t)),offset:Oi(e,Zi(t)),velocity:Hi(t,.1)}}function Zi(e){return e[0]}function zi(e){return e[e.length-1]}function Hi(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=zi(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Nr(t)));)n--;if(!r)return{x:0,y:0};const i=jr(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Yi(e){return e.max-e.min}function Ji(e,t=0,n=.01){return Math.abs(e-t)<=n}function Ui(e,t,n,r=.5){e.origin=r,e.originPoint=oo(t.min,t.max,e.origin),e.scale=Yi(n)/Yi(t),(Ji(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=oo(n.min,n.max,e.origin)-e.originPoint,(Ji(e.translate)||isNaN(e.translate))&&(e.translate=0)}function $i(e,t,n,r){Ui(e.x,t.x,n.x,r?r.originX:void 0),Ui(e.y,t.y,n.y,r?r.originY:void 0)}function Qi(e,t,n){e.min=n.min+t.min,e.max=e.min+Yi(t)}function _i(e,t,n){e.min=t.min-n.min,e.max=e.min+Yi(t)}function Ki(e,t,n){_i(e.x,t.x,n.x),_i(e.y,t.y,n.y)}function qi(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function es(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const ts=.35;function ns(e,t,n){return{min:rs(e,t),max:rs(e,n)}}function rs(e,t){return"number"==typeof e?e:e[t]||0}const os=()=>({x:{min:0,max:0},y:{min:0,max:0}});function is(e){return[e("x"),e("y")]}function ss({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function as(e){return void 0===e||1===e}function ls({scale:e,scaleX:t,scaleY:n}){return!as(e)||!as(t)||!as(n)}function cs(e){return ls(e)||us(e)||e.z||e.rotate||e.rotateX||e.rotateY}function us(e){return ds(e.x)||ds(e.y)}function ds(e){return e&&"0%"!==e}function ps(e,t,n){return n+t*(e-n)}function ms(e,t,n,r,o){return void 0!==o&&(e=ps(e,o,r)),ps(e,n,r)+t}function hs(e,t=0,n=1,r,o){e.min=ms(e.min,t,n,r,o),e.max=ms(e.max,t,n,r,o)}function fs(e,{x:t,y:n}){hs(e.x,t.translate,t.scale,t.originPoint),hs(e.y,n.translate,n.scale,n.originPoint)}function gs(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function bs(e,t){e.min=e.min+t,e.max=e.max+t}function vs(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,s=oo(e.min,e.max,i);hs(e,t[n],t[r],s,t.scale)}const xs=["x","scaleX","originX"],ys=["y","scaleY","originY"];function Is(e,t){vs(e.x,t,xs),vs(e.y,t,ys)}function Cs(e,t){return ss(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const ws=new WeakMap;class As{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new Fi(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(zn(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=_n(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),is(e=>{let t=this.getAxisMotionValue(e).get()||0;if(nn.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=Yi(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),o&&ar.update(()=>o(e,t),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(s),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&ar.update(()=>o(e,t))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!Ns(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?oo(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?oo(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&ft(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:qi(e.x,n,o),y:qi(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=ts){return!1===e?e=0:!0===e&&(e=ts),{x:ns(e,"left","right"),y:ns(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&is(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!ft(e))return!1;const n=e.current;Ar(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=Cs(e,n),{scroll:o}=t;return o&&(bs(r.x,o.offset.x),bs(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:es(e.x,t.x),y:es(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=ss(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=is(s=>{if(!Ns(s,t,this.currentDirection))return;let l=a&&a[s]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(s,d)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(ci(e,n,0,t))}stopAnimation(){is(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){is(t=>{const{drag:n}=this.getProps();if(!Ns(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-oo(n,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!ft(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};is(e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=Yi(e),o=Yi(t);return o>r?n=No(t.min,t.max-r,e.min):r>o&&(n=No(e.min,e.max-o,t.min)),Ht(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),is(t=>{if(!Ns(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(oo(o,i,r[t]))})}addListeners(){if(!this.visualElement.current)return;ws.set(this.visualElement,this);const e=Hn(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();ft(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=Dn(window,"resize",()=>this.scalePositionWithinConstraints()),i=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(is(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=ts,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:s}}}function Ns(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const js=e=>(t,n)=>{e&&ar.update(()=>e(t,n))};const ks={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Gs(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ps={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!rn.test(e))return e;e=parseFloat(e)}return`${Gs(e,t.target.x)}% ${Gs(e,t.target.y)}%`}},Vs={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=xo.parse(e);if(o.length>5)return r;const i=xo.createTransformer(e),s="number"!=typeof o[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=oo(a,l,.5);return"number"==typeof o[2+s]&&(o[2+s]/=c),"number"==typeof o[3+s]&&(o[3+s]/=c),i(o)}};class Bs extends t.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=Rs,Object.assign(Et,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),ks.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||ar.postRender(()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ss(e){const[n,r]=function(){const e=t.useContext(dt);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=e,i=t.useId();return t.useEffect(()=>o(i),[]),!n&&r?[!1,()=>r&&r(i)]:[!0]}(),o=t.useContext(jt);return t.createElement(Bs,{...e,layoutGroup:o,switchLayoutGroup:t.useContext(kt),isPresent:n,safeToRemove:r})}const Rs={borderRadius:{...Ps,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ps,borderTopRightRadius:Ps,borderBottomLeftRadius:Ps,borderBottomRightRadius:Ps,boxShadow:Vs},Es=["TopLeft","TopRight","BottomLeft","BottomRight"],Ts=Es.length,Ms=e=>"string"==typeof e?parseFloat(e):e,Xs=e=>"number"==typeof e||rn.test(e);function Ws(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Fs=Os(0,.5,zr),Ls=Os(.5,.95,dr);function Os(e,t,n){return r=>r<e?0:r>t?1:n(No(e,t,r))}function Ds(e,t){e.min=t.min,e.max=t.max}function Zs(e,t){Ds(e.x,t.x),Ds(e.y,t.y)}function zs(e,t,n,r,o){return e=ps(e-=t,1/n,r),void 0!==o&&(e=ps(e,1/o,r)),e}function Hs(e,t,[n,r,o],i,s){!function(e,t=0,n=1,r=.5,o,i=e,s=e){nn.test(t)&&(t=parseFloat(t),t=oo(s.min,s.max,t/100)-s.min);if("number"!=typeof t)return;let a=oo(i.min,i.max,r);e===i&&(a-=t),e.min=zs(e.min,t,n,a,o),e.max=zs(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,i,s)}const Ys=["x","scaleX","originX"],Js=["y","scaleY","originY"];function Us(e,t,n,r){Hs(e.x,t,Ys,n?n.x:void 0,r?r.x:void 0),Hs(e.y,t,Js,n?n.y:void 0,r?r.y:void 0)}function $s(e){return 0===e.translate&&1===e.scale}function Qs(e){return $s(e.x)&&$s(e.y)}function _s(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Ks(e){return Yi(e.x)/Yi(e.y)}class qs{constructor(){this.members=[]}add(e){pi(this.members,e),e.scheduleRender()}remove(e){if(mi(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ea(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return 1===s&&1===a||(r+=`scale(${s}, ${a})`),r||"none"}const ta=(e,t)=>e.depth-t.depth;class na{constructor(){this.children=[],this.isDirty=!1}add(e){pi(this.children,e),this.isDirty=!0}remove(e){mi(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ta),this.isDirty=!1,this.children.forEach(e)}}const ra=["","X","Y","Z"];let oa=0;const ia={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function sa({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=oa++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;ia.totalNodes=ia.resolvedTargetDeltas=ia.recalculatedProjection=0,this.nodes.forEach(ca),this.nodes.forEach(ga),this.nodes.forEach(ba),this.nodes.forEach(ua),e=ia,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new na)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new hi),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(lr(r),e(i-t))};return ar.read(r,!0),()=>lr(r)}(r,250),ks.hasAnimatedSinceResize&&(ks.hasAnimatedSinceResize=!1,this.nodes.forEach(fa))})}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&s&&(o||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||s.getDefaultTransition()||wa,{onLayoutAnimationStart:i,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!_s(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...li(o,"layout"),onPlay:i,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||fa(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,lr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(va),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(pa);this.isUpdating||this.nodes.forEach(ma),this.isUpdating=!1,this.nodes.forEach(ha),this.nodes.forEach(aa),this.nodes.forEach(la),this.clearAllSnapshots();const e=performance.now();er.delta=Ht(0,1e3/60,e-er.timestamp),er.timestamp=e,er.isProcessing=!0,or.update.process(er),or.preRender.process(er),or.render.process(er),er.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(da),this.sharedNodes.forEach(xa)}scheduleUpdateProjection(){ar.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){ar.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!Qs(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||cs(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Aa((r=n).x),Aa(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(bs(t.x,n.offset.x),bs(t.y,n.offset.y)),t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Zs(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){Zs(t,e);const{scroll:n}=this.root;n&&(bs(t.x,-n.offset.x),bs(t.y,-n.offset.y))}bs(t.x,o.offset.x),bs(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Zs(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Is(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),cs(r.latestValues)&&Is(n,r.latestValues)}return cs(this.latestValues)&&Is(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Zs(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!cs(n.latestValues))continue;ls(n.latestValues)&&n.updateSnapshot();const r=os();Zs(r,n.measurePageBox()),Us(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return cs(this.latestValues)&&Us(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!==er.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=er.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ki(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Zs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,Qi(s.x,a.x,l.x),Qi(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Zs(this.target,this.layout.layoutBox),fs(this.target,this.targetDelta)):Zs(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ki(this.relativeTargetOrigin,this.target,e.target),Zs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ia.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!ls(this.parent.latestValues)&&!us(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===er.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;Zs(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,s;t.x=t.y=1;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Is(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,fs(e,s)),r&&cs(i.latestValues)&&Is(e,i.latestValues))}t.x=gs(t.x),t.y=gs(t.y)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox);const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const c=this.projectionTransform;$i(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=ea(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===s&&this.treeScale.y===a||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),ia.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(Ca));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;ya(i.x,e.x,n),ya(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ki(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){Ia(e.x,t.x,n.x,r),Ia(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,s,n),d&&_s(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),Zs(d,this.relativeTarget)),a&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=oo(0,void 0!==n.opacity?n.opacity:1,Fs(r)),e.opacityExit=oo(void 0!==t.opacity?t.opacity:1,0,Ls(r))):i&&(e.opacity=oo(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<Ts;o++){const i=`border${Es[o]}Radius`;let s=Ws(t,i),a=Ws(n,i);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||Xs(s)===Xs(a)?(e[i]=Math.max(oo(Ms(s),Ms(a),r),0),(nn.test(a)||nn.test(s))&&(e[i]+="%")):e[i]=a)}(t.rotate||n.rotate)&&(e.rotate=oo(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(lr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ar.update(()=>{ks.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Wt(e)?e:vi(e);return r.start(ci("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Na(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=Yi(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Yi(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Zs(t,n),Is(t,o),$i(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new qs);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let t=0;t<ra.length;t++){const o="rotate"+ra[t];n[o]&&(r[o]=n[o],e.setStaticValue(o,0))}e.render();for(const t in r)e.setStaticValue(t,r[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Xn(e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Xn(e.pointerEvents)||""),this.hasProjected&&!cs(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const s=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=ea(this.projectionDeltaWithTransform,this.treeScale,s),o&&(r.transform=o(s,r.transform));const{x:a,y:l}=this.projectionDelta;r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const e in Et){if(void 0===s[e])continue;const{correct:t,applyTo:n}=Et[e],o="none"===r.transform?s[e]:t(s[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?Xn(e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(pa),this.root.sharedNodes.clear()}}}function aa(e){e.updateLayout()}function la(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?is(e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=Yi(r);r.min=t[e].min,r.max=r.min+o}):Na(o,n.layoutBox,t)&&is(r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],s=Yi(t[r]);o.max=o.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};$i(s,t,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?$i(a,e.applyTransform(r,!0),n.measuredBox):$i(a,t,n.layoutBox);const l=!Qs(s);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const s={x:{min:0,max:0},y:{min:0,max:0}};Ki(s,n.layoutBox,o.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};Ki(a,t,i.layoutBox),_s(s,a)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ca(e){ia.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ua(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function da(e){e.clearSnapshot()}function pa(e){e.clearMeasurements()}function ma(e){e.isLayoutDirty=!1}function ha(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function fa(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ga(e){e.resolveTargetDelta()}function ba(e){e.calcProjection()}function va(e){e.resetRotation()}function xa(e){e.removeLeadSnapshot()}function ya(e,t,n){e.translate=oo(t.translate,0,n),e.scale=oo(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ia(e,t,n,r){e.min=oo(t.min,n.min,r),e.max=oo(t.max,n.max,r)}function Ca(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const wa={duration:.45,ease:[.4,0,.1,1]};function Aa(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Na(e,t,n){return"position"===e||"preserve-aspect"===e&&!Ji(Ks(t),Ks(n),.2)}const ja=sa({attachResizeListener:(e,t)=>Dn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ka={current:void 0},Ga=sa({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ka.current){const e=new ja({});e.mount(window),e.setOptions({layoutScroll:!0}),ka.current=e}return ka.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Pa={pan:{Feature:class extends qn{constructor(){super(...arguments),this.removePointerDownListener=dr}onPointerDown(e){this.session=new Fi(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:js(e),onStart:js(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&ar.update(()=>r(e,t))}}}mount(){this.removePointerDownListener=Hn(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 qn{constructor(e){super(e),this.removeGroupControls=dr,this.removeListeners=dr,this.controls=new As(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||dr}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Ga,MeasureLayout:Ss}},Va=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Ba(e,t,n=1){Ar(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=Va.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():Zt(o)?Ba(o,t,n+1):o}const Sa=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Ra=e=>Sa.has(e),Ea=e=>e===Yt||e===rn,Ta=(e,t)=>parseFloat(e.split(", ")[t]),Ma=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Ta(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?Ta(t[1],e):0}},Xa=new Set(["x","y","z"]),Wa=Tt.filter(e=>!Xa.has(e));const Fa={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Ma(4,13),y:Ma(5,14)},La=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Ra);let i=[],s=!1;const a=[];if(o.forEach(o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=n[o],u=Ii(c);const d=t[o];let p;if(Tn(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=Ii(c);for(let n=t;n<e&&null!==d[n];n++)p?Ar(Ii(d[n])===p,"All keyframes must be of the same type"):(p=Ii(d[n]),Ar(p===u||Ea(u)&&Ea(p),"Keyframes must be of the same dimension as the current value"))}else p=Ii(d);if(u!==p)if(Ea(u)&&Ea(p)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&p===rn&&(t[o]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==p?void 0:p.transform)&&(0===c||0===d)?0===c?l.set(p.transform(c)):t[o]=u.transform(d):(s||(i=function(e){const t=[];return Wa.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),s=!0),a.push(o),r[o]=void 0!==r[o]?r[o]:t[o],l.jump(d))}),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};"none"===s&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{a[e]=Fa[e](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(n=>{const r=t.getValue(n);r&&r.jump(a[n]),e[n]=Fa[n](l,i)}),e})(t,e,a);return i.length&&i.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),pt&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function Oa(e,t,n,r){return(e=>Object.keys(e).some(Ra))(t)?La(e,t,n,r):{target:t,transitionEnd:r}}const Da=(e,t,n,r)=>{const o=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(e=>{const t=e.get();if(!Zt(t))return;const n=Ba(t,r);n&&e.set(n)});for(const e in t){const o=t[e];if(!Zt(o))continue;const i=Ba(o,r);i&&(t[e]=i,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return Oa(e,t=o.target,n,r=o.transitionEnd)},Za={current:null},za={current:!1};const Ha=new WeakMap,Ya=Object.keys(Nt),Ja=Ya.length,Ua=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],$a=xt.length;class Qa{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>ar.render(this.render,!1,!0);const{latestValues:s,renderState:a}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=a,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=yt(t),this.isVariantNode=It(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==s[e]&&Wt(t)&&(t.set(s[e],!1),ui(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,Ha.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)),za.current||function(){if(za.current=!0,pt)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Za.current=e.matches;e.addListener(t),t()}else Za.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Za.current),"production"!==process.env.NODE_ENV&&gi(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ha.delete(this.current),this.projection&&this.projection.unmount(),lr(this.notifyUpdate),lr(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=Mt.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&ar.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),o()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o){let i,s;if("production"!==process.env.NODE_ENV&&r&&n){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?wr(!1,e):Ar(!1,e)}for(let e=0;e<Ja;e++){const n=Ya[e],{isEnabled:r,Feature:o,ProjectionNode:a,MeasureLayout:l}=Nt[n];a&&(i=a),r(t)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(s=l))}if(!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:s,layoutScroll:a,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||s&&ft(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:a,layoutRoot:l})}return s}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Ua.length;t++){const n=Ua[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(Wt(i))e.addValue(o,i),ui(r)&&r.add(o),"development"===process.env.NODE_ENV&&gi("10.12.16"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 10.12.16 may not work as expected.`);else if(Wt(s))e.addValue(o,vi(i,{owner:e})),ui(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,vi(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<$a;e++){const n=xt[e],r=this.props[n];(gt(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=vi(t,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=Rn(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||Wt(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new hi),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class _a extends Qa{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},o){let i=function(e,t,n){const r={};for(const o in e){const e=Ni(o,t);if(void 0!==e)r[o]=e;else{const e=n.getValue(o);e&&(r[o]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),i&&(i=r(i))),o){!function(e,t,n){var r,o;const i=Object.keys(t).filter(t=>!e.hasValue(t)),s=i.length;if(s)for(let a=0;a<s;a++){const s=i[a],l=t[s];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(o=null!==(r=n[s])&&void 0!==r?r:e.readValue(s))&&void 0!==o?o:t[s]),null!=c&&("string"==typeof c&&(di(c)||si(c))?c=parseFloat(c):!wi(c)&&xo.test(l)&&(c=ii(s,l)),e.addValue(s,vi(c,{owner:e})),void 0===n[s]&&(n[s]=c),null!==c&&e.setBaseTarget(s,c))}}(this,n,i);const e=Da(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class Ka extends _a{readValueFromInstance(e,t){if(Mt.has(t)){const e=oi(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Dt(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Cs(e,t)}build(e,t,n,r){un(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Bn(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Wt(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,r){Gn(e,t,n,r)}}class qa extends _a{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Mt.has(t)){const e=oi(t);return e&&e.default||0}return t=Pn.has(t)?t:kn(t),e.getAttribute(t)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e,t){return Sn(e,t)}build(e,t,n,r){Cn(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){Vn(e,t,0,r)}mount(e){this.isSVGTag=An(e.tagName),super.mount(e)}}const el=(e,t)=>Rt(e)?new qa(t,{enableHardwareAcceleration:!1}):new Ka(t,{enableHardwareAcceleration:!0}),tl={...Xi,...xr,...Pa,...{layout:{ProjectionNode:Ga,MeasureLayout:Ss}}},nl=Bt((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...Rt(e)?Ln:On,preloadedFeatures:n,useRender:jn(t),createVisualElement:r,Component:e}}(e,t,tl,el));function rl(){const e=t.useRef(!1);return mt(()=>(e.current=!0,()=>{e.current=!1}),[]),e}class ol extends a.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function il({children:e,isPresent:n}){const r=t.useId(),o=t.useRef(null),i=t.useRef({width:0,height:0,top:0,left:0});return t.useInsertionEffect(()=>{const{width:e,height:t,top:s,left:a}=i.current;if(n||!o.current||!e||!t)return;o.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${r}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${t}px !important;\n top: ${s}px !important;\n left: ${a}px !important;\n }\n `),()=>{document.head.removeChild(l)}},[n]),a.createElement(ol,{isPresent:n,childRef:o,sizeRef:i},a.cloneElement(e,{ref:o}))}const sl=({children:e,initial:n,isPresent:r,onExitComplete:o,custom:i,presenceAffectsLayout:s,mode:l})=>{const c=En(al),u=t.useId(),d=t.useMemo(()=>({id:u,initial:n,isPresent:r,custom:i,onExitComplete:e=>{c.set(e,!0);for(const e of c.values())if(!e)return;o&&o()},register:e=>(c.set(e,!1),()=>c.delete(e))}),s?void 0:[r]);return t.useMemo(()=>{c.forEach((e,t)=>c.set(t,!1))},[r]),a.useEffect(()=>{!r&&!c.size&&o&&o()},[r]),"popLayout"===l&&(e=a.createElement(il,{isPresent:r},e)),a.createElement(dt.Provider,{value:d},e)};function al(){return new Map}const ll=e=>e.key||"";const cl=({children:e,custom:n,initial:r=!0,onExitComplete:o,exitBeforeEnter:i,presenceAffectsLayout:s=!0,mode:l="sync"})=>{Ar(!i,"Replace exitBeforeEnter with mode='wait'");const c=t.useContext(jt).forceRender||function(){const e=rl(),[n,r]=t.useState(0),o=t.useCallback(()=>{e.current&&r(n+1)},[n]);return[t.useCallback(()=>ar.postRender(o),[o]),n]}()[0],u=rl(),d=function(e){const n=[];return t.Children.forEach(e,e=>{t.isValidElement(e)&&n.push(e)}),n}(e);let p=d;const m=t.useRef(new Map).current,h=t.useRef(p),f=t.useRef(new Map).current,g=t.useRef(!0);var b;if(mt(()=>{g.current=!1,function(e,t){e.forEach(e=>{const n=ll(e);t.set(n,e)})}(d,f),h.current=p}),b=()=>{g.current=!0,f.clear(),m.clear()},t.useEffect(()=>()=>b(),[]),g.current)return a.createElement(a.Fragment,null,p.map(e=>a.createElement(sl,{key:ll(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:s,mode:l},e)));p=[...p];const v=h.current.map(ll),x=d.map(ll),y=v.length;for(let e=0;e<y;e++){const t=v[e];-1!==x.indexOf(t)||m.has(t)||m.set(t,void 0)}return"wait"===l&&m.size&&(p=[]),m.forEach((e,t)=>{if(-1!==x.indexOf(t))return;const r=f.get(t);if(!r)return;const i=v.indexOf(t);let g=e;if(!g){const e=()=>{f.delete(t),m.delete(t);const e=h.current.findIndex(e=>e.key===t);if(h.current.splice(e,1),!m.size){if(h.current=d,!1===u.current)return;c(),o&&o()}};g=a.createElement(sl,{key:ll(r),isPresent:!1,onExitComplete:e,custom:n,presenceAffectsLayout:s,mode:l},r),m.set(t,g)}p.splice(i,0,g)}),p=p.map(e=>{const t=e.key;return m.has(t)?e:a.createElement(sl,{key:ll(e),isPresent:!0,presenceAffectsLayout:s,mode:l},e)}),"production"!==process.env.NODE_ENV&&"wait"===l&&p.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),a.createElement(a.Fragment,null,m.size?p:p.map(e=>t.cloneElement(e)))};function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ul.apply(null,arguments)}function dl(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function pl(...e){return t=>e.forEach(e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t))}function ml(...e){return t.useCallback(pl(...e),e)}function hl(...e){const n=e[0];if(1===e.length)return n;const r=()=>{const r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const o=r.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}const fl=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?t.useLayoutEffect:()=>{},gl=a["useId".toString()]||(()=>{});let bl=0;function vl(e){const[t,n]=a.useState(gl());return fl(()=>{n(e=>null!=e?e:String(bl++))},[e]),e||(t?`radix-${t}`:"")}function xl(e){const n=t.useRef(e);return t.useEffect(()=>{n.current=e}),t.useMemo(()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)},[])}function yl({prop:e,defaultProp:n,onChange:r=()=>{}}){const[o,i]=function({defaultProp:e,onChange:n}){const r=t.useState(e),[o]=r,i=t.useRef(o),s=xl(n);return t.useEffect(()=>{i.current!==o&&(s(o),i.current=o)},[o,i,s]),r}({defaultProp:n,onChange:r}),s=void 0!==e,a=s?e:o,l=xl(r);return[a,t.useCallback(t=>{if(s){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else i(t)},[s,e,i,l])]}const Il=t.forwardRef((e,n)=>{const{children:r,...o}=e,i=t.Children.toArray(r),s=i.find(Al);if(s){const e=s.props.children,r=i.map(n=>n===s?t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null:n);return t.createElement(Cl,ul({},o,{ref:n}),t.isValidElement(e)?t.cloneElement(e,void 0,r):null)}return t.createElement(Cl,ul({},o,{ref:n}),r)});Il.displayName="Slot";const Cl=t.forwardRef((e,n)=>{const{children:r,...o}=e;return t.isValidElement(r)?t.cloneElement(r,{...Nl(o,r.props),ref:n?pl(n,r.ref):r.ref}):t.Children.count(r)>1?t.Children.only(null):null});Cl.displayName="SlotClone";const wl=({children:e})=>t.createElement(t.Fragment,null,e);function Al(e){return t.isValidElement(e)&&e.type===wl}function Nl(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const jl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,n)=>{const r=t.forwardRef((e,r)=>{const{asChild:o,...i}=e,s=o?Il:n;return t.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),t.createElement(s,ul({},i,{ref:r}))});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{});const kl="dismissableLayer.update",Gl="dismissableLayer.pointerDownOutside",Pl="dismissableLayer.focusOutside";let Vl;const Bl=t.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Sl=t.forwardRef((e,n)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...u}=e,d=t.useContext(Bl),[p,m]=t.useState(null),h=null!==(r=null==p?void 0:p.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,f]=t.useState({}),g=ml(n,e=>m(e)),b=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=b.indexOf(v),y=p?b.indexOf(p):-1,I=d.layersWithOutsidePointerEventsDisabled.size>0,C=y>=x,w=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=xl(e),o=t.useRef(!1),i=t.useRef(()=>{});return t.useEffect(()=>{const e=e=>{if(e.target&&!o.current){const t={originalEvent:e};function s(){El(Gl,r,t,{discrete:!0})}"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=s,n.addEventListener("click",i.current,{once:!0})):s()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,n=[...d.branches].some(e=>e.contains(t));C&&!n&&(null==s||s(e),null==l||l(e),e.defaultPrevented||null==c||c())},h),A=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=xl(e),o=t.useRef(!1);return t.useEffect(()=>{const e=e=>{if(e.target&&!o.current){El(Pl,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...d.branches].some(e=>e.contains(t))||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==c||c())},h);return function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=xl(e);t.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)},[r,n])}(e=>{y===d.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},h),t.useEffect(()=>{if(p)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Vl=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),Rl(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=Vl)}},[p,h,o,d]),t.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),Rl())},[p,d]),t.useEffect(()=>{const e=()=>f({});return document.addEventListener(kl,e),()=>document.removeEventListener(kl,e)},[]),t.createElement(jl.div,ul({},u,{ref:g,style:{pointerEvents:I?C?"auto":"none":void 0,...e.style},onFocusCapture:dl(e.onFocusCapture,A.onFocusCapture),onBlurCapture:dl(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:dl(e.onPointerDownCapture,w.onPointerDownCapture)}))});function Rl(){const e=new CustomEvent(kl);document.dispatchEvent(e)}function El(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?function(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}(i,s):i.dispatchEvent(s)}const Tl="focusScope.autoFocusOnMount",Ml="focusScope.autoFocusOnUnmount",Xl={bubbles:!1,cancelable:!0},Wl=t.forwardRef((e,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...a}=e,[l,c]=t.useState(null),u=xl(i),d=xl(s),p=t.useRef(null),m=ml(n,e=>c(e)),h=t.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;t.useEffect(()=>{if(o){function e(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?p.current=t:Dl(p.current,{select:!0})}function t(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||Dl(p.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Dl(l)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[o,l,h.paused]),t.useEffect(()=>{if(l){Zl.add(h);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(Tl,Xl);l.addEventListener(Tl,u),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Dl(r,{select:t}),document.activeElement!==n)return}((e=Fl(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&Dl(l))}return()=>{l.removeEventListener(Tl,u),setTimeout(()=>{const e=new CustomEvent(Ml,Xl);l.addEventListener(Ml,d),l.dispatchEvent(e),e.defaultPrevented||Dl(null!=t?t:document.body,{select:!0}),l.removeEventListener(Ml,d),Zl.remove(h)},0)}}var e},[l,u,d,h]);const f=t.useCallback(e=>{if(!r&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=Fl(e),n=Ll(t,e),r=Ll(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&Dl(i,{select:!0})):(e.preventDefault(),r&&Dl(o,{select:!0})):n===t&&e.preventDefault()}},[r,o,h.paused]);return t.createElement(jl.div,ul({tabIndex:-1},a,{ref:m,onKeyDown:f}))});function Fl(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ll(e,t){for(const n of e)if(!Ol(n,{upTo:t}))return n}function Ol(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Dl(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Zl=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=zl(e,t),e.unshift(t)},remove(t){var n;e=zl(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function zl(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const Hl=t.forwardRef((e,n)=>{var r;const{container:i=(null===globalThis||void 0===globalThis||null===(r=globalThis.document)||void 0===r?void 0:r.body),...s}=e;return i?o.createPortal(t.createElement(jl.div,ul({},s,{ref:n})),i):null});const Yl=e=>{const{present:n,children:r}=e,i=function(e){const[n,r]=t.useState(),i=t.useRef({}),s=t.useRef(e),a=t.useRef("none"),l=e?"mounted":"unmounted",[c,u]=function(e,n){return t.useReducer((e,t)=>{const r=n[e][t];return null!=r?r:e},e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect(()=>{const e=Jl(i.current);a.current="mounted"===c?e:"none"},[c]),fl(()=>{const t=i.current,n=s.current;if(n!==e){const r=a.current,o=Jl(t);if(e)u("MOUNT");else if("none"===o||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{u(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}s.current=e}},[e,u]),fl(()=>{if(n){const e=e=>{const t=Jl(i.current).includes(e.animationName);e.target===n&&t&&o.flushSync(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(a.current=Jl(i.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:t.useCallback(e=>{e&&(i.current=getComputedStyle(e)),r(e)},[])}}(n),s="function"==typeof r?r({present:i.isPresent}):t.Children.only(r),a=ml(i.ref,s.ref);return"function"==typeof r||i.isPresent?t.cloneElement(s,{ref:a}):null};function Jl(e){return(null==e?void 0:e.animationName)||"none"}Yl.displayName="Presence";let Ul=0;function $l(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Ql=function(){return Ql=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ql.apply(this,arguments)};function _l(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var Kl="right-scroll-bar-position",ql="width-before-scroll-bar";function ec(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tc="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,nc=new WeakMap;function rc(e,n){var r,o,i,s=(r=null,o=function(t){return e.forEach(function(e){return ec(e,t)})},(i=t.useState(function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}})[0]).callback=o,i.facade);return tc(function(){var t=nc.get(s);if(t){var n=new Set(t),r=new Set(e),o=s.current;n.forEach(function(e){r.has(e)||ec(e,null)}),r.forEach(function(e){n.has(e)||ec(e,o)})}nc.set(s,e)},[e]),s}function oc(e){return e}var ic=function(e){var t=e.sideCar,n=_l(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return a.createElement(r,Ql({},n))};ic.isSideCarExport=!0;var sc=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=oc);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},s=function(){return Promise.resolve().then(i)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=Ql({async:!0,ssr:!1},e),t}(),ac=function(){},lc=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:ac,onWheelCapture:ac,onTouchMoveCapture:ac}),o=r[0],i=r[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,m=e.sideCar,h=e.noIsolation,f=e.inert,g=e.allowPinchZoom,b=e.as,v=void 0===b?"div":b,x=_l(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=m,I=rc([n,t]),C=Ql(Ql({},x),o);return a.createElement(a.Fragment,null,d&&a.createElement(y,{sideCar:sc,removeScrollBar:u,shards:p,noIsolation:h,inert:f,setCallbacks:i,allowPinchZoom:!!g,lockRef:n}),s?a.cloneElement(a.Children.only(l),Ql(Ql({},C),{ref:I})):a.createElement(v,Ql({},C,{className:c,ref:I}),l))});lc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},lc.classNames={fullWidth:ql,zeroRight:Kl};function cc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var uc=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=cc())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},dc=function(){var e,t=(e=uc(),function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},pc={left:0,top:0,right:0,gap:0},mc=function(e){return parseInt(e||"",10)||0},hc=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return pc;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[mc(n),mc(r),mc(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},fc=dc(),gc="data-scroll-locked",bc=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(gc,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Kl," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(ql," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(Kl," .").concat(Kl," {\n right: 0 ").concat(r,";\n }\n \n .").concat(ql," .").concat(ql," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(gc,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},vc=function(){var e=parseInt(document.body.getAttribute(gc)||"0",10);return isFinite(e)?e:0},xc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;a.useEffect(function(){return document.body.setAttribute(gc,(vc()+1).toString()),function(){var e=vc()-1;e<=0?document.body.removeAttribute(gc):document.body.setAttribute(gc,e.toString())}},[]);var i=a.useMemo(function(){return hc(o)},[o]);return a.createElement(fc,{styles:bc(i,!t,o,n?"":"!important")})},yc=!1;if("undefined"!=typeof window)try{var Ic=Object.defineProperty({},"passive",{get:function(){return yc=!0,!0}});window.addEventListener("test",Ic,Ic),window.removeEventListener("test",Ic,Ic)}catch(e){yc=!1}var Cc=!!yc&&{passive:!1},wc=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Ac=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Nc(e,n)){var r=jc(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Nc=function(e,t){return"v"===e?function(e){return wc(e,"overflowY")}(t):function(e){return wc(e,"overflowX")}(t)},jc=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},kc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Gc=function(e){return[e.deltaX,e.deltaY]},Pc=function(e){return e&&"current"in e?e.current:e},Vc=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Bc=0,Sc=[];var Rc,Ec=(Rc=function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(Bc++)[0],i=a.useState(function(){return dc()})[0],s=a.useRef(e);a.useEffect(function(){s.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(Pc),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var o,i=kc(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=Ac(d,u);if(!p)return!0;if(p?o=d:(o="v"===d?"h":"v",p=Ac(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var m=r.current||o;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*r,s=n.target,a=t.contains(s),l=!1,c=i>0,u=0,d=0;do{var p=jc(e,s),m=p[0],h=p[1]-p[2]-o*m;(m||h)&&Nc(e,s)&&(u+=h,d+=m),s=s.parentNode}while(!a&&s!==document.body||a&&(t.contains(s)||t===s));return c&&0===u?l=!0:c||0!==d||(l=!0),l}(m,t,e,"h"===m?l:c)},[]),c=a.useCallback(function(e){var n=e;if(Sc.length&&Sc[Sc.length-1]===i){var r="deltaY"in n?Gc(n):kc(n),o=t.current.filter(function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var a=(s.current.shards||[]).map(Pc).filter(Boolean).filter(function(e){return e.contains(n.target)});(a.length>0?l(n,a[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=a.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=a.useCallback(function(e){n.current=kc(e),r.current=void 0},[]),p=a.useCallback(function(t){u(t.type,Gc(t),t.target,l(t,e.lockRef.current))},[]),m=a.useCallback(function(t){u(t.type,kc(t),t.target,l(t,e.lockRef.current))},[]);a.useEffect(function(){return Sc.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Cc),document.addEventListener("touchmove",c,Cc),document.addEventListener("touchstart",d,Cc),function(){Sc=Sc.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,Cc),document.removeEventListener("touchmove",c,Cc),document.removeEventListener("touchstart",d,Cc)}},[]);var h=e.removeScrollBar,f=e.inert;return a.createElement(a.Fragment,null,f?a.createElement(i,{styles:Vc(o)}):null,h?a.createElement(xc,{gapMode:"margin"}):null)},sc.useMedium(Rc),ic),Tc=a.forwardRef(function(e,t){return a.createElement(lc,Ql({},e,{ref:t,sideCar:Ec}))});Tc.classNames=lc.classNames;var Mc=new WeakMap,Xc=new WeakMap,Wc={},Fc=0,Lc=function(e){return e&&(e.host||Lc(e.parentNode))},Oc=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Lc(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Wc[n]||(Wc[n]=new WeakMap);var i=Wc[n],s=[],a=new Set,l=new Set(o),c=function(e){e&&!a.has(e)&&(a.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(a.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Mc.get(e)||0)+1,c=(i.get(e)||0)+1;Mc.set(e,l),i.set(e,c),s.push(e),1===l&&o&&Xc.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),a.clear(),Fc++,function(){s.forEach(function(e){var t=Mc.get(e)-1,o=i.get(e)-1;Mc.set(e,t),i.set(e,o),t||(Xc.has(e)||e.removeAttribute(r),Xc.delete(e)),o||e.removeAttribute(n)}),--Fc||(Mc=new WeakMap,Mc=new WeakMap,Xc=new WeakMap,Wc={})}},Dc=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Oc(r,o,n,"aria-hidden")):function(){return null}};const Zc="Dialog",[zc,Hc]=function(e,n=[]){let r=[];const o=()=>{const n=r.map(e=>t.createContext(e));return function(r){const o=(null==r?void 0:r[e])||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return o.scopeName=e,[function(n,o){const i=t.createContext(o),s=r.length;function a(n){const{scope:r,children:o,...a}=n,l=(null==r?void 0:r[e][s])||i,c=t.useMemo(()=>a,Object.values(a));return t.createElement(l.Provider,{value:c},o)}return r=[...r,o],a.displayName=n+"Provider",[a,function(r,a){const l=(null==a?void 0:a[e][s])||i,c=t.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},hl(o,...n)]}(Zc),[Yc,Jc]=zc(Zc),Uc="DialogPortal",[$c,Qc]=zc(Uc,{forceMount:void 0}),_c="DialogOverlay",Kc=t.forwardRef((e,n)=>{const r=Qc(_c,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,s=Jc(_c,e.__scopeDialog);return s.modal?t.createElement(Yl,{present:o||s.open},t.createElement(qc,ul({},i,{ref:n}))):null}),qc=t.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,i=Jc(_c,r);return t.createElement(Tc,{as:Il,allowPinchZoom:!0,shards:[i.contentRef]},t.createElement(jl.div,ul({"data-state":lu(i.open)},o,{ref:n,style:{pointerEvents:"auto",...o.style}})))}),eu="DialogContent",tu=t.forwardRef((e,n)=>{const r=Qc(eu,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,s=Jc(eu,e.__scopeDialog);return t.createElement(Yl,{present:o||s.open},s.modal?t.createElement(nu,ul({},i,{ref:n})):t.createElement(ru,ul({},i,{ref:n})))}),nu=t.forwardRef((e,n)=>{const r=Jc(eu,e.__scopeDialog),o=t.useRef(null),i=ml(n,r.contentRef,o);return t.useEffect(()=>{const e=o.current;if(e)return Dc(e)},[]),t.createElement(ou,ul({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:dl(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:dl(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:dl(e.onFocusOutside,e=>e.preventDefault())}))}),ru=t.forwardRef((e,n)=>{const r=Jc(eu,e.__scopeDialog),o=t.useRef(!1),i=t.useRef(!1);return t.createElement(ou,ul({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,s;(null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented)||(o.current||null===(s=r.triggerRef.current)||void 0===s||s.focus(),t.preventDefault());o.current=!1,i.current=!1},onInteractOutside:t=>{var n,s;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const a=t.target;(null===(s=r.triggerRef.current)||void 0===s?void 0:s.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}}))}),ou=t.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,...a}=e,l=Jc(eu,r),c=ml(n,t.useRef(null));return t.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:$l()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:$l()),Ul++,()=>{1===Ul&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Ul--}},[]),t.createElement(t.Fragment,null,t.createElement(Wl,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:s},t.createElement(Sl,ul({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":lu(l.open)},a,{ref:c,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),iu="DialogTitle",su="DialogClose",au=t.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,i=Jc(su,r);return t.createElement(jl.button,ul({type:"button"},o,{ref:n,onClick:dl(e.onClick,()=>i.onOpenChange(!1))}))});function lu(e){return e?"open":"closed"}!function(e,n){const r=t.createContext(n);function o(e){const{children:n,...o}=e,i=t.useMemo(()=>o,Object.values(o));return t.createElement(r.Provider,{value:i},n)}o.displayName=e+"Provider"}("DialogTitleWarning",{contentName:eu,titleName:iu,docsSlug:"dialog"});const cu=e=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:i,onOpenChange:s,modal:a=!0}=e,l=t.useRef(null),c=t.useRef(null),[u=!1,d]=yl({prop:o,defaultProp:i,onChange:s});return t.createElement(Yc,{scope:n,triggerRef:l,contentRef:c,contentId:vl(),titleId:vl(),descriptionId:vl(),open:u,onOpenChange:d,onOpenToggle:t.useCallback(()=>d(e=>!e),[d]),modal:a},r)},uu=e=>{const{__scopeDialog:n,forceMount:r,children:o,container:i}=e,s=Jc(Uc,n);return t.createElement($c,{scope:n,forceMount:r},t.Children.map(o,e=>t.createElement(Yl,{present:r||s.open},t.createElement(Hl,{asChild:!0,container:i},e))))},du=Kc,pu=tu,mu=au,hu=({currentPage:t,totalPages:n,onPageChange:r,ariaLabel:o="Pagination"})=>{const i=function(e,t){if(t<=7)return Array.from({length:t},(e,t)=>t+1);const n=[];n.push(1),e>3&&n.push("...");const r=Math.max(2,e-1),o=Math.min(t-1,e+1);for(let e=r;e<=o;e++)n.push(e);e<t-2&&n.push("...");return n.push(t),n}(t,n),s="inline-flex items-center justify-center w-9 h-9 rounded-full bg-transparent cursor-pointer transition-colors duration-150 hover:border-text-brand hover:text-text-brand disabled:opacity-40 disabled:cursor-not-allowed";return e.jsxs("nav",{className:"flex items-center justify-center gap-1 px-6 pb-12","aria-label":o,children:[e.jsx(Ae,{className:s,onClick:()=>r(t-1),disabled:1===t,"aria-label":"Go to previous page",children:e.jsx(je,{name:"chevron_left",size:32,"aria-hidden":"true"})}),i.map((n,o)=>"..."===n?e.jsx("span",{className:"inline-flex h-9 w-9 cursor-default items-center justify-center text-body2 text-gray-500","aria-hidden":"true",children:"…"},`ellipsis-${o}`):e.jsx(Ae,{className:"inline-flex items-center justify-center w-9 h-9 rounded-lg text-body2 text-gray-700 bg-transparent border-none cursor-pointer transition-colors duration-150 hover:bg-gray-100 hover:text-gray-900 "+(n===t?"bg-bg-surface-active font-bold hover:bg-bg-gray-300":""),onClick:()=>r(n),"aria-label":`Go to page ${n}`,"aria-current":n===t?"page":void 0,children:n},n)),e.jsx(Ae,{className:s,onClick:()=>r(t+1),disabled:t===n,"aria-label":"Go to next page",children:e.jsx(je,{name:"chevron_right",size:32,"aria-hidden":"true"})})]})};function fu(e){return fu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fu(e)}function gu(e){var t=function(e,t){if("object"!=fu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=fu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fu(t)?t:t+""}function bu(e,t,n){return(t=gu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vu(Object(n),!0).forEach(function(t){bu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Iu(e,t){if(e){if("string"==typeof e)return yu(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yu(e,t):void 0}}function Cu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||Iu(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wu(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Au=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Nu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gu(r.key),r)}}function ju(e,t){return ju=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ju(e,t)}function ku(e){return ku=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ku(e)}function Gu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Gu=function(){return!!e})()}function Pu(e,t){if(t&&("object"==fu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Vu(e){return function(e){if(Array.isArray(e))return yu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Iu(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Bu=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Su="-ms-",Ru="-moz-",Eu="-webkit-",Tu="comm",Mu="rule",Xu="decl",Wu="@keyframes",Fu=Math.abs,Lu=String.fromCharCode,Ou=Object.assign;function Du(e){return e.trim()}function Zu(e,t,n){return e.replace(t,n)}function zu(e,t){return e.indexOf(t)}function Hu(e,t){return 0|e.charCodeAt(t)}function Yu(e,t,n){return e.slice(t,n)}function Ju(e){return e.length}function Uu(e){return e.length}function $u(e,t){return t.push(e),e}var Qu=1,_u=1,Ku=0,qu=0,ed=0,td="";function nd(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Qu,column:_u,length:s,return:""}}function rd(e,t){return Ou(nd("",null,null,"",null,null,0),e,{length:-e.length},t)}function od(){return ed=qu>0?Hu(td,--qu):0,_u--,10===ed&&(_u=1,Qu--),ed}function id(){return ed=qu<Ku?Hu(td,qu++):0,_u++,10===ed&&(_u=1,Qu++),ed}function sd(){return Hu(td,qu)}function ad(){return qu}function ld(e,t){return Yu(td,e,t)}function cd(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ud(e){return Qu=_u=1,Ku=Ju(td=e),qu=0,[]}function dd(e){return td="",e}function pd(e){return Du(ld(qu-1,fd(91===e?e+2:40===e?e+1:e)))}function md(e){for(;(ed=sd())&&ed<33;)id();return cd(e)>2||cd(ed)>3?"":" "}function hd(e,t){for(;--t&&id()&&!(ed<48||ed>102||ed>57&&ed<65||ed>70&&ed<97););return ld(e,ad()+(t<6&&32==sd()&&32==id()))}function fd(e){for(;id();)switch(ed){case e:return qu;case 34:case 39:34!==e&&39!==e&&fd(ed);break;case 40:41===e&&fd(e);break;case 92:id()}return qu}function gd(e,t){for(;id()&&e+ed!==57&&(e+ed!==84||47!==sd()););return"/*"+ld(t,qu-1)+"*"+Lu(47===e?e:id())}function bd(e){for(;!cd(sd());)id();return ld(e,qu)}function vd(e){return dd(xd("",null,null,null,[""],e=ud(e),0,[0],e))}function xd(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,p=0,m=0,h=0,f=1,g=1,b=1,v=0,x="",y=o,I=i,C=r,w=x;g;)switch(h=v,v=id()){case 40:if(108!=h&&58==Hu(w,d-1)){-1!=zu(w+=Zu(pd(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:w+=pd(v);break;case 9:case 10:case 13:case 32:w+=md(h);break;case 92:w+=hd(ad()-1,7);continue;case 47:switch(sd()){case 42:case 47:$u(Id(gd(id(),ad()),t,n),l);break;default:w+="/"}break;case 123*f:a[c++]=Ju(w)*b;case 125*f:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(w=Zu(w,/\f/g,"")),m>0&&Ju(w)-d&&$u(m>32?Cd(w+";",r,n,d-1):Cd(Zu(w," ","")+";",r,n,d-2),l);break;case 59:w+=";";default:if($u(C=yd(w,t,n,c,u,o,a,x,y=[],I=[],d),i),123===v)if(0===u)xd(w,t,C,C,y,i,d,a,I);else switch(99===p&&110===Hu(w,3)?100:p){case 100:case 108:case 109:case 115:xd(e,C,C,r&&$u(yd(e,C,C,0,0,o,a,x,o,y=[],d),I),o,I,d,a,r?y:I);break;default:xd(w,C,C,C,[""],I,0,a,I)}}c=u=m=0,f=b=1,x=w="",d=s;break;case 58:d=1+Ju(w),m=h;default:if(f<1)if(123==v)--f;else if(125==v&&0==f++&&125==od())continue;switch(w+=Lu(v),v*f){case 38:b=u>0?1:(w+="\f",-1);break;case 44:a[c++]=(Ju(w)-1)*b,b=1;break;case 64:45===sd()&&(w+=pd(id())),p=sd(),u=d=Ju(x=w+=bd(ad())),v++;break;case 45:45===h&&2==Ju(w)&&(f=0)}}return i}function yd(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,p=0===o?i:[""],m=Uu(p),h=0,f=0,g=0;h<r;++h)for(var b=0,v=Yu(e,d+1,d=Fu(f=s[h])),x=e;b<m;++b)(x=Du(f>0?p[b]+" "+v:Zu(v,/&\f/g,p[b])))&&(l[g++]=x);return nd(e,t,n,0===o?Mu:a,l,c,u)}function Id(e,t,n){return nd(e,t,n,Tu,Lu(ed),Yu(e,2,-2),0)}function Cd(e,t,n,r){return nd(e,t,n,Xu,Yu(e,0,r),Yu(e,r+1,-1),r)}function wd(e,t){for(var n="",r=Uu(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ad(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Xu:return e.return=e.return||e.value;case Tu:return"";case Wu:return e.return=e.value+"{"+wd(e.children,r)+"}";case Mu:e.value=e.props.join(",")}return Ju(n=wd(e.children,r))?e.return=e.value+"{"+n+"}":""}function Nd(e){var t=Uu(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}var jd="undefined"!=typeof document,kd=function(e,t,n){for(var r=0,o=0;r=o,o=sd(),38===r&&12===o&&(t[n]=1),!cd(o);)id();return ld(e,qu)},Gd=function(e,t){return dd(function(e,t){var n=-1,r=44;do{switch(cd(r)){case 0:38===r&&12===sd()&&(t[n]=1),e[n]+=kd(qu-1,t,n);break;case 2:e[n]+=pd(r);break;case 4:if(44===r){e[++n]=58===sd()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Lu(r)}}while(r=id());return e}(ud(e),t))},Pd=new WeakMap,Vd=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Pd.get(n))&&!r){Pd.set(e,!0);for(var o=[],i=Gd(t,o),s=n.props,a=0,l=0;a<i.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=o[a]?i[a].replace(/&\f/g,s[c]):s[c]+" "+i[a]}}},Bd=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Sd(e,t){switch(function(e,t){return 45^Hu(e,0)?(((t<<2^Hu(e,0))<<2^Hu(e,1))<<2^Hu(e,2))<<2^Hu(e,3):0}(e,t)){case 5103:return Eu+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Eu+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Eu+e+Ru+e+Su+e+e;case 6828:case 4268:return Eu+e+Su+e+e;case 6165:return Eu+e+Su+"flex-"+e+e;case 5187:return Eu+e+Zu(e,/(\w+).+(:[^]+)/,Eu+"box-$1$2"+Su+"flex-$1$2")+e;case 5443:return Eu+e+Su+"flex-item-"+Zu(e,/flex-|-self/,"")+e;case 4675:return Eu+e+Su+"flex-line-pack"+Zu(e,/align-content|flex-|-self/,"")+e;case 5548:return Eu+e+Su+Zu(e,"shrink","negative")+e;case 5292:return Eu+e+Su+Zu(e,"basis","preferred-size")+e;case 6060:return Eu+"box-"+Zu(e,"-grow","")+Eu+e+Su+Zu(e,"grow","positive")+e;case 4554:return Eu+Zu(e,/([^-])(transform)/g,"$1"+Eu+"$2")+e;case 6187:return Zu(Zu(Zu(e,/(zoom-|grab)/,Eu+"$1"),/(image-set)/,Eu+"$1"),e,"")+e;case 5495:case 3959:return Zu(e,/(image-set\([^]*)/,Eu+"$1$`$1");case 4968:return Zu(Zu(e,/(.+:)(flex-)?(.*)/,Eu+"box-pack:$3"+Su+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Eu+e+e;case 4095:case 3583:case 4068:case 2532:return Zu(e,/(.+)-inline(.+)/,Eu+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ju(e)-1-t>6)switch(Hu(e,t+1)){case 109:if(45!==Hu(e,t+4))break;case 102:return Zu(e,/(.+:)(.+)-([^]+)/,"$1"+Eu+"$2-$3$1"+Ru+(108==Hu(e,t+3)?"$3":"$2-$3"))+e;case 115:return~zu(e,"stretch")?Sd(Zu(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Hu(e,t+1))break;case 6444:switch(Hu(e,Ju(e)-3-(~zu(e,"!important")&&10))){case 107:return Zu(e,":",":"+Eu)+e;case 101:return Zu(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Eu+(45===Hu(e,14)?"inline-":"")+"box$3$1"+Eu+"$2$3$1"+Su+"$2box$3")+e}break;case 5936:switch(Hu(e,t+11)){case 114:return Eu+e+Su+Zu(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Eu+e+Su+Zu(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Eu+e+Su+Zu(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Eu+e+Su+e+e}return e}var Rd,Ed,Td,Md=jd?void 0:(Rd=function(){return e=function(){return{}},t=Object.create(null),function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]};var e,t},Ed=new WeakMap,function(e){if(Ed.has(e))return Ed.get(e);var t=Rd(e);return Ed.set(e,t),t}),Xd=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Xu:e.return=Sd(e.value,e.length);break;case Wu:return wd([rd(e,{value:Zu(e.value,"@","@"+Eu)})],r);case Mu:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wd([rd(e,{props:[Zu(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return wd([rd(e,{props:[Zu(t,/:(plac\w+)/,":"+Eu+"input-$1")]}),rd(e,{props:[Zu(t,/:(plac\w+)/,":-moz-$1")]}),rd(e,{props:[Zu(t,/:(plac\w+)/,Su+"input-$1")]})],r)}return""})}}],Wd=function(e){var t=e.key;if(jd&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||Xd,s={},a=[];jd&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)}));var l,c=[Vd,Bd];if(Md){var u=[Ad],d=Nd(c.concat(i,u)),p=Md(i)(t),m=function(e,t){var n=t.name;return void 0===p[n]&&(p[n]=wd(vd(e?e+"{"+t.styles+"}":t.styles),d)),p[n]};o=function(e,t,n,r){var o=t.name,i=m(e,t);return void 0===b.compat?(r&&(b.inserted[o]=!0),i):r?void(b.inserted[o]=i):i}}else{var h,f=[Ad,(l=function(e){h.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],g=Nd(c.concat(i,f));o=function(e,t,n,r){h=n,wd(vd(e?e+"{"+t.styles+"}":t.styles),g),r&&(b.inserted[t.name]=!0)}}var b={key:t,sheet:new Bu({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return b.sheet.hydrate(a),b},Fd={exports:{}},Ld={};var Od,Dd,Zd,zd,Hd={};
6
6
  /** @license React v16.13.1
7
7
  * react-is.development.js
8
8
  *