@soma-vertical-web/multi-lib 0.0.59 → 0.0.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
- "use strict";var Pd=Object.defineProperty;var Id=(e,t,r)=>t in e?Pd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var yr=(e,t,r)=>Id(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),x=require("react"),ie=require("./index-BR5lPUsH.js"),st=require("idb-keyval"),tt=require("zustand"),oo=require("js-cookie"),g=require("@soma-vertical-web/core-components"),Qe=require("axios"),Nd=require("jose"),lt=require("@soma-vertical-web/foundations"),ha=require("react-dom"),qe=require("draft-js"),ts=require("@date-fns/tz"),jo=x.createContext({}),Td=({data:e,children:t})=>n.jsx(jo.Provider,{value:{tags:e==null?void 0:e.config},children:t}),jt=()=>{const{tags:e}=x.useContext(jo),t=x.useCallback(r=>{var a,c,l,u;const o=(c=(a=e==null?void 0:e.commercial)==null?void 0:a.items)==null?void 0:c.find(p=>{var h;return(h=r??[])==null?void 0:h.find(d=>d.id===p.key)}),s=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(p=>{var h;return(h=r??[])==null?void 0:h.find(d=>d.id===p.key)}),i=e==null?void 0:e.flagPdp;return{commercial:o,institucional:s,flagPdp:i}},[e]);return{tags:e,getAvailableProductTag:t}},ga=({gridScrollBack:e})=>{x.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},ya=x.createContext({}),Od=({children:e,gridScrollBack:t})=>{const r=x.useRef(null);return ga({gridScrollBack:t}),n.jsx(ya.Provider,{value:{sizesContainerRef:r},children:e})},kd=()=>{const e=x.useContext(ya);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},Ve=({event:e,data:t})=>{const r=(window==null?void 0:window.dataLayer)||[];t.ecommerce&&r.push({ecommerce:null}),r.push({...e&&{event:`custom_${e}`},...t})},Ce={configs:{PLP_FILTERS:[{key:"",label:"",eventLabel:"",order:0}],currency:"BRL",categoryOff:"bazar",storeUrl:"https://www.example.com",MAIN_IMAGE:"1",NAME_SPLIT_SYMBOL:"-",VENDOR_CODE:""},productEvents:(e,t)=>{const{event:r,commonData:o,customData:s,promotionInfo:i,itemList:a,outsideEcommerceData:c}=e,{availableSizes:l,sizes:u,price:p}=o,h={...r==="view_item"?{currency:Ce.configs.currency,value:p,grade_disponivel:l??(u?_a(u):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:p,currency:Ce.configs.currency}:{}},d=Lt({data:o,customData:{...s,...a,...i},configs:Ce.configs});Ve({event:r,data:{...c,ecommerce:{...a,...h,items:[d]}}}),typeof t=="function"&&t(d,h)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:o,outsideEcommerceData:s,customData:i}=e;if(t.length===0)return;const a=t.map(({node:c},l)=>Lt({data:{...c},customData:{...r,index:l,...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:o},configs:Ce.configs}));Ve({event:"view_item_list",data:{...s,ecommerce:{...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:o,items:a}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:o,supportData:{selectedSkus:s,price:i},promotionInfo:a,itemList:c,outsideEcommerceData:l}=e;let u=0;const p=r.map(h=>{var _,y,b,j,v,S,E,R,C;const d=s==null?void 0:s.find(A=>(h.productId??h.id)===A.productId);let f={...a,...c};if(d){const A=ba(),O=xa(A,d);O&&(f={...f,...O}),t==="add_to_cart"&&(a||c)&&so({persistedData:A,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:a,itemList:c}}),t==="remove_from_cart"&&so({persistedData:A,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=h.price??((b=(y=(_=d==null?void 0:d.offers)==null?void 0:_.offers)==null?void 0:y[0])==null?void 0:b.price)??0;const m=(d==null?void 0:d.size)??ie.getColorAndSizeFromSkuName((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((j=h.itemOffered)==null?void 0:j.skuName),Ce.configs.NAME_SPLIT_SYMBOL).size;return Lt({data:h,customData:{...o,...f??{...a,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((v=h.itemOffered)==null?void 0:v.sku),quantity:(o==null?void 0:o.quantity)??h.quantity??1,item_variant2:m,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((C=(R=(E=(S=d==null?void 0:d.offers)==null?void 0:S.offers)==null?void 0:E[0])==null?void 0:R.seller)==null?void 0:C.identifier)??h.seller},configs:Ce.configs})});Ve({event:t,data:{...l,ecommerce:{value:i??u,currency:Ce.configs.currency,items:p}}})},filterEvent:e=>{var a;const{commonData:t,customData:r,outsideEcommerceData:o}=e,s={},i={};Array.isArray(t==null?void 0:t.selectedFacets)&&((a=t==null?void 0:t.selectedFacets)!=null&&a.length)&&((t==null?void 0:t.selectedFacets).forEach(({key:c,value:l})=>{var h;const u=((h=Ce.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:h.eventLabel)??c,p=(s==null?void 0:s[u])||[];u==="price_range"&&l.replace(":","-"),s[u]=[...p,l]}),Object.keys(s).forEach(c=>i[c]=s[c].join(", "))),Ve({event:"filter",data:{...o,...i,...r}})},viewCartEvent:e=>{var p,h,d,f,m,_,y,b,j,v;const{commonData:t,outsideEcommerceData:r}=e,{cartStore:o}=t;if(!o)return;const s=window.localStorage.getItem("persistedCartEventsData"),i=s?JSON.parse(s):{},a=o.items.map(S=>{const{promotionInfo:E,itemList:R}=i[S.id]??{};return Lt({data:{...S,price:S.price/100,listPrice:S.listPrice/100},customData:{...E,...R,item_sku:S.id??S.itemOffered.sku,quantity:S.quantity??1},configs:Ce.configs})}),c=(((p=o.totalizers.find(S=>S.name==="Total dos Itens"))==null?void 0:p.value)??0)/100,l=(((h=o.totalizers.find(S=>S.name==="Total dos Descontos"))==null?void 0:h.value)??0)/100,u=((d=o.marketingData)==null?void 0:d.utmiCampaign)===Ce.configs.VENDOR_CODE?(f=o.marketingData)==null?void 0:f.utmCampaign:(_=String((m=o.openTextField)==null?void 0:m.value))==null?void 0:_.split(" - ")[0];Ve({event:"view_cart",data:{...r,ecommerce:{currency:Ce.configs.currency,value:c+l,total_discount:Math.abs(l),cep_preenchido:!!((b=(y=o.shippingData)==null?void 0:y.address)!=null&&b.postalCode),...u?{seller_coupon_name:u}:{},...((j=o.marketingData)==null?void 0:j.coupon)&&{sale_coupon_name:(v=o.marketingData)==null?void 0:v.coupon},subtotal:c,items:a}}})},readyEvents:e=>{const{event:t,readyData:r}=e;Ve({event:t,data:{...r}})}},_a=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),Md=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(Ce.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},Lt=({data:e,customData:t,configs:r})=>({...Ld(e,r==null?void 0:r.MAIN_IMAGE),...Dd(e),...$d(e),...Bd(e),...t}),va=()=>{var e,t;return document?((t=(e=window.document.head.querySelector('meta[name="category"]'))==null?void 0:e.getAttribute("content"))==null?void 0:t.split("_"))??[]:[]},ba=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},xa=(e,t)=>e==null?void 0:e[t],so=({persistedData:e,type:t,sku:r,newData:o})=>{if(!e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({[r]:o}));return}if(e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({...e,[r]:o}));return}e&&t==="remove"&&(delete e[r],window.localStorage.setItem("persistedCartEventsData",JSON.stringify(e)))},Ld=(e,t="1")=>{var i,a,c,l,u,p,h,d,f,m,_;const r=e.productReference??e.gtin??e.productRefId,o=e.image??((a=(i=e.items)==null?void 0:i[0])==null?void 0:a.images)??((c=e.itemOffered)==null?void 0:c.image),s=o==null?void 0:o.find(y=>y.alternateName===t||y.imageLabel===t||y.keywords===t);return{item_id:e.productId??((l=e.isVariantOf)==null?void 0:l.productGroupID)??((u=e.isVariationOf)==null?void 0:u.productGroupID)??((h=(p=e.itemOffered)==null?void 0:p.isVariationOf)==null?void 0:h.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??ie.splitNameAndSizeFromFullName((d=e.itemOffered)==null?void 0:d.name,Ce.configs.NAME_SPLIT_SYMBOL).name,item_brand:((f=e.brand)==null?void 0:f.brandName)??((m=e.brand)==null?void 0:m.name)??e.brand??((_=e.itemOffered)==null?void 0:_.brand.name),item_url:`${Ce.configs.storeUrl}${e.linkText}/p`,item_image:(s==null?void 0:s.url)??(s==null?void 0:s.imageUrl)}},rs=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,Dd=e=>{var u,p;const{categories:t,categoriesIds:r}=e,o=t??((u=e.itemOffered)==null?void 0:u.categories),s=r??((p=e.itemOffered)==null?void 0:p.categoriesIds),i=rs(o),a=rs(s),c=i.slice(1,-1).split("/"),l=a.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(Ce.configs.categoryOff)?"Bazar":"Coleção",...c[1]&&{item_category2:c[1]},...c.length>2&&{item_category3:c[c.length-1]},item_category_id:l[l.length-1],...l.length>1&&{item_parent_category_id:l[l.length-2]}}},$d=e=>{var s,i,a,c,l,u;const t=((s=e.itemOffered)==null?void 0:s.skuName)??((c=(a=(i=e.isVariantOf)==null?void 0:i.hasVariant)==null?void 0:a[0])==null?void 0:c.name)??((u=(l=e.items)==null?void 0:l[0])==null?void 0:u.name),{color:r,size:o}=ie.getColorAndSizeFromSkuName(t,Ce.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:o}}},Bd=e=>{var l,u;const{price:t,listPrice:r,installments:o}=e,s=t??((l=e.offers)==null?void 0:l.lowPrice)??0,i=r??((u=e.offers)==null?void 0:u.highPrice)??0,a=i?i-s:0,c=a%1===0?a:Number(a.toFixed(2));return{...t&&{price:s??i},...i&&{list_price:i,discount:c},...o&&{installments:o==null?void 0:o.count,installment_value:o==null?void 0:o.value},item_currency:Ce.configs.currency}},Ca=()=>{const[e,t]=va(),[r,o]=e.split("-"),s=r.includes("shop")||r.includes("sale")?r:"";return{page_category:s&&o?o:"",page_departament:s,id:t,name:e}},zd=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:Ce,findDataInPersistedData:xa,getAvailablesSizes:_a,getCategories:Md,getPageCategoryAndDepartmentFromSlug:Ca,getPersistedData:ba,getProductListInfoFromHead:va,pushDatalayer:Ve,updatePersistedData:so},Symbol.toStringTag,{value:"Module"})),Sa=x.createContext({}),Fd=({children:e,evtFunctionsConfigs:t})=>{const r=x.useRef({}),o=x.useRef(null),s=x.useRef(null),i=x.useRef({}),a=x.useRef({trigger:!1,index:0}),c=({functionKey:p,data:h,callBack:d,timeout:f=100})=>{window.dataLayer||(window.dataLayer=[]),Ce.configs=t;try{typeof Ce[p]=="function"&&setTimeout(()=>{var m;h.promotionInfo=r.current,(m=s.current)!=null&&m.item_list_name&&(h.itemList=s.current),Ce[p](h,d)},f)}catch(m){Ve({event:"error_event",data:{error_message:(m==null?void 0:m.message)??m}})}},l=({content:p})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:p.replace("::",":")}}})},u=({updatePromotionRef:p,promotion:h,index:d})=>{p&&(r.current={...h}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...h,...d!==void 0&&{index:d}}}}})};return n.jsx(Sa.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:o,itemListRef:s,cartProductsFullDataRef:i,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},ge=()=>x.useContext(Sa),ja=x.createContext({}),qd=({children:e,productData:t,isKit:r,PDP_INFO:o,NAME_SPLIT_SYMBOL:s,TEXTURE_IMAGE:i})=>{var T,H;const{sendDataLayerEvent:a,triggerSelectItemEventRef:c}=ge(),{productId:l,productName:u,items:p,items:[{images:h,Videos:d}],description:f,["Composição"]:m="",productReference:_,categories:[y]}=t,{getAvailableProductTag:b}=jt(),j=b(Object.entries(t.clusterHighlights).map(U=>({id:U[0],name:U[1]}))),v=y.slice(1,-1).split("/"),{installments:S,price:E,listPrice:R,sizes:C,allSizesAvailable:A}=ie.getSkuInfos({items:p,NAME_SPLIT_SYMBOL:s}),O=ie.getThumbImage({images:h,TEXTURE_IMAGE:i}),w=[{label:`${o.product.description}`,value:"description",content:f},{label:`${o.product.materiais}`,value:"composition",content:m}],N=((H=ie.getColorAndSizeFromSkuName((T=t.items)==null?void 0:T[0].name,s))==null?void 0:H.color)??t["Cores Filtráveis"][0]??"",I=()=>({commonData:{...t,sizes:C,price:E,listPrice:R,installments:S},customData:{installments:S==null?void 0:S.count,installment_value:Number(S==null?void 0:S.value).toFixed(2)}}),B=({sku:U,size:q})=>{const{commonData:G,customData:W}=I();a({functionKey:"productEvents",data:{event:"view_item",commonData:G,customData:{...W,...U&&{item_sku:U},...q&&{item_variant2:q}}}})};return x.useEffect(()=>{if(c.current.trigger){const{commonData:U,customData:q}=I();a({functionKey:"productEvents",data:{event:"select_item",commonData:U,customData:{...q,index:c.current.index}}}),c.current.trigger=!1}B({})},[]),n.jsx(ja.Provider,{value:{productData:t,productId:l,productName:u,productReference:_,tag:j,items:p,sizes:C,allSizesAvailable:A,installments:S,price:E,listPrice:R,thumbImage:O,images:h,video:d[0],descriptionContent:w,breadcrumbList:v,isKit:r,colorName:N,handleViewItemEvent:B},children:e})},Eo=()=>{const e=x.useContext(ja);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},Hd=()=>{const[e,t]=x.useState(null);return[e,async o=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(o),t(o),!0}catch(s){return console.warn("Copy failed",s),t(null),!1}}]},Ud=()=>{x.useEffect(()=>{const e=t=>{t.preventDefault()};return document.addEventListener("gesturestart",e),document.addEventListener("gesturechange",e),document.addEventListener("dblclick",e),document.addEventListener("wheel",t=>{t.ctrlKey&&e(t)}),()=>{document.removeEventListener("gesturestart",e),document.removeEventListener("gesturechange",e),document.removeEventListener("dblclick",e),document.removeEventListener("wheel",e)}},[])},Wd=typeof window>"u",Vd=(e,t)=>{const[r,o]=x.useState(()=>{if(Wd)return null;const i=localStorage.getItem(e);return i===null?t:JSON.parse(i||"{}")});return x.useEffect(()=>{const i=a=>{a.storageArea===localStorage&&a.key===e&&o(JSON.parse(a.newValue))};return window.addEventListener("storage",i),()=>{window.removeEventListener("storage",i)}},[e,t]),[r,i=>{o(a=>{const c=typeof i=="function"?i(a):i;return localStorage.setItem(e,JSON.stringify(c)),c})}]};function Ea(e,t,r){const[o,s]=x.useState(!1),{threshold:i}=r||{};return x.useEffect(()=>{if(!e.current)return()=>null;let a=null;const c=new IntersectionObserver(([l])=>{if(r!=null&&r.delay){a&&clearTimeout(a),a=setTimeout(()=>{s(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},r.delay);return}s(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},{threshold:i||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),o}const Gd=({callback:e,onEnterViewportOnce:t,options:r})=>{const o=x.useRef(null);return x.useEffect(()=>{const s=o.current;if(!s)return;const i=new IntersectionObserver(([a])=>{a.isIntersecting&&typeof e=="function"&&(e(),t&&(i.unobserve(s),i.disconnect()))},r);return i.observe(s),()=>{t&&i.unobserve(s),i.disconnect()}},[e,t,r]),{element:o}},Kd=({defaultScale:e=1,maxScale:t=3})=>{const r=x.useRef(null),o=x.useRef(null),[s,i]=x.useState(e),a=x.useRef(0),c=x.useRef({x:0,y:0}),l=x.useRef({x:0,y:0}),u=()=>{if(!o.current||!r.current)return{minX:0,maxX:0,minY:0,maxY:0};const f=r.current.getBoundingClientRect(),m=o.current.children[0].getBoundingClientRect(),_=m.width,y=m.height,b=Math.min(0,(f.width-_)/2),j=Math.max(0,(_-f.width)/2),v=Math.min(0,(f.height-y)/2),S=Math.max(0,(y-f.height)/2);return{minX:b,maxX:j,minY:v,maxY:S}},p=(f,m,_)=>{if(o.current){const y=o.current.children[0];y&&requestAnimationFrame(()=>{y.style.transform=`translate(calc(-50% + ${f}px), calc(-50% + ${m}px)) scale(${_})`})}},h=x.useCallback(f=>{const{minX:m,maxX:_,minY:y,maxY:b}=u(),{x:j,y:v}=l.current,S=Math.max(m,Math.min(_,j)),E=Math.max(y,Math.min(b,v));if(f.touches.length>1){const R=f.touches[0],C=f.touches[1],A=R.pageX-C.pageX,O=R.pageY-C.pageY;a.current=Math.sqrt(A*A+O*O),c.current={x:(R.pageX+C.pageX)/2,y:(R.pageY+C.pageY)/2}}else f.touches.length===1&&(c.current={x:f.touches[0].pageX-S,y:f.touches[0].pageY-E})},[s,l]),d=x.useCallback(f=>{if(!o.current||!r.current)return;const{minX:m,maxX:_,minY:y,maxY:b}=u();if(f.touches.length>1){f.preventDefault();const j=f.touches[0],v=f.touches[1],S=j.pageX-v.pageX,E=j.pageY-v.pageY,R=Math.sqrt(S*S+E*E);if(!a.current){a.current=R;return}const C=R/a.current,A=Math.max(1,Math.min(t,s*C));if(s===A)return;i(A);const O=(j.pageX+v.pageX)/2,w=(j.pageY+v.pageY)/2;let N=O-c.current.x,I=w-c.current.y;N=Math.max(m,Math.min(_,N)),I=Math.max(y,Math.min(b,I)),l.current={x:N,y:I},a.current=R,p(N,I,A)}else if(f.touches.length===1){const j=f.touches[0].pageX,v=f.touches[0].pageY;let S=j-c.current.x,E=v-c.current.y;S=Math.max(m,Math.min(_,S)),E=Math.max(y,Math.min(b,E)),l.current={x:S,y:E},p(S,E,s)}},[t,s]);return x.useEffect(()=>(document.addEventListener("touchstart",h),document.addEventListener("touchmove",d,{passive:!1}),()=>{document.removeEventListener("touchstart",h),document.removeEventListener("touchmove",d)}),[d,h]),{containerRef:r,imgRef:o,scale:s}},Xd={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},De=Promise.resolve(!1),io={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>De,addItem:()=>De,addSellerCode:()=>De,addMarketingData:()=>De,emptyCart:()=>{},removeItem:()=>De,setIsOpen:()=>{},shipping:()=>De,shippingUpdate:()=>De,toggleServiceToProduct:()=>De,updateItemQuantity:()=>De,insertProfileEmail:()=>De,setRecentlyAddedProducts:()=>{}},wo=e=>e===0,wa=(e,t)=>{if(!e||e.length===0)return[];let r="";const o=[],s=e.match(/\d+/g)??[];for(const i of s){const a=t[Number(i)];a&&(r+=(r?"/":"")+a,o.push(r))}return o},Ra=(e,t)=>{const{availability:r,additionalInfo:{brandName:o},bundleItems:s,id:i,uniqueId:a,detailUrl:c,ean:l,imageUrl:u,name:p,listPrice:h,quantity:d,price:f,priceDefinition:m,productCategories:_,productCategoryIds:y,productId:b,refId:j,seller:v,referenceId:S,offerings:E,productRefId:R,skuName:C,sellingPrice:A}=e;return{availability:r,bundleItems:s,referenceId:S,productRefId:R,id:i,ean:l,uniqueId:a,itemOffered:{additionalProperty:[],brand:{name:o},categories:wa(y,_),categoriesIds:y,gtin:j,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:u}],name:p,isVariationOf:{name:p,productGroupID:b},sku:i,slug:c,skuName:C},listPrice:h,quantity:d,offerings:E,price:f,priceDefinition:m,sellingPrice:A,seller:v}},Aa=(e,t)=>{const r=e.map(o=>({id:o.id,quantity:o.quantity,seller:o.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},Pa=(e,t)=>{const r=e.find(o=>o.id===t);if(r){const o=e.map((s,i)=>{var a,c;return{id:((a=s.itemOffered)==null?void 0:a.sku)??"",index:i,quantity:(r==null?void 0:r.id)===((c=s.itemOffered)==null?void 0:c.sku)?0:s.quantity,seller:s.seller??""}});return{updateItems:o,filterItems:o.filter(s=>s.id!==t)}}return{updateItems:[],filterItems:[]}},Ia=(e,t,r)=>e.filter(o=>o.availability!=="withoutStock"&&o.availability!=="https://schema.org/OutOfStock").map((o,s)=>{var i,a;return o.id===t?{id:o.id,index:s,quantity:r,seller:o.seller,sku:((i=o.itemOffered)==null?void 0:i.sku)??""}:{id:o.id,index:s,quantity:o.quantity,seller:o.seller,sku:((a=o.itemOffered)==null?void 0:a.sku)??""}}),ao=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),Yd=(e,t)=>{var r;return Array.isArray(e)?(((r=e==null?void 0:e.find(o=>{var s;return((s=o==null?void 0:o.id)==null?void 0:s.toLowerCase())===t}))==null?void 0:r.value)??0)/100:0},Qd=e=>{const t=e.reduce((s,i)=>{const a=wo(i.price)?0:i.quantity;return s+a},0),r=e.reduce((s,i)=>s+i.price*i.quantity,0),o=e.reduce((s,i)=>s+i.listPrice*i.quantity,0);return{totalItems:t,total:r,subTotal:o}},Zd=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(wo(r==null?void 0:r.price)?0:r.quantity),0):0,Na=(e,t)=>{const{items:r,itemMetadata:o,marketingData:s,messages:i,orderFormId:a,openTextField:c,paymentData:l,shippingData:u,totalizers:p}=e;return{id:a,itemMetadata:o,items:Array.isArray(r)?r.map(h=>Ra(h,t)):[],marketingData:s,messages:i,openTextField:c,paymentData:l,shippingData:u,totalizers:p}},Ta=(e,t)=>{const r=e.find(o=>o.id===t);return r?r.availability==="unavailableItemFulfillment":!1},Jd=(e,t)=>{const r=e.sku,o=e.isVariantOf.hasVariant.find(s=>s.sku===r);return o?o.name.split(t)[1]:"--"},at=(e,t,r=!1)=>!e&&t!==""?{code:300,value:t,statusOk:r}:e===t?{code:200,value:t,statusOk:r}:{code:400,value:t,statusOk:r},ef=(e,t)=>{const r=new Set;return[e,...t].filter(o=>!r.has(o)&&r.add(o),r)},Oa=(e,t)=>t&&Array.isArray(t)&&t.find(o=>o.id===e)?Promise.resolve(e):Promise.resolve(!1),ka=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),Ma=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},La=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},Da=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(o=>o.id===r.id)):[],$a=async(e,t)=>e.then(r=>[...r??[],...t??[]]),Te=async(e,t,r,o)=>{const{priority:s="auto",body:i}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:s,method:"POST",body:JSON.stringify(i)}).then(async a=>{const c=await a.json();return r?c:Na(c,o)})},Ba=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),za=e=>[...Array.isArray(e)?e:[e],"faststore"],Fa=e=>{const t=e.get("utm_source")||Xe("utm_source"),r=e.get("utm_campaign")||Xe("utm_campaign"),o=e.get("utm_medium")||Xe("utm_medium"),s=e.get("utmi_cp")||Xe("utmi_cp"),i=e.get("utmi_pc")||Xe("utmi_pc"),a=e.get("utmi_p")||Xe("utmi_p");return{...t&&{utmSource:t},...o&&{utmMedium:o},...r&&{utmCampaign:r},...s&&{utmiCampaign:s},...i&&{utmiPart:i},...a&&{utmipage:a}}},Xe=e=>{if(!e||typeof window>"u")return;const t=window.location.href;e=e.replace(/[[\]]/g,"\\$&");const r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),o=r.exec(t);return o?o[2]?decodeURIComponent(o[2].replace(/\+/g," ")):"":null},tf=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:Xd,addItemOrder:Aa,addNotification:Ba,createItemOrder:Ra,fetchCartAPI:Te,findItemIndex:ao,findOptions:Da,findTotalizerValue:Yd,getCategories:wa,getCode:at,getQuantity:La,getRemoveId:Oa,getSize:Jd,getTotalItems:Zd,getTotalizer:Qd,getUrlParameter:Xe,getValue:ka,initialState:io,isGift:wo,marketingTagsBuilder:za,mergeOptionsPromise:$a,mountMarketingData:Fa,orderFormValues:Na,promiseDefault:De,removeQuantity:Pa,updateItemSellerExternal:Ta,updateOrderFormPromise:Ma,updateQuantity:Ia,wishlistArray:ef},Symbol.toStringTag,{value:"Module"})),rf=()=>{const e=async(f,m)=>Te("/api/checkout/order-form/coupon",{body:{orderFormId:f,coupon:m}}),t=async(f,m)=>{if(m){const _=m.includes(" - ")?m.split(" - ")[0]:m,y=await Te("/api/checkout/order-form/seller-code",{body:{orderFormId:f,sellerCode:_}},!0);return y instanceof Object&&"nome"in y&&(y==null?void 0:y.status)===!0?Te("/api/checkout/order-form/attachments",{body:{orderFormId:f,sellerCode:_,sellerName:y.nome}}).then(j=>({...j,openTextField:{...(j==null?void 0:j.openTextField)??{},statusOk:!0}})):Promise.resolve({paymentData:null,openTextField:{statusOk:!1,value:_}})}else return Te("/api/checkout/order-form/attachments",{body:{orderFormId:f,sellerCode:"",sellerName:""}})},r=async(f,m)=>Te("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:f,marketingData:m}}),o=async(f,m,_)=>Te("/api/checkout/order-form/items",{body:{orderFormId:f,orderItems:Aa(m,_)}}),s=async(f,m,_,y=!1)=>Te("/api/checkout/order-form/offerings",{body:{id:m,itemIndex:_,orderFormId:f,remove:y}}),i=async f=>Te("/api/checkout/order-form/items/remove-all",{body:{orderFormId:f}}),a=async(f,m="low")=>Te("/api/checkout/order-form",{priority:m,body:{orderFormId:f??""}}),c=async(f,m)=>Te("/api/checkout/order-form/profile",{body:{orderFormId:f,email:m}}),l=async(f,m,_)=>{const y=Pa(m,_);return Te("/api/checkout/order-form/items/update",{body:{orderItems:y.updateItems,orderFormId:f}})},u=async(f,m,_)=>Te("/api/checkout/order-form/shipping",{body:{orderFormId:f,country:_,postalCode:m}}),p=async(f,m,_)=>Te("/api/checkout/order-form/shipping/update",{body:{orderFormId:f,options:m,selectedAddresses:_}}),h=async(f,m,_,y)=>{const b=Ia(m,_,y);return Te("/api/checkout/order-form/items/update",{body:{orderFormId:f,orderItems:b}})};return{addCoupon:e,addItem:o,addSellerCode:t,addMarketingData:r,giftItem:s,emptyCart:i,getOrderForm:a,insertProfileEmail:c,removeItem:l,shipping:u,shippingUpdate:p,updateItemQuantity:async(f,m,_,y,b)=>h(f,m,_,y).then(j=>j&&Array.isArray(j.items)?Ta(j.items,_)?h(f,m,_,b):j:!1)}},co="soma::cart",vt="soma::options",ut=tt.create((e,t)=>{const r=rf(),o=async(s,i,a)=>{e({loading:!0});const c=await Ma(s);if(typeof c!="boolean"){e({...c});const l=await $a(st.get(vt),a);return st.set(vt,l),ka(c,i).finally(()=>e({loading:!1,options:l}))}return De};if(typeof window<"u"){const s=async i=>{if(i){const a=await st.get(vt).then(u=>Da(u,i.items));st.set(co,i),st.set(vt,a),e({...i,options:a});const c=new URLSearchParams(window.location.search),l=c.get("utm_campaign")||c.get("utmi_campaign")||"";l&&o(()=>r.addSellerCode(t().id,l.toUpperCase()),"openTextField")}};return st.get(co).then(i=>r.getOrderForm(i?i.id:"").then(s)),{...io,addCoupon:async i=>o(()=>r.addCoupon(t().id,i),"marketingData"),addItem:(i,a)=>{o(()=>r.addItem(t().id,t().items,i),"items",a)},addSellerCode:async i=>o(()=>r.addSellerCode(t().id,i),"openTextField"),addMarketingData:async i=>o(()=>r.addMarketingData(t().id,i),"marketingData"),emptyCart:()=>{o(()=>r.emptyCart(t().id))},removeItem:async i=>{const a=await o(()=>r.removeItem(t().id,t().items,i),"items");return Oa(i,a)},shipping:async(i,a="BR")=>o(()=>r.shipping(t().id,i??"",a),"shippingData"),shippingUpdate:async i=>o(()=>{var a;return r.shippingUpdate(t().id,i,(a=t().shippingData)==null?void 0:a.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(i,a,c)=>o(()=>r.giftItem(t().id,i,a,c),"items"),updateItemQuantity:async(i,a,c)=>{const{id:l,items:u}=t();return o(()=>{var p;return r.updateItemQuantity(l,u,i,a,((p=u.find(h=>h.id===i))==null?void 0:p.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async i=>o(()=>r.insertProfileEmail(t().id,i),"clientProfileData"),setIsOpen:i=>e({isOpen:i})}}return io}),nf=()=>ut(e=>e),qa=tt.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(o=>Ba(o,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(o=>o.id!==t)}))}})),Ro=()=>qa(e=>e.notifications),Ao=()=>qa(e=>e.actions),of=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:vt,KEY_INDEXED_STORE:co,useCartStore:ut,useGetCartStoreState:nf,useGetNotificationActions:Ao,useGetNotificationsStore:Ro},Symbol.toStringTag,{value:"Module"})),sf=6e3,Ha=x.createContext({}),Ua=({children:e,...t})=>{const{items:r}=ut(),[o,s]=x.useState([]),i=x.useRef(null),a=x.useMemo(()=>Array.isArray(o)&&o.length>0?o.map(c=>r.find(l=>l.id===c.id)).filter(c=>c!==void 0):[],[r,o]);return x.useEffect(()=>{o.length&&(clearTimeout(i.current??0),i.current=setTimeout(()=>{s([])},sf))},[o]),n.jsx(Ha.Provider,{value:x.useMemo(()=>({...t,setRecentlyAdded:s,recentlyAddedProducts:a}),[t,s,a]),children:e})},Et=()=>{const e=x.useContext(Ha);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class Wa{constructor(){yr(this,"events",{});yr(this,"prevData",{})}subscribe(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),()=>{this.events[t]=this.events[t].filter(o=>o!==r)}}publish(t,r){this.events[t]&&this.events[t].forEach(o=>{this.prevData[t]=r,o(r)})}}const Va=x.createContext({}),af=({children:e,headerConfigs:t,pathname:r,...o})=>{const[s,i]=x.useState(!0),a=r==="/",c=x.useRef(new Wa),l=h=>h?{headerVariant:t.home_default_variant,bannerVariant:t.home_default_variant,position:t.home_default_position}:{headerVariant:t.default_variant,bannerVariant:t.default_variant,position:t.default_position},u=l(a),p=x.useRef(u);return x.useEffect(()=>{var f;const h=((f=new URLSearchParams(window.location.search))==null?void 0:f.toString())??"";(h.includes("utm_")||h.includes("gclid"))&&(oo.get("lastMedias")||oo.set("lastMedias",`${h}`,{expires:1/24}));const d=()=>{const m=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,_=window.innerWidth<1024||!!m.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);s!==_&&i(_)};return d(),window.addEventListener("resize",d,{passive:!0}),()=>window.removeEventListener("resize",d)},[s]),x.useEffect(()=>{const h=l(a);c.current.publish("header:change_variant",h.headerVariant),c.current.publish("header:change_position",h.position),p.current=h},[a]),n.jsx(Va.Provider,{value:{isMobile:s,mediatorRef:c,currentHeaderConfigsRef:p,...o},children:n.jsx(Ua,{children:e})})},be=()=>x.useContext(Va),Ga=x.createContext({}),cf=({children:e,...t})=>n.jsx(Ga.Provider,{value:{...t},children:e}),Re=()=>x.useContext(Ga),rt=(e,t)=>tt.create(r=>{const o=()=>r({value:e});return t&&t instanceof Set&&t.add(o),{value:e,actions:{setValue:s=>r({value:s}),reset:o}}}),St={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},wt=new Set,lf=()=>{wt.forEach(e=>{e()})},Ka=tt.create((e,t)=>{const r=()=>e({value:St.category});return wt.add(r),{value:St.category,actions:{reset:r,setValue:o=>e(()=>({value:o})),updateValue:o=>{t().value!==o&&e({value:o})}}}}),sr=()=>Ka(e=>e.value),Ke=()=>Ka(e=>e.actions),Xa=rt(St.menuMobileIsOpen,wt),Po=()=>Xa(e=>e.value),nt=()=>Xa(e=>e.actions),Ya=rt(St.searchModalIsOpen,wt),uf=()=>Ya(e=>e.value),Io=()=>Ya(e=>e.actions),Qa=rt(St.userMenuIsOpen,wt),Za=()=>Qa(e=>e.value),Rt=()=>Qa(e=>e.actions),df=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:lf,useActionsHeaderCategory:Ke,useActionsMenuMobileIsOpen:nt,useActionsSearchModalIsOpen:Io,useActionsUserMenuIsOpen:Rt,useGetHeaderCategoryStore:sr,useGetMenuMobileIsOpen:Po,useGetSearchModalIsOpen:uf,useGetUserMenuIsOpen:Za},Symbol.toStringTag,{value:"Module"})),dt={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},mt=new Set,ff=()=>{mt.forEach(e=>{e()})},Ja=tt.create(e=>{const t=()=>e({value:dt.selectedSkuInfo});return mt.add(t),{value:dt.selectedSkuInfo,actions:{setValue:r=>e(o=>({value:{...o,...r}})),reset:t}}}),pf=()=>Ja(e=>e.value),mf=()=>Ja(e=>e.actions),ec=rt(dt.openLetMeKnow,mt),hf=()=>ec(e=>e.value),gf=()=>ec(e=>e.actions),tc=rt(dt.showNotify,mt),yf=()=>tc(e=>e.value),_f=()=>tc(e=>e.actions),rc=rt(dt.showBottomNavigation,mt),vf=()=>rc(e=>e.value),bf=()=>rc(e=>e.actions),nc=rt(dt.openMeasurements,mt),xf=()=>nc(e=>e.value),Cf=()=>nc(e=>e.actions),Sf=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:ff,useActionsPDPOpenLetMeKnow:gf,useActionsPDPOpenMeasurements:Cf,useActionsPDPSelectedSkuInfo:mf,useActionsPDPShowBottomNavigation:bf,useActionsPDPShowNotify:_f,useGetPDPOpenLetMeKnow:hf,useGetPDPOpenMeasurements:xf,useGetPDPSelectedSkuInfo:pf,useGetPDPShowBottomNavigation:vf,useGetPDPShowNotify:yf},Symbol.toStringTag,{value:"Module"})),ns={feedback:{active:!1,action:"add"},list:[]},No=tt.create((e,t)=>({value:ns,actions:{reset:()=>e({value:ns}),setValue:o=>e(()=>({value:o})),toggleProduct:o=>e(s=>s.value.list.includes(o)?{value:{feedback:{active:!0,action:"remove"},list:s.value.list.filter(i=>i!==o)}}:{value:{feedback:{active:!0,action:"add"},list:[...s.value.list,o]}}),updateList:o=>e(s=>({value:{...s.value,list:o}})),resetFeedback:()=>e(o=>({value:{...o.value,feedback:{active:!1,action:""}}}))}})),oc=()=>No(e=>e.value.list),jf=()=>No(e=>e.value.feedback),sc=()=>No(e=>e.actions),Ef=Object.freeze(Object.defineProperty({__proto__:null,useActionsWishlistStore:sc,useGetWishlistFeedbackStore:jf,useGetWishlistStore:oc},Symbol.toStringTag,{value:"Module"})),ic=x.createContext({}),wf=({children:e,headerData:t,...r})=>{var p,h;const o=x.useRef(null),s=x.useRef(null),i=x.useRef(null),a=x.useRef(null),c=x.useRef(null),{mediatorRef:l,currentHeaderConfigsRef:u}=be();return(p=l.current)==null||p.subscribe("header:change_variant",d=>{var b,j,v;if(d&&u.current&&(u.current.bannerVariant=d),!o.current)return;const m=document.body.scrollTop>0,_=o.current.getAttribute("data-interactiveVariant"),y=m?_:d??((b=u.current)==null?void 0:b.bannerVariant)??"default";y!==((j=u.current)==null?void 0:j.headerVariant)&&(o.current.setAttribute("data-bottomdivider",String(m)),o.current.setAttribute("data-variant",String(y)),(v=l.current)==null||v.publish("herobanner:change_controllers_variant",y),u.current&&(u.current.headerVariant=y))}),(h=l.current)==null||h.subscribe("header:change_position",d=>{o.current&&(o.current.style.position=d)}),x.useEffect(()=>{const d=new AbortController,f=g.helpers.throttle(()=>{var _;return(_=l.current)==null?void 0:_.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",f,{passive:!0,signal:d.signal});const m=_=>{var b;(b=_.target.closest("a"))==null||b.blur()};return o.current&&(o.current.addEventListener("click",m,{signal:d.signal}),o.current.addEventListener("touchend",m,{signal:d.signal})),()=>{d.abort()}},[]),n.jsx(ic.Provider,{value:{headerData:t,structureRef:s,rootRef:o,tipbarRef:i,userMenuMobileRef:a,userMenuDesktopRef:c,...r},children:e})},je=()=>x.useContext(ic),ac=x.createContext({}),cc=({children:e})=>{const t=x.useRef(null),r=x.useRef(null),o=Po(),s=x.useCallback(()=>{var i;{const a=(i=t.current)==null?void 0:i.querySelector("dialog");if(a){a.dataset.animation="out";const c=a.children[0];c.dataset.animation="out"}}},[]);return x.useEffect(()=>{var i;if(o)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const a=(i=r.current)==null?void 0:i.querySelector("dialog");if(a){a.dataset.animation="out";const c=a.children[0];c.dataset.animation="out"}}},[o]),x.useEffect(()=>{r.current=document.body},[]),n.jsx(ac.Provider,{value:{bodyRef:t,handleCloseSubMenu:s,documentBodyRef:r},children:e})},At=()=>x.useContext(ac),Rf=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Af=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),i=e!=null&&e.parentElement?Rf(e==null?void 0:e.parentElement):0;return{left:o.left+o.width/2-(s.width+i),top:o.top+o.height+r}},lc=x.createContext({}),uc=({children:e,delay:t=600,gap:r=20,...o})=>{const[s,i]=x.useState(!1),a=x.useRef(null),[c,l]=x.useState(!1),[u,p]=x.useState({left:0,top:0}),h=x.useCallback(()=>{l(!0),typeof window<"u"&&(a.current=window.setTimeout(()=>{i(!1),l(!1)},t))},[l,i,t]);return x.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),f=window.document.querySelector("#add-to-cart--tooltip");if(d&&f){const{left:m,top:_}=Af(f,d,r??0);p({left:m,top:_}),l(!1)}},[r,s]),n.jsx(lc.Provider,{value:x.useMemo(()=>({...o,...u,handleClose:h,isLeaving:c,isOpen:s,setIsOpen:i,setIsLeaving:l}),[o,u,h,c,s,i,l]),children:e})},ot=()=>{const e=x.useContext(lc);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},dc=x.createContext({}),Pf=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const o=ut(),{setRecentlyAdded:s}=Et(),i=x.useRef(""),a=Ro(),{addNotification:c,removeNotification:l}=Ao(),{addCoupon:u,addItem:p,addSellerCode:h,addMarketingData:d,emptyCart:f,isOpen:m,removeItem:_,shipping:y,shippingUpdate:b,toggleServiceToProduct:j,updateItemQuantity:v}=o;x.useEffect(()=>{const q=oo.get("lastMedias");if(o.id&&q&&i.current!==q){i.current=q;const G=new URLSearchParams(q),W=Fa(G);d(W)}},[o,d]);const S=x.useCallback(async(q,G)=>(G==="coupon"?u(q):h(q)).then(z=>{if(typeof z!="boolean"&&z instanceof Object){if(G==="seller"&&"value"in z){const{statusOk:Z,value:P}=z,k=String(P??"").split(" - ");return at((k==null?void 0:k[0])??"",q,!!Z)}return at(String(z.coupon),q,!0)}return at("","")}).catch(()=>Promise.resolve({code:400})),[u,h]),E=x.useCallback((q,G,W)=>{const{id:z}=q;v(z,G,W)},[v]),R=x.useCallback((q,G,W=!1)=>{if(!q)return;const{id:z}=q,Z=ao(o.items,z);if(Z!==-1&&!W){const P=Number(o.items[Z].quantity),k=o.items[Z]?P+1:1;E(q,k,G)}else p({id:z,quantity:(q==null?void 0:q.quantity)??1,seller:q.seller});m||s(P=>[...P,q])},[p,E,o.items,m,s]),C=x.useCallback((q,G)=>{if(!q||!Array.isArray(q))return;s(z=>[...z,...q]);const W=q.map(z=>{const{id:Z,quantity:P,seller:k}=z,D=ao(o.items,Z),K=La(P??1,D);return{id:Z,quantity:K,seller:k}});p(W,G)},[p,o.items,s]),A=x.useCallback(async(q,G,W)=>q?_(q).then(()=>(c(G??`${t}`,W),at(q,q))):Promise.resolve(at("","Product id required")),[c,_]),O=x.useCallback(()=>{o.items.length>0&&f()},[f,o.items]),w=x.useCallback((q,G="BRA")=>y(q,G),[y]),N=x.useCallback(q=>{q&&b(q)},[b]),I=x.useCallback(async(q,G,W)=>{const z=o.items.findIndex(P=>P.id===q);return o.items[z]&&z>=0?j(G,z,W??!1):!1},[o.items,j]),B=x.useCallback(async(q,G)=>v(q,G).then(W=>{if(Array.isArray(W)){const z=W.find(Z=>Z.id===q);if(z&&(z==null?void 0:z.quantity)<G)return String(z.quantity)}return!1}),[v]),T=x.useCallback(async()=>{await d({...o.marketingData,coupon:""})},[d,o.marketingData]),H=x.useCallback(async()=>{await d({...o.marketingData,utmiCampaign:"",utmCampaign:"",utmSource:"",utmMedium:""})},[d,o.marketingData]),U=x.useCallback(async()=>{await y("","BRA")},[y]);return n.jsx(dc.Provider,{value:x.useMemo(()=>({...r,addCouponSeller:S,addToCart:R,addItemsToCart:C,cartStore:o,notifications:a,clearCart:O,addNotification:c,isOpen:o.isOpen,removeNotification:l,removeToCart:A,setIsOpen:o.setIsOpen,shipping:w,shippingUpdateOption:N,toggleGiftItemCart:I,updateItemQuantity:B,removeCoupon:T,removeSellerCode:H,removeCEP:U}),[r,S,R,C,a,O,c,o,l,A,w,N,I,B,T,H,U]),children:e})},we=()=>{const e=x.useContext(dc);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},fc=x.createContext({}),To=({children:e,fetch:t})=>{const r=x.useRef(!0),[o,s]=x.useState(null),[i,a]=x.useState(!1);return x.useEffect(()=>{(async()=>{r.current=!0;try{const l=await t();if(!l.ok)throw new Error("Failed to fetch data");const u=await l.json();s(u.data),r.current=!1}catch{r.current=!0,a(!0)}})()},[t]),n.jsx(fc.Provider,{value:x.useMemo(()=>({data:o,isLoading:r.current??!1,isError:i}),[o,i,r]),children:e})},Oo=()=>{const e=x.useContext(fc);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},pc=x.createContext({}),mc=({children:e,sort:t,state:r,count:o,collectionId:s,brand:i,CONSTANTS:a})=>{const c=x.useMemo(()=>{var l;return s?[{key:"productclusterids",value:s.toString()}]:i?[{key:"brand",value:i}]:(l=r.base)!=null&&l.length?r.base.slice(1).split("/").map((u,p)=>({key:`category-${p+1}`,value:u})):[]},[r.base,s]);return n.jsx(pc.Provider,{value:x.useMemo(()=>({state:{...r,facets:[...c,...r.facets??[]]},sort:t,count:o??a.ITEMS_PER_PAGE}),[c,o,t,r]),children:e})},ir=()=>{const e=x.useContext(pc);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},yt={placeholder:"Ordernar por",options:{score_desc:"Mais Relevantes",orders_desc:"Mais Vendidos",price_desc:"Maior Preço",price_asc:"Menor Preço",release_desc:"Novidades",discount_desc:"Maior Desconto",name_asc:"De A a Z"}},If={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},Nf="Imagem do produto",os=1,Tf="Sair",Of=e=>e.exit,kf=({ICONS:e,storeConfig:t})=>[{icon:e.person,label:"Minha conta",href:`${t.secureSubdomain}/api/io/account#/profile`,needToBeAuth:!1,deviceShown:"both"},{icon:e.delivery_truck,label:"Meus pedidos",href:`${t.secureSubdomain}/api/io/account#/orders`,needToBeAuth:!1,deviceShown:"both"},{icon:e.favorite_false,label:t.wishlistConfig.label,href:t.wishlistConfig.path,needToBeAuth:!1,deviceShown:"mobile"},{icon:e.help,label:t.termsConfig.label,href:t.termsConfig.path,needToBeAuth:!1,deviceShown:"mobile"}],Mf=(e,t)=>{const r=(t??"").split("@")[0];return e?`Olá${r.length?", ":" "}${r}!`:"Olá!"},Lf=e=>"Seja bem vindo!",hc=x.createContext({}),Df=({children:e,searchParams:t,selectedFacets:r,PLP_SORT_DEFAULT:o})=>{const{data:s,...i}=Oo(),{router:a}=Re(),c=x.useCallback((d,f)=>{if(f){if(d.key.toLocaleLowerCase()==="price"){const m=f.getAll("facets");f.delete("facets"),m.forEach(_=>{const[y]=_.split("/");y!==d.key&&f.append("facets",_)})}f.set("page","1"),f.append("facets",`${d.key}/${d.value}`),a.push(`?${f.toString()}`)}},[a]),l=x.useCallback(()=>{const d=new URLSearchParams;d.set("sort",o),d.set("page","1"),a.push(`?${d.toString()}`)},[a]),u=x.useCallback((d,f)=>{if(!f||!f.has&&!f.has("facets"))return;const m=f.getAll("facets");f.delete("facets"),f.set("page","1"),m.forEach(_=>{const[y,b]=_.split("/");(y!==d.key||b!==d.value)&&f.append("facets",_)}),a.push(`?${f.toString()}`)},[a]),p=x.useCallback(d=>{const f=new URLSearchParams(ie.convertSearchParams(t));for(const[,m]of f.entries()){const[_,y]=m.split("/");if(_===d.key&&y===d.value)return u(d,f)}return c(d,f)},[c,u,t]),h=x.useCallback(d=>{const f=new URLSearchParams(ie.convertSearchParams(t));f.set("sort",d.replace("_",":")),a.push(`?${f.toString()}`)},[a,t]);return n.jsx(hc.Provider,{value:x.useMemo(()=>({...i,breadcrumb:s&&"breadcrumb"in s?s==null?void 0:s.breadcrumb:[],deleteAllFacets:l,facets:s&&"facets"in s?s==null?void 0:s.facets:[],selectedFacets:r,onToggleFacet:p,onSort:h,searchParams:t}),[s,l,h,p,i,r,t]),children:e})},$f=({children:e,searchParams:t,forceUpdate:r,PLP_SORT_DEFAULT:o})=>{const{state:s}=ir();return n.jsx(To,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...s,forceUpdate:r}),priority:"low"}),children:n.jsx(Df,{selectedFacets:(s==null?void 0:s.facets)??[],searchParams:t,PLP_SORT_DEFAULT:o,children:e})})},Bf=()=>{const e=x.useContext(hc);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},gc=x.createContext({}),zf=({children:e})=>{const{data:t,...r}=Oo(),[o,s]=x.useState(0),{sendDataLayerEvent:i}=ge();return x.useEffect(()=>{if(t&&"pagination"in t&&t.products.length>0){i({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:t.products}}});const a=t.pagination.count;a&&Number.isInteger(a)&&s(a)}},[t,i,s]),n.jsx(gc.Provider,{value:x.useMemo(()=>({...r,products:t&&"products"in t?t==null?void 0:t.products:[],pagination:t&&"pagination"in t?t==null?void 0:t.pagination:If,total:o}),[t,r,o]),children:e})},Ff=({children:e,query:t,state:r,selectedFacets:o,forceUpdate:s})=>n.jsx(To,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...r,query:t,forceUpdate:s,facets:o??[]})}),children:n.jsx(zf,{state:r,children:e})}),qf=()=>{const e=x.useContext(gc);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},yc=x.createContext({}),Hf=({children:e,term:t})=>{const[r,o]=x.useState([]),[s,i]=x.useState(!1);return x.useEffect(()=>{if(!t){o([]);return}(async()=>{i(!0);try{const c=await fetch("/api/search/suggestedTerms",{method:"POST",body:JSON.stringify({query:t,locale:"pt-BR"})}),{data:l}=await c.json();o((l==null?void 0:l.searches)||[])}catch(c){console.error("Erro ao buscar sugestões:",c)}})()},[t]),n.jsx(yc.Provider,{value:x.useMemo(()=>({suggestedTerms:r,loading:s,setLoading:i}),[r,s]),children:e})},Uf=({children:e,...t})=>n.jsx(Hf,{...t,children:e}),Wf=()=>{const e=x.useContext(yc);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},_c=x.createContext({searches:[],isLoading:!1,error:null}),Vf=({children:e})=>{const[t,r]=x.useState([]),[o,s]=x.useState(!0),[i,a]=x.useState(null);return x.useEffect(()=>{(async()=>{try{s(!0);const l=await fetch("/api/search/topSearch");if(!l.ok)throw new Error(`Erro ao buscar os dados: ${l.status}`);const u=await l.json();r(u.data.searches||[])}catch(l){a(l instanceof Error?l.message:"Erro desconhecido")}finally{s(!1)}})()},[]),n.jsx(_c.Provider,{value:x.useMemo(()=>({searches:t,isLoading:o,error:i}),[t,o,i]),children:e})},Gf=()=>{const e=x.useContext(_c);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},vc=x.createContext({}),Kf=({children:e,slug:t,searchParams:r,collectionId:o,brand:s,itemsPerPage:i=24,PLP_SORT_DEFAULT:a})=>{const{pathname:c}=Re(),l=x.useRef(""),[u,p]=x.useState(!1),h=x.useMemo(()=>{const f=new URL(c,"http://localhost"),m=Array.isArray(r==null?void 0:r.facets)?r.facets:[(r==null?void 0:r.facets)??""],_=(r==null?void 0:r.page)??"1",y=(r==null?void 0:r.sort)??(o?"":a);return f.searchParams.set("page",String(_)),f.searchParams.set("sort",String(y)),r!=null&&r.query?(f.searchParams.set("query",r.query),f):(f.searchParams.set("base",Array.isArray(t)?t.join("/"):t),f.searchParams.set("facets",m.join(",")),f)},[o,c,r,t]),d=x.useMemo(()=>{if(Array.isArray(r==null?void 0:r.facets))return ie.parseSearchState(h,r.facets);const f=r!=null&&r.facets?[r==null?void 0:r.facets]:[];return ie.parseSearchState(h,f)},[h,r]);return x.useEffect(()=>{l.current!==c&&(l.current=c,window.document.body.scrollTo(0,0))},[c]),n.jsx(vc.Provider,{value:x.useMemo(()=>({openFilters:u,setOpenFilters:p}),[u,p]),children:n.jsx(mc,{CONSTANTS:{ITEMS_PER_PAGE:i},state:x.useMemo(()=>({...d}),[d]),collectionId:o,brand:s,children:e})})},Xf=()=>{const e=x.useContext(vc);if(e===void 0)throw new Error("usePLPContext must be used within a PLPProvider");return e},rr=(e,t)=>{if(e===t)return!0;if(e==null||t==null||typeof e!="object"||typeof t!="object")return!1;if(Array.isArray(e))return!Array.isArray(t)||e.length!==t.length?!1:e.every((s,i)=>rr(s,t[i]));if(Array.isArray(t))return!1;const r=Object.keys(e),o=Object.keys(t);return r.length!==o.length?!1:r.every(s=>Object.prototype.hasOwnProperty.call(t,s)&&rr(e[s],t[s]))},bc=(e,t,r="page")=>Object.keys(t).some(o=>o===r?!1:!rr(t[o],e[o])),lo=async e=>{const t=await fetch("/api/search/product",{method:"POST",body:JSON.stringify(e),priority:"high"});if(!t.ok)throw new Error("[FAILED TO FETCH DATA]");const r=await t.json();return r==null?void 0:r.data},xc=()=>({node:{sku:"",gtin:"",name:"...",description:"",releaseDate:"",slug:"",video:null,categories:[],categoryId:"",categoriesIds:[],id:"skeleton",brand:{name:""},seo:{title:"",description:"",canonical:""},cluster:{generals:[],highlights:[]},availability:{status:!0},breadcrumbList:{itemListElement:[]},image:[{alternateName:"1",url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGNgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII=",keywords:"1"},{alternateName:"10",url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottgAAAABJRU5ErkJggg==",keywords:"10"}],offers:{lowPrice:1,highPrice:0,offers:[{availability:"true",listPrice:0,price:0,priceValidUntil:"",priceCurrency:"BRL",itemCondition:"",quantity:1,seller:{identifier:"1"}}],priceCurrency:"BRL"},isVariantOf:{productGroupID:"",hasVariant:[{additionalProperty:[{name:"Tamanho",value:"...",valueReference:"SPECIFICATION",propertyID:""}],name:"...",offers:{offers:[{availability:"https://schema.org/InStock",listPrice:0,price:0,quantity:1,seller:{identifier:"1"}}]},sku:"1",slug:"1",productId:"1"}],name:"",additionalProperty:[],skuVariants:null},installments:{count:2,value:1}}}),Cc=(e,t,r,o=24)=>{const s=new Set,i=[];if(!Array.isArray(e)||e.length===0)return{taken:s,placedBanners:i};const a=t*o*r;for(const c of e){let l=Number(c.position_grid),u=!1;for(;l<a;){const p=l%r;if(p+c.columns>r){l+=r-p;continue}if(!Array.from({length:c.columns}).some((f,m)=>s.has(l+m))){for(let f=0;f<c.columns;f++)s.add(l+f);i.push(l),u=!0;break}l++}u||console.info(`[PLP INFINITE FAILED BANNER POSITION]: pos=${c.position_grid}, cols=${c.columns}`)}return{taken:s,placedBanners:i}},uo=(e,t,r,o=24)=>{const{placedBanners:s,taken:i}=Cc(e??[],t,r),a=[];let c=0;try{for(;a.length<t*o;)i.has(c)||a.push(c),c++;return{banners:s,products:a}}catch(l){console.info(`[PLP INFINITE FAILED TO GEN POSITIONS]: page=${t}`,l)}return{banners:[],products:a}},er=(e,t,r=24)=>Array.from({length:e},(o,s)=>{const i=s+1;return{loading:e===i,page:i,pagination:t!=null&&t.products.length&&e===i?t==null?void 0:t.pagination:ko(),products:t!=null&&t.products.length&&e===i?t==null?void 0:t.products:Array.from({length:r},()=>xc())}}),Sc=(e,t)=>[...e,{loading:!1,page:t,pagination:ko(),products:[]}],ko=()=>({nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"1",count:1,total:1}),Yf=(e,t,r,o,s)=>{const i=e[e.length-1],a=(i==null?void 0:i.products.length)??s,c=(e.length-1)*s+a-1,l=r[c];return t.filter((u,p)=>{const h=o[p];return h<=l||s>a&&h>l})},jc=(e,t)=>{const r=new Map;for(const s of e){const i=Math.floor(s/t);r.has(i)||r.set(i,[]),r.get(i).push(s)}const o=[];for(const[,s]of r){const i=s[Math.floor(Math.random()*s.length)];o.push(i)}return o},Qf=(e,t)=>{if(!e)return[];const r=e.map((o,s)=>o.video&&o.video!==""?s:null).filter(o=>o);return jc(r,t)},Ec=e=>Array.isArray(e)?e.map((t,r)=>({href:`/${e.slice(0,r+1).join("/")}`,name:t})):[],Zf=Object.freeze(Object.defineProperty({__proto__:null,createBreadcrumb:Ec,createPage:Sc,createPages:er,createPagination:ko,createProduct:xc,deepEqual:rr,fetchPage:lo,getBanners:Cc,getPositions:uo,getProductsWithVideo:Qf,getRandomVideoPerRow:jc,getVisibleBanners:Yf,hasStateChangedExceptPage:bc},Symbol.toStringTag,{value:"Module"})),Jf=50,ep=tt.create((e,t)=>{const r=a=>Math.min(a,Jf),o=async(a,c)=>{const l=r(a.page);try{const u=await lo({...a,page:l});s(l,p=>c?c(p,u):{...p,...u})}catch(u){console.error(`[PDC - SCROLL INFINITE FAILED TO FETCH PAGE ${l}]: ${u}`),s(l,p=>({...p,loading:!1}))}},s=(a,c)=>{e({load:!0,pages:t().pages.map(l=>l.page===a?c(l):l)})},i=async(a,c)=>{await o(a,(l,u)=>(typeof c=="function"&&c(u),{...l,...u,loading:!0}))};return{banners:[],load:!1,pages:[],total:0,positions:[],products:[],createPages:async(a,c,l,u)=>{var h,d,f;const p=r(Number(a==null?void 0:a.page));e({...c,pages:er(p,void 0,u)});try{const m=await lo({...a,page:p});if(m){if(!m.products.length&&((h=m==null?void 0:m.pagination)==null?void 0:h.total)<p){i({...a,page:(d=m==null?void 0:m.pagination)==null?void 0:d.total},l),e({pages:er((f=m==null?void 0:m.pagination)==null?void 0:f.total)});return}typeof l=="function"&&l(m),e({load:!0,pages:er(p,m),total:Number(m.pagination.count)})}}catch(m){console.error(`[PDC - SCROLL INFINITE TO CREATE PAGES]: page ${p} ${m}`)}},addPage:(a,c,l)=>{const{pages:u}=t(),p=r(a==null?void 0:a.page);u.some(h=>h.page===p)||(e({...c,pages:Sc(u,p)}),i(a,l))},updateProducts:(a,c)=>{const l=t().pages.find(u=>u.page===r(a==null?void 0:a.page));l!=null&&l.loading||i(a,c)}}}),tp=(e,t,r,o=0)=>{if(!e.length)return[];let s=0;const i=[];for(let a=0;a<e.length;a+=r){const c=e.slice(a,a+r),l=c.findIndex(u=>{var p;return(p=u.node)==null?void 0:p.video});for(let u=0;u<c.length;u++){const p=a+u,h=o+p,d=t.find(m=>m.position_grid===h+1),f=h+s+1;d&&(s+=d.columns),i.push({position:f,canPlayVideo:u===l})}}return i},rp=(e,t,r)=>{const o=(t-1)*r,s=t*r;return e>=o&&e<=s},wc=e=>{var t;return(t=e==null?void 0:e.map(r=>({disable:ie.disableSKU(r),size:ie.getSKUName(r),skuID:"sku"in r&&r.sku})))==null?void 0:t.filter(r=>r.disable)},np=Object.freeze(Object.defineProperty({__proto__:null,createGridPosAndVideo:tp,getSkusNotify:wc,isPositionInCurrentPage:rp},Symbol.toStringTag,{value:"Module"})),Rc=x.createContext({}),op=({banners:e,children:t,itemsPerPage:r=24,searchParams:o,Notification:s})=>{const{router:i}=Re(),{sendDataLayerEvent:a}=ge(),{isMobile:c}=be(),{state:l}=ir(),{addPage:u,createPages:p,updateProducts:h,...d}=ep(),f=c?8:16,m=c?2:4,_=x.useRef(!1),y=x.useRef(l),[b,j]=x.useState(!1),[v,S]=x.useState(null),[E,R]=x.useState([]),C=x.useCallback(I=>{I&&"pagination"in I&&a({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:I.products}}})},[a]),A=x.useCallback(I=>{if(I.pagination.nextPage===!0){const B=I.page+1,T=uo(e,B,m,r);u({...l,page:B},T,C)}},[u,e,C,m,r,l]),O=x.useCallback(I=>{I.loading===!1&&h({...l,page:I.page},C)},[C,h,l]),w=x.useCallback(I=>{const B=new URLSearchParams(o);I.page!==Number(B.get("page")??1)&&(B.set("page",String(I.page)),i.replace(`?${B.toString()}`,{scroll:!1}))},[i,o]),N=x.useCallback((I,B)=>{const T=B?wc([B]):null;R(I),S(T!=null&&T.length?T[0]:null),j(!0)},[]);return x.useEffect(()=>{const I=!_.current,B=bc(y.current,l),T=uo(e,l.page,m);I?p(l,T,C,r):B&&(p(l,T,C,r),y.current=l),_.current=!0},[e,p,C,m,r,l]),n.jsxs(Rc.Provider,{value:x.useMemo(()=>({...d,addPage:u,addNewPage:A,createPages:p,gap:f,columns:m,handleNotify:N,updatePage:O,updateProducts:h,updateParamPage:w}),[u,A,p,N,f,m,d,O,h,w]),children:[t,n.jsx(s,{notify:b,sku:v,skus:E,setSku:S,setNotify:j})]})},sp=()=>{const e=x.useContext(Rc);if(e===void 0)throw new Error("PLPInfiniteScrollContext must be used within a ScrollInfiniteProvider");return e};function Ac(e){const r=decodeURIComponent(window.document.cookie).split(";");for(const o of r){const[s,i]=o.trim().split("=");if(s===e)return i}}function Mo(e,t,r={}){const s={...{path:"/",expires:new Date(Date.now()+36e5)},...r};let i=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const a in s)s[a]!==void 0&&(i+=`; ${a}`,a==="expires"?i+=`=${s[a].toUTCString()}`:typeof s[a]=="boolean"?i+=`; ${s[a]?"true":"false"}`:i+=`=${s[a]}`);window.document.cookie=i}const ip=()=>{const{sendDataLayerEvent:e}=ge(),{user:t}=ar(),{cartStore:r}=we();return x.useEffect(()=>{if(!t)return;(async()=>{const{userId:s,email:i,firstName:a,lastName:c,phone:l,homePhone:u,postalCode:p,street:h,number:d,city:f,gender:m}=t,_=new TextEncoder().encode(s),y=await crypto.subtle.digest("SHA-256",_),j=Array.from(new Uint8Array(y)).map(v=>v.toString(16).padStart(2,"0")).join("");e({functionKey:"readyEvents",data:{readyData:{user_id:j,email:i,first_name:a,last_name:c,phone:l||u,zip:p,street:h,street_number:d,city:f,gender:m,orderform_id:r==null?void 0:r.id}}})})()},[t,r.id]),null},Pc=x.createContext({amount:null,boxes:null,toExpire:null,loading:!0,logout:()=>null,getCurrentCredits:()=>({credits:0,cashback:0})}),ap=({children:e,AUTH_TOKEN_COOKIE:t})=>{const[r,o]=x.useState({amount:null,boxes:null,toExpire:null,loading:!0}),s=x.useCallback(async()=>{try{await fetch("/api/user",{priority:"low"}).then(c=>c.json()).then(c=>{const{userCredits:l,...u}=c,{wishlist:p,...h}=u;o({amount:l==null?void 0:l.amount,boxes:l==null?void 0:l.boxes,toExpire:l==null?void 0:l.toExpire,user:h,loading:!1,wishlist:(typeof p=="string"?p.split(","):p)??[]})})}catch(c){console.error("my credits request",c),o({...r,loading:!1})}},[o]),i=x.useCallback(()=>{Mo(t),s()},[s]),a=x.useCallback(()=>r.boxes?r.boxes.reduce((c,l)=>l.gift_card_box.refid==="C1643"?(c.cashback+=l.amount,c):(c.credits+=l.amount,c),{cashback:0,credits:0}):{cashback:0,credits:0},[r]);return x.useEffect(()=>{s()},[s]),n.jsxs(Pc.Provider,{value:x.useMemo(()=>({...r,getCurrentCredits:a,logout:i}),[r,a,i]),children:[n.jsx(ip,{}),e]})},ar=()=>{const e=x.useContext(Pc);if(e===void 0)throw new Error("useContext(SessionContext) must be used within a SessionProvider");return e},Ic=x.createContext({gridBanners:void 0,banners:[]}),cp=({children:e,data:t,device:r,SectionZone:o,COMMON_PAGE_COLUMN_GAP_PDC:s})=>{const{isMobile:i}=be(),a=(t==null?void 0:t.sections.filter(h=>h.name!=="List Product Banners"))??[],c=a.slice(0,os),l=a.slice(os,a.length),u=t==null?void 0:t.sections.find(h=>h.name==="List Product Banners"),p=x.useMemo(()=>{var h,d;return((d=(h=u==null?void 0:u.data)==null?void 0:h.banners)==null?void 0:d.map(f=>({...f.banner,columns:f.bannerWidth,position_grid:f.bannerPosition})))??[]},[u]);return i&&r==="mobile"||!i&&r==="desktop"?n.jsxs(Ic.Provider,{value:{gridBanners:u,banners:p},children:[n.jsx(o,{data:c??[]}),n.jsxs(g.Utils.Column,{gap:s,className:g.helpers.classNameConcat("utils-column-modifier"),children:[e,n.jsx(o,{data:l??[]})]})]}):n.jsx(n.Fragment,{})},lp=()=>{const e=x.useContext(Ic);return e===void 0&&console.error("Needs PLPContentContext on parent component"),e},Nc=x.createContext({}),Tc=({children:e,filters:t,PLP_FILTERS:r,...o})=>{var i;const s=(i=t.facets)==null?void 0:i.filter(a=>r.find(c=>c.key===a.key));return n.jsx(Nc.Provider,{value:x.useMemo(()=>({...o,filters:{...t,facets:s}}),[t,s,o]),children:e})},ht=()=>{const e=x.useContext(Nc);if(e===void 0)throw new Error("useFilterContext must be used within a FilterProvider");return e},Oc=x.createContext({product:void 0}),up=({children:e,data:t,productId:r,COMMON_PAGE_COLUMN_GAP:o,SectionZone:s})=>n.jsxs(Oc.Provider,{value:{productId:r},children:[e,n.jsx(g.Utils.Column,{gap:o,className:g.helpers.classNameConcat("utils-column-modifier"),children:n.jsx(s,{data:(t==null?void 0:t.sections)??[]})})]}),dp=()=>{const e=x.useContext(Oc);return e||console.error("use this hook only inside PDPContentProvider hierarchy"),e},fp=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function pp(e,t=1e3){let r=!1;return(...o)=>{r||(e(...o),r=!0,setTimeout(()=>{r=!1},t))}}function mp(e,t=1e3){let r;return(...o)=>{clearTimeout(r),r=setTimeout(()=>{e(...o)},t)}}const kc=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,bt=(e,t)=>Math.floor(t==="days"?e/(1e3*60*60*24):t==="hours"?e%(1e3*60*60*24)/(1e3*60*60):t==="minutes"?e%(1e3*60*60)/(1e3*60):e%(1e3*60)/1e3),hp=e=>{const t=Nd.decodeJwt(e??"");return{email:t.sub,userId:t.userId}},gp=["name","email","phone","date","cpf","cep"],ss={email:/\S+@\S+\.\S+/,name:new RegExp("^\\p{L}+( \\p{L}+)*$","u"),phone:/^\d{10,11}|\(\d{2}\)\s?\d{4,5}-\d{4}$/,date:/^\d{6,8}|^\d{2}\/\d{2}\/\d{2,4}$/,cep:/^\d{5}[-]?\d{3}$/,cpf:/^\d{11}|\d{3}\.\d{3}\.?\d{3,5}\-[\d]{2}$/},Mc=({type:e,input:t,required:r=!1})=>{if(typeof t!="string"||!r&&t===""||!ss[e])return!0;const o=t.trim();return ss[e].test(o)},yp=e=>{const t=/\/(\d+)-\d+-\d+\/(.+?)\./,r=typeof e=="string"?e.match(t):null;return r?r[2].replace(/-/g," "):Nf},_p=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:gp,debounce:mp,getAltTextFromUrl:yp,getAuthenticatedUser:hp,getCookie:Ac,getDaysHoursMinutesSeconds:bt,getMilliSeconds:kc,removeAccentsAndReplaceSpaces:fp,setCookie:Mo,throttle:pp,validateInput:Mc},Symbol.toStringTag,{value:"Module"})),vp=({fields:e})=>{const t={};return{mountedFields:(e==null?void 0:e.reduce((o,s)=>(t[s.master_data_field]="none",{...o,[s.master_data_field]:s}),{}))??{},mountedInputsStatus:t}},bp=({formData:e,mountedFields:t,inputsStatus:r,hasTermsAndConditions:o,checkboxRef:s,setFormStatus:i})=>{let a=!1,c=!1;const l={...r};return o&&!s.current&&(i("unchecked"),a=!0),e.forEach((u,p)=>{var f;if(p==="terms-and-conditions")return;const h=(f=t[p])==null?void 0:f.required;if(h&&!u){l[p]="required",a=!0;return}Mc({type:t[p].type,input:u,required:h})||(l[p]="error",c=!0),typeof u=="string"&&e.set(p,u.toString().trim())}),{hasEmptyFields:a,hasErrors:c,inputStatusToUpdate:l}},Lc=x.createContext({}),Dc=({children:e,masterDataEmailField:t,fields:r,variant:o,CONSTANTS:{MASTER_DATA_ENTITY:s,NEWSLETTER_CONFIGS:i}})=>{const{sendDataLayerEvent:a}=ge(),c=o==="vertical"&&i.hasTermsAndConditions,{mountedFields:l,mountedInputsStatus:u}=x.useMemo(()=>vp({fields:r}),[r]),p=x.useRef(!1),[h,d]=x.useState("idle"),[f,m]=x.useState(u),_=async({searchFields:R,entity:C})=>{const A=await Qe.post("/api/master-data/search",{body:{masterDataEntity:C,searchFields:R,headers:{"REST-Range":"resources=0-49"}}});return console.info(A),A.data},y=async({id:R,fieldsToBeUpdated:C,entity:A})=>(await Qe.post("/api/master-data/update",{dataEntityName:A,id:R,fieldsToBeUpdated:C})).status,b=x.useCallback(async({payload:R,response:C},A,O)=>{const{email:w,...N}=R,[I]=await _({searchFields:{[A]:w},entity:O??s.newsletter});return I&&await y({id:I.id,fieldsToBeUpdated:N,entity:O??s.newsletter})!==204?{...C,status:"error"}:{...C,status:"success"}},[]),j=x.useCallback(async({formData:R},C,A)=>{const O={status:"idle",inputsStatus:{}},w={};R.forEach((N,I)=>{w[I]=N});try{const I=(await Qe.post("/api/master-data",{body:{payload:w,masterDataEntity:C??s.newsletter}})).data;return(I==null?void 0:I.Message)==="duplicated entry"?b({payload:w,response:O},A,C):I!=null&&I.Id?{...O,status:"success"}:{...O,status:"error"}}catch(N){return console.error("error",N),{...O,status:"error"}}},[b]),v=x.useCallback(async(R,C,A)=>{R.preventDefault();const O=new FormData(R.target);C&&Object.keys(C).forEach(N=>{O.append(N,C[N])});const w=await j({formData:O},A??"",t);w&&(d(w==null?void 0:w.status),m(w.inputsStatus),w.status==="success"&&a({functionKey:"readyEvents",data:{event:"generate_lead"}}))},[t,j,d,m,a]),S=x.useCallback(R=>{const C=new FormData(R.currentTarget.parentElement),{hasEmptyFields:A,hasErrors:O,inputStatusToUpdate:w}=bp({formData:C,mountedFields:l,inputsStatus:f,hasTermsAndConditions:c,checkboxRef:p,setFormStatus:d});if(m(w),A||O){R.preventDefault();return}d("loading")},[l,f,c,p]),E=x.useCallback(()=>{d("idle"),m(u)},[u]);return n.jsx(Lc.Provider,{value:x.useMemo(()=>({formStatus:h,handleSubmit:v,setFormStatus:d,inputsStatus:f,setInputsStatus:m,hasTermsAndConditions:c,handleClickToSubmit:S,checkboxRef:p,masterDataEmailField:t,fields:r,variant:o,resetNewsletter:E}),[h,v,d,f,m,S,c,p,t,r,o,E]),children:e})},Lo=()=>{const e=x.useContext(Lc);if(e===void 0)throw new Error("useNewsletterContext must be used within a NewsletterProvider");return e},xp={contexts:{addToCart:{hook:ot,provider:uc},cart:{hook:we,provider:Pf},cms:{FlagsAndTags:{context:jo,hook:jt,provider:Td}},newsletter:{hook:Lo,provider:Dc},events:{hook:ge,provider:Fd},global:{hook:be,provider:af,mediator:Wa},header:{hook:je,provider:wf},menuMobile:{hook:At,provider:cc},next:{hook:Re,provider:cf},pdp:{provider:Od,hook:kd},PDPContent:{provider:up,hook:dp},plp:{provider:Kf,hook:Xf},plpFilter:{hook:ht,provider:Tc},PLPContent:{provider:cp,hook:lp},plpInfinite:{provider:op,hook:sp},pdpdata:{hook:Eo,provider:qd},searchFacets:{hook:Bf,provider:$f},searchProducts:{hook:qf,provider:Ff},searchRoot:{hook:Oo,provider:To},searchSearch:{hook:ir,provider:mc},searchSuggestedTerms:{hook:Wf,provider:Uf},searchTopSearchs:{hook:Gf,provider:Vf},session:{hook:ar,provider:ap},ui:{hook:Et,provider:Ua}},hooks:{useBackPDC:ga,useClipboard:Hd,useDisableZoom:Ud,useLocalStorage:Vd,useOnScreen:Ea,useSentinel:Gd,useTouchZoomPan:Kd},stores:{cart:of,header:df,pdp:Sf,wishlist:Ef}},Cp={cart:tf,events:zd,plp:Zf,product:ie.productHelpers,utils:_p},Do={helpers:Cp},Le={"add-to-cart--card":"_add-to-cart--card_4v41y_1","add-to-cart--card--content":"_add-to-cart--card--content_4v41y_7","add-to-cart--card--name":"_add-to-cart--card--name_4v41y_16","add-to-cart--card--price-quantity":"_add-to-cart--card--price-quantity_4v41y_46","add-to-cart--card--style-size":"_add-to-cart--card--style-size_4v41y_53","add-to-cart--content":"_add-to-cart--content_4v41y_71","add-to-cart--content--title":"_add-to-cart--content--title_4v41y_78","add-to-cart--footer":"_add-to-cart--footer_4v41y_102","add-to-cart--footer--total":"_add-to-cart--footer--total_4v41y_108","add-to-cart--items":"_add-to-cart--items_4v41y_148","add-to-cart--tooltip":"_add-to-cart--tooltip_4v41y_198","add-to-cart__modal":"_add-to-cart__modal_4v41y_211"},$c=({brand:e,className:t,name:r,...o})=>n.jsxs("div",{...o,className:g.helpers.classNameConcat(Le["add-to-cart--card--name"],t),children:[n.jsx(g.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:n.jsx("p",{className:"typography-style-body-md",children:r})})})]});$c.displayName="AddToCart.Card.Name";const Bc=({className:e,listPrice:t,price:r,quantity:o,productId:s,...i})=>{const a=ie.formatPriceToCurrency(r/100),c=ie.formatPriceToCurrency(t/100);return n.jsx("div",{...i,className:g.helpers.classNameConcat(Le["add-to-cart--card--price-quantity"],e),children:n.jsx(g.ProductInfo.Root,{size:"small",layout:"vertical",children:n.jsx(g.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:n.jsx(g.ProductInfo.ValuesWrapper,{children:r!==t?n.jsxs(n.Fragment,{children:[n.jsx(g.ProductInfo.Price,{label:"originalPrice",value:a,size:"small"},"price-list"),n.jsx(g.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):n.jsx(g.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};Bc.displayName="AddToCart.Card.PriceQuantity";const Sp="_skeleton_12b79_1",jp={skeleton:Sp},zc=({style:e})=>n.jsx("div",{style:e,className:jp.skeleton}),Ep="_image_lypfr_1",wp={image:Ep},Rp=({alt:e,className:t,objectFit:r,...o})=>{const{nextimage:s}=Re();return n.jsx(s,{quality:90,...o,alt:e??"",className:g.helpers.classNameConcat(wp.image,t),"data-object-fit":r??"cover"})},Ap=({videoRef:e,...t})=>n.jsx("video",{...t,ref:e,children:n.jsx("track",{kind:"captions"})}),ze={Image:Rp,Video:Ap},Fc=({className:e,productGroupID:t,size:r,texture:o,...s})=>{const{CONSTANTS:{TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a}}=ot(),[c,l]=x.useState(o??"");return x.useEffect(()=>{c||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(u=>u.json()).then(u=>{const p=u.data[0].items[0];if(p){const h=p.images.find(d=>i.includes(d.imageLabel));h!=null&&h.imageUrl?l(h.imageUrl):l(p.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),n.jsxs("div",{...s,className:g.helpers.classNameConcat(Le["add-to-cart--card--style-size"],e),children:[n.jsx(g.ToggleStyle.Wrapper,{size:"x-small",style:a,children:n.jsx(g.ToggleStyle.Texture,{children:c?n.jsx(ze.Image,{alt:"",src:c??"",width:164,height:164,style:a}):n.jsx(zc,{})})}),n.jsx(g.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&n.jsxs(g.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[n.jsx(g.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),n.jsx(g.ToggleSize.Text,{children:r})]})]})};Fc.displayName="AddToCart.Card.StyleSize";const{helpers:Pp}=Do,qc=({className:e,item:t,texture:r,...o})=>{const{itemOffered:{name:s,brand:i,skuName:a,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:p}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:h}}=ot(),{size:d}=Pp.product.getColorAndSizeFromSkuName(a??s,h);return n.jsxs("div",{...o,className:g.helpers.classNameConcat(Le["add-to-cart--card--content"],e),children:[n.jsx($c,{brand:i.name,name:s}),n.jsx(Bc,{price:u,listPrice:p,quantity:l,productId:t.id}),n.jsx(Fc,{size:d,texture:r,productGroupID:c})]})};qc.displayName="AddToCart.Card.Content";const Hc=({image:e,thumbnail:t=!1})=>n.jsx(ze.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});Hc.displayName="AddToCart.Card";const Uc=({className:e,item:t,texture:r,thumbnail:o,...s})=>{const{itemOffered:{image:[i]}}=t,a=ie.updatedResizedImg(i.url,{width:200,height:300});return n.jsxs("div",{...s,className:g.helpers.classNameConcat(Le["add-to-cart--card"],e),children:[n.jsx(Hc,{image:{alternateName:i.alternateName||"Produto",url:a||""},thumbnail:o}),!o&&n.jsx(qc,{item:t,texture:r})]})};Uc.displayName="AddToCart.Card";const Wc=({className:e,children:t,title:r,...o})=>n.jsxs("div",{...o,className:g.helpers.classNameConcat(Le["add-to-cart--content"],e),children:[n.jsx("div",{className:Le["add-to-cart--content--title"],children:r&&n.jsx("h2",{children:r})}),t,n.jsx(Ze.Footer,{})]});Wc.displayName="AddToCart.Layout.Content";const Vc=({className:e,...t})=>{var f,m;const{isMobile:r,handleClose:o,CONSTANTS:{ADD_TO_CART:s}}=ot(),{cartStore:{totalizers:i},setIsOpen:a}=we(),c=(f=i.find(_=>_.id==="Discounts"))==null?void 0:f.value,l=((m=i.find(_=>_.id==="Items"))==null?void 0:m.value)??0,u=i.find(_=>_.id==="Shipping"),h=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=ie.formatPriceToCurrency(h??0);return n.jsxs("div",{...t,className:g.helpers.classNameConcat(Le["add-to-cart--footer"],e),children:[n.jsxs("div",{className:Le["add-to-cart--footer--total"],children:[n.jsx("span",{children:"Subtotal:"}),n.jsx("span",{children:d})]}),n.jsx(g.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>a(!0),children:s.footer.bag}),r?n.jsx(g.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:s.footer.keep_buying}):n.jsx(g.Button,{onClick:()=>o(),size:"medium",variant:"tertiary",children:s.footer.keep_buying})]})};Vc.displayName="AddToCart.Layout.Footer";const Gc=({children:e,className:t,thumbnail:r=!1,...o})=>{const{cartStore:{options:s}}=we(),{recentlyAddedProducts:i}=Et(),a=i.length>3?4:i.length;return n.jsxs("div",{...o,className:Le["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(i)&&i.filter((c,l)=>l<a).map(c=>{var u;const l=(u=s==null?void 0:s.find(p=>p.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return n.jsx(Ze.Card,{item:c,thumbnail:r,texture:l},c.itemOffered.sku)}),e]})};Gc.displayName="AddToCart.Layout.Items";const Kc=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:o}=ot(),{isMobile:s}=be();return n.jsxs(g.Modal.Root,{"data-modal":"add-to-cart--modal",className:Le["add-to-cart__modal"],isMobile:s??!1,isOpen:r,setIsOpen:o,variant:"sideBottom",style:{zIndex:t.modal},children:[n.jsx(g.Modal.Header,{navigation:"top",children:n.jsx(g.Modal.Controls,{navigation:"top",isMobile:!0})}),n.jsx(g.Modal.Body,{children:e})]})};Kc.displayName="AddToCart.Modal";const Ip=({children:e})=>{const{count:t,handleClose:r,setIsOpen:o}=ot(),s=x.useRef(t);return x.useEffect(()=>{t>s.current&&o(!0),t<s.current&&s.current>=1&&r(),s.current=t},[t,r,o]),n.jsx(n.Fragment,{children:e})},Xc=({children:e,component:t,CONSTANTS:r,...o})=>{const{recentlyAddedProducts:s}=Et(),{isMobile:i}=be(),a=s.length>3?4:s.length;return n.jsx(uc,{...o,count:a,isMobile:i,CONSTANTS:r,children:n.jsx(Ip,{children:i?n.jsxs(n.Fragment,{children:[n.jsx(Ze.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):n.jsx(Ze.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};Xc.displayName="AddToCart.Root";const Yc=({children:e,component:t,Z_INDEX_WAR:r,...o})=>{const{contentRef:s,left:i,isLeaving:a,target:c,isOpen:l,top:u}=ot();return n.jsx(g.Tooltip.Root,{arrow:"top-right",component:n.jsx("div",{...o,ref:s,children:t}),id:"add-to-cart--tooltip",className:Le["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:a,isOpen:l,left:i,size:"medium",position:"top",top:u,children:n.jsx("div",{className:Le["add-to-cart--tooltip"],ref:c,children:e})})};Yc.displayName="AddToCart.Tooltip";const Ze={Card:Uc,Content:Wc,Footer:Vc,Items:Gc,Modal:Kc,Root:Xc,Tooltip:Yc},$o=({title:e,...t})=>{const{recentlyAddedProducts:r}=Et(),{isMobile:o}=be(),s=r.length>3?4:r.length,i=r.length>(s??1),a=r.length>1;return n.jsx(Ze.Root,{isMobile:o,count:r.length,component:n.jsx(Ze.Content,{title:e,children:n.jsx(Ze.Items,{thumbnail:a,children:i&&n.jsx(g.Badge.Count,{count:r.length-s,size:"medium",variant:"secondary"})})}),...t})};$o.displayName="AddToCart";const is={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},Np=({children:e,className:t,adornment:r,iconPosition:o,scrollToOptions:s,style:i,...a})=>{const c={top:(s==null?void 0:s.top)??0,left:(s==null?void 0:s.left)??0,behavior:(s==null?void 0:s.behavior)??"smooth"},u=o&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[o]}:{},p=()=>{window&&window.document.body.scrollTo({...c})};return n.jsx(g.Card,{...a,shadow:!0,padding:"small",className:g.helpers.classNameConcat(is["card-modifier"],t),style:{...i,padding:0},children:n.jsxs("button",{className:is["backtotop-btn"],onClick:p,style:{...u},"data-orientation":o,children:[r,e]})})},Tp="_container_1sy8s_16",Ge={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:Tp,"add-itens-to-cart-container":"_add-itens-to-cart-container_1sy8s_38","add-itens-to-cart-container-values":"_add-itens-to-cart-container-values_1sy8s_45","add-itens-to-cart-qty-products":"_add-itens-to-cart-qty-products_1sy8s_50","add-itens-to-cart-total":"_add-itens-to-cart-total_1sy8s_60","add-button":"_add-button_1sy8s_70"},Op=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:r})=>{const o=Object.values(e.products).length;return n.jsxs("div",{className:Ge["add-itens-to-cart-container"],children:[n.jsxs("div",{className:Ge["add-itens-to-cart-container-values"],children:[n.jsx("div",{className:Ge["add-itens-to-cart-qty-products"],children:n.jsx("span",{children:o===0?r.BUY_PACKAGE.group_cart.select_all_product:`${o} ${o===1?r.BUY_PACKAGE.group_cart.select_product:r.BUY_PACKAGE.group_cart.select_product+"s"}`})}),n.jsx("div",{className:Ge["add-itens-to-cart-total"],children:n.jsx("span",{children:ie.freightParsePrice({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:r.FREIGHT_CALCULATION.messages.free_tax})})})]}),n.jsx(g.Button,{onClick:t,className:Ge["add-button"],size:"large",disabled:o===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},kp=e=>e.reduce((t,r)=>{var s;const o=t.find(i=>i.node.id===r.node.id);if(!o)return[...t,r];if((s=o==null?void 0:o.node.isVariantOf)!=null&&s.hasVariant){const i=o.node.isVariantOf.hasVariant,a=r.node.isVariantOf.hasVariant;i&&a&&(o.node.isVariantOf.hasVariant=[...i,...a])}return t},[]),Mp=({selectedProduct:e,productId:t,prevState:r,mainSellerId:o})=>{const{products:s,totalPrice:i}=r;try{if(!e){const{[t]:u,...p}=s;return{...r,totalPrice:i-u.price,products:p}}const a=ie.getValidOffer(e.offers.offers,o);if(!a)return r;const c=a.seller.identifier,l=a.price;if(s[t]){const{price:u}=s[t];return s[t]={...s[t],price:l,id:e.sku,seller:c},{totalPrice:i+l-u,products:{...s}}}return{totalPrice:i+l,products:{...s,[t]:{id:e.sku,price:l,seller:c,productId:t}}}}catch(a){return console.error("Error handling SKU selection:",a),r}},Qc=x.createContext({}),Lp=({children:e,item:t,index:r,shelfTitle:o,...s})=>{const[i,a]=x.useState(null),c=x.useRef(null),l=x.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:p}=ge(),h=_=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:r+1},event:_}})},d=()=>{h("add_to_wishlist")},f=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...l.current.priceInfo}]},supportData:{selectedSku:i,selectedSkus:[i]},customData:{index:r}}})},m=()=>{o&&(p.current={item_list_name:o}),h("select_item")};return n.jsx(Qc.Provider,{value:x.useMemo(()=>({...s,index:r,item:t,element:c,selectedSku:i,setSelectedSku:a,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:m,sendAddToCartEvent:f}),[s,t,c,i]),children:e})},Fe=()=>{const e=x.useContext(Qc);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Pe={"product-card--actions":"_product-card--actions_nmzk4_1","product-card--actions--group":"_product-card--actions--group_nmzk4_9","product-card--actions--selectors":"_product-card--actions--selectors_nmzk4_21","product-card--body":"_product-card--body_nmzk4_33","product-card--header":"_product-card--header_nmzk4_47","product-card--footer":"_product-card--footer_nmzk4_67","product-card--image":"_product-card--image_nmzk4_90","product-card--image--container":"_product-card--image--container_nmzk4_97","product-card--outstock":"_product-card--outstock_nmzk4_133","product-card--price":"_product-card--price_nmzk4_155","product-card--title":"_product-card--title_nmzk4_177","product-card--title--tag":"_product-card--title--tag_nmzk4_183","product-card--title--content":"_product-card--title--content_nmzk4_200","product-card--selectors--size":"_product-card--selectors--size_nmzk4_240","product-card--selectors--size--button":"_product-card--selectors--size--button_nmzk4_266","product-card--selectors--size--skus":"_product-card--selectors--size--skus_nmzk4_275","product-card--selectors--style":"_product-card--selectors--style_nmzk4_289","product-card--selectors--style--more":"_product-card--selectors--style--more_nmzk4_299","product-card--video":"_product-card--video_nmzk4_316","product-card--wrapper":"_product-card--wrapper_nmzk4_342"},Zc=({callback:e,children:t,className:r,data:o,isKit:s,...i})=>{const{item:{availability:{status:a},image:c}}=Fe();return a?n.jsxs("div",{...i,className:g.helpers.classNameConcat(Pe["product-card--actions"],r),children:[n.jsxs(ve.Wrapper,{type:"actions--group",children:[n.jsx(ve.Price,{}),n.jsx("div",{className:Pe["product-card--actions--selectors"],children:!s&&n.jsx(ve.StyleSelector,{data:o,images:c,callback:e})})]}),t]}):null};Zc.displayName="ProductCard.Actions";const Jc=({className:e,isKit:t,...r})=>{const{addToCart:o}=we(),{isMobile:s=!1,selectedSku:i,outStock:a,item:c,sendAddToCartEvent:l,CONSTANTS:u}=Fe(),p=()=>{var f;if(!i)return;const d=ie.getValidOffer(i.offers.offers,u.StoreConfig_MainSellerId);d&&o({id:i==null?void 0:i.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(f=c==null?void 0:c.image.find(m=>u.TEXTURE_IMAGE.includes(m.alternateName)))==null?void 0:f.url}),l()},h=i?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return n.jsx(g.Button,{...r,className:g.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!i&&!a,size:s?"medium":"large",variant:a?"secondary":"primary",onClick:a?r.onClick:p,children:a?"Avise-me quando chegar":h})};Jc.displayName="ProductCard.Actions.BuyButton";const el=({product:e,tag:t,size:r="small"})=>{const o=e.offers.offers[0],{CONSTANTS:s,WishListToggle:i}=Fe();return n.jsxs(ve.Wrapper,{type:"header",style:{zIndex:s.Z_INDEX_WAR.product_card_header},children:[t?n.jsx(g.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?n.jsx(g.Icon,{name:t.icon,size:"small",style:{color:t.iconColor}}):null},size:r,variant:"quaternary",style:{background:t.tagColor,color:t.textColor},children:t.value}):null,s.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&n.jsx(i,{product:e,priceInfo:{price:o.price,listPrice:o.listPrice},variant:"card"})]})};el.displayName="ProductCard.Actions.Header";var tl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Dp(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,s.get?s:{enumerable:!0,get:function(){return e[o]}})}),r}var fo={exports:{}},Oe={};Oe._=Oe._interop_require_default=$p;function $p(e){return e&&e.__esModule?e:{default:e}}var Dt={exports:{}},_r={},as;function rl(){return as||(as=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var l in c)Object.defineProperty(a,l,{enumerable:!0,get:c[l]})}t(e,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return s},assign:function(){return i}});function r(a){const c={};return a.forEach((l,u)=>{typeof c[u]>"u"?c[u]=l:Array.isArray(c[u])?c[u].push(l):c[u]=[c[u],l]}),c}function o(a){return typeof a=="string"||typeof a=="number"&&!isNaN(a)||typeof a=="boolean"?String(a):""}function s(a){const c=new URLSearchParams;return Object.entries(a).forEach(l=>{let[u,p]=l;Array.isArray(p)?p.forEach(h=>c.append(u,o(h))):c.set(u,o(p))}),c}function i(a){for(var c=arguments.length,l=new Array(c>1?c-1:0),u=1;u<c;u++)l[u-1]=arguments[u];return l.forEach(p=>{Array.from(p.keys()).forEach(h=>a.delete(h)),p.forEach((h,d)=>a.append(d,h))}),a}}(_r)),_r}var vr={},ft={};function nl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(nl=function(o){return o?r:t})(e)}ft._=ft._interop_require_wildcard=Bp;function Bp(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=nl(t);if(r&&r.has(e))return r.get(e);var o={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=s?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(o,i,a):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}var cs;function ol(){return cs||(cs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,u){for(var p in u)Object.defineProperty(l,p,{enumerable:!0,get:u[p]})}t(e,{formatUrl:function(){return i},urlObjectKeys:function(){return a},formatWithValidation:function(){return c}});const o=ft._(rl()),s=/https?|ftp|gopher|file/;function i(l){let{auth:u,hostname:p}=l,h=l.protocol||"",d=l.pathname||"",f=l.hash||"",m=l.query||"",_=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?_=u+l.host:p&&(_=u+(~p.indexOf(":")?"["+p+"]":p),l.port&&(_+=":"+l.port)),m&&typeof m=="object"&&(m=String(o.urlQueryToSearchParams(m)));let y=l.search||m&&"?"+m||"";return h&&!h.endsWith(":")&&(h+=":"),l.slashes||(!h||s.test(h))&&_!==!1?(_="//"+(_||""),d&&d[0]!=="/"&&(d="/"+d)):_||(_=""),f&&f[0]!=="#"&&(f="#"+f),y&&y[0]!=="?"&&(y="?"+y),d=d.replace(/[?#]/g,encodeURIComponent),y=y.replace("#","%23"),""+h+_+d+y+f}const a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(l){return process.env.NODE_ENV==="development"&&l!==null&&typeof l=="object"&&Object.keys(l).forEach(u=>{a.includes(u)||console.warn("Unknown key passed via urlObject into url.format: "+u)}),i(l)}}(vr)),vr}var br={},ls;function zp(){return ls||(ls=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,o){const s={};return Object.keys(r).forEach(i=>{o.includes(i)||(s[i]=r[i])}),s}}(br)),br}var xr={},us;function lr(){return us||(us=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,E){for(var R in E)Object.defineProperty(S,R,{enumerable:!0,get:E[R]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return o},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return a},getURL:function(){return c},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return p},loadGetInitialProps:function(){return h},SP:function(){return d},ST:function(){return f},DecodeError:function(){return m},NormalizeError:function(){return _},PageNotFoundError:function(){return y},MissingStaticPage:function(){return b},MiddlewareNotFoundError:function(){return j},stringifyError:function(){return v}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function o(S){let E=!1,R;return function(){for(var C=arguments.length,A=new Array(C),O=0;O<C;O++)A[O]=arguments[O];return E||(E=!0,R=S(...A)),R}}const s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=S=>s.test(S);function a(){const{protocol:S,hostname:E,port:R}=window.location;return S+"//"+E+(R?":"+R:"")}function c(){const{href:S}=window.location,E=a();return S.substring(E.length)}function l(S){return typeof S=="string"?S:S.displayName||S.name||"Unknown"}function u(S){return S.finished||S.headersSent}function p(S){const E=S.split("?");return E[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(E[1]?"?"+E.slice(1).join("?"):"")}async function h(S,E){if(process.env.NODE_ENV!=="production"){var R;if((R=S.prototype)!=null&&R.getInitialProps){const O='"'+l(S)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(O)}}const C=E.res||E.ctx&&E.ctx.res;if(!S.getInitialProps)return E.ctx&&E.Component?{pageProps:await h(E.Component,E.ctx)}:{};const A=await S.getInitialProps(E);if(C&&u(C))return A;if(!A){const O='"'+l(S)+'.getInitialProps()" should resolve to an object. But found "'+A+'" instead.';throw new Error(O)}return process.env.NODE_ENV!=="production"&&Object.keys(A).length===0&&!E.ctx&&console.warn(""+l(S)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),A}const d=typeof performance<"u",f=d&&["mark","measure","getEntriesByName"].every(S=>typeof performance[S]=="function");class m extends Error{}class _ extends Error{}class y extends Error{constructor(E){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+E}}class b extends Error{constructor(E,R){super(),this.message="Failed to load static file for page: "+E+" "+R}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(S){return JSON.stringify({message:S.message,stack:S.stack})}}(xr)),xr}var $t={exports:{}},Cr={},ds;function sl(){return ds||(ds=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.replace(/\/$/,"")||"/"}}(Cr)),Cr}var Sr={},fs;function Bo(){return fs||(fs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(r){const o=r.indexOf("#"),s=r.indexOf("?"),i=s>-1&&(o<0||s<o);return i||o>-1?{pathname:r.substring(0,i?s:o),query:i?r.substring(s,o>-1?o:void 0):"",hash:o>-1?r.slice(o):""}:{pathname:r,query:"",hash:""}}}(Sr)),Sr}var ps;function ur(){return ps||(ps=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return s}});const r=sl(),o=Bo(),s=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:a,query:c,hash:l}=(0,o.parsePath)(i);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(a)?""+(0,r.removeTrailingSlash)(a)+c+l:a.endsWith("/")?""+a+c+l:a+"/"+c+l:""+(0,r.removeTrailingSlash)(a)+c+l};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}($t,$t.exports)),$t.exports}var jr={},Bt={exports:{}},Er={},ms;function il(){return ms||(ms=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=Bo();function r(o,s){if(typeof o!="string")return!1;const{pathname:i}=(0,t.parsePath)(o);return i===s||i.startsWith(s+"/")}}(Er)),Er}var hs;function Fp(){return hs||(hs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return s}});const r=il(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function s(i){return(0,r.pathHasPrefix)(i,o)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Bt,Bt.exports)),Bt.exports}var gs;function al(){return gs||(gs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return o}});const t=lr(),r=Fp();function o(s){if(!(0,t.isAbsoluteUrl)(s))return!0;try{const i=(0,t.getLocationOrigin)(),a=new URL(s,i);return a.origin===i&&(0,r.hasBasePath)(a.pathname)}catch{return!1}}}(jr)),jr}var wr={},Rr={},ys;function qp(){return ys||(ys=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(s){this._insert(s.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(s){s===void 0&&(s="/");const i=[...this.children.keys()].sort();this.slugName!==null&&i.splice(i.indexOf("[]"),1),this.restSlugName!==null&&i.splice(i.indexOf("[...]"),1),this.optionalRestSlugName!==null&&i.splice(i.indexOf("[[...]]"),1);const a=i.map(c=>this.children.get(c)._smoosh(""+s+c+"/")).reduce((c,l)=>[...c,...l],[]);if(this.slugName!==null&&a.push(...this.children.get("[]")._smoosh(s+"["+this.slugName+"]/")),!this.placeholder){const c=s==="/"?"/":s.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+c+'" and "'+c+"[[..."+this.optionalRestSlugName+']]").');a.unshift(c)}return this.restSlugName!==null&&a.push(...this.children.get("[...]")._smoosh(s+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&a.push(...this.children.get("[[...]]")._smoosh(s+"[[..."+this.optionalRestSlugName+"]]/")),a}_insert(s,i,a){if(s.length===0){this.placeholder=!1;return}if(a)throw new Error("Catch-all must be the last part of the URL.");let c=s[0];if(c.startsWith("[")&&c.endsWith("]")){let p=function(h,d){if(h!==null&&h!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+h+"' !== '"+d+"').");i.forEach(f=>{if(f===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(f.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+f+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),i.push(d)},l=c.slice(1,-1),u=!1;if(l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1),u=!0),l.startsWith("...")&&(l=l.substring(3),a=!0),l.startsWith("[")||l.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+l+"').");if(l.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+l+"').");if(a)if(u){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+s[0]+'" ).');p(this.optionalRestSlugName,l),this.optionalRestSlugName=l,c="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+s[0]+'").');p(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+s[0]+'").');p(this.slugName,l),this.slugName=l,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(s.slice(1),i,a)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(o){const s=new t;return o.forEach(i=>s.insert(i)),s.smoosh()}}(Rr)),Rr}var Ar={},_s;function Hp(){return _s||(_s=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const t=/\/\[[^/]+?\](?=\/|$)/;function r(o){return t.test(o)}}(Ar)),Ar}var vs;function Up(){return vs||(vs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,i){for(var a in i)Object.defineProperty(s,a,{enumerable:!0,get:i[a]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});const r=qp(),o=Hp()}(wr)),wr}var Pr={},Ir={},bs;function Wp(){return bs||(bs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=lr();function r(o){let{re:s,groups:i}=o;return a=>{const c=s.exec(a);if(!c)return!1;const l=p=>{try{return decodeURIComponent(p)}catch{throw new t.DecodeError("failed to decode param")}},u={};return Object.keys(i).forEach(p=>{const h=i[p],d=c[h.pos];d!==void 0&&(u[p]=~d.indexOf("/")?d.split("/").map(f=>l(f)):h.repeat?[l(d)]:l(d))}),u}}}(Ir)),Ir}var Nr={},Tr={},Or={},kr={},xs;function Vp(){return xs||(xs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.startsWith("/")?r:"/"+r}}(kr)),kr}var Mr={},Cs;function Gp(){return Cs||(Cs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isGroupSegment",{enumerable:!0,get:function(){return t}});function t(r){return r[0]==="("&&r.endsWith(")")}}(Mr)),Mr}var Ss;function Kp(){return Ss||(Ss=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var l in c)Object.defineProperty(a,l,{enumerable:!0,get:c[l]})}t(e,{normalizeAppPath:function(){return s},normalizeRscPath:function(){return i}});const r=Vp(),o=Gp();function s(a){return(0,r.ensureLeadingSlash)(a.split("/").reduce((c,l,u,p)=>!l||(0,o.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===p.length-1?c:c+"/"+l,""))}function i(a,c){return c?a.replace(/\.rsc($|\?)/,"$1"):a}}(Or)),Or}var js;function Xp(){return js||(js=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var l in c)Object.defineProperty(a,l,{enumerable:!0,get:c[l]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return o},isInterceptionRouteAppPath:function(){return s},extractInterceptionRouteInformation:function(){return i}});const r=Kp(),o=["(..)(..)","(.)","(..)","(...)"];function s(a){return a.split("/").find(c=>o.find(l=>c.startsWith(l)))!==void 0}function i(a){let c,l,u;for(const p of a.split("/"))if(l=o.find(h=>p.startsWith(h)),l){[c,u]=a.split(l,2);break}if(!c||!l||!u)throw new Error(`Invalid interception route: ${a}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(c=(0,r.normalizeAppPath)(c),l){case"(.)":c==="/"?u=`/${u}`:u=c+"/"+u;break;case"(..)":if(c==="/")throw new Error(`Invalid interception route: ${a}. Cannot use (..) marker at the root level, use (.) instead.`);u=c.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":const p=c.split("/");if(p.length<=2)throw new Error(`Invalid interception route: ${a}. Cannot use (..)(..) marker at the root level or one level up.`);u=p.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:c,interceptedRoute:u}}}(Tr)),Tr}var Lr={},Es;function Yp(){return Es||(Es=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});const t=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function o(s){return t.test(s)?s.replace(r,"\\$&"):s}}(Lr)),Lr}var ws;function Qp(){return ws||(ws=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,y){for(var b in y)Object.defineProperty(_,b,{enumerable:!0,get:y[b]})}t(e,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return f},getNamedMiddlewareRegex:function(){return m}});const r=Xp(),o=Yp(),s=sl(),i="nxtP",a="nxtI";function c(_){const y=_.startsWith("[")&&_.endsWith("]");y&&(_=_.slice(1,-1));const b=_.startsWith("...");return b&&(_=_.slice(3)),{key:_,repeat:b,optional:y}}function l(_){const y=(0,s.removeTrailingSlash)(_).slice(1).split("/"),b={};let j=1;return{parameterizedRoute:y.map(v=>{const S=r.INTERCEPTION_ROUTE_MARKERS.find(R=>v.startsWith(R)),E=v.match(/\[((?:\[.*\])|.+)\]/);if(S&&E){const{key:R,optional:C,repeat:A}=c(E[1]);return b[R]={pos:j++,repeat:A,optional:C},"/"+(0,o.escapeStringRegexp)(S)+"([^/]+?)"}else if(E){const{key:R,repeat:C,optional:A}=c(E[1]);return b[R]={pos:j++,repeat:C,optional:A},C?A?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,o.escapeStringRegexp)(v)}).join(""),groups:b}}function u(_){const{parameterizedRoute:y,groups:b}=l(_);return{re:new RegExp("^"+y+"(?:/)?$"),groups:b}}function p(){let _=0;return()=>{let y="",b=++_;for(;b>0;)y+=String.fromCharCode(97+(b-1)%26),b=Math.floor((b-1)/26);return y}}function h(_){let{getSafeRouteKey:y,segment:b,routeKeys:j,keyPrefix:v}=_;const{key:S,optional:E,repeat:R}=c(b);let C=S.replace(/\W/g,"");v&&(C=""+v+C);let A=!1;return(C.length===0||C.length>30)&&(A=!0),isNaN(parseInt(C.slice(0,1)))||(A=!0),A&&(C=y()),v?j[C]=""+v+S:j[C]=""+S,R?E?"(?:/(?<"+C+">.+?))?":"/(?<"+C+">.+?)":"/(?<"+C+">[^/]+?)"}function d(_,y){const b=(0,s.removeTrailingSlash)(_).slice(1).split("/"),j=p(),v={};return{namedParameterizedRoute:b.map(S=>{const E=r.INTERCEPTION_ROUTE_MARKERS.some(C=>S.startsWith(C)),R=S.match(/\[((?:\[.*\])|.+)\]/);return E&&R?h({getSafeRouteKey:j,segment:R[1],routeKeys:v,keyPrefix:y?a:void 0}):R?h({getSafeRouteKey:j,segment:R[1],routeKeys:v,keyPrefix:y?i:void 0}):"/"+(0,o.escapeStringRegexp)(S)}).join(""),routeKeys:v}}function f(_,y){const b=d(_,y);return{...u(_),namedRegex:"^"+b.namedParameterizedRoute+"(?:/)?$",routeKeys:b.routeKeys}}function m(_,y){const{parameterizedRoute:b}=l(_),{catchAll:j=!0}=y;if(b==="/")return{namedRegex:"^/"+(j?".*":"")+"$"};const{namedParameterizedRoute:v}=d(_,!1);let S=j?"(?:(/.*)?)":"";return{namedRegex:"^"+v+S+"$"}}}(Nr)),Nr}var Rs;function Zp(){return Rs||(Rs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return o}});const t=Wp(),r=Qp();function o(s,i,a){let c="";const l=(0,r.getRouteRegex)(s),u=l.groups,p=(i!==s?(0,t.getRouteMatcher)(l)(i):"")||a;c=s;const h=Object.keys(u);return h.every(d=>{let f=p[d]||"";const{repeat:m,optional:_}=u[d];let y="["+(m?"...":"")+d+"]";return _&&(y=(f?"":"/")+"["+y+"]"),m&&!Array.isArray(f)&&(f=[f]),(_||d in p)&&(c=c.replace(y,m?f.map(b=>encodeURIComponent(b)).join("/"):encodeURIComponent(f))||"/")})||(c=""),{params:h,result:c}}}(Pr)),Pr}var As;function Jp(){return As||(As=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return p}});const r=rl(),o=ol(),s=zp(),i=lr(),a=ur(),c=al(),l=Up(),u=Zp();function p(h,d,f){let m,_=typeof d=="string"?d:(0,o.formatWithValidation)(d);const y=_.match(/^[a-zA-Z]{1,}:\/\//),b=y?_.slice(y[0].length):_;if((b.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+_+"' passed to next/router in page: '"+h.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const v=(0,i.normalizeRepeatedSlashes)(b);_=(y?y[0]:"")+v}if(!(0,c.isLocalURL)(_))return f?[_]:_;try{m=new URL(_.startsWith("#")?h.asPath:h.pathname,"http://n")}catch{m=new URL("/","http://n")}try{const v=new URL(_,m);v.pathname=(0,a.normalizePathTrailingSlash)(v.pathname);let S="";if((0,l.isDynamicRoute)(v.pathname)&&v.searchParams&&f){const R=(0,r.searchParamsToUrlQuery)(v.searchParams),{result:C,params:A}=(0,u.interpolateAs)(v.pathname,v.pathname,R);C&&(S=(0,o.formatWithValidation)({pathname:C,hash:v.hash,query:(0,s.omit)(R,A)}))}const E=v.origin===m.origin?v.href.slice(v.origin.length):v.href;return f?[E,S||E]:E}catch{return f?[_]:_}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Dt,Dt.exports)),Dt.exports}var zt={exports:{}},Dr={},$r={},Ps;function cl(){return Ps||(Ps=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=Bo();function r(o,s){if(!o.startsWith("/")||!s)return o;const{pathname:i,query:a,hash:c}=(0,t.parsePath)(o);return""+s+i+a+c}}($r)),$r}var Is;function em(){return Is||(Is=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return o}});const t=cl(),r=il();function o(s,i,a,c){if(!i||i===a)return s;const l=s.toLowerCase();return!c&&((0,r.pathHasPrefix)(l,"/api")||(0,r.pathHasPrefix)(l,"/"+i.toLowerCase()))?s:(0,t.addPathPrefix)(s,"/"+i)}}(Dr)),Dr}var Ns;function tm(){return Ns||(Ns=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return o}});const r=ur(),o=function(s){for(var i=arguments.length,a=new Array(i>1?i-1:0),c=1;c<i;c++)a[c-1]=arguments[c];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(em().addLocale(s,...a)):s};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(zt,zt.exports)),zt.exports}var Br={},Ts;function ll(){return Ts||(Ts=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return o}});const o=Oe._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="RouterContext")}(Br)),Br}var zr={},Os;function rm(){return Os||(Os=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,p){for(var h in p)Object.defineProperty(u,h,{enumerable:!0,get:p[h]})}t(e,{CacheStates:function(){return s},AppRouterContext:function(){return i},LayoutRouterContext:function(){return a},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const o=Oe._(x);var s;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(s||(s={}));const i=o.default.createContext(null),a=o.default.createContext(null),c=o.default.createContext(null),l=o.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",a.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}(zr)),zr}var Ft={exports:{}},qt={exports:{}},ks;function ul(){return ks||(ks=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(i,a){for(var c in a)Object.defineProperty(i,c,{enumerable:!0,get:a[c]})}r(t,{requestIdleCallback:function(){return o},cancelIdleCallback:function(){return s}});const o=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let a=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-a))}})},1)},s=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(i){return clearTimeout(i)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(qt,qt.exports)),qt.exports}var Ms;function nm(){return Ms||(Ms=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=x,o=ul(),s=typeof IntersectionObserver=="function",i=new Map,a=[];function c(p){const h={root:p.root||null,margin:p.rootMargin||""},d=a.find(y=>y.root===h.root&&y.margin===h.margin);let f;if(d&&(f=i.get(d),f))return f;const m=new Map,_=new IntersectionObserver(y=>{y.forEach(b=>{const j=m.get(b.target),v=b.isIntersecting||b.intersectionRatio>0;j&&v&&j(v)})},p);return f={id:h,observer:_,elements:m},a.push(h),i.set(h,f),f}function l(p,h,d){const{id:f,observer:m,elements:_}=c(d);return _.set(p,h),m.observe(p),function(){if(_.delete(p),m.unobserve(p),_.size===0){m.disconnect(),i.delete(f);const b=a.findIndex(j=>j.root===f.root&&j.margin===f.margin);b>-1&&a.splice(b,1)}}}function u(p){let{rootRef:h,rootMargin:d,disabled:f}=p;const m=f||!s,[_,y]=(0,r.useState)(!1),b=(0,r.useRef)(null),j=(0,r.useCallback)(S=>{b.current=S},[]);(0,r.useEffect)(()=>{if(s){if(m||_)return;const S=b.current;if(S&&S.tagName)return l(S,R=>R&&y(R),{root:h==null?void 0:h.current,rootMargin:d})}else if(!_){const S=(0,o.requestIdleCallback)(()=>y(!0));return()=>(0,o.cancelIdleCallback)(S)}},[m,d,h,_,b.current]);const v=(0,r.useCallback)(()=>{y(!1)},[]);return[j,_,v]}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ft,Ft.exports)),Ft.exports}var Ht={exports:{}},Ut={exports:{}},Fr={},Ls;function om(){return Ls||(Ls=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,o){let s;const i=r.split("/");return(o||[]).some(a=>i[1]&&i[1].toLowerCase()===a.toLowerCase()?(s=a,i.splice(1,1),r=i.join("/")||"/",!0):!1),{pathname:r,detectedLocale:s}}}(Fr)),Fr}var Ds;function sm(){return Ds||(Ds=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(o,s)=>process.env.__NEXT_I18N_SUPPORT?om().normalizeLocalePath(o,s):{pathname:o,detectedLocale:void 0};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ut,Ut.exports)),Ut.exports}var Wt={exports:{}},qr={},$s;function im(){return $s||($s=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,o,s){if(r){s&&(s=s.toLowerCase());for(const c of r){var i,a;const l=(i=c.domain)==null?void 0:i.split(":")[0].toLowerCase();if(o===l||s===c.defaultLocale.toLowerCase()||(a=c.locales)!=null&&a.some(u=>u.toLowerCase()===s))return c}}}}(qr)),qr}var Bs;function am(){return Bs||(Bs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});const r=function(){for(var o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];if(process.env.__NEXT_I18N_SUPPORT)return im().detectDomainLocale(...s)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Wt,Wt.exports)),Wt.exports}var zs;function cm(){return zs||(zs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return s}});const r=ur(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function s(i,a,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=sm().normalizeLocalePath,p=am().detectDomainLocale,h=a||u(i,c).detectedLocale,d=p(l,void 0,h);if(d){const f="http"+(d.http?"":"s")+"://",m=h===d.defaultLocale?"":"/"+h;return""+f+d.domain+(0,r.normalizePathTrailingSlash)(""+o+m+i)}return!1}else return!1}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ht,Ht.exports)),Ht.exports}var Vt={exports:{}},Fs;function lm(){return Fs||(Fs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const r=cl(),o=ur(),s=process.env.__NEXT_ROUTER_BASEPATH||"";function i(a,c){return(0,o.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?a:(0,r.addPathPrefix)(a,s))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Vt,Vt.exports)),Vt.exports}var Gt={exports:{}},qs;function um(){return qs||(qs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(h,d){for(var f in d)Object.defineProperty(h,f,{enumerable:!0,get:d[f]})}r(t,{PrefetchKind:function(){return p},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return s},ACTION_RESTORE:function(){return i},ACTION_SERVER_PATCH:function(){return a},ACTION_PREFETCH:function(){return c},ACTION_FAST_REFRESH:function(){return l},ACTION_SERVER_ACTION:function(){return u}});const o="refresh",s="navigate",i="restore",a="server-patch",c="prefetch",l="fast-refresh",u="server-action";var p;(function(h){h.AUTO="auto",h.FULL="full",h.TEMPORARY="temporary"})(p||(p={})),(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Gt,Gt.exports)),Gt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return E}});const o=Oe._(x),s=Jp(),i=al(),a=ol(),c=lr(),l=tm(),u=ll(),p=rm(),h=nm(),d=cm(),f=lm(),m=um(),_=new Set;function y(R,C,A,O,w,N){if(typeof window>"u"||!N&&!(0,i.isLocalURL)(C))return;if(!O.bypassPrefetchedCheck){const B=typeof O.locale<"u"?O.locale:"locale"in R?R.locale:void 0,T=C+"%"+A+"%"+B;if(_.has(T))return;_.add(T)}const I=N?R.prefetch(C,w):R.prefetch(C,A,O);Promise.resolve(I).catch(B=>{if(process.env.NODE_ENV!=="production")throw B})}function b(R){const A=R.currentTarget.getAttribute("target");return A&&A!=="_self"||R.metaKey||R.ctrlKey||R.shiftKey||R.altKey||R.nativeEvent&&R.nativeEvent.which===2}function j(R,C,A,O,w,N,I,B,T,H){const{nodeName:U}=R.currentTarget;if(U.toUpperCase()==="A"&&(b(R)||!T&&!(0,i.isLocalURL)(A)))return;R.preventDefault();const G=()=>{const W=I??!0;"beforePopState"in C?C[w?"replace":"push"](A,O,{shallow:N,locale:B,scroll:W}):C[w?"replace":"push"](O||A,{forceOptimisticNavigation:!H,scroll:W})};T?o.default.startTransition(G):G()}function v(R){return typeof R=="string"?R:(0,a.formatUrl)(R)}const E=o.default.forwardRef(function(C,A){let O;const{href:w,as:N,children:I,prefetch:B=null,passHref:T,replace:H,shallow:U,scroll:q,locale:G,onClick:W,onMouseEnter:z,onTouchStart:Z,legacyBehavior:P=!1,...k}=C;O=I,P&&(typeof O=="string"||typeof O=="number")&&(O=o.default.createElement("a",null,O));const D=o.default.useContext(u.RouterContext),K=o.default.useContext(p.AppRouterContext),re=D??K,J=!D,L=B!==!1,ee=B===null?m.PrefetchKind.AUTO:m.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let se=function(oe){return new Error("Failed prop type: The prop `"+oe.key+"` expects a "+oe.expected+" in `<Link>`, but got `"+oe.actual+"` instead."+(typeof window<"u"?`
1
+ "use strict";var Pd=Object.defineProperty;var Id=(e,t,r)=>t in e?Pd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var gr=(e,t,r)=>Id(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),x=require("react"),ie=require("./index-BR5lPUsH.js"),st=require("idb-keyval"),tt=require("zustand"),no=require("js-cookie"),g=require("@soma-vertical-web/core-components"),Qe=require("axios"),Nd=require("jose"),lt=require("@soma-vertical-web/foundations"),ma=require("react-dom"),qe=require("draft-js"),es=require("@date-fns/tz"),So=x.createContext({}),Td=({data:e,children:t})=>n.jsx(So.Provider,{value:{tags:e==null?void 0:e.config},children:t}),jt=()=>{const{tags:e}=x.useContext(So),t=x.useCallback(r=>{var a,c,l,u;const o=(c=(a=e==null?void 0:e.commercial)==null?void 0:a.items)==null?void 0:c.find(p=>{var h;return(h=r??[])==null?void 0:h.find(d=>d.id===p.key)}),s=(u=(l=e==null?void 0:e.institucional)==null?void 0:l.items)==null?void 0:u.find(p=>{var h;return(h=r??[])==null?void 0:h.find(d=>d.id===p.key)}),i=e==null?void 0:e.flagPdp;return{commercial:o,institucional:s,flagPdp:i}},[e]);return{tags:e,getAvailableProductTag:t}},ha=({gridScrollBack:e})=>{x.useEffect(()=>{typeof window<"u"&&(e!=null&&e.refer)&&sessionStorage.setItem(e==null?void 0:e.refer,"true")},[])},ga=x.createContext({}),Od=({children:e,gridScrollBack:t})=>{const r=x.useRef(null);return ha({gridScrollBack:t}),n.jsx(ga.Provider,{value:{sizesContainerRef:r},children:e})},kd=()=>{const e=x.useContext(ga);if(e===void 0)throw new Error("useContext(PDPContext) must be used within a PDPProvider");return e},Ve=({event:e,data:t})=>{const r=(window==null?void 0:window.dataLayer)||[];t.ecommerce&&r.push({ecommerce:null}),r.push({...e&&{event:`custom_${e}`},...t})},Ce={configs:{PLP_FILTERS:[{key:"",label:"",eventLabel:"",order:0}],currency:"BRL",categoryOff:"bazar",storeUrl:"https://www.example.com",MAIN_IMAGE:"1",NAME_SPLIT_SYMBOL:"-",VENDOR_CODE:""},productEvents:(e,t)=>{const{event:r,commonData:o,customData:s,promotionInfo:i,itemList:a,outsideEcommerceData:c}=e,{availableSizes:l,sizes:u,price:p}=o,h={...r==="view_item"?{currency:Ce.configs.currency,value:p,grade_disponivel:l??(u?ya(u):"")}:{},...r==="add_to_wishlist"||r==="remove_from_wishlist"?{value:p,currency:Ce.configs.currency}:{}},d=Lt({data:o,customData:{...s,...a,...i},configs:Ce.configs});Ve({event:r,data:{...c,ecommerce:{...a,...h,items:[d]}}}),typeof t=="function"&&t(d,h)},productListEvent:e=>{const{commonData:{products:t},promotionInfo:r,itemList:o,outsideEcommerceData:s,customData:i}=e;if(t.length===0)return;const a=t.map(({node:c},l)=>Lt({data:{...c},customData:{...r,index:l,...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:o},configs:Ce.configs}));Ve({event:"view_item_list",data:{...s,ecommerce:{...i!=null&&i.item_list_name?{item_list_name:i==null?void 0:i.item_list_name}:o,items:a}}})},skuEvents:e=>{const{event:t,commonData:{products:r},customData:o,supportData:{selectedSkus:s,price:i},promotionInfo:a,itemList:c,outsideEcommerceData:l}=e;let u=0;const p=r.map(h=>{var _,y,b,j,v,S,E,R,C;const d=s==null?void 0:s.find(A=>(h.productId??h.id)===A.productId);let f={...a,...c};if(d){const A=va(),O=ba(A,d);O&&(f={...f,...O}),t==="add_to_cart"&&(a||c)&&oo({persistedData:A,type:"add",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku),newData:{promotionInfo:a,itemList:c}}),t==="remove_from_cart"&&oo({persistedData:A,type:"remove",sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)})}u+=h.price??((b=(y=(_=d==null?void 0:d.offers)==null?void 0:_.offers)==null?void 0:y[0])==null?void 0:b.price)??0;const m=(d==null?void 0:d.size)??ie.getColorAndSizeFromSkuName((d==null?void 0:d.skuName)??(d==null?void 0:d.name)??((j=h.itemOffered)==null?void 0:j.skuName),Ce.configs.NAME_SPLIT_SYMBOL).size;return Lt({data:h,customData:{...o,...f??{...a,...c},item_sku:(d==null?void 0:d.id)??(d==null?void 0:d.sku)??((v=h.itemOffered)==null?void 0:v.sku),quantity:(o==null?void 0:o.quantity)??h.quantity??1,item_variant2:m,seller_id:(d==null?void 0:d.sellerId)??(d==null?void 0:d.seller)??((C=(R=(E=(S=d==null?void 0:d.offers)==null?void 0:S.offers)==null?void 0:E[0])==null?void 0:R.seller)==null?void 0:C.identifier)??h.seller},configs:Ce.configs})});Ve({event:t,data:{...l,ecommerce:{value:i??u,currency:Ce.configs.currency,items:p}}})},filterEvent:e=>{var a;const{commonData:t,customData:r,outsideEcommerceData:o}=e,s={},i={};Array.isArray(t==null?void 0:t.selectedFacets)&&((a=t==null?void 0:t.selectedFacets)!=null&&a.length)&&((t==null?void 0:t.selectedFacets).forEach(({key:c,value:l})=>{var h;const u=((h=Ce.configs.PLP_FILTERS.find(d=>d.key===c))==null?void 0:h.eventLabel)??c,p=(s==null?void 0:s[u])||[];u==="price_range"&&l.replace(":","-"),s[u]=[...p,l]}),Object.keys(s).forEach(c=>i[c]=s[c].join(", "))),Ve({event:"filter",data:{...o,...i,...r}})},viewCartEvent:e=>{var p,h,d,f,m,_,y,b,j,v;const{commonData:t,outsideEcommerceData:r}=e,{cartStore:o}=t;if(!o)return;const s=window.localStorage.getItem("persistedCartEventsData"),i=s?JSON.parse(s):{},a=o.items.map(S=>{const{promotionInfo:E,itemList:R}=i[S.id]??{};return Lt({data:{...S,price:S.price/100,listPrice:S.listPrice/100},customData:{...E,...R,item_sku:S.id??S.itemOffered.sku,quantity:S.quantity??1},configs:Ce.configs})}),c=(((p=o.totalizers.find(S=>S.name==="Total dos Itens"))==null?void 0:p.value)??0)/100,l=(((h=o.totalizers.find(S=>S.name==="Total dos Descontos"))==null?void 0:h.value)??0)/100,u=((d=o.marketingData)==null?void 0:d.utmiCampaign)===Ce.configs.VENDOR_CODE?(f=o.marketingData)==null?void 0:f.utmCampaign:(_=String((m=o.openTextField)==null?void 0:m.value))==null?void 0:_.split(" - ")[0];Ve({event:"view_cart",data:{...r,ecommerce:{currency:Ce.configs.currency,value:c+l,total_discount:Math.abs(l),cep_preenchido:!!((b=(y=o.shippingData)==null?void 0:y.address)!=null&&b.postalCode),...u?{seller_coupon_name:u}:{},...((j=o.marketingData)==null?void 0:j.coupon)&&{sale_coupon_name:(v=o.marketingData)==null?void 0:v.coupon},subtotal:c,items:a}}})},readyEvents:e=>{const{event:t,readyData:r}=e;Ve({event:t,data:{...r}})}},ya=e=>e.reduce((t,r)=>(r.available&&t.push(r.value),t),[]).toString(),Md=e=>{const t=e.length;return{...e&&e.length>0?{item_category:e[0].includes(Ce.configs.categoryOff)?"Bazar":"Coleção",...e[1]?{item_category2:e[1]}:{},...t>2?{item_category3:e[t-1]}:{}}:{}}},Lt=({data:e,customData:t,configs:r})=>({...Ld(e,r==null?void 0:r.MAIN_IMAGE),...Dd(e),...$d(e),...Bd(e),...t}),_a=()=>{var e,t;return document?((t=(e=window.document.head.querySelector('meta[name="category"]'))==null?void 0:e.getAttribute("content"))==null?void 0:t.split("_"))??[]:[]},va=()=>{const e=window.localStorage.getItem("persistedCartEventsData");return e?JSON.parse(e):null},ba=(e,t)=>e==null?void 0:e[t],oo=({persistedData:e,type:t,sku:r,newData:o})=>{if(!e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({[r]:o}));return}if(e&&t==="add"){window.localStorage.setItem("persistedCartEventsData",JSON.stringify({...e,[r]:o}));return}e&&t==="remove"&&(delete e[r],window.localStorage.setItem("persistedCartEventsData",JSON.stringify(e)))},Ld=(e,t="1")=>{var i,a,c,l,u,p,h,d,f,m,_;const r=e.productReference??e.gtin??e.productRefId,o=e.image??((a=(i=e.items)==null?void 0:i[0])==null?void 0:a.images)??((c=e.itemOffered)==null?void 0:c.image),s=o==null?void 0:o.find(y=>y.alternateName===t||y.imageLabel===t||y.keywords===t);return{item_id:e.productId??((l=e.isVariantOf)==null?void 0:l.productGroupID)??((u=e.isVariationOf)==null?void 0:u.productGroupID)??((h=(p=e.itemOffered)==null?void 0:p.isVariationOf)==null?void 0:h.productGroupID),item_ref:/_\d$/.test(r)?r.slice(0,-2):r,item_name:e.productTitle??e.productName??e.name??ie.splitNameAndSizeFromFullName((d=e.itemOffered)==null?void 0:d.name,Ce.configs.NAME_SPLIT_SYMBOL).name,item_brand:((f=e.brand)==null?void 0:f.brandName)??((m=e.brand)==null?void 0:m.name)??e.brand??((_=e.itemOffered)==null?void 0:_.brand.name),item_url:`${Ce.configs.storeUrl}${e.linkText}/p`,item_image:(s==null?void 0:s.url)??(s==null?void 0:s.imageUrl)}},ts=e=>Array.isArray(e)?e.reduce((t,r)=>(r.length>t.length&&(t=r),t),""):e,Dd=e=>{var u,p;const{categories:t,categoriesIds:r}=e,o=t??((u=e.itemOffered)==null?void 0:u.categories),s=r??((p=e.itemOffered)==null?void 0:p.categoriesIds),i=ts(o),a=ts(s),c=i.slice(1,-1).split("/"),l=a.slice(1,-1).split("/");return{item_category:c[0].toLowerCase().includes(Ce.configs.categoryOff)?"Bazar":"Coleção",...c[1]&&{item_category2:c[1]},...c.length>2&&{item_category3:c[c.length-1]},item_category_id:l[l.length-1],...l.length>1&&{item_parent_category_id:l[l.length-2]}}},$d=e=>{var s,i,a,c,l,u;const t=((s=e.itemOffered)==null?void 0:s.skuName)??((c=(a=(i=e.isVariantOf)==null?void 0:i.hasVariant)==null?void 0:a[0])==null?void 0:c.name)??((u=(l=e.items)==null?void 0:l[0])==null?void 0:u.name),{color:r,size:o}=ie.getColorAndSizeFromSkuName(t,Ce.configs.NAME_SPLIT_SYMBOL);return{item_variant:r,...e.itemOffered&&{item_variant2:o}}},Bd=e=>{var l,u;const{price:t,listPrice:r,installments:o}=e,s=t??((l=e.offers)==null?void 0:l.lowPrice)??0,i=r??((u=e.offers)==null?void 0:u.highPrice)??0,a=i?i-s:0,c=a%1===0?a:Number(a.toFixed(2));return{...t&&{price:s??i},...i&&{list_price:i,discount:c},...o&&{installments:o==null?void 0:o.count,installment_value:o==null?void 0:o.value},item_currency:Ce.configs.currency}},xa=()=>{const[e,t]=_a(),[r,o]=e.split("-"),s=r.includes("shop")||r.includes("sale")?r:"";return{page_category:s&&o?o:"",page_departament:s,id:t,name:e}},zd=Object.freeze(Object.defineProperty({__proto__:null,eventsFunctions:Ce,findDataInPersistedData:ba,getAvailablesSizes:ya,getCategories:Md,getPageCategoryAndDepartmentFromSlug:xa,getPersistedData:va,getProductListInfoFromHead:_a,pushDatalayer:Ve,updatePersistedData:oo},Symbol.toStringTag,{value:"Module"})),Ca=x.createContext({}),Fd=({children:e,evtFunctionsConfigs:t})=>{const r=x.useRef({}),o=x.useRef(null),s=x.useRef(null),i=x.useRef({}),a=x.useRef({trigger:!1,index:0}),c=({functionKey:p,data:h,callBack:d,timeout:f=100})=>{window.dataLayer||(window.dataLayer=[]),Ce.configs=t;try{typeof Ce[p]=="function"&&setTimeout(()=>{var m;h.promotionInfo=r.current,(m=s.current)!=null&&m.item_list_name&&(h.itemList=s.current),Ce[p](h,d)},f)}catch(m){Ve({event:"error_event",data:{error_message:(m==null?void 0:m.message)??m}})}},l=({content:p})=>{c({functionKey:"readyEvents",data:{event:"select_content",readyData:{content_type:p.replace("::",":")}}})},u=({updatePromotionRef:p,promotion:h,index:d})=>{p&&(r.current={...h}),c({functionKey:"readyEvents",data:{event:"select_promotion",readyData:{ecommerce:{...h,...d!==void 0&&{index:d}}}}})};return n.jsx(Ca.Provider,{value:{sendDataLayerEvent:c,triggerSelectItemEventRef:a,promotionEventRef:r,currentLocalRef:o,itemListRef:s,cartProductsFullDataRef:i,handleSelectContent:l,handleSelectPromotionEvent:u},children:e})},ge=()=>x.useContext(Ca),Sa=x.createContext({}),qd=({children:e,productData:t,isKit:r,PDP_INFO:o,NAME_SPLIT_SYMBOL:s,TEXTURE_IMAGE:i})=>{var T,H;const{sendDataLayerEvent:a,triggerSelectItemEventRef:c}=ge(),{productId:l,productName:u,items:p,items:[{images:h,Videos:d}],description:f,["Composição"]:m="",productReference:_,categories:[y]}=t,{getAvailableProductTag:b}=jt(),j=b(Object.entries(t.clusterHighlights).map(U=>({id:U[0],name:U[1]}))),v=y.slice(1,-1).split("/"),{installments:S,price:E,listPrice:R,sizes:C,allSizesAvailable:A}=ie.getSkuInfos({items:p,NAME_SPLIT_SYMBOL:s}),O=ie.getThumbImage({images:h,TEXTURE_IMAGE:i}),w=[{label:`${o.product.description}`,value:"description",content:f},{label:`${o.product.materiais}`,value:"composition",content:m}],N=((H=ie.getColorAndSizeFromSkuName((T=t.items)==null?void 0:T[0].name,s))==null?void 0:H.color)??t["Cores Filtráveis"][0]??"",I=()=>({commonData:{...t,sizes:C,price:E,listPrice:R,installments:S},customData:{installments:S==null?void 0:S.count,installment_value:Number(S==null?void 0:S.value).toFixed(2)}}),B=({sku:U,size:q})=>{const{commonData:G,customData:W}=I();a({functionKey:"productEvents",data:{event:"view_item",commonData:G,customData:{...W,...U&&{item_sku:U},...q&&{item_variant2:q}}}})};return x.useEffect(()=>{if(c.current.trigger){const{commonData:U,customData:q}=I();a({functionKey:"productEvents",data:{event:"select_item",commonData:U,customData:{...q,index:c.current.index}}}),c.current.trigger=!1}B({})},[]),n.jsx(Sa.Provider,{value:{productData:t,productId:l,productName:u,productReference:_,tag:j,items:p,sizes:C,allSizesAvailable:A,installments:S,price:E,listPrice:R,thumbImage:O,images:h,video:d[0],descriptionContent:w,breadcrumbList:v,isKit:r,colorName:N,handleViewItemEvent:B},children:e})},jo=()=>{const e=x.useContext(Sa);if(e===void 0)throw new Error("useContext(PDPDataContext) must be used within a PDPDataProvider");return e},Hd=()=>{const[e,t]=x.useState(null);return[e,async o=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(o),t(o),!0}catch(s){return console.warn("Copy failed",s),t(null),!1}}]},Ud=()=>{x.useEffect(()=>{const e=t=>{t.preventDefault()};return document.addEventListener("gesturestart",e),document.addEventListener("gesturechange",e),document.addEventListener("dblclick",e),document.addEventListener("wheel",t=>{t.ctrlKey&&e(t)}),()=>{document.removeEventListener("gesturestart",e),document.removeEventListener("gesturechange",e),document.removeEventListener("dblclick",e),document.removeEventListener("wheel",e)}},[])},Wd=typeof window>"u",Vd=(e,t)=>{const[r,o]=x.useState(()=>{if(Wd)return null;const i=localStorage.getItem(e);return i===null?t:JSON.parse(i||"{}")});return x.useEffect(()=>{const i=a=>{a.storageArea===localStorage&&a.key===e&&o(JSON.parse(a.newValue))};return window.addEventListener("storage",i),()=>{window.removeEventListener("storage",i)}},[e,t]),[r,i=>{o(a=>{const c=typeof i=="function"?i(a):i;return localStorage.setItem(e,JSON.stringify(c)),c})}]};function ja(e,t,r){const[o,s]=x.useState(!1),{threshold:i}=r||{};return x.useEffect(()=>{if(!e.current)return()=>null;let a=null;const c=new IntersectionObserver(([l])=>{if(r!=null&&r.delay){a&&clearTimeout(a),a=setTimeout(()=>{s(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},r.delay);return}s(l.isIntersecting),t&&l.isIntersecting&&c.unobserve(e.current)},{threshold:i||1});return c.observe(e.current),()=>{c.disconnect()}},[e]),o}const Gd=({callback:e,onEnterViewportOnce:t,options:r})=>{const o=x.useRef(null);return x.useEffect(()=>{const s=o.current;if(!s)return;const i=new IntersectionObserver(([a])=>{a.isIntersecting&&typeof e=="function"&&(e(),t&&(i.unobserve(s),i.disconnect()))},r);return i.observe(s),()=>{t&&i.unobserve(s),i.disconnect()}},[e,t,r]),{element:o}},Kd=({defaultScale:e=1,maxScale:t=3})=>{const r=x.useRef(null),o=x.useRef(null),[s,i]=x.useState(e),a=x.useRef(0),c=x.useRef({x:0,y:0}),l=x.useRef({x:0,y:0}),u=()=>{if(!o.current||!r.current)return{minX:0,maxX:0,minY:0,maxY:0};const f=r.current.getBoundingClientRect(),m=o.current.children[0].getBoundingClientRect(),_=m.width,y=m.height,b=Math.min(0,(f.width-_)/2),j=Math.max(0,(_-f.width)/2),v=Math.min(0,(f.height-y)/2),S=Math.max(0,(y-f.height)/2);return{minX:b,maxX:j,minY:v,maxY:S}},p=(f,m,_)=>{if(o.current){const y=o.current.children[0];y&&requestAnimationFrame(()=>{y.style.transform=`translate(calc(-50% + ${f}px), calc(-50% + ${m}px)) scale(${_})`})}},h=x.useCallback(f=>{const{minX:m,maxX:_,minY:y,maxY:b}=u(),{x:j,y:v}=l.current,S=Math.max(m,Math.min(_,j)),E=Math.max(y,Math.min(b,v));if(f.touches.length>1){const R=f.touches[0],C=f.touches[1],A=R.pageX-C.pageX,O=R.pageY-C.pageY;a.current=Math.sqrt(A*A+O*O),c.current={x:(R.pageX+C.pageX)/2,y:(R.pageY+C.pageY)/2}}else f.touches.length===1&&(c.current={x:f.touches[0].pageX-S,y:f.touches[0].pageY-E})},[s,l]),d=x.useCallback(f=>{if(!o.current||!r.current)return;const{minX:m,maxX:_,minY:y,maxY:b}=u();if(f.touches.length>1){f.preventDefault();const j=f.touches[0],v=f.touches[1],S=j.pageX-v.pageX,E=j.pageY-v.pageY,R=Math.sqrt(S*S+E*E);if(!a.current){a.current=R;return}const C=R/a.current,A=Math.max(1,Math.min(t,s*C));if(s===A)return;i(A);const O=(j.pageX+v.pageX)/2,w=(j.pageY+v.pageY)/2;let N=O-c.current.x,I=w-c.current.y;N=Math.max(m,Math.min(_,N)),I=Math.max(y,Math.min(b,I)),l.current={x:N,y:I},a.current=R,p(N,I,A)}else if(f.touches.length===1){const j=f.touches[0].pageX,v=f.touches[0].pageY;let S=j-c.current.x,E=v-c.current.y;S=Math.max(m,Math.min(_,S)),E=Math.max(y,Math.min(b,E)),l.current={x:S,y:E},p(S,E,s)}},[t,s]);return x.useEffect(()=>(document.addEventListener("touchstart",h),document.addEventListener("touchmove",d,{passive:!1}),()=>{document.removeEventListener("touchstart",h),document.removeEventListener("touchmove",d)}),[d,h]),{containerRef:r,imgRef:o,scale:s}},Xd={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"},De=Promise.resolve(!1),so={id:"",isOpen:!1,items:[],loading:!1,marketingData:null,messages:[],openTextField:{},paymentData:null,shippingData:null,totalizers:[],itemMetadata:[],recentlyAddedProducts:[],addCoupon:()=>De,addItem:()=>De,addSellerCode:()=>De,addMarketingData:()=>De,emptyCart:()=>{},removeItem:()=>De,setIsOpen:()=>{},shipping:()=>De,shippingUpdate:()=>De,toggleServiceToProduct:()=>De,updateItemQuantity:()=>De,insertProfileEmail:()=>De,setRecentlyAddedProducts:()=>{}},Eo=e=>e===0,Ea=(e,t)=>{if(!e||e.length===0)return[];let r="";const o=[],s=e.match(/\d+/g)??[];for(const i of s){const a=t[Number(i)];a&&(r+=(r?"/":"")+a,o.push(r))}return o},wa=(e,t)=>{const{availability:r,additionalInfo:{brandName:o},bundleItems:s,id:i,uniqueId:a,detailUrl:c,ean:l,imageUrl:u,name:p,listPrice:h,quantity:d,price:f,priceDefinition:m,productCategories:_,productCategoryIds:y,productId:b,refId:j,seller:v,referenceId:S,offerings:E,productRefId:R,skuName:C,sellingPrice:A}=e;return{availability:r,bundleItems:s,referenceId:S,productRefId:R,id:i,ean:l,uniqueId:a,itemOffered:{additionalProperty:[],brand:{name:o},categories:Ea(y,_),categoriesIds:y,gtin:j,image:[{alternateName:(t==null?void 0:t.MAIN_IMAGE)??"1",url:u}],name:p,isVariationOf:{name:p,productGroupID:b},sku:i,slug:c,skuName:C},listPrice:h,quantity:d,offerings:E,price:f,priceDefinition:m,sellingPrice:A,seller:v}},Ra=(e,t)=>{const r=e.map(o=>({id:o.id,quantity:o.quantity,seller:o.seller}));return Array.isArray(t)?[...r,...t]:[...r,t]},Aa=(e,t)=>{const r=e.find(o=>o.id===t);if(r){const o=e.map((s,i)=>{var a,c;return{id:((a=s.itemOffered)==null?void 0:a.sku)??"",index:i,quantity:(r==null?void 0:r.id)===((c=s.itemOffered)==null?void 0:c.sku)?0:s.quantity,seller:s.seller??""}});return{updateItems:o,filterItems:o.filter(s=>s.id!==t)}}return{updateItems:[],filterItems:[]}},Pa=(e,t,r)=>e.filter(o=>o.availability!=="withoutStock"&&o.availability!=="https://schema.org/OutOfStock").map((o,s)=>{var i,a;return o.id===t?{id:o.id,index:s,quantity:r,seller:o.seller,sku:((i=o.itemOffered)==null?void 0:i.sku)??""}:{id:o.id,index:s,quantity:o.quantity,seller:o.seller,sku:((a=o.itemOffered)==null?void 0:a.sku)??""}}),io=(e,t)=>e.filter(r=>r.availability!=="withoutStock").findIndex(({id:r})=>r===t),Yd=(e,t)=>{var r;return Array.isArray(e)?(((r=e==null?void 0:e.find(o=>{var s;return((s=o==null?void 0:o.id)==null?void 0:s.toLowerCase())===t}))==null?void 0:r.value)??0)/100:0},Qd=e=>{const t=e.reduce((s,i)=>{const a=Eo(i.price)?0:i.quantity;return s+a},0),r=e.reduce((s,i)=>s+i.price*i.quantity,0),o=e.reduce((s,i)=>s+i.listPrice*i.quantity,0);return{totalItems:t,total:r,subTotal:o}},Zd=e=>Array.isArray(e)?e.filter(t=>t.availability!=="withoutStock").reduce((t,r)=>t+(Eo(r==null?void 0:r.price)?0:r.quantity),0):0,Ia=(e,t)=>{const{items:r,itemMetadata:o,marketingData:s,messages:i,orderFormId:a,openTextField:c,paymentData:l,shippingData:u,totalizers:p}=e;return{id:a,itemMetadata:o,items:Array.isArray(r)?r.map(h=>wa(h,t)):[],marketingData:s,messages:i,openTextField:c,paymentData:l,shippingData:u,totalizers:p}},Na=(e,t)=>{const r=e.find(o=>o.id===t);return r?r.availability==="unavailableItemFulfillment":!1},Jd=(e,t)=>{const r=e.sku,o=e.isVariantOf.hasVariant.find(s=>s.sku===r);return o?o.name.split(t)[1]:"--"},at=(e,t,r=!1)=>!e&&t!==""?{code:300,value:t,statusOk:r}:e===t?{code:200,value:t,statusOk:r}:{code:400,value:t,statusOk:r},ef=(e,t)=>{const r=new Set;return[e,...t].filter(o=>!r.has(o)&&r.add(o),r)},Ta=(e,t)=>t&&Array.isArray(t)&&t.find(o=>o.id===e)?Promise.resolve(e):Promise.resolve(!1),Oa=(e,t)=>t?Promise.resolve(e[t]):Promise.resolve(!1),ka=async e=>{try{const t=await e();if(typeof t!="boolean")return t}catch(t){console.error(`[Error orderForm]: ${t}`)}return!1},Ma=(e,t)=>{if(t!==-1){const r=Number(e);return r?r+1:1}return e??1},La=(e,t)=>Array.isArray(e)?e.filter(r=>t==null?void 0:t.some(o=>o.id===r.id)):[],Da=async(e,t)=>e.then(r=>[...r??[],...t??[]]),Te=async(e,t,r,o)=>{const{priority:s="auto",body:i}=t;return fetch(e,{headers:{"Content-Type":"application/json"},priority:s,method:"POST",body:JSON.stringify(i)}).then(async a=>{const c=await a.json();return r?c:Ia(c,o)})},$a=(e,t,r)=>({notifications:[...e.notifications,{id:Date.now(),message:t,callback:r}]}),Ba=e=>[...Array.isArray(e)?e:[e],"faststore"],za=e=>{const t=e.get("utm_source")||Xe("utm_source"),r=e.get("utm_campaign")||Xe("utm_campaign"),o=e.get("utm_medium")||Xe("utm_medium"),s=e.get("utmi_cp")||Xe("utmi_cp"),i=e.get("utmi_pc")||Xe("utmi_pc"),a=e.get("utmi_p")||Xe("utmi_p");return{...t&&{utmSource:t},...o&&{utmMedium:o},...r&&{utmCampaign:r},...s&&{utmiCampaign:s},...i&&{utmiPart:i},...a&&{utmipage:a}}},Xe=e=>{if(!e||typeof window>"u")return;const t=window.location.href;e=e.replace(/[[\]]/g,"\\$&");const r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),o=r.exec(t);return o?o[2]?decodeURIComponent(o[2].replace(/\+/g," ")):"":null},tf=Object.freeze(Object.defineProperty({__proto__:null,VALUE_REFERENCES:Xd,addItemOrder:Ra,addNotification:$a,createItemOrder:wa,fetchCartAPI:Te,findItemIndex:io,findOptions:La,findTotalizerValue:Yd,getCategories:Ea,getCode:at,getQuantity:Ma,getRemoveId:Ta,getSize:Jd,getTotalItems:Zd,getTotalizer:Qd,getUrlParameter:Xe,getValue:Oa,initialState:so,isGift:Eo,marketingTagsBuilder:Ba,mergeOptionsPromise:Da,mountMarketingData:za,orderFormValues:Ia,promiseDefault:De,removeQuantity:Aa,updateItemSellerExternal:Na,updateOrderFormPromise:ka,updateQuantity:Pa,wishlistArray:ef},Symbol.toStringTag,{value:"Module"})),rf=()=>{const e=async(f,m)=>Te("/api/checkout/order-form/coupon",{body:{orderFormId:f,coupon:m}}),t=async(f,m)=>{if(m){const _=m.includes(" - ")?m.split(" - ")[0]:m,y=await Te("/api/checkout/order-form/seller-code",{body:{orderFormId:f,sellerCode:_}},!0);return y instanceof Object&&"nome"in y&&(y==null?void 0:y.status)===!0?Te("/api/checkout/order-form/attachments",{body:{orderFormId:f,sellerCode:_,sellerName:y.nome}}).then(j=>({...j,openTextField:{...(j==null?void 0:j.openTextField)??{},statusOk:!0}})):Promise.resolve({paymentData:null,openTextField:{statusOk:!1,value:_}})}else return Te("/api/checkout/order-form/attachments",{body:{orderFormId:f,sellerCode:"",sellerName:""}})},r=async(f,m)=>Te("/api/checkout/order-form/attachments/marketing-data",{body:{orderFormId:f,marketingData:m}}),o=async(f,m,_)=>Te("/api/checkout/order-form/items",{body:{orderFormId:f,orderItems:Ra(m,_)}}),s=async(f,m,_,y=!1)=>Te("/api/checkout/order-form/offerings",{body:{id:m,itemIndex:_,orderFormId:f,remove:y}}),i=async f=>Te("/api/checkout/order-form/items/remove-all",{body:{orderFormId:f}}),a=async(f,m="low")=>Te("/api/checkout/order-form",{priority:m,body:{orderFormId:f??""}}),c=async(f,m)=>Te("/api/checkout/order-form/profile",{body:{orderFormId:f,email:m}}),l=async(f,m,_)=>{const y=Aa(m,_);return Te("/api/checkout/order-form/items/update",{body:{orderItems:y.updateItems,orderFormId:f}})},u=async(f,m,_)=>Te("/api/checkout/order-form/shipping",{body:{orderFormId:f,country:_,postalCode:m}}),p=async(f,m,_)=>Te("/api/checkout/order-form/shipping/update",{body:{orderFormId:f,options:m,selectedAddresses:_}}),h=async(f,m,_,y)=>{const b=Pa(m,_,y);return Te("/api/checkout/order-form/items/update",{body:{orderFormId:f,orderItems:b}})};return{addCoupon:e,addItem:o,addSellerCode:t,addMarketingData:r,giftItem:s,emptyCart:i,getOrderForm:a,insertProfileEmail:c,removeItem:l,shipping:u,shippingUpdate:p,updateItemQuantity:async(f,m,_,y,b)=>h(f,m,_,y).then(j=>j&&Array.isArray(j.items)?Na(j.items,_)?h(f,m,_,b):j:!1)}},ao="soma::cart",vt="soma::options",ut=tt.create((e,t)=>{const r=rf(),o=async(s,i,a)=>{e({loading:!0});const c=await ka(s);if(typeof c!="boolean"){e({...c});const l=await Da(st.get(vt),a);return st.set(vt,l),Oa(c,i).finally(()=>e({loading:!1,options:l}))}return De};if(typeof window<"u"){const s=async i=>{if(i){const a=await st.get(vt).then(u=>La(u,i.items));st.set(ao,i),st.set(vt,a),e({...i,options:a});const c=new URLSearchParams(window.location.search),l=c.get("utm_campaign")||c.get("utmi_campaign")||"";l&&o(()=>r.addSellerCode(t().id,l.toUpperCase()),"openTextField")}};return st.get(ao).then(i=>r.getOrderForm(i?i.id:"").then(s)),{...so,addCoupon:async i=>o(()=>r.addCoupon(t().id,i),"marketingData"),addItem:(i,a)=>{o(()=>r.addItem(t().id,t().items,i),"items",a)},addSellerCode:async i=>o(()=>r.addSellerCode(t().id,i),"openTextField"),addMarketingData:async i=>o(()=>r.addMarketingData(t().id,i),"marketingData"),emptyCart:()=>{o(()=>r.emptyCart(t().id))},removeItem:async i=>{const a=await o(()=>r.removeItem(t().id,t().items,i),"items");return Ta(i,a)},shipping:async(i,a="BR")=>o(()=>r.shipping(t().id,i??"",a),"shippingData"),shippingUpdate:async i=>o(()=>{var a;return r.shippingUpdate(t().id,i,(a=t().shippingData)==null?void 0:a.selectedAddresses)},"shippingData"),toggleServiceToProduct:async(i,a,c)=>o(()=>r.giftItem(t().id,i,a,c),"items"),updateItemQuantity:async(i,a,c)=>{const{id:l,items:u}=t();return o(()=>{var p;return r.updateItemQuantity(l,u,i,a,((p=u.find(h=>h.id===i))==null?void 0:p.quantity)??1)},"items",c?[c]:void 0)},insertProfileEmail:async i=>o(()=>r.insertProfileEmail(t().id,i),"clientProfileData"),setIsOpen:i=>e({isOpen:i})}}return so}),nf=()=>ut(e=>e),Fa=tt.create(e=>({notifications:[],actions:{addNotification:(t,r)=>e(o=>$a(o,t,r)),removeNotification:t=>e(r=>({notifications:r.notifications.filter(o=>o.id!==t)}))}})),wo=()=>Fa(e=>e.notifications),Ro=()=>Fa(e=>e.actions),of=Object.freeze(Object.defineProperty({__proto__:null,KEY_INDEXED_OPTIONS:vt,KEY_INDEXED_STORE:ao,useCartStore:ut,useGetCartStoreState:nf,useGetNotificationActions:Ro,useGetNotificationsStore:wo},Symbol.toStringTag,{value:"Module"})),sf=6e3,qa=x.createContext({}),Ha=({children:e,...t})=>{const{items:r}=ut(),[o,s]=x.useState([]),i=x.useRef(null),a=x.useMemo(()=>Array.isArray(o)&&o.length>0?o.map(c=>r.find(l=>l.id===c.id)).filter(c=>c!==void 0):[],[r,o]);return x.useEffect(()=>{o.length&&(clearTimeout(i.current??0),i.current=setTimeout(()=>{s([])},sf))},[o]),n.jsx(qa.Provider,{value:x.useMemo(()=>({...t,setRecentlyAdded:s,recentlyAddedProducts:a}),[t,s,a]),children:e})},Et=()=>{const e=x.useContext(qa);if(e===void 0)throw new Error("useUIContext must be used within a UIProvider");return e};class Ua{constructor(){gr(this,"events",{});gr(this,"prevData",{})}subscribe(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),()=>{this.events[t]=this.events[t].filter(o=>o!==r)}}publish(t,r){this.events[t]&&this.events[t].forEach(o=>{this.prevData[t]=r,o(r)})}}const Wa=x.createContext({}),af=({children:e,headerConfigs:t,pathname:r,...o})=>{const[s,i]=x.useState(!0),a=r==="/",c=x.useRef(new Ua),l=h=>h?{headerVariant:t.home_default_variant,bannerVariant:t.home_default_variant,position:t.home_default_position}:{headerVariant:t.default_variant,bannerVariant:t.default_variant,position:t.default_position},u=l(a),p=x.useRef(u);return x.useEffect(()=>{var f;const h=((f=new URLSearchParams(window.location.search))==null?void 0:f.toString())??"";(h.includes("utm_")||h.includes("gclid"))&&(no.get("lastMedias")||no.set("lastMedias",`${h}`,{expires:1/24}));const d=()=>{const m=typeof(window==null?void 0:window.navigator)>"u"?"":navigator==null?void 0:navigator.userAgent,_=window.innerWidth<1024||!!m.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);s!==_&&i(_)};return d(),window.addEventListener("resize",d,{passive:!0}),()=>window.removeEventListener("resize",d)},[s]),x.useEffect(()=>{const h=l(a);c.current.publish("header:change_variant",h.headerVariant),c.current.publish("header:change_position",h.position),p.current=h},[a]),n.jsx(Wa.Provider,{value:{isMobile:s,mediatorRef:c,currentHeaderConfigsRef:p,...o},children:n.jsx(Ha,{children:e})})},be=()=>x.useContext(Wa),Va=x.createContext({}),cf=({children:e,...t})=>n.jsx(Va.Provider,{value:{...t},children:e}),Re=()=>x.useContext(Va),rt=(e,t)=>tt.create(r=>{const o=()=>r({value:e});return t&&t instanceof Set&&t.add(o),{value:e,actions:{setValue:s=>r({value:s}),reset:o}}}),St={category:null,menuMobileIsOpen:!1,searchModalIsOpen:!1,userMenuIsOpen:!1},wt=new Set,lf=()=>{wt.forEach(e=>{e()})},Ga=tt.create((e,t)=>{const r=()=>e({value:St.category});return wt.add(r),{value:St.category,actions:{reset:r,setValue:o=>e(()=>({value:o})),updateValue:o=>{t().value!==o&&e({value:o})}}}}),or=()=>Ga(e=>e.value),Ke=()=>Ga(e=>e.actions),Ka=rt(St.menuMobileIsOpen,wt),Ao=()=>Ka(e=>e.value),nt=()=>Ka(e=>e.actions),Xa=rt(St.searchModalIsOpen,wt),uf=()=>Xa(e=>e.value),Po=()=>Xa(e=>e.actions),Ya=rt(St.userMenuIsOpen,wt),Qa=()=>Ya(e=>e.value),Rt=()=>Ya(e=>e.actions),df=Object.freeze(Object.defineProperty({__proto__:null,resetAllHeaderStores:lf,useActionsHeaderCategory:Ke,useActionsMenuMobileIsOpen:nt,useActionsSearchModalIsOpen:Po,useActionsUserMenuIsOpen:Rt,useGetHeaderCategoryStore:or,useGetMenuMobileIsOpen:Ao,useGetSearchModalIsOpen:uf,useGetUserMenuIsOpen:Qa},Symbol.toStringTag,{value:"Module"})),dt={selectedSkuInfo:{productId:"",name:"",size:"",sku:"",sellerId:"",sellerName:"",available:!1,quantity:1},openLetMeKnow:!1,openMeasurements:!1,showBottomNavigation:!1,showNotify:!1},mt=new Set,ff=()=>{mt.forEach(e=>{e()})},Za=tt.create(e=>{const t=()=>e({value:dt.selectedSkuInfo});return mt.add(t),{value:dt.selectedSkuInfo,actions:{setValue:r=>e(o=>({value:{...o,...r}})),reset:t}}}),pf=()=>Za(e=>e.value),mf=()=>Za(e=>e.actions),Ja=rt(dt.openLetMeKnow,mt),hf=()=>Ja(e=>e.value),gf=()=>Ja(e=>e.actions),ec=rt(dt.showNotify,mt),yf=()=>ec(e=>e.value),_f=()=>ec(e=>e.actions),tc=rt(dt.showBottomNavigation,mt),vf=()=>tc(e=>e.value),bf=()=>tc(e=>e.actions),rc=rt(dt.openMeasurements,mt),xf=()=>rc(e=>e.value),Cf=()=>rc(e=>e.actions),Sf=Object.freeze(Object.defineProperty({__proto__:null,resetAllPDPStores:ff,useActionsPDPOpenLetMeKnow:gf,useActionsPDPOpenMeasurements:Cf,useActionsPDPSelectedSkuInfo:mf,useActionsPDPShowBottomNavigation:bf,useActionsPDPShowNotify:_f,useGetPDPOpenLetMeKnow:hf,useGetPDPOpenMeasurements:xf,useGetPDPSelectedSkuInfo:pf,useGetPDPShowBottomNavigation:vf,useGetPDPShowNotify:yf},Symbol.toStringTag,{value:"Module"})),rs={feedback:{active:!1,action:"add"},list:[]},Io=tt.create((e,t)=>({value:rs,actions:{reset:()=>e({value:rs}),setValue:o=>e(()=>({value:o})),toggleProduct:o=>e(s=>s.value.list.includes(o)?{value:{feedback:{active:!0,action:"remove"},list:s.value.list.filter(i=>i!==o)}}:{value:{feedback:{active:!0,action:"add"},list:[...s.value.list,o]}}),updateList:o=>e(s=>({value:{...s.value,list:o}})),resetFeedback:()=>e(o=>({value:{...o.value,feedback:{active:!1,action:""}}}))}})),nc=()=>Io(e=>e.value.list),jf=()=>Io(e=>e.value.feedback),oc=()=>Io(e=>e.actions),Ef=Object.freeze(Object.defineProperty({__proto__:null,useActionsWishlistStore:oc,useGetWishlistFeedbackStore:jf,useGetWishlistStore:nc},Symbol.toStringTag,{value:"Module"})),sc=x.createContext({}),wf=({children:e,headerData:t,...r})=>{var p,h;const o=x.useRef(null),s=x.useRef(null),i=x.useRef(null),a=x.useRef(null),c=x.useRef(null),{mediatorRef:l,currentHeaderConfigsRef:u}=be();return(p=l.current)==null||p.subscribe("header:change_variant",d=>{var b,j,v;if(d&&u.current&&(u.current.bannerVariant=d),!o.current)return;const m=document.body.scrollTop>0,_=o.current.getAttribute("data-interactiveVariant"),y=m?_:d??((b=u.current)==null?void 0:b.bannerVariant)??"default";y!==((j=u.current)==null?void 0:j.headerVariant)&&(o.current.setAttribute("data-bottomdivider",String(m)),o.current.setAttribute("data-variant",String(y)),(v=l.current)==null||v.publish("herobanner:change_controllers_variant",y),u.current&&(u.current.headerVariant=y))}),(h=l.current)==null||h.subscribe("header:change_position",d=>{o.current&&(o.current.style.position=d)}),x.useEffect(()=>{const d=new AbortController,f=g.helpers.throttle(()=>{var _;return(_=l.current)==null?void 0:_.publish("header:change_variant",null)},200);document.body.addEventListener("scroll",f,{passive:!0,signal:d.signal});const m=_=>{var b;(b=_.target.closest("a"))==null||b.blur()};return o.current&&(o.current.addEventListener("click",m,{signal:d.signal}),o.current.addEventListener("touchend",m,{signal:d.signal})),()=>{d.abort()}},[]),n.jsx(sc.Provider,{value:{headerData:t,structureRef:s,rootRef:o,tipbarRef:i,userMenuMobileRef:a,userMenuDesktopRef:c,...r},children:e})},je=()=>x.useContext(sc),ic=x.createContext({}),ac=({children:e})=>{const t=x.useRef(null),r=x.useRef(null),o=Ao(),s=x.useCallback(()=>{var i;{const a=(i=t.current)==null?void 0:i.querySelector("dialog");if(a){a.dataset.animation="out";const c=a.children[0];c.dataset.animation="out"}}},[]);return x.useEffect(()=>{var i;if(o)document.body.dataset.modalopen="true";else{document.body.dataset.modalopen="false";const a=(i=r.current)==null?void 0:i.querySelector("dialog");if(a){a.dataset.animation="out";const c=a.children[0];c.dataset.animation="out"}}},[o]),x.useEffect(()=>{r.current=document.body},[]),n.jsx(ic.Provider,{value:{bodyRef:t,handleCloseSubMenu:s,documentBodyRef:r},children:e})},At=()=>x.useContext(ic),Rf=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Af=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),i=e!=null&&e.parentElement?Rf(e==null?void 0:e.parentElement):0;return{left:o.left+o.width/2-(s.width+i),top:o.top+o.height+r}},cc=x.createContext({}),lc=({children:e,delay:t=600,gap:r=20,...o})=>{const[s,i]=x.useState(!1),a=x.useRef(null),[c,l]=x.useState(!1),[u,p]=x.useState({left:0,top:0}),h=x.useCallback(()=>{l(!0),typeof window<"u"&&(a.current=window.setTimeout(()=>{i(!1),l(!1)},t))},[l,i,t]);return x.useEffect(()=>{if(typeof window>"u")return;const d=window.document.querySelector("#cart-button"),f=window.document.querySelector("#add-to-cart--tooltip");if(d&&f){const{left:m,top:_}=Af(f,d,r??0);p({left:m,top:_}),l(!1)}},[r,s]),n.jsx(cc.Provider,{value:x.useMemo(()=>({...o,...u,handleClose:h,isLeaving:c,isOpen:s,setIsOpen:i,setIsLeaving:l}),[o,u,h,c,s,i,l]),children:e})},ot=()=>{const e=x.useContext(cc);if(e===void 0)throw new Error("useAddToCartContext must be used within a AddToCartProvider");return e},uc=x.createContext({}),Pf=({children:e,CARTPROVIDER_MESSAGE_PRODUCT_REMOVE:t,...r})=>{const o=ut(),{setRecentlyAdded:s}=Et(),i=x.useRef(""),a=wo(),{addNotification:c,removeNotification:l}=Ro(),{addCoupon:u,addItem:p,addSellerCode:h,addMarketingData:d,emptyCart:f,isOpen:m,removeItem:_,shipping:y,shippingUpdate:b,toggleServiceToProduct:j,updateItemQuantity:v}=o;x.useEffect(()=>{const q=no.get("lastMedias");if(o.id&&q&&i.current!==q){i.current=q;const G=new URLSearchParams(q),W=za(G);d(W)}},[o,d]);const S=x.useCallback(async(q,G)=>(G==="coupon"?u(q):h(q)).then(z=>{if(typeof z!="boolean"&&z instanceof Object){if(G==="seller"&&"value"in z){const{statusOk:Z,value:P}=z,k=String(P??"").split(" - ");return at((k==null?void 0:k[0])??"",q,!!Z)}return at(String(z.coupon),q,!0)}return at("","")}).catch(()=>Promise.resolve({code:400})),[u,h]),E=x.useCallback((q,G,W)=>{const{id:z}=q;v(z,G,W)},[v]),R=x.useCallback((q,G,W=!1)=>{if(!q)return;const{id:z}=q,Z=io(o.items,z);if(Z!==-1&&!W){const P=Number(o.items[Z].quantity),k=o.items[Z]?P+1:1;E(q,k,G)}else p({id:z,quantity:(q==null?void 0:q.quantity)??1,seller:q.seller});m||s(P=>[...P,q])},[p,E,o.items,m,s]),C=x.useCallback((q,G)=>{if(!q||!Array.isArray(q))return;s(z=>[...z,...q]);const W=q.map(z=>{const{id:Z,quantity:P,seller:k}=z,D=io(o.items,Z),K=Ma(P??1,D);return{id:Z,quantity:K,seller:k}});p(W,G)},[p,o.items,s]),A=x.useCallback(async(q,G,W)=>q?_(q).then(()=>(c(G??`${t}`,W),at(q,q))):Promise.resolve(at("","Product id required")),[c,_]),O=x.useCallback(()=>{o.items.length>0&&f()},[f,o.items]),w=x.useCallback((q,G="BRA")=>y(q,G),[y]),N=x.useCallback(q=>{q&&b(q)},[b]),I=x.useCallback(async(q,G,W)=>{const z=o.items.findIndex(P=>P.id===q);return o.items[z]&&z>=0?j(G,z,W??!1):!1},[o.items,j]),B=x.useCallback(async(q,G)=>v(q,G).then(W=>{if(Array.isArray(W)){const z=W.find(Z=>Z.id===q);if(z&&(z==null?void 0:z.quantity)<G)return String(z.quantity)}return!1}),[v]),T=x.useCallback(async()=>{await d({...o.marketingData,coupon:""})},[d,o.marketingData]),H=x.useCallback(async()=>{await d({...o.marketingData,utmiCampaign:"",utmCampaign:"",utmSource:"",utmMedium:""})},[d,o.marketingData]),U=x.useCallback(async()=>{await y("","BRA")},[y]);return n.jsx(uc.Provider,{value:x.useMemo(()=>({...r,addCouponSeller:S,addToCart:R,addItemsToCart:C,cartStore:o,notifications:a,clearCart:O,addNotification:c,isOpen:o.isOpen,removeNotification:l,removeToCart:A,setIsOpen:o.setIsOpen,shipping:w,shippingUpdateOption:N,toggleGiftItemCart:I,updateItemQuantity:B,removeCoupon:T,removeSellerCode:H,removeCEP:U}),[r,S,R,C,a,O,c,o,l,A,w,N,I,B,T,H,U]),children:e})},we=()=>{const e=x.useContext(uc);if(e===void 0)throw new Error("useCartContext must be used within a CartProvider");return e},dc=x.createContext({}),No=({children:e,fetch:t})=>{const r=x.useRef(!0),[o,s]=x.useState(null),[i,a]=x.useState(!1);return x.useEffect(()=>{(async()=>{r.current=!0;try{const l=await t();if(!l.ok)throw new Error("Failed to fetch data");const u=await l.json();s(u.data),r.current=!1}catch{r.current=!0,a(!0)}})()},[t]),n.jsx(dc.Provider,{value:x.useMemo(()=>({data:o,isLoading:r.current??!1,isError:i}),[o,i,r]),children:e})},To=()=>{const e=x.useContext(dc);if(e===void 0)throw new Error("useProductsContext must be used within a useRootContext");return e},fc=x.createContext({}),pc=({children:e,sort:t,state:r,count:o,collectionId:s,brand:i,CONSTANTS:a})=>{const c=x.useMemo(()=>{var l;return s?[{key:"productclusterids",value:s.toString()}]:i?[{key:"brand",value:i}]:(l=r.base)!=null&&l.length?r.base.slice(1).split("/").map((u,p)=>({key:`category-${p+1}`,value:u})):[]},[r.base,s]);return n.jsx(fc.Provider,{value:x.useMemo(()=>({state:{...r,facets:[...c,...r.facets??[]]},sort:t,count:o??a.ITEMS_PER_PAGE}),[c,o,t,r]),children:e})},sr=()=>{const e=x.useContext(fc);if(e===void 0)throw new Error("useSearchContext must be used within a SearchProvider");return e},yt={placeholder:"Ordernar por",options:{score_desc:"Mais Relevantes",orders_desc:"Mais Vendidos",price_desc:"Maior Preço",price_asc:"Menor Preço",release_desc:"Novidades",discount_desc:"Maior Desconto",name_asc:"De A a Z"}},If={nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"0",count:0,total:0},Nf="Imagem do produto",ns=1,Tf="Sair",Of=e=>e.exit,kf=({ICONS:e,storeConfig:t})=>[{icon:e.person,label:"Minha conta",href:`${t.secureSubdomain}/api/io/account#/profile`,needToBeAuth:!1,deviceShown:"both"},{icon:e.delivery_truck,label:"Meus pedidos",href:`${t.secureSubdomain}/api/io/account#/orders`,needToBeAuth:!1,deviceShown:"both"},{icon:e.favorite_false,label:t.wishlistConfig.label,href:t.wishlistConfig.path,needToBeAuth:!1,deviceShown:"mobile"},{icon:e.help,label:t.termsConfig.label,href:t.termsConfig.path,needToBeAuth:!1,deviceShown:"mobile"}],Mf=(e,t)=>{const r=(t??"").split("@")[0];return e?`Olá${r.length?", ":" "}${r}!`:"Olá!"},Lf=e=>"Seja bem vindo!",mc=x.createContext({}),Df=({children:e,searchParams:t,selectedFacets:r,PLP_SORT_DEFAULT:o})=>{const{data:s,...i}=To(),{router:a}=Re(),c=x.useCallback((d,f)=>{if(f){if(d.key.toLocaleLowerCase()==="price"){const m=f.getAll("facets");f.delete("facets"),m.forEach(_=>{const[y]=_.split("/");y!==d.key&&f.append("facets",_)})}f.set("page","1"),f.append("facets",`${d.key}/${d.value}`),a.push(`?${f.toString()}`)}},[a]),l=x.useCallback(()=>{const d=new URLSearchParams;d.set("sort",o),d.set("page","1"),a.push(`?${d.toString()}`)},[a]),u=x.useCallback((d,f)=>{if(!f||!f.has&&!f.has("facets"))return;const m=f.getAll("facets");f.delete("facets"),f.set("page","1"),m.forEach(_=>{const[y,b]=_.split("/");(y!==d.key||b!==d.value)&&f.append("facets",_)}),a.push(`?${f.toString()}`)},[a]),p=x.useCallback(d=>{const f=new URLSearchParams(ie.convertSearchParams(t));for(const[,m]of f.entries()){const[_,y]=m.split("/");if(_===d.key&&y===d.value)return u(d,f)}return c(d,f)},[c,u,t]),h=x.useCallback(d=>{const f=new URLSearchParams(ie.convertSearchParams(t));f.set("sort",d.replace("_",":")),a.push(`?${f.toString()}`)},[a,t]);return n.jsx(mc.Provider,{value:x.useMemo(()=>({...i,breadcrumb:s&&"breadcrumb"in s?s==null?void 0:s.breadcrumb:[],deleteAllFacets:l,facets:s&&"facets"in s?s==null?void 0:s.facets:[],selectedFacets:r,onToggleFacet:p,onSort:h,searchParams:t}),[s,l,h,p,i,r,t]),children:e})},$f=({children:e,searchParams:t,forceUpdate:r,PLP_SORT_DEFAULT:o})=>{const{state:s}=sr();return n.jsx(No,{fetch:()=>fetch("/api/search/facets",{method:"POST",body:JSON.stringify({...s,forceUpdate:r}),priority:"low"}),children:n.jsx(Df,{selectedFacets:(s==null?void 0:s.facets)??[],searchParams:t,PLP_SORT_DEFAULT:o,children:e})})},Bf=()=>{const e=x.useContext(mc);if(e===void 0)throw new Error("useFacetsContext must be used within a FacetsProvider");return e},hc=x.createContext({}),zf=({children:e})=>{const{data:t,...r}=To(),[o,s]=x.useState(0),{sendDataLayerEvent:i}=ge();return x.useEffect(()=>{if(t&&"pagination"in t&&t.products.length>0){i({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:t.products}}});const a=t.pagination.count;a&&Number.isInteger(a)&&s(a)}},[t,i,s]),n.jsx(hc.Provider,{value:x.useMemo(()=>({...r,products:t&&"products"in t?t==null?void 0:t.products:[],pagination:t&&"pagination"in t?t==null?void 0:t.pagination:If,total:o}),[t,r,o]),children:e})},Ff=({children:e,query:t,state:r,selectedFacets:o,forceUpdate:s})=>n.jsx(No,{fetch:()=>fetch("/api/search/product",{method:"POST",body:JSON.stringify({...r,query:t,forceUpdate:s,facets:o??[]})}),children:n.jsx(zf,{state:r,children:e})}),qf=()=>{const e=x.useContext(hc);if(e===void 0)throw new Error("useProductsContext must be used within a ProductsProvider");return e},gc=x.createContext({}),Hf=({children:e,term:t})=>{const[r,o]=x.useState([]),[s,i]=x.useState(!1);return x.useEffect(()=>{if(!t){o([]);return}(async()=>{i(!0);try{const c=await fetch("/api/search/suggestedTerms",{method:"POST",body:JSON.stringify({query:t,locale:"pt-BR"})}),{data:l}=await c.json();o((l==null?void 0:l.searches)||[])}catch(c){console.error("Erro ao buscar sugestões:",c)}})()},[t]),n.jsx(gc.Provider,{value:x.useMemo(()=>({suggestedTerms:r,loading:s,setLoading:i}),[r,s]),children:e})},Uf=({children:e,...t})=>n.jsx(Hf,{...t,children:e}),Wf=()=>{const e=x.useContext(gc);if(!e)throw new Error("useSuggestedTermsContext must be used within a SuggestedTermsProvider");return e},yc=x.createContext({searches:[],isLoading:!1,error:null}),Vf=({children:e})=>{const[t,r]=x.useState([]),[o,s]=x.useState(!0),[i,a]=x.useState(null);return x.useEffect(()=>{(async()=>{try{s(!0);const l=await fetch("/api/search/topSearch");if(!l.ok)throw new Error(`Erro ao buscar os dados: ${l.status}`);const u=await l.json();r(u.data.searches||[])}catch(l){a(l instanceof Error?l.message:"Erro desconhecido")}finally{s(!1)}})()},[]),n.jsx(yc.Provider,{value:x.useMemo(()=>({searches:t,isLoading:o,error:i}),[t,o,i]),children:e})},Gf=()=>{const e=x.useContext(yc);if(!e)throw new Error("useTopSearches must be used within a TopSearchesProvider");return e},_c=x.createContext({}),Kf=({children:e,slug:t,searchParams:r,collectionId:o,brand:s,itemsPerPage:i=24,PLP_SORT_DEFAULT:a})=>{const{pathname:c}=Re(),l=x.useRef(""),[u,p]=x.useState(!1),h=x.useMemo(()=>{const f=new URL(c,"http://localhost"),m=Array.isArray(r==null?void 0:r.facets)?r.facets:[(r==null?void 0:r.facets)??""],_=(r==null?void 0:r.page)??"1",y=(r==null?void 0:r.sort)??(o?"":a);return f.searchParams.set("page",String(_)),f.searchParams.set("sort",String(y)),r!=null&&r.query?(f.searchParams.set("query",r.query),f):(f.searchParams.set("base",Array.isArray(t)?t.join("/"):t),f.searchParams.set("facets",m.join(",")),f)},[o,c,r,t]),d=x.useMemo(()=>{if(Array.isArray(r==null?void 0:r.facets))return ie.parseSearchState(h,r.facets);const f=r!=null&&r.facets?[r==null?void 0:r.facets]:[];return ie.parseSearchState(h,f)},[h,r]);return x.useEffect(()=>{l.current!==c&&(l.current=c,window.document.body.scrollTo(0,0))},[c]),n.jsx(_c.Provider,{value:x.useMemo(()=>({openFilters:u,setOpenFilters:p}),[u,p]),children:n.jsx(pc,{CONSTANTS:{ITEMS_PER_PAGE:i},state:x.useMemo(()=>({...d}),[d]),collectionId:o,brand:s,children:e})})},Xf=()=>{const e=x.useContext(_c);if(e===void 0)throw new Error("usePLPContext must be used within a PLPProvider");return e},tr=(e,t)=>{if(e===t)return!0;if(e==null||t==null||typeof e!="object"||typeof t!="object")return!1;if(Array.isArray(e))return!Array.isArray(t)||e.length!==t.length?!1:e.every((s,i)=>tr(s,t[i]));if(Array.isArray(t))return!1;const r=Object.keys(e),o=Object.keys(t);return r.length!==o.length?!1:r.every(s=>Object.prototype.hasOwnProperty.call(t,s)&&tr(e[s],t[s]))},vc=(e,t,r="page")=>Object.keys(t).some(o=>o===r?!1:!tr(t[o],e[o])),co=async e=>{const t=await fetch("/api/search/product",{method:"POST",body:JSON.stringify(e),priority:"high"});if(!t.ok)throw new Error("[FAILED TO FETCH DATA]");const r=await t.json();return r==null?void 0:r.data},bc=()=>({node:{sku:"",gtin:"",name:"...",description:"",releaseDate:"",slug:"",video:null,categories:[],categoryId:"",categoriesIds:[],id:"skeleton",brand:{name:""},seo:{title:"",description:"",canonical:""},cluster:{generals:[],highlights:[]},availability:{status:!0},breadcrumbList:{itemListElement:[]},image:[{alternateName:"1",url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGNgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII=",keywords:"1"},{alternateName:"10",url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottgAAAABJRU5ErkJggg==",keywords:"10"}],offers:{lowPrice:1,highPrice:0,offers:[{availability:"true",listPrice:0,price:0,priceValidUntil:"",priceCurrency:"BRL",itemCondition:"",quantity:1,seller:{identifier:"1"}}],priceCurrency:"BRL"},isVariantOf:{productGroupID:"",hasVariant:[{additionalProperty:[{name:"Tamanho",value:"...",valueReference:"SPECIFICATION",propertyID:""}],name:"...",offers:{offers:[{availability:"https://schema.org/InStock",listPrice:0,price:0,quantity:1,seller:{identifier:"1"}}]},sku:"1",slug:"1",productId:"1"}],name:"",additionalProperty:[],skuVariants:null},installments:{count:2,value:1}}}),xc=(e,t,r,o=24)=>{const s=new Set,i=[];if(!Array.isArray(e)||e.length===0)return{taken:s,placedBanners:i};const a=t*o*r;for(const c of e){let l=Number(c.position_grid),u=!1;for(;l<a;){const p=l%r;if(p+c.columns>r){l+=r-p;continue}if(!Array.from({length:c.columns}).some((f,m)=>s.has(l+m))){for(let f=0;f<c.columns;f++)s.add(l+f);i.push(l),u=!0;break}l++}u||console.info(`[PLP INFINITE FAILED BANNER POSITION]: pos=${c.position_grid}, cols=${c.columns}`)}return{taken:s,placedBanners:i}},lo=(e,t,r,o=24)=>{const{placedBanners:s,taken:i}=xc(e??[],t,r),a=[];let c=0;try{for(;a.length<t*o;)i.has(c)||a.push(c),c++;return{banners:s,products:a}}catch(l){console.info(`[PLP INFINITE FAILED TO GEN POSITIONS]: page=${t}`,l)}return{banners:[],products:a}},er=(e,t,r=24)=>Array.from({length:e},(o,s)=>{const i=s+1;return{loading:e===i,page:i,pagination:t!=null&&t.products.length&&e===i?t==null?void 0:t.pagination:Oo(),products:t!=null&&t.products.length&&e===i?t==null?void 0:t.products:Array.from({length:r},()=>bc())}}),Cc=(e,t)=>[...e,{loading:!1,page:t,pagination:Oo(),products:[]}],Oo=()=>({nextPage:!1,previousPage:!1,startCursor:"0",endCursor:"1",count:1,total:1}),Yf=(e,t,r,o,s)=>{const i=e[e.length-1],a=(i==null?void 0:i.products.length)??s,c=(e.length-1)*s+a-1,l=r[c];return t.filter((u,p)=>{const h=o[p];return h<=l||s>a&&h>l})},Sc=(e,t)=>{const r=new Map;for(const s of e){const i=Math.floor(s/t);r.has(i)||r.set(i,[]),r.get(i).push(s)}const o=[];for(const[,s]of r){const i=s[Math.floor(Math.random()*s.length)];o.push(i)}return o},Qf=(e,t)=>{if(!e)return[];const r=e.map((o,s)=>o.video&&o.video!==""?s:null).filter(o=>o);return Sc(r,t)},jc=e=>Array.isArray(e)?e.map((t,r)=>({href:`/${e.slice(0,r+1).join("/")}`,name:t})):[],Zf=Object.freeze(Object.defineProperty({__proto__:null,createBreadcrumb:jc,createPage:Cc,createPages:er,createPagination:Oo,createProduct:bc,deepEqual:tr,fetchPage:co,getBanners:xc,getPositions:lo,getProductsWithVideo:Qf,getRandomVideoPerRow:Sc,getVisibleBanners:Yf,hasStateChangedExceptPage:vc},Symbol.toStringTag,{value:"Module"})),Jf=50,ep=tt.create((e,t)=>{const r=a=>Math.min(a,Jf),o=async(a,c)=>{const l=r(a.page);try{const u=await co({...a,page:l});s(l,p=>c?c(p,u):{...p,...u})}catch(u){console.error(`[PDC - SCROLL INFINITE FAILED TO FETCH PAGE ${l}]: ${u}`),s(l,p=>({...p,loading:!1}))}},s=(a,c)=>{e({load:!0,pages:t().pages.map(l=>l.page===a?c(l):l)})},i=async(a,c)=>{await o(a,(l,u)=>(typeof c=="function"&&c(u),{...l,...u,loading:!0}))};return{banners:[],load:!1,pages:[],total:0,positions:[],products:[],createPages:async(a,c,l,u)=>{var h,d,f;const p=r(Number(a==null?void 0:a.page));e({...c,pages:er(p,void 0,u)});try{const m=await co({...a,page:p});if(m){if(!m.products.length&&((h=m==null?void 0:m.pagination)==null?void 0:h.total)<p){i({...a,page:(d=m==null?void 0:m.pagination)==null?void 0:d.total},l),e({pages:er((f=m==null?void 0:m.pagination)==null?void 0:f.total)});return}typeof l=="function"&&l(m),e({load:!0,pages:er(p,m),total:Number(m.pagination.count)})}}catch(m){console.error(`[PDC - SCROLL INFINITE TO CREATE PAGES]: page ${p} ${m}`)}},addPage:(a,c,l)=>{const{pages:u}=t(),p=r(a==null?void 0:a.page);u.some(h=>h.page===p)||(e({...c,pages:Cc(u,p)}),i(a,l))},updateProducts:(a,c)=>{const l=t().pages.find(u=>u.page===r(a==null?void 0:a.page));l!=null&&l.loading||i(a,c)}}}),tp=(e,t,r,o=0)=>{if(!e.length)return[];let s=0;const i=[];for(let a=0;a<e.length;a+=r){const c=e.slice(a,a+r),l=c.findIndex(u=>{var p;return(p=u.node)==null?void 0:p.video});for(let u=0;u<c.length;u++){const p=a+u,h=o+p,d=t.find(m=>m.position_grid===h+1),f=h+s+1;d&&(s+=d.columns),i.push({position:f,canPlayVideo:u===l})}}return i},rp=(e,t,r)=>{const o=(t-1)*r,s=t*r;return e>=o&&e<=s},Ec=e=>{var t;return(t=e==null?void 0:e.map(r=>({disable:ie.disableSKU(r),size:ie.getSKUName(r),skuID:"sku"in r&&r.sku})))==null?void 0:t.filter(r=>r.disable)},np=Object.freeze(Object.defineProperty({__proto__:null,createGridPosAndVideo:tp,getSkusNotify:Ec,isPositionInCurrentPage:rp},Symbol.toStringTag,{value:"Module"})),wc=x.createContext({}),op=({banners:e,children:t,itemsPerPage:r=24,searchParams:o,Notification:s})=>{const{router:i}=Re(),{sendDataLayerEvent:a}=ge(),{isMobile:c}=be(),{state:l}=sr(),{addPage:u,createPages:p,updateProducts:h,...d}=ep(),f=c?8:16,m=c?2:4,_=x.useRef(!1),y=x.useRef(l),[b,j]=x.useState(!1),[v,S]=x.useState(null),[E,R]=x.useState([]),C=x.useCallback(I=>{I&&"pagination"in I&&a({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:I.products}}})},[a]),A=x.useCallback(I=>{if(I.pagination.nextPage===!0){const B=I.page+1,T=lo(e,B,m,r);u({...l,page:B},T,C)}},[u,e,C,m,r,l]),O=x.useCallback(I=>{I.loading===!1&&h({...l,page:I.page},C)},[C,h,l]),w=x.useCallback(I=>{const B=new URLSearchParams(o);I.page!==Number(B.get("page")??1)&&(B.set("page",String(I.page)),i.replace(`?${B.toString()}`,{scroll:!1}))},[i,o]),N=x.useCallback((I,B)=>{const T=B?Ec([B]):null;R(I),S(T!=null&&T.length?T[0]:null),j(!0)},[]);return x.useEffect(()=>{const I=!_.current,B=vc(y.current,l),T=lo(e,l.page,m);I?p(l,T,C,r):B&&(p(l,T,C,r),y.current=l),_.current=!0},[e,p,C,m,r,l]),n.jsxs(wc.Provider,{value:x.useMemo(()=>({...d,addPage:u,addNewPage:A,createPages:p,gap:f,columns:m,handleNotify:N,updatePage:O,updateProducts:h,updateParamPage:w}),[u,A,p,N,f,m,d,O,h,w]),children:[t,n.jsx(s,{notify:b,sku:v,skus:E,setSku:S,setNotify:j})]})},sp=()=>{const e=x.useContext(wc);if(e===void 0)throw new Error("PLPInfiniteScrollContext must be used within a ScrollInfiniteProvider");return e};function Rc(e){const r=decodeURIComponent(window.document.cookie).split(";");for(const o of r){const[s,i]=o.trim().split("=");if(s===e)return i}}function ko(e,t,r={}){const s={...{path:"/",expires:new Date(Date.now()+36e5)},...r};let i=`${encodeURIComponent(e)}=${encodeURIComponent(t??"")}`;for(const a in s)s[a]!==void 0&&(i+=`; ${a}`,a==="expires"?i+=`=${s[a].toUTCString()}`:typeof s[a]=="boolean"?i+=`; ${s[a]?"true":"false"}`:i+=`=${s[a]}`);window.document.cookie=i}const ip=()=>{const{sendDataLayerEvent:e}=ge(),{user:t}=ir(),{cartStore:r}=we();return x.useEffect(()=>{if(!t)return;(async()=>{const{userId:s,email:i,firstName:a,lastName:c,phone:l,homePhone:u,postalCode:p,street:h,number:d,city:f,gender:m}=t,_=new TextEncoder().encode(s),y=await crypto.subtle.digest("SHA-256",_),j=Array.from(new Uint8Array(y)).map(v=>v.toString(16).padStart(2,"0")).join("");e({functionKey:"readyEvents",data:{readyData:{user_id:j,email:i,first_name:a,last_name:c,phone:l||u,zip:p,street:h,street_number:d,city:f,gender:m,orderform_id:r==null?void 0:r.id}}})})()},[t,r.id]),null},Ac=x.createContext({amount:null,boxes:null,toExpire:null,loading:!0,logout:()=>null,getCurrentCredits:()=>({credits:0,cashback:0})}),ap=({children:e,AUTH_TOKEN_COOKIE:t})=>{const[r,o]=x.useState({amount:null,boxes:null,toExpire:null,loading:!0}),s=x.useCallback(async()=>{try{await fetch("/api/user",{priority:"low"}).then(c=>c.json()).then(c=>{const{userCredits:l,...u}=c,{wishlist:p,...h}=u;o({amount:l==null?void 0:l.amount,boxes:l==null?void 0:l.boxes,toExpire:l==null?void 0:l.toExpire,user:h,loading:!1,wishlist:(typeof p=="string"?p.split(","):p)??[]})})}catch(c){console.error("my credits request",c),o({...r,loading:!1})}},[o]),i=x.useCallback(()=>{ko(t),s()},[s]),a=x.useCallback(()=>r.boxes?r.boxes.reduce((c,l)=>l.gift_card_box.refid==="C1643"?(c.cashback+=l.amount,c):(c.credits+=l.amount,c),{cashback:0,credits:0}):{cashback:0,credits:0},[r]);return x.useEffect(()=>{s()},[s]),n.jsxs(Ac.Provider,{value:x.useMemo(()=>({...r,getCurrentCredits:a,logout:i}),[r,a,i]),children:[n.jsx(ip,{}),e]})},ir=()=>{const e=x.useContext(Ac);if(e===void 0)throw new Error("useContext(SessionContext) must be used within a SessionProvider");return e},Pc=x.createContext({gridBanners:void 0,banners:[]}),cp=({children:e,data:t,device:r,SectionZone:o,COMMON_PAGE_COLUMN_GAP_PDC:s})=>{const{isMobile:i}=be(),a=(t==null?void 0:t.sections.filter(h=>h.name!=="List Product Banners"))??[],c=a.slice(0,ns),l=a.slice(ns,a.length),u=t==null?void 0:t.sections.find(h=>h.name==="List Product Banners"),p=x.useMemo(()=>{var h,d;return((d=(h=u==null?void 0:u.data)==null?void 0:h.banners)==null?void 0:d.map(f=>({...f.banner,columns:f.bannerWidth,position_grid:f.bannerPosition})))??[]},[u]);return i&&r==="mobile"||!i&&r==="desktop"?n.jsxs(Pc.Provider,{value:{gridBanners:u,banners:p},children:[n.jsx(o,{data:c??[]}),n.jsxs(g.Utils.Column,{gap:s,className:g.helpers.classNameConcat("utils-column-modifier"),children:[e,n.jsx(o,{data:l??[]})]})]}):n.jsx(n.Fragment,{})},lp=()=>{const e=x.useContext(Pc);return e===void 0&&console.error("Needs PLPContentContext on parent component"),e},Ic=x.createContext({}),Nc=({children:e,filters:t,PLP_FILTERS:r,...o})=>{var i;const s=(i=t.facets)==null?void 0:i.filter(a=>r.find(c=>c.key===a.key));return n.jsx(Ic.Provider,{value:x.useMemo(()=>({...o,filters:{...t,facets:s}}),[t,s,o]),children:e})},ht=()=>{const e=x.useContext(Ic);if(e===void 0)throw new Error("useFilterContext must be used within a FilterProvider");return e},Tc=x.createContext({product:void 0}),up=({children:e,data:t,productId:r,COMMON_PAGE_COLUMN_GAP:o,SectionZone:s})=>n.jsxs(Tc.Provider,{value:{productId:r},children:[e,n.jsx(g.Utils.Column,{gap:o,className:g.helpers.classNameConcat("utils-column-modifier"),children:n.jsx(s,{data:(t==null?void 0:t.sections)??[]})})]}),dp=()=>{const e=x.useContext(Tc);return e||console.error("use this hook only inside PDPContentProvider hierarchy"),e},fp=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase().trim();function pp(e,t=1e3){let r=!1;return(...o)=>{r||(e(...o),r=!0,setTimeout(()=>{r=!1},t))}}function mp(e,t=1e3){let r;return(...o)=>{clearTimeout(r),r=setTimeout(()=>{e(...o)},t)}}const Oc=(e,t)=>t.getTime()>e.getTime()?Math.abs(t.getTime()-e.getTime()):0,bt=(e,t)=>Math.floor(t==="days"?e/(1e3*60*60*24):t==="hours"?e%(1e3*60*60*24)/(1e3*60*60):t==="minutes"?e%(1e3*60*60)/(1e3*60):e%(1e3*60)/1e3),hp=e=>{const t=Nd.decodeJwt(e??"");return{email:t.sub,userId:t.userId}},gp=["name","email","phone","date","cpf","cep"],os={email:/\S+@\S+\.\S+/,name:new RegExp("^\\p{L}+( \\p{L}+)*$","u"),phone:/^\d{10,11}|\(\d{2}\)\s?\d{4,5}-\d{4}$/,date:/^\d{6,8}|^\d{2}\/\d{2}\/\d{2,4}$/,cep:/^\d{5}[-]?\d{3}$/,cpf:/^\d{11}|\d{3}\.\d{3}\.?\d{3,5}\-[\d]{2}$/},kc=({type:e,input:t,required:r=!1})=>{if(typeof t!="string"||!r&&t===""||!os[e])return!0;const o=t.trim();return os[e].test(o)},yp=e=>{const t=/\/(\d+)-\d+-\d+\/(.+?)\./,r=typeof e=="string"?e.match(t):null;return r?r[2].replace(/-/g," "):Nf},_p=Object.freeze(Object.defineProperty({__proto__:null,FieldTypes:gp,debounce:mp,getAltTextFromUrl:yp,getAuthenticatedUser:hp,getCookie:Rc,getDaysHoursMinutesSeconds:bt,getMilliSeconds:Oc,removeAccentsAndReplaceSpaces:fp,setCookie:ko,throttle:pp,validateInput:kc},Symbol.toStringTag,{value:"Module"})),vp=({fields:e})=>{const t={};return{mountedFields:(e==null?void 0:e.reduce((o,s)=>(t[s.master_data_field]="none",{...o,[s.master_data_field]:s}),{}))??{},mountedInputsStatus:t}},bp=({formData:e,mountedFields:t,inputsStatus:r,hasTermsAndConditions:o,checkboxRef:s,setFormStatus:i})=>{let a=!1,c=!1;const l={...r};return o&&!s.current&&(i("unchecked"),a=!0),e.forEach((u,p)=>{var f;if(p==="terms-and-conditions")return;const h=(f=t[p])==null?void 0:f.required;if(h&&!u){l[p]="required",a=!0;return}kc({type:t[p].type,input:u,required:h})||(l[p]="error",c=!0),typeof u=="string"&&e.set(p,u.toString().trim())}),{hasEmptyFields:a,hasErrors:c,inputStatusToUpdate:l}},Mc=x.createContext({}),Lc=({children:e,masterDataEmailField:t,fields:r,variant:o,CONSTANTS:{MASTER_DATA_ENTITY:s,NEWSLETTER_CONFIGS:i}})=>{const{sendDataLayerEvent:a}=ge(),c=o==="vertical"&&i.hasTermsAndConditions,{mountedFields:l,mountedInputsStatus:u}=x.useMemo(()=>vp({fields:r}),[r]),p=x.useRef(!1),[h,d]=x.useState("idle"),[f,m]=x.useState(u),_=async({searchFields:R,entity:C})=>{const A=await Qe.post("/api/master-data/search",{body:{masterDataEntity:C,searchFields:R,headers:{"REST-Range":"resources=0-49"}}});return console.info(A),A.data},y=async({id:R,fieldsToBeUpdated:C,entity:A})=>(await Qe.post("/api/master-data/update",{dataEntityName:A,id:R,fieldsToBeUpdated:C})).status,b=x.useCallback(async({payload:R,response:C},A,O)=>{const{email:w,...N}=R,[I]=await _({searchFields:{[A]:w},entity:O??s.newsletter});return I&&await y({id:I.id,fieldsToBeUpdated:N,entity:O??s.newsletter})!==204?{...C,status:"error"}:{...C,status:"success"}},[]),j=x.useCallback(async({formData:R},C,A)=>{const O={status:"idle",inputsStatus:{}},w={};R.forEach((N,I)=>{w[I]=N});try{const I=(await Qe.post("/api/master-data",{body:{payload:w,masterDataEntity:C??s.newsletter}})).data;return(I==null?void 0:I.Message)==="duplicated entry"?b({payload:w,response:O},A,C):I!=null&&I.Id?{...O,status:"success"}:{...O,status:"error"}}catch(N){return console.error("error",N),{...O,status:"error"}}},[b]),v=x.useCallback(async(R,C,A)=>{R.preventDefault();const O=new FormData(R.target);C&&Object.keys(C).forEach(N=>{O.append(N,C[N])});const w=await j({formData:O},A??"",t);w&&(d(w==null?void 0:w.status),m(w.inputsStatus),w.status==="success"&&a({functionKey:"readyEvents",data:{event:"generate_lead"}}))},[t,j,d,m,a]),S=x.useCallback(R=>{const C=new FormData(R.currentTarget.parentElement),{hasEmptyFields:A,hasErrors:O,inputStatusToUpdate:w}=bp({formData:C,mountedFields:l,inputsStatus:f,hasTermsAndConditions:c,checkboxRef:p,setFormStatus:d});if(m(w),A||O){R.preventDefault();return}d("loading")},[l,f,c,p]),E=x.useCallback(()=>{d("idle"),m(u)},[u]);return n.jsx(Mc.Provider,{value:x.useMemo(()=>({formStatus:h,handleSubmit:v,setFormStatus:d,inputsStatus:f,setInputsStatus:m,hasTermsAndConditions:c,handleClickToSubmit:S,checkboxRef:p,masterDataEmailField:t,fields:r,variant:o,resetNewsletter:E}),[h,v,d,f,m,S,c,p,t,r,o,E]),children:e})},Mo=()=>{const e=x.useContext(Mc);if(e===void 0)throw new Error("useNewsletterContext must be used within a NewsletterProvider");return e},xp={contexts:{addToCart:{hook:ot,provider:lc},cart:{hook:we,provider:Pf},cms:{FlagsAndTags:{context:So,hook:jt,provider:Td}},newsletter:{hook:Mo,provider:Lc},events:{hook:ge,provider:Fd},global:{hook:be,provider:af,mediator:Ua},header:{hook:je,provider:wf},menuMobile:{hook:At,provider:ac},next:{hook:Re,provider:cf},pdp:{provider:Od,hook:kd},PDPContent:{provider:up,hook:dp},plp:{provider:Kf,hook:Xf},plpFilter:{hook:ht,provider:Nc},PLPContent:{provider:cp,hook:lp},plpInfinite:{provider:op,hook:sp},pdpdata:{hook:jo,provider:qd},searchFacets:{hook:Bf,provider:$f},searchProducts:{hook:qf,provider:Ff},searchRoot:{hook:To,provider:No},searchSearch:{hook:sr,provider:pc},searchSuggestedTerms:{hook:Wf,provider:Uf},searchTopSearchs:{hook:Gf,provider:Vf},session:{hook:ir,provider:ap},ui:{hook:Et,provider:Ha}},hooks:{useBackPDC:ha,useClipboard:Hd,useDisableZoom:Ud,useLocalStorage:Vd,useOnScreen:ja,useSentinel:Gd,useTouchZoomPan:Kd},stores:{cart:of,header:df,pdp:Sf,wishlist:Ef}},Cp={cart:tf,events:zd,plp:Zf,product:ie.productHelpers,utils:_p},Lo={helpers:Cp},Le={"add-to-cart--card":"_add-to-cart--card_4v41y_1","add-to-cart--card--content":"_add-to-cart--card--content_4v41y_7","add-to-cart--card--name":"_add-to-cart--card--name_4v41y_16","add-to-cart--card--price-quantity":"_add-to-cart--card--price-quantity_4v41y_46","add-to-cart--card--style-size":"_add-to-cart--card--style-size_4v41y_53","add-to-cart--content":"_add-to-cart--content_4v41y_71","add-to-cart--content--title":"_add-to-cart--content--title_4v41y_78","add-to-cart--footer":"_add-to-cart--footer_4v41y_102","add-to-cart--footer--total":"_add-to-cart--footer--total_4v41y_108","add-to-cart--items":"_add-to-cart--items_4v41y_148","add-to-cart--tooltip":"_add-to-cart--tooltip_4v41y_198","add-to-cart__modal":"_add-to-cart__modal_4v41y_211"},Dc=({brand:e,className:t,name:r,...o})=>n.jsxs("div",{...o,className:g.helpers.classNameConcat(Le["add-to-cart--card--name"],t),children:[n.jsx(g.Tag,{style:{textTransform:"uppercase"},size:"small",variant:"quaternary",title:e,children:e}),n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:n.jsx("p",{className:"typography-style-body-md",children:r})})})]});Dc.displayName="AddToCart.Card.Name";const $c=({className:e,listPrice:t,price:r,quantity:o,productId:s,...i})=>{const a=ie.formatPriceToCurrency(r/100),c=ie.formatPriceToCurrency(t/100);return n.jsx("div",{...i,className:g.helpers.classNameConcat(Le["add-to-cart--card--price-quantity"],e),children:n.jsx(g.ProductInfo.Root,{size:"small",layout:"vertical",children:n.jsx(g.ProductInfo.Wrapper,{size:"small",layout:"vertical",children:n.jsx(g.ProductInfo.ValuesWrapper,{children:r!==t?n.jsxs(n.Fragment,{children:[n.jsx(g.ProductInfo.Price,{label:"originalPrice",value:a,size:"small"},"price-list"),n.jsx(g.ProductInfo.Price,{label:"discountPrice",value:c,size:"small"},"price-low")]}):n.jsx(g.ProductInfo.Price,{label:"defaultPrice",value:c,size:"small"},"price-low")})})})})};$c.displayName="AddToCart.Card.PriceQuantity";const Sp="_skeleton_12b79_1",jp={skeleton:Sp},Bc=({style:e})=>n.jsx("div",{style:e,className:jp.skeleton}),Ep="_image_lypfr_1",wp={image:Ep},Rp=({alt:e,className:t,objectFit:r,...o})=>{const{nextimage:s}=Re();return n.jsx(s,{quality:90,...o,alt:e??"",className:g.helpers.classNameConcat(wp.image,t),"data-object-fit":r??"cover"})},Ap=({videoRef:e,...t})=>n.jsx("video",{...t,ref:e,children:n.jsx("track",{kind:"captions"})}),ze={Image:Rp,Video:Ap},zc=({className:e,productGroupID:t,size:r,texture:o,...s})=>{const{CONSTANTS:{TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a}}=ot(),[c,l]=x.useState(o??"");return x.useEffect(()=>{c||fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[t]})}).then(u=>u.json()).then(u=>{const p=u.data[0].items[0];if(p){const h=p.images.find(d=>i.includes(d.imageLabel));h!=null&&h.imageUrl?l(h.imageUrl):l(p.images[0].imageUrl)}}).catch(u=>{console.error(u)})},[c,t]),n.jsxs("div",{...s,className:g.helpers.classNameConcat(Le["add-to-cart--card--style-size"],e),children:[n.jsx(g.ToggleStyle.Wrapper,{size:"x-small",style:a,children:n.jsx(g.ToggleStyle.Texture,{children:c?n.jsx(ze.Image,{alt:"",src:c??"",width:164,height:164,style:a}):n.jsx(Bc,{})})}),n.jsx(g.Utils.Divider,{direction:"vertical",size:"medium",style:{height:24}}),r&&n.jsxs(g.ToggleSize.Wrapper,{size:"small",title:"wrapper-texture",children:[n.jsx(g.ToggleSize.DisabledAdornment,{title:"disabled-adornment-texture"}),n.jsx(g.ToggleSize.Text,{children:r})]})]})};zc.displayName="AddToCart.Card.StyleSize";const{helpers:Pp}=Lo,Fc=({className:e,item:t,texture:r,...o})=>{const{itemOffered:{name:s,brand:i,skuName:a,isVariationOf:{productGroupID:c}},quantity:l,price:u,sellingPrice:p}=t,{CONSTANTS:{NAME_SPLIT_SYMBOL:h}}=ot(),{size:d}=Pp.product.getColorAndSizeFromSkuName(a??s,h);return n.jsxs("div",{...o,className:g.helpers.classNameConcat(Le["add-to-cart--card--content"],e),children:[n.jsx(Dc,{brand:i.name,name:s}),n.jsx($c,{price:u,listPrice:p,quantity:l,productId:t.id}),n.jsx(zc,{size:d,texture:r,productGroupID:c})]})};Fc.displayName="AddToCart.Card.Content";const qc=({image:e,thumbnail:t=!1})=>n.jsx(ze.Image,{alt:e.alternateName??"image","data-thumbnail":t,height:t?152:120,src:e.url,width:t?152:94});qc.displayName="AddToCart.Card";const Hc=({className:e,item:t,texture:r,thumbnail:o,...s})=>{const{itemOffered:{image:[i]}}=t,a=ie.updatedResizedImg(i.url,{width:200,height:300});return n.jsxs("div",{...s,className:g.helpers.classNameConcat(Le["add-to-cart--card"],e),children:[n.jsx(qc,{image:{alternateName:i.alternateName||"Produto",url:a||""},thumbnail:o}),!o&&n.jsx(Fc,{item:t,texture:r})]})};Hc.displayName="AddToCart.Card";const Uc=({className:e,children:t,title:r,...o})=>n.jsxs("div",{...o,className:g.helpers.classNameConcat(Le["add-to-cart--content"],e),children:[n.jsx("div",{className:Le["add-to-cart--content--title"],children:r&&n.jsx("h2",{children:r})}),t,n.jsx(Ze.Footer,{})]});Uc.displayName="AddToCart.Layout.Content";const Wc=({className:e,...t})=>{var f,m;const{isMobile:r,handleClose:o,CONSTANTS:{ADD_TO_CART:s}}=ot(),{cartStore:{totalizers:i},setIsOpen:a}=we(),c=(f=i.find(_=>_.id==="Discounts"))==null?void 0:f.value,l=((m=i.find(_=>_.id==="Items"))==null?void 0:m.value)??0,u=i.find(_=>_.id==="Shipping"),h=(l-Math.abs(c??0)+((u==null?void 0:u.value)??0))/100,d=ie.formatPriceToCurrency(h??0);return n.jsxs("div",{...t,className:g.helpers.classNameConcat(Le["add-to-cart--footer"],e),children:[n.jsxs("div",{className:Le["add-to-cart--footer--total"],children:[n.jsx("span",{children:"Subtotal:"}),n.jsx("span",{children:d})]}),n.jsx(g.Button,{size:"medium",variant:"primary","data-close":!0,onClick:()=>a(!0),children:s.footer.bag}),r?n.jsx(g.Button,{"data-close":!0,size:"medium",variant:"tertiary",children:s.footer.keep_buying}):n.jsx(g.Button,{onClick:()=>o(),size:"medium",variant:"tertiary",children:s.footer.keep_buying})]})};Wc.displayName="AddToCart.Layout.Footer";const Vc=({children:e,className:t,thumbnail:r=!1,...o})=>{const{cartStore:{options:s}}=we(),{recentlyAddedProducts:i}=Et(),a=i.length>3?4:i.length;return n.jsxs("div",{...o,className:Le["add-to-cart--items"],"data-thumbnail":r,children:[Array.isArray(i)&&i.filter((c,l)=>l<a).map(c=>{var u;const l=(u=s==null?void 0:s.find(p=>p.id===c.itemOffered.isVariationOf.productGroupID))==null?void 0:u.texture;return n.jsx(Ze.Card,{item:c,thumbnail:r,texture:l},c.itemOffered.sku)}),e]})};Vc.displayName="AddToCart.Layout.Items";const Gc=({children:e,Z_INDEX_WAR:t})=>{const{isOpen:r,setIsOpen:o}=ot(),{isMobile:s}=be();return n.jsxs(g.Modal.Root,{"data-modal":"add-to-cart--modal",className:Le["add-to-cart__modal"],isMobile:s??!1,isOpen:r,setIsOpen:o,variant:"sideBottom",style:{zIndex:t.modal},children:[n.jsx(g.Modal.Header,{navigation:"top",children:n.jsx(g.Modal.Controls,{navigation:"top",isMobile:!0})}),n.jsx(g.Modal.Body,{children:e})]})};Gc.displayName="AddToCart.Modal";const Ip=({children:e})=>{const{count:t,handleClose:r,setIsOpen:o}=ot(),s=x.useRef(t);return x.useEffect(()=>{t>s.current&&o(!0),t<s.current&&s.current>=1&&r(),s.current=t},[t,r,o]),n.jsx(n.Fragment,{children:e})},Kc=({children:e,component:t,CONSTANTS:r,...o})=>{const{recentlyAddedProducts:s}=Et(),{isMobile:i}=be(),a=s.length>3?4:s.length;return n.jsx(lc,{...o,count:a,isMobile:i,CONSTANTS:r,children:n.jsx(Ip,{children:i?n.jsxs(n.Fragment,{children:[n.jsx(Ze.Modal,{Z_INDEX_WAR:r.Z_INDEX_WAR,children:t}),e]}):n.jsx(Ze.Tooltip,{component:t,style:{width:350},Z_INDEX_WAR:r.Z_INDEX_WAR,children:e})})})};Kc.displayName="AddToCart.Root";const Xc=({children:e,component:t,Z_INDEX_WAR:r,...o})=>{const{contentRef:s,left:i,isLeaving:a,target:c,isOpen:l,top:u}=ot();return n.jsx(g.Tooltip.Root,{arrow:"top-right",component:n.jsx("div",{...o,ref:s,children:t}),id:"add-to-cart--tooltip",className:Le["add-to-cart--tooltip"],style:{zIndex:r.modal},isLeaving:a,isOpen:l,left:i,size:"medium",position:"top",top:u,children:n.jsx("div",{className:Le["add-to-cart--tooltip"],ref:c,children:e})})};Xc.displayName="AddToCart.Tooltip";const Ze={Card:Hc,Content:Uc,Footer:Wc,Items:Vc,Modal:Gc,Root:Kc,Tooltip:Xc},Do=({title:e,...t})=>{const{recentlyAddedProducts:r}=Et(),{isMobile:o}=be(),s=r.length>3?4:r.length,i=r.length>(s??1),a=r.length>1;return n.jsx(Ze.Root,{isMobile:o,count:r.length,component:n.jsx(Ze.Content,{title:e,children:n.jsx(Ze.Items,{thumbnail:a,children:i&&n.jsx(g.Badge.Count,{count:r.length-s,size:"medium",variant:"secondary"})})}),...t})};Do.displayName="AddToCart";const ss={"backtotop-btn":"_backtotop-btn_1shb6_1","card-modifier":"_card-modifier_1shb6_27"},Np=({children:e,className:t,adornment:r,iconPosition:o,scrollToOptions:s,style:i,...a})=>{const c={top:(s==null?void 0:s.top)??0,left:(s==null?void 0:s.left)??0,behavior:(s==null?void 0:s.behavior)??"smooth"},u=o&&r?{flexDirection:{top:"column",bottom:"column-reverse",left:"row",right:"row-reverse"}[o]}:{},p=()=>{window&&window.document.body.scrollTo({...c})};return n.jsx(g.Card,{...a,shadow:!0,padding:"small",className:g.helpers.classNameConcat(ss["card-modifier"],t),style:{...i,padding:0},children:n.jsxs("button",{className:ss["backtotop-btn"],onClick:p,style:{...u},"data-orientation":o,children:[r,e]})})},Tp="_container_1sy8s_16",Ge={"carousel-container":"_carousel-container_1sy8s_1","add-cart-container":"_add-cart-container_1sy8s_8",container:Tp,"add-itens-to-cart-container":"_add-itens-to-cart-container_1sy8s_38","add-itens-to-cart-container-values":"_add-itens-to-cart-container-values_1sy8s_45","add-itens-to-cart-qty-products":"_add-itens-to-cart-qty-products_1sy8s_50","add-itens-to-cart-total":"_add-itens-to-cart-total_1sy8s_60","add-button":"_add-button_1sy8s_70"},Op=({selectedProducts:e,handleAddAllToCart:t,CONSTANTS:r})=>{const o=Object.values(e.products).length;return n.jsxs("div",{className:Ge["add-itens-to-cart-container"],children:[n.jsxs("div",{className:Ge["add-itens-to-cart-container-values"],children:[n.jsx("div",{className:Ge["add-itens-to-cart-qty-products"],children:n.jsx("span",{children:o===0?r.BUY_PACKAGE.group_cart.select_all_product:`${o} ${o===1?r.BUY_PACKAGE.group_cart.select_product:r.BUY_PACKAGE.group_cart.select_product+"s"}`})}),n.jsx("div",{className:Ge["add-itens-to-cart-total"],children:n.jsx("span",{children:ie.freightParsePrice({valueInCents:e.totalPrice*100,hasFree:!1,freeTaxMessage:r.FREIGHT_CALCULATION.messages.free_tax})})})]}),n.jsx(g.Button,{onClick:t,className:Ge["add-button"],size:"large",disabled:o===0,variant:"primary",children:r.BUY_BUTTON_LABELS.add_to_cart})]})},kp=e=>e.reduce((t,r)=>{var s;const o=t.find(i=>i.node.id===r.node.id);if(!o)return[...t,r];if((s=o==null?void 0:o.node.isVariantOf)!=null&&s.hasVariant){const i=o.node.isVariantOf.hasVariant,a=r.node.isVariantOf.hasVariant;i&&a&&(o.node.isVariantOf.hasVariant=[...i,...a])}return t},[]),Mp=({selectedProduct:e,productId:t,prevState:r,mainSellerId:o})=>{const{products:s,totalPrice:i}=r;try{if(!e){const{[t]:u,...p}=s;return{...r,totalPrice:i-u.price,products:p}}const a=ie.getValidOffer(e.offers.offers,o);if(!a)return r;const c=a.seller.identifier,l=a.price;if(s[t]){const{price:u}=s[t];return s[t]={...s[t],price:l,id:e.sku,seller:c},{totalPrice:i+l-u,products:{...s}}}return{totalPrice:i+l,products:{...s,[t]:{id:e.sku,price:l,seller:c,productId:t}}}}catch(a){return console.error("Error handling SKU selection:",a),r}},Yc=x.createContext({}),Lp=({children:e,item:t,index:r,shelfTitle:o,...s})=>{const[i,a]=x.useState(null),c=x.useRef(null),l=x.useRef({availableSkus:[],priceInfo:{price:0,listPrice:0}}),{sendDataLayerEvent:u,itemListRef:p}=ge(),h=_=>{u({functionKey:"productEvents",data:{commonData:{...t,availableSizes:l.current.availableSkus,...l.current.priceInfo},customData:{index:r+1},event:_}})},d=()=>{h("add_to_wishlist")},f=()=>{u({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:[{...t,...l.current.priceInfo}]},supportData:{selectedSku:i,selectedSkus:[i]},customData:{index:r}}})},m=()=>{o&&(p.current={item_list_name:o}),h("select_item")};return n.jsx(Yc.Provider,{value:x.useMemo(()=>({...s,index:r,item:t,element:c,selectedSku:i,setSelectedSku:a,eventDataRef:l,sendAddToWishlistEvent:d,sendSelectItemEvent:m,sendAddToCartEvent:f}),[s,t,c,i]),children:e})},Fe=()=>{const e=x.useContext(Yc);if(e===void 0)throw new Error("useProductCardContext must be used within a ProductCardProvider");return e},Pe={"product-card--actions":"_product-card--actions_nmzk4_1","product-card--actions--group":"_product-card--actions--group_nmzk4_9","product-card--actions--selectors":"_product-card--actions--selectors_nmzk4_21","product-card--body":"_product-card--body_nmzk4_33","product-card--header":"_product-card--header_nmzk4_47","product-card--footer":"_product-card--footer_nmzk4_67","product-card--image":"_product-card--image_nmzk4_90","product-card--image--container":"_product-card--image--container_nmzk4_97","product-card--outstock":"_product-card--outstock_nmzk4_133","product-card--price":"_product-card--price_nmzk4_155","product-card--title":"_product-card--title_nmzk4_177","product-card--title--tag":"_product-card--title--tag_nmzk4_183","product-card--title--content":"_product-card--title--content_nmzk4_200","product-card--selectors--size":"_product-card--selectors--size_nmzk4_240","product-card--selectors--size--button":"_product-card--selectors--size--button_nmzk4_266","product-card--selectors--size--skus":"_product-card--selectors--size--skus_nmzk4_275","product-card--selectors--style":"_product-card--selectors--style_nmzk4_289","product-card--selectors--style--more":"_product-card--selectors--style--more_nmzk4_299","product-card--video":"_product-card--video_nmzk4_316","product-card--wrapper":"_product-card--wrapper_nmzk4_342"},Qc=({callback:e,children:t,className:r,data:o,isKit:s,...i})=>{const{item:{availability:{status:a},image:c}}=Fe();return a?n.jsxs("div",{...i,className:g.helpers.classNameConcat(Pe["product-card--actions"],r),children:[n.jsxs(ve.Wrapper,{type:"actions--group",children:[n.jsx(ve.Price,{}),n.jsx("div",{className:Pe["product-card--actions--selectors"],children:!s&&n.jsx(ve.StyleSelector,{data:o,images:c,callback:e})})]}),t]}):null};Qc.displayName="ProductCard.Actions";const Zc=({className:e,isKit:t,...r})=>{const{addToCart:o}=we(),{isMobile:s=!1,selectedSku:i,outStock:a,item:c,sendAddToCartEvent:l,CONSTANTS:u}=Fe(),p=()=>{var f;if(!i)return;const d=ie.getValidOffer(i.offers.offers,u.StoreConfig_MainSellerId);d&&o({id:i==null?void 0:i.sku,quantity:1,seller:d.seller.identifier},{id:c.id,texture:(f=c==null?void 0:c.image.find(m=>u.TEXTURE_IMAGE.includes(m.alternateName)))==null?void 0:f.url}),l()},h=i?u.BUY_BUTTON_LABELS.add_to_cart:u.BUY_BUTTON_LABELS.select_size;return n.jsx(g.Button,{...r,className:g.helpers.classNameConcat(e,"buy-button"),disabled:!t&&!i&&!a,size:s?"medium":"large",variant:a?"secondary":"primary",onClick:a?r.onClick:p,children:a?"Avise-me quando chegar":h})};Zc.displayName="ProductCard.Actions.BuyButton";const Jc=({product:e,tag:t,size:r="small"})=>{const o=e.offers.offers[0],{CONSTANTS:s,WishListToggle:i}=Fe();return n.jsxs(ve.Wrapper,{type:"header",style:{zIndex:s.Z_INDEX_WAR.product_card_header},children:[t?n.jsx(g.Tag,{title:t.value,adornment:{start:t.enableIcon&&t.icon?n.jsx(g.Icon,{name:t.icon,size:"small",style:{color:t.iconColor}}):null},size:r,variant:"quaternary",style:{background:t.tagColor,color:t.textColor},children:t.value}):null,s.PRODUCT_CARD_TOP_WISHLIST_TOGGLE&&n.jsx(i,{product:e,priceInfo:{price:o.price,listPrice:o.listPrice},variant:"card"})]})};Jc.displayName="ProductCard.Actions.Header";var el=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ar(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Dp(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,s.get?s:{enumerable:!0,get:function(){return e[o]}})}),r}var uo={exports:{}},Oe={};Oe._=Oe._interop_require_default=$p;function $p(e){return e&&e.__esModule?e:{default:e}}var Dt={exports:{}},yr={},is;function tl(){return is||(is=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var l in c)Object.defineProperty(a,l,{enumerable:!0,get:c[l]})}t(e,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return s},assign:function(){return i}});function r(a){const c={};return a.forEach((l,u)=>{typeof c[u]>"u"?c[u]=l:Array.isArray(c[u])?c[u].push(l):c[u]=[c[u],l]}),c}function o(a){return typeof a=="string"||typeof a=="number"&&!isNaN(a)||typeof a=="boolean"?String(a):""}function s(a){const c=new URLSearchParams;return Object.entries(a).forEach(l=>{let[u,p]=l;Array.isArray(p)?p.forEach(h=>c.append(u,o(h))):c.set(u,o(p))}),c}function i(a){for(var c=arguments.length,l=new Array(c>1?c-1:0),u=1;u<c;u++)l[u-1]=arguments[u];return l.forEach(p=>{Array.from(p.keys()).forEach(h=>a.delete(h)),p.forEach((h,d)=>a.append(d,h))}),a}}(yr)),yr}var _r={},ft={};function rl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(rl=function(o){return o?r:t})(e)}ft._=ft._interop_require_wildcard=Bp;function Bp(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=rl(t);if(r&&r.has(e))return r.get(e);var o={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=s?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(o,i,a):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}var as;function nl(){return as||(as=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,u){for(var p in u)Object.defineProperty(l,p,{enumerable:!0,get:u[p]})}t(e,{formatUrl:function(){return i},urlObjectKeys:function(){return a},formatWithValidation:function(){return c}});const o=ft._(tl()),s=/https?|ftp|gopher|file/;function i(l){let{auth:u,hostname:p}=l,h=l.protocol||"",d=l.pathname||"",f=l.hash||"",m=l.query||"",_=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",l.host?_=u+l.host:p&&(_=u+(~p.indexOf(":")?"["+p+"]":p),l.port&&(_+=":"+l.port)),m&&typeof m=="object"&&(m=String(o.urlQueryToSearchParams(m)));let y=l.search||m&&"?"+m||"";return h&&!h.endsWith(":")&&(h+=":"),l.slashes||(!h||s.test(h))&&_!==!1?(_="//"+(_||""),d&&d[0]!=="/"&&(d="/"+d)):_||(_=""),f&&f[0]!=="#"&&(f="#"+f),y&&y[0]!=="?"&&(y="?"+y),d=d.replace(/[?#]/g,encodeURIComponent),y=y.replace("#","%23"),""+h+_+d+y+f}const a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(l){return process.env.NODE_ENV==="development"&&l!==null&&typeof l=="object"&&Object.keys(l).forEach(u=>{a.includes(u)||console.warn("Unknown key passed via urlObject into url.format: "+u)}),i(l)}}(_r)),_r}var vr={},cs;function zp(){return cs||(cs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,o){const s={};return Object.keys(r).forEach(i=>{o.includes(i)||(s[i]=r[i])}),s}}(vr)),vr}var br={},ls;function cr(){return ls||(ls=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,E){for(var R in E)Object.defineProperty(S,R,{enumerable:!0,get:E[R]})}t(e,{WEB_VITALS:function(){return r},execOnce:function(){return o},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return a},getURL:function(){return c},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return p},loadGetInitialProps:function(){return h},SP:function(){return d},ST:function(){return f},DecodeError:function(){return m},NormalizeError:function(){return _},PageNotFoundError:function(){return y},MissingStaticPage:function(){return b},MiddlewareNotFoundError:function(){return j},stringifyError:function(){return v}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function o(S){let E=!1,R;return function(){for(var C=arguments.length,A=new Array(C),O=0;O<C;O++)A[O]=arguments[O];return E||(E=!0,R=S(...A)),R}}const s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=S=>s.test(S);function a(){const{protocol:S,hostname:E,port:R}=window.location;return S+"//"+E+(R?":"+R:"")}function c(){const{href:S}=window.location,E=a();return S.substring(E.length)}function l(S){return typeof S=="string"?S:S.displayName||S.name||"Unknown"}function u(S){return S.finished||S.headersSent}function p(S){const E=S.split("?");return E[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(E[1]?"?"+E.slice(1).join("?"):"")}async function h(S,E){if(process.env.NODE_ENV!=="production"){var R;if((R=S.prototype)!=null&&R.getInitialProps){const O='"'+l(S)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(O)}}const C=E.res||E.ctx&&E.ctx.res;if(!S.getInitialProps)return E.ctx&&E.Component?{pageProps:await h(E.Component,E.ctx)}:{};const A=await S.getInitialProps(E);if(C&&u(C))return A;if(!A){const O='"'+l(S)+'.getInitialProps()" should resolve to an object. But found "'+A+'" instead.';throw new Error(O)}return process.env.NODE_ENV!=="production"&&Object.keys(A).length===0&&!E.ctx&&console.warn(""+l(S)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),A}const d=typeof performance<"u",f=d&&["mark","measure","getEntriesByName"].every(S=>typeof performance[S]=="function");class m extends Error{}class _ extends Error{}class y extends Error{constructor(E){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+E}}class b extends Error{constructor(E,R){super(),this.message="Failed to load static file for page: "+E+" "+R}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(S){return JSON.stringify({message:S.message,stack:S.stack})}}(br)),br}var $t={exports:{}},xr={},us;function ol(){return us||(us=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.replace(/\/$/,"")||"/"}}(xr)),xr}var Cr={},ds;function $o(){return ds||(ds=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(r){const o=r.indexOf("#"),s=r.indexOf("?"),i=s>-1&&(o<0||s<o);return i||o>-1?{pathname:r.substring(0,i?s:o),query:i?r.substring(s,o>-1?o:void 0):"",hash:o>-1?r.slice(o):""}:{pathname:r,query:"",hash:""}}}(Cr)),Cr}var fs;function lr(){return fs||(fs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return s}});const r=ol(),o=$o(),s=i=>{if(!i.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return i;const{pathname:a,query:c,hash:l}=(0,o.parsePath)(i);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(a)?""+(0,r.removeTrailingSlash)(a)+c+l:a.endsWith("/")?""+a+c+l:a+"/"+c+l:""+(0,r.removeTrailingSlash)(a)+c+l};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}($t,$t.exports)),$t.exports}var Sr={},Bt={exports:{}},jr={},ps;function sl(){return ps||(ps=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=$o();function r(o,s){if(typeof o!="string")return!1;const{pathname:i}=(0,t.parsePath)(o);return i===s||i.startsWith(s+"/")}}(jr)),jr}var ms;function Fp(){return ms||(ms=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return s}});const r=sl(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function s(i){return(0,r.pathHasPrefix)(i,o)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Bt,Bt.exports)),Bt.exports}var hs;function il(){return hs||(hs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return o}});const t=cr(),r=Fp();function o(s){if(!(0,t.isAbsoluteUrl)(s))return!0;try{const i=(0,t.getLocationOrigin)(),a=new URL(s,i);return a.origin===i&&(0,r.hasBasePath)(a.pathname)}catch{return!1}}}(Sr)),Sr}var Er={},wr={},gs;function qp(){return gs||(gs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class t{insert(s){this._insert(s.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(s){s===void 0&&(s="/");const i=[...this.children.keys()].sort();this.slugName!==null&&i.splice(i.indexOf("[]"),1),this.restSlugName!==null&&i.splice(i.indexOf("[...]"),1),this.optionalRestSlugName!==null&&i.splice(i.indexOf("[[...]]"),1);const a=i.map(c=>this.children.get(c)._smoosh(""+s+c+"/")).reduce((c,l)=>[...c,...l],[]);if(this.slugName!==null&&a.push(...this.children.get("[]")._smoosh(s+"["+this.slugName+"]/")),!this.placeholder){const c=s==="/"?"/":s.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+c+'" and "'+c+"[[..."+this.optionalRestSlugName+']]").');a.unshift(c)}return this.restSlugName!==null&&a.push(...this.children.get("[...]")._smoosh(s+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&a.push(...this.children.get("[[...]]")._smoosh(s+"[[..."+this.optionalRestSlugName+"]]/")),a}_insert(s,i,a){if(s.length===0){this.placeholder=!1;return}if(a)throw new Error("Catch-all must be the last part of the URL.");let c=s[0];if(c.startsWith("[")&&c.endsWith("]")){let p=function(h,d){if(h!==null&&h!==d)throw new Error("You cannot use different slug names for the same dynamic path ('"+h+"' !== '"+d+"').");i.forEach(f=>{if(f===d)throw new Error('You cannot have the same slug name "'+d+'" repeat within a single dynamic path');if(f.replace(/\W/g,"")===c.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+f+'" and "'+d+'" differ only by non-word symbols within a single dynamic path')}),i.push(d)},l=c.slice(1,-1),u=!1;if(l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1),u=!0),l.startsWith("...")&&(l=l.substring(3),a=!0),l.startsWith("[")||l.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+l+"').");if(l.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+l+"').");if(a)if(u){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+s[0]+'" ).');p(this.optionalRestSlugName,l),this.optionalRestSlugName=l,c="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+s[0]+'").');p(this.restSlugName,l),this.restSlugName=l,c="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'+s[0]+'").');p(this.slugName,l),this.slugName=l,c="[]"}}this.children.has(c)||this.children.set(c,new t),this.children.get(c)._insert(s.slice(1),i,a)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(o){const s=new t;return o.forEach(i=>s.insert(i)),s.smoosh()}}(wr)),wr}var Rr={},ys;function Hp(){return ys||(ys=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const t=/\/\[[^/]+?\](?=\/|$)/;function r(o){return t.test(o)}}(Rr)),Rr}var _s;function Up(){return _s||(_s=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,i){for(var a in i)Object.defineProperty(s,a,{enumerable:!0,get:i[a]})}t(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});const r=qp(),o=Hp()}(Er)),Er}var Ar={},Pr={},vs;function Wp(){return vs||(vs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=cr();function r(o){let{re:s,groups:i}=o;return a=>{const c=s.exec(a);if(!c)return!1;const l=p=>{try{return decodeURIComponent(p)}catch{throw new t.DecodeError("failed to decode param")}},u={};return Object.keys(i).forEach(p=>{const h=i[p],d=c[h.pos];d!==void 0&&(u[p]=~d.indexOf("/")?d.split("/").map(f=>l(f)):h.repeat?[l(d)]:l(d))}),u}}}(Pr)),Pr}var Ir={},Nr={},Tr={},Or={},bs;function Vp(){return bs||(bs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.startsWith("/")?r:"/"+r}}(Or)),Or}var kr={},xs;function Gp(){return xs||(xs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isGroupSegment",{enumerable:!0,get:function(){return t}});function t(r){return r[0]==="("&&r.endsWith(")")}}(kr)),kr}var Cs;function Kp(){return Cs||(Cs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var l in c)Object.defineProperty(a,l,{enumerable:!0,get:c[l]})}t(e,{normalizeAppPath:function(){return s},normalizeRscPath:function(){return i}});const r=Vp(),o=Gp();function s(a){return(0,r.ensureLeadingSlash)(a.split("/").reduce((c,l,u,p)=>!l||(0,o.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&u===p.length-1?c:c+"/"+l,""))}function i(a,c){return c?a.replace(/\.rsc($|\?)/,"$1"):a}}(Tr)),Tr}var Ss;function Xp(){return Ss||(Ss=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,c){for(var l in c)Object.defineProperty(a,l,{enumerable:!0,get:c[l]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return o},isInterceptionRouteAppPath:function(){return s},extractInterceptionRouteInformation:function(){return i}});const r=Kp(),o=["(..)(..)","(.)","(..)","(...)"];function s(a){return a.split("/").find(c=>o.find(l=>c.startsWith(l)))!==void 0}function i(a){let c,l,u;for(const p of a.split("/"))if(l=o.find(h=>p.startsWith(h)),l){[c,u]=a.split(l,2);break}if(!c||!l||!u)throw new Error(`Invalid interception route: ${a}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(c=(0,r.normalizeAppPath)(c),l){case"(.)":c==="/"?u=`/${u}`:u=c+"/"+u;break;case"(..)":if(c==="/")throw new Error(`Invalid interception route: ${a}. Cannot use (..) marker at the root level, use (.) instead.`);u=c.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":const p=c.split("/");if(p.length<=2)throw new Error(`Invalid interception route: ${a}. Cannot use (..)(..) marker at the root level or one level up.`);u=p.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:c,interceptedRoute:u}}}(Nr)),Nr}var Mr={},js;function Yp(){return js||(js=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});const t=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function o(s){return t.test(s)?s.replace(r,"\\$&"):s}}(Mr)),Mr}var Es;function Qp(){return Es||(Es=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,y){for(var b in y)Object.defineProperty(_,b,{enumerable:!0,get:y[b]})}t(e,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return f},getNamedMiddlewareRegex:function(){return m}});const r=Xp(),o=Yp(),s=ol(),i="nxtP",a="nxtI";function c(_){const y=_.startsWith("[")&&_.endsWith("]");y&&(_=_.slice(1,-1));const b=_.startsWith("...");return b&&(_=_.slice(3)),{key:_,repeat:b,optional:y}}function l(_){const y=(0,s.removeTrailingSlash)(_).slice(1).split("/"),b={};let j=1;return{parameterizedRoute:y.map(v=>{const S=r.INTERCEPTION_ROUTE_MARKERS.find(R=>v.startsWith(R)),E=v.match(/\[((?:\[.*\])|.+)\]/);if(S&&E){const{key:R,optional:C,repeat:A}=c(E[1]);return b[R]={pos:j++,repeat:A,optional:C},"/"+(0,o.escapeStringRegexp)(S)+"([^/]+?)"}else if(E){const{key:R,repeat:C,optional:A}=c(E[1]);return b[R]={pos:j++,repeat:C,optional:A},C?A?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,o.escapeStringRegexp)(v)}).join(""),groups:b}}function u(_){const{parameterizedRoute:y,groups:b}=l(_);return{re:new RegExp("^"+y+"(?:/)?$"),groups:b}}function p(){let _=0;return()=>{let y="",b=++_;for(;b>0;)y+=String.fromCharCode(97+(b-1)%26),b=Math.floor((b-1)/26);return y}}function h(_){let{getSafeRouteKey:y,segment:b,routeKeys:j,keyPrefix:v}=_;const{key:S,optional:E,repeat:R}=c(b);let C=S.replace(/\W/g,"");v&&(C=""+v+C);let A=!1;return(C.length===0||C.length>30)&&(A=!0),isNaN(parseInt(C.slice(0,1)))||(A=!0),A&&(C=y()),v?j[C]=""+v+S:j[C]=""+S,R?E?"(?:/(?<"+C+">.+?))?":"/(?<"+C+">.+?)":"/(?<"+C+">[^/]+?)"}function d(_,y){const b=(0,s.removeTrailingSlash)(_).slice(1).split("/"),j=p(),v={};return{namedParameterizedRoute:b.map(S=>{const E=r.INTERCEPTION_ROUTE_MARKERS.some(C=>S.startsWith(C)),R=S.match(/\[((?:\[.*\])|.+)\]/);return E&&R?h({getSafeRouteKey:j,segment:R[1],routeKeys:v,keyPrefix:y?a:void 0}):R?h({getSafeRouteKey:j,segment:R[1],routeKeys:v,keyPrefix:y?i:void 0}):"/"+(0,o.escapeStringRegexp)(S)}).join(""),routeKeys:v}}function f(_,y){const b=d(_,y);return{...u(_),namedRegex:"^"+b.namedParameterizedRoute+"(?:/)?$",routeKeys:b.routeKeys}}function m(_,y){const{parameterizedRoute:b}=l(_),{catchAll:j=!0}=y;if(b==="/")return{namedRegex:"^/"+(j?".*":"")+"$"};const{namedParameterizedRoute:v}=d(_,!1);let S=j?"(?:(/.*)?)":"";return{namedRegex:"^"+v+S+"$"}}}(Ir)),Ir}var ws;function Zp(){return ws||(ws=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return o}});const t=Wp(),r=Qp();function o(s,i,a){let c="";const l=(0,r.getRouteRegex)(s),u=l.groups,p=(i!==s?(0,t.getRouteMatcher)(l)(i):"")||a;c=s;const h=Object.keys(u);return h.every(d=>{let f=p[d]||"";const{repeat:m,optional:_}=u[d];let y="["+(m?"...":"")+d+"]";return _&&(y=(f?"":"/")+"["+y+"]"),m&&!Array.isArray(f)&&(f=[f]),(_||d in p)&&(c=c.replace(y,m?f.map(b=>encodeURIComponent(b)).join("/"):encodeURIComponent(f))||"/")})||(c=""),{params:h,result:c}}}(Ar)),Ar}var Rs;function Jp(){return Rs||(Rs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return p}});const r=tl(),o=nl(),s=zp(),i=cr(),a=lr(),c=il(),l=Up(),u=Zp();function p(h,d,f){let m,_=typeof d=="string"?d:(0,o.formatWithValidation)(d);const y=_.match(/^[a-zA-Z]{1,}:\/\//),b=y?_.slice(y[0].length):_;if((b.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+_+"' passed to next/router in page: '"+h.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const v=(0,i.normalizeRepeatedSlashes)(b);_=(y?y[0]:"")+v}if(!(0,c.isLocalURL)(_))return f?[_]:_;try{m=new URL(_.startsWith("#")?h.asPath:h.pathname,"http://n")}catch{m=new URL("/","http://n")}try{const v=new URL(_,m);v.pathname=(0,a.normalizePathTrailingSlash)(v.pathname);let S="";if((0,l.isDynamicRoute)(v.pathname)&&v.searchParams&&f){const R=(0,r.searchParamsToUrlQuery)(v.searchParams),{result:C,params:A}=(0,u.interpolateAs)(v.pathname,v.pathname,R);C&&(S=(0,o.formatWithValidation)({pathname:C,hash:v.hash,query:(0,s.omit)(R,A)}))}const E=v.origin===m.origin?v.href.slice(v.origin.length):v.href;return f?[E,S||E]:E}catch{return f?[_]:_}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Dt,Dt.exports)),Dt.exports}var zt={exports:{}},Lr={},Dr={},As;function al(){return As||(As=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=$o();function r(o,s){if(!o.startsWith("/")||!s)return o;const{pathname:i,query:a,hash:c}=(0,t.parsePath)(o);return""+s+i+a+c}}(Dr)),Dr}var Ps;function em(){return Ps||(Ps=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return o}});const t=al(),r=sl();function o(s,i,a,c){if(!i||i===a)return s;const l=s.toLowerCase();return!c&&((0,r.pathHasPrefix)(l,"/api")||(0,r.pathHasPrefix)(l,"/"+i.toLowerCase()))?s:(0,t.addPathPrefix)(s,"/"+i)}}(Lr)),Lr}var Is;function tm(){return Is||(Is=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return o}});const r=lr(),o=function(s){for(var i=arguments.length,a=new Array(i>1?i-1:0),c=1;c<i;c++)a[c-1]=arguments[c];return process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(em().addLocale(s,...a)):s};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(zt,zt.exports)),zt.exports}var $r={},Ns;function cl(){return Ns||(Ns=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return o}});const o=Oe._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="RouterContext")}($r)),$r}var Br={},Ts;function rm(){return Ts||(Ts=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0});function t(u,p){for(var h in p)Object.defineProperty(u,h,{enumerable:!0,get:p[h]})}t(e,{CacheStates:function(){return s},AppRouterContext:function(){return i},LayoutRouterContext:function(){return a},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return l}});const o=Oe._(x);var s;(function(u){u.LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY"})(s||(s={}));const i=o.default.createContext(null),a=o.default.createContext(null),c=o.default.createContext(null),l=o.default.createContext(null);process.env.NODE_ENV!=="production"&&(i.displayName="AppRouterContext",a.displayName="LayoutRouterContext",c.displayName="GlobalLayoutRouterContext",l.displayName="TemplateContext")}(Br)),Br}var Ft={exports:{}},qt={exports:{}},Os;function ll(){return Os||(Os=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(i,a){for(var c in a)Object.defineProperty(i,c,{enumerable:!0,get:a[c]})}r(t,{requestIdleCallback:function(){return o},cancelIdleCallback:function(){return s}});const o=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let a=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-a))}})},1)},s=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(i){return clearTimeout(i)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(qt,qt.exports)),qt.exports}var ks;function nm(){return ks||(ks=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});const r=x,o=ll(),s=typeof IntersectionObserver=="function",i=new Map,a=[];function c(p){const h={root:p.root||null,margin:p.rootMargin||""},d=a.find(y=>y.root===h.root&&y.margin===h.margin);let f;if(d&&(f=i.get(d),f))return f;const m=new Map,_=new IntersectionObserver(y=>{y.forEach(b=>{const j=m.get(b.target),v=b.isIntersecting||b.intersectionRatio>0;j&&v&&j(v)})},p);return f={id:h,observer:_,elements:m},a.push(h),i.set(h,f),f}function l(p,h,d){const{id:f,observer:m,elements:_}=c(d);return _.set(p,h),m.observe(p),function(){if(_.delete(p),m.unobserve(p),_.size===0){m.disconnect(),i.delete(f);const b=a.findIndex(j=>j.root===f.root&&j.margin===f.margin);b>-1&&a.splice(b,1)}}}function u(p){let{rootRef:h,rootMargin:d,disabled:f}=p;const m=f||!s,[_,y]=(0,r.useState)(!1),b=(0,r.useRef)(null),j=(0,r.useCallback)(S=>{b.current=S},[]);(0,r.useEffect)(()=>{if(s){if(m||_)return;const S=b.current;if(S&&S.tagName)return l(S,R=>R&&y(R),{root:h==null?void 0:h.current,rootMargin:d})}else if(!_){const S=(0,o.requestIdleCallback)(()=>y(!0));return()=>(0,o.cancelIdleCallback)(S)}},[m,d,h,_,b.current]);const v=(0,r.useCallback)(()=>{y(!1)},[]);return[j,_,v]}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ft,Ft.exports)),Ft.exports}var Ht={exports:{}},Ut={exports:{}},zr={},Ms;function om(){return Ms||(Ms=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return t}});function t(r,o){let s;const i=r.split("/");return(o||[]).some(a=>i[1]&&i[1].toLowerCase()===a.toLowerCase()?(s=a,i.splice(1,1),r=i.join("/")||"/",!0):!1),{pathname:r,detectedLocale:s}}}(zr)),zr}var Ls;function sm(){return Ls||(Ls=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(o,s)=>process.env.__NEXT_I18N_SUPPORT?om().normalizeLocalePath(o,s):{pathname:o,detectedLocale:void 0};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ut,Ut.exports)),Ut.exports}var Wt={exports:{}},Fr={},Ds;function im(){return Ds||(Ds=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,o,s){if(r){s&&(s=s.toLowerCase());for(const c of r){var i,a;const l=(i=c.domain)==null?void 0:i.split(":")[0].toLowerCase();if(o===l||s===c.defaultLocale.toLowerCase()||(a=c.locales)!=null&&a.some(u=>u.toLowerCase()===s))return c}}}}(Fr)),Fr}var $s;function am(){return $s||($s=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});const r=function(){for(var o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];if(process.env.__NEXT_I18N_SUPPORT)return im().detectDomainLocale(...s)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Wt,Wt.exports)),Wt.exports}var Bs;function cm(){return Bs||(Bs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return s}});const r=lr(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function s(i,a,c,l){if(process.env.__NEXT_I18N_SUPPORT){const u=sm().normalizeLocalePath,p=am().detectDomainLocale,h=a||u(i,c).detectedLocale,d=p(l,void 0,h);if(d){const f="http"+(d.http?"":"s")+"://",m=h===d.defaultLocale?"":"/"+h;return""+f+d.domain+(0,r.normalizePathTrailingSlash)(""+o+m+i)}return!1}else return!1}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ht,Ht.exports)),Ht.exports}var Vt={exports:{}},zs;function lm(){return zs||(zs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});const r=al(),o=lr(),s=process.env.__NEXT_ROUTER_BASEPATH||"";function i(a,c){return(0,o.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?a:(0,r.addPathPrefix)(a,s))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Vt,Vt.exports)),Vt.exports}var Gt={exports:{}},Fs;function um(){return Fs||(Fs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(h,d){for(var f in d)Object.defineProperty(h,f,{enumerable:!0,get:d[f]})}r(t,{PrefetchKind:function(){return p},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return s},ACTION_RESTORE:function(){return i},ACTION_SERVER_PATCH:function(){return a},ACTION_PREFETCH:function(){return c},ACTION_FAST_REFRESH:function(){return l},ACTION_SERVER_ACTION:function(){return u}});const o="refresh",s="navigate",i="restore",a="server-patch",c="prefetch",l="fast-refresh",u="server-action";var p;(function(h){h.AUTO="auto",h.FULL="full",h.TEMPORARY="temporary"})(p||(p={})),(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Gt,Gt.exports)),Gt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return E}});const o=Oe._(x),s=Jp(),i=il(),a=nl(),c=cr(),l=tm(),u=cl(),p=rm(),h=nm(),d=cm(),f=lm(),m=um(),_=new Set;function y(R,C,A,O,w,N){if(typeof window>"u"||!N&&!(0,i.isLocalURL)(C))return;if(!O.bypassPrefetchedCheck){const B=typeof O.locale<"u"?O.locale:"locale"in R?R.locale:void 0,T=C+"%"+A+"%"+B;if(_.has(T))return;_.add(T)}const I=N?R.prefetch(C,w):R.prefetch(C,A,O);Promise.resolve(I).catch(B=>{if(process.env.NODE_ENV!=="production")throw B})}function b(R){const A=R.currentTarget.getAttribute("target");return A&&A!=="_self"||R.metaKey||R.ctrlKey||R.shiftKey||R.altKey||R.nativeEvent&&R.nativeEvent.which===2}function j(R,C,A,O,w,N,I,B,T,H){const{nodeName:U}=R.currentTarget;if(U.toUpperCase()==="A"&&(b(R)||!T&&!(0,i.isLocalURL)(A)))return;R.preventDefault();const G=()=>{const W=I??!0;"beforePopState"in C?C[w?"replace":"push"](A,O,{shallow:N,locale:B,scroll:W}):C[w?"replace":"push"](O||A,{forceOptimisticNavigation:!H,scroll:W})};T?o.default.startTransition(G):G()}function v(R){return typeof R=="string"?R:(0,a.formatUrl)(R)}const E=o.default.forwardRef(function(C,A){let O;const{href:w,as:N,children:I,prefetch:B=null,passHref:T,replace:H,shallow:U,scroll:q,locale:G,onClick:W,onMouseEnter:z,onTouchStart:Z,legacyBehavior:P=!1,...k}=C;O=I,P&&(typeof O=="string"||typeof O=="number")&&(O=o.default.createElement("a",null,O));const D=o.default.useContext(u.RouterContext),K=o.default.useContext(p.AppRouterContext),re=D??K,J=!D,L=B!==!1,ee=B===null?m.PrefetchKind.AUTO:m.PrefetchKind.FULL;if(process.env.NODE_ENV!=="production"){let se=function(oe){return new Error("Failed prop type: The prop `"+oe.key+"` expects a "+oe.expected+" in `<Link>`, but got `"+oe.actual+"` instead."+(typeof window<"u"?`
2
2
  Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(oe=>{if(oe==="href"&&(C[oe]==null||typeof C[oe]!="string"&&typeof C[oe]!="object"))throw se({key:oe,expected:"`string` or `object`",actual:C[oe]===null?"null":typeof C[oe]})}),Object.keys({as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0}).forEach(oe=>{const X=typeof C[oe];if(oe==="as"){if(C[oe]&&X!=="string"&&X!=="object")throw se({key:oe,expected:"`string` or `object`",actual:X})}else if(oe==="locale"){if(C[oe]&&X!=="string")throw se({key:oe,expected:"`string`",actual:X})}else if(oe==="onClick"||oe==="onMouseEnter"||oe==="onTouchStart"){if(C[oe]&&X!=="function")throw se({key:oe,expected:"`function`",actual:X})}else if((oe==="replace"||oe==="scroll"||oe==="shallow"||oe==="passHref"||oe==="prefetch"||oe==="legacyBehavior")&&C[oe]!=null&&X!=="boolean")throw se({key:oe,expected:"`boolean`",actual:X})});const Y=o.default.useRef(!1);C.prefetch&&!Y.current&&!J&&(Y.current=!0,console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"))}if(process.env.NODE_ENV!=="production"&&J&&!N){let se;if(typeof w=="string"?se=w:typeof w=="object"&&typeof w.pathname=="string"&&(se=w.pathname),se&&se.split("/").some(V=>V.startsWith("[")&&V.endsWith("]")))throw new Error("Dynamic href `"+se+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}const{href:Q,as:te}=o.default.useMemo(()=>{if(!D){const V=v(w);return{href:V,as:N?v(N):V}}const[se,ye]=(0,s.resolveHref)(D,w,!0);return{href:se,as:N?(0,s.resolveHref)(D,N):ye||se}},[D,w,N]),$=o.default.useRef(Q),M=o.default.useRef(te);let ne;if(P)if(process.env.NODE_ENV==="development"){W&&console.warn('"onClick" was passed to <Link> with `href` of `'+w+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),z&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+w+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{ne=o.default.Children.only(O)}catch{throw O?new Error("Multiple children were passed to <Link> with `href` of `"+w+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+(typeof window<"u"?`
3
3
  Open your browser's console to view the Component stack trace.`:"")):new Error("No children were passed to <Link> with `href` of `"+w+"` but one child is required https://nextjs.org/docs/messages/link-no-children")}}else ne=o.default.Children.only(O);else if(process.env.NODE_ENV==="development"&&(O==null?void 0:O.type)==="a")throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
4
- Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const ae=P?ne&&typeof ne=="object"&&ne.ref:A,[ue,de,ce]=(0,h.useIntersection)({rootMargin:"200px"}),F=o.default.useCallback(se=>{(M.current!==te||$.current!==Q)&&(ce(),M.current=te,$.current=Q),ue(se),ae&&(typeof ae=="function"?ae(se):typeof ae=="object"&&(ae.current=se))},[te,ae,Q,ce,ue]);o.default.useEffect(()=>{process.env.NODE_ENV==="production"&&re&&(!de||!L||y(re,Q,te,{locale:G},{kind:ee},J))},[te,Q,de,G,L,D==null?void 0:D.locale,re,J,ee]);const _e={ref:F,onClick(se){if(process.env.NODE_ENV!=="production"&&!se)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!P&&typeof W=="function"&&W(se),P&&ne.props&&typeof ne.props.onClick=="function"&&ne.props.onClick(se),re&&(se.defaultPrevented||j(se,re,Q,te,H,U,q,G,J,L))},onMouseEnter(se){!P&&typeof z=="function"&&z(se),P&&ne.props&&typeof ne.props.onMouseEnter=="function"&&ne.props.onMouseEnter(se),re&&((!L||process.env.NODE_ENV==="development")&&J||y(re,Q,te,{locale:G,priority:!0,bypassPrefetchedCheck:!0},{kind:ee},J))},onTouchStart(se){!P&&typeof Z=="function"&&Z(se),P&&ne.props&&typeof ne.props.onTouchStart=="function"&&ne.props.onTouchStart(se),re&&(!L&&J||y(re,Q,te,{locale:G,priority:!0,bypassPrefetchedCheck:!0},{kind:ee},J))}};if((0,c.isAbsoluteUrl)(te))_e.href=te;else if(!P||T||ne.type==="a"&&!("href"in ne.props)){const se=typeof G<"u"?G:D==null?void 0:D.locale,ye=(D==null?void 0:D.isLocaleDomain)&&(0,d.getDomainLocale)(te,se,D==null?void 0:D.locales,D==null?void 0:D.domainLocales);_e.href=ye||(0,f.addBasePath)((0,l.addLocale)(te,se,D==null?void 0:D.defaultLocale))}return P?o.default.cloneElement(ne,_e):o.default.createElement("a",{...k,..._e},O)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(fo,fo.exports);var dm=fo.exports,fm=dm;const Me=cr(fm),dl=({className:e,children:t,hasPriority:r=!1,showVideo:o=!1,...s})=>{const{element:i,index:a,item:{image:c,slug:l,video:u},sendSelectItemEvent:p,order:h,CONSTANTS:d}=Fe(),f=ie.getFirstImages({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return n.jsxs("div",{...s,className:g.helpers.classNameConcat(Pe["product-card--image"],e),ref:i,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[n.jsx(Me,{href:`/${l}/p`,onClick:p,onMouseUp:m=>{m.button===1&&p(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(h))},children:n.jsx("div",{className:Pe["product-card--image--container"],children:Array.isArray(f)&&f.map(({url:m,alternateName:_},y)=>x.createElement(ze.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:_??"product image",key:y,...r&&{priority:y===0&&a<4},objectFit:"cover",src:m}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&o&&u&&n.jsx(ve.Video,{url:u,poster:f[0].url}),t]})};dl.displayName="ProductCard.Media.Media";const fl=({className:e,callback:t,children:r,...o})=>{const{isMobile:s,item:i,CONSTANTS:{PRODUCT_CARD_TEXTS:a}}=Fe(),{availability:{status:c}}=i;return c?null:n.jsxs("div",{...o,className:g.helpers.classNameConcat(Pe["product-card--outstock"],e),children:[n.jsx(g.Tag,{size:"small",variant:"secondary",title:a.disabled,children:a.disabled}),n.jsx(g.Button,{className:g.helpers.classNameConcat(e,"buy-button"),size:s?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(i)},children:a.notify})]})};fl.displayName="ProductCard.OutStock";const pl=({children:e,className:t="",index:r,isMobile:o=!1,item:s,size:i,order:a,outStock:c,shelfTitle:l,CONSTANTS:u,WishListToggle:p,...h})=>n.jsx(Lp,{item:s,isMobile:o,outStock:c,order:a,size:i,index:r,shelfTitle:l,CONSTANTS:u,WishListToggle:p,children:n.jsx("div",{...h,className:g.helpers.classNameConcat(Pe["product-card--wrapper"],t),"data-size":i,children:e})});pl.displayName="ProductCard.Root";const ml=({disabled:e,label:t,size:r,value:o,onClick:s,...i})=>n.jsxs(g.ToggleSize.Wrapper,{...i,disabled:!1,outOfStock:e,size:r,onClick:s,children:[n.jsx(g.ToggleSize.DisabledAdornment,{}),n.jsx(g.ToggleSize.Text,{children:t})]});ml.displayName="ProductCard.SizeSelector.Item";const hl=({active:e=!1,callback:t,selectedSku:r=null,item:o,setNotify:s})=>{const{item:i,isMobile:a,setSelectedSku:c,eventDataRef:l}=Fe();o.productId=i.id;const u=ie.disableSKU(o),p=ie.getSKUName(o,"tamanho");!u&&!l.current.availableSkus.includes(p)&&l.current.availableSkus.push(p);const h=x.useCallback(f=>{const m=r===f?null:f;typeof c=="function"&&c(m),typeof t=="function"&&t(m)},[t,c,r]),d=x.useCallback(()=>{if(u&&typeof s=="function"){s(i,o);return}h(o)},[o,s,h,u,i]);return n.jsx(ml,{active:e,disabled:u,label:p,onClick:()=>d(),size:a?"x-small":"small",value:o})};hl.displayName="ProductCard.SizeSelector.SkuItem";const gl=({callback:e,className:t="",children:r,setNotify:o,...s})=>{const{isMobile:i,item:{isVariantOf:{hasVariant:a}},selectedSku:c}=Fe();return n.jsxs("div",{...s,className:g.helpers.classNameConcat(Pe["product-card--selectors--size"],t),"data-mobile":i,children:[n.jsx("div",{className:Pe["product-card--selectors--size--skus"],children:Array.isArray(a)&&a.map((l,u)=>n.jsx(hl,{active:c===l,callback:e,item:l,selectedSku:c,setNotify:o},`size--${u}--${l.sku}`))}),n.jsx("div",{className:Pe["product-card--selectors--size--button"],children:r})]})};gl.displayName="ProductCard.SizeSelector";const po=({alt:e="",callback:t,more:r,total:o=4,src:s,url:i,...a})=>n.jsxs(g.ToggleStyle.Wrapper,{...a,onClick:()=>{typeof t=="function"&&t(i)},children:[n.jsx(g.ToggleStyle.DisabledAdornment,{}),n.jsxs(g.ToggleStyle.Texture,{children:[s&&n.jsx(ze.Image,{alt:e??s,src:s,height:34,width:34}),r&&n.jsx(g.TextStructure.DivWrapper,{className:Pe["product-card--selectors--style--more"],children:n.jsxs("p",{children:["+ ",o]})})]})]}),pm=({children:e,callback:t,data:r,total:o=4,size:s,...i})=>{const{index:a}=Fe(),{triggerSelectItemEventRef:c}=ge();return n.jsxs("div",{...i,children:[e,Array.isArray(r)&&r.slice(0,o).map((l,u)=>n.jsx(po,{callback:p=>{c.current.trigger=!0,c.current.index=a,typeof t=="function"&&t(p)},src:(l==null?void 0:l.textureImage)??"",alt:l==null?void 0:l.textureAlt,url:l==null?void 0:l.slug,size:s},u)),Array.isArray(r)&&(r==null?void 0:r.length)>o&&n.jsx(po,{size:s,total:r.length-o,more:!0})]})},yl=({callback:e,className:t,data:r,images:o=[],findTexture:s,...i})=>{const{CONSTANTS:a}=Fe(),c=s||a.TEXTURE_IMAGE,l=o==null?void 0:o.find(u=>c.includes(u.alternateName));return n.jsx(pm,{...i,callback:e,className:g.helpers.classNameConcat(Pe["product-card--selectors--style"],t),data:r,size:"x-small",children:l&&n.jsx(po,{active:!0,size:"x-small",src:l.url})})};yl.displayName="ProductCard.StyleSelector";const _l=({className:e,hasDecimal:t,...r})=>{const{isMobile:o,item:{offers:{lowPrice:s,highPrice:i},installments:{count:a,value:c}},eventDataRef:l}=Fe();l.current.priceInfo={price:s,listPrice:i};const u=ie.formatPriceToCurrency(i,t),p=ie.formatPriceToCurrency(s,t),h=ie.formatPriceToCurrency(c??0),d=o?"horizontal":"stacked";return n.jsx("div",{...r,className:g.helpers.classNameConcat(Pe["product-card--price"],e),"data-mobile":o,children:n.jsx(g.ProductInfo.Root,{size:"small",layout:d,children:n.jsxs(g.ProductInfo.Wrapper,{size:"small",layout:d,children:[n.jsx(g.ProductInfo.ValuesWrapper,{children:p!==u?n.jsxs(n.Fragment,{children:[n.jsx(g.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),n.jsx(g.ProductInfo.Price,{label:"discountPrice",value:p,size:"small"})]}):n.jsx(g.ProductInfo.Price,{label:"defaultPrice",value:p,size:"small"})}),a&&a>1&&c?n.jsx(g.ProductInfo.Price,{label:"installment",value:`${a}x ${h}`,size:"small"}):null]})})})};_l.displayName="ProductCard.Price";const vl=({tag:e,className:t})=>{const{item:{name:r}}=Fe();return n.jsxs("div",{className:g.helpers.classNameConcat(Pe["product-card--title"],t),children:[n.jsx("div",{className:Pe["product-card--title--tag"],children:e?n.jsx(g.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?n.jsx(g.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):n.jsx("div",{})}),n.jsx("div",{className:Pe["product-card--title--content"],children:r&&n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("h3",{children:r})})})})]})};vl.displayName="ProductCard.Title";const bl=({className:e,url:t,poster:r,...o})=>{const{element:s}=Fe();return x.useEffect(()=>{if(!(s!=null&&s.current))return;const i=s.current,a=i.querySelector("video");if(a){const c=new IntersectionObserver(p=>{p.forEach(h=>{ie.setVideoPlay(h.isIntersecting,a,t)})},{root:null,rootMargin:"0px",threshold:.5}),l=()=>{a.setAttribute("data-loaded","true")},u=()=>{i&&(c.observe(i),a.addEventListener("loadeddata",l))};return document.readyState==="complete"?u():window.addEventListener("load",u),()=>{c.disconnect(),window.removeEventListener("load",u)}}return()=>null},[t,s]),n.jsx("div",{...o,className:g.helpers.classNameConcat(Pe["product-card--video"],e),children:t&&n.jsx(ze.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};bl.displayName="ProductCard.Media.Video";const xl=({children:e,className:t,type:r,...o})=>n.jsx("div",{...o,className:g.helpers.classNameConcat(Pe[`product-card--${r}`],t),children:e});xl.displayName="ProductCard.Wrapper";const ve={Actions:Zc,BuyButton:Jc,Header:el,Media:dl,Root:pl,OutStock:fl,Price:_l,SizeSelector:gl,StyleSelector:yl,Title:vl,Video:bl,Wrapper:xl},mm="_carousel_245ib_1",hm="_shelf__container_245ib_14",gm="_shelf_without_carousel_245ib_34",xt={carousel:mm,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:hm,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:gm},Hs=({title:e})=>n.jsx("div",{className:xt.shelf__container,children:e&&n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{children:[n.jsx("h2",{className:g.helpers.classNameConcat("typography-style-body-md",ie.responsive["responsive-mobile-flex"]),children:e}),n.jsx("h2",{className:g.helpers.classNameConcat("typography-style-heading-md",ie.responsive["responsive-desktop-flex"]),children:e})]})})}),ym=({children:e,ICONS:t,itemsPerPage:r,title:o})=>{const{isMobile:s}=be(),i=r[s?"mobile":"desktop"],{initialize:a,controller:c,itemsStyles:l,pagination:u}=g.Carousel.useCarousel({itemsPerPage:i,gap:10,loop:!0,direction:"row"}),p=x.Children.toArray(e).length;return s||p>=4?n.jsxs(g.Carousel.Root,{innerRef:d=>{a(d)},className:xt.carousel,children:[n.jsxs("div",{className:xt["custom-controllers"],children:[o&&n.jsx(Hs,{title:o}),i<p&&n.jsxs(g.Carousel.Controller,{className:xt["controllers-arrows-bullets"],children:[n.jsxs(g.Carousel.Arrows,{children:[n.jsx(g.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(g.Icon,{name:t.arrow_left})}}),n.jsx(g.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(g.Icon,{name:t.arrow_right})}})]}),!s&&i>2&&n.jsx(g.Carousel.Bullets,{page:u.currentPage,total:u.totalPages,onBulletClick:d=>c==null?void 0:c.navigateTo(d)})]})]}),n.jsx(g.Carousel.Body,{children:x.Children.map(e,(d,f)=>n.jsx(g.Carousel.Item,{style:{...l,overflow:"hidden"},children:d},`${o}_${f}`))})]}):n.jsxs(n.Fragment,{children:[o&&n.jsx(Hs,{title:o}),n.jsx("div",{className:xt.shelf_without_carousel,children:e})]})},_m={Shelf:ym},vm=({CONSTANTS:e,inView:t,products:r,innerRef:o,WishListToggle:s})=>{const i=x.useMemo(()=>kp(r),[r]),{isMobile:a}=be(),{addItemsToCart:c}=we(),{sendDataLayerEvent:l}=ge(),{getAvailableProductTag:u}=jt(),[p,h]=x.useState({totalPrice:0,products:{}}),d=()=>{const m=Object.values(p.products);c(m),l({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:m.map(_=>{const y=i.find(b=>b.node.id===_.productId);return y==null?void 0:y.node})},supportData:{selectedSkus:m,price:p.totalPrice}}})},f=({selectedProduct:m,productId:_})=>{const y=Mp({selectedProduct:m,productId:_,prevState:p,mainSellerId:e.StoreConfig_MainSellerId});h(y)};return x.useEffect(()=>{if(!t||i.length===0)return;const m=e.BUY_PACKAGE.header.title;l({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:i},customData:{item_list_name:m},outsideEcommerceData:{item_list_name:m}}})},[t]),n.jsxs("div",{className:Ge.container,ref:o,children:[n.jsx("div",{className:Ge["carousel-container"],style:{width:i.length<=3?"max-content":"75%"},children:n.jsx(_m.Shelf,{title:e.BUY_PACKAGE.header.title,itemsPerPage:{desktop:3,mobile:i.length>=3?2.2:i.length},ICONS:e.ICONS,children:Array.isArray(i)&&i.map(({node:m},_)=>{var j,v,S;const y=u(m.cluster.highlights),{availability:{status:b}}=m;return b?n.jsxs(ve.Root,{item:{...m,image:Do.helpers.product.getFirstImages({images:m.image,label:{first:e.MAIN_IMAGE,second:e.SECOND_IMAGE}})},isMobile:a,size:"medium",index:_,shelfTitle:e.BUY_PACKAGE.header.title,CONSTANTS:e,WishListToggle:s,children:[n.jsx(ve.Header,{product:m,tag:y.commercial}),n.jsx(ve.Media,{}),n.jsxs(ve.Wrapper,{type:"body",children:[n.jsx(ve.Title,{tag:{value:(j=y.institucional)==null?void 0:j.value,enableIcon:(v=y.institucional)==null?void 0:v.enableIcon,icon:(S=y.institucional)==null?void 0:S.icon}}),n.jsx(ve.Actions,{children:n.jsx(ve.SizeSelector,{callback:E=>f({selectedProduct:E,productId:m.id})})})]})]},m.id):null})})}),n.jsx("div",{className:Ge["add-cart-container"],children:n.jsx(Op,{handleAddAllToCart:d,selectedProducts:p,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},zo={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},Fo=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=we(),{handleSelectContent:o}=ge(),{CONSTANTS:s}=je(),i=r.reduce((a,c)=>a+(c.quantity??0),0);return n.jsx(g.Header.SupportItem,{onClick:()=>{t(!0),o({content:"header:minicart"})},id:e,children:n.jsxs(g.Badge.AutoPositioner,{children:[n.jsx(g.Badge.Count,{count:i,size:"medium",variant:"primary",style:{backgroundColor:"black",display:i>0?"flex":"none"}}),n.jsx(g.Icon,{name:s.header.ICONS.bag,size:"medium"})]})})};Fo.displayName="Header.Bag";const Pt=({children:e,href:t,...r})=>t&&t!=="#"?n.jsx(Me,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,Cl=()=>{const{headerData:e}=je(),{handleSelectContent:t}=ge(),{reset:r,updateValue:o}=Ke(),s=i=>{i?o(i):r()};return n.jsx(g.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((i,a)=>n.jsx(Pt,{href:i.link,onMouseEnter:()=>s(i.submenuId),onFocus:()=>s(i.submenuId),children:n.jsx(g.Header.CategoryItem,{className:zo["btn-header"],value:i.submenuId??null,adornment:{start:n.jsx(g.Icon,{name:i.iconStart}),end:n.jsx(g.Icon,{name:i.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${i.label}`})},children:i.label})},`category-${i.label}-${a}`))})};Cl.displayName="Header.Categories";function bm(){const{handleSelectContent:e}=ge(),{CONSTANTS:t}=je(),{setValue:r}=Io();return n.jsx(g.Header.SupportItem,{onClick:()=>{r(!0),e({content:"header:search"})},children:n.jsx(g.Icon,{name:t.header.ICONS.search,size:"medium"})})}const xm={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},Cm={"observer-wrapper":"_observer-wrapper_r43gk_1"},dr=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:o,stopOnIntersection:s=!0,className:i,...a})=>{const c=x.useRef(null),l=Ea(c,s,r),{sendDataLayerEvent:u}=ge();return x.useEffect(()=>{l&&(typeof o=="function"&&o(),t&&u({...t}))},[l]),n.jsx("div",{...a,ref:c,className:g.helpers.classNameConcat(Cm["observer-wrapper"],i),children:e})},qo=({thumbnails:e,category:t,isMobile:r=!0,callBack:o})=>{const{handleSelectPromotionEvent:s}=ge(),i=50/e.length;return n.jsx("div",{className:xm["menu-subcategories-container"],children:e.map((a,c)=>{const l=r?a.srcMobile:a.srcDesk;if(!l)return null;const u={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${c+1}`,promotion_id:l,promotion_name:a.promotion_name};return n.jsx(dr,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:n.jsxs(Me,{href:a.link??"#",onClick:()=>{typeof o=="function"&&o(),s({updatePromotionRef:!0,promotion:u})},children:[n.jsx(ze.Image,{src:l,alt:a.label??l,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${i}vw`}),a.label&&n.jsx("p",{children:a.label})]})},`thumb-${a.label}-${c}`)})})};qo.displayName="Menu.Thumbnail";const mo={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},Sm="_link_w24h0_1",jm="_wrapper_w24h0_98",Em="_text_w24h0_106",Hr={link:Sm,wrapper:jm,text:Em},Ue=({children:e,adornments:t,className:r,disableUnderline:o,href:s,mode:i,size:a,title:c,onClick:l,disablePadding:u,...p})=>{const h=g.helpers.ValidateProp({fieldTypes:lt.SizesSmallExtended,property:a,fallback:"medium"}),d=g.helpers.ValidateProp({fieldTypes:lt.Mode,property:i,fallback:"default"});return n.jsx(Me,{...p,className:g.helpers.classNameConcat(Hr.link,r),href:s&&s.length>0?s:"#","data-size":h,"data-variant":d,title:c||"NextLink","data-disable-underline":o??!1,"data-disable-padding":u??!0,children:n.jsxs("div",{className:Hr.wrapper,onClick:l,children:[t==null?void 0:t.start,n.jsx("p",{className:Hr.text,"data-size":h,children:e}),t==null?void 0:t.end]})})},Sl=({children:e,dividerOnRight:t=!0,subMenu:r,...o})=>{var l;const{router:s}=Re(),{reset:i}=Ke(),{handleSelectContent:a}=ge(),{CONSTANTS:c}=je();return n.jsxs("div",{...o,className:mo["menu-categories"],children:[(l=r==null?void 0:r.subCategories)==null?void 0:l.map((u,p)=>{var f,m,_;const h=u.listCollapseDesk&&!((f=u.see_all)!=null&&f.link)?{expandAfterRowsQty:u.rowsToShowDesk}:{},d=u.listCollapseDesk&&!((m=u.see_all)!=null&&m.link)?{expansivesAdornments:{open:c.header.ICONS.add,close:c.header.ICONS.minus},expansivesLabels:{open:c.header.COMPONENT_LIST.listExpandLabel,close:c.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:n.jsx(g.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return n.jsxs(g.ComponentList.Structure,{children:[n.jsx(Pt,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(i(),a({content:`menu:${u.label??""}:${r.label??""}`}))},children:n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("h2",{children:u.label})})})}),n.jsx(g.ComponentList.List,{columns:1,...h,className:mo["submenu-categories"],children:u.items.map((y,b)=>n.jsx(g.ComponentList.ListItem,{id:`list-item-${y.label}-${b}`,children:n.jsx(Ue,{href:y.link??"#",size:"x-small",title:y.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{i(),a({content:`menu:${u.label??""}:${y.label??""}:${r.label??""}`})},children:y.label})},`list-item-${y.label}-${b}`))}),((_=u.see_all)==null?void 0:_.link)&&n.jsx(g.ComponentList.Support,{...d,size:"small",onClick:()=>{var y;(y=u.see_all)!=null&&y.link&&(i(),a({content:`menu:${u.label??""}:${r.label}`}),s.push(u.see_all.link))},children:u.see_all.link&&u.see_all.label})]},`list-${u.label}-${p}`)}),t&&n.jsx(g.Utils.Divider,{size:"small",direction:"vertical"})]})};Sl.displayName="Menu.Categories";const jl=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:o}=je();return n.jsxs(n.Fragment,{children:[n.jsx("div",{...r,className:mo["menu-desktop"],style:{...r.style,justifyContent:o.header.ALIGNMENT_MENU},children:e}),t&&n.jsx(g.Utils.Divider,{size:"small"})]})};jl.displayName="Menu.MenuRoot";const Ur={Root:jl,Categories:Sl,Thumbnail:qo},El=()=>{const{headerData:e,CONSTANTS:t}=je(),r=sr(),{reset:o}=Ke();return n.jsx(g.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((s,i)=>{const{thumbnails:a,label:c,id:l}=s,u=l===r,p=a==null?void 0:a.some(h=>!!h.srcDesk);return n.jsxs(Ur.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[n.jsx(Ur.Categories,{dividerOnRight:!!p,subMenu:s}),Array.isArray(a)&&n.jsx(Ur.Thumbnail,{thumbnails:a,isMobile:!1,category:c,callBack:o})]},`submenu-${l}-${i}`)})})};El.displayName="Header.SubMenu";const wl=()=>{const{handleSelectContent:e}=ge(),{CONSTANTS:t}=je();return n.jsx(Me,{href:"/favoritos",children:n.jsx(g.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:n.jsx(g.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};wl.displayName="Header.WishList";const Rl=()=>{const{CONSTANTS:e,userMenuDesktopRef:t}=je(),{handleSelectContent:r}=ge(),{reset:o}=Ke(),{setValue:s}=Rt();return n.jsxs(n.Fragment,{children:[n.jsxs(g.Header.Wrapper,{children:[n.jsx(g.Header.Logo,{style:{width:"100%"},children:n.jsx(Me,{href:"/",onMouseEnter:o,children:n.jsx(g.Icon,{name:e.header.ICONS.logo,size:"x-large",onClick:()=>{r({content:"header:logo"})}})})}),n.jsx(Cl,{}),n.jsxs(g.Header.Support,{onMouseEnter:o,style:{justifyContent:"flex-end"},children:[n.jsx(bm,{}),n.jsx(g.Header.SupportItem,{onClick:()=>{s(!0),r({content:"header:user_menu"})},className:zo["btn-login"],innerRef:t,children:n.jsx(g.Icon,{name:e.header.ICONS.person,size:"medium"})}),n.jsx(wl,{}),n.jsx(Fo,{id:"cart-button"})]})]}),n.jsx(El,{})]})};Rl.displayName="Header.HeaderDesktopWrapper";const wm="_divider_1lexj_199",Se={"modal-modifier":"_modal-modifier_1lexj_1","menu-mobile":"_menu-mobile_1lexj_11","menu-header-container":"_menu-header-container_1lexj_26","menu-header-wrapper":"_menu-header-wrapper_1lexj_35","menu-header-navlinks":"_menu-header-navlinks_1lexj_41","menu-body":"_menu-body_1lexj_57","menu-categories-container":"_menu-categories-container_1lexj_74","menu-categories-btn":"_menu-categories-btn_1lexj_108","menu-body-banner-container-modifier":"_menu-body-banner-container-modifier_1lexj_121","menu-categories__banner":"_menu-categories__banner_1lexj_130","menu-submenu-modal-modifiier":"_menu-submenu-modal-modifiier_1lexj_135","menu-submenu":"_menu-submenu_1lexj_135","menu-submenu--item":"_menu-submenu--item_1lexj_150","menu-submenu--thumbnails":"_menu-submenu--thumbnails_1lexj_156","menu-submenu--component-list-modifier":"_menu-submenu--component-list-modifier_1lexj_184","submenu-categories":"_submenu-categories_1lexj_187","menu-navigationbar":"_menu-navigationbar_1lexj_191",divider:wm,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},Al=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:o,textColor:s,...i})=>n.jsx("button",{onClick:o,className:Se["menu-categories-btn"],children:r?n.jsxs(g.Banner.Container,{...i,className:Se["menu-body-banner-container-modifier"],children:[n.jsx(g.Banner.ImageWrapper,{style:{width:"100%"},children:n.jsx(ze.Image,{src:r,alt:t??r,className:Se["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),n.jsx(g.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{className:Se["menu-categories-textstructure-modifier"],children:n.jsx("h2",{className:"typography-style-body-xs",style:s?{color:s}:{},children:e})})})})]}):n.jsx("h2",{...i,children:e})});Al.displayName="Menu.MenuCategories";const Pl=({children:e,link:t})=>{const{reset:r}=nt();return t?n.jsx(Me,{href:t??"#",onClick:r,children:e}):e};Pl.displayName="Menu.MenuCategoriesWrapper";const Il=({subcategory:e,submenuLabel:t})=>{var l,u,p;const{router:r}=Re(),{reset:o}=nt(),{handleSelectContent:s}=ge(),{CONSTANTS:i}=je(),a=e.listCollapseMobile&&!((l=e.see_all)!=null&&l.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},c=e.listCollapseMobile&&!((u=e.see_all)!=null&&u.link)?{expansivesAdornments:{open:i.header.ICONS.add,close:i.header.ICONS.minus},expansivesLabels:{open:i.header.COMPONENT_LIST.listExpandLabel,close:i.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:n.jsx(g.Icon,{name:i.header.ICONS.arrow_right,size:"small"})}};return n.jsxs(g.ComponentList.Structure,{className:Se["menu-submenu--component-list-modifier"],children:[n.jsx(Pt,{href:e.linkLabel,title:e.label,onClick:()=>{o(),s({content:`menu:${e.label??""}:${t}`})},children:n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),n.jsx(g.ComponentList.List,{columns:1,...a,className:Se["submenu-categories"],children:e.items.map((h,d)=>n.jsx(g.ComponentList.ListItem,{id:`list-item-${h.label}-${d}`,divider:!0,children:n.jsx(Ue,{href:h.link??"#",size:"x-small",title:h.label??"",disableUnderline:!0,onClick:()=>{o(),s({content:`menu:${e.label??""}:${h.label}:${t}`})},children:h.label})},`list-item-${h.label}-${d}`))}),((p=e.see_all)==null?void 0:p.link)&&n.jsx(g.ComponentList.Support,{...c,size:"small",onClick:()=>{var h;o(),s({content:`menu:${e.label??""}:${t}`}),(h=e.see_all)!=null&&h.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};Il.displayName="Menu.SubMenuSubCategory";const Nl=({submenu:e})=>{var i;const t=sr(),{handleCloseSubMenu:r}=At(),{reset:o}=Ke(),{CONSTANTS:s}=je();return n.jsxs("div",{className:Se["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[n.jsx(g.TextStructure.Root,{adornment:{start:n.jsx(g.Icon,{name:s.header.ICONS.arrow_back,size:"medium",onClick:r})},layoutProps:{textRow:{alignItems:"center",style:{width:"100%",position:"relative"}},columnWrapper:{alignContent:"center",style:{width:"100%"}}},children:e.label&&n.jsx(g.TextStructure.DivWrapper,{style:{position:"absolute",left:"50%",transform:"translate(-50%)"},children:n.jsx("h2",{className:"typography-style-body-md-strong",children:e.label})})}),n.jsx("div",{className:Se["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&n.jsx(qo,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:o})}),(i=e==null?void 0:e.subCategories)==null?void 0:i.map((a,c)=>n.jsx(Il,{subcategory:a,submenuLabel:e.label},`list-${a.label}-${c}`))]})};Nl.displayName="Menu.SubMenuItem";const Tl=()=>{const{headerData:e}=je(),t=sr(),{reset:r}=Ke(),{bodyRef:o}=At();return n.jsx(g.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:r,parent:o.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:Se["menu-submenu-modal-modifiier"],children:n.jsx("div",{className:Se["menu-submenu"],children:e.subMenus.map((s,i)=>n.jsx(Nl,{submenu:s},`submenu-${s.id}-${i}`))})})};Tl.displayName="Menu.SubMenu";const Ol=({className:e,...t})=>{const{headerData:r}=je(),{setValue:o}=Ke(),{bodyRef:s}=At(),{handleSelectContent:i}=ge();return n.jsxs("div",{...t,ref:s,id:"menu-body",className:Se["menu-body"],children:[n.jsx("div",{className:Se["menu-categories-container"],children:r.categories.map((a,c)=>{const l=a.submenuId?{}:{"data-close":!0};return n.jsx(Pl,{link:a.submenuId?null:a.link,children:n.jsx(Al,{onClick:()=>{o(a.submenuId??null),i({content:`menu:${a.label}`})},mobileBannerSrc:a.mobileBannerSrc,mobileBannerAlt:a.mobileBannerAlt,textColor:a.textColor,...l,children:a.mobileBannerAlt})},`menu-categories-${c}`)})}),n.jsx(Tl,{})]})};Ol.displayName="Menu.MenuBody";const kl=({title:e,subtitle:t})=>{const{CONSTANTS:r}=je();return n.jsxs("div",{className:Se["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{children:[e&&n.jsx("h2",{className:"typography-style-body-md",children:e}),t&&n.jsx("h3",{children:t})]})}),n.jsx(g.Button,{adornment:{end:n.jsx(g.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:Se["menu-close"],"data-close":!0})]})};kl.displayName="Menu.MenuHeaderWrapper";const Ml=({navigationLinks:e})=>{const{reset:t}=nt(),{handleSelectContent:r}=ge();return e?n.jsx("nav",{className:Se["menu-header-navlinks"],children:e.map((o,s)=>n.jsx(Ue,{href:o.link??"#",adornments:{start:o.iconStart&&n.jsx(g.Icon,{name:o.iconStart}),end:o.iconEnd&&n.jsx(g.Icon,{name:o.iconEnd})},onClick:()=>{t(),r({content:`menu:navigationlinks-${o.label}`})},children:o.label},s))}):null};Ml.displayName="Menu.MenuHeaderNavLinks";const Ll=()=>{const{headerData:e}=je();return n.jsxs("div",{className:Se["menu-header-container"],children:[n.jsx(kl,{title:e.title,subtitle:e.subtitle}),n.jsx(Ml,{navigationLinks:e.navigationLinks})]})};Ll.displayName="Menu.MenuHeaderContainer";const Dl=({children:e})=>{const{documentBodyRef:t}=At(),{CONSTANTS:r}=je(),o=Po(),{setValue:s}=nt();return n.jsx(g.Modal.RootWithoutPortal,{isOpen:o,setIsOpen:s,parent:t.current,variant:"sideLeft",style:{position:"fixed",zIndex:r.header.Z_INDEX_WAR.menu_mobile,bottom:"unset",top:0,overflowY:"hidden"},className:Se["modal-modifier"],children:n.jsx("div",{className:Se["menu-mobile"],children:e})})};Dl.displayName="Menu.MenuRoot";const tr=({children:e,...t})=>n.jsxs(n.Fragment,{children:[n.jsx(g.Button,{...t,className:Se["menu-navigationbar-item"],children:e}),n.jsx(g.Utils.Divider,{direction:"vertical",size:"small",className:Se.divider})]});tr.displayName="Menu.NavigationBarItem";const $l=()=>{const{setIsOpen:e}=we(),{reset:t}=nt(),{setValue:r}=Rt(),{handleSelectContent:o}=ge(),{CONSTANTS:s}=je(),{router:i}=Re();return n.jsxs(g.Card,{id:"menu-navigationbar",shadow:!0,className:Se["menu-navigationbar"],style:{zIndex:s.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:[n.jsx(tr,{size:"small",variant:"tertiary",iconNameStart:s.header.MENU_INFO.login.button_icon,onClick:()=>{t(),r(!0),o({content:"menu:user_menu"})},children:s.header.MENU_INFO.login.button_text}),n.jsx(tr,{size:"small",variant:"tertiary",iconNameStart:s.header.MENU_INFO.bag.button_icon,onClick:()=>{t(),e(!0),o({content:"menu:minicart"})},children:s.header.MENU_INFO.bag.button_text}),n.jsx(tr,{size:"small",variant:"tertiary",iconNameStart:s.header.MENU_INFO.store.button_icon,onClick:()=>{i.push("/institucional/lojas"),t(),o({content:"menu:store"})},children:s.header.MENU_INFO.store.button_text})]})};$l.displayName="Menu.NavigationBar";const Kt={Root:Dl,NavigationBar:$l,Header:Ll,Body:Ol},Bl=()=>{const e=x.useRef(null),{CONSTANTS:t,userMenuMobileRef:r}=je(),{MENU_NAVIGATION_BAR_ALLOWED:o,ICONS:s,MENU_MOB_BTN_SIDE:i="right"}=t.header,{handleSelectContent:a}=ge(),{setValue:c}=Io(),{setValue:l}=nt(),{setValue:u}=Rt();return n.jsxs(n.Fragment,{children:[n.jsxs(g.Header.Wrapper,{children:[i==="left"&&n.jsx(g.Header.SupportItem,{onClick:()=>l(!0),innerRef:e,children:n.jsx(g.Icon,{name:s.menu,size:"medium"})}),n.jsx(g.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:n.jsx(Me,{href:"/",children:n.jsx(g.Icon,{name:s.logo,size:"x-large",onClick:()=>{a({content:"header:logo"})}})})}),n.jsxs(g.Header.Support,{children:[n.jsx(g.Header.SupportItem,{onClick:()=>{c(!0),a({content:"header:search"})},children:n.jsx(g.Icon,{name:s.search,size:"medium"})}),n.jsx(g.Header.SupportItem,{onClick:()=>{u(!0),a({content:"header:user_menu"})},innerRef:r,children:n.jsx(g.Icon,{name:s.person,size:"medium"})}),n.jsx(Fo,{}),i==="right"&&n.jsx(g.Header.SupportItem,{onClick:()=>l(!0),innerRef:e,children:n.jsx(g.Icon,{name:s.menu,size:"medium"})})]})]}),n.jsx(cc,{children:n.jsxs(Kt.Root,{children:[n.jsx(Kt.Header,{}),n.jsx(Kt.Body,{}),o?n.jsx(Kt.NavigationBar,{}):n.jsx(n.Fragment,{})]})})]})};Bl.displayName="Header.HeaderMobileWrapper";const Rm="_root_wvekm_126",$e={"user-menu--credits":"_user-menu--credits_wvekm_1","user-menu--content":"_user-menu--content_wvekm_10","user-menu--login":"_user-menu--login_wvekm_30","user-menu--login--content":"_user-menu--login--content_wvekm_37","user-menu--menu":"_user-menu--menu_wvekm_64","user-menu--tooltip":"_user-menu--tooltip_wvekm_93","tooltip-modifier":"_tooltip-modifier_wvekm_104","modal-controls-modifier":"_modal-controls-modifier_wvekm_109","modal-header-modifier":"_modal-header-modifier_wvekm_117",root:Rm},zl=({className:e,children:t,...r})=>n.jsx("div",{...r,className:g.helpers.classNameConcat($e["user-menu--content"],e),children:t});zl.displayName="UserMenu.Content";var Fl=(e=>(e.Account="account",e))(Fl||{});const ql=({className:e,cashBack:t,credits:r,link:o,total:s,...i})=>{const a=t?ie.formatPriceToCurrency(t):void 0,c=r?ie.formatPriceToCurrency(r):void 0,l=s?ie.formatPriceToCurrency(s):void 0;return n.jsx(g.Credits.Account,{...i,className:g.helpers.classNameConcat($e["user-menu--credits"],e),icon:"wallet",showIcon:!0,cashBackValue:a,creditsValue:c,linkMore:o,totalValue:l,type:Fl.Account})};ql.displayName="UserMenu.Credits";const Hl=({className:e,children:t,description:r,text:o,...s})=>{const{isMobile:i}=be();return n.jsx("div",{...s,className:g.helpers.classNameConcat($e["user-menu--login"],e),"data-mobile":i,children:n.jsxs("div",{className:$e["user-menu--login--content"],children:[n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:[n.jsx("h3",{className:"typography-style-body-lg-strong",children:o}),n.jsx("p",{children:r})]})}),t]})})};Hl.displayName="UserMenu.Login";const Ul=({className:e,isLogged:t,onLogoutClick:r,ICONS:o,storeConfig:s})=>{const{isMobile:i}=be(),a=kf({ICONS:o,storeConfig:s}).filter(c=>c.deviceShown==="both"||c.deviceShown===(i?"mobile":"desktop"));return n.jsxs("ul",{className:g.helpers.classNameConcat($e["user-menu--menu"],e),children:[Array.isArray(a)&&a.map((c,l)=>n.jsx("li",{children:n.jsx(Ue,{href:c.href??"#",size:"small",disableUnderline:!0,adornments:{start:n.jsx(g.Icon,{name:c.icon??"delete"})},children:c.label})},l)),t?n.jsx("li",{children:n.jsx(Ue,{href:`${s.secureSubdomain}/api/vtexid/pub/logout?scope=mariafilo&returnUrl=${encodeURIComponent(`${s.storeUrl}`)}`,size:"small",disableUnderline:!0,onClick:r,adornments:{start:n.jsx(g.Icon,{name:Of(o)})},children:Tf})}):n.jsx(n.Fragment,{})]})};Ul.displayName="UserMenu.Menu";const Wl=e=>{const t=x.useRef(null),r=x.useCallback(i=>{t.current&&!t.current.contains(i.target)&&e()},[e]),o=x.useCallback(i=>{t.current&&!t.current.contains(i.target)&&e()},[e]),s=x.useCallback(i=>{i.key==="Escape"&&e()},[e]);return x.useEffect(()=>(document.addEventListener("mousedown",r),document.addEventListener("keydown",s),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",s),document.removeEventListener("touchstart",o)}),[r,s,o]),{ref:t}},Am=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Pm=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const{height:o,left:s,top:i,width:a}=t.getBoundingClientRect(),c=e.getBoundingClientRect(),l=e!=null&&e.parentElement?Am(e==null?void 0:e.parentElement):0;return{left:s+a/2-(c.width+l*2),top:i+o+r}},Vl=x.createContext({}),Im=({children:e,delay:t=600,gap:r=20,isOpen:o,setIsOpen:s,target:i,...a})=>{const c=x.useRef(null),[l,u]=x.useState(!1),[p,h]=x.useState({left:0,top:0}),{ref:d}=Wl(()=>{u(!0),typeof window<"u"&&(c.current=window.setTimeout(()=>{s(!1),u(!1)},t))});return x.useEffect(()=>{if(i&&(d!=null&&d.current)){const{left:f,top:m}=Pm(d.current,i,r??0);h({left:f,top:m}),u(!1)}},[r,o,i,d]),n.jsx(Vl.Provider,{value:x.useMemo(()=>({...a,...p,contentRef:d,isLeaving:l,isOpen:o,setIsOpen:s,setIsLeaving:u,target:i}),[a,p,d,l,o,s,u,i]),children:e})},Gl=()=>{const e=x.useContext(Vl);if(e===void 0)throw new Error("useUserMenuContext must be used within a UserMenuProvider");return e},Kl=({children:e,isMobile:t=!1,Z_INDEX_WAR:r})=>{const{isOpen:o,setIsOpen:s}=Gl();return n.jsxs(g.Modal.Root,{"data-user":"user-menu--modal",isMobile:t??!1,isOpen:o,setIsOpen:s,variant:"sideBottom",className:$e["modal-root-modifier"],style:{zIndex:r.user_menu_mobile},children:[n.jsx(g.Modal.Header,{navigation:"top",className:$e["modal-header-modifier"],children:n.jsx(g.Modal.Controls,{navigation:"top",isMobile:!0,className:$e["modal-controls-modifier"]})}),n.jsx(g.Modal.Body,{children:e})]})};Kl.displayName="UserMenu.Modal";const Xl=({children:e,component:t,Z_INDEX_WAR:r,isMobile:o,...s})=>n.jsx(Im,{...s,className:$e.root,children:o?n.jsxs(n.Fragment,{children:[n.jsx(Ye.Modal,{Z_INDEX_WAR:r,children:t}),e]}):n.jsx(Ye.Tooltip,{component:t,style:{width:304,zIndex:r.user_menu},Z_INDEX_WAR:r,children:e})});Xl.displayName="UserMenu.Root";const Yl=({children:e,component:t,Z_INDEX_WAR:r,...o})=>{const{contentRef:s,left:i,isLeaving:a,isOpen:c,top:l}=Gl();return n.jsx(g.Tooltip.Root,{arrow:"top-right",component:n.jsx("div",{...o,ref:s,children:t}),className:g.helpers.classNameConcat($e["user-menu--tooltip"],$e["tooltip-modifier"]),isLeaving:a,isOpen:c,left:i,size:"medium",position:"top",top:l,style:{zIndex:r.user_menu},children:n.jsx("div",{className:$e["user-menu--tooltip"],children:e})})};Yl.displayName="UserMenu.Tooltip";const Ye={Credits:ql,Content:zl,Login:Hl,Menu:Ul,Modal:Kl,Root:Xl,Tooltip:Yl},Ho=()=>{var _,y,b;const e=ar(),{isMobile:t}=be(),{userMenuMobileRef:r,userMenuDesktopRef:o,CONSTANTS:{header:s},storeConfig:i}=je(),{ICONS:a,Z_INDEX_WAR:c,MENU_INFO:l}=s,u=Za(),{setValue:p}=Rt(),h=()=>{window.location.href=`${i.secureSubdomain}/api/io/login?returnUrl=${encodeURIComponent(`${i.storeUrl}`)}`},d=!!((_=e.user)!=null&&_.userId),{cashback:f,credits:m}=x.useMemo(()=>{var j,v;return{credits:((j=e==null?void 0:e.getCurrentCredits())==null?void 0:j.credits)??0,cashback:((v=e==null?void 0:e.getCurrentCredits())==null?void 0:v.cashback)??0}},[e]);return n.jsx(Ye.Root,{component:n.jsxs(Ye.Content,{children:[n.jsx(Ye.Login,{description:Lf(d),text:Mf(d,((y=e==null?void 0:e.user)==null?void 0:y.firstName)??((b=e==null?void 0:e.user)==null?void 0:b.email)),children:!d&&n.jsx(g.Button,{size:"medium",variant:"quaternary",onClick:()=>h(),children:l.login.button_text})}),m+f&&d?n.jsx(Ye.Credits,{credits:m,cashBack:f,link:`${i.secureSubdomain}/account#/meus-creditos`,total:m+f}):n.jsx(n.Fragment,{}),n.jsx(g.Utils.Divider,{}),n.jsx(Ye.Menu,{isLogged:d,onLogoutClick:()=>e.logout(),ICONS:a,storeConfig:i})]}),target:t?r.current:o.current,isOpen:u,isMobile:t,setIsOpen:p,Z_INDEX_WAR:c})};Ho.displayName="UserMenu";const Nm=x.createContext({}),Tm=({children:e})=>{const{sendDataLayerEvent:t}=ge(),{cartStore:r,isOpen:o}=we();x.useEffect(()=>{o&&t({functionKey:"viewCartEvent",data:{commonData:{cartStore:r}}})},[o]),x.useEffect(()=>{var i,a,c;if(r.id&&!((a=(i=r.marketingData)==null?void 0:i.marketingTags)!=null&&a.includes("faststore"))){const{id:l}=r;Qe.post("/api/checkout/order-form/attachments/marketing-data",{orderFormId:l,marketingData:{...r==null?void 0:r.marketingData,marketingTags:za(((c=r.marketingData)==null?void 0:c.marketingTags)??[])}}).catch(u=>{console.error(u)})}},[r]);const s=({cartItem:i,oldQuantity:a,newQuantity:c})=>{t({functionKey:"skuEvents",data:{event:a>c?"remove_from_cart":"add_to_cart",commonData:{products:[{...i,price:i.price/100,listPrice:i.listPrice/100}]},customData:{quantity:c},supportData:{selectedSkus:[i]}}})};return n.jsx(Nm.Provider,{value:{handleUpdateItemQuantityEvent:s},children:e})},Om="_fadeInOut_ottz1_1",km="_fadeOut_ottz1_1",le={"mc--cashback":"_mc--cashback_ottz1_1","mc--cashback--positive":"_mc--cashback--positive_ottz1_21","mc--cashback--alert":"_mc--cashback--alert_ottz1_24","mc--container--actions":"_mc--container--actions_ottz1_28","mc--container--actions--secondary":"_mc--container--actions--secondary_ottz1_36","mc--container--actions--toggle-size-modifier":"_mc--container--actions--toggle-size-modifier_ottz1_54","mc--footer":"_mc--footer_ottz1_58","mc--footer--actions":"_mc--footer--actions_ottz1_67","mc--footer--actions-button":"_mc--footer--actions-button_ottz1_73","mc--footer--total":"_mc--footer--total_ottz1_89","mc--footer--total--info":"_mc--footer--total--info_ottz1_94","mc--footer--total--info--content":"_mc--footer--total--info--content_ottz1_99","mc--field":"_mc--field_ottz1_143","mc--body":"_mc--body_ottz1_183","mc--body--products":"_mc--body--products_ottz1_190","mc--body--empty--feedback":"_mc--body--empty--feedback_ottz1_198","mc--body--empty--text":"_mc--body--empty--text_ottz1_203","mc--header":"_mc--header_ottz1_217","mc--header--subtitle":"_mc--header--subtitle_ottz1_243","mc--notify":"_mc--notify_ottz1_284","mc--notify--content":"_mc--notify--content_ottz1_299","mc--notify--item":"_mc--notify--item_ottz1_312",fadeInOut:Om,fadeOut:km,"mc--card":"_mc--card_ottz1_374","mc--card--actions":"_mc--card--actions_ottz1_379","mc--card--actions--secondary":"_mc--card--actions--secondary_ottz1_387","mc--card--actions--add-remove":"_mc--card--actions--add-remove_ottz1_414","mc--card--actions--gift":"_mc--card--actions--gift_ottz1_428","mc--card--content-info":"_mc--card--content-info_ottz1_444","mc--card--details":"_mc--card--details_ottz1_451","mc--card--link":"_mc--card--link_ottz1_456","mc--product--unavailable":"_mc--product--unavailable_ottz1_464","mc--card--name":"_mc--card--name_ottz1_467","mc--card--price":"_mc--card--price_ottz1_482","mc--card--price--old-price":"_mc--card--price--old-price_ottz1_492","mc--card--price--price-details":"_mc--card--price--price-details_ottz1_496","mc--card--product-link":"_mc--card--product-link_ottz1_507","mc--discount":"_mc--discount_ottz1_517","mc--discount--body":"_mc--discount--body_ottz1_526","minicart--modal-modifier":"_minicart--modal-modifier_ottz1_547"},Ql=({item:{id:e,message:t,callback:r},removeNotification:o,ICONS:s})=>{const i=x.useRef(null),a=()=>{var l;(l=i.current)==null||l.setAttribute("data-animation-out","true")},c=l=>{o(l)};return n.jsx("div",{className:le["mc--notify--item"],ref:i,onAnimationEnd:()=>c(e),children:n.jsxs(g.SnackBar.Structure,{size:"medium",children:[n.jsx(g.SnackBar.Content,{title:t}),n.jsxs(g.SnackBar.Support,{children:[typeof r=="function"&&n.jsx(g.Button,{onClick:()=>{r(),a()},size:"small",variant:"tertiary",children:"Desfazer"}),n.jsx(g.Button,{iconNameStart:s.close,iconSize:"small",onClick:()=>a(),variant:"tertiary"})]})]})},e)};Ql.displayName="MiniCart.Notify.Item";const Zl=({ICONS:e})=>{const t=Ro(),{removeNotification:r}=Ao(),o=t.length?[...t].sort((s,i)=>i.id-s.id):[];return n.jsx("div",{className:le["mc--notify"],children:n.jsx("div",{className:le["mc--notify--content"],children:Array.isArray(o)&&o.map(s=>n.jsx(Ql,{item:s,removeNotification:r,ICONS:e},s.id))})})};Zl.displayName="MiniCart.Notifications";const Mm=({handleSendEvent:e,onHandleRemove:t,product:r,MINICART_CONFIG:o,...s})=>{const i=oc(),{toggleProduct:a}=sc(),{itemOffered:{isVariationOf:{productGroupID:c}},quantity:l}=r;return n.jsx(g.Button,{...s,adornment:{end:n.jsx(g.Icon,{name:`favorite-${i.includes(c)?"true":"false"}`,size:"small"})},onClick:()=>{a(c),i.includes(c)||t({texture:"mini-cart-wishlist",title:`${o.messages.add_wishlist}`},l,()=>a(c)),e(i.includes(c)?"remove_from_wishlist":"add_to_wishlist","productEvents")},children:o.messages.add_wishlist_button})},Jl=({handleSendEvent:e,product:t,ICONS:r,MINICART_CONFIG:o,...s})=>{const{addToCart:i,removeToCart:a}=we(),{bundleItems:c=[],id:l,uniqueId:u,seller:p,offerings:h,quantity:d}=t,f=(m,_,y)=>{a(l,m.title,()=>{typeof y=="function"&&y(),i({id:l,quantity:_,seller:p},{id:l,texture:m.texture},!0)})};return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:le["mc--card--actions--add-remove"],children:[o.has_wishlist_button&&n.jsx(Mm,{...s,product:t,handleSendEvent:e,onHandleRemove:f,ICONS:r,MINICART_CONFIG:o}),n.jsx(g.Button,{...s,adornment:{end:n.jsx(g.Icon,{name:r.delete,size:"small"})},variant:"secondary",state:"danger",onClick:()=>{f({texture:"mini-cart",title:`${o.messages.remove}`},d),e("remove_from_cart","skuEvents")},children:o.messages.remove_button})]}),o.has_gift_option&&n.jsx(ct.Gift,{uniqueId:u,bundleItems:c,offerings:h,ICONS:r,MINICART_CONFIG:o})]})};Jl.displayName="MiniCart.Card.Actions";const eu=({bundleItems:e,offerings:t,uniqueId:r,ICONS:o,MINICART_CONFIG:s})=>{const[i,a]=x.useState(!1),{toggleGiftItemCart:c}=we(),l=()=>{if(t instanceof Object&&Array.isArray(t)){const[h]=t;if(h){a(!0);const d=e.some(f=>f.id===h.id);c(r,String(h.id),d).then(()=>a(!1))}}},u=t[0],p=e.find(h=>h.id===u.id);return u&&"id"in u?n.jsx("div",{className:le["mc--card--actions--gift"],children:n.jsx(g.Checkbox,{adornment:n.jsx(g.Icon,{name:o.check}),checked:!!p,disabled:i,label:s.messages.giftPackage,onChange:l})}):null};eu.displayName="MiniCart.Card.Gift";const tu=({itemOffered:e})=>{const t=ie.updatedResizedImg(e==null?void 0:e.image[0].url,{width:200,height:300});return n.jsx(Me,{href:`${e==null?void 0:e.slug}`,className:le["mc--card--product-link"],children:n.jsx(ze.Image,{alt:(e==null?void 0:e.image[0].alternateName)||"Produto",src:t||"",width:108,height:164})})};tu.displayName="MiniCart.Card.Media";const ru=({name:e,skuName:t,tagName:r,className:o})=>n.jsxs(n.Fragment,{children:[r&&n.jsx(g.Tag,{variant:"quaternary",title:r,style:{textTransform:"uppercase"},children:r}),n.jsx("p",{className:g.helpers.classNameConcat(le["mc--card--name"],o),children:ie.getProductNameWithoutSku(e??"",t??"")})]});ru.displayName="MiniCart.Card.Name";const nu=({total:e,totalList:t})=>n.jsx(g.ProductInfo.Root,{children:n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{className:le["mc--card--price"],children:n.jsx(g.ProductInfo.Wrapper,{className:le["mc--card--price--details"],size:"small",layout:"horizontal",children:t&&e!==t?n.jsxs(n.Fragment,{children:[n.jsx(g.ProductInfo.Price,{label:"originalPrice",value:ie.formatPriceToCurrency(t),size:"small"}),n.jsx(g.ProductInfo.Price,{label:"discountPrice",value:ie.formatPriceToCurrency(e),size:"small"})]}):n.jsx(g.ProductInfo.Price,{label:"defaultPrice",value:ie.formatPriceToCurrency(e),size:"small"})})})})});nu.displayName="MiniCart.ProductPrice";const ou=({product:e,TEXTURE_IMAGE:t,TOGGLE_STYLE_MODIFIER:r})=>{var u;const[o,s]=x.useState(""),i=x.useRef(null),{cartStore:{options:a}}=we(),c=e.itemOffered.isVariationOf.productGroupID,l=x.useCallback(()=>{var h;const p=(h=a==null?void 0:a.find(d=>d.id===c))==null?void 0:h.texture;if(p){s(p);return}fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[c]})}).then(d=>d.json()).then(d=>{const f=d.data[0].items.find(m=>m.itemId===e.id);if(f){const m=f.images.find(_=>t.includes(_.imageLabel));if(m!=null&&m.imageUrl){s(m.imageUrl);return}s(f.images[0].imageUrl)}}).catch(d=>{console.error(d)})},[a,c,e.id]);return x.useEffect(()=>{if(!i.current)return;new IntersectionObserver(l).observe(i.current)},[l]),n.jsx("div",{ref:i,children:n.jsx(g.ToggleStyle.Wrapper,{size:"small",style:r,children:n.jsx(g.ToggleStyle.Texture,{children:o?n.jsx(ze.Image,{alt:((u=e.itemOffered)==null?void 0:u.image[0].alternateName)??"Produto",src:o,width:164,height:164,style:r}):n.jsx(zc,{})})})})};ou.displayName="MiniCart.Card.Style";const su=({product:e,NAME_SPLIT_SYMBOL:t,TEXTURE_IMAGE:r,TOGGLE_STYLE_MODIFIER:o})=>{const{size:s}=ie.getColorAndSizeFromSkuName(e.itemOffered.skuName??"",t);return n.jsxs(g.Utils.Row,{alignItems:"center",children:[n.jsx(ou,{product:e,TEXTURE_IMAGE:r,TOGGLE_STYLE_MODIFIER:o}),n.jsx(g.Utils.Divider,{direction:"vertical",size:"small",style:{height:24}}),s&&n.jsx(g.ToggleSize.Wrapper,{size:"small",variation:"fill",className:le["mc-container-actions--toggle-size-modifier"],children:n.jsx(g.ToggleSize.Text,{children:s})})]})};su.displayName="MiniCart.Card.Sku";const ct={Actions:Jl,Gift:eu,Media:tu,Name:ru,Price:nu,Sku:su},Lm=e=>{var t;return{price:e.sellingPrice/100,listPrice:e.listPrice/100,totalPrice:(((t=e.priceDefinition)==null?void 0:t.total)??0)/100,totalListPrice:e.listPrice*e.quantity/100}},iu=({available:e=!0,index:t,product:r,ICONS:o,MINICART_CONFIG:s,NAME_SPLIT_SYMBOL:i,TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:c})=>{var h,d;const{sendDataLayerEvent:l}=ge(),u=Lm(r),p=(f,m)=>{const _={commonData:{...r,...u},customData:{index:t},event:f};if(m==="skuEvents"){const y={...r,...u};_.supportData={selectedSkus:[y]},_.commonData.products=[y]}l({functionKey:m,data:_})};return n.jsxs("div",{className:g.helpers.classNameConcat(le["mc--card"],e?"":le["mc--card--unavailable"]),children:[n.jsx(ct.Media,{itemOffered:r.itemOffered}),n.jsxs("div",{className:le["mc--card--content-info"],children:[n.jsx(ct.Name,{name:((h=r.itemOffered)==null?void 0:h.name)??"",skuName:(d=r.itemOffered)==null?void 0:d.skuName}),n.jsxs("div",{className:le["mc--card--details"],children:[n.jsx("div",{className:le["mc--card--actions"],children:e?n.jsx(ct.Price,{total:u.price,totalList:u.listPrice}):n.jsx(g.Tag,{variant:"secondary",size:"small",children:"Indisponível"})}),n.jsxs("div",{className:le["mc--card--actions--secondary"],children:[e&&n.jsx(ct.Sku,{product:r,NAME_SPLIT_SYMBOL:i,TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:c}),n.jsx(ct.Actions,{handleSendEvent:p,product:r,size:"small",variant:"tertiary",ICONS:o,MINICART_CONFIG:s})]})]})]})]})};iu.displayName="MiniCart.Card";const au=({type:e="positive",ICONS:t,MESSAGE_CASHBACK:r})=>{var i;const{toExpire:o}=ar(),s=((i=o==null?void 0:o.cashback)==null?void 0:i.reduce((a,c)=>a+c.remaining_value,0))??0;return s>0?n.jsxs("div",{className:g.helpers.classNameConcat(le["mc--cashback"],le[`mc--cashback--${e}`]),children:[n.jsx(g.Icon,{name:t.alert_circle,size:"medium"}),n.jsxs("p",{children:[n.jsx("span",{children:ie.formatPriceToCurrency(s)})," ",r.title]})]}):null};au.displayName="MiniCart.Cashback";const cu=({type:e,ICONS:t,MINICART_CONFIG:r})=>{const{addCouponSeller:o,removeCoupon:s,removeSellerCode:i,cartStore:{marketingData:a,openTextField:c}}=we(),[l,u]=x.useState(!1),[p,h]=x.useState(!1),d=x.useCallback(()=>{let y="";return e==="coupon"?y=(a==null?void 0:a.coupon)??"":y=String((c==null?void 0:c.value)??""),y.toUpperCase()??""},[a,c,e]),[f,m]=x.useState(!!d()),_=async y=>{h(!0),!!d()&&(e==="coupon"?await s():await i(),m(!1),u(!1)),await o(y,e).then(j=>{if(!j.statusOk&&y||j.code!==200){y?(u(!0),m(!1)):u(!1);return}m(!0),u(!1)}).catch(()=>u(!0)).finally(()=>h(!1))};return n.jsx(ke.Field,{hasError:l,hasSuccess:f,isLoading:p,onHandler:_,type:e,title:e==="coupon"?`${r.messages.descount_cupom_placeholder}`:`${r.messages.sellers_code_placeholder}`,value:d(),MINICART_CONFIG:r,ICONS:t})};cu.displayName="MiniCart.CouponSeller";const lu=({ICONS:e,MINICART_CONFIG:t,PLP_NOT_RESULT:r})=>{const{router:o}=Re(),s=()=>{o.push(r.link)};return n.jsxs(g.Utils.Column,{alignContent:"center",alignItems:"center",gap:"24px",className:le["mc--body--empty--feedback"],children:[n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsxs("p",{className:`typography-style-body-xs ${le["mc--body--empty--text"]}`,children:[t.messages.empty_card," "]})})}),n.jsx(g.Button,{variant:"tertiary",size:"large",onClick:()=>s(),"data-close":!0,adornment:{end:n.jsx(g.Icon,{name:e.arrow_right,size:"medium"})},children:t.messages.empty_bag})]})};lu.displayName="MiniCart.Feedback";const Dm=e=>{const t=e.replace(/\D/g,"");return t.length>5?`${t.slice(0,5)}-${t.slice(5,8)}`:t},uu=({feedback:e,hasError:t,onHandler:r,hasSuccess:o,type:s,title:i,value:a,ICONS:c})=>{const[l,u]=x.useState(a);x.useEffect(()=>{t||u(a)},[a,t]);const p=()=>t?n.jsx(g.Icon,{name:c.delete_circle}):String(a).length&&o?n.jsx(g.Icon,{name:c.check_circle}):null,h=()=>{if(s==="seller"){const _=String(a).includes(" - ")?String(a).split(" - ")[0]:l;u(_)}},d=()=>{if(s==="seller"){const _=String(a).includes(" - ")?a:l;u(_)}},f=_=>{const y=_.currentTarget.value;if(y===""&&typeof r=="function"||o&&String(a).length>0&&y!==String(a)||t&&y!==String(a)){u(""),r("");return}if(s==="cep"){const j=Dm(y);u(j)}else u(y)},m=_=>{if(_.key.toLocaleLowerCase()==="enter"&&typeof r=="function"){const y=_.currentTarget.value;r(y)}};return n.jsx(g.TextField.Input,{adornment:{end:p()},mode:"over-label",label:i,feedback:e,value:l,type:"text",onFocus:h,onBlur:d,onChange:f,onKeyDown:m})};uu.displayName="MiniCart.Field.Input";const du=({title:e,ICONS:t,MINICART_CONFIG:r,...o})=>{const s=x.useRef(null),{hasSuccess:i,hasError:a,isLoading:c,onHandler:l,type:u,value:p}=o,h=()=>a?"error":String(p).length&&i?"success":"none",d=x.useCallback(()=>{if(s.current){const _=s.current.querySelector("input");_&&typeof l=="function"&&(p!==""||a?(l(""),_.value=""):l((_==null?void 0:_.value)??""))}},[l,p,a]),f=h();return n.jsx("div",{ref:s,children:n.jsx(g.TextField.Structure,{className:le["mc--field"],input:n.jsx(uu,{...o,feedback:f,title:e,ICONS:t}),right:n.jsx(g.Button,{"data-has-success":!i,size:"medium",title:String(p).length&&i||a?"Remover":"Aplicar",onClick:()=>d(),disabled:c,children:String(p).length&&i||a?n.jsx(g.Icon,{name:"close",size:"small"}):`${r.messages.promo_code_button}`}),supportText:u==="cep"&&f==="success"?n.jsx(g.TextField.SupportText,{text:"Mais informações de frete na etapa a seguir",feedback:"success",title:"support"}):null})})};du.displayName="MiniCart.Field";const fu=({children:e,ICONS:t,MINICART_CONFIG:r,NAME_SPLIT_SYMBOL:o,PLP_NOT_RESULT:s,TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a})=>{const{cartStore:{items:c,messages:l}}=we();return n.jsxs(g.Modal.Body,{className:le["mc--body"],children:[e,n.jsx("div",{className:le["mc--body--products"],children:Array.isArray(c)&&c.length?c.map((u,p)=>{const h=l.find(d=>{var f;return d.code==="withoutStock"&&((f=d.fields)==null?void 0:f.ean)===u.ean})!==void 0;return n.jsx(ke.Card,{available:!u.availability.includes("outStock")||!h,index:p,product:u,ICONS:t,MINICART_CONFIG:r,NAME_SPLIT_SYMBOL:o,TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a},`${u.id}-${u.itemOffered.sku}-${p}`)}):n.jsx(ke.Feedback,{ICONS:t,MINICART_CONFIG:r,PLP_NOT_RESULT:s})})]})};fu.displayName="MiniCart.Body";const pu=({children:e,storeConfig:t,MINICART_CONFIG:r})=>{const{cartStore:o}=we();if(o.items.length===0)return null;const s=()=>{var a;const i=new URLSearchParams({orderFormId:o.id,...((a=o.marketingData)==null?void 0:a.utmCampaign)&&{utm_campaign:o.marketingData.utmCampaign}});window.location.href=`${t.checkoutUrl}?${i.toString()}#/cart`};return n.jsxs(g.Modal.Footer,{className:le["mc--footer"],children:[e,n.jsx("div",{className:le["mc--footer--actions"],children:n.jsx(g.Button,{variant:"primary",size:"large","data-close":!0,className:le["mc--footer--actions-button"],onClick:s,children:r.messages.checkout_button})})]})};pu.displayName="MiniCart.Modal.Footer";const mu=({children:e,className:t,ICONS:r,MINICART_CONFIG:o})=>n.jsxs(g.Accordion.Wrapper,{className:le["mc--discount"],children:[n.jsx(g.Accordion.Header,{id:"frete",title:"Frete",closeIndicator:n.jsx(g.Icon,{name:r.arrow_up,size:"medium"}),openIndicator:n.jsx(g.Icon,{name:r.arrow_down,size:"medium"}),className:g.helpers.classNameConcat(le["mc--discount--header"],t),startOpen:o.promotion_input_starts_open,children:n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{children:[n.jsxs("h3",{className:"typography-style-body-sm",children:[o.messages.promo_code_title," "]}),n.jsx("p",{className:"typography-style-body-xs",children:o.messages.promo_code_subtitle})]})})}),n.jsx(g.Accordion.Body,{className:le["mc--discount--body"],children:e}),n.jsx(g.Utils.Divider,{direction:"horizontal",size:"small",style:{height:16}})]});mu.displayName="MiniCart.Discount";const hu=({discount:e,shipping:t,total:r})=>{var c;const{tags:o}=jt(),s=r-Math.abs(e??0)+(t??0),i=t===0?"Frete Grátis":ie.formatPriceToCurrency((t??0)/100),a=[{title:"Subtotal",value:ie.formatPriceToCurrency(r/100)},{title:"Frete",value:t===void 0?"A calcular":i},{title:"Desconto",value:ie.formatPriceToCurrency((e??0)/100)},{message:((c=o==null?void 0:o.flagCart)==null?void 0:c.flagTotal)??"",title:"Total",value:`1x de ${ie.formatPriceToCurrency(s/100)}`}];return n.jsx("div",{className:le["mc--footer--total"],children:Array.isArray(a)&&a.map((l,u)=>n.jsxs("div",{className:le["mc--footer--total--info"],"data-discount":l.title==="Desconto",children:[n.jsx("p",{children:l.title}),n.jsxs("div",{className:le["mc--footer--total--info--content"],children:[l.message&&n.jsx(g.Tag,{variant:"primary",title:l.message,children:l.message}),n.jsx(g.ProductInfo.Price,{className:le["mc--footer--total--info"],label:l.title,value:l.value})]})]},u))})};hu.displayName="MiniCart.Modal.Footer.Resume.Items";const gu=({totalizers:e})=>{var s,i,a;const t=((s=e.find(c=>c.id==="Items"))==null?void 0:s.value)??0,r=(i=e.find(c=>c.id==="Discounts"))==null?void 0:i.value,o=(a=e.find(c=>c.id==="Shipping"))==null?void 0:a.value;return n.jsx(hu,{discount:r??0,total:t,shipping:o})};gu.displayName="MiniCart.Modal.Footer.Totals";const yu=({ICONS:e,MINICART_CONFIG:t})=>{const{isMobile:r}=be(),{cartStore:{items:o}}=we(),s=o.reduce((i,a)=>i+(a.quantity??0),0);return n.jsx(g.Modal.Header,{navigation:"top",className:le["mc--header"],children:n.jsxs(g.Modal.Controls,{navigation:"top",isMobile:!!r,children:[n.jsx(g.Modal.Title,{navigation:"top",title:t.messages.title}),n.jsx("span",{className:le["mc--header--subtitle"],children:s!==1?`[${s}] Produtos`:`[${s}] Produto`}),n.jsx(g.Button,{"data-close":!0,iconNameStart:e.close,size:"small",variant:"tertiary"})]})})};yu.displayName="MiniCart.Modal.Header";const _u=({ICONS:e,MINICART_CONFIG:t})=>{const{cartStore:{shippingData:r},shipping:o,removeCEP:s}=we(),{sendDataLayerEvent:i}=ge(),[a,c]=x.useState(!1),[l,u]=x.useState(!1),p=x.useCallback(()=>{var b;return((b=r==null?void 0:r.address)==null?void 0:b.postalCode)??""},[r]),[h,d]=x.useState(!!p()),f=()=>{d(!1),c(!1)},m=b=>{var j;if(typeof b=="object"&&(b!=null&&b.logisticsInfo))return(j=b.logisticsInfo)==null?void 0:j.reduce((v,S)=>{var O;const E=(O=S==null?void 0:S.slas)==null?void 0:O.find(w=>(w==null?void 0:w.id)===(S==null?void 0:S.selectedSla));if(!E)return v;const R=parseInt(String((E==null?void 0:E.shippingEstimate)??"").replace("bd","")),C=Number((((E==null?void 0:E.price)??0)/100).toFixed(2));if(v.shipping_tier===void 0)return v.shipping_tier=S==null?void 0:S.selectedSla,v.delivery_time=R.toString(),v.shipping=C,v.flag_retirada=(S==null?void 0:S.selectedDeliveryChannel)==="delivery"?"false":"true",v;const A=parseInt(v.delivery_time??"0");return R>A&&(v.delivery_time=R.toString()),v.shipping=(v.shipping??0)+C,v},{shipping_tier:void 0,delivery_time:void 0,flag_retirada:void 0,shipping:void 0,currency:"BRL"})},_=async b=>{const j=b.replace(/\D/g,"");if(j.length!==8)return!1;try{return!(await Qe.get(`https://viacep.com.br/ws/${j}/json/`)).data.erro}catch{return!1}},y=async b=>{if(u(!0),!!p()||!(b!=null&&b.trim())){await s(),f(),u(!1);return}if(!await _(b)){c(!0),d(!1),u(!1);return}try{const E=await o(b);if(c(!1),E){d(!0);const R=m(E);R&&i({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:R}})}}catch{c(!0)}finally{u(!1)}};return n.jsx(ke.Field,{hasSuccess:h,hasError:a,isLoading:l,onHandler:y,title:`${t.messages.shipping_calculation_placeholder}`,type:"cep",value:p(),ICONS:e,MINICART_CONFIG:t})};_u.displayName="MiniCart.Shipping";const vu=()=>{var r;const{tags:e}=jt(),t=(r=e==null?void 0:e.flagCart)==null?void 0:r.flagHeader;return t!=null&&t.value?n.jsx(g.Tag,{variant:"tertiary",title:t==null?void 0:t.value,size:"small",adornment:{start:t!=null&&t.enableIcon&&(t!=null&&t.icon)?n.jsx(g.Icon,{name:t==null?void 0:t.icon,style:{color:t==null?void 0:t.iconColor}}):null},style:{background:t==null?void 0:t.tagColor,color:t==null?void 0:t.textColor,width:"100%"},children:t==null?void 0:t.value}):null};vu.displayName="MiniCart.TagMessage";const ke={Body:fu,Card:iu,Cashback:au,CouponSeller:cu,Discount:mu,Field:du,Feedback:lu,Shipping:_u,Footer:pu,Header:yu,TagMessage:vu,Totals:gu},$m=({ICONS:e,MINICART_CONFIG:t,NAME_SPLIT_SYMBOL:r,PLP_NOT_RESULT:o,TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:i,Z_INDEX_WAR:a,storeConfig:c,minicartStyleModifiers:l})=>{const{isOpen:u,setIsOpen:p,cartStore:h}=we(),{isMobile:d}=be();return n.jsxs(g.Modal.Root,{className:g.helpers.classNameConcat(le["minicart--modal-modifier"],l),isMobile:!0,isOpen:u,setIsOpen:p,style:{zIndex:a.modal},variant:d?"sideBottom":"sideRight",children:[n.jsx(ke.Header,{ICONS:e,MINICART_CONFIG:t}),n.jsx(ke.Body,{ICONS:e,MINICART_CONFIG:t,NAME_SPLIT_SYMBOL:r,PLP_NOT_RESULT:o,TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:i,children:n.jsx(ke.TagMessage,{})}),n.jsxs(ke.Footer,{MINICART_CONFIG:t,storeConfig:c,children:[n.jsxs(ke.Discount,{ICONS:e,MINICART_CONFIG:t,children:[n.jsx(ke.CouponSeller,{type:"seller",ICONS:e,MINICART_CONFIG:t}),n.jsx(ke.CouponSeller,{type:"coupon",ICONS:e,MINICART_CONFIG:t}),n.jsx(ke.Shipping,{ICONS:e,MINICART_CONFIG:t})]}),n.jsx(ke.Totals,{totalizers:h.totalizers})]}),n.jsx(Zl,{ICONS:e})]})},bu=({tipBar:e,minicartStyleModifiers:t})=>{const{structureRef:r,rootRef:o,CONSTANTS:s}=je(),{header:{HEADER_CONFIGS:i,Z_INDEX_WAR:a},minicart:c}=s;return n.jsx(g.Header.Structure,{innerRef:r,adornment:{start:e},style:{position:"sticky",top:0,zIndex:a.header},className:zo["header-animation"],children:n.jsxs(g.Header.Root,{innerRef:o,style:{zIndex:a.header},variant:i.default_variant,interactiveVariant:i.interactive_variant,children:[n.jsx("div",{className:ie.responsive["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:a.header_mobile},children:n.jsx(Bl,{})}),n.jsx("div",{className:ie.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:a.header_desktop},children:n.jsx(Rl,{})}),n.jsx(Tm,{children:n.jsx($m,{...c,minicartStyleModifiers:t})}),n.jsx($o,{title:"Produto adicionado à sua sacola!",CONSTANTS:s.addToCart}),n.jsx(Ho,{})]})})};bu.displayName="Header";const Bm="_shippingFreight_6z8rf_6",zm="_shippingFreight__postalCodeGrid_6z8rf_10",Fm="_shippingFreight__grid_6z8rf_14",qm="_shippingFreight__grid__title_6z8rf_18",Hm="_shippingFreight__grid__remember_6z8rf_29",Um="_postalCodeContainer_6z8rf_44",Wm="_deliveryStatusBar__tag_6z8rf_49",Vm="_deliveryStatusBarError__tag_6z8rf_66",Gm="_deliveryInfo_6z8rf_74",Km="_deliveryInfo__content_6z8rf_78",Xm="_deliveryInfo__text_6z8rf_84",Ym="_deliveryInfo__title_6z8rf_89",Qm="_deliveryInfo__subtitle_6z8rf_99",Zm="_deliveryInfo__tooltipIcon_6z8rf_109",Jm="_deliveryInfo__tooltip_6z8rf_109",eh="_freightGrid_6z8rf_148",th="_freightContainer_6z8rf_155",rh="_freightOption__content_6z8rf_160",nh="_freightOption__value_6z8rf_166",oh="_freightOption__title_6z8rf_177",sh="_freightOption__title_item_6z8rf_181",ih="_freightOption__paragraph_6z8rf_192",me={shippingFreight:Bm,shippingFreight__postalCodeGrid:zm,shippingFreight__grid:Fm,shippingFreight__grid__title:qm,shippingFreight__grid__remember:Hm,postalCodeContainer:Um,deliveryStatusBar__tag:Wm,deliveryStatusBarError__tag:Vm,deliveryInfo:Gm,deliveryInfo__content:Km,deliveryInfo__text:Xm,deliveryInfo__title:Ym,deliveryInfo__subtitle:Qm,deliveryInfo__tooltipIcon:Zm,deliveryInfo__tooltip:Jm,freightGrid:eh,freightContainer:th,freightOption__content:rh,freightOption__value:nh,freightOption__title:oh,freightOption__title_item:sh,freightOption__paragraph:ih,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},ah=({icon:e,title:t,subtitle:r,packageCount:o,packageUnit:s="",labelDescription:i,freightConfig:a,toolTipZIndex:c})=>{const[l,u]=x.useState(!1),p=x.useRef(null),h=()=>u(d=>!d);return n.jsxs("div",{className:me.deliveryInfo,ref:p,children:[n.jsx(g.Tooltip.Root,{arrow:"bottom",component:n.jsx("div",{children:n.jsx("p",{children:a.messages.select_size_tag})}),id:"freight--tooltip",className:me["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:p.current}),n.jsxs("div",{className:me.deliveryInfo__content,children:[n.jsx("div",{className:me.deliveryInfo__icon,children:n.jsx(g.Icon,{name:e,size:"medium"})}),n.jsxs("div",{className:me.deliveryInfo__text,children:[n.jsxs("span",{className:me.deliveryInfo__title,children:[t," ",o," ",s]}),r&&n.jsx("span",{className:me.deliveryInfo__subtitle,children:r})]}),i&&n.jsxs("div",{className:me.deliveryInfo__tooltipIcon,onMouseEnter:h,onMouseLeave:h,"aria-label":"Mostrar descrição",children:[n.jsx("span",{children:n.jsx(g.Icon,{name:a.icons.feedback_help,size:"small"})}),l&&n.jsx("div",{className:me.deliveryInfo__tooltip,children:i})]})]})]})},ch=({value:e,title:t,paragraph:r})=>n.jsx("div",{className:me.freightOption,children:n.jsxs("div",{className:me.freightOption__content,children:[n.jsx("span",{className:me.freightOption__value,children:e}),n.jsx("span",{className:me.freightOption__title,children:n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{className:me.footer__item,children:[n.jsx("span",{className:me.freightOption__title_item,children:t}),r&&n.jsx("span",{className:me.freightOption__paragraph,children:r})]})})})]})}),lh=({children:e})=>n.jsx("div",{className:me.freightContainer,children:e}),uh=({children:e})=>n.jsx("div",{className:me.freightGrid,children:e}),dh=({children:e})=>n.jsx("div",{className:me.postalCodeContainer,children:e}),Us=({message:e,seller:t="",size:r="small",setError:o})=>n.jsx("div",{className:o?me.deliveryStatusBarError:me.deliveryStatusBar,children:n.jsxs(g.Tag,{title:e,className:o?me.deliveryStatusBarError__tag:me.deliveryStatusBar__tag,size:r,children:[e," ",!o&&t]})}),fh=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},ph=e=>{var r,o,s;const t=[];return(s=(o=(r=e==null?void 0:e.logisticsInfo)==null?void 0:r[0])==null?void 0:o.slas)==null||s.forEach(i=>{t.push({id:i.id,name:i.name,price:i.price,shippingEstimate:i.shippingEstimate})}),t},mh=({component:e,parent:t,top:r,left:o,target:s,contentRef:i,freightConfig:a,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=be();return n.jsx(n.Fragment,{children:u?n.jsx(g.Tooltip.Root,{arrow:"bottom",component:n.jsxs("div",{...l,ref:i,children:[e,n.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:me["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):n.jsx(g.Tooltip.Root,{arrow:"bottom",component:n.jsxs("div",{...l,ref:i,children:[e,n.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:me["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},hh=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:o,quantity:s,setError:i,setIsButtonClicked:a,component:c,freightConfig:l,toolTipZIndex:u})=>{var N,I,B,T;const p=ut(),h=ut(H=>H.shipping),[d,f]=x.useState(),[m,_]=x.useState(!1),[y,b]=x.useState(!1),[j,v]=x.useState(!1),S=(I=(N=p.shippingData)==null?void 0:N.address)==null?void 0:I.postalCode,E=!(d!=null&&d.length)&&S?S:d,R=x.useRef(null),C=async H=>{const q=H.target.value.replace(/\D/g,"").slice(0,8);q.length>5?f(q.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):f(q)},A=async H=>{const U=H.target.value.replace(/\D/g,"");try{if((await Qe.get(`https://viacep.com.br/ws/${U}/json/`)).data.erro){i&&i(l.messages.cep_not_found),a(!1),b(!0);return}i&&i(""),b(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},O=async()=>{_(!0);try{const H=await Qe.post("/api/checkout/simulation",{items:[{id:o,quantity:s,seller:t}],country:"BRA",postalCode:E});e(ph(H.data))}catch(H){console.error("Erro ao atualizar o documento:",H)}finally{_(!1),h(E,"BRA")}},w=async()=>{if(!o){v(!0),setTimeout(()=>v(!1),1500);return}await A({target:{value:E}}),m||(O(),a(!0))};return n.jsxs("div",{ref:R,style:{position:"relative"},children:[!o&&j?n.jsx(mh,{component:c,isOpen:j,parent:R.current,toolTipZIndex:u,freightConfig:l}):n.jsx(n.Fragment,{}),n.jsx("div",{style:{position:"relative"},children:n.jsx(g.TextField.Structure,{title:"structure",style:{width:"100%"},input:n.jsx(g.TextField.Input,{defaultValue:(T=(B=p.shippingData)==null?void 0:B.address)==null?void 0:T.postalCode,label:l.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>o?null:v(!0),onMouseOut:()=>o?null:v(!1),mode:"simple",onChange:C,onKeyDown:H=>{H.key==="Enter"&&w()},className:me["input-modifier"],feedback:y?"error":"none"}),right:n.jsx(g.Button,{onClick:w,size:r,title:"button",children:m?n.jsx(g.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},gh=({children:e,freightConfig:t})=>n.jsxs("div",{className:me.shippingFreight,children:[n.jsxs("div",{className:me.shippingFreight__grid,children:[n.jsx("span",{className:me.shippingFreight__grid__title,children:t.messages.title}),n.jsx("span",{className:me.shippingFreight__grid__remember,children:n.jsx(Ue,{href:"https://buscacepinter.correios.com.br/app/endereco/index.php",passHref:!0,target:"_blank",rel:"noopener noreferrer",size:"x-small",disablePadding:!1,title:t.messages.remember_cep,children:t.messages.remember_cep})})]}),n.jsx("div",{className:me.shippingFreight__postalCodeGrid,children:e})]}),yh=({children:e})=>n.jsx("div",{className:me.freightContainer,children:e}),_h=({className:e,sellerId:t,skuId:r,quantity:o,size:s,seller:i,local:a,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=ge(),[u,p]=x.useState(""),[h,d]=x.useState([]),[f,m]=x.useState(""),[_,y]=x.useState(!1),b=v=>p(v),j=v=>{d(v),l({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:v.map(S=>({shipping_tier:S.id,delivery_time:S.shippingEstimate.replace("bd",""),flag_pickup:S.name.toLowerCase().includes("retirada")?"true":"false",shipping:S.price,currency:c.currency||"BRL"}))}}})};return n.jsxs(yh,{className:e,children:[n.jsxs(gh,{freightConfig:c.freightConfig,children:[n.jsx(dh,{children:n.jsx(hh,{onUpdateFreightItems:j,skuId:r,quantity:o,size:s,sellerId:t,local:a,setError:m,setIsButtonClicked:y,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),f?n.jsx(Us,{size:s,message:f,setError:m}):h.length>0&&n.jsx(Us,{size:s,message:c.freightConfig.messages.delivered_by,seller:i})]}),_&&!f?h.length>0&&n.jsxs(lh,{children:[n.jsx(uh,{children:h.filter(({id:v})=>!v.includes("Retirada")).map(v=>n.jsx(ch,{id:v.id,value:ie.freightParsePrice({valueInCents:v.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:v.name,paragraph:`${c.freightConfig.messages.prefix_days}${fh(v.shippingEstimate)}`,radioValue:u,changeValue:b},v.id))}),c.deliveryInfoBoxesAllowed?n.jsx(ah,{icon:c.freightConfig.icons.delivery_truck,packageUnit:c.freightConfig.messages.unit_amout,title:c.freightConfig.messages.delivered_amount_packages,subtitle:"",packageCount:1,labelDescription:"Label",freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex??999}):n.jsx(n.Fragment,{})]}):null]})},et={"pcd-navigation--breadcrumb":"_pcd-navigation--breadcrumb_54b2o_1","pdc-navigation--content":"_pdc-navigation--content_54b2o_28","pdc-navigation--filters":"_pdc-navigation--filters_54b2o_54","pdc-navigation--filters--content":"_pdc-navigation--filters--content_54b2o_67","pdc-navigation--selected":"_pdc-navigation--selected_54b2o_137","pdc-navigation--selected--container":"_pdc-navigation--selected--container_54b2o_150","pdc-navigation":"_pdc-navigation_54b2o_28"},vh=({children:e,href:t,isLast:r,title:o,ICONS:s})=>n.jsx(g.BreadCrumb.Item,{adornment:{end:r&&n.jsx(g.Icon,{name:s.arrow_right})},children:r?n.jsx(Ue,{href:t??"/",size:"medium",title:o,disableUnderline:!0,children:e}):e}),xu=({ICONS:e,...t})=>{var a;const{state:r}=ir(),o=r!=null&&r.term&&r.term.length>0?`/${r.term}`:"",s=decodeURIComponent((a=r==null?void 0:r.base)!=null&&a.length?r.base:o??o).slice(1).split("/"),i=Ec(s);return n.jsx("div",{...t,className:et["pcd-navigation--breadcrumb"],children:n.jsx(g.BreadCrumb.DivWrapper,{children:n.jsx(g.BreadCrumb.List,{children:Array.isArray(i)&&i.map((c,l)=>{var u,p;return x.createElement(vh,{...c,isLast:l!==i.length-1,key:c.href,title:(u=c.name)==null?void 0:u.replace(/-/g," "),ICONS:e},(p=c.name)==null?void 0:p.replace(/-/g," "))})})})})};xu.displayName="PLPNavigation.BreadCrumb";const Cu=({children:e,ICONS:t,PDC_NAVIGATION:r,searchParams:o,...s})=>n.jsxs("div",{...s,className:et["pdc-navigation--content"],children:[n.jsx(pt.Filters,{ICONS:t,PDC_NAVIGATION:r,searchParams:o}),e]});Cu.displayName="PLPNavigation.Content";const bh="_sort_35wro_1",fr={sort:bh,"sort-list-wrapper":"_sort-list-wrapper_35wro_8","sort-list":"_sort-list_35wro_8","sort-button":"_sort-button_35wro_25"},xh=({children:e,sortListOpen:t,btnAdornment:r,style:o,...s})=>n.jsx(g.Button,{...s,adornment:{end:t?r==null?void 0:r.listOpen:r==null?void 0:r.listClosed},size:"small",variant:"tertiary",style:{...o,textDecoration:"none"},className:fr["sort-button"],children:e}),Ch=e=>n.jsx(g.RadioButton.Radio,{...e}),Sh=({children:e,className:t,name:r,...o})=>n.jsx(g.RadioButton.Group,{...o,name:r||"sort-group",className:g.helpers.classNameConcat(fr["sort-list"],t),children:e}),jh=({children:e,className:t,shadow:r=!0,padding:o="small",height:s="fit-content",...i})=>n.jsx(g.Card,{...i,shadow:r,className:g.helpers.classNameConcat(fr["sort-list-wrapper"],t),padding:o,height:s,children:e}),Su=x.forwardRef(({children:e,className:t,...r},o)=>n.jsx("div",{...r,ref:o,className:g.helpers.classNameConcat(fr.sort,t),children:e}));Su.displayName="SortRoot";const Uo=({handleSelectValue:e,sortListOpen:t,setSortListOpen:r,searchParams:o,CONSTANTS:s,...i})=>{var d;const a=(d=o==null?void 0:o.get("sort"))==null?void 0:d.replace(":","_"),[c,l]=x.useState(a),{sendDataLayerEvent:u}=ge();x.useEffect(()=>{l(a||void 0)},[a]);const{ref:p}=Wl(()=>r(!1)),h=f=>{const m=f.target.value;l(m),typeof e=="function"&&e(m),u({functionKey:"filterEvent",data:{customData:{ordering:yt.options[m]}}}),r(!1)};return n.jsxs(Su,{...i,ref:p,children:[n.jsx(xh,{btnAdornment:{listOpen:n.jsx(g.Icon,{name:s.ICONS.arrow_up,size:"small"}),listClosed:n.jsx(g.Icon,{name:s.ICONS.arrow_down,size:"small"})},sortListOpen:t,onClick:()=>r(!t),children:c?yt.options[c]:yt.placeholder},"sort-button"),t&&n.jsx(jh,{children:n.jsx(Sh,{name:"sort-group",value:c??"",onChange:h,children:Object.keys(yt.options).map(f=>n.jsx(Ch,{label:yt.options[f],value:f},f))})})]})};Uo.displayName="Sort";const ju=x.createContext({}),Eh=({children:e,...t})=>{const[r,o]=x.useState(!1);return n.jsx(ju.Provider,{value:x.useMemo(()=>({...t,openOrderBy:r,setOpenOrderBy:o}),[t,r,o]),children:e})},wh=()=>{const e=x.useContext(ju);if(e===void 0)throw new Error("usePLPNavigationContext must be used within a PDCNavigationProvider");return e},Eu=({ICONS:e,PDC_NAVIGATION:t,searchParams:r})=>{const{openOrderBy:o,onSort:s,setOpenFilters:i,setOpenOrderBy:a}=wh();return n.jsxs("div",{className:et["pdc-navigation--filters"],children:[n.jsx(pt.BreadCrumb,{ICONS:e}),n.jsxs("div",{className:et["pdc-navigation--filters--content"],children:[n.jsx(Uo,{handleSelectValue:c=>s(c??"release_desc"),sortListOpen:o,setSortListOpen:a,CONSTANTS:{ICONS:e},searchParams:r}),n.jsx(g.Button,{adornment:{end:n.jsx(g.Icon,{name:e.arrow_down})},onClick:()=>i(!0),size:"small",variant:"tertiary",children:t.filter_button}),n.jsx(pt.Total,{})]})]})};Eu.displayName="PLPNavigation.Filters";const wu=({children:e,onSort:t,setOpenFilters:r,style:o,PDC_NAVIGATION:s,ICONS:i,searchParams:a,...c})=>{const l=x.useRef(null);return n.jsx(Eh,{onSort:t,setOpenFilters:r,children:n.jsx("div",{...c,className:et["pdc-navigation"],ref:l,style:{...o},children:n.jsx(pt.Content,{ICONS:i,PDC_NAVIGATION:s,searchParams:a,children:e})})})};wu.displayName="Root";const Ru=({callback:e,selected:t,CONSTANTS:r,...o})=>n.jsx("div",{...o,className:et["pdc-navigation--selected"],children:n.jsx("div",{className:et["pdc-navigation--selected--container"],children:Array.isArray(t)?t.map(s=>s.key==="productclusterids"?null:n.jsx(pt.SelectedItem,{callback:e,facet:s,CONSTANTS:r},s.value)):n.jsx(n.Fragment,{})})});Ru.displayName="PLPNavigation.Selected";const Wo=({key:e,PLP_FILTERS:t})=>t.some(r=>r.key===e)?e==="cores-filtraveis":!1,Vo=({value:e,PLP_FILTERS_COLORS:t})=>{var r;return((r=t.find(o=>o.value===e))==null?void 0:r.color)??"#F2F2F2"},Au=({key:e,PLP_FILTERS:t})=>{var r;return(r=t.find(o=>o.key===e))==null?void 0:r.label},Pu=({key:e,PLP_FILTERS:t})=>{var r;return((r=t.find(o=>o.key===e))==null?void 0:r.order)??0},ho=({value:e})=>{const[t,r]=e.split(":").length===2?e.split(":"):[0,0],o=ie.formatPriceToCurrency(Number(r));return`${ie.formatPriceToCurrency(Number(t))} até ${o}`},Rh=({items:e})=>{const t=e.flatMap(s=>[s.range.from,s.range.to]),r=Math.min(...t.map(Math.abs)),o=Math.max(...t.map(Math.abs));return[r,o]},Iu=Object.freeze(Object.defineProperty({__proto__:null,checkedColor:Wo,createTagPrice:ho,getAbsoluteMinMax:Rh,getColor:Vo,getName:Au,getOrder:Pu},Symbol.toStringTag,{value:"Module"})),Be={"filter--empty":"_filter--empty_1mjas_1","filter--item":"_filter--item_1mjas_14","filter--item--price":"_filter--item--price_1mjas_19","filter--item--toggle":"_filter--item--toggle_1mjas_19","filter--item--toggle--container":"_filter--item--toggle--container_1mjas_30","filter--modal--body":"_filter--modal--body_1mjas_79","filter--modal--body--content":"_filter--modal--body--content_1mjas_87","filter--modal--footer":"_filter--modal--footer_1mjas_96","filter--modal":"_filter--modal_1mjas_79","filter--loading":"_filter--loading_1mjas_176","filter--selected":"_filter--selected_1mjas_206","filter--selected--content":"_filter--selected--content_1mjas_210"},Nu=({columns:e=2,CONSTANTS:t,...r})=>{var i;const{filters:o,onToggleFacet:s}=ht();return n.jsxs("div",{...r,className:Be["filter--modal--body--content"],children:[Array.isArray(o.facets)&&o.facets.map(a=>n.jsx(He.Item,{columns:e,facet:a,onToggleFacet:s,CONSTANTS:t},a.key)),!((i=o.facets)!=null&&i.length)&&n.jsx(He.Empty,{PLP_FILTERS_EMPTY:t.PLP_FILTERS_EMPTY})]})};Nu.displayName="Filter.Item.Content";const Tu=({PLP_FILTERS_EMPTY:e})=>{const t=()=>{window.history.back()};return n.jsxs("div",{className:Be["filter--empty"],children:[n.jsxs(g.TextStructure.DivWrapper,{children:[n.jsx("h4",{children:e.title}),n.jsx("p",{children:e.subtitle})]}),n.jsx(g.Button,{onClick:()=>t(),variant:"tertiary",children:e.button})]})};Tu.displayName="Filter.Empty";const Ou=({columns:e,facet:t,onToggleFacet:r,CONSTANTS:o,...s})=>{const i=Pu({key:t.key,PLP_FILTERS:o.PLP_FILTERS}),a=()=>{if(t.__typename==="FacetBoolean"){if(t.key==="cores-filtraveis")return n.jsx(He.Colors,{onToggleFacet:r,values:t.values,PLP_FILTERS:o.PLP_FILTERS,PLP_FILTERS_COLORS:o.PLP_FILTERS_COLORS});if(t.key==="tamanho")return n.jsx(He.Sizes,{onToggleFacet:r,values:t.values,PLP_SIZE_ORDER:o.PLP_SIZE_ORDER});if(t.key==="category-2")return n.jsx(He.Toggle,{columns:e,facetKey:t.key,onToggleFacet:r,values:t.values,ICONS:o.ICONS})}return t.__typename==="FacetRange"?n.jsx(He.Price,{facet:t}):n.jsx("p",{children:"Filter not support!!!"})};return n.jsx("div",{...s,className:Be["filter--item"],style:{order:i},children:n.jsxs(g.Accordion.Wrapper,{style:{width:"100%"},children:[n.jsx(g.Accordion.Header,{id:t.key,closeIndicator:n.jsx(g.Icon,{name:o.ICONS.arrow_up}),openIndicator:n.jsx(g.Icon,{name:o.ICONS.arrow_down}),children:n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("h4",{className:"typography-style-body-sm",children:Au({key:t.key,PLP_FILTERS:o.PLP_FILTERS})})})})}),n.jsx(g.Accordion.Body,{children:a()})]})})};Ou.displayName="Filter.Item";const Go={"product-variation-list--list":"_product-variation-list--list_e0he8_1","product-variation-list--title":"_product-variation-list--title_e0he8_10","product-variation-list":"_product-variation-list_e0he8_1"},ku=({children:e,...t})=>n.jsx("div",{...t,className:Go["product-variation-list--list"],children:e});ku.displayName="ProductVariationList.List";const Mu=({fill:e="#1352C7",src:t="",type:r="size",text:o,...s})=>{const{nextimage:i}=Re();return r==="size"?n.jsxs(g.ToggleSize.Wrapper,{...s,size:"large",variation:"ghost",children:[n.jsx(g.ToggleSize.DisabledAdornment,{title:"disabled-adornment-size"}),n.jsx(g.ToggleSize.Text,{children:o})]}):n.jsxs(g.ToggleStyle.Wrapper,{...s,size:"small",title:"wrapper-texture",children:[n.jsx(g.ToggleStyle.DisabledAdornment,{title:"disabled-adornment-texture"}),r==="color"?n.jsx(g.ToggleStyle.Color,{background:e,title:"color"}):n.jsx(g.ToggleStyle.Texture,{title:"texture",children:n.jsx(i,{alt:o??"image",height:40,src:t,width:40})})]})};Mu.displayName="ProductVariationList.Option";const Lu=({children:e,...t})=>n.jsx("div",{className:Go["product-variation-list"],...t,children:e});Lu.displayName="ProductVariationList.Root";const Du=({children:e,title:t,...r})=>n.jsxs("div",{...r,className:Go["product-variation-list--title"],children:[t?n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.SectionWrapper,{children:n.jsx("p",{children:t})})}):n.jsx(n.Fragment,{}),e]});Du.displayName="ProductVariationList.Title";const Je={List:ku,Option:Mu,Title:Du,Root:Lu},$u=({onToggleFacet:e,values:t,PLP_FILTERS:r,PLP_FILTERS_COLORS:o,...s})=>n.jsx(Je.Root,{...s,children:n.jsx(Je.List,{children:Array.isArray(t)&&t.map(({key:i,selected:a,value:c})=>n.jsx(Je.Option,{active:a,"data-color":Wo({key:i,PLP_FILTERS:r}),fill:Vo({value:c,PLP_FILTERS_COLORS:o}),onClick:()=>e({key:i,value:c}),type:"color"},`${i}-${c}`))})});$u.displayName="Filter.Item.Color";const Bu=({facet:e,...t})=>{var u,p;const{filters:{selected:r},price:o,onToggleFacet:s}=ht(),[i,a]=(o==null?void 0:o.split(":").map(Number))??[0,100],[c,l]=((p=(u=r==null?void 0:r.find(({key:h})=>h==="price"))==null?void 0:u.value)==null?void 0:p.split(":").map(Number))??[i,a];return n.jsx("div",{...t,className:Be["filter--item--price"],children:n.jsxs(g.Slider.SliderDual,{format:"price",initialValue:[c<i?i:c,l>a?a:l],min:i,max:a,type:"dual",step:1,onFinish:h=>{var d,f;h&&s({key:"price",value:`${(d=h.range)==null?void 0:d.min}:${(f=h.range)==null?void 0:f.max}`})},children:[n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("p",{"data-min-value":!0})})}),n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("p",{"data-max-value":!0})})})]})})};Bu.displayName="Filter.Item.Price";const zu=({onToggleFacet:e,values:t,PLP_SIZE_ORDER:r,...o})=>{const s=[...t].sort((i,a)=>{const c=r.indexOf(i.name),l=r.indexOf(a.name);return c-l});return n.jsx(Je.Root,{...o,children:n.jsx(Je.List,{children:Array.isArray(s)&&s.map(({key:i,selected:a,value:c})=>n.jsx(Je.Option,{active:a,text:c,type:"size",onClick:()=>e({key:i,value:c})},c))})})};zu.displayName="Filter.Item.Sizes";const Fu=({columns:e,facetKey:t,onToggleFacet:r,values:o,ICONS:s,...i})=>n.jsx("div",{...i,className:Be["filter--item--toggle"],children:n.jsx("div",{className:Be["filter--item--toggle--container"],style:{gridTemplateColumns:`repeat(${e}, 1fr)`},children:Array.isArray(o)&&o.map(a=>n.jsx(g.Checkbox,{label:(a==null?void 0:a.name)??"",adornment:n.jsx(g.Icon,{name:s.check}),checked:a.selected,onChange:()=>r(a)},a.value))})});Fu.displayName="Filter.Item.Toggle";const qu=({...e})=>{const{isLoading:t}=ht();return n.jsx("div",{className:Be["filter--loading"],"data-active":t,...e,children:n.jsx(g.Spinner,{indicatorColor:"#000",background:"#222"})})};qu.displayName="Filter.Loading";const Hu=({children:e,className:t,isMobile:r=!1,CONSTANTS:{PLP_FILTERS_TITLE:o,ICONS:s}})=>{var p;const{deleteAllFacets:i,filters:a,isOpen:c,target:l,setIsOpen:u}=ht();return n.jsxs(g.Modal.Root,{className:g.helpers.classNameConcat(Be["filter--modal"],t),isMobile:r??!1,isOpen:c,parent:l,setIsOpen:u,variant:r?"sideBottom":"sideRight",style:{zIndex:99},children:[n.jsxs(g.Modal.Header,{navigation:"top",children:[n.jsx(g.Modal.Controls,{navigation:"top",isMobile:r,children:n.jsx(g.Button,{"data-close":!0,iconNameStart:s.close,size:"small",variant:"tertiary",style:{marginLeft:"auto"}})}),n.jsx(g.Modal.Title,{navigation:"top",title:o})]}),n.jsxs(g.Modal.Body,{style:{width:500},children:[n.jsx("div",{className:Be["filter--modal--body"],children:e}),n.jsx(He.Loading,{})]}),n.jsx(g.Modal.Footer,{children:n.jsxs("div",{className:Be["filter--modal--footer"],children:[n.jsx(g.Button,{"data-close":!0,size:"large",variant:"primary",children:(p=a.facets)!=null&&p.length?"ver resultados":"fechar"}),n.jsx(g.Button,{"data-close":!0,onClick:()=>i(),variant:"tertiary",children:"limpar filtros"})]})})]})};Hu.displayName="Filter.Modal";const Uu=({children:e,className:t,isMobile:r,CONSTANTS:o,...s})=>n.jsx(Tc,{...s,PLP_FILTERS:o.PLP_FILTERS,children:n.jsx(He.Modal,{className:t,isMobile:r,CONSTANTS:o,children:e})});Uu.displayName="Filter.Root";const Wu=({ICONS:e,PLP_FILTERS_COLORS:t,PLP_FILTERS:r})=>{const{filters:o,onToggleFacet:s}=ht();return n.jsx("div",{className:Be["filter--selected"],children:n.jsx("div",{className:Be["filter--selected--content"],children:Array.isArray(o.selected)&&o.selected.map(({key:i,value:a})=>i==="productclusterids"?null:n.jsx(g.Tag,{title:i==="price"?ho({value:a}):a,adornment:{end:n.jsx(g.Icon,{name:e.close,size:"x-small"})},colorSquare:Vo({value:a,PLP_FILTERS_COLORS:t}),onClick:()=>s({key:i,value:a}),squareShow:Wo({key:i,PLP_FILTERS:r}),size:"medium",variant:"primary",children:i==="price"?ho({value:a}):a},a))})})};Wu.displayName="Filter.Selected";const He={Colors:$u,Content:Nu,Empty:Tu,Modal:Hu,Item:Ou,Root:Uu,Loading:qu,Selected:Wu,Price:Bu,Sizes:zu,Toggle:Fu},{checkedColor:Ah,createTagPrice:Ws,getColor:Ph}=Iu,Vu=({callback:e,facet:t,CONSTANTS:r})=>n.jsx(g.Tag,{title:(t==null?void 0:t.key)==="price"?Ws({value:t.value}):t.value.toUpperCase(),adornment:{end:n.jsx(g.Icon,{name:r.ICONS.close,size:"x-small"})},colorSquare:Ph({value:t.value,PLP_FILTERS_COLORS:r.PLP_FILTERS_COLORS}),onClick:()=>{typeof e=="function"&&e(t,!0)},squareShow:Ah({key:t.key,PLP_FILTERS:r.PLP_FILTERS}),size:"medium",variant:"primary",children:(t==null?void 0:t.key)==="price"?Ws({value:t.value}):t.value.toUpperCase()});Vu.displayName="PLPNavigation.Selected.Item";const Gu=()=>n.jsx(g.TextStructure.Root,{children:n.jsx("p",{id:"pdc-navigation--total"})});Gu.displayName="PLPNavigation.Total";const pt={BreadCrumb:xu,Content:Cu,Filters:Eu,Root:wu,Selected:Ru,SelectedItem:Vu,Total:Gu},Ko={"product-list--banner":"_product-list--banner_sfibj_1","product-list--card":"_product-list--card_sfibj_30","product-list":"_product-list_sfibj_1"},Ku=({className:e,children:t,columns:r=1,isMobile:o=!1,gap:s=8,position_grid:i,totalColumns:a=4,PRODUCT_CARD_IMAGE_ASPECT_RATIO:c,...l})=>{const u=x.useMemo(()=>r%a===0?"initial":o||r<2?c:c.split("/").reverse().join("/"),[r,a,o]);return n.jsx("div",{...l,className:g.helpers.classNameConcat(Ko["product-list--banner"],e),style:{aspectRatio:u,maxWidth:`${r/a*100}%`,order:i,padding:s/2},children:t})};Ku.displayName="ProductList.Banner";const Xu=({isKit:e,parent:t,productId:r,setNotify:o,CONSTANTS:s})=>{const{router:i}=Re(),a=x.useRef(!1),c=x.useRef(null),[l,u]=x.useState([]),p=m=>i.push(m??""),h=async m=>{try{const _=await fetch("/api/catalog/product/similars",{method:"POST",body:JSON.stringify({productId:m,filterTexture:s.TEXTURE_IMAGE}),priority:"low"});if(!_.ok)throw new Error("Erro ao buscar similares.");const y=await _.json();u(y)}catch(_){console.error(_)}},d=x.useCallback(m=>{!r||!m||(typeof h=="function"&&h(r),a.current=!0)},[r]),f=x.useCallback((m,_)=>{if(!m.isIntersecting){s.PLP_INFINITE_SCROLL&&c.current&&(clearTimeout(c.current),c.current=null);return}if(m.intersectionRatio>=_.threshold&&!a.current){if(s.PLP_INFINITE_SCROLL){c.current=setTimeout(()=>{d(!0)},s.PLP_PRODUCT_SIMILAR_DELAY);return}d(!0)}},[d]);return x.useEffect(()=>{if(e||!t.current)return;const m={root:null,threshold:.1},_=new IntersectionObserver(([y])=>{f(y,m)},m);return _.observe(t.current),()=>{c.current&&clearTimeout(c.current),_.disconnect()}},[f,t,e]),n.jsx(ve.Actions,{...l,callback:p,isKit:e,children:!e&&n.jsx(ve.SizeSelector,{setNotify:o})})};Xu.displayName="ProductList.Card.Actions";const Yu=({className:e,children:t,gap:r=32,item:o,isMobile:s,order:i,tag:a,hasMaxWidth:c=!0,index:l,setSkuSelected:u,showVideo:p,CONSTANTS:h,WishListToggle:d,...f})=>{const m=x.useRef(null),{availability:{status:_}}=o,y=x.useCallback((j,v)=>{var S;typeof u=="function"&&u((S=j.isVariantOf)==null?void 0:S.hasVariant,v)},[u]),b=o.name.substring(0,4).toLowerCase()==="kit ";return n.jsxs("div",{...f,className:g.helpers.classNameConcat(Ko["product-list--card"],e),"data-mobile":s,"data-order":i,ref:m,style:{...c&&{maxWidth:s?"50%":"25%"},order:i,padding:r/2},children:[n.jsxs(ve.Root,{item:o,isMobile:s,index:l,size:s?"small":"medium",order:i,outStock:!_,CONSTANTS:h,WishListToggle:d,children:[n.jsx(ve.Header,{product:o,tag:a==null?void 0:a.commercial}),n.jsx(ve.Media,{showVideo:p,hasPriority:!0}),n.jsxs(ve.Wrapper,{type:"body",children:[n.jsx(ve.Title,{tag:a==null?void 0:a.institucional}),n.jsx(Xu,{productId:o.isVariantOf.productGroupID,parent:m,setNotify:y,isKit:b,CONSTANTS:h}),!b&&n.jsx(ve.OutStock,{callback:y})]}),n.jsx(ve.Wrapper,{type:"footer",children:_&&n.jsx(ve.BuyButton,{isKit:b})})]}),t]})};Yu.displayName="ProductList.Card";const Qu=({children:e,className:t,...r})=>n.jsx("div",{...r,className:g.helpers.classNameConcat(Ko["product-list"],t),children:e});Qu.displayName="ProductList.Grid";const Ih={Banner:Ku,Card:Yu,Root:Qu,helpers:np},Nh="_footer__bottom_1o9af_2",Th="_footer__wrapper_1o9af_10",Oh="_footer__main_1o9af_39",kh="_footer__legalInformation_1o9af_55",Mh="_footer__column_1o9af_77",Lh="_footer__columnContent_1o9af_87",Dh="_footer__item_1o9af_91",$h="_footer__itemLink_1o9af_107",Bh="_footer__columnTitle_1o9af_122",zh="_footer__columnTitleIcon_1o9af_134",Fh="_footer__iconList_1o9af_147",qh="_footer__itemSmallText_1o9af_157",Hh="_payment_1o9af_168",Uh="_footer__iconContainer_1o9af_173",Wh="_footer__iconListSubHeader_1o9af_178",Vh="_accordionWrapper_1o9af_200",Gh="_accordionHeader_1o9af_204",Kh="_accordionTextWrapper_1o9af_208",he={footer__bottom:Nh,footer__wrapper:Th,footer__main:Oh,footer__legalInformation:kh,footer__column:Mh,footer__columnContent:Lh,footer__item:Dh,footer__itemLink:$h,footer__columnTitle:Bh,footer__columnTitleIcon:zh,footer__iconList:Fh,footer__itemSmallText:qh,payment:Hh,footer__iconContainer:Uh,footer__iconListSubHeader:Wh,accordionWrapper:Vh,accordionHeader:Gh,accordionTextWrapper:Kh,"footer--stamps":"_footer--stamps_1o9af_247","footer--stamps--company":"_footer--stamps--company_1o9af_254","support-container":"_support-container_1o9af_258","support-section":"_support-section_1o9af_277","support-text":"_support-text_1o9af_319","support-items":"_support-items_1o9af_329","support-item":"_support-item_1o9af_329"};var Zu={},Xo={},It={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"warnOnce",{enumerable:!0,get:function(){return t}});let t=r=>{};if(process.env.NODE_ENV!=="production"){const r=new Set;t=o=>{r.has(o)||console.warn(o),r.add(o)}}})(It);var Ju={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return t}});function t(r){let{widthInt:o,heightInt:s,blurWidth:i,blurHeight:a,blurDataURL:c,objectFit:l}=r;const u=20,p=i?i*40:o,h=a?a*40:s,d=p&&h?"viewBox='0 0 "+p+" "+h+"'":"",f=d?"none":l==="contain"?"xMidYMid":l==="cover"?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+d+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+u+"'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='"+u+"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+f+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(Ju);var pr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,i){for(var a in i)Object.defineProperty(s,a,{enumerable:!0,get:i[a]})}t(e,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return o}});const r=["default","imgix","cloudinary","akamai","custom"],o={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}})(pr);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return f}});const t=It,r=Ju,o=pr,s=["lazy","eager",void 0];function i(m){return m.default!==void 0}function a(m){return m.src!==void 0}function c(m){return typeof m=="object"&&(i(m)||a(m))}const l=new Map;let u;function p(m){return typeof m>"u"?m:typeof m=="number"?Number.isFinite(m)?m:NaN:typeof m=="string"&&/^[0-9]+$/.test(m)?parseInt(m,10):NaN}function h(m,_,y){let{deviceSizes:b,allSizes:j}=m;if(y){const S=/(^|\s)(1?\d?\d)vw/g,E=[];for(let R;R=S.exec(y);R)E.push(parseInt(R[2]));if(E.length){const R=Math.min(...E)*.01;return{widths:j.filter(C=>C>=b[0]*R),kind:"w"}}return{widths:j,kind:"w"}}return typeof _!="number"?{widths:b,kind:"w"}:{widths:[...new Set([_,_*2].map(S=>j.find(E=>E>=S)||j[j.length-1]))],kind:"x"}}function d(m){let{config:_,src:y,unoptimized:b,width:j,quality:v,sizes:S,loader:E}=m;if(b)return{src:y,srcSet:void 0,sizes:void 0};const{widths:R,kind:C}=h(_,j,S),A=R.length-1;return{sizes:!S&&C==="w"?"100vw":S,srcSet:R.map((O,w)=>E({config:_,src:y,quality:v,width:O})+" "+(C==="w"?O:w+1)+C).join(", "),src:E({config:_,src:y,quality:v,width:R[A]})}}function f(m,_){let{src:y,sizes:b,unoptimized:j=!1,priority:v=!1,loading:S,className:E,quality:R,width:C,height:A,fill:O=!1,style:w,onLoad:N,onLoadingComplete:I,placeholder:B="empty",blurDataURL:T,fetchPriority:H,layout:U,objectFit:q,objectPosition:G,lazyBoundary:W,lazyRoot:z,...Z}=m;const{imgConf:P,showAltText:k,blurComplete:D,defaultLoader:K}=_;let re,J=P||o.imageConfigDefault;if("allSizes"in J)re=J;else{const V=[...J.deviceSizes,...J.imageSizes].sort((Ae,Y)=>Ae-Y),fe=J.deviceSizes.sort((Ae,Y)=>Ae-Y);re={...J,allSizes:V,deviceSizes:fe}}let L=Z.loader||K;delete Z.loader,delete Z.srcSet;const ee="__next_img_default"in L;if(ee){if(re.loader==="custom")throw new Error('Image with src "'+y+`" is missing "loader" prop.
4
+ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);const ae=P?ne&&typeof ne=="object"&&ne.ref:A,[ue,de,ce]=(0,h.useIntersection)({rootMargin:"200px"}),F=o.default.useCallback(se=>{(M.current!==te||$.current!==Q)&&(ce(),M.current=te,$.current=Q),ue(se),ae&&(typeof ae=="function"?ae(se):typeof ae=="object"&&(ae.current=se))},[te,ae,Q,ce,ue]);o.default.useEffect(()=>{process.env.NODE_ENV==="production"&&re&&(!de||!L||y(re,Q,te,{locale:G},{kind:ee},J))},[te,Q,de,G,L,D==null?void 0:D.locale,re,J,ee]);const _e={ref:F,onClick(se){if(process.env.NODE_ENV!=="production"&&!se)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!P&&typeof W=="function"&&W(se),P&&ne.props&&typeof ne.props.onClick=="function"&&ne.props.onClick(se),re&&(se.defaultPrevented||j(se,re,Q,te,H,U,q,G,J,L))},onMouseEnter(se){!P&&typeof z=="function"&&z(se),P&&ne.props&&typeof ne.props.onMouseEnter=="function"&&ne.props.onMouseEnter(se),re&&((!L||process.env.NODE_ENV==="development")&&J||y(re,Q,te,{locale:G,priority:!0,bypassPrefetchedCheck:!0},{kind:ee},J))},onTouchStart(se){!P&&typeof Z=="function"&&Z(se),P&&ne.props&&typeof ne.props.onTouchStart=="function"&&ne.props.onTouchStart(se),re&&(!L&&J||y(re,Q,te,{locale:G,priority:!0,bypassPrefetchedCheck:!0},{kind:ee},J))}};if((0,c.isAbsoluteUrl)(te))_e.href=te;else if(!P||T||ne.type==="a"&&!("href"in ne.props)){const se=typeof G<"u"?G:D==null?void 0:D.locale,ye=(D==null?void 0:D.isLocaleDomain)&&(0,d.getDomainLocale)(te,se,D==null?void 0:D.locales,D==null?void 0:D.domainLocales);_e.href=ye||(0,f.addBasePath)((0,l.addLocale)(te,se,D==null?void 0:D.defaultLocale))}return P?o.default.cloneElement(ne,_e):o.default.createElement("a",{...k,..._e},O)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(uo,uo.exports);var dm=uo.exports,fm=dm;const Me=ar(fm),ul=({className:e,children:t,hasPriority:r=!1,showVideo:o=!1,...s})=>{const{element:i,index:a,item:{image:c,slug:l,video:u},sendSelectItemEvent:p,order:h,CONSTANTS:d}=Fe(),f=ie.getFirstImages({images:c,label:{first:d.MAIN_IMAGE,second:d.SECOND_IMAGE}});return n.jsxs("div",{...s,className:g.helpers.classNameConcat(Pe["product-card--image"],e),ref:i,style:{aspectRatio:d.PRODUCT_CARD_IMAGE_ASPECT_RATIO},children:[n.jsx(Me,{href:`/${l}/p`,onClick:p,onMouseUp:m=>{m.button===1&&p(),d.PLP_INFINITE_SCROLL&&sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order,String(h))},children:n.jsx("div",{className:Pe["product-card--image--container"],children:Array.isArray(f)&&f.map(({url:m,alternateName:_},y)=>x.createElement(ze.Image,{...d.PRODUCT_IMAGE_DIMENSIONS.product_card,style:d.PRODUCT_IMAGE_DIMENSIONS.product_card,alt:_??"product image",key:y,...r&&{priority:y===0&&a<4},objectFit:"cover",src:m}))})}),d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD&&o&&u&&n.jsx(ve.Video,{url:u,poster:f[0].url}),t]})};ul.displayName="ProductCard.Media.Media";const dl=({className:e,callback:t,children:r,...o})=>{const{isMobile:s,item:i,CONSTANTS:{PRODUCT_CARD_TEXTS:a}}=Fe(),{availability:{status:c}}=i;return c?null:n.jsxs("div",{...o,className:g.helpers.classNameConcat(Pe["product-card--outstock"],e),children:[n.jsx(g.Tag,{size:"small",variant:"secondary",title:a.disabled,children:a.disabled}),n.jsx(g.Button,{className:g.helpers.classNameConcat(e,"buy-button"),size:s?"medium":"large",variant:"quaternary",onClick:()=>{typeof t=="function"&&t(i)},children:a.notify})]})};dl.displayName="ProductCard.OutStock";const fl=({children:e,className:t="",index:r,isMobile:o=!1,item:s,size:i,order:a,outStock:c,shelfTitle:l,CONSTANTS:u,WishListToggle:p,...h})=>n.jsx(Lp,{item:s,isMobile:o,outStock:c,order:a,size:i,index:r,shelfTitle:l,CONSTANTS:u,WishListToggle:p,children:n.jsx("div",{...h,className:g.helpers.classNameConcat(Pe["product-card--wrapper"],t),"data-size":i,children:e})});fl.displayName="ProductCard.Root";const pl=({disabled:e,label:t,size:r,value:o,onClick:s,...i})=>n.jsxs(g.ToggleSize.Wrapper,{...i,disabled:!1,outOfStock:e,size:r,onClick:s,children:[n.jsx(g.ToggleSize.DisabledAdornment,{}),n.jsx(g.ToggleSize.Text,{children:t})]});pl.displayName="ProductCard.SizeSelector.Item";const ml=({active:e=!1,callback:t,selectedSku:r=null,item:o,setNotify:s})=>{const{item:i,isMobile:a,setSelectedSku:c,eventDataRef:l}=Fe();o.productId=i.id;const u=ie.disableSKU(o),p=ie.getSKUName(o,"tamanho");!u&&!l.current.availableSkus.includes(p)&&l.current.availableSkus.push(p);const h=x.useCallback(f=>{const m=r===f?null:f;typeof c=="function"&&c(m),typeof t=="function"&&t(m)},[t,c,r]),d=x.useCallback(()=>{if(u&&typeof s=="function"){s(i,o);return}h(o)},[o,s,h,u,i]);return n.jsx(pl,{active:e,disabled:u,label:p,onClick:()=>d(),size:a?"x-small":"small",value:o})};ml.displayName="ProductCard.SizeSelector.SkuItem";const hl=({callback:e,className:t="",children:r,setNotify:o,...s})=>{const{isMobile:i,item:{isVariantOf:{hasVariant:a}},selectedSku:c}=Fe();return n.jsxs("div",{...s,className:g.helpers.classNameConcat(Pe["product-card--selectors--size"],t),"data-mobile":i,children:[n.jsx("div",{className:Pe["product-card--selectors--size--skus"],children:Array.isArray(a)&&a.map((l,u)=>n.jsx(ml,{active:c===l,callback:e,item:l,selectedSku:c,setNotify:o},`size--${u}--${l.sku}`))}),n.jsx("div",{className:Pe["product-card--selectors--size--button"],children:r})]})};hl.displayName="ProductCard.SizeSelector";const fo=({alt:e="",callback:t,more:r,total:o=4,src:s,url:i,...a})=>n.jsxs(g.ToggleStyle.Wrapper,{...a,onClick:()=>{typeof t=="function"&&t(i)},children:[n.jsx(g.ToggleStyle.DisabledAdornment,{}),n.jsxs(g.ToggleStyle.Texture,{children:[s&&n.jsx(ze.Image,{alt:e??s,src:s,height:34,width:34}),r&&n.jsx(g.TextStructure.DivWrapper,{className:Pe["product-card--selectors--style--more"],children:n.jsxs("p",{children:["+ ",o]})})]})]}),pm=({children:e,callback:t,data:r,total:o=4,size:s,...i})=>{const{index:a}=Fe(),{triggerSelectItemEventRef:c}=ge();return n.jsxs("div",{...i,children:[e,Array.isArray(r)&&r.slice(0,o).map((l,u)=>n.jsx(fo,{callback:p=>{c.current.trigger=!0,c.current.index=a,typeof t=="function"&&t(p)},src:(l==null?void 0:l.textureImage)??"",alt:l==null?void 0:l.textureAlt,url:l==null?void 0:l.slug,size:s},u)),Array.isArray(r)&&(r==null?void 0:r.length)>o&&n.jsx(fo,{size:s,total:r.length-o,more:!0})]})},gl=({callback:e,className:t,data:r,images:o=[],findTexture:s,...i})=>{const{CONSTANTS:a}=Fe(),c=s||a.TEXTURE_IMAGE,l=o==null?void 0:o.find(u=>c.includes(u.alternateName));return n.jsx(pm,{...i,callback:e,className:g.helpers.classNameConcat(Pe["product-card--selectors--style"],t),data:r,size:"x-small",children:l&&n.jsx(fo,{active:!0,size:"x-small",src:l.url})})};gl.displayName="ProductCard.StyleSelector";const yl=({className:e,hasDecimal:t,...r})=>{const{isMobile:o,item:{offers:{lowPrice:s,highPrice:i},installments:{count:a,value:c}},eventDataRef:l}=Fe();l.current.priceInfo={price:s,listPrice:i};const u=ie.formatPriceToCurrency(i,t),p=ie.formatPriceToCurrency(s,t),h=ie.formatPriceToCurrency(c??0),d=o?"horizontal":"stacked";return n.jsx("div",{...r,className:g.helpers.classNameConcat(Pe["product-card--price"],e),"data-mobile":o,children:n.jsx(g.ProductInfo.Root,{size:"small",layout:d,children:n.jsxs(g.ProductInfo.Wrapper,{size:"small",layout:d,children:[n.jsx(g.ProductInfo.ValuesWrapper,{children:p!==u?n.jsxs(n.Fragment,{children:[n.jsx(g.ProductInfo.Price,{label:"originalPrice",value:u,size:"small"}),n.jsx(g.ProductInfo.Price,{label:"discountPrice",value:p,size:"small"})]}):n.jsx(g.ProductInfo.Price,{label:"defaultPrice",value:p,size:"small"})}),a&&a>1&&c?n.jsx(g.ProductInfo.Price,{label:"installment",value:`${a}x ${h}`,size:"small"}):null]})})})};yl.displayName="ProductCard.Price";const _l=({tag:e,className:t})=>{const{item:{name:r}}=Fe();return n.jsxs("div",{className:g.helpers.classNameConcat(Pe["product-card--title"],t),children:[n.jsx("div",{className:Pe["product-card--title--tag"],children:e?n.jsx(g.Tag,{size:"small",title:e.value,variant:"quaternary",adornment:{start:e.enableIcon&&e.icon?n.jsx(g.Icon,{name:e.icon,style:{color:e.iconColor}}):null},style:{background:e.tagColor,color:e.textColor},children:e.value}):n.jsx("div",{})}),n.jsx("div",{className:Pe["product-card--title--content"],children:r&&n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("h3",{children:r})})})})]})};_l.displayName="ProductCard.Title";const vl=({className:e,url:t,poster:r,...o})=>{const{element:s}=Fe();return x.useEffect(()=>{if(!(s!=null&&s.current))return;const i=s.current,a=i.querySelector("video");if(a){const c=new IntersectionObserver(p=>{p.forEach(h=>{ie.setVideoPlay(h.isIntersecting,a,t)})},{root:null,rootMargin:"0px",threshold:.5}),l=()=>{a.setAttribute("data-loaded","true")},u=()=>{i&&(c.observe(i),a.addEventListener("loadeddata",l))};return document.readyState==="complete"?u():window.addEventListener("load",u),()=>{c.disconnect(),window.removeEventListener("load",u)}}return()=>null},[t,s]),n.jsx("div",{...o,className:g.helpers.classNameConcat(Pe["product-card--video"],e),children:t&&n.jsx(ze.Video,{autoPlay:!1,muted:!0,loop:!0,preload:"none",playsInline:!0,poster:r})})};vl.displayName="ProductCard.Media.Video";const bl=({children:e,className:t,type:r,...o})=>n.jsx("div",{...o,className:g.helpers.classNameConcat(Pe[`product-card--${r}`],t),children:e});bl.displayName="ProductCard.Wrapper";const ve={Actions:Qc,BuyButton:Zc,Header:Jc,Media:ul,Root:fl,OutStock:dl,Price:yl,SizeSelector:hl,StyleSelector:gl,Title:_l,Video:vl,Wrapper:bl},mm="_carousel_245ib_1",hm="_shelf__container_245ib_14",gm="_shelf_without_carousel_245ib_34",xt={carousel:mm,"custom-controllers":"_custom-controllers_245ib_5",shelf__container:hm,"controllers-arrows-bullets":"_controllers-arrows-bullets_245ib_23",shelf_without_carousel:gm},qs=({title:e})=>n.jsx("div",{className:xt.shelf__container,children:e&&n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{children:[n.jsx("h2",{className:g.helpers.classNameConcat("typography-style-body-md",ie.responsive["responsive-mobile-flex"]),children:e}),n.jsx("h2",{className:g.helpers.classNameConcat("typography-style-heading-md",ie.responsive["responsive-desktop-flex"]),children:e})]})})}),ym=({children:e,ICONS:t,itemsPerPage:r,title:o})=>{const{isMobile:s}=be(),i=r[s?"mobile":"desktop"],{initialize:a,controller:c,itemsStyles:l,pagination:u}=g.Carousel.useCarousel({itemsPerPage:i,gap:10,loop:!0,direction:"row"}),p=x.Children.toArray(e).length;return s||p>=4?n.jsxs(g.Carousel.Root,{innerRef:d=>{a(d)},className:xt.carousel,children:[n.jsxs("div",{className:xt["custom-controllers"],children:[o&&n.jsx(qs,{title:o}),i<p&&n.jsxs(g.Carousel.Controller,{className:xt["controllers-arrows-bullets"],children:[n.jsxs(g.Carousel.Arrows,{children:[n.jsx(g.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(g.Icon,{name:t.arrow_left})}}),n.jsx(g.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(g.Icon,{name:t.arrow_right})}})]}),!s&&i>2&&n.jsx(g.Carousel.Bullets,{page:u.currentPage,total:u.totalPages,onBulletClick:d=>c==null?void 0:c.navigateTo(d)})]})]}),n.jsx(g.Carousel.Body,{children:x.Children.map(e,(d,f)=>n.jsx(g.Carousel.Item,{style:{...l,overflow:"hidden"},children:d},`${o}_${f}`))})]}):n.jsxs(n.Fragment,{children:[o&&n.jsx(qs,{title:o}),n.jsx("div",{className:xt.shelf_without_carousel,children:e})]})},_m={Shelf:ym},vm=({CONSTANTS:e,inView:t,products:r,innerRef:o,WishListToggle:s})=>{const i=x.useMemo(()=>kp(r),[r]),{isMobile:a}=be(),{addItemsToCart:c}=we(),{sendDataLayerEvent:l}=ge(),{getAvailableProductTag:u}=jt(),[p,h]=x.useState({totalPrice:0,products:{}}),d=()=>{const m=Object.values(p.products);c(m),l({functionKey:"skuEvents",data:{event:"add_to_cart",commonData:{products:m.map(_=>{const y=i.find(b=>b.node.id===_.productId);return y==null?void 0:y.node})},supportData:{selectedSkus:m,price:p.totalPrice}}})},f=({selectedProduct:m,productId:_})=>{const y=Mp({selectedProduct:m,productId:_,prevState:p,mainSellerId:e.StoreConfig_MainSellerId});h(y)};return x.useEffect(()=>{if(!t||i.length===0)return;const m=e.BUY_PACKAGE.header.title;l({functionKey:"productListEvent",data:{event:"view_item_list",commonData:{products:i},customData:{item_list_name:m},outsideEcommerceData:{item_list_name:m}}})},[t]),n.jsxs("div",{className:Ge.container,ref:o,children:[n.jsx("div",{className:Ge["carousel-container"],style:{width:i.length<=3?"max-content":"75%"},children:n.jsx(_m.Shelf,{title:e.BUY_PACKAGE.header.title,itemsPerPage:{desktop:3,mobile:i.length>=3?2.2:i.length},ICONS:e.ICONS,children:Array.isArray(i)&&i.map(({node:m},_)=>{var j,v,S;const y=u(m.cluster.highlights),{availability:{status:b}}=m;return b?n.jsxs(ve.Root,{item:{...m,image:Lo.helpers.product.getFirstImages({images:m.image,label:{first:e.MAIN_IMAGE,second:e.SECOND_IMAGE}})},isMobile:a,size:"medium",index:_,shelfTitle:e.BUY_PACKAGE.header.title,CONSTANTS:e,WishListToggle:s,children:[n.jsx(ve.Header,{product:m,tag:y.commercial}),n.jsx(ve.Media,{}),n.jsxs(ve.Wrapper,{type:"body",children:[n.jsx(ve.Title,{tag:{value:(j=y.institucional)==null?void 0:j.value,enableIcon:(v=y.institucional)==null?void 0:v.enableIcon,icon:(S=y.institucional)==null?void 0:S.icon}}),n.jsx(ve.Actions,{children:n.jsx(ve.SizeSelector,{callback:E=>f({selectedProduct:E,productId:m.id})})})]})]},m.id):null})})}),n.jsx("div",{className:Ge["add-cart-container"],children:n.jsx(Op,{handleAddAllToCart:d,selectedProducts:p,CONSTANTS:{BUY_BUTTON_LABELS:e.BUY_BUTTON_LABELS,BUY_PACKAGE:e.BUY_PACKAGE,FREIGHT_CALCULATION:e.FREIGHT_CALCULATION}})})]})},Bo={"btn-login":"_btn-login_yas63_12","btn-header":"_btn-header_yas63_22","header-animation":"_header-animation_yas63_35"},zo=({id:e})=>{const{setIsOpen:t,cartStore:{items:r}}=we(),{handleSelectContent:o}=ge(),{CONSTANTS:s}=je(),i=r.reduce((a,c)=>a+(c.quantity??0),0);return n.jsx(g.Header.SupportItem,{onClick:()=>{t(!0),o({content:"header:minicart"})},id:e,children:n.jsxs(g.Badge.AutoPositioner,{children:[n.jsx(g.Badge.Count,{count:i,size:"medium",variant:"primary",style:{backgroundColor:"black",display:i>0?"flex":"none"}}),n.jsx(g.Icon,{name:s.header.ICONS.bag,size:"medium"})]})})};zo.displayName="Header.Bag";const Pt=({children:e,href:t,...r})=>t&&t!=="#"?n.jsx(Me,{href:t.startsWith("/")?t:`/${t}`,...r,children:e}):e,xl=()=>{const{headerData:e}=je(),{handleSelectContent:t}=ge(),{reset:r,updateValue:o}=Ke(),s=i=>{i?o(i):r()};return n.jsx(g.Header.Categories,{children:Array.isArray(e.categories)&&e.categories.map((i,a)=>n.jsx(Pt,{href:i.link,onMouseEnter:()=>s(i.submenuId),onFocus:()=>s(i.submenuId),children:n.jsx(g.Header.CategoryItem,{className:Bo["btn-header"],value:i.submenuId??null,adornment:{start:n.jsx(g.Icon,{name:i.iconStart}),end:n.jsx(g.Icon,{name:i.iconEnd})},style:{textWrap:"nowrap",gap:"0"},onClick:()=>{t({content:`header:${i.label}`})},children:i.label})},`category-${i.label}-${a}`))})};xl.displayName="Header.Categories";function bm(){const{handleSelectContent:e}=ge(),{CONSTANTS:t}=je(),{setValue:r}=Po();return n.jsx(g.Header.SupportItem,{onClick:()=>{r(!0),e({content:"header:search"})},children:n.jsx(g.Icon,{name:t.header.ICONS.search,size:"medium"})})}const xm={"menu-subcategories-container":"_menu-subcategories-container_a93cr_1"},Cm={"observer-wrapper":"_observer-wrapper_r43gk_1"},ur=({children:e,eventData:t,observerOptions:r,callBackWhenVisible:o,stopOnIntersection:s=!0,className:i,...a})=>{const c=x.useRef(null),l=ja(c,s,r),{sendDataLayerEvent:u}=ge();return x.useEffect(()=>{l&&(typeof o=="function"&&o(),t&&u({...t}))},[l]),n.jsx("div",{...a,ref:c,className:g.helpers.classNameConcat(Cm["observer-wrapper"],i),children:e})},Fo=({thumbnails:e,category:t,isMobile:r=!0,callBack:o})=>{const{handleSelectPromotionEvent:s}=ge(),i=50/e.length;return n.jsx("div",{className:xm["menu-subcategories-container"],children:e.map((a,c)=>{const l=r?a.srcMobile:a.srcDesk;if(!l)return null;const u={creative_name:"banner-menu",creative_slot:`banner-menu:${t}:${c+1}`,promotion_id:l,promotion_name:a.promotion_name};return n.jsx(ur,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...u}}}},observerOptions:{delay:1e3},children:n.jsxs(Me,{href:a.link??"#",onClick:()=>{typeof o=="function"&&o(),s({updatePromotionRef:!0,promotion:u})},children:[n.jsx(ze.Image,{src:l,alt:a.label??l,width:500,height:500,sizes:`(max-width: 768px) 100vw, (max-width: 1023px) 75vw, ${i}vw`}),a.label&&n.jsx("p",{children:a.label})]})},`thumb-${a.label}-${c}`)})})};Fo.displayName="Menu.Thumbnail";const po={"menu-desktop":"_menu-desktop_1b799_1","menu-categories":"_menu-categories_1b799_12"},Sm="_link_w24h0_1",jm="_wrapper_w24h0_98",Em="_text_w24h0_106",qr={link:Sm,wrapper:jm,text:Em},Ue=({children:e,adornments:t,className:r,disableUnderline:o,href:s,mode:i,size:a,title:c,onClick:l,disablePadding:u,...p})=>{const h=g.helpers.ValidateProp({fieldTypes:lt.SizesSmallExtended,property:a,fallback:"medium"}),d=g.helpers.ValidateProp({fieldTypes:lt.Mode,property:i,fallback:"default"});return n.jsx(Me,{...p,className:g.helpers.classNameConcat(qr.link,r),href:s&&s.length>0?s:"#","data-size":h,"data-variant":d,title:c||"NextLink","data-disable-underline":o??!1,"data-disable-padding":u??!0,children:n.jsxs("div",{className:qr.wrapper,onClick:l,children:[t==null?void 0:t.start,n.jsx("p",{className:qr.text,"data-size":h,children:e}),t==null?void 0:t.end]})})},Cl=({children:e,dividerOnRight:t=!0,subMenu:r,...o})=>{var l;const{router:s}=Re(),{reset:i}=Ke(),{handleSelectContent:a}=ge(),{CONSTANTS:c}=je();return n.jsxs("div",{...o,className:po["menu-categories"],children:[(l=r==null?void 0:r.subCategories)==null?void 0:l.map((u,p)=>{var f,m,_;const h=u.listCollapseDesk&&!((f=u.see_all)!=null&&f.link)?{expandAfterRowsQty:u.rowsToShowDesk}:{},d=u.listCollapseDesk&&!((m=u.see_all)!=null&&m.link)?{expansivesAdornments:{open:c.header.ICONS.add,close:c.header.ICONS.minus},expansivesLabels:{open:c.header.COMPONENT_LIST.listExpandLabel,close:c.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:n.jsx(g.Icon,{name:c.header.ICONS.arrow_right,size:"small"})}};return n.jsxs(g.ComponentList.Structure,{children:[n.jsx(Pt,{href:u.linkLabel,title:u.label,onClick:()=>{u.linkLabel&&(i(),a({content:`menu:${u.label??""}:${r.label??""}`}))},children:n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("h2",{children:u.label})})})}),n.jsx(g.ComponentList.List,{columns:1,...h,className:po["submenu-categories"],children:u.items.map((y,b)=>n.jsx(g.ComponentList.ListItem,{id:`list-item-${y.label}-${b}`,children:n.jsx(Ue,{href:y.link??"#",size:"x-small",title:y.label??"",disableUnderline:!0,disablePadding:!0,onClick:()=>{i(),a({content:`menu:${u.label??""}:${y.label??""}:${r.label??""}`})},children:y.label})},`list-item-${y.label}-${b}`))}),((_=u.see_all)==null?void 0:_.link)&&n.jsx(g.ComponentList.Support,{...d,size:"small",onClick:()=>{var y;(y=u.see_all)!=null&&y.link&&(i(),a({content:`menu:${u.label??""}:${r.label}`}),s.push(u.see_all.link))},children:u.see_all.link&&u.see_all.label})]},`list-${u.label}-${p}`)}),t&&n.jsx(g.Utils.Divider,{size:"small",direction:"vertical"})]})};Cl.displayName="Menu.Categories";const Sl=({children:e,dividerOnBottom:t=!0,...r})=>{const{CONSTANTS:o}=je();return n.jsxs(n.Fragment,{children:[n.jsx("div",{...r,className:po["menu-desktop"],style:{...r.style,justifyContent:o.header.ALIGNMENT_MENU},children:e}),t&&n.jsx(g.Utils.Divider,{size:"small"})]})};Sl.displayName="Menu.MenuRoot";const Hr={Root:Sl,Categories:Cl,Thumbnail:Fo},jl=()=>{const{headerData:e,CONSTANTS:t}=je(),r=or(),{reset:o}=Ke();return n.jsx(g.Header.SubMenu,{children:Array.isArray(e.subMenus)&&e.subMenus.map((s,i)=>{const{thumbnails:a,label:c,id:l}=s,u=l===r,p=a==null?void 0:a.some(h=>!!h.srcDesk);return n.jsxs(Hr.Root,{id:l,style:u?{display:"flex",zIndex:t.header.Z_INDEX_WAR.menu_desktop}:{display:"none"},dividerOnBottom:u,children:[n.jsx(Hr.Categories,{dividerOnRight:!!p,subMenu:s}),Array.isArray(a)&&n.jsx(Hr.Thumbnail,{thumbnails:a,isMobile:!1,category:c,callBack:o})]},`submenu-${l}-${i}`)})})};jl.displayName="Header.SubMenu";const El=()=>{const{handleSelectContent:e}=ge(),{CONSTANTS:t}=je();return n.jsx(Me,{href:"/favoritos",children:n.jsx(g.Header.SupportItem,{onClick:()=>e({content:"header:wishlist"}),children:n.jsx(g.Icon,{name:t.header.ICONS.favorite_false,size:"medium"})})})};El.displayName="Header.WishList";const wl=()=>{const{CONSTANTS:e,userMenuDesktopRef:t}=je(),{handleSelectContent:r}=ge(),{reset:o}=Ke(),{setValue:s}=Rt();return n.jsxs(n.Fragment,{children:[n.jsxs(g.Header.Wrapper,{children:[n.jsx(g.Header.Logo,{style:{width:"100%"},children:n.jsx(Me,{href:"/",onMouseEnter:o,children:n.jsx(g.Icon,{name:e.header.ICONS.logo,size:"x-large",onClick:()=>{r({content:"header:logo"})}})})}),n.jsx(xl,{}),n.jsxs(g.Header.Support,{onMouseEnter:o,style:{justifyContent:"flex-end"},children:[n.jsx(bm,{}),n.jsx(g.Header.SupportItem,{onClick:()=>{s(!0),r({content:"header:user_menu"})},className:Bo["btn-login"],innerRef:t,children:n.jsx(g.Icon,{name:e.header.ICONS.person,size:"medium"})}),n.jsx(El,{}),n.jsx(zo,{id:"cart-button"})]})]}),n.jsx(jl,{})]})};wl.displayName="Header.HeaderDesktopWrapper";const wm="_divider_1lexj_199",Se={"modal-modifier":"_modal-modifier_1lexj_1","menu-mobile":"_menu-mobile_1lexj_11","menu-header-container":"_menu-header-container_1lexj_26","menu-header-wrapper":"_menu-header-wrapper_1lexj_35","menu-header-navlinks":"_menu-header-navlinks_1lexj_41","menu-body":"_menu-body_1lexj_57","menu-categories-container":"_menu-categories-container_1lexj_74","menu-categories-btn":"_menu-categories-btn_1lexj_108","menu-body-banner-container-modifier":"_menu-body-banner-container-modifier_1lexj_121","menu-categories__banner":"_menu-categories__banner_1lexj_130","menu-submenu-modal-modifiier":"_menu-submenu-modal-modifiier_1lexj_135","menu-submenu":"_menu-submenu_1lexj_135","menu-submenu--item":"_menu-submenu--item_1lexj_150","menu-submenu--thumbnails":"_menu-submenu--thumbnails_1lexj_156","menu-submenu--component-list-modifier":"_menu-submenu--component-list-modifier_1lexj_184","submenu-categories":"_submenu-categories_1lexj_187","menu-navigationbar":"_menu-navigationbar_1lexj_191",divider:wm,"menu-navigationbar-item":"_menu-navigationbar-item_1lexj_206","menu-categories-textstructure-modifier":"_menu-categories-textstructure-modifier_1lexj_210"},Rl=({children:e,mobileBannerAlt:t,mobileBannerSrc:r,onClick:o,textColor:s,...i})=>n.jsx("button",{onClick:o,className:Se["menu-categories-btn"],children:r?n.jsxs(g.Banner.Container,{...i,className:Se["menu-body-banner-container-modifier"],children:[n.jsx(g.Banner.ImageWrapper,{style:{width:"100%"},children:n.jsx(ze.Image,{src:r,alt:t??r,className:Se["menu-categories__banner"],width:343,height:128,unoptimized:!0})}),n.jsx(g.Banner.Slot,{verticalAlignment:"center",horizontalAlignment:"start",children:n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{className:Se["menu-categories-textstructure-modifier"],children:n.jsx("h2",{className:"typography-style-body-xs",style:s?{color:s}:{},children:e})})})})]}):n.jsx("h2",{...i,children:e})});Rl.displayName="Menu.MenuCategories";const Al=({children:e,link:t})=>{const{reset:r}=nt();return t?n.jsx(Me,{href:t??"#",onClick:r,children:e}):e};Al.displayName="Menu.MenuCategoriesWrapper";const Pl=({subcategory:e,submenuLabel:t})=>{var l,u,p;const{router:r}=Re(),{reset:o}=nt(),{handleSelectContent:s}=ge(),{CONSTANTS:i}=je(),a=e.listCollapseMobile&&!((l=e.see_all)!=null&&l.link)?{expandAfterRowsQty:e.rowsToShowMobile}:{},c=e.listCollapseMobile&&!((u=e.see_all)!=null&&u.link)?{expansivesAdornments:{open:i.header.ICONS.add,close:i.header.ICONS.minus},expansivesLabels:{open:i.header.COMPONENT_LIST.listExpandLabel,close:i.header.COMPONENT_LIST.listCollapseLabel},iconSize:"x-small"}:{adornment:{end:n.jsx(g.Icon,{name:i.header.ICONS.arrow_right,size:"small"})}};return n.jsxs(g.ComponentList.Structure,{className:Se["menu-submenu--component-list-modifier"],children:[n.jsx(Pt,{href:e.linkLabel,title:e.label,onClick:()=>{o(),s({content:`menu:${e.label??""}:${t}`})},children:n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("h2",{className:"typography-style-body-sm-strong",children:e.label})})})}),n.jsx(g.ComponentList.List,{columns:1,...a,className:Se["submenu-categories"],children:e.items.map((h,d)=>n.jsx(g.ComponentList.ListItem,{id:`list-item-${h.label}-${d}`,divider:!0,children:n.jsx(Ue,{href:h.link??"#",size:"x-small",title:h.label??"",disableUnderline:!0,onClick:()=>{o(),s({content:`menu:${e.label??""}:${h.label}:${t}`})},children:h.label})},`list-item-${h.label}-${d}`))}),((p=e.see_all)==null?void 0:p.link)&&n.jsx(g.ComponentList.Support,{...c,size:"small",onClick:()=>{var h;o(),s({content:`menu:${e.label??""}:${t}`}),(h=e.see_all)!=null&&h.link&&r.push(e.see_all.link)},children:e.see_all.link&&e.see_all.label})]})};Pl.displayName="Menu.SubMenuSubCategory";const Il=({submenu:e})=>{var i;const t=or(),{handleCloseSubMenu:r}=At(),{reset:o}=Ke(),{CONSTANTS:s}=je();return n.jsxs("div",{className:Se["menu-submenu--item"],style:{display:t===e.id?"flex":"none"},children:[n.jsx(g.TextStructure.Root,{adornment:{start:n.jsx(g.Icon,{name:s.header.ICONS.arrow_back,size:"medium",onClick:r})},layoutProps:{textRow:{alignItems:"center",style:{width:"100%",position:"relative"}},columnWrapper:{alignContent:"center",style:{width:"100%"}}},children:e.label&&n.jsx(g.TextStructure.DivWrapper,{style:{position:"absolute",left:"50%",transform:"translate(-50%)"},children:n.jsx("h2",{className:"typography-style-body-md-strong",children:e.label})})}),n.jsx("div",{className:Se["menu-submenu--thumbnails"],children:Array.isArray(e.thumbnails)&&n.jsx(Fo,{thumbnails:e.thumbnails,isMobile:!0,category:e.label,callBack:o})}),(i=e==null?void 0:e.subCategories)==null?void 0:i.map((a,c)=>n.jsx(Pl,{subcategory:a,submenuLabel:e.label},`list-${a.label}-${c}`))]})};Il.displayName="Menu.SubMenuItem";const Nl=()=>{const{headerData:e}=je(),t=or(),{reset:r}=Ke(),{bodyRef:o}=At();return n.jsx(g.Modal.RootWithoutPortal,{isOpen:!!t,setIsOpen:r,parent:o.current,variant:"sideLeft",style:{position:"absolute",width:"100%"},className:Se["menu-submenu-modal-modifiier"],children:n.jsx("div",{className:Se["menu-submenu"],children:e.subMenus.map((s,i)=>n.jsx(Il,{submenu:s},`submenu-${s.id}-${i}`))})})};Nl.displayName="Menu.SubMenu";const Tl=({className:e,...t})=>{const{headerData:r}=je(),{setValue:o}=Ke(),{bodyRef:s}=At(),{handleSelectContent:i}=ge();return n.jsxs("div",{...t,ref:s,id:"menu-body",className:Se["menu-body"],children:[n.jsx("div",{className:Se["menu-categories-container"],children:r.categories.map((a,c)=>{const l=a.submenuId?{}:{"data-close":!0};return n.jsx(Al,{link:a.submenuId?null:a.link,children:n.jsx(Rl,{onClick:()=>{o(a.submenuId??null),i({content:`menu:${a.label}`})},mobileBannerSrc:a.mobileBannerSrc,mobileBannerAlt:a.mobileBannerAlt,textColor:a.textColor,...l,children:a.mobileBannerAlt})},`menu-categories-${c}`)})}),n.jsx(Nl,{})]})};Tl.displayName="Menu.MenuBody";const Ol=({title:e,subtitle:t})=>{const{CONSTANTS:r}=je();return n.jsxs("div",{className:Se["menu-header-wrapper"],style:t?{alignItems:"start"}:{alignItems:"center"},children:[(e||t)&&n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{children:[e&&n.jsx("h2",{className:"typography-style-body-md",children:e}),t&&n.jsx("h3",{children:t})]})}),n.jsx(g.Button,{adornment:{end:n.jsx(g.Icon,{name:r.header.ICONS.close})},variant:"tertiary",className:Se["menu-close"],"data-close":!0})]})};Ol.displayName="Menu.MenuHeaderWrapper";const kl=({navigationLinks:e})=>{const{reset:t}=nt(),{handleSelectContent:r}=ge();return e?n.jsx("nav",{className:Se["menu-header-navlinks"],children:e.map((o,s)=>n.jsx(Ue,{href:o.link??"#",adornments:{start:o.iconStart&&n.jsx(g.Icon,{name:o.iconStart}),end:o.iconEnd&&n.jsx(g.Icon,{name:o.iconEnd})},onClick:()=>{t(),r({content:`menu:navigationlinks-${o.label}`})},children:o.label},s))}):null};kl.displayName="Menu.MenuHeaderNavLinks";const Ml=()=>{const{headerData:e}=je();return n.jsxs("div",{className:Se["menu-header-container"],children:[n.jsx(Ol,{title:e.title,subtitle:e.subtitle}),n.jsx(kl,{navigationLinks:e.navigationLinks})]})};Ml.displayName="Menu.MenuHeaderContainer";const Ll=({children:e})=>{const{documentBodyRef:t}=At(),{CONSTANTS:r}=je(),o=Ao(),{setValue:s}=nt();return n.jsx(g.Modal.RootWithoutPortal,{isOpen:o,setIsOpen:s,parent:t.current,variant:"sideLeft",style:{position:"fixed",zIndex:r.header.Z_INDEX_WAR.menu_mobile,bottom:"unset",top:0,overflowY:"hidden"},className:Se["modal-modifier"],children:n.jsx("div",{className:Se["menu-mobile"],children:e})})};Ll.displayName="Menu.MenuRoot";const Dl=({children:e,...t})=>n.jsxs(n.Fragment,{children:[n.jsx(g.Button,{...t,className:Se["menu-navigationbar-item"],children:e}),n.jsx(g.Utils.Divider,{direction:"vertical",size:"small",className:Se.divider})]});Dl.displayName="Menu.NavigationBarItem";const $l=()=>{const{setIsOpen:e}=we(),{reset:t}=nt(),{setValue:r}=Rt(),{handleSelectContent:o}=ge(),{CONSTANTS:s}=je(),{router:i}=Re();return n.jsx(g.Card,{id:"menu-navigationbar",shadow:!0,className:Se["menu-navigationbar"],style:{zIndex:s.header.Z_INDEX_WAR.menu_mobile_navigation_bar},children:s.header.MENU_INFO.navigation_bar.items.map(a=>n.jsx(Dl,{size:"small",variant:"tertiary",iconNameStart:a.button_icon,onClick:()=>{a.href&&i.push(a.href),t(),a.openUserMenu&&r(!0),a.openCart&&e(!0),o({content:`menu:${a.eventContent}`})},children:a.button_text}))})};$l.displayName="Menu.NavigationBar";const Kt={Root:Ll,NavigationBar:$l,Header:Ml,Body:Tl},Bl=()=>{const e=x.useRef(null),{CONSTANTS:t,userMenuMobileRef:r}=je(),{MENU_NAVIGATION_BAR_ALLOWED:o,ICONS:s,MENU_MOB_BTN_SIDE:i="right"}=t.header,{handleSelectContent:a}=ge(),{setValue:c}=Po(),{setValue:l}=nt(),{setValue:u}=Rt();return n.jsxs(n.Fragment,{children:[n.jsxs(g.Header.Wrapper,{children:[i==="left"&&n.jsx(g.Header.SupportItem,{onClick:()=>l(!0),innerRef:e,children:n.jsx(g.Icon,{name:s.menu,size:"medium"})}),n.jsx(g.Header.Logo,{style:{width:"100%",justifyContent:"center"},children:n.jsx(Me,{href:"/",children:n.jsx(g.Icon,{name:s.logo,size:"x-large",onClick:()=>{a({content:"header:logo"})}})})}),n.jsxs(g.Header.Support,{children:[n.jsx(g.Header.SupportItem,{onClick:()=>{c(!0),a({content:"header:search"})},children:n.jsx(g.Icon,{name:s.search,size:"medium"})}),n.jsx(g.Header.SupportItem,{onClick:()=>{u(!0),a({content:"header:user_menu"})},innerRef:r,children:n.jsx(g.Icon,{name:s.person,size:"medium"})}),n.jsx(zo,{}),i==="right"&&n.jsx(g.Header.SupportItem,{onClick:()=>l(!0),innerRef:e,children:n.jsx(g.Icon,{name:s.menu,size:"medium"})})]})]}),n.jsx(ac,{children:n.jsxs(Kt.Root,{children:[n.jsx(Kt.Header,{}),n.jsx(Kt.Body,{}),o?n.jsx(Kt.NavigationBar,{}):n.jsx(n.Fragment,{})]})})]})};Bl.displayName="Header.HeaderMobileWrapper";const Rm="_root_wvekm_126",$e={"user-menu--credits":"_user-menu--credits_wvekm_1","user-menu--content":"_user-menu--content_wvekm_10","user-menu--login":"_user-menu--login_wvekm_30","user-menu--login--content":"_user-menu--login--content_wvekm_37","user-menu--menu":"_user-menu--menu_wvekm_64","user-menu--tooltip":"_user-menu--tooltip_wvekm_93","tooltip-modifier":"_tooltip-modifier_wvekm_104","modal-controls-modifier":"_modal-controls-modifier_wvekm_109","modal-header-modifier":"_modal-header-modifier_wvekm_117",root:Rm},zl=({className:e,children:t,...r})=>n.jsx("div",{...r,className:g.helpers.classNameConcat($e["user-menu--content"],e),children:t});zl.displayName="UserMenu.Content";var Fl=(e=>(e.Account="account",e))(Fl||{});const ql=({className:e,cashBack:t,credits:r,link:o,total:s,...i})=>{const a=t?ie.formatPriceToCurrency(t):void 0,c=r?ie.formatPriceToCurrency(r):void 0,l=s?ie.formatPriceToCurrency(s):void 0;return n.jsx(g.Credits.Account,{...i,className:g.helpers.classNameConcat($e["user-menu--credits"],e),icon:"wallet",showIcon:!0,cashBackValue:a,creditsValue:c,linkMore:o,totalValue:l,type:Fl.Account})};ql.displayName="UserMenu.Credits";const Hl=({className:e,children:t,description:r,text:o,...s})=>{const{isMobile:i}=be();return n.jsx("div",{...s,className:g.helpers.classNameConcat($e["user-menu--login"],e),"data-mobile":i,children:n.jsxs("div",{className:$e["user-menu--login--content"],children:[n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{alignContent:"flex-start",alignItems:"flex-start",children:[n.jsx("h3",{className:"typography-style-body-lg-strong",children:o}),n.jsx("p",{children:r})]})}),t]})})};Hl.displayName="UserMenu.Login";const Ul=({className:e,isLogged:t,onLogoutClick:r,ICONS:o,storeConfig:s})=>{const{isMobile:i}=be(),a=kf({ICONS:o,storeConfig:s}).filter(c=>c.deviceShown==="both"||c.deviceShown===(i?"mobile":"desktop"));return n.jsxs("ul",{className:g.helpers.classNameConcat($e["user-menu--menu"],e),children:[Array.isArray(a)&&a.map((c,l)=>n.jsx("li",{children:n.jsx(Ue,{href:c.href??"#",size:"small",disableUnderline:!0,adornments:{start:n.jsx(g.Icon,{name:c.icon??"delete"})},children:c.label})},l)),t?n.jsx("li",{children:n.jsx(Ue,{href:`${s.secureSubdomain}/api/vtexid/pub/logout?scope=mariafilo&returnUrl=${encodeURIComponent(`${s.storeUrl}`)}`,size:"small",disableUnderline:!0,onClick:r,adornments:{start:n.jsx(g.Icon,{name:Of(o)})},children:Tf})}):n.jsx(n.Fragment,{})]})};Ul.displayName="UserMenu.Menu";const Wl=e=>{const t=x.useRef(null),r=x.useCallback(i=>{t.current&&!t.current.contains(i.target)&&e()},[e]),o=x.useCallback(i=>{t.current&&!t.current.contains(i.target)&&e()},[e]),s=x.useCallback(i=>{i.key==="Escape"&&e()},[e]);return x.useEffect(()=>(document.addEventListener("mousedown",r),document.addEventListener("keydown",s),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",s),document.removeEventListener("touchstart",o)}),[r,s,o]),{ref:t}},Am=e=>{if(!e||typeof window>"u")return 0;const t=window.getComputedStyle(e);return parseInt(t.padding,10)},Pm=(e,t,r)=>{if(!(e instanceof HTMLElement)||!(t instanceof HTMLElement))return{left:0,top:0};const{height:o,left:s,top:i,width:a}=t.getBoundingClientRect(),c=e.getBoundingClientRect(),l=e!=null&&e.parentElement?Am(e==null?void 0:e.parentElement):0;return{left:s+a/2-(c.width+l*2),top:i+o+r}},Vl=x.createContext({}),Im=({children:e,delay:t=600,gap:r=20,isOpen:o,setIsOpen:s,target:i,...a})=>{const c=x.useRef(null),[l,u]=x.useState(!1),[p,h]=x.useState({left:0,top:0}),{ref:d}=Wl(()=>{u(!0),typeof window<"u"&&(c.current=window.setTimeout(()=>{s(!1),u(!1)},t))});return x.useEffect(()=>{if(i&&(d!=null&&d.current)){const{left:f,top:m}=Pm(d.current,i,r??0);h({left:f,top:m}),u(!1)}},[r,o,i,d]),n.jsx(Vl.Provider,{value:x.useMemo(()=>({...a,...p,contentRef:d,isLeaving:l,isOpen:o,setIsOpen:s,setIsLeaving:u,target:i}),[a,p,d,l,o,s,u,i]),children:e})},Gl=()=>{const e=x.useContext(Vl);if(e===void 0)throw new Error("useUserMenuContext must be used within a UserMenuProvider");return e},Kl=({children:e,isMobile:t=!1,Z_INDEX_WAR:r})=>{const{isOpen:o,setIsOpen:s}=Gl();return n.jsxs(g.Modal.Root,{"data-user":"user-menu--modal",isMobile:t??!1,isOpen:o,setIsOpen:s,variant:"sideBottom",className:$e["modal-root-modifier"],style:{zIndex:r.user_menu_mobile},children:[n.jsx(g.Modal.Header,{navigation:"top",className:$e["modal-header-modifier"],children:n.jsx(g.Modal.Controls,{navigation:"top",isMobile:!0,className:$e["modal-controls-modifier"]})}),n.jsx(g.Modal.Body,{children:e})]})};Kl.displayName="UserMenu.Modal";const Xl=({children:e,component:t,Z_INDEX_WAR:r,isMobile:o,...s})=>n.jsx(Im,{...s,className:$e.root,children:o?n.jsxs(n.Fragment,{children:[n.jsx(Ye.Modal,{Z_INDEX_WAR:r,children:t}),e]}):n.jsx(Ye.Tooltip,{component:t,style:{width:304,zIndex:r.user_menu},Z_INDEX_WAR:r,children:e})});Xl.displayName="UserMenu.Root";const Yl=({children:e,component:t,Z_INDEX_WAR:r,...o})=>{const{contentRef:s,left:i,isLeaving:a,isOpen:c,top:l}=Gl();return n.jsx(g.Tooltip.Root,{arrow:"top-right",component:n.jsx("div",{...o,ref:s,children:t}),className:g.helpers.classNameConcat($e["user-menu--tooltip"],$e["tooltip-modifier"]),isLeaving:a,isOpen:c,left:i,size:"medium",position:"top",top:l,style:{zIndex:r.user_menu},children:n.jsx("div",{className:$e["user-menu--tooltip"],children:e})})};Yl.displayName="UserMenu.Tooltip";const Ye={Credits:ql,Content:zl,Login:Hl,Menu:Ul,Modal:Kl,Root:Xl,Tooltip:Yl},qo=()=>{var _,y,b;const e=ir(),{isMobile:t}=be(),{userMenuMobileRef:r,userMenuDesktopRef:o,CONSTANTS:{header:s},storeConfig:i}=je(),{ICONS:a,Z_INDEX_WAR:c,MENU_INFO:l}=s,u=Qa(),{setValue:p}=Rt(),h=()=>{window.location.href=`${i.secureSubdomain}/api/io/login?returnUrl=${encodeURIComponent(`${i.storeUrl}`)}`},d=!!((_=e.user)!=null&&_.userId),{cashback:f,credits:m}=x.useMemo(()=>{var j,v;return{credits:((j=e==null?void 0:e.getCurrentCredits())==null?void 0:j.credits)??0,cashback:((v=e==null?void 0:e.getCurrentCredits())==null?void 0:v.cashback)??0}},[e]);return n.jsx(Ye.Root,{component:n.jsxs(Ye.Content,{children:[n.jsx(Ye.Login,{description:Lf(d),text:Mf(d,((y=e==null?void 0:e.user)==null?void 0:y.firstName)??((b=e==null?void 0:e.user)==null?void 0:b.email)),children:!d&&n.jsx(g.Button,{size:"medium",variant:"quaternary",onClick:()=>h(),children:l.login.button_text})}),m+f&&d?n.jsx(Ye.Credits,{credits:m,cashBack:f,link:`${i.secureSubdomain}/account#/meus-creditos`,total:m+f}):n.jsx(n.Fragment,{}),n.jsx(g.Utils.Divider,{}),n.jsx(Ye.Menu,{isLogged:d,onLogoutClick:()=>e.logout(),ICONS:a,storeConfig:i})]}),target:t?r.current:o.current,isOpen:u,isMobile:t,setIsOpen:p,Z_INDEX_WAR:c})};qo.displayName="UserMenu";const Nm=x.createContext({}),Tm=({children:e})=>{const{sendDataLayerEvent:t}=ge(),{cartStore:r,isOpen:o}=we();x.useEffect(()=>{o&&t({functionKey:"viewCartEvent",data:{commonData:{cartStore:r}}})},[o]),x.useEffect(()=>{var i,a,c;if(r.id&&!((a=(i=r.marketingData)==null?void 0:i.marketingTags)!=null&&a.includes("faststore"))){const{id:l}=r;Qe.post("/api/checkout/order-form/attachments/marketing-data",{orderFormId:l,marketingData:{...r==null?void 0:r.marketingData,marketingTags:Ba(((c=r.marketingData)==null?void 0:c.marketingTags)??[])}}).catch(u=>{console.error(u)})}},[r]);const s=({cartItem:i,oldQuantity:a,newQuantity:c})=>{t({functionKey:"skuEvents",data:{event:a>c?"remove_from_cart":"add_to_cart",commonData:{products:[{...i,price:i.price/100,listPrice:i.listPrice/100}]},customData:{quantity:c},supportData:{selectedSkus:[i]}}})};return n.jsx(Nm.Provider,{value:{handleUpdateItemQuantityEvent:s},children:e})},Om="_fadeInOut_ottz1_1",km="_fadeOut_ottz1_1",le={"mc--cashback":"_mc--cashback_ottz1_1","mc--cashback--positive":"_mc--cashback--positive_ottz1_21","mc--cashback--alert":"_mc--cashback--alert_ottz1_24","mc--container--actions":"_mc--container--actions_ottz1_28","mc--container--actions--secondary":"_mc--container--actions--secondary_ottz1_36","mc--container--actions--toggle-size-modifier":"_mc--container--actions--toggle-size-modifier_ottz1_54","mc--footer":"_mc--footer_ottz1_58","mc--footer--actions":"_mc--footer--actions_ottz1_67","mc--footer--actions-button":"_mc--footer--actions-button_ottz1_73","mc--footer--total":"_mc--footer--total_ottz1_89","mc--footer--total--info":"_mc--footer--total--info_ottz1_94","mc--footer--total--info--content":"_mc--footer--total--info--content_ottz1_99","mc--field":"_mc--field_ottz1_143","mc--body":"_mc--body_ottz1_183","mc--body--products":"_mc--body--products_ottz1_190","mc--body--empty--feedback":"_mc--body--empty--feedback_ottz1_198","mc--body--empty--text":"_mc--body--empty--text_ottz1_203","mc--header":"_mc--header_ottz1_217","mc--header--subtitle":"_mc--header--subtitle_ottz1_243","mc--notify":"_mc--notify_ottz1_284","mc--notify--content":"_mc--notify--content_ottz1_299","mc--notify--item":"_mc--notify--item_ottz1_312",fadeInOut:Om,fadeOut:km,"mc--card":"_mc--card_ottz1_374","mc--card--actions":"_mc--card--actions_ottz1_379","mc--card--actions--secondary":"_mc--card--actions--secondary_ottz1_387","mc--card--actions--add-remove":"_mc--card--actions--add-remove_ottz1_414","mc--card--actions--gift":"_mc--card--actions--gift_ottz1_428","mc--card--content-info":"_mc--card--content-info_ottz1_444","mc--card--details":"_mc--card--details_ottz1_451","mc--card--link":"_mc--card--link_ottz1_456","mc--product--unavailable":"_mc--product--unavailable_ottz1_464","mc--card--name":"_mc--card--name_ottz1_467","mc--card--price":"_mc--card--price_ottz1_482","mc--card--price--old-price":"_mc--card--price--old-price_ottz1_492","mc--card--price--price-details":"_mc--card--price--price-details_ottz1_496","mc--card--product-link":"_mc--card--product-link_ottz1_507","mc--discount":"_mc--discount_ottz1_517","mc--discount--body":"_mc--discount--body_ottz1_526","minicart--modal-modifier":"_minicart--modal-modifier_ottz1_547"},Ql=({item:{id:e,message:t,callback:r},removeNotification:o,ICONS:s})=>{const i=x.useRef(null),a=()=>{var l;(l=i.current)==null||l.setAttribute("data-animation-out","true")},c=l=>{o(l)};return n.jsx("div",{className:le["mc--notify--item"],ref:i,onAnimationEnd:()=>c(e),children:n.jsxs(g.SnackBar.Structure,{size:"medium",children:[n.jsx(g.SnackBar.Content,{title:t}),n.jsxs(g.SnackBar.Support,{children:[typeof r=="function"&&n.jsx(g.Button,{onClick:()=>{r(),a()},size:"small",variant:"tertiary",children:"Desfazer"}),n.jsx(g.Button,{iconNameStart:s.close,iconSize:"small",onClick:()=>a(),variant:"tertiary"})]})]})},e)};Ql.displayName="MiniCart.Notify.Item";const Zl=({ICONS:e})=>{const t=wo(),{removeNotification:r}=Ro(),o=t.length?[...t].sort((s,i)=>i.id-s.id):[];return n.jsx("div",{className:le["mc--notify"],children:n.jsx("div",{className:le["mc--notify--content"],children:Array.isArray(o)&&o.map(s=>n.jsx(Ql,{item:s,removeNotification:r,ICONS:e},s.id))})})};Zl.displayName="MiniCart.Notifications";const Mm=({handleSendEvent:e,onHandleRemove:t,product:r,MINICART_CONFIG:o,...s})=>{const i=nc(),{toggleProduct:a}=oc(),{itemOffered:{isVariationOf:{productGroupID:c}},quantity:l}=r;return n.jsx(g.Button,{...s,adornment:{end:n.jsx(g.Icon,{name:`favorite-${i.includes(c)?"true":"false"}`,size:"small"})},onClick:()=>{a(c),i.includes(c)||t({texture:"mini-cart-wishlist",title:`${o.messages.add_wishlist}`},l,()=>a(c)),e(i.includes(c)?"remove_from_wishlist":"add_to_wishlist","productEvents")},children:o.messages.add_wishlist_button})},Jl=({handleSendEvent:e,product:t,ICONS:r,MINICART_CONFIG:o,...s})=>{const{addToCart:i,removeToCart:a}=we(),{bundleItems:c=[],id:l,uniqueId:u,seller:p,offerings:h,quantity:d}=t,f=(m,_,y)=>{a(l,m.title,()=>{typeof y=="function"&&y(),i({id:l,quantity:_,seller:p},{id:l,texture:m.texture},!0)})};return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:le["mc--card--actions--add-remove"],children:[o.has_wishlist_button&&n.jsx(Mm,{...s,product:t,handleSendEvent:e,onHandleRemove:f,ICONS:r,MINICART_CONFIG:o}),n.jsx(g.Button,{...s,adornment:{end:n.jsx(g.Icon,{name:r.delete,size:"small"})},variant:"secondary",state:"danger",onClick:()=>{f({texture:"mini-cart",title:`${o.messages.remove}`},d),e("remove_from_cart","skuEvents")},children:o.messages.remove_button})]}),o.has_gift_option&&n.jsx(ct.Gift,{uniqueId:u,bundleItems:c,offerings:h,ICONS:r,MINICART_CONFIG:o})]})};Jl.displayName="MiniCart.Card.Actions";const eu=({bundleItems:e,offerings:t,uniqueId:r,ICONS:o,MINICART_CONFIG:s})=>{const[i,a]=x.useState(!1),{toggleGiftItemCart:c}=we(),l=()=>{if(t instanceof Object&&Array.isArray(t)){const[h]=t;if(h){a(!0);const d=e.some(f=>f.id===h.id);c(r,String(h.id),d).then(()=>a(!1))}}},u=t[0],p=e.find(h=>h.id===u.id);return u&&"id"in u?n.jsx("div",{className:le["mc--card--actions--gift"],children:n.jsx(g.Checkbox,{adornment:n.jsx(g.Icon,{name:o.check}),checked:!!p,disabled:i,label:s.messages.giftPackage,onChange:l})}):null};eu.displayName="MiniCart.Card.Gift";const tu=({itemOffered:e})=>{const t=ie.updatedResizedImg(e==null?void 0:e.image[0].url,{width:200,height:300});return n.jsx(Me,{href:`${e==null?void 0:e.slug}`,className:le["mc--card--product-link"],children:n.jsx(ze.Image,{alt:(e==null?void 0:e.image[0].alternateName)||"Produto",src:t||"",width:108,height:164})})};tu.displayName="MiniCart.Card.Media";const ru=({name:e,skuName:t,tagName:r,className:o})=>n.jsxs(n.Fragment,{children:[r&&n.jsx(g.Tag,{variant:"quaternary",title:r,style:{textTransform:"uppercase"},children:r}),n.jsx("p",{className:g.helpers.classNameConcat(le["mc--card--name"],o),children:ie.getProductNameWithoutSku(e??"",t??"")})]});ru.displayName="MiniCart.Card.Name";const nu=({total:e,totalList:t})=>n.jsx(g.ProductInfo.Root,{children:n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{className:le["mc--card--price"],children:n.jsx(g.ProductInfo.Wrapper,{className:le["mc--card--price--details"],size:"small",layout:"horizontal",children:t&&e!==t?n.jsxs(n.Fragment,{children:[n.jsx(g.ProductInfo.Price,{label:"originalPrice",value:ie.formatPriceToCurrency(t),size:"small"}),n.jsx(g.ProductInfo.Price,{label:"discountPrice",value:ie.formatPriceToCurrency(e),size:"small"})]}):n.jsx(g.ProductInfo.Price,{label:"defaultPrice",value:ie.formatPriceToCurrency(e),size:"small"})})})})});nu.displayName="MiniCart.ProductPrice";const ou=({product:e,TEXTURE_IMAGE:t,TOGGLE_STYLE_MODIFIER:r})=>{var u;const[o,s]=x.useState(""),i=x.useRef(null),{cartStore:{options:a}}=we(),c=e.itemOffered.isVariationOf.productGroupID,l=x.useCallback(()=>{var h;const p=(h=a==null?void 0:a.find(d=>d.id===c))==null?void 0:h.texture;if(p){s(p);return}fetch("/api/catalog/product/info",{method:"POST",priority:"low",body:JSON.stringify({ids:[c]})}).then(d=>d.json()).then(d=>{const f=d.data[0].items.find(m=>m.itemId===e.id);if(f){const m=f.images.find(_=>t.includes(_.imageLabel));if(m!=null&&m.imageUrl){s(m.imageUrl);return}s(f.images[0].imageUrl)}}).catch(d=>{console.error(d)})},[a,c,e.id]);return x.useEffect(()=>{if(!i.current)return;new IntersectionObserver(l).observe(i.current)},[l]),n.jsx("div",{ref:i,children:n.jsx(g.ToggleStyle.Wrapper,{size:"small",style:r,children:n.jsx(g.ToggleStyle.Texture,{children:o?n.jsx(ze.Image,{alt:((u=e.itemOffered)==null?void 0:u.image[0].alternateName)??"Produto",src:o,width:164,height:164,style:r}):n.jsx(Bc,{})})})})};ou.displayName="MiniCart.Card.Style";const su=({product:e,NAME_SPLIT_SYMBOL:t,TEXTURE_IMAGE:r,TOGGLE_STYLE_MODIFIER:o})=>{const{size:s}=ie.getColorAndSizeFromSkuName(e.itemOffered.skuName??"",t);return n.jsxs(g.Utils.Row,{alignItems:"center",children:[n.jsx(ou,{product:e,TEXTURE_IMAGE:r,TOGGLE_STYLE_MODIFIER:o}),n.jsx(g.Utils.Divider,{direction:"vertical",size:"small",style:{height:24}}),s&&n.jsx(g.ToggleSize.Wrapper,{size:"small",variation:"fill",className:le["mc-container-actions--toggle-size-modifier"],children:n.jsx(g.ToggleSize.Text,{children:s})})]})};su.displayName="MiniCart.Card.Sku";const ct={Actions:Jl,Gift:eu,Media:tu,Name:ru,Price:nu,Sku:su},Lm=e=>{var t;return{price:e.sellingPrice/100,listPrice:e.listPrice/100,totalPrice:(((t=e.priceDefinition)==null?void 0:t.total)??0)/100,totalListPrice:e.listPrice*e.quantity/100}},iu=({available:e=!0,index:t,product:r,ICONS:o,MINICART_CONFIG:s,NAME_SPLIT_SYMBOL:i,TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:c})=>{var h,d;const{sendDataLayerEvent:l}=ge(),u=Lm(r),p=(f,m)=>{const _={commonData:{...r,...u},customData:{index:t},event:f};if(m==="skuEvents"){const y={...r,...u};_.supportData={selectedSkus:[y]},_.commonData.products=[y]}l({functionKey:m,data:_})};return n.jsxs("div",{className:g.helpers.classNameConcat(le["mc--card"],e?"":le["mc--card--unavailable"]),children:[n.jsx(ct.Media,{itemOffered:r.itemOffered}),n.jsxs("div",{className:le["mc--card--content-info"],children:[n.jsx(ct.Name,{name:((h=r.itemOffered)==null?void 0:h.name)??"",skuName:(d=r.itemOffered)==null?void 0:d.skuName}),n.jsxs("div",{className:le["mc--card--details"],children:[n.jsx("div",{className:le["mc--card--actions"],children:e?n.jsx(ct.Price,{total:u.price,totalList:u.listPrice}):n.jsx(g.Tag,{variant:"secondary",size:"small",children:"Indisponível"})}),n.jsxs("div",{className:le["mc--card--actions--secondary"],children:[e&&n.jsx(ct.Sku,{product:r,NAME_SPLIT_SYMBOL:i,TEXTURE_IMAGE:a,TOGGLE_STYLE_MODIFIER:c}),n.jsx(ct.Actions,{handleSendEvent:p,product:r,size:"small",variant:"tertiary",ICONS:o,MINICART_CONFIG:s})]})]})]})]})};iu.displayName="MiniCart.Card";const au=({type:e="positive",ICONS:t,MESSAGE_CASHBACK:r})=>{var i;const{toExpire:o}=ir(),s=((i=o==null?void 0:o.cashback)==null?void 0:i.reduce((a,c)=>a+c.remaining_value,0))??0;return s>0?n.jsxs("div",{className:g.helpers.classNameConcat(le["mc--cashback"],le[`mc--cashback--${e}`]),children:[n.jsx(g.Icon,{name:t.alert_circle,size:"medium"}),n.jsxs("p",{children:[n.jsx("span",{children:ie.formatPriceToCurrency(s)})," ",r.title]})]}):null};au.displayName="MiniCart.Cashback";const cu=({type:e,ICONS:t,MINICART_CONFIG:r})=>{const{addCouponSeller:o,removeCoupon:s,removeSellerCode:i,cartStore:{marketingData:a,openTextField:c}}=we(),[l,u]=x.useState(!1),[p,h]=x.useState(!1),d=x.useCallback(()=>{let y="";return e==="coupon"?y=(a==null?void 0:a.coupon)??"":y=String((c==null?void 0:c.value)??""),y.toUpperCase()??""},[a,c,e]),[f,m]=x.useState(!!d()),_=async y=>{h(!0),!!d()&&(e==="coupon"?await s():await i(),m(!1),u(!1)),await o(y,e).then(j=>{if(!j.statusOk&&y||j.code!==200){y?(u(!0),m(!1)):u(!1);return}m(!0),u(!1)}).catch(()=>u(!0)).finally(()=>h(!1))};return n.jsx(ke.Field,{hasError:l,hasSuccess:f,isLoading:p,onHandler:_,type:e,title:e==="coupon"?`${r.messages.descount_cupom_placeholder}`:`${r.messages.sellers_code_placeholder}`,value:d(),MINICART_CONFIG:r,ICONS:t})};cu.displayName="MiniCart.CouponSeller";const lu=({ICONS:e,MINICART_CONFIG:t,PLP_NOT_RESULT:r})=>{const{router:o}=Re(),s=()=>{o.push(r.link)};return n.jsxs(g.Utils.Column,{alignContent:"center",alignItems:"center",gap:"24px",className:le["mc--body--empty--feedback"],children:[n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsxs("p",{className:`typography-style-body-xs ${le["mc--body--empty--text"]}`,children:[t.messages.empty_card," "]})})}),n.jsx(g.Button,{variant:"tertiary",size:"large",onClick:()=>s(),"data-close":!0,adornment:{end:n.jsx(g.Icon,{name:e.arrow_right,size:"medium"})},children:t.messages.empty_bag})]})};lu.displayName="MiniCart.Feedback";const Dm=e=>{const t=e.replace(/\D/g,"");return t.length>5?`${t.slice(0,5)}-${t.slice(5,8)}`:t},uu=({feedback:e,hasError:t,onHandler:r,hasSuccess:o,type:s,title:i,value:a,ICONS:c})=>{const[l,u]=x.useState(a);x.useEffect(()=>{t||u(a)},[a,t]);const p=()=>t?n.jsx(g.Icon,{name:c.delete_circle}):String(a).length&&o?n.jsx(g.Icon,{name:c.check_circle}):null,h=()=>{if(s==="seller"){const _=String(a).includes(" - ")?String(a).split(" - ")[0]:l;u(_)}},d=()=>{if(s==="seller"){const _=String(a).includes(" - ")?a:l;u(_)}},f=_=>{const y=_.currentTarget.value;if(y===""&&typeof r=="function"||o&&String(a).length>0&&y!==String(a)||t&&y!==String(a)){u(""),r("");return}if(s==="cep"){const j=Dm(y);u(j)}else u(y)},m=_=>{if(_.key.toLocaleLowerCase()==="enter"&&typeof r=="function"){const y=_.currentTarget.value;r(y)}};return n.jsx(g.TextField.Input,{adornment:{end:p()},mode:"over-label",label:i,feedback:e,value:l,type:"text",onFocus:h,onBlur:d,onChange:f,onKeyDown:m})};uu.displayName="MiniCart.Field.Input";const du=({title:e,ICONS:t,MINICART_CONFIG:r,...o})=>{const s=x.useRef(null),{hasSuccess:i,hasError:a,isLoading:c,onHandler:l,type:u,value:p}=o,h=()=>a?"error":String(p).length&&i?"success":"none",d=x.useCallback(()=>{if(s.current){const _=s.current.querySelector("input");_&&typeof l=="function"&&(p!==""||a?(l(""),_.value=""):l((_==null?void 0:_.value)??""))}},[l,p,a]),f=h();return n.jsx("div",{ref:s,children:n.jsx(g.TextField.Structure,{className:le["mc--field"],input:n.jsx(uu,{...o,feedback:f,title:e,ICONS:t}),right:n.jsx(g.Button,{"data-has-success":!i,size:"medium",title:String(p).length&&i||a?"Remover":"Aplicar",onClick:()=>d(),disabled:c,children:String(p).length&&i||a?n.jsx(g.Icon,{name:"close",size:"small"}):`${r.messages.promo_code_button}`}),supportText:u==="cep"&&f==="success"?n.jsx(g.TextField.SupportText,{text:"Mais informações de frete na etapa a seguir",feedback:"success",title:"support"}):null})})};du.displayName="MiniCart.Field";const fu=({children:e,ICONS:t,MINICART_CONFIG:r,NAME_SPLIT_SYMBOL:o,PLP_NOT_RESULT:s,TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a})=>{const{cartStore:{items:c,messages:l}}=we();return n.jsxs(g.Modal.Body,{className:le["mc--body"],children:[e,n.jsx("div",{className:le["mc--body--products"],children:Array.isArray(c)&&c.length?c.map((u,p)=>{const h=l.find(d=>{var f;return d.code==="withoutStock"&&((f=d.fields)==null?void 0:f.ean)===u.ean})!==void 0;return n.jsx(ke.Card,{available:!u.availability.includes("outStock")||!h,index:p,product:u,ICONS:t,MINICART_CONFIG:r,NAME_SPLIT_SYMBOL:o,TEXTURE_IMAGE:i,TOGGLE_STYLE_MODIFIER:a},`${u.id}-${u.itemOffered.sku}-${p}`)}):n.jsx(ke.Feedback,{ICONS:t,MINICART_CONFIG:r,PLP_NOT_RESULT:s})})]})};fu.displayName="MiniCart.Body";const pu=({children:e,storeConfig:t,MINICART_CONFIG:r})=>{const{cartStore:o}=we();if(o.items.length===0)return null;const s=()=>{var a;const i=new URLSearchParams({orderFormId:o.id,...((a=o.marketingData)==null?void 0:a.utmCampaign)&&{utm_campaign:o.marketingData.utmCampaign}});window.location.href=`${t.checkoutUrl}?${i.toString()}#/cart`};return n.jsxs(g.Modal.Footer,{className:le["mc--footer"],children:[e,n.jsx("div",{className:le["mc--footer--actions"],children:n.jsx(g.Button,{variant:"primary",size:"large","data-close":!0,className:le["mc--footer--actions-button"],onClick:s,children:r.messages.checkout_button})})]})};pu.displayName="MiniCart.Modal.Footer";const mu=({children:e,className:t,ICONS:r,MINICART_CONFIG:o})=>n.jsxs(g.Accordion.Wrapper,{className:le["mc--discount"],children:[n.jsx(g.Accordion.Header,{id:"frete",title:"Frete",closeIndicator:n.jsx(g.Icon,{name:r.arrow_up,size:"medium"}),openIndicator:n.jsx(g.Icon,{name:r.arrow_down,size:"medium"}),className:g.helpers.classNameConcat(le["mc--discount--header"],t),startOpen:o.promotion_input_starts_open,children:n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{children:[n.jsxs("h3",{className:"typography-style-body-sm",children:[o.messages.promo_code_title," "]}),n.jsx("p",{className:"typography-style-body-xs",children:o.messages.promo_code_subtitle})]})})}),n.jsx(g.Accordion.Body,{className:le["mc--discount--body"],children:e}),n.jsx(g.Utils.Divider,{direction:"horizontal",size:"small",style:{height:16}})]});mu.displayName="MiniCart.Discount";const hu=({discount:e,shipping:t,total:r})=>{var c;const{tags:o}=jt(),s=r-Math.abs(e??0)+(t??0),i=t===0?"Frete Grátis":ie.formatPriceToCurrency((t??0)/100),a=[{title:"Subtotal",value:ie.formatPriceToCurrency(r/100)},{title:"Frete",value:t===void 0?"A calcular":i},{title:"Desconto",value:ie.formatPriceToCurrency((e??0)/100)},{message:((c=o==null?void 0:o.flagCart)==null?void 0:c.flagTotal)??"",title:"Total",value:`1x de ${ie.formatPriceToCurrency(s/100)}`}];return n.jsx("div",{className:le["mc--footer--total"],children:Array.isArray(a)&&a.map((l,u)=>n.jsxs("div",{className:le["mc--footer--total--info"],"data-discount":l.title==="Desconto",children:[n.jsx("p",{children:l.title}),n.jsxs("div",{className:le["mc--footer--total--info--content"],children:[l.message&&n.jsx(g.Tag,{variant:"primary",title:l.message,children:l.message}),n.jsx(g.ProductInfo.Price,{className:le["mc--footer--total--info"],label:l.title,value:l.value})]})]},u))})};hu.displayName="MiniCart.Modal.Footer.Resume.Items";const gu=({totalizers:e})=>{var s,i,a;const t=((s=e.find(c=>c.id==="Items"))==null?void 0:s.value)??0,r=(i=e.find(c=>c.id==="Discounts"))==null?void 0:i.value,o=(a=e.find(c=>c.id==="Shipping"))==null?void 0:a.value;return n.jsx(hu,{discount:r??0,total:t,shipping:o})};gu.displayName="MiniCart.Modal.Footer.Totals";const yu=({ICONS:e,MINICART_CONFIG:t})=>{const{isMobile:r}=be(),{cartStore:{items:o}}=we(),s=o.reduce((i,a)=>i+(a.quantity??0),0);return n.jsx(g.Modal.Header,{navigation:"top",className:le["mc--header"],children:n.jsxs(g.Modal.Controls,{navigation:"top",isMobile:!!r,children:[n.jsx(g.Modal.Title,{navigation:"top",title:t.messages.title}),n.jsx("span",{className:le["mc--header--subtitle"],children:s!==1?`[${s}] Produtos`:`[${s}] Produto`}),n.jsx(g.Button,{"data-close":!0,iconNameStart:e.close,size:"small",variant:"tertiary"})]})})};yu.displayName="MiniCart.Modal.Header";const _u=({ICONS:e,MINICART_CONFIG:t})=>{const{cartStore:{shippingData:r},shipping:o,removeCEP:s}=we(),{sendDataLayerEvent:i}=ge(),[a,c]=x.useState(!1),[l,u]=x.useState(!1),p=x.useCallback(()=>{var b;return((b=r==null?void 0:r.address)==null?void 0:b.postalCode)??""},[r]),[h,d]=x.useState(!!p()),f=()=>{d(!1),c(!1)},m=b=>{var j;if(typeof b=="object"&&(b!=null&&b.logisticsInfo))return(j=b.logisticsInfo)==null?void 0:j.reduce((v,S)=>{var O;const E=(O=S==null?void 0:S.slas)==null?void 0:O.find(w=>(w==null?void 0:w.id)===(S==null?void 0:S.selectedSla));if(!E)return v;const R=parseInt(String((E==null?void 0:E.shippingEstimate)??"").replace("bd","")),C=Number((((E==null?void 0:E.price)??0)/100).toFixed(2));if(v.shipping_tier===void 0)return v.shipping_tier=S==null?void 0:S.selectedSla,v.delivery_time=R.toString(),v.shipping=C,v.flag_retirada=(S==null?void 0:S.selectedDeliveryChannel)==="delivery"?"false":"true",v;const A=parseInt(v.delivery_time??"0");return R>A&&(v.delivery_time=R.toString()),v.shipping=(v.shipping??0)+C,v},{shipping_tier:void 0,delivery_time:void 0,flag_retirada:void 0,shipping:void 0,currency:"BRL"})},_=async b=>{const j=b.replace(/\D/g,"");if(j.length!==8)return!1;try{return!(await Qe.get(`https://viacep.com.br/ws/${j}/json/`)).data.erro}catch{return!1}},y=async b=>{if(u(!0),!!p()||!(b!=null&&b.trim())){await s(),f(),u(!1);return}if(!await _(b)){c(!0),d(!1),u(!1);return}try{const E=await o(b);if(c(!1),E){d(!0);const R=m(E);R&&i({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:R}})}}catch{c(!0)}finally{u(!1)}};return n.jsx(ke.Field,{hasSuccess:h,hasError:a,isLoading:l,onHandler:y,title:`${t.messages.shipping_calculation_placeholder}`,type:"cep",value:p(),ICONS:e,MINICART_CONFIG:t})};_u.displayName="MiniCart.Shipping";const vu=()=>{var r;const{tags:e}=jt(),t=(r=e==null?void 0:e.flagCart)==null?void 0:r.flagHeader;return t!=null&&t.value?n.jsx(g.Tag,{variant:"tertiary",title:t==null?void 0:t.value,size:"small",adornment:{start:t!=null&&t.enableIcon&&(t!=null&&t.icon)?n.jsx(g.Icon,{name:t==null?void 0:t.icon,style:{color:t==null?void 0:t.iconColor}}):null},style:{background:t==null?void 0:t.tagColor,color:t==null?void 0:t.textColor,width:"100%"},children:t==null?void 0:t.value}):null};vu.displayName="MiniCart.TagMessage";const ke={Body:fu,Card:iu,Cashback:au,CouponSeller:cu,Discount:mu,Field:du,Feedback:lu,Shipping:_u,Footer:pu,Header:yu,TagMessage:vu,Totals:gu},$m=({ICONS:e,MINICART_CONFIG:t,NAME_SPLIT_SYMBOL:r,PLP_NOT_RESULT:o,TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:i,Z_INDEX_WAR:a,storeConfig:c,minicartStyleModifiers:l})=>{const{isOpen:u,setIsOpen:p,cartStore:h}=we(),{isMobile:d}=be();return n.jsxs(g.Modal.Root,{className:g.helpers.classNameConcat(le["minicart--modal-modifier"],l),isMobile:!0,isOpen:u,setIsOpen:p,style:{zIndex:a.modal},variant:d?"sideBottom":"sideRight",children:[n.jsx(ke.Header,{ICONS:e,MINICART_CONFIG:t}),n.jsx(ke.Body,{ICONS:e,MINICART_CONFIG:t,NAME_SPLIT_SYMBOL:r,PLP_NOT_RESULT:o,TEXTURE_IMAGE:s,TOGGLE_STYLE_MODIFIER:i,children:n.jsx(ke.TagMessage,{})}),n.jsxs(ke.Footer,{MINICART_CONFIG:t,storeConfig:c,children:[n.jsxs(ke.Discount,{ICONS:e,MINICART_CONFIG:t,children:[n.jsx(ke.CouponSeller,{type:"seller",ICONS:e,MINICART_CONFIG:t}),n.jsx(ke.CouponSeller,{type:"coupon",ICONS:e,MINICART_CONFIG:t}),n.jsx(ke.Shipping,{ICONS:e,MINICART_CONFIG:t})]}),n.jsx(ke.Totals,{totalizers:h.totalizers})]}),n.jsx(Zl,{ICONS:e})]})},bu=({tipBar:e,minicartStyleModifiers:t})=>{const{structureRef:r,rootRef:o,CONSTANTS:s}=je(),{header:{HEADER_CONFIGS:i,Z_INDEX_WAR:a},minicart:c}=s;return n.jsx(g.Header.Structure,{innerRef:r,adornment:{start:e},style:{position:"sticky",top:0,zIndex:a.header},className:Bo["header-animation"],children:n.jsxs(g.Header.Root,{innerRef:o,style:{zIndex:a.header},variant:i.default_variant,interactiveVariant:i.interactive_variant,children:[n.jsx("div",{className:ie.responsive["responsive-mobile-block"],style:{height:"100%",width:"100%",zIndex:a.header_mobile},children:n.jsx(Bl,{})}),n.jsx("div",{className:ie.responsive["responsive-desktop-block"],style:{height:"100%",width:"100%",zIndex:a.header_desktop},children:n.jsx(wl,{})}),n.jsx(Tm,{children:n.jsx($m,{...c,minicartStyleModifiers:t})}),n.jsx(Do,{title:"Produto adicionado à sua sacola!",CONSTANTS:s.addToCart}),n.jsx(qo,{})]})})};bu.displayName="Header";const Bm="_shippingFreight_6z8rf_6",zm="_shippingFreight__postalCodeGrid_6z8rf_10",Fm="_shippingFreight__grid_6z8rf_14",qm="_shippingFreight__grid__title_6z8rf_18",Hm="_shippingFreight__grid__remember_6z8rf_29",Um="_postalCodeContainer_6z8rf_44",Wm="_deliveryStatusBar__tag_6z8rf_49",Vm="_deliveryStatusBarError__tag_6z8rf_66",Gm="_deliveryInfo_6z8rf_74",Km="_deliveryInfo__content_6z8rf_78",Xm="_deliveryInfo__text_6z8rf_84",Ym="_deliveryInfo__title_6z8rf_89",Qm="_deliveryInfo__subtitle_6z8rf_99",Zm="_deliveryInfo__tooltipIcon_6z8rf_109",Jm="_deliveryInfo__tooltip_6z8rf_109",eh="_freightGrid_6z8rf_148",th="_freightContainer_6z8rf_155",rh="_freightOption__content_6z8rf_160",nh="_freightOption__value_6z8rf_166",oh="_freightOption__title_6z8rf_177",sh="_freightOption__title_item_6z8rf_181",ih="_freightOption__paragraph_6z8rf_192",me={shippingFreight:Bm,shippingFreight__postalCodeGrid:zm,shippingFreight__grid:Fm,shippingFreight__grid__title:qm,shippingFreight__grid__remember:Hm,postalCodeContainer:Um,deliveryStatusBar__tag:Wm,deliveryStatusBarError__tag:Vm,deliveryInfo:Gm,deliveryInfo__content:Km,deliveryInfo__text:Xm,deliveryInfo__title:Ym,deliveryInfo__subtitle:Qm,deliveryInfo__tooltipIcon:Zm,deliveryInfo__tooltip:Jm,freightGrid:eh,freightContainer:th,freightOption__content:rh,freightOption__value:nh,freightOption__title:oh,freightOption__title_item:sh,freightOption__paragraph:ih,"input-modifier":"_input-modifier_6z8rf_207","freight--tooltip":"_freight--tooltip_6z8rf_227"},ah=({icon:e,title:t,subtitle:r,packageCount:o,packageUnit:s="",labelDescription:i,freightConfig:a,toolTipZIndex:c})=>{const[l,u]=x.useState(!1),p=x.useRef(null),h=()=>u(d=>!d);return n.jsxs("div",{className:me.deliveryInfo,ref:p,children:[n.jsx(g.Tooltip.Root,{arrow:"bottom",component:n.jsx("div",{children:n.jsx("p",{children:a.messages.select_size_tag})}),id:"freight--tooltip",className:me["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:p.current}),n.jsxs("div",{className:me.deliveryInfo__content,children:[n.jsx("div",{className:me.deliveryInfo__icon,children:n.jsx(g.Icon,{name:e,size:"medium"})}),n.jsxs("div",{className:me.deliveryInfo__text,children:[n.jsxs("span",{className:me.deliveryInfo__title,children:[t," ",o," ",s]}),r&&n.jsx("span",{className:me.deliveryInfo__subtitle,children:r})]}),i&&n.jsxs("div",{className:me.deliveryInfo__tooltipIcon,onMouseEnter:h,onMouseLeave:h,"aria-label":"Mostrar descrição",children:[n.jsx("span",{children:n.jsx(g.Icon,{name:a.icons.feedback_help,size:"small"})}),l&&n.jsx("div",{className:me.deliveryInfo__tooltip,children:i})]})]})]})},ch=({value:e,title:t,paragraph:r})=>n.jsx("div",{className:me.freightOption,children:n.jsxs("div",{className:me.freightOption__content,children:[n.jsx("span",{className:me.freightOption__value,children:e}),n.jsx("span",{className:me.freightOption__title,children:n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{className:me.footer__item,children:[n.jsx("span",{className:me.freightOption__title_item,children:t}),r&&n.jsx("span",{className:me.freightOption__paragraph,children:r})]})})})]})}),lh=({children:e})=>n.jsx("div",{className:me.freightContainer,children:e}),uh=({children:e})=>n.jsx("div",{className:me.freightGrid,children:e}),dh=({children:e})=>n.jsx("div",{className:me.postalCodeContainer,children:e}),Hs=({message:e,seller:t="",size:r="small",setError:o})=>n.jsx("div",{className:o?me.deliveryStatusBarError:me.deliveryStatusBar,children:n.jsxs(g.Tag,{title:e,className:o?me.deliveryStatusBarError__tag:me.deliveryStatusBar__tag,size:r,children:[e," ",!o&&t]})}),fh=e=>{const t=parseInt(e,10);return t===1?`${t} dia`:`${t} dias`},ph=e=>{var r,o,s;const t=[];return(s=(o=(r=e==null?void 0:e.logisticsInfo)==null?void 0:r[0])==null?void 0:o.slas)==null||s.forEach(i=>{t.push({id:i.id,name:i.name,price:i.price,shippingEstimate:i.shippingEstimate})}),t},mh=({component:e,parent:t,top:r,left:o,target:s,contentRef:i,freightConfig:a,toolTipZIndex:c=999,...l})=>{const{isMobile:u}=be();return n.jsx(n.Fragment,{children:u?n.jsx(g.Tooltip.Root,{arrow:"bottom",component:n.jsxs("div",{...l,ref:i,children:[e,n.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:me["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-170%",left:"4%",parent:t}):n.jsx(g.Tooltip.Root,{arrow:"bottom",component:n.jsxs("div",{...l,ref:i,children:[e,n.jsx("p",{children:a.messages.select_size_tag})]}),id:"freight--tooltip",className:me["freight--tooltip"],style:{zIndex:c},isOpen:!0,size:"medium",position:"top",top:"-110%",left:"3%",parent:t})})},hh=({onUpdateFreightItems:e,sellerId:t,size:r,skuId:o,quantity:s,setError:i,setIsButtonClicked:a,component:c,freightConfig:l,toolTipZIndex:u})=>{var N,I,B,T;const p=ut(),h=ut(H=>H.shipping),[d,f]=x.useState(),[m,_]=x.useState(!1),[y,b]=x.useState(!1),[j,v]=x.useState(!1),S=(I=(N=p.shippingData)==null?void 0:N.address)==null?void 0:I.postalCode,E=!(d!=null&&d.length)&&S?S:d,R=x.useRef(null),C=async H=>{const q=H.target.value.replace(/\D/g,"").slice(0,8);q.length>5?f(q.replace(/^(\d{5})(\d{1,3})/,"$1-$2")):f(q)},A=async H=>{const U=H.target.value.replace(/\D/g,"");try{if((await Qe.get(`https://viacep.com.br/ws/${U}/json/`)).data.erro){i&&i(l.messages.cep_not_found),a(!1),b(!0);return}i&&i(""),b(!1)}catch{console.log("Erro ao validar o CEP. Tente novamente mais tarde.")}},O=async()=>{_(!0);try{const H=await Qe.post("/api/checkout/simulation",{items:[{id:o,quantity:s,seller:t}],country:"BRA",postalCode:E});e(ph(H.data))}catch(H){console.error("Erro ao atualizar o documento:",H)}finally{_(!1),h(E,"BRA")}},w=async()=>{if(!o){v(!0),setTimeout(()=>v(!1),1500);return}await A({target:{value:E}}),m||(O(),a(!0))};return n.jsxs("div",{ref:R,style:{position:"relative"},children:[!o&&j?n.jsx(mh,{component:c,isOpen:j,parent:R.current,toolTipZIndex:u,freightConfig:l}):n.jsx(n.Fragment,{}),n.jsx("div",{style:{position:"relative"},children:n.jsx(g.TextField.Structure,{title:"structure",style:{width:"100%"},input:n.jsx(g.TextField.Input,{defaultValue:(T=(B=p.shippingData)==null?void 0:B.address)==null?void 0:T.postalCode,label:l.messages.text_input_label,title:"textfield",value:d,sizeVariant:r,onMouseOver:()=>o?null:v(!0),onMouseOut:()=>o?null:v(!1),mode:"simple",onChange:C,onKeyDown:H=>{H.key==="Enter"&&w()},className:me["input-modifier"],feedback:y?"error":"none"}),right:n.jsx(g.Button,{onClick:w,size:r,title:"button",children:m?n.jsx(g.Spinner,{size:"small",indicatorColor:"#ffffff"}):l.messages.text_input_btn})})})]})},gh=({children:e,freightConfig:t})=>n.jsxs("div",{className:me.shippingFreight,children:[n.jsxs("div",{className:me.shippingFreight__grid,children:[n.jsx("span",{className:me.shippingFreight__grid__title,children:t.messages.title}),n.jsx("span",{className:me.shippingFreight__grid__remember,children:n.jsx(Ue,{href:"https://buscacepinter.correios.com.br/app/endereco/index.php",passHref:!0,target:"_blank",rel:"noopener noreferrer",size:"x-small",disablePadding:!1,title:t.messages.remember_cep,children:t.messages.remember_cep})})]}),n.jsx("div",{className:me.shippingFreight__postalCodeGrid,children:e})]}),yh=({children:e})=>n.jsx("div",{className:me.freightContainer,children:e}),_h=({className:e,sellerId:t,skuId:r,quantity:o,size:s,seller:i,local:a,CONSTANTS_PROPS:c})=>{const{sendDataLayerEvent:l}=ge(),[u,p]=x.useState(""),[h,d]=x.useState([]),[f,m]=x.useState(""),[_,y]=x.useState(!1),b=v=>p(v),j=v=>{d(v),l({functionKey:"readyEvents",data:{event:"search_zipcode",readyData:{shippings:v.map(S=>({shipping_tier:S.id,delivery_time:S.shippingEstimate.replace("bd",""),flag_pickup:S.name.toLowerCase().includes("retirada")?"true":"false",shipping:S.price,currency:c.currency||"BRL"}))}}})};return n.jsxs(yh,{className:e,children:[n.jsxs(gh,{freightConfig:c.freightConfig,children:[n.jsx(dh,{children:n.jsx(hh,{onUpdateFreightItems:j,skuId:r,quantity:o,size:s,sellerId:t,local:a,setError:m,setIsButtonClicked:y,freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex})}),f?n.jsx(Hs,{size:s,message:f,setError:m}):h.length>0&&n.jsx(Hs,{size:s,message:c.freightConfig.messages.delivered_by,seller:i})]}),_&&!f?h.length>0&&n.jsxs(lh,{children:[n.jsx(uh,{children:h.filter(({id:v})=>!v.includes("Retirada")).map(v=>n.jsx(ch,{id:v.id,value:ie.freightParsePrice({valueInCents:v.price,hasFree:!1,freeTaxMessage:c.freightConfig.messages.free_tax}),title:v.name,paragraph:`${c.freightConfig.messages.prefix_days}${fh(v.shippingEstimate)}`,radioValue:u,changeValue:b},v.id))}),c.deliveryInfoBoxesAllowed?n.jsx(ah,{icon:c.freightConfig.icons.delivery_truck,packageUnit:c.freightConfig.messages.unit_amout,title:c.freightConfig.messages.delivered_amount_packages,subtitle:"",packageCount:1,labelDescription:"Label",freightConfig:c.freightConfig,toolTipZIndex:c.toolTipZIndex??999}):n.jsx(n.Fragment,{})]}):null]})},et={"pcd-navigation--breadcrumb":"_pcd-navigation--breadcrumb_54b2o_1","pdc-navigation--content":"_pdc-navigation--content_54b2o_28","pdc-navigation--filters":"_pdc-navigation--filters_54b2o_54","pdc-navigation--filters--content":"_pdc-navigation--filters--content_54b2o_67","pdc-navigation--selected":"_pdc-navigation--selected_54b2o_137","pdc-navigation--selected--container":"_pdc-navigation--selected--container_54b2o_150","pdc-navigation":"_pdc-navigation_54b2o_28"},vh=({children:e,href:t,isLast:r,title:o,ICONS:s})=>n.jsx(g.BreadCrumb.Item,{adornment:{end:r&&n.jsx(g.Icon,{name:s.arrow_right})},children:r?n.jsx(Ue,{href:t??"/",size:"medium",title:o,disableUnderline:!0,children:e}):e}),xu=({ICONS:e,...t})=>{var a;const{state:r}=sr(),o=r!=null&&r.term&&r.term.length>0?`/${r.term}`:"",s=decodeURIComponent((a=r==null?void 0:r.base)!=null&&a.length?r.base:o??o).slice(1).split("/"),i=jc(s);return n.jsx("div",{...t,className:et["pcd-navigation--breadcrumb"],children:n.jsx(g.BreadCrumb.DivWrapper,{children:n.jsx(g.BreadCrumb.List,{children:Array.isArray(i)&&i.map((c,l)=>{var u,p;return x.createElement(vh,{...c,isLast:l!==i.length-1,key:c.href,title:(u=c.name)==null?void 0:u.replace(/-/g," "),ICONS:e},(p=c.name)==null?void 0:p.replace(/-/g," "))})})})})};xu.displayName="PLPNavigation.BreadCrumb";const Cu=({children:e,ICONS:t,PDC_NAVIGATION:r,searchParams:o,...s})=>n.jsxs("div",{...s,className:et["pdc-navigation--content"],children:[n.jsx(pt.Filters,{ICONS:t,PDC_NAVIGATION:r,searchParams:o}),e]});Cu.displayName="PLPNavigation.Content";const bh="_sort_35wro_1",dr={sort:bh,"sort-list-wrapper":"_sort-list-wrapper_35wro_8","sort-list":"_sort-list_35wro_8","sort-button":"_sort-button_35wro_25"},xh=({children:e,sortListOpen:t,btnAdornment:r,style:o,...s})=>n.jsx(g.Button,{...s,adornment:{end:t?r==null?void 0:r.listOpen:r==null?void 0:r.listClosed},size:"small",variant:"tertiary",style:{...o,textDecoration:"none"},className:dr["sort-button"],children:e}),Ch=e=>n.jsx(g.RadioButton.Radio,{...e}),Sh=({children:e,className:t,name:r,...o})=>n.jsx(g.RadioButton.Group,{...o,name:r||"sort-group",className:g.helpers.classNameConcat(dr["sort-list"],t),children:e}),jh=({children:e,className:t,shadow:r=!0,padding:o="small",height:s="fit-content",...i})=>n.jsx(g.Card,{...i,shadow:r,className:g.helpers.classNameConcat(dr["sort-list-wrapper"],t),padding:o,height:s,children:e}),Su=x.forwardRef(({children:e,className:t,...r},o)=>n.jsx("div",{...r,ref:o,className:g.helpers.classNameConcat(dr.sort,t),children:e}));Su.displayName="SortRoot";const Ho=({handleSelectValue:e,sortListOpen:t,setSortListOpen:r,searchParams:o,CONSTANTS:s,...i})=>{var d;const a=(d=o==null?void 0:o.get("sort"))==null?void 0:d.replace(":","_"),[c,l]=x.useState(a),{sendDataLayerEvent:u}=ge();x.useEffect(()=>{l(a||void 0)},[a]);const{ref:p}=Wl(()=>r(!1)),h=f=>{const m=f.target.value;l(m),typeof e=="function"&&e(m),u({functionKey:"filterEvent",data:{customData:{ordering:yt.options[m]}}}),r(!1)};return n.jsxs(Su,{...i,ref:p,children:[n.jsx(xh,{btnAdornment:{listOpen:n.jsx(g.Icon,{name:s.ICONS.arrow_up,size:"small"}),listClosed:n.jsx(g.Icon,{name:s.ICONS.arrow_down,size:"small"})},sortListOpen:t,onClick:()=>r(!t),children:c?yt.options[c]:yt.placeholder},"sort-button"),t&&n.jsx(jh,{children:n.jsx(Sh,{name:"sort-group",value:c??"",onChange:h,children:Object.keys(yt.options).map(f=>n.jsx(Ch,{label:yt.options[f],value:f},f))})})]})};Ho.displayName="Sort";const ju=x.createContext({}),Eh=({children:e,...t})=>{const[r,o]=x.useState(!1);return n.jsx(ju.Provider,{value:x.useMemo(()=>({...t,openOrderBy:r,setOpenOrderBy:o}),[t,r,o]),children:e})},wh=()=>{const e=x.useContext(ju);if(e===void 0)throw new Error("usePLPNavigationContext must be used within a PDCNavigationProvider");return e},Eu=({ICONS:e,PDC_NAVIGATION:t,searchParams:r})=>{const{openOrderBy:o,onSort:s,setOpenFilters:i,setOpenOrderBy:a}=wh();return n.jsxs("div",{className:et["pdc-navigation--filters"],children:[n.jsx(pt.BreadCrumb,{ICONS:e}),n.jsxs("div",{className:et["pdc-navigation--filters--content"],children:[n.jsx(Ho,{handleSelectValue:c=>s(c??"release_desc"),sortListOpen:o,setSortListOpen:a,CONSTANTS:{ICONS:e},searchParams:r}),n.jsx(g.Button,{adornment:{end:n.jsx(g.Icon,{name:e.arrow_down})},onClick:()=>i(!0),size:"small",variant:"tertiary",children:t.filter_button}),n.jsx(pt.Total,{})]})]})};Eu.displayName="PLPNavigation.Filters";const wu=({children:e,onSort:t,setOpenFilters:r,style:o,PDC_NAVIGATION:s,ICONS:i,searchParams:a,...c})=>{const l=x.useRef(null);return n.jsx(Eh,{onSort:t,setOpenFilters:r,children:n.jsx("div",{...c,className:et["pdc-navigation"],ref:l,style:{...o},children:n.jsx(pt.Content,{ICONS:i,PDC_NAVIGATION:s,searchParams:a,children:e})})})};wu.displayName="Root";const Ru=({callback:e,selected:t,CONSTANTS:r,...o})=>n.jsx("div",{...o,className:et["pdc-navigation--selected"],children:n.jsx("div",{className:et["pdc-navigation--selected--container"],children:Array.isArray(t)?t.map(s=>s.key==="productclusterids"?null:n.jsx(pt.SelectedItem,{callback:e,facet:s,CONSTANTS:r},s.value)):n.jsx(n.Fragment,{})})});Ru.displayName="PLPNavigation.Selected";const Uo=({key:e,PLP_FILTERS:t})=>t.some(r=>r.key===e)?e==="cores-filtraveis":!1,Wo=({value:e,PLP_FILTERS_COLORS:t})=>{var r;return((r=t.find(o=>o.value===e))==null?void 0:r.color)??"#F2F2F2"},Au=({key:e,PLP_FILTERS:t})=>{var r;return(r=t.find(o=>o.key===e))==null?void 0:r.label},Pu=({key:e,PLP_FILTERS:t})=>{var r;return((r=t.find(o=>o.key===e))==null?void 0:r.order)??0},mo=({value:e})=>{const[t,r]=e.split(":").length===2?e.split(":"):[0,0],o=ie.formatPriceToCurrency(Number(r));return`${ie.formatPriceToCurrency(Number(t))} até ${o}`},Rh=({items:e})=>{const t=e.flatMap(s=>[s.range.from,s.range.to]),r=Math.min(...t.map(Math.abs)),o=Math.max(...t.map(Math.abs));return[r,o]},Iu=Object.freeze(Object.defineProperty({__proto__:null,checkedColor:Uo,createTagPrice:mo,getAbsoluteMinMax:Rh,getColor:Wo,getName:Au,getOrder:Pu},Symbol.toStringTag,{value:"Module"})),Be={"filter--empty":"_filter--empty_1mjas_1","filter--item":"_filter--item_1mjas_14","filter--item--price":"_filter--item--price_1mjas_19","filter--item--toggle":"_filter--item--toggle_1mjas_19","filter--item--toggle--container":"_filter--item--toggle--container_1mjas_30","filter--modal--body":"_filter--modal--body_1mjas_79","filter--modal--body--content":"_filter--modal--body--content_1mjas_87","filter--modal--footer":"_filter--modal--footer_1mjas_96","filter--modal":"_filter--modal_1mjas_79","filter--loading":"_filter--loading_1mjas_176","filter--selected":"_filter--selected_1mjas_206","filter--selected--content":"_filter--selected--content_1mjas_210"},Nu=({columns:e=2,CONSTANTS:t,...r})=>{var i;const{filters:o,onToggleFacet:s}=ht();return n.jsxs("div",{...r,className:Be["filter--modal--body--content"],children:[Array.isArray(o.facets)&&o.facets.map(a=>n.jsx(He.Item,{columns:e,facet:a,onToggleFacet:s,CONSTANTS:t},a.key)),!((i=o.facets)!=null&&i.length)&&n.jsx(He.Empty,{PLP_FILTERS_EMPTY:t.PLP_FILTERS_EMPTY})]})};Nu.displayName="Filter.Item.Content";const Tu=({PLP_FILTERS_EMPTY:e})=>{const t=()=>{window.history.back()};return n.jsxs("div",{className:Be["filter--empty"],children:[n.jsxs(g.TextStructure.DivWrapper,{children:[n.jsx("h4",{children:e.title}),n.jsx("p",{children:e.subtitle})]}),n.jsx(g.Button,{onClick:()=>t(),variant:"tertiary",children:e.button})]})};Tu.displayName="Filter.Empty";const Ou=({columns:e,facet:t,onToggleFacet:r,CONSTANTS:o,...s})=>{const i=Pu({key:t.key,PLP_FILTERS:o.PLP_FILTERS}),a=()=>{if(t.__typename==="FacetBoolean"){if(t.key==="cores-filtraveis")return n.jsx(He.Colors,{onToggleFacet:r,values:t.values,PLP_FILTERS:o.PLP_FILTERS,PLP_FILTERS_COLORS:o.PLP_FILTERS_COLORS});if(t.key==="tamanho")return n.jsx(He.Sizes,{onToggleFacet:r,values:t.values,PLP_SIZE_ORDER:o.PLP_SIZE_ORDER});if(t.key==="category-2")return n.jsx(He.Toggle,{columns:e,facetKey:t.key,onToggleFacet:r,values:t.values,ICONS:o.ICONS})}return t.__typename==="FacetRange"?n.jsx(He.Price,{facet:t}):n.jsx("p",{children:"Filter not support!!!"})};return n.jsx("div",{...s,className:Be["filter--item"],style:{order:i},children:n.jsxs(g.Accordion.Wrapper,{style:{width:"100%"},children:[n.jsx(g.Accordion.Header,{id:t.key,closeIndicator:n.jsx(g.Icon,{name:o.ICONS.arrow_up}),openIndicator:n.jsx(g.Icon,{name:o.ICONS.arrow_down}),children:n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("h4",{className:"typography-style-body-sm",children:Au({key:t.key,PLP_FILTERS:o.PLP_FILTERS})})})})}),n.jsx(g.Accordion.Body,{children:a()})]})})};Ou.displayName="Filter.Item";const Vo={"product-variation-list--list":"_product-variation-list--list_e0he8_1","product-variation-list--title":"_product-variation-list--title_e0he8_10","product-variation-list":"_product-variation-list_e0he8_1"},ku=({children:e,...t})=>n.jsx("div",{...t,className:Vo["product-variation-list--list"],children:e});ku.displayName="ProductVariationList.List";const Mu=({fill:e="#1352C7",src:t="",type:r="size",text:o,...s})=>{const{nextimage:i}=Re();return r==="size"?n.jsxs(g.ToggleSize.Wrapper,{...s,size:"large",variation:"ghost",children:[n.jsx(g.ToggleSize.DisabledAdornment,{title:"disabled-adornment-size"}),n.jsx(g.ToggleSize.Text,{children:o})]}):n.jsxs(g.ToggleStyle.Wrapper,{...s,size:"small",title:"wrapper-texture",children:[n.jsx(g.ToggleStyle.DisabledAdornment,{title:"disabled-adornment-texture"}),r==="color"?n.jsx(g.ToggleStyle.Color,{background:e,title:"color"}):n.jsx(g.ToggleStyle.Texture,{title:"texture",children:n.jsx(i,{alt:o??"image",height:40,src:t,width:40})})]})};Mu.displayName="ProductVariationList.Option";const Lu=({children:e,...t})=>n.jsx("div",{className:Vo["product-variation-list"],...t,children:e});Lu.displayName="ProductVariationList.Root";const Du=({children:e,title:t,...r})=>n.jsxs("div",{...r,className:Vo["product-variation-list--title"],children:[t?n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.SectionWrapper,{children:n.jsx("p",{children:t})})}):n.jsx(n.Fragment,{}),e]});Du.displayName="ProductVariationList.Title";const Je={List:ku,Option:Mu,Title:Du,Root:Lu},$u=({onToggleFacet:e,values:t,PLP_FILTERS:r,PLP_FILTERS_COLORS:o,...s})=>n.jsx(Je.Root,{...s,children:n.jsx(Je.List,{children:Array.isArray(t)&&t.map(({key:i,selected:a,value:c})=>n.jsx(Je.Option,{active:a,"data-color":Uo({key:i,PLP_FILTERS:r}),fill:Wo({value:c,PLP_FILTERS_COLORS:o}),onClick:()=>e({key:i,value:c}),type:"color"},`${i}-${c}`))})});$u.displayName="Filter.Item.Color";const Bu=({facet:e,...t})=>{var u,p;const{filters:{selected:r},price:o,onToggleFacet:s}=ht(),[i,a]=(o==null?void 0:o.split(":").map(Number))??[0,100],[c,l]=((p=(u=r==null?void 0:r.find(({key:h})=>h==="price"))==null?void 0:u.value)==null?void 0:p.split(":").map(Number))??[i,a];return n.jsx("div",{...t,className:Be["filter--item--price"],children:n.jsxs(g.Slider.SliderDual,{format:"price",initialValue:[c<i?i:c,l>a?a:l],min:i,max:a,type:"dual",step:1,onFinish:h=>{var d,f;h&&s({key:"price",value:`${(d=h.range)==null?void 0:d.min}:${(f=h.range)==null?void 0:f.max}`})},children:[n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("p",{"data-min-value":!0})})}),n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("p",{"data-max-value":!0})})})]})})};Bu.displayName="Filter.Item.Price";const zu=({onToggleFacet:e,values:t,PLP_SIZE_ORDER:r,...o})=>{const s=[...t].sort((i,a)=>{const c=r.indexOf(i.name),l=r.indexOf(a.name);return c-l});return n.jsx(Je.Root,{...o,children:n.jsx(Je.List,{children:Array.isArray(s)&&s.map(({key:i,selected:a,value:c})=>n.jsx(Je.Option,{active:a,text:c,type:"size",onClick:()=>e({key:i,value:c})},c))})})};zu.displayName="Filter.Item.Sizes";const Fu=({columns:e,facetKey:t,onToggleFacet:r,values:o,ICONS:s,...i})=>n.jsx("div",{...i,className:Be["filter--item--toggle"],children:n.jsx("div",{className:Be["filter--item--toggle--container"],style:{gridTemplateColumns:`repeat(${e}, 1fr)`},children:Array.isArray(o)&&o.map(a=>n.jsx(g.Checkbox,{label:(a==null?void 0:a.name)??"",adornment:n.jsx(g.Icon,{name:s.check}),checked:a.selected,onChange:()=>r(a)},a.value))})});Fu.displayName="Filter.Item.Toggle";const qu=({...e})=>{const{isLoading:t}=ht();return n.jsx("div",{className:Be["filter--loading"],"data-active":t,...e,children:n.jsx(g.Spinner,{indicatorColor:"#000",background:"#222"})})};qu.displayName="Filter.Loading";const Hu=({children:e,className:t,isMobile:r=!1,CONSTANTS:{PLP_FILTERS_TITLE:o,ICONS:s}})=>{var p;const{deleteAllFacets:i,filters:a,isOpen:c,target:l,setIsOpen:u}=ht();return n.jsxs(g.Modal.Root,{className:g.helpers.classNameConcat(Be["filter--modal"],t),isMobile:r??!1,isOpen:c,parent:l,setIsOpen:u,variant:r?"sideBottom":"sideRight",style:{zIndex:99},children:[n.jsxs(g.Modal.Header,{navigation:"top",children:[n.jsx(g.Modal.Controls,{navigation:"top",isMobile:r,children:n.jsx(g.Button,{"data-close":!0,iconNameStart:s.close,size:"small",variant:"tertiary",style:{marginLeft:"auto"}})}),n.jsx(g.Modal.Title,{navigation:"top",title:o})]}),n.jsxs(g.Modal.Body,{style:{width:500},children:[n.jsx("div",{className:Be["filter--modal--body"],children:e}),n.jsx(He.Loading,{})]}),n.jsx(g.Modal.Footer,{children:n.jsxs("div",{className:Be["filter--modal--footer"],children:[n.jsx(g.Button,{"data-close":!0,size:"large",variant:"primary",children:(p=a.facets)!=null&&p.length?"ver resultados":"fechar"}),n.jsx(g.Button,{"data-close":!0,onClick:()=>i(),variant:"tertiary",children:"limpar filtros"})]})})]})};Hu.displayName="Filter.Modal";const Uu=({children:e,className:t,isMobile:r,CONSTANTS:o,...s})=>n.jsx(Nc,{...s,PLP_FILTERS:o.PLP_FILTERS,children:n.jsx(He.Modal,{className:t,isMobile:r,CONSTANTS:o,children:e})});Uu.displayName="Filter.Root";const Wu=({ICONS:e,PLP_FILTERS_COLORS:t,PLP_FILTERS:r})=>{const{filters:o,onToggleFacet:s}=ht();return n.jsx("div",{className:Be["filter--selected"],children:n.jsx("div",{className:Be["filter--selected--content"],children:Array.isArray(o.selected)&&o.selected.map(({key:i,value:a})=>i==="productclusterids"?null:n.jsx(g.Tag,{title:i==="price"?mo({value:a}):a,adornment:{end:n.jsx(g.Icon,{name:e.close,size:"x-small"})},colorSquare:Wo({value:a,PLP_FILTERS_COLORS:t}),onClick:()=>s({key:i,value:a}),squareShow:Uo({key:i,PLP_FILTERS:r}),size:"medium",variant:"primary",children:i==="price"?mo({value:a}):a},a))})})};Wu.displayName="Filter.Selected";const He={Colors:$u,Content:Nu,Empty:Tu,Modal:Hu,Item:Ou,Root:Uu,Loading:qu,Selected:Wu,Price:Bu,Sizes:zu,Toggle:Fu},{checkedColor:Ah,createTagPrice:Us,getColor:Ph}=Iu,Vu=({callback:e,facet:t,CONSTANTS:r})=>n.jsx(g.Tag,{title:(t==null?void 0:t.key)==="price"?Us({value:t.value}):t.value.toUpperCase(),adornment:{end:n.jsx(g.Icon,{name:r.ICONS.close,size:"x-small"})},colorSquare:Ph({value:t.value,PLP_FILTERS_COLORS:r.PLP_FILTERS_COLORS}),onClick:()=>{typeof e=="function"&&e(t,!0)},squareShow:Ah({key:t.key,PLP_FILTERS:r.PLP_FILTERS}),size:"medium",variant:"primary",children:(t==null?void 0:t.key)==="price"?Us({value:t.value}):t.value.toUpperCase()});Vu.displayName="PLPNavigation.Selected.Item";const Gu=()=>n.jsx(g.TextStructure.Root,{children:n.jsx("p",{id:"pdc-navigation--total"})});Gu.displayName="PLPNavigation.Total";const pt={BreadCrumb:xu,Content:Cu,Filters:Eu,Root:wu,Selected:Ru,SelectedItem:Vu,Total:Gu},Go={"product-list--banner":"_product-list--banner_sfibj_1","product-list--card":"_product-list--card_sfibj_30","product-list":"_product-list_sfibj_1"},Ku=({className:e,children:t,columns:r=1,isMobile:o=!1,gap:s=8,position_grid:i,totalColumns:a=4,PRODUCT_CARD_IMAGE_ASPECT_RATIO:c,...l})=>{const u=x.useMemo(()=>r%a===0?"initial":o||r<2?c:c.split("/").reverse().join("/"),[r,a,o]);return n.jsx("div",{...l,className:g.helpers.classNameConcat(Go["product-list--banner"],e),style:{aspectRatio:u,maxWidth:`${r/a*100}%`,order:i,padding:s/2},children:t})};Ku.displayName="ProductList.Banner";const Xu=({isKit:e,parent:t,productId:r,setNotify:o,CONSTANTS:s})=>{const{router:i}=Re(),a=x.useRef(!1),c=x.useRef(null),[l,u]=x.useState([]),p=m=>i.push(m??""),h=async m=>{try{const _=await fetch("/api/catalog/product/similars",{method:"POST",body:JSON.stringify({productId:m,filterTexture:s.TEXTURE_IMAGE}),priority:"low"});if(!_.ok)throw new Error("Erro ao buscar similares.");const y=await _.json();u(y)}catch(_){console.error(_)}},d=x.useCallback(m=>{!r||!m||(typeof h=="function"&&h(r),a.current=!0)},[r]),f=x.useCallback((m,_)=>{if(!m.isIntersecting){s.PLP_INFINITE_SCROLL&&c.current&&(clearTimeout(c.current),c.current=null);return}if(m.intersectionRatio>=_.threshold&&!a.current){if(s.PLP_INFINITE_SCROLL){c.current=setTimeout(()=>{d(!0)},s.PLP_PRODUCT_SIMILAR_DELAY);return}d(!0)}},[d]);return x.useEffect(()=>{if(e||!t.current)return;const m={root:null,threshold:.1},_=new IntersectionObserver(([y])=>{f(y,m)},m);return _.observe(t.current),()=>{c.current&&clearTimeout(c.current),_.disconnect()}},[f,t,e]),n.jsx(ve.Actions,{...l,callback:p,isKit:e,children:!e&&n.jsx(ve.SizeSelector,{setNotify:o})})};Xu.displayName="ProductList.Card.Actions";const Yu=({className:e,children:t,gap:r=32,item:o,isMobile:s,order:i,tag:a,hasMaxWidth:c=!0,index:l,setSkuSelected:u,showVideo:p,CONSTANTS:h,WishListToggle:d,...f})=>{const m=x.useRef(null),{availability:{status:_}}=o,y=x.useCallback((j,v)=>{var S;typeof u=="function"&&u((S=j.isVariantOf)==null?void 0:S.hasVariant,v)},[u]),b=o.name.substring(0,4).toLowerCase()==="kit ";return n.jsxs("div",{...f,className:g.helpers.classNameConcat(Go["product-list--card"],e),"data-mobile":s,"data-order":i,ref:m,style:{...c&&{maxWidth:s?"50%":"25%"},order:i,padding:r/2},children:[n.jsxs(ve.Root,{item:o,isMobile:s,index:l,size:s?"small":"medium",order:i,outStock:!_,CONSTANTS:h,WishListToggle:d,children:[n.jsx(ve.Header,{product:o,tag:a==null?void 0:a.commercial}),n.jsx(ve.Media,{showVideo:p,hasPriority:!0}),n.jsxs(ve.Wrapper,{type:"body",children:[n.jsx(ve.Title,{tag:a==null?void 0:a.institucional}),n.jsx(Xu,{productId:o.isVariantOf.productGroupID,parent:m,setNotify:y,isKit:b,CONSTANTS:h}),!b&&n.jsx(ve.OutStock,{callback:y})]}),n.jsx(ve.Wrapper,{type:"footer",children:_&&n.jsx(ve.BuyButton,{isKit:b})})]}),t]})};Yu.displayName="ProductList.Card";const Qu=({children:e,className:t,...r})=>n.jsx("div",{...r,className:g.helpers.classNameConcat(Go["product-list"],t),children:e});Qu.displayName="ProductList.Grid";const Ih={Banner:Ku,Card:Yu,Root:Qu,helpers:np},Nh="_footer__bottom_1o9af_2",Th="_footer__wrapper_1o9af_10",Oh="_footer__main_1o9af_39",kh="_footer__legalInformation_1o9af_55",Mh="_footer__column_1o9af_77",Lh="_footer__columnContent_1o9af_87",Dh="_footer__item_1o9af_91",$h="_footer__itemLink_1o9af_107",Bh="_footer__columnTitle_1o9af_122",zh="_footer__columnTitleIcon_1o9af_134",Fh="_footer__iconList_1o9af_147",qh="_footer__itemSmallText_1o9af_157",Hh="_payment_1o9af_168",Uh="_footer__iconContainer_1o9af_173",Wh="_footer__iconListSubHeader_1o9af_178",Vh="_accordionWrapper_1o9af_200",Gh="_accordionHeader_1o9af_204",Kh="_accordionTextWrapper_1o9af_208",he={footer__bottom:Nh,footer__wrapper:Th,footer__main:Oh,footer__legalInformation:kh,footer__column:Mh,footer__columnContent:Lh,footer__item:Dh,footer__itemLink:$h,footer__columnTitle:Bh,footer__columnTitleIcon:zh,footer__iconList:Fh,footer__itemSmallText:qh,payment:Hh,footer__iconContainer:Uh,footer__iconListSubHeader:Wh,accordionWrapper:Vh,accordionHeader:Gh,accordionTextWrapper:Kh,"footer--stamps":"_footer--stamps_1o9af_247","footer--stamps--company":"_footer--stamps--company_1o9af_254","support-container":"_support-container_1o9af_258","support-section":"_support-section_1o9af_277","support-text":"_support-text_1o9af_319","support-items":"_support-items_1o9af_329","support-item":"_support-item_1o9af_329"};var Zu={},Ko={},It={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"warnOnce",{enumerable:!0,get:function(){return t}});let t=r=>{};if(process.env.NODE_ENV!=="production"){const r=new Set;t=o=>{r.has(o)||console.warn(o),r.add(o)}}})(It);var Ju={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return t}});function t(r){let{widthInt:o,heightInt:s,blurWidth:i,blurHeight:a,blurDataURL:c,objectFit:l}=r;const u=20,p=i?i*40:o,h=a?a*40:s,d=p&&h?"viewBox='0 0 "+p+" "+h+"'":"",f=d?"none":l==="contain"?"xMidYMid":l==="cover"?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+d+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+u+"'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='"+u+"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+f+"' style='filter: url(%23b);' href='"+c+"'/%3E%3C/svg%3E"}})(Ju);var fr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,i){for(var a in i)Object.defineProperty(s,a,{enumerable:!0,get:i[a]})}t(e,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return o}});const r=["default","imgix","cloudinary","akamai","custom"],o={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}})(fr);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return f}});const t=It,r=Ju,o=fr,s=["lazy","eager",void 0];function i(m){return m.default!==void 0}function a(m){return m.src!==void 0}function c(m){return typeof m=="object"&&(i(m)||a(m))}const l=new Map;let u;function p(m){return typeof m>"u"?m:typeof m=="number"?Number.isFinite(m)?m:NaN:typeof m=="string"&&/^[0-9]+$/.test(m)?parseInt(m,10):NaN}function h(m,_,y){let{deviceSizes:b,allSizes:j}=m;if(y){const S=/(^|\s)(1?\d?\d)vw/g,E=[];for(let R;R=S.exec(y);R)E.push(parseInt(R[2]));if(E.length){const R=Math.min(...E)*.01;return{widths:j.filter(C=>C>=b[0]*R),kind:"w"}}return{widths:j,kind:"w"}}return typeof _!="number"?{widths:b,kind:"w"}:{widths:[...new Set([_,_*2].map(S=>j.find(E=>E>=S)||j[j.length-1]))],kind:"x"}}function d(m){let{config:_,src:y,unoptimized:b,width:j,quality:v,sizes:S,loader:E}=m;if(b)return{src:y,srcSet:void 0,sizes:void 0};const{widths:R,kind:C}=h(_,j,S),A=R.length-1;return{sizes:!S&&C==="w"?"100vw":S,srcSet:R.map((O,w)=>E({config:_,src:y,quality:v,width:O})+" "+(C==="w"?O:w+1)+C).join(", "),src:E({config:_,src:y,quality:v,width:R[A]})}}function f(m,_){let{src:y,sizes:b,unoptimized:j=!1,priority:v=!1,loading:S,className:E,quality:R,width:C,height:A,fill:O=!1,style:w,onLoad:N,onLoadingComplete:I,placeholder:B="empty",blurDataURL:T,fetchPriority:H,layout:U,objectFit:q,objectPosition:G,lazyBoundary:W,lazyRoot:z,...Z}=m;const{imgConf:P,showAltText:k,blurComplete:D,defaultLoader:K}=_;let re,J=P||o.imageConfigDefault;if("allSizes"in J)re=J;else{const V=[...J.deviceSizes,...J.imageSizes].sort((Ae,Y)=>Ae-Y),fe=J.deviceSizes.sort((Ae,Y)=>Ae-Y);re={...J,allSizes:V,deviceSizes:fe}}let L=Z.loader||K;delete Z.loader,delete Z.srcSet;const ee="__next_img_default"in L;if(ee){if(re.loader==="custom")throw new Error('Image with src "'+y+`" is missing "loader" prop.
5
5
  Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{const V=L;L=fe=>{const{config:Ae,...Y}=fe;return V(Y)}}if(U){U==="fill"&&(O=!0);const V={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}},fe={responsive:"100vw",fill:"100vw"},Ae=V[U];Ae&&(w={...w,...Ae});const Y=fe[U];Y&&!b&&(b=Y)}let Q="",te=p(C),$=p(A),M,ne;if(c(y)){const V=i(y)?y.default:y;if(!V.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(V));if(!V.height||!V.width)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(V));if(M=V.blurWidth,ne=V.blurHeight,T=T||V.blurDataURL,Q=V.src,!O){if(!te&&!$)te=V.width,$=V.height;else if(te&&!$){const fe=te/V.width;$=Math.round(V.height*fe)}else if(!te&&$){const fe=$/V.height;te=Math.round(V.width*fe)}}}y=typeof y=="string"?y:Q;let ae=!v&&(S==="lazy"||typeof S>"u");(!y||y.startsWith("data:")||y.startsWith("blob:"))&&(j=!0,ae=!1),re.unoptimized&&(j=!0),ee&&y.endsWith(".svg")&&!re.dangerouslyAllowSVG&&(j=!0),v&&(H="high");const ue=p(R);if(process.env.NODE_ENV!=="production"){if(re.output==="export"&&ee&&!j)throw new Error("Image Optimization using the default loader is not compatible with `{ output: 'export' }`.\n Possible solutions:\n - Remove `{ output: 'export' }` and run \"next start\" to run server mode including the Image Optimization API.\n - Configure `{ images: { unoptimized: true } }` in `next.config.js` to disable the Image Optimization API.\n Read more: https://nextjs.org/docs/messages/export-image-api");if(!y)j=!0;else if(O){if(C)throw new Error('Image with src "'+y+'" has both "width" and "fill" properties. Only one should be used.');if(A)throw new Error('Image with src "'+y+'" has both "height" and "fill" properties. Only one should be used.');if(w!=null&&w.position&&w.position!=="absolute")throw new Error('Image with src "'+y+'" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.');if(w!=null&&w.width&&w.width!=="100%")throw new Error('Image with src "'+y+'" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.');if(w!=null&&w.height&&w.height!=="100%")throw new Error('Image with src "'+y+'" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.')}else{if(typeof te>"u")throw new Error('Image with src "'+y+'" is missing required "width" property.');if(isNaN(te))throw new Error('Image with src "'+y+'" has invalid "width" property. Expected a numeric value in pixels but received "'+C+'".');if(typeof $>"u")throw new Error('Image with src "'+y+'" is missing required "height" property.');if(isNaN($))throw new Error('Image with src "'+y+'" has invalid "height" property. Expected a numeric value in pixels but received "'+A+'".')}if(!s.includes(S))throw new Error('Image with src "'+y+'" has invalid "loading" property. Provided "'+S+'" should be one of '+s.map(String).join(",")+".");if(v&&S==="lazy")throw new Error('Image with src "'+y+`" has both "priority" and "loading='lazy'" properties. Only one should be used.`);if(B!=="empty"&&B!=="blur"&&!B.startsWith("data:image/"))throw new Error('Image with src "'+y+'" has invalid "placeholder" property "'+B+'".');if(B!=="empty"&&te&&$&&te*$<1600&&(0,t.warnOnce)('Image with src "'+y+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),B==="blur"&&!T){const V=["jpeg","png","webp","avif"];throw new Error('Image with src "'+y+`" has "placeholder='blur'" property but is missing the "blurDataURL" property.
6
6
  Possible solutions:
7
7
  - Add a "blurDataURL" property, the contents should be a small Data URL to represent the image
@@ -10,9 +10,9 @@ Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{con
10
10
  Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`)}if("ref"in Z&&(0,t.warnOnce)('Image with src "'+y+'" is using unsupported "ref" property. Consider using the "onLoadingComplete" property instead.'),!j&&!ee){const V=L({config:re,src:y,width:te||400,quality:ue||75});let fe;try{fe=new URL(V)}catch{}(V===y||fe&&fe.pathname===y&&!fe.search)&&(0,t.warnOnce)('Image with src "'+y+`" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.
11
11
  Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`)}for(const[V,fe]of Object.entries({layout:U,objectFit:q,objectPosition:G,lazyBoundary:W,lazyRoot:z}))fe&&(0,t.warnOnce)('Image with src "'+y+'" has legacy prop "'+V+`". Did you forget to run the codemod?
12
12
  Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);if(typeof window<"u"&&!u&&window.PerformanceObserver){u=new PerformanceObserver(V=>{for(const Ae of V.getEntries()){var fe;const Y=(Ae==null||(fe=Ae.element)==null?void 0:fe.src)||"",oe=l.get(Y);oe&&!oe.priority&&oe.placeholder==="empty"&&!oe.src.startsWith("data:")&&!oe.src.startsWith("blob:")&&(0,t.warnOnce)('Image with src "'+oe.src+`" was detected as the Largest Contentful Paint (LCP). Please add the "priority" property if this image is above the fold.
13
- Read more: https://nextjs.org/docs/api-reference/next/image#priority`)}});try{u.observe({type:"largest-contentful-paint",buffered:!0})}catch(V){console.error(V)}}}const de=Object.assign(O?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:q,objectPosition:G}:{},k?{}:{color:"transparent"},w),ce=!D&&B!=="empty"?B==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:te,heightInt:$,blurWidth:M,blurHeight:ne,blurDataURL:T||"",objectFit:de.objectFit})+'")':'url("'+B+'")':null;let F=ce?{backgroundSize:de.objectFit||"cover",backgroundPosition:de.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:ce}:{};process.env.NODE_ENV==="development"&&F.backgroundImage&&B==="blur"&&T!=null&&T.startsWith("/")&&(F.backgroundImage='url("'+T+'")');const _e=d({config:re,src:y,unoptimized:j,width:te,quality:ue,sizes:b,loader:L});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let V;try{V=new URL(_e.src)}catch{V=new URL(_e.src,window.location.href)}l.set(V.href,{src:y,priority:v,placeholder:B})}return{props:{...Z,loading:ae?"lazy":S,fetchPriority:H,width:te,height:$,decoding:"async",className:E,style:{...de,...F},sizes:_e.sizes,srcSet:_e.srcSet,src:_e.src},meta:{unoptimized:j,priority:v,placeholder:B,fill:O}}}})(Xo);var go={exports:{}},Xt={exports:{}},Wr={},Vs;function Xh(){return Vs||(Vs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});const t=x,r=typeof window>"u",o=r?()=>{}:t.useLayoutEffect,s=r?()=>{}:t.useEffect;function i(a){const{headManager:c,reduceComponentsToState:l}=a;function u(){if(c&&c.mountedInstances){const h=t.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(l(h,a))}}if(r){var p;c==null||(p=c.mountedInstances)==null||p.add(a.children),u()}return o(()=>{var h;return c==null||(h=c.mountedInstances)==null||h.add(a.children),()=>{var d;c==null||(d=c.mountedInstances)==null||d.delete(a.children)}}),o(()=>(c&&(c._pendingUpdate=u),()=>{c&&(c._pendingUpdate=u)})),s(()=>(c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null),()=>{c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null)})),null}}(Wr)),Wr}var Vr={},Gs;function Yh(){return Gs||(Gs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return o}});const o=Oe._(x).default.createContext({});process.env.NODE_ENV!=="production"&&(o.displayName="AmpStateContext")}(Vr)),Vr}var Gr={},Ks;function ed(){return Ks||(Ks=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return o}});const o=Oe._(x).default.createContext({});process.env.NODE_ENV!=="production"&&(o.displayName="HeadManagerContext")}(Gr)),Gr}var Kr={},Xs;function Qh(){return Xs||(Xs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isInAmpMode",{enumerable:!0,get:function(){return t}});function t(r){let{ampFirst:o=!1,hybrid:s=!1,hasQuery:i=!1}=r===void 0?{}:r;return o||s&&i}}(Kr)),Kr}var Ys;function Zh(){return Ys||(Ys=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(j,v){for(var S in v)Object.defineProperty(j,S,{enumerable:!0,get:v[S]})}r(t,{defaultHead:function(){return h},default:function(){return b}});const o=Oe,i=ft._(x),a=o._(Xh()),c=Yh(),l=ed(),u=Qh(),p=It;function h(j){j===void 0&&(j=!1);const v=[i.default.createElement("meta",{charSet:"utf-8"})];return j||v.push(i.default.createElement("meta",{name:"viewport",content:"width=device-width"})),v}function d(j,v){return typeof v=="string"||typeof v=="number"?j:v.type===i.default.Fragment?j.concat(i.default.Children.toArray(v.props.children).reduce((S,E)=>typeof E=="string"||typeof E=="number"?S:S.concat(E),[])):j.concat(v)}const f=["name","httpEquiv","charSet","itemProp"];function m(){const j=new Set,v=new Set,S=new Set,E={};return R=>{let C=!0,A=!1;if(R.key&&typeof R.key!="number"&&R.key.indexOf("$")>0){A=!0;const O=R.key.slice(R.key.indexOf("$")+1);j.has(O)?C=!1:j.add(O)}switch(R.type){case"title":case"base":v.has(R.type)?C=!1:v.add(R.type);break;case"meta":for(let O=0,w=f.length;O<w;O++){const N=f[O];if(R.props.hasOwnProperty(N))if(N==="charSet")S.has(N)?C=!1:S.add(N);else{const I=R.props[N],B=E[N]||new Set;(N!=="name"||!A)&&B.has(I)?C=!1:(B.add(I),E[N]=B)}}break}return C}}function _(j,v){const{inAmpMode:S}=v;return j.reduce(d,[]).reverse().concat(h(S).reverse()).filter(m()).reverse().map((E,R)=>{const C=E.key||R;if(process.env.NODE_ENV!=="development"&&process.env.__NEXT_OPTIMIZE_FONTS&&!S&&E.type==="link"&&E.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(A=>E.props.href.startsWith(A))){const A={...E.props||{}};return A["data-href"]=A.href,A.href=void 0,A["data-optimized-fonts"]=!0,i.default.cloneElement(E,A)}if(process.env.NODE_ENV==="development")if(E.type==="script"&&E.props.type!=="application/ld+json"){const A=E.props.src?'<script> tag with src="'+E.props.src+'"':"inline <script>";(0,p.warnOnce)("Do not add <script> tags using next/head (see "+A+`). Use next/script instead.
13
+ Read more: https://nextjs.org/docs/api-reference/next/image#priority`)}});try{u.observe({type:"largest-contentful-paint",buffered:!0})}catch(V){console.error(V)}}}const de=Object.assign(O?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:q,objectPosition:G}:{},k?{}:{color:"transparent"},w),ce=!D&&B!=="empty"?B==="blur"?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:te,heightInt:$,blurWidth:M,blurHeight:ne,blurDataURL:T||"",objectFit:de.objectFit})+'")':'url("'+B+'")':null;let F=ce?{backgroundSize:de.objectFit||"cover",backgroundPosition:de.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:ce}:{};process.env.NODE_ENV==="development"&&F.backgroundImage&&B==="blur"&&T!=null&&T.startsWith("/")&&(F.backgroundImage='url("'+T+'")');const _e=d({config:re,src:y,unoptimized:j,width:te,quality:ue,sizes:b,loader:L});if(process.env.NODE_ENV!=="production"&&typeof window<"u"){let V;try{V=new URL(_e.src)}catch{V=new URL(_e.src,window.location.href)}l.set(V.href,{src:y,priority:v,placeholder:B})}return{props:{...Z,loading:ae?"lazy":S,fetchPriority:H,width:te,height:$,decoding:"async",className:E,style:{...de,...F},sizes:_e.sizes,srcSet:_e.srcSet,src:_e.src},meta:{unoptimized:j,priority:v,placeholder:B,fill:O}}}})(Ko);var ho={exports:{}},Xt={exports:{}},Ur={},Ws;function Xh(){return Ws||(Ws=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});const t=x,r=typeof window>"u",o=r?()=>{}:t.useLayoutEffect,s=r?()=>{}:t.useEffect;function i(a){const{headManager:c,reduceComponentsToState:l}=a;function u(){if(c&&c.mountedInstances){const h=t.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(l(h,a))}}if(r){var p;c==null||(p=c.mountedInstances)==null||p.add(a.children),u()}return o(()=>{var h;return c==null||(h=c.mountedInstances)==null||h.add(a.children),()=>{var d;c==null||(d=c.mountedInstances)==null||d.delete(a.children)}}),o(()=>(c&&(c._pendingUpdate=u),()=>{c&&(c._pendingUpdate=u)})),s(()=>(c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null),()=>{c&&c._pendingUpdate&&(c._pendingUpdate(),c._pendingUpdate=null)})),null}}(Ur)),Ur}var Wr={},Vs;function Yh(){return Vs||(Vs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return o}});const o=Oe._(x).default.createContext({});process.env.NODE_ENV!=="production"&&(o.displayName="AmpStateContext")}(Wr)),Wr}var Vr={},Gs;function ed(){return Gs||(Gs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return o}});const o=Oe._(x).default.createContext({});process.env.NODE_ENV!=="production"&&(o.displayName="HeadManagerContext")}(Vr)),Vr}var Gr={},Ks;function Qh(){return Ks||(Ks=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isInAmpMode",{enumerable:!0,get:function(){return t}});function t(r){let{ampFirst:o=!1,hybrid:s=!1,hasQuery:i=!1}=r===void 0?{}:r;return o||s&&i}}(Gr)),Gr}var Xs;function Zh(){return Xs||(Xs=1,function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(j,v){for(var S in v)Object.defineProperty(j,S,{enumerable:!0,get:v[S]})}r(t,{defaultHead:function(){return h},default:function(){return b}});const o=Oe,i=ft._(x),a=o._(Xh()),c=Yh(),l=ed(),u=Qh(),p=It;function h(j){j===void 0&&(j=!1);const v=[i.default.createElement("meta",{charSet:"utf-8"})];return j||v.push(i.default.createElement("meta",{name:"viewport",content:"width=device-width"})),v}function d(j,v){return typeof v=="string"||typeof v=="number"?j:v.type===i.default.Fragment?j.concat(i.default.Children.toArray(v.props.children).reduce((S,E)=>typeof E=="string"||typeof E=="number"?S:S.concat(E),[])):j.concat(v)}const f=["name","httpEquiv","charSet","itemProp"];function m(){const j=new Set,v=new Set,S=new Set,E={};return R=>{let C=!0,A=!1;if(R.key&&typeof R.key!="number"&&R.key.indexOf("$")>0){A=!0;const O=R.key.slice(R.key.indexOf("$")+1);j.has(O)?C=!1:j.add(O)}switch(R.type){case"title":case"base":v.has(R.type)?C=!1:v.add(R.type);break;case"meta":for(let O=0,w=f.length;O<w;O++){const N=f[O];if(R.props.hasOwnProperty(N))if(N==="charSet")S.has(N)?C=!1:S.add(N);else{const I=R.props[N],B=E[N]||new Set;(N!=="name"||!A)&&B.has(I)?C=!1:(B.add(I),E[N]=B)}}break}return C}}function _(j,v){const{inAmpMode:S}=v;return j.reduce(d,[]).reverse().concat(h(S).reverse()).filter(m()).reverse().map((E,R)=>{const C=E.key||R;if(process.env.NODE_ENV!=="development"&&process.env.__NEXT_OPTIMIZE_FONTS&&!S&&E.type==="link"&&E.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(A=>E.props.href.startsWith(A))){const A={...E.props||{}};return A["data-href"]=A.href,A.href=void 0,A["data-optimized-fonts"]=!0,i.default.cloneElement(E,A)}if(process.env.NODE_ENV==="development")if(E.type==="script"&&E.props.type!=="application/ld+json"){const A=E.props.src?'<script> tag with src="'+E.props.src+'"':"inline <script>";(0,p.warnOnce)("Do not add <script> tags using next/head (see "+A+`). Use next/script instead.
14
14
  See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`)}else E.type==="link"&&E.props.rel==="stylesheet"&&(0,p.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="'+E.props.href+`"). Use Document instead.
15
- See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return i.default.cloneElement(E,{key:C})})}function y(j){let{children:v}=j;const S=(0,i.useContext)(c.AmpStateContext),E=(0,i.useContext)(l.HeadManagerContext);return i.default.createElement(a.default,{reduceComponentsToState:_,headManager:E,inAmpMode:(0,u.isInAmpMode)(S)},v)}const b=y;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Xt,Xt.exports)),Xt.exports}var Xr={},Qs;function Jh(){return Qs||(Qs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return s}});const r=Oe._(x),o=pr,s=r.default.createContext(o.imageConfigDefault);process.env.NODE_ENV!=="production"&&(s.displayName="ImageConfigContext")}(Xr)),Xr}var Yr={},Qr={},Zr={exports:{}};const eg=Dp(ie.__viteBrowserExternal);var Jr={},en={},tn,Zs;function td(){return Zs||(Zs=1,tn=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var s=42;t[r]=s;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,r);if(c.value!==s||c.enumerable!==!0)return!1}return!0}),tn}var rn,Js;function mr(){if(Js)return rn;Js=1;var e=td();return rn=function(){return e()&&!!Symbol.toStringTag},rn}var nn,ei;function rd(){return ei||(ei=1,nn=Object),nn}var on,ti;function tg(){return ti||(ti=1,on=Error),on}var sn,ri;function rg(){return ri||(ri=1,sn=EvalError),sn}var an,ni;function ng(){return ni||(ni=1,an=RangeError),an}var cn,oi;function og(){return oi||(oi=1,cn=ReferenceError),cn}var ln,si;function nd(){return si||(si=1,ln=SyntaxError),ln}var un,ii;function Nt(){return ii||(ii=1,un=TypeError),un}var dn,ai;function sg(){return ai||(ai=1,dn=URIError),dn}var fn,ci;function ig(){return ci||(ci=1,fn=Math.abs),fn}var pn,li;function ag(){return li||(li=1,pn=Math.floor),pn}var mn,ui;function cg(){return ui||(ui=1,mn=Math.max),mn}var hn,di;function lg(){return di||(di=1,hn=Math.min),hn}var gn,fi;function ug(){return fi||(fi=1,gn=Math.pow),gn}var yn,pi;function dg(){return pi||(pi=1,yn=Math.round),yn}var _n,mi;function fg(){return mi||(mi=1,_n=Number.isNaN||function(t){return t!==t}),_n}var vn,hi;function pg(){if(hi)return vn;hi=1;var e=fg();return vn=function(r){return e(r)||r===0?r:r<0?-1:1},vn}var bn,gi;function mg(){return gi||(gi=1,bn=Object.getOwnPropertyDescriptor),bn}var xn,yi;function gt(){if(yi)return xn;yi=1;var e=mg();if(e)try{e([],"length")}catch{e=null}return xn=e,xn}var Cn,_i;function hr(){if(_i)return Cn;_i=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Cn=e,Cn}var Sn,vi;function hg(){if(vi)return Sn;vi=1;var e=typeof Symbol<"u"&&Symbol,t=td();return Sn=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Sn}var jn,bi;function od(){return bi||(bi=1,jn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),jn}var En,xi;function sd(){if(xi)return En;xi=1;var e=rd();return En=e.getPrototypeOf||null,En}var wn,Ci;function gg(){if(Ci)return wn;Ci=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,o="[object Function]",s=function(l,u){for(var p=[],h=0;h<l.length;h+=1)p[h]=l[h];for(var d=0;d<u.length;d+=1)p[d+l.length]=u[d];return p},i=function(l,u){for(var p=[],h=u,d=0;h<l.length;h+=1,d+=1)p[d]=l[h];return p},a=function(c,l){for(var u="",p=0;p<c.length;p+=1)u+=c[p],p+1<c.length&&(u+=l);return u};return wn=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==o)throw new TypeError(e+u);for(var p=i(arguments,1),h,d=function(){if(this instanceof h){var b=u.apply(this,s(p,arguments));return Object(b)===b?b:this}return u.apply(l,s(p,arguments))},f=r(0,u.length-p.length),m=[],_=0;_<f;_++)m[_]="$"+_;if(h=Function("binder","return function ("+a(m,",")+"){ return binder.apply(this,arguments); }")(d),u.prototype){var y=function(){};y.prototype=u.prototype,h.prototype=new y,y.prototype=null}return h},wn}var Rn,Si;function Tt(){if(Si)return Rn;Si=1;var e=gg();return Rn=Function.prototype.bind||e,Rn}var An,ji;function Yo(){return ji||(ji=1,An=Function.prototype.call),An}var Pn,Ei;function Qo(){return Ei||(Ei=1,Pn=Function.prototype.apply),Pn}var In,wi;function yg(){return wi||(wi=1,In=typeof Reflect<"u"&&Reflect&&Reflect.apply),In}var Nn,Ri;function id(){if(Ri)return Nn;Ri=1;var e=Tt(),t=Qo(),r=Yo(),o=yg();return Nn=o||e.call(r,t),Nn}var Tn,Ai;function Zo(){if(Ai)return Tn;Ai=1;var e=Tt(),t=Nt(),r=Yo(),o=id();return Tn=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return o(e,r,i)},Tn}var On,Pi;function _g(){if(Pi)return On;Pi=1;var e=Zo(),t=gt(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var o=!!r&&t&&t(Object.prototype,"__proto__"),s=Object,i=s.getPrototypeOf;return On=o&&typeof o.get=="function"?e([o.get]):typeof i=="function"?function(c){return i(c==null?c:s(c))}:!1,On}var kn,Ii;function Jo(){if(Ii)return kn;Ii=1;var e=od(),t=sd(),r=_g();return kn=e?function(s){return e(s)}:t?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return t(s)}:r?function(s){return r(s)}:null,kn}var Mn,Ni;function ad(){if(Ni)return Mn;Ni=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Tt();return Mn=r.call(e,t),Mn}var Ln,Ti;function cd(){if(Ti)return Ln;Ti=1;var e,t=rd(),r=tg(),o=rg(),s=ng(),i=og(),a=nd(),c=Nt(),l=sg(),u=ig(),p=ag(),h=cg(),d=lg(),f=ug(),m=dg(),_=pg(),y=Function,b=function(ee){try{return y('"use strict"; return ('+ee+").constructor;")()}catch{}},j=gt(),v=hr(),S=function(){throw new c},E=j?function(){try{return arguments.callee,S}catch{try{return j(arguments,"callee").get}catch{return S}}}():S,R=hg()(),C=Jo(),A=sd(),O=od(),w=Qo(),N=Yo(),I={},B=typeof Uint8Array>"u"||!C?e:C(Uint8Array),T={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":R&&C?C([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":I,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":R&&C?C(C([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!R||!C?e:C(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":j,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":s,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!R||!C?e:C(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":R&&C?C(""[Symbol.iterator]()):e,"%Symbol%":R?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":E,"%TypedArray%":B,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":N,"%Function.prototype.apply%":w,"%Object.defineProperty%":v,"%Object.getPrototypeOf%":A,"%Math.abs%":u,"%Math.floor%":p,"%Math.max%":h,"%Math.min%":d,"%Math.pow%":f,"%Math.round%":m,"%Math.sign%":_,"%Reflect.getPrototypeOf%":O};if(C)try{null.error}catch(ee){var H=C(C(ee));T["%Error.prototype%"]=H}var U=function ee(Q){var te;if(Q==="%AsyncFunction%")te=b("async function () {}");else if(Q==="%GeneratorFunction%")te=b("function* () {}");else if(Q==="%AsyncGeneratorFunction%")te=b("async function* () {}");else if(Q==="%AsyncGenerator%"){var $=ee("%AsyncGeneratorFunction%");$&&(te=$.prototype)}else if(Q==="%AsyncIteratorPrototype%"){var M=ee("%AsyncGenerator%");M&&C&&(te=C(M.prototype))}return T[Q]=te,te},q={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},G=Tt(),W=ad(),z=G.call(N,Array.prototype.concat),Z=G.call(w,Array.prototype.splice),P=G.call(N,String.prototype.replace),k=G.call(N,String.prototype.slice),D=G.call(N,RegExp.prototype.exec),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,re=/\\(\\)?/g,J=function(Q){var te=k(Q,0,1),$=k(Q,-1);if(te==="%"&&$!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if($==="%"&&te!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var M=[];return P(Q,K,function(ne,ae,ue,de){M[M.length]=ue?P(de,re,"$1"):ae||ne}),M},L=function(Q,te){var $=Q,M;if(W(q,$)&&(M=q[$],$="%"+M[0]+"%"),W(T,$)){var ne=T[$];if(ne===I&&(ne=U($)),typeof ne>"u"&&!te)throw new c("intrinsic "+Q+" exists, but is not available. Please file an issue!");return{alias:M,name:$,value:ne}}throw new a("intrinsic "+Q+" does not exist!")};return Ln=function(Q,te){if(typeof Q!="string"||Q.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof te!="boolean")throw new c('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,Q)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=J(Q),M=$.length>0?$[0]:"",ne=L("%"+M+"%",te),ae=ne.name,ue=ne.value,de=!1,ce=ne.alias;ce&&(M=ce[0],Z($,z([0,1],ce)));for(var F=1,_e=!0;F<$.length;F+=1){var se=$[F],ye=k(se,0,1),V=k(se,-1);if((ye==='"'||ye==="'"||ye==="`"||V==='"'||V==="'"||V==="`")&&ye!==V)throw new a("property names with quotes must have matching quotes");if((se==="constructor"||!_e)&&(de=!0),M+="."+se,ae="%"+M+"%",W(T,ae))ue=T[ae];else if(ue!=null){if(!(se in ue)){if(!te)throw new c("base intrinsic for "+Q+" exists, but the property is not available.");return}if(j&&F+1>=$.length){var fe=j(ue,se);_e=!!fe,_e&&"get"in fe&&!("originalValue"in fe.get)?ue=fe.get:ue=ue[se]}else _e=W(ue,se),ue=ue[se];_e&&!de&&(T[ae]=ue)}}return ue},Ln}var Dn,Oi;function Ot(){if(Oi)return Dn;Oi=1;var e=cd(),t=Zo(),r=t([e("%String.prototype.indexOf%")]);return Dn=function(s,i){var a=e(s,!!i);return typeof a=="function"&&r(s,".prototype.")>-1?t([a]):a},Dn}var $n,ki;function vg(){if(ki)return $n;ki=1;var e=mr()(),t=Ot(),r=t("Object.prototype.toString"),o=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:r(c)==="[object Arguments]"},s=function(c){return o(c)?!0:c!==null&&typeof c=="object"&&"length"in c&&typeof c.length=="number"&&c.length>=0&&r(c)!=="[object Array]"&&"callee"in c&&r(c.callee)==="[object Function]"},i=function(){return o(arguments)}();return o.isLegacyArguments=s,$n=i?o:s,$n}var Bn,Mi;function bg(){if(Mi)return Bn;Mi=1;var e=Ot(),t=mr()(),r=ad(),o=gt(),s;if(t){var i=e("RegExp.prototype.exec"),a={},c=function(){throw a},l={toString:c,valueOf:c};typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=c),s=function(d){if(!d||typeof d!="object")return!1;var f=o(d,"lastIndex"),m=f&&r(f,"value");if(!m)return!1;try{i(d,l)}catch(_){return _===a}}}else{var u=e("Object.prototype.toString"),p="[object RegExp]";s=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:u(d)===p}}return Bn=s,Bn}var zn,Li;function xg(){if(Li)return zn;Li=1;var e=Ot(),t=bg(),r=e("RegExp.prototype.exec"),o=Nt();return zn=function(i){if(!t(i))throw new o("`regex` must be a RegExp");return function(c){return r(i,c)!==null}},zn}var Fn,Di;function Cg(){if(Di)return Fn;Di=1;var e=Ot(),t=xg(),r=t(/^\s*(?:function)?\*/),o=mr()(),s=Jo(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),c=function(){if(!o)return!1;try{return Function("return function*() {}")()}catch{}},l;return Fn=function(p){if(typeof p!="function")return!1;if(r(a(p)))return!0;if(!o){var h=i(p);return h==="[object GeneratorFunction]"}if(!s)return!1;if(typeof l>"u"){var d=c();l=d?s(d):!1}return s(p)===l},Fn}var qn,$i;function Sg(){if($i)return qn;$i=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,o;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={},t(function(){throw 42},null,r)}catch(j){j!==o&&(t=null)}else t=null;var s=/^\s*class\b/,i=function(v){try{var S=e.call(v);return s.test(S)}catch{return!1}},a=function(v){try{return i(v)?!1:(e.call(v),!0)}catch{return!1}},c=Object.prototype.toString,l="[object Object]",u="[object Function]",p="[object GeneratorFunction]",h="[object HTMLAllCollection]",d="[object HTML document.all class]",f="[object HTMLCollection]",m=typeof Symbol=="function"&&!!Symbol.toStringTag,_=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var b=document.all;c.call(b)===c.call(document.all)&&(y=function(v){if((_||!v)&&(typeof v>"u"||typeof v=="object"))try{var S=c.call(v);return(S===h||S===d||S===f||S===l)&&v("")==null}catch{}return!1})}return qn=t?function(v){if(y(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;try{t(v,null,r)}catch(S){if(S!==o)return!1}return!i(v)&&a(v)}:function(v){if(y(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;if(m)return a(v);if(i(v))return!1;var S=c.call(v);return S!==u&&S!==p&&!/^\[object HTML/.test(S)?!1:a(v)},qn}var Hn,Bi;function jg(){if(Bi)return Hn;Bi=1;var e=Sg(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,o=function(l,u,p){for(var h=0,d=l.length;h<d;h++)r.call(l,h)&&(p==null?u(l[h],h,l):u.call(p,l[h],h,l))},s=function(l,u,p){for(var h=0,d=l.length;h<d;h++)p==null?u(l.charAt(h),h,l):u.call(p,l.charAt(h),h,l)},i=function(l,u,p){for(var h in l)r.call(l,h)&&(p==null?u(l[h],h,l):u.call(p,l[h],h,l))};function a(c){return t.call(c)==="[object Array]"}return Hn=function(l,u,p){if(!e(u))throw new TypeError("iterator must be a function");var h;arguments.length>=3&&(h=p),a(l)?o(l,u,h):typeof l=="string"?s(l,u,h):i(l,u,h)},Hn}var Un,zi;function Eg(){return zi||(zi=1,Un=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Un}var Wn,Fi;function wg(){if(Fi)return Wn;Fi=1;var e=Eg(),t=typeof globalThis>"u"?tl:globalThis;return Wn=function(){for(var o=[],s=0;s<e.length;s++)typeof t[e[s]]=="function"&&(o[o.length]=e[s]);return o},Wn}var Vn={exports:{}},Gn,qi;function Rg(){if(qi)return Gn;qi=1;var e=hr(),t=nd(),r=Nt(),o=gt();return Gn=function(i,a,c){if(!i||typeof i!="object"&&typeof i!="function")throw new r("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,h=arguments.length>6?arguments[6]:!1,d=!!o&&o(i,a);if(e)e(i,a,{configurable:p===null&&d?d.configurable:!p,enumerable:l===null&&d?d.enumerable:!l,value:c,writable:u===null&&d?d.writable:!u});else if(h||!l&&!u&&!p)i[a]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Gn}var Kn,Hi;function Ag(){if(Hi)return Kn;Hi=1;var e=hr(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Kn=t,Kn}var Xn,Ui;function Pg(){if(Ui)return Xn;Ui=1;var e=cd(),t=Rg(),r=Ag()(),o=gt(),s=Nt(),i=e("%Math.floor%");return Xn=function(c,l){if(typeof c!="function")throw new s("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||i(l)!==l)throw new s("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],p=!0,h=!0;if("length"in c&&o){var d=o(c,"length");d&&!d.configurable&&(p=!1),d&&!d.writable&&(h=!1)}return(p||h||!u)&&(r?t(c,"length",l,!0,!0):t(c,"length",l)),c},Xn}var Yn,Wi;function Ig(){if(Wi)return Yn;Wi=1;var e=Tt(),t=Qo(),r=id();return Yn=function(){return r(e,t,arguments)},Yn}var Vi;function Ng(){return Vi||(Vi=1,function(e){var t=Pg(),r=hr(),o=Zo(),s=Ig();e.exports=function(a){var c=o(arguments),l=a.length-(arguments.length-1);return t(c,1+(l>0?l:0),!0)},r?r(e.exports,"apply",{value:s}):e.exports.apply=s}(Vn)),Vn.exports}var Qn,Gi;function ld(){if(Gi)return Qn;Gi=1;var e=jg(),t=wg(),r=Ng(),o=Ot(),s=gt(),i=Jo(),a=o("Object.prototype.toString"),c=mr()(),l=typeof globalThis>"u"?tl:globalThis,u=t(),p=o("String.prototype.slice"),h=o("Array.prototype.indexOf",!0)||function(y,b){for(var j=0;j<y.length;j+=1)if(y[j]===b)return j;return-1},d={__proto__:null};c&&s&&i?e(u,function(_){var y=new l[_];if(Symbol.toStringTag in y&&i){var b=i(y),j=s(b,Symbol.toStringTag);if(!j&&b){var v=i(b);j=s(v,Symbol.toStringTag)}d["$"+_]=r(j.get)}}):e(u,function(_){var y=new l[_],b=y.slice||y.set;b&&(d["$"+_]=r(b))});var f=function(y){var b=!1;return e(d,function(j,v){if(!b)try{"$"+j(y)===v&&(b=p(v,1))}catch{}}),b},m=function(y){var b=!1;return e(d,function(j,v){if(!b)try{j(y),b=p(v,1)}catch{}}),b};return Qn=function(y){if(!y||typeof y!="object")return!1;if(!c){var b=p(a(y),8,-1);return h(u,b)>-1?b:b!=="Object"?!1:m(y)}return s?f(y):null},Qn}var Zn,Ki;function Tg(){if(Ki)return Zn;Ki=1;var e=ld();return Zn=function(r){return!!e(r)},Zn}var Xi;function Og(){return Xi||(Xi=1,function(e){var t=vg(),r=Cg(),o=ld(),s=Tg();function i(F){return F.call.bind(F)}var a=typeof BigInt<"u",c=typeof Symbol<"u",l=i(Object.prototype.toString),u=i(Number.prototype.valueOf),p=i(String.prototype.valueOf),h=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(c)var f=i(Symbol.prototype.valueOf);function m(F,_e){if(typeof F!="object")return!1;try{return _e(F),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=s;function _(F){return typeof Promise<"u"&&F instanceof Promise||F!==null&&typeof F=="object"&&typeof F.then=="function"&&typeof F.catch=="function"}e.isPromise=_;function y(F){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(F):s(F)||k(F)}e.isArrayBufferView=y;function b(F){return o(F)==="Uint8Array"}e.isUint8Array=b;function j(F){return o(F)==="Uint8ClampedArray"}e.isUint8ClampedArray=j;function v(F){return o(F)==="Uint16Array"}e.isUint16Array=v;function S(F){return o(F)==="Uint32Array"}e.isUint32Array=S;function E(F){return o(F)==="Int8Array"}e.isInt8Array=E;function R(F){return o(F)==="Int16Array"}e.isInt16Array=R;function C(F){return o(F)==="Int32Array"}e.isInt32Array=C;function A(F){return o(F)==="Float32Array"}e.isFloat32Array=A;function O(F){return o(F)==="Float64Array"}e.isFloat64Array=O;function w(F){return o(F)==="BigInt64Array"}e.isBigInt64Array=w;function N(F){return o(F)==="BigUint64Array"}e.isBigUint64Array=N;function I(F){return l(F)==="[object Map]"}I.working=typeof Map<"u"&&I(new Map);function B(F){return typeof Map>"u"?!1:I.working?I(F):F instanceof Map}e.isMap=B;function T(F){return l(F)==="[object Set]"}T.working=typeof Set<"u"&&T(new Set);function H(F){return typeof Set>"u"?!1:T.working?T(F):F instanceof Set}e.isSet=H;function U(F){return l(F)==="[object WeakMap]"}U.working=typeof WeakMap<"u"&&U(new WeakMap);function q(F){return typeof WeakMap>"u"?!1:U.working?U(F):F instanceof WeakMap}e.isWeakMap=q;function G(F){return l(F)==="[object WeakSet]"}G.working=typeof WeakSet<"u"&&G(new WeakSet);function W(F){return G(F)}e.isWeakSet=W;function z(F){return l(F)==="[object ArrayBuffer]"}z.working=typeof ArrayBuffer<"u"&&z(new ArrayBuffer);function Z(F){return typeof ArrayBuffer>"u"?!1:z.working?z(F):F instanceof ArrayBuffer}e.isArrayBuffer=Z;function P(F){return l(F)==="[object DataView]"}P.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&P(new DataView(new ArrayBuffer(1),0,1));function k(F){return typeof DataView>"u"?!1:P.working?P(F):F instanceof DataView}e.isDataView=k;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function K(F){return l(F)==="[object SharedArrayBuffer]"}function re(F){return typeof D>"u"?!1:(typeof K.working>"u"&&(K.working=K(new D)),K.working?K(F):F instanceof D)}e.isSharedArrayBuffer=re;function J(F){return l(F)==="[object AsyncFunction]"}e.isAsyncFunction=J;function L(F){return l(F)==="[object Map Iterator]"}e.isMapIterator=L;function ee(F){return l(F)==="[object Set Iterator]"}e.isSetIterator=ee;function Q(F){return l(F)==="[object Generator]"}e.isGeneratorObject=Q;function te(F){return l(F)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=te;function $(F){return m(F,u)}e.isNumberObject=$;function M(F){return m(F,p)}e.isStringObject=M;function ne(F){return m(F,h)}e.isBooleanObject=ne;function ae(F){return a&&m(F,d)}e.isBigIntObject=ae;function ue(F){return c&&m(F,f)}e.isSymbolObject=ue;function de(F){return $(F)||M(F)||ne(F)||ae(F)||ue(F)}e.isBoxedPrimitive=de;function ce(F){return typeof Uint8Array<"u"&&(Z(F)||re(F))}e.isAnyArrayBuffer=ce,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(F){Object.defineProperty(e,F,{enumerable:!1,value:function(){throw new Error(F+" is not supported in userland")}})})}(en)),en}var Jn,Yi;function kg(){return Yi||(Yi=1,Jn=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Jn}var Yt={exports:{}},Qi;function Mg(){return Qi||(Qi=1,typeof Object.create=="function"?Yt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Yt.exports=function(t,r){if(r){t.super_=r;var o=function(){};o.prototype=r.prototype,t.prototype=new o,t.prototype.constructor=t}}),Yt.exports}var Zi;function Lg(){return Zi||(Zi=1,function(e){var t=Object.getOwnPropertyDescriptors||function(k){for(var D=Object.keys(k),K={},re=0;re<D.length;re++)K[D[re]]=Object.getOwnPropertyDescriptor(k,D[re]);return K},r=/%[sdj%]/g;e.format=function(P){if(!E(P)){for(var k=[],D=0;D<arguments.length;D++)k.push(a(arguments[D]));return k.join(" ")}for(var D=1,K=arguments,re=K.length,J=String(P).replace(r,function(ee){if(ee==="%%")return"%";if(D>=re)return ee;switch(ee){case"%s":return String(K[D++]);case"%d":return Number(K[D++]);case"%j":try{return JSON.stringify(K[D++])}catch{return"[Circular]"}default:return ee}}),L=K[D];D<re;L=K[++D])j(L)||!O(L)?J+=" "+L:J+=" "+a(L);return J},e.deprecate=function(P,k){if(typeof process<"u"&&process.noDeprecation===!0)return P;if(typeof process>"u")return function(){return e.deprecate(P,k).apply(this,arguments)};var D=!1;function K(){if(!D){if(process.throwDeprecation)throw new Error(k);process.traceDeprecation?console.trace(k):console.error(k),D=!0}return P.apply(this,arguments)}return K};var o={},s=/^$/;if(process.env.NODE_DEBUG){var i=process.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+i+"$","i")}e.debuglog=function(P){if(P=P.toUpperCase(),!o[P])if(s.test(P)){var k=process.pid;o[P]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",P,k,D)}}else o[P]=function(){};return o[P]};function a(P,k){var D={seen:[],stylize:l};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),b(k)?D.showHidden=k:k&&e._extend(D,k),C(D.showHidden)&&(D.showHidden=!1),C(D.depth)&&(D.depth=2),C(D.colors)&&(D.colors=!1),C(D.customInspect)&&(D.customInspect=!0),D.colors&&(D.stylize=c),p(D,P,D.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(P,k){var D=a.styles[k];return D?"\x1B["+a.colors[D][0]+"m"+P+"\x1B["+a.colors[D][1]+"m":P}function l(P,k){return P}function u(P){var k={};return P.forEach(function(D,K){k[D]=!0}),k}function p(P,k,D){if(P.customInspect&&k&&I(k.inspect)&&k.inspect!==e.inspect&&!(k.constructor&&k.constructor.prototype===k)){var K=k.inspect(D,P);return E(K)||(K=p(P,K,D)),K}var re=h(P,k);if(re)return re;var J=Object.keys(k),L=u(J);if(P.showHidden&&(J=Object.getOwnPropertyNames(k)),N(k)&&(J.indexOf("message")>=0||J.indexOf("description")>=0))return d(k);if(J.length===0){if(I(k)){var ee=k.name?": "+k.name:"";return P.stylize("[Function"+ee+"]","special")}if(A(k))return P.stylize(RegExp.prototype.toString.call(k),"regexp");if(w(k))return P.stylize(Date.prototype.toString.call(k),"date");if(N(k))return d(k)}var Q="",te=!1,$=["{","}"];if(y(k)&&(te=!0,$=["[","]"]),I(k)){var M=k.name?": "+k.name:"";Q=" [Function"+M+"]"}if(A(k)&&(Q=" "+RegExp.prototype.toString.call(k)),w(k)&&(Q=" "+Date.prototype.toUTCString.call(k)),N(k)&&(Q=" "+d(k)),J.length===0&&(!te||k.length==0))return $[0]+Q+$[1];if(D<0)return A(k)?P.stylize(RegExp.prototype.toString.call(k),"regexp"):P.stylize("[Object]","special");P.seen.push(k);var ne;return te?ne=f(P,k,D,L,J):ne=J.map(function(ae){return m(P,k,D,L,ae,te)}),P.seen.pop(),_(ne,Q,$)}function h(P,k){if(C(k))return P.stylize("undefined","undefined");if(E(k)){var D="'"+JSON.stringify(k).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return P.stylize(D,"string")}if(S(k))return P.stylize(""+k,"number");if(b(k))return P.stylize(""+k,"boolean");if(j(k))return P.stylize("null","null")}function d(P){return"["+Error.prototype.toString.call(P)+"]"}function f(P,k,D,K,re){for(var J=[],L=0,ee=k.length;L<ee;++L)G(k,String(L))?J.push(m(P,k,D,K,String(L),!0)):J.push("");return re.forEach(function(Q){Q.match(/^\d+$/)||J.push(m(P,k,D,K,Q,!0))}),J}function m(P,k,D,K,re,J){var L,ee,Q;if(Q=Object.getOwnPropertyDescriptor(k,re)||{value:k[re]},Q.get?Q.set?ee=P.stylize("[Getter/Setter]","special"):ee=P.stylize("[Getter]","special"):Q.set&&(ee=P.stylize("[Setter]","special")),G(K,re)||(L="["+re+"]"),ee||(P.seen.indexOf(Q.value)<0?(j(D)?ee=p(P,Q.value,null):ee=p(P,Q.value,D-1),ee.indexOf(`
15
+ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);return i.default.cloneElement(E,{key:C})})}function y(j){let{children:v}=j;const S=(0,i.useContext)(c.AmpStateContext),E=(0,i.useContext)(l.HeadManagerContext);return i.default.createElement(a.default,{reduceComponentsToState:_,headManager:E,inAmpMode:(0,u.isInAmpMode)(S)},v)}const b=y;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Xt,Xt.exports)),Xt.exports}var Kr={},Ys;function Jh(){return Ys||(Ys=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return s}});const r=Oe._(x),o=fr,s=r.default.createContext(o.imageConfigDefault);process.env.NODE_ENV!=="production"&&(s.displayName="ImageConfigContext")}(Kr)),Kr}var Xr={},Yr={},Qr={exports:{}};const eg=Dp(ie.__viteBrowserExternal);var Zr={},Jr={},en,Qs;function td(){return Qs||(Qs=1,en=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var s=42;t[r]=s;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,r);if(c.value!==s||c.enumerable!==!0)return!1}return!0}),en}var tn,Zs;function pr(){if(Zs)return tn;Zs=1;var e=td();return tn=function(){return e()&&!!Symbol.toStringTag},tn}var rn,Js;function rd(){return Js||(Js=1,rn=Object),rn}var nn,ei;function tg(){return ei||(ei=1,nn=Error),nn}var on,ti;function rg(){return ti||(ti=1,on=EvalError),on}var sn,ri;function ng(){return ri||(ri=1,sn=RangeError),sn}var an,ni;function og(){return ni||(ni=1,an=ReferenceError),an}var cn,oi;function nd(){return oi||(oi=1,cn=SyntaxError),cn}var ln,si;function Nt(){return si||(si=1,ln=TypeError),ln}var un,ii;function sg(){return ii||(ii=1,un=URIError),un}var dn,ai;function ig(){return ai||(ai=1,dn=Math.abs),dn}var fn,ci;function ag(){return ci||(ci=1,fn=Math.floor),fn}var pn,li;function cg(){return li||(li=1,pn=Math.max),pn}var mn,ui;function lg(){return ui||(ui=1,mn=Math.min),mn}var hn,di;function ug(){return di||(di=1,hn=Math.pow),hn}var gn,fi;function dg(){return fi||(fi=1,gn=Math.round),gn}var yn,pi;function fg(){return pi||(pi=1,yn=Number.isNaN||function(t){return t!==t}),yn}var _n,mi;function pg(){if(mi)return _n;mi=1;var e=fg();return _n=function(r){return e(r)||r===0?r:r<0?-1:1},_n}var vn,hi;function mg(){return hi||(hi=1,vn=Object.getOwnPropertyDescriptor),vn}var bn,gi;function gt(){if(gi)return bn;gi=1;var e=mg();if(e)try{e([],"length")}catch{e=null}return bn=e,bn}var xn,yi;function mr(){if(yi)return xn;yi=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return xn=e,xn}var Cn,_i;function hg(){if(_i)return Cn;_i=1;var e=typeof Symbol<"u"&&Symbol,t=td();return Cn=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Cn}var Sn,vi;function od(){return vi||(vi=1,Sn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Sn}var jn,bi;function sd(){if(bi)return jn;bi=1;var e=rd();return jn=e.getPrototypeOf||null,jn}var En,xi;function gg(){if(xi)return En;xi=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,o="[object Function]",s=function(l,u){for(var p=[],h=0;h<l.length;h+=1)p[h]=l[h];for(var d=0;d<u.length;d+=1)p[d+l.length]=u[d];return p},i=function(l,u){for(var p=[],h=u,d=0;h<l.length;h+=1,d+=1)p[d]=l[h];return p},a=function(c,l){for(var u="",p=0;p<c.length;p+=1)u+=c[p],p+1<c.length&&(u+=l);return u};return En=function(l){var u=this;if(typeof u!="function"||t.apply(u)!==o)throw new TypeError(e+u);for(var p=i(arguments,1),h,d=function(){if(this instanceof h){var b=u.apply(this,s(p,arguments));return Object(b)===b?b:this}return u.apply(l,s(p,arguments))},f=r(0,u.length-p.length),m=[],_=0;_<f;_++)m[_]="$"+_;if(h=Function("binder","return function ("+a(m,",")+"){ return binder.apply(this,arguments); }")(d),u.prototype){var y=function(){};y.prototype=u.prototype,h.prototype=new y,y.prototype=null}return h},En}var wn,Ci;function Tt(){if(Ci)return wn;Ci=1;var e=gg();return wn=Function.prototype.bind||e,wn}var Rn,Si;function Xo(){return Si||(Si=1,Rn=Function.prototype.call),Rn}var An,ji;function Yo(){return ji||(ji=1,An=Function.prototype.apply),An}var Pn,Ei;function yg(){return Ei||(Ei=1,Pn=typeof Reflect<"u"&&Reflect&&Reflect.apply),Pn}var In,wi;function id(){if(wi)return In;wi=1;var e=Tt(),t=Yo(),r=Xo(),o=yg();return In=o||e.call(r,t),In}var Nn,Ri;function Qo(){if(Ri)return Nn;Ri=1;var e=Tt(),t=Nt(),r=Xo(),o=id();return Nn=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return o(e,r,i)},Nn}var Tn,Ai;function _g(){if(Ai)return Tn;Ai=1;var e=Qo(),t=gt(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var o=!!r&&t&&t(Object.prototype,"__proto__"),s=Object,i=s.getPrototypeOf;return Tn=o&&typeof o.get=="function"?e([o.get]):typeof i=="function"?function(c){return i(c==null?c:s(c))}:!1,Tn}var On,Pi;function Zo(){if(Pi)return On;Pi=1;var e=od(),t=sd(),r=_g();return On=e?function(s){return e(s)}:t?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return t(s)}:r?function(s){return r(s)}:null,On}var kn,Ii;function ad(){if(Ii)return kn;Ii=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Tt();return kn=r.call(e,t),kn}var Mn,Ni;function cd(){if(Ni)return Mn;Ni=1;var e,t=rd(),r=tg(),o=rg(),s=ng(),i=og(),a=nd(),c=Nt(),l=sg(),u=ig(),p=ag(),h=cg(),d=lg(),f=ug(),m=dg(),_=pg(),y=Function,b=function(ee){try{return y('"use strict"; return ('+ee+").constructor;")()}catch{}},j=gt(),v=mr(),S=function(){throw new c},E=j?function(){try{return arguments.callee,S}catch{try{return j(arguments,"callee").get}catch{return S}}}():S,R=hg()(),C=Zo(),A=sd(),O=od(),w=Yo(),N=Xo(),I={},B=typeof Uint8Array>"u"||!C?e:C(Uint8Array),T={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":R&&C?C([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":I,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":R&&C?C(C([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!R||!C?e:C(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":j,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":s,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!R||!C?e:C(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":R&&C?C(""[Symbol.iterator]()):e,"%Symbol%":R?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":E,"%TypedArray%":B,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":N,"%Function.prototype.apply%":w,"%Object.defineProperty%":v,"%Object.getPrototypeOf%":A,"%Math.abs%":u,"%Math.floor%":p,"%Math.max%":h,"%Math.min%":d,"%Math.pow%":f,"%Math.round%":m,"%Math.sign%":_,"%Reflect.getPrototypeOf%":O};if(C)try{null.error}catch(ee){var H=C(C(ee));T["%Error.prototype%"]=H}var U=function ee(Q){var te;if(Q==="%AsyncFunction%")te=b("async function () {}");else if(Q==="%GeneratorFunction%")te=b("function* () {}");else if(Q==="%AsyncGeneratorFunction%")te=b("async function* () {}");else if(Q==="%AsyncGenerator%"){var $=ee("%AsyncGeneratorFunction%");$&&(te=$.prototype)}else if(Q==="%AsyncIteratorPrototype%"){var M=ee("%AsyncGenerator%");M&&C&&(te=C(M.prototype))}return T[Q]=te,te},q={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},G=Tt(),W=ad(),z=G.call(N,Array.prototype.concat),Z=G.call(w,Array.prototype.splice),P=G.call(N,String.prototype.replace),k=G.call(N,String.prototype.slice),D=G.call(N,RegExp.prototype.exec),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,re=/\\(\\)?/g,J=function(Q){var te=k(Q,0,1),$=k(Q,-1);if(te==="%"&&$!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if($==="%"&&te!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var M=[];return P(Q,K,function(ne,ae,ue,de){M[M.length]=ue?P(de,re,"$1"):ae||ne}),M},L=function(Q,te){var $=Q,M;if(W(q,$)&&(M=q[$],$="%"+M[0]+"%"),W(T,$)){var ne=T[$];if(ne===I&&(ne=U($)),typeof ne>"u"&&!te)throw new c("intrinsic "+Q+" exists, but is not available. Please file an issue!");return{alias:M,name:$,value:ne}}throw new a("intrinsic "+Q+" does not exist!")};return Mn=function(Q,te){if(typeof Q!="string"||Q.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof te!="boolean")throw new c('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,Q)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=J(Q),M=$.length>0?$[0]:"",ne=L("%"+M+"%",te),ae=ne.name,ue=ne.value,de=!1,ce=ne.alias;ce&&(M=ce[0],Z($,z([0,1],ce)));for(var F=1,_e=!0;F<$.length;F+=1){var se=$[F],ye=k(se,0,1),V=k(se,-1);if((ye==='"'||ye==="'"||ye==="`"||V==='"'||V==="'"||V==="`")&&ye!==V)throw new a("property names with quotes must have matching quotes");if((se==="constructor"||!_e)&&(de=!0),M+="."+se,ae="%"+M+"%",W(T,ae))ue=T[ae];else if(ue!=null){if(!(se in ue)){if(!te)throw new c("base intrinsic for "+Q+" exists, but the property is not available.");return}if(j&&F+1>=$.length){var fe=j(ue,se);_e=!!fe,_e&&"get"in fe&&!("originalValue"in fe.get)?ue=fe.get:ue=ue[se]}else _e=W(ue,se),ue=ue[se];_e&&!de&&(T[ae]=ue)}}return ue},Mn}var Ln,Ti;function Ot(){if(Ti)return Ln;Ti=1;var e=cd(),t=Qo(),r=t([e("%String.prototype.indexOf%")]);return Ln=function(s,i){var a=e(s,!!i);return typeof a=="function"&&r(s,".prototype.")>-1?t([a]):a},Ln}var Dn,Oi;function vg(){if(Oi)return Dn;Oi=1;var e=pr()(),t=Ot(),r=t("Object.prototype.toString"),o=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:r(c)==="[object Arguments]"},s=function(c){return o(c)?!0:c!==null&&typeof c=="object"&&"length"in c&&typeof c.length=="number"&&c.length>=0&&r(c)!=="[object Array]"&&"callee"in c&&r(c.callee)==="[object Function]"},i=function(){return o(arguments)}();return o.isLegacyArguments=s,Dn=i?o:s,Dn}var $n,ki;function bg(){if(ki)return $n;ki=1;var e=Ot(),t=pr()(),r=ad(),o=gt(),s;if(t){var i=e("RegExp.prototype.exec"),a={},c=function(){throw a},l={toString:c,valueOf:c};typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=c),s=function(d){if(!d||typeof d!="object")return!1;var f=o(d,"lastIndex"),m=f&&r(f,"value");if(!m)return!1;try{i(d,l)}catch(_){return _===a}}}else{var u=e("Object.prototype.toString"),p="[object RegExp]";s=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:u(d)===p}}return $n=s,$n}var Bn,Mi;function xg(){if(Mi)return Bn;Mi=1;var e=Ot(),t=bg(),r=e("RegExp.prototype.exec"),o=Nt();return Bn=function(i){if(!t(i))throw new o("`regex` must be a RegExp");return function(c){return r(i,c)!==null}},Bn}var zn,Li;function Cg(){if(Li)return zn;Li=1;var e=Ot(),t=xg(),r=t(/^\s*(?:function)?\*/),o=pr()(),s=Zo(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),c=function(){if(!o)return!1;try{return Function("return function*() {}")()}catch{}},l;return zn=function(p){if(typeof p!="function")return!1;if(r(a(p)))return!0;if(!o){var h=i(p);return h==="[object GeneratorFunction]"}if(!s)return!1;if(typeof l>"u"){var d=c();l=d?s(d):!1}return s(p)===l},zn}var Fn,Di;function Sg(){if(Di)return Fn;Di=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,o;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={},t(function(){throw 42},null,r)}catch(j){j!==o&&(t=null)}else t=null;var s=/^\s*class\b/,i=function(v){try{var S=e.call(v);return s.test(S)}catch{return!1}},a=function(v){try{return i(v)?!1:(e.call(v),!0)}catch{return!1}},c=Object.prototype.toString,l="[object Object]",u="[object Function]",p="[object GeneratorFunction]",h="[object HTMLAllCollection]",d="[object HTML document.all class]",f="[object HTMLCollection]",m=typeof Symbol=="function"&&!!Symbol.toStringTag,_=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var b=document.all;c.call(b)===c.call(document.all)&&(y=function(v){if((_||!v)&&(typeof v>"u"||typeof v=="object"))try{var S=c.call(v);return(S===h||S===d||S===f||S===l)&&v("")==null}catch{}return!1})}return Fn=t?function(v){if(y(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;try{t(v,null,r)}catch(S){if(S!==o)return!1}return!i(v)&&a(v)}:function(v){if(y(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;if(m)return a(v);if(i(v))return!1;var S=c.call(v);return S!==u&&S!==p&&!/^\[object HTML/.test(S)?!1:a(v)},Fn}var qn,$i;function jg(){if($i)return qn;$i=1;var e=Sg(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,o=function(l,u,p){for(var h=0,d=l.length;h<d;h++)r.call(l,h)&&(p==null?u(l[h],h,l):u.call(p,l[h],h,l))},s=function(l,u,p){for(var h=0,d=l.length;h<d;h++)p==null?u(l.charAt(h),h,l):u.call(p,l.charAt(h),h,l)},i=function(l,u,p){for(var h in l)r.call(l,h)&&(p==null?u(l[h],h,l):u.call(p,l[h],h,l))};function a(c){return t.call(c)==="[object Array]"}return qn=function(l,u,p){if(!e(u))throw new TypeError("iterator must be a function");var h;arguments.length>=3&&(h=p),a(l)?o(l,u,h):typeof l=="string"?s(l,u,h):i(l,u,h)},qn}var Hn,Bi;function Eg(){return Bi||(Bi=1,Hn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Hn}var Un,zi;function wg(){if(zi)return Un;zi=1;var e=Eg(),t=typeof globalThis>"u"?el:globalThis;return Un=function(){for(var o=[],s=0;s<e.length;s++)typeof t[e[s]]=="function"&&(o[o.length]=e[s]);return o},Un}var Wn={exports:{}},Vn,Fi;function Rg(){if(Fi)return Vn;Fi=1;var e=mr(),t=nd(),r=Nt(),o=gt();return Vn=function(i,a,c){if(!i||typeof i!="object"&&typeof i!="function")throw new r("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,h=arguments.length>6?arguments[6]:!1,d=!!o&&o(i,a);if(e)e(i,a,{configurable:p===null&&d?d.configurable:!p,enumerable:l===null&&d?d.enumerable:!l,value:c,writable:u===null&&d?d.writable:!u});else if(h||!l&&!u&&!p)i[a]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Vn}var Gn,qi;function Ag(){if(qi)return Gn;qi=1;var e=mr(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Gn=t,Gn}var Kn,Hi;function Pg(){if(Hi)return Kn;Hi=1;var e=cd(),t=Rg(),r=Ag()(),o=gt(),s=Nt(),i=e("%Math.floor%");return Kn=function(c,l){if(typeof c!="function")throw new s("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||i(l)!==l)throw new s("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],p=!0,h=!0;if("length"in c&&o){var d=o(c,"length");d&&!d.configurable&&(p=!1),d&&!d.writable&&(h=!1)}return(p||h||!u)&&(r?t(c,"length",l,!0,!0):t(c,"length",l)),c},Kn}var Xn,Ui;function Ig(){if(Ui)return Xn;Ui=1;var e=Tt(),t=Yo(),r=id();return Xn=function(){return r(e,t,arguments)},Xn}var Wi;function Ng(){return Wi||(Wi=1,function(e){var t=Pg(),r=mr(),o=Qo(),s=Ig();e.exports=function(a){var c=o(arguments),l=a.length-(arguments.length-1);return t(c,1+(l>0?l:0),!0)},r?r(e.exports,"apply",{value:s}):e.exports.apply=s}(Wn)),Wn.exports}var Yn,Vi;function ld(){if(Vi)return Yn;Vi=1;var e=jg(),t=wg(),r=Ng(),o=Ot(),s=gt(),i=Zo(),a=o("Object.prototype.toString"),c=pr()(),l=typeof globalThis>"u"?el:globalThis,u=t(),p=o("String.prototype.slice"),h=o("Array.prototype.indexOf",!0)||function(y,b){for(var j=0;j<y.length;j+=1)if(y[j]===b)return j;return-1},d={__proto__:null};c&&s&&i?e(u,function(_){var y=new l[_];if(Symbol.toStringTag in y&&i){var b=i(y),j=s(b,Symbol.toStringTag);if(!j&&b){var v=i(b);j=s(v,Symbol.toStringTag)}d["$"+_]=r(j.get)}}):e(u,function(_){var y=new l[_],b=y.slice||y.set;b&&(d["$"+_]=r(b))});var f=function(y){var b=!1;return e(d,function(j,v){if(!b)try{"$"+j(y)===v&&(b=p(v,1))}catch{}}),b},m=function(y){var b=!1;return e(d,function(j,v){if(!b)try{j(y),b=p(v,1)}catch{}}),b};return Yn=function(y){if(!y||typeof y!="object")return!1;if(!c){var b=p(a(y),8,-1);return h(u,b)>-1?b:b!=="Object"?!1:m(y)}return s?f(y):null},Yn}var Qn,Gi;function Tg(){if(Gi)return Qn;Gi=1;var e=ld();return Qn=function(r){return!!e(r)},Qn}var Ki;function Og(){return Ki||(Ki=1,function(e){var t=vg(),r=Cg(),o=ld(),s=Tg();function i(F){return F.call.bind(F)}var a=typeof BigInt<"u",c=typeof Symbol<"u",l=i(Object.prototype.toString),u=i(Number.prototype.valueOf),p=i(String.prototype.valueOf),h=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(c)var f=i(Symbol.prototype.valueOf);function m(F,_e){if(typeof F!="object")return!1;try{return _e(F),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=s;function _(F){return typeof Promise<"u"&&F instanceof Promise||F!==null&&typeof F=="object"&&typeof F.then=="function"&&typeof F.catch=="function"}e.isPromise=_;function y(F){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(F):s(F)||k(F)}e.isArrayBufferView=y;function b(F){return o(F)==="Uint8Array"}e.isUint8Array=b;function j(F){return o(F)==="Uint8ClampedArray"}e.isUint8ClampedArray=j;function v(F){return o(F)==="Uint16Array"}e.isUint16Array=v;function S(F){return o(F)==="Uint32Array"}e.isUint32Array=S;function E(F){return o(F)==="Int8Array"}e.isInt8Array=E;function R(F){return o(F)==="Int16Array"}e.isInt16Array=R;function C(F){return o(F)==="Int32Array"}e.isInt32Array=C;function A(F){return o(F)==="Float32Array"}e.isFloat32Array=A;function O(F){return o(F)==="Float64Array"}e.isFloat64Array=O;function w(F){return o(F)==="BigInt64Array"}e.isBigInt64Array=w;function N(F){return o(F)==="BigUint64Array"}e.isBigUint64Array=N;function I(F){return l(F)==="[object Map]"}I.working=typeof Map<"u"&&I(new Map);function B(F){return typeof Map>"u"?!1:I.working?I(F):F instanceof Map}e.isMap=B;function T(F){return l(F)==="[object Set]"}T.working=typeof Set<"u"&&T(new Set);function H(F){return typeof Set>"u"?!1:T.working?T(F):F instanceof Set}e.isSet=H;function U(F){return l(F)==="[object WeakMap]"}U.working=typeof WeakMap<"u"&&U(new WeakMap);function q(F){return typeof WeakMap>"u"?!1:U.working?U(F):F instanceof WeakMap}e.isWeakMap=q;function G(F){return l(F)==="[object WeakSet]"}G.working=typeof WeakSet<"u"&&G(new WeakSet);function W(F){return G(F)}e.isWeakSet=W;function z(F){return l(F)==="[object ArrayBuffer]"}z.working=typeof ArrayBuffer<"u"&&z(new ArrayBuffer);function Z(F){return typeof ArrayBuffer>"u"?!1:z.working?z(F):F instanceof ArrayBuffer}e.isArrayBuffer=Z;function P(F){return l(F)==="[object DataView]"}P.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&P(new DataView(new ArrayBuffer(1),0,1));function k(F){return typeof DataView>"u"?!1:P.working?P(F):F instanceof DataView}e.isDataView=k;var D=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function K(F){return l(F)==="[object SharedArrayBuffer]"}function re(F){return typeof D>"u"?!1:(typeof K.working>"u"&&(K.working=K(new D)),K.working?K(F):F instanceof D)}e.isSharedArrayBuffer=re;function J(F){return l(F)==="[object AsyncFunction]"}e.isAsyncFunction=J;function L(F){return l(F)==="[object Map Iterator]"}e.isMapIterator=L;function ee(F){return l(F)==="[object Set Iterator]"}e.isSetIterator=ee;function Q(F){return l(F)==="[object Generator]"}e.isGeneratorObject=Q;function te(F){return l(F)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=te;function $(F){return m(F,u)}e.isNumberObject=$;function M(F){return m(F,p)}e.isStringObject=M;function ne(F){return m(F,h)}e.isBooleanObject=ne;function ae(F){return a&&m(F,d)}e.isBigIntObject=ae;function ue(F){return c&&m(F,f)}e.isSymbolObject=ue;function de(F){return $(F)||M(F)||ne(F)||ae(F)||ue(F)}e.isBoxedPrimitive=de;function ce(F){return typeof Uint8Array<"u"&&(Z(F)||re(F))}e.isAnyArrayBuffer=ce,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(F){Object.defineProperty(e,F,{enumerable:!1,value:function(){throw new Error(F+" is not supported in userland")}})})}(Jr)),Jr}var Zn,Xi;function kg(){return Xi||(Xi=1,Zn=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Zn}var Yt={exports:{}},Yi;function Mg(){return Yi||(Yi=1,typeof Object.create=="function"?Yt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Yt.exports=function(t,r){if(r){t.super_=r;var o=function(){};o.prototype=r.prototype,t.prototype=new o,t.prototype.constructor=t}}),Yt.exports}var Qi;function Lg(){return Qi||(Qi=1,function(e){var t=Object.getOwnPropertyDescriptors||function(k){for(var D=Object.keys(k),K={},re=0;re<D.length;re++)K[D[re]]=Object.getOwnPropertyDescriptor(k,D[re]);return K},r=/%[sdj%]/g;e.format=function(P){if(!E(P)){for(var k=[],D=0;D<arguments.length;D++)k.push(a(arguments[D]));return k.join(" ")}for(var D=1,K=arguments,re=K.length,J=String(P).replace(r,function(ee){if(ee==="%%")return"%";if(D>=re)return ee;switch(ee){case"%s":return String(K[D++]);case"%d":return Number(K[D++]);case"%j":try{return JSON.stringify(K[D++])}catch{return"[Circular]"}default:return ee}}),L=K[D];D<re;L=K[++D])j(L)||!O(L)?J+=" "+L:J+=" "+a(L);return J},e.deprecate=function(P,k){if(typeof process<"u"&&process.noDeprecation===!0)return P;if(typeof process>"u")return function(){return e.deprecate(P,k).apply(this,arguments)};var D=!1;function K(){if(!D){if(process.throwDeprecation)throw new Error(k);process.traceDeprecation?console.trace(k):console.error(k),D=!0}return P.apply(this,arguments)}return K};var o={},s=/^$/;if(process.env.NODE_DEBUG){var i=process.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+i+"$","i")}e.debuglog=function(P){if(P=P.toUpperCase(),!o[P])if(s.test(P)){var k=process.pid;o[P]=function(){var D=e.format.apply(e,arguments);console.error("%s %d: %s",P,k,D)}}else o[P]=function(){};return o[P]};function a(P,k){var D={seen:[],stylize:l};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),b(k)?D.showHidden=k:k&&e._extend(D,k),C(D.showHidden)&&(D.showHidden=!1),C(D.depth)&&(D.depth=2),C(D.colors)&&(D.colors=!1),C(D.customInspect)&&(D.customInspect=!0),D.colors&&(D.stylize=c),p(D,P,D.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(P,k){var D=a.styles[k];return D?"\x1B["+a.colors[D][0]+"m"+P+"\x1B["+a.colors[D][1]+"m":P}function l(P,k){return P}function u(P){var k={};return P.forEach(function(D,K){k[D]=!0}),k}function p(P,k,D){if(P.customInspect&&k&&I(k.inspect)&&k.inspect!==e.inspect&&!(k.constructor&&k.constructor.prototype===k)){var K=k.inspect(D,P);return E(K)||(K=p(P,K,D)),K}var re=h(P,k);if(re)return re;var J=Object.keys(k),L=u(J);if(P.showHidden&&(J=Object.getOwnPropertyNames(k)),N(k)&&(J.indexOf("message")>=0||J.indexOf("description")>=0))return d(k);if(J.length===0){if(I(k)){var ee=k.name?": "+k.name:"";return P.stylize("[Function"+ee+"]","special")}if(A(k))return P.stylize(RegExp.prototype.toString.call(k),"regexp");if(w(k))return P.stylize(Date.prototype.toString.call(k),"date");if(N(k))return d(k)}var Q="",te=!1,$=["{","}"];if(y(k)&&(te=!0,$=["[","]"]),I(k)){var M=k.name?": "+k.name:"";Q=" [Function"+M+"]"}if(A(k)&&(Q=" "+RegExp.prototype.toString.call(k)),w(k)&&(Q=" "+Date.prototype.toUTCString.call(k)),N(k)&&(Q=" "+d(k)),J.length===0&&(!te||k.length==0))return $[0]+Q+$[1];if(D<0)return A(k)?P.stylize(RegExp.prototype.toString.call(k),"regexp"):P.stylize("[Object]","special");P.seen.push(k);var ne;return te?ne=f(P,k,D,L,J):ne=J.map(function(ae){return m(P,k,D,L,ae,te)}),P.seen.pop(),_(ne,Q,$)}function h(P,k){if(C(k))return P.stylize("undefined","undefined");if(E(k)){var D="'"+JSON.stringify(k).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return P.stylize(D,"string")}if(S(k))return P.stylize(""+k,"number");if(b(k))return P.stylize(""+k,"boolean");if(j(k))return P.stylize("null","null")}function d(P){return"["+Error.prototype.toString.call(P)+"]"}function f(P,k,D,K,re){for(var J=[],L=0,ee=k.length;L<ee;++L)G(k,String(L))?J.push(m(P,k,D,K,String(L),!0)):J.push("");return re.forEach(function(Q){Q.match(/^\d+$/)||J.push(m(P,k,D,K,Q,!0))}),J}function m(P,k,D,K,re,J){var L,ee,Q;if(Q=Object.getOwnPropertyDescriptor(k,re)||{value:k[re]},Q.get?Q.set?ee=P.stylize("[Getter/Setter]","special"):ee=P.stylize("[Getter]","special"):Q.set&&(ee=P.stylize("[Setter]","special")),G(K,re)||(L="["+re+"]"),ee||(P.seen.indexOf(Q.value)<0?(j(D)?ee=p(P,Q.value,null):ee=p(P,Q.value,D-1),ee.indexOf(`
16
16
  `)>-1&&(J?ee=ee.split(`
17
17
  `).map(function(te){return" "+te}).join(`
18
18
  `).slice(2):ee=`
@@ -21,7 +21,7 @@ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-comp
21
21
  `))):ee=P.stylize("[Circular]","special")),C(L)){if(J&&re.match(/^\d+$/))return ee;L=JSON.stringify(""+re),L.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(L=L.slice(1,-1),L=P.stylize(L,"name")):(L=L.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),L=P.stylize(L,"string"))}return L+": "+ee}function _(P,k,D){var K=P.reduce(function(re,J){return J.indexOf(`
22
22
  `)>=0,re+J.replace(/\u001b\[\d\d?m/g,"").length+1},0);return K>60?D[0]+(k===""?"":k+`
23
23
  `)+" "+P.join(`,
24
- `)+" "+D[1]:D[0]+k+" "+P.join(", ")+" "+D[1]}e.types=Og();function y(P){return Array.isArray(P)}e.isArray=y;function b(P){return typeof P=="boolean"}e.isBoolean=b;function j(P){return P===null}e.isNull=j;function v(P){return P==null}e.isNullOrUndefined=v;function S(P){return typeof P=="number"}e.isNumber=S;function E(P){return typeof P=="string"}e.isString=E;function R(P){return typeof P=="symbol"}e.isSymbol=R;function C(P){return P===void 0}e.isUndefined=C;function A(P){return O(P)&&T(P)==="[object RegExp]"}e.isRegExp=A,e.types.isRegExp=A;function O(P){return typeof P=="object"&&P!==null}e.isObject=O;function w(P){return O(P)&&T(P)==="[object Date]"}e.isDate=w,e.types.isDate=w;function N(P){return O(P)&&(T(P)==="[object Error]"||P instanceof Error)}e.isError=N,e.types.isNativeError=N;function I(P){return typeof P=="function"}e.isFunction=I;function B(P){return P===null||typeof P=="boolean"||typeof P=="number"||typeof P=="string"||typeof P=="symbol"||typeof P>"u"}e.isPrimitive=B,e.isBuffer=kg();function T(P){return Object.prototype.toString.call(P)}function H(P){return P<10?"0"+P.toString(10):P.toString(10)}var U=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function q(){var P=new Date,k=[H(P.getHours()),H(P.getMinutes()),H(P.getSeconds())].join(":");return[P.getDate(),U[P.getMonth()],k].join(" ")}e.log=function(){console.log("%s - %s",q(),e.format.apply(e,arguments))},e.inherits=Mg(),e._extend=function(P,k){if(!k||!O(k))return P;for(var D=Object.keys(k),K=D.length;K--;)P[D[K]]=k[D[K]];return P};function G(P,k){return Object.prototype.hasOwnProperty.call(P,k)}var W=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(k){if(typeof k!="function")throw new TypeError('The "original" argument must be of type Function');if(W&&k[W]){var D=k[W];if(typeof D!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(D,W,{value:D,enumerable:!1,writable:!1,configurable:!0}),D}function D(){for(var K,re,J=new Promise(function(Q,te){K=Q,re=te}),L=[],ee=0;ee<arguments.length;ee++)L.push(arguments[ee]);L.push(function(Q,te){Q?re(Q):K(te)});try{k.apply(this,L)}catch(Q){re(Q)}return J}return Object.setPrototypeOf(D,Object.getPrototypeOf(k)),W&&Object.defineProperty(D,W,{value:D,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(D,t(k))},e.promisify.custom=W;function z(P,k){if(!P){var D=new Error("Promise was rejected with a falsy value");D.reason=P,P=D}return k(P)}function Z(P){if(typeof P!="function")throw new TypeError('The "original" argument must be of type Function');function k(){for(var D=[],K=0;K<arguments.length;K++)D.push(arguments[K]);var re=D.pop();if(typeof re!="function")throw new TypeError("The last argument must be of type Function");var J=this,L=function(){return re.apply(J,arguments)};P.apply(this,D).then(function(ee){process.nextTick(L.bind(null,null,ee))},function(ee){process.nextTick(z.bind(null,ee,L))})}return Object.setPrototypeOf(k,Object.getPrototypeOf(P)),Object.defineProperties(k,t(P)),k}e.callbackify=Z}(Jr)),Jr}var Ji;function Dg(){return Ji||(Ji=1,(()=>{var e={333:(s,i,a)=>{const c=a(137),l=a(179),u=a(13),p=a(719),h=(d,f={})=>{let m=[];if(Array.isArray(d))for(let _ of d){let y=h.create(_,f);Array.isArray(y)?m.push(...y):m.push(y)}else m=[].concat(h.create(d,f));return f&&f.expand===!0&&f.nodupes===!0&&(m=[...new Set(m)]),m};h.parse=(d,f={})=>p(d,f),h.stringify=(d,f={})=>c(typeof d=="string"?h.parse(d,f):d,f),h.compile=(d,f={})=>(typeof d=="string"&&(d=h.parse(d,f)),l(d,f)),h.expand=(d,f={})=>{typeof d=="string"&&(d=h.parse(d,f));let m=u(d,f);return f.noempty===!0&&(m=m.filter(Boolean)),f.nodupes===!0&&(m=[...new Set(m)]),m},h.create=(d,f={})=>d===""||d.length<3?[d]:f.expand!==!0?h.compile(d,f):h.expand(d,f),s.exports=h},179:(s,i,a)=>{const c=a(783),l=a(617),u=(p,h={})=>{let d=(f,m={})=>{let _=l.isInvalidBrace(m),y=f.invalid===!0&&h.escapeInvalid===!0,b=_===!0||y===!0,j=h.escapeInvalid===!0?"\\":"",v="";if(f.isOpen===!0||f.isClose===!0)return j+f.value;if(f.type==="open")return b?j+f.value:"(";if(f.type==="close")return b?j+f.value:")";if(f.type==="comma")return f.prev.type==="comma"?"":b?f.value:"|";if(f.value)return f.value;if(f.nodes&&f.ranges>0){let S=l.reduce(f.nodes),E=c(...S,{...h,wrap:!1,toRegex:!0});if(E.length!==0)return S.length>1&&E.length>1?`(${E})`:E}if(f.nodes)for(let S of f.nodes)v+=d(S,f);return v};return d(p)};s.exports=u},457:s=>{s.exports={MAX_LENGTH:65536,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
24
+ `)+" "+D[1]:D[0]+k+" "+P.join(", ")+" "+D[1]}e.types=Og();function y(P){return Array.isArray(P)}e.isArray=y;function b(P){return typeof P=="boolean"}e.isBoolean=b;function j(P){return P===null}e.isNull=j;function v(P){return P==null}e.isNullOrUndefined=v;function S(P){return typeof P=="number"}e.isNumber=S;function E(P){return typeof P=="string"}e.isString=E;function R(P){return typeof P=="symbol"}e.isSymbol=R;function C(P){return P===void 0}e.isUndefined=C;function A(P){return O(P)&&T(P)==="[object RegExp]"}e.isRegExp=A,e.types.isRegExp=A;function O(P){return typeof P=="object"&&P!==null}e.isObject=O;function w(P){return O(P)&&T(P)==="[object Date]"}e.isDate=w,e.types.isDate=w;function N(P){return O(P)&&(T(P)==="[object Error]"||P instanceof Error)}e.isError=N,e.types.isNativeError=N;function I(P){return typeof P=="function"}e.isFunction=I;function B(P){return P===null||typeof P=="boolean"||typeof P=="number"||typeof P=="string"||typeof P=="symbol"||typeof P>"u"}e.isPrimitive=B,e.isBuffer=kg();function T(P){return Object.prototype.toString.call(P)}function H(P){return P<10?"0"+P.toString(10):P.toString(10)}var U=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function q(){var P=new Date,k=[H(P.getHours()),H(P.getMinutes()),H(P.getSeconds())].join(":");return[P.getDate(),U[P.getMonth()],k].join(" ")}e.log=function(){console.log("%s - %s",q(),e.format.apply(e,arguments))},e.inherits=Mg(),e._extend=function(P,k){if(!k||!O(k))return P;for(var D=Object.keys(k),K=D.length;K--;)P[D[K]]=k[D[K]];return P};function G(P,k){return Object.prototype.hasOwnProperty.call(P,k)}var W=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(k){if(typeof k!="function")throw new TypeError('The "original" argument must be of type Function');if(W&&k[W]){var D=k[W];if(typeof D!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(D,W,{value:D,enumerable:!1,writable:!1,configurable:!0}),D}function D(){for(var K,re,J=new Promise(function(Q,te){K=Q,re=te}),L=[],ee=0;ee<arguments.length;ee++)L.push(arguments[ee]);L.push(function(Q,te){Q?re(Q):K(te)});try{k.apply(this,L)}catch(Q){re(Q)}return J}return Object.setPrototypeOf(D,Object.getPrototypeOf(k)),W&&Object.defineProperty(D,W,{value:D,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(D,t(k))},e.promisify.custom=W;function z(P,k){if(!P){var D=new Error("Promise was rejected with a falsy value");D.reason=P,P=D}return k(P)}function Z(P){if(typeof P!="function")throw new TypeError('The "original" argument must be of type Function');function k(){for(var D=[],K=0;K<arguments.length;K++)D.push(arguments[K]);var re=D.pop();if(typeof re!="function")throw new TypeError("The last argument must be of type Function");var J=this,L=function(){return re.apply(J,arguments)};P.apply(this,D).then(function(ee){process.nextTick(L.bind(null,null,ee))},function(ee){process.nextTick(z.bind(null,ee,L))})}return Object.setPrototypeOf(k,Object.getPrototypeOf(P)),Object.defineProperties(k,t(P)),k}e.callbackify=Z}(Zr)),Zr}var Zi;function Dg(){return Zi||(Zi=1,(()=>{var e={333:(s,i,a)=>{const c=a(137),l=a(179),u=a(13),p=a(719),h=(d,f={})=>{let m=[];if(Array.isArray(d))for(let _ of d){let y=h.create(_,f);Array.isArray(y)?m.push(...y):m.push(y)}else m=[].concat(h.create(d,f));return f&&f.expand===!0&&f.nodupes===!0&&(m=[...new Set(m)]),m};h.parse=(d,f={})=>p(d,f),h.stringify=(d,f={})=>c(typeof d=="string"?h.parse(d,f):d,f),h.compile=(d,f={})=>(typeof d=="string"&&(d=h.parse(d,f)),l(d,f)),h.expand=(d,f={})=>{typeof d=="string"&&(d=h.parse(d,f));let m=u(d,f);return f.noempty===!0&&(m=m.filter(Boolean)),f.nodupes===!0&&(m=[...new Set(m)]),m},h.create=(d,f={})=>d===""||d.length<3?[d]:f.expand!==!0?h.compile(d,f):h.expand(d,f),s.exports=h},179:(s,i,a)=>{const c=a(783),l=a(617),u=(p,h={})=>{let d=(f,m={})=>{let _=l.isInvalidBrace(m),y=f.invalid===!0&&h.escapeInvalid===!0,b=_===!0||y===!0,j=h.escapeInvalid===!0?"\\":"",v="";if(f.isOpen===!0||f.isClose===!0)return j+f.value;if(f.type==="open")return b?j+f.value:"(";if(f.type==="close")return b?j+f.value:")";if(f.type==="comma")return f.prev.type==="comma"?"":b?f.value:"|";if(f.value)return f.value;if(f.nodes&&f.ranges>0){let S=l.reduce(f.nodes),E=c(...S,{...h,wrap:!1,toRegex:!0});if(E.length!==0)return S.length>1&&E.length>1?`(${E})`:E}if(f.nodes)for(let S of f.nodes)v+=d(S,f);return v};return d(p)};s.exports=u},457:s=>{s.exports={MAX_LENGTH:65536,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
25
25
  `,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},13:(s,i,a)=>{const c=a(783),l=a(137),u=a(617),p=(d="",f="",m=!1)=>{let _=[];if(d=[].concat(d),f=[].concat(f),!f.length)return d;if(!d.length)return m?u.flatten(f).map(y=>`{${y}}`):f;for(let y of d)if(Array.isArray(y))for(let b of y)_.push(p(b,f,m));else for(let b of f)m===!0&&typeof b=="string"&&(b=`{${b}}`),_.push(Array.isArray(b)?p(y,b,m):y+b);return u.flatten(_)},h=(d,f={})=>{let m=f.rangeLimit===void 0?1e3:f.rangeLimit,_=(y,b={})=>{y.queue=[];let j=b,v=b.queue;for(;j.type!=="brace"&&j.type!=="root"&&j.parent;)j=j.parent,v=j.queue;if(y.invalid||y.dollar){v.push(p(v.pop(),l(y,f)));return}if(y.type==="brace"&&y.invalid!==!0&&y.nodes.length===2){v.push(p(v.pop(),["{}"]));return}if(y.nodes&&y.ranges>0){let C=u.reduce(y.nodes);if(u.exceedsLimit(...C,f.step,m))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let A=c(...C,f);A.length===0&&(A=l(y,f)),v.push(p(v.pop(),A)),y.nodes=[];return}let S=u.encloseBrace(y),E=y.queue,R=y;for(;R.type!=="brace"&&R.type!=="root"&&R.parent;)R=R.parent,E=R.queue;for(let C=0;C<y.nodes.length;C++){let A=y.nodes[C];if(A.type==="comma"&&y.type==="brace"){C===1&&E.push(""),E.push("");continue}if(A.type==="close"){v.push(p(v.pop(),E,S));continue}if(A.value&&A.type!=="open"){E.push(p(E.pop(),A.value));continue}A.nodes&&_(A,y)}return E};return u.flatten(_(d))};s.exports=h},719:(s,i,a)=>{const c=a(137),{MAX_LENGTH:l,CHAR_BACKSLASH:u,CHAR_BACKTICK:p,CHAR_COMMA:h,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:f,CHAR_RIGHT_PARENTHESES:m,CHAR_LEFT_CURLY_BRACE:_,CHAR_RIGHT_CURLY_BRACE:y,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_RIGHT_SQUARE_BRACKET:j,CHAR_DOUBLE_QUOTE:v,CHAR_SINGLE_QUOTE:S,CHAR_NO_BREAK_SPACE:E,CHAR_ZERO_WIDTH_NOBREAK_SPACE:R}=a(457),C=(A,O={})=>{if(typeof A!="string")throw new TypeError("Expected a string");let w=O||{},N=typeof w.maxLength=="number"?Math.min(l,w.maxLength):l;if(A.length>N)throw new SyntaxError(`Input length (${A.length}), exceeds max characters (${N})`);let I={type:"root",input:A,nodes:[]},B=[I],T=I,H=I,U=0,q=A.length,G=0,W=0,z;const Z=()=>A[G++],P=k=>{if(k.type==="text"&&H.type==="dot"&&(H.type="text"),H&&H.type==="text"&&k.type==="text"){H.value+=k.value;return}return T.nodes.push(k),k.parent=T,k.prev=H,H=k,k};for(P({type:"bos"});G<q;)if(T=B[B.length-1],z=Z(),!(z===R||z===E)){if(z===u){P({type:"text",value:(O.keepEscaping?z:"")+Z()});continue}if(z===j){P({type:"text",value:"\\"+z});continue}if(z===b){U++;let k;for(;G<q&&(k=Z());){if(z+=k,k===b){U++;continue}if(k===u){z+=Z();continue}if(k===j&&(U--,U===0))break}P({type:"text",value:z});continue}if(z===f){T=P({type:"paren",nodes:[]}),B.push(T),P({type:"text",value:z});continue}if(z===m){if(T.type!=="paren"){P({type:"text",value:z});continue}T=B.pop(),P({type:"text",value:z}),T=B[B.length-1];continue}if(z===v||z===S||z===p){let k=z,D;for(O.keepQuotes!==!0&&(z="");G<q&&(D=Z());){if(D===u){z+=D+Z();continue}if(D===k){O.keepQuotes===!0&&(z+=D);break}z+=D}P({type:"text",value:z});continue}if(z===_){W++;let D={type:"brace",open:!0,close:!1,dollar:H.value&&H.value.slice(-1)==="$"||T.dollar===!0,depth:W,commas:0,ranges:0,nodes:[]};T=P(D),B.push(T),P({type:"open",value:z});continue}if(z===y){if(T.type!=="brace"){P({type:"text",value:z});continue}let k="close";T=B.pop(),T.close=!0,P({type:k,value:z}),W--,T=B[B.length-1];continue}if(z===h&&W>0){if(T.ranges>0){T.ranges=0;let k=T.nodes.shift();T.nodes=[k,{type:"text",value:c(T)}]}P({type:"comma",value:z}),T.commas++;continue}if(z===d&&W>0&&T.commas===0){let k=T.nodes;if(W===0||k.length===0){P({type:"text",value:z});continue}if(H.type==="dot"){if(T.range=[],H.value+=z,H.type="range",T.nodes.length!==3&&T.nodes.length!==5){T.invalid=!0,T.ranges=0,H.type="text";continue}T.ranges++,T.args=[];continue}if(H.type==="range"){k.pop();let D=k[k.length-1];D.value+=H.value+z,H=D,T.ranges--;continue}P({type:"dot",value:z});continue}P({type:"text",value:z})}do if(T=B.pop(),T.type!=="root"){T.nodes.forEach(K=>{K.nodes||(K.type==="open"&&(K.isOpen=!0),K.type==="close"&&(K.isClose=!0),K.nodes||(K.type="text"),K.invalid=!0)});let k=B[B.length-1],D=k.nodes.indexOf(T);k.nodes.splice(D,1,...T.nodes)}while(B.length>0);return P({type:"eos"}),I};s.exports=C},137:(s,i,a)=>{const c=a(617);s.exports=(l,u={})=>{let p=(h,d={})=>{let f=u.escapeInvalid&&c.isInvalidBrace(d),m=h.invalid===!0&&u.escapeInvalid===!0,_="";if(h.value)return(f||m)&&c.isOpenOrClose(h)?"\\"+h.value:h.value;if(h.value)return h.value;if(h.nodes)for(let y of h.nodes)_+=p(y);return _};return p(l)}},617:(s,i)=>{i.isInteger=a=>typeof a=="number"?Number.isInteger(a):typeof a=="string"&&a.trim()!==""?Number.isInteger(Number(a)):!1,i.find=(a,c)=>a.nodes.find(l=>l.type===c),i.exceedsLimit=(a,c,l=1,u)=>u===!1||!i.isInteger(a)||!i.isInteger(c)?!1:(Number(c)-Number(a))/Number(l)>=u,i.escapeNode=(a,c=0,l)=>{let u=a.nodes[c];u&&(l&&u.type===l||u.type==="open"||u.type==="close")&&u.escaped!==!0&&(u.value="\\"+u.value,u.escaped=!0)},i.encloseBrace=a=>a.type!=="brace"||a.commas>>0+a.ranges>>0?!1:(a.invalid=!0,!0),i.isInvalidBrace=a=>a.type!=="brace"?!1:a.invalid===!0||a.dollar?!0:!(a.commas>>0+a.ranges>>0)||a.open!==!0||a.close!==!0?(a.invalid=!0,!0):!1,i.isOpenOrClose=a=>a.type==="open"||a.type==="close"?!0:a.open===!0||a.close===!0,i.reduce=a=>a.reduce((c,l)=>(l.type==="text"&&c.push(l.value),l.type==="range"&&(l.type="text"),c),[]),i.flatten=(...a)=>{const c=[],l=u=>{for(let p=0;p<u.length;p++){let h=u[p];Array.isArray(h)?l(h):h!==void 0&&c.push(h)}return c};return l(a),c}},783:(s,i,a)=>{/*!
26
26
  * fill-range <https://github.com/jonschlinkert/fill-range>
27
27
  *
@@ -32,13 +32,13 @@ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-comp
32
32
  *
33
33
  * Copyright (c) 2014-present, Jon Schlinkert.
34
34
  * Released under the MIT License.
35
- */s.exports=function(i){return typeof i=="number"?i-i===0:typeof i=="string"&&i.trim()!==""?Number.isFinite?Number.isFinite(+i):isFinite(+i):!1}},971:(s,i,a)=>{const c=a(837),l=a(333),u=a(251),p=a(513),h=f=>f===""||f==="./",d=(f,m,_)=>{m=[].concat(m),f=[].concat(f);let y=new Set,b=new Set,j=new Set,v=0,S=C=>{j.add(C.output),_&&_.onResult&&_.onResult(C)};for(let C=0;C<m.length;C++){let A=u(String(m[C]),{..._,onResult:S},!0),O=A.state.negated||A.state.negatedExtglob;O&&v++;for(let w of f){let N=A(w,!0);(O?!N.isMatch:N.isMatch)&&(O?y.add(N.output):(y.delete(N.output),b.add(N.output)))}}let R=(v===m.length?[...j]:[...b]).filter(C=>!y.has(C));if(_&&R.length===0){if(_.failglob===!0)throw new Error(`No matches found for "${m.join(", ")}"`);if(_.nonull===!0||_.nullglob===!0)return _.unescape?m.map(C=>C.replace(/\\/g,"")):m}return R};d.match=d,d.matcher=(f,m)=>u(f,m),d.isMatch=(f,m,_)=>u(m,_)(f),d.any=d.isMatch,d.not=(f,m,_={})=>{m=[].concat(m).map(String);let y=new Set,b=[],v=d(f,m,{..._,onResult:S=>{_.onResult&&_.onResult(S),b.push(S.output)}});for(let S of b)v.includes(S)||y.add(S);return[...y]},d.contains=(f,m,_)=>{if(typeof f!="string")throw new TypeError(`Expected a string: "${c.inspect(f)}"`);if(Array.isArray(m))return m.some(y=>d.contains(f,y,_));if(typeof m=="string"){if(h(f)||h(m))return!1;if(f.includes(m)||f.startsWith("./")&&f.slice(2).includes(m))return!0}return d.isMatch(f,m,{..._,contains:!0})},d.matchKeys=(f,m,_)=>{if(!p.isObject(f))throw new TypeError("Expected the first argument to be an object");let y=d(Object.keys(f),m,_),b={};for(let j of y)b[j]=f[j];return b},d.some=(f,m,_)=>{let y=[].concat(f);for(let b of[].concat(m)){let j=u(String(b),_);if(y.some(v=>j(v)))return!0}return!1},d.every=(f,m,_)=>{let y=[].concat(f);for(let b of[].concat(m)){let j=u(String(b),_);if(!y.every(v=>j(v)))return!1}return!0},d.all=(f,m,_)=>{if(typeof f!="string")throw new TypeError(`Expected a string: "${c.inspect(f)}"`);return[].concat(m).every(y=>u(y,_)(f))},d.capture=(f,m,_)=>{let y=p.isWindows(_),j=u.makeRe(String(f),{..._,capture:!0}).exec(y?p.toPosixSlashes(m):m);if(j)return j.slice(1).map(v=>v===void 0?"":v)},d.makeRe=(...f)=>u.makeRe(...f),d.scan=(...f)=>u.scan(...f),d.parse=(f,m)=>{let _=[];for(let y of[].concat(f||[]))for(let b of l(String(y),m))_.push(u.parse(b,m));return _},d.braces=(f,m)=>{if(typeof f!="string")throw new TypeError("Expected a string");return m&&m.nobrace===!0||!/\{.*\}/.test(f)?[f]:l(f,m)},d.braceExpand=(f,m)=>{if(typeof f!="string")throw new TypeError("Expected a string");return d.braces(f,{...m,expand:!0})},s.exports=d},251:(s,i,a)=>{s.exports=a(683)},356:(s,i,a)=>{const c=a(17),l="\\\\/",u=`[^${l}]`,p="\\.",h="\\+",d="\\?",f="\\/",m="(?=.)",_="[^/]",y=`(?:${f}|$)`,b=`(?:^|${f})`,j=`${p}{1,2}${y}`,v=`(?!${p})`,S=`(?!${b}${j})`,E=`(?!${p}{0,1}${y})`,R=`(?!${j})`,C=`[^.${f}]`,A=`${_}*?`,O={DOT_LITERAL:p,PLUS_LITERAL:h,QMARK_LITERAL:d,SLASH_LITERAL:f,ONE_CHAR:m,QMARK:_,END_ANCHOR:y,DOTS_SLASH:j,NO_DOT:v,NO_DOTS:S,NO_DOT_SLASH:E,NO_DOTS_SLASH:R,QMARK_NO_DOT:C,STAR:A,START_ANCHOR:b},w={...O,SLASH_LITERAL:`[${l}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${p}{1,2}(?:[${l}]|$)`,NO_DOT:`(?!${p})`,NO_DOTS:`(?!(?:^|[${l}])${p}{1,2}(?:[${l}]|$))`,NO_DOT_SLASH:`(?!${p}{0,1}(?:[${l}]|$))`,NO_DOTS_SLASH:`(?!${p}{1,2}(?:[${l}]|$))`,QMARK_NO_DOT:`[^.${l}]`,START_ANCHOR:`(?:^|[${l}])`,END_ANCHOR:`(?:[${l}]|$)`},N={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};s.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:N,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:c.sep,extglobChars(I){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${I.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(I){return I===!0?w:O}}},754:(s,i,a)=>{const c=a(356),l=a(513),{MAX_LENGTH:u,POSIX_REGEX_SOURCE:p,REGEX_NON_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:f}=c,m=(b,j)=>{if(typeof j.expandRange=="function")return j.expandRange(...b,j);b.sort();const v=`[${b.join("-")}]`;try{new RegExp(v)}catch{return b.map(E=>l.escapeRegex(E)).join("..")}return v},_=(b,j)=>`Missing ${b}: "${j}" - use "\\\\${j}" to match literal characters`,y=(b,j)=>{if(typeof b!="string")throw new TypeError("Expected a string");b=f[b]||b;const v={...j},S=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u;let E=b.length;if(E>S)throw new SyntaxError(`Input length: ${E}, exceeds maximum allowed length: ${S}`);const R={type:"bos",value:"",output:v.prepend||""},C=[R],A=v.capture?"":"?:",O=l.isWindows(j),w=c.globChars(O),N=c.extglobChars(w),{DOT_LITERAL:I,PLUS_LITERAL:B,SLASH_LITERAL:T,ONE_CHAR:H,DOTS_SLASH:U,NO_DOT:q,NO_DOT_SLASH:G,NO_DOTS_SLASH:W,QMARK:z,QMARK_NO_DOT:Z,STAR:P,START_ANCHOR:k}=w,D=Y=>`(${A}(?:(?!${k}${Y.dot?U:I}).)*?)`,K=v.dot?"":q,re=v.dot?z:Z;let J=v.bash===!0?D(v):P;v.capture&&(J=`(${J})`),typeof v.noext=="boolean"&&(v.noextglob=v.noext);const L={input:b,index:-1,start:0,dot:v.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:C};b=l.removePrefix(b,L),E=b.length;const ee=[],Q=[],te=[];let $=R,M;const ne=()=>L.index===E-1,ae=L.peek=(Y=1)=>b[L.index+Y],ue=L.advance=()=>b[++L.index],de=()=>b.slice(L.index+1),ce=(Y="",oe=0)=>{L.consumed+=Y,L.index+=oe},F=Y=>{L.output+=Y.output!=null?Y.output:Y.value,ce(Y.value)},_e=()=>{let Y=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)ue(),L.start++,Y++;return Y%2===0?!1:(L.negated=!0,L.start++,!0)},se=Y=>{L[Y]++,te.push(Y)},ye=Y=>{L[Y]--,te.pop()},V=Y=>{if($.type==="globstar"){const oe=L.braces>0&&(Y.type==="comma"||Y.type==="brace"),X=Y.extglob===!0||ee.length&&(Y.type==="pipe"||Y.type==="paren");Y.type!=="slash"&&Y.type!=="paren"&&!oe&&!X&&(L.output=L.output.slice(0,-$.output.length),$.type="star",$.value="*",$.output=J,L.output+=$.output)}if(ee.length&&Y.type!=="paren"&&!N[Y.value]&&(ee[ee.length-1].inner+=Y.value),(Y.value||Y.output)&&F(Y),$&&$.type==="text"&&Y.type==="text"){$.value+=Y.value,$.output=($.output||"")+Y.value;return}Y.prev=$,C.push(Y),$=Y},fe=(Y,oe)=>{const X={...N[oe],conditions:1,inner:""};X.prev=$,X.parens=L.parens,X.output=L.output;const pe=(v.capture?"(":"")+X.open;se("parens"),V({type:Y,value:oe,output:L.output?"":H}),V({type:"paren",extglob:!0,value:ue(),output:pe}),ee.push(X)},Ae=Y=>{let oe=Y.close+(v.capture?")":"");if(Y.type==="negate"){let X=J;Y.inner&&Y.inner.length>1&&Y.inner.includes("/")&&(X=D(v)),(X!==J||ne()||/^\)+$/.test(de()))&&(oe=Y.close=`)$))${X}`),Y.prev.type==="bos"&&(L.negatedExtglob=!0)}V({type:"paren",extglob:!0,value:M,output:oe}),ye("parens")};if(v.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(b)){let Y=!1,oe=b.replace(d,(X,pe,xe,Ne,Ee,gr)=>Ne==="\\"?(Y=!0,X):Ne==="?"?pe?pe+Ne+(Ee?z.repeat(Ee.length):""):gr===0?re+(Ee?z.repeat(Ee.length):""):z.repeat(xe.length):Ne==="."?I.repeat(xe.length):Ne==="*"?pe?pe+Ne+(Ee?J:""):J:pe?X:`\\${X}`);return Y===!0&&(v.unescape===!0?oe=oe.replace(/\\/g,""):oe=oe.replace(/\\+/g,X=>X.length%2===0?"\\\\":X?"\\":"")),oe===b&&v.contains===!0?(L.output=b,L):(L.output=l.wrapOutput(oe,L,j),L)}for(;!ne();){if(M=ue(),M==="\0")continue;if(M==="\\"){const X=ae();if(X==="/"&&v.bash!==!0||X==="."||X===";")continue;if(!X){M+="\\",V({type:"text",value:M});continue}const pe=/^\\+/.exec(de());let xe=0;if(pe&&pe[0].length>2&&(xe=pe[0].length,L.index+=xe,xe%2!==0&&(M+="\\")),v.unescape===!0?M=ue()||"":M+=ue()||"",L.brackets===0){V({type:"text",value:M});continue}}if(L.brackets>0&&(M!=="]"||$.value==="["||$.value==="[^")){if(v.posix!==!1&&M===":"){const X=$.value.slice(1);if(X.includes("[")&&($.posix=!0,X.includes(":"))){const pe=$.value.lastIndexOf("["),xe=$.value.slice(0,pe),Ne=$.value.slice(pe+2),Ee=p[Ne];if(Ee){$.value=xe+Ee,L.backtrack=!0,ue(),!R.output&&C.indexOf($)===1&&(R.output=H);continue}}}(M==="["&&ae()!==":"||M==="-"&&ae()==="]")&&(M=`\\${M}`),M==="]"&&($.value==="["||$.value==="[^")&&(M=`\\${M}`),v.posix===!0&&M==="!"&&$.value==="["&&(M="^"),$.value+=M,F({value:M});continue}if(L.quotes===1&&M!=='"'){M=l.escapeRegex(M),$.value+=M,F({value:M});continue}if(M==='"'){L.quotes=L.quotes===1?0:1,v.keepQuotes===!0&&V({type:"text",value:M});continue}if(M==="("){se("parens"),V({type:"paren",value:M});continue}if(M===")"){if(L.parens===0&&v.strictBrackets===!0)throw new SyntaxError(_("opening","("));const X=ee[ee.length-1];if(X&&L.parens===X.parens+1){Ae(ee.pop());continue}V({type:"paren",value:M,output:L.parens?")":"\\)"}),ye("parens");continue}if(M==="["){if(v.nobracket===!0||!de().includes("]")){if(v.nobracket!==!0&&v.strictBrackets===!0)throw new SyntaxError(_("closing","]"));M=`\\${M}`}else se("brackets");V({type:"bracket",value:M});continue}if(M==="]"){if(v.nobracket===!0||$&&$.type==="bracket"&&$.value.length===1){V({type:"text",value:M,output:`\\${M}`});continue}if(L.brackets===0){if(v.strictBrackets===!0)throw new SyntaxError(_("opening","["));V({type:"text",value:M,output:`\\${M}`});continue}ye("brackets");const X=$.value.slice(1);if($.posix!==!0&&X[0]==="^"&&!X.includes("/")&&(M=`/${M}`),$.value+=M,F({value:M}),v.literalBrackets===!1||l.hasRegexChars(X))continue;const pe=l.escapeRegex($.value);if(L.output=L.output.slice(0,-$.value.length),v.literalBrackets===!0){L.output+=pe,$.value=pe;continue}$.value=`(${A}${pe}|${$.value})`,L.output+=$.value;continue}if(M==="{"&&v.nobrace!==!0){se("braces");const X={type:"brace",value:M,output:"(",outputIndex:L.output.length,tokensIndex:L.tokens.length};Q.push(X),V(X);continue}if(M==="}"){const X=Q[Q.length-1];if(v.nobrace===!0||!X){V({type:"text",value:M,output:M});continue}let pe=")";if(X.dots===!0){const xe=C.slice(),Ne=[];for(let Ee=xe.length-1;Ee>=0&&(C.pop(),xe[Ee].type!=="brace");Ee--)xe[Ee].type!=="dots"&&Ne.unshift(xe[Ee].value);pe=m(Ne,v),L.backtrack=!0}if(X.comma!==!0&&X.dots!==!0){const xe=L.output.slice(0,X.outputIndex),Ne=L.tokens.slice(X.tokensIndex);X.value=X.output="\\{",M=pe="\\}",L.output=xe;for(const Ee of Ne)L.output+=Ee.output||Ee.value}V({type:"brace",value:M,output:pe}),ye("braces"),Q.pop();continue}if(M==="|"){ee.length>0&&ee[ee.length-1].conditions++,V({type:"text",value:M});continue}if(M===","){let X=M;const pe=Q[Q.length-1];pe&&te[te.length-1]==="braces"&&(pe.comma=!0,X="|"),V({type:"comma",value:M,output:X});continue}if(M==="/"){if($.type==="dot"&&L.index===L.start+1){L.start=L.index+1,L.consumed="",L.output="",C.pop(),$=R;continue}V({type:"slash",value:M,output:T});continue}if(M==="."){if(L.braces>0&&$.type==="dot"){$.value==="."&&($.output=I);const X=Q[Q.length-1];$.type="dots",$.output+=M,$.value+=M,X.dots=!0;continue}if(L.braces+L.parens===0&&$.type!=="bos"&&$.type!=="slash"){V({type:"text",value:M,output:I});continue}V({type:"dot",value:M,output:I});continue}if(M==="?"){if(!($&&$.value==="(")&&v.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){fe("qmark",M);continue}if($&&$.type==="paren"){const pe=ae();let xe=M;if(pe==="<"&&!l.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");($.value==="("&&!/[!=<:]/.test(pe)||pe==="<"&&!/<([!=]|\w+>)/.test(de()))&&(xe=`\\${M}`),V({type:"text",value:M,output:xe});continue}if(v.dot!==!0&&($.type==="slash"||$.type==="bos")){V({type:"qmark",value:M,output:Z});continue}V({type:"qmark",value:M,output:z});continue}if(M==="!"){if(v.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){fe("negate",M);continue}if(v.nonegate!==!0&&L.index===0){_e();continue}}if(M==="+"){if(v.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){fe("plus",M);continue}if($&&$.value==="("||v.regex===!1){V({type:"plus",value:M,output:B});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||L.parens>0){V({type:"plus",value:M});continue}V({type:"plus",value:B});continue}if(M==="@"){if(v.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){V({type:"at",extglob:!0,value:M,output:""});continue}V({type:"text",value:M});continue}if(M!=="*"){(M==="$"||M==="^")&&(M=`\\${M}`);const X=h.exec(de());X&&(M+=X[0],L.index+=X[0].length),V({type:"text",value:M});continue}if($&&($.type==="globstar"||$.star===!0)){$.type="star",$.star=!0,$.value+=M,$.output=J,L.backtrack=!0,L.globstar=!0,ce(M);continue}let Y=de();if(v.noextglob!==!0&&/^\([^?]/.test(Y)){fe("star",M);continue}if($.type==="star"){if(v.noglobstar===!0){ce(M);continue}const X=$.prev,pe=X.prev,xe=X.type==="slash"||X.type==="bos",Ne=pe&&(pe.type==="star"||pe.type==="globstar");if(v.bash===!0&&(!xe||Y[0]&&Y[0]!=="/")){V({type:"star",value:M,output:""});continue}const Ee=L.braces>0&&(X.type==="comma"||X.type==="brace"),gr=ee.length&&(X.type==="pipe"||X.type==="paren");if(!xe&&X.type!=="paren"&&!Ee&&!gr){V({type:"star",value:M,output:""});continue}for(;Y.slice(0,3)==="/**";){const Mt=b[L.index+4];if(Mt&&Mt!=="/")break;Y=Y.slice(3),ce("/**",3)}if(X.type==="bos"&&ne()){$.type="globstar",$.value+=M,$.output=D(v),L.output=$.output,L.globstar=!0,ce(M);continue}if(X.type==="slash"&&X.prev.type!=="bos"&&!Ne&&ne()){L.output=L.output.slice(0,-(X.output+$.output).length),X.output=`(?:${X.output}`,$.type="globstar",$.output=D(v)+(v.strictSlashes?")":"|$)"),$.value+=M,L.globstar=!0,L.output+=X.output+$.output,ce(M);continue}if(X.type==="slash"&&X.prev.type!=="bos"&&Y[0]==="/"){const Mt=Y[1]!==void 0?"|$":"";L.output=L.output.slice(0,-(X.output+$.output).length),X.output=`(?:${X.output}`,$.type="globstar",$.output=`${D(v)}${T}|${T}${Mt})`,$.value+=M,L.output+=X.output+$.output,L.globstar=!0,ce(M+ue()),V({type:"slash",value:"/",output:""});continue}if(X.type==="bos"&&Y[0]==="/"){$.type="globstar",$.value+=M,$.output=`(?:^|${T}|${D(v)}${T})`,L.output=$.output,L.globstar=!0,ce(M+ue()),V({type:"slash",value:"/",output:""});continue}L.output=L.output.slice(0,-$.output.length),$.type="globstar",$.output=D(v),$.value+=M,L.output+=$.output,L.globstar=!0,ce(M);continue}const oe={type:"star",value:M,output:J};if(v.bash===!0){oe.output=".*?",($.type==="bos"||$.type==="slash")&&(oe.output=K+oe.output),V(oe);continue}if($&&($.type==="bracket"||$.type==="paren")&&v.regex===!0){oe.output=M,V(oe);continue}(L.index===L.start||$.type==="slash"||$.type==="dot")&&($.type==="dot"?(L.output+=G,$.output+=G):v.dot===!0?(L.output+=W,$.output+=W):(L.output+=K,$.output+=K),ae()!=="*"&&(L.output+=H,$.output+=H)),V(oe)}for(;L.brackets>0;){if(v.strictBrackets===!0)throw new SyntaxError(_("closing","]"));L.output=l.escapeLast(L.output,"["),ye("brackets")}for(;L.parens>0;){if(v.strictBrackets===!0)throw new SyntaxError(_("closing",")"));L.output=l.escapeLast(L.output,"("),ye("parens")}for(;L.braces>0;){if(v.strictBrackets===!0)throw new SyntaxError(_("closing","}"));L.output=l.escapeLast(L.output,"{"),ye("braces")}if(v.strictSlashes!==!0&&($.type==="star"||$.type==="bracket")&&V({type:"maybe_slash",value:"",output:`${T}?`}),L.backtrack===!0){L.output="";for(const Y of L.tokens)L.output+=Y.output!=null?Y.output:Y.value,Y.suffix&&(L.output+=Y.suffix)}return L};y.fastpaths=(b,j)=>{const v={...j},S=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u,E=b.length;if(E>S)throw new SyntaxError(`Input length: ${E}, exceeds maximum allowed length: ${S}`);b=f[b]||b;const R=l.isWindows(j),{DOT_LITERAL:C,SLASH_LITERAL:A,ONE_CHAR:O,DOTS_SLASH:w,NO_DOT:N,NO_DOTS:I,NO_DOTS_SLASH:B,STAR:T,START_ANCHOR:H}=c.globChars(R),U=v.dot?I:N,q=v.dot?B:N,G=v.capture?"":"?:",W={negated:!1,prefix:""};let z=v.bash===!0?".*?":T;v.capture&&(z=`(${z})`);const Z=K=>K.noglobstar===!0?z:`(${G}(?:(?!${H}${K.dot?w:C}).)*?)`,P=K=>{switch(K){case"*":return`${U}${O}${z}`;case".*":return`${C}${O}${z}`;case"*.*":return`${U}${z}${C}${O}${z}`;case"*/*":return`${U}${z}${A}${O}${q}${z}`;case"**":return U+Z(v);case"**/*":return`(?:${U}${Z(v)}${A})?${q}${O}${z}`;case"**/*.*":return`(?:${U}${Z(v)}${A})?${q}${z}${C}${O}${z}`;case"**/.*":return`(?:${U}${Z(v)}${A})?${C}${O}${z}`;default:{const re=/^(.*?)\.(\w+)$/.exec(K);if(!re)return;const J=P(re[1]);return J?J+C+re[2]:void 0}}},k=l.removePrefix(b,W);let D=P(k);return D&&v.strictSlashes!==!0&&(D+=`${A}?`),D},s.exports=y},683:(s,i,a)=>{const c=a(17),l=a(700),u=a(754),p=a(513),h=a(356),d=m=>m&&typeof m=="object"&&!Array.isArray(m),f=(m,_,y=!1)=>{if(Array.isArray(m)){const A=m.map(w=>f(w,_,y));return w=>{for(const N of A){const I=N(w);if(I)return I}return!1}}const b=d(m)&&m.tokens&&m.input;if(m===""||typeof m!="string"&&!b)throw new TypeError("Expected pattern to be a non-empty string");const j=_||{},v=p.isWindows(_),S=b?f.compileRe(m,_):f.makeRe(m,_,!1,!0),E=S.state;delete S.state;let R=()=>!1;if(j.ignore){const A={..._,ignore:null,onMatch:null,onResult:null};R=f(j.ignore,A,y)}const C=(A,O=!1)=>{const{isMatch:w,match:N,output:I}=f.test(A,S,_,{glob:m,posix:v}),B={glob:m,state:E,regex:S,posix:v,input:A,output:I,match:N,isMatch:w};return typeof j.onResult=="function"&&j.onResult(B),w===!1?(B.isMatch=!1,O?B:!1):R(A)?(typeof j.onIgnore=="function"&&j.onIgnore(B),B.isMatch=!1,O?B:!1):(typeof j.onMatch=="function"&&j.onMatch(B),O?B:!0)};return y&&(C.state=E),C};f.test=(m,_,y,{glob:b,posix:j}={})=>{if(typeof m!="string")throw new TypeError("Expected input to be a string");if(m==="")return{isMatch:!1,output:""};const v=y||{},S=v.format||(j?p.toPosixSlashes:null);let E=m===b,R=E&&S?S(m):m;return E===!1&&(R=S?S(m):m,E=R===b),(E===!1||v.capture===!0)&&(v.matchBase===!0||v.basename===!0?E=f.matchBase(m,_,y,j):E=_.exec(R)),{isMatch:!!E,match:E,output:R}},f.matchBase=(m,_,y,b=p.isWindows(y))=>(_ instanceof RegExp?_:f.makeRe(_,y)).test(c.basename(m)),f.isMatch=(m,_,y)=>f(_,y)(m),f.parse=(m,_)=>Array.isArray(m)?m.map(y=>f.parse(y,_)):u(m,{..._,fastpaths:!1}),f.scan=(m,_)=>l(m,_),f.compileRe=(m,_,y=!1,b=!1)=>{if(y===!0)return m.output;const j=_||{},v=j.contains?"":"^",S=j.contains?"":"$";let E=`${v}(?:${m.output})${S}`;m&&m.negated===!0&&(E=`^(?!${E}).*$`);const R=f.toRegex(E,_);return b===!0&&(R.state=m),R},f.makeRe=(m,_,y=!1,b=!1)=>{if(!m||typeof m!="string")throw new TypeError("Expected a non-empty string");const j=_||{};let v={negated:!1,fastpaths:!0},S="",E;return m.startsWith("./")&&(m=m.slice(2),S=v.prefix="./"),j.fastpaths!==!1&&(m[0]==="."||m[0]==="*")&&(E=u.fastpaths(m,_)),E===void 0?(v=u(m,_),v.prefix=S+(v.prefix||"")):v.output=E,f.compileRe(v,_,y,b)},f.toRegex=(m,_)=>{try{const y=_||{};return new RegExp(m,y.flags||(y.nocase?"i":""))}catch(y){if(_&&_.debug===!0)throw y;return/$^/}},f.constants=h,s.exports=f},700:(s,i,a)=>{const c=a(513),{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:p,CHAR_COMMA:h,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:f,CHAR_FORWARD_SLASH:m,CHAR_LEFT_CURLY_BRACE:_,CHAR_LEFT_PARENTHESES:y,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_PLUS:j,CHAR_QUESTION_MARK:v,CHAR_RIGHT_CURLY_BRACE:S,CHAR_RIGHT_PARENTHESES:E,CHAR_RIGHT_SQUARE_BRACKET:R}=a(356),C=w=>w===m||w===p,A=w=>{w.isPrefix!==!0&&(w.depth=w.isGlobstar?1/0:1)},O=(w,N)=>{const I=N||{},B=w.length-1,T=I.parts===!0||I.scanToEnd===!0,H=[],U=[],q=[];let G=w,W=-1,z=0,Z=0,P=!1,k=!1,D=!1,K=!1,re=!1,J=!1,L=!1,ee=!1,Q=!1,te=0,$,M,ne={value:"",depth:0,isGlob:!1};const ae=()=>W>=B,ue=()=>G.charCodeAt(W+1),de=()=>($=M,G.charCodeAt(++W));for(;W<B;){M=de();let ye;if(M===p){L=ne.backslashes=!0,M=de(),M===_&&(J=!0);continue}if(J===!0||M===_){for(te++;ae()!==!0&&(M=de());){if(M===p){L=ne.backslashes=!0,de();continue}if(M===_){te++;continue}if(J!==!0&&M===d&&(M=de())===d){if(P=ne.isBrace=!0,D=ne.isGlob=!0,Q=!0,T===!0)continue;break}if(J!==!0&&M===h){if(P=ne.isBrace=!0,D=ne.isGlob=!0,Q=!0,T===!0)continue;break}if(M===S&&(te--,te===0)){J=!1,P=ne.isBrace=!0,Q=!0;break}}if(T===!0)continue;break}if(M===m){if(H.push(W),U.push(ne),ne={value:"",depth:0,isGlob:!1},Q===!0)continue;if($===d&&W===z+1){z+=2;continue}Z=W+1;continue}if(I.noext!==!0&&(M===j||M===u||M===l||M===v||M===f)===!0&&ue()===y){if(D=ne.isGlob=!0,K=ne.isExtglob=!0,Q=!0,T===!0){for(;ae()!==!0&&(M=de());){if(M===p){L=ne.backslashes=!0,M=de();continue}if(M===E){D=ne.isGlob=!0,Q=!0;break}}continue}break}if(M===l){if($===l&&(re=ne.isGlobstar=!0),D=ne.isGlob=!0,Q=!0,T===!0)continue;break}if(M===v){if(D=ne.isGlob=!0,Q=!0,T===!0)continue;break}if(M===b){for(;ae()!==!0&&(ye=de());){if(ye===p){L=ne.backslashes=!0,de();continue}if(ye===R){k=ne.isBracket=!0,D=ne.isGlob=!0,Q=!0;break}}if(T===!0)continue;break}if(I.nonegate!==!0&&M===f&&W===z){ee=ne.negated=!0,z++;continue}if(I.noparen!==!0&&M===y){if(D=ne.isGlob=!0,T===!0){for(;ae()!==!0&&(M=de());){if(M===y){L=ne.backslashes=!0,M=de();continue}if(M===E){Q=!0;break}}continue}break}if(D===!0){if(Q=!0,T===!0)continue;break}}I.noext===!0&&(K=!1,D=!1);let ce=G,F="",_e="";z>0&&(F=G.slice(0,z),G=G.slice(z),Z-=z),ce&&D===!0&&Z>0?(ce=G.slice(0,Z),_e=G.slice(Z)):D===!0?(ce="",_e=G):ce=G,ce&&ce!==""&&ce!=="/"&&ce!==G&&C(ce.charCodeAt(ce.length-1))&&(ce=ce.slice(0,-1)),I.unescape===!0&&(_e&&(_e=c.removeBackslashes(_e)),ce&&L===!0&&(ce=c.removeBackslashes(ce)));const se={prefix:F,input:w,start:z,base:ce,glob:_e,isBrace:P,isBracket:k,isGlob:D,isExtglob:K,isGlobstar:re,negated:ee};if(I.tokens===!0&&(se.maxDepth=0,C(M)||U.push(ne),se.tokens=U),I.parts===!0||I.tokens===!0){let ye;for(let V=0;V<H.length;V++){const fe=ye?ye+1:z,Ae=H[V],Y=w.slice(fe,Ae);I.tokens&&(V===0&&z!==0?(U[V].isPrefix=!0,U[V].value=F):U[V].value=Y,A(U[V]),se.maxDepth+=U[V].depth),(V!==0||Y!=="")&&q.push(Y),ye=Ae}if(ye&&ye+1<w.length){const V=w.slice(ye+1);q.push(V),I.tokens&&(U[U.length-1].value=V,A(U[U.length-1]),se.maxDepth+=U[U.length-1].depth)}se.slashes=H,se.parts=q}return se};s.exports=O},513:(s,i,a)=>{const c=a(17),l=process.platform==="win32",{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:p,REGEX_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_GLOBAL:d}=a(356);i.isObject=f=>f!==null&&typeof f=="object"&&!Array.isArray(f),i.hasRegexChars=f=>h.test(f),i.isRegexChar=f=>f.length===1&&i.hasRegexChars(f),i.escapeRegex=f=>f.replace(d,"\\$1"),i.toPosixSlashes=f=>f.replace(u,"/"),i.removeBackslashes=f=>f.replace(p,m=>m==="\\"?"":m),i.supportsLookbehinds=()=>{const f=process.version.slice(1).split(".").map(Number);return f.length===3&&f[0]>=9||f[0]===8&&f[1]>=10},i.isWindows=f=>f&&typeof f.windows=="boolean"?f.windows:l===!0||c.sep==="\\",i.escapeLast=(f,m,_)=>{const y=f.lastIndexOf(m,_);return y===-1?f:f[y-1]==="\\"?i.escapeLast(f,m,y-1):`${f.slice(0,y)}\\${f.slice(y)}`},i.removePrefix=(f,m={})=>{let _=f;return _.startsWith("./")&&(_=_.slice(2),m.prefix="./"),_},i.wrapOutput=(f,m={},_={})=>{const y=_.contains?"":"^",b=_.contains?"":"$";let j=`${y}(?:${f})${b}`;return m.negated===!0&&(j=`(?:^(?!${j}).*$)`),j}},492:(s,i,a)=>{/*!
35
+ */s.exports=function(i){return typeof i=="number"?i-i===0:typeof i=="string"&&i.trim()!==""?Number.isFinite?Number.isFinite(+i):isFinite(+i):!1}},971:(s,i,a)=>{const c=a(837),l=a(333),u=a(251),p=a(513),h=f=>f===""||f==="./",d=(f,m,_)=>{m=[].concat(m),f=[].concat(f);let y=new Set,b=new Set,j=new Set,v=0,S=C=>{j.add(C.output),_&&_.onResult&&_.onResult(C)};for(let C=0;C<m.length;C++){let A=u(String(m[C]),{..._,onResult:S},!0),O=A.state.negated||A.state.negatedExtglob;O&&v++;for(let w of f){let N=A(w,!0);(O?!N.isMatch:N.isMatch)&&(O?y.add(N.output):(y.delete(N.output),b.add(N.output)))}}let R=(v===m.length?[...j]:[...b]).filter(C=>!y.has(C));if(_&&R.length===0){if(_.failglob===!0)throw new Error(`No matches found for "${m.join(", ")}"`);if(_.nonull===!0||_.nullglob===!0)return _.unescape?m.map(C=>C.replace(/\\/g,"")):m}return R};d.match=d,d.matcher=(f,m)=>u(f,m),d.isMatch=(f,m,_)=>u(m,_)(f),d.any=d.isMatch,d.not=(f,m,_={})=>{m=[].concat(m).map(String);let y=new Set,b=[],v=d(f,m,{..._,onResult:S=>{_.onResult&&_.onResult(S),b.push(S.output)}});for(let S of b)v.includes(S)||y.add(S);return[...y]},d.contains=(f,m,_)=>{if(typeof f!="string")throw new TypeError(`Expected a string: "${c.inspect(f)}"`);if(Array.isArray(m))return m.some(y=>d.contains(f,y,_));if(typeof m=="string"){if(h(f)||h(m))return!1;if(f.includes(m)||f.startsWith("./")&&f.slice(2).includes(m))return!0}return d.isMatch(f,m,{..._,contains:!0})},d.matchKeys=(f,m,_)=>{if(!p.isObject(f))throw new TypeError("Expected the first argument to be an object");let y=d(Object.keys(f),m,_),b={};for(let j of y)b[j]=f[j];return b},d.some=(f,m,_)=>{let y=[].concat(f);for(let b of[].concat(m)){let j=u(String(b),_);if(y.some(v=>j(v)))return!0}return!1},d.every=(f,m,_)=>{let y=[].concat(f);for(let b of[].concat(m)){let j=u(String(b),_);if(!y.every(v=>j(v)))return!1}return!0},d.all=(f,m,_)=>{if(typeof f!="string")throw new TypeError(`Expected a string: "${c.inspect(f)}"`);return[].concat(m).every(y=>u(y,_)(f))},d.capture=(f,m,_)=>{let y=p.isWindows(_),j=u.makeRe(String(f),{..._,capture:!0}).exec(y?p.toPosixSlashes(m):m);if(j)return j.slice(1).map(v=>v===void 0?"":v)},d.makeRe=(...f)=>u.makeRe(...f),d.scan=(...f)=>u.scan(...f),d.parse=(f,m)=>{let _=[];for(let y of[].concat(f||[]))for(let b of l(String(y),m))_.push(u.parse(b,m));return _},d.braces=(f,m)=>{if(typeof f!="string")throw new TypeError("Expected a string");return m&&m.nobrace===!0||!/\{.*\}/.test(f)?[f]:l(f,m)},d.braceExpand=(f,m)=>{if(typeof f!="string")throw new TypeError("Expected a string");return d.braces(f,{...m,expand:!0})},s.exports=d},251:(s,i,a)=>{s.exports=a(683)},356:(s,i,a)=>{const c=a(17),l="\\\\/",u=`[^${l}]`,p="\\.",h="\\+",d="\\?",f="\\/",m="(?=.)",_="[^/]",y=`(?:${f}|$)`,b=`(?:^|${f})`,j=`${p}{1,2}${y}`,v=`(?!${p})`,S=`(?!${b}${j})`,E=`(?!${p}{0,1}${y})`,R=`(?!${j})`,C=`[^.${f}]`,A=`${_}*?`,O={DOT_LITERAL:p,PLUS_LITERAL:h,QMARK_LITERAL:d,SLASH_LITERAL:f,ONE_CHAR:m,QMARK:_,END_ANCHOR:y,DOTS_SLASH:j,NO_DOT:v,NO_DOTS:S,NO_DOT_SLASH:E,NO_DOTS_SLASH:R,QMARK_NO_DOT:C,STAR:A,START_ANCHOR:b},w={...O,SLASH_LITERAL:`[${l}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${p}{1,2}(?:[${l}]|$)`,NO_DOT:`(?!${p})`,NO_DOTS:`(?!(?:^|[${l}])${p}{1,2}(?:[${l}]|$))`,NO_DOT_SLASH:`(?!${p}{0,1}(?:[${l}]|$))`,NO_DOTS_SLASH:`(?!${p}{1,2}(?:[${l}]|$))`,QMARK_NO_DOT:`[^.${l}]`,START_ANCHOR:`(?:^|[${l}])`,END_ANCHOR:`(?:[${l}]|$)`},N={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};s.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:N,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:c.sep,extglobChars(I){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${I.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(I){return I===!0?w:O}}},754:(s,i,a)=>{const c=a(356),l=a(513),{MAX_LENGTH:u,POSIX_REGEX_SOURCE:p,REGEX_NON_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:f}=c,m=(b,j)=>{if(typeof j.expandRange=="function")return j.expandRange(...b,j);b.sort();const v=`[${b.join("-")}]`;try{new RegExp(v)}catch{return b.map(E=>l.escapeRegex(E)).join("..")}return v},_=(b,j)=>`Missing ${b}: "${j}" - use "\\\\${j}" to match literal characters`,y=(b,j)=>{if(typeof b!="string")throw new TypeError("Expected a string");b=f[b]||b;const v={...j},S=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u;let E=b.length;if(E>S)throw new SyntaxError(`Input length: ${E}, exceeds maximum allowed length: ${S}`);const R={type:"bos",value:"",output:v.prepend||""},C=[R],A=v.capture?"":"?:",O=l.isWindows(j),w=c.globChars(O),N=c.extglobChars(w),{DOT_LITERAL:I,PLUS_LITERAL:B,SLASH_LITERAL:T,ONE_CHAR:H,DOTS_SLASH:U,NO_DOT:q,NO_DOT_SLASH:G,NO_DOTS_SLASH:W,QMARK:z,QMARK_NO_DOT:Z,STAR:P,START_ANCHOR:k}=w,D=Y=>`(${A}(?:(?!${k}${Y.dot?U:I}).)*?)`,K=v.dot?"":q,re=v.dot?z:Z;let J=v.bash===!0?D(v):P;v.capture&&(J=`(${J})`),typeof v.noext=="boolean"&&(v.noextglob=v.noext);const L={input:b,index:-1,start:0,dot:v.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:C};b=l.removePrefix(b,L),E=b.length;const ee=[],Q=[],te=[];let $=R,M;const ne=()=>L.index===E-1,ae=L.peek=(Y=1)=>b[L.index+Y],ue=L.advance=()=>b[++L.index],de=()=>b.slice(L.index+1),ce=(Y="",oe=0)=>{L.consumed+=Y,L.index+=oe},F=Y=>{L.output+=Y.output!=null?Y.output:Y.value,ce(Y.value)},_e=()=>{let Y=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)ue(),L.start++,Y++;return Y%2===0?!1:(L.negated=!0,L.start++,!0)},se=Y=>{L[Y]++,te.push(Y)},ye=Y=>{L[Y]--,te.pop()},V=Y=>{if($.type==="globstar"){const oe=L.braces>0&&(Y.type==="comma"||Y.type==="brace"),X=Y.extglob===!0||ee.length&&(Y.type==="pipe"||Y.type==="paren");Y.type!=="slash"&&Y.type!=="paren"&&!oe&&!X&&(L.output=L.output.slice(0,-$.output.length),$.type="star",$.value="*",$.output=J,L.output+=$.output)}if(ee.length&&Y.type!=="paren"&&!N[Y.value]&&(ee[ee.length-1].inner+=Y.value),(Y.value||Y.output)&&F(Y),$&&$.type==="text"&&Y.type==="text"){$.value+=Y.value,$.output=($.output||"")+Y.value;return}Y.prev=$,C.push(Y),$=Y},fe=(Y,oe)=>{const X={...N[oe],conditions:1,inner:""};X.prev=$,X.parens=L.parens,X.output=L.output;const pe=(v.capture?"(":"")+X.open;se("parens"),V({type:Y,value:oe,output:L.output?"":H}),V({type:"paren",extglob:!0,value:ue(),output:pe}),ee.push(X)},Ae=Y=>{let oe=Y.close+(v.capture?")":"");if(Y.type==="negate"){let X=J;Y.inner&&Y.inner.length>1&&Y.inner.includes("/")&&(X=D(v)),(X!==J||ne()||/^\)+$/.test(de()))&&(oe=Y.close=`)$))${X}`),Y.prev.type==="bos"&&(L.negatedExtglob=!0)}V({type:"paren",extglob:!0,value:M,output:oe}),ye("parens")};if(v.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(b)){let Y=!1,oe=b.replace(d,(X,pe,xe,Ne,Ee,hr)=>Ne==="\\"?(Y=!0,X):Ne==="?"?pe?pe+Ne+(Ee?z.repeat(Ee.length):""):hr===0?re+(Ee?z.repeat(Ee.length):""):z.repeat(xe.length):Ne==="."?I.repeat(xe.length):Ne==="*"?pe?pe+Ne+(Ee?J:""):J:pe?X:`\\${X}`);return Y===!0&&(v.unescape===!0?oe=oe.replace(/\\/g,""):oe=oe.replace(/\\+/g,X=>X.length%2===0?"\\\\":X?"\\":"")),oe===b&&v.contains===!0?(L.output=b,L):(L.output=l.wrapOutput(oe,L,j),L)}for(;!ne();){if(M=ue(),M==="\0")continue;if(M==="\\"){const X=ae();if(X==="/"&&v.bash!==!0||X==="."||X===";")continue;if(!X){M+="\\",V({type:"text",value:M});continue}const pe=/^\\+/.exec(de());let xe=0;if(pe&&pe[0].length>2&&(xe=pe[0].length,L.index+=xe,xe%2!==0&&(M+="\\")),v.unescape===!0?M=ue()||"":M+=ue()||"",L.brackets===0){V({type:"text",value:M});continue}}if(L.brackets>0&&(M!=="]"||$.value==="["||$.value==="[^")){if(v.posix!==!1&&M===":"){const X=$.value.slice(1);if(X.includes("[")&&($.posix=!0,X.includes(":"))){const pe=$.value.lastIndexOf("["),xe=$.value.slice(0,pe),Ne=$.value.slice(pe+2),Ee=p[Ne];if(Ee){$.value=xe+Ee,L.backtrack=!0,ue(),!R.output&&C.indexOf($)===1&&(R.output=H);continue}}}(M==="["&&ae()!==":"||M==="-"&&ae()==="]")&&(M=`\\${M}`),M==="]"&&($.value==="["||$.value==="[^")&&(M=`\\${M}`),v.posix===!0&&M==="!"&&$.value==="["&&(M="^"),$.value+=M,F({value:M});continue}if(L.quotes===1&&M!=='"'){M=l.escapeRegex(M),$.value+=M,F({value:M});continue}if(M==='"'){L.quotes=L.quotes===1?0:1,v.keepQuotes===!0&&V({type:"text",value:M});continue}if(M==="("){se("parens"),V({type:"paren",value:M});continue}if(M===")"){if(L.parens===0&&v.strictBrackets===!0)throw new SyntaxError(_("opening","("));const X=ee[ee.length-1];if(X&&L.parens===X.parens+1){Ae(ee.pop());continue}V({type:"paren",value:M,output:L.parens?")":"\\)"}),ye("parens");continue}if(M==="["){if(v.nobracket===!0||!de().includes("]")){if(v.nobracket!==!0&&v.strictBrackets===!0)throw new SyntaxError(_("closing","]"));M=`\\${M}`}else se("brackets");V({type:"bracket",value:M});continue}if(M==="]"){if(v.nobracket===!0||$&&$.type==="bracket"&&$.value.length===1){V({type:"text",value:M,output:`\\${M}`});continue}if(L.brackets===0){if(v.strictBrackets===!0)throw new SyntaxError(_("opening","["));V({type:"text",value:M,output:`\\${M}`});continue}ye("brackets");const X=$.value.slice(1);if($.posix!==!0&&X[0]==="^"&&!X.includes("/")&&(M=`/${M}`),$.value+=M,F({value:M}),v.literalBrackets===!1||l.hasRegexChars(X))continue;const pe=l.escapeRegex($.value);if(L.output=L.output.slice(0,-$.value.length),v.literalBrackets===!0){L.output+=pe,$.value=pe;continue}$.value=`(${A}${pe}|${$.value})`,L.output+=$.value;continue}if(M==="{"&&v.nobrace!==!0){se("braces");const X={type:"brace",value:M,output:"(",outputIndex:L.output.length,tokensIndex:L.tokens.length};Q.push(X),V(X);continue}if(M==="}"){const X=Q[Q.length-1];if(v.nobrace===!0||!X){V({type:"text",value:M,output:M});continue}let pe=")";if(X.dots===!0){const xe=C.slice(),Ne=[];for(let Ee=xe.length-1;Ee>=0&&(C.pop(),xe[Ee].type!=="brace");Ee--)xe[Ee].type!=="dots"&&Ne.unshift(xe[Ee].value);pe=m(Ne,v),L.backtrack=!0}if(X.comma!==!0&&X.dots!==!0){const xe=L.output.slice(0,X.outputIndex),Ne=L.tokens.slice(X.tokensIndex);X.value=X.output="\\{",M=pe="\\}",L.output=xe;for(const Ee of Ne)L.output+=Ee.output||Ee.value}V({type:"brace",value:M,output:pe}),ye("braces"),Q.pop();continue}if(M==="|"){ee.length>0&&ee[ee.length-1].conditions++,V({type:"text",value:M});continue}if(M===","){let X=M;const pe=Q[Q.length-1];pe&&te[te.length-1]==="braces"&&(pe.comma=!0,X="|"),V({type:"comma",value:M,output:X});continue}if(M==="/"){if($.type==="dot"&&L.index===L.start+1){L.start=L.index+1,L.consumed="",L.output="",C.pop(),$=R;continue}V({type:"slash",value:M,output:T});continue}if(M==="."){if(L.braces>0&&$.type==="dot"){$.value==="."&&($.output=I);const X=Q[Q.length-1];$.type="dots",$.output+=M,$.value+=M,X.dots=!0;continue}if(L.braces+L.parens===0&&$.type!=="bos"&&$.type!=="slash"){V({type:"text",value:M,output:I});continue}V({type:"dot",value:M,output:I});continue}if(M==="?"){if(!($&&$.value==="(")&&v.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){fe("qmark",M);continue}if($&&$.type==="paren"){const pe=ae();let xe=M;if(pe==="<"&&!l.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");($.value==="("&&!/[!=<:]/.test(pe)||pe==="<"&&!/<([!=]|\w+>)/.test(de()))&&(xe=`\\${M}`),V({type:"text",value:M,output:xe});continue}if(v.dot!==!0&&($.type==="slash"||$.type==="bos")){V({type:"qmark",value:M,output:Z});continue}V({type:"qmark",value:M,output:z});continue}if(M==="!"){if(v.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){fe("negate",M);continue}if(v.nonegate!==!0&&L.index===0){_e();continue}}if(M==="+"){if(v.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){fe("plus",M);continue}if($&&$.value==="("||v.regex===!1){V({type:"plus",value:M,output:B});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||L.parens>0){V({type:"plus",value:M});continue}V({type:"plus",value:B});continue}if(M==="@"){if(v.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){V({type:"at",extglob:!0,value:M,output:""});continue}V({type:"text",value:M});continue}if(M!=="*"){(M==="$"||M==="^")&&(M=`\\${M}`);const X=h.exec(de());X&&(M+=X[0],L.index+=X[0].length),V({type:"text",value:M});continue}if($&&($.type==="globstar"||$.star===!0)){$.type="star",$.star=!0,$.value+=M,$.output=J,L.backtrack=!0,L.globstar=!0,ce(M);continue}let Y=de();if(v.noextglob!==!0&&/^\([^?]/.test(Y)){fe("star",M);continue}if($.type==="star"){if(v.noglobstar===!0){ce(M);continue}const X=$.prev,pe=X.prev,xe=X.type==="slash"||X.type==="bos",Ne=pe&&(pe.type==="star"||pe.type==="globstar");if(v.bash===!0&&(!xe||Y[0]&&Y[0]!=="/")){V({type:"star",value:M,output:""});continue}const Ee=L.braces>0&&(X.type==="comma"||X.type==="brace"),hr=ee.length&&(X.type==="pipe"||X.type==="paren");if(!xe&&X.type!=="paren"&&!Ee&&!hr){V({type:"star",value:M,output:""});continue}for(;Y.slice(0,3)==="/**";){const Mt=b[L.index+4];if(Mt&&Mt!=="/")break;Y=Y.slice(3),ce("/**",3)}if(X.type==="bos"&&ne()){$.type="globstar",$.value+=M,$.output=D(v),L.output=$.output,L.globstar=!0,ce(M);continue}if(X.type==="slash"&&X.prev.type!=="bos"&&!Ne&&ne()){L.output=L.output.slice(0,-(X.output+$.output).length),X.output=`(?:${X.output}`,$.type="globstar",$.output=D(v)+(v.strictSlashes?")":"|$)"),$.value+=M,L.globstar=!0,L.output+=X.output+$.output,ce(M);continue}if(X.type==="slash"&&X.prev.type!=="bos"&&Y[0]==="/"){const Mt=Y[1]!==void 0?"|$":"";L.output=L.output.slice(0,-(X.output+$.output).length),X.output=`(?:${X.output}`,$.type="globstar",$.output=`${D(v)}${T}|${T}${Mt})`,$.value+=M,L.output+=X.output+$.output,L.globstar=!0,ce(M+ue()),V({type:"slash",value:"/",output:""});continue}if(X.type==="bos"&&Y[0]==="/"){$.type="globstar",$.value+=M,$.output=`(?:^|${T}|${D(v)}${T})`,L.output=$.output,L.globstar=!0,ce(M+ue()),V({type:"slash",value:"/",output:""});continue}L.output=L.output.slice(0,-$.output.length),$.type="globstar",$.output=D(v),$.value+=M,L.output+=$.output,L.globstar=!0,ce(M);continue}const oe={type:"star",value:M,output:J};if(v.bash===!0){oe.output=".*?",($.type==="bos"||$.type==="slash")&&(oe.output=K+oe.output),V(oe);continue}if($&&($.type==="bracket"||$.type==="paren")&&v.regex===!0){oe.output=M,V(oe);continue}(L.index===L.start||$.type==="slash"||$.type==="dot")&&($.type==="dot"?(L.output+=G,$.output+=G):v.dot===!0?(L.output+=W,$.output+=W):(L.output+=K,$.output+=K),ae()!=="*"&&(L.output+=H,$.output+=H)),V(oe)}for(;L.brackets>0;){if(v.strictBrackets===!0)throw new SyntaxError(_("closing","]"));L.output=l.escapeLast(L.output,"["),ye("brackets")}for(;L.parens>0;){if(v.strictBrackets===!0)throw new SyntaxError(_("closing",")"));L.output=l.escapeLast(L.output,"("),ye("parens")}for(;L.braces>0;){if(v.strictBrackets===!0)throw new SyntaxError(_("closing","}"));L.output=l.escapeLast(L.output,"{"),ye("braces")}if(v.strictSlashes!==!0&&($.type==="star"||$.type==="bracket")&&V({type:"maybe_slash",value:"",output:`${T}?`}),L.backtrack===!0){L.output="";for(const Y of L.tokens)L.output+=Y.output!=null?Y.output:Y.value,Y.suffix&&(L.output+=Y.suffix)}return L};y.fastpaths=(b,j)=>{const v={...j},S=typeof v.maxLength=="number"?Math.min(u,v.maxLength):u,E=b.length;if(E>S)throw new SyntaxError(`Input length: ${E}, exceeds maximum allowed length: ${S}`);b=f[b]||b;const R=l.isWindows(j),{DOT_LITERAL:C,SLASH_LITERAL:A,ONE_CHAR:O,DOTS_SLASH:w,NO_DOT:N,NO_DOTS:I,NO_DOTS_SLASH:B,STAR:T,START_ANCHOR:H}=c.globChars(R),U=v.dot?I:N,q=v.dot?B:N,G=v.capture?"":"?:",W={negated:!1,prefix:""};let z=v.bash===!0?".*?":T;v.capture&&(z=`(${z})`);const Z=K=>K.noglobstar===!0?z:`(${G}(?:(?!${H}${K.dot?w:C}).)*?)`,P=K=>{switch(K){case"*":return`${U}${O}${z}`;case".*":return`${C}${O}${z}`;case"*.*":return`${U}${z}${C}${O}${z}`;case"*/*":return`${U}${z}${A}${O}${q}${z}`;case"**":return U+Z(v);case"**/*":return`(?:${U}${Z(v)}${A})?${q}${O}${z}`;case"**/*.*":return`(?:${U}${Z(v)}${A})?${q}${z}${C}${O}${z}`;case"**/.*":return`(?:${U}${Z(v)}${A})?${C}${O}${z}`;default:{const re=/^(.*?)\.(\w+)$/.exec(K);if(!re)return;const J=P(re[1]);return J?J+C+re[2]:void 0}}},k=l.removePrefix(b,W);let D=P(k);return D&&v.strictSlashes!==!0&&(D+=`${A}?`),D},s.exports=y},683:(s,i,a)=>{const c=a(17),l=a(700),u=a(754),p=a(513),h=a(356),d=m=>m&&typeof m=="object"&&!Array.isArray(m),f=(m,_,y=!1)=>{if(Array.isArray(m)){const A=m.map(w=>f(w,_,y));return w=>{for(const N of A){const I=N(w);if(I)return I}return!1}}const b=d(m)&&m.tokens&&m.input;if(m===""||typeof m!="string"&&!b)throw new TypeError("Expected pattern to be a non-empty string");const j=_||{},v=p.isWindows(_),S=b?f.compileRe(m,_):f.makeRe(m,_,!1,!0),E=S.state;delete S.state;let R=()=>!1;if(j.ignore){const A={..._,ignore:null,onMatch:null,onResult:null};R=f(j.ignore,A,y)}const C=(A,O=!1)=>{const{isMatch:w,match:N,output:I}=f.test(A,S,_,{glob:m,posix:v}),B={glob:m,state:E,regex:S,posix:v,input:A,output:I,match:N,isMatch:w};return typeof j.onResult=="function"&&j.onResult(B),w===!1?(B.isMatch=!1,O?B:!1):R(A)?(typeof j.onIgnore=="function"&&j.onIgnore(B),B.isMatch=!1,O?B:!1):(typeof j.onMatch=="function"&&j.onMatch(B),O?B:!0)};return y&&(C.state=E),C};f.test=(m,_,y,{glob:b,posix:j}={})=>{if(typeof m!="string")throw new TypeError("Expected input to be a string");if(m==="")return{isMatch:!1,output:""};const v=y||{},S=v.format||(j?p.toPosixSlashes:null);let E=m===b,R=E&&S?S(m):m;return E===!1&&(R=S?S(m):m,E=R===b),(E===!1||v.capture===!0)&&(v.matchBase===!0||v.basename===!0?E=f.matchBase(m,_,y,j):E=_.exec(R)),{isMatch:!!E,match:E,output:R}},f.matchBase=(m,_,y,b=p.isWindows(y))=>(_ instanceof RegExp?_:f.makeRe(_,y)).test(c.basename(m)),f.isMatch=(m,_,y)=>f(_,y)(m),f.parse=(m,_)=>Array.isArray(m)?m.map(y=>f.parse(y,_)):u(m,{..._,fastpaths:!1}),f.scan=(m,_)=>l(m,_),f.compileRe=(m,_,y=!1,b=!1)=>{if(y===!0)return m.output;const j=_||{},v=j.contains?"":"^",S=j.contains?"":"$";let E=`${v}(?:${m.output})${S}`;m&&m.negated===!0&&(E=`^(?!${E}).*$`);const R=f.toRegex(E,_);return b===!0&&(R.state=m),R},f.makeRe=(m,_,y=!1,b=!1)=>{if(!m||typeof m!="string")throw new TypeError("Expected a non-empty string");const j=_||{};let v={negated:!1,fastpaths:!0},S="",E;return m.startsWith("./")&&(m=m.slice(2),S=v.prefix="./"),j.fastpaths!==!1&&(m[0]==="."||m[0]==="*")&&(E=u.fastpaths(m,_)),E===void 0?(v=u(m,_),v.prefix=S+(v.prefix||"")):v.output=E,f.compileRe(v,_,y,b)},f.toRegex=(m,_)=>{try{const y=_||{};return new RegExp(m,y.flags||(y.nocase?"i":""))}catch(y){if(_&&_.debug===!0)throw y;return/$^/}},f.constants=h,s.exports=f},700:(s,i,a)=>{const c=a(513),{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:p,CHAR_COMMA:h,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:f,CHAR_FORWARD_SLASH:m,CHAR_LEFT_CURLY_BRACE:_,CHAR_LEFT_PARENTHESES:y,CHAR_LEFT_SQUARE_BRACKET:b,CHAR_PLUS:j,CHAR_QUESTION_MARK:v,CHAR_RIGHT_CURLY_BRACE:S,CHAR_RIGHT_PARENTHESES:E,CHAR_RIGHT_SQUARE_BRACKET:R}=a(356),C=w=>w===m||w===p,A=w=>{w.isPrefix!==!0&&(w.depth=w.isGlobstar?1/0:1)},O=(w,N)=>{const I=N||{},B=w.length-1,T=I.parts===!0||I.scanToEnd===!0,H=[],U=[],q=[];let G=w,W=-1,z=0,Z=0,P=!1,k=!1,D=!1,K=!1,re=!1,J=!1,L=!1,ee=!1,Q=!1,te=0,$,M,ne={value:"",depth:0,isGlob:!1};const ae=()=>W>=B,ue=()=>G.charCodeAt(W+1),de=()=>($=M,G.charCodeAt(++W));for(;W<B;){M=de();let ye;if(M===p){L=ne.backslashes=!0,M=de(),M===_&&(J=!0);continue}if(J===!0||M===_){for(te++;ae()!==!0&&(M=de());){if(M===p){L=ne.backslashes=!0,de();continue}if(M===_){te++;continue}if(J!==!0&&M===d&&(M=de())===d){if(P=ne.isBrace=!0,D=ne.isGlob=!0,Q=!0,T===!0)continue;break}if(J!==!0&&M===h){if(P=ne.isBrace=!0,D=ne.isGlob=!0,Q=!0,T===!0)continue;break}if(M===S&&(te--,te===0)){J=!1,P=ne.isBrace=!0,Q=!0;break}}if(T===!0)continue;break}if(M===m){if(H.push(W),U.push(ne),ne={value:"",depth:0,isGlob:!1},Q===!0)continue;if($===d&&W===z+1){z+=2;continue}Z=W+1;continue}if(I.noext!==!0&&(M===j||M===u||M===l||M===v||M===f)===!0&&ue()===y){if(D=ne.isGlob=!0,K=ne.isExtglob=!0,Q=!0,T===!0){for(;ae()!==!0&&(M=de());){if(M===p){L=ne.backslashes=!0,M=de();continue}if(M===E){D=ne.isGlob=!0,Q=!0;break}}continue}break}if(M===l){if($===l&&(re=ne.isGlobstar=!0),D=ne.isGlob=!0,Q=!0,T===!0)continue;break}if(M===v){if(D=ne.isGlob=!0,Q=!0,T===!0)continue;break}if(M===b){for(;ae()!==!0&&(ye=de());){if(ye===p){L=ne.backslashes=!0,de();continue}if(ye===R){k=ne.isBracket=!0,D=ne.isGlob=!0,Q=!0;break}}if(T===!0)continue;break}if(I.nonegate!==!0&&M===f&&W===z){ee=ne.negated=!0,z++;continue}if(I.noparen!==!0&&M===y){if(D=ne.isGlob=!0,T===!0){for(;ae()!==!0&&(M=de());){if(M===y){L=ne.backslashes=!0,M=de();continue}if(M===E){Q=!0;break}}continue}break}if(D===!0){if(Q=!0,T===!0)continue;break}}I.noext===!0&&(K=!1,D=!1);let ce=G,F="",_e="";z>0&&(F=G.slice(0,z),G=G.slice(z),Z-=z),ce&&D===!0&&Z>0?(ce=G.slice(0,Z),_e=G.slice(Z)):D===!0?(ce="",_e=G):ce=G,ce&&ce!==""&&ce!=="/"&&ce!==G&&C(ce.charCodeAt(ce.length-1))&&(ce=ce.slice(0,-1)),I.unescape===!0&&(_e&&(_e=c.removeBackslashes(_e)),ce&&L===!0&&(ce=c.removeBackslashes(ce)));const se={prefix:F,input:w,start:z,base:ce,glob:_e,isBrace:P,isBracket:k,isGlob:D,isExtglob:K,isGlobstar:re,negated:ee};if(I.tokens===!0&&(se.maxDepth=0,C(M)||U.push(ne),se.tokens=U),I.parts===!0||I.tokens===!0){let ye;for(let V=0;V<H.length;V++){const fe=ye?ye+1:z,Ae=H[V],Y=w.slice(fe,Ae);I.tokens&&(V===0&&z!==0?(U[V].isPrefix=!0,U[V].value=F):U[V].value=Y,A(U[V]),se.maxDepth+=U[V].depth),(V!==0||Y!=="")&&q.push(Y),ye=Ae}if(ye&&ye+1<w.length){const V=w.slice(ye+1);q.push(V),I.tokens&&(U[U.length-1].value=V,A(U[U.length-1]),se.maxDepth+=U[U.length-1].depth)}se.slashes=H,se.parts=q}return se};s.exports=O},513:(s,i,a)=>{const c=a(17),l=process.platform==="win32",{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:p,REGEX_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_GLOBAL:d}=a(356);i.isObject=f=>f!==null&&typeof f=="object"&&!Array.isArray(f),i.hasRegexChars=f=>h.test(f),i.isRegexChar=f=>f.length===1&&i.hasRegexChars(f),i.escapeRegex=f=>f.replace(d,"\\$1"),i.toPosixSlashes=f=>f.replace(u,"/"),i.removeBackslashes=f=>f.replace(p,m=>m==="\\"?"":m),i.supportsLookbehinds=()=>{const f=process.version.slice(1).split(".").map(Number);return f.length===3&&f[0]>=9||f[0]===8&&f[1]>=10},i.isWindows=f=>f&&typeof f.windows=="boolean"?f.windows:l===!0||c.sep==="\\",i.escapeLast=(f,m,_)=>{const y=f.lastIndexOf(m,_);return y===-1?f:f[y-1]==="\\"?i.escapeLast(f,m,y-1):`${f.slice(0,y)}\\${f.slice(y)}`},i.removePrefix=(f,m={})=>{let _=f;return _.startsWith("./")&&(_=_.slice(2),m.prefix="./"),_},i.wrapOutput=(f,m={},_={})=>{const y=_.contains?"":"^",b=_.contains?"":"$";let j=`${y}(?:${f})${b}`;return m.negated===!0&&(j=`(?:^(?!${j}).*$)`),j}},492:(s,i,a)=>{/*!
36
36
  * to-regex-range <https://github.com/micromatch/to-regex-range>
37
37
  *
38
38
  * Copyright (c) 2015-present, Jon Schlinkert.
39
39
  * Released under the MIT License.
40
- */const c=a(357),l=(C,A,O)=>{if(c(C)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(A===void 0||C===A)return String(C);if(c(A)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let w={relaxZeros:!0,...O};typeof w.strictZeros=="boolean"&&(w.relaxZeros=w.strictZeros===!1);let N=String(w.relaxZeros),I=String(w.shorthand),B=String(w.capture),T=String(w.wrap),H=C+":"+A+"="+N+I+B+T;if(l.cache.hasOwnProperty(H))return l.cache[H].result;let U=Math.min(C,A),q=Math.max(C,A);if(Math.abs(U-q)===1){let P=C+"|"+A;return w.capture?`(${P})`:w.wrap===!1?P:`(?:${P})`}let G=E(C)||E(A),W={min:C,max:A,a:U,b:q},z=[],Z=[];if(G&&(W.isPadded=G,W.maxLen=String(W.max).length),U<0){let P=q<0?Math.abs(q):1;Z=d(P,Math.abs(U),W,w),U=W.a=0}return q>=0&&(z=d(U,q,W,w)),W.negatives=Z,W.positives=z,W.result=u(Z,z),w.capture===!0?W.result=`(${W.result})`:w.wrap!==!1&&z.length+Z.length>1&&(W.result=`(?:${W.result})`),l.cache[H]=W,W.result};function u(C,A,O){let w=f(C,A,"-",!1)||[],N=f(A,C,"",!1)||[],I=f(C,A,"-?",!0)||[];return w.concat(I).concat(N).join("|")}function p(C,A){let O=1,w=1,N=b(C,O),I=new Set([A]);for(;C<=N&&N<=A;)I.add(N),O+=1,N=b(C,O);for(N=j(A+1,w)-1;C<N&&N<=A;)I.add(N),w+=1,N=j(A+1,w)-1;return I=[...I],I.sort(_),I}function h(C,A,O){if(C===A)return{pattern:C,count:[],digits:0};let w=m(C,A),N=w.length,I="",B=0;for(let T=0;T<N;T++){let[H,U]=w[T];H===U?I+=H:H!=="0"||U!=="9"?I+=S(H,U):B++}return B&&(I+=O.shorthand===!0?"\\d":"[0-9]"),{pattern:I,count:[B],digits:N}}function d(C,A,O,w){let N=p(C,A),I=[],B=C,T;for(let H=0;H<N.length;H++){let U=N[H],q=h(String(B),String(U),w),G="";if(!O.isPadded&&T&&T.pattern===q.pattern){T.count.length>1&&T.count.pop(),T.count.push(q.count[0]),T.string=T.pattern+v(T.count),B=U+1;continue}O.isPadded&&(G=R(U,O,w)),q.string=G+q.pattern+v(q.count),I.push(q),B=U+1,T=q}return I}function f(C,A,O,w,N){let I=[];for(let B of C){let{string:T}=B;!w&&!y(A,"string",T)&&I.push(O+T),w&&y(A,"string",T)&&I.push(O+T)}return I}function m(C,A){let O=[];for(let w=0;w<C.length;w++)O.push([C[w],A[w]]);return O}function _(C,A){return C>A?1:A>C?-1:0}function y(C,A,O){return C.some(w=>w[A]===O)}function b(C,A){return Number(String(C).slice(0,-A)+"9".repeat(A))}function j(C,A){return C-C%Math.pow(10,A)}function v(C){let[A=0,O=""]=C;return O||A>1?`{${A+(O?","+O:"")}}`:""}function S(C,A,O){return`[${C}${A-C===1?"":"-"}${A}]`}function E(C){return/^-?(0+)\d/.test(C)}function R(C,A,O){if(!A.isPadded)return C;let w=Math.abs(A.maxLen-String(C).length),N=O.relaxZeros!==!1;switch(w){case 0:return"";case 1:return N?"0?":"0";case 2:return N?"0{0,2}":"00";default:return N?`0{0,${w}}`:`0{${w}}`}}l.cache={},l.clearCache=()=>l.cache={},s.exports=l},17:s=>{s.exports=eg},837:s=>{s.exports=Lg()}},t={};function r(s){var i=t[s];if(i!==void 0)return i.exports;var a=t[s]={exports:{}},c=!0;try{e[s](a,a.exports,r),c=!1}finally{c&&delete t[s]}return a.exports}typeof r<"u"&&(r.ab=__dirname+"/");var o=r(971);Zr.exports=o})()),Zr.exports}var ea;function $g(){return ea||(ea=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,a){for(var c in a)Object.defineProperty(i,c,{enumerable:!0,get:a[c]})}t(e,{matchRemotePattern:function(){return o},hasMatch:function(){return s}});const r=Dg();function o(i,a){if(i.protocol!==void 0){const l=a.protocol.slice(0,-1);if(i.protocol!==l)return!1}if(i.port!==void 0&&i.port!==a.port)return!1;if(i.hostname===void 0)throw new Error(`Pattern should define hostname but found
41
- `+JSON.stringify(i));if(!(0,r.makeRe)(i.hostname).test(a.hostname))return!1;var c;return!!(0,r.makeRe)((c=i.pathname)!=null?c:"**").test(a.pathname)}function s(i,a,c){return i.some(l=>c.hostname===l)||a.some(l=>o(l,c))}}(Qr)),Qr}var ta;function ud(){return ta||(ta=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(o){let{config:s,src:i,width:a,quality:c}=o;if(process.env.NODE_ENV!=="production"){const l=[];if(i||l.push("src"),a||l.push("width"),l.length>0)throw new Error("Next Image Optimization requires "+l.join(", ")+" to be provided. Make sure you pass them as props to the `next/image` component. Received: "+JSON.stringify({src:i,width:a,quality:c}));if(i.startsWith("//"))throw new Error('Failed to parse src "'+i+'" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');if(!i.startsWith("/")&&(s.domains||s.remotePatterns)){let u;try{u=new URL(i)}catch(p){throw console.error(p),new Error('Failed to parse src "'+i+'" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)')}if(process.env.NODE_ENV!=="test"&&process.env.NEXT_RUNTIME!=="edge"){const{hasMatch:p}=$g();if(!p(s.domains,s.remotePatterns,u))throw new Error("Invalid src prop ("+i+') on `next/image`, hostname "'+u.hostname+'" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host')}}}return s.path+"?url="+encodeURIComponent(i)+"&w="+a+"&q="+(c||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}t.__next_img_default=!0;const r=t}(Yr)),Yr}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return j}});const r=Oe,s=ft._(x),i=r._(ha),a=r._(Zh()),c=Xo,l=pr,u=Jh(),p=It,h=ll(),d=r._(ud()),f=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function m(v,S,E,R,C,A){const O=v==null?void 0:v.src;if(!v||v["data-loaded-src"]===O)return;v["data-loaded-src"]=O,("decode"in v?v.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!v.parentElement||!v.isConnected)){if(S!=="empty"&&C(!0),E!=null&&E.current){const N=new Event("load");Object.defineProperty(N,"target",{writable:!1,value:v});let I=!1,B=!1;E.current({...N,nativeEvent:N,currentTarget:v,target:v,isDefaultPrevented:()=>I,isPropagationStopped:()=>B,persist:()=>{},preventDefault:()=>{I=!0,N.preventDefault()},stopPropagation:()=>{B=!0,N.stopPropagation()}})}if(R!=null&&R.current&&R.current(v),process.env.NODE_ENV!=="production"){const N=new URL(O,"http://n").searchParams.get("url")||O;if(v.getAttribute("data-nimg")==="fill"){if(!A&&(!v.getAttribute("sizes")||v.getAttribute("sizes")==="100vw")&&v.getBoundingClientRect().width/window.innerWidth<.6&&(0,p.warnOnce)('Image with src "'+N+'" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes'),v.parentElement){const{position:T}=window.getComputedStyle(v.parentElement),H=["absolute","fixed","relative"];H.includes(T)||(0,p.warnOnce)('Image with src "'+N+'" has "fill" and parent element with invalid "position". Provided "'+T+'" should be one of '+H.map(String).join(",")+".")}v.height===0&&(0,p.warnOnce)('Image with src "'+N+'" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.')}const I=v.height.toString()!==v.getAttribute("height"),B=v.width.toString()!==v.getAttribute("width");(I&&!B||!I&&B)&&(0,p.warnOnce)('Image with src "'+N+`" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`)}}})}function _(v){const[S,E]=s.version.split("."),R=parseInt(S,10),C=parseInt(E,10);return R>18||R===18&&C>=3?{fetchPriority:v}:{fetchpriority:v}}const y=(0,s.forwardRef)((v,S)=>{let{src:E,srcSet:R,sizes:C,height:A,width:O,decoding:w,className:N,style:I,fetchPriority:B,placeholder:T,loading:H,unoptimized:U,fill:q,onLoadRef:G,onLoadingCompleteRef:W,setBlurComplete:z,setShowAltText:Z,onLoad:P,onError:k,...D}=v;return s.default.createElement("img",{...D,..._(B),loading:H,width:O,height:A,decoding:w,"data-nimg":q?"fill":"1",className:N,style:I,sizes:C,srcSet:R,src:E,ref:(0,s.useCallback)(K=>{S&&(typeof S=="function"?S(K):typeof S=="object"&&(S.current=K)),K&&(k&&(K.src=K.src),process.env.NODE_ENV!=="production"&&(E||console.error('Image is missing required "src" property:',K),K.getAttribute("alt")===null&&console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')),K.complete&&m(K,T,G,W,z,U))},[E,T,G,W,z,k,U,S]),onLoad:K=>{const re=K.currentTarget;m(re,T,G,W,z,U)},onError:K=>{Z(!0),T!=="empty"&&z(!0),k&&k(K)}})});function b(v){let{isAppRouter:S,imgAttributes:E}=v;const R={as:"image",imageSrcSet:E.srcSet,imageSizes:E.sizes,crossOrigin:E.crossOrigin,referrerPolicy:E.referrerPolicy,..._(E.fetchPriority)};return S&&i.default.preload?(i.default.preload(E.src,R),null):s.default.createElement(a.default,null,s.default.createElement("link",{key:"__nimg-"+E.src+E.srcSet+E.sizes,rel:"preload",href:E.srcSet?void 0:E.src,...R}))}const j=(0,s.forwardRef)((v,S)=>{const R=!(0,s.useContext)(h.RouterContext),C=(0,s.useContext)(u.ImageConfigContext),A=(0,s.useMemo)(()=>{const W=f||C||l.imageConfigDefault,z=[...W.deviceSizes,...W.imageSizes].sort((P,k)=>P-k),Z=W.deviceSizes.sort((P,k)=>P-k);return{...W,allSizes:z,deviceSizes:Z}},[C]),{onLoad:O,onLoadingComplete:w}=v,N=(0,s.useRef)(O);(0,s.useEffect)(()=>{N.current=O},[O]);const I=(0,s.useRef)(w);(0,s.useEffect)(()=>{I.current=w},[w]);const[B,T]=(0,s.useState)(!1),[H,U]=(0,s.useState)(!1),{props:q,meta:G}=(0,c.getImgProps)(v,{defaultLoader:d.default,imgConf:A,blurComplete:B,showAltText:H});return s.default.createElement(s.default.Fragment,null,s.default.createElement(y,{...q,unoptimized:G.unoptimized,placeholder:G.placeholder,fill:G.fill,onLoadRef:N,onLoadingCompleteRef:I,setBlurComplete:T,setShowAltText:U,ref:S}),G.priority?s.default.createElement(b,{isAppRouter:R,imgAttributes:q}):null)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(go,go.exports);var Bg=go.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,p){for(var h in p)Object.defineProperty(u,h,{enumerable:!0,get:p[h]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return l}});const r=Oe,o=Xo,s=It,i=Bg,a=r._(ud()),c=u=>{(0,s.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");const{props:p}=(0,o.getImgProps)(u,{defaultLoader:a.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[h,d]of Object.entries(p))d===void 0&&delete p[h];return{props:p}},l=i.Image})(Zu);var zg=Zu;const ra=cr(zg),Fg=({item:e,CONSTANTS:t})=>{const r=e.icon?t.PAYMENT_FLAGS.includes(e.icon)?"payment":"social":null,o=r==="payment"?t.PAYMENT_FLAGS_DICTIONARY[e.icon]:e.icon;return e.link?n.jsxs(Me,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:he["support-item"],children:[e.image&&n.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?n.jsx(ra,{alt:o,src:`/assets/${o}.svg`,width:20,height:20}):n.jsx(g.Icon,{size:"small",name:o})]}):n.jsxs("div",{className:he["support-item"],children:[e.image&&n.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?n.jsx(ra,{alt:o,src:`/assets/${o}.svg`,width:20,height:20}):n.jsx(g.Icon,{size:"small",name:o})]})},qg=({content:e,CONSTANTS:t})=>n.jsx("div",{className:he["support-container"],children:e==null?void 0:e.map((r,o)=>n.jsxs("div",{"data-device":r.device,className:he["support-section"],children:[n.jsxs("div",{className:he["support-text"],children:[r.title&&n.jsx("h3",{children:r.title}),r.description&&n.jsx("p",{children:r.description})]}),Array.isArray(r.items)&&r.items.length&&n.jsx("div",{className:he["support-items"],"data-gap":r.gap,children:r.items.map((s,i)=>n.jsx(Fg,{item:s,CONSTANTS:t},`footer-support-item-${i}`))})]},`footer-support-${o}`))}),Hg=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:o,columnAlignContent:s,columnAlignItems:i,textAlignContent:a,textAlignItems:c,children:l})=>n.jsx(g.TextStructure.Root,{layoutProps:{textRow:{alignContent:o,alignItems:o},columnWrapper:{alignContent:s,alignItems:i}},children:n.jsxs(g.TextStructure.DivWrapper,{alignContent:a,alignItems:c,className:he.footer__column,children:[n.jsxs("div",{className:t?he.footer__columnTitleIcon:he.footer__columnTitle,children:[n.jsx(g.Icon,{name:`${t}`,size:"small"}),e&&n.jsx("div",{children:e})]}),n.jsx("div",{className:he.footer__columnContent,style:{maxWidth:`${r}px`},children:l})]})}),Ug=({name:e,nameIcon:t,maxWidth:r,children:o,ICONS:s,...i})=>n.jsxs(g.Accordion.Wrapper,{className:he.accordionWrapper,title:"accordion-wrapper",...i,children:[n.jsx(g.Accordion.Header,{id:(i==null?void 0:i.id)??"",className:he.accordionHeader,closeIndicator:n.jsx(g.Icon,{name:s.arrow_up,size:"medium"}),openIndicator:n.jsx(g.Icon,{name:s.arrow_down,size:"medium"}),title:"accordion-header",children:n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{className:t?he.accordionTextWrapper:"",children:[n.jsx(g.Icon,{name:`${t}`,size:"medium"}),n.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),n.jsx(g.Accordion.Body,{title:"accordion-body",children:n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{className:he.footer__columnContent,style:{maxWidth:`${r}px`},children:o})})})]}),eo=e=>{const{isMobile:t}=be();return t?n.jsx(Ug,{...e}):n.jsx(Hg,{...e})},Qt=({type:e,children:t,className:r,collumnName:o,collumnNameIcon:s,icons:i,iconLink:a,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:p,rowAlignContent:h,columnAlignContent:d,columnAlignItems:f,textAlignContent:m,textAlignItems:_,...y})=>{let b;const{handleSelectContent:j}=ge(),{nextimage:v}=Re();switch(e){case"menu":b=n.jsx(Me,{className:he.footer__itemLink,href:l??"#",prefetch:!1,children:n.jsx("span",{onClick:()=>{j({content:`footer:${o}:${t}`})},children:t})});break;case"payment":b=n.jsxs("div",{className:g.helpers.classNameConcat(he.payment,he.footer__itemSmallText),...y,children:[u,n.jsxs("div",{className:g.helpers.classNameConcat(he.footer__iconContainer,he.footer__iconListSubHeader),children:[p,n.jsx("div",{className:he.footer__iconList,children:i==null?void 0:i.map((S,E)=>n.jsx(v,{alt:S,src:`/assets/${S}.svg`,width:c??20,height:c??20},E))})]})]});break;case"social-media":b=n.jsx("div",{className:he.footer__iconContainer,...y,children:n.jsx("div",{className:he.footer__iconList,children:a==null?void 0:a.map((S,E)=>n.jsx(Me,{prefetch:!1,href:S.link??"#",target:"_blank",children:n.jsx(g.Icon,{size:"medium",name:S.icon,onClick:()=>j({content:`footer:redes-sociais:${S.icon}`})})},E))})});break;default:b=n.jsx("div",{className:r,...y,children:t})}return n.jsx(g.TextStructure.Root,{layoutProps:{textRow:{alignContent:h,alignItems:h},columnWrapper:{alignContent:d,alignItems:f}},...y,children:n.jsx(g.TextStructure.DivWrapper,{alignContent:m,alignItems:_,className:g.helpers.classNameConcat(he.footer__item,r),children:b})})},Wg=({className:e,text:t,...r})=>n.jsx("div",{...r,className:g.helpers.classNameConcat(he.footer__legalInformation,e),children:n.jsx("span",{children:t})}),dd=()=>{const{nextimage:e}=Re();return n.jsx("div",{className:he["footer--stamps"],children:n.jsx(e,{alt:"Empresa B",className:he["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};dd.displayName="Footer.Stamps";const fd=({children:e,legalTextSlot:t,adornment:r,className:o,...s})=>{const{isMobile:i}=be(),a=x.Children.toArray(e).filter(Boolean),c=a.length;return n.jsxs("div",{className:he.footer__main,children:[(r==null?void 0:r.top)&&n.jsx("div",{className:he.footer__top,children:r==null?void 0:r.top}),c>0&&n.jsx("div",{...s,className:g.helpers.classNameConcat(he.footer__wrapper,o),children:a.map((l,u)=>n.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${i?1:"fit-content"})`},children:l},u))}),(r==null?void 0:r.bottom)&&n.jsx("div",{className:he.footer__bottom,children:r.bottom}),t&&n.jsx("div",{className:he.footer__legalText,children:t})]})};fd.displayName="Footer.Wrapper";const pd=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:o,adornment:s,LEGAL_INFORMATION_TEXT:i,ICONS:a})=>{var c;return n.jsxs(fd,{adornment:s,legalTextSlot:n.jsx(Wg,{text:i}),children:[Array.isArray(e.column)&&e.column.map((l,u)=>n.jsx(eo,{id:`${u}column-menu`,name:l.name,nameIcon:l.nameIcon,ICONS:a,children:l.items.map((p,h)=>n.jsx(Qt,{type:"menu",link:p.link,collumnName:l.name,collumnNameIcon:l.nameIcon,children:p.text},h))},u)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&n.jsx(eo,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:a,children:n.jsx(Qt,{type:"payment",paymentDisclaimer:t==null?void 0:t.text,paymentTitle:t==null?void 0:t.flagsTitle,iconSize:16,icons:t==null?void 0:t.acceptedFlags})}),n.jsxs(eo,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:a,children:[r!=null&&r.subTitle?n.jsx(Qt,{children:r==null?void 0:r.subTitle}):null,n.jsx(Qt,{type:"social-media",iconSize:24,iconLink:o}),n.jsx(dd,{})]})]})};pd.displayName="Footer";const Vg=Object.freeze(Object.defineProperty({__proto__:null,Footer:pd,FooterSupport:qg},Symbol.toStringTag,{value:"Module"})),na=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})=>{const s=ie.resizingImg(e.imageUrl,o.pdp),{nextimage:i}=Re();return n.jsx(i,{src:s,alt:e.imageLabel,objectFit:"contain",...o.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},Gg=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:o}=ge(),s=x.useRef(!1);return n.jsx(ze.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{s.current||(s.current=!0,o({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:r})},Kg={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},md=({images:e,video:t,handleZoom:r,productName:o,PRODUCT_IMAGE_DIMENSIONS:s})=>{var u,p;const{initialize:i,pagination:a,controller:c,itemsStyles:l}=g.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return n.jsxs(g.Carousel.Root,{innerRef:h=>{i(h)},className:Kg["gallery-carousel-modifier"],children:[n.jsx(g.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:n.jsx(g.Carousel.Bullets,{page:a.currentPage,total:e.length,onBulletClick:h=>c==null?void 0:c.navigateTo(h)})}),n.jsxs(g.Carousel.Body,{children:[n.jsx(g.Carousel.Item,{style:l,children:n.jsx(na,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:s})},"PDP_gallery_0"),t&&n.jsx(g.Carousel.Item,{style:l,children:n.jsx(Gg,{video:t,productName:o,...((u=e[1])==null?void 0:u.imageUrl)&&{poster:(p=e[1])==null?void 0:p.imageUrl}})},"PDP_gallery_video"),e.map((h,d)=>d===0?null:n.jsx(g.Carousel.Item,{style:l,children:n.jsx(na,{image:h,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:s})},`PDP_gallery_${d}`))]})]})};md.displayName="PDP.Carousel";const Xg=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t,ImageZoom:r})=>{const{video:o,productName:s}=Eo(),[i,a]=x.useState({show:!1,initialIndex:0});x.useEffect(()=>(i.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[i]);const c=l=>{a({show:!0,initialIndex:l})};return n.jsxs(n.Fragment,{children:[n.jsx(md,{images:e,video:o,handleZoom:c,productName:s,PRODUCT_IMAGE_DIMENSIONS:t}),i.show&&n.jsx(r,{images:e,initialSelectedImageIndex:i.initialIndex,setShowImageZoom:a})]})},hd=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t,ImageZoom:r})=>{const{images:o}=Eo(),s=x.useMemo(()=>{const i=o.filter(a=>!e.includes(a.imageLabel));return i.length>0?i:o},[]);return n.jsx(Xg,{productImgs:s,PRODUCT_IMAGE_DIMENSIONS:t,ImageZoom:r})};hd.displayName="PDP.Gallery";const Yg=Object.freeze(Object.defineProperty({__proto__:null,Gallery:hd},Symbol.toStringTag,{value:"Module"})),Qg=({page:e,data:t})=>{const{pathname:r}=Re(),o=x.useRef(null),{sendDataLayerEvent:s,currentLocalRef:i,itemListRef:a,promotionEventRef:c}=ge();return x.useEffect(()=>{const l=Ac("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const p=new Date(0);s({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),Mo("login_event","",{expires:p})}},[]),x.useEffect(()=>{if(o.current===r)return;o.current=r;let l={};switch(e){case"PDP":{const p=t,h={};if(!p){l={page_category:"pdp"};break}p.items.forEach(({itemId:d,sellers:f})=>h[d]=f[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:p.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:h,product_reference_id:p.productReference};break}case"PDC":{const{page_category:p,page_departament:h,id:d,name:f}=Ca(),m=f,_=d;l={page_category:"lista_produtos",...h&&{page_departament:h}},a.current={item_list_name:r==="/search"?"busca":m??void 0,item_list_id:r==="/search"?void 0:_??void 0},h&&s({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:p,page_departament:h}}});break}default:l={page_category:e},c.current={},a.current={};break}const u={region:e,...l};i.current=e,s({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...u}},timeout:0})},[r]),null};var yo={exports:{}};function Zg(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var to={},ro={},oa;function Jg(){return oa||(oa=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return o}});const o=Oe._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="LoadableContext")}(ro)),ro}var sa;function ey(){return sa||(sa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});const r=Oe._(x),o=Jg();function s(m){return m&&m.default?m.default:m}const i=[],a=[];let c=!1;function l(m){let _=m(),y={loading:!0,loaded:null,error:null};return y.promise=_.then(b=>(y.loading=!1,y.loaded=b,b)).catch(b=>{throw y.loading=!1,y.error=b,b}),y}function u(m,_){let y=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},_),b=null;function j(){if(!b){const E=new p(m,y);b={getCurrentValue:E.getCurrentValue.bind(E),subscribe:E.subscribe.bind(E),retry:E.retry.bind(E),promise:E.promise.bind(E)}}return b.promise()}if(typeof window>"u"&&i.push(j),!c&&typeof window<"u"){const E=y.webpack&&typeof Zg.resolveWeak=="function"?y.webpack():y.modules;E&&a.push(R=>{for(const C of E)if(R.includes(C))return j()})}function v(){j();const E=r.default.useContext(o.LoadableContext);E&&Array.isArray(y.modules)&&y.modules.forEach(R=>{E(R)})}function S(E,R){v();const C=r.default.useSyncExternalStore(b.subscribe,b.getCurrentValue,b.getCurrentValue);return r.default.useImperativeHandle(R,()=>({retry:b.retry}),[]),r.default.useMemo(()=>C.loading||C.error?r.default.createElement(y.loading,{isLoading:C.loading,pastDelay:C.pastDelay,timedOut:C.timedOut,error:C.error,retry:b.retry}):C.loaded?r.default.createElement(s(C.loaded),E):null,[E,C])}return S.preload=()=>j(),S.displayName="LoadableComponent",r.default.forwardRef(S)}class p{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:_,_opts:y}=this;_.loading&&(typeof y.delay=="number"&&(y.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},y.delay)),typeof y.timeout=="number"&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},y.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(b=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(_){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,..._},this._callbacks.forEach(y=>y())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(_){return this._callbacks.add(_),()=>{this._callbacks.delete(_)}}constructor(_,y){this._loadFn=_,this._opts=y,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function h(m){return u(l,m)}function d(m,_){let y=[];for(;m.length;){let b=m.pop();y.push(b(_))}return Promise.all(y).then(()=>{if(m.length)return d(m,_)})}h.preloadAll=()=>new Promise((m,_)=>{d(i).then(m,_)}),h.preloadReady=m=>(m===void 0&&(m=[]),new Promise(_=>{const y=()=>(c=!0,_());d(a,m).then(y,y)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=h.preloadReady);const f=h}(to)),to}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(p,h){for(var d in h)Object.defineProperty(p,d,{enumerable:!0,get:h[d]})}r(t,{noSSR:function(){return l},default:function(){return u}});const o=Oe,s=o._(x),i=o._(ey()),a=typeof window>"u";function c(p){return{default:(p==null?void 0:p.default)||p}}function l(p,h){if(delete h.webpack,delete h.modules,!a)return p(h);const d=h.loading;return()=>s.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(p,h){let d=i.default,f={loading:y=>{let{error:b,isLoading:j,pastDelay:v}=y;if(!v)return null;if(process.env.NODE_ENV!=="production"){if(j)return null;if(b)return s.default.createElement("p",null,b.message,s.default.createElement("br",null),b.stack)}return null}};p instanceof Promise?f.loader=()=>p:typeof p=="function"?f.loader=p:typeof p=="object"&&(f={...f,...p}),f={...f,...h};const m=f.loader,_=()=>m!=null?m().then(c):Promise.resolve(c(()=>null));return f.loadableGenerated&&(f={...f,...f.loadableGenerated},delete f.loadableGenerated),typeof f.ssr=="boolean"&&!f.ssr?(delete f.webpack,delete f.modules,l(d,f)):d({...f,loader:_})}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(yo,yo.exports);var ty=yo.exports,ry=ty;const ny=cr(ry);var _o={exports:{}},Zt={exports:{}},ia;function oy(){return ia||(ia=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(l,u){for(var p in u)Object.defineProperty(l,p,{enumerable:!0,get:u[p]})}r(t,{DOMAttributeNames:function(){return o},isEqualNode:function(){return i},default:function(){return c}});const o={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function s(l){let{type:u,props:p}=l;const h=document.createElement(u);for(const m in p){if(!p.hasOwnProperty(m)||m==="children"||m==="dangerouslySetInnerHTML"||p[m]===void 0)continue;const _=o[m]||m.toLowerCase();u==="script"&&(_==="async"||_==="defer"||_==="noModule")?h[_]=!!p[m]:h.setAttribute(_,p[m])}const{children:d,dangerouslySetInnerHTML:f}=p;return f?h.innerHTML=f.__html||"":d&&(h.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),h}function i(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const p=u.getAttribute("nonce");if(p&&!l.getAttribute("nonce")){const h=u.cloneNode(!0);return h.setAttribute("nonce",""),h.nonce=p,p===l.nonce&&l.isEqualNode(h)}}return l.isEqualNode(u)}let a;process.env.__NEXT_STRICT_NEXT_HEAD?a=(l,u)=>{const p=document.querySelector("head");if(!p)return;const h=p.querySelectorAll('meta[name="next-head"]')||[],d=[];if(l==="meta"){const _=p.querySelector("meta[charset]");_&&d.push(_)}for(let _=0;_<h.length;_++){var f;const b=h[_].nextSibling;(b==null||(f=b.tagName)==null?void 0:f.toLowerCase())===l&&d.push(b)}const m=u.map(s).filter(_=>{for(let y=0,b=d.length;y<b;y++){const j=d[y];if(i(j,_))return d.splice(y,1),!1}return!0});d.forEach(_=>{var y;const b=_.previousSibling;if(b&&b.getAttribute("name")==="next-head"){var j;(j=_.parentNode)==null||j.removeChild(b)}(y=_.parentNode)==null||y.removeChild(_)}),m.forEach(_=>{var y;const b=document.createElement("meta");b.name="next-head",b.content="1",((y=_.tagName)==null?void 0:y.toLowerCase())==="meta"&&_.getAttribute("charset")||p.appendChild(b),p.appendChild(_)})}:a=(l,u)=>{const p=document.getElementsByTagName("head")[0],h=p.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!h){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(h.content),f=[];for(let y=0,b=h.previousElementSibling;y<d;y++,b=(b==null?void 0:b.previousElementSibling)||null){var m;(b==null||(m=b.tagName)==null?void 0:m.toLowerCase())===l&&f.push(b)}const _=u.map(s).filter(y=>{for(let b=0,j=f.length;b<j;b++){const v=f[b];if(i(v,y))return f.splice(b,1),!1}return!0});f.forEach(y=>{var b;return(b=y.parentNode)==null?void 0:b.removeChild(y)}),_.forEach(y=>p.insertBefore(y,h)),h.content=(d-f.length+_.length).toString()};function c(){return{mountedInstances:new Set,updateHead:l=>{const u={};l.forEach(d=>{if(d.type==="link"&&d.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+d.props["data-href"]+'"]'))return;d.props.href=d.props["data-href"],d.props["data-href"]=void 0}const f=u[d.type]||[];f.push(d),u[d.type]=f});const p=u.title?u.title[0]:null;let h="";if(p){const{children:d}=p.props;h=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}h!==document.title&&(document.title=h),["meta","base","link","style","script"].forEach(d=>{a(d,u[d]||[])})}}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Zt,Zt.exports)),Zt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(E,R){for(var C in R)Object.defineProperty(E,C,{enumerable:!0,get:R[C]})}r(t,{handleClientScriptLoad:function(){return _},initScriptLoader:function(){return j},default:function(){return S}});const o=Oe,s=ft,i=o._(ha),a=s._(x),c=ed(),l=oy(),u=ul(),p=new Map,h=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],f=E=>{if(i.default.preinit){E.forEach(R=>{i.default.preinit(R,{as:"style"})});return}if(typeof window<"u"){let R=document.head;E.forEach(C=>{let A=document.createElement("link");A.type="text/css",A.rel="stylesheet",A.href=C,R.appendChild(A)})}},m=E=>{const{src:R,id:C,onLoad:A=()=>{},onReady:O=null,dangerouslySetInnerHTML:w,children:N="",strategy:I="afterInteractive",onError:B,stylesheets:T}=E,H=C||R;if(H&&h.has(H))return;if(p.has(R)){h.add(H),p.get(R).then(A,B);return}const U=()=>{O&&O(),h.add(H)},q=document.createElement("script"),G=new Promise((W,z)=>{q.addEventListener("load",function(Z){W(),A&&A.call(this,Z),U()}),q.addEventListener("error",function(Z){z(Z)})}).catch(function(W){B&&B(W)});w?(q.innerHTML=w.__html||"",U()):N?(q.textContent=typeof N=="string"?N:Array.isArray(N)?N.join(""):"",U()):R&&(q.src=R,p.set(R,G));for(const[W,z]of Object.entries(E)){if(z===void 0||d.includes(W))continue;const Z=l.DOMAttributeNames[W]||W.toLowerCase();q.setAttribute(Z,z)}I==="worker"&&q.setAttribute("type","text/partytown"),q.setAttribute("data-nscript",I),T&&f(T),document.body.appendChild(q)};function _(E){const{strategy:R="afterInteractive"}=E;R==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>m(E))}):m(E)}function y(E){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>m(E)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>m(E))})}function b(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(R=>{const C=R.id||R.getAttribute("src");h.add(C)})}function j(E){E.forEach(_),b()}function v(E){const{id:R,src:C="",onLoad:A=()=>{},onReady:O=null,strategy:w="afterInteractive",onError:N,stylesheets:I,...B}=E,{updateScripts:T,scripts:H,getIsSsr:U,appDir:q,nonce:G}=(0,a.useContext)(c.HeadManagerContext),W=(0,a.useRef)(!1);(0,a.useEffect)(()=>{const Z=R||C;W.current||(O&&Z&&h.has(Z)&&O(),W.current=!0)},[O,R,C]);const z=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{z.current||(w==="afterInteractive"?m(E):w==="lazyOnload"&&y(E),z.current=!0)},[E,w]),(w==="beforeInteractive"||w==="worker")&&(T?(H[w]=(H[w]||[]).concat([{id:R,src:C,onLoad:A,onReady:O,onError:N,...B}]),T(H)):U&&U()?h.add(R||C):U&&!U()&&m(E)),q){if(I&&I.forEach(Z=>{i.default.preinit(Z,{as:"style"})}),w==="beforeInteractive")return C?(i.default.preload(C,B.integrity?{as:"script",integrity:B.integrity}:{as:"script"}),a.default.createElement("script",{nonce:G,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([C])+")"}})):(B.dangerouslySetInnerHTML&&(B.children=B.dangerouslySetInnerHTML.__html,delete B.dangerouslySetInnerHTML),a.default.createElement("script",{nonce:G,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...B}])+")"}}));w==="afterInteractive"&&C&&i.default.preload(C,B.integrity?{as:"script",integrity:B.integrity}:{as:"script"})}return null}Object.defineProperty(v,"__nextScript",{value:!0});const S=v;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(_o,_o.exports);var sy=_o.exports,iy=sy;const ay=cr(iy),cy=({children:e,ONE_TRUST:t})=>n.jsxs(n.Fragment,{children:[n.jsx(ay,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),ly=ny(()=>Promise.resolve(cy),{ssr:!1}),uy={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},Ct=({size:e,adornment:t,title:r,subtitle:o,supportChildren:s,className:i,Z_INDEX_WAR:a,...c})=>n.jsxs(g.SnackBar.Structure,{...c,size:e,className:g.helpers.classNameConcat(uy["snackbar-modifier"],i),width:360,style:{zIndex:a.snackbar},children:[n.jsx(g.SnackBar.Content,{adornment:t,title:r,subtitle:o}),s&&n.jsx(g.SnackBar.Support,{children:s})]});Ct.displayName="SnackBar";const gd=({children:e,contentState:t,entityKey:r})=>{const{url:o}=t.getEntity(r).getData();return o?n.jsx(Me,{href:o,children:e}):e},dy="_container_1kcm0_20",fy="_lgpd_1kcm0_71",py="_success_1kcm0_205",my="_error_1kcm0_225",Ie={"newsletter-root":"_newsletter-root_1kcm0_1","has-border-top":"_has-border-top_1kcm0_9","has-border-bottom":"_has-border-bottom_1kcm0_12",container:dy,"content-text":"_content-text_1kcm0_39","form-wrapper":"_form-wrapper_1kcm0_43",lgpd:fy,"textfield-structure-modifier":"_textfield-structure-modifier_1kcm0_166","input-wrapper-modifier":"_input-wrapper-modifier_1kcm0_172","support-text-modifier":"_support-text-modifier_1kcm0_176","submit-btn":"_submit-btn_1kcm0_180","loading-spinner":"_loading-spinner_1kcm0_191","terms-and-conditions-unchecked":"_terms-and-conditions-unchecked_1kcm0_197",success:py,"text-structure-modifier":"_text-structure-modifier_1kcm0_210",error:my},yd=({invalid_message:e,master_data_field:t,placeholder:r,required:o=!1,CONSTANTS:s})=>{const{isMobile:i}=be(),{inputsStatus:a,setInputsStatus:c,setFormStatus:l,variant:u}=Lo();return n.jsx(g.TextField.Structure,{className:`${Ie["textfield-structure-modifier"]} ${u}`,input:n.jsx(g.TextField.Input,{mode:"simple",label:r,sizeVariant:i?s.NEWSLETTER_CONFIGS.interactionSizeMob:s.NEWSLETTER_CONFIGS.interactionSizeDesk,name:t,className:`${Ie["input-wrapper-modifier"]} ${u}`,feedback:a[t]==="required"?"error":a[t],onChange:()=>{a[t]!=="none"&&(c(p=>({...p,[t]:"none"})),l("idle"))},required:o}),supportText:a[t]==="error"||a[t]==="required"?n.jsx("div",{className:u==="horizontal"?Ie["support-text-modifier"]:"",children:n.jsx(g.TextField.SupportText,{text:a[t]==="error"?e??s.NEWSLETTER_CONFIGS.messages.invalid_generic:s.NEWSLETTER_CONFIGS.messages.required_field,feedback:"error"})}):null})};yd.displayName="Newsletter.Input";const _d=({title:e,description:t,CONSTANTS:r})=>n.jsx("div",{className:Ie.success,children:n.jsx(g.TextStructure.Root,{adornment:{start:n.jsx(g.Icon,{name:r.ICONS.check_circle,size:"small"})},children:n.jsxs(g.TextStructure.DivWrapper,{className:Ie["text-structure-modifier"],children:[n.jsx("h3",{children:e}),n.jsx("p",{children:t})]})})});_d.displayName="Newsletter.Success";const vd=({formStatus:e,fields:t,CONSTANTS:r})=>n.jsx(n.Fragment,{children:e==="success"?n.jsx(_d,{description:r.NEWSLETTER_CONFIGS.messages.success_description,title:r.NEWSLETTER_CONFIGS.messages.success_title,CONSTANTS:r}):n.jsxs(n.Fragment,{children:[Array.isArray(t)&&t.map((o,s)=>n.jsx(yd,{invalid_message:o.invalid_message,master_data_field:o.master_data_field,placeholder:o.placeholder,required:o.required,type:o.type,CONSTANTS:r},`nt-field-${o.master_data_field}-${s}`)),e==="error"&&n.jsx("div",{className:Ie.error,children:n.jsx("p",{children:r.NEWSLETTER_CONFIGS.form.status.error})})]})});vd.displayName="Newsletter.FormFields";const bd=({formStatus:e,CONSTANTS:t,...r})=>{const{isMobile:o}=be();return n.jsxs(g.Button,{...r,className:Ie["submit-btn"],disabled:e==="success",size:o?"medium":"large",children:[n.jsx("span",{"data-loading":e==="loading","data-label":!0,children:t.NEWSLETTER_CONFIGS.submitLabel}),t.NEWSLETTER_CONFIGS.hasLoadingState&&e==="loading"&&n.jsx(g.Spinner,{className:Ie["loading-spinner"],size:"small"})]})};bd.displayName="Newsletter.SubmitButton";const xd=({checkboxRef:e,formStatus:t,setFormStatus:r,CONSTANTS:o})=>{const s=i=>{i.target.checked?(e.current=!0,t==="unchecked"&&r("idle")):e.current=!1};return n.jsxs(n.Fragment,{children:[n.jsx(g.Checkbox,{adornment:n.jsx(g.Icon,{name:o.ICONS.check,size:"x-small"}),defaultChecked:e.current,disabled:t==="success",name:"terms-and-conditions",label:o.NEWSLETTER_CONFIGS.messages.accept_terms_and_conditions,onChange:s,sizeVariant:"small"}),t==="unchecked"&&n.jsx("div",{className:Ie["terms-and-conditions-unchecked"],children:n.jsx(g.TextStructure.Root,{adornment:{start:n.jsx(g.Icon,{name:o.ICONS.alert_circle,size:"small"})},children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("p",{children:o.NEWSLETTER_CONFIGS.messages.terms_and_conditions_not_accepted})})})})]})};xd.displayName="Newsletter.Terms";const Cd=({formPayloadOptionals:e,masterDataEntity:t,CONSTANTS:r})=>{const{checkboxRef:o,fields:s,formStatus:i,hasTermsAndConditions:a,handleClickToSubmit:c,handleSubmit:l,setFormStatus:u}=Lo();return n.jsxs("form",{className:Ie["form-wrapper"],onSubmit:p=>l(p,e,t),children:[n.jsx(vd,{formStatus:i,fields:s,CONSTANTS:r}),a&&n.jsx(xd,{checkboxRef:o,formStatus:i,setFormStatus:u,CONSTANTS:r}),n.jsx(bd,{formStatus:i,type:"submit",variant:"primary",onClick:c,CONSTANTS:r})]})};Cd.displayName="Newsletter.Form";const hy=["horizontal","vertical"],Sd=({className:e,description:t,formPayloadOptionals:r,fields:o,masterDataEntity:s,masterDataEmailField:i,masterDataNameField:a,lgpd:c,title:l,variant:u,borderTop:p,borderBottom:h,CONSTANTS:d,...f})=>{if(!i||!a)return null;const m=g.helpers.ValidateProp({fieldTypes:hy,property:u,fallback:"horizontal"});return n.jsx(Dc,{fields:o,masterDataEmailField:i,masterDataNameField:a,variant:m,CONSTANTS:d,children:n.jsxs("div",{...f,className:g.helpers.classNameConcat(Ie["newsletter-root"],[p&&Ie["has-border-top"],h&&Ie["has-border-bottom"],e].filter(Boolean)),"data-variant":m,children:[n.jsxs("div",{className:Ie.container,children:[n.jsxs("div",{className:Ie["content-text"],children:[l&&n.jsx("h2",{children:l}),t&&n.jsx("p",{children:t})]}),n.jsx(Cd,{formPayloadOptionals:r,masterDataEntity:s,CONSTANTS:d})]}),n.jsx("div",{className:Ie.lgpd,children:n.jsx("p",{children:d.NEWSLETTER_CONFIGS.messages.lgpd})})]})})};Sd.displayName="Newsletter";const gy={teamComponents:{AddToCart:$o,BackToTop:Np,BuyPackage:vm,Filter:{...He,helpers:Iu},...Vg,FreightCalculation:_h,Header:bu,Link:Ue,Media:ze,PLPNavigation:pt,ProductCard:ve,ProductList:Ih,ProductVariationList:Je,Sort:Uo,UserMenu:Ho,Newsletter:Sd},template:{pdp:Yg,minicart:ke},utils:{EventCollector:Qg,ExternalScripts:ly,LinkOrNotLink:Pt,ObserverWrapper:dr,SnackBarComponent:Ct,DraftJsLinkWrapper:gd}},yy=(e,t)=>{const r=e.map(s=>`'${s.source}'`).join(`,
40
+ */const c=a(357),l=(C,A,O)=>{if(c(C)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(A===void 0||C===A)return String(C);if(c(A)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let w={relaxZeros:!0,...O};typeof w.strictZeros=="boolean"&&(w.relaxZeros=w.strictZeros===!1);let N=String(w.relaxZeros),I=String(w.shorthand),B=String(w.capture),T=String(w.wrap),H=C+":"+A+"="+N+I+B+T;if(l.cache.hasOwnProperty(H))return l.cache[H].result;let U=Math.min(C,A),q=Math.max(C,A);if(Math.abs(U-q)===1){let P=C+"|"+A;return w.capture?`(${P})`:w.wrap===!1?P:`(?:${P})`}let G=E(C)||E(A),W={min:C,max:A,a:U,b:q},z=[],Z=[];if(G&&(W.isPadded=G,W.maxLen=String(W.max).length),U<0){let P=q<0?Math.abs(q):1;Z=d(P,Math.abs(U),W,w),U=W.a=0}return q>=0&&(z=d(U,q,W,w)),W.negatives=Z,W.positives=z,W.result=u(Z,z),w.capture===!0?W.result=`(${W.result})`:w.wrap!==!1&&z.length+Z.length>1&&(W.result=`(?:${W.result})`),l.cache[H]=W,W.result};function u(C,A,O){let w=f(C,A,"-",!1)||[],N=f(A,C,"",!1)||[],I=f(C,A,"-?",!0)||[];return w.concat(I).concat(N).join("|")}function p(C,A){let O=1,w=1,N=b(C,O),I=new Set([A]);for(;C<=N&&N<=A;)I.add(N),O+=1,N=b(C,O);for(N=j(A+1,w)-1;C<N&&N<=A;)I.add(N),w+=1,N=j(A+1,w)-1;return I=[...I],I.sort(_),I}function h(C,A,O){if(C===A)return{pattern:C,count:[],digits:0};let w=m(C,A),N=w.length,I="",B=0;for(let T=0;T<N;T++){let[H,U]=w[T];H===U?I+=H:H!=="0"||U!=="9"?I+=S(H,U):B++}return B&&(I+=O.shorthand===!0?"\\d":"[0-9]"),{pattern:I,count:[B],digits:N}}function d(C,A,O,w){let N=p(C,A),I=[],B=C,T;for(let H=0;H<N.length;H++){let U=N[H],q=h(String(B),String(U),w),G="";if(!O.isPadded&&T&&T.pattern===q.pattern){T.count.length>1&&T.count.pop(),T.count.push(q.count[0]),T.string=T.pattern+v(T.count),B=U+1;continue}O.isPadded&&(G=R(U,O,w)),q.string=G+q.pattern+v(q.count),I.push(q),B=U+1,T=q}return I}function f(C,A,O,w,N){let I=[];for(let B of C){let{string:T}=B;!w&&!y(A,"string",T)&&I.push(O+T),w&&y(A,"string",T)&&I.push(O+T)}return I}function m(C,A){let O=[];for(let w=0;w<C.length;w++)O.push([C[w],A[w]]);return O}function _(C,A){return C>A?1:A>C?-1:0}function y(C,A,O){return C.some(w=>w[A]===O)}function b(C,A){return Number(String(C).slice(0,-A)+"9".repeat(A))}function j(C,A){return C-C%Math.pow(10,A)}function v(C){let[A=0,O=""]=C;return O||A>1?`{${A+(O?","+O:"")}}`:""}function S(C,A,O){return`[${C}${A-C===1?"":"-"}${A}]`}function E(C){return/^-?(0+)\d/.test(C)}function R(C,A,O){if(!A.isPadded)return C;let w=Math.abs(A.maxLen-String(C).length),N=O.relaxZeros!==!1;switch(w){case 0:return"";case 1:return N?"0?":"0";case 2:return N?"0{0,2}":"00";default:return N?`0{0,${w}}`:`0{${w}}`}}l.cache={},l.clearCache=()=>l.cache={},s.exports=l},17:s=>{s.exports=eg},837:s=>{s.exports=Lg()}},t={};function r(s){var i=t[s];if(i!==void 0)return i.exports;var a=t[s]={exports:{}},c=!0;try{e[s](a,a.exports,r),c=!1}finally{c&&delete t[s]}return a.exports}typeof r<"u"&&(r.ab=__dirname+"/");var o=r(971);Qr.exports=o})()),Qr.exports}var Ji;function $g(){return Ji||(Ji=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,a){for(var c in a)Object.defineProperty(i,c,{enumerable:!0,get:a[c]})}t(e,{matchRemotePattern:function(){return o},hasMatch:function(){return s}});const r=Dg();function o(i,a){if(i.protocol!==void 0){const l=a.protocol.slice(0,-1);if(i.protocol!==l)return!1}if(i.port!==void 0&&i.port!==a.port)return!1;if(i.hostname===void 0)throw new Error(`Pattern should define hostname but found
41
+ `+JSON.stringify(i));if(!(0,r.makeRe)(i.hostname).test(a.hostname))return!1;var c;return!!(0,r.makeRe)((c=i.pathname)!=null?c:"**").test(a.pathname)}function s(i,a,c){return i.some(l=>c.hostname===l)||a.some(l=>o(l,c))}}(Yr)),Yr}var ea;function ud(){return ea||(ea=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(o){let{config:s,src:i,width:a,quality:c}=o;if(process.env.NODE_ENV!=="production"){const l=[];if(i||l.push("src"),a||l.push("width"),l.length>0)throw new Error("Next Image Optimization requires "+l.join(", ")+" to be provided. Make sure you pass them as props to the `next/image` component. Received: "+JSON.stringify({src:i,width:a,quality:c}));if(i.startsWith("//"))throw new Error('Failed to parse src "'+i+'" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');if(!i.startsWith("/")&&(s.domains||s.remotePatterns)){let u;try{u=new URL(i)}catch(p){throw console.error(p),new Error('Failed to parse src "'+i+'" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)')}if(process.env.NODE_ENV!=="test"&&process.env.NEXT_RUNTIME!=="edge"){const{hasMatch:p}=$g();if(!p(s.domains,s.remotePatterns,u))throw new Error("Invalid src prop ("+i+') on `next/image`, hostname "'+u.hostname+'" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host')}}}return s.path+"?url="+encodeURIComponent(i)+"&w="+a+"&q="+(c||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}t.__next_img_default=!0;const r=t}(Xr)),Xr}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return j}});const r=Oe,s=ft._(x),i=r._(ma),a=r._(Zh()),c=Ko,l=fr,u=Jh(),p=It,h=cl(),d=r._(ud()),f=process.env.__NEXT_IMAGE_OPTS;typeof window>"u"&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);function m(v,S,E,R,C,A){const O=v==null?void 0:v.src;if(!v||v["data-loaded-src"]===O)return;v["data-loaded-src"]=O,("decode"in v?v.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(!(!v.parentElement||!v.isConnected)){if(S!=="empty"&&C(!0),E!=null&&E.current){const N=new Event("load");Object.defineProperty(N,"target",{writable:!1,value:v});let I=!1,B=!1;E.current({...N,nativeEvent:N,currentTarget:v,target:v,isDefaultPrevented:()=>I,isPropagationStopped:()=>B,persist:()=>{},preventDefault:()=>{I=!0,N.preventDefault()},stopPropagation:()=>{B=!0,N.stopPropagation()}})}if(R!=null&&R.current&&R.current(v),process.env.NODE_ENV!=="production"){const N=new URL(O,"http://n").searchParams.get("url")||O;if(v.getAttribute("data-nimg")==="fill"){if(!A&&(!v.getAttribute("sizes")||v.getAttribute("sizes")==="100vw")&&v.getBoundingClientRect().width/window.innerWidth<.6&&(0,p.warnOnce)('Image with src "'+N+'" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes'),v.parentElement){const{position:T}=window.getComputedStyle(v.parentElement),H=["absolute","fixed","relative"];H.includes(T)||(0,p.warnOnce)('Image with src "'+N+'" has "fill" and parent element with invalid "position". Provided "'+T+'" should be one of '+H.map(String).join(",")+".")}v.height===0&&(0,p.warnOnce)('Image with src "'+N+'" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.')}const I=v.height.toString()!==v.getAttribute("height"),B=v.width.toString()!==v.getAttribute("width");(I&&!B||!I&&B)&&(0,p.warnOnce)('Image with src "'+N+`" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`)}}})}function _(v){const[S,E]=s.version.split("."),R=parseInt(S,10),C=parseInt(E,10);return R>18||R===18&&C>=3?{fetchPriority:v}:{fetchpriority:v}}const y=(0,s.forwardRef)((v,S)=>{let{src:E,srcSet:R,sizes:C,height:A,width:O,decoding:w,className:N,style:I,fetchPriority:B,placeholder:T,loading:H,unoptimized:U,fill:q,onLoadRef:G,onLoadingCompleteRef:W,setBlurComplete:z,setShowAltText:Z,onLoad:P,onError:k,...D}=v;return s.default.createElement("img",{...D,..._(B),loading:H,width:O,height:A,decoding:w,"data-nimg":q?"fill":"1",className:N,style:I,sizes:C,srcSet:R,src:E,ref:(0,s.useCallback)(K=>{S&&(typeof S=="function"?S(K):typeof S=="object"&&(S.current=K)),K&&(k&&(K.src=K.src),process.env.NODE_ENV!=="production"&&(E||console.error('Image is missing required "src" property:',K),K.getAttribute("alt")===null&&console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')),K.complete&&m(K,T,G,W,z,U))},[E,T,G,W,z,k,U,S]),onLoad:K=>{const re=K.currentTarget;m(re,T,G,W,z,U)},onError:K=>{Z(!0),T!=="empty"&&z(!0),k&&k(K)}})});function b(v){let{isAppRouter:S,imgAttributes:E}=v;const R={as:"image",imageSrcSet:E.srcSet,imageSizes:E.sizes,crossOrigin:E.crossOrigin,referrerPolicy:E.referrerPolicy,..._(E.fetchPriority)};return S&&i.default.preload?(i.default.preload(E.src,R),null):s.default.createElement(a.default,null,s.default.createElement("link",{key:"__nimg-"+E.src+E.srcSet+E.sizes,rel:"preload",href:E.srcSet?void 0:E.src,...R}))}const j=(0,s.forwardRef)((v,S)=>{const R=!(0,s.useContext)(h.RouterContext),C=(0,s.useContext)(u.ImageConfigContext),A=(0,s.useMemo)(()=>{const W=f||C||l.imageConfigDefault,z=[...W.deviceSizes,...W.imageSizes].sort((P,k)=>P-k),Z=W.deviceSizes.sort((P,k)=>P-k);return{...W,allSizes:z,deviceSizes:Z}},[C]),{onLoad:O,onLoadingComplete:w}=v,N=(0,s.useRef)(O);(0,s.useEffect)(()=>{N.current=O},[O]);const I=(0,s.useRef)(w);(0,s.useEffect)(()=>{I.current=w},[w]);const[B,T]=(0,s.useState)(!1),[H,U]=(0,s.useState)(!1),{props:q,meta:G}=(0,c.getImgProps)(v,{defaultLoader:d.default,imgConf:A,blurComplete:B,showAltText:H});return s.default.createElement(s.default.Fragment,null,s.default.createElement(y,{...q,unoptimized:G.unoptimized,placeholder:G.placeholder,fill:G.fill,onLoadRef:N,onLoadingCompleteRef:I,setBlurComplete:T,setShowAltText:U,ref:S}),G.priority?s.default.createElement(b,{isAppRouter:R,imgAttributes:q}):null)});(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(ho,ho.exports);var Bg=ho.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,p){for(var h in p)Object.defineProperty(u,h,{enumerable:!0,get:p[h]})}t(e,{unstable_getImgProps:function(){return c},default:function(){return l}});const r=Oe,o=Ko,s=It,i=Bg,a=r._(ud()),c=u=>{(0,s.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");const{props:p}=(0,o.getImgProps)(u,{defaultLoader:a.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[h,d]of Object.entries(p))d===void 0&&delete p[h];return{props:p}},l=i.Image})(Zu);var zg=Zu;const ta=ar(zg),Fg=({item:e,CONSTANTS:t})=>{const r=e.icon?t.PAYMENT_FLAGS.includes(e.icon)?"payment":"social":null,o=r==="payment"?t.PAYMENT_FLAGS_DICTIONARY[e.icon]:e.icon;return e.link?n.jsxs(Me,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:he["support-item"],children:[e.image&&n.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?n.jsx(ta,{alt:o,src:`/assets/${o}.svg`,width:20,height:20}):n.jsx(g.Icon,{size:"small",name:o})]}):n.jsxs("div",{className:he["support-item"],children:[e.image&&n.jsx("img",{src:e.image,alt:"",loading:"lazy"}),r==="payment"?n.jsx(ta,{alt:o,src:`/assets/${o}.svg`,width:20,height:20}):n.jsx(g.Icon,{size:"small",name:o})]})},qg=({content:e,CONSTANTS:t})=>n.jsx("div",{className:he["support-container"],children:e==null?void 0:e.map((r,o)=>n.jsxs("div",{"data-device":r.device,className:he["support-section"],children:[n.jsxs("div",{className:he["support-text"],children:[r.title&&n.jsx("h3",{children:r.title}),r.description&&n.jsx("p",{children:r.description})]}),Array.isArray(r.items)&&r.items.length&&n.jsx("div",{className:he["support-items"],"data-gap":r.gap,children:r.items.map((s,i)=>n.jsx(Fg,{item:s,CONSTANTS:t},`footer-support-item-${i}`))})]},`footer-support-${o}`))}),Hg=({name:e,nameIcon:t,maxWidth:r,rowAlignContent:o,columnAlignContent:s,columnAlignItems:i,textAlignContent:a,textAlignItems:c,children:l})=>n.jsx(g.TextStructure.Root,{layoutProps:{textRow:{alignContent:o,alignItems:o},columnWrapper:{alignContent:s,alignItems:i}},children:n.jsxs(g.TextStructure.DivWrapper,{alignContent:a,alignItems:c,className:he.footer__column,children:[n.jsxs("div",{className:t?he.footer__columnTitleIcon:he.footer__columnTitle,children:[n.jsx(g.Icon,{name:`${t}`,size:"small"}),e&&n.jsx("div",{children:e})]}),n.jsx("div",{className:he.footer__columnContent,style:{maxWidth:`${r}px`},children:l})]})}),Ug=({name:e,nameIcon:t,maxWidth:r,children:o,ICONS:s,...i})=>n.jsxs(g.Accordion.Wrapper,{className:he.accordionWrapper,title:"accordion-wrapper",...i,children:[n.jsx(g.Accordion.Header,{id:(i==null?void 0:i.id)??"",className:he.accordionHeader,closeIndicator:n.jsx(g.Icon,{name:s.arrow_up,size:"medium"}),openIndicator:n.jsx(g.Icon,{name:s.arrow_down,size:"medium"}),title:"accordion-header",children:n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{className:t?he.accordionTextWrapper:"",children:[n.jsx(g.Icon,{name:`${t}`,size:"medium"}),n.jsx("h2",{className:"typography-style-body-md",children:e})]})})}),n.jsx(g.Accordion.Body,{title:"accordion-body",children:n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{className:he.footer__columnContent,style:{maxWidth:`${r}px`},children:o})})})]}),Jn=e=>{const{isMobile:t}=be();return t?n.jsx(Ug,{...e}):n.jsx(Hg,{...e})},Qt=({type:e,children:t,className:r,collumnName:o,collumnNameIcon:s,icons:i,iconLink:a,iconSize:c,link:l,paymentDisclaimer:u,paymentTitle:p,rowAlignContent:h,columnAlignContent:d,columnAlignItems:f,textAlignContent:m,textAlignItems:_,...y})=>{let b;const{handleSelectContent:j}=ge(),{nextimage:v}=Re();switch(e){case"menu":b=n.jsx(Me,{className:he.footer__itemLink,href:l??"#",prefetch:!1,children:n.jsx("span",{onClick:()=>{j({content:`footer:${o}:${t}`})},children:t})});break;case"payment":b=n.jsxs("div",{className:g.helpers.classNameConcat(he.payment,he.footer__itemSmallText),...y,children:[u,n.jsxs("div",{className:g.helpers.classNameConcat(he.footer__iconContainer,he.footer__iconListSubHeader),children:[p,n.jsx("div",{className:he.footer__iconList,children:i==null?void 0:i.map((S,E)=>n.jsx(v,{alt:S,src:`/assets/${S}.svg`,width:c??20,height:c??20},E))})]})]});break;case"social-media":b=n.jsx("div",{className:he.footer__iconContainer,...y,children:n.jsx("div",{className:he.footer__iconList,children:a==null?void 0:a.map((S,E)=>n.jsx(Me,{prefetch:!1,href:S.link??"#",target:"_blank",children:n.jsx(g.Icon,{size:"medium",name:S.icon,onClick:()=>j({content:`footer:redes-sociais:${S.icon}`})})},E))})});break;default:b=n.jsx("div",{className:r,...y,children:t})}return n.jsx(g.TextStructure.Root,{layoutProps:{textRow:{alignContent:h,alignItems:h},columnWrapper:{alignContent:d,alignItems:f}},...y,children:n.jsx(g.TextStructure.DivWrapper,{alignContent:m,alignItems:_,className:g.helpers.classNameConcat(he.footer__item,r),children:b})})},Wg=({className:e,text:t,...r})=>n.jsx("div",{...r,className:g.helpers.classNameConcat(he.footer__legalInformation,e),children:n.jsx("span",{children:t})}),dd=()=>{const{nextimage:e}=Re();return n.jsx("div",{className:he["footer--stamps"],children:n.jsx(e,{alt:"Empresa B",className:he["footer--stamps--company"],src:"/images/Footer/new_certfB.png",width:56,height:64})})};dd.displayName="Footer.Stamps";const fd=({children:e,legalTextSlot:t,adornment:r,className:o,...s})=>{const{isMobile:i}=be(),a=x.Children.toArray(e).filter(Boolean),c=a.length;return n.jsxs("div",{className:he.footer__main,children:[(r==null?void 0:r.top)&&n.jsx("div",{className:he.footer__top,children:r==null?void 0:r.top}),c>0&&n.jsx("div",{...s,className:g.helpers.classNameConcat(he.footer__wrapper,o),children:a.map((l,u)=>n.jsx("div",{style:{flexGrow:1,maxWidth:`calc(100% / ${i?1:"fit-content"})`},children:l},u))}),(r==null?void 0:r.bottom)&&n.jsx("div",{className:he.footer__bottom,children:r.bottom}),t&&n.jsx("div",{className:he.footer__legalText,children:t})]})};fd.displayName="Footer.Wrapper";const pd=({data:{links:{links:e}},payments:t,socialInfo:r,socialMedias:o,adornment:s,LEGAL_INFORMATION_TEXT:i,ICONS:a})=>{var c;return n.jsxs(fd,{adornment:s,legalTextSlot:n.jsx(Wg,{text:i}),children:[Array.isArray(e.column)&&e.column.map((l,u)=>n.jsx(Jn,{id:`${u}column-menu`,name:l.name,nameIcon:l.nameIcon,ICONS:a,children:l.items.map((p,h)=>n.jsx(Qt,{type:"menu",link:p.link,collumnName:l.name,collumnNameIcon:l.nameIcon,children:p.text},h))},u)),t&&((c=t.acceptedFlags)==null?void 0:c.length)>0&&n.jsx(Jn,{id:"payment-column",name:t==null?void 0:t.title,nameIcon:t==null?void 0:t.titleIcon,maxWidth:150,ICONS:a,children:n.jsx(Qt,{type:"payment",paymentDisclaimer:t==null?void 0:t.text,paymentTitle:t==null?void 0:t.flagsTitle,iconSize:16,icons:t==null?void 0:t.acceptedFlags})}),n.jsxs(Jn,{id:"social-media-column",name:r==null?void 0:r.title,ICONS:a,children:[r!=null&&r.subTitle?n.jsx(Qt,{children:r==null?void 0:r.subTitle}):null,n.jsx(Qt,{type:"social-media",iconSize:24,iconLink:o}),n.jsx(dd,{})]})]})};pd.displayName="Footer";const Vg=Object.freeze(Object.defineProperty({__proto__:null,Footer:pd,FooterSupport:qg},Symbol.toStringTag,{value:"Module"})),ra=({image:e,index:t,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:o})=>{const s=ie.resizingImg(e.imageUrl,o.pdp),{nextimage:i}=Re();return n.jsx(i,{src:s,alt:e.imageLabel,objectFit:"contain",...o.pdp,...t<=1&&{priority:!0,loading:"eager"},onClick:()=>{r(t)}},t)},Gg=({video:e,productName:t,poster:r})=>{const{sendDataLayerEvent:o}=ge(),s=x.useRef(!1);return n.jsx(ze.Video,{src:e,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{zIndex:-1,aspectRatio:"2/3"},onPlaying:()=>{s.current||(s.current=!0,o({functionKey:"readyEvents",data:{event:"video_start",readyData:{product:t}}}))},poster:r})},Kg={"gallery-carousel-modifier":"_gallery-carousel-modifier_1dxfy_92"},md=({images:e,video:t,handleZoom:r,productName:o,PRODUCT_IMAGE_DIMENSIONS:s})=>{var u,p;const{initialize:i,pagination:a,controller:c,itemsStyles:l}=g.Carousel.useCarousel({gap:0,itemsPerPage:1,loop:!1,direction:"row"});return n.jsxs(g.Carousel.Root,{innerRef:h=>{i(h)},className:Kg["gallery-carousel-modifier"],children:[n.jsx(g.Carousel.Controller,{position:"absolute",top:"24px",bottom:"unset",left:"16px",children:n.jsx(g.Carousel.Bullets,{page:a.currentPage,total:e.length,onBulletClick:h=>c==null?void 0:c.navigateTo(h)})}),n.jsxs(g.Carousel.Body,{children:[n.jsx(g.Carousel.Item,{style:l,children:n.jsx(ra,{image:e[0],index:0,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:s})},"PDP_gallery_0"),t&&n.jsx(g.Carousel.Item,{style:l,children:n.jsx(Gg,{video:t,productName:o,...((u=e[1])==null?void 0:u.imageUrl)&&{poster:(p=e[1])==null?void 0:p.imageUrl}})},"PDP_gallery_video"),e.map((h,d)=>d===0?null:n.jsx(g.Carousel.Item,{style:l,children:n.jsx(ra,{image:h,index:d,handleZoom:r,PRODUCT_IMAGE_DIMENSIONS:s})},`PDP_gallery_${d}`))]})]})};md.displayName="PDP.Carousel";const Xg=({productImgs:e,PRODUCT_IMAGE_DIMENSIONS:t,ImageZoom:r})=>{const{video:o,productName:s}=jo(),[i,a]=x.useState({show:!1,initialIndex:0});x.useEffect(()=>(i.show?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[i]);const c=l=>{a({show:!0,initialIndex:l})};return n.jsxs(n.Fragment,{children:[n.jsx(md,{images:e,video:o,handleZoom:c,productName:s,PRODUCT_IMAGE_DIMENSIONS:t}),i.show&&n.jsx(r,{images:e,initialSelectedImageIndex:i.initialIndex,setShowImageZoom:a})]})},hd=({TEXTURE_IMAGE:e,PRODUCT_IMAGE_DIMENSIONS:t,ImageZoom:r})=>{const{images:o}=jo(),s=x.useMemo(()=>{const i=o.filter(a=>!e.includes(a.imageLabel));return i.length>0?i:o},[]);return n.jsx(Xg,{productImgs:s,PRODUCT_IMAGE_DIMENSIONS:t,ImageZoom:r})};hd.displayName="PDP.Gallery";const Yg=Object.freeze(Object.defineProperty({__proto__:null,Gallery:hd},Symbol.toStringTag,{value:"Module"})),Qg=({page:e,data:t})=>{const{pathname:r}=Re(),o=x.useRef(null),{sendDataLayerEvent:s,currentLocalRef:i,itemListRef:a,promotionEventRef:c}=ge();return x.useEffect(()=>{const l=Rc("login_event")||"{}",u=JSON.parse(l);if(u.name||u.method){const p=new Date(0);s({functionKey:"readyEvents",data:{event:u.name,readyData:{method:u.method}}}),ko("login_event","",{expires:p})}},[]),x.useEffect(()=>{if(o.current===r)return;o.current=r;let l={};switch(e){case"PDP":{const p=t,h={};if(!p){l={page_category:"pdp"};break}p.items.forEach(({itemId:d,sellers:f})=>h[d]=f[0].commertialOffer.AvailableQuantity),l={page_category:"pdp",seller_ids:p.items.map(({sellers:d})=>d[0].sellerId).join(),skuStocks:h,product_reference_id:p.productReference};break}case"PDC":{const{page_category:p,page_departament:h,id:d,name:f}=xa(),m=f,_=d;l={page_category:"lista_produtos",...h&&{page_departament:h}},a.current={item_list_name:r==="/search"?"busca":m??void 0,item_list_id:r==="/search"?void 0:_??void 0},h&&s({functionKey:"readyEvents",data:{event:"view_category",readyData:{page_category:p,page_departament:h}}});break}default:l={page_category:e},c.current={},a.current={};break}const u={region:e,...l};i.current=e,s({functionKey:"readyEvents",data:{readyData:{vtex_version:"fast",...u}},timeout:0})},[r]),null};var go={exports:{}};function Zg(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var eo={},to={},na;function Jg(){return na||(na=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return o}});const o=Oe._(x).default.createContext(null);process.env.NODE_ENV!=="production"&&(o.displayName="LoadableContext")}(to)),to}var oa;function ey(){return oa||(oa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});const r=Oe._(x),o=Jg();function s(m){return m&&m.default?m.default:m}const i=[],a=[];let c=!1;function l(m){let _=m(),y={loading:!0,loaded:null,error:null};return y.promise=_.then(b=>(y.loading=!1,y.loaded=b,b)).catch(b=>{throw y.loading=!1,y.error=b,b}),y}function u(m,_){let y=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},_),b=null;function j(){if(!b){const E=new p(m,y);b={getCurrentValue:E.getCurrentValue.bind(E),subscribe:E.subscribe.bind(E),retry:E.retry.bind(E),promise:E.promise.bind(E)}}return b.promise()}if(typeof window>"u"&&i.push(j),!c&&typeof window<"u"){const E=y.webpack&&typeof Zg.resolveWeak=="function"?y.webpack():y.modules;E&&a.push(R=>{for(const C of E)if(R.includes(C))return j()})}function v(){j();const E=r.default.useContext(o.LoadableContext);E&&Array.isArray(y.modules)&&y.modules.forEach(R=>{E(R)})}function S(E,R){v();const C=r.default.useSyncExternalStore(b.subscribe,b.getCurrentValue,b.getCurrentValue);return r.default.useImperativeHandle(R,()=>({retry:b.retry}),[]),r.default.useMemo(()=>C.loading||C.error?r.default.createElement(y.loading,{isLoading:C.loading,pastDelay:C.pastDelay,timedOut:C.timedOut,error:C.error,retry:b.retry}):C.loaded?r.default.createElement(s(C.loaded),E):null,[E,C])}return S.preload=()=>j(),S.displayName="LoadableComponent",r.default.forwardRef(S)}class p{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:_,_opts:y}=this;_.loading&&(typeof y.delay=="number"&&(y.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},y.delay)),typeof y.timeout=="number"&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},y.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(b=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(_){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,..._},this._callbacks.forEach(y=>y())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(_){return this._callbacks.add(_),()=>{this._callbacks.delete(_)}}constructor(_,y){this._loadFn=_,this._opts=y,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function h(m){return u(l,m)}function d(m,_){let y=[];for(;m.length;){let b=m.pop();y.push(b(_))}return Promise.all(y).then(()=>{if(m.length)return d(m,_)})}h.preloadAll=()=>new Promise((m,_)=>{d(i).then(m,_)}),h.preloadReady=m=>(m===void 0&&(m=[]),new Promise(_=>{const y=()=>(c=!0,_());d(a,m).then(y,y)})),typeof window<"u"&&(window.__NEXT_PRELOADREADY=h.preloadReady);const f=h}(eo)),eo}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(p,h){for(var d in h)Object.defineProperty(p,d,{enumerable:!0,get:h[d]})}r(t,{noSSR:function(){return l},default:function(){return u}});const o=Oe,s=o._(x),i=o._(ey()),a=typeof window>"u";function c(p){return{default:(p==null?void 0:p.default)||p}}function l(p,h){if(delete h.webpack,delete h.modules,!a)return p(h);const d=h.loading;return()=>s.default.createElement(d,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function u(p,h){let d=i.default,f={loading:y=>{let{error:b,isLoading:j,pastDelay:v}=y;if(!v)return null;if(process.env.NODE_ENV!=="production"){if(j)return null;if(b)return s.default.createElement("p",null,b.message,s.default.createElement("br",null),b.stack)}return null}};p instanceof Promise?f.loader=()=>p:typeof p=="function"?f.loader=p:typeof p=="object"&&(f={...f,...p}),f={...f,...h};const m=f.loader,_=()=>m!=null?m().then(c):Promise.resolve(c(()=>null));return f.loadableGenerated&&(f={...f,...f.loadableGenerated},delete f.loadableGenerated),typeof f.ssr=="boolean"&&!f.ssr?(delete f.webpack,delete f.modules,l(d,f)):d({...f,loader:_})}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(go,go.exports);var ty=go.exports,ry=ty;const ny=ar(ry);var yo={exports:{}},Zt={exports:{}},sa;function oy(){return sa||(sa=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(l,u){for(var p in u)Object.defineProperty(l,p,{enumerable:!0,get:u[p]})}r(t,{DOMAttributeNames:function(){return o},isEqualNode:function(){return i},default:function(){return c}});const o={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function s(l){let{type:u,props:p}=l;const h=document.createElement(u);for(const m in p){if(!p.hasOwnProperty(m)||m==="children"||m==="dangerouslySetInnerHTML"||p[m]===void 0)continue;const _=o[m]||m.toLowerCase();u==="script"&&(_==="async"||_==="defer"||_==="noModule")?h[_]=!!p[m]:h.setAttribute(_,p[m])}const{children:d,dangerouslySetInnerHTML:f}=p;return f?h.innerHTML=f.__html||"":d&&(h.textContent=typeof d=="string"?d:Array.isArray(d)?d.join(""):""),h}function i(l,u){if(l instanceof HTMLElement&&u instanceof HTMLElement){const p=u.getAttribute("nonce");if(p&&!l.getAttribute("nonce")){const h=u.cloneNode(!0);return h.setAttribute("nonce",""),h.nonce=p,p===l.nonce&&l.isEqualNode(h)}}return l.isEqualNode(u)}let a;process.env.__NEXT_STRICT_NEXT_HEAD?a=(l,u)=>{const p=document.querySelector("head");if(!p)return;const h=p.querySelectorAll('meta[name="next-head"]')||[],d=[];if(l==="meta"){const _=p.querySelector("meta[charset]");_&&d.push(_)}for(let _=0;_<h.length;_++){var f;const b=h[_].nextSibling;(b==null||(f=b.tagName)==null?void 0:f.toLowerCase())===l&&d.push(b)}const m=u.map(s).filter(_=>{for(let y=0,b=d.length;y<b;y++){const j=d[y];if(i(j,_))return d.splice(y,1),!1}return!0});d.forEach(_=>{var y;const b=_.previousSibling;if(b&&b.getAttribute("name")==="next-head"){var j;(j=_.parentNode)==null||j.removeChild(b)}(y=_.parentNode)==null||y.removeChild(_)}),m.forEach(_=>{var y;const b=document.createElement("meta");b.name="next-head",b.content="1",((y=_.tagName)==null?void 0:y.toLowerCase())==="meta"&&_.getAttribute("charset")||p.appendChild(b),p.appendChild(_)})}:a=(l,u)=>{const p=document.getElementsByTagName("head")[0],h=p.querySelector("meta[name=next-head-count]");if(process.env.NODE_ENV!=="production"&&!h){console.error("Warning: next-head-count is missing. https://nextjs.org/docs/messages/next-head-count-missing");return}const d=Number(h.content),f=[];for(let y=0,b=h.previousElementSibling;y<d;y++,b=(b==null?void 0:b.previousElementSibling)||null){var m;(b==null||(m=b.tagName)==null?void 0:m.toLowerCase())===l&&f.push(b)}const _=u.map(s).filter(y=>{for(let b=0,j=f.length;b<j;b++){const v=f[b];if(i(v,y))return f.splice(b,1),!1}return!0});f.forEach(y=>{var b;return(b=y.parentNode)==null?void 0:b.removeChild(y)}),_.forEach(y=>p.insertBefore(y,h)),h.content=(d-f.length+_.length).toString()};function c(){return{mountedInstances:new Set,updateHead:l=>{const u={};l.forEach(d=>{if(d.type==="link"&&d.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+d.props["data-href"]+'"]'))return;d.props.href=d.props["data-href"],d.props["data-href"]=void 0}const f=u[d.type]||[];f.push(d),u[d.type]=f});const p=u.title?u.title[0]:null;let h="";if(p){const{children:d}=p.props;h=typeof d=="string"?d:Array.isArray(d)?d.join(""):""}h!==document.title&&(document.title=h),["meta","base","link","style","script"].forEach(d=>{a(d,u[d]||[])})}}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Zt,Zt.exports)),Zt.exports}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(E,R){for(var C in R)Object.defineProperty(E,C,{enumerable:!0,get:R[C]})}r(t,{handleClientScriptLoad:function(){return _},initScriptLoader:function(){return j},default:function(){return S}});const o=Oe,s=ft,i=o._(ma),a=s._(x),c=ed(),l=oy(),u=ll(),p=new Map,h=new Set,d=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],f=E=>{if(i.default.preinit){E.forEach(R=>{i.default.preinit(R,{as:"style"})});return}if(typeof window<"u"){let R=document.head;E.forEach(C=>{let A=document.createElement("link");A.type="text/css",A.rel="stylesheet",A.href=C,R.appendChild(A)})}},m=E=>{const{src:R,id:C,onLoad:A=()=>{},onReady:O=null,dangerouslySetInnerHTML:w,children:N="",strategy:I="afterInteractive",onError:B,stylesheets:T}=E,H=C||R;if(H&&h.has(H))return;if(p.has(R)){h.add(H),p.get(R).then(A,B);return}const U=()=>{O&&O(),h.add(H)},q=document.createElement("script"),G=new Promise((W,z)=>{q.addEventListener("load",function(Z){W(),A&&A.call(this,Z),U()}),q.addEventListener("error",function(Z){z(Z)})}).catch(function(W){B&&B(W)});w?(q.innerHTML=w.__html||"",U()):N?(q.textContent=typeof N=="string"?N:Array.isArray(N)?N.join(""):"",U()):R&&(q.src=R,p.set(R,G));for(const[W,z]of Object.entries(E)){if(z===void 0||d.includes(W))continue;const Z=l.DOMAttributeNames[W]||W.toLowerCase();q.setAttribute(Z,z)}I==="worker"&&q.setAttribute("type","text/partytown"),q.setAttribute("data-nscript",I),T&&f(T),document.body.appendChild(q)};function _(E){const{strategy:R="afterInteractive"}=E;R==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>m(E))}):m(E)}function y(E){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>m(E)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>m(E))})}function b(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(R=>{const C=R.id||R.getAttribute("src");h.add(C)})}function j(E){E.forEach(_),b()}function v(E){const{id:R,src:C="",onLoad:A=()=>{},onReady:O=null,strategy:w="afterInteractive",onError:N,stylesheets:I,...B}=E,{updateScripts:T,scripts:H,getIsSsr:U,appDir:q,nonce:G}=(0,a.useContext)(c.HeadManagerContext),W=(0,a.useRef)(!1);(0,a.useEffect)(()=>{const Z=R||C;W.current||(O&&Z&&h.has(Z)&&O(),W.current=!0)},[O,R,C]);const z=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{z.current||(w==="afterInteractive"?m(E):w==="lazyOnload"&&y(E),z.current=!0)},[E,w]),(w==="beforeInteractive"||w==="worker")&&(T?(H[w]=(H[w]||[]).concat([{id:R,src:C,onLoad:A,onReady:O,onError:N,...B}]),T(H)):U&&U()?h.add(R||C):U&&!U()&&m(E)),q){if(I&&I.forEach(Z=>{i.default.preinit(Z,{as:"style"})}),w==="beforeInteractive")return C?(i.default.preload(C,B.integrity?{as:"script",integrity:B.integrity}:{as:"script"}),a.default.createElement("script",{nonce:G,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([C])+")"}})):(B.dangerouslySetInnerHTML&&(B.children=B.dangerouslySetInnerHTML.__html,delete B.dangerouslySetInnerHTML),a.default.createElement("script",{nonce:G,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...B}])+")"}}));w==="afterInteractive"&&C&&i.default.preload(C,B.integrity?{as:"script",integrity:B.integrity}:{as:"script"})}return null}Object.defineProperty(v,"__nextScript",{value:!0});const S=v;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(yo,yo.exports);var sy=yo.exports,iy=sy;const ay=ar(iy),cy=({children:e,ONE_TRUST:t})=>n.jsxs(n.Fragment,{children:[n.jsx(ay,{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",defer:!0,strategy:"afterInteractive","data-domain-script":t.siteId,type:"text/javascript"}),e]}),ly=ny(()=>Promise.resolve(cy),{ssr:!1}),uy={"snackbar-modifier":"_snackbar-modifier_1va2l_1"},Ct=({size:e,adornment:t,title:r,subtitle:o,supportChildren:s,className:i,Z_INDEX_WAR:a,...c})=>n.jsxs(g.SnackBar.Structure,{...c,size:e,className:g.helpers.classNameConcat(uy["snackbar-modifier"],i),width:360,style:{zIndex:a.snackbar},children:[n.jsx(g.SnackBar.Content,{adornment:t,title:r,subtitle:o}),s&&n.jsx(g.SnackBar.Support,{children:s})]});Ct.displayName="SnackBar";const gd=({children:e,contentState:t,entityKey:r})=>{const{url:o}=t.getEntity(r).getData();return o?n.jsx(Me,{href:o,children:e}):e},dy="_container_1kcm0_20",fy="_lgpd_1kcm0_71",py="_success_1kcm0_205",my="_error_1kcm0_225",Ie={"newsletter-root":"_newsletter-root_1kcm0_1","has-border-top":"_has-border-top_1kcm0_9","has-border-bottom":"_has-border-bottom_1kcm0_12",container:dy,"content-text":"_content-text_1kcm0_39","form-wrapper":"_form-wrapper_1kcm0_43",lgpd:fy,"textfield-structure-modifier":"_textfield-structure-modifier_1kcm0_166","input-wrapper-modifier":"_input-wrapper-modifier_1kcm0_172","support-text-modifier":"_support-text-modifier_1kcm0_176","submit-btn":"_submit-btn_1kcm0_180","loading-spinner":"_loading-spinner_1kcm0_191","terms-and-conditions-unchecked":"_terms-and-conditions-unchecked_1kcm0_197",success:py,"text-structure-modifier":"_text-structure-modifier_1kcm0_210",error:my},yd=({invalid_message:e,master_data_field:t,placeholder:r,required:o=!1,CONSTANTS:s})=>{const{isMobile:i}=be(),{inputsStatus:a,setInputsStatus:c,setFormStatus:l,variant:u}=Mo();return n.jsx(g.TextField.Structure,{className:`${Ie["textfield-structure-modifier"]} ${u}`,input:n.jsx(g.TextField.Input,{mode:"simple",label:r,sizeVariant:i?s.NEWSLETTER_CONFIGS.interactionSizeMob:s.NEWSLETTER_CONFIGS.interactionSizeDesk,name:t,className:`${Ie["input-wrapper-modifier"]} ${u}`,feedback:a[t]==="required"?"error":a[t],onChange:()=>{a[t]!=="none"&&(c(p=>({...p,[t]:"none"})),l("idle"))},required:o}),supportText:a[t]==="error"||a[t]==="required"?n.jsx("div",{className:u==="horizontal"?Ie["support-text-modifier"]:"",children:n.jsx(g.TextField.SupportText,{text:a[t]==="error"?e??s.NEWSLETTER_CONFIGS.messages.invalid_generic:s.NEWSLETTER_CONFIGS.messages.required_field,feedback:"error"})}):null})};yd.displayName="Newsletter.Input";const _d=({title:e,description:t,CONSTANTS:r})=>n.jsx("div",{className:Ie.success,children:n.jsx(g.TextStructure.Root,{adornment:{start:n.jsx(g.Icon,{name:r.ICONS.check_circle,size:"small"})},children:n.jsxs(g.TextStructure.DivWrapper,{className:Ie["text-structure-modifier"],children:[n.jsx("h3",{children:e}),n.jsx("p",{children:t})]})})});_d.displayName="Newsletter.Success";const vd=({formStatus:e,fields:t,CONSTANTS:r})=>n.jsx(n.Fragment,{children:e==="success"?n.jsx(_d,{description:r.NEWSLETTER_CONFIGS.messages.success_description,title:r.NEWSLETTER_CONFIGS.messages.success_title,CONSTANTS:r}):n.jsxs(n.Fragment,{children:[Array.isArray(t)&&t.map((o,s)=>n.jsx(yd,{invalid_message:o.invalid_message,master_data_field:o.master_data_field,placeholder:o.placeholder,required:o.required,type:o.type,CONSTANTS:r},`nt-field-${o.master_data_field}-${s}`)),e==="error"&&n.jsx("div",{className:Ie.error,children:n.jsx("p",{children:r.NEWSLETTER_CONFIGS.form.status.error})})]})});vd.displayName="Newsletter.FormFields";const bd=({formStatus:e,CONSTANTS:t,...r})=>{const{isMobile:o}=be();return n.jsxs(g.Button,{...r,className:Ie["submit-btn"],disabled:e==="success",size:o?"medium":"large",children:[n.jsx("span",{"data-loading":e==="loading","data-label":!0,children:t.NEWSLETTER_CONFIGS.submitLabel}),t.NEWSLETTER_CONFIGS.hasLoadingState&&e==="loading"&&n.jsx(g.Spinner,{className:Ie["loading-spinner"],size:"small"})]})};bd.displayName="Newsletter.SubmitButton";const xd=({checkboxRef:e,formStatus:t,setFormStatus:r,CONSTANTS:o})=>{const s=i=>{i.target.checked?(e.current=!0,t==="unchecked"&&r("idle")):e.current=!1};return n.jsxs(n.Fragment,{children:[n.jsx(g.Checkbox,{adornment:n.jsx(g.Icon,{name:o.ICONS.check,size:"x-small"}),defaultChecked:e.current,disabled:t==="success",name:"terms-and-conditions",label:o.NEWSLETTER_CONFIGS.messages.accept_terms_and_conditions,onChange:s,sizeVariant:"small"}),t==="unchecked"&&n.jsx("div",{className:Ie["terms-and-conditions-unchecked"],children:n.jsx(g.TextStructure.Root,{adornment:{start:n.jsx(g.Icon,{name:o.ICONS.alert_circle,size:"small"})},children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("p",{children:o.NEWSLETTER_CONFIGS.messages.terms_and_conditions_not_accepted})})})})]})};xd.displayName="Newsletter.Terms";const Cd=({formPayloadOptionals:e,masterDataEntity:t,CONSTANTS:r})=>{const{checkboxRef:o,fields:s,formStatus:i,hasTermsAndConditions:a,handleClickToSubmit:c,handleSubmit:l,setFormStatus:u}=Mo();return n.jsxs("form",{className:Ie["form-wrapper"],onSubmit:p=>l(p,e,t),children:[n.jsx(vd,{formStatus:i,fields:s,CONSTANTS:r}),a&&n.jsx(xd,{checkboxRef:o,formStatus:i,setFormStatus:u,CONSTANTS:r}),n.jsx(bd,{formStatus:i,type:"submit",variant:"primary",onClick:c,CONSTANTS:r})]})};Cd.displayName="Newsletter.Form";const hy=["horizontal","vertical"],Sd=({className:e,description:t,formPayloadOptionals:r,fields:o,masterDataEntity:s,masterDataEmailField:i,masterDataNameField:a,lgpd:c,title:l,variant:u,borderTop:p,borderBottom:h,CONSTANTS:d,...f})=>{if(!i||!a)return null;const m=g.helpers.ValidateProp({fieldTypes:hy,property:u,fallback:"horizontal"});return n.jsx(Lc,{fields:o,masterDataEmailField:i,masterDataNameField:a,variant:m,CONSTANTS:d,children:n.jsxs("div",{...f,className:g.helpers.classNameConcat(Ie["newsletter-root"],[p&&Ie["has-border-top"],h&&Ie["has-border-bottom"],e].filter(Boolean)),"data-variant":m,children:[n.jsxs("div",{className:Ie.container,children:[n.jsxs("div",{className:Ie["content-text"],children:[l&&n.jsx("h2",{children:l}),t&&n.jsx("p",{children:t})]}),n.jsx(Cd,{formPayloadOptionals:r,masterDataEntity:s,CONSTANTS:d})]}),n.jsx("div",{className:Ie.lgpd,children:n.jsx("p",{children:d.NEWSLETTER_CONFIGS.messages.lgpd})})]})})};Sd.displayName="Newsletter";const gy={teamComponents:{AddToCart:Do,BackToTop:Np,BuyPackage:vm,Filter:{...He,helpers:Iu},...Vg,FreightCalculation:_h,Header:bu,Link:Ue,Media:ze,PLPNavigation:pt,ProductCard:ve,ProductList:Ih,ProductVariationList:Je,Sort:Ho,UserMenu:qo,Newsletter:Sd},template:{pdp:Yg,minicart:ke},utils:{EventCollector:Qg,ExternalScripts:ly,LinkOrNotLink:Pt,ObserverWrapper:ur,SnackBarComponent:Ct,DraftJsLinkWrapper:gd}},yy=(e,t)=>{const r=e.map(s=>`'${s.source}'`).join(`,
42
42
  `);return`
43
43
  import type { NextRequest } from 'next/server'
44
44
  import { NextResponse } from 'next/server'
@@ -78,4 +78,4 @@ See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-comp
78
78
  ${r}
79
79
  ]
80
80
  }
81
- `},_y=Object.freeze(Object.defineProperty({__proto__:null,generateMiddleware:yy},Symbol.toStringTag,{value:"Module"})),vy={helpers:_y},by=(e,t,r)=>{e.findEntityRanges(o=>{const s=o.getEntity();return s===null?!1:r.getEntity(s).getType()==="LINK"},t)},nr=e=>{const t=new qe.CompositeDecorator([{strategy:by,component:gd}]),r=qe.convertFromRaw(e);return qe.EditorState.createWithContent(r,t)},xy=e=>qe.convertFromRaw(e),or=qe.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),aa="superior-direita",Jt="dentro-inferior-centro",Cy="inferior-direita",no="dentro-inferior-esquerda",jd=e=>({position:e===Jt||e===no?"absolute":"default",shouldRender:[aa,Jt,no].includes(e)?"top":"bottom",alignItems:[Jt].includes(e)?"center":[aa,Cy].includes(e)?"flex-end":"flex-start",left:e===no?"16px":e===Jt?"45%":"unset"}),Sy=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:nr,EXTENDED_BLOCK_RENDER_MAP:or,GET_CONTENT_STATE:xy,controllersPositionsAdapter:jd},Symbol.toStringTag,{value:"Module"})),it=e=>({centro:"center",esquerda:"start",direita:"end"})[e],jy=({expanded:e,content:t})=>n.jsxs("details",{open:e,children:[t.textStructureReduced?n.jsx("summary",{onClick:r=>r.preventDefault(),children:n.jsx(qe.Editor,{editorKey:"draft-editor-1",blockRenderMap:or,editorState:t!=null&&t.textStructureReduced?nr(JSON.parse(t.textStructureReduced)):qe.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):n.jsx(n.Fragment,{}),t.showTextStructureExpander&&t.textStructure?n.jsx(n.Fragment,{children:n.jsx(qe.Editor,{editorKey:"draft-editor-1",blockRenderMap:or,editorState:t.textStructure?nr(JSON.parse(t.textStructure)):qe.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):n.jsx(n.Fragment,{})]}),vo={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},Ey="_textContentWrapper_1bigo_5",wy="_textContentSection_1bigo_13",bo={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:Ey,textContentSection:wy},Ed=({data:e,ICONS:t})=>{var s;const[r,o]=x.useState(!1);return n.jsx(g.TextStructure.Root,{layoutProps:{textRow:{alignContent:it(e.textStructureAlignment),alignItems:it(e.textStructureAlignment)},columnWrapper:{alignContent:it(e.textStructureAlignment),alignItems:it(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?n.jsx(g.Button,{variant:"tertiary",adornment:{end:n.jsx(g.Icon,{name:r?`${t.arrow_up}`:`${t.arrow_down}`})},onClick:()=>o(i=>!i),size:"small",children:r?"Ver Menos":"Ver Mais"}):n.jsx(n.Fragment,{})},children:n.jsxs(g.Utils.Column,{className:bo.textContentWrapper,style:{alignItems:it(e.textStructureAlignment)},children:[n.jsx(g.TextStructure.DivWrapper,{style:{textAlign:it(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:vo["draftjs-text-modifier"],children:e.textStructureReduced?n.jsx(jy,{content:e,expanded:r}):n.jsx(n.Fragment,{})}),e.textStructureButtonLabel?n.jsx(Ue,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:bo["link-modifier"],adornments:(s=e.textStructureButtonIcon)!=null&&s.length&&e.enableIcon?{end:n.jsx(g.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):n.jsx(n.Fragment,{})]})})},Ry=e=>({centro:{verticalAlignment:"center",horizontalAlignment:"center"},"centro-esquerda":{verticalAlignment:"center",horizontalAlignment:"start"},"centro-direita":{verticalAlignment:"center",horizontalAlignment:"end"},"superior-centro":{verticalAlignment:"start",horizontalAlignment:"center"},"superior-esquerda":{verticalAlignment:"start",horizontalAlignment:"start"},"superior-direita":{verticalAlignment:"start",horizontalAlignment:"end"},"inferior-centro":{verticalAlignment:"end",horizontalAlignment:"center"},"inferior-esquerda":{verticalAlignment:"end",horizontalAlignment:"start"},"inferior-direita":{verticalAlignment:"end",horizontalAlignment:"end"}})[e],ca=e=>({centro:"center",esquerda:"start",direita:"end"})[e],xo=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...o})=>{const[s,i]=x.useState(kc(new ts.TZDate(Date.now(),r),new ts.TZDate(e,r))),[a,c]=x.useState(!1);x.useEffect(()=>{a||c(!0);const u=setInterval(()=>{if(s<=0){clearInterval(u);return}i(s-1e3)},1e3);return()=>{clearInterval(u)}},[s,i,a]);const l=bt(s,"days");return a&&s>0?n.jsxs(g.Timer.Root,{...o,children:[l?n.jsxs(n.Fragment,{children:[n.jsx(g.Timer.Digit,{label:"dias",value:l}),n.jsx(g.Timer.Separator,{})]}):null,n.jsx(g.Timer.Digit,{label:"horas",value:bt(s,"hours")}),n.jsx(g.Timer.Separator,{}),n.jsx(g.Timer.Digit,{label:"min",value:bt(s,"minutes")}),n.jsx(g.Timer.Separator,{}),n.jsx(g.Timer.Digit,{label:"segs",value:bt(s),suppressHydrationWarning:!0})]}):n.jsx(n.Fragment,{})},la={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},ua=({data:e,videoUrl:t,priority:r,videoRef:o,ICONS:s,...i})=>{const{video:a,image:c,imageHref:l,imageOpacity:u,altImage:p,backgroundColor:h,position:d,contentAlignment:f,showTimer:m,contentOrder:_,timerMode:y,timerEnd:b,timerInit:j,textStructure:v,textStructureReduced:S}=e.banner,E=(l==null?void 0:l.trim())||(c==null?void 0:c.trim())||null,{nextimage:R}=Re();return n.jsxs(g.Banner.Container,{...i,children:[n.jsxs(g.Banner.ImageWrapper,{className:la["banner-image-wrapper-modifier"],style:u?{background:h}:void 0,children:[a&&n.jsx(ze.Video,{videoRef:o,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),E&&!(a!=null&&a.length)&&n.jsx(R,{src:E,width:"1920",height:"1080",alt:p??c??"",...r?{priority:r}:{},style:u?{opacity:"0"}:void 0}),!c&&!(a!=null&&a.length)&&n.jsx("div",{style:{background:h}})]}),m||S||v?n.jsx(g.Banner.Slot,{...Ry(d??"centro"),className:la["content-modifier"],style:{textAlign:ca(f)},children:n.jsxs(g.Utils.Column,{gap:"16px",alignItems:ca(f),children:[m&&_==="timer-first"&&n.jsx(xo,{mode:y??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:j?new Date(j):new Date}),n.jsx(Ed,{data:e.banner,ICONS:s}),m&&_!=="timer-first"&&n.jsx(xo,{mode:y??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:j?new Date(j):new Date})]})}):n.jsx(n.Fragment,{})]})},es=({data:e,className:t,priority:r,creative:o,...s})=>{const{handleSelectPromotionEvent:i,currentLocalRef:a}=ge(),{banner:{promotion_name:c},index:l,componentIndex:u}=e,p=typeof l=="number"?`:${l+1}`:"",h={creative_name:o,creative_slot:`${o}-${a.current}:${u+1}${p}`,promotion_id:e.banner.href,promotion_name:c},d=x.useRef(null),f=x.useMemo(()=>{var _;if((_=e.banner.video)!=null&&_.includes("player.vimeo")){const y=e.banner.video.split("?")[1],b=y==null?void 0:y.split("&"),j=b==null?void 0:b.filter(S=>S.includes("loc")||S.includes("signature")||S.includes("user_id")),v=j==null?void 0:j.join("&");return`${e.banner.video.split("?")[0]}?${v}`}return e.banner.video},[e]),m=()=>{var _;(_=d.current)!=null&&_.paused&&d.current.play()};return n.jsx(dr,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...h,index:l}}}},observerOptions:{delay:100,...f&&{threshold:.1}},...f&&{callBackWhenVisible:m},children:e.banner.href?n.jsx(Me,{href:e.banner.href,onClick:()=>{i({updatePromotionRef:!0,promotion:h,index:l})},children:n.jsx(ua,{data:e,videoUrl:f,priority:r,videoRef:d,...s})}):n.jsx(ua,{data:e,videoUrl:f,priority:r,videoRef:d,...s})})},wd=e=>n.jsx(es,{...e}),Co={"custom-carousel":"_custom-carousel_t5fgp_1","carrousel-arrows-display-controller":"_carrousel-arrows-display-controller_t5fgp_10","carousel-controllers-modifier":"_carousel-controllers-modifier_t5fgp_19"};function Ay(e,t){const{mediatorRef:r}=be();x.useEffect(()=>r.current.subscribe(e,t),[e,t])}const da=({prevOnClick:e,nextOnClick:t,onBulletClick:r,currentPage:o,totalPages:s,position:i,hideControllers:a,left:c,isFirst:l,ICONS:u})=>{const[p,h]=x.useState("default");return Ay("herobanner:change_controllers_variant",d=>{l&&h(d.includes("white")?"inverse":"default")}),n.jsxs(g.Carousel.Controller,{className:Co["carousel-controllers-modifier"],position:i??"absolute","data-hide-controllers":a,bottom:"16px",top:"unset",left:c,children:[n.jsxs(g.Carousel.Arrows,{className:Co["carrousel-arrows-display-controller"],children:[n.jsx(g.Button,{variant:"tertiary",onClick:e,adornment:{start:n.jsx(g.Icon,{name:u.arrow_left})},mode:p}),n.jsx(g.Button,{variant:"tertiary",onClick:t,adornment:{start:n.jsx(g.Icon,{name:u.arrow_right})},mode:p})]}),n.jsx(g.Carousel.Bullets,{page:o,total:s,onBulletClick:r,mode:p})]})},Py=({children:e,data:t,banner:r,...o})=>{const{mediatorRef:s}=be();return t.data.first?n.jsx(dr,{observerOptions:{threshold:.51},stopOnIntersection:!1,callBackWhenVisible:()=>{s.current.publish("header:change_variant",r.headerVariant)},...o,children:e}):n.jsx(n.Fragment,{children:e})},Iy=({data:e,ICONS:t})=>{var h;const{initialize:r,pagination:o,controller:s,itemsStyles:i}=g.Carousel.useCarousel({gap:e.data.config.gap,itemsPerPage:e.data.config.slidesPerView,direction:"row"}),a=x.useRef(void 0),c=x.useMemo(()=>jd(e.data.config.controllerPosition??"dentro-inferior-centro"),[e]),l=x.useCallback(()=>{e.data.config.slideDuration&&o.totalPages>1&&(a.current=setInterval(()=>{s==null||s.nextPage()},e.data.config.slideDuration*1e3))},[s,e.data.config.slideDuration,o.totalPages]),u=x.useCallback(d=>{clearInterval(a.current),l(),d()},[l]),p=x.useMemo(()=>{var d;return{nextOnClick:()=>u(()=>s==null?void 0:s.nextPage()),prevOnClick:()=>u(()=>s==null?void 0:s.prevPage()),onBulletClick:f=>u(()=>s==null?void 0:s.navigateTo(f)),currentPage:o.currentPage,totalPages:o.totalPages,position:c.position,hideControllers:((d=e.data.config)==null?void 0:d.hideControllers)??!1,left:c.left}},[o.currentPage,o.totalPages,c.position,e.data.config.hideControllers,u,s]);return x.useEffect(()=>(l(),()=>clearInterval(a.current)),[l]),n.jsxs(g.Carousel.Root,{innerRef:d=>{r(d)},className:g.helpers.classNameConcat(Co["custom-carousel"],e.data.config.fullWidth?"":"common-section"),"data-infinity-border":!0,style:{...e.data.config.marginTop!=="0px"&&{marginTop:`-${e.data.config.marginTop}`},...e.data.config.marginBottom!=="0px"&&{marginBottom:`-${e.data.config.marginBottom}`}},children:[c.shouldRender==="top"&&o.totalPages>1?n.jsx(da,{ICONS:t,...p,isFirst:e.data.first}):n.jsx(n.Fragment,{}),n.jsx(g.Carousel.Body,{children:(h=e==null?void 0:e.data)==null?void 0:h.banners.map((d,f)=>n.jsx(g.Carousel.Item,{style:i,children:n.jsx(Py,{data:e,banner:d,children:n.jsx(es,{ICONS:t,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,data:{banner:d,index:f,componentIndex:e.data.componentIndex},creative:"banner-carousel",...e.data.first&&f===0&&{priority:!0}})})},`hero-banner-item-${f}`))}),c.shouldRender==="bottom"&&o.totalPages>1?n.jsx(da,{ICONS:t,...p}):n.jsx(n.Fragment,{})]})},Ny={Banner:wd},_t={"row-controller-modifier":"_row-controller-modifier_co4wb_1","carousel-title-modifier":"_carousel-title-modifier_co4wb_18","carousel-modifier":"_carousel-modifier_co4wb_22","card-modifier":"_card-modifier_co4wb_26"},Ty=({data:e,CONSTANTS:t})=>{var u;const{isMobile:r}=be(),o=e.config.size??"medium",s=e.config.disableCarouselMobile??!1,{initialize:i,pagination:a,controller:c,itemsStyles:l}=g.Carousel.useCarousel({itemsPerPage:r?e==null?void 0:e.config.slidesPerViewMobile:(u=e==null?void 0:e.config)==null?void 0:u.slidesPerView,gap:r?e.config.gapMobile:e.config.gap,direction:r&&s?"column":"row"});return n.jsx(g.Utils.Column,{style:{width:o==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:n.jsxs(g.Carousel.Root,{innerRef:p=>{i(p)},className:g.helpers.classNameConcat(_t["carousel-modifier"],"common-section"),children:[o==="medium"?n.jsxs(g.TextStructure.Root,{children:[n.jsx(g.TextStructure.DivWrapper,{className:_t["carousel-title-modifier"],children:n.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),r&&a.totalPages>1?n.jsx(g.Carousel.Controller,{className:_t["row-controller-modifier"],children:n.jsxs(g.Carousel.Arrows,{children:[n.jsx(g.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(g.Icon,{name:t.ICONS.arrow_left})}}),n.jsx(g.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(g.Icon,{name:t.ICONS.arrow_right})}})]})}):n.jsx(n.Fragment,{})]}):n.jsx(n.Fragment,{}),n.jsx(g.Carousel.Body,{children:e.bennefit.map((p,h)=>n.jsx(g.Carousel.Item,{className:_t["card-modifier"],style:l,children:n.jsx(g.Card,{stroke:!0,padding:"small",children:n.jsx(g.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[o==="medium"?"top":"start"]:n.jsx(g.Icon,{name:p.icon,size:o==="medium"?"medium":"small"})},children:n.jsxs(g.TextStructure.DivWrapper,{alignItems:"start",children:[n.jsx("h3",{className:"typography-style-body-md",children:p.title}),p.subtitle&&p.subtitle.length?n.jsx("p",{className:"typography-style-body-xs",children:p.subtitle}):n.jsx(n.Fragment,{})]})})})},`bennefit=${h}`))}),!r&&a.totalPages>1?n.jsxs(g.Carousel.Controller,{className:_t["row-controller-modifier"],children:[n.jsxs(g.Carousel.Arrows,{children:[n.jsx(g.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(g.Icon,{name:t.ICONS.arrow_left})}}),n.jsx(g.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(g.Icon,{name:t.ICONS.arrow_right})}})]}),n.jsx(g.Carousel.Bullets,{page:a.currentPage,total:a.totalPages,onBulletClick:p=>c==null?void 0:c.navigateTo(p)})]}):n.jsx(n.Fragment,{})]})})},Oy=({data:e,ICONS:t})=>n.jsx("div",{className:g.helpers.classNameConcat(bo.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:n.jsx(Ed,{data:e,ICONS:t})}),fa={"accordion-modifier":"_accordion-modifier_1we16_1","accordion-body-modifier":"_accordion-body-modifier_1we16_7"},ky=({data:e,id:t,ICONS:r})=>{var i;const[o,s]=x.useState([]);return n.jsxs(g.Utils.Column,{gap:"var(--gap-vertical-sm)",children:[e.titleAccordion?n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("h2",{className:g.helpers.classNameConcat("typography-style-heading-sm","common-section"),style:{fontWeight:500},children:e.titleAccordion})})}):n.jsx(n.Fragment,{}),(i=e.accordions)==null?void 0:i.map((a,c)=>n.jsxs(g.Accordion.Wrapper,{className:fa["accordion-modifier"],children:[n.jsx(g.Accordion.Header,{id:`${t}-text-accordion-${c}`,openIndicator:n.jsx(g.Icon,{name:r.arrow_down}),closeIndicator:n.jsx(g.Icon,{name:r.arrow_up}),startOpen:o.includes(c),onClick:()=>s(l=>l.includes(c)?l.filter(u=>u!==c):[...l,c]),children:n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{className:vo["draftjs-text-modifier"],children:[n.jsx("h3",{className:"typography-style-body-md-strong",children:a.title}),a.subtitle&&a.subtitle.length?n.jsx("h2",{children:a.subtitle}):n.jsx(n.Fragment,{})]})})}),n.jsx(g.Accordion.Body,{children:n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{className:g.helpers.classNameConcat(fa["accordion-body-modifier"],vo["draftjs-text-modifier"]),children:n.jsx(qe.Editor,{editorKey:`${t}-editor-${c}`,blockRenderMap:or,editorState:a.text?nr(JSON.parse(a.text)):qe.EditorState.createEmpty(),onChange:()=>null})})})})]},`${t}-accordion-${c}-${o.includes(c)}`))]})},Rd=x.createContext({}),My=({data:e,children:t,...r})=>{var m,_,y,b,j,v,S,E,R,C,A,O,w;const[o,s]=x.useState(!0),{initialize:i,controller:a,itemsStyles:c}=g.Carousel.useCarousel({gap:0,itemsPerPage:1}),l={slideTranstionTimer:(_=(m=e==null?void 0:e.staticConfig)==null?void 0:m.staticConfig)==null?void 0:_.slideTranstionTimer,showCarouselArrows:(b=(y=e==null?void 0:e.staticConfig)==null?void 0:y.staticConfig)==null?void 0:b.showCarouselArrows,hasCloseBtn:(v=(j=e==null?void 0:e.staticConfig)==null?void 0:j.staticConfig)==null?void 0:v.hasCloseBtn,backgroundColor:(E=(S=e==null?void 0:e.staticConfig)==null?void 0:S.staticConfig)==null?void 0:E.backgroundColor,textColorVariant:(C=(R=e==null?void 0:e.staticConfig)==null?void 0:R.staticConfig)==null?void 0:C.textColorVariant,content:((O=(A=e==null?void 0:e.content)==null?void 0:A.content)==null?void 0:O.items)??[]},u=(w=l.content)==null?void 0:w.filter(N=>!N.countDownEndDate||new Date(N.countDownEndDate)>new Date),p=u.length>1,h={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{s(!1)},f=g.helpers.ValidateProp({fieldTypes:lt.Mode,property:l.textColorVariant,fallback:"default"});return n.jsx(Rd.Provider,{value:{isOpen:o,setIsOpen:s,hasCarousel:p,backgroundStyle:h,handleCloseTipbar:d,mode:f,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:i,controller:a,itemsStyles:c},...r},children:t})},We=()=>x.useContext(Rd),Ly=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=We();return n.jsx(xo,{dateEnd:new Date(e),TIME_ZONE:r,...t})},Dy="_tipbar_bt3p0_1",$y="_tipbar__carousel_bt3p0_15",kt={tipbar:Dy,tipbar__carousel:$y,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},By=({coupon:e,feedbackTitle:t,feedbackDescription:r,...o})=>{const{CONSTANTS:s}=We(),{addCouponSeller:i,cartStore:a}=we(),[c,l]=x.useState({status:!1,showSnackBar:!1}),[u,p]=x.useState(!1),[h,d]=x.useState(!1),f=async()=>{if(!a.items.length){d(!0);return}(await i(e,"coupon")).code===200?l({status:!0,showSnackBar:!0}):p(!0)};return x.useEffect(()=>{c.showSnackBar&&setTimeout(()=>{l(m=>({...m,showSnackBar:!1}))},s.TIPBAR_CONFIGS.snackbar_timeout)},[c.showSnackBar]),x.useEffect(()=>{u&&setTimeout(()=>{p(!1)},s.TIPBAR_CONFIGS.snackbar_timeout)},[u]),x.useEffect(()=>{h&&setTimeout(()=>{d(!1)},s.TIPBAR_CONFIGS.snackbar_timeout)},[h]),n.jsxs(n.Fragment,{children:[n.jsx(g.Button,{...o,onClick:f,disabled:c.status,className:kt["tipbar-item__coupon"],children:c.status?`${s.TIPBAR_CONFIGS.coupon_applied_message}`:`${s.TIPBAR_CONFIGS.coupon_default_message}`}),c.showSnackBar&&(t||r)&&n.jsx(Ct,{title:t,subtitle:r,Z_INDEX_WAR:s.Z_INDEX_WAR},`feedback-coupon-${e}`),u&&n.jsx(Ct,{title:s.TIPBAR_CONFIGS.coupon_error_title,subtitle:s.TIPBAR_CONFIGS.coupon_error_message,Z_INDEX_WAR:s.Z_INDEX_WAR},`error-coupon-${e}`),h&&n.jsx(Ct,{title:s.TIPBAR_CONFIGS.coupon_cart_empty_title,subtitle:s.TIPBAR_CONFIGS.coupon_cart_empty_message,Z_INDEX_WAR:s.Z_INDEX_WAR},`error-cart-empty-${e}`)]})},zy=({title:e,description:t,style:r,mode:o,className:s})=>n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{mode:o,className:s,children:[e&&n.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),t&&n.jsx("p",{className:"typography-style-caption",style:r,children:t})]})}),Fy=({coupon:e,...t})=>{const{CONSTANTS:r}=We();return n.jsx(g.Copy,{...t,iconCopy:r.ICONS.copy,iconSuccess:r.ICONS.check,children:e})},qy=({staticZone:e,type:t,className:r,description:o,title:s})=>{const{mode:i}=We();if(t==="countdown")return n.jsx(Ly,{dateEnd:e.countDownEndDate,size:"x-small",mode:i});if(t==="coupon"){const a=g.helpers.ValidateProp({fieldTypes:lt.Mode,property:e.couponButtonMode,fallback:"default"}),c=g.helpers.ValidateProp({fieldTypes:lt.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?n.jsx(By,{coupon:e.coupon,mode:a,variant:c,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}if(t==="copy"){const a=g.helpers.ValidateProp({fieldTypes:lt.Mode,property:e.couponButtonMode,fallback:"default"});return e.coupon?n.jsx(Fy,{coupon:e.coupon,mode:a}):null}return n.jsx(zy,{title:s,description:o,mode:i,className:r})},pa=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=We();return n.jsx(g.Button,{title:"fechar tipbar",className:kt["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:n.jsx(g.Icon,{name:r.ICONS.close})}})},Hy=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:o})=>{const{carouselProps:s,CONSTANTS:i}=We(),a=x.useRef(null),c=(u,p)=>{var h,d;u.stopPropagation(),u.preventDefault(),p==="prev"?(h=s.controller)==null||h.prevPage():(d=s.controller)==null||d.nextPage(),a.current&&(clearInterval(a.current),l())},l=x.useCallback(()=>{if(o&&s.controller){const u=setInterval(()=>{var p;(p=s.controller)==null||p.nextPage()},o);a.current=u}},[o,s]);return x.useEffect(()=>(l(),()=>{a.current&&clearInterval(a.current)}),[o,l]),n.jsxs(g.Carousel.Root,{innerRef:u=>{s.initialize(u)},className:kt.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&n.jsx(g.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"prev"),adornment:{start:n.jsx(g.Icon,{name:i.ICONS.arrow_left})}}),n.jsx(g.Carousel.Body,{children:e}),r&&n.jsx(g.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"next"),adornment:{start:n.jsx(g.Icon,{name:i.ICONS.arrow_right})}})]})},Uy=({children:e,className:t})=>{const{hasCarousel:r,mode:o,hasCloseBtn:s,backgroundStyle:i,showCarouselArrows:a,slideTranstionTimer:c,handleCloseTipbar:l}=We(),u=r&&a;return n.jsx("div",{style:i,"data-hasclosebtn":s,className:g.helpers.classNameConcat(kt.tipbar,t),children:r?n.jsxs(n.Fragment,{children:[n.jsx(Hy,{mode:o,showCarouselArrows:u,slideTranstionTimer:c,children:e}),s&&n.jsx(pa,{handleCloseTipbar:l,showCarouselArrows:u,mode:o})]}):n.jsxs(n.Fragment,{children:[e,s&&n.jsx(pa,{handleCloseTipbar:l,mode:o})]})})},Wy=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:o,carouselProps:s}=We(),i=n.jsx("div",{...r,className:kt["tipbar-item"],children:e});return o?n.jsx(g.Carousel.Item,{style:s.itemsStyles,children:i}):i},Ad=({className:e})=>{const{isOpen:t,slices:r}=We();return r.length&&t?n.jsx(Uy,{children:r.map((o,s)=>{var i;return n.jsx(n.Fragment,{children:n.jsx(Pt,{href:o.link,children:n.jsx(Wy,{highlightFirstSection:o.highlightFirstSection,"data-justifyhighlightedsection":o.horizontalAlignHighlightedSection?o.horizontalAlignHighlightedSection:"center",children:o&&((i=o==null?void 0:o.items)!=null&&i.length)?o.items.map((a,c)=>n.jsx(qy,{staticZone:o,type:a.type,title:a.title,description:a.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${s}`)})}):null};Ad.displayName="TipBar.Root";const So=({className:e,...t})=>n.jsx(My,{...t,children:n.jsx(Ad,{className:e})});So.displayName="TipBar";const Vy=({CONSTANTS:e,data:t})=>{const{pathname:r}=Re(),{tipbarRef:o}=je(),s=c=>{const l=t==null?void 0:t.find(u=>{var p,h,d,f,m;return((h=(p=u.staticConfig)==null?void 0:p.staticConfig)==null?void 0:h.deviceType)===c&&((m=(f=(d=u.staticConfig)==null?void 0:d.staticConfig)==null?void 0:f.paths)==null?void 0:m.includes(r))});return l||(t==null?void 0:t.find(u=>{var p,h,d,f,m,_;return((h=(p=u.staticConfig)==null?void 0:p.staticConfig)==null?void 0:h.deviceType)===c&&(!((f=(d=u.staticConfig)==null?void 0:d.staticConfig)!=null&&f.paths)||((_=(m=u.staticConfig)==null?void 0:m.staticConfig)==null?void 0:_.paths.length)===0)}))},i=s("desktop"),a=s("mobile");return n.jsxs("div",{ref:o,className:ie.responsive["responsive-flex"],children:[a&&n.jsx("div",{className:ie.responsive["responsive-mobile-flex"],children:n.jsx(So,{data:a,CONSTANTS:e})}),i&&n.jsx("div",{className:ie.responsive["responsive-desktop-flex"],children:n.jsx(So,{data:i,CONSTANTS:e})})]})},ma={"card-image-wrapper":"_card-image-wrapper_10mul_1","card-image-container":"_card-image-container_10mul_9"},Gy=e=>{const{nextimage:t}=Re();return n.jsx(n.Fragment,{children:e.data.banners.map((r,o)=>n.jsx("div",{className:ma["card-image-wrapper"],children:n.jsx("div",{className:ma["card-image-container"],children:n.jsx(t,{src:r.image,alt:r.altImage?r.altImage:"Banner Coleção",width:500,height:600})})},o))})},Ky=({SectionZone:e,CMS_PROJECT_NAME:t,storeId:r,previewId:o})=>{const[s,i]=x.useState();return x.useEffect(()=>{s||ie.getContentType({contentType:"search",CMS_PROJECT_NAME:t,storeId:r,previewId:o}).then(a=>{i(a.data[0])})},[]),n.jsx(e,{data:s??[]})},Xy=({data:{componentIndex:e,...t},ClientNewsletterSection:r})=>n.jsx(r,{...t}),Yy={Banner:Ny,BannerSection:es,BennefitsBarSection:Ty,SingleBannerSection:wd,TextContentSection:Oy,BannerCarousel:Iy,TextAccordionSection:ky,TipbarScreening:Vy,ImageGrid:Gy,SearchPageScreening:ie.SearchPageScreening,SearchContent:Ky,NewsletterSection:Xy},Qy={Components:Yy,helpers:Sy};exports.cms=Qy;exports.contexts=xp;exports.data=Do;exports.layout=gy;exports.scripts=vy;
81
+ `},_y=Object.freeze(Object.defineProperty({__proto__:null,generateMiddleware:yy},Symbol.toStringTag,{value:"Module"})),vy={helpers:_y},by=(e,t,r)=>{e.findEntityRanges(o=>{const s=o.getEntity();return s===null?!1:r.getEntity(s).getType()==="LINK"},t)},rr=e=>{const t=new qe.CompositeDecorator([{strategy:by,component:gd}]),r=qe.convertFromRaw(e);return qe.EditorState.createWithContent(r,t)},xy=e=>qe.convertFromRaw(e),nr=qe.DefaultDraftBlockRenderMap.set("unstyled",{element:"div",aliasedElements:["div"]}),ia="superior-direita",Jt="dentro-inferior-centro",Cy="inferior-direita",ro="dentro-inferior-esquerda",jd=e=>({position:e===Jt||e===ro?"absolute":"default",shouldRender:[ia,Jt,ro].includes(e)?"top":"bottom",alignItems:[Jt].includes(e)?"center":[ia,Cy].includes(e)?"flex-end":"flex-start",left:e===ro?"16px":e===Jt?"45%":"unset"}),Sy=Object.freeze(Object.defineProperty({__proto__:null,CREATE_CONTENT:rr,EXTENDED_BLOCK_RENDER_MAP:nr,GET_CONTENT_STATE:xy,controllersPositionsAdapter:jd},Symbol.toStringTag,{value:"Module"})),it=e=>({centro:"center",esquerda:"start",direita:"end"})[e],jy=({expanded:e,content:t})=>n.jsxs("details",{open:e,children:[t.textStructureReduced?n.jsx("summary",{onClick:r=>r.preventDefault(),children:n.jsx(qe.Editor,{editorKey:"draft-editor-1",blockRenderMap:nr,editorState:t!=null&&t.textStructureReduced?rr(JSON.parse(t.textStructureReduced)):qe.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):n.jsx(n.Fragment,{}),t.showTextStructureExpander&&t.textStructure?n.jsx(n.Fragment,{children:n.jsx(qe.Editor,{editorKey:"draft-editor-1",blockRenderMap:nr,editorState:t.textStructure?rr(JSON.parse(t.textStructure)):qe.EditorState.createEmpty(),onChange:()=>null,readOnly:!0})}):n.jsx(n.Fragment,{})]}),_o={"draftjs-text-modifier":"_draftjs-text-modifier_1itwm_2"},Ey="_textContentWrapper_1bigo_5",wy="_textContentSection_1bigo_13",vo={"link-modifier":"_link-modifier_1bigo_1",textContentWrapper:Ey,textContentSection:wy},Ed=({data:e,ICONS:t})=>{var s;const[r,o]=x.useState(!1);return n.jsx(g.TextStructure.Root,{layoutProps:{textRow:{alignContent:it(e.textStructureAlignment),alignItems:it(e.textStructureAlignment)},columnWrapper:{alignContent:it(e.textStructureAlignment),alignItems:it(e.textStructureAlignment)}},adornment:{bottom:e.showTextStructureExpander&&e.textStructure?n.jsx(g.Button,{variant:"tertiary",adornment:{end:n.jsx(g.Icon,{name:r?`${t.arrow_up}`:`${t.arrow_down}`})},onClick:()=>o(i=>!i),size:"small",children:r?"Ver Menos":"Ver Mais"}):n.jsx(n.Fragment,{})},children:n.jsxs(g.Utils.Column,{className:vo.textContentWrapper,style:{alignItems:it(e.textStructureAlignment)},children:[n.jsx(g.TextStructure.DivWrapper,{style:{textAlign:it(e.textStructureAlignment)},mode:e.textStructureMode??"default",className:_o["draftjs-text-modifier"],children:e.textStructureReduced?n.jsx(jy,{content:e,expanded:r}):n.jsx(n.Fragment,{})}),e.textStructureButtonLabel?n.jsx(Ue,{mode:e.textStructureMode??"default",href:e.textStructureButtonHref??"#",size:e.textStructureButtonSize,className:vo["link-modifier"],adornments:(s=e.textStructureButtonIcon)!=null&&s.length&&e.enableIcon?{end:n.jsx(g.Icon,{name:e.textStructureButtonIcon})}:void 0,children:e.textStructureButtonLabel}):n.jsx(n.Fragment,{})]})})},Ry=e=>({centro:{verticalAlignment:"center",horizontalAlignment:"center"},"centro-esquerda":{verticalAlignment:"center",horizontalAlignment:"start"},"centro-direita":{verticalAlignment:"center",horizontalAlignment:"end"},"superior-centro":{verticalAlignment:"start",horizontalAlignment:"center"},"superior-esquerda":{verticalAlignment:"start",horizontalAlignment:"start"},"superior-direita":{verticalAlignment:"start",horizontalAlignment:"end"},"inferior-centro":{verticalAlignment:"end",horizontalAlignment:"center"},"inferior-esquerda":{verticalAlignment:"end",horizontalAlignment:"start"},"inferior-direita":{verticalAlignment:"end",horizontalAlignment:"end"}})[e],aa=e=>({centro:"center",esquerda:"start",direita:"end"})[e],bo=({dateEnd:e,dateInit:t,TIME_ZONE:r="America/Sao_Paulo",...o})=>{const[s,i]=x.useState(Oc(new es.TZDate(Date.now(),r),new es.TZDate(e,r))),[a,c]=x.useState(!1);x.useEffect(()=>{a||c(!0);const u=setInterval(()=>{if(s<=0){clearInterval(u);return}i(s-1e3)},1e3);return()=>{clearInterval(u)}},[s,i,a]);const l=bt(s,"days");return a&&s>0?n.jsxs(g.Timer.Root,{...o,children:[l?n.jsxs(n.Fragment,{children:[n.jsx(g.Timer.Digit,{label:"dias",value:l}),n.jsx(g.Timer.Separator,{})]}):null,n.jsx(g.Timer.Digit,{label:"horas",value:bt(s,"hours")}),n.jsx(g.Timer.Separator,{}),n.jsx(g.Timer.Digit,{label:"min",value:bt(s,"minutes")}),n.jsx(g.Timer.Separator,{}),n.jsx(g.Timer.Digit,{label:"segs",value:bt(s),suppressHydrationWarning:!0})]}):n.jsx(n.Fragment,{})},ca={"content-modifier":"_content-modifier_16y4u_5","banner-image-wrapper-modifier":"_banner-image-wrapper-modifier_16y4u_13"},la=({data:e,videoUrl:t,priority:r,videoRef:o,ICONS:s,...i})=>{const{video:a,image:c,imageHref:l,imageOpacity:u,altImage:p,backgroundColor:h,position:d,contentAlignment:f,showTimer:m,contentOrder:_,timerMode:y,timerEnd:b,timerInit:j,textStructure:v,textStructureReduced:S}=e.banner,E=(l==null?void 0:l.trim())||(c==null?void 0:c.trim())||null,{nextimage:R}=Re();return n.jsxs(g.Banner.Container,{...i,children:[n.jsxs(g.Banner.ImageWrapper,{className:ca["banner-image-wrapper-modifier"],style:u?{background:h}:void 0,children:[a&&n.jsx(ze.Video,{videoRef:o,src:t,autoPlay:r,loop:!0,playsInline:!0,muted:!0}),E&&!(a!=null&&a.length)&&n.jsx(R,{src:E,width:"1920",height:"1080",alt:p??c??"",...r?{priority:r}:{},style:u?{opacity:"0"}:void 0}),!c&&!(a!=null&&a.length)&&n.jsx("div",{style:{background:h}})]}),m||S||v?n.jsx(g.Banner.Slot,{...Ry(d??"centro"),className:ca["content-modifier"],style:{textAlign:aa(f)},children:n.jsxs(g.Utils.Column,{gap:"16px",alignItems:aa(f),children:[m&&_==="timer-first"&&n.jsx(bo,{mode:y??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:j?new Date(j):new Date}),n.jsx(Ed,{data:e.banner,ICONS:s}),m&&_!=="timer-first"&&n.jsx(bo,{mode:y??"default",size:"small",dateEnd:b?new Date(b):new Date,dateInit:j?new Date(j):new Date})]})}):n.jsx(n.Fragment,{})]})},Jo=({data:e,className:t,priority:r,creative:o,...s})=>{const{handleSelectPromotionEvent:i,currentLocalRef:a}=ge(),{banner:{promotion_name:c},index:l,componentIndex:u}=e,p=typeof l=="number"?`:${l+1}`:"",h={creative_name:o,creative_slot:`${o}-${a.current}:${u+1}${p}`,promotion_id:e.banner.href,promotion_name:c},d=x.useRef(null),f=x.useMemo(()=>{var _;if((_=e.banner.video)!=null&&_.includes("player.vimeo")){const y=e.banner.video.split("?")[1],b=y==null?void 0:y.split("&"),j=b==null?void 0:b.filter(S=>S.includes("loc")||S.includes("signature")||S.includes("user_id")),v=j==null?void 0:j.join("&");return`${e.banner.video.split("?")[0]}?${v}`}return e.banner.video},[e]),m=()=>{var _;(_=d.current)!=null&&_.paused&&d.current.play()};return n.jsx(ur,{eventData:{functionKey:"readyEvents",data:{event:"view_promotion",readyData:{ecommerce:{...h,index:l}}}},observerOptions:{delay:100,...f&&{threshold:.1}},...f&&{callBackWhenVisible:m},children:e.banner.href?n.jsx(Me,{href:e.banner.href,onClick:()=>{i({updatePromotionRef:!0,promotion:h,index:l})},children:n.jsx(la,{data:e,videoUrl:f,priority:r,videoRef:d,...s})}):n.jsx(la,{data:e,videoUrl:f,priority:r,videoRef:d,...s})})},wd=e=>n.jsx(Jo,{...e}),xo={"custom-carousel":"_custom-carousel_t5fgp_1","carrousel-arrows-display-controller":"_carrousel-arrows-display-controller_t5fgp_10","carousel-controllers-modifier":"_carousel-controllers-modifier_t5fgp_19"};function Ay(e,t){const{mediatorRef:r}=be();x.useEffect(()=>r.current.subscribe(e,t),[e,t])}const ua=({prevOnClick:e,nextOnClick:t,onBulletClick:r,currentPage:o,totalPages:s,position:i,hideControllers:a,left:c,isFirst:l,ICONS:u})=>{const[p,h]=x.useState("default");return Ay("herobanner:change_controllers_variant",d=>{l&&h(d.includes("white")?"inverse":"default")}),n.jsxs(g.Carousel.Controller,{className:xo["carousel-controllers-modifier"],position:i??"absolute","data-hide-controllers":a,bottom:"16px",top:"unset",left:c,children:[n.jsxs(g.Carousel.Arrows,{className:xo["carrousel-arrows-display-controller"],children:[n.jsx(g.Button,{variant:"tertiary",onClick:e,adornment:{start:n.jsx(g.Icon,{name:u.arrow_left})},mode:p}),n.jsx(g.Button,{variant:"tertiary",onClick:t,adornment:{start:n.jsx(g.Icon,{name:u.arrow_right})},mode:p})]}),n.jsx(g.Carousel.Bullets,{page:o,total:s,onBulletClick:r,mode:p})]})},Py=({children:e,data:t,banner:r,...o})=>{const{mediatorRef:s}=be();return t.data.first?n.jsx(ur,{observerOptions:{threshold:.51},stopOnIntersection:!1,callBackWhenVisible:()=>{s.current.publish("header:change_variant",r.headerVariant)},...o,children:e}):n.jsx(n.Fragment,{children:e})},Iy=({data:e,ICONS:t})=>{var h;const{initialize:r,pagination:o,controller:s,itemsStyles:i}=g.Carousel.useCarousel({gap:e.data.config.gap,itemsPerPage:e.data.config.slidesPerView,direction:"row"}),a=x.useRef(void 0),c=x.useMemo(()=>jd(e.data.config.controllerPosition??"dentro-inferior-centro"),[e]),l=x.useCallback(()=>{e.data.config.slideDuration&&o.totalPages>1&&(a.current=setInterval(()=>{s==null||s.nextPage()},e.data.config.slideDuration*1e3))},[s,e.data.config.slideDuration,o.totalPages]),u=x.useCallback(d=>{clearInterval(a.current),l(),d()},[l]),p=x.useMemo(()=>{var d;return{nextOnClick:()=>u(()=>s==null?void 0:s.nextPage()),prevOnClick:()=>u(()=>s==null?void 0:s.prevPage()),onBulletClick:f=>u(()=>s==null?void 0:s.navigateTo(f)),currentPage:o.currentPage,totalPages:o.totalPages,position:c.position,hideControllers:((d=e.data.config)==null?void 0:d.hideControllers)??!1,left:c.left}},[o.currentPage,o.totalPages,c.position,e.data.config.hideControllers,u,s]);return x.useEffect(()=>(l(),()=>clearInterval(a.current)),[l]),n.jsxs(g.Carousel.Root,{innerRef:d=>{r(d)},className:g.helpers.classNameConcat(xo["custom-carousel"],e.data.config.fullWidth?"":"common-section"),"data-infinity-border":!0,style:{...e.data.config.marginTop!=="0px"&&{marginTop:`-${e.data.config.marginTop}`},...e.data.config.marginBottom!=="0px"&&{marginBottom:`-${e.data.config.marginBottom}`}},children:[c.shouldRender==="top"&&o.totalPages>1?n.jsx(ua,{ICONS:t,...p,isFirst:e.data.first}):n.jsx(n.Fragment,{}),n.jsx(g.Carousel.Body,{children:(h=e==null?void 0:e.data)==null?void 0:h.banners.map((d,f)=>n.jsx(g.Carousel.Item,{style:i,children:n.jsx(Py,{data:e,banner:d,children:n.jsx(Jo,{ICONS:t,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,data:{banner:d,index:f,componentIndex:e.data.componentIndex},creative:"banner-carousel",...e.data.first&&f===0&&{priority:!0}})})},`hero-banner-item-${f}`))}),c.shouldRender==="bottom"&&o.totalPages>1?n.jsx(ua,{ICONS:t,...p}):n.jsx(n.Fragment,{})]})},Ny={Banner:wd},_t={"row-controller-modifier":"_row-controller-modifier_co4wb_1","carousel-title-modifier":"_carousel-title-modifier_co4wb_18","carousel-modifier":"_carousel-modifier_co4wb_22","card-modifier":"_card-modifier_co4wb_26"},Ty=({data:e,CONSTANTS:t})=>{var u;const{isMobile:r}=be(),o=e.config.size??"medium",s=e.config.disableCarouselMobile??!1,{initialize:i,pagination:a,controller:c,itemsStyles:l}=g.Carousel.useCarousel({itemsPerPage:r?e==null?void 0:e.config.slidesPerViewMobile:(u=e==null?void 0:e.config)==null?void 0:u.slidesPerView,gap:r?e.config.gapMobile:e.config.gap,direction:r&&s?"column":"row"});return n.jsx(g.Utils.Column,{style:{width:o==="small"?"70%":"100%"},alignContent:"center",justifyContent:"center",alignItems:"center",children:n.jsxs(g.Carousel.Root,{innerRef:p=>{i(p)},className:g.helpers.classNameConcat(_t["carousel-modifier"],"common-section"),children:[o==="medium"?n.jsxs(g.TextStructure.Root,{children:[n.jsx(g.TextStructure.DivWrapper,{className:_t["carousel-title-modifier"],children:n.jsx("h2",{className:"typography-style-body-lg",children:t.BENNEFITS_BAR_TITLE})}),r&&a.totalPages>1?n.jsx(g.Carousel.Controller,{className:_t["row-controller-modifier"],children:n.jsxs(g.Carousel.Arrows,{children:[n.jsx(g.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(g.Icon,{name:t.ICONS.arrow_left})}}),n.jsx(g.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(g.Icon,{name:t.ICONS.arrow_right})}})]})}):n.jsx(n.Fragment,{})]}):n.jsx(n.Fragment,{}),n.jsx(g.Carousel.Body,{children:e.bennefit.map((p,h)=>n.jsx(g.Carousel.Item,{className:_t["card-modifier"],style:l,children:n.jsx(g.Card,{stroke:!0,padding:"small",children:n.jsx(g.TextStructure.Root,{layoutProps:{columnWrapper:{alignContent:"start",alignItems:"start",justifyContent:"start"},textRow:{alignContent:"center",alignItems:"center",justifyContent:"center"}},adornment:{[o==="medium"?"top":"start"]:n.jsx(g.Icon,{name:p.icon,size:o==="medium"?"medium":"small"})},children:n.jsxs(g.TextStructure.DivWrapper,{alignItems:"start",children:[n.jsx("h3",{className:"typography-style-body-md",children:p.title}),p.subtitle&&p.subtitle.length?n.jsx("p",{className:"typography-style-body-xs",children:p.subtitle}):n.jsx(n.Fragment,{})]})})})},`bennefit=${h}`))}),!r&&a.totalPages>1?n.jsxs(g.Carousel.Controller,{className:_t["row-controller-modifier"],children:[n.jsxs(g.Carousel.Arrows,{children:[n.jsx(g.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.prevPage(),adornment:{start:n.jsx(g.Icon,{name:t.ICONS.arrow_left})}}),n.jsx(g.Button,{variant:"tertiary",onClick:()=>c==null?void 0:c.nextPage(),adornment:{start:n.jsx(g.Icon,{name:t.ICONS.arrow_right})}})]}),n.jsx(g.Carousel.Bullets,{page:a.currentPage,total:a.totalPages,onBulletClick:p=>c==null?void 0:c.navigateTo(p)})]}):n.jsx(n.Fragment,{})]})})},Oy=({data:e,ICONS:t})=>n.jsx("div",{className:g.helpers.classNameConcat(vo.textContentSection),style:e.borderTop?{borderTop:"none"}:void 0,children:n.jsx(Ed,{data:e,ICONS:t})}),da={"accordion-modifier":"_accordion-modifier_1we16_1","accordion-body-modifier":"_accordion-body-modifier_1we16_7"},ky=({data:e,id:t,ICONS:r})=>{var i;const[o,s]=x.useState([]);return n.jsxs(g.Utils.Column,{gap:"var(--gap-vertical-sm)",children:[e.titleAccordion?n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{children:n.jsx("h2",{className:g.helpers.classNameConcat("typography-style-heading-sm","common-section"),style:{fontWeight:500},children:e.titleAccordion})})}):n.jsx(n.Fragment,{}),(i=e.accordions)==null?void 0:i.map((a,c)=>n.jsxs(g.Accordion.Wrapper,{className:da["accordion-modifier"],children:[n.jsx(g.Accordion.Header,{id:`${t}-text-accordion-${c}`,openIndicator:n.jsx(g.Icon,{name:r.arrow_down}),closeIndicator:n.jsx(g.Icon,{name:r.arrow_up}),startOpen:o.includes(c),onClick:()=>s(l=>l.includes(c)?l.filter(u=>u!==c):[...l,c]),children:n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{className:_o["draftjs-text-modifier"],children:[n.jsx("h3",{className:"typography-style-body-md-strong",children:a.title}),a.subtitle&&a.subtitle.length?n.jsx("h2",{children:a.subtitle}):n.jsx(n.Fragment,{})]})})}),n.jsx(g.Accordion.Body,{children:n.jsx(g.TextStructure.Root,{children:n.jsx(g.TextStructure.DivWrapper,{className:g.helpers.classNameConcat(da["accordion-body-modifier"],_o["draftjs-text-modifier"]),children:n.jsx(qe.Editor,{editorKey:`${t}-editor-${c}`,blockRenderMap:nr,editorState:a.text?rr(JSON.parse(a.text)):qe.EditorState.createEmpty(),onChange:()=>null})})})})]},`${t}-accordion-${c}-${o.includes(c)}`))]})},Rd=x.createContext({}),My=({data:e,children:t,...r})=>{var m,_,y,b,j,v,S,E,R,C,A,O,w;const[o,s]=x.useState(!0),{initialize:i,controller:a,itemsStyles:c}=g.Carousel.useCarousel({gap:0,itemsPerPage:1}),l={slideTranstionTimer:(_=(m=e==null?void 0:e.staticConfig)==null?void 0:m.staticConfig)==null?void 0:_.slideTranstionTimer,showCarouselArrows:(b=(y=e==null?void 0:e.staticConfig)==null?void 0:y.staticConfig)==null?void 0:b.showCarouselArrows,hasCloseBtn:(v=(j=e==null?void 0:e.staticConfig)==null?void 0:j.staticConfig)==null?void 0:v.hasCloseBtn,backgroundColor:(E=(S=e==null?void 0:e.staticConfig)==null?void 0:S.staticConfig)==null?void 0:E.backgroundColor,textColorVariant:(C=(R=e==null?void 0:e.staticConfig)==null?void 0:R.staticConfig)==null?void 0:C.textColorVariant,content:((O=(A=e==null?void 0:e.content)==null?void 0:A.content)==null?void 0:O.items)??[]},u=(w=l.content)==null?void 0:w.filter(N=>!N.countDownEndDate||new Date(N.countDownEndDate)>new Date),p=u.length>1,h={...l.backgroundColor?{backgroundColor:l.backgroundColor}:{}},d=()=>{s(!1)},f=g.helpers.ValidateProp({fieldTypes:lt.Mode,property:l.textColorVariant,fallback:"default"});return n.jsx(Rd.Provider,{value:{isOpen:o,setIsOpen:s,hasCarousel:p,backgroundStyle:h,handleCloseTipbar:d,mode:f,slideTranstionTimer:l.slideTranstionTimer,showCarouselArrows:l.showCarouselArrows,hasCloseBtn:l.hasCloseBtn,slices:u,carouselProps:{initialize:i,controller:a,itemsStyles:c},...r},children:t})},We=()=>x.useContext(Rd),Ly=({dateEnd:e,...t})=>{const{CONSTANTS:{TIME_ZONE:r}}=We();return n.jsx(bo,{dateEnd:new Date(e),TIME_ZONE:r,...t})},Dy="_tipbar_bt3p0_1",$y="_tipbar__carousel_bt3p0_15",kt={tipbar:Dy,tipbar__carousel:$y,"tipbar__close-btn":"_tipbar__close-btn_bt3p0_29","tipbar-item":"_tipbar-item_bt3p0_37","tipbar-item__coupon":"_tipbar-item__coupon_bt3p0_45"},By=({coupon:e,feedbackTitle:t,feedbackDescription:r,...o})=>{const{CONSTANTS:s}=We(),{addCouponSeller:i,cartStore:a}=we(),[c,l]=x.useState({status:!1,showSnackBar:!1}),[u,p]=x.useState(!1),[h,d]=x.useState(!1),f=async()=>{if(!a.items.length){d(!0);return}(await i(e,"coupon")).code===200?l({status:!0,showSnackBar:!0}):p(!0)};return x.useEffect(()=>{c.showSnackBar&&setTimeout(()=>{l(m=>({...m,showSnackBar:!1}))},s.TIPBAR_CONFIGS.snackbar_timeout)},[c.showSnackBar]),x.useEffect(()=>{u&&setTimeout(()=>{p(!1)},s.TIPBAR_CONFIGS.snackbar_timeout)},[u]),x.useEffect(()=>{h&&setTimeout(()=>{d(!1)},s.TIPBAR_CONFIGS.snackbar_timeout)},[h]),n.jsxs(n.Fragment,{children:[n.jsx(g.Button,{...o,onClick:f,disabled:c.status,className:kt["tipbar-item__coupon"],children:c.status?`${s.TIPBAR_CONFIGS.coupon_applied_message}`:`${s.TIPBAR_CONFIGS.coupon_default_message}`}),c.showSnackBar&&(t||r)&&n.jsx(Ct,{title:t,subtitle:r,Z_INDEX_WAR:s.Z_INDEX_WAR},`feedback-coupon-${e}`),u&&n.jsx(Ct,{title:s.TIPBAR_CONFIGS.coupon_error_title,subtitle:s.TIPBAR_CONFIGS.coupon_error_message,Z_INDEX_WAR:s.Z_INDEX_WAR},`error-coupon-${e}`),h&&n.jsx(Ct,{title:s.TIPBAR_CONFIGS.coupon_cart_empty_title,subtitle:s.TIPBAR_CONFIGS.coupon_cart_empty_message,Z_INDEX_WAR:s.Z_INDEX_WAR},`error-cart-empty-${e}`)]})},zy=({title:e,description:t,style:r,mode:o,className:s})=>n.jsx(g.TextStructure.Root,{children:n.jsxs(g.TextStructure.DivWrapper,{mode:o,className:s,children:[e&&n.jsx("h3",{className:"typography-style-body-sm",style:r,children:e}),t&&n.jsx("p",{className:"typography-style-caption",style:r,children:t})]})}),Fy=({coupon:e,...t})=>{const{CONSTANTS:r}=We();return n.jsx(g.Copy,{...t,iconCopy:r.ICONS.copy,iconSuccess:r.ICONS.check,children:e})},qy=({staticZone:e,type:t,className:r,description:o,title:s})=>{const{mode:i}=We();if(t==="countdown")return n.jsx(Ly,{dateEnd:e.countDownEndDate,size:"x-small",mode:i});if(t==="coupon"){const a=g.helpers.ValidateProp({fieldTypes:lt.Mode,property:e.couponButtonMode,fallback:"default"}),c=g.helpers.ValidateProp({fieldTypes:lt.VariantsExtended,property:e.couponButtonVariant,fallback:"primary"});return e.coupon?n.jsx(By,{coupon:e.coupon,mode:a,variant:c,feedbackTitle:e.couponFeedbackTitle,feedbackDescription:e.couponFeedbackDescription}):null}if(t==="copy"){const a=g.helpers.ValidateProp({fieldTypes:lt.Mode,property:e.couponButtonMode,fallback:"default"});return e.coupon?n.jsx(Fy,{coupon:e.coupon,mode:a}):null}return n.jsx(zy,{title:s,description:o,mode:i,className:r})},fa=({handleCloseTipbar:e,mode:t})=>{const{CONSTANTS:r}=We();return n.jsx(g.Button,{title:"fechar tipbar",className:kt["tipbar__close-btn"],onClick:e,variant:"tertiary",mode:t,adornment:{start:n.jsx(g.Icon,{name:r.ICONS.close})}})},Hy=({children:e,mode:t="default",showCarouselArrows:r=!0,slideTranstionTimer:o})=>{const{carouselProps:s,CONSTANTS:i}=We(),a=x.useRef(null),c=(u,p)=>{var h,d;u.stopPropagation(),u.preventDefault(),p==="prev"?(h=s.controller)==null||h.prevPage():(d=s.controller)==null||d.nextPage(),a.current&&(clearInterval(a.current),l())},l=x.useCallback(()=>{if(o&&s.controller){const u=setInterval(()=>{var p;(p=s.controller)==null||p.nextPage()},o);a.current=u}},[o,s]);return x.useEffect(()=>(l(),()=>{a.current&&clearInterval(a.current)}),[o,l]),n.jsxs(g.Carousel.Root,{innerRef:u=>{s.initialize(u)},className:kt.tipbar__carousel,style:{flexDirection:"row",alignItems:"center"},children:[r&&n.jsx(g.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"prev"),adornment:{start:n.jsx(g.Icon,{name:i.ICONS.arrow_left})}}),n.jsx(g.Carousel.Body,{children:e}),r&&n.jsx(g.Button,{variant:"tertiary",mode:t,onClick:u=>c(u,"next"),adornment:{start:n.jsx(g.Icon,{name:i.ICONS.arrow_right})}})]})},Uy=({children:e,className:t})=>{const{hasCarousel:r,mode:o,hasCloseBtn:s,backgroundStyle:i,showCarouselArrows:a,slideTranstionTimer:c,handleCloseTipbar:l}=We(),u=r&&a;return n.jsx("div",{style:i,"data-hasclosebtn":s,className:g.helpers.classNameConcat(kt.tipbar,t),children:r?n.jsxs(n.Fragment,{children:[n.jsx(Hy,{mode:o,showCarouselArrows:u,slideTranstionTimer:c,children:e}),s&&n.jsx(fa,{handleCloseTipbar:l,showCarouselArrows:u,mode:o})]}):n.jsxs(n.Fragment,{children:[e,s&&n.jsx(fa,{handleCloseTipbar:l,mode:o})]})})},Wy=({children:e,highlightFirstSection:t,...r})=>{const{hasCarousel:o,carouselProps:s}=We(),i=n.jsx("div",{...r,className:kt["tipbar-item"],children:e});return o?n.jsx(g.Carousel.Item,{style:s.itemsStyles,children:i}):i},Ad=({className:e})=>{const{isOpen:t,slices:r}=We();return r.length&&t?n.jsx(Uy,{children:r.map((o,s)=>{var i;return n.jsx(n.Fragment,{children:n.jsx(Pt,{href:o.link,children:n.jsx(Wy,{highlightFirstSection:o.highlightFirstSection,"data-justifyhighlightedsection":o.horizontalAlignHighlightedSection?o.horizontalAlignHighlightedSection:"center",children:o&&((i=o==null?void 0:o.items)!=null&&i.length)?o.items.map((a,c)=>n.jsx(qy,{staticZone:o,type:a.type,title:a.title,description:a.description,className:e},`tipbar-slice-field-${c}`)):null})})},`tipbar-slice-${s}`)})}):null};Ad.displayName="TipBar.Root";const Co=({className:e,...t})=>n.jsx(My,{...t,children:n.jsx(Ad,{className:e})});Co.displayName="TipBar";const Vy=({CONSTANTS:e,data:t})=>{const{pathname:r}=Re(),{tipbarRef:o}=je(),s=c=>{const l=t==null?void 0:t.find(u=>{var p,h,d,f,m;return((h=(p=u.staticConfig)==null?void 0:p.staticConfig)==null?void 0:h.deviceType)===c&&((m=(f=(d=u.staticConfig)==null?void 0:d.staticConfig)==null?void 0:f.paths)==null?void 0:m.includes(r))});return l||(t==null?void 0:t.find(u=>{var p,h,d,f,m,_;return((h=(p=u.staticConfig)==null?void 0:p.staticConfig)==null?void 0:h.deviceType)===c&&(!((f=(d=u.staticConfig)==null?void 0:d.staticConfig)!=null&&f.paths)||((_=(m=u.staticConfig)==null?void 0:m.staticConfig)==null?void 0:_.paths.length)===0)}))},i=s("desktop"),a=s("mobile");return n.jsxs("div",{ref:o,className:ie.responsive["responsive-flex"],children:[a&&n.jsx("div",{className:ie.responsive["responsive-mobile-flex"],children:n.jsx(Co,{data:a,CONSTANTS:e})}),i&&n.jsx("div",{className:ie.responsive["responsive-desktop-flex"],children:n.jsx(Co,{data:i,CONSTANTS:e})})]})},pa={"card-image-wrapper":"_card-image-wrapper_10mul_1","card-image-container":"_card-image-container_10mul_9"},Gy=e=>{const{nextimage:t}=Re();return n.jsx(n.Fragment,{children:e.data.banners.map((r,o)=>n.jsx("div",{className:pa["card-image-wrapper"],children:n.jsx("div",{className:pa["card-image-container"],children:n.jsx(t,{src:r.image,alt:r.altImage?r.altImage:"Banner Coleção",width:500,height:600})})},o))})},Ky=({SectionZone:e,CMS_PROJECT_NAME:t,storeId:r,previewId:o})=>{const[s,i]=x.useState();return x.useEffect(()=>{s||ie.getContentType({contentType:"search",CMS_PROJECT_NAME:t,storeId:r,previewId:o}).then(a=>{i(a.data[0])})},[]),n.jsx(e,{data:s??[]})},Xy=({data:{componentIndex:e,...t},ClientNewsletterSection:r})=>n.jsx(r,{...t}),Yy={Banner:Ny,BannerSection:Jo,BennefitsBarSection:Ty,SingleBannerSection:wd,TextContentSection:Oy,BannerCarousel:Iy,TextAccordionSection:ky,TipbarScreening:Vy,ImageGrid:Gy,SearchPageScreening:ie.SearchPageScreening,SearchContent:Ky,NewsletterSection:Xy},Qy={Components:Yy,helpers:Sy};exports.cms=Qy;exports.contexts=xp;exports.data=Lo;exports.layout=gy;exports.scripts=vy;