1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,855535,e=>{"use strict";e.s(["debounce",0,function(e,t,n){let r;return function(...i){let o=this;r&&clearTimeout(r),n&&!r&&e.apply(o,i),r=setTimeout(function(){r=null,n||e.apply(o,i)},t)}}])},743784,e=>{"use strict";var t="u">typeof window;e.s(["isBrowser",0,t,"noop",0,function(){},"off",0,function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)},"on",0,function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}])},353086,e=>{"use strict";var t=e.i(271645),n=e.i(743784),r=n.isBrowser?window:null,i=function(e){return!!e.addEventListener},o=function(e){return!!e.on};e.s(["default",0,function(e,a,s,l){void 0===s&&(s=r),(0,t.useEffect)(function(){if(a&&s)return i(s)?(0,n.on)(s,e,a,l):o(s)&&s.on(e,a,l),function(){i(s)?(0,n.off)(s,e,a,l):o(s)&&s.off(e,a,l)}},[e,a,s,JSON.stringify(l)])}])},865820,e=>{"use strict";var t=e.i(271645),n=e.i(353086),r=e.i(743784);e.s(["default",0,function(e,i,o,a){void 0===i&&(i=r.noop),void 0===o&&(o={}),void 0===a&&(a=[e]);var s=o.event,l=o.target,c=o.options,u=(0,t.useMemo)(function(){var t="function"==typeof e?e:"string"==typeof e?function(t){return t.key===e}:e?function(){return!0}:function(){return!1};return function(e){if(t(e))return i(e)}},a);(0,n.default)(void 0===s?"keydown":s,u,l,c)}])},83312,e=>{"use strict";var t=e.i(271645),n=e.i(743784),r=["mousedown","touchstart"];e.s(["useClickAway",0,function(e,i,o){void 0===o&&(o=r);var a=(0,t.useRef)(i);(0,t.useEffect)(function(){a.current=i},[i]),(0,t.useEffect)(function(){for(var t=function(t){var n=e.current;n&&!n.contains(t.target)&&a.current(t)},r=0,i=o;r<i.length;r++){var s=i[r];(0,n.on)(document,s,t)}return function(){for(var e=0,r=o;e<r.length;e++){var i=r[e];(0,n.off)(document,i,t)}}},[o,e])}],83312)},431409,e=>{"use strict";var t=e.i(271645);e.s(["useDebouncedEffect",0,(e,n,r)=>{let i=(0,t.useRef)(null);(0,t.useEffect)(()=>(i.current=setTimeout(e,n),()=>clearTimeout(i.current)),[...r,n])}])},407748,e=>{"use strict";var t,n=((t={}).PNG="image/png",t.JPEG="image/jpeg",t.GIF="image/gif",t.WEBP="image/webp",t.VIDEO="video/mp4",t.VIDEO_WEBM="video/webm",t);e.s(["BackgroundType",()=>n])},368379,e=>{"use strict";var t=e.i(843476),n=e.i(633157),r=e.i(594280);let i={teal:(0,n.cx)("bg-background_decorative_lightwashedteal","text-text_brand_default"),coldgrey:(0,n.cx)("bg-background_decorative_grey","text-text_accent_5"),outlined:(0,n.cx)("bg-background_neutral_canvas","ring-1 ring-inset ring-border_subtle_default","text-text_neutral_default"),blue:(0,n.cx)("bg-background_decorative_blue","text-text_accent_3"),orange:(0,n.cx)("bg-background_decorative_orange","text-text_accent_2"),purple:(0,n.cx)("bg-background_decorative_violet","text-text_accent_4"),yellow:(0,n.cx)("bg-background_decorative_yellow","text-text_accent_1"),transparent:(0,n.cx)("bg-transparent","text-text_neutral_default")},o=(0,n.cx)("bg-transparent","ring-1 ring-inset ring-border_inverse_default","text-text_inverse_default"),a={teal:(0,n.cx)("bg-background_inverse_disabled","text-text_inverse_default"),coldgrey:(0,n.cx)("bg-background_decorative_grey","text-text_neutral_default","ring-1 ring-inset ring-border_subtle_default"),outlined:o,blue:o,orange:o,purple:o,yellow:o,transparent:(0,n.cx)("bg-text_inverse_disabled","text-text_inverse_default")},s={s:"px-2 py-1 min-h-6",m:"px-3 py-1.5 min-h-8",uppercase:"px-2 py-1 min-h-6"},l={s:"xs",m:"s",uppercase:"uppercase"},c={s:"size-4",m:"size-5",uppercase:"size-4"},u="inline-flex items-center shrink-0";e.s(["StaticTag",0,function({size:e="s",color:o="teal",inverted:d,leadingIcon:f,trailingIcon:p,children:h,className:g,ariaLabel:m,ellipsis:v}){return(0,t.jsxs)("span",{"data-component":"StaticTag","aria-label":m,className:(0,n.cx)("inline-flex items-center justify-center gap-1","font-semibold","rounded-lg",d?a[o]:i[o],s[e],g),children:[f&&(0,t.jsx)("span",{className:(0,n.cx)(u,c[e]),children:f}
1),(0,t.jsx)(r.Span,{variant:l[e],visuallyCentered:!v,className:(0,n.cx)(v&&"overflow-x-hidden text-ellipsis"),children:h}),p&&(0,t.jsx)("span",{className:(0,n.cx)(u,c[e]),children:p})]})}])},901315,746786,e=>{"use strict";var t=e.i(843476),n=e.i(890264),r=e.i(368379);let i={teal:"teal",outlined:"outlined",blue:"blue",orange:"orange",purple:"purple",yellow:"yellow",transparent:"transparent",coldGrey:"coldgrey",darkGrey:"coldgrey",darkOutlined:"outlined",darkTeal:"teal",darkTransparent:"transparent"};e.s(["tagVariantToColor",0,function(e){return i[e]},"tagVariantToColorMap",0,i],746786);let o={sm:"s",m:"m",uppercase:"uppercase"};e.s(["CfTag",0,function({tag:e,className:a,children:s}){let{iconLeft:l,iconRight:c,name:u,size:d,variant:f}=e;return(0,t.jsx)(r.StaticTag,{color:i[f],size:o[d],className:a,leadingIcon:l?(0,t.jsx)(n.CfImage,{asset:l}):void 0,trailingIcon:c?(0,t.jsx)(n.CfImage,{asset:c}):void 0,children:s??u})}],901315)},212646,942539,716376,368563,e=>{"use strict";var t=e.i(843476),n=e.i(594280),r=e.i(633157);function i(){return(0,t.jsx)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false",children:(0,t.jsx)("path",{d:"M 8 1.5 L 9.59 5.82 L 14.18 5.99 L 10.57 8.83 L 11.82 13.26 L 8 10.7 L 4.18 13.26 L 5.43 8.83 L 1.82 5.99 L 6.41 5.82 Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"})})}function o(){return(0,t.jsx)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false",children:(0,t.jsx)("path",{d:"M 8 1.5 L 9.59 5.82 L 14.18 5.99 L 10.57 8.83 L 11.82 13.26 L 8 10.7 L 4.18 13.26 L 5.43 8.83 L 1.82 5.99 L 6.41 5.82 Z",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"})})}e.s(["StarFilledIcon",0,i],942539),e.s(["StarOutlineIcon",0,o],716376);var a=e.i(271645);let s="M 8 1.5 L 9.59 5.82 L 14.18 5.99 L 10.57 8.83 L 11.82 13.26 L 8 10.7 L 4.18 13.26 L 5.43 8.83 L 1.82 5.99 L 6.41 5.82 Z";function l({fill:e}){let n,r=(0,a.useId)(),i=Math.min(1,Math.max(0,e));return n=i<=0?0:i>=1?16:5+6*i,(0,t.jsxs)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false",children:[(0,t.jsx)("clipPath",{id:r,children:(0,t.jsx)("rect",{x:"0",y:"0",width:n,height:"16"})}),(0,t.jsx)("path",{d:s,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:s,clipPath:`url(#${r})`,fill:"currentColor",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"})]})}function c({fill:e,disabled:n,interactive:a,hovered:s,error:u,tabIndex:d,ariaLabel:f,ariaChecked:p,index:h,onSelect:g,onHover:m,onKeyDown:v,className:y,large:b}){let E=s?1:Math.min(1,Math.max(0,e)),_=E>0&&E<1;return(0,t.jsx)("span",{"data-star-value":h,role:a?"radio":void 0,"aria-hidden":!a||void 0,"aria-checked":a?p:void 0,"aria-label":a?f:void 0,tabIndex:a?d:void 0,onClick:a?()=>g?.(h):void 0,onMouseEnter:a?()=>m?.(h):void 0,onKeyDown:a?e=>v?.(e):void 0,className:(0,r.cx)("inline-flex shrink-0 box-content",b?"size-6":"size-4",n?"text-icon_neutral_disabled":s?"text-icon_rating_hover":u?"text-icon_status_error":E>0?"text-icon_rating_active":"text-icon_rating_default",a&&"cursor-pointer transition-colors",a&&"focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:rounded-xs focus-visible:outline-border_focus_default",y),children:_?(0,t.jsx)(l,{fill:E}):E>=1?(0,t.jsx)(i,{}):(0,t.jsx)(o,{})})}let u=[1,2,3,4,5];function d({value:e,className:i,ariaLabel:o,disabled:a,noText:s,locale:l}){let f,p=(f=function(e){let t=/^([a-z]{2})-([a-z]{2})$/.exec(e);if(!t)return null;let[,n,r]=t;return n&&r?`${n}-${r.toUpperCase()}`:null}({locale:l??navigator.language??"en-us"}.locale),e?e.toLocaleString(f??void 0,{maximumFractionDigits:1}):null);return(0,t.jsxs)("span",{"data-component":"StarRating",className:(0,r.cx)("inline-flex items-center gap-1",i),role:"img","aria-label":o(p),children:[!!e&&!s&&(0,t.jsx)(n.Span,{variant:"body-2",visuallyCentered:!0,className:"text-text_neutral_secondary",children:p}),(0,t.jsx)("span",{className:"inline-flex items-baseline gap-1",children:u.map(n=>(0,t.jsx)(c,{fill:Math.min(1,Math.max(0,(e??0)-(n-1))),ariaLabel:"",index:n-1,disabled:a},n))})]})}e.s(["StarRating",0,d],368563),e.s(["RatingStars",0,function({className:e,rating:n,productTitle:r,reviewCount:i,uiStrings:o}){return(0,t.jsx)(d,{value:n,ariaLabel:e=>r&&i?o.product.ratingSummaryLabel.replace("{0}",r).replace("{1}",e).replace("{2}",i.toString()):r?`${r} ${o.product.ratingLabel.replace("{0}",e)}`:o.product.ratingLabel.replace("{0}",e),className:e,noText:!0})}],212646)},276888,e=>{"use strict";var t=e.i(953195),n=e.i(997053);let r=n.default.div.withConfig({displayName:"productReviewBlock.styles__StyledWrapper",componentId:"sc-4cb30918-0"})` 2 display: flex; 3 align-items: center; 4 justify-content: center; 5 6 &.size-lg { 7 gap: 1rem; 8 9 .rating { 10 font-size: 4.5rem; 11 line-height: 1.1; 12 font-weight: 600; 13 } 14 15 .review-count { 16 font-size: 0.875rem; 17 } 18 } 19 20 &.size-sm { 21 gap: 0.5rem; 22 23 .rating { 24 font-size: 2.25rem; 25 } 26 27 .review-count { 28 font-size: 0.75rem; 29 } 30 } 31 32 .stars { 33 cursor: default; 34 } 35 36 .lg-stars { 37 display: block; 38 39 &.rating-stars svg { 40 width: 6rem; 41 height: 1rem; 42 43 @media (min-width: ${t.DESKTOP_BREAKPOINT}px) { 44 width: 8.5rem; 45 height: 1.5rem; 46 } 47 48 transform-origin: left; 49 overflow: visible; 50 } 51 } 52 53 .rating { 54 font-family: var(--font-primary), serif; 55 color: var(--color_icon_neutral_default); 56 margin-bottom: -0.625rem; 57 } 58 59 .right-section.short { 60 display: flex; 61 align-items: center; 62 } 63 .right-section:not(.short) { 64 display: flex; 65 flex-direction: column; 66 } 67 &.size-lg .right-section { 68 gap: 0.5rem; 69 } 70 71 .review-count { 72 display: flex; 73 align-items: center; 74 text-decoration: none; 75 color: var(--color_text_brand_default); 76 font-weight: 600; 77 78 svg { 79 transform: rotate(180deg); 80 transform: rotate(180deg) translateY(2px); 81 height: 1rem; 82 width: 1rem; 83 margin-inline-end: 0.25rem; 84 stroke-width: 1.5; 85 } 86 } 87 88 a.review-count { 89 cursor: pointer; 90 transition: color 0.15s ease-in-out; 91 92 &:hover { 93 color: var(--color_text_brand_hover); 94 text-decoration: underline; 95 } 96 &:active { 97 color: var(--color_text_brand_pressed); 98 text-decoration: underline; 99 } 100 } 101 102 .short-rating { 103 font-size: 0.875rem; 104 color: var(--color_text_neutral_secondary); 105 margin-bottom: -0.3125rem; 106 margin-inline-start: 0.25rem; 107 } 108`;e.s(["StyledWrapper",0,r])},155941,e=>{"use strict";var t=e.i(843476);e.s(["Star",0,function({className:e}){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",className:e,children:(0,t.jsx)("path",{d:"M8.43169 1.18329C8.15946 1.05349 7.84318 1.05349 7.57094
1081.18329C7.3356 1.2955 7.20584 1.49032 7.14041 1.5972C7.07276 1.7077 7.00332 1.84845 6.93563 1.98564L5.49848 4.89716L2.28378 5.36704C2.13245 5.38912 1.97718 5.41179 1.85123 5.44207C1.72939 5.47137 1.50412 5.53474 1.32485 5.72397C1.11745 5.94288 1.01992 6.24369 1.0594 6.54264C1.09352 6.80107 1.23875 6.98456 1.32022 7.07978C1.40443 7.17821 1.51686 7.28768 1.62644 7.39436L3.95164 9.6591L3.40299 12.8579C3.37709 13.0088 3.35052 13.1635 3.34029 13.2927C3.3304 13.4176 3.32084 13.6516 3.44531 13.8807C3.58928 14.1458 3.84519 14.3317 4.14177 14.3867C4.39818 14.4342 4.6177 14.3528 4.73346 14.3047C4.85316 14.2551 4.9921 14.182 5.12754 14.1107L8.00132 12.5994L10.8751 14.1107C11.0105 14.182 11.1495 14.2551 11.2692 14.3047C11.3849 14.3528 11.6045 14.4342 11.8609 14.3867C12.1574 14.3317 12.4134 14.1458 12.5573 13.8807C12.6818 13.6516 12.6722 13.4176 12.6623 13.2927C12.6521 13.1635 12.6255 13.0088 12.5996 12.858L12.051 9.6591L14.3762 7.39433C14.4858 7.28766 14.5982 7.1782 14.6824 7.07978C14.7639 6.98456 14.9091 6.80107 14.9432 6.54264C14.9827 6.24369 14.8852 5.94288 14.6778 5.72397C14.4985 5.53474 14.2732 5.47137 14.1514 5.44207C14.0255 5.41179 13.8702 5.38912 13.7189 5.36704L10.5042 4.89716L9.06703 1.98569C8.99934 1.84849 8.92988 1.7077 8.86223 1.5972C8.79679 1.49032 8.66704 1.2955 8.43169 1.18329Z",fill:"currentColor"})})}])},660252,e=>{"use strict";var t,n,r=e.i(843476),i=e.i(212646),o=e.i(343794),a=e.i(276888),s=e.i(155941),l=((t={}).Small="sm",t.Large="lg",t.ExtraSmall="xs",t),c=((n={}).Small="sm",n.Large="lg",n);e.s(["ProductReviewBlock",0,function({rating:e=0,size:t,ratingLabelSize:n="lg",reviewCount:l=0,className:c,href:u,uiStrings:d,productName:f}){let{product:p}=d,h=p.totalReviewsCountLabel?.replace("{0}",l.toString()),g="xs"!==t,m=e?.toFixed(1),v=u?p.ratingSummaryWithActionLabel:p.ratingSummaryLabel,y=v&&f?v.replace("{0}",f).replace("{1}",m).replace("{2}",l.toString()):void 0;return(0,r.jsxs)(a.StyledWrapper,{className:(0,o.default)("lg"===t?"size-lg":"size-sm",c),children:["lg"===n&&(0,r.jsx)("div",{className:"rating","aria-hidden":"true",children:m}),(0,r.jsxs)("div",{className:(0,o.default)("right-section",{short:"sm"===n}),children:[g&&(0,r.jsx)("div",{"aria-hidden":"true",className:"leading-0",children:(0,r.jsx)(i.RatingStars,{rating:e,className:(0,o.default)("stars",{"lg-stars":"lg"===t}),uiStrings:d})}),!g&&(0,r.jsx)(s.Star,{"aria-hidden":"true",className:"size-3 text-border_rating_default"}),"sm"===n&&(0,r.jsx)("div",{className:"short-rating",children:m}),!!l&&(0,r.jsxs)(u?"a":"span",{className:"review-count",href:u,role:u?void 0:"group",children:[(0,r.jsx)("span",{className:"sr-only",children:y}),(0,r.jsx)("span",{"aria-hidden":"true",children:h})]})]})]})},"ProductReviewBlockSize",()=>l,"RatingLabelSize",()=>c])},866577,868453,61478,e=>{"use strict";var t=e.i(843476);e.i(21076);var n=e.i(633157),r=e.i(271645),i=e.i(833514),o=e.i(367371);function a({productName:e,uiStrings:t,ecommerceTagLabel:n,sizeTagLabel:r,rating:i}){return[e,i?t?.ratingAriaLabel?.replace("{0}",i.toFixed(1)):null,r,n].filter(Boolean).join(", ")}e.s(["buildProductTileAriaLabel",0,a],868453);var s=e.i(886048),l=e.i(901315),c=e.i(660252),u=e.i(407748),d=e.i(890264),f=e.i(746786),p=e.i(368379);let h=new Set([u.BackgroundType.GIF,u.BackgroundType.JPEG,u.BackgroundType.WEBP,u.BackgroundType.PNG]);function g({topTagLabel:e,topTagVariant:i,bottomTagLabel:o,bottomTagVariant:a,asset:s,assetObjectFit:l="contain",hoverAsset:c,type:u,tabletType:m=u,className:v,assetAlt:y}){let[b,E]=(0,r.useState)(!1),[_,x]=(0,r.useState)(!1),w=(0,r.useRef)(null),S=!!c&&"Full"===m,C=null;return S&&(C=h.has(c.contentType)?(0,t.jsx)(d.CfImage,{asset:c,alt:c.alt??c.description??c.title,className:(0,n.cx)("hidden xl:block absolute inset-0 rounded-3xl z-10 object-cover transition-opacity duration-400 ease-in-out",b?"opacity-100":"opacity-0"),style:{backgroundColor:c.backgroundColor||void 0}}):(0,t.jsx)("video",{ref:w,muted:!0,loop:!0,playsInline:!0,preload:"metadata",onCanPlay:()=>{x(!0)},...c,src:c.url,className:(0,n.cx)("hidden xl:block object-cover absolute top-0 left-0 w-full h-full rounded-3xl z-2 bg-gray-500 transition-opacity duration-400 ease-in-out",b&&_?"opacity-100":"opacity-0")})),(0,t.jsxs)("div",{className:(0,n.cx)("relative isolate overflow-hidden w-full","Minimal"!==u&&"aspect-square rounded-3xl","Minimal"===u&&"h-35 rounded-2xl","Minimal"!==m&&"lg:aspect-square lg:h-auto lg:rounded-3xl","Minimal"===m&&"lg:aspect-auto lg:h-35 lg:rounded-2xl",v),onMouseEnter:()=>{E(!0),w.current&&c&&!h.has(c.contentType)&&(w.current.currentTime=0,setTimeout(()=>{w.current?.play()},50))},onMouseLeave:()=>{E(!1),w.current&&w.current.pause()}
108,children:[s&&(0,t.jsx)(d.CfImage,{asset:s,size:"100vw",tabletSize:"50vw",desktopSize:"33vw",alt:y??s.alt??s.description??s.title,className:(0,n.cx)("absolute top-0 left-0 w-full h-full bg-background_decorative_beige block object-contain","cover"===l&&"object-cover","contain"===l&&"object-contain","Small"===u&&"aspect-square min-h-32.5","Minimal"!==u&&"rounded-3xl","Minimal"===u&&"h-35 p-3! rounded-2xl","Small"===m&&"lg:aspect-square lg:min-h-32.5","Small"!==m&&"lg:aspect-auto lg:min-h-0","Minimal"!==m&&"lg:h-full lg:p-0! lg:rounded-3xl","Minimal"===m&&"lg:h-35 lg:p-3! lg:rounded-2xl","Minimal"===u&&!c&&"group-[&:hover]:scale-105 transition-transform duration-300 ease-in-out")}),S&&C,e&&(0,t.jsx)(p.StaticTag,{color:(0,f.tagVariantToColor)(i??"outlined"),size:"Minimal"===u?"uppercase":"s",className:(0,n.cx)("absolute z-15 border-none! bg-white/80!","Minimal"!==u&&"top-4 inset-s-4","Minimal"===u&&"top-3 inset-s-3"),children:e}),o&&(0,t.jsx)(p.StaticTag,{color:(0,f.tagVariantToColor)(a??"outlined"),size:"Minimal"===u?"uppercase":"s",className:(0,n.cx)("absolute z-15 border-none! bg-white/80!","Minimal"!==u&&"bottom-4 inset-e-4","Minimal"===u&&"bottom-3 inset-e-3"),children:o})]})}e.s(["CollectionTileAsset",0,g],61478);var m=e.i(447699);let v={Full:"m",Small:"body-2",FullHalf:"body-2",Minimal:"s"};e.s(["ProductTile",0,function({foregroundAsset:e,tags:u,topTagLabel:d,topTagVariant:f,sizeTag:p,title:h,titleAs:y="p",startingFromPrice:b,rating:E,ctaButton:_,hoverAsset:x,type:w="Full",tabletType:S=w,onClick:C,onFocus:T,className:I,mediaAssetClassName:L,sectionName:N="",contentfulName:j="ProductTile",path:A,compareCheckbox:O,ariaLabel:R,uiStrings:M,analytics:D}){let{productTile:k}=M||{},P=(0,r.useMemo)(()=>(function(e,t){if(!t?.minSize?.trim())return null;let n=e?`${e} `:"";return t.maxSize?.trim()?`${n}${t.minSize} - ${t.maxSize}`:`${n}${t.minSize}`})(k?.sizeTagPrefix,p),[p,k?.sizeTagPrefix]),z=u?.filter(e=>!!e?.name&&!!e?.variant),B=E?.isRatingHidden?void 0:E?.ratingNumber,U=B?(0,t.jsx)(c.ProductReviewBlock,{ratingLabelSize:c.RatingLabelSize.Small,size:"Minimal"===w?c.ProductReviewBlockSize.ExtraSmall:c.ProductReviewBlockSize.Small,rating:B,uiStrings:M,productName:h}):null,F=R||a({productName:h,uiStrings:k,ecommerceTagLabel:d,sizeTagLabel:P,rating:E?.ratingNumber}),$="Full"!==w,G="Full"!==S,V=(0,n.cx)("mt-auto w-full justify-between items-center empty:hidden",!$&&"flex",$&&"contents",!G&&"lg:flex",G&&"lg:contents"),H=(0,n.cx)($&&"order-first",G&&"lg:order-first",!G&&"lg:order-0"),q=(0,n.cx)("justify-self-end","Full"===w&&"col-start-2 row-start-1","Full"!==w&&"col-span-2 justify-self-start","Full"===S&&"lg:col-start-2 lg:col-span-1 lg:row-start-1 lg:justify-self-end","Full"!==S&&"lg:col-start-1 lg:col-span-2 lg:row-auto lg:justify-self-start"),W=(0,n.cx)("order-last",$&&"mt-auto",G&&"lg:mt-auto",!G&&"lg:mt-0");return(0,t.jsxs)("article",{className:(0,n.cx)("flex flex-col gap-2 h-full",I),children:[(0,t.jsx)(i.NextLink,{href:A,"aria-label":F,className:(0,n.cx)("no-underline! group focus:outline-border_focus_default outline-offset-4 rounded-2xl",D?.eventAction,"product-tile"),onFocus:T,onClick:()=>{if(!D){let e=`PRODUCT_LINK_${j}_${N}_${h}`;(0,o.DataLayerPush)("event_informational_action","button_click",e)}C&&C()},"data-action-detail":D?.eventLabel,"data-event-category":D?.eventCategory,children:(0,t.jsxs)("div",{className:"w-full h-full flex! flex-col gap-2 items-start",children:[(0,t.jsx)(g,{asset:e,hoverAsset:x,bottomTagVariant:"outlined",bottomTagLabel:P,topTagLabel:d,topTagVariant:f,type:w,tabletType:S,className:L,assetAlt:F}),(0,t.jsxs)("div",{className:(0,n.cx)("grid grid-cols-[minmax(0,1fr)_auto] gap-2 w-full",["Small","Full"].includes(w)&&"mt-2",["Small","Full"].includes(S)&&"lg:mt-2",!!z&&"pt-2"),children:[z&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2 col-start-1 row-start-1",children:z.map((e,n)=>(0,t.jsx)(l.CfTag,{tag:e},n))}),(0,t.jsx)(m.Typography,{as:y,variant:v[w],variantTablet:v[S],className:(0,n.cx)("text-text_neutral_default font-bold col-start-1 col-span-2","Minimal"===w&&"line-clamp-3 text-ellipsis group-[&:hover]:underline",z?"row-start-2":"row-start-1",!z&&"Full"===w&&"col-span-1",!z&&"Full"===S&&"lg:col-span-1",!z&&"Full"!==S&&"lg:col-span-2"),children:h}),b&&(0,t.jsx)("span",{className:"mt-2 text-text_neutral_secondary text-sm leading-tight col-span-2",children:b}),U&&(0,t.jsx)("div",{className:q,children:U})]})]})}),(O||_)&&(0,t.jsxs)("div",{className:V,children:[O&&(0,t.jsx)("div",{className:H,children:O}),_&&(0,t.jsx)("div",{className:W,children:(0,t.jsx)(s.GenericButton,{onClick:_.onClick,variant:"primary",widthTablet:"Fit Content",size:"sm",width:"Fit Content",ariaLabel:`${h}
108 - ${_.title}`,link:_.onClick?void 0:_.url,openLinkInNewTab:!1,analytics:{eventCategory:"event_bin_action",eventAction:"view_item",eventLabel:`PRODUCT_BUTTON_${j}_${N}_${h}-${_.title||"BuyNow"}`},children:_.title})})]})]})}],866577)},499881,e=>{"use strict";var t=e.i(843476),n=e.i(633157),r=e.i(920490),i=e.i(594280),o=e.i(811515);let a=(0,n.cx)("text-text_brand_default","hover:text-text_brand_hover","active:text-text_brand_pressed"),s=(0,n.cx)("text-text_inverse_default","hover:text-text_inverse_hover","active:text-text_inverse_pressed"),l={xs:"xs",s:"s",m:"body-2",l:"m"},c={xs:"size-4",s:"size-4",m:"size-5",l:"size-6"},u={xs:"sm",s:"sm",m:"md",l:"lg"};e.s(["TextButton",0,function({plain:e,inverted:d,size:f="m",leadingIcon:p,trailingIcon:h,loading:g,disabled:m,children:v,loadingLabel:y,onClick:b,onKeyDown:E,onKeyUp:_,ref:x,className:w,role:S,style:C,tabIndex:T,title:I,inheritTextSize:L,href:N,openInNewTab:j,ariaControls:A,ariaCurrent:O,ariaExpanded:R,ariaLabel:M,ariaHidden:D,dataActionDetail:k,dataAnalyticsEventCategory:P,dataCy:z,dataEventCategory:B,dataTestId:U,dataPgActionRedirection:F,ariaHasPopup:$}){let G=m||g,V=(0,t.jsxs)("button",{type:"button",role:S,style:C,title:I,onClick:e=>{G?e.preventDefault():b?.(e)},onKeyDown:E,onKeyUp:_,tabIndex:T,ref:x,"aria-busy":g||void 0,"aria-disabled":G||void 0,"aria-controls":A,"aria-expanded":R,"aria-haspopup":$,"data-component":"TextButton","aria-current":O,"aria-label":M,"aria-hidden":D,"data-action-detail":k,"data-analytics-event-category":P,"data-cy":z,"data-event-category":B,"data-testid":U,"data-pgaction-redirection":F,className:(0,n.cx)("inline-flex items-center gap-1","font-primary font-semibold",G?"pointer-events-none":"transition-colors cursor-pointer select-none","min-h-6 min-w-6","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:rounded-sm",d?"focus-visible:outline-border_focus_inverse":"focus-visible:outline-border_focus_default",m?d?"text-text_inverse_disabled":"text-text_brand_disabled":d?s:a,"underline decoration-1 underline-offset-2 transition-[text-decoration-color] duration-200",e?"decoration-transparent hover:decoration-current active:decoration-current":"decoration-current hover:decoration-transparent active:decoration-transparent",w),children:[p&&(0,t.jsx)("span",{className:c[f],children:p}),(0,t.jsx)(i.Span,{variant:L?null:l[f],children:v}),g?(0,t.jsx)(r.Spinner,{size:u[f],className:(0,n.cx)(c[f]),loadingLabel:y}):h&&(0,t.jsx)("span",{className:c[f],children:h})]});return(0,o.useLinkButton)(V,{href:N,openInNewTab:j})}])},548443,e=>{"use strict";var t=e.i(59526),n=e.i(499881);e.s(["LinkTextButton",0,function({analytics:e,forceNonGlobalEventTracker:r,onClick:i,...o}){let a=(0,t.useDataLayerPush)(e,i,{forceNonGlobalEventTracker:r});return(0,n.TextButton)({onClick:a,...o})}])},556585,e=>{"use strict";var t=e.i(843476);e.s(["ChevronRightIcon",0,function({className:e}){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 16",fill:"none",className:e,children:(0,t.jsx)("path",{d:"M6.27734 12L10.2773 8L6.27734 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}])},667585,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let r=e.r(132061);function i({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new r.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},309885,(e,t,n)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"encodeURIPath",{enumerable:!0,get:function(){return r}})},652157,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"PreloadChunks",{enumerable:!0,get:function(){return l}});let r=e.r(843476),i=e.r(174080),o=e.r(563599),a=e.r(309885),s=e.r(543369);function l({moduleIds:e}){if("u">typeof window)return null;let t=o.workAsyncStorage.getStore();if(void 0===t)return null;let n=[];if(t.reactLoadableManifest&&e){let r=t.reactLoadableManifest;for(let t of e){if(!r[t])continue;let e=r[t].files;n.push(...e)}}if(0===n.length)return null;
108let c=(0,s.getAssetTokenQuery)();return(0,r.jsx)(r.Fragment,{children:n.map(e=>{let n=`${t.assetPrefix}/_next/${(0,a.encodeURIPath)(e)}${c}`;return e.endsWith(".css")?(0,r.jsx)("link",{precedence:"dynamic",href:n,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,i.preload)(n,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},869093,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return c}});let r=e.r(843476),i=e.r(271645),o=e.r(667585),a=e.r(652157);function s(e){return{default:e&&"default"in e?e.default:e}}let l={loader:()=>Promise.resolve(s(()=>null)),loading:null,ssr:!0},c=function(e){let t={...l,...e},n=(0,i.lazy)(()=>t.loader().then(s)),c=t.loading;function u(e){let s=c?(0,r.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,l=!t.ssr||!!t.loading,u=l?i.Suspense:i.Fragment,d=t.ssr?(0,r.jsxs)(r.Fragment,{children:["u"<typeof window?(0,r.jsx)(a.PreloadChunks,{moduleIds:t.modules}):null,(0,r.jsx)(n,{...e})]}):(0,r.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...e})});return(0,r.jsx)(u,{...l?{fallback:s}:{},children:d})}return u.displayName="LoadableComponent",u}},770703,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return i}});let r=e.r(555682)._(e.r(869093));function i(e,t){let n={};"function"==typeof e&&(n.loader=e);let i={...n,...t};return(0,r.default)({...i,modules:i.loadableGenerated?.modules})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},397126,e=>{"use strict";var t=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],n=t.join(","),r="u"<typeof Element,i=r?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,o=!r&&Element.prototype.getRootNode?function(e){var t;return null==e||null==(t=e.getRootNode)?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},a=function(e,t){void 0===t&&(t=!0);var n,r=null==e||null==(n=e.getAttribute)?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):a(e.parentNode))},s=function(e){var t,n=null==e||null==(t=e.getAttribute)?void 0:t.call(e,"contenteditable");return""===n||"true"===n},l=function(e,t,r){if(a(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(n));return t&&i.call(e,n)&&o.unshift(e),o=o.filter(r)},c=function(e,t,r){for(var o=[],s=Array.from(e);s.length;){var l=s.shift();if(!a(l,!1))if("SLOT"===l.tagName){var u=l.assignedElements(),d=c(u.length?u:l.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:l,candidates:d})}else{i.call(l,n)&&r.filter(l)&&(t||!e.includes(l))&&o.push(l);var f=l.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(l),p=!a(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(f&&p){var h=c(!0===f?l.children:f.children,!0,r);r.flatten?o.push.apply(o,h):o.push({scopeParent:l,candidates:h})}else s.unshift.apply(s,l.children)}}return o},u=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},d=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||s(e))&&!u(e)?0:e.tabIndex},f=function(e,t){var n=d(e);return n<0&&t&&!u(e)?0:n},p=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},h=function(e){return"INPUT"===e.tagName},g=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},m=function(e){if(!e.name)return!0;var t,n=e.form||o(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("u">typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}
108catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=g(t,e.form);return!i||i===e},v=function(e){return h(e)&&"radio"===e.type&&!m(e)},y=function(e){var t,n,r,i,a,s,l,c=e&&o(e),u=null==(t=c)?void 0:t.host,d=!1;if(c&&c!==e)for(d=!!(null!=(n=u)&&null!=(r=n.ownerDocument)&&r.contains(u)||null!=e&&null!=(i=e.ownerDocument)&&i.contains(e));!d&&u;)d=!!(null!=(s=u=null==(a=c=o(u))?void 0:a.host)&&null!=(l=s.ownerDocument)&&l.contains(u));return d},b=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},E=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var a=i.call(e,"details>summary:first-of-type")?e.parentElement:e;if(i.call(a,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return b(e)}else{if("function"==typeof r){for(var s=e;e;){var l=e.parentElement,c=o(e);if(l&&!l.shadowRoot&&!0===r(l))return b(e);e=e.assignedSlot?e.assignedSlot:l||c===e.ownerDocument?l:c.host}e=s}if(y(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},_=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!i.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1},x=function(e,t){return!(t.disabled||h(t)&&"hidden"===t.type||E(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||_(t))},w=function(e,t){return!(v(t)||0>d(t))&&!!x(e,t)},S=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||!!(t>=0)},C=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,o=i?e.scopeParent:e,a=f(o,i),s=i?C(e.candidates):o;0===a?i?t.push.apply(t,s):t.push(o):n.push({documentOrder:r,tabIndex:a,item:e,isScope:i,content:s})}),n.sort(p).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},T=t.concat("iframe:not([inert]):not([inert] *)").join(",");e.s(["focusable",0,function(e,t){return(t=t||{}).getShadowRoot?c([e],t.includeContainer,{filter:x.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):l(e,t.includeContainer,x.bind(null,t))},"getTabIndex",0,d,"isFocusable",0,function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==i.call(e,T)&&x(t,e)},"isTabbable",0,function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==i.call(e,n)&&w(t,e)},"tabbable",0,function(e,t){return C((t=t||{}).getShadowRoot?c([e],t.includeContainer,{filter:w.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:S}):l(e,t.includeContainer,w.bind(null,t)))}])},505080,e=>{"use strict";var t=e.i(271645),n=e.i(953195);e.s(["useIsMobile",0,(e=n.TABLET_BREAKPOINT)=>{let[r,i]=(0,t.useState)(null);return(0,t.useEffect)(()=>{let t=()=>{i(window.innerWidth<e)};return t(),window.addEventListener("resize",t,{passive:!0}),()=>{window.removeEventListener("resize",t)}},[]),r}])},613058,e=>{"use strict";var t=e.i(271645),n=e.i(982709);e.s(["useModal",0,function(e,r,i){(0,t.useEffect)(()=>{if(e){if(r)return void n.modalsStore.open(e);n.modalsStore.close(e)}},[e,r]),(0,t.useEffect)(()=>()=>{e&&n.modalsStore.close(e)},[e]);let o=document.body;return i??n.modalsStore.getSnapshot().containerEl??o}])},989277,e=>{"use strict";var t=e.i(843476);e.s(["CloseNavIcon",0,function({className:e}){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:e,children:(0,t.jsx)("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})}])},447658,e=>{"use strict";var t=e.i(843476);e.s(["Search",0,function({className:e}){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:e,children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.16657 1.66699C5.02443 1.66699 1.666
10856 5.02486 1.66656 9.16699C1.66656 13.3091 5.02443 16.667 9.16657 16.667C10.9374 16.667 12.5649 16.0533 13.848 15.0269L16.9106 18.0896C17.2361 18.415 17.7637 18.415 18.0892 18.0896C18.4146 17.7641 18.4146 17.2365 18.0892 16.9111L15.0265 13.8484C16.0528 12.5653 16.6666 10.9378 16.6666 9.16699C16.6666 5.02486 13.3087 1.66699 9.16657 1.66699ZM3.33323 9.16699C3.33323 5.94533 5.9449 3.33366 9.16657 3.33366C12.3882 3.33366 14.9999 5.94533 14.9999 9.16699C14.9999 12.3887 12.3882 15.0003 9.16657 15.0003C5.9449 15.0003 3.33323 12.3887 3.33323 9.16699Z",fill:"currentColor"})})}])},12893,e=>{"use strict";var t=e.i(271645);let n="modal-btn-action";e.s(["ignoreOutsideClickClass",0,n,"useOutsideClick",0,function(e,r){let i=(0,t.useEffectEvent)(t=>{let i=t.target;!e.current||e.current.contains(i)||i.closest(`.${n},.c-checkbox`)||r()});(0,t.useEffect)(()=>(document.addEventListener("click",i),()=>{document.removeEventListener("click",i)}),[])}])},490360,109021,e=>{"use strict";var t=e.i(271645),n=e.i(383182),r=e.i(392013),i=e.i(439376),o=e.i(953423);let a="viewed-query-ids-cache";class s{cacheTTLSeconds;constructor(e){this.cacheTTLSeconds=e}get(){try{let e=localStorage.getItem(a)??"[]";return JSON.parse(e).map(e=>e.queryId)}catch(e){return console.error("Error parsing viewed query IDs cache from localStorage:",e),[]}}isEntryExpired(e,t){return e.expiresAt<=t}store(e){let t=Date.now(),n=t+1e3*this.cacheTTLSeconds,r=e.map(e=>({expiresAt:n,queryId:e}));try{let e=localStorage.getItem(a)??"[]",n=JSON.parse(e).filter(e=>!this.isEntryExpired(e,t));n.push(...r),localStorage.setItem(a,JSON.stringify(n))}catch(e){console.error("Error parsing existing viewed query IDs cache from localStorage:",e),localStorage.setItem(a,JSON.stringify(r))}}}var l=e.i(368971);function c(){let e=globalThis.window?.PGdataLayer?.user?.ID||null;return e?(0,l.default)(e):null}function u(){let e,t="anonymous-user-id",n=localStorage.getItem(t);if(n)return n;let r=(e=new Uint8Array(16),crypto.getRandomValues(e),Array.from(e,e=>e.toString(16).padStart(2,"0")).join(""));return localStorage.setItem(t,r),r}let d=["website"];class f{static instance=null;suggestionsIndexName;resultsIndexName;searchClient;insightsClient;viewedQueryIdsCache;productsByPath=new Map;constructor(){const e=(0,i.getCurrentClientLocale)(),t=(0,i.getConfig)(e),n=(0,o.getEnv)(e),r=t.AlgoliaSearch.appId,a=n.NEXT_PUBLIC_ALGOLIA_SEARCH_APIKEY,l=t.AlgoliaSearch?.indexName,c=t.AlgoliaSearch?.suggestionsIndexName;this.searchClient=this.createAlgoliaClientWithCache(r,a),this.insightsClient=this.searchClient.initInsights({appId:r,apiKey:a}),this.viewedQueryIdsCache=new s(86400),this.suggestionsIndexName=c,this.resultsIndexName=l}static getInstance(){return f.instance||(f.instance=new f),f.instance}setProducts(e){let t=new Map;for(let n of e){let e=this.normalizeProductPath(n.url);e&&!t.has(e)&&t.set(e,n)}this.productsByPath=t}createAlgoliaClientWithCache(e,t){return(0,n.algoliasearch)(e,t,{hostsCache:(0,r.createMemoryCache)(),responsesCache:(0,r.createBrowserLocalStorageCache)({key:"algolia-search-responses-cache",timeToLive:86400})})}parseHighlightedText(e){if(!e)return null;let t=[],n=0;for(let r of e.matchAll(/<em>(.*?)<\/em>/g)){let i=r.index??0;i>n&&t.push({bold:!1,text:e.substring(n,i)}),t.push({bold:!0,text:r[1]}),n=i+r[0].length}return n<e.length&&t.push({bold:!1,text:e.substring(n)}),t}normalizeProductPath(e){if(!e)return null;try{let t=new URL(e,"https://relative.invalid").pathname,n=t.length;for(;n>1&&"/"===t[n-1];)n--;return t.slice(0,n)}catch{return null}}appendMissingDataFromCF(e){if("product"===e.resultType){let t=this.normalizeProductPath(e.url);if(!t)return e;let n=this.productsByPath.get(t);if(!n)return e;let{topTag:r,minSize:i,maxSize:o,image:a,rating:s}=n;return{...e,topTag:e.topTag??r,minSize:e.minSize??i,maxSize:e.maxSize??o,image:e.image??a,rating:e.rating??s}}return e}hitToSearchResult(e,t,n){if("product"===e.type){let r=this.parseHighlightedText(e._highlightResult?.productType?.value),i=this.parseHighlightedText(e._highlightResult?.title?.value),o=this.parseHighlightedText(e._highlightResult?.description?.value),a={hitType:"result",resultType:"product",id:e.objectID,url:e.url,title:e.title,titleHighlighted:i,productType:e.productType,productTypeHighlighted:r,image:e.image?{url:e.image,description:e.title,width:200,height:200}:null,rating:+e.rating,description:e.description,descriptionHighlighted:o,maxSize:null,minSize:null,topTag:null,source:"algolia",queryId:t,position:n+1};return this.appendMissingDataFromCF(a)}let r=this.parseHighlightedText(e._highlightResult?.title?.value),i=this.parseHighlightedText(e._highlightResult?.description?.value);return{hitType:"result",resultType:"landing"===e.type?"tools":e.type,id:e.objectID,url:e.url,title:e.title,titleHighlighted:r,image:e.image?{url:e.image,description:e.title,width:200,height:200}:null,description:e.description,descriptionHighlighted:i,maxSize:null,minSize:null,productType:null,productTypeHighlighted:null,rating:null,topTag:null,source:"algolia",queryId:t,position:n+1}}hitToSuggestionResult(e,t,n){let r=this.parseHighlightedText(e._highlightResult?.query?.value);return{hitType:"suggestion",id:e.objectID,query:e.query,queryHighlighted:r,source:"algolia",queryId:t,position:n+1}}async fetchResults(e){let t={indexName:this.suggestionsIndexName,params:{query:e,hitsPerPage:6,analyticsTags:d}},n={indexName:this.resultsIndexName,params:{query:e,hitsPerPage:4,filters:"type:product",analyticsTags:d}},r={indexName:this.resultsIndexName,params:{query:e,hitsPerPage:6,filters:"type:article OR type:tools",analyticsTags:d}},i={indexName:this.resultsIndexName,params:{query:e,hitsPerPage:5,filters:"type:product OR type:article OR type:tools",analyticsTags:d}},{results:o}=await this.searchClient.search([t,n,r,i]),a=o[0],s=o[1],l=o[2],c=o[3],u=a.hits.map((e,t)=>this.hitToSuggestionResult(e,a.queryID,t)),f=s.hits.map((e,t)=>this.hitToSearchResult(e,s.queryID,t)),p=l.hits.map((e,t)=>this.hitToSearchResult(e,l.queryID,t)),h=c.hits.map((e,t)=>this.hitToSearchResult(e,c.queryID,t));return{suggestions:u,totalSuggestions:a.nbHits,products:f,totalProducts:s.nbHits,toolsAndArticles:p,totalToolsAndArticles:l.nbHits,allResults:h,totalResults:c.nbHits,query:e}}async fetchPopularResults({shouldFetchProducts:e,shouldFetchResources:t}){let n,r,i={indexName:this.suggestionsIndexName,params:{query:"",hitsPerPage:6,analyticsTags:d}},o={indexName:this.resultsIndexName,params:{query:"",hitsPerPage:5,filters:"type:product",analyticsTags:d}},a={indexName:this.resultsIndexName,params:{query:"",hitsPerPage:6,filters:"type:article OR type:tools",analyticsTags:d}},s=[i];e&&s.push(o),t&&s.push(a);let{results:l}=await this.searchClient.search(s),c=l[0],u=1;return e&&(n=l[u],u++),t&&(r=l[u]),{suggestions:c?.hits?.map((e,t)=>this.hitToSuggestionResult(e,c.queryID,t))??[],products:n?.hits?.map((e,t)=>this.hitToSearchResult(e,n.queryID,t))??[],toolsAndArticles:r?.hits?.map((e,t)=>this.hitToSearchResult(e,r.queryID,t))??[]}}async fetchStandalonePageResults({query:e,page:t,resultsType:n}){let r=n?`type:${n}`:"type:product OR type:article OR type:tools",{hits:i,nbHits:o,nbPages:a,queryID:s}=(await this.searchClient.search([{indexName:this.resultsIndexName,params:{query:e,page:t,hitsPerPage:10,filters:r,analyticsTags:d}}])).results[0],l=10*t;return{items:i.map((e,t)=>this.hitToSearchResult(e,s,t+l)),totalResults:o,totalPages:a,currentPage:t,query:e}}async sendInsightsClickEvent({eventName:e,result:t,isClickAfterSearch:n}){if("algolia"!==t.source)return;let r=c(),i=r??u(),o={eventType:"click",eventName:e,index:"suggestion"===t.hitType?this.suggestionsIndexName:this.resultsIndexName,userToken:i,authenticatedUserToken:r,objectIDs:[t.id]};n&&(o={...o,positions:[t.position],queryID:t.queryId});try{await this.insightsClient.pushEvents({events:[o]})}catch(e){console.error("Error sending Algolia Insights click event:",e)}}async sendInsightsViewEvents(e=[]){let t=[],n=[],r=this.viewedQueryIdsCache.get();for(let{results:i,eventName:o}of e){let e=i.filter(e=>"algolia"===e.source);if(0===e.length)continue;let a=e[0].queryId;if(r.includes(a))continue;let s=c(),l=s??u(),d={eventType:"view",eventName:o,index:"suggestion"===e[0].hitType?this.suggestionsIndexName:this.resultsIndexName,userToken:l,authenticatedUserToken:s,objectIDs:e.map(e=>e.id)};n.push(a),t.push(d)}if(0!==t.length)try{this.viewedQueryIdsCache.store(n),await this.insightsClient.pushEvents({events:t})}catch(e){console.error("Error sending Algolia Insights view event:",e)}}async sendInsightsConversionEvent({eventName:e,objectId:t,queryId:n}){if(!t)return;let r=c(),i=r??u(),o={eventType:"conversion",eventName:e,index:this.resultsIndexName,userToken:i,authenticatedUserToken:r,objectIDs:[t]};n&&(o={...o,queryID:n});try{await this.insightsClient.pushEvents({events:[o]})}catch(e){console.error("Error sending Algolia Insights conversion event:",e)}}}var p=e.i(895395);function h({allProducts:e}={}){let n=(0,p.useConfig)(),[r,i]=(0,t.useState)(null);return(0,t.useEffect)(()=>
108{if(!n.Features.SearchRevamp)return;let t=f.getInstance();e&&t.setProducts(e),i(t)},[e,n.Features.SearchRevamp]),r}e.s(["useSearchClient",0,h],109021),e.s(["useSearchPanelAnalytics",0,function(){let e=h();return{sendClickEvent:(0,t.useCallback)(t=>e?.sendInsightsClickEvent(t),[e]),sendConversionEvent:(0,t.useCallback)(t=>e?.sendInsightsConversionEvent(t),[e])}}],490360)},232189,(e,t,n)=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},865156,(e,t,n)=>{"use strict";var r=e.r(232189);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i}
108;return n.PropTypes=n,n}},745009,(e,t,n)=>{t.exports=e.r(865156)()},957527,e=>{"use strict";var t,n,r=e.i(271645);function i(){return(i=Object.assign.bind()).apply(null,arguments)}let o=function(e){return r.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:80,height:38},e),t||(t=r.createElement("defs",null,r.createElement("path",{id:"embedded-logo_svg__a",d:"M0 0h2.535v2.499H0z"}))),n||(n=r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{fill:"#00B2A9",d:"M54.493 23.137c-1.416.194-1.63 2.313-1.635 2.929l3.178-1.069c-.027-.467-.322-1.86-1.543-1.86m-4.9 4.99c0-7.171 4.076-7.752 5.03-7.752 3.06 0 4.431 2.938 4.431 4.966 0 .853-.224 1.263-1.569 1.803l-4.55 1.582c0 1.428.55 1.622 1.228 1.622 1.561 0 3.073-1.96 3.947-1.96.47 0 .947.763.947 1.237 0 1.62-2.69 3.636-5.388 3.636-2.311 0-4.075-1.917-4.075-5.134M76.33 30.906c0-3.572-4.895-5.093-4.895-6.92 0-.423.272-.923.959-.923 1.644 0 1.193 1.97 2.461 1.97.682 0 1.856-.341 1.856-1.051 0-2.323-2.503-3.77-4.409-3.77-1.613 0-3.938.76-4.038 3.517-.141 4.106 4.709 5.333 4.709 6.963 0 .793-.658.927-1.283.927-1.936 0-2.824-2.124-3.726-2.124-.605 0-1.293.927-1.293 1.853 0 1.345 2.449 3.236 5.233 3.236 2.313 0 4.426-1.336 4.426-3.678M24.45 33.3c0 .496-.234.722-.928.706-1.865-.049-2.7-1.474-2.7-3.062v-8.546c0-1.338 1.385-1.976 2.226-1.989.745-.001.965.49.965 1.44v.686c.89-1.14 2.245-1.515 3.08-1.515 1.902 0 2.996 1.04 3.282 1.698 1.087-1.392 2.162-1.698 3.235-1.698 3.869 0 3.969 3.536 3.969 4.474v7.357c0 .592-.346.7-1.199.7-1.959 0-2.425-1.207-2.425-2.948l-.004-4.66c0-.834-.249-1.612-1.193-1.612-.92 0-1.786.417-1.786 1.718v6.04c0 .686-.62.942-1.169.942-2.064 0-2.35-1.571-2.35-2.562v-4.46c0-1.126-.385-1.678-1.32-1.678-1.007 0-1.7.753-1.7 1.84zM13.479 30.9c-.75 0-.994-.621-.994-1.275 0-2.023 2.658-2.482 3.785-2.482l.087.001c0 2.996-1.906 3.755-2.878 3.755m1.843-10.52c-1.963 0-2.184.983-2.213 1.476-.03.5.324 1.377.963 1.335.088-.004.351-.012.39-.012.934-.002 1.94.205 1.93 1.153 0 .16-.014.522-.014.522s-7.422-.157-7.422 4.827c0 1.886 1.41 3.924 3.712 3.924 1.542 0 3.057-1.068 3.66-2.508-.09.209-.12.631-.12.805 0 1.52 1.04 1.8 2.55 1.8.591 0 .71-.33.71-.989v-7.886c-.115-3.75-2.417-4.447-4.146-4.447M41.88 25.84c0-1.585.337-2.485 1.704-2.597 1.1-.085 2.112.683 2.112 1.97 0 2.815-1.255 4.618-3.816 4.787zm1.482-5.702c-2.734.014-4.53 1.364-4.53 5.751v10.136c0 1.226.309 1.975 1.831 1.975.853 0 1.204-.098 1.204-.626v-4.47c1.045-.165 6.846-.959 6.846-7.877 0-1.68-1.022-4.889-5.35-4.889"}),r.createElement("path",{fill:"#00B2A9",d:"M6.754 14.435c1.22 0 2.654.8 2.654 3.304 0 2.827-1.785 4.826-5.462 5.584a27 27 0 0 1-.244-3.524c0-3.63 1.108-5.364 3.052-5.364M0 19.502c0 4.702.814 11.2 1.138 13.075.294 1.694.618 2.62 2.553 2.62 1.083 0 1.536-.122 1.536-.795l-1.001-7.835c1.327-.213 8.714-1.182 8.714-9.478 0-2.452-1.36-6.128-5.923-6.128-3.61 0-7.017 2.191-7.017 8.54M63.54 22.378c0-.63-.01-1.02-.01-1.02 0-.569-.38-.856-1.029-.85-.897.014-2.136.587-2.136 1.887v8.885c0 1.778.634 2.436 2.558 2.436 0 0 .964-.087.964-.612 0-.527-.015-7.097-.015-7.119 0-1.194 1.847-2.039 3.117-2.481.421-.141.585-.542.585-.887 0-.813-.215-1.904-1.15-1.904-.533 0-1.487.23-2.884 1.665"}),r.createElement("path",{fill:"#FD0",d:"M48.767 18.552c-2.27 0-8.763-5.664-8.763-8.872 0-1.53 1.064-1.968 1.949-1.968 1.007 0 3.381 1.351 3.381 1.351s.355 6.067 2.759 6.067c.853 0 2.454-1.377 2.454-2.484 0-1.823-1.445-3.257-3.108-4.64.08-.7.549-1.949 1.322-2.906.698-.867 1.672-1.556 2.887-1.572 1.196-.02 1.99 1.234 2.019 3.241.073 4.826-2.842 11.752-4.9 11.783m.357-5.843c0 .194-.07.34-.248.34-1.458 0-1.613-2.812-1.613-2.812 1.147.621 1.861 1.486 1.861 2.472M51.957 0c-1.952.026-3.912 1.7-5.137 3.76-.565.96-.969 1.995-1.145 2.99-1.86-1.138-3.873-1.839-5.19-1.839-3.592 0-4.207 2.68-4.207 4.151 0 5.442 10.41 11.481 13.589 11.481 2.564-.037 7.358-7.736 7.26-14.147-.04-2.629-1.517-6.452-5.17-6.396"}),r.createElement("path",{fill:"#FD0",d:"M47.263 10.237c.875.474 1.498 1.09 1.744 1.794q.115.327.117.678 0 .086-.02.157c-.032.11-.103.184-.228.184-1.458 0-1.613-2.813-1.613-2.813m1.504 8.315c-2.27 0-8.763-5.664-8.763-8.872 0-1.53 1.064-1.968 1.949-1.968 1.007 0 3.381 1.351 3.381 1.351s.355 6.067 2.76 6.067c.852 0 2.453-1.377 2.453-2.484 0-1.823-1.445-3.257-3.108-4.64.08-.7.549-1.949 1.322-2.906.698-.867 1.672-1.556 2.887-1.573 1.196-.02 1.99 1.235 2.019 3.242.073 4.826-2.842 11.752-4.9 11.783m8.36-12.155c-.04-2.629-1.517-6.452-5.17-6.396-1.952.026-3.912 1.7-5.137 3.76-.565.96-.969 1.995-1.145 2.99-1.86-1.138-3.872-1.84-5.19-1.84-3.592 0-4.207 2.682-4.207 4.152 0 5.442 10.41 11.481 13.589 11.481 2.564-.037 7.358-7.736 7.26-14.147"}),r.createElement("g",{transform:"translate(77.465 32.108)"},r.createElement("mask",{id:"embedded-logo_svg__b",fill:"#fff"},r.createElement("use",{xlinkHref:"#embedded-logo_svg__a"})),r.createElement("path",{fill:"#00B2A9",d:"M1.34 1.207c.146 0 .226-.072.226-.179C1.566.914 1.48.85 1.34.85h-.277v.358zM.743.742c0-.092.073-.164.16-.164h.46c.312 0 .53.143.53.429a.4.4 0 0 1-.261.392l.196.236a.14.14 0 0 1 .044.114c0 .086-.066.15-.16.15-.058 0-.095-.028-.131-.064l-.306-.372h-.212v.279a.16.16 0 0 1-.32 0zm1.541.507v-.006A1 1 0 0 0 1.267.239 1.01 1.01 0 0 0 .25 1.25v.007a1 1 0 0 0 1.017 1.003 1.01 1.01 0 0 0 1.017-1.01M0 1.256V1.25C0 .571.56 0 1.267 0c.714 0 1.268.564 1.268 1.242v.007c0 .679-.561 1.25-1.268 1.25A1.25 1.25 0 0 1 0 1.256",mask:"url(#embedded-logo_svg__b)"}
108)))))},a={src:e.i(344668).default,width:110,height:63,blurWidth:8,blurHeight:5,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAo0lEQVR42m3GvQqCQAAA4IPw57EKgsIsTa2pH+Qs6wrS8GdLKuyuEoIGHRrDlrLH6VEisqEbGhs++IDst3nRUZiKJYJ/gHk4J5AkxNzv4CiKBhAvW8aWGP2QoG7gCUBf3R/S/JYrTpaXhumnbKZP1c3eDfv66nkYg45LjhpaxNokTFW0yZRxcFLR+gJ9HDenehHUbJmrzuqMYEkcxdOzv7P0hS8JX0DpjhS8BgAAAABJRU5ErkJggg=="};var s=e.i(760277),l=e.i(439376);e.s(["getLogo",0,function(e){let t=s.dodotLocales[e],n=(0,l.getConfig)(e),r=t?a:o;return{title:n?.SEO?.Brand,alt:n?.SEO?.alt,url:r?.src,...r}}],957527)},280277,e=>{"use strict";var t=e.i(183735),n=e.i(271645);e.s(["useIsHeaderVisible",0,function(){let e=(0,t.useLenis2)(),[r,i]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let t=e=>{let t=e.scroll||e.actualScroll||0,n=e.direction;i(t<=100||-1===n)};if(e)return e.on("scroll",t),()=>{e.off("scroll",t)}},[e]),r}])},772385,e=>{"use strict";let t,n,r;var i,o,a,s,l,c,u={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},d={0:8203,1:8204,2:8205,3:65279},f={0:String.fromCodePoint(d[0]),1:String.fromCodePoint(d[1]),2:String.fromCodePoint(d[2]),3:String.fromCodePoint(d[3])},p=[,,,,].fill(String.fromCodePoint(d[0])).join(""),h=Object.fromEntries(Object.entries(f).map(e=>[e[1],+e[0]])),g=Object.fromEntries(Object.entries(u).map(e=>e.reverse())),m=`${Object.values(u).map(e=>`\\u{${e.toString(16)}}`).join("")}`,v=RegExp(`[${m}]{4,}`,"gu");function y(e,t){return function(e,t,n="auto"){return!0===n||"auto"===n&&(!(!Number.isNaN(Number(e))||/[a-z]/i.test(e)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(e))&&Date.parse(e)||function(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(e))?e:`${e}${function(e){let t=JSON.stringify(e),n=new TextEncoder().encode(t),r="";for(let e=0;e<n.length;e++){let t=n[e];r+=f[t>>6&3]+f[t>>4&3]+f[t>>2&3]+f[3&t]}return p+r}(t)}`}(e,t)}var b=function(){if(l)return s;l=1;var e=function(){if(a)return o;a=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString;return o=function(n,r,i){if("[object Function]"!==t.call(r))throw TypeError("iterator must be a function");var o=n.length;if(o===+o)for(var a=0;a<o;a++)r.call(i,n[a],a,n);else for(var s in n)e.call(n,s)&&r.call(i,n[s],s,n)}}();function t(e,n,r){if(3==arguments.length)return t.set(e,n,r);if(2==arguments.length)return t.get(e,n);var i=t.bind(t,e);for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o].bind(i,e));return i}return s=t,t.get=function(e,n){for(var r=Array.isArray(n)?n:t.parse(n),i=0;i<r.length;++i){var o=r[i];if(!("object"==typeof e&&o in e))throw Error("Invalid reference token: "+o);e=e[o]}return e},t.set=function(e,n,r){var i=Array.isArray(n)?n:t.parse(n),o=i[0];if(0===i.length)throw Error("Can not set the root object");for(var a=0;a<i.length-1;++a){var s=i[a];"string"!=typeof s&&"number"!=typeof s&&(s=String(s)),"__proto__"!==s&&"constructor"!==s&&"prototype"!==s&&("-"===s&&Array.isArray(e)&&(s=e.length),o=i[a+1],s in e||(o.match(/^(\d+|-)$/)?e[s]=[]:e[s]={}),e=e[s])}return"-"===o&&Array.isArray(e)&&(o=e.length),e[o]=r,this},t.remove=function(e,n){var r=Array.isArray(n)?n:t.parse(n),i=r[r.length-1];if(void 0===i)throw Error('Invalid JSON pointer for remove: "'+n+'"');var o=t.get(e,r.slice(0,-1));if(Array.isArray(o)){var a=+i;if(""===i&&isNaN(a))throw Error('Invalid array index: "'+i+'"');Array.prototype.splice.call(o,a,1)}else delete o[i]},t.dict=function(e,n){var r={};return t.walk(e,function(e,t){r[t]=e},n),r},t.walk=function(n,r,i){var o=[];i=i||function(e){var t=Object.prototype.toString.call(e);return"[object Object]"===t||"[object Array]"===t},function n(a){e(a,function(e,a){o.push(String(a)),i(e)?n(e):r(e,t.compile(o)),o.pop()})}(n)},t.has=function(e,n){try{t.get(e,n)}catch{return!1}return!0},t.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")},t.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")},t.parse=function(e){if(""===e)return[];if("/"!==e.charAt(0))throw Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(t.unescape)},t.compile=function(e){return 0===e.length?"":"/"+e.map(t.escape).join("/")},s}();let E=(e,t="")=>{let n=[],r=b.get(e,t);if("content"in r&&r.content)for(let i=0;i<r.content.length;i++)"text"===r.content[i].nodeType?n.push(`${t}/content/${i}/value`):n.push(...E(e,`${t}/content/${i}`));return n},_=({entityId:e,entityType:t,space:n,environment:r,field:i,locale:o,editorInterface:a,fieldType:s,targetOrigin:l,platform:c})=>{let u={origin:"contentful.com",href:`${l||"https://app.contentful.com"}/spaces/${n}/environments/${r}/${"Entry"===t?"entries":"assets"}/${e}/?focusedField=${i}
108&focusedLocale=${o}&source=vercel-content-link`,contentful:{editorInterface:a,fieldType:s}};return"vercel"===c&&delete u.contentful,u},x=e=>["builtin","sidebar-builtin","editor-builtin"].includes(e),w=e=>N.includes(e),S=["nt_experiences","nt_name","nt_description","nt_audience_id","nt_rules","nt_metadata","nt_experience_id","nt_type","nt_config","nt_audience","nt_variants"],C=S.map(e=>e.replace(/_([a-z])/g,(e,t)=>t.toUpperCase())),T=[...S,...C],I=e=>T.includes(e);function L(e){if("function"==typeof structuredClone)return structuredClone(e);try{return JSON.parse(JSON.stringify(e))}catch(t){return console.warn("Failed to clone data:",e,t),e}}let N=["singleLine","tagEditor","listInput","checkbox","richTextEditor","multipleLine"];function j(e,t,n,r,i,o,a){let s=a?t[a]:t;switch(e){case"Symbol":{let e=y(s,n);b.set(r,i,e);break}case"Text":{let e=y(s,n);b.set(r,i,e);break}case"RichText":(({pointer:e,mappings:t,data:n,hiddenStrings:r})=>{let i=t[e];if(i)for(let o of(delete t[e],E(n,e))){t[o]=i;let e=y(b.get(n,o),r);b.set(n,o,e)}else for(let t of E(n,e)){let e=y(b.get(n,t),r);b.set(n,t,e)}})({pointer:"",mappings:o,data:s,hiddenStrings:n});break;case"Array":{let e=s.map(e=>"string"==typeof e?y(e,n):e);b.set(r,i,e)}}}let A=(e,t,n,r,i)=>{if(!e.fields)return;let{contentSourceMaps:o}=e.sys;if(!o)return;let{mappings:a}=o;for(let o in a){let{source:s}=a[o],l=e.sys.space.sys.id,c=e.sys.environment.sys.id,u=e.sys.id,d=e.sys.type,f=t[s.fieldType],p=n[s.editorInterface];if(x(p.widgetNamespace)&&!w(p.widgetId))continue;let h=o.startsWith("/")?o:`/${o}`;if(b.has(e,h)){let t=b.get(e,h);if(null===t)return;let n=h.split("/").pop();if(!n)return void console.error("Field name could not be extracted from the pointer",h);if(I(n))continue;let o=e.sys.locale;if(o){let s=_({entityId:u,entityType:d,space:l,environment:c,field:n,locale:o,editorInterface:p,fieldType:f,targetOrigin:r,platform:i});j(f,t,s,e,h,a)}else Object.keys(t).forEach(o=>{let s=_({entityId:u,entityType:d,space:l,environment:c,field:n,locale:o,editorInterface:p,fieldType:f,targetOrigin:r,platform:i});j(f,t,s,e,`${h}/${o}`,a,o)})}}},O="4.9.5",R=!1,M=e=>(...t)=>{R&&console[e](...t)},D={error:M("error"),warn:M("warn"),log:M("log")},k="live-preview-editor",P="live-preview-sdk",z=new Set(["AREA","BASE","BR","COL","EMBED","HR","IMG","INPUT","LINK","META","PARAM","SOURCE","TRACK","WBR"]);function B(e,t,n){let r={...t,method:e,source:P,location:window.location.href,version:O};D.log("Send message",r),n.forEach(e=>{window.top?.postMessage(r,e)})}function U(e,t=100){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}}var F="u">typeof globalThis?globalThis:"u">typeof window?window:e.g,$={exports:{}};$.exports;let G=(c||(c=1,function(e,t){var n,r,i,o="__lodash_hash_undefined__",a="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",f="[object Map]",p="[object Number]",h="[object Object]",g="[object Promise]",m="[object RegExp]",v="[object Set]",y="[object String]",b="[object WeakMap]",E="[object ArrayBuffer]",_="[object DataView]",x=/^\[object .+?Constructor\]$/,w=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[a]=S[s]=S[E]=S[l]=S[_]=S[c]=S[u]=S[d]=S[f]=S[p]=S[h]=S[m]=S[v]=S[y]=S[b]=!1;var C="object"==typeof F&&F&&F.Object===Object&&F,T="object"==typeof self&&self&&self.Object===Object&&self,I=C||T||Function("return this")(),L=t&&!t.nodeType&&t,N=L&&e&&!e.nodeType&&e,j=N&&N.exports===L,A=j&&C.process,O=function(){try{return A&&A.binding&&A.binding("util")}catch{}}(),R=O&&O.isTypedArray;function M(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function D(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var k=Array.prototype,P=Function.prototype,z=Object.prototype,B=I["__core-js_shared__"],U=P.toString,$=z.hasOwnProperty,G=(n=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(sr
108c)_1."+n:"",V=z.toString,H=RegExp("^"+U.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=j?I.Buffer:void 0,W=I.Symbol,Y=I.Uint8Array,J=z.propertyIsEnumerable,K=k.splice,Z=W?W.toStringTag:void 0,Q=Object.getOwnPropertySymbols,X=q?q.isBuffer:void 0,ee=(r=Object.keys,i=Object,function(e){return r(i(e))}),et=eC(I,"DataView"),en=eC(I,"Map"),er=eC(I,"Promise"),ei=eC(I,"Set"),eo=eC(I,"WeakMap"),ea=eC(Object,"create"),es=eL(et),el=eL(en),ec=eL(er),eu=eL(ei),ed=eL(eo),ef=W?W.prototype:void 0,ep=ef?ef.valueOf:void 0;function eh(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function eg(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function em(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ev(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new em;++t<n;)this.add(e[t])}function ey(e){var t=this.__data__=new eg(e);this.size=t.size}function eb(e,t){for(var n=e.length;n--;)if(eN(e[n][0],t))return n;return -1}function eE(e){var t;return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?function(e){var t=$.call(e,Z),n=e[Z];try{e[Z]=void 0;var r=!0}catch{}var i=V.call(e);return r&&(t?e[Z]=n:delete e[Z]),i}(e):(t=e,V.call(t))}function e_(e){return ek(e)&&eE(e)==a}function ex(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var u=-1,d=!0,f=2&n?new ev:void 0;for(o.set(e,t),o.set(t,e);++u<s;){var p=e[u],h=t[u];if(r)var g=a?r(h,p,u,t,e,o):r(p,h,u,e,t,o);if(void 0!==g){if(g)continue;d=!1;break}if(f){if(!function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}(t,function(e,t){if(!f.has(t)&&(p===e||i(p,e,n,r,o)))return f.push(t)})){d=!1;break}}else if(!(p===h||i(p,h,n,r,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function ew(e){var t;return t=ez(e),eA(e)?t:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(t,eT(e))}function eS(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function eC(e,t){var n,r=e?.[t];return!(!eD(r)||(n=r,G&&G in n))&&(eR(r)?H:x).test(eL(r))?r:void 0}eh.prototype.clear=function(){this.__data__=ea?ea(null):{},this.size=0},eh.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},eh.prototype.get=function(e){var t=this.__data__;if(ea){var n=t[e];return n===o?void 0:n}return $.call(t,e)?t[e]:void 0},eh.prototype.has=function(e){var t=this.__data__;return ea?void 0!==t[e]:$.call(t,e)},eh.prototype.set=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=ea&&void 0===t?o:t,this},eg.prototype.clear=function(){this.__data__=[],this.size=0},eg.prototype.delete=function(e){var t=this.__data__,n=eb(t,e);return!(n<0)&&(n==t.length-1?t.pop():K.call(t,n,1),--this.size,!0)},eg.prototype.get=function(e){var t=this.__data__,n=eb(t,e);return n<0?void 0:t[n][1]},eg.prototype.has=function(e){return eb(this.__data__,e)>-1},eg.prototype.set=function(e,t){var n=this.__data__,r=eb(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},em.prototype.clear=function(){this.size=0,this.__data__={hash:new eh,map:new(en||eg),string:new eh}},em.prototype.delete=function(e){var t=eS(this,e).delete(e);return this.size-=!!t,t},em.prototype.get=function(e){return eS(this,e).get(e)},em.prototype.has=function(e){return eS(this,e).has(e)},em.prototype.set=function(e,t){var n=eS(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this},ev.prototype.add=ev.prototype.push=function(e){return this.__data__.set(e,o),this},ev.prototype.has=function(e){return this.__data__.has(e)},ey.prototype.clear=function(){this.__data__=new eg,this.size=0},ey.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ey.prototype.get=function(e){return this.__data__.get(e)},ey.prototype.has=function(e){return this.__data__.has(e)},ey.prototype.set=function(e,t){var n=this.__data__;if(n instanceof eg){var r=n.__data__;if(!en||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new em(r)}return n.set(e,t),this.size=n.size,this};var eT=Q?function(e){return null==e?[]:function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}(Q(e=Object(e)),function(t){return J.call(e,t)})}:function(){return[]},eI=eE;function eL(e){if(null!=e){try{return U.call(e)}catch{}try{return e+""}catch{}}return""}function eN(e,t){return e===t||e!=e&&t!=t}(et&&eI(new et(new ArrayBuffer(1)))!=_||en&&eI(new en)!=f||er&&eI(er.resolve())!=g||ei&&eI(new ei)!=v||eo&&eI(new eo)!=b)&&(eI=function(e){var t=eE(e),n=t==h?e.constructor:void 0,r=n?eL(n):"";if(r)switch(r){case es:return _;case el:return f;case ec:return g;case eu:return v;case ed:return b}return t});var ej=e_(function(){return arguments}())?e_:function(e){return ek(e)&&$.call(e,"callee")&&!J.call(e,"callee")},eA=Array.isArray,eO=X||function(){return!1};function eR(e){if(!eD(e))return!1;var t=eE(e);return t==d||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eM(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eD(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ek(e){return null!=e&&"object"==typeof e}var eP=R?function(e){return R(e)}:function(e){return ek(e)&&eM(e.length)&&!!S[eE(e)]};function ez(e){return null!=e&&eM(e.length)&&!eR(e)?function(e){var t,n,r=eA(e),i=!r&&ej(e),o=!r&&!i&&eO(e),a=!r&&!i&&!o&&eP(e),s=r||i||o||a,l=s?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=l.length;for(var u in e){$.call(e,u)&&!(s&&("length"==u||o&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||(t=u,(n=(n=c)??0x1fffffffffffff)&&("number"==typeof t||w.test(t))&&t>-1&&t%1==0&&t<n)))&&l.push(u)}return l}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||z))return ee(e);var t,n,r=[];for(var i in Object(e))$.call(e,i)&&"constructor"!=i&&r.push(i);return r}(e)}e.exports=function(e,t){return function e(t,n,r,i,o){return t===n||(null!=t&&null!=n&&(ek(t)||ek(n))?function(e,t,n,r,i,o){var d=eA(e),g=eA(t),b=d?s:eI(e),x=g?s:eI(t);b=b==a?h:b,x=x==a?h:x;var w=b==h,S=x==h,C=b==x;if(C&&eO(e)){if(!eO(t))return!1;d=!0,w=!1}if(C&&!w)return o||(o=new ey),d||eP(e)?ex(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!o(new Y(e),new Y(t)));case l:case c:case p:return eN(+e,+t);case u:return e.name==t.name&&e.message==t.message;case m:case y:return e==t+"";case f:var s=M;case v:var d=1&r;if(s||(s=D),e.size!=t.size&&!d)break;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var g=ex(s(e),s(t),r,i,o,a);return a.delete(e),g;case"[object Symbol]":if(ep)return ep.call(e)==ep.call(t)}return!1}(e,t,b,n,r,i,o);if(!(1&n)){var T=w&&$.call(e,"__wrapped__"),I=S&&$.call(t,"__wrapped__");
108if(T||I){var L=T?e.value():e,N=I?t.value():t;return o||(o=new ey),i(L,N,n,r,o)}}return!!C&&(o||(o=new ey),function(e,t,n,r,i,o){var a=1&n,s=ew(e),l=s.length;if(l!=ew(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:$.call(t,u)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var f=!0;o.set(e,t),o.set(t,e);for(var p=a;++c<l;){var h=e[u=s[c]],g=t[u];if(r)var m=a?r(g,h,u,t,e,o):r(h,g,u,e,t,o);if(!(void 0===m?h===g||i(h,g,n,r,o):m)){f=!1;break}p||(p="constructor"==u)}if(f&&!p){var v=e.constructor,y=t.constructor;v!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y)&&(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,r,i,o))}(t,n,r,i,e,o):t!=t&&n!=n)}(e,t)}}($,$.exports)),(i=$.exports)&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default"))?i.default:i;var V=((t=V||{}).FIELD_ID="data-contentful-field-id",t.ENTRY_ID="data-contentful-entry-id",t.ASSET_ID="data-contentful-asset-id",t.LOCALE="data-contentful-locale",t.SPACE="data-contentful-space",t.ENVIRONMENT="data-contentful-environment",t),H=((n=H||{}).MOUSE_MOVE="MOUSE_MOVE",n.SCROLL_START="SCROLL_START",n.SCROLL_END="SCROLL_END",n.RESIZE_START="RESIZE_START",n.RESIZE_END="RESIZE_END",n.TAGGED_ELEMENTS="TAGGED_ELEMENTS",n.INSPECTOR_MODE_CHANGED="INSPECTOR_MODE_CHANGED",n),q={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},W={0:8203,1:8204,2:8205,3:65279},Y={0:String.fromCodePoint(W[0]),1:String.fromCodePoint(W[1]),2:String.fromCodePoint(W[2]),3:String.fromCodePoint(W[3])};[,,,,].fill(String.fromCodePoint(W[0])).join(""),Object.fromEntries(Object.entries(Y).map(e=>[e[1],+e[0]])),Object.fromEntries(Object.entries(q).map(e=>e.reverse()));var J=`${Object.values(q).map(e=>`\\u{${e.toString(16)}}`).join("")}`,K=RegExp(`[${J}]{4,}`,"gu");function Z(e,t){return e.href===t.href}function Q({root:e=window.document,options:t}){var n,r;let i,o=[...t.ignoreManuallyTaggedElements?[]:e.querySelectorAll(`[${V.ASSET_ID}][${V.FIELD_ID}], [${V.ENTRY_ID}][${V.FIELD_ID}]`)].map(e=>({element:e,attributes:function(e,t){if(!(e&&e.nodeType===Node.ELEMENT_NODE&&!(!e.hasAttribute(V.FIELD_ID)||!e.hasAttribute(V.ENTRY_ID)&&!e.hasAttribute(V.ASSET_ID))))return null;let n={fieldId:e.getAttribute(V.FIELD_ID),locale:e.getAttribute(V.LOCALE)??t.locale,environment:e.getAttribute(V.ENVIRONMENT)??t.environment,space:e.getAttribute(V.SPACE)??t.space,manuallyTagged:!0};if(!n.fieldId)return D.warn("Element is missing field ID attribute and cannot be tagged",{id:e.getAttribute(V.ENTRY_ID)??e.getAttribute(V.ASSET_ID),sharedProps:n}),null;let r=e.getAttribute(V.ENTRY_ID);if(r)return{...n,entryId:r};let i=e.getAttribute(V.ASSET_ID);return i?{...n,assetId:i}:null}(e,t)})).filter(({attributes:e})=>null!==e),a=[];for(let{node:t,text:r}of(n="body"in e?e.body:e,i=[],"function"==typeof n.matches&&n.matches("*")&&(i=[n]),[...i,...Array.from(n.querySelectorAll("*:not(script,style,meta,title)"))].map(e=>{var t;return{node:e,text:(t=e).matches("input[type=submit], input[type=button], input[type=reset]")?t.value:t.matches("img, video")?t.alt:Array.from(t.childNodes).filter(e=>e.nodeType===Node.TEXT_NODE&&!!e.textContent).map(e=>e.textContent).join("")}}).filter(({text:e})=>!!(e&&e.match(K))))){let e=function(e){let t=e.match(v);return t?function(e,t=!1){let n=Array.from(e);if(n.length%2==0){if(n.length%4||!e.startsWith(p))return function(e,t){var n;let r=[];for(let t=.5*e.length;t--;){let n=`${g[e[2*t].codePointAt(0)]}${g[e[2*t+1].codePointAt(0)]}`;r.unshift(String.fromCharCode(parseInt(n,16)))}let i=[],o=[r.join("")],a=10;for(;o.length;){let e=o.shift();try{if(i.push(JSON.parse(e)),t)break}catch(r){if(!a--)throw r;let t=+(null==(n=r.message.match(/\sposition\s(\d+)$/))?void 0:n[1]);if(!t)throw r;o.unshift(e.substring(0,t),e.substring(t))}}return i}(n,t)}else throw Error("Encoded data has invalid length");let r=n.slice(4),i=new Uint8Array(r.length/4);for(let e=0;e<i.length;e++)i[e]=h[r[4*e]]<<6|h[r[4*e+1]]<<4|h[r[4*e+2]]<<2|h[r[4*e+3]];let o=new TextDecoder().decode(i);if(t){let e=o.indexOf("\0");return -1===e&&(e=o.length),[JSON.parse(o.slice(0,e))]}
108return o.split("\0").filter(Boolean).map(e=>JSON.parse(e))}(t[0],!0)[0]:void 0}(r);if(!e||!e.origin.includes("contentful.com")){D.warn("Element has missing or invalid ContentSourceMap, please check if you have correctly enabled ContentSourceMaps and that the element's data originates from Contentful",{node:t,sourceMap:e});continue}if(!(function(e,t){for(let n of t)if(n.element===e||n.element.contains(e))return!0;return!1}(t,o)||a.some(n=>n.element.contains(t)&&Z(n.sourceMap,e)))){if(t.matches("img")){let n=t.closest("figure")||t.closest("picture")||t;a.push({element:n,sourceMap:e});continue}a.push({element:t,sourceMap:e})}}let s=a.filter((e,t)=>a.findIndex(t=>!(!Z(e.sourceMap,t.sourceMap)||e.element!==t.element))===t);for(let{element:e,sourceMap:t}of s){let n=null;if(t.href){let r=ee(t.href);if(!r)continue;if("Asset"===r.entityType)n={fieldId:r.fieldId,locale:r.locale,space:r.space,environment:r.environment,assetId:r.entityId};else if("Entry"===r.entityType)n={fieldId:r.fieldId,locale:r.locale,space:r.space,environment:r.environment,entryId:r.entityId};else{D.warn("Unknown entityType",{element:e,sourceMap:t});continue}}else{if(t.contentful&&(r=t.contentful)&&"string"==typeof r.entity&&"string"==typeof r.field&&"string"==typeof r.locale&&"string"==typeof r.space&&"string"==typeof r.environment&&("Asset"===r.entityType||"Entry"===r.entityType)){let r=t.contentful;if(!r.entity||!r.field||!r.locale||!r.space||!r.environment){D.warn("Element has missing information in their ContentSourceMap, please check if you have restricted the platform for the encoding. (Missing parameters in `contentful`)",{element:e,sourceMap:t});continue}let i={fieldId:r.field,locale:r.locale,space:r.space,environment:r.environment};if("Asset"===r.entityType)i.assetId=r.entity,n=i;else if("Entry"===r.entityType)i.entryId=r.entity,n=i;else{D.warn("Unknown entityType in contentful data",{element:e,sourceMap:t});continue}}else{D.warn("Element has neither href nor contentful data in their ContentSourceMap, unable to extract attributes.",{element:e,sourceMap:t});continue}}o.push({element:e,attributes:n})}let l=o.filter(({attributes:e})=>e?.manuallyTagged===!1||!e?.manuallyTagged).length;return{taggedElements:o,manuallyTaggedCount:o.length-l,automaticallyTaggedCount:l,autoTaggedElements:s}}function X({options:e}){return[...new Set(Q({options:e}).taggedElements.map(e=>e.attributes&&"entryId"in e.attributes?e.attributes.entryId:null).filter(Boolean))]}function ee(e){try{let t,n,r=new URL(e),i=r.searchParams.get("focusedField"),o=r.searchParams.get("focusedLocale"),a=r.pathname.split("/").filter(Boolean),s=a.indexOf("spaces"),l=a.indexOf("environments"),c=-1!==s?a[s+1]:void 0,u=-1!==l?a[l+1]:void 0,d=a.indexOf("entries"),f=a.indexOf("assets");return -1!==d?(t="Entry",n=a[d+1]):-1!==f&&(t="Asset",n=a[f+1]),t&&n?i?o?c&&u?{entityId:n,entityType:t,fieldId:i,locale:o,space:c,environment:u}:(console.warn("Missing space or environment in href path",{href:e}),null):(console.warn("Missing focusedLocale query parameter in href",{href:e}),null):(console.warn("Missing focusedField query parameter in href",{href:e}),null):(console.warn("Unable to determine entityType or entityId from href",{href:e}),null)}catch(t){return console.warn("Invalid href URL",{href:e,error:t}),null}}class et{constructor(e){this.options=e,this.intersectionObserver=new IntersectionObserver(e=>{let t=this.taggedElements;for(let n of e)if(n.isIntersecting)for(let e of t)e.element===n.target&&(e.coordinates=n.intersectionRect,e.isVisible=n.target.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}));this.taggedElements=t,this.sendTaggedElements()},{threshold:.15})}delay=300;isScrolling=!1;scrollTimeout;isResizing=!1;resizeTimeout;hoveredElement;taggedElements=[];manuallyTaggedCount=0;automaticallyTaggedCount=0;releaseId;intersectionObserver;observersCB=[];cleanupCB=[];init=()=>{this.cleanupCB=[this.addScrollListener(),this.addMutationListener(document.body),this.addResizeListener(),this.addHoverListener()],this.updateElements()};cleanup=()=>{this.observersCB.forEach(e=>
108e()),this.cleanupCB.forEach(e=>e())};receiveMessage=e=>{if(e.method===H.INSPECTOR_MODE_CHANGED){let{isInspectorActive:t,releaseId:n}=e;this.releaseId=n,t?this.init():this.cleanup()}};observe=e=>{this.intersectionObserver.observe(e);let t=this.addMutationListener(e);this.observersCB.push(t,()=>this.intersectionObserver.unobserve(e))};addScrollListener=()=>{let{targetOrigin:e}=this.options,t=()=>{this.isScrolling||(this.isScrolling=!0,B(H.SCROLL_START,{},e)),this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{this.isScrolling=!1,B(H.SCROLL_END,{},e),this.updateElements()},this.delay)},n={capture:!0,passive:!0};return window.addEventListener("scroll",t,n),()=>window.removeEventListener("scroll",t,n)};addMutationListener=e=>{let t=new MutationObserver(()=>{this.updateElements()});return t.observe(e,{characterData:!0,attributes:!0,attributeFilter:[V.ENTRY_ID,V.FIELD_ID,V.LOCALE,V.SPACE,V.ENVIRONMENT,"class","style"],childList:!0,subtree:!0}),()=>t.disconnect()};addResizeListener=()=>{let{targetOrigin:e}=this.options,t=new ResizeObserver(()=>{this.isResizing||(this.isResizing=!0,B(H.RESIZE_START,{},e)),this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.isResizing=!1,B(H.RESIZE_END,{},e),this.updateElements()},this.delay)});return t.observe(document.body),()=>t.disconnect()};addHoverListener=()=>{let e=U(e=>{let t;for(let n of e){let e=n;if("BODY"===e.nodeName)break;let r=this.taggedElements.find(t=>t.element===e);if(r){t=r;break}}this.hoveredElement=t?.element,this.updateElements()},this.delay),t=t=>{e(t.composedPath())};return window.addEventListener("mouseover",t,{passive:!0}),()=>window.removeEventListener("mouseover",t)};sendTaggedElements=()=>{B(H.TAGGED_ELEMENTS,{elements:this.taggedElements.map(e=>({coordinates:e.coordinates,isVisible:!!e.isVisible,attributes:e.attributes,isHovered:this.hoveredElement===e.element,isCoveredByOtherElement:!!e.isCoveredByOtherElement,snapshot:z.has(e.element.tagName.toUpperCase())?{[e.element.tagName.toLowerCase()]:Array.from(e.element.attributes).map(e=>`${e.name}="${e.value}"`).join(" ")}:{[e.element.tagName.toLowerCase()]:e.element.innerHTML}})),automaticallyTaggedCount:this.automaticallyTaggedCount,manuallyTaggedCount:this.manuallyTaggedCount,...void 0!==this.releaseId&&{releaseId:this.releaseId}},this.options.targetOrigin)};updateElements=()=>{let{taggedElements:e,manuallyTaggedCount:t,automaticallyTaggedCount:n}=Q({options:this.options}),r=((e,t=window.document)=>((e,t=window.document)=>e.map(e=>({...e,isVisible:e.element.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}),isCoveredByOtherElement:((e,t,n=window.document)=>{let{top:r,right:i,bottom:o,left:a}=t,s=n.elementFromPoint(a+1,r+1),l=n.elementFromPoint(i-1,r+1),c=n.elementFromPoint(a+1,o-1),u=n.elementFromPoint(i-1,o-1),d=t=>!!t&&(e===t||e.contains(t));return[d(s),d(l),d(c),d(u)].filter(Boolean).length<2})(e.element,e.coordinates,t)})))(e.map(({element:e,attributes:t})=>({element:e,coordinates:e.getBoundingClientRect(),attributes:t})),t))(e);G(r,this.taggedElements)||(this.observersCB.forEach(e=>e()),this.observersCB=[],this.taggedElements=r,e.forEach(({element:e})=>this.observe(e)),this.manuallyTaggedCount=t,this.automaticallyTaggedCount=n)}}let{stringify:en}=JSON,er=String,ei=(e,t)=>t,eo=(e,t,n)=>{let r=er(t.push(n)-1);return e.set(n,r),r};var ea=((r=ea||{}).CONNECTED="CONNECTED",r.DISCONNECTED="DISCONNECTED",r.ERROR="ERROR",r.TAGGED_FIELD_CLICKED="TAGGED_FIELD_CLICKED",r.URL_CHANGED="URL_CHANGED",r.SUBSCRIBED="SUBSCRIBED",r.UNSUBSCRIBED="UNSUBSCRIBED",r.ENTRY_UPDATED="ENTRY_UPDATED",r.ENTRY_SAVED="ENTRY_SAVED",r.DEBUG_MODE_ENABLED="DEBUG_MODE_ENABLED",r);function es(e,t){B("TAGGED_FIELD_CLICKED",{action:"TAGGED_FIELD_CLICKED",...e},t)}function el(e,t){B("TAGGED_FIELD_CLICKED",{action:"TAGGED_FIELD_CLICKED",...e},t)}class ec{subscriptions=new Map;defaultLocale;sendMessage;constructor({locale:e,targetOrigin:t}){this.defaultLocale=e,this.sendMessage=(e,n)=>B(e,n,t)}async receiveMessage(e){if(e.method===ea.ENTRY_UPDATED){let{data:t,subscriptionId:n}=e,r=this.subscriptions.get(n);r?(r.callback(t),r.data=t,this.subscriptions.set(n,r)):D.error("Received an update for an unknown subscription",{subscriptionId:n,data:t,subscriptions:this.subscriptions})}}subscribe(e){let t=`${performance.now()}-${Math.random().toString(36).slice(2)}`,n=e.locale??this.defaultLocale;this.subscriptions.set(t,{...e});let r={locale:n,event:"edit",id:t,config:((e,t,n)=>{let r=new Map,i=[],o=[],a=+eo(r,i,ei.call({"":e},"",e)),s=!a;for(;a<i.length;)s=!0,o[a]=en(i[a++],l,n);return"["+o.join(",")+"]";function l(e,t){if(s)return s=!s,t;let n=ei.call(this,e,t);switch(typeof n){case"object":if(null===n)break;case"string":return r.get(n)||eo(r,i,n)}return n}})(e)};return this.sendMessage(ea.SUBSCRIBED,r),()=>{this.sendMessage(ea.UNSUBSCRIBED,r),this.subscriptions.delete(t)}}}class eu{locale;options;inspectorModeEnabled;subscription;constructor({locale:e,options:t,inspectorModeEnabled:n}){this.locale=e,this.options=t,this.inspectorModeEnabled=n}subscribe(e){return this.subscription&&D.log("There is already a subscription for the save event, the existing one will be replaced."),this.subscription=e,()=>{this.subscription=void 0}}receiveMessage(e){if(e.method===ea.ENTRY_SAVED&&this.subscription){let{entity:t}=e;this.inspectorModeEnabled?X({options:this.options}).includes(t.sys.id)&&this.subscription(t):this.subscription(t)}}}let ed=["https://app.contentful.com","https://app.eu.contentful.com","http://localhost:3001"];class ef{static initialized=!1;static inspectorMode=null;static liveUpdates=null;static saveEvent=null;static inspectorModeEnabled=!0;static liveUpdatesEnabled=!0;static locale;static space;static environment;static sendMessage;static targetOrigin;static init(e){if("object"!=typeof e||!e?.locale)throw Error("Init function has to be called with a locale configuration (for example: `ContentfulLivePreview.init({ locale: 'en-US'})`)");let{debugMode:t,enableInspectorMode:n,enableLiveUpdates:r,locale:i,environment:o,space:a,targetOrigin:s}=e;if("u">typeof window){if(!function(){try{return window.top?.location.href!==window.location.href}catch{return!0}}())return this.liveUpdatesEnabled=!1,Promise.resolve(null);if(t&&(R=t),"boolean"==typeof n&&(this.inspectorModeEnabled=n),"boolean"==typeof r&&(this.liveUpdatesEnabled=r),this.locale=i,this.space=a,this.environment=o,this.initTargetOrigin(s),this.initialized)return D.log("You have already initialized the Live Preview SDK."),Promise.resolve(ef.inspectorMode);this.inspectorModeEnabled&&(this.inspectorMode=new et({locale:i,space:a,environment:o,targetOrigin:this.targetOrigin,ignoreManuallyTaggedElements:e.experimental?.ignoreManuallyTaggedElements})),this.liveUpdatesEnabled&&(this.liveUpdates=new ec({locale:i,targetOrigin:this.targetOrigin}
108),this.saveEvent=new eu({locale:i,options:{locale:this.locale,space:this.space,environment:this.environment,targetOrigin:this.targetOrigin},inspectorModeEnabled:this.inspectorModeEnabled})),window.addEventListener("message",e=>{if("object"==typeof e.data&&e.data&&"source"in e.data&&e.data.source===k){if(D.log("Received message",e.data),e.data.method===ea.DEBUG_MODE_ENABLED)return void(R=!0);this.inspectorModeEnabled&&this.inspectorMode?.receiveMessage(e.data),this.liveUpdatesEnabled&&(this.liveUpdates?.receiveMessage(e.data),this.saveEvent?.receiveMessage(e.data))}}),function(e,t=500){let n=window.location.href,r=setInterval(()=>{let t=window.location.href;t!==n&&(n=t,e(t))},t)}(()=>{B(ea.URL_CHANGED,{action:ea.URL_CHANGED,taggedElementCount:document.querySelectorAll(`[${V.ENTRY_ID}]`).length},this.targetOrigin)});let{taggedElements:l,manuallyTaggedCount:c,automaticallyTaggedCount:u}=this.inspectorModeEnabled?Q({options:{locale:this.locale,space:this.space,environment:this.environment}}):{taggedElements:[],manuallyTaggedCount:0,automaticallyTaggedCount:0},d=l.length;return B(ea.CONNECTED,{action:ea.CONNECTED,connected:!0,tags:d,taggedElementCount:d,locale:this.locale,isInspectorEnabled:this.inspectorModeEnabled,isLiveUpdatesEnabled:this.liveUpdatesEnabled,manuallyTaggedElementCount:c,automaticallyTaggedElementCount:u,hideCoveredElementOutlines:e.experimental?.hideCoveredElementOutlines,version:O},this.targetOrigin),this.initialized=!0,Promise.resolve(ef.inspectorMode)}}static initTargetOrigin(e){if(e)this.targetOrigin=Array.isArray(e)?e:[e];else{let e=window.location.ancestorOrigins,t=e?ed.find(t=>e.contains(t)):ed.find(e=>document.referrer.includes(e));if(!t)throw Error("The current origin is not supported. Please provide a targetOrigin in the live preview configuration.");this.targetOrigin=[t]}}static subscribe(e,t){if(!this.liveUpdatesEnabled)return()=>{};let n="string"==typeof e?e:"edit",r="object"==typeof e?e:t;if("save"===n){if(!this.saveEvent)throw Error("Save event is not initialized, please call `ContentfulLivePreview.init()` first.");return this.saveEvent.subscribe(r.callback)}if(!this.liveUpdates)throw Error("Live updates are not initialized, please call `ContentfulLivePreview.init()` first.");return this.liveUpdates.subscribe(r)}static getProps(e){let{fieldId:t,locale:n,environment:r,space:i}=e;if(!this.inspectorModeEnabled)return null;if(t){let o={...n?{[V.LOCALE]:n}:{},...r?{[V.ENVIRONMENT]:r}:{},...i?{[V.SPACE]:i}:{},[V.FIELD_ID]:t};if(n&&(o[V.LOCALE]=n),void 0!==e.assetId)return{...o,[V.ASSET_ID]:e.assetId};if(void 0!==e.entryId)return{...o,[V.ENTRY_ID]:e.entryId}}return D.warn("Missing property for inspector mode",{...e}),null}static toggleInspectorMode(){return this.inspectorModeEnabled=!this.inspectorModeEnabled,this.inspectorModeEnabled}static toggleLiveUpdatesMode(){return this.liveUpdatesEnabled=!this.liveUpdatesEnabled,this.liveUpdatesEnabled}static openEntryInEditor(e){let t={locale:this.locale,environment:this.environment,space:this.space};void 0!==e.assetId&&e.fieldId?el({...t,...e},this.targetOrigin):void 0!==e.entryId&&e.fieldId?es({...t,...e},this.targetOrigin):D.error("Please provide field id and entry/asset id to openEntryInEditor.",{...e})}static getEntryList(){return X({options:{locale:this.locale,space:this.space,environment:this.environment}})}}e.s(["C",0,ef,"I",0,H,"L",0,k,"V",0,O,"a",0,P,"b",0,ea,"c",0,el,"d",0,U,"h",0,(e,t,n)=>{if(!e||!e.extensions||!e.extensions.contentSourceMaps)return console.error("GraphQL response does not contain Content Source Maps information.",e),e;let r=L(e),{spaces:i,environments:o,editorInterfaces:a,fields:s,locales:l,entries:c,assets:u,mappings:d,fieldTypes:f}=r.extensions.contentSourceMaps;for(let e in d){let{source:p}=d[e],h="entry"in p?c[p.entry]:u[p.asset],g="entry"in p?"Entry":"Asset";if(!h)break;let m=i[h.space],v=o[h.environment],y=h.id,E=s[p.field],S=l[p.locale],C=a[p.editorInterface],T=f[p.fieldType];if(!(x(C.widgetNamespace)&&!w(C.widgetId))&&b.has(r,e)){let i=b.get(r,e);if(null!==i){let o=_({entityId:y,entityType:g,space:m,environment:v,field:E,locale:S,editorInterface:C,fieldType:T,targetOrigin:t,platform:n});j(T,i,o,r,e,d)}}}return r},"i",0,G,"m",0,(e,t,n)=>{var r;let i=L(e);if(i.sys&&"items"in i){if(!(null!=(r=i.sys)&&r.contentSourceMapsLookup))return i;let{contentSourceMapsLookup:{fieldTypes:e,editorInterfaces:o}}=i.sys,{items:a,includes:s}=i;a.forEach(r=>
108A(r,e,o,t,n)),s&&s.Entry&&s.Entry.forEach(r=>A(r,e,o,t,n)),s&&s.Asset&&s.Asset.forEach(r=>A(r,e,o,t,n))}else{if(!i.sys.contentSourceMapsLookup)return console.error("Content source maps lookup data is missing"),i;A(i,i.sys.contentSourceMapsLookup.fieldTypes,i.sys.contentSourceMapsLookup.editorInterfaces,t,n)}return i},"o",0,es,"p",0,ee,"y",0,function(e){var t;return{cleaned:e.replace(v,""),encoded:(null==(t=e.match(v))?void 0:t[0])||""}}])},94724,e=>{"use strict";e.i(772385),e.s([])},266189,382543,e=>{"use strict";var t=e.i(843476);e.s(["SearchIcon",0,function({className:e}){return(0,t.jsx)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 2.00024C6.02944 2.00024 2 6.02968 2 11.0002C2 15.9708 6.02944 20.0002 11 20.0002C13.125 20.0002 15.078 19.2638 16.6177 18.0321L20.2929 21.7074C20.6834 22.0979 21.3166 22.0979 21.7071 21.7074C22.0976 21.3168 22.0976 20.6837 21.7071 20.2931L18.0319 16.6179C19.2635 15.0783 20 13.1253 20 11.0002C20 6.02968 15.9706 2.00024 11 2.00024ZM4 11.0002C4 7.13425 7.13401 4.00024 11 4.00024C14.866 4.00024 18 7.13425 18 11.0002C18 14.8662 14.866 18.0002 11 18.0002C7.13401 18.0002 4 14.8662 4 11.0002Z",fill:"currentColor"})})}],266189),e.s(["toRelativeUrl",0,function(e){return!e||location.hostname.startsWith("www.")||!e.startsWith("http")?e:new URL(e).pathname}],382543)},971615,e=>{"use strict";var t=e.i(843476),n=e.i(271645);let r=(0,n.createContext)({floatingDown:!0,appearOnHover:!0});e.s(["FloatingContext",0,r,"FloatingProvider",0,({floating:e,appearOnHover:i,children:o})=>{let[a,s]=(0,n.useState)(!0),[l,c]=(0,n.useState)(0);return(0,n.useEffect)(()=>{if(!e)return()=>{};let t=()=>{let t=window.scrollY;e&&(t>78&&t>l?s(!1):s(!0)),c(t)};return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}},[l]),(0,n.useEffect)(()=>{if(!e||!i)return()=>{};let t=e=>{e.clientY<78&&!a&&s(!0)};return window.addEventListener("mousemove",t),()=>{window.removeEventListener("mousemove",t)}},[a]),(0,t.jsx)(r.Provider,{value:{floatingDown:a,appearOnHover:i},children:o})}])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.