PageSourceSearch

https://www.equipementsmaniwaki.com/_next/static/chunks/9876b8c8c71b5f35.js

js equipementsmaniwaki.com collected 2026-10-07 03:04:35 UTC 69,283 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,27721,50347,e=>{"use strict";e.s(["default",()=>p],27721);var t=e.i(43476),n=e.i(97330),l=e.i(29894),r=e.i(47521),o=e.i(71645),i=e.i(40888);e.s(["default",()=>d],50347);var a=e.i(96838),s=e.i(21417),c=e.i(54056),u=e.i(7670);let d=(0,o.forwardRef)(function(e,l){let[r,i]=(0,o.useState)(!1),[d,f]=(0,o.useState)({}),m=e.texts;(0,o.useImperativeHandle)(l,()=>({openProductDetail(e){i(!0),f(e)}}));let p=()=>{i(!1)};return(0,t.jsx)(c.Transition,{show:r,children:(0,t.jsxs)("div",{className:"relative z-[9999999999]",children:[(0,t.jsx)(c.TransitionChild,{children:(0,t.jsx)("div",{className:"data-closed:opacity-0 fixed inset-0 z-40 bg-black opacity-60 transition-opacity duration-300"})}),(0,t.jsx)(c.TransitionChild,{as:"div",enter:"transition duration-500 ease-in-out transform",enterFrom:"md:translate-x-full max-md:translate-y-full",enterTo:"md:translate-x-0 max-md:translate-y-0",leave:"transition duration-500 ease-in-out transform",leaveFrom:"md:translate-x-0 max-md:translate-y-0",leaveTo:"md:translate-x-full max-md:translate-y-full",className:"fixed inset-0 z-50 flex w-full items-center justify-end",children:(0,t.jsxs)("div",{className:(0,u.default)("relative h-dvh w-full overflow-y-auto bg-white max-md:rounded-t-xl md:max-w-lg md:rounded-l-xl","".concat(e.brandCode,"-product-detail")),children:[(0,t.jsx)("div",{className:"z-10 h-12 w-full",children:(0,t.jsx)("button",{onClick:p,className:"absolute right-4 top-4 text-black","data-tagging-smartsite":"hotspot-card-close","data-tagging-value":JSON.stringify({title:d.title,type:e.hotspotType,section:e.hotspotSection}),children:(0,t.jsx)(a.default,{icon:s.faCircleXmark,className:"text-2xl"})})}),(0,t.jsx)("div",{className:"z-20 p-4",children:(0,t.jsxs)("div",{className:"flex flex-col items-start gap-4",children:[(0,t.jsx)("div",{className:"flex w-full flex-col items-center justify-center",children:d.pg_image&&(0,t.jsx)(n.PgImage,{image:d.pg_image,width:300,height:300})}),(0,t.jsx)("div",{className:"text-4xl font-bold",children:d.title}),d.sku&&(0,t.jsxs)("div",{className:"text-sm text-gray-500",children:["SKU ",d.sku]}),(0,t.jsx)("div",{className:"",dangerouslySetInnerHTML:{__html:d.content_html}}),(0,t.jsx)("a",{href:"#getdirections",className:"btn-contact w-full",onClick:p,"data-tagging-smartsite":"hotspot-card-contact","data-tagging-value":d.title,children:m.product_detail_contact_button})]})})]})})]})})}),f=i.default.default?i.default.default:i.default,m={desktop:{breakpoint:{max:9999,min:l.DESKTOP_BREAKPOINT},slidesToSlide:4,items:4},tablet:{breakpoint:{max:l.DESKTOP_BREAKPOINT-1,min:l.TABLET_BREAKPOINT},slidesToSlide:3,items:3},tabletSm:{breakpoint:{max:l.TABLET_BREAKPOINT-1,min:l.MOBILE_BREAKPOINT},slidesToSlide:2,items:2},mobile:{breakpoint:{max:l.MOBILE_BREAKPOINT-1,min:0},slidesToSlide:1,items:1}};function p(e){let{accessories:l=[],brandCode:i="",hotspotType:a="",hotspotSection:s="",texts:c={}}=e,u=(0,o.useRef)(null),p=(0,o.useRef)(null);return(0,o.useEffect)(()=>{var e;let t=null==(e=p.current)?void 0:e.querySelector(".react-multi-carousel-list");(0,r.attachHorizontalSwipeHandler)(t)},[]),(0,t.jsxs)("div",{className:"relative flex w-full flex-col items-start gap-8",ref:p,children:[(0,t.jsx)("h3",{className:"text-3xl font-bold uppercase lg:text-4xl",children:c.best_sellers_section_title}),(0,t.jsx)(f,{responsive:m,ssr:!0,deviceType:"desktop",draggable:!1,arrows:!1,showDots:!0,renderDotsOutside:!1,dotListClass:"items-center",containerClass:"pb-14 w-full",itemClass:"flex flex-row items-center justify-center",children:l.map((e,l)=>(0,t.jsxs)("button",{className:"mx-4 flex flex-col items-start gap-2",onClick:()=>{u.current.openProductDetail(e)},"data-tagging-smartsite":"hotspot-card-open","data-tagging-value":JSON.stringify({title:e.title,type:a,section:s}),children:[(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center bg-neutral-200 p-2",children:[e.pg_image&&(0,t.jsx)(n.PgImage,{image:e.pg_image,width:290,height:290}),(0,t.jsx)("div",{className:"flex h-12 w-full items-center justify-end p-2",children:(0,t.jsx)("div",{className:"relative size-8 rounded-full bg-black text-white",children:(0,t.jsx)("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",children:"+"})})})]}),(0,t.jsx)("div",{className:"font-bold text-black",children:e.title})]},l))}),(0,t.jsx)(d,{ref:u,brandCode:i,texts:c,hotspotType:a,hotspotSection:s})]})}},61121,e=>{"use strict";e.s(["default",()=>f]);var t=e.i(43476),n=e.i(96838),l=e.i(69594),r=e.i(47650),o=e.i(97330),i=e.i(10615),a=e.i(3044),s=e.i(21417),c=e.i(54056),u=e.i(7670),d=e.i(71645);let f=(0,d.forwardRef)(function(e,f){let[m,p]=(0,d.useState)(!1),[g,h]=(0,d.useState)({}),x=e.texts,v=[{name:"brp_commercial_communications_consent",label:x.lead_form_consent_1},{name:"brp_marketing_consent",label:x.lead_form_consent_2}];(0,d.useImperativeHandle)(f,()=>({openLeadForm(t){p(!0),h((0,a.getBRPSmartsiteLeadData)(t,e.locale))}}));let b=[{name:"full_name",autoComplete:"name",label:x.lead_form_full_name_label,type:"text",required:!0},{name:"email",autoComplete:"email",label:x.lead_form_email_label,type:"email",required:!0},{name:"phone",autoComplete:"tel",label:x.lead_form_phone_label,type:"text",required:!1},{name:"message",autoComplete:"off",label:x.lead_form_message_label,type:"textarea",required:!1}];return(0,t.jsx)(c.Transition,{show:m,children:(0,t.jsxs)("div",{className:"relative z-[9999999999]",children:[(0,t.jsx)(c.TransitionChild,{children:(0,t.jsx)("div",{className:"data-closed:opacity-0 fixed inset-0 z-40 bg-black opacity-60 transition-opacity duration-300"})}),(0,t.jsx)(c.TransitionChild,{as:"div",enter:"transition duration-500 ease-in-out transform",enterFrom:"md:translate-x-full max-md:translate-y-full",enterTo:"md:translate-x-0 max-md:translate-y-0",leave:"transition duration-500 ease-in-out transform",leaveFrom:"md:translate-x-0 max-md:translate-y-0",leaveTo:"md:translate-x-full max-md:translate-y-full",className:"fixed inset-0 z-50 flex w-full items-center justify-end",children:(0,t.jsxs)("div",{className:(0,u.default)("relative h-dvh max-w-full overflow-y-auto bg-white max-md:rounded-t-xl md:max-w-lg md:rounded-l-xl","".concat(e.brandConfig.code,"-lead-form")),children:[(0,t.jsxs)("div",{className:"absolute z-10 h-[190px] w-full md:h-[250px]",children:[(0,t.jsx)(o.PgImage,{image:e.brandConfig.pg_lead_image,alt:"Lead image",layout:"fullWidth"}),(0,t.jsx)("button",{onClick:()=>{p(!1),h({})},className:"absolute right-4 top-4 text-white",children:(0,t.jsx)(n.default,{icon:s.faCircleXmark,className:"text-2xl"})})]}),(0,t.jsx)("div",{className:"z-20 mt-[130px] p-4 md:mt-[190px]",children:(0,t.jsx)(r.default,{leadData:g,tenantId:e.tenantId,recaptchaSiteKey:e.recaptchaSiteKey,locale:e.locale,consents:v,title:x.lead_form_title,subtitle:"",submitButtonText:x.lead_form_submit_button,leadType:g.lead_type,texts:x,onSuccess:e=>{(0,i.dispatchCustomEvent)("pgo-smartsite-event-form-submit",{formId:"promotion"===g.lead_type?"get-offer":"reserve-unit",vehicleModel:g.vehicle_model||null,vehicleCondition:g.vehicle_status||null})},children:(0,t.jsx)("div",{className:"grid gap-2",children:b&&b.map(e=>(0,t.jsx)("div",{className:"col-span-6",children:(0,t.jsx)(l.default,{...e})},e.name))})})})]})})]})})})},38726,e=>{"use strict";e.s(["default",()=>l]);var t=e.i(43476),n=e.i(7670);function l(e){let{categories:l=[],selectedCategoryIdx:r=0,onSelect:o=()=>{},taggingKey:i="lineup-category"}=e;return(0,t.jsx)("nav",{className:"flex rounded-full bg-neutral-200 p-1 text-black md:min-w-96",children:l.map((e,l)=>(0,t.jsx)("button",{onClick:()=>o(l),className:(0,n.default)("flex-1 whitespace-nowrap break-keep rounded-full px-4 py-2",l===r&&"bg-black text-white"),"data-tagging-smartsite":i,"data-tagging-value":e.name,children:e.name},"category-".concat(l)))})}},54416,e=>{"use strict";e.s(["default",()=>s]);
1var t=e.i(43476),n=e.i(61121),l=e.i(38726),r=e.i(97330),o=e.i(14049),i=e.i(98473),a=e.i(71645);function s(e){let{brandConfig:s,globalConfig:c,globalLocale:u,texts:d}=e,f=s.agri_comm_programs[0],m=(0,a.useRef)(null),[p,g]=(0,a.useState)(0),h=f.offers[p],x=f.offers.map(e=>({name:e.title}));return(0,t.jsxs)("section",{id:"commercial-program",className:"commercial-program",children:[(0,t.jsxs)("div",{className:"container flex flex-col items-start gap-8 py-10",children:[(0,t.jsxs)("div",{className:"flex w-full flex-wrap items-start justify-between gap-4",children:[(0,t.jsx)("h2",{className:"commercial-program-title w-fit shrink-0 text-4xl font-bold text-black lg:text-5xl",children:f.title}),f.pg_logo&&(0,t.jsx)(r.PgImage,{image:f.pg_logo,width:220,height:80,className:"shrink-0"})]}),(0,t.jsx)("div",{className:"text-black",children:(0,t.jsx)(i.default,{html:f.description})}),f.offers.length>1&&(0,t.jsx)(l.default,{categories:x,selectedCategoryIdx:p,onSelect:g}),(0,t.jsxs)("div",{className:"flex w-full flex-col gap-8 bg-white p-4 lg:flex-row lg:items-center lg:p-8",children:[(0,t.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-4",children:[(0,t.jsx)("h3",{className:"text-3xl font-bold uppercase lg:text-4xl",children:h.title}),(0,t.jsx)("div",{className:"text-black",children:(0,t.jsx)(i.default,{html:h.description})}),(0,t.jsx)("button",{onClick:()=>{m.current.openLeadForm({promo:!0,brand:s.code})},className:"btn-primary lg:w-fit",children:h.call_to_action_label})]}),h.pg_image&&(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(r.PgImage,{image:h.pg_image,width:688,height:400})})]}),(0,t.jsx)("h3",{className:"text-3xl font-bold uppercase lg:text-4xl",children:f.eligible_models_title}),(0,t.jsx)("div",{className:"grid w-full grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",children:f.eligible_models.map((e,n)=>(0,t.jsxs)(o.default,{href:e.image_link_url,className:"relative",children:[e.pg_image&&(0,t.jsx)(r.PgImage,{image:e.pg_image,width:400,height:300,className:"w-full"}),(0,t.jsx)("h3",{className:"absolute inset-x-2 top-2 text-lg font-bold uppercase text-white drop-shadow lg:text-xl",children:e.title})]},"eligible-model-".concat(n)))})]}),(0,t.jsx)(n.default,{ref:m,locale:u,texts:d,brandConfig:s,recaptchaSiteKey:c.recaptcha_v2_site_key,tenantId:c.tenant_id})]})}},80211,e=>{"use strict";e.s(["default",()=>tH],80211);var t=e.i(43476),n=e.i(61121),l=e.i(38726),r=e.i(34359);function o(e){let{model:n}=e;return(0,t.jsxs)("div",{className:"lineup-model flex flex-col gap-5",children:[(0,t.jsx)("h3",{className:"text-3xl font-bold uppercase lg:text-4xl",children:n.name}),(0,t.jsx)("p",{className:"text-sm lg:text-base",dangerouslySetInnerHTML:{__html:n.description}}),(0,t.jsx)("div",{className:"gallery hidden lg:block",children:(0,t.jsx)(r.default,{galleryImages:n.pg_gallery},n.name)})]})}var i=e.i(97330),a=e.i(10615),s=e.i(14049);function c(e){let{vehicle:n,openLeadForm:l,texts:r={}}=e;return(0,t.jsxs)("div",{className:"lineup-inventory-vehicle flex flex-col items-start gap-4 bg-neutral-200 p-5 max-md:max-w-[400px] md:flex-row md:items-center",children:[(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(i.PgImage,{image:n.pg_image,width:400,height:300})}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-2 text-base",children:[(0,t.jsx)("h3",{className:"font-bold",children:(0,a.interpolateString)(r.lineup_model_title,{year:n.year,model:n.label})}),(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsx)("div",{children:n.condition}),n.color&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"mx-1",children:"-"}),(0,t.jsx)("div",{children:n.color})]})]}),n.availability&&(0,t.jsxs)("div",{className:"font-bold text-green-700",children:["● ",n.availability]}),n.sale_price&&(0,t.jsx)("div",{className:"sale-price","aria-label":"Sale price",children:n.sale_price})]}),(0,t.jsxs)("div",{className:"flex w-full flex-1 flex-col items-center gap-2",children:[(0,t.jsx)(s.default,{href:n.url,forceFullNavigation:!0,className:"btn-details w-full","data-tagging-smartsite":"model-details","data-tagging-value":n.label,children:r.lineup_details_button}),(0,t.jsx)("button",{onClick:()=>l({vehicle:n}),className:"btn-reserve w-full","data-tagging-smartsite":"model-contact","data-tagging-value":n.label,children:r.lineup_reserve_button})]})]})}var u=e.i(96838),d=e.i(47521),f=e.i(21417),m=e.i(29427),p=e.i(71330),g=e.i(71645),h=e.i(94487),x=e.i(44508),v=e.i(35696);function b(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}var y=e.i(14189),w=e.i(93456),j=e.i(41444),S=e.i(77891),_=e.i(52744),N=e.i(5083),C=e.i(44279),P=e.i(85935),E=e.i(1852),T=e.i(55743),R=e.i(94316),k=e.i(61130),I=e.i(83733),F=e.i(74175);let O=Math.min,M=Math.max,D=Math.round,L=Math.floor,A=e=>({x:e,y:e}
1),B={left:"right",right:"left",bottom:"top",top:"bottom"},H={start:"end",end:"start"};function K(e,t){return"function"==typeof e?e(t):e}function z(e){return e.split("-")[0]}function W(e){return e.split("-")[1]}function V(e){return"x"===e?"y":"x"}function q(e){return"y"===e?"height":"width"}function G(e){return["top","bottom"].includes(z(e))?"y":"x"}function U(e){return e.replace(/start|end/g,e=>H[e])}function J(e){return e.replace(/left|right|bottom|top/g,e=>B[e])}function X(e){let{x:t,y:n,width:l,height:r}=e;return{width:l,height:r,top:n,left:t,right:t+l,bottom:n+r,x:t,y:n}}function Y(e,t,n){let l,{reference:r,floating:o}=e,i=G(t),a=V(G(t)),s=q(a),c=z(t),u="y"===i,d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,m=r[s]/2-o[s]/2;switch(c){case"top":l={x:d,y:r.y-o.height};break;case"bottom":l={x:d,y:r.y+r.height};break;case"right":l={x:r.x+r.width,y:f};break;case"left":l={x:r.x-o.width,y:f};break;default:l={x:r.x,y:r.y}}switch(W(t)){case"start":l[a]-=m*(n&&u?-1:1);break;case"end":l[a]+=m*(n&&u?-1:1)}return l}let $=async(e,t,n)=>{let{placement:l="bottom",strategy:r="absolute",middleware:o=[],platform:i}=n,a=o.filter(Boolean),s=await (null==i.isRTL?void 0:i.isRTL(t)),c=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=Y(c,l,s),f=l,m={},p=0;for(let n=0;n<a.length;n++){let{name:o,fn:g}=a[n],{x:h,y:x,data:v,reset:b}=await g({x:u,y:d,initialPlacement:l,placement:f,strategy:r,middlewareData:m,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=h?h:u,d=null!=x?x:d,m={...m,[o]:{...m[o],...v}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:u,y:d}=Y(c,f,s)),n=-1)}return{x:u,y:d,placement:f,strategy:r,middlewareData:m}};async function Q(e,t){var n,l;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:p=0}=K(t,e),g="number"!=typeof(l=p)?{top:0,right:0,bottom:0,left:0,...l}:{top:l,right:l,bottom:l,left:l},h=s[m?"floating"===f?"reference":"floating":f],x=X(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:c})),v="floating"===f?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await (null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await (null==i.isElement?void 0:i.isElement(b))&&await (null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=X(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:c}):v);return{top:(x.top-w.top+g.top)/y.y,bottom:(w.bottom-x.bottom+g.bottom)/y.y,left:(x.left-w.left+g.left)/y.x,right:(w.right-x.right+g.right)/y.x}}async function Z(e,t){let{placement:n,platform:l,elements:r}=e,o=await (null==l.isRTL?void 0:l.isRTL(r.floating)),i=z(n),a=W(n),s="y"===G(n),c=["left","top"].includes(i)?-1:1,u=o&&s?-1:1,d=K(t,e),{mainAxis:f,crossAxis:m,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof p&&(m="end"===a?-1*p:p),s?{x:m*u,y:f*c}:{x:f*c,y:m*u}}function ee(){return"undefined"!=typeof window}function et(e){return er(e)?(e.nodeName||"").toLowerCase():"#document"}function en(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function el(e){var t;return null==(t=(er(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function er(e){return!!ee()&&(e instanceof Node||e instanceof en(e).Node)}function eo(e){return!!ee()&&(e instanceof Element||e instanceof en(e).Element)}function ei(e){return!!ee()&&(e instanceof HTMLElement||e instanceof en(e).HTMLElement)}function ea(e){return!!ee()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof en(e).ShadowRoot)}function es(e){let{overflow:t,overflowX:n,overflowY:l,display:r}=em(e);return/auto|scroll|overlay|hidden|clip/.test(t+l+n)&&!["inline","contents"].includes(r)}function ec(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function eu(e){let t=ed(),n=eo(e)?em(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function ed(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function ef(e){return["html","body","#document"].includes(et(e))}function em(e){return en(e).getComputedStyle(e)}function ep(e){return eo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eg(e){if("html"===et(e))return e;let t=e.assignedSlot||e.parentNode||ea(e)&&e.host||el(e);return ea(t)?t.host:t}function eh(e,t,n){var l;void 0===t&&(t=[]),void 0===n&&(n=!0);let r=function e(t){let n=eg(t);return ef(n)?t.ownerDocument?t.ownerDocument.body:t.body:ei(n)&&es(n)?n:e(n)}(e),o=r===(null==(l=e.ownerDocument)?void 0:l.body),i=en(r);if(o){let e=ex(i);
1return t.concat(i,i.visualViewport||[],es(r)?r:[],e&&n?eh(e):[])}return t.concat(r,eh(r,[],n))}function ex(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ev(e){let t=em(e),n=parseFloat(t.width)||0,l=parseFloat(t.height)||0,r=ei(e),o=r?e.offsetWidth:n,i=r?e.offsetHeight:l,a=D(n)!==o||D(l)!==i;return a&&(n=o,l=i),{width:n,height:l,$:a}}function eb(e){return eo(e)?e:e.contextElement}function ey(e){let t=eb(e);if(!ei(t))return A(1);let n=t.getBoundingClientRect(),{width:l,height:r,$:o}=ev(t),i=(o?D(n.width):n.width)/l,a=(o?D(n.height):n.height)/r;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}let ew=A(0);function ej(e){let t=en(e);return ed()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ew}function eS(e,t,n,l){var r;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),i=eb(e),a=A(1);t&&(l?eo(l)&&(a=ey(l)):a=ey(e));let s=(void 0===(r=n)&&(r=!1),l&&(!r||l===en(i))&&r)?ej(i):A(0),c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(i){let e=en(i),t=l&&eo(l)?en(l):l,n=e,r=ex(n);for(;r&&l&&t!==n;){let e=ey(r),t=r.getBoundingClientRect(),l=em(r),o=t.left+(r.clientLeft+parseFloat(l.paddingLeft))*e.x,i=t.top+(r.clientTop+parseFloat(l.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,f*=e.y,c+=o,u+=i,r=ex(n=en(r))}}return X({width:d,height:f,x:c,y:u})}function e_(e,t){let n=ep(e).scrollLeft;return t?t.left+n:eS(el(e)).left+n}function eN(e,t,n){void 0===n&&(n=!1);let l=e.getBoundingClientRect();return{x:l.left+t.scrollLeft-(n?0:e_(e,l)),y:l.top+t.scrollTop}}function eC(e,t,n){let l;if("viewport"===t)l=function(e,t){let n=en(e),l=el(e),r=n.visualViewport,o=l.clientWidth,i=l.clientHeight,a=0,s=0;if(r){o=r.width,i=r.height;let e=ed();(!e||e&&"fixed"===t)&&(a=r.offsetLeft,s=r.offsetTop)}return{width:o,height:i,x:a,y:s}}(e,n);else if("document"===t)l=function(e){let t=el(e),n=ep(e),l=e.ownerDocument.body,r=M(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),o=M(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight),i=-n.scrollLeft+e_(e),a=-n.scrollTop;return"rtl"===em(l).direction&&(i+=M(t.clientWidth,l.clientWidth)-r),{width:r,height:o,x:i,y:a}}(el(e));else if(eo(t))l=function(e,t){let n=eS(e,!0,"fixed"===t),l=n.top+e.clientTop,r=n.left+e.clientLeft,o=ei(e)?ey(e):A(1),i=e.clientWidth*o.x,a=e.clientHeight*o.y;return{width:i,height:a,x:r*o.x,y:l*o.y}}(t,n);else{let n=ej(e);l={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return X(l)}function eP(e){return"static"===em(e).position}function eE(e,t){if(!ei(e)||"fixed"===em(e).position)return null;if(t)return t(e);let n=e.offsetParent;return el(e)===n&&(n=n.ownerDocument.body),n}function eT(e,t){let n=en(e);if(ec(e))return n;if(!ei(e)){let t=eg(e);for(;t&&!ef(t);){if(eo(t)&&!eP(t))return t;t=eg(t)}return n}let l=eE(e,t);for(;l&&["table","td","th"].includes(et(l))&&eP(l);)l=eE(l,t);return l&&ef(l)&&eP(l)&&!eu(l)?n:l||function(e){let t=eg(e);for(;ei(t)&&!ef(t);){if(eu(t))return t;if(ec(t))break;t=eg(t)}return null}(e)||n}let eR=async function(e){let t=this.getOffsetParent||eT,n=this.getDimensions,l=await n(e.floating);return{reference:function(e,t,n){let l=ei(t),r=el(t),o="fixed"===n,i=eS(e,!0,o,t),a={scrollLeft:0,scrollTop:0},s=A(0);if(l||!l&&!o)if(("body"!==et(t)||es(r))&&(a=ep(t)),l){let e=eS(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else r&&(s.x=e_(r));let c=!r||l||o?A(0):eN(r,a);return{x:i.left+a.scrollLeft-s.x-c.x,y:i.top+a.scrollTop-s.y-c.y,width:i.width,height:i.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}},ek={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:l,strategy:r}=e,o="fixed"===r,i=el(l),a=!!t&&ec(t.floating);if(l===i||a&&o)return n;let s={scrollLeft:0,scrollTop:0},c=A(1),u=A(0),d=ei(l);if((d||!d&&!o)&&(("body"!==et(l)||es(i))&&(s=ep(l)),ei(l))){let e=eS(l);c=ey(l),u.x=e.x+l.clientLeft,u.y=e.y+l.clientTop}let f=!i||d||o?A(0):eN(i,s,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-s.scrollTop*c.y+u.y+f.y}},getDocumentElement:el,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:l,strategy:r}=e,o=[..."clippingAncestors"===n?ec(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let l=eh(e,[],!1).filter(e=>eo(e)&&"body"!==et(e)),r=null,o="fixed"===em(e).position,i=o?eg(e):e;for(;eo(i)&&!ef(i);){let t=em(i),n=eu(i);n||"fixed"!==t.position||(r=null),(o?!n&&!r:!n&&"static"===t.position&&!!r&&["absolute","fixed"].includes(r.position)||es(i)&&!n&&function e(t,n){let l=eg(t);return!(l===n||!eo(l)||ef(l))&&("fixed"===em(l).position||e(l,n))}(e,i))?l=l.filter(e=>e!==i):r=t,i=eg(i)}return t.set(e,l),l}(t,this._c):[].concat(n),l],i=o[0],a=o.reduce((e,n)=>{let l=eC(t,n,r);return e.top=M(l.top,e.top),e.right=O(l.right,e.right),e.bottom=O(l.bottom,e.bottom),e.left=M(l.left,e.left),e},eC(t,i,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:eT,getElementRects:eR,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ev(e);return{width:t,height:n}},getScale:ey,isElement:eo,isRTL:function(e){return"rtl"===em(e).direction}};function eI(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function eF(e,t,n,l){let r;void 0===l&&(l={});let{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=l,u=eb(e),d=o||i?[...u?eh(u):[],...eh(t)]:[];
1d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});let f=u&&s?function(e,t){let n,l=null,r=el(e);function o(){var e;clearTimeout(n),null==(e=l)||e.disconnect(),l=null}return!function i(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),o();let c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:m}=c;if(a||t(),!f||!m)return;let p=L(d),g=L(r.clientWidth-(u+f)),h={rootMargin:-p+"px "+-g+"px "+-L(r.clientHeight-(d+m))+"px "+-L(u)+"px",threshold:M(0,O(1,s))||1},x=!0;function v(t){let l=t[0].intersectionRatio;if(l!==s){if(!x)return i();l?i(!1,l):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==l||eI(c,e.getBoundingClientRect())||i(),x=!1}try{l=new IntersectionObserver(v,{...h,root:r.ownerDocument})}catch(e){l=new IntersectionObserver(v,h)}l.observe(e)}(!0),o}(u,n):null,m=-1,p=null;a&&(p=new ResizeObserver(e=>{let[l]=e;l&&l.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),u&&!c&&p.observe(u),p.observe(t));let g=c?eS(e):null;return c&&function t(){let l=eS(e);g&&!eI(g,l)&&n(),g=l,r=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=p)||e.disconnect(),p=null,c&&cancelAnimationFrame(r)}}var eO=e.i(74080),eM="undefined"!=typeof document?g.useLayoutEffect:g.useEffect;function eD(e,t){let n,l,r;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(l=n;0!=l--;)if(!eD(e[l],t[l]))return!1;return!0}if((n=(r=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(l=n;0!=l--;)if(!({}).hasOwnProperty.call(t,r[l]))return!1;for(l=n;0!=l--;){let n=r[l];if(("_owner"!==n||!e.$$typeof)&&!eD(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eL(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eA(e,t){let n=eL(e);return Math.round(t*n)/n}function eB(e){let t=g.useRef(e);return eM(()=>{t.current=e}),t}let eH=(e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,l;let{x:r,y:o,placement:i,middlewareData:a}=t,s=await Z(t,e);return i===(null==(n=a.offset)?void 0:n.placement)&&null!=(l=a.arrow)&&l.alignmentOffset?{}:{x:r+s.x,y:o+s.y,data:{...s,placement:i}}}}}(e),options:[e,t]});e.i(47167);var eK="undefined"==typeof Element;eK||Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,eK||Element.prototype.getRootNode;let ez={...g},eW=ez.useInsertionEffect||(e=>e());function eV(e){let t=g.useRef(()=>{});return eW(()=>{t.current=e}),g.useCallback(function(){for(var e=arguments.length,n=Array(e),l=0;l<e;l++)n[l]=arguments[l];return null==t.current?void 0:t.current(...n)},[])}var eq="undefined"!=typeof document?g.useLayoutEffect:g.useEffect;let eG=!1,eU=0,eJ=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+eU++,eX=ez.useId||function(){let[e,t]=g.useState(()=>eG?eJ():void 0);return eq(()=>{null==e&&t(eJ())},[]),g.useEffect(()=>{eG=!0},[]),e},eY=g.createContext(null),e$=g.createContext(null),eQ="active",eZ="selected";function e0(e,t,n){let l=new Map,r="item"===n,o=e;if(r&&e){let{[eQ]:t,[eZ]:n,...l}=e;o=l}return{..."floating"===n&&{tabIndex:-1,"data-floating-ui-focusable":""},...o,...t.map(t=>{let l=t?t[n]:null;return"function"==typeof l?e?l(e):null:l}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,o]=t;if(!(r&&[eQ,eZ].includes(n)))if(0===n.indexOf("on")){if(l.has(n)||l.set(n,[]),"function"==typeof o){var i;null==(i=l.get(n))||i.push(o),e[n]=function(){for(var e,t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];return null==(e=l.get(n))?void 0:e.map(e=>e(...r)).find(e=>void 0!==e)}}}else e[n]=o}),e),{})}}function e1(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}var e2=e.i(46725),e4=e.i(13581);let e3=(0,g.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});e3.displayName="FloatingContext";let e5=(0,g.createContext)(null);function e9(e){var t,n,l,r,o,i,a,s,c;let u,d,f,m,p,h,x,b,w,j,{children:S,enabled:_=!0}=e,[N,C]=(0,g.useState)(null),[P,E]=(0,g.useState)(0),T=(0,g.useRef)(null),[R,k]=(0,g.useState)(null);r=R,(0,v.useIsoMorphicEffect)(()=>
1{if(!r)return;let e=new MutationObserver(()=>{let e=window.getComputedStyle(r).maxHeight,t=parseFloat(e);if(isNaN(t))return;let n=parseInt(e);isNaN(n)||t!==n&&(r.style.maxHeight="".concat(Math.ceil(t),"px"))});return e.observe(r,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[r]);let I=_&&null!==N&&null!==R,{to:F="bottom",gap:L=0,offset:A=0,padding:B=0,inner:H}=(o=N,i=R,u=e7(null!=(a=null==o?void 0:o.gap)?a:"var(--anchor-gap, 0)",i),d=e7(null!=(s=null==o?void 0:o.offset)?s:"var(--anchor-offset, 0)",i),f=e7(null!=(c=null==o?void 0:o.padding)?c:"var(--anchor-padding, 0)",i),{...o,gap:u,offset:d,padding:f}),[X,Y="center"]=F.split(" ");(0,v.useIsoMorphicEffect)(()=>{I&&E(0)},[I]);let{refs:Z,floatingStyles:ee,context:et}=function(e){void 0===e&&(e={});let{nodeId:t}=e,n=function(e){var t;let{open:n=!1,onOpenChange:l,elements:r}=e,o=eX(),i=g.useRef({}),[a]=g.useState(()=>(function(){let e=new Map;return{emit(t,n){var l;null==(l=e.get(t))||l.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var l;e.set(t,(null==(l=e.get(t))?void 0:l.filter(e=>e!==n))||[])}}})()),s=null!=((null==(t=g.useContext(eY))?void 0:t.id)||null),[c,u]=g.useState(r.reference),d=eV((e,t,n)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:n,nested:s}),null==l||l(e,t,n)}),f=g.useMemo(()=>({setPositionReference:u}),[]),m=g.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return g.useMemo(()=>({dataRef:i,open:n,onOpenChange:d,elements:m,events:a,floatingId:o,refs:f}),[n,d,m,a,o,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),l=e.rootContext||n,r=l.elements,[o,i]=g.useState(null),[a,s]=g.useState(null),c=(null==r?void 0:r.domReference)||o,u=g.useRef(null),d=g.useContext(e$);eq(()=>{c&&(u.current=c)},[c]);let f=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:l=[],platform:r,elements:{reference:o,floating:i}={},transform:a=!0,whileElementsMounted:s,open:c}=e,[u,d]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=g.useState(l);eD(f,l)||m(l);let[p,h]=g.useState(null),[x,v]=g.useState(null),b=g.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=g.useCallback(e=>{e!==_.current&&(_.current=e,v(e))},[]),w=o||p,j=i||x,S=g.useRef(null),_=g.useRef(null),N=g.useRef(u),C=null!=s,P=eB(s),E=eB(r),T=eB(c),R=g.useCallback(()=>{if(!S.current||!_.current)return;let e={placement:t,strategy:n,middleware:f};E.current&&(e.platform=E.current),((e,t,n)=>{let l=new Map,r={platform:ek,...n},o={...r.platform,_c:l};return $(e,t,{...r,platform:o})})(S.current,_.current,e).then(e=>{let t={...e,isPositioned:!1!==T.current};k.current&&!eD(N.current,t)&&(N.current=t,eO.flushSync(()=>{d(t)}))})},[f,t,n,E,T]);eM(()=>{!1===c&&N.current.isPositioned&&(N.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let k=g.useRef(!1);eM(()=>(k.current=!0,()=>{k.current=!1}),[]),eM(()=>{if(w&&(S.current=w),j&&(_.current=j),w&&j){if(P.current)return P.current(w,j,R);R()}},[w,j,R,P,C]);let I=g.useMemo(()=>({reference:S,floating:_,setReference:b,setFloating:y}),[b,y]),F=g.useMemo(()=>({reference:w,floating:j}),[w,j]),O=g.useMemo(()=>{let e={position:n,left:0,top:0};if(!F.floating)return e;let t=eA(F.floating,u.x),l=eA(F.floating,u.y);return a?{...e,transform:"translate("+t+"px, "+l+"px)",...eL(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:l}},[n,a,F.floating,u.x,u.y]);return g.useMemo(()=>({...u,update:R,refs:I,elements:F,floatingStyles:O}),[u,R,I,F,O])}({...e,elements:{...r,...a&&{reference:a}}}),m=g.useCallback(e=>{let t=eo(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;s(t),f.refs.setReference(t)},[f.refs]),p=g.useCallback(e=>{(eo(e)||null===e)&&(u.current=e,i(e)),(eo(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!eo(e))&&f.refs.setReference(e)},[f.refs]),h=g.useMemo(()=>({...f.refs,setReference:p,setPositionReference:m,domReference:u}),[f.refs,p,m]),x=g.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),v=g.useMemo(()=>({...f,...l,refs:h,elements:x,nodeId:t}),[f,h,x,t,l]);return eq(()=>{l.dataRef.current.floatingContext=v;let e=null==d?void 0:d.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),g.useMemo(()=>({...f,context:v,refs:h,elements:x}),[f,h,x,v])}({open:I,placement:"selection"===X?"center"===Y?"bottom":"bottom-".concat(Y):"center"===Y?"".concat(X):"".concat(X,"-").concat(Y),strategy:"absolute",transform:!1,middleware:[eH({mainAxis:"selection"===X?0:L,crossAxis:A}),{...{name:"shift",options:t=m={padding:B},async fn(e){let{x:n,y:l,placement:r}=e,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=K(t,e),c={x:n,y:l},u=await Q(e,s),d=G(z(r)),f=V(d),m=c[f],p=c[d];if(o){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=m+u[e],l=m-u[t];m=M(n,O(m,l))}if(i){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=p+u[e],l=p-u[t];p=M(n,O(p,l))}let g=a.fn({...e,[f]:m,[d]:p});return{...g,data:{x:g.x-n,y:g.y-l,enabled:{[f]:o,[d]:i}}}}},options:[m,p]},"selection"!==X&&{...{name:"flip",options:n=h={padding:B},async fn(e){var t,l,r,o,i;let{placement:a,middlewareData:s,rects:c,initialPlacement:u,platform:d,elements:f}=e,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:v=!0,...b}=K(n,e);if(null!=(t=s.arrow)&&t.alignmentOffset)return{};
1let y=z(a),w=G(u),j=z(u)===u,S=await (null==d.isRTL?void 0:d.isRTL(f.floating)),_=g||(j||!v?[J(u)]:function(e){let t=J(e);return[U(e),t,U(t)]}(u)),N="none"!==x;!g&&N&&_.push(...function(e,t,n,l){let r=W(e),o=function(e,t,n){let l=["left","right"],r=["right","left"];switch(e){case"top":case"bottom":if(n)return t?r:l;return t?l:r;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(z(e),"start"===n,l);return r&&(o=o.map(e=>e+"-"+r),t&&(o=o.concat(o.map(U)))),o}(u,v,x,S));let C=[u,..._],P=await Q(e,b),E=[],T=(null==(l=s.flip)?void 0:l.overflows)||[];if(m&&E.push(P[y]),p){let e=function(e,t,n){void 0===n&&(n=!1);let l=W(e),r=V(G(e)),o=q(r),i="x"===r?l===(n?"end":"start")?"right":"left":"start"===l?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=J(i)),[i,J(i)]}(a,c,S);E.push(P[e[0]],P[e[1]])}if(T=[...T,{placement:a,overflows:E}],!E.every(e=>e<=0)){let e=((null==(r=s.flip)?void 0:r.index)||0)+1,t=C[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(o=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(h){case"bestFit":{let e=null==(i=T.filter(e=>{if(N){let t=G(e.placement);return t===w||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:i[0];e&&(n=e);break}case"initialPlacement":n=u}if(a!==n)return{reset:{placement:n}}}return{}}},options:[h,x]},"selection"===X&&H?{name:"inner",options:b={...H,padding:B,overflowRef:T,offset:P,minItemsVisible:4,referenceOverflowThreshold:B,onFallbackChange(e){var t,n;if(!e)return;let l=et.elements.floating;if(!l)return;let r=parseFloat(getComputedStyle(l).scrollPaddingBottom)||0,o=Math.min(4,l.childElementCount),i=0,a=0;for(let e of null!=(n=null==(t=et.elements.floating)?void 0:t.childNodes)?n:[])if(e4.isHTMLElement(e)){let t=e.offsetTop,n=t+e.clientHeight+r,s=l.scrollTop,c=s+l.clientHeight;if(t>=s&&n<=c)o--;else{a=Math.max(0,Math.min(n,c)-Math.max(t,s)),i=e.clientHeight;break}}o>=1&&E(e=>{let t=i*o-a+r;return e>=t?e:t})}},async fn(e){let{listRef:t,overflowRef:n,onFallbackChange:l,offset:r=0,index:o=0,minItemsVisible:i=4,referenceOverflowThreshold:a=0,scrollRef:s,...c}=K(b,e),{rects:u,elements:{floating:d}}=e,f=t.current[o],m=(null==s?void 0:s.current)||d,p=d.clientTop||m.clientTop,g=0!==d.clientTop,h=0!==m.clientTop,x=d===m;if(!f)return{};let v={...e,...await eH(-f.offsetTop-d.clientTop-u.reference.height/2-f.offsetHeight/2-r).fn(e)},y=await Q(e1(v,m.scrollHeight+p+d.clientTop),c),w=await Q(v,{...c,elementContext:"reference"}),j=M(0,y.top),S=v.y+j,_=(m.scrollHeight>m.clientHeight?e=>e:D)(M(0,m.scrollHeight+(g&&x||h?2*p:0)-j-M(0,y.bottom)));if(m.style.maxHeight=_+"px",m.scrollTop=j,l){let e=m.offsetHeight<f.offsetHeight*O(i,t.current.length)-1||w.top>=-a||w.bottom>=-a;eO.flushSync(()=>l(e))}return n&&(n.current=await Q(e1({...v,y:S},m.offsetHeight+p+d.clientTop),c)),{y:S}}}:null,{...{name:"size",options:l=w={padding:B,apply(e){let{availableWidth:t,availableHeight:n,elements:l}=e;Object.assign(l.floating.style,{overflow:"auto",maxWidth:"".concat(t,"px"),maxHeight:"min(var(--anchor-max-height, 100vh), ".concat(n,"px)")})}},async fn(e){var t,n;let r,o,{placement:i,rects:a,platform:s,elements:c}=e,{apply:u=()=>{},...d}=K(l,e),f=await Q(e,d),m=z(i),p=W(i),g="y"===G(i),{width:h,height:x}=a.floating;"top"===m||"bottom"===m?(r=m,o=p===(await (null==s.isRTL?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(o=m,r="end"===p?"top":"bottom");let v=x-f.top-f.bottom,b=h-f.left-f.right,y=O(x-f[r],v),w=O(h-f[o],b),j=!e.middlewareData.shift,S=y,_=w;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(_=b),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(S=v),j&&!p){let e=M(f.left,0),t=M(f.right,0),n=M(f.top,0),l=M(f.bottom,0);g?_=h-2*(0!==e||0!==t?e+t:M(f.left,f.right)):S=x-2*(0!==n||0!==l?n+l:M(f.top,f.bottom))}await u({...e,availableWidth:_,availableHeight:S});let N=await s.getDimensions(c.floating);return h!==N.width||x!==N.height?{reset:{rects:!0}}:{}}},options:[w,j]}].filter(Boolean),whileElementsMounted:eF}),[en=X,el=Y]=et.placement.split("-");"selection"===X&&(en="selection");let er=(0,g.useMemo)(()=>
1({anchor:[en,el].filter(Boolean).join(" ")}),[en,el]),{getReferenceProps:ei,getFloatingProps:ea}=function(e){void 0===e&&(e=[]);let t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),l=e.map(e=>null==e?void 0:e.item),r=g.useCallback(t=>e0(t,e,"reference"),t),o=g.useCallback(t=>e0(t,e,"floating"),n),i=g.useCallback(t=>e0(t,e,"item"),l);return g.useMemo(()=>({getReferenceProps:r,getFloatingProps:o,getItemProps:i}),[r,o,i])}([function(e,t){let{open:n,elements:l}=e,{enabled:r=!0,overflowRef:o,scrollRef:i,onChange:a}=t,s=eV(a),c=g.useRef(!1),u=g.useRef(null),d=g.useRef(null);g.useEffect(()=>{if(!r)return;function e(e){if(e.ctrlKey||!t||null==o.current)return;let n=e.deltaY,l=o.current.top>=-.5,r=o.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,a=n<0?-1:1,c=n<0?"max":"min";!(t.scrollHeight<=t.clientHeight)&&(!l&&n>0||!r&&n<0?(e.preventDefault(),eO.flushSync(()=>{s(e=>e+Math[c](n,i*a))})):/firefox/i.test(function(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}())&&(t.scrollTop+=n))}let t=(null==i?void 0:i.current)||l.floating;if(n&&t)return t.addEventListener("wheel",e),requestAnimationFrame(()=>{u.current=t.scrollTop,null!=o.current&&(d.current={...o.current})}),()=>{u.current=null,d.current=null,t.removeEventListener("wheel",e)}},[r,n,l.floating,o,i,s]);let f=g.useMemo(()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){let e=(null==i?void 0:i.current)||l.floating;if(o.current&&e&&c.current){if(null!==u.current){let t=e.scrollTop-u.current;(o.current.bottom<-.5&&t<-1||o.current.top<-.5&&t>1)&&eO.flushSync(()=>s(e=>e+t))}requestAnimationFrame(()=>{u.current=e.scrollTop})}}}),[l.floating,s,o,i]);return g.useMemo(()=>r?{floating:f}:{},[r,f])}(et,{overflowRef:T,onChange:E})]),es=(0,y.useEvent)(e=>{k(e),Z.setFloating(e)});return g.createElement(e5.Provider,{value:C},g.createElement(e3.Provider,{value:{setFloating:es,setReference:Z.setReference,styles:ee,getReferenceProps:ei,getFloatingProps:ea,slot:er}},S))}function e7(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,l=(0,e2.useDisposables)(),r=(0,y.useEvent)((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let r=e8(e,t);return[r,n=>{let o=function e(t){let n=/var\((.*)\)/.exec(t);if(n){let t=n[1].indexOf(",");if(-1===t)return[n[1]];let l=n[1].slice(0,t).trim(),r=n[1].slice(t+1).trim();return r?[l,...e(r)]:[l]}return[]}(e);{let i=o.map(e=>window.getComputedStyle(t).getPropertyValue(e));l.requestAnimationFrame(function a(){l.nextFrame(a);let s=!1;for(let[e,n]of o.entries()){let l=window.getComputedStyle(t).getPropertyValue(n);if(i[e]!==l){i[e]=l,s=!0;break}}if(!s)return;let c=e8(e,t);r!==c&&(n(c),r=c)})}return l.dispose}]}return[n,null]}),o=(0,g.useMemo)(()=>r(e,t)[0],[e,t]),[i=o,a]=(0,g.useState)();return(0,v.useIsoMorphicEffect)(()=>{let[n,l]=r(e,t);if(a(n),l)return l(a)},[e,t]),i}function e8(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let l=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),l}e5.displayName="PlacementContext";var e6=e.i(2788),te=e.i(33137),tt=e.i(40407),tn=e.i(33538),tl=e.i(52265),tr=e.i(97701),to=e.i(2155),ti=e.i(20),ta=e.i(98348),ts=e.i(35307),tc=e.i(25720),tu=e.i(41650),td=Object.defineProperty,tf=(e,t,n)=>(((e,t,n)=>t in e?td(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),n),tm=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(tm||{}),tp=(e=>(e[e.OpenPopover=0]="OpenPopover",e[e.ClosePopover=1]="ClosePopover",e[e.SetButton=2]="SetButton",e[e.SetButtonId=3]="SetButtonId",e[e.SetPanel=4]="SetPanel",e[e.SetPanelId=5]="SetPanelId",e))(tp||{});let tg={0:e=>0===e.popoverState?e:{...e,popoverState:0,__demoMode:!1},1:e=>1===e.popoverState?e:{...e,popoverState:1,__demoMode:!1},2:(e,t)=>e.button===t.button?e:{...e,button:t.button},3:(e,t)=>
1e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},4:(e,t)=>e.panel===t.panel?e:{...e,panel:t.panel},5:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}};class th extends tc.Machine{static new(e){let{id:t,__demoMode:n=!1}=e;return new th({id:t,__demoMode:n,popoverState:+!n,buttons:{current:[]},button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:{current:null},afterPanelSentinel:{current:null},afterButtonSentinel:{current:null}})}reduce(e,t){return(0,tr.match)(t.type,tg,e,t)}constructor(e){super(e),tf(this,"actions",{close:()=>this.send({type:1}),refocusableClose:e=>{this.actions.close();let t=e?e4.isHTMLElement(e)?e:"current"in e&&e4.isHTMLElement(e.current)?e.current:this.state.button:this.state.button;null==t||t.focus()},open:()=>this.send({type:0}),setButtonId:e=>this.send({type:3,buttonId:e}),setButton:e=>this.send({type:2,button:e}),setPanelId:e=>this.send({type:5,panelId:e}),setPanel:e=>this.send({type:4,panel:e})}),tf(this,"selectors",{isPortalled:e=>{var t;if(!e.button||!e.panel)return!1;let n=null!=(t=(0,to.getOwnerDocument)(e.button))?t:document;for(let t of n.querySelectorAll("body > *"))if(Number(null==t?void 0:t.contains(e.button))^Number(null==t?void 0:t.contains(e.panel)))return!0;let l=(0,tl.getFocusableElements)(n),r=l.indexOf(e.button),o=(r+l.length-1)%l.length,i=(r+1)%l.length,a=l[o],s=l[i];return!e.panel.contains(a)&&!e.panel.contains(s)}});{let e=this.state.id,t=tu.stackMachines.get(null);this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}}}var tx=e.i(26599);let tv=(0,g.createContext)(null);function tb(e){let t=(0,g.useContext)(tv);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Popover /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,tb),t}return t}let ty=(0,g.createContext)(null);function tw(){return(0,g.useContext)(ty)}ty.displayName="PopoverGroupContext";let tj=(0,g.createContext)(null);tj.displayName="PopoverPanelContext";let tS=ti.RenderFeatures.RenderStrategy|ti.RenderFeatures.Static;function t_(e,t){let n=(0,g.useId)(),{id:l="headlessui-popover-backdrop-".concat(n),transition:r=!1,...o}=e,i=tb("Popover.Backdrop"),a=(0,tt.useSlice)(i,(0,g.useCallback)(e=>e.popoverState,[])),[s,c]=(0,g.useState)(null),u=(0,R.useSyncRefs)(t,c),d=(0,te.useOpenClosed)(),[f,m]=(0,I.useTransition)(r,s,null!==d?(d&te.State.Open)===te.State.Open:a===tm.Open),p=(0,y.useEvent)(e=>{if((0,tn.isDisabledReactIssue7711)(e.currentTarget))return e.preventDefault();i.actions.close()}),h=(0,T.useSlot)({open:a===tm.Open}),x={ref:u,id:l,"aria-hidden":!0,onClick:p,...(0,I.transitionDataAttributes)(m)};return(0,ti.useRender)()({ourProps:x,theirProps:o,slot:h,defaultTag:"div",features:tS,visible:f,name:"Popover.Backdrop"})}let tN=ti.RenderFeatures.RenderStrategy|ti.RenderFeatures.Static,tC=(0,ti.forwardRefWithAs)(function(e,t){var n;let l=(0,g.useId)(),{__demoMode:r=!1,...o}=e,i=function(e){let{id:t,__demoMode:n=!1}=e,l=(0,g.useMemo)(()=>th.new({id:t,__demoMode:n}),[]);return(0,tx.useOnUnmount)(()=>l.dispose()),l}({id:l,__demoMode:r}),a=(0,g.useRef)(null),s=(0,R.useSyncRefs)(t,(0,R.optionalRef)(e=>{a.current=e})),[c,u,d,f,m]=(0,tt.useSlice)(i,(0,g.useCallback)(e=>[e.popoverState,e.button,e.panel,e.buttonId,e.panelId],[])),p=(0,N.useRootDocument)(null!=(n=a.current)?n:u),h=(0,j.useLatestValue)(f),x=(0,j.useLatestValue)(m),v=(0,g.useMemo)(()=>({buttonId:h,panelId:x,close:i.actions.close}),[h,x,i]),b=tw(),S=null==b?void 0:b.registerPopover,C=(0,y.useEvent)(()=>{var e,t;let n=(0,to.getActiveElement)(null!=(e=a.current)?e:u);return null!=(t=null==b?void 0:b.isFocusWithinPopoverGroup())?t:n&&((null==u?void 0:u.contains(n))||(null==d?void 0:d.contains(n)))});(0,g.useEffect)(()=>null==S?void 0:S(v),[S,v]);let[E,k]=(0,ts.useNestedPortals)(),I=(0,P.useMainTreeNode)(u),O=(0,P.useRootContainers)({mainTreeNode:I,portals:E,defaultContainers:[{get current(){return i.state.button}},{get current(){return i.state.panel}}]});(0,w.useEventListener)(p,"focus",e=>{var t,n,l,r,o,a;e.target!==window&&e4.isHTMLorSVGElement(e.target)&&i.state.popoverState===tm.Open&&(C()||i.state.button&&i.state.panel&&(O.contains(e.target)||null!=(n=null==(t=i.state.beforePanelSentinel.current)?void 0:t.contains)&&n.call(t,e.target)||null!=(r=null==(l=i.state.afterPanelSentinel.current)?void 0:l.contains)&&r.call(l,e.target)||null!=(a=null==(o=i.state.afterButtonSentinel.current)?void 0:o.contains)&&a.call(o,e.target)||i.actions.close()))},!0);let M=c===tm.Open;
1(0,_.useOutsideClick)(M,O.resolveContainers,(e,t)=>{i.actions.close(),(0,tl.isFocusableElement)(t,tl.FocusableMode.Loose)||(e.preventDefault(),null==u||u.focus())});let D=(0,T.useSlot)({open:c===tm.Open,close:i.actions.refocusableClose}),L=(0,tt.useSlice)(i,(0,g.useCallback)(e=>(0,tr.match)(e.popoverState,{[tm.Open]:te.State.Open,[tm.Closed]:te.State.Closed}),[])),A=(0,ti.useRender)();return g.default.createElement(P.MainTreeProvider,{node:I},g.default.createElement(e9,null,g.default.createElement(tj.Provider,{value:null},g.default.createElement(tv.Provider,{value:i},g.default.createElement(F.CloseProvider,{value:i.actions.refocusableClose},g.default.createElement(te.OpenClosedProvider,{value:L},g.default.createElement(k,null,A({ourProps:{ref:s},theirProps:o,slot:D,defaultTag:"div",name:"Popover"}))))))))}),tP=(0,ti.forwardRefWithAs)(function(e,t){let n=(0,g.useId)(),{id:l="headlessui-popover-button-".concat(n),disabled:r=!1,autoFocus:o=!1,...i}=e,a=tb("Popover.Button"),[s,c,u,d,f,x,v]=(0,tt.useSlice)(a,(0,g.useCallback)(e=>[e.popoverState,a.selectors.isPortalled(e),e.button,e.buttonId,e.panel,e.panelId,e.afterButtonSentinel],[])),b=(0,g.useRef)(null),w="headlessui-focus-sentinel-".concat((0,g.useId)()),j=tw(),S=null==j?void 0:j.closeOthers,_=null!==(0,g.useContext)(tj);(0,g.useEffect)(()=>{if(!_)return a.actions.setButtonId(l),()=>a.actions.setButtonId(null)},[_,l,a]);let[N]=(0,g.useState)(()=>Symbol()),P=(0,R.useSyncRefs)(b,t,(0,g.useContext)(e3).setReference,(0,y.useEvent)(e=>{if(!_){if(e)a.state.buttons.current.push(N);else{let e=a.state.buttons.current.indexOf(N);-1!==e&&a.state.buttons.current.splice(e,1)}a.state.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),e&&a.actions.setButton(e)}})),E=(0,R.useSyncRefs)(b,t),I=(0,y.useEvent)(e=>{var t,n,l;if(_){if(a.state.popoverState===tm.Closed)return;switch(e.key){case ta.Keys.Space:case ta.Keys.Enter:e.preventDefault(),null==(n=(t=e.target).click)||n.call(t),a.actions.close(),null==(l=a.state.button)||l.focus()}}else switch(e.key){case ta.Keys.Space:case ta.Keys.Enter:e.preventDefault(),e.stopPropagation(),a.state.popoverState===tm.Closed?(null==S||S(a.state.buttonId),a.actions.open()):a.actions.close();break;case ta.Keys.Escape:if(a.state.popoverState!==tm.Open)return null==S?void 0:S(a.state.buttonId);if(!b.current)return;let r=(0,to.getActiveElement)(b.current);if(r&&!b.current.contains(r))return;e.preventDefault(),e.stopPropagation(),a.actions.close()}}),F=(0,y.useEvent)(e=>{_||e.key===ta.Keys.Space&&e.preventDefault()}),O=(0,y.useEvent)(e=>{var t,n;(0,tn.isDisabledReactIssue7711)(e.currentTarget)||r||(_?(a.actions.close(),null==(t=a.state.button)||t.focus()):(e.preventDefault(),e.stopPropagation(),a.state.popoverState===tm.Closed?(null==S||S(a.state.buttonId),a.actions.open()):a.actions.close(),null==(n=a.state.button)||n.focus()))}),M=(0,y.useEvent)(e=>{e.preventDefault(),e.stopPropagation()}),{isFocusVisible:D,focusProps:L}=(0,m.useFocusRing)({autoFocus:o}),{isHovered:A,hoverProps:B}=(0,p.useHover)({isDisabled:r}),{pressed:H,pressProps:K}=(0,h.useActivePress)({disabled:r}),z=s===tm.Open,W=(0,T.useSlot)({open:z,active:H||z,disabled:r,hover:A,focus:D,autofocus:o}),V=(0,C.useResolveButtonType)(e,u),q=_?(0,ti.mergeProps)({ref:E,type:V,onKeyDown:I,onClick:O,disabled:r||void 0,autoFocus:o},L,B,K):(0,ti.mergeProps)({ref:P,id:d,type:V,"aria-expanded":s===tm.Open,"aria-controls":f?x:void 0,disabled:r||void 0,autoFocus:o,onKeyDown:I,onKeyUp:F,onClick:O,onMouseDown:M},L,B,K),G=(0,k.useTabDirection)(),U=(0,y.useEvent)(()=>{if(!e4.isHTMLElement(a.state.panel))return;let e=a.state.panel;(0,tr.match)(G.current,{[k.Direction.Forwards]:()=>(0,tl.focusIn)(e,tl.Focus.First),[k.Direction.Backwards]:()=>(0,tl.focusIn)(e,tl.Focus.Last)})===tl.FocusResult.Error&&(0,tl.focusIn)((0,tl.getFocusableElements)((0,to.getRootNode)(a.state.button)).filter(e=>"true"!==e.dataset.headlessuiFocusGuard),(0,tr.match)(G.current,{[k.Direction.Forwards]:tl.Focus.Next,[k.Direction.Backwards]:tl.Focus.Previous}),{relativeTo:a.state.button})}),J=(0,ti.useRender)();return g.default.createElement(g.default.Fragment,null,J({ourProps:q,theirProps:i,slot:W,defaultTag:"button",name:"Popover.Button"}),z&&!_&&c&&g.default.createElement(e6.Hidden,{id:w,ref:v,features:e6.HiddenFeatures.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:U}))}),tE=(0,ti.forwardRefWithAs)(t_),tT=(0,ti.forwardRefWithAs)(t_),tR=(0,ti.forwardRefWithAs)(function(e,t){let n=(0,g.useId)(),{id:l="headlessui-popover-panel-".concat(n),focus:r=!1,anchor:o,portal:i=!1,modal:
1a=!1,transition:s=!1,...c}=e,u=tb("Popover.Panel"),d=(0,tt.useSlice)(u,u.selectors.isPortalled),[f,m,p,h,w]=(0,tt.useSlice)(u,(0,g.useCallback)(e=>[e.popoverState,e.button,e.__demoMode,e.beforePanelSentinel,e.afterPanelSentinel],[])),j="headlessui-focus-sentinel-before-".concat(n),_="headlessui-focus-sentinel-after-".concat(n),C=(0,g.useRef)(null),P=(0,g.useMemo)(()=>o?"string"==typeof o?{to:o}:o:null,[o]),[O,M]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,g.useContext)(e5),n=(0,g.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t})]);(0,v.useIsoMorphicEffect)(()=>{null==t||t(null!=n?n:null)},[t,n]);let l=(0,g.useContext)(e3);return(0,g.useMemo)(()=>[l.setFloating,e?l.styles:{}],[l.setFloating,e,l.styles])}(P),D=function(){let{getFloatingProps:e,slot:t}=(0,g.useContext)(e3);return(0,g.useCallback)(function(){for(var n=arguments.length,l=Array(n),r=0;r<n;r++)l[r]=arguments[r];return Object.assign({},e(...l),{"data-anchor":t.anchor})},[e,t])}();P&&(i=!0);let[L,A]=(0,g.useState)(null),B=(0,R.useSyncRefs)(C,t,P?O:null,u.actions.setPanel,A),H=(0,N.useOwnerDocument)(m),K=(0,N.useOwnerDocument)(C.current);(0,v.useIsoMorphicEffect)(()=>(u.actions.setPanelId(l),()=>u.actions.setPanelId(null)),[l,u]);let z=(0,te.useOpenClosed)(),[W,V]=(0,I.useTransition)(s,L,null!==z?(z&te.State.Open)===te.State.Open:f===tm.Open);(0,S.useOnDisappear)(W,m,u.actions.close),(0,E.useScrollLock)(!p&&a&&W,K);let q=(0,y.useEvent)(e=>{var t;if(e.key===ta.Keys.Escape){if(u.state.popoverState!==tm.Open||!C.current)return;let n=(0,to.getActiveElement)(C.current);if(n&&!C.current.contains(n))return;e.preventDefault(),e.stopPropagation(),u.actions.close(),null==(t=u.state.button)||t.focus()}});(0,g.useEffect)(()=>{var t;e.static||f===tm.Closed&&(null==(t=e.unmount)||t)&&u.actions.setPanel(null)},[f,e.unmount,e.static,u]),(0,g.useEffect)(()=>{if(p||!r||f!==tm.Open||!C.current)return;let e=(0,to.getActiveElement)(C.current);C.current.contains(e)||(0,tl.focusIn)(C.current,tl.Focus.First)},[p,r,C.current,f]);let G=(0,T.useSlot)({open:f===tm.Open,close:u.actions.refocusableClose}),U=(0,ti.mergeProps)(P?D():{},{ref:B,id:l,onKeyDown:q,onBlur:r&&f===tm.Open?e=>{var t,n,l,r,o;let i=e.relatedTarget;i&&C.current&&(null!=(t=C.current)&&t.contains(i)||(u.actions.close(),(null!=(l=null==(n=h.current)?void 0:n.contains)&&l.call(n,i)||null!=(o=null==(r=w.current)?void 0:r.contains)&&o.call(r,i))&&i.focus({preventScroll:!0})))}:void 0,tabIndex:-1,style:{...c.style,...M,"--button-width":function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],[l,r]=(0,g.useState)(()=>b(t));return(0,v.useIsoMorphicEffect)(()=>{if(!t||!e)return;let n=(0,x.disposables)();return n.requestAnimationFrame(function e(){n.requestAnimationFrame(e),r(e=>{let n=b(t);return n.width===e.width&&n.height===e.height?e:n})}),()=>{n.dispose()}},[t,e]),n?{width:"".concat(l.width,"px"),height:"".concat(l.height,"px")}:l}(W,m,!0).width},...(0,I.transitionDataAttributes)(V)}),J=(0,k.useTabDirection)(),X=(0,y.useEvent)(()=>{let e=C.current;e&&(0,tr.match)(J.current,{[k.Direction.Forwards]:()=>{var t;(0,tl.focusIn)(e,tl.Focus.First)===tl.FocusResult.Error&&(null==(t=u.state.afterPanelSentinel.current)||t.focus())},[k.Direction.Backwards]:()=>{var e;null==(e=u.state.button)||e.focus({preventScroll:!0})}})}),Y=(0,y.useEvent)(()=>{let e=C.current;e&&(0,tr.match)(J.current,{[k.Direction.Forwards]:()=>{var e;if(!u.state.button)return;let t=null!=(e=(0,to.getRootNode)(u.state.button))?e:document.body,n=(0,tl.getFocusableElements)(t),l=n.indexOf(u.state.button),r=n.slice(0,l+1),o=[...n.slice(l+1),...r];for(let e of o.slice())if("true"===e.dataset.headlessuiFocusGuard||null!=L&&L.contains(e)){let t=o.indexOf(e);-1!==t&&o.splice(t,1)}(0,tl.focusIn)(o,tl.Focus.First,{sorted:!1})},[k.Direction.Backwards]:()=>{var t;(0,tl.focusIn)(e,tl.Focus.Previous)===tl.FocusResult.Error&&(null==(t=u.state.button)||t.focus())}})}),$=(0,ti.useRender)();return g.default.createElement(te.ResetOpenClosedProvider,null,g.default.createElement(tj.Provider,{value:l},g.default.createElement(F.CloseProvider,{value:u.actions.refocusableClose},g.default.createElement(ts.Portal,{enabled:!!i&&(e.static||W),ownerDocument:H},W&&d&&g.default.createElement(e6.Hidden,{id:j,ref:h,features:e6.HiddenFeatures.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:X}),$({ourProps:U,theirProps:c,slot:G,defaultTag:"div",features:tN,visible:W,name:"Popover.Panel"}),W&&d&&g.default.createElement(e6.Hidden,{id:_,ref:w,features:e6.HiddenFeatures.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:Y})))))}),tk=Object.assign(tC,{Button:tP,Backdrop:tT,Overlay:tE,Panel:tR,Group:(0,ti.forwardRefWithAs)(function(e,t){let n=(0,g.useRef)(null),l=(0,R.useSyncRefs)(n,t),[r,o]=(0,g.useState)([]),i=(0,y.useEvent)(e=>{o(t=>{let n=t.indexOf(e);if(-1!==n){let e=t.slice();return e.splice(n,1),e}return t})}),a=(0,y.useEvent)(e=>(o(t=>[...t,e]),()=>i(e))),s=(0,y.useEvent)(()=>{var e;let t=(0,to.getRootNode)(n.current);if(!t)return!1;
1let l=(0,to.getActiveElement)(n.current);return!!(null!=(e=n.current)&&e.contains(l))||r.some(e=>{var n,r;return(null==(n=t.getElementById(e.buttonId.current))?void 0:n.contains(l))||(null==(r=t.getElementById(e.panelId.current))?void 0:r.contains(l))})}),c=(0,y.useEvent)(e=>{for(let t of r)t.buttonId.current!==e&&t.close()}),u=(0,g.useMemo)(()=>({registerPopover:a,unregisterPopover:i,isFocusWithinPopoverGroup:s,closeOthers:c}),[a,i,s,c]),d=(0,T.useSlot)({}),f=(0,ti.useRender)();return g.default.createElement(P.MainTreeProvider,null,g.default.createElement(ty.Provider,{value:u},f({ourProps:{ref:l},theirProps:e,slot:d,defaultTag:"div",name:"Popover.Group"})))})});var tI=e.i(40888);let tF=tI.default.default?tI.default.default:tI.default;function tO(e){let{globalLocale:l,brandConfig:r,globalConfig:o,promos:a,texts:s={}}=e,c=(0,g.useRef)(null),m=(0,g.useRef)(null),[p,h]=(0,g.useState)(0);return(0,g.useEffect)(()=>{var e;let t=null==(e=m.current)?void 0:e.querySelector(".react-multi-carousel-list");(0,d.attachHorizontalSwipeHandler)(t)},[]),(0,t.jsxs)("section",{id:"promo",className:"container px-0",children:[(0,t.jsxs)("div",{className:"promo-slider relative","data-tagging-smartsite":"promotion",ref:m,children:[(0,t.jsx)(tF,{autoPlay:!0,autoPlaySpeed:5e3,rewind:!0,responsive:{all:{breakpoint:{max:9999,min:0},items:1}},ssr:!0,deviceType:"desktop",transitionDuration:500,draggable:!1,minimumTouchDrag:100,arrows:!1,renderButtonGroupOutside:!0,showDots:!0,renderDotsOutside:!0,dotListClass:"items-center md:!justify-end gap-5 h-12 md:h-24 promo-navbar !px-8 overflow-x-hidden",customDot:(0,t.jsx)(tM,{}),containerClass:"pb-12 md:pb-24",afterChange:(e,t)=>
1{let{currentSlide:n}=t;h(n)},children:a.map((e,n)=>(0,t.jsx)(i.ArtDirectedPgImage,{image:e.desktopImage,breakpoints:[{media:"(max-width: 768px)",image:e.mobileImage}],width:1920,height:743,placeholder:0===n?null:"empty",className:"inline-block"},n))}),(0,t.jsxs)("div",{className:"absolute inset-x-9 bottom-16 z-20 flex items-center justify-end md:bottom-28 xl:mb-5",children:[a[p].terms&&(0,t.jsxs)(tk,{className:"mr-2",children:[(0,t.jsx)(tP,{className:"size-10 rounded-full bg-black text-xl text-white opacity-90","aria-label":s.promos_terms_label,children:(0,t.jsx)(u.default,{icon:f.faInfo})}),(0,t.jsx)(tR,{className:"absolute inset-x-0 bottom-20 z-10",children:(0,t.jsx)("div",{className:"bg-black/80 p-4 text-xs text-white lg:text-sm",children:a[p].terms})})]}),(0,t.jsx)("button",{onClick:()=>{let e={promo:!0,brand:r.code};c.current.openLeadForm(e)},className:"btn-promo-cta h-14 w-full md:w-72",children:s.promos_offer_button})]})]}),(0,t.jsx)(n.default,{ref:c,locale:l,texts:s,brandConfig:r,recaptchaSiteKey:o.recaptcha_v2_site_key,tenantId:o.tenant_id})]})}function tM(e){let{index:n,onClick:l,active:r}=e;return(0,t.jsx)("li",{className:"",children:(0,t.jsx)("button",{onClick:l,className:"btn-nav block size-6 rounded-full lg:size-8 ".concat(r?"active":"bg-[#797979]"),"aria-label":"Promo ".concat(n+1)})},"promo-indicator-".concat(n))}let tD={watercraft:"sea-doo",snowmobile:"ski-doo",pontoon:"sea-doo2","side-by-side":"off-road",atv:"off-road",motorcycle:"on-road","three-wheel-moto":"on-road"},tL=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=document.getElementById(e);n&&window.scrollTo({top:n.offsetTop-t})};var tA=e.i(54056),tB=e.i(7670);function tH(e){let{globalLocale:r,brandConfig:u,globalConfig:d,lineup:f,promos:m=[],texts:p={}}=e,h=(0,g.useRef)(null),[x,v]=(0,g.useState)(0),[b,y]=(0,g.useState)(0),[w,j]=(0,g.useState)(!0),S=e=>{let t={vehicle:e,brand:u.code,bodystyle:_.bodystyle};h.current.openLeadForm(t)};(0,g.useEffect)(()=>{let e=document.getElementById("header"),t=0;e&&(t=e.clientHeight);let n=window.location.hash.slice(1);n&&f.categories.some((e,l)=>{if(e.anchor===n)return v(l),y(0),tL("lineup",t),!0;{let r=e.models.findIndex(e=>e.anchor===n);if(-1!==r)return v(l),y(r),tL("lineup",t),!0}return!1})},[f.categories]);let _=f.categories[x],N=_.models[b],C=[...new Set(_.models.map(e=>e.model_group_name))],P=e=>{j(!1),setTimeout(()=>y(e),250),setTimeout(()=>j(!0),250)},E=tD[_.bodystyle],T=m.filter(e=>{var t;return(null==(t=e.raw_data)?void 0:t.urlBrand)===E});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("section",{id:"lineup",className:"lineup container flex grow-0 flex-col gap-8 py-10 lg:items-start",children:[(0,t.jsx)("h2",{className:"lineup-title text-4xl font-bold text-black lg:inline-block lg:text-5xl",children:p.lineup_section_title}),f.categories.length>1&&(0,t.jsx)(l.default,{categories:f.categories,selectedCategoryIdx:x,onSelect:e=>{P(0),setTimeout(()=>v(e),250)}}),(0,t.jsxs)("div",{className:"text-black",children:[(0,t.jsx)("nav",{className:(0,tB.default)("hidden",C.length<=1&&"gap-2 lg:flex lg:flex-wrap"),children:_.models.map((e,n)=>(0,t.jsxs)("button",{onClick:()=>P(n),"data-tagging-smartsite":"model","data-tagging-value":e.name,children:[(0,t.jsx)("div",{className:(0,tB.default)("mb-2 p-3",n===b&&"bg-neutral-200"),children:e.pg_gallery[0]&&(0,t.jsx)(i.PgImage,{image:e.pg_gallery[0],width:160,height:100})}),e.name]},"model-".concat(x,"-").concat(n)))}),(0,t.jsx)("select",{value:b,onChange:e=>P(e.target.value),className:(0,tB.default)("w-full uppercase md:w-1/2 lg:w-[400px]",C.length<=1&&"lg:hidden"),"aria-label":"Model Selector",children:C.map((e,n)=>(0,t.jsx)("optgroup",{label:e,children:_.models.map((n,l)=>n.model_group_name===e&&(0,t.jsx)("option",{value:l,className:"px-2 py-3","data-tagging-smartsite":"model","data-tagging-value":n.name,children:n.name},"model-".concat(x,"-").concat(l)))},"group-".concat(x,"-").concat(n)))})]}),(0,t.jsxs)("div",{className:"flex w-full flex-col gap-8 lg:flex-row",children:[(0,t.jsx)(tA.Transition,{show:w,enter:"transition duration-500 ease-in-out transform",enterFrom:"translate-x-full opacity-0",enterTo:"translate-x-0 opacity-100",leave:"transition duration-500 ease-in-out transform",leaveFrom:"translate-x-0 opacity-100",leaveTo:"-translate-x-full opacity-0",children:(0,t.jsx)("div",{className:"lg:flex-1",children:(0,t.jsx)(o,{model:N},N.name)})}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 max-md:items-center lg:flex-1",children:[(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-4 pb-4",children:[(0,t.jsx)("h2",{className:"text-3xl font-bold uppercase lg:text-4xl",children:(0,a.interpolateString)(p.lineup_inventory_title,{model:N.name})}),(0,t.jsx)(s.default,{href:N.inventory_url,forceFullNavigation:!0,className:"whitespace-nowrap underline hover:no-underline","data-tagging-smartsite":"model-inventory",children:p.lineup_view_all_button})]}),N.dealer_vehicles.length>0?(0,t.jsx)(t.Fragment,{children:N.dealer_vehicles.map((e,n)=>(0,t.jsx)(c,{vehicle:e,openLeadForm:()=>S(e),texts:p},"inv-".concat(x,"-").concat(b,"-").concat(n)))}):(0,t.jsxs)("div",{className:"flex grow flex-col items-center justify-center gap-2 bg-neutral-200 p-5",children:[(0,t.jsx)("h3",{className:"text-3xl font-bold uppercase",children:p.lineup_no_inventory_message}),(0,t.jsx)("p",{className:"text-center text-base",children:p.lineup_no_inventory_message_description}),(0,t.jsx)("button",{onClick:()=>S(null),className:"btn-no-inventory w-auto",children:p.lineup_no_inventory_cta})]})]})]}),(0,t.jsx)(n.default,{ref:h,locale:r,texts:p,brandConfig:u,recaptchaSiteKey:d.recaptcha_v2_site_key,tenantId:d.tenant_id})]}),T.length>0&&(0,t.jsx)(tO,{globalLocale:r,brandConfig:u,globalConfig:d,promos:T,texts:p},_.bodystyle)]})}},21050,e=>{"use strict";e.s(["default",()=>c],21050);
1var t=e.i(43476),n=e.i(27721),l=e.i(38726),r=e.i(50347),o=e.i(71645);function i(e){let{products:n=[],brandCode:l="",texts:i={}}=e,a=(0,o.useRef)(null);return(0,t.jsxs)(t.Fragment,{children:[n.map(e=>(0,t.jsx)("button",{onClick:()=>{a.current.openProductDetail(e)},className:"absolute flex size-12 items-center justify-center rounded-full bg-neutral-300/50",style:{top:"".concat(e.top,"%"),left:"".concat(e.left,"%"),transform:"translate(-50%, -50%)"},"data-tagging-smartsite":"hotspot-card-open","data-tagging-value":JSON.stringify({title:e.title,type:"vehicle",section:"accessories"}),children:(0,t.jsx)("div",{className:"size-6 rounded-full bg-white text-black",children:"+"})},"".concat(e.sku,"-3d"))),(0,t.jsx)(r.default,{ref:a,brandCode:l,texts:i,hotspotType:"vehicle",hotspotSection:"accessories"})]})}var a=e.i(97330),s=e.i(54056);function c(e){let{categories:r=[],brandCode:c="",texts:u={}}=e,[d,f]=(0,o.useState)(0),[m,p]=(0,o.useState)(!0),g=(0,o.useMemo)(()=>r[d],[d,r]),h=(0,o.useMemo)(()=>g.accessories.filter(e=>"3d"===e.display_section),[g]),x=(0,o.useMemo)(()=>g.accessories.filter(e=>"best-seller"===e.display_section),[g]);return(0,t.jsxs)("section",{id:"accessories",className:"accessories container flex grow-0 flex-col gap-8 py-10 lg:items-start",children:[(0,t.jsx)("h2",{className:"accessories-title text-4xl font-bold text-black lg:inline-block lg:text-5xl",children:u.parts_accessories_section_title}),r.length>1&&(0,t.jsx)(l.default,{categories:r,selectedCategoryIdx:d,onSelect:e=>{p(!1),setTimeout(()=>f(e),250),setTimeout(()=>p(!0),250)},taggingKey:"accessories-category"}),h.length>0&&(0,t.jsx)(s.Transition,{show:m,enter:"transition duration-500 ease-in-out",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition duration-500 ease-in-out",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,t.jsx)("div",{className:"flex w-full flex-col items-center justify-center",children:g.pg_accessory_main_image&&(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(a.PgImage,{image:g.pg_accessory_main_image,width:1e3,height:530}),(0,t.jsx)(i,{products:h,brandCode:c,texts:u})]})})}),x.length>0&&(0,t.jsx)(n.default,{accessories:x,brandCode:c,texts:u,hotspotType:"vehicle",hotspotSection:"accessories"})]})}},52582,e=>{"use strict";e.s(["default",()=>a]);var t=e.i(43476),n=e.i(96838),l=e.i(97330),r=e.i(83651),o=e.i(71645);let i=()=>()=>{};function a(e){let{brandConfig:a={}}=e,s=a.popup,c=null==s?void 0:s.pg_image,u=(0,o.useSyncExternalStore)(i,()=>!!window.location.hash,()=>!0),[d,f]=(0,o.useState)(!1),m=!!c&&!u&&!d;if((0,o.useEffect)(()=>{if(m)return document.body.style.overflow="hidden",()=>{document.body.style.overflow="unset"}},[m]),!m)return(0,t.jsx)(t.Fragment,{});let p=()=>{f(!0),document.body.style.overflow="unset"};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{className:"fixed inset-0 z-[9999999998] cursor-default bg-black/70","aria-label":"Close popup",onClick:p}),(0,t.jsx)("div",{className:"fixed inset-0 z-[9999999999] flex items-center justify-center p-4",children:(0,t.jsxs)("div",{className:"relative max-h-dvh w-full max-w-3xl rounded-xl bg-white pt-14 shadow-2xl",children:[(0,t.jsx)("button",{className:"absolute right-3 top-3 z-10 text-3xl text-black","aria-label":"Close popup",onClick:p,children:(0,t.jsx)(n.default,{icon:r.faCircleXmark})}),(0,t.jsx)("div",{className:"overflow-hidden",children:(0,t.jsx)(l.PgImage,{image:c,width:1080,height:1080,className:"w-full",priority:!0})})]})})]})}},33743,e=>{"use strict";e.s(["default",()=>u]);var t=e.i(43476),n=e.i(96838),l=e.i(29894),r=e.i(47521),o=e.i(83651),i=e.i(71645),a=e.i(40888);let s=a.default.default?a.default.default:a.default,c={desktop:{breakpoint:{max:9999,min:l.DESKTOP_BREAKPOINT},slidesToSlide:3,items:3},tablet:{breakpoint:{max:l.DESKTOP_BREAKPOINT-1,min:l.TABLET_BREAKPOINT},slidesToSlide:2,items:2},tabletSm:{breakpoint:{max:l.TABLET_BREAKPOINT-1,min:l.MOBILE_BREAKPOINT},slidesToSlide:2,items:2},mobile:{breakpoint:{max:l.MOBILE_BREAKPOINT-1,min:0},slidesToSlide:1,items:1}};function u(e){let{reviews:l,texts:a={}}=e,u=(0,i.useRef)(null);return(0,i.useEffect)(()=>{var e;let t=null==(e=u.current)?void 0:e.querySelector(".react-multi-carousel-list");(0,r.attachHorizontalSwipeHandler)(t)},[]),(0,t.jsx)("section",{id:"reviews",className:"reviews-section",children:(0,t.jsxs)("div",{className:"container relative py-10",ref:u,children:[(0,t.jsx)("h2",{className:"pb-10 text-4xl font-bold uppercase",children:a.reviews_section_title}),(0,t.jsx)(s,{responsive:c,ssr:!0,deviceType:"desktop",draggable:!1,arrows:!1,showDots:!0,renderDotsOutside:!1,dotListClass:"items-center",containerClass:"pb-14",children:l.map((e,l)=>(0,t.jsxs)("div",{className:"customer-review mx-4 flex h-full flex-col justify-between gap-4 p-8",children:[(0,t.jsx)("div",{className:"absolute bottom-[-25px] left-[35px] size-0 border-l-[30px] border-r-0 border-t-[25px] border-solid border-x-trans
1parent"}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-4",children:[(0,t.jsx)(n.default,{icon:o.faUserGroup,className:"review-icon text-4xl"}),(0,t.jsxs)("div",{className:"review-comment mt-2 line-clamp-3",children:["« ",e.comment," »"]}),!e.isOriginalLanguage&&(0,t.jsx)("div",{className:"text-xs",children:a.reviews_translated_label})]}),(0,t.jsx)("div",{className:"self-end",children:e.dateHumanized})]},"review-".concat(l)))})]})})}}]);

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.